ZHANGYUXUAN-zR commited on
Commit
d084d28
·
verified ·
1 Parent(s): dffd8c0

Add files using upload-large-folder tool

Browse files
parse/train/BJxpIJHKwB/BJxpIJHKwB.md ADDED
@@ -0,0 +1,417 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ATTENTIVE WEIGHTS GENERATION FOR FEW SHOTLEARNING VIA INFORMATION MAXIMIZATION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Few shot image classification aims at learning a classifier from limited labeled data. Generating the classification weights has been applied in many metalearning approaches for few shot image classification due to its simplicity and effectiveness. However, we argue that it is difficult to generate the exact and universal classification weights for all the diverse query samples from very few training samples. In this work, we introduce Attentive Weights Generation for few shot learning via Information Maximization (AWGIM), which addresses current issues by two novel contributions. i) AWGIM generates different classification weights for different query samples by letting each of query samples attends to the whole support set. ii) To guarantee the generated weights adaptive to different query sample, we re-formulate the problem to maximize the lower bound of mutual information between generated weights and query as well as support data. As far as we can see, this is the first attempt to unify information maximization into few shot learning. Both two contributions are proved to be effective in the extensive experiments and we show that AWGIM is able to achieve state-of-the-art performance on benchmark datasets.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ While deep learning methods achieve great success in domains such as computer vision (He et al., 2016), natural language processing (Devlin et al., 2018), reinforcement learning (Silver et al., 2018), their hunger for large amount of labeled data limits the application scenarios where only a few data are available for training. Humans, in contrast, are able to learn from limited data, which is desirable for deep learning methods. Few shot learning is thus proposed to enable deep models to learn from very few samples (Fei-Fei et al., 2006).
12
+
13
+ Meta learning is by far the most popular and promising approach for few shot problems (Vinyals et al., 2016; Finn et al., 2017; Snell et al., 2017; Ravi & Larochelle, 2016; Rusu et al., 2019). In meta learning approaches, the model extracts high level knowledge across different tasks so that it can adapt itself quickly to a new-coming task (Schmidhuber, 1987; Andrychowicz et al., 2016). There are several kinds of meta learning methods for few shot learning, such as gradient-based (Finn et al., 2017; Ravi & Larochelle, 2016) and metric-based (Snell et al., 2017; Sung et al., 2018). Weights generation, among these different methods, has shown effectiveness with simple formulation (Qi et al., 2018; Qiao et al., 2018; Gidaris & Komodakis, 2018; 2019). In general, weights generation methods learn to generate the classification weights for different tasks conditioned on the limited labeled data. However, fixed classification weights for different query samples within one task might be sub-optimal, due to the few shot challenge.
14
+
15
+ We introduce Attentive Weights Generation for few shot learning via Information Maximization (AWGIM) in this work to address these limitations. In AWGIM, the classification weights are generated for each query sample specifically. This is done by two encoding paths where the query sample attends to the task context. However, we show in experiments that simple cross attention between query samples and support set fails to guarantee classification weights fitted to diverse query data since the query-specific information is lost during weights generation. Therefore, we propose to maximize the lower bound of mutual information between generated weights and query, support data. As far as we know, AWGIM is the first work introducing Variational Information Maximization in few shot learning. The induced computational overhead is minimal due to the nature of few shot problems. Furthermore, by maximizing the lower bound of mutual information, AWGIM gets rid of inner update without compromising performance.
16
+
17
+ AWGIM is evaluated on two benchmark datasets and shows state-of-the-art performance. We also conducted detailed analysis to validate the contribution of each component in AWGIM.
18
+
19
+ # 2 RELATED WORKS
20
+
21
+ # 2.1 FEW SHOT LEARNING
22
+
23
+ Learning from few labeled training data has received growing attentions recently. Most successful existing methods apply meta learning to solve this problem and can be divided into several categories. In the gradient-based approaches, an optimal initialization for all tasks is learned (Finn et al., 2017). Ravi & Larochelle (2016) learned a meta-learner LSTM directly to optimize the given fewshot classification task. Sun et al. (2019) learned the transformation for activations of each layer by gradients to better suit the current task.
24
+
25
+ In the metric-based methods, a similarity metric between query and support samples is learned. (Koch et al., 2015; Vinyals et al., 2016; Snell et al., 2017; Sung et al., 2018; Li et al., 2019a). Spatial information or local image descriptors are also considered in some works to compute richer similarities (Lifchitz et al., 2019; Li et al., 2019b; Wertheimer & Hariharan, 2019).
26
+
27
+ Generating the classification weights directly has been explored by some works. Gidaris & Komodakis (2018) generated classification weights as linear combinations of weights for base and novel classes. Similarly, Qiao et al. (2018) and Qi et al. (2018) both generated the classification weights from activations of a trained feature extractor. Graph neural network denoising autoencoders are used in (Gidaris & Komodakis, 2019). Munkhdalai & Yu (2017) proposed to generate “fast weights” from the loss gradient for each task. All these methods do not consider generating different weights for different query examples, nor maximizing the mutual information.
28
+
29
+ There are some other methods for few-shot classification. Generative models are used to generate or hallucinate more data in (Zhang et al., 2018; Wang et al., 2018; Chen et al., 2019). Bertinetto et al. (2019) and Lee et al. (2019) used the closed-form solutions directly for few shot classification. Liu et al. (2019) integrated label propagation on a transductive graph to predict the query class label.
30
+
31
+ # 2.2 ATTENTION
32
+
33
+ Attention mechanism shows great success in computer vision (Xu et al., 2015; Parmar et al., 2018) and natural language processing (Bahdanau et al., 2015; Vaswani et al., 2017). It is effective in modeling the interaction between queries and key-value pairs from certain context. Based on the fact that keys and queries point to the same entities or not, people refer to attention as self attention or cross attention. In this work, we use both types of attention to encode the task and query-task information. The work most similar to ours is Attentive Neural Processes (Kim et al., 2019), which also employs self and cross attention. However, we are using attention for few-shot image classification via maximizing the mutual information. In stark contrast, Kim et al. (2019) worked on regression from the perspective of a stochastic process and the variational objective is optimized.
34
+
35
+ # 2.3 MUTUAL INFORMATION
36
+
37
+ Given two random variables $\mathbf { X }$ and $\mathsf { y }$ , mutual information $I ( { \bf x } ; { \bf y } )$ measures the decrease of uncertainty in one random variable when another is known. It is defined as the Kullback-Leibler divergence between joint distribution $p ( \mathbf { x } , \mathbf { y } )$ and product of marginal distributions $p ( \mathbf { x } ) \otimes p ( \mathbf { y } )$ ,
38
+
39
+ $$
40
+ I ( \mathbf { x } ; \mathbf { y } ) = D _ { \mathrm { K L } } ( p ( \mathbf { x } , \mathbf { y } ) \| p ( \mathbf { x } ) \otimes p ( \mathbf { y } ) ) .
41
+ $$
42
+
43
+ When x and y are independent, $p ( \mathbf { x } , \mathbf { y } ) = p ( \mathbf { x } ) \otimes p ( \mathbf { y } )$ so that $I ( { \bf x } , { \bf y } ) = 0$ , indicating that knowing $\mathbf { X }$ does not reveal any information about y. When y is a deterministic function of $\mathbf { X }$ , $I ( \mathbf { x } , \mathbf { y } )$ achieves its maximum value. Mutual information has been widely applied in applications such as Generative Adversarial Networks(Chen et al., 2016), self-supervised learning(Hjelm et al., 2019), visual question generation Krishna et al. (2019) and so on.
44
+
45
+ ![](images/1337a8d6253363eec5b99fdb1e3eb590ae641d0447bd8c18d057cba309ac3b81.jpg)
46
+ Figure 1: The overview of our proposed AWGIM. The input task is 5-way 1-shot with $\mathbf { X }$ as support set and $\hat { \bf x }$ as one query example. Different colors of the data in support set indicate different categories. The encoding process in contextual path produces context-aware support representations $\mathbf { X } ^ { c p }$ . Similarly, the attentive path enables the query sample $\hat { \bf x }$ to be equipped with task knowledge. Both paths are achieved by attention mechanism. $\hat { \mathbf { x } } ^ { a p }$ is repeated to concatenate with $\mathbf { X } ^ { c p }$ . The weight generator $g$ takes these concatenated representations as input to generate classification weights W specific for $\hat { \bf x }$ , denoted by the colorful matrix with slash. It can be used to predict the class label for $\hat { \bf x }$ and X. W is also used to reconstruct the inputs of the generator $g$ by two networks $r _ { 1 }$ and $r _ { 2 }$ . In this way, the lower bound of mutual information is maximized and $g$ is forced to generate classification weights sensitive to different query samples.
47
+
48
+ # 3 PROPOSED METHOD
49
+
50
+ In this section, we provide the problem formulation first. Then the proposed model is described in Sec. 3.3. The objective function, which maximizes the mutual information between certain variables, and theoretical analysis are provided in Sec. 3.4.
51
+
52
+ # 3.1 PROBLEM FORMULATION
53
+
54
+ Following many popular meta-learning methods for few shot classification, we formulate the problem under episodic training paradigm (Vinyals et al., 2016; Finn et al., 2017). One $N$ -way $K$ -shot task sampled from an unknown task distribution $P ( \tau )$ includes support set and query set:
55
+
56
+ $$
57
+ { \mathcal { T } } = ( { \mathcal { S } } , { \mathcal { Q } } ) ,
58
+ $$
59
+
60
+ where $\mathcal { S } = \{ ( \mathbf { x } ^ { c _ { n } ; k } , \mathbf { y } ^ { c _ { n } ; k } ) | k = 1 , . . . , K ; n = 1 , . . . , N \}$ , $\mathcal { Q } = \{ ( \hat { \mathbf { x } } _ { 1 } , . . . , \hat { \mathbf { x } } _ { | \mathcal { Q } | } ) \}$ . Support set $s$ contains $N K$ labeled samples. Query set $\mathcal { Q }$ includes $\hat { \bf x }$ and we need to predict label $\hat { \mathbf { y } }$ for $\hat { \bf x }$ based on $s$ . During meta-training, the meta-loss is estimated on $\mathcal { Q }$ to optimize the model. During metatesting, the performance of meta-learning method is evaluated on $\mathcal { Q }$ , provided the labeled $s$ . The classes used in meta-training and meta-testing are disjoint so that the meta-learned model needs to learn the knowledge transferable across tasks and adapt itself quickly to novel tasks.
61
+
62
+ Our proposed approach follows the general framework to generate the classification weights (Qi et al., 2018; Qiao et al., 2018; Rusu et al., 2019; Gidaris & Komodakis, 2018; 2019). In this framework, there is a feature extractor to output image feature embeddings. The meta-learner needs to generate the classification weights for different tasks.
63
+
64
+ # 3.2 LATENT EMBEDDING OPTIMIZATION
65
+
66
+ Latent Embedding Optimization (LEO) (Rusu et al., 2019) is one of the weights generation methods that is most related to our work. In LEO, the latent code $_ z$ is generated by $h$ conditioned on support set $s$ , described as $z = h ( S )$ . $h$ is instantiated as relation networks (Santoro et al., 2017). Classification weights $\pmb { w }$ can be decoded from $_ { z }$ with $l$ , $w = l ( z )$ . In the inner loop, we use $\pmb { w }$ to compute the loss (usually cross entropy) on the support set and then update $_ z$ :
67
+
68
+ $$
69
+ \begin{array} { r } { z ^ { \prime } = z - \eta \nabla _ { z } \mathcal { L } _ { \mathcal { S } } ( \pmb { w } ) , } \end{array}
70
+ $$
71
+
72
+ where $\mathcal { L } _ { S }$ indicates that the loss is evaluated on $s$ only. The updated latent code $z ^ { \prime }$ is used to decode new classification weights $\mathbf { \Delta } \mathbf { w ^ { \prime } }$ with generating function $l$ . $\mathbf { \Delta } _ { \mathbf { \ b { w } } ^ { \prime } }$ is adopted in the outer loop for query set $\mathcal { Q }$ and the objective function of LEO then can be written as
73
+
74
+ $$
75
+ \operatorname* { m i n } _ { \theta } \mathcal { L } _ { \mathcal { Q } } ( w ^ { \prime } ) .
76
+ $$
77
+
78
+ Here $\theta$ stands for the parameters of $h$ and $l$ and we omit the regularization terms for clarity. LEO avoids updating high-dimensional $\textbf { \em w }$ in the inner loop by learning a lower-dimensional latent space, from which sampled $_ z$ can be used to generate $\pmb { w }$ . The most significant difference between LEO and AWGIM is that we do not need inner updates to adapt the model. Instead, AWGIM is a feedforward network trained to maximize the mutual information so that it fits to different tasks well. On the other hand, AWGIM learns to generate optimal classification weights for each query sample while LEO generates fixed weights conditioned on the support set within one task. In Section 3.4 we will show LEO can be casted as a special case of AWGIM under certain conditions.
79
+
80
+ # 3.3 ATTENTIVE WEIGHTS GENERATION
81
+
82
+ The framework of our proposed method is shown in Figure 1. Assume that we have a feature extractor, which can be a simple 4-layer Convnet or a deeper Resnet. All the images included in the sampled task $\tau$ are processed by this feature extractor and represented as $d$ -dimensional vectors afterwards, i.e., $\mathbf { x } ^ { c _ { n } ; k } , \hat { \mathbf { x } } \in \mathbb { R } ^ { d }$ . There are two paths to encode the task context and the individual query sample respectively, which are called contextual path and attentive path. The outputs of both paths are concatenated together as input to the generator for classification weights. Generated classification weights are used to not only predict the label of $\hat { \bf x }$ , but also maximize the lower bound of mutual information between itself and other variables, which will be discussed in the following section 3.4.
83
+
84
+ # 3.3.1 CONTEXTUAL AND ATTENTIVE PATHS
85
+
86
+ The encoding process includes two paths, namely the contextual path and attentive path. The contextual path aims at learning representations for only the support set with a multi-head self-attention network $f _ { s a } ^ { c p }$ (Vaswani et al., 2017). The outputs of contextual path ${ \bf X } ^ { c p } \in \mathbb { R } ^ { N K \times d _ { h } }$ 1 thus contain richer information about the task and can be used later for weights generation.
87
+
88
+ Existing weights generation methods generate the classification weights conditioned on the support set only, which is equivalent to using contextual path. However, the classification weights generated in this way might be sub-optimal. This is because estimating the exact and universal classification weights from very few labeled data in the support set is difficult and sometimes impossible. The generated weights are usually in lack of adaptation to different query samples. We address this issue by introducing attentive path, where the individual query example attends to the task context and then is used to generate the classification weights. Therefore, the classification weights are adaptive to different query samples and aware of the task context as well.
89
+
90
+ In the attentive path, a new multi-head self-attention network $f _ { s a } ^ { a p }$ on the support set is employed to encode the global task information. $f _ { s a } ^ { a p }$ is different from $f _ { s a } ^ { c p }$ in contextual path because the selfattention network in contextual path emphasizes on generating the classification weights. On the contrary, outputs of self-attention here plays the role of providing the V alue context for different query samples to attend in the following cross attention. Sharing the same self-attention networks might limit the expressiveness of learned representations in both paths. The cross attention network $f _ { c a } ^ { a p }$ applied on each query sample and task-aware support set is followed to produce $\hat { \bf X } ^ { a p } \in \mathbb { R } ^ { | \mathcal { Q } | \times d _ { h } }$ .
91
+
92
+ We use multi-head attention with $h$ heads in both paths. In one attention block, we produce $h$ different sets of queries, keys and values. Multi-head attention is claimed to be able to learn more comprehensive and expressive representations from $h$ different subspaces (Vaswani et al., 2017; Voita et al., 2019). More details of these two paths can be found in A.2.
93
+
94
+ # 3.3.2 WEIGHTS GENERATOR
95
+
96
+ We replicate them afterwa ${ \bf X } ^ { c p } \in \mathbb { R } ^ { N K \times d _ { h } }$ anve $\hat { \bf X } ^ { a p } \in \mathbb { R } ^ { | \mathcal { Q } | \times d _ { h } }$ r $| \mathcal { Q } |$ $N K$ ectively and reshape. These two tensors $\pmb { \chi } ^ { c p } \in \mathbb { R } ^ { | \mathcal { Q } | \times N K \times d _ { h } }$ $\hat { \pmb { \mathsf { X } } } ^ { a p } \in \mathbb { R } ^ { | \mathcal { Q } | \times N K \times d _ { h } }$
97
+
98
+ $d _ { h } < d$ is the hidden dimension. We use matrix form here to be consistent with the description in 3.3.2.
99
+
100
+ are concatenated to become $\pmb { \chi } ^ { c p \oplus a p } \in \mathbb { R } ^ { | \mathcal { Q } | \times N K \times 2 d _ { h } }$ . $\mathbf { \pmb { \chi } } ^ { c p \oplus a p }$ can be interpreted that each query sample has its own latent representations for support set to generate specific classification weights, which are both aware of the task-context and adaptive to individual query sample.
101
+
102
+ $\mathbf { X } ^ { c p \oplus a p }$ is decoded by the weights generator $g : \mathbb { R } ^ { 2 d _ { h } } \mathbb { R } ^ { 2 d }$ . We assume that the classification weights follow Gaussian distribution with diagonal covariance. $g$ outputs the distribution parameters and we sample the weights from learned distribution during meta-training. The sampled classification weights are represented as $\pmb { \mathsf { W } } \in \mathbb { R } ^ { | \mathcal { Q } | \times N K \times d }$ . To reduce complexity, we compute the mean value on $K$ classification weights for each class to have ${ \pmb W } ^ { f i n a l } \in \mathbb { R } ^ { | \mathcal { Q } | \times N \times d }$ . Therefore, ith query sample has its specifican be computed by c classifica Wf inali,:,: tion weight matrix . The support data $\pmb { \mathsf { W } } _ { i , : , : } ^ { f i n a l } \in \mathbb { R } ^ { N \times d }$ . Th for rediction for query datatimes and reshaped as $\hat { \mathbf { X } } \mathbf { W } ^ { f i n a l \mathbf { T } }$ $\mathbf { X }$ $| \mathcal { Q } |$ $\pmb { \chi } _ { s } \in \mathbb { R } ^ { | \mathcal { Q } | \times N K \times d }$ . So the prediction for support data can also be computed as ${ \pmb x } _ { s } { \pmb w } ^ { f i n a l { \bf T } }$ .
103
+
104
+ Besides the weights generator $g$ , we have another two decoders $r _ { 1 } : \mathbb { R } ^ { d } \mathbb { R } ^ { d _ { h } }$ and $r _ { 2 } : \mathbb { R } ^ { d } $ $\mathbb { R } ^ { d _ { h } }$ . They both take the generated weights $\boldsymbol { \mathsf { W } }$ as inputs and learn to reconstruct $\mathbf { X } ^ { c p }$ and ${ \hat { \mathbf { X } } } ^ { a p }$ respectively. The outputs of $r _ { 1 }$ and $r _ { 2 }$ are denoted as $\bar { \pmb { \chi } } _ { r e } ^ { c p } , \hat { \pmb { \chi } } _ { r e } ^ { a p } \in \mathbb { R } ^ { | \mathcal { Q } | \times N K \times d _ { h } }$ . The reason we are using reconstruction as auxiliary tasks will be discussed in following Sec. 3.4.
105
+
106
+ # 3.4 INFORMATION MAXIMIZATION
107
+
108
+ In this section, we perform the analysis for one query sample without loss of generality. The subscripts for classification weights are omitted for clarity. In general, we use $\displaystyle ( \mathbf { x } , \mathbf { y } )$ and $( \hat { \mathbf { x } } , \hat { \mathbf { y } } )$ to represent support and query samples respectively.
109
+
110
+ Since the classification weights w generated from $g$ are encoded with attentive path and contextual path, it is expected that we can directly have the query-specific weights. However, we show in the experiments that simply doing this does not outperform a weight generator conditioned only on the $s$ significantly, which implies that the generated classification weights from two paths are not sensitive to different query samples. In other words, the information from attentive path is not kept well during the weights generation.
111
+
112
+ To address this limitation, we propose to maximize the mutual information between generated weights w and support as well as query data. The objective function can be described as
113
+
114
+ $$
115
+ \operatorname* { m a x } I ( ( \hat { \mathbf { x } } , \hat { \mathbf { y } } ) ; \mathbf { w } ) + \sum _ { ( \mathbf { x } , \mathbf { y } ) \in S } I ( ( \mathbf { x } , \mathbf { y } ) ; \mathbf { w } )
116
+ $$
117
+
118
+ According to the chain rule of mutual information, we have
119
+
120
+ $$
121
+ I ( ( \hat { \mathbf { x } } , \hat { \mathbf { y } } ) ; \mathbf { w } ) = I ( \hat { \mathbf { x } } ; \mathbf { w } ) + I ( \hat { \mathbf { y } } ; \mathbf { w } | \hat { \mathbf { x } } ) .
122
+ $$
123
+
124
+ Equation 6 stands for both terms in 5. So the objective function can be written as
125
+
126
+ $$
127
+ \operatorname* { m a x } I ( \hat { \mathbf { x } } ; \mathbf { w } ) + I ( \hat { \mathbf { y } } ; \mathbf { w } | \hat { \mathbf { x } } ) + \sum _ { ( \mathbf { x } , \mathbf { y } ) \in \mathcal { S } } [ I ( \mathbf { x } ; \mathbf { w } ) + I ( \mathbf { y } ; \mathbf { w } | \mathbf { x } ) ] .
128
+ $$
129
+
130
+ Directly computing the mutual information in Equation 7 is intractable since the true posteriori distributions like $p ( \hat { \mathbf { y } } | \hat { \mathbf { x } } , \mathbf { w } )$ , $p ( \hat { \mathbf { x } } | \mathbf { w } )$ are still unknown. Therefore, we use Variational Information Maximization (Barber & Agakov, 2003; Chen et al., 2016) to compute the lower bound of Equation 5. We use $p _ { \theta } ( \hat { \mathbf { x } } | \mathbf { w } )$ to approximate the true posteriori distribution, where $\theta$ represents the model parameters. As a result, we have
131
+
132
+ $$
133
+ \begin{array} { r c l } { I ( \hat { \mathbf { x } } ; \mathbf { w } ) } & { = } & { H ( \hat { \mathbf { x } } ) - H ( \hat { \mathbf { x } } | \mathbf { w } ) } \\ & { = } & { H ( \hat { \mathbf { x } } ) + \mathbb { E } _ { \mathbf { w } \sim p ( \mathbf { w } | \hat { \mathbf { x } } , S ) } [ \mathbb { E } _ { \hat { \mathbf { x } } \sim p ( \hat { \mathbf { x } } | \mathbf { w } ) } [ \log p ( \hat { \mathbf { x } } | \mathbf { w } ) ] ] } \\ & { = } & { H ( \hat { \mathbf { x } } ) + \mathbb { E } _ { \mathbf { w } \sim p ( \mathbf { w } | \hat { \mathbf { x } } , S ) } [ D _ { \mathrm { K L } } ( p ( \hat { \mathbf { x } } | \mathbf { w } ) | | p \theta ( \hat { \mathbf { x } } | \mathbf { w } ) ) + \mathbb { E } _ { \hat { \mathbf { x } } \sim p ( \hat { \mathbf { x } } | \mathbf { w } ) } [ \log p _ { \theta } ( \hat { \mathbf { x } } | \mathbf { w } ) ] ] } \\ & { \geq } & { H ( \hat { \mathbf { x } } ) + \mathbb { E } _ { \mathbf { w } \sim p ( \mathbf { w } | \hat { \mathbf { x } } , S ) } [ \mathbb { E } _ { \hat { \mathbf { x } } \sim p ( \hat { \mathbf { x } } | \mathbf { w } ) } [ \log p \theta ( \hat { \mathbf { x } } | \mathbf { w } ) ] ] } \end{array}
134
+ $$
135
+
136
+ $H ( \cdot )$ is the entropy of a random variable. $H ( { \hat { \mathbf { x } } } )$ is a constant value for given data. We can maximize this lower bound as the proxy for the true mutual information.
137
+
138
+ Similar to $I ( \hat { \mathbf { x } } ; \mathbf { w } )$
139
+
140
+ $$
141
+ I ( \hat { \mathbf { y } } ; \mathbf { w } | \hat { \mathbf { x } } ) \geq H ( \hat { \mathbf { y } } | \hat { \mathbf { x } } ) + \mathbb { E } _ { \mathbf { w } \sim p ( \mathbf { w } | \hat { \mathbf { x } } , S ) } [ \mathbb { E } _ { \hat { \mathbf { y } } \sim p ( \hat { \mathbf { y } } | \hat { \mathbf { x } } , \mathbf { w } ) } [ \log p _ { \theta } ( \hat { \mathbf { y } } | \hat { \mathbf { x } } , \mathbf { w } ) ] ] ,
142
+ $$
143
+
144
+ $$
145
+ \begin{array} { r } { \displaystyle \sum _ { \mathbf { x } , \mathbf { y } ) \in S } I ( ( \mathbf { x } , \mathbf { y } ) ; \mathbf { w } ) \geq \displaystyle \sum _ { ( \mathbf { x } , \mathbf { y } ) \in S } H ( ( \mathbf { x } , \mathbf { y } ) ) + \mathbb { E } _ { \mathbf { w } \sim p ( \mathbf { w } | \hat { \mathbf { x } } , S ) } [ \mathbb { E } _ { ( \mathbf { x } , \mathbf { y } ) \sim p ( ( \mathbf { x } , \mathbf { y } ) | \mathbf { w } ) } [ \log p _ { \theta } ( \mathbf { x } | \mathbf { w } ) + \log p _ { \theta } ( \mathbf { y } | \mathbf { x } , \mathbf { w } ) ] , } \end{array}
146
+ $$
147
+
148
+ $p _ { \theta } ( \hat { \mathbf { x } } | \mathbf { w } ) , p _ { \theta } ( \mathbf { x } , \mathbf { y } | \mathbf { w } )$ are used to approximate the true posteriori distribution $p ( \hat { \mathbf { x } } | \mathbf { w } )$ and $p ( \mathbf { x } , \mathbf { y } | \mathbf { w } )$ .
149
+
150
+ Put the lower bounds back into Equation 7. Omit the constant entropy terms and the expectation subscripts for clarity, we have the new objective function as
151
+
152
+ $$
153
+ \operatorname* { m a x } _ { \theta } \mathbb { E } [ \log p _ { \theta } ( \hat { \mathbf { y } } | \hat { \mathbf { x } } , \mathbf { w } ) + \log p _ { \theta } ( \mathbf { y } | \mathbf { x } , \mathbf { w } ) + \log p _ { \theta } ( \mathbf { x } | \mathbf { w } ) + \log p _ { \theta } ( \hat { \mathbf { x } } | \mathbf { w } ) ] .
154
+ $$
155
+
156
+ The first two terms are maximizing the log likelihood of label for both support and query data with respective to the network parameters, given the generated classification weights. This is equivalent to minimizing the cross entropy between prediction and ground-truth. We assume that $p _ { \theta } ( \hat { \mathbf { x } } | \mathbf { w } )$ and $p _ { \theta } ( \mathbf { x } | \mathbf { w } )$ are Gaussian distributions. $r _ { 1 }$ and $r _ { 2 }$ are used to approximate the mean of these two Gaussian distributions. Therefore maximizing the log likelihood is equivalent to reconstruct $\mathbf { x } ^ { c p }$ and $\hat { \mathbf { x } } ^ { a p }$ with $L 2$ loss. Thus the loss function to train the network can be written as
157
+
158
+ $$
159
+ L = \mathrm { C E } ( \hat { \bf y } _ { p r e d } , \hat { \bf y } ) + \lambda _ { 1 } \sum _ { { \bf y } \in \mathcal { S } } \mathrm { C E } ( { \bf y } _ { p r e d } , { \bf y } ) + \lambda _ { 2 } \sum _ { { \bf x } ^ { c p } \in \mathcal { S } } | | { \bf x } ^ { c p } - { \bf x } _ { r e } ^ { c p } | | _ { 2 } + \lambda _ { 3 } | | \hat { \bf x } ^ { a p } - \hat { \bf x } _ { r e } ^ { a p } | | _ { 2 } .
160
+ $$
161
+
162
+ CE here stands for cross entropy. $\mathbf { x } ^ { c p }$ and $\hat { \mathbf { x } } ^ { a p }$ are the inputs to weights generator $g$ . $\mathbf { x } _ { r e } ^ { c p } \sim p _ { \theta } ( \mathbf { x } | \mathbf { w } )$ and $\hat { \mathbf { x } } _ { r e } ^ { a p } \sim p _ { \theta } ( \hat { \mathbf { x } } | \mathbf { w } )$ are the reconstruction of $\mathbf { x } ^ { c p }$ and $\hat { \mathbf { x } } ^ { a p }$ . Since we convert the log likelihood in Equation 14 to mean square error or cross entropy in Equation 15 to optimize, the value of each term in Equation 15 is not equal to real log likelihood and we have to decide the weightage for each one. $\lambda _ { 1 } , \lambda _ { 2 } , \lambda _ { 3 }$ are thus hyper-parameters for trade-off of different terms. With the help of last three terms, the generated classification weights are forced to carry information about the support data and the specific query sample.
163
+
164
+ In LEO (Rusu et al., 2019), the inner update loss is computed as cross entropy on support data. If we merge the inner update into outer loop, then the loss becomes the summation of first two terms in Equation 15. However, the weight generation in LEO does not involve specific query samples, thus making reconstructing $\hat { \mathbf { x } } ^ { a p }$ impossible. In this sense, LEO can be regarded as a special case of our proposed method, where (1) only contextual path exits and (2) $\lambda _ { 2 } = \lambda _ { 3 } = 0$ .
165
+
166
+ # 3.5 COMPLEXITY ANALYSIS
167
+
168
+ The encoding process in contextual path results in computational complexity $O ( ( N K ) ^ { 2 } )$ due to self-attention. Similarly, the computational complexity of attentive path is $O ( ( N K ) ^ { 2 } + | \mathcal { Q } | ( N K ) )$ . In total, the complexity is ${ \cal O } ( ( \bar { N } K ) ^ { 2 } + | \mathcal { Q } | ( \bar { N ^ { } } K ) )$ . However, because of the nature of few-shot learning problem, the value of $( N K ) ^ { 2 }$ is usually negligible. The value of $| \mathcal { Q } |$ depends on the setting and the cross attention can be implemented parallelly via matrix multiplication. Therefore, the induced computational overhead will be negligible. AWGIM avoids the inner update without compromising the performance, which furthers reduces both training and inference time significantly. The empirical evaluation is presented in A.3.4.
169
+
170
+ # 4 EXPERIMENTS
171
+
172
+ # 4.1 DATASETS AND PROTOCOLS
173
+
174
+ We conduct experiments on miniImageNet (Vinyals et al., 2016) and tieredImageNet (Ren et al., 2018), two commonly used benchmark datasets, to compare with other methods and analyze our model. Both datasets are subsets of ILSVRC-12 dataset (Russakovsky et al., 2015). miniImageNet contains 100 randomly sampled classes with 600 images per class. We follow the train/test split in (Ravi & Larochelle, 2016), where 64 classes are used for meta-training, 16 for meta-validation and 20 for meta-testing. tieredImageNet is a larger dataset compared to miniImageNet. There are 608 classes and 779,165 images in total. They are selected from 34 higher level nodes in ImageNet (Deng et al., 2009) hierarchy. 351 classes from 20 high level nodes are used for meta-training, 97 from 6 nodes for meta-validation and 160 from 8 nodes for meta-testing.
175
+
176
+ We use the image features in LEO (Rusu et al., 2019) provided by the authors 2. They trained a 28-layer Wide Residual Network (Zagoruyko & Komodakis, 2016) on the meta-training set. Each image then is represented by a 640 dimensional vector, which is used as the input to our model.
177
+
178
+ For $N$ -way $K$ -shot experiments, we randomly sample $N$ classes from meta-training set and each of them contains $K$ samples as the support set and 15 as query set. Similar to other works, we train 5-way 1-shot and 5-shot models on two dataset. During meta-testing, 600 $N$ -way $K$ -shot tasks are sampled from meta-testing set and the average accuracy for query set is reported with $9 5 \%$ confidence interval, as done in recent works (Finn et al., 2017; Snell et al., 2017; Rusu et al., 2019).
179
+
180
+ # 4.2 IMPLEMENTATION DETAILS
181
+
182
+ We use TensorFlow (Abadi et al., 2016) to implement our method and the code will be made available. $d = 6 4 0$ is the dimension of feature embeddings. $d _ { h }$ is set to be 128. The number of heads $h$ in attention module is set to be 4. $g , r _ { 1 }$ and $r _ { 2 }$ are 2-layer MLPs with 256 hidden units. We decide $\lambda _ { 1 } = 1$ , $\lambda _ { 2 } = \lambda _ { 3 } = 0 . 0 0 1$ by meta-validation performance.
183
+
184
+ Table 1: Accuracy comparison with other approaches on miniImageNet. The results are averaged on 600 tasks from meta-testing set with $9 5 \%$ confidence interval. Best results are highlighted.
185
+
186
+ <table><tr><td>Model</td><td>Feature Extractor</td><td>5-way 1-shot</td><td>5-way 5-shot</td></tr><tr><td>Matching Networks (Vinyals et al., 2016)</td><td>Conv-4</td><td>46.60</td><td>60.00</td></tr><tr><td>MAML(Finn et al.,2017)</td><td>Conv-4</td><td>48.70 ± 1.84%</td><td>63.11 ± 0.92%</td></tr><tr><td>Meta LSTM (Ravi &amp; Larochelle, 2016)</td><td>Conv-4</td><td>43.44 ± 0.77%</td><td>60.60 ± 0.71%</td></tr><tr><td>Prototypical Nets (Snell et al.,2017)</td><td>Conv-4</td><td>49.42 ± 0.78%</td><td>68.20 ± 0.66%</td></tr><tr><td>Relation Nets (Sung et al.,2018)</td><td>Conv-4</td><td>50.44 ± 0.82%</td><td>65.32 ± 0.70%</td></tr><tr><td>SNAIL (Mishra et al., 2018)</td><td>Resnets-12</td><td>55.71 ± 0.99%</td><td>68.88 ± 0.92%</td></tr><tr><td>TPN (Liu et al., 2019)</td><td>Resnets-12</td><td>59.46</td><td>75.65</td></tr><tr><td>MTL (Sun et al., 2019)</td><td>Resnets-12</td><td>61.20 ± 1.80%</td><td>75.50 ± 0.80</td></tr><tr><td>Dynamic (Gidaris &amp; Komodakis,2018)</td><td>WRN-28-10</td><td>60.06 ± 0.14%</td><td>76.39 ± 0.11%</td></tr><tr><td>Prediction (Qiao et al., 2018)</td><td>WRN-28-10</td><td>59.60 ± 0.41%</td><td>73.74 ± 0.19%</td></tr><tr><td>DAE-GNN (Gidaris &amp; Komodakis,2019)</td><td>WRN-28-10</td><td>62.96 ± 0.15%</td><td>78.85 ± 0.10%</td></tr><tr><td>LEO (Rusu et al., 2019)</td><td>WRN-28-10</td><td>61.76 ± 0.08%</td><td>77.59 ± 0.12%</td></tr><tr><td>AWGIM (ours)</td><td>WRN-28-10</td><td>63.12 ± 0.08%</td><td>78.40 ± 0.11%</td></tr></table>
187
+
188
+ Table 2: Accuracy comparison with other approaches on tieredImageNet. The results are averaged on 600 tasks from meta-testing set with $9 5 \%$ confidence interval. Best results are highlighted.
189
+
190
+ <table><tr><td>Model</td><td>Feature Extractor</td><td>5-way 1-shot</td><td>5-way 5-shot</td></tr><tr><td>MAML (Finn et al., 2017)</td><td>Conv-4</td><td>51.67 ± 1.81%</td><td>70.30 ± 1.75%</td></tr><tr><td>Prototypical Nets (Snell et al., 2017)</td><td>Conv-4</td><td>53.31± 0.89%</td><td>72.69 ± 0.74%</td></tr><tr><td>Relation Nets (Sung et al., 2018)</td><td>Conv-4</td><td>54.48 ± 0.93%</td><td>71.32 ± 0.78%</td></tr><tr><td>TPN (Liu et al., 2019)</td><td>Conv-4</td><td>59.91 ± 0.96%</td><td>72.85 ± 0.74%</td></tr><tr><td>MetaOptNet (Lee et al., 2019)</td><td>Resnets-12</td><td>65.81 ± 0.74%</td><td>81.75 ± 0.53%</td></tr><tr><td>LEO (Rusu et al., 2019)</td><td>WRN-28-10</td><td>66.33 ± 0.05%</td><td>81.44 ± 0.09%</td></tr><tr><td>AWGIM (ours)</td><td>WRN-28-10</td><td>67.69 ± 0.11%</td><td>82.82 ± 0.13%</td></tr></table>
191
+
192
+ ADAMW Loshchilov & Hutter (2017) is used to optimize the network with weight decay $1 \times 1 0 ^ { - 6 }$ . The initial learning rate is set to 0.0002 for 5-way 1-shot and 0.001 for 5-way 5-shot, which is decayed by 0.2 for every 15,000 iterations. We train the model for 50,000 iterations. Batch size is 64 for 5-way 1-shot and 32 for 5-way 5-shot. Similar to LEO (Rusu et al., 2019), we first train the model on meta-training set and choose the optimal hyper-parameters by validation results. Then we train the model on meta-training and meta-validation sets together using fixed hyper-parameters.
193
+
194
+ # 4.3 COMPARISON WITH OTHER METHODS
195
+
196
+ We compare the performance of our approach AWGIM on two datasets with several state-of-theart methods proposed in recent years. The results of MAML, Prototypical Nets, Relation Nets on tieredImageNet are evaluated by Liu et al. (2019). The results of Dynamic on miniImageNet with WRN-28-10 as the feature extractor is reported in (Gidaris & Komodakis, 2019). The other results are reported in the corresponding original papers. We also include the backbone network structure of the used feature extractor for reference. The results on miniImageNet and tieredImageNet are shown in Table 1 and 2 respectively.
197
+
198
+ The top half parts of Table 1 and 2 display the methods belonging with different meta learning categories, such as metric-based(Matching Networks, Prototypical Nets), gradient-based (MAML, MTL), graph-based (TPN). The bottom part shows the classification weights generation approaches including Dynamic, Prediction, DAE-GNN, LEO and our proposed AWGIM.
199
+
200
+ AWGIM can outperform all the methods in top parts of two table. Comparing with other classification weights generation methods in the bottom part, AWGIM still shows very competitive performance, namely the best on tieredImageNet and close to the state-of-the-art on miniImageNet. We note that all the classification weights generation methods are using WRN-28-10 as backbone network, which makes the comparison fair. In particular, AWGIM can outperform LEO in all settings.
201
+
202
+ # 4.4 ANALYSIS
203
+
204
+ Table 3: Analysis of our proposed AWGIM. In the top half, the attentive path is removed to compare with LEO. In the bottom part, ablation analysis with respective to different components is provided. We also shuffle the generated classification weights randomly to show that they are indeed optimal for different query samples.
205
+
206
+ <table><tr><td rowspan="2">Model</td><td colspan="2">miniImageNet</td><td colspan="2">tieredImageNet</td></tr><tr><td>5-way 1-shot</td><td>5-way 5-shot</td><td> 5-way 1-shot</td><td>5-way 5-shot</td></tr><tr><td>LEO</td><td>61.76 %</td><td>77.59 %</td><td>66.33%</td><td>81.44 %</td></tr><tr><td>Generator in LEO</td><td>60.33 %</td><td>74.53 %</td><td>65.17%</td><td>78.77 %</td></tr><tr><td>Generator conditioned on S only</td><td>61.02%</td><td>74.33%</td><td>66.22%</td><td>79.66%</td></tr><tr><td>Generator conditioned on S with IM</td><td>62.04%</td><td>77.54%</td><td>66.43%</td><td>81.73%</td></tr><tr><td>MLP encoding,入1 = 入2= 入3=0</td><td>58.95%</td><td>71.68%</td><td>63.92%</td><td>75.80%</td></tr><tr><td>MLP encoding</td><td>62.26%</td><td>76.91%</td><td>65.84%</td><td>79.24%</td></tr><tr><td>入1=λ2=λ3=0</td><td>61.61%</td><td>74.14%</td><td>65.65%</td><td>79.93%</td></tr><tr><td>入1=入2=0</td><td>62.06%</td><td>74.18%</td><td>65.85%</td><td>80.42%</td></tr><tr><td>入3=0</td><td>62.91%</td><td>77.88%</td><td>67.27%</td><td>81.67%</td></tr><tr><td>入1=0</td><td>62.19%</td><td>74.21%</td><td>66.82%</td><td>80.61%</td></tr><tr><td>2=入g=0</td><td>62.12%</td><td>77.65%</td><td>66.86%</td><td>81.03%</td></tr><tr><td>random shuffle in class</td><td>62.87%</td><td>77.48%</td><td>67.52%</td><td>82.55%</td></tr><tr><td>random shuffle between classes</td><td>61.20%</td><td>77.48%</td><td>66.55%</td><td>82.53%</td></tr><tr><td>AWGIM (ours)</td><td>63.12%</td><td>78.40%</td><td>67.69 %</td><td>82.82%</td></tr></table>
207
+
208
+ We perform detailed analysis on AWGIM, shown in Table 3. We include the results of LEO Rusu et al. (2019) for reference. “Generator in LEO” means that there is no inner update in LEO. In the upper part of the table, we first studied the effect of attentive path. We implemented two generators including only the contextual path during encoding. “Generator conditioned on $s$ with IM” indicates that we add the cross entropy loss and reconstruction loss for support set. It can be observed that “Generator conditioned on $s$ only” is trained with cross entropy on query set, which is similar to “Generator in LEO” without inner update. It is able to achieve similar or slightly better results than “Generator in LEO”, which implies that self-attention is no worse than relation networks used in LEO to model task-context. With information maximization, our generator is able to obtain slightly better performance than LEO.
209
+
210
+ The effect of attention is investigated by replacing the attention modules with 2-layer MLPs, which is shown as “MLP encoding”. More specifically, one MLP in contextual path is used for support set and another MLP in attentive path for query samples. We can see that even without attention to encode the task-contextual information, “MLP encoding” can achieve accuracy close to LEO, for the sake of information maximization. However, if we let $\lambda _ { 1 } = \lambda _ { 2 } = \lambda _ { 3 } = 0$ for MLP encoding, the performance drops significantly, which demonstrates the importance of maximizing the information.
211
+
212
+ We conducted ablation analysis with respective to $\lambda _ { 1 } , \lambda _ { 2 }$ and $\lambda _ { 3 }$ to investigate the effect of information maximization. First, $\lambda _ { 1 }$ , $\lambda _ { 2 }$ and $\lambda _ { 3 }$ are all set to be 0. In this case, the accuracy is similar to “generator conditioned on $s$ only”, showing that the generated classification weights are not fitted for different query samples, even with the attentive path. It can also be observed that maximizing the mutual information between weights and support is more crucial since $\lambda _ { 1 } = \lambda _ { 2 } = 0$ degrades accuracy significantly, comparing with $\lambda _ { 3 } = 0$ . We further investigate the relative importance of the classification on support as well as reconstruction. $\lambda _ { 1 } = 0$ affects the performance noticeably. We conjecture that the support label prediction is more critical for information maximization.
213
+
214
+ The classification weights are generated specifically for each query sample in AWGIM. To this point, we shuffle the classification weights between query samples within the same classes and between different classes as well to study whether the classification weights are adapted for different query samples. Assume there are T query samples per class in one task. Wf inal ∈ R|Q|×N×d can be reshaped into Wf inal $\mathbf { W } ^ { f i n a l } \in \mathbb { R } ^ { N \times T \times N \times \bar { d } }$ . Then we shuffle this weight tensor along the first and second axis randomly. The results are shown as “random shuffle between classes” and “random shuffle in class” in Table 3. For 5-way 1-shot experiments, the random shuffle between classes degrades the accuracy noticeably while the random shuffle in class dose not affect too much. This indicates that when the support data are very limited, the generated weights for query samples from the same class are very similar to each other while distinct for different classes. When there are more labeled data in support set, two kinds of random shuffle show very close or even the same results in 5-way 5-shot experiments, which are both worse than the original ones. This implies that the generated classification weights are more diverse and specific for each query sample in 5-way 5-shot setting. The possible reason is that larger support set provides more knowledge to estimate the optimal classification weights for each query example.
215
+
216
+ More analysis is provided in Appendix A.3.
217
+
218
+ # 5 CONCLUSION
219
+
220
+ In this work, we introduce Attentive Weights Generation via Information Maximization (AWGIM) for few shot image classification. AWGIM learns to generate optimal classification weights for each query sample within the task by two encoding paths. To guarantee this, the lower bound of mutual information between generated weights and query, support data is maximized. As far as we know, AWGIM is the first work utilizing mutual information techniques for few shot learning. The effectiveness of AWGIM is demonstrated by state-of-the-art performance on two benchmark datasets and extensive analysis.
221
+
222
+ # REFERENCES
223
+
224
+ Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
225
+ Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, Brendan Shillingford, and Nando De Freitas. Learning to learn by gradient descent by gradient descent. In NeurIPS, 2016.
226
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015.
227
+ David Barber and Felix V Agakov. The im algorithm: a variational approach to information maximization. In NeurIPS, 2003.
228
+ Luca Bertinetto, Joao F Henriques, Philip Torr, and Andrea Vedaldi. Meta-learning with differentiable closed-form solvers. In ICLR, 2019.
229
+ Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In NeurIPS, 2016.
230
+ Zitian Chen, Yanwei Fu, Yu-Xiong , Lin Ma, Wei Liu, and Martial Hebert. Image deformation meta-networks for one-shot learning. In CVPR, 2019.
231
+
232
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009.
233
+
234
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
235
+
236
+ Li Fei-Fei, Rob Fergus, and Pietro Perona. One-shot learning of object categories. TPAMI, 2006.
237
+
238
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017.
239
+
240
+ Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, 2018.
241
+
242
+ Spyros Gidaris and Nikos Komodakis. Generating classification weights with gnn denoising autoencoders for few-shot learning. In CVPR, 2019.
243
+
244
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
245
+
246
+ R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. ICLR, 2019.
247
+
248
+ Hyunjik Kim, Andriy Mnih, Jonathan Schwarz, Marta Garnelo, Ali Eslami, Dan Rosenbaum, Oriol Vinyals, and Yee Whye Teh. Attentive neural processes. In ICLR, 2019.
249
+
250
+ Gregory Koch, Richard Zemel, and Ruslan Salakhutdinov. Siamese neural networks for one-shot image recognition. In ICML Deep Learning Workshop, 2015.
251
+
252
+ Ranjay Krishna, Michael Bernstein, and Li Fei-Fei. Information maximizing visual question generation. In CVPR, 2019.
253
+
254
+ Kwonjoon Lee, Subhransu Maji, Avinash Ravichandran, and Stefano Soatto. Meta-learning with differentiable convex optimization. In CVPR, 2019.
255
+
256
+ Hongyang Li, David Eigen, Samuel Dodge, Matthew Zeiler, and Xiaogang Wang. Finding taskrelevant features for few-shot learning by category traversal. In CVPR, 2019a.
257
+
258
+ Wenbin Li, Lei Wang, Jinglin Xu, Jing Huo, Yang Gao, and Jiebo Luo. Revisiting local descriptor based image-to-class measure for few-shot learning. In CVPR, 2019b.
259
+
260
+ Yann Lifchitz, Yannis Avrithis, Sylvaine Picard, and Andrei Bursuc. Dense classification and implanting for few-shot learning. In CVPR, 2019.
261
+
262
+ Yanbin Liu, Juho Lee, Minseop Park, Saehoon Kim, Eunho Yang, Sung Ju Hwang, and Yi Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. In ICLR, 2019.
263
+
264
+ Ilya Loshchilov and Frank Hutter. Fixing weight decay regularization in adam. arXiv preprint arXiv:1711.05101, 2017.
265
+
266
+ Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. JMLR, 2008.
267
+
268
+ Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. A simple neural attentive metalearner. In ICLR, 2018.
269
+
270
+ Tsendsuren Munkhdalai and Hong Yu. Meta networks. In ICML, 2017.
271
+
272
+ Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Łukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. ICML, 2018.
273
+
274
+ Hang Qi, Matthew Brown, and David G Lowe. Low-shot learning with imprinted weights. In CVPR, 2018.
275
+
276
+ Siyuan Qiao, Chenxi Liu, Wei Shen, and Alan L Yuille. Few-shot image recognition by predicting parameters from activations. In CVPR, 2018.
277
+
278
+ Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In ICLR, 2016.
279
+
280
+ Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B Tenenbaum, Hugo Larochelle, and Richard S Zemel. Meta-learning for semi-supervised few-shot classification. In ICLR, 2018.
281
+
282
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 2015.
283
+
284
+ Andrei A Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. Meta-learning with latent embedding optimization. In ICLR, 2019.
285
+
286
+ Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. In NeurIPS, 2017.
287
+
288
+ Jurgen Schmidhuber. Evolutionary principles in self-referential learning, or on learning how to¨ learn: the meta-meta-... hook. PhD thesis, 1987.
289
+
290
+ David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, et al. A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science, 362(6419):1140– 1144, 2018.
291
+
292
+ Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In NeurIPS, 2017.
293
+
294
+ Qianru Sun, Yaoyao Liu, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning for few-shot learning. In CVPR, 2019.
295
+
296
+ Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip HS Torr, and Timothy M Hospedales. Learning to compare: Relation network for few-shot learning. In CVPR, 2018.
297
+
298
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017.
299
+
300
+ Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In NeurIPS, 2016.
301
+
302
+ Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. arXiv preprint arXiv:1905.09418, 2019.
303
+
304
+ Yu-Xiong Wang, Ross Girshick, Martial Hebert, and Bharath Hariharan. Low-shot learning from imaginary data. In CVPR, 2018.
305
+
306
+ Davis Wertheimer and Bharath Hariharan. Few-shot learning with localization in realistic settings. In CVPR, 2019.
307
+
308
+ Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015.
309
+
310
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
311
+
312
+ Ruixiang Zhang, Tong Che, Zoubin Ghahramani, Yoshua Bengio, and Yangqiu Song. Metagan: An adversarial approach to few-shot learning. In NeurIPS, 2018.
313
+
314
+ # A APPENDIX
315
+
316
+ # A.1 MUTLI-HEAD ATTENTION IN AWGIM
317
+
318
+ The multi-head attention can be described as
319
+
320
+ $$
321
+ M u l t i H e a d ( Q , K , V ) = C o n c a t ( h e a d _ { 1 } , . . . , h e a d _ { H } ) W ^ { O } ,
322
+ $$
323
+
324
+ $$
325
+ h e a d _ { i } ( Q ^ { i } , K ^ { i } , V ^ { i } ) = A t t e n t i o n ( Q ^ { i } , K ^ { i } , V ^ { i } ) ,
326
+ $$
327
+
328
+ $$
329
+ A t t e n t i o n ( Q , K , V ) = s o f t m a x ( \frac { Q K ^ { T } } { \sqrt { d _ { k } } } V ) ,
330
+ $$
331
+
332
+ $$
333
+ Q ^ { i } = Q W _ { Q } ^ { i } , K ^ { i } = K W _ { K } ^ { i } , V ^ { i } = V W _ { V } ^ { i } ,
334
+ $$
335
+
336
+ Here $Q , K , V$ are query, key, value matrices. $W _ { Q } ^ { i } , W _ { K } ^ { i } , W _ { V } ^ { i }$ are the weight matrices for $i$ th head. $W ^ { O }$ is the weight matrix for output. $d _ { k }$ is the dimension of keys. Original $Q$ is added to the output of Equation 16 to stabilize the training as residual learning.
337
+
338
+ # A.2 MODEL DETAILS
339
+
340
+ # A.2.1 CONTEXTUAL PATH
341
+
342
+ The encoding process in contextual path is realized by a simple multi-head self-attention network on support data. First, ${ \bf x } ^ { c _ { n } ; k }$ are mapped to a lower dimensional hidden space by a MLP $f _ { 1 } : \mathbb { R } ^ { d } $ $\mathbb { R } ^ { d _ { h } }$ to reduce the computation complexity. Then the low-dimensional representations $\mathbf { x } _ { h 1 } ^ { c _ { n } ; k }$ are processed by the -head self-attention network $f _ { c p } ^ { s a } : \mathbb { R } ^ { d _ { h } } \mathbb { R } ^ { d _ { h } }$ ,
343
+
344
+ $$
345
+ { \bf X } ^ { c p } = M u l t i H e a d A t t e n t i o n ( Q = { \bf X } _ { h 1 } , K = { \bf X } _ { h 1 } , V = { \bf X } _ { h 1 } ) .
346
+ $$
347
+
348
+ $\mathbf { X } _ { h 1 } \in \mathbb { R } ^ { N K \times d _ { h } }$ is the matrix where each row stands for one support sample $\mathbf { x } _ { h 1 } ^ { c _ { n } ; k }$ . For one $N$ -way $K$ -shot task, the outputs of $f _ { c p } ^ { s a }$ .
349
+
350
+ # A.2.2 ATTENTIVE PATH
351
+
352
+ The attentive path is instantiated by attention, similar to contextual path. First, a MLP $f _ { 2 } : \mathbb { R } ^ { d } $ $\mathbb { R } ^ { d _ { h } }$ is used to map both ${ \bf x } ^ { c _ { n } ; k }$ and $\hat { \bf x }$ to $\mathbf { x } _ { h 2 } ^ { c _ { n } ; k }$ and $\hat { \mathbf { x } } _ { h 2 }$ . Then we employ another $H$ -head selfattention network $f _ { a p } ^ { s a } : \mathbb { R } ^ { d _ { h } } \mathbb { R } ^ { d _ { h } }$ on $\mathbf { x } _ { h 2 } ^ { c _ { n } ; k }$ to encode the global task information to each support sample,
353
+
354
+ $$
355
+ { \bf X } ^ { a p } = M u l t i H e a d A t t e n t i o n ( Q = { \bf X } _ { h 2 } , K = { \bf X } _ { h 2 } , V = { \bf X } _ { h 2 } ) .
356
+ $$
357
+
358
+ The cross attention between query and context-aware support samples are computed as
359
+
360
+ $$
361
+ { \hat { \bf X } } ^ { a p } = M u l t i H e a d A t t e n t i o n ( Q = { \hat { \bf X } } _ { h 2 } , K = { \bf X } _ { h 2 } , V = { \bf X } ^ { a p } ) .
362
+ $$
363
+
364
+ Here $\hat { \mathbf { X } } ^ { a p } \in \mathbb { R } ^ { | \mathcal { Q } | \times d _ { h } }$ is the matrix form of $\hat { \mathbf { x } } _ { q }$ , where each query sample is context-aware.
365
+
366
+ # A.2.3 WEIGHT GENERATOR
367
+
368
+ Assume $\mathbf { x } ^ { c p \oplus a p } = \mathbf { X } _ { i , j , : } ^ { c p \oplus a p } \in \mathbb { R } ^ { 2 d _ { h } }$ , where $i , j$ stands for $i$ th query sample and $j$ th support sample. $\mathbf { x } ^ { c p \oplus a p }$ is decoded by the weights generator $g : \mathbb { R } ^ { 2 d _ { h } } \mathbb { R } ^ { 2 d }$ . We assume that the classification weights follow Gaussian distribution with diagonal covariance and we sample the weights from this distribution during meta-training, shown in Equation 23 and 24.
369
+
370
+ $$
371
+ \mu _ { \mathbf { w } } , \sigma _ { \mathbf { w } } = g ( \mathbf { z } )
372
+ $$
373
+
374
+ $$
375
+ \mathbf { w } \sim \mathcal { N } ( \mu _ { \mathbf { w } } , \pmb { \Sigma } _ { \mathbf { w } } )
376
+ $$
377
+
378
+ # A.3 EXPERIMENTAL ANALYSIS
379
+
380
+ # A.3.1 FEW SHOT REGRESSION
381
+
382
+ AWGIM can be applied to few shot regression task by slight modification. During meta-training, we set the number of classes $N$ equal to 1 and adapt the cross entropy loss to mean square error. We use the data points $( x , y )$ as inputs to AWGIM and generate weight as well as bias parameters for a three layer MLP with hidden dimension 40. This is consistent with few shot regression experimental setting in LEO.
383
+
384
+ The few shot regression tasks are constructed as either sinusoidal or linear regression tasks. For sinusoidal regression tasks, the amplitude range is [0.1, 5], phase range $[ 0 , 2 \pi ]$ , frequency range [0.5, 2.0]. For linear regression tasks, the slope range is $[ - 1 , 1 ]$ , intercept range $[ - 5 , 5 ]$ . Input $x$ is randomly sample from $[ - 5 , 5 ]$ . Gaussian noise with standard deviation 0.3 is added to $y$ during meta-training. We show some qualitative results in Figure 2. (a) and (b) are examples that can be tackled easily. For some non-trivial cases such as (c) and (d), AWGIM produces predictions slightly mixing with another regression family, despite that overall results are still faithful.
385
+
386
+ ![](images/df7812dbdfdc7c5baf047dcc3b50d4a47220543c760af8eaedde57f4917c7892.jpg)
387
+ Figure 2: 5-shot regression results for a multi-modal task distribution. Regression targets are plotted in red and prediction in black. 5 training samples per task are plotted with blue solid circles.
388
+
389
+ # A.3.2 EFFECT OF MULTI-HEAD ATTENTION
390
+
391
+ We replace the multi-head attention in the two paths with single-head attention and conduct the 5- way 1-shot and 5-way 5-shot experiments on miniImageNet dataset. The results are shown in Table 4. We can see clearly that multi-head attention improve the performance. In particular, for 5-way 1-shot experiment, single head attention gives results close to MLP encoding, which indicates that single head attention struggles when data are extremely scarce.
392
+
393
+ Table 4: Accuracy results on miniImageNet with 4 heads or single head in attention networks.
394
+
395
+ <table><tr><td>Method</td><td>5-way 1 -shot</td><td> 5-way 5-shot</td></tr><tr><td>4 heads</td><td>63.12%</td><td>78.40%</td></tr><tr><td>single head</td><td>62.35%</td><td>77.75%</td></tr></table>
396
+
397
+ # A.3.3 CONVERGENCE
398
+
399
+ We compare AWGIM with LEO in terms of convergence speed. The batch size is set to be 16 for both methods. We use the hyper-parameters tuned by authors to train LEO. The accuracy of metavalidation set during meta-training on 5-way 1-shot miniImageNet is plotted, shown in Figure 3. we can see clearly that AWGIM converges faster than LEO and outperforms LEO except for the first few iterations.
400
+
401
+ ![](images/70012493ad6568c4a0bf7152014453a6a19cdde405da29751675aab5579ea992.jpg)
402
+ Figure 3: The meta-validation accuracy during meta-training.
403
+
404
+ # A.3.4 INFERENCE TIME
405
+
406
+ We measure the inference time of AWGIM to show that it induces minimal computational overhead. In comparison, we use “MLP encoding” in two paths, which has time complexity $O ( N K + | \mathcal { Q } | )$ . We use two set-ups on miniImageNet and the batch size is set to be 64. 100 batches are processed and we report the average consumed time for one batch. All these experiments on done with the same GPU and workstation. The results are shown in Table 5. It can be observed that the usage of self-attention and cross attention in AWGIM occurs negligible overhead, compared with MLP encoding. This is because the values of $N , K , | \mathcal { Q } |$ are all relatively small and matrix multiplication further can be processed very fast by GPU.
407
+
408
+ Table 5: The comparison of inference time between AWGIM and MLP encoding.
409
+
410
+ <table><tr><td>Method</td><td>5-way 1 -shot</td><td>5-way 5-shot</td></tr><tr><td>AWGIM</td><td>0.036s</td><td>0.093s</td></tr><tr><td>MLP encoding</td><td>0.033s</td><td>0.093s</td></tr></table>
411
+
412
+ # A.3.5 VISUALIZATION
413
+
414
+ We visualize the generated classification weights by t-SNE (Maaten & Hinton, 2008). First we sample 400 tasks from meta-validation set of 5-way 1-shot miniImageNet experiment. Each task contains 5 query samples from 5 different classes. Thus in total there are $4 0 0 \times 5 \times 5 = 1 0 , 0 0 0$ weight vectors to visualize. As comparison, inputs to the generator $g$ are also plotted. The visualization results are shown in Figure 4. The inputs to $g$ are displayed in (a, b) and the generated classification weights in (c, d). From the comparison between (a) and (c), we can see the decoded weights for each class in (c) are clustered closer than (a) in general. Red and blue dots in (b, d) denotes the classification weights for two query samples from two classes within one task. It can be observed that $g$ can generate adapted weights for different query samples. This is consistent with Table 3, where the results of “random shuffle between classes” suggest that query samples from different class have distinct classification weights.
415
+
416
+ ![](images/7279dd6a6dd60341910d31f04f08cc86bd5dc1b2d43395c825b56188a42d47cb.jpg)
417
+ Figure 4: t-SNE visualization of the inputs to $g$ in (a, b) and the generated classification weights in (c, d). Blue and red dots in (b) and (d) are the classification weights for two query samples in the same task.
parse/train/BJxpIJHKwB/BJxpIJHKwB_content_list.json ADDED
@@ -0,0 +1,2121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ATTENTIVE WEIGHTS GENERATION FOR FEW SHOTLEARNING VIA INFORMATION MAXIMIZATION",
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": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
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": "Few shot image classification aims at learning a classifier from limited labeled data. Generating the classification weights has been applied in many metalearning approaches for few shot image classification due to its simplicity and effectiveness. However, we argue that it is difficult to generate the exact and universal classification weights for all the diverse query samples from very few training samples. In this work, we introduce Attentive Weights Generation for few shot learning via Information Maximization (AWGIM), which addresses current issues by two novel contributions. i) AWGIM generates different classification weights for different query samples by letting each of query samples attends to the whole support set. ii) To guarantee the generated weights adaptive to different query sample, we re-formulate the problem to maximize the lower bound of mutual information between generated weights and query as well as support data. As far as we can see, this is the first attempt to unify information maximization into few shot learning. Both two contributions are proved to be effective in the extensive experiments and we show that AWGIM is able to achieve state-of-the-art performance on benchmark datasets. ",
40
+ "bbox": [
41
+ 233,
42
+ 266,
43
+ 764,
44
+ 488
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 516,
55
+ 336,
56
+ 532
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "While deep learning methods achieve great success in domains such as computer vision (He et al., 2016), natural language processing (Devlin et al., 2018), reinforcement learning (Silver et al., 2018), their hunger for large amount of labeled data limits the application scenarios where only a few data are available for training. Humans, in contrast, are able to learn from limited data, which is desirable for deep learning methods. Few shot learning is thus proposed to enable deep models to learn from very few samples (Fei-Fei et al., 2006). ",
63
+ "bbox": [
64
+ 174,
65
+ 547,
66
+ 825,
67
+ 631
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Meta learning is by far the most popular and promising approach for few shot problems (Vinyals et al., 2016; Finn et al., 2017; Snell et al., 2017; Ravi & Larochelle, 2016; Rusu et al., 2019). In meta learning approaches, the model extracts high level knowledge across different tasks so that it can adapt itself quickly to a new-coming task (Schmidhuber, 1987; Andrychowicz et al., 2016). There are several kinds of meta learning methods for few shot learning, such as gradient-based (Finn et al., 2017; Ravi & Larochelle, 2016) and metric-based (Snell et al., 2017; Sung et al., 2018). Weights generation, among these different methods, has shown effectiveness with simple formulation (Qi et al., 2018; Qiao et al., 2018; Gidaris & Komodakis, 2018; 2019). In general, weights generation methods learn to generate the classification weights for different tasks conditioned on the limited labeled data. However, fixed classification weights for different query samples within one task might be sub-optimal, due to the few shot challenge. ",
74
+ "bbox": [
75
+ 174,
76
+ 638,
77
+ 825,
78
+ 791
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "We introduce Attentive Weights Generation for few shot learning via Information Maximization (AWGIM) in this work to address these limitations. In AWGIM, the classification weights are generated for each query sample specifically. This is done by two encoding paths where the query sample attends to the task context. However, we show in experiments that simple cross attention between query samples and support set fails to guarantee classification weights fitted to diverse query data since the query-specific information is lost during weights generation. Therefore, we propose to maximize the lower bound of mutual information between generated weights and query, support data. As far as we know, AWGIM is the first work introducing Variational Information Maximization in few shot learning. The induced computational overhead is minimal due to the nature of few shot problems. Furthermore, by maximizing the lower bound of mutual information, AWGIM gets rid of inner update without compromising performance. ",
85
+ "bbox": [
86
+ 174,
87
+ 799,
88
+ 825,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 171,
98
+ 103,
99
+ 823,
100
+ 132
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "AWGIM is evaluated on two benchmark datasets and shows state-of-the-art performance. We also conducted detailed analysis to validate the contribution of each component in AWGIM. ",
107
+ "bbox": [
108
+ 173,
109
+ 138,
110
+ 823,
111
+ 167
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORKS ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 189,
122
+ 354,
123
+ 205
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "2.1 FEW SHOT LEARNING ",
130
+ "text_level": 1,
131
+ "bbox": [
132
+ 176,
133
+ 222,
134
+ 364,
135
+ 236
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "Learning from few labeled training data has received growing attentions recently. Most successful existing methods apply meta learning to solve this problem and can be divided into several categories. In the gradient-based approaches, an optimal initialization for all tasks is learned (Finn et al., 2017). Ravi & Larochelle (2016) learned a meta-learner LSTM directly to optimize the given fewshot classification task. Sun et al. (2019) learned the transformation for activations of each layer by gradients to better suit the current task. ",
142
+ "bbox": [
143
+ 174,
144
+ 247,
145
+ 825,
146
+ 332
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "In the metric-based methods, a similarity metric between query and support samples is learned. (Koch et al., 2015; Vinyals et al., 2016; Snell et al., 2017; Sung et al., 2018; Li et al., 2019a). Spatial information or local image descriptors are also considered in some works to compute richer similarities (Lifchitz et al., 2019; Li et al., 2019b; Wertheimer & Hariharan, 2019). ",
153
+ "bbox": [
154
+ 174,
155
+ 339,
156
+ 825,
157
+ 395
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Generating the classification weights directly has been explored by some works. Gidaris & Komodakis (2018) generated classification weights as linear combinations of weights for base and novel classes. Similarly, Qiao et al. (2018) and Qi et al. (2018) both generated the classification weights from activations of a trained feature extractor. Graph neural network denoising autoencoders are used in (Gidaris & Komodakis, 2019). Munkhdalai & Yu (2017) proposed to generate “fast weights” from the loss gradient for each task. All these methods do not consider generating different weights for different query examples, nor maximizing the mutual information. ",
164
+ "bbox": [
165
+ 174,
166
+ 401,
167
+ 825,
168
+ 500
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "There are some other methods for few-shot classification. Generative models are used to generate or hallucinate more data in (Zhang et al., 2018; Wang et al., 2018; Chen et al., 2019). Bertinetto et al. (2019) and Lee et al. (2019) used the closed-form solutions directly for few shot classification. Liu et al. (2019) integrated label propagation on a transductive graph to predict the query class label. ",
175
+ "bbox": [
176
+ 174,
177
+ 506,
178
+ 825,
179
+ 563
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "2.2 ATTENTION ",
186
+ "text_level": 1,
187
+ "bbox": [
188
+ 174,
189
+ 580,
190
+ 295,
191
+ 594
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "Attention mechanism shows great success in computer vision (Xu et al., 2015; Parmar et al., 2018) and natural language processing (Bahdanau et al., 2015; Vaswani et al., 2017). It is effective in modeling the interaction between queries and key-value pairs from certain context. Based on the fact that keys and queries point to the same entities or not, people refer to attention as self attention or cross attention. In this work, we use both types of attention to encode the task and query-task information. The work most similar to ours is Attentive Neural Processes (Kim et al., 2019), which also employs self and cross attention. However, we are using attention for few-shot image classification via maximizing the mutual information. In stark contrast, Kim et al. (2019) worked on regression from the perspective of a stochastic process and the variational objective is optimized. ",
198
+ "bbox": [
199
+ 174,
200
+ 607,
201
+ 825,
202
+ 733
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "2.3 MUTUAL INFORMATION ",
209
+ "text_level": 1,
210
+ "bbox": [
211
+ 174,
212
+ 751,
213
+ 382,
214
+ 765
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "Given two random variables $\\mathbf { X }$ and $\\mathsf { y }$ , mutual information $I ( { \\bf x } ; { \\bf y } )$ measures the decrease of uncertainty in one random variable when another is known. It is defined as the Kullback-Leibler divergence between joint distribution $p ( \\mathbf { x } , \\mathbf { y } )$ and product of marginal distributions $p ( \\mathbf { x } ) \\otimes p ( \\mathbf { y } )$ , ",
221
+ "bbox": [
222
+ 173,
223
+ 777,
224
+ 825,
225
+ 820
226
+ ],
227
+ "page_idx": 1
228
+ },
229
+ {
230
+ "type": "equation",
231
+ "img_path": "images/a5c5aceddcad5349f89ef0ff593cc9e307d3cc83ab1b05115265cea9c48d5a58.jpg",
232
+ "text": "$$\nI ( \\mathbf { x } ; \\mathbf { y } ) = D _ { \\mathrm { K L } } ( p ( \\mathbf { x } , \\mathbf { y } ) \\| p ( \\mathbf { x } ) \\otimes p ( \\mathbf { y } ) ) .\n$$",
233
+ "text_format": "latex",
234
+ "bbox": [
235
+ 372,
236
+ 828,
237
+ 624,
238
+ 847
239
+ ],
240
+ "page_idx": 1
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "When x and y are independent, $p ( \\mathbf { x } , \\mathbf { y } ) = p ( \\mathbf { x } ) \\otimes p ( \\mathbf { y } )$ so that $I ( { \\bf x } , { \\bf y } ) = 0$ , indicating that knowing $\\mathbf { X }$ does not reveal any information about y. When y is a deterministic function of $\\mathbf { X }$ , $I ( \\mathbf { x } , \\mathbf { y } )$ achieves its maximum value. Mutual information has been widely applied in applications such as Generative Adversarial Networks(Chen et al., 2016), self-supervised learning(Hjelm et al., 2019), visual question generation Krishna et al. (2019) and so on. ",
245
+ "bbox": [
246
+ 174,
247
+ 853,
248
+ 823,
249
+ 924
250
+ ],
251
+ "page_idx": 1
252
+ },
253
+ {
254
+ "type": "image",
255
+ "img_path": "images/1337a8d6253363eec5b99fdb1e3eb590ae641d0447bd8c18d057cba309ac3b81.jpg",
256
+ "image_caption": [
257
+ "Figure 1: The overview of our proposed AWGIM. The input task is 5-way 1-shot with $\\mathbf { X }$ as support set and $\\hat { \\bf x }$ as one query example. Different colors of the data in support set indicate different categories. The encoding process in contextual path produces context-aware support representations $\\mathbf { X } ^ { c p }$ . Similarly, the attentive path enables the query sample $\\hat { \\bf x }$ to be equipped with task knowledge. Both paths are achieved by attention mechanism. $\\hat { \\mathbf { x } } ^ { a p }$ is repeated to concatenate with $\\mathbf { X } ^ { c p }$ . The weight generator $g$ takes these concatenated representations as input to generate classification weights W specific for $\\hat { \\bf x }$ , denoted by the colorful matrix with slash. It can be used to predict the class label for $\\hat { \\bf x }$ and X. W is also used to reconstruct the inputs of the generator $g$ by two networks $r _ { 1 }$ and $r _ { 2 }$ . In this way, the lower bound of mutual information is maximized and $g$ is forced to generate classification weights sensitive to different query samples. "
258
+ ],
259
+ "image_footnote": [],
260
+ "bbox": [
261
+ 233,
262
+ 65,
263
+ 771,
264
+ 291
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "3 PROPOSED METHOD ",
271
+ "text_level": 1,
272
+ "bbox": [
273
+ 176,
274
+ 448,
275
+ 377,
276
+ 464
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "In this section, we provide the problem formulation first. Then the proposed model is described in Sec. 3.3. The objective function, which maximizes the mutual information between certain variables, and theoretical analysis are provided in Sec. 3.4. ",
283
+ "bbox": [
284
+ 174,
285
+ 481,
286
+ 825,
287
+ 522
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "3.1 PROBLEM FORMULATION ",
294
+ "text_level": 1,
295
+ "bbox": [
296
+ 174,
297
+ 540,
298
+ 392,
299
+ 554
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "Following many popular meta-learning methods for few shot classification, we formulate the problem under episodic training paradigm (Vinyals et al., 2016; Finn et al., 2017). One $N$ -way $K$ -shot task sampled from an unknown task distribution $P ( \\tau )$ includes support set and query set: ",
306
+ "bbox": [
307
+ 173,
308
+ 566,
309
+ 825,
310
+ 609
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "equation",
316
+ "img_path": "images/0de867923f89b0805ac52d436041277cdab8febfac60733b5ef9e8d07f3f4bde.jpg",
317
+ "text": "$$\n{ \\mathcal { T } } = ( { \\mathcal { S } } , { \\mathcal { Q } } ) ,\n$$",
318
+ "text_format": "latex",
319
+ "bbox": [
320
+ 455,
321
+ 616,
322
+ 542,
323
+ 633
324
+ ],
325
+ "page_idx": 2
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "where $\\mathcal { S } = \\{ ( \\mathbf { x } ^ { c _ { n } ; k } , \\mathbf { y } ^ { c _ { n } ; k } ) | k = 1 , . . . , K ; n = 1 , . . . , N \\}$ , $\\mathcal { Q } = \\{ ( \\hat { \\mathbf { x } } _ { 1 } , . . . , \\hat { \\mathbf { x } } _ { | \\mathcal { Q } | } ) \\}$ . Support set $s$ contains $N K$ labeled samples. Query set $\\mathcal { Q }$ includes $\\hat { \\bf x }$ and we need to predict label $\\hat { \\mathbf { y } }$ for $\\hat { \\bf x }$ based on $s$ . During meta-training, the meta-loss is estimated on $\\mathcal { Q }$ to optimize the model. During metatesting, the performance of meta-learning method is evaluated on $\\mathcal { Q }$ , provided the labeled $s$ . The classes used in meta-training and meta-testing are disjoint so that the meta-learned model needs to learn the knowledge transferable across tasks and adapt itself quickly to novel tasks. ",
330
+ "bbox": [
331
+ 173,
332
+ 638,
333
+ 825,
334
+ 724
335
+ ],
336
+ "page_idx": 2
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "Our proposed approach follows the general framework to generate the classification weights (Qi et al., 2018; Qiao et al., 2018; Rusu et al., 2019; Gidaris & Komodakis, 2018; 2019). In this framework, there is a feature extractor to output image feature embeddings. The meta-learner needs to generate the classification weights for different tasks. ",
341
+ "bbox": [
342
+ 174,
343
+ 731,
344
+ 825,
345
+ 787
346
+ ],
347
+ "page_idx": 2
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "3.2 LATENT EMBEDDING OPTIMIZATION ",
352
+ "text_level": 1,
353
+ "bbox": [
354
+ 176,
355
+ 804,
356
+ 470,
357
+ 819
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Latent Embedding Optimization (LEO) (Rusu et al., 2019) is one of the weights generation methods that is most related to our work. In LEO, the latent code $_ z$ is generated by $h$ conditioned on support set $s$ , described as $z = h ( S )$ . $h$ is instantiated as relation networks (Santoro et al., 2017). Classification weights $\\pmb { w }$ can be decoded from $_ { z }$ with $l$ , $w = l ( z )$ . In the inner loop, we use $\\pmb { w }$ to compute the loss (usually cross entropy) on the support set and then update $_ z$ : ",
364
+ "bbox": [
365
+ 174,
366
+ 830,
367
+ 825,
368
+ 901
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "equation",
374
+ "img_path": "images/1a8f1648970e8cb0965b908fe05c3d331b98ca8281d97df1aaa73f35151166b4.jpg",
375
+ "text": "$$\n\\begin{array} { r } { z ^ { \\prime } = z - \\eta \\nabla _ { z } \\mathcal { L } _ { \\mathcal { S } } ( \\pmb { w } ) , } \\end{array}\n$$",
376
+ "text_format": "latex",
377
+ "bbox": [
378
+ 423,
379
+ 907,
380
+ 573,
381
+ 925
382
+ ],
383
+ "page_idx": 2
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "where $\\mathcal { L } _ { S }$ indicates that the loss is evaluated on $s$ only. The updated latent code $z ^ { \\prime }$ is used to decode new classification weights $\\mathbf { \\Delta } \\mathbf { w ^ { \\prime } }$ with generating function $l$ . $\\mathbf { \\Delta } _ { \\mathbf { \\ b { w } } ^ { \\prime } }$ is adopted in the outer loop for query set $\\mathcal { Q }$ and the objective function of LEO then can be written as ",
388
+ "bbox": [
389
+ 173,
390
+ 103,
391
+ 823,
392
+ 145
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "equation",
398
+ "img_path": "images/2776c5a7aa8f78186817e0baf926d489cbb0a4f2d8bcf4b2c986d290fa80b5b8.jpg",
399
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta } \\mathcal { L } _ { \\mathcal { Q } } ( w ^ { \\prime } ) .\n$$",
400
+ "text_format": "latex",
401
+ "bbox": [
402
+ 452,
403
+ 147,
404
+ 545,
405
+ 170
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "Here $\\theta$ stands for the parameters of $h$ and $l$ and we omit the regularization terms for clarity. LEO avoids updating high-dimensional $\\textbf { \\em w }$ in the inner loop by learning a lower-dimensional latent space, from which sampled $_ z$ can be used to generate $\\pmb { w }$ . The most significant difference between LEO and AWGIM is that we do not need inner updates to adapt the model. Instead, AWGIM is a feedforward network trained to maximize the mutual information so that it fits to different tasks well. On the other hand, AWGIM learns to generate optimal classification weights for each query sample while LEO generates fixed weights conditioned on the support set within one task. In Section 3.4 we will show LEO can be casted as a special case of AWGIM under certain conditions. ",
412
+ "bbox": [
413
+ 173,
414
+ 171,
415
+ 825,
416
+ 284
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "3.3 ATTENTIVE WEIGHTS GENERATION",
423
+ "text_level": 1,
424
+ "bbox": [
425
+ 176,
426
+ 299,
427
+ 464,
428
+ 314
429
+ ],
430
+ "page_idx": 3
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "The framework of our proposed method is shown in Figure 1. Assume that we have a feature extractor, which can be a simple 4-layer Convnet or a deeper Resnet. All the images included in the sampled task $\\tau$ are processed by this feature extractor and represented as $d$ -dimensional vectors afterwards, i.e., $\\mathbf { x } ^ { c _ { n } ; k } , \\hat { \\mathbf { x } } \\in \\mathbb { R } ^ { d }$ . There are two paths to encode the task context and the individual query sample respectively, which are called contextual path and attentive path. The outputs of both paths are concatenated together as input to the generator for classification weights. Generated classification weights are used to not only predict the label of $\\hat { \\bf x }$ , but also maximize the lower bound of mutual information between itself and other variables, which will be discussed in the following section 3.4. ",
435
+ "bbox": [
436
+ 174,
437
+ 325,
438
+ 825,
439
+ 450
440
+ ],
441
+ "page_idx": 3
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "3.3.1 CONTEXTUAL AND ATTENTIVE PATHS ",
446
+ "text_level": 1,
447
+ "bbox": [
448
+ 176,
449
+ 465,
450
+ 486,
451
+ 479
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "The encoding process includes two paths, namely the contextual path and attentive path. The contextual path aims at learning representations for only the support set with a multi-head self-attention network $f _ { s a } ^ { c p }$ (Vaswani et al., 2017). The outputs of contextual path ${ \\bf X } ^ { c p } \\in \\mathbb { R } ^ { N K \\times d _ { h } }$ 1 thus contain richer information about the task and can be used later for weights generation. ",
458
+ "bbox": [
459
+ 174,
460
+ 489,
461
+ 825,
462
+ 545
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "Existing weights generation methods generate the classification weights conditioned on the support set only, which is equivalent to using contextual path. However, the classification weights generated in this way might be sub-optimal. This is because estimating the exact and universal classification weights from very few labeled data in the support set is difficult and sometimes impossible. The generated weights are usually in lack of adaptation to different query samples. We address this issue by introducing attentive path, where the individual query example attends to the task context and then is used to generate the classification weights. Therefore, the classification weights are adaptive to different query samples and aware of the task context as well. ",
469
+ "bbox": [
470
+ 174,
471
+ 553,
472
+ 825,
473
+ 664
474
+ ],
475
+ "page_idx": 3
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "In the attentive path, a new multi-head self-attention network $f _ { s a } ^ { a p }$ on the support set is employed to encode the global task information. $f _ { s a } ^ { a p }$ is different from $f _ { s a } ^ { c p }$ in contextual path because the selfattention network in contextual path emphasizes on generating the classification weights. On the contrary, outputs of self-attention here plays the role of providing the V alue context for different query samples to attend in the following cross attention. Sharing the same self-attention networks might limit the expressiveness of learned representations in both paths. The cross attention network $f _ { c a } ^ { a p }$ applied on each query sample and task-aware support set is followed to produce $\\hat { \\bf X } ^ { a p } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times d _ { h } }$ . ",
480
+ "bbox": [
481
+ 174,
482
+ 670,
483
+ 825,
484
+ 771
485
+ ],
486
+ "page_idx": 3
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "We use multi-head attention with $h$ heads in both paths. In one attention block, we produce $h$ different sets of queries, keys and values. Multi-head attention is claimed to be able to learn more comprehensive and expressive representations from $h$ different subspaces (Vaswani et al., 2017; Voita et al., 2019). More details of these two paths can be found in A.2. ",
491
+ "bbox": [
492
+ 174,
493
+ 776,
494
+ 825,
495
+ 833
496
+ ],
497
+ "page_idx": 3
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "3.3.2 WEIGHTS GENERATOR",
502
+ "text_level": 1,
503
+ "bbox": [
504
+ 176,
505
+ 848,
506
+ 382,
507
+ 862
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "We replicate them afterwa ${ \\bf X } ^ { c p } \\in \\mathbb { R } ^ { N K \\times d _ { h } }$ anve $\\hat { \\bf X } ^ { a p } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times d _ { h } }$ r $| \\mathcal { Q } |$ $N K$ ectively and reshape. These two tensors $\\pmb { \\chi } ^ { c p } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times N K \\times d _ { h } }$ $\\hat { \\pmb { \\mathsf { X } } } ^ { a p } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times N K \\times d _ { h } }$ ",
514
+ "bbox": [
515
+ 176,
516
+ 869,
517
+ 825,
518
+ 904
519
+ ],
520
+ "page_idx": 3
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "$d _ { h } < d$ is the hidden dimension. We use matrix form here to be consistent with the description in 3.3.2. ",
525
+ "bbox": [
526
+ 181,
527
+ 910,
528
+ 812,
529
+ 924
530
+ ],
531
+ "page_idx": 3
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "are concatenated to become $\\pmb { \\chi } ^ { c p \\oplus a p } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times N K \\times 2 d _ { h } }$ . $\\mathbf { \\pmb { \\chi } } ^ { c p \\oplus a p }$ can be interpreted that each query sample has its own latent representations for support set to generate specific classification weights, which are both aware of the task-context and adaptive to individual query sample. ",
536
+ "bbox": [
537
+ 174,
538
+ 101,
539
+ 825,
540
+ 146
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "$\\mathbf { X } ^ { c p \\oplus a p }$ is decoded by the weights generator $g : \\mathbb { R } ^ { 2 d _ { h } } \\mathbb { R } ^ { 2 d }$ . We assume that the classification weights follow Gaussian distribution with diagonal covariance. $g$ outputs the distribution parameters and we sample the weights from learned distribution during meta-training. The sampled classification weights are represented as $\\pmb { \\mathsf { W } } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times N K \\times d }$ . To reduce complexity, we compute the mean value on $K$ classification weights for each class to have ${ \\pmb W } ^ { f i n a l } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times N \\times d }$ . Therefore, ith query sample has its specifican be computed by c classifica Wf inali,:,: tion weight matrix . The support data $\\pmb { \\mathsf { W } } _ { i , : , : } ^ { f i n a l } \\in \\mathbb { R } ^ { N \\times d }$ . Th for rediction for query datatimes and reshaped as $\\hat { \\mathbf { X } } \\mathbf { W } ^ { f i n a l \\mathbf { T } }$ $\\mathbf { X }$ $| \\mathcal { Q } |$ $\\pmb { \\chi } _ { s } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times N K \\times d }$ . So the prediction for support data can also be computed as ${ \\pmb x } _ { s } { \\pmb w } ^ { f i n a l { \\bf T } }$ . ",
547
+ "bbox": [
548
+ 173,
549
+ 152,
550
+ 825,
551
+ 280
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Besides the weights generator $g$ , we have another two decoders $r _ { 1 } : \\mathbb { R } ^ { d } \\mathbb { R } ^ { d _ { h } }$ and $r _ { 2 } : \\mathbb { R } ^ { d } $ $\\mathbb { R } ^ { d _ { h } }$ . They both take the generated weights $\\boldsymbol { \\mathsf { W } }$ as inputs and learn to reconstruct $\\mathbf { X } ^ { c p }$ and ${ \\hat { \\mathbf { X } } } ^ { a p }$ respectively. The outputs of $r _ { 1 }$ and $r _ { 2 }$ are denoted as $\\bar { \\pmb { \\chi } } _ { r e } ^ { c p } , \\hat { \\pmb { \\chi } } _ { r e } ^ { a p } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times N K \\times d _ { h } }$ . The reason we are using reconstruction as auxiliary tasks will be discussed in following Sec. 3.4. ",
558
+ "bbox": [
559
+ 174,
560
+ 285,
561
+ 825,
562
+ 347
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "3.4 INFORMATION MAXIMIZATION ",
569
+ "text_level": 1,
570
+ "bbox": [
571
+ 176,
572
+ 363,
573
+ 428,
574
+ 377
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "In this section, we perform the analysis for one query sample without loss of generality. The subscripts for classification weights are omitted for clarity. In general, we use $\\displaystyle ( \\mathbf { x } , \\mathbf { y } )$ and $( \\hat { \\mathbf { x } } , \\hat { \\mathbf { y } } )$ to represent support and query samples respectively. ",
581
+ "bbox": [
582
+ 174,
583
+ 388,
584
+ 825,
585
+ 431
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Since the classification weights w generated from $g$ are encoded with attentive path and contextual path, it is expected that we can directly have the query-specific weights. However, we show in the experiments that simply doing this does not outperform a weight generator conditioned only on the $s$ significantly, which implies that the generated classification weights from two paths are not sensitive to different query samples. In other words, the information from attentive path is not kept well during the weights generation. ",
592
+ "bbox": [
593
+ 173,
594
+ 438,
595
+ 825,
596
+ 522
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "To address this limitation, we propose to maximize the mutual information between generated weights w and support as well as query data. The objective function can be described as ",
603
+ "bbox": [
604
+ 173,
605
+ 529,
606
+ 821,
607
+ 558
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "equation",
613
+ "img_path": "images/fed913301f83fe1b959036702bbf395c27791c81e656dca3ca3caa5d335ae230.jpg",
614
+ "text": "$$\n\\operatorname* { m a x } I ( ( \\hat { \\mathbf { x } } , \\hat { \\mathbf { y } } ) ; \\mathbf { w } ) + \\sum _ { ( \\mathbf { x } , \\mathbf { y } ) \\in S } I ( ( \\mathbf { x } , \\mathbf { y } ) ; \\mathbf { w } )\n$$",
615
+ "text_format": "latex",
616
+ "bbox": [
617
+ 366,
618
+ 561,
619
+ 630,
620
+ 598
621
+ ],
622
+ "page_idx": 4
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "According to the chain rule of mutual information, we have ",
627
+ "bbox": [
628
+ 173,
629
+ 602,
630
+ 565,
631
+ 616
632
+ ],
633
+ "page_idx": 4
634
+ },
635
+ {
636
+ "type": "equation",
637
+ "img_path": "images/61fcd925fdf111ec33de41849440b37a34e656fe8c7fff9040a5524cccab468c.jpg",
638
+ "text": "$$\nI ( ( \\hat { \\mathbf { x } } , \\hat { \\mathbf { y } } ) ; \\mathbf { w } ) = I ( \\hat { \\mathbf { x } } ; \\mathbf { w } ) + I ( \\hat { \\mathbf { y } } ; \\mathbf { w } | \\hat { \\mathbf { x } } ) .\n$$",
639
+ "text_format": "latex",
640
+ "bbox": [
641
+ 372,
642
+ 621,
643
+ 624,
644
+ 637
645
+ ],
646
+ "page_idx": 4
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "Equation 6 stands for both terms in 5. So the objective function can be written as ",
651
+ "bbox": [
652
+ 173,
653
+ 642,
654
+ 705,
655
+ 657
656
+ ],
657
+ "page_idx": 4
658
+ },
659
+ {
660
+ "type": "equation",
661
+ "img_path": "images/0d1fc3c48557d62a5122d8ca90541e84ccdafb6203647ae01d4fed13aaad7dcd.jpg",
662
+ "text": "$$\n\\operatorname* { m a x } I ( \\hat { \\mathbf { x } } ; \\mathbf { w } ) + I ( \\hat { \\mathbf { y } } ; \\mathbf { w } | \\hat { \\mathbf { x } } ) + \\sum _ { ( \\mathbf { x } , \\mathbf { y } ) \\in \\mathcal { S } } [ I ( \\mathbf { x } ; \\mathbf { w } ) + I ( \\mathbf { y } ; \\mathbf { w } | \\mathbf { x } ) ] .\n$$",
663
+ "text_format": "latex",
664
+ "bbox": [
665
+ 303,
666
+ 660,
667
+ 694,
668
+ 696
669
+ ],
670
+ "page_idx": 4
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "Directly computing the mutual information in Equation 7 is intractable since the true posteriori distributions like $p ( \\hat { \\mathbf { y } } | \\hat { \\mathbf { x } } , \\mathbf { w } )$ , $p ( \\hat { \\mathbf { x } } | \\mathbf { w } )$ are still unknown. Therefore, we use Variational Information Maximization (Barber & Agakov, 2003; Chen et al., 2016) to compute the lower bound of Equation 5. We use $p _ { \\theta } ( \\hat { \\mathbf { x } } | \\mathbf { w } )$ to approximate the true posteriori distribution, where $\\theta$ represents the model parameters. As a result, we have ",
675
+ "bbox": [
676
+ 174,
677
+ 700,
678
+ 825,
679
+ 770
680
+ ],
681
+ "page_idx": 4
682
+ },
683
+ {
684
+ "type": "equation",
685
+ "img_path": "images/1de098c1111875164014e5414138efe3365ce6eb8179c183f7e9443c072c973e.jpg",
686
+ "text": "$$\n\\begin{array} { r c l } { I ( \\hat { \\mathbf { x } } ; \\mathbf { w } ) } & { = } & { H ( \\hat { \\mathbf { x } } ) - H ( \\hat { \\mathbf { x } } | \\mathbf { w } ) } \\\\ & { = } & { H ( \\hat { \\mathbf { x } } ) + \\mathbb { E } _ { \\mathbf { w } \\sim p ( \\mathbf { w } | \\hat { \\mathbf { x } } , S ) } [ \\mathbb { E } _ { \\hat { \\mathbf { x } } \\sim p ( \\hat { \\mathbf { x } } | \\mathbf { w } ) } [ \\log p ( \\hat { \\mathbf { x } } | \\mathbf { w } ) ] ] } \\\\ & { = } & { H ( \\hat { \\mathbf { x } } ) + \\mathbb { E } _ { \\mathbf { w } \\sim p ( \\mathbf { w } | \\hat { \\mathbf { x } } , S ) } [ D _ { \\mathrm { K L } } ( p ( \\hat { \\mathbf { x } } | \\mathbf { w } ) | | p \\theta ( \\hat { \\mathbf { x } } | \\mathbf { w } ) ) + \\mathbb { E } _ { \\hat { \\mathbf { x } } \\sim p ( \\hat { \\mathbf { x } } | \\mathbf { w } ) } [ \\log p _ { \\theta } ( \\hat { \\mathbf { x } } | \\mathbf { w } ) ] ] } \\\\ & { \\geq } & { H ( \\hat { \\mathbf { x } } ) + \\mathbb { E } _ { \\mathbf { w } \\sim p ( \\mathbf { w } | \\hat { \\mathbf { x } } , S ) } [ \\mathbb { E } _ { \\hat { \\mathbf { x } } \\sim p ( \\hat { \\mathbf { x } } | \\mathbf { w } ) } [ \\log p \\theta ( \\hat { \\mathbf { x } } | \\mathbf { w } ) ] ] } \\end{array}\n$$",
687
+ "text_format": "latex",
688
+ "bbox": [
689
+ 202,
690
+ 773,
691
+ 794,
692
+ 852
693
+ ],
694
+ "page_idx": 4
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "$H ( \\cdot )$ is the entropy of a random variable. $H ( { \\hat { \\mathbf { x } } } )$ is a constant value for given data. We can maximize this lower bound as the proxy for the true mutual information. ",
699
+ "bbox": [
700
+ 173,
701
+ 853,
702
+ 825,
703
+ 882
704
+ ],
705
+ "page_idx": 4
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Similar to $I ( \\hat { \\mathbf { x } } ; \\mathbf { w } )$ ",
710
+ "bbox": [
711
+ 174,
712
+ 888,
713
+ 300,
714
+ 904
715
+ ],
716
+ "page_idx": 4
717
+ },
718
+ {
719
+ "type": "equation",
720
+ "img_path": "images/fde9fd0c0a9e113954b4199b3c2ec470ee20ba384175ea107bd0715fdc74e685.jpg",
721
+ "text": "$$\nI ( \\hat { \\mathbf { y } } ; \\mathbf { w } | \\hat { \\mathbf { x } } ) \\geq H ( \\hat { \\mathbf { y } } | \\hat { \\mathbf { x } } ) + \\mathbb { E } _ { \\mathbf { w } \\sim p ( \\mathbf { w } | \\hat { \\mathbf { x } } , S ) } [ \\mathbb { E } _ { \\hat { \\mathbf { y } } \\sim p ( \\hat { \\mathbf { y } } | \\hat { \\mathbf { x } } , \\mathbf { w } ) } [ \\log p _ { \\theta } ( \\hat { \\mathbf { y } } | \\hat { \\mathbf { x } } , \\mathbf { w } ) ] ] ,\n$$",
722
+ "text_format": "latex",
723
+ "bbox": [
724
+ 272,
725
+ 909,
726
+ 723,
727
+ 926
728
+ ],
729
+ "page_idx": 4
730
+ },
731
+ {
732
+ "type": "equation",
733
+ "img_path": "images/a0bb2ef83d73a2a8a8d61438c2a019e0852c7ce0628f9bd2e04ca041ba42746b.jpg",
734
+ "text": "$$\n\\begin{array} { r } { \\displaystyle \\sum _ { \\mathbf { x } , \\mathbf { y } ) \\in S } I ( ( \\mathbf { x } , \\mathbf { y } ) ; \\mathbf { w } ) \\geq \\displaystyle \\sum _ { ( \\mathbf { x } , \\mathbf { y } ) \\in S } H ( ( \\mathbf { x } , \\mathbf { y } ) ) + \\mathbb { E } _ { \\mathbf { w } \\sim p ( \\mathbf { w } | \\hat { \\mathbf { x } } , S ) } [ \\mathbb { E } _ { ( \\mathbf { x } , \\mathbf { y } ) \\sim p ( ( \\mathbf { x } , \\mathbf { y } ) | \\mathbf { w } ) } [ \\log p _ { \\theta } ( \\mathbf { x } | \\mathbf { w } ) + \\log p _ { \\theta } ( \\mathbf { y } | \\mathbf { x } , \\mathbf { w } ) ] , } \\end{array}\n$$",
735
+ "text_format": "latex",
736
+ "bbox": [
737
+ 181,
738
+ 98,
739
+ 839,
740
+ 136
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "$p _ { \\theta } ( \\hat { \\mathbf { x } } | \\mathbf { w } ) , p _ { \\theta } ( \\mathbf { x } , \\mathbf { y } | \\mathbf { w } )$ are used to approximate the true posteriori distribution $p ( \\hat { \\mathbf { x } } | \\mathbf { w } )$ and $p ( \\mathbf { x } , \\mathbf { y } | \\mathbf { w } )$ . ",
747
+ "bbox": [
748
+ 169,
749
+ 146,
750
+ 823,
751
+ 162
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "Put the lower bounds back into Equation 7. Omit the constant entropy terms and the expectation subscripts for clarity, we have the new objective function as ",
758
+ "bbox": [
759
+ 171,
760
+ 167,
761
+ 823,
762
+ 196
763
+ ],
764
+ "page_idx": 5
765
+ },
766
+ {
767
+ "type": "equation",
768
+ "img_path": "images/87cdb9217a5cdc480b1ccc23dc8963ac875ed8caf39aaf4647fd020529f592ac.jpg",
769
+ "text": "$$\n\\operatorname* { m a x } _ { \\theta } \\mathbb { E } [ \\log p _ { \\theta } ( \\hat { \\mathbf { y } } | \\hat { \\mathbf { x } } , \\mathbf { w } ) + \\log p _ { \\theta } ( \\mathbf { y } | \\mathbf { x } , \\mathbf { w } ) + \\log p _ { \\theta } ( \\mathbf { x } | \\mathbf { w } ) + \\log p _ { \\theta } ( \\hat { \\mathbf { x } } | \\mathbf { w } ) ] .\n$$",
770
+ "text_format": "latex",
771
+ "bbox": [
772
+ 259,
773
+ 207,
774
+ 738,
775
+ 231
776
+ ],
777
+ "page_idx": 5
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "The first two terms are maximizing the log likelihood of label for both support and query data with respective to the network parameters, given the generated classification weights. This is equivalent to minimizing the cross entropy between prediction and ground-truth. We assume that $p _ { \\theta } ( \\hat { \\mathbf { x } } | \\mathbf { w } )$ and $p _ { \\theta } ( \\mathbf { x } | \\mathbf { w } )$ are Gaussian distributions. $r _ { 1 }$ and $r _ { 2 }$ are used to approximate the mean of these two Gaussian distributions. Therefore maximizing the log likelihood is equivalent to reconstruct $\\mathbf { x } ^ { c p }$ and $\\hat { \\mathbf { x } } ^ { a p }$ with $L 2$ loss. Thus the loss function to train the network can be written as ",
782
+ "bbox": [
783
+ 173,
784
+ 239,
785
+ 825,
786
+ 324
787
+ ],
788
+ "page_idx": 5
789
+ },
790
+ {
791
+ "type": "equation",
792
+ "img_path": "images/f142754583e0d6a4cbc852117c9d1b2d57bdc1588065af6efe1040e10029a1f1.jpg",
793
+ "text": "$$\nL = \\mathrm { C E } ( \\hat { \\bf y } _ { p r e d } , \\hat { \\bf y } ) + \\lambda _ { 1 } \\sum _ { { \\bf y } \\in \\mathcal { S } } \\mathrm { C E } ( { \\bf y } _ { p r e d } , { \\bf y } ) + \\lambda _ { 2 } \\sum _ { { \\bf x } ^ { c p } \\in \\mathcal { S } } | | { \\bf x } ^ { c p } - { \\bf x } _ { r e } ^ { c p } | | _ { 2 } + \\lambda _ { 3 } | | \\hat { \\bf x } ^ { a p } - \\hat { \\bf x } _ { r e } ^ { a p } | | _ { 2 } .\n$$",
794
+ "text_format": "latex",
795
+ "bbox": [
796
+ 189,
797
+ 332,
798
+ 779,
799
+ 366
800
+ ],
801
+ "page_idx": 5
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "CE here stands for cross entropy. $\\mathbf { x } ^ { c p }$ and $\\hat { \\mathbf { x } } ^ { a p }$ are the inputs to weights generator $g$ . $\\mathbf { x } _ { r e } ^ { c p } \\sim p _ { \\theta } ( \\mathbf { x } | \\mathbf { w } )$ and $\\hat { \\mathbf { x } } _ { r e } ^ { a p } \\sim p _ { \\theta } ( \\hat { \\mathbf { x } } | \\mathbf { w } )$ are the reconstruction of $\\mathbf { x } ^ { c p }$ and $\\hat { \\mathbf { x } } ^ { a p }$ . Since we convert the log likelihood in Equation 14 to mean square error or cross entropy in Equation 15 to optimize, the value of each term in Equation 15 is not equal to real log likelihood and we have to decide the weightage for each one. $\\lambda _ { 1 } , \\lambda _ { 2 } , \\lambda _ { 3 }$ are thus hyper-parameters for trade-off of different terms. With the help of last three terms, the generated classification weights are forced to carry information about the support data and the specific query sample. ",
806
+ "bbox": [
807
+ 173,
808
+ 377,
809
+ 825,
810
+ 476
811
+ ],
812
+ "page_idx": 5
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "In LEO (Rusu et al., 2019), the inner update loss is computed as cross entropy on support data. If we merge the inner update into outer loop, then the loss becomes the summation of first two terms in Equation 15. However, the weight generation in LEO does not involve specific query samples, thus making reconstructing $\\hat { \\mathbf { x } } ^ { a p }$ impossible. In this sense, LEO can be regarded as a special case of our proposed method, where (1) only contextual path exits and (2) $\\lambda _ { 2 } = \\lambda _ { 3 } = 0$ . ",
817
+ "bbox": [
818
+ 174,
819
+ 481,
820
+ 825,
821
+ 553
822
+ ],
823
+ "page_idx": 5
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "3.5 COMPLEXITY ANALYSIS ",
828
+ "text_level": 1,
829
+ "bbox": [
830
+ 176,
831
+ 573,
832
+ 382,
833
+ 587
834
+ ],
835
+ "page_idx": 5
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "The encoding process in contextual path results in computational complexity $O ( ( N K ) ^ { 2 } )$ due to self-attention. Similarly, the computational complexity of attentive path is $O ( ( N K ) ^ { 2 } + | \\mathcal { Q } | ( N K ) )$ . In total, the complexity is ${ \\cal O } ( ( \\bar { N } K ) ^ { 2 } + | \\mathcal { Q } | ( \\bar { N ^ { } } K ) )$ . However, because of the nature of few-shot learning problem, the value of $( N K ) ^ { 2 }$ is usually negligible. The value of $| \\mathcal { Q } |$ depends on the setting and the cross attention can be implemented parallelly via matrix multiplication. Therefore, the induced computational overhead will be negligible. AWGIM avoids the inner update without compromising the performance, which furthers reduces both training and inference time significantly. The empirical evaluation is presented in A.3.4. ",
840
+ "bbox": [
841
+ 173,
842
+ 601,
843
+ 825,
844
+ 712
845
+ ],
846
+ "page_idx": 5
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "4 EXPERIMENTS ",
851
+ "text_level": 1,
852
+ "bbox": [
853
+ 176,
854
+ 737,
855
+ 326,
856
+ 752
857
+ ],
858
+ "page_idx": 5
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "4.1 DATASETS AND PROTOCOLS ",
863
+ "text_level": 1,
864
+ "bbox": [
865
+ 176,
866
+ 771,
867
+ 406,
868
+ 785
869
+ ],
870
+ "page_idx": 5
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "We conduct experiments on miniImageNet (Vinyals et al., 2016) and tieredImageNet (Ren et al., 2018), two commonly used benchmark datasets, to compare with other methods and analyze our model. Both datasets are subsets of ILSVRC-12 dataset (Russakovsky et al., 2015). miniImageNet contains 100 randomly sampled classes with 600 images per class. We follow the train/test split in (Ravi & Larochelle, 2016), where 64 classes are used for meta-training, 16 for meta-validation and 20 for meta-testing. tieredImageNet is a larger dataset compared to miniImageNet. There are 608 classes and 779,165 images in total. They are selected from 34 higher level nodes in ImageNet (Deng et al., 2009) hierarchy. 351 classes from 20 high level nodes are used for meta-training, 97 from 6 nodes for meta-validation and 160 from 8 nodes for meta-testing. ",
875
+ "bbox": [
876
+ 173,
877
+ 797,
878
+ 825,
879
+ 924
880
+ ],
881
+ "page_idx": 5
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "We use the image features in LEO (Rusu et al., 2019) provided by the authors 2. They trained a 28-layer Wide Residual Network (Zagoruyko & Komodakis, 2016) on the meta-training set. Each image then is represented by a 640 dimensional vector, which is used as the input to our model. ",
886
+ "bbox": [
887
+ 174,
888
+ 103,
889
+ 823,
890
+ 146
891
+ ],
892
+ "page_idx": 6
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "For $N$ -way $K$ -shot experiments, we randomly sample $N$ classes from meta-training set and each of them contains $K$ samples as the support set and 15 as query set. Similar to other works, we train 5-way 1-shot and 5-shot models on two dataset. During meta-testing, 600 $N$ -way $K$ -shot tasks are sampled from meta-testing set and the average accuracy for query set is reported with $9 5 \\%$ confidence interval, as done in recent works (Finn et al., 2017; Snell et al., 2017; Rusu et al., 2019). ",
897
+ "bbox": [
898
+ 174,
899
+ 152,
900
+ 825,
901
+ 222
902
+ ],
903
+ "page_idx": 6
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "4.2 IMPLEMENTATION DETAILS ",
908
+ "text_level": 1,
909
+ "bbox": [
910
+ 176,
911
+ 239,
912
+ 403,
913
+ 253
914
+ ],
915
+ "page_idx": 6
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "We use TensorFlow (Abadi et al., 2016) to implement our method and the code will be made available. $d = 6 4 0$ is the dimension of feature embeddings. $d _ { h }$ is set to be 128. The number of heads $h$ in attention module is set to be 4. $g , r _ { 1 }$ and $r _ { 2 }$ are 2-layer MLPs with 256 hidden units. We decide $\\lambda _ { 1 } = 1$ , $\\lambda _ { 2 } = \\lambda _ { 3 } = 0 . 0 0 1$ by meta-validation performance. ",
920
+ "bbox": [
921
+ 174,
922
+ 265,
923
+ 825,
924
+ 321
925
+ ],
926
+ "page_idx": 6
927
+ },
928
+ {
929
+ "type": "table",
930
+ "img_path": "images/35b67e2f044298593c1d1157d9feee7aba8d8d64b251cf878acd8a17242cae3e.jpg",
931
+ "table_caption": [
932
+ "Table 1: Accuracy comparison with other approaches on miniImageNet. The results are averaged on 600 tasks from meta-testing set with $9 5 \\%$ confidence interval. Best results are highlighted. "
933
+ ],
934
+ "table_footnote": [],
935
+ "table_body": "<table><tr><td>Model</td><td>Feature Extractor</td><td>5-way 1-shot</td><td>5-way 5-shot</td></tr><tr><td>Matching Networks (Vinyals et al., 2016)</td><td>Conv-4</td><td>46.60</td><td>60.00</td></tr><tr><td>MAML(Finn et al.,2017)</td><td>Conv-4</td><td>48.70 ± 1.84%</td><td>63.11 ± 0.92%</td></tr><tr><td>Meta LSTM (Ravi &amp; Larochelle, 2016)</td><td>Conv-4</td><td>43.44 ± 0.77%</td><td>60.60 ± 0.71%</td></tr><tr><td>Prototypical Nets (Snell et al.,2017)</td><td>Conv-4</td><td>49.42 ± 0.78%</td><td>68.20 ± 0.66%</td></tr><tr><td>Relation Nets (Sung et al.,2018)</td><td>Conv-4</td><td>50.44 ± 0.82%</td><td>65.32 ± 0.70%</td></tr><tr><td>SNAIL (Mishra et al., 2018)</td><td>Resnets-12</td><td>55.71 ± 0.99%</td><td>68.88 ± 0.92%</td></tr><tr><td>TPN (Liu et al., 2019)</td><td>Resnets-12</td><td>59.46</td><td>75.65</td></tr><tr><td>MTL (Sun et al., 2019)</td><td>Resnets-12</td><td>61.20 ± 1.80%</td><td>75.50 ± 0.80</td></tr><tr><td>Dynamic (Gidaris &amp; Komodakis,2018)</td><td>WRN-28-10</td><td>60.06 ± 0.14%</td><td>76.39 ± 0.11%</td></tr><tr><td>Prediction (Qiao et al., 2018)</td><td>WRN-28-10</td><td>59.60 ± 0.41%</td><td>73.74 ± 0.19%</td></tr><tr><td>DAE-GNN (Gidaris &amp; Komodakis,2019)</td><td>WRN-28-10</td><td>62.96 ± 0.15%</td><td>78.85 ± 0.10%</td></tr><tr><td>LEO (Rusu et al., 2019)</td><td>WRN-28-10</td><td>61.76 ± 0.08%</td><td>77.59 ± 0.12%</td></tr><tr><td>AWGIM (ours)</td><td>WRN-28-10</td><td>63.12 ± 0.08%</td><td>78.40 ± 0.11%</td></tr></table>",
936
+ "bbox": [
937
+ 173,
938
+ 356,
939
+ 826,
940
+ 570
941
+ ],
942
+ "page_idx": 6
943
+ },
944
+ {
945
+ "type": "table",
946
+ "img_path": "images/caaaf7288f8696ea63f58086f64886c07f4478f69986c3bcda201b65edea71dc.jpg",
947
+ "table_caption": [
948
+ "Table 2: Accuracy comparison with other approaches on tieredImageNet. The results are averaged on 600 tasks from meta-testing set with $9 5 \\%$ confidence interval. Best results are highlighted. "
949
+ ],
950
+ "table_footnote": [],
951
+ "table_body": "<table><tr><td>Model</td><td>Feature Extractor</td><td>5-way 1-shot</td><td>5-way 5-shot</td></tr><tr><td>MAML (Finn et al., 2017)</td><td>Conv-4</td><td>51.67 ± 1.81%</td><td>70.30 ± 1.75%</td></tr><tr><td>Prototypical Nets (Snell et al., 2017)</td><td>Conv-4</td><td>53.31± 0.89%</td><td>72.69 ± 0.74%</td></tr><tr><td>Relation Nets (Sung et al., 2018)</td><td>Conv-4</td><td>54.48 ± 0.93%</td><td>71.32 ± 0.78%</td></tr><tr><td>TPN (Liu et al., 2019)</td><td>Conv-4</td><td>59.91 ± 0.96%</td><td>72.85 ± 0.74%</td></tr><tr><td>MetaOptNet (Lee et al., 2019)</td><td>Resnets-12</td><td>65.81 ± 0.74%</td><td>81.75 ± 0.53%</td></tr><tr><td>LEO (Rusu et al., 2019)</td><td>WRN-28-10</td><td>66.33 ± 0.05%</td><td>81.44 ± 0.09%</td></tr><tr><td>AWGIM (ours)</td><td>WRN-28-10</td><td>67.69 ± 0.11%</td><td>82.82 ± 0.13%</td></tr></table>",
952
+ "bbox": [
953
+ 176,
954
+ 616,
955
+ 818,
956
+ 737
957
+ ],
958
+ "page_idx": 6
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "ADAMW Loshchilov & Hutter (2017) is used to optimize the network with weight decay $1 \\times 1 0 ^ { - 6 }$ . The initial learning rate is set to 0.0002 for 5-way 1-shot and 0.001 for 5-way 5-shot, which is decayed by 0.2 for every 15,000 iterations. We train the model for 50,000 iterations. Batch size is 64 for 5-way 1-shot and 32 for 5-way 5-shot. Similar to LEO (Rusu et al., 2019), we first train the model on meta-training set and choose the optimal hyper-parameters by validation results. Then we train the model on meta-training and meta-validation sets together using fixed hyper-parameters. ",
963
+ "bbox": [
964
+ 173,
965
+ 746,
966
+ 825,
967
+ 830
968
+ ],
969
+ "page_idx": 6
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "4.3 COMPARISON WITH OTHER METHODS ",
974
+ "text_level": 1,
975
+ "bbox": [
976
+ 176,
977
+ 847,
978
+ 473,
979
+ 861
980
+ ],
981
+ "page_idx": 6
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "We compare the performance of our approach AWGIM on two datasets with several state-of-theart methods proposed in recent years. The results of MAML, Prototypical Nets, Relation Nets on tieredImageNet are evaluated by Liu et al. (2019). The results of Dynamic on miniImageNet with WRN-28-10 as the feature extractor is reported in (Gidaris & Komodakis, 2019). The other results are reported in the corresponding original papers. We also include the backbone network structure of the used feature extractor for reference. The results on miniImageNet and tieredImageNet are shown in Table 1 and 2 respectively. ",
986
+ "bbox": [
987
+ 176,
988
+ 872,
989
+ 825,
990
+ 901
991
+ ],
992
+ "page_idx": 6
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "",
997
+ "bbox": [
998
+ 174,
999
+ 103,
1000
+ 823,
1001
+ 174
1002
+ ],
1003
+ "page_idx": 7
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "The top half parts of Table 1 and 2 display the methods belonging with different meta learning categories, such as metric-based(Matching Networks, Prototypical Nets), gradient-based (MAML, MTL), graph-based (TPN). The bottom part shows the classification weights generation approaches including Dynamic, Prediction, DAE-GNN, LEO and our proposed AWGIM. ",
1008
+ "bbox": [
1009
+ 174,
1010
+ 180,
1011
+ 823,
1012
+ 236
1013
+ ],
1014
+ "page_idx": 7
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "AWGIM can outperform all the methods in top parts of two table. Comparing with other classification weights generation methods in the bottom part, AWGIM still shows very competitive performance, namely the best on tieredImageNet and close to the state-of-the-art on miniImageNet. We note that all the classification weights generation methods are using WRN-28-10 as backbone network, which makes the comparison fair. In particular, AWGIM can outperform LEO in all settings. ",
1019
+ "bbox": [
1020
+ 174,
1021
+ 243,
1022
+ 823,
1023
+ 313
1024
+ ],
1025
+ "page_idx": 7
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "4.4 ANALYSIS ",
1030
+ "text_level": 1,
1031
+ "bbox": [
1032
+ 174,
1033
+ 333,
1034
+ 284,
1035
+ 345
1036
+ ],
1037
+ "page_idx": 7
1038
+ },
1039
+ {
1040
+ "type": "table",
1041
+ "img_path": "images/a1723cc4661833cbab0d7fd2a8eebea13a136023dc4450530bbfd025068b0883.jpg",
1042
+ "table_caption": [
1043
+ "Table 3: Analysis of our proposed AWGIM. In the top half, the attentive path is removed to compare with LEO. In the bottom part, ablation analysis with respective to different components is provided. We also shuffle the generated classification weights randomly to show that they are indeed optimal for different query samples. "
1044
+ ],
1045
+ "table_footnote": [],
1046
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">miniImageNet</td><td colspan=\"2\">tieredImageNet</td></tr><tr><td>5-way 1-shot</td><td>5-way 5-shot</td><td> 5-way 1-shot</td><td>5-way 5-shot</td></tr><tr><td>LEO</td><td>61.76 %</td><td>77.59 %</td><td>66.33%</td><td>81.44 %</td></tr><tr><td>Generator in LEO</td><td>60.33 %</td><td>74.53 %</td><td>65.17%</td><td>78.77 %</td></tr><tr><td>Generator conditioned on S only</td><td>61.02%</td><td>74.33%</td><td>66.22%</td><td>79.66%</td></tr><tr><td>Generator conditioned on S with IM</td><td>62.04%</td><td>77.54%</td><td>66.43%</td><td>81.73%</td></tr><tr><td>MLP encoding,入1 = 入2= 入3=0</td><td>58.95%</td><td>71.68%</td><td>63.92%</td><td>75.80%</td></tr><tr><td>MLP encoding</td><td>62.26%</td><td>76.91%</td><td>65.84%</td><td>79.24%</td></tr><tr><td>入1=λ2=λ3=0</td><td>61.61%</td><td>74.14%</td><td>65.65%</td><td>79.93%</td></tr><tr><td>入1=入2=0</td><td>62.06%</td><td>74.18%</td><td>65.85%</td><td>80.42%</td></tr><tr><td>入3=0</td><td>62.91%</td><td>77.88%</td><td>67.27%</td><td>81.67%</td></tr><tr><td>入1=0</td><td>62.19%</td><td>74.21%</td><td>66.82%</td><td>80.61%</td></tr><tr><td>2=入g=0</td><td>62.12%</td><td>77.65%</td><td>66.86%</td><td>81.03%</td></tr><tr><td>random shuffle in class</td><td>62.87%</td><td>77.48%</td><td>67.52%</td><td>82.55%</td></tr><tr><td>random shuffle between classes</td><td>61.20%</td><td>77.48%</td><td>66.55%</td><td>82.53%</td></tr><tr><td>AWGIM (ours)</td><td>63.12%</td><td>78.40%</td><td>67.69 %</td><td>82.82%</td></tr></table>",
1047
+ "bbox": [
1048
+ 171,
1049
+ 414,
1050
+ 854,
1051
+ 640
1052
+ ],
1053
+ "page_idx": 7
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "We perform detailed analysis on AWGIM, shown in Table 3. We include the results of LEO Rusu et al. (2019) for reference. “Generator in LEO” means that there is no inner update in LEO. In the upper part of the table, we first studied the effect of attentive path. We implemented two generators including only the contextual path during encoding. “Generator conditioned on $s$ with IM” indicates that we add the cross entropy loss and reconstruction loss for support set. It can be observed that “Generator conditioned on $s$ only” is trained with cross entropy on query set, which is similar to “Generator in LEO” without inner update. It is able to achieve similar or slightly better results than “Generator in LEO”, which implies that self-attention is no worse than relation networks used in LEO to model task-context. With information maximization, our generator is able to obtain slightly better performance than LEO. ",
1058
+ "bbox": [
1059
+ 173,
1060
+ 645,
1061
+ 826,
1062
+ 784
1063
+ ],
1064
+ "page_idx": 7
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "The effect of attention is investigated by replacing the attention modules with 2-layer MLPs, which is shown as “MLP encoding”. More specifically, one MLP in contextual path is used for support set and another MLP in attentive path for query samples. We can see that even without attention to encode the task-contextual information, “MLP encoding” can achieve accuracy close to LEO, for the sake of information maximization. However, if we let $\\lambda _ { 1 } = \\lambda _ { 2 } = \\lambda _ { 3 } = 0$ for MLP encoding, the performance drops significantly, which demonstrates the importance of maximizing the information. ",
1069
+ "bbox": [
1070
+ 174,
1071
+ 791,
1072
+ 825,
1073
+ 875
1074
+ ],
1075
+ "page_idx": 7
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "We conducted ablation analysis with respective to $\\lambda _ { 1 } , \\lambda _ { 2 }$ and $\\lambda _ { 3 }$ to investigate the effect of information maximization. First, $\\lambda _ { 1 }$ , $\\lambda _ { 2 }$ and $\\lambda _ { 3 }$ are all set to be 0. In this case, the accuracy is similar to “generator conditioned on $s$ only”, showing that the generated classification weights are not fitted for different query samples, even with the attentive path. It can also be observed that maximizing the mutual information between weights and support is more crucial since $\\lambda _ { 1 } = \\lambda _ { 2 } = 0$ degrades accuracy significantly, comparing with $\\lambda _ { 3 } = 0$ . We further investigate the relative importance of the classification on support as well as reconstruction. $\\lambda _ { 1 } = 0$ affects the performance noticeably. We conjecture that the support label prediction is more critical for information maximization. ",
1080
+ "bbox": [
1081
+ 176,
1082
+ 882,
1083
+ 823,
1084
+ 924
1085
+ ],
1086
+ "page_idx": 7
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "",
1091
+ "bbox": [
1092
+ 174,
1093
+ 103,
1094
+ 825,
1095
+ 172
1096
+ ],
1097
+ "page_idx": 8
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "The classification weights are generated specifically for each query sample in AWGIM. To this point, we shuffle the classification weights between query samples within the same classes and between different classes as well to study whether the classification weights are adapted for different query samples. Assume there are T query samples per class in one task. Wf inal ∈ R|Q|×N×d can be reshaped into Wf inal $\\mathbf { W } ^ { f i n a l } \\in \\mathbb { R } ^ { N \\times T \\times N \\times \\bar { d } }$ . Then we shuffle this weight tensor along the first and second axis randomly. The results are shown as “random shuffle between classes” and “random shuffle in class” in Table 3. For 5-way 1-shot experiments, the random shuffle between classes degrades the accuracy noticeably while the random shuffle in class dose not affect too much. This indicates that when the support data are very limited, the generated weights for query samples from the same class are very similar to each other while distinct for different classes. When there are more labeled data in support set, two kinds of random shuffle show very close or even the same results in 5-way 5-shot experiments, which are both worse than the original ones. This implies that the generated classification weights are more diverse and specific for each query sample in 5-way 5-shot setting. The possible reason is that larger support set provides more knowledge to estimate the optimal classification weights for each query example. ",
1102
+ "bbox": [
1103
+ 173,
1104
+ 181,
1105
+ 825,
1106
+ 392
1107
+ ],
1108
+ "page_idx": 8
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "More analysis is provided in Appendix A.3. ",
1113
+ "bbox": [
1114
+ 176,
1115
+ 400,
1116
+ 460,
1117
+ 414
1118
+ ],
1119
+ "page_idx": 8
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "5 CONCLUSION ",
1124
+ "text_level": 1,
1125
+ "bbox": [
1126
+ 176,
1127
+ 435,
1128
+ 318,
1129
+ 452
1130
+ ],
1131
+ "page_idx": 8
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "In this work, we introduce Attentive Weights Generation via Information Maximization (AWGIM) for few shot image classification. AWGIM learns to generate optimal classification weights for each query sample within the task by two encoding paths. To guarantee this, the lower bound of mutual information between generated weights and query, support data is maximized. As far as we know, AWGIM is the first work utilizing mutual information techniques for few shot learning. The effectiveness of AWGIM is demonstrated by state-of-the-art performance on two benchmark datasets and extensive analysis. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 468,
1139
+ 825,
1140
+ 565
1141
+ ],
1142
+ "page_idx": 8
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "REFERENCES ",
1147
+ "text_level": 1,
1148
+ "bbox": [
1149
+ 174,
1150
+ 588,
1151
+ 285,
1152
+ 603
1153
+ ],
1154
+ "page_idx": 8
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016. \nMarcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, Brendan Shillingford, and Nando De Freitas. Learning to learn by gradient descent by gradient descent. In NeurIPS, 2016. \nDzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. \nDavid Barber and Felix V Agakov. The im algorithm: a variational approach to information maximization. In NeurIPS, 2003. \nLuca Bertinetto, Joao F Henriques, Philip Torr, and Andrea Vedaldi. Meta-learning with differentiable closed-form solvers. In ICLR, 2019. \nXi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In NeurIPS, 2016. \nZitian Chen, Yanwei Fu, Yu-Xiong , Lin Ma, Wei Liu, and Martial Hebert. Image deformation meta-networks for one-shot learning. In CVPR, 2019. ",
1159
+ "bbox": [
1160
+ 171,
1161
+ 611,
1162
+ 826,
1163
+ 926
1164
+ ],
1165
+ "page_idx": 8
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. ",
1170
+ "bbox": [
1171
+ 171,
1172
+ 103,
1173
+ 823,
1174
+ 132
1175
+ ],
1176
+ "page_idx": 9
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. ",
1181
+ "bbox": [
1182
+ 171,
1183
+ 141,
1184
+ 823,
1185
+ 171
1186
+ ],
1187
+ "page_idx": 9
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Li Fei-Fei, Rob Fergus, and Pietro Perona. One-shot learning of object categories. TPAMI, 2006. ",
1192
+ "bbox": [
1193
+ 176,
1194
+ 179,
1195
+ 808,
1196
+ 195
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, 2017. ",
1203
+ "bbox": [
1204
+ 171,
1205
+ 204,
1206
+ 823,
1207
+ 233
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Spyros Gidaris and Nikos Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR, 2018. ",
1214
+ "bbox": [
1215
+ 173,
1216
+ 242,
1217
+ 825,
1218
+ 272
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Spyros Gidaris and Nikos Komodakis. Generating classification weights with gnn denoising autoencoders for few-shot learning. In CVPR, 2019. ",
1225
+ "bbox": [
1226
+ 173,
1227
+ 281,
1228
+ 821,
1229
+ 310
1230
+ ],
1231
+ "page_idx": 9
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
1236
+ "bbox": [
1237
+ 174,
1238
+ 319,
1239
+ 821,
1240
+ 348
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. ICLR, 2019. ",
1247
+ "bbox": [
1248
+ 173,
1249
+ 357,
1250
+ 825,
1251
+ 401
1252
+ ],
1253
+ "page_idx": 9
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Hyunjik Kim, Andriy Mnih, Jonathan Schwarz, Marta Garnelo, Ali Eslami, Dan Rosenbaum, Oriol Vinyals, and Yee Whye Teh. Attentive neural processes. In ICLR, 2019. ",
1258
+ "bbox": [
1259
+ 174,
1260
+ 410,
1261
+ 823,
1262
+ 439
1263
+ ],
1264
+ "page_idx": 9
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Gregory Koch, Richard Zemel, and Ruslan Salakhutdinov. Siamese neural networks for one-shot image recognition. In ICML Deep Learning Workshop, 2015. ",
1269
+ "bbox": [
1270
+ 173,
1271
+ 448,
1272
+ 823,
1273
+ 478
1274
+ ],
1275
+ "page_idx": 9
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Ranjay Krishna, Michael Bernstein, and Li Fei-Fei. Information maximizing visual question generation. In CVPR, 2019. ",
1280
+ "bbox": [
1281
+ 173,
1282
+ 486,
1283
+ 823,
1284
+ 516
1285
+ ],
1286
+ "page_idx": 9
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Kwonjoon Lee, Subhransu Maji, Avinash Ravichandran, and Stefano Soatto. Meta-learning with differentiable convex optimization. In CVPR, 2019. ",
1291
+ "bbox": [
1292
+ 173,
1293
+ 525,
1294
+ 823,
1295
+ 554
1296
+ ],
1297
+ "page_idx": 9
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Hongyang Li, David Eigen, Samuel Dodge, Matthew Zeiler, and Xiaogang Wang. Finding taskrelevant features for few-shot learning by category traversal. In CVPR, 2019a. ",
1302
+ "bbox": [
1303
+ 171,
1304
+ 563,
1305
+ 821,
1306
+ 593
1307
+ ],
1308
+ "page_idx": 9
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Wenbin Li, Lei Wang, Jinglin Xu, Jing Huo, Yang Gao, and Jiebo Luo. Revisiting local descriptor based image-to-class measure for few-shot learning. In CVPR, 2019b. ",
1313
+ "bbox": [
1314
+ 171,
1315
+ 602,
1316
+ 823,
1317
+ 631
1318
+ ],
1319
+ "page_idx": 9
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "Yann Lifchitz, Yannis Avrithis, Sylvaine Picard, and Andrei Bursuc. Dense classification and implanting for few-shot learning. In CVPR, 2019. ",
1324
+ "bbox": [
1325
+ 173,
1326
+ 640,
1327
+ 823,
1328
+ 670
1329
+ ],
1330
+ "page_idx": 9
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "Yanbin Liu, Juho Lee, Minseop Park, Saehoon Kim, Eunho Yang, Sung Ju Hwang, and Yi Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. In ICLR, 2019. ",
1335
+ "bbox": [
1336
+ 176,
1337
+ 678,
1338
+ 823,
1339
+ 722
1340
+ ],
1341
+ "page_idx": 9
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "Ilya Loshchilov and Frank Hutter. Fixing weight decay regularization in adam. arXiv preprint arXiv:1711.05101, 2017. ",
1346
+ "bbox": [
1347
+ 171,
1348
+ 731,
1349
+ 823,
1350
+ 760
1351
+ ],
1352
+ "page_idx": 9
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. JMLR, 2008. ",
1357
+ "bbox": [
1358
+ 174,
1359
+ 768,
1360
+ 758,
1361
+ 785
1362
+ ],
1363
+ "page_idx": 9
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. A simple neural attentive metalearner. In ICLR, 2018. ",
1368
+ "bbox": [
1369
+ 176,
1370
+ 792,
1371
+ 821,
1372
+ 823
1373
+ ],
1374
+ "page_idx": 9
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "text": "Tsendsuren Munkhdalai and Hong Yu. Meta networks. In ICML, 2017. ",
1379
+ "bbox": [
1380
+ 174,
1381
+ 832,
1382
+ 643,
1383
+ 848
1384
+ ],
1385
+ "page_idx": 9
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "text": "Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Łukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. ICML, 2018. ",
1390
+ "bbox": [
1391
+ 174,
1392
+ 857,
1393
+ 820,
1394
+ 886
1395
+ ],
1396
+ "page_idx": 9
1397
+ },
1398
+ {
1399
+ "type": "text",
1400
+ "text": "Hang Qi, Matthew Brown, and David G Lowe. Low-shot learning with imprinted weights. In CVPR, 2018. ",
1401
+ "bbox": [
1402
+ 176,
1403
+ 895,
1404
+ 823,
1405
+ 924
1406
+ ],
1407
+ "page_idx": 9
1408
+ },
1409
+ {
1410
+ "type": "text",
1411
+ "text": "Siyuan Qiao, Chenxi Liu, Wei Shen, and Alan L Yuille. Few-shot image recognition by predicting parameters from activations. In CVPR, 2018. ",
1412
+ "bbox": [
1413
+ 173,
1414
+ 103,
1415
+ 825,
1416
+ 132
1417
+ ],
1418
+ "page_idx": 10
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In ICLR, 2016. ",
1423
+ "bbox": [
1424
+ 173,
1425
+ 140,
1426
+ 816,
1427
+ 156
1428
+ ],
1429
+ "page_idx": 10
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B Tenenbaum, Hugo Larochelle, and Richard S Zemel. Meta-learning for semi-supervised few-shot classification. In ICLR, 2018. ",
1434
+ "bbox": [
1435
+ 174,
1436
+ 165,
1437
+ 823,
1438
+ 208
1439
+ ],
1440
+ "page_idx": 10
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 2015. ",
1445
+ "bbox": [
1446
+ 176,
1447
+ 215,
1448
+ 823,
1449
+ 258
1450
+ ],
1451
+ "page_idx": 10
1452
+ },
1453
+ {
1454
+ "type": "text",
1455
+ "text": "Andrei A Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. Meta-learning with latent embedding optimization. In ICLR, 2019. ",
1456
+ "bbox": [
1457
+ 169,
1458
+ 267,
1459
+ 823,
1460
+ 297
1461
+ ],
1462
+ "page_idx": 10
1463
+ },
1464
+ {
1465
+ "type": "text",
1466
+ "text": "Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. In NeurIPS, 2017. ",
1467
+ "bbox": [
1468
+ 174,
1469
+ 305,
1470
+ 825,
1471
+ 348
1472
+ ],
1473
+ "page_idx": 10
1474
+ },
1475
+ {
1476
+ "type": "text",
1477
+ "text": "Jurgen Schmidhuber. Evolutionary principles in self-referential learning, or on learning how to¨ learn: the meta-meta-... hook. PhD thesis, 1987. ",
1478
+ "bbox": [
1479
+ 173,
1480
+ 357,
1481
+ 820,
1482
+ 387
1483
+ ],
1484
+ "page_idx": 10
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, et al. A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science, 362(6419):1140– 1144, 2018. ",
1489
+ "bbox": [
1490
+ 173,
1491
+ 395,
1492
+ 825,
1493
+ 452
1494
+ ],
1495
+ "page_idx": 10
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In NeurIPS, 2017. ",
1500
+ "bbox": [
1501
+ 173,
1502
+ 460,
1503
+ 821,
1504
+ 489
1505
+ ],
1506
+ "page_idx": 10
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "Qianru Sun, Yaoyao Liu, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning for few-shot learning. In CVPR, 2019. ",
1511
+ "bbox": [
1512
+ 173,
1513
+ 497,
1514
+ 823,
1515
+ 526
1516
+ ],
1517
+ "page_idx": 10
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip HS Torr, and Timothy M Hospedales. Learning to compare: Relation network for few-shot learning. In CVPR, 2018. ",
1522
+ "bbox": [
1523
+ 171,
1524
+ 535,
1525
+ 820,
1526
+ 565
1527
+ ],
1528
+ "page_idx": 10
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. ",
1533
+ "bbox": [
1534
+ 173,
1535
+ 573,
1536
+ 821,
1537
+ 603
1538
+ ],
1539
+ "page_idx": 10
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In NeurIPS, 2016. ",
1544
+ "bbox": [
1545
+ 173,
1546
+ 611,
1547
+ 823,
1548
+ 641
1549
+ ],
1550
+ "page_idx": 10
1551
+ },
1552
+ {
1553
+ "type": "text",
1554
+ "text": "Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. arXiv preprint arXiv:1905.09418, 2019. ",
1555
+ "bbox": [
1556
+ 173,
1557
+ 648,
1558
+ 826,
1559
+ 691
1560
+ ],
1561
+ "page_idx": 10
1562
+ },
1563
+ {
1564
+ "type": "text",
1565
+ "text": "Yu-Xiong Wang, Ross Girshick, Martial Hebert, and Bharath Hariharan. Low-shot learning from imaginary data. In CVPR, 2018. ",
1566
+ "bbox": [
1567
+ 173,
1568
+ 700,
1569
+ 823,
1570
+ 729
1571
+ ],
1572
+ "page_idx": 10
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "text": "Davis Wertheimer and Bharath Hariharan. Few-shot learning with localization in realistic settings. In CVPR, 2019. ",
1577
+ "bbox": [
1578
+ 171,
1579
+ 738,
1580
+ 823,
1581
+ 767
1582
+ ],
1583
+ "page_idx": 10
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015. ",
1588
+ "bbox": [
1589
+ 174,
1590
+ 776,
1591
+ 821,
1592
+ 819
1593
+ ],
1594
+ "page_idx": 10
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. ",
1599
+ "bbox": [
1600
+ 173,
1601
+ 828,
1602
+ 823,
1603
+ 857
1604
+ ],
1605
+ "page_idx": 10
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "Ruixiang Zhang, Tong Che, Zoubin Ghahramani, Yoshua Bengio, and Yangqiu Song. Metagan: An adversarial approach to few-shot learning. In NeurIPS, 2018. ",
1610
+ "bbox": [
1611
+ 173,
1612
+ 866,
1613
+ 823,
1614
+ 895
1615
+ ],
1616
+ "page_idx": 10
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "A APPENDIX ",
1621
+ "text_level": 1,
1622
+ "bbox": [
1623
+ 176,
1624
+ 102,
1625
+ 299,
1626
+ 118
1627
+ ],
1628
+ "page_idx": 11
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "A.1 MUTLI-HEAD ATTENTION IN AWGIM ",
1633
+ "text_level": 1,
1634
+ "bbox": [
1635
+ 174,
1636
+ 133,
1637
+ 483,
1638
+ 150
1639
+ ],
1640
+ "page_idx": 11
1641
+ },
1642
+ {
1643
+ "type": "text",
1644
+ "text": "The multi-head attention can be described as ",
1645
+ "bbox": [
1646
+ 174,
1647
+ 161,
1648
+ 468,
1649
+ 176
1650
+ ],
1651
+ "page_idx": 11
1652
+ },
1653
+ {
1654
+ "type": "equation",
1655
+ "img_path": "images/8afbc345a51adf63a2ba312dc71f4cfa00a3cc5df50506647b72d47660225ec6.jpg",
1656
+ "text": "$$\nM u l t i H e a d ( Q , K , V ) = C o n c a t ( h e a d _ { 1 } , . . . , h e a d _ { H } ) W ^ { O } ,\n$$",
1657
+ "text_format": "latex",
1658
+ "bbox": [
1659
+ 302,
1660
+ 184,
1661
+ 692,
1662
+ 202
1663
+ ],
1664
+ "page_idx": 11
1665
+ },
1666
+ {
1667
+ "type": "equation",
1668
+ "img_path": "images/7d0b100deca88258dbd63f93aaeea767993505bc88714fd792cbf8beec0071f0.jpg",
1669
+ "text": "$$\nh e a d _ { i } ( Q ^ { i } , K ^ { i } , V ^ { i } ) = A t t e n t i o n ( Q ^ { i } , K ^ { i } , V ^ { i } ) ,\n$$",
1670
+ "text_format": "latex",
1671
+ "bbox": [
1672
+ 343,
1673
+ 212,
1674
+ 651,
1675
+ 232
1676
+ ],
1677
+ "page_idx": 11
1678
+ },
1679
+ {
1680
+ "type": "equation",
1681
+ "img_path": "images/182af2f52f35feabb7376fcf4d5db4194b9258b694a9cd87685a286f425cd3b2.jpg",
1682
+ "text": "$$\nA t t e n t i o n ( Q , K , V ) = s o f t m a x ( \\frac { Q K ^ { T } } { \\sqrt { d _ { k } } } V ) ,\n$$",
1683
+ "text_format": "latex",
1684
+ "bbox": [
1685
+ 348,
1686
+ 239,
1687
+ 648,
1688
+ 275
1689
+ ],
1690
+ "page_idx": 11
1691
+ },
1692
+ {
1693
+ "type": "equation",
1694
+ "img_path": "images/2171eaaa8655f60350a45f7fdb72379d74297ef38001615123062a30cf21f233.jpg",
1695
+ "text": "$$\nQ ^ { i } = Q W _ { Q } ^ { i } , K ^ { i } = K W _ { K } ^ { i } , V ^ { i } = V W _ { V } ^ { i } ,\n$$",
1696
+ "text_format": "latex",
1697
+ "bbox": [
1698
+ 364,
1699
+ 282,
1700
+ 632,
1701
+ 303
1702
+ ],
1703
+ "page_idx": 11
1704
+ },
1705
+ {
1706
+ "type": "text",
1707
+ "text": "Here $Q , K , V$ are query, key, value matrices. $W _ { Q } ^ { i } , W _ { K } ^ { i } , W _ { V } ^ { i }$ are the weight matrices for $i$ th head. $W ^ { O }$ is the weight matrix for output. $d _ { k }$ is the dimension of keys. Original $Q$ is added to the output of Equation 16 to stabilize the training as residual learning. ",
1708
+ "bbox": [
1709
+ 173,
1710
+ 316,
1711
+ 825,
1712
+ 363
1713
+ ],
1714
+ "page_idx": 11
1715
+ },
1716
+ {
1717
+ "type": "text",
1718
+ "text": "A.2 MODEL DETAILS ",
1719
+ "text_level": 1,
1720
+ "bbox": [
1721
+ 176,
1722
+ 382,
1723
+ 334,
1724
+ 397
1725
+ ],
1726
+ "page_idx": 11
1727
+ },
1728
+ {
1729
+ "type": "text",
1730
+ "text": "A.2.1 CONTEXTUAL PATH ",
1731
+ "text_level": 1,
1732
+ "bbox": [
1733
+ 176,
1734
+ 410,
1735
+ 367,
1736
+ 424
1737
+ ],
1738
+ "page_idx": 11
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "text": "The encoding process in contextual path is realized by a simple multi-head self-attention network on support data. First, ${ \\bf x } ^ { c _ { n } ; k }$ are mapped to a lower dimensional hidden space by a MLP $f _ { 1 } : \\mathbb { R } ^ { d } $ $\\mathbb { R } ^ { d _ { h } }$ to reduce the computation complexity. Then the low-dimensional representations $\\mathbf { x } _ { h 1 } ^ { c _ { n } ; k }$ are processed by the -head self-attention network $f _ { c p } ^ { s a } : \\mathbb { R } ^ { d _ { h } } \\mathbb { R } ^ { d _ { h } }$ , ",
1743
+ "bbox": [
1744
+ 174,
1745
+ 434,
1746
+ 825,
1747
+ 496
1748
+ ],
1749
+ "page_idx": 11
1750
+ },
1751
+ {
1752
+ "type": "equation",
1753
+ "img_path": "images/8cf38f56688dd50a03b63ca1a3a93aed736836d470b8526704c8564a88b4c860.jpg",
1754
+ "text": "$$\n{ \\bf X } ^ { c p } = M u l t i H e a d A t t e n t i o n ( Q = { \\bf X } _ { h 1 } , K = { \\bf X } _ { h 1 } , V = { \\bf X } _ { h 1 } ) .\n$$",
1755
+ "text_format": "latex",
1756
+ "bbox": [
1757
+ 282,
1758
+ 505,
1759
+ 715,
1760
+ 522
1761
+ ],
1762
+ "page_idx": 11
1763
+ },
1764
+ {
1765
+ "type": "text",
1766
+ "text": "$\\mathbf { X } _ { h 1 } \\in \\mathbb { R } ^ { N K \\times d _ { h } }$ is the matrix where each row stands for one support sample $\\mathbf { x } _ { h 1 } ^ { c _ { n } ; k }$ . For one $N$ -way $K$ -shot task, the outputs of $f _ { c p } ^ { s a }$ . ",
1767
+ "bbox": [
1768
+ 173,
1769
+ 534,
1770
+ 825,
1771
+ 565
1772
+ ],
1773
+ "page_idx": 11
1774
+ },
1775
+ {
1776
+ "type": "text",
1777
+ "text": "A.2.2 ATTENTIVE PATH ",
1778
+ "text_level": 1,
1779
+ "bbox": [
1780
+ 176,
1781
+ 582,
1782
+ 349,
1783
+ 597
1784
+ ],
1785
+ "page_idx": 11
1786
+ },
1787
+ {
1788
+ "type": "text",
1789
+ "text": "The attentive path is instantiated by attention, similar to contextual path. First, a MLP $f _ { 2 } : \\mathbb { R } ^ { d } $ $\\mathbb { R } ^ { d _ { h } }$ is used to map both ${ \\bf x } ^ { c _ { n } ; k }$ and $\\hat { \\bf x }$ to $\\mathbf { x } _ { h 2 } ^ { c _ { n } ; k }$ and $\\hat { \\mathbf { x } } _ { h 2 }$ . Then we employ another $H$ -head selfattention network $f _ { a p } ^ { s a } : \\mathbb { R } ^ { d _ { h } } \\mathbb { R } ^ { d _ { h } }$ on $\\mathbf { x } _ { h 2 } ^ { c _ { n } ; k }$ to encode the global task information to each support sample, ",
1790
+ "bbox": [
1791
+ 173,
1792
+ 606,
1793
+ 825,
1794
+ 669
1795
+ ],
1796
+ "page_idx": 11
1797
+ },
1798
+ {
1799
+ "type": "equation",
1800
+ "img_path": "images/8787916c00021d49460bcd080a4e69848a2772678f0f486e7734e5ce4c4279d9.jpg",
1801
+ "text": "$$\n{ \\bf X } ^ { a p } = M u l t i H e a d A t t e n t i o n ( Q = { \\bf X } _ { h 2 } , K = { \\bf X } _ { h 2 } , V = { \\bf X } _ { h 2 } ) .\n$$",
1802
+ "text_format": "latex",
1803
+ "bbox": [
1804
+ 281,
1805
+ 670,
1806
+ 715,
1807
+ 688
1808
+ ],
1809
+ "page_idx": 11
1810
+ },
1811
+ {
1812
+ "type": "text",
1813
+ "text": "The cross attention between query and context-aware support samples are computed as ",
1814
+ "bbox": [
1815
+ 171,
1816
+ 700,
1817
+ 745,
1818
+ 715
1819
+ ],
1820
+ "page_idx": 11
1821
+ },
1822
+ {
1823
+ "type": "equation",
1824
+ "img_path": "images/b5ceefbeb0428b082e6acf93b38a09c6687333a0b42dda38e489b18e3f51dbb0.jpg",
1825
+ "text": "$$\n{ \\hat { \\bf X } } ^ { a p } = M u l t i H e a d A t t e n t i o n ( Q = { \\hat { \\bf X } } _ { h 2 } , K = { \\bf X } _ { h 2 } , V = { \\bf X } ^ { a p } ) .\n$$",
1826
+ "text_format": "latex",
1827
+ "bbox": [
1828
+ 281,
1829
+ 723,
1830
+ 715,
1831
+ 743
1832
+ ],
1833
+ "page_idx": 11
1834
+ },
1835
+ {
1836
+ "type": "text",
1837
+ "text": "Here $\\hat { \\mathbf { X } } ^ { a p } \\in \\mathbb { R } ^ { | \\mathcal { Q } | \\times d _ { h } }$ is the matrix form of $\\hat { \\mathbf { x } } _ { q }$ , where each query sample is context-aware. ",
1838
+ "bbox": [
1839
+ 169,
1840
+ 753,
1841
+ 764,
1842
+ 770
1843
+ ],
1844
+ "page_idx": 11
1845
+ },
1846
+ {
1847
+ "type": "text",
1848
+ "text": "A.2.3 WEIGHT GENERATOR",
1849
+ "text_level": 1,
1850
+ "bbox": [
1851
+ 174,
1852
+ 786,
1853
+ 380,
1854
+ 801
1855
+ ],
1856
+ "page_idx": 11
1857
+ },
1858
+ {
1859
+ "type": "text",
1860
+ "text": "Assume $\\mathbf { x } ^ { c p \\oplus a p } = \\mathbf { X } _ { i , j , : } ^ { c p \\oplus a p } \\in \\mathbb { R } ^ { 2 d _ { h } }$ , where $i , j$ stands for $i$ th query sample and $j$ th support sample. $\\mathbf { x } ^ { c p \\oplus a p }$ is decoded by the weights generator $g : \\mathbb { R } ^ { 2 d _ { h } } \\mathbb { R } ^ { 2 d }$ . We assume that the classification weights follow Gaussian distribution with diagonal covariance and we sample the weights from this distribution during meta-training, shown in Equation 23 and 24. ",
1861
+ "bbox": [
1862
+ 173,
1863
+ 810,
1864
+ 825,
1865
+ 872
1866
+ ],
1867
+ "page_idx": 11
1868
+ },
1869
+ {
1870
+ "type": "equation",
1871
+ "img_path": "images/0c933c6c2eed95051878f22e12d9223deb47d7728efda5fa0ecf8c1ded9be0c9.jpg",
1872
+ "text": "$$\n\\mu _ { \\mathbf { w } } , \\sigma _ { \\mathbf { w } } = g ( \\mathbf { z } )\n$$",
1873
+ "text_format": "latex",
1874
+ "bbox": [
1875
+ 446,
1876
+ 880,
1877
+ 552,
1878
+ 897
1879
+ ],
1880
+ "page_idx": 11
1881
+ },
1882
+ {
1883
+ "type": "equation",
1884
+ "img_path": "images/914787c41dbb5cdc072aa30baae3b72825522e3c8f5f1dee246482e8e844b141.jpg",
1885
+ "text": "$$\n\\mathbf { w } \\sim \\mathcal { N } ( \\mu _ { \\mathbf { w } } , \\pmb { \\Sigma } _ { \\mathbf { w } } )\n$$",
1886
+ "text_format": "latex",
1887
+ "bbox": [
1888
+ 436,
1889
+ 907,
1890
+ 562,
1891
+ 925
1892
+ ],
1893
+ "page_idx": 11
1894
+ },
1895
+ {
1896
+ "type": "text",
1897
+ "text": "A.3 EXPERIMENTAL ANALYSIS ",
1898
+ "text_level": 1,
1899
+ "bbox": [
1900
+ 176,
1901
+ 103,
1902
+ 401,
1903
+ 117
1904
+ ],
1905
+ "page_idx": 12
1906
+ },
1907
+ {
1908
+ "type": "text",
1909
+ "text": "A.3.1 FEW SHOT REGRESSION ",
1910
+ "text_level": 1,
1911
+ "bbox": [
1912
+ 176,
1913
+ 132,
1914
+ 401,
1915
+ 147
1916
+ ],
1917
+ "page_idx": 12
1918
+ },
1919
+ {
1920
+ "type": "text",
1921
+ "text": "AWGIM can be applied to few shot regression task by slight modification. During meta-training, we set the number of classes $N$ equal to 1 and adapt the cross entropy loss to mean square error. We use the data points $( x , y )$ as inputs to AWGIM and generate weight as well as bias parameters for a three layer MLP with hidden dimension 40. This is consistent with few shot regression experimental setting in LEO. ",
1922
+ "bbox": [
1923
+ 174,
1924
+ 160,
1925
+ 825,
1926
+ 229
1927
+ ],
1928
+ "page_idx": 12
1929
+ },
1930
+ {
1931
+ "type": "text",
1932
+ "text": "The few shot regression tasks are constructed as either sinusoidal or linear regression tasks. For sinusoidal regression tasks, the amplitude range is [0.1, 5], phase range $[ 0 , 2 \\pi ]$ , frequency range [0.5, 2.0]. For linear regression tasks, the slope range is $[ - 1 , 1 ]$ , intercept range $[ - 5 , 5 ]$ . Input $x$ is randomly sample from $[ - 5 , 5 ]$ . Gaussian noise with standard deviation 0.3 is added to $y$ during meta-training. We show some qualitative results in Figure 2. (a) and (b) are examples that can be tackled easily. For some non-trivial cases such as (c) and (d), AWGIM produces predictions slightly mixing with another regression family, despite that overall results are still faithful. ",
1933
+ "bbox": [
1934
+ 173,
1935
+ 237,
1936
+ 825,
1937
+ 335
1938
+ ],
1939
+ "page_idx": 12
1940
+ },
1941
+ {
1942
+ "type": "image",
1943
+ "img_path": "images/df7812dbdfdc7c5baf047dcc3b50d4a47220543c760af8eaedde57f4917c7892.jpg",
1944
+ "image_caption": [
1945
+ "Figure 2: 5-shot regression results for a multi-modal task distribution. Regression targets are plotted in red and prediction in black. 5 training samples per task are plotted with blue solid circles. "
1946
+ ],
1947
+ "image_footnote": [],
1948
+ "bbox": [
1949
+ 235,
1950
+ 386,
1951
+ 781,
1952
+ 720
1953
+ ],
1954
+ "page_idx": 12
1955
+ },
1956
+ {
1957
+ "type": "text",
1958
+ "text": "A.3.2 EFFECT OF MULTI-HEAD ATTENTION ",
1959
+ "text_level": 1,
1960
+ "bbox": [
1961
+ 176,
1962
+ 827,
1963
+ 493,
1964
+ 840
1965
+ ],
1966
+ "page_idx": 12
1967
+ },
1968
+ {
1969
+ "type": "text",
1970
+ "text": "We replace the multi-head attention in the two paths with single-head attention and conduct the 5- way 1-shot and 5-way 5-shot experiments on miniImageNet dataset. The results are shown in Table 4. We can see clearly that multi-head attention improve the performance. In particular, for 5-way 1-shot experiment, single head attention gives results close to MLP encoding, which indicates that single head attention struggles when data are extremely scarce. ",
1971
+ "bbox": [
1972
+ 174,
1973
+ 853,
1974
+ 825,
1975
+ 924
1976
+ ],
1977
+ "page_idx": 12
1978
+ },
1979
+ {
1980
+ "type": "table",
1981
+ "img_path": "images/b35774e18aaaba69f80aa31a8b488a9e3337624d57822c24791f4c865a5b7a58.jpg",
1982
+ "table_caption": [
1983
+ "Table 4: Accuracy results on miniImageNet with 4 heads or single head in attention networks. "
1984
+ ],
1985
+ "table_footnote": [],
1986
+ "table_body": "<table><tr><td>Method</td><td>5-way 1 -shot</td><td> 5-way 5-shot</td></tr><tr><td>4 heads</td><td>63.12%</td><td>78.40%</td></tr><tr><td>single head</td><td>62.35%</td><td>77.75%</td></tr></table>",
1987
+ "bbox": [
1988
+ 352,
1989
+ 128,
1990
+ 645,
1991
+ 184
1992
+ ],
1993
+ "page_idx": 13
1994
+ },
1995
+ {
1996
+ "type": "text",
1997
+ "text": "A.3.3 CONVERGENCE ",
1998
+ "text_level": 1,
1999
+ "bbox": [
2000
+ 174,
2001
+ 208,
2002
+ 341,
2003
+ 222
2004
+ ],
2005
+ "page_idx": 13
2006
+ },
2007
+ {
2008
+ "type": "text",
2009
+ "text": "We compare AWGIM with LEO in terms of convergence speed. The batch size is set to be 16 for both methods. We use the hyper-parameters tuned by authors to train LEO. The accuracy of metavalidation set during meta-training on 5-way 1-shot miniImageNet is plotted, shown in Figure 3. we can see clearly that AWGIM converges faster than LEO and outperforms LEO except for the first few iterations. ",
2010
+ "bbox": [
2011
+ 173,
2012
+ 232,
2013
+ 825,
2014
+ 303
2015
+ ],
2016
+ "page_idx": 13
2017
+ },
2018
+ {
2019
+ "type": "image",
2020
+ "img_path": "images/70012493ad6568c4a0bf7152014453a6a19cdde405da29751675aab5579ea992.jpg",
2021
+ "image_caption": [
2022
+ "Figure 3: The meta-validation accuracy during meta-training. "
2023
+ ],
2024
+ "image_footnote": [],
2025
+ "bbox": [
2026
+ 310,
2027
+ 333,
2028
+ 650,
2029
+ 530
2030
+ ],
2031
+ "page_idx": 13
2032
+ },
2033
+ {
2034
+ "type": "text",
2035
+ "text": "A.3.4 INFERENCE TIME ",
2036
+ "text_level": 1,
2037
+ "bbox": [
2038
+ 176,
2039
+ 577,
2040
+ 351,
2041
+ 592
2042
+ ],
2043
+ "page_idx": 13
2044
+ },
2045
+ {
2046
+ "type": "text",
2047
+ "text": "We measure the inference time of AWGIM to show that it induces minimal computational overhead. In comparison, we use “MLP encoding” in two paths, which has time complexity $O ( N K + | \\mathcal { Q } | )$ . We use two set-ups on miniImageNet and the batch size is set to be 64. 100 batches are processed and we report the average consumed time for one batch. All these experiments on done with the same GPU and workstation. The results are shown in Table 5. It can be observed that the usage of self-attention and cross attention in AWGIM occurs negligible overhead, compared with MLP encoding. This is because the values of $N , K , | \\mathcal { Q } |$ are all relatively small and matrix multiplication further can be processed very fast by GPU. ",
2048
+ "bbox": [
2049
+ 173,
2050
+ 601,
2051
+ 825,
2052
+ 713
2053
+ ],
2054
+ "page_idx": 13
2055
+ },
2056
+ {
2057
+ "type": "table",
2058
+ "img_path": "images/8832d13a103fa54771879e563b1b44c4469a1b5472b96ac62306206e98011cd7.jpg",
2059
+ "table_caption": [
2060
+ "Table 5: The comparison of inference time between AWGIM and MLP encoding. "
2061
+ ],
2062
+ "table_footnote": [],
2063
+ "table_body": "<table><tr><td>Method</td><td>5-way 1 -shot</td><td>5-way 5-shot</td></tr><tr><td>AWGIM</td><td>0.036s</td><td>0.093s</td></tr><tr><td>MLP encoding</td><td>0.033s</td><td>0.093s</td></tr></table>",
2064
+ "bbox": [
2065
+ 339,
2066
+ 752,
2067
+ 656,
2068
+ 809
2069
+ ],
2070
+ "page_idx": 13
2071
+ },
2072
+ {
2073
+ "type": "text",
2074
+ "text": "A.3.5 VISUALIZATION ",
2075
+ "text_level": 1,
2076
+ "bbox": [
2077
+ 176,
2078
+ 829,
2079
+ 344,
2080
+ 844
2081
+ ],
2082
+ "page_idx": 13
2083
+ },
2084
+ {
2085
+ "type": "text",
2086
+ "text": "We visualize the generated classification weights by t-SNE (Maaten & Hinton, 2008). First we sample 400 tasks from meta-validation set of 5-way 1-shot miniImageNet experiment. Each task contains 5 query samples from 5 different classes. Thus in total there are $4 0 0 \\times 5 \\times 5 = 1 0 , 0 0 0$ weight vectors to visualize. As comparison, inputs to the generator $g$ are also plotted. The visualization results are shown in Figure 4. The inputs to $g$ are displayed in (a, b) and the generated classification weights in (c, d). From the comparison between (a) and (c), we can see the decoded weights for each class in (c) are clustered closer than (a) in general. Red and blue dots in (b, d) denotes the classification weights for two query samples from two classes within one task. It can be observed that $g$ can generate adapted weights for different query samples. This is consistent with Table 3, where the results of “random shuffle between classes” suggest that query samples from different class have distinct classification weights. ",
2087
+ "bbox": [
2088
+ 174,
2089
+ 853,
2090
+ 825,
2091
+ 924
2092
+ ],
2093
+ "page_idx": 13
2094
+ },
2095
+ {
2096
+ "type": "text",
2097
+ "text": "",
2098
+ "bbox": [
2099
+ 174,
2100
+ 103,
2101
+ 825,
2102
+ 188
2103
+ ],
2104
+ "page_idx": 14
2105
+ },
2106
+ {
2107
+ "type": "image",
2108
+ "img_path": "images/7279dd6a6dd60341910d31f04f08cc86bd5dc1b2d43395c825b56188a42d47cb.jpg",
2109
+ "image_caption": [
2110
+ "Figure 4: t-SNE visualization of the inputs to $g$ in (a, b) and the generated classification weights in (c, d). Blue and red dots in (b) and (d) are the classification weights for two query samples in the same task. "
2111
+ ],
2112
+ "image_footnote": [],
2113
+ "bbox": [
2114
+ 210,
2115
+ 224,
2116
+ 810,
2117
+ 592
2118
+ ],
2119
+ "page_idx": 14
2120
+ }
2121
+ ]
parse/train/BJxpIJHKwB/BJxpIJHKwB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJxpIJHKwB/BJxpIJHKwB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1K6Tb-AZ/H1K6Tb-AZ.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TESLA: TASK-WISE EARLY STOPPING AND LOSS AGGREGATION FOR DYNAMIC NEURAL NETWORK INFERENCE
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ For inference operations in deep neural networks on end devices, it is desirable to deploy a single pre-trained neural network model, which can dynamically scale across a computation range without comprising accuracy. To achieve this goal, Incomplete Dot Product (IDP) has been proposed to use only a subset of terms in dot products during forward propagation. However, there are some limitations, including noticeable performance degradation in operating regions with low computational costs, and essential performance limitations since IDP uses hand-crafted profile coefficients. In this paper, we extend IDP by proposing new training algorithms involving a single profile, which may be trainable or pre-determined, to significantly improve the overall performance, especially in operating regions with low computational costs. Specifically, we propose the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm, which is showed in our 3-layer multilayer perceptron on MNIST that outperforms the original IDP by $3 2 \%$ when only $1 0 \%$ of dot products terms are used and achieves $9 4 . 7 \%$ accuracy on average. By introducing trainable profile coefficients, TESLA further improves the accuracy to $9 5 . 5 \%$ without specifying coefficients in advance. Besides, TESLA is applied to the VGG-16 model, which achieves $8 0 \%$ accuracy using only $2 0 \%$ of dot product terms on CIFAR-10 and also keeps $6 0 \%$ accuracy using only $3 0 \%$ of dot product terms on CIFAR-100, but the original IDP performs like a random guess in these two datasets at such low computation costs. Finally, we visualize the learned representations at different dot product percentages by class activation map and show that, by applying TESLA, the learned representations can adapt over a wide range of operation regions.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Inference operations in deep neural networks on end devices, such as mobile phones, embedded sensors, IoT devices, etc., have recently received increasing attention including McMahan et al. (2016), Howard et al. (2017), and Teerapittayanon et al. (2017). In such applications, it is desirable to deploy a single pre-trained CNN model on end devices, while allowing multiple operating regions to meet different power consumption, latency, and accuracy requirements. To achieve this goal, McDanel et al. (2017a) proposed the incomplete dot product (IDP) operation, where only a subset of terms is used in dot products of forward propagation. From now on, $x \%$ dot product (DP), where 0 $\leq x \leq 1 0 0$ , means the $x \%$ of terms used in dot products. As illustrated in Figure 1, $5 0 \%$ DP means half of filters are used during forward propagation, and thus only half of the output channels are retained. To reduce the deviation induced by IDP, filters are prioritized from most important to the least important by pre-determined monotonically non-increasing profile coefficients (say, $\gamma _ { 1 } , . . . , \gamma _ { N } )$ during training. Therefore, IDP can be applied at inference time with dynamically-adjusted degrees of completeness (specified by the percentage of terms being used) to trade off accuracy slightly for lowered power consumption and reduced latency. Specifically, VGG-16 model with $5 0 \%$ DP achieves $7 0 \%$ in accuracy on the CIFAR-10 dataset compared to the standard network achieves only $3 5 \%$ accuracy when using the reduced channel set.
12
+
13
+ While the original IDP design seems promising, there are two limitations. First, since the training process aims at optimizing the loss function computed using all weights of the model ( $1 0 0 \%$ DP), there will be a mismatch between training and testing. It is no surprise that inference performance significantly decreases in low DP percentages and thus narrow the dynamic computation range. To mitigate this problem, the original IDP design utilizes the multiple-profile training strategy, where different profiles can be specified to focus on different dot product ranges. In such a multipleprofile training process, however, certain subset of weights will be freezed in each training stage corresponding to the profile being focused, and hence the overall performance may not be fully optimized. Besides, each profile needs to maintain a separate first and last layer for adjusting to its own dot product range, resulting in additional memory overhead. The second limitation relates to the pre-determined nature of profile coefficients. While there are multiple ways to set the profile based on different dynamic range requirements, the original IDP design did not focus on finding a single ”best” profile that leads to the best performance. Instead, they use multiple hand-crafted profile coefficients, which make the system design less general among different applications, and hence may limit the overall performance of the system.
14
+
15
+ ![](images/b0dd91008c4e8fc441f3be52ecf73951a42e6e8f3ccdd53eb25a978714cc5aae.jpg)
16
+ Figure 1: Comparison between complete dot product (CDP) and incomplete dot product (IDP) where $X \%$ DP implies only $X \%$ of filters are used to compute the corresponding output channel. Since only $X \%$ filters are unused, the resulting output is an approximation of the output under CDP.
17
+
18
+ To reduce the mismatch between training and testing performances, we propose the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm, in which multiple loss functions are computed in different DP percentages. By gradually aggregating these loss functions in decreasing order of DP percentages as the objective function to be optimized, TESLA significantly improves testing performances in low DP percentages without compromising accuracy in medium to high DP percentages. The loss functions can also be aggregated in random order of DP percentages to make a variant of TESLA, called Randomized TESLA (R-TESLA), which enables better performances under prespecified operating regions of end devices. Moreover, we relax the constraint of pre-determined profile coefficients and propose the alternate training procedure (ATP) to alternately train the profile coefficients along with weights of the model. By introducing trainable profile coefficients, customization among different applications can be achieved in a more generalized way, and the overall performance can also be further improved. This paper has made two major contributions: (1) We propose the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm and Randomized TESLA that can achieve dynamic scaling over a computation range in neural network inference without compromising accuracy. (2) We also propose the Alternate Training Procedure (ATP) that can learn the profile coefficients and the model weights simultaneously without the need of manual configuration of the profile coefficients.
19
+
20
+ # 2 INCOMPLETE NEURAL NETWORKS
21
+
22
+ Incomplete dot product (IDP) is a novel mechanism proposed by McDanel et al. (2017a) that can be applied to a hidden layer of MLPs or deep CNN models to dynamically lower the inference costs by computing only a subset of terms in dot products during forward propagation. By introducing a set of non-increasing coefficients $\gamma _ { i }$ , referred to as a profile, to the channels during training, the channels will be ordered implicitly in non-increasing order from the most important to the least important. By simply dropping out less important channels at inference time, it suffices to train and deploy a single network, while still supporting different levels of computation scaling without compromising accuracy significantly. In this section, we briefly introduce the main concepts of IDP.
23
+
24
+ # 2.1 INCOMPLETE DOT PRODUCT OPERATION
25
+
26
+ Mathematically, for an IDP fully-connected layer with input dimension $N$ and output dimension $M$ , the $j$ -th output component $y _ { j }$ is computed as
27
+
28
+ $$
29
+ y _ { j } = \sum _ { i = 1 } ^ { N } \gamma _ { i } w _ { j i } x _ { i } ,
30
+ $$
31
+
32
+ for $j \in \{ 1 , 2 , . . . , M \}$ , where $x _ { i }$ is the $i$ -th input component, $w _ { j i }$ is the weight corresponding to the $j$ -th output component and the $i$ -th input component, and $\gamma _ { i }$ is the $i$ -th profile coefficient.
33
+
34
+ Similar expression can be derived for the IDP operation applied to a convolutional layer of CNN, as illustrated in Figure 1. For an IDP convolutional layer with number of input channels $N$ and number of output channels $M$ , the $j$ -th output channel ${ \bf y } _ { j }$ is computed as
35
+
36
+ $$
37
+ \mathbf { y } _ { j } = \gamma _ { j } \sum _ { i = 1 } ^ { N } \mathbf { f } _ { j i } * \mathbf { x } _ { i } ,
38
+ $$
39
+
40
+ for $j \in \{ 1 , 2 , . . . , M \}$ , where $\mathbf { f } _ { j i } * \mathbf { x } _ { i }$ denotes the convolution operation of the $i$ -th input channel $\mathbf { x } _ { i }$ and the $i$ -th channel of the $j$ -th filter $\mathbf { f } _ { j i }$ , and $\gamma _ { j }$ is the profile coefficient for the $j$ -th filter. Note that, instead of applying profile coefficients depthwise on each filter before convolution as is the case in the original IDP design, we multiply each $\gamma _ { j }$ to each output channel after a complete convolution to produce ${ \bf y } _ { j }$ . These two approaches, however, are equivalent with negligible difference induced by the first hidden layer. Since the output channels ${ \bf y } _ { j }$ ’s become input channels $\mathbf { x } _ { i }$ ’s to the next layer, applying $\gamma _ { j }$ ’s to ${ \bf y } _ { j }$ ’s is equivalent to applying them into the convolution operation in the next layer.
41
+
42
+ To compute IDP with a target dot product percentage, a truncated version of Eq. 1 or Eq. 2 replaces the original computation to keep only a subset of the beginning terms. As for the case with all terms are kept, we refer to such operations as complete dot product (CDP) or $1 0 0 \%$ DP, interchangeably. Note that in the training process in the original IDP design, only CDP is used.
43
+
44
+ # 2.2 MULTIPLE-PROFILE INCOMPLETE NEURAL NETWORKS
45
+
46
+ In the work of McDanel et al. (2017a), several profile coefficients are proposed and applied in a pre-determined manner. When only a single profile is applied to the model, the trade-off between computation range and performance in high DP percentage regions is also demonstrated. Generally, the faster the profile coefficients decrease, the larger computation range can be achieved, at the expense of a performance degradation in high DP percentage regions. To cover a larger computation range while maintaining the performance in high DP percentage regions, McDanel et al. (2017a) further introduced the multiple-profile incomplete neural networks (MP-IDP), where different profiles can be specified to focus on different DP ranges. During training, all the specified profiles are applied in increasing order of their operating DP ranges. When a profile is applied, only weights corresponding to its operating DP range will be updated, leaving weights corresponding to lower DP percentages freezed since they have been trained in previous stages, and weights corresponding to higher IDP percentages set to zeros since they will be trained in later stages. In such a stage-by-stage training process, the overall performance may not be fully optimized.
47
+
48
+ # 3 TASK-WISE EARLY STOPPING AND LOSS AGGREGATION
49
+
50
+ As discussed in Section 2, in the original IDP design, CDP is used during training but IDP is applied at inference time. This mismatch leads to a noticeable degradation in inference performance, especially in low DP percentages. To mitigate this problem, we propose the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm. In this paper, a task is defined as the learning process that uses only a subset of weights determined by a DP percentage to learn the optimal representations. For example, a task of $5 0 \%$ DP implies that the first half of network weights are used for dot product computations and thus only these $5 0 \%$ of weights will be updated while conducting backpropagation. With TESLA, we can optimize a network by tasks with different DP percentages to support various levels of computation scaling and meanwhile reduce the mismatch between training and inference. The design of TESLA is described as follows.
51
+
52
+ # 3.1 TASK-WISE EARLY STOPPING
53
+
54
+ Since tasks with different DP percentages may have different learning difficulties and convergence rates, we apply an early stopping mechanism to automatically adjust the learning processes of tasks. Specifically, we keep all hyper-parameters unchanged except the numbers of epoches, which are controlled by the early stopping mechanism that halts the training process as long as the task performance has not been improved for a certain number of iterations. For example, considering two tasks, one using $7 0 \%$ DP (task 1) and the other using $4 0 \%$ DP (task 2), we first optimize task 1 and then switch to optimize task 2 until the optimization process of task 1 reaches the early stopping criterion. With this task-wise early stopping, we are able to optimize all the tasks sequentially, and each task initializes its model using the weights that have been optimized for all previous tasks. However, the weights used in task 2 is exactly a subset of weights used in task 1 such that the optimization process of task 2 may contaminate the well-trained weights for task 1. To reduce this unexpected disturbance while learning multiple tasks, some kinds of loss aggregation are needed to learn a new task without sacrificing the performance of all the past tasks too much.
55
+
56
+ # Algorithm 1 Task-wise Early Stopping and Loss Aggregation, TESLA
57
+
58
+ 1: Input: a task set in decreasing order, $T = L _ { i }$ ; aggregation coefficient $\alpha$
59
+ 2: Initialization: $L _ { 1 } ^ { o b j } L _ { 1 }$ and $i \gets 1$
60
+ 3: while $i \leq s i z e ( T )$ do
61
+ 4: 5: $L _ { i + 1 } ^ { o b j } \alpha \times L _ { i + 1 } + ( 1 - \alpha ) \times L _ { i } ^ { o b j }$ $L _ { i } ^ { o b j }$ pping criteria
62
+ 6: i ← i + 1
63
+ 7: end while
64
+
65
+ # Algorithm 2 Randomized TESLA, R-TESLA
66
+
67
+ 1: Input: a task set in any order, $T = L _ { i }$ ; allowable epoch, max epoch; aggregation coefficient $\alpha$
68
+ 2: Initialization: $L _ { 1 } ^ { o b j } L _ { 1 }$ , $i \gets 0$ , and $n \gets 0$
69
+ 3: while $n \leq$ max epoch do
70
+ 4: optimize $L _ { i } ^ { o b j }$ until meeting early stopping criteria, which takes n epochs
71
+ 5: 6: $L _ { i + 1 } ^ { o b j } \gets \alpha \times L _ { k } + ( 1 - \alpha ) \times L _ { i } ^ { o b j }$ $L _ { k }$
72
+ 7: i ← i + 1
73
+ 8: $n n + n$ epcohs
74
+ 9: end while
75
+
76
+ # 3.2 TASK-WISE LOSS AGGREGATION
77
+
78
+ Task-wise loss aggregation is therefore proposed to jointly learn the shared representation for all tasks. By considering one new task at a time, we add the loss of the new task into the current objective function and optimize the aggregated objective function such that tasks are optimized incrementally and jointly. The aggregated objective function can be expressed as
79
+
80
+ $$
81
+ L _ { 1 } ^ { o b j } = L _ { 1 } ~ \mathrm { a n d } ~ L _ { i + 1 } ^ { o b j } = \alpha \times L _ { i + 1 } + ( 1 - \alpha ) \times L _ { i } ^ { o b j } ~ , ~ \forall i = 1 , \cdots , N - 1
82
+ $$
83
+
84
+ where $\alpha$ is the aggregation coefficient shared by all subsequent tasks and greater $\alpha$ implies that we care more about the optimization of the new task. As a consequence, the objective function in the whole learning process is an affine combination of the losses of currently considered tasks. By
85
+
86
+ ![](images/0fd499cedc4c9afbb9bd09c480424ad51915337c4d0feb7009e3f509d3814295.jpg)
87
+ Figure 2: Network structures in study
88
+
89
+ Table 1: Hyper-parameters in Experiments
90
+
91
+ <table><tr><td>Experiment</td><td>MLP on MNIST</td><td>VGG-16 onCIFAR-10</td><td>VGG-16 on CIFAR-100</td></tr><tr><td>Tasks at DP %</td><td>100,70,40,10</td><td>100,50,20</td><td>100,70,50,30</td></tr><tr><td>Learning rate</td><td>0.001</td><td>0.004</td><td>0.004</td></tr><tr><td>Optimizer</td><td>Adam</td><td>SGD momentum=0.9</td><td>SGD momentum =0.9</td></tr><tr><td>Batch size</td><td>28</td><td>32</td><td>64</td></tr><tr><td>Aggregation coefficient</td><td>0.5</td><td>0.5</td><td>0.5</td></tr><tr><td>TESLA stopping criteria</td><td>not improve in4 epochs</td><td>not improve in 4 epochs</td><td>not improve in 4 epochs</td></tr><tr><td>R-TESLAstopping criteria</td><td># epochs over 50</td><td>#epochs over35</td><td>#epochs over35</td></tr><tr><td>Initial weights</td><td>random</td><td>pre-trained on ImageNet</td><td>pre-trained on ImageNet</td></tr></table>
92
+
93
+ task-wise loss aggregation, these losses are aggregated incrementally and can be jointly optimized to learn a shared representation to be relevant to all tasks.
94
+
95
+ # 3.3 TESLA AND RANDOMIZED TESLA
96
+
97
+ Task-wise Early Stopping and Loss Aggregation, TESLA. We integrate task-wise early stopping and task-wise loss aggregation as TESLA to learn dynamic representations in neural networks. The entire training process optimizes all tasks in an arbitrary order. It is obvious that we have several options to order tasks in (i) increasing, (ii) decreasing, or (iii) random DP percentages. Recall that we add a non-increasing coefficients to prioritize terms in computing dot product, and thus the beginning terms, e.g. at $1 0 \%$ DP, are more important than the terms at last $1 0 \%$ terms. Therefore, discarding the terms from the end is less harmful to the optimized parameters, so TESLA is designed to optimize tasks in decreasing order of DP percentages. The TESLA algorithm is shown in Algorithm 1.
98
+
99
+ Randomized Task-wise Early Stopping and Loss Aggregation, R-TESLA. Here Randomized means that tasks are optimized in random order. The benefits of R-TESLA is two fold. First, RTESLA provides an opportunity to turn attention back to optimize a task which had been halted before, and allows to finetune the weights, which may have been contaminated by other tasks. Second, unlike TESLA that optimizes each task only once, R-TESLA allows each task to be optimized for multiple times, which can be specified by a customized task distribution derived from the behavioral statistics of users or the specification of hardware design. The detailed procedures of R-TESLA are in Algorithm 2.
100
+
101
+ # 3.4 TRAINABLE PROFILE COEFFICIENTS
102
+
103
+ In this section we propose to learn profile coefficients along with weights of the model alternately. We initialize all coefficients as one and as long as any update of profile coefficients, we manually clip the coefficients to keep the non-increasing property. The alternate training procedure (ATP) relaxes the constraint of fixed coefficients and we demonstrate the feasibility of ATP in the experiment of the MLP model on MNIST dataset in Section 4.
104
+
105
+ # 4 EXPERIMENTS
106
+
107
+ In this section, we demonstrate the effectiveness of using TESLA and R-TESLA to learn dynamic representations in MLP and CNN models, with the widely-used datasets MNIST, CIFAR-10, and CIFAR-100. Figure 2 shows the network architectures in study. Note that while working on CIFAR100, the last fully connected layer of Figure 2(b) is replaced by a single 100-class classifier. Here we compare TESLA and R-TESLA with the original IDP design proposed by McDanel et al. (2017a) over a range of dynamic scaling during inference. All hyper-parameters and experiment settings are summarized in Table 1.
108
+
109
+ # 4.1 MULTILAYER PERCEPTRONS
110
+
111
+ First, we consider a 3-layer MLP model, in which the IDP operation is applied to the first hidden layer, as shown in Figure 2(a), and evaluate on the MNIST dataset. In this experiment, we define four tasks that optimize the model at $1 0 \%$ , $4 0 \%$ , $7 0 \%$ , and $1 0 0 \%$ DP, respectively. It is noteworthy that defining too many tasks in our experiment would not benefit much, since there must be a large amount of shared parameters among tasks which makes the model vulnerable to overfitting.
112
+
113
+ ![](images/1b204a0ffa4be7521a49124c4af28e44f0315059e93f44280d7eddbd5e8711ea.jpg)
114
+ Figure 3: Performance comparisons by a MLP model over the MNIST dataset
115
+
116
+ TESLA versus original IDP. We compare TESLA and the original IDP design under various profiles. Figure 3(a) shows that at $2 0 \%$ DP, the original IDP achieves $8 0 \%$ , $6 3 \%$ and $5 5 \%$ accuracy for the harmonic, all-one, and linear profiles respectively but TESLA keeps at least $8 8 \%$ accuracy for all profiles at $2 0 \%$ DP and reaches average accuracy of $9 4 . 7 \%$ using the linear profile. Most importantly, compared to the original IDP, TESLA performs only about $1 \%$ worse in accuracy at $1 0 0 \%$ DP but gains a significant improvement from $5 0 \%$ to $9 0 \%$ in accuracy at $1 0 \%$ DP, which is an acceptable trade-off under practical applications.
117
+
118
+ R-TESLA versus TESLA and original IDP. Figure 3(b) shows that R-TESLA outperforms the original IDP by a large margin and R-TESLA has comparable performance with TESLA in most cases. R-TESLA with the harmonic profile leads to the best average accuracy of $9 5 . 2 \%$ in this experiment. By observing the optimization progress, we find that TESLA achieves its best result after completing the last task thanks to its ordinal optimization. On the other hand, we cannot ensure that R-TESLA can make the ultimate model retains the best dynamic representations due to its random nature.
119
+
120
+ Learn profile coefficients by ATP. Here we demonstrate the feasibility of learning profile coefficients along with weights. From Figure 3(c), with the help of trainable profile coefficients, both TESLA and R-TESLA further boost by $1 \%$ in average, and we also observe that the learned profile coefficients are similar to harmonic ones as shown in Figure 3(d). This may support why performance of harmonic coefficients is the best in the original IDP. By allowing coefficients to be trainable, it is no longer to require hand-crafted profile coefficients and determine the best profile coefficients by extensive experiments.
121
+
122
+ # 4.2 CONVOLUTIONAL NEURAL NETWORKS
123
+
124
+ We choose the known VGG-16 model pre-trained on ImageNet to evaluate over CIFAR-10 and CIFAR-100 dataset so that the last few dense layers are replaced by a 10-class classifier and a 100- class classifier respectively. Here we use the linear profile coefficients to compare: (i) the original IDP design, (ii) multiple-profile IDP design (MP-IDP) as proposed in McDanel et al. (2017a), (iii) TESLA, and (iv) R-TESLA. The experimental results are summarized below.
125
+
126
+ VGG-16 on CIFAR-10. According to Figure 4(a), the performance of original IDP by all-one coefficients drops much faster than that by linear coefficients. Appling all-one coefficients is equivalent to using the original VGG-16 network; however, linear profile coefficients implicitly encourages networks to learn channel importance in order, and also brings about that pruning away later channels at different DP percentages does not hurt the performance that much. With the use of multiple profiles, MP-IDP does enlarge the computational range with an increase in accuracy to $7 5 \%$ at $5 0 \%$ DP. Furthermore, the proposed algorithms, TESLA and R-TESLA, boost the accuracy to reach $8 5 \%$ at $5 0 \%$ DP, and an even higher accuracy at $1 0 0 \%$ DP.
127
+
128
+ Following the previous experiment, here we augment another new task of $2 0 \%$ DP and observe whether TESLA can leverage up the performance at low DP percentages by adding a task of a low DP percentage. Figure 4(b) shows that TESLA and R-TESLA greatly widens the computational ranges by making accuracy reaching $7 5 \%$ at $2 0 \%$ DP. We contribute this effect to applying TESLA and R-TESLA in decreasing order of dot product percentages so that the representation learned at $1 0 0 \%$ DP drives the training of representation at $5 0 \%$ DP, which also makes the representation much easier to be learned at $2 0 \%$ DP. Compared to TESLA and R-TESLA, MP-IDP trains models in increasing order of DP percentages and thus MP-IDP doesn’t see much improvement at lower IDP percentages although adding another task at $2 0 \%$ DP.
129
+
130
+ ![](images/fc8029bb88c608867e56b19ad9e18e324046ff3b51891264bc821bcb56eb9d01.jpg)
131
+ Figure 4: Performance comparisons by the VGG-16 model over the CIFAR-10 and CIFAR-100 dataset
132
+
133
+ ![](images/db98606cfff4d19e86ef988bb3e742d28530e3d0cbd05b2161071314c462df87.jpg)
134
+ Figure 5: CAMs at different DP percentages. Red colored text means wrong prediction and green colored text means correct prediction.
135
+
136
+ ![](images/d7f7b88869bdbd7652219e42dd81d852c03cd882246096e26ed8bc3e9aa459f6.jpg)
137
+ Figure 6: CAMs of a testing image that is correctly classified at all specified DP percentages.
138
+
139
+ VGG-16 on CIFAR-100. To sufficiently illustrate the effectiveness of the proposed approaches, we evaluate over a larger dataset, CIFAR-100. Figure 4(c) shows the performance of TESLA and R-TESLA still keeps around $6 0 \%$ accuracy from $3 0 \%$ to $5 0 \%$ DP, which outperforms either original IDP or MP-IDP by a significant margin, which is consistent with the result of CIFAR-10. Specifically, both TESLA and R-TESLA sacrifice about $4 \%$ accuracy at $1 0 0 \%$ DP but gain a great improvements of $6 0 \%$ accuracy in low DP percentages.
140
+
141
+ CAM visualization. We visualize what the model sees at different DP percentages by deploying the Class Activation Mapping (CAM) technique introduced by Zhou et al. (2016a). A resulting CAM indicates how much each location contribute to the final class prediction. In this stage, we replace the max-pooling layers with average-pooling layers and train the VGG-16 network with linear coefficients optimized at $2 0 \%$ , $5 0 \%$ , $1 0 0 \%$ DP. From CAMs at different DP percentages, we found that the network is easier to make wrong prediction at $1 0 \%$ and $3 0 \%$ DP but still makes correct prediction at $2 0 \%$ DP as shown in Figure 5 since the representations at $2 0 \%$ DP are optimized. This finding implies that we can specify any DP percentages to be optimized for satisfying custom requirements. Compared to Figure 6, we also notice that the CAMs at $1 0 \%$ DP are almost the same no matter the correctness of predictions, which indicates too limited capacity to capture meaningful patterns, and thus the network at $1 0 \%$ DP behaves like a random guess.
142
+
143
+ # 5 RELATED WORK
144
+
145
+ Our work is rooted from IDP proposed by McDanel et al. (2017a), which, in addition to MLPs and regular CNNs, can also be used in conjunction with other variants of convolutional layers, such as separable convolution layer Howard et al. (2017) and binary convolutional layer McDanel et al. (2017b). As discussed throughout this paper, our work extends the original IDP design by proposing new training algorithms involving a single profile, which may be trainable or pre-determined, to significantly improve the overall performance, especially in low DP percentages.
146
+
147
+ Network pruning is a widely-studied area that also aims at compressing the CNN models. Early works of network pruning construct a threshold for dropping weights by information obtained from Hessian matrix or inverse Hessian matrix in LeCun et al. (1990); Hassibi & Stork (1993), which adds memory and computation costs. In most of the recent works, magnitude-based pruning and recovering are incorporated to compensate the potential loss incurred by inadequate pruning. For example, Guo et al. (2016) introduces the splicing operation to enable connection recovery, and Han et al. (2016) directly makes the network dense again. Li et al. (2016) also prune filters in CNNs based on magnitude, but the number of filters pruned away in each layer is decided by layer-wise sensitivity. Besides magnitude-based pruning, a Taylor expansion-based criterion is introduced in Molchanov et al. (2016) to approximate the change in the cost function induced by pruning. In addition to network pruning, some works focus on low-rank decomposition for network compression. For example, Denton et al. (2014) and Jaderberg et al. (2014) approximate the weight matrix into low-rank components by minimizing the reconstruction error. Yu et al. (2017) further decomposes the weight matrix into its low-rank and sparse component. Other works focus on grouping similar weights, such as quantization by Han et al. (2015), Gong et al. (2014), and Zhou et al. (2017) and weight sharing by Ullrich et al. (2017), aiming at reducing the level of redundancy and the required storage. Yet another approach introduces group sparsity regularizer to constrain the structure of the model in Wen et al. (2016), Zhou et al. (2016b), and Alvarez & Salzmann (2016).
148
+
149
+ While all the above techniques are promising in reducing the size of the networks, none of them supports dynamic adjustment during inference as IDP does. Furthermore, most of the above techniques involve retraining the model iteratively, resulting in computational overhead. In our proposed work, the goal of efficient inference with dynamic adjustment can be readily fulfilled by training a single model at once, and the effectiveness is expected to be further improved by incorporating with other techniques listed above.
150
+
151
+ # 6 CONCLUSION
152
+
153
+ In this paper, we extend the idea of incomplete dot product (IDP) by proposing the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm to significantly improve the performance of neural networks with dynamically computation regions at inference time without significantly compromising accuracy. A task is defined as the learning process that uses only a subset of weights specified by a DP percentage to learn the optimal representations of the network. By introducing non-increasing profile coefficients to prioritize weights or filters during training, TESLA can be used to optimize multiple tasks in decreasing order of DP percentages by aggregating the their loss functions. Additionally, we propose Randomized TESLA (R-TESLA) which optimizes tasks in random order, and show that both TESLA and R-TESLA outperform original IDP and multiple-profile IDP significantly. The visualization of the class activation maps (CAMs) provide a strong evidence that the representations learned by TESLA allow dynamically scaling across a computation range to meet various power consumption, latency and accuracy requirements on end devices.
154
+
155
+ # REFERENCES
156
+
157
+ Jose M Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. In Advances in Neural Information Processing Systems, pp. 2270–2278, 2016.
158
+
159
+ Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In Advances in Neural Information Processing Systems, pp. 1269–1277, 2014.
160
+
161
+ Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014.
162
+
163
+ Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. In Advances In Neural Information Processing Systems, pp. 1379–1387, 2016.
164
+
165
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015.
166
+
167
+ Song Han, Jeff Pool, Sharan Narang, Huizi Mao, Enhao Gong, Shijian Tang, Erich Elsen, Peter Vajda, Manohar Paluri, John Tran, et al. Dsd: Dense-sparse-dense training for deep neural networks. 2016.
168
+
169
+ Babak Hassibi and David G. Stork. Second order derivatives for network pruning: Optimal brain surgeon. In Advances in Neural Information Processing Systems 5, pp. 164–171. 1993.
170
+
171
+ Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017.
172
+
173
+ Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv preprint arXiv:1405.3866, 2014.
174
+
175
+ Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In Advances in Neural Information Processing Systems 2, pp. 598–605. 1990.
176
+
177
+ Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016.
178
+
179
+ Bradley McDanel, Surat Teerapittayanon, and HT Kung. Incomplete dot products for dynamic computation scaling in neural network inference. 2017a.
180
+
181
+ Bradley McDanel, Surat Teerapittayanon, and H.T. Kung. Embedded binarized neural networks. In Proceedings of the 2017 International Conference on Embedded Wireless Systems and Networks, 2017b.
182
+
183
+ H Brendan McMahan, Eider Moore, Daniel Ramage, and Blaise Aguera y Arcas. Federated learning of deep networks using model averaging. 2016.
184
+
185
+ Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. 2016.
186
+
187
+ Surat Teerapittayanon, Bradley McDanel, and HT Kung. Distributed deep neural networks over the cloud, the edge and end devices. In Distributed Computing Systems (ICDCS), 2017 IEEE 37th International Conference on, pp. 328–339. IEEE, 2017.
188
+
189
+ Karen Ullrich, Edward Meeds, and Max Welling. Soft weight-sharing for neural network compression. arXiv preprint arXiv:1702.04008, 2017.
190
+
191
+ Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in Neural Information Processing Systems, pp. 2074–2082, 2016.
192
+
193
+ Xiyu Yu, Tongliang Liu, Xinchao Wang, and Dacheng Tao. On compressing deep models by low rank and sparse decomposition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7370–7379, 2017.
194
+
195
+ Aojun Zhou, Anbang Yao, Yiwen Guo, Lin Xu, and Yurong Chen. Incremental network quantization: Towards lossless cnns with low-precision weights. arXiv preprint arXiv:1702.03044, 2017.
196
+
197
+ Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2921–2929, 2016a.
198
+
199
+ Hao Zhou, Jose M Alvarez, and Fatih Porikli. Less is more: Towards compact cnns. In European Conference on Computer Vision, pp. 662–677. Springer, 2016b.
parse/train/H1K6Tb-AZ/H1K6Tb-AZ_content_list.json ADDED
@@ -0,0 +1,1057 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TESLA: TASK-WISE EARLY STOPPING AND LOSS AGGREGATION FOR DYNAMIC NEURAL NETWORK INFERENCE ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 821,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 195,
20
+ 398,
21
+ 223
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 260,
32
+ 544,
33
+ 275
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "For inference operations in deep neural networks on end devices, it is desirable to deploy a single pre-trained neural network model, which can dynamically scale across a computation range without comprising accuracy. To achieve this goal, Incomplete Dot Product (IDP) has been proposed to use only a subset of terms in dot products during forward propagation. However, there are some limitations, including noticeable performance degradation in operating regions with low computational costs, and essential performance limitations since IDP uses hand-crafted profile coefficients. In this paper, we extend IDP by proposing new training algorithms involving a single profile, which may be trainable or pre-determined, to significantly improve the overall performance, especially in operating regions with low computational costs. Specifically, we propose the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm, which is showed in our 3-layer multilayer perceptron on MNIST that outperforms the original IDP by $3 2 \\%$ when only $1 0 \\%$ of dot products terms are used and achieves $9 4 . 7 \\%$ accuracy on average. By introducing trainable profile coefficients, TESLA further improves the accuracy to $9 5 . 5 \\%$ without specifying coefficients in advance. Besides, TESLA is applied to the VGG-16 model, which achieves $8 0 \\%$ accuracy using only $2 0 \\%$ of dot product terms on CIFAR-10 and also keeps $6 0 \\%$ accuracy using only $3 0 \\%$ of dot product terms on CIFAR-100, but the original IDP performs like a random guess in these two datasets at such low computation costs. Finally, we visualize the learned representations at different dot product percentages by class activation map and show that, by applying TESLA, the learned representations can adapt over a wide range of operation regions. ",
40
+ "bbox": [
41
+ 232,
42
+ 290,
43
+ 764,
44
+ 609
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 635,
55
+ 334,
56
+ 651
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Inference operations in deep neural networks on end devices, such as mobile phones, embedded sensors, IoT devices, etc., have recently received increasing attention including McMahan et al. (2016), Howard et al. (2017), and Teerapittayanon et al. (2017). In such applications, it is desirable to deploy a single pre-trained CNN model on end devices, while allowing multiple operating regions to meet different power consumption, latency, and accuracy requirements. To achieve this goal, McDanel et al. (2017a) proposed the incomplete dot product (IDP) operation, where only a subset of terms is used in dot products of forward propagation. From now on, $x \\%$ dot product (DP), where 0 $\\leq x \\leq 1 0 0$ , means the $x \\%$ of terms used in dot products. As illustrated in Figure 1, $5 0 \\%$ DP means half of filters are used during forward propagation, and thus only half of the output channels are retained. To reduce the deviation induced by IDP, filters are prioritized from most important to the least important by pre-determined monotonically non-increasing profile coefficients (say, $\\gamma _ { 1 } , . . . , \\gamma _ { N } )$ during training. Therefore, IDP can be applied at inference time with dynamically-adjusted degrees of completeness (specified by the percentage of terms being used) to trade off accuracy slightly for lowered power consumption and reduced latency. Specifically, VGG-16 model with $5 0 \\%$ DP achieves $7 0 \\%$ in accuracy on the CIFAR-10 dataset compared to the standard network achieves only $3 5 \\%$ accuracy when using the reduced channel set. ",
63
+ "bbox": [
64
+ 174,
65
+ 666,
66
+ 825,
67
+ 888
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "While the original IDP design seems promising, there are two limitations. First, since the training process aims at optimizing the loss function computed using all weights of the model ( $1 0 0 \\%$ DP), there will be a mismatch between training and testing. It is no surprise that inference performance significantly decreases in low DP percentages and thus narrow the dynamic computation range. To mitigate this problem, the original IDP design utilizes the multiple-profile training strategy, where different profiles can be specified to focus on different dot product ranges. In such a multipleprofile training process, however, certain subset of weights will be freezed in each training stage corresponding to the profile being focused, and hence the overall performance may not be fully optimized. Besides, each profile needs to maintain a separate first and last layer for adjusting to its own dot product range, resulting in additional memory overhead. The second limitation relates to the pre-determined nature of profile coefficients. While there are multiple ways to set the profile based on different dynamic range requirements, the original IDP design did not focus on finding a single ”best” profile that leads to the best performance. Instead, they use multiple hand-crafted profile coefficients, which make the system design less general among different applications, and hence may limit the overall performance of the system. ",
74
+ "bbox": [
75
+ 174,
76
+ 895,
77
+ 821,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/b0dd91008c4e8fc441f3be52ecf73951a42e6e8f3ccdd53eb25a978714cc5aae.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Comparison between complete dot product (CDP) and incomplete dot product (IDP) where $X \\%$ DP implies only $X \\%$ of filters are used to compute the corresponding output channel. Since only $X \\%$ filters are unused, the resulting output is an approximation of the output under CDP. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 197,
91
+ 99,
92
+ 803,
93
+ 334
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "",
100
+ "bbox": [
101
+ 174,
102
+ 414,
103
+ 825,
104
+ 594
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "To reduce the mismatch between training and testing performances, we propose the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm, in which multiple loss functions are computed in different DP percentages. By gradually aggregating these loss functions in decreasing order of DP percentages as the objective function to be optimized, TESLA significantly improves testing performances in low DP percentages without compromising accuracy in medium to high DP percentages. The loss functions can also be aggregated in random order of DP percentages to make a variant of TESLA, called Randomized TESLA (R-TESLA), which enables better performances under prespecified operating regions of end devices. Moreover, we relax the constraint of pre-determined profile coefficients and propose the alternate training procedure (ATP) to alternately train the profile coefficients along with weights of the model. By introducing trainable profile coefficients, customization among different applications can be achieved in a more generalized way, and the overall performance can also be further improved. This paper has made two major contributions: (1) We propose the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm and Randomized TESLA that can achieve dynamic scaling over a computation range in neural network inference without compromising accuracy. (2) We also propose the Alternate Training Procedure (ATP) that can learn the profile coefficients and the model weights simultaneously without the need of manual configuration of the profile coefficients. ",
111
+ "bbox": [
112
+ 174,
113
+ 602,
114
+ 825,
115
+ 837
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "2 INCOMPLETE NEURAL NETWORKS ",
122
+ "text_level": 1,
123
+ "bbox": [
124
+ 174,
125
+ 862,
126
+ 495,
127
+ 877
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "Incomplete dot product (IDP) is a novel mechanism proposed by McDanel et al. (2017a) that can be applied to a hidden layer of MLPs or deep CNN models to dynamically lower the inference costs by computing only a subset of terms in dot products during forward propagation. By introducing a set of non-increasing coefficients $\\gamma _ { i }$ , referred to as a profile, to the channels during training, the channels will be ordered implicitly in non-increasing order from the most important to the least important. By simply dropping out less important channels at inference time, it suffices to train and deploy a single network, while still supporting different levels of computation scaling without compromising accuracy significantly. In this section, we briefly introduce the main concepts of IDP. ",
134
+ "bbox": [
135
+ 174,
136
+ 895,
137
+ 823,
138
+ 924
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "",
145
+ "bbox": [
146
+ 174,
147
+ 103,
148
+ 825,
149
+ 188
150
+ ],
151
+ "page_idx": 2
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "2.1 INCOMPLETE DOT PRODUCT OPERATION",
156
+ "text_level": 1,
157
+ "bbox": [
158
+ 174,
159
+ 204,
160
+ 500,
161
+ 218
162
+ ],
163
+ "page_idx": 2
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "Mathematically, for an IDP fully-connected layer with input dimension $N$ and output dimension $M$ , the $j$ -th output component $y _ { j }$ is computed as ",
168
+ "bbox": [
169
+ 174,
170
+ 229,
171
+ 823,
172
+ 258
173
+ ],
174
+ "page_idx": 2
175
+ },
176
+ {
177
+ "type": "equation",
178
+ "img_path": "images/277a5e77dcda76023ab234cbc1b96ba86d1f59eac2e8de423f950f4a5586de27.jpg",
179
+ "text": "$$\ny _ { j } = \\sum _ { i = 1 } ^ { N } \\gamma _ { i } w _ { j i } x _ { i } ,\n$$",
180
+ "text_format": "latex",
181
+ "bbox": [
182
+ 437,
183
+ 265,
184
+ 558,
185
+ 308
186
+ ],
187
+ "page_idx": 2
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "for $j \\in \\{ 1 , 2 , . . . , M \\}$ , where $x _ { i }$ is the $i$ -th input component, $w _ { j i }$ is the weight corresponding to the $j$ -th output component and the $i$ -th input component, and $\\gamma _ { i }$ is the $i$ -th profile coefficient. ",
192
+ "bbox": [
193
+ 173,
194
+ 313,
195
+ 825,
196
+ 342
197
+ ],
198
+ "page_idx": 2
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "Similar expression can be derived for the IDP operation applied to a convolutional layer of CNN, as illustrated in Figure 1. For an IDP convolutional layer with number of input channels $N$ and number of output channels $M$ , the $j$ -th output channel ${ \\bf y } _ { j }$ is computed as ",
203
+ "bbox": [
204
+ 174,
205
+ 348,
206
+ 825,
207
+ 391
208
+ ],
209
+ "page_idx": 2
210
+ },
211
+ {
212
+ "type": "equation",
213
+ "img_path": "images/b646fb82e63d26af9d1f7af0cfcc8505ac8bf79bb20fc34f7a63fc4082417b9d.jpg",
214
+ "text": "$$\n\\mathbf { y } _ { j } = \\gamma _ { j } \\sum _ { i = 1 } ^ { N } \\mathbf { f } _ { j i } * \\mathbf { x } _ { i } ,\n$$",
215
+ "text_format": "latex",
216
+ "bbox": [
217
+ 429,
218
+ 397,
219
+ 565,
220
+ 441
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "for $j \\in \\{ 1 , 2 , . . . , M \\}$ , where $\\mathbf { f } _ { j i } * \\mathbf { x } _ { i }$ denotes the convolution operation of the $i$ -th input channel $\\mathbf { x } _ { i }$ and the $i$ -th channel of the $j$ -th filter $\\mathbf { f } _ { j i }$ , and $\\gamma _ { j }$ is the profile coefficient for the $j$ -th filter. Note that, instead of applying profile coefficients depthwise on each filter before convolution as is the case in the original IDP design, we multiply each $\\gamma _ { j }$ to each output channel after a complete convolution to produce ${ \\bf y } _ { j }$ . These two approaches, however, are equivalent with negligible difference induced by the first hidden layer. Since the output channels ${ \\bf y } _ { j }$ ’s become input channels $\\mathbf { x } _ { i }$ ’s to the next layer, applying $\\gamma _ { j }$ ’s to ${ \\bf y } _ { j }$ ’s is equivalent to applying them into the convolution operation in the next layer. ",
227
+ "bbox": [
228
+ 174,
229
+ 445,
230
+ 823,
231
+ 545
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "text",
237
+ "text": "To compute IDP with a target dot product percentage, a truncated version of Eq. 1 or Eq. 2 replaces the original computation to keep only a subset of the beginning terms. As for the case with all terms are kept, we refer to such operations as complete dot product (CDP) or $1 0 0 \\%$ DP, interchangeably. Note that in the training process in the original IDP design, only CDP is used. ",
238
+ "bbox": [
239
+ 174,
240
+ 551,
241
+ 825,
242
+ 607
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "2.2 MULTIPLE-PROFILE INCOMPLETE NEURAL NETWORKS ",
249
+ "text_level": 1,
250
+ "bbox": [
251
+ 174,
252
+ 623,
253
+ 598,
254
+ 637
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "In the work of McDanel et al. (2017a), several profile coefficients are proposed and applied in a pre-determined manner. When only a single profile is applied to the model, the trade-off between computation range and performance in high DP percentage regions is also demonstrated. Generally, the faster the profile coefficients decrease, the larger computation range can be achieved, at the expense of a performance degradation in high DP percentage regions. To cover a larger computation range while maintaining the performance in high DP percentage regions, McDanel et al. (2017a) further introduced the multiple-profile incomplete neural networks (MP-IDP), where different profiles can be specified to focus on different DP ranges. During training, all the specified profiles are applied in increasing order of their operating DP ranges. When a profile is applied, only weights corresponding to its operating DP range will be updated, leaving weights corresponding to lower DP percentages freezed since they have been trained in previous stages, and weights corresponding to higher IDP percentages set to zeros since they will be trained in later stages. In such a stage-by-stage training process, the overall performance may not be fully optimized. ",
261
+ "bbox": [
262
+ 174,
263
+ 648,
264
+ 825,
265
+ 830
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "3 TASK-WISE EARLY STOPPING AND LOSS AGGREGATION ",
272
+ "text_level": 1,
273
+ "bbox": [
274
+ 176,
275
+ 849,
276
+ 671,
277
+ 866
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "As discussed in Section 2, in the original IDP design, CDP is used during training but IDP is applied at inference time. This mismatch leads to a noticeable degradation in inference performance, especially in low DP percentages. To mitigate this problem, we propose the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm. In this paper, a task is defined as the learning process that uses only a subset of weights determined by a DP percentage to learn the optimal representations. For example, a task of $5 0 \\%$ DP implies that the first half of network weights are used for dot product computations and thus only these $5 0 \\%$ of weights will be updated while conducting backpropagation. With TESLA, we can optimize a network by tasks with different DP percentages to support various levels of computation scaling and meanwhile reduce the mismatch between training and inference. The design of TESLA is described as follows. ",
284
+ "bbox": [
285
+ 176,
286
+ 881,
287
+ 823,
288
+ 924
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "",
295
+ "bbox": [
296
+ 174,
297
+ 103,
298
+ 825,
299
+ 202
300
+ ],
301
+ "page_idx": 3
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "3.1 TASK-WISE EARLY STOPPING ",
306
+ "text_level": 1,
307
+ "bbox": [
308
+ 176,
309
+ 218,
310
+ 419,
311
+ 232
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "Since tasks with different DP percentages may have different learning difficulties and convergence rates, we apply an early stopping mechanism to automatically adjust the learning processes of tasks. Specifically, we keep all hyper-parameters unchanged except the numbers of epoches, which are controlled by the early stopping mechanism that halts the training process as long as the task performance has not been improved for a certain number of iterations. For example, considering two tasks, one using $7 0 \\%$ DP (task 1) and the other using $4 0 \\%$ DP (task 2), we first optimize task 1 and then switch to optimize task 2 until the optimization process of task 1 reaches the early stopping criterion. With this task-wise early stopping, we are able to optimize all the tasks sequentially, and each task initializes its model using the weights that have been optimized for all previous tasks. However, the weights used in task 2 is exactly a subset of weights used in task 1 such that the optimization process of task 2 may contaminate the well-trained weights for task 1. To reduce this unexpected disturbance while learning multiple tasks, some kinds of loss aggregation are needed to learn a new task without sacrificing the performance of all the past tasks too much. ",
318
+ "bbox": [
319
+ 174,
320
+ 244,
321
+ 826,
322
+ 424
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "Algorithm 1 Task-wise Early Stopping and Loss Aggregation, TESLA ",
329
+ "text_level": 1,
330
+ "bbox": [
331
+ 176,
332
+ 439,
333
+ 638,
334
+ 455
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "1: Input: a task set in decreasing order, $T = L _ { i }$ ; aggregation coefficient $\\alpha$ \n2: Initialization: $L _ { 1 } ^ { o b j } L _ { 1 }$ and $i \\gets 1$ \n3: while $i \\leq s i z e ( T )$ do \n4: 5: $L _ { i + 1 } ^ { o b j } \\alpha \\times L _ { i + 1 } + ( 1 - \\alpha ) \\times L _ { i } ^ { o b j }$ $L _ { i } ^ { o b j }$ pping criteria \n6: i ← i + 1 \n7: end while ",
341
+ "bbox": [
342
+ 179,
343
+ 458,
344
+ 666,
345
+ 565
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "Algorithm 2 Randomized TESLA, R-TESLA ",
352
+ "text_level": 1,
353
+ "bbox": [
354
+ 176,
355
+ 590,
356
+ 477,
357
+ 604
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "1: Input: a task set in any order, $T = L _ { i }$ ; allowable epoch, max epoch; aggregation coefficient $\\alpha$ \n2: Initialization: $L _ { 1 } ^ { o b j } L _ { 1 }$ , $i \\gets 0$ , and $n \\gets 0$ \n3: while $n \\leq$ max epoch do \n4: optimize $L _ { i } ^ { o b j }$ until meeting early stopping criteria, which takes n epochs \n5: 6: $L _ { i + 1 } ^ { o b j } \\gets \\alpha \\times L _ { k } + ( 1 - \\alpha ) \\times L _ { i } ^ { o b j }$ $L _ { k }$ \n7: i ← i + 1 \n8: $n n + n$ epcohs \n9: end while ",
364
+ "bbox": [
365
+ 179,
366
+ 609,
367
+ 820,
368
+ 743
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "3.2 TASK-WISE LOSS AGGREGATION ",
375
+ "text_level": 1,
376
+ "bbox": [
377
+ 176,
378
+ 767,
379
+ 442,
380
+ 782
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "Task-wise loss aggregation is therefore proposed to jointly learn the shared representation for all tasks. By considering one new task at a time, we add the loss of the new task into the current objective function and optimize the aggregated objective function such that tasks are optimized incrementally and jointly. The aggregated objective function can be expressed as ",
387
+ "bbox": [
388
+ 173,
389
+ 794,
390
+ 825,
391
+ 851
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "equation",
397
+ "img_path": "images/f6970a875a1d8271302602c13ee6fdeb4520db67bccf40fbaa5f0a85f50969ab.jpg",
398
+ "text": "$$\nL _ { 1 } ^ { o b j } = L _ { 1 } ~ \\mathrm { a n d } ~ L _ { i + 1 } ^ { o b j } = \\alpha \\times L _ { i + 1 } + ( 1 - \\alpha ) \\times L _ { i } ^ { o b j } ~ , ~ \\forall i = 1 , \\cdots , N - 1\n$$",
399
+ "text_format": "latex",
400
+ "bbox": [
401
+ 246,
402
+ 856,
403
+ 750,
404
+ 877
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "where $\\alpha$ is the aggregation coefficient shared by all subsequent tasks and greater $\\alpha$ implies that we care more about the optimization of the new task. As a consequence, the objective function in the whole learning process is an affine combination of the losses of currently considered tasks. By ",
411
+ "bbox": [
412
+ 174,
413
+ 881,
414
+ 823,
415
+ 924
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "image",
421
+ "img_path": "images/0fd499cedc4c9afbb9bd09c480424ad51915337c4d0feb7009e3f509d3814295.jpg",
422
+ "image_caption": [
423
+ "Figure 2: Network structures in study "
424
+ ],
425
+ "image_footnote": [],
426
+ "bbox": [
427
+ 218,
428
+ 101,
429
+ 408,
430
+ 179
431
+ ],
432
+ "page_idx": 4
433
+ },
434
+ {
435
+ "type": "table",
436
+ "img_path": "images/8c5e5c7beaa3e8ddea8f481bcbd682605f88d3a4d64c7902cb15c8ceb72837bb.jpg",
437
+ "table_caption": [
438
+ "Table 1: Hyper-parameters in Experiments "
439
+ ],
440
+ "table_footnote": [],
441
+ "table_body": "<table><tr><td>Experiment</td><td>MLP on MNIST</td><td>VGG-16 onCIFAR-10</td><td>VGG-16 on CIFAR-100</td></tr><tr><td>Tasks at DP %</td><td>100,70,40,10</td><td>100,50,20</td><td>100,70,50,30</td></tr><tr><td>Learning rate</td><td>0.001</td><td>0.004</td><td>0.004</td></tr><tr><td>Optimizer</td><td>Adam</td><td>SGD momentum=0.9</td><td>SGD momentum =0.9</td></tr><tr><td>Batch size</td><td>28</td><td>32</td><td>64</td></tr><tr><td>Aggregation coefficient</td><td>0.5</td><td>0.5</td><td>0.5</td></tr><tr><td>TESLA stopping criteria</td><td>not improve in4 epochs</td><td>not improve in 4 epochs</td><td>not improve in 4 epochs</td></tr><tr><td>R-TESLAstopping criteria</td><td># epochs over 50</td><td>#epochs over35</td><td>#epochs over35</td></tr><tr><td>Initial weights</td><td>random</td><td>pre-trained on ImageNet</td><td>pre-trained on ImageNet</td></tr></table>",
442
+ "bbox": [
443
+ 457,
444
+ 127,
445
+ 823,
446
+ 194
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "task-wise loss aggregation, these losses are aggregated incrementally and can be jointly optimized to learn a shared representation to be relevant to all tasks. ",
453
+ "bbox": [
454
+ 173,
455
+ 232,
456
+ 823,
457
+ 261
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "3.3 TESLA AND RANDOMIZED TESLA ",
464
+ "text_level": 1,
465
+ "bbox": [
466
+ 176,
467
+ 280,
468
+ 464,
469
+ 295
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "Task-wise Early Stopping and Loss Aggregation, TESLA. We integrate task-wise early stopping and task-wise loss aggregation as TESLA to learn dynamic representations in neural networks. The entire training process optimizes all tasks in an arbitrary order. It is obvious that we have several options to order tasks in (i) increasing, (ii) decreasing, or (iii) random DP percentages. Recall that we add a non-increasing coefficients to prioritize terms in computing dot product, and thus the beginning terms, e.g. at $1 0 \\%$ DP, are more important than the terms at last $1 0 \\%$ terms. Therefore, discarding the terms from the end is less harmful to the optimized parameters, so TESLA is designed to optimize tasks in decreasing order of DP percentages. The TESLA algorithm is shown in Algorithm 1. ",
476
+ "bbox": [
477
+ 174,
478
+ 308,
479
+ 825,
480
+ 419
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "Randomized Task-wise Early Stopping and Loss Aggregation, R-TESLA. Here Randomized means that tasks are optimized in random order. The benefits of R-TESLA is two fold. First, RTESLA provides an opportunity to turn attention back to optimize a task which had been halted before, and allows to finetune the weights, which may have been contaminated by other tasks. Second, unlike TESLA that optimizes each task only once, R-TESLA allows each task to be optimized for multiple times, which can be specified by a customized task distribution derived from the behavioral statistics of users or the specification of hardware design. The detailed procedures of R-TESLA are in Algorithm 2. ",
487
+ "bbox": [
488
+ 174,
489
+ 425,
490
+ 825,
491
+ 537
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "3.4 TRAINABLE PROFILE COEFFICIENTS ",
498
+ "text_level": 1,
499
+ "bbox": [
500
+ 178,
501
+ 556,
502
+ 464,
503
+ 570
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "In this section we propose to learn profile coefficients along with weights of the model alternately. We initialize all coefficients as one and as long as any update of profile coefficients, we manually clip the coefficients to keep the non-increasing property. The alternate training procedure (ATP) relaxes the constraint of fixed coefficients and we demonstrate the feasibility of ATP in the experiment of the MLP model on MNIST dataset in Section 4. ",
510
+ "bbox": [
511
+ 174,
512
+ 583,
513
+ 825,
514
+ 654
515
+ ],
516
+ "page_idx": 4
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "4 EXPERIMENTS ",
521
+ "text_level": 1,
522
+ "bbox": [
523
+ 176,
524
+ 676,
525
+ 325,
526
+ 693
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "In this section, we demonstrate the effectiveness of using TESLA and R-TESLA to learn dynamic representations in MLP and CNN models, with the widely-used datasets MNIST, CIFAR-10, and CIFAR-100. Figure 2 shows the network architectures in study. Note that while working on CIFAR100, the last fully connected layer of Figure 2(b) is replaced by a single 100-class classifier. Here we compare TESLA and R-TESLA with the original IDP design proposed by McDanel et al. (2017a) over a range of dynamic scaling during inference. All hyper-parameters and experiment settings are summarized in Table 1. ",
533
+ "bbox": [
534
+ 174,
535
+ 709,
536
+ 825,
537
+ 808
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "4.1 MULTILAYER PERCEPTRONS ",
544
+ "text_level": 1,
545
+ "bbox": [
546
+ 176,
547
+ 827,
548
+ 411,
549
+ 840
550
+ ],
551
+ "page_idx": 4
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "First, we consider a 3-layer MLP model, in which the IDP operation is applied to the first hidden layer, as shown in Figure 2(a), and evaluate on the MNIST dataset. In this experiment, we define four tasks that optimize the model at $1 0 \\%$ , $4 0 \\%$ , $7 0 \\%$ , and $1 0 0 \\%$ DP, respectively. It is noteworthy that defining too many tasks in our experiment would not benefit much, since there must be a large amount of shared parameters among tasks which makes the model vulnerable to overfitting. ",
556
+ "bbox": [
557
+ 174,
558
+ 853,
559
+ 825,
560
+ 924
561
+ ],
562
+ "page_idx": 4
563
+ },
564
+ {
565
+ "type": "image",
566
+ "img_path": "images/1b204a0ffa4be7521a49124c4af28e44f0315059e93f44280d7eddbd5e8711ea.jpg",
567
+ "image_caption": [
568
+ "Figure 3: Performance comparisons by a MLP model over the MNIST dataset "
569
+ ],
570
+ "image_footnote": [],
571
+ "bbox": [
572
+ 173,
573
+ 98,
574
+ 823,
575
+ 242
576
+ ],
577
+ "page_idx": 5
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "TESLA versus original IDP. We compare TESLA and the original IDP design under various profiles. Figure 3(a) shows that at $2 0 \\%$ DP, the original IDP achieves $8 0 \\%$ , $6 3 \\%$ and $5 5 \\%$ accuracy for the harmonic, all-one, and linear profiles respectively but TESLA keeps at least $8 8 \\%$ accuracy for all profiles at $2 0 \\%$ DP and reaches average accuracy of $9 4 . 7 \\%$ using the linear profile. Most importantly, compared to the original IDP, TESLA performs only about $1 \\%$ worse in accuracy at $1 0 0 \\%$ DP but gains a significant improvement from $5 0 \\%$ to $9 0 \\%$ in accuracy at $1 0 \\%$ DP, which is an acceptable trade-off under practical applications. ",
582
+ "bbox": [
583
+ 174,
584
+ 294,
585
+ 825,
586
+ 392
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "R-TESLA versus TESLA and original IDP. Figure 3(b) shows that R-TESLA outperforms the original IDP by a large margin and R-TESLA has comparable performance with TESLA in most cases. R-TESLA with the harmonic profile leads to the best average accuracy of $9 5 . 2 \\%$ in this experiment. By observing the optimization progress, we find that TESLA achieves its best result after completing the last task thanks to its ordinal optimization. On the other hand, we cannot ensure that R-TESLA can make the ultimate model retains the best dynamic representations due to its random nature. ",
593
+ "bbox": [
594
+ 173,
595
+ 398,
596
+ 825,
597
+ 496
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Learn profile coefficients by ATP. Here we demonstrate the feasibility of learning profile coefficients along with weights. From Figure 3(c), with the help of trainable profile coefficients, both TESLA and R-TESLA further boost by $1 \\%$ in average, and we also observe that the learned profile coefficients are similar to harmonic ones as shown in Figure 3(d). This may support why performance of harmonic coefficients is the best in the original IDP. By allowing coefficients to be trainable, it is no longer to require hand-crafted profile coefficients and determine the best profile coefficients by extensive experiments. ",
604
+ "bbox": [
605
+ 174,
606
+ 503,
607
+ 825,
608
+ 601
609
+ ],
610
+ "page_idx": 5
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "4.2 CONVOLUTIONAL NEURAL NETWORKS ",
615
+ "text_level": 1,
616
+ "bbox": [
617
+ 176,
618
+ 619,
619
+ 488,
620
+ 632
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "We choose the known VGG-16 model pre-trained on ImageNet to evaluate over CIFAR-10 and CIFAR-100 dataset so that the last few dense layers are replaced by a 10-class classifier and a 100- class classifier respectively. Here we use the linear profile coefficients to compare: (i) the original IDP design, (ii) multiple-profile IDP design (MP-IDP) as proposed in McDanel et al. (2017a), (iii) TESLA, and (iv) R-TESLA. The experimental results are summarized below. ",
627
+ "bbox": [
628
+ 174,
629
+ 645,
630
+ 825,
631
+ 714
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "VGG-16 on CIFAR-10. According to Figure 4(a), the performance of original IDP by all-one coefficients drops much faster than that by linear coefficients. Appling all-one coefficients is equivalent to using the original VGG-16 network; however, linear profile coefficients implicitly encourages networks to learn channel importance in order, and also brings about that pruning away later channels at different DP percentages does not hurt the performance that much. With the use of multiple profiles, MP-IDP does enlarge the computational range with an increase in accuracy to $7 5 \\%$ at $5 0 \\%$ DP. Furthermore, the proposed algorithms, TESLA and R-TESLA, boost the accuracy to reach $8 5 \\%$ at $5 0 \\%$ DP, and an even higher accuracy at $1 0 0 \\%$ DP. ",
638
+ "bbox": [
639
+ 174,
640
+ 722,
641
+ 825,
642
+ 833
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "Following the previous experiment, here we augment another new task of $2 0 \\%$ DP and observe whether TESLA can leverage up the performance at low DP percentages by adding a task of a low DP percentage. Figure 4(b) shows that TESLA and R-TESLA greatly widens the computational ranges by making accuracy reaching $7 5 \\%$ at $2 0 \\%$ DP. We contribute this effect to applying TESLA and R-TESLA in decreasing order of dot product percentages so that the representation learned at $1 0 0 \\%$ DP drives the training of representation at $5 0 \\%$ DP, which also makes the representation much easier to be learned at $2 0 \\%$ DP. Compared to TESLA and R-TESLA, MP-IDP trains models in increasing order of DP percentages and thus MP-IDP doesn’t see much improvement at lower IDP percentages although adding another task at $2 0 \\%$ DP. ",
649
+ "bbox": [
650
+ 174,
651
+ 840,
652
+ 825,
653
+ 924
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "image",
659
+ "img_path": "images/fc8029bb88c608867e56b19ad9e18e324046ff3b51891264bc821bcb56eb9d01.jpg",
660
+ "image_caption": [
661
+ "Figure 4: Performance comparisons by the VGG-16 model over the CIFAR-10 and CIFAR-100 dataset "
662
+ ],
663
+ "image_footnote": [],
664
+ "bbox": [
665
+ 173,
666
+ 99,
667
+ 818,
668
+ 229
669
+ ],
670
+ "page_idx": 6
671
+ },
672
+ {
673
+ "type": "image",
674
+ "img_path": "images/db98606cfff4d19e86ef988bb3e742d28530e3d0cbd05b2161071314c462df87.jpg",
675
+ "image_caption": [
676
+ "Figure 5: CAMs at different DP percentages. Red colored text means wrong prediction and green colored text means correct prediction. "
677
+ ],
678
+ "image_footnote": [],
679
+ "bbox": [
680
+ 199,
681
+ 290,
682
+ 799,
683
+ 468
684
+ ],
685
+ "page_idx": 6
686
+ },
687
+ {
688
+ "type": "image",
689
+ "img_path": "images/d7f7b88869bdbd7652219e42dd81d852c03cd882246096e26ed8bc3e9aa459f6.jpg",
690
+ "image_caption": [
691
+ "Figure 6: CAMs of a testing image that is correctly classified at all specified DP percentages. "
692
+ ],
693
+ "image_footnote": [],
694
+ "bbox": [
695
+ 202,
696
+ 507,
697
+ 797,
698
+ 559
699
+ ],
700
+ "page_idx": 6
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "",
705
+ "bbox": [
706
+ 174,
707
+ 631,
708
+ 825,
709
+ 672
710
+ ],
711
+ "page_idx": 6
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "VGG-16 on CIFAR-100. To sufficiently illustrate the effectiveness of the proposed approaches, we evaluate over a larger dataset, CIFAR-100. Figure 4(c) shows the performance of TESLA and R-TESLA still keeps around $6 0 \\%$ accuracy from $3 0 \\%$ to $5 0 \\%$ DP, which outperforms either original IDP or MP-IDP by a significant margin, which is consistent with the result of CIFAR-10. Specifically, both TESLA and R-TESLA sacrifice about $4 \\%$ accuracy at $1 0 0 \\%$ DP but gain a great improvements of $6 0 \\%$ accuracy in low DP percentages. ",
716
+ "bbox": [
717
+ 174,
718
+ 680,
719
+ 825,
720
+ 763
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "CAM visualization. We visualize what the model sees at different DP percentages by deploying the Class Activation Mapping (CAM) technique introduced by Zhou et al. (2016a). A resulting CAM indicates how much each location contribute to the final class prediction. In this stage, we replace the max-pooling layers with average-pooling layers and train the VGG-16 network with linear coefficients optimized at $2 0 \\%$ , $5 0 \\%$ , $1 0 0 \\%$ DP. From CAMs at different DP percentages, we found that the network is easier to make wrong prediction at $1 0 \\%$ and $3 0 \\%$ DP but still makes correct prediction at $2 0 \\%$ DP as shown in Figure 5 since the representations at $2 0 \\%$ DP are optimized. This finding implies that we can specify any DP percentages to be optimized for satisfying custom requirements. Compared to Figure 6, we also notice that the CAMs at $1 0 \\%$ DP are almost the same no matter the correctness of predictions, which indicates too limited capacity to capture meaningful patterns, and thus the network at $1 0 \\%$ DP behaves like a random guess. ",
727
+ "bbox": [
728
+ 173,
729
+ 770,
730
+ 825,
731
+ 924
732
+ ],
733
+ "page_idx": 6
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "5 RELATED WORK ",
738
+ "text_level": 1,
739
+ "bbox": [
740
+ 176,
741
+ 102,
742
+ 339,
743
+ 117
744
+ ],
745
+ "page_idx": 7
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "Our work is rooted from IDP proposed by McDanel et al. (2017a), which, in addition to MLPs and regular CNNs, can also be used in conjunction with other variants of convolutional layers, such as separable convolution layer Howard et al. (2017) and binary convolutional layer McDanel et al. (2017b). As discussed throughout this paper, our work extends the original IDP design by proposing new training algorithms involving a single profile, which may be trainable or pre-determined, to significantly improve the overall performance, especially in low DP percentages. ",
750
+ "bbox": [
751
+ 174,
752
+ 136,
753
+ 825,
754
+ 219
755
+ ],
756
+ "page_idx": 7
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "Network pruning is a widely-studied area that also aims at compressing the CNN models. Early works of network pruning construct a threshold for dropping weights by information obtained from Hessian matrix or inverse Hessian matrix in LeCun et al. (1990); Hassibi & Stork (1993), which adds memory and computation costs. In most of the recent works, magnitude-based pruning and recovering are incorporated to compensate the potential loss incurred by inadequate pruning. For example, Guo et al. (2016) introduces the splicing operation to enable connection recovery, and Han et al. (2016) directly makes the network dense again. Li et al. (2016) also prune filters in CNNs based on magnitude, but the number of filters pruned away in each layer is decided by layer-wise sensitivity. Besides magnitude-based pruning, a Taylor expansion-based criterion is introduced in Molchanov et al. (2016) to approximate the change in the cost function induced by pruning. In addition to network pruning, some works focus on low-rank decomposition for network compression. For example, Denton et al. (2014) and Jaderberg et al. (2014) approximate the weight matrix into low-rank components by minimizing the reconstruction error. Yu et al. (2017) further decomposes the weight matrix into its low-rank and sparse component. Other works focus on grouping similar weights, such as quantization by Han et al. (2015), Gong et al. (2014), and Zhou et al. (2017) and weight sharing by Ullrich et al. (2017), aiming at reducing the level of redundancy and the required storage. Yet another approach introduces group sparsity regularizer to constrain the structure of the model in Wen et al. (2016), Zhou et al. (2016b), and Alvarez & Salzmann (2016). ",
761
+ "bbox": [
762
+ 174,
763
+ 227,
764
+ 825,
765
+ 476
766
+ ],
767
+ "page_idx": 7
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "While all the above techniques are promising in reducing the size of the networks, none of them supports dynamic adjustment during inference as IDP does. Furthermore, most of the above techniques involve retraining the model iteratively, resulting in computational overhead. In our proposed work, the goal of efficient inference with dynamic adjustment can be readily fulfilled by training a single model at once, and the effectiveness is expected to be further improved by incorporating with other techniques listed above. ",
772
+ "bbox": [
773
+ 174,
774
+ 483,
775
+ 825,
776
+ 565
777
+ ],
778
+ "page_idx": 7
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "6 CONCLUSION ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 176,
786
+ 589,
787
+ 318,
788
+ 606
789
+ ],
790
+ "page_idx": 7
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "In this paper, we extend the idea of incomplete dot product (IDP) by proposing the Task-wise Early Stopping and Loss Aggregation (TESLA) algorithm to significantly improve the performance of neural networks with dynamically computation regions at inference time without significantly compromising accuracy. A task is defined as the learning process that uses only a subset of weights specified by a DP percentage to learn the optimal representations of the network. By introducing non-increasing profile coefficients to prioritize weights or filters during training, TESLA can be used to optimize multiple tasks in decreasing order of DP percentages by aggregating the their loss functions. Additionally, we propose Randomized TESLA (R-TESLA) which optimizes tasks in random order, and show that both TESLA and R-TESLA outperform original IDP and multiple-profile IDP significantly. The visualization of the class activation maps (CAMs) provide a strong evidence that the representations learned by TESLA allow dynamically scaling across a computation range to meet various power consumption, latency and accuracy requirements on end devices. ",
795
+ "bbox": [
796
+ 174,
797
+ 622,
798
+ 825,
799
+ 790
800
+ ],
801
+ "page_idx": 7
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "REFERENCES ",
806
+ "text_level": 1,
807
+ "bbox": [
808
+ 176,
809
+ 813,
810
+ 284,
811
+ 829
812
+ ],
813
+ "page_idx": 7
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "Jose M Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. In Advances in Neural Information Processing Systems, pp. 2270–2278, 2016. ",
818
+ "bbox": [
819
+ 173,
820
+ 838,
821
+ 823,
822
+ 867
823
+ ],
824
+ "page_idx": 7
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In Advances in Neural Information Processing Systems, pp. 1269–1277, 2014. ",
829
+ "bbox": [
830
+ 174,
831
+ 881,
832
+ 823,
833
+ 922
834
+ ],
835
+ "page_idx": 7
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014. ",
840
+ "bbox": [
841
+ 173,
842
+ 103,
843
+ 823,
844
+ 132
845
+ ],
846
+ "page_idx": 8
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. In Advances In Neural Information Processing Systems, pp. 1379–1387, 2016. ",
851
+ "bbox": [
852
+ 176,
853
+ 140,
854
+ 823,
855
+ 170
856
+ ],
857
+ "page_idx": 8
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015. ",
862
+ "bbox": [
863
+ 173,
864
+ 176,
865
+ 823,
866
+ 205
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "Song Han, Jeff Pool, Sharan Narang, Huizi Mao, Enhao Gong, Shijian Tang, Erich Elsen, Peter Vajda, Manohar Paluri, John Tran, et al. Dsd: Dense-sparse-dense training for deep neural networks. 2016. ",
873
+ "bbox": [
874
+ 174,
875
+ 212,
876
+ 825,
877
+ 255
878
+ ],
879
+ "page_idx": 8
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "Babak Hassibi and David G. Stork. Second order derivatives for network pruning: Optimal brain surgeon. In Advances in Neural Information Processing Systems 5, pp. 164–171. 1993. ",
884
+ "bbox": [
885
+ 173,
886
+ 262,
887
+ 823,
888
+ 292
889
+ ],
890
+ "page_idx": 8
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. ",
895
+ "bbox": [
896
+ 176,
897
+ 299,
898
+ 823,
899
+ 342
900
+ ],
901
+ "page_idx": 8
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv preprint arXiv:1405.3866, 2014. ",
906
+ "bbox": [
907
+ 174,
908
+ 349,
909
+ 823,
910
+ 378
911
+ ],
912
+ "page_idx": 8
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In Advances in Neural Information Processing Systems 2, pp. 598–605. 1990. ",
917
+ "bbox": [
918
+ 174,
919
+ 386,
920
+ 823,
921
+ 415
922
+ ],
923
+ "page_idx": 8
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016. ",
928
+ "bbox": [
929
+ 173,
930
+ 421,
931
+ 821,
932
+ 452
933
+ ],
934
+ "page_idx": 8
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "Bradley McDanel, Surat Teerapittayanon, and HT Kung. Incomplete dot products for dynamic computation scaling in neural network inference. 2017a. ",
939
+ "bbox": [
940
+ 174,
941
+ 458,
942
+ 823,
943
+ 488
944
+ ],
945
+ "page_idx": 8
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Bradley McDanel, Surat Teerapittayanon, and H.T. Kung. Embedded binarized neural networks. In Proceedings of the 2017 International Conference on Embedded Wireless Systems and Networks, 2017b. ",
950
+ "bbox": [
951
+ 174,
952
+ 494,
953
+ 823,
954
+ 537
955
+ ],
956
+ "page_idx": 8
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "H Brendan McMahan, Eider Moore, Daniel Ramage, and Blaise Aguera y Arcas. Federated learning of deep networks using model averaging. 2016. ",
961
+ "bbox": [
962
+ 174,
963
+ 545,
964
+ 821,
965
+ 575
966
+ ],
967
+ "page_idx": 8
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. 2016. ",
972
+ "bbox": [
973
+ 173,
974
+ 582,
975
+ 823,
976
+ 611
977
+ ],
978
+ "page_idx": 8
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "Surat Teerapittayanon, Bradley McDanel, and HT Kung. Distributed deep neural networks over the cloud, the edge and end devices. In Distributed Computing Systems (ICDCS), 2017 IEEE 37th International Conference on, pp. 328–339. IEEE, 2017. ",
983
+ "bbox": [
984
+ 176,
985
+ 617,
986
+ 823,
987
+ 661
988
+ ],
989
+ "page_idx": 8
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Karen Ullrich, Edward Meeds, and Max Welling. Soft weight-sharing for neural network compression. arXiv preprint arXiv:1702.04008, 2017. ",
994
+ "bbox": [
995
+ 171,
996
+ 667,
997
+ 823,
998
+ 698
999
+ ],
1000
+ "page_idx": 8
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in Neural Information Processing Systems, pp. 2074–2082, 2016. ",
1005
+ "bbox": [
1006
+ 176,
1007
+ 704,
1008
+ 823,
1009
+ 747
1010
+ ],
1011
+ "page_idx": 8
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Xiyu Yu, Tongliang Liu, Xinchao Wang, and Dacheng Tao. On compressing deep models by low rank and sparse decomposition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7370–7379, 2017. ",
1016
+ "bbox": [
1017
+ 176,
1018
+ 755,
1019
+ 823,
1020
+ 799
1021
+ ],
1022
+ "page_idx": 8
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Aojun Zhou, Anbang Yao, Yiwen Guo, Lin Xu, and Yurong Chen. Incremental network quantization: Towards lossless cnns with low-precision weights. arXiv preprint arXiv:1702.03044, 2017. ",
1027
+ "bbox": [
1028
+ 169,
1029
+ 805,
1030
+ 823,
1031
+ 835
1032
+ ],
1033
+ "page_idx": 8
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2921–2929, 2016a. ",
1038
+ "bbox": [
1039
+ 174,
1040
+ 842,
1041
+ 823,
1042
+ 886
1043
+ ],
1044
+ "page_idx": 8
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Hao Zhou, Jose M Alvarez, and Fatih Porikli. Less is more: Towards compact cnns. In European Conference on Computer Vision, pp. 662–677. Springer, 2016b. ",
1049
+ "bbox": [
1050
+ 171,
1051
+ 892,
1052
+ 825,
1053
+ 921
1054
+ ],
1055
+ "page_idx": 8
1056
+ }
1057
+ ]
parse/train/H1K6Tb-AZ/H1K6Tb-AZ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1K6Tb-AZ/H1K6Tb-AZ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkzSQhCcK7/HkzSQhCcK7.md ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # STCN: STOCHASTIC TEMPORAL CONVOLUTIONAL NETWORKS
2
+
3
+ Emre Aksan & Otmar Hilliges
4
+ Department of Computer Science
5
+ ETH Zurich, Switzerland
6
+ {emre.aksan, otmar.hilliges}@inf.ethz.ch
7
+
8
+ # ABSTRACT
9
+
10
+ Convolutional architectures have recently been shown to be competitive on many sequence modelling tasks when compared to the de-facto standard of recurrent neural networks (RNNs), while providing computational and modeling advantages due to inherent parallelism. However, currently there remains a performance gap to more expressive stochastic RNN variants, especially those with several layers of dependent random variables. In this work, we propose stochastic temporal convolutional networks (STCNs), a novel architecture that combines the computational advantages of temporal convolutional networks (TCN) with the representational power and robustness of stochastic latent spaces. In particular, we propose a hierarchy of stochastic latent variables that captures temporal dependencies at different time-scales. The architecture is modular and flexible due to decoupling of deterministic and stochastic layers. We show that the proposed architecture achieves state of the art log-likelihoods across several tasks. Finally, the model is capable of predicting high-quality synthetic samples over a long-range temporal horizon in modeling of handwritten text.
11
+
12
+ # 1 INTRODUCTION
13
+
14
+ Generative modeling of sequence data requires capturing long-term dependencies and learning of correlations between output variables at the same time-step. Recurrent neural networks (RNNs) and its variants have been very successful in a vast number of problem domains which rely on sequential data. Recent work in audio synthesis, language modeling and machine translation tasks (Dauphin et al., 2016; Van Den Oord et al., 2016; Dieleman et al., 2018; Gehring et al., 2017) has demonstrated that temporal convolutional networks (TCNs) can also achieve at least competitive performance without relying on recurrence, and hence reducing the computational cost for training.
15
+
16
+ Both RNNs and TCNs model the joint probability distribution over sequences by decomposing the distribution over discrete time-steps. In other words, such models are trained to predict the next step, given all previous time-steps. RNNs are able to model long-term dependencies by propagating information through their deterministic hidden state, acting as an internal memory. In contrast, TCNs leverage large receptive fields by stacking many dilated convolutions, allowing them to model even longer time scales up to the entire sequence length. It is noteworthy that there is no explicit temporal dependency between the model outputs and hence the computations can be performed in parallel. The TCN architecture also introduces a temporal hierarchy: the upper layers have access to longer input sub-sequences and learn representations at a larger time scale. The local information from the lower layers is propagated through the hierarchy by means of residual and skip connections (Van Den Oord et al., 2016; Bai et al., 2018).
17
+
18
+ However, while TCN architectures have been shown to perform similar or better than standard recurrent architectures on particular tasks (Van Den Oord et al., 2016; Bai et al., 2018), there currently remains a performance gap to more recent stochastic RNN variants (Bayer & Osendorfer, 2014; Chung et al., 2015; Fabius & van Amersfoort, 2014; Fraccaro et al., 2016; Goyal et al., 2017; Shabanian et al., 2017). Following a similar approach to stochastic RNNs, Lai et al. (2018) present a significant improvement in the log-likelihood when a TCN model is coupled with latent variables, albeit at the cost of limited receptive field size.
19
+
20
+ ![](images/d359808562547faeee9a83d1af529c4304cb6f63f56df5ac6e6025a77b3485c8.jpg)
21
+ Figure 1: The computational graph of generative (left) and inference (right) models of STCN. The approximate posterior $q$ is conditioned on $\mathbf { d } _ { t }$ and is updated by the prior $p$ which is conditioned on the TCN representations of the previous time-step $\mathbf { d } _ { t - 1 }$ . The random latent variables at the upper layers have access to a long history while lower layers receive inputs from more recent time steps.
22
+
23
+ In this work we propose a new approach for augmenting TCNs with random latent variables, that decouples deterministic and stochastic structures yet leverages the increased modeling capacity efficiently. Motivated by the simplicity and computational advantages of TCNs and the robustness and performance of stochastic RNNs, we introduce stochastic temporal convolutional networks (STCN) by incorporating a hierarchy of stochastic latent variables into TCNs which enables learning of representations at many timescales. However, due to the absence of an internal state in TCNs, introducing latent random variables analogously to stochastic RNNs is not feasible. Furthermore, defining conditional random variables across time-steps would result in breaking the parallelism of TCNs and is hence undesirable.
24
+
25
+ In STCN the latent random variables are arranged in correspondence to the temporal hierarchy of the TCN blocks, effectively distributing them over the various timescales (see figure 1). Crucially, our hierarchical latent structure is designed to be a modular add-on for any temporal convolutional network architecture. Separating the deterministic and stochastic layers allows us to build STCNs without requiring modifications to the base TCN architecture, and hence retains the scalability of TCNs with respect to the receptive field. This conditioning of the latent random variables via different timescales is especially effective in the case of TCNs. We show this experimentally by replacing the TCN layers with stacked LSTM cells, leading to reduced performance compared to STCN.
26
+
27
+ We propose two different inference networks. In the canonical configuration, samples from each latent variable are passed down from layer to layer and only one sample from the lowest layer is used to condition the prediction of the output. In the second configuration, called STCN-dense, we take inspiration from recent CNN architectures (Huang et al., 2017) and utilize samples from all latent random variables via concatenation before computing the final prediction.
28
+
29
+ Our contributions can thus be summarized as: 1) We present a modular and scalable approach to augment temporal convolutional network models with effective stochastic latent variables. 2) We empirically show that the STCN-dense design prevents the model from ignoring latent variables in the upper layers (Zhao et al., 2017). 3) We achieve state-of-the-art log-likelihood performance, measured by ELBO, on the IAM-OnDB, Deepwriting, TIMIT and the Blizzard datasets. 4) Finally we show that the quality of the synthetic samples matches the significant quantitative improvements.
30
+
31
+ # 2 BACKGROUND
32
+
33
+ Auto-regressive models such as RNNs and TCNs factorize the joint probability of a variable-length sequence $\mathbf { x } = \{ x _ { 1 } , \dots , x _ { T } \}$ as a product of conditionals as follows:
34
+
35
+ $$
36
+ p _ { \theta } ( { \bf x } ) = \prod _ { t = 1 } ^ { T } p _ { \theta } ( x _ { t } | x _ { 1 : t - 1 } ) \quad ,
37
+ $$
38
+
39
+ where the joint distribution is parametrized by $\theta$ . The prediction at each time-step is conditioned on all previous observations. The observation model is frequently chosen to be a Gaussian or Gaussian mixture model (GMM) for real-valued data, and a categorical distribution for discrete-valued data.
40
+
41
+ # 2.1 TEMPORAL CONVOLUTIONAL NETWORKS
42
+
43
+ In TCNs the joint probabilities in Eq. (1) are parametrized by a stack of convolutional layers. Causal convolutions are the central building block of such models and are designed to be asymmetric such that the model has no access to future information. In order to produce outputs of the same size as the input, zero-padding is applied at every layer.
44
+
45
+ In the absence of a state transition function, a large receptive field is crucial in capturing long-range dependencies. To avoid the need for vast numbers of causal convolution layers, typically dilated convolutions are used. Exponentially increasing the dilation factor results in an exponential growth of the receptive field size with depth (Yu & Koltun, 2015; Van Den Oord et al., 2016; Bai et al., 2018). In this work, without loss of generality, we use the building blocks of Wavenet (Van Den Oord et al., 2016) as gated activation units (van den Oord et al., 2016) have been reported to perform better.
46
+
47
+ A deterministic TCN representation $d _ { t } ^ { l }$ at time-step $t$ and layer $l$ summarizes the input sequence $x _ { 1 : t }$
48
+
49
+ $$
50
+ d _ { t } ^ { l } = \mathbf { C o n v } ^ { ( l ) } ( d _ { t } ^ { l - 1 } , d _ { t - j } ^ { l - 1 } ) \quad \mathrm { a n d } \quad d _ { t } ^ { 1 } = \mathbf { C o n v } ^ { ( 1 ) } ( x _ { t } , x _ { t - j } ) \quad ,
51
+ $$
52
+
53
+ where the filter width is 2 and $j$ denotes the dilation step. In our work, the stochastic variables $z ^ { l } , l \ = \ 1 \ldots L$ are conditioned on TCN representations $d ^ { l }$ that are constructed by stacking $K$ Wavenet blocks over the previous $d ^ { l - 1 }$ (for details see Figure 4 in Appendix).
54
+
55
+ # 2.2 NON-SEQUENTIAL LATENT VARIABLE MODELS
56
+
57
+ VAEs (Kingma & Welling, 2013; Rezende et al., 2014) introduce a latent random variable $\mathbf { z }$ to learn the variations in the observed non-sequential data where the generation of the sample $\mathbf { X }$ is conditioned on the latent variable $\mathbf { z }$ . The joint probability distribution is defined as:
58
+
59
+ $$
60
+ \begin{array} { r } { p _ { \theta } ( \mathbf { x } , \mathbf { z } ) = p _ { \theta } ( \mathbf { x } | \mathbf { z } ) p _ { \theta } ( \mathbf { z } ) \quad , } \end{array}
61
+ $$
62
+
63
+ and parametrized by $\theta$ . Optimizing the marginal likelihood is intractable due to the non-linear mappings between $\mathbf { z }$ and $\mathbf { X }$ and the integration over $\mathbf { z }$ . Instead the VAE framework introduces an approximate posterior $q _ { \phi } ( { \bf z } | { \bf x } )$ and optimizes a lower-bound on the marginal likelihood:
64
+
65
+ $$
66
+ \begin{array} { r } { \log p _ { \theta } ( \mathbf { x } ) \geq - K L ( q _ { \phi } ( \mathbf { z } | \mathbf { x } ) | | p _ { \theta } ( \mathbf { z } ) ) + \mathbb { E } _ { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } [ \log p _ { \theta } ( \mathbf { x } | \mathbf { z } ) ] \quad , } \end{array}
67
+ $$
68
+
69
+ where $K L$ denotes the Kullback-Leibler divergence. Typically the prior $p _ { \boldsymbol { \theta } } ( \mathbf { z } )$ and the approximate $q _ { \phi } ( { \bf z } | { \bf x } )$ are chosen to be in simple parametric form, such as a Gaussian distribution with diagonal covariance, which allows for an analytical calculation of the $K L$ -term in Eq. (4).
70
+
71
+ # 2.3 STOCHASTIC RNNS
72
+
73
+ An RNN captures temporal dependencies by recursively processing each input, while updating an internal state $h _ { t }$ at each time-step via its state-transition function:
74
+
75
+ $$
76
+ h _ { t } = f ^ { ( h ) } ( x _ { t } , h _ { t - 1 } ) \quad ,
77
+ $$
78
+
79
+ where $f ^ { ( h ) }$ is a deterministic transition function such as LSTM (Hochreiter & Schmidhuber, 1997) or GRU (Cho et al., 2014) cells. The computation has to be sequential because $h _ { t }$ depends on $h _ { t - 1 }$ .
80
+
81
+ The VAE framework has been extended for sequential data, where a latent variable $z _ { t }$ augments the RNN state $h _ { t }$ at each sequence step. The joint distribution $p _ { \boldsymbol { \theta } } ( \mathbf { x } , \mathbf { z } )$ is modeled via an auto-regressive model which results in the following factorization:
82
+
83
+ $$
84
+ p _ { \theta } ( \mathbf { x } , \mathbf { z } ) = \prod _ { t = 1 } ^ { T } p _ { \theta } ( x _ { t } | z _ { 1 : t } , x _ { 1 : t - 1 } ) p _ { \theta } ( z _ { t } | x _ { 1 : t - 1 } , z _ { 1 : t - 1 } ) \quad .
85
+ $$
86
+
87
+ In contrast to the fixed prior of VAEs, $\mathcal { N } ( \mathbf { 0 } , \mathbf { I } )$ , sequential variants define prior distributions conditioned on the RNN hidden state $\mathbf { h }$ and implicitly on the input sequence $\mathbf { X }$ (Chung et al., 2015).
88
+
89
+ ![](images/c0aec47397b8ede7adba3b46cdcc820188b2ad1e6dfda787b03aa04c1a251b89.jpg)
90
+ Figure 2: Graphical model view of generative models of STCN (left) and STCN-dense (middle), and the inference model (right), which is shared by both variants. Diamonds represent the outputs of deterministic dilated convolution blocks where the dependence of $d _ { t }$ on the past inputs is not shown for clarity (see Eq. (2)). $x _ { t }$ and $z _ { t }$ are observable inputs and latent random variables, respectively. The generative task is to predict the next step in the sequence, given all past steps. Note that in the STCN-dense variant the next step is conditioned on all latent variables $z _ { t } ^ { l }$ for $l = 1 \ldots L$ .
91
+
92
+ # 3 STOCHASTIC TEMPORAL CONVOLUTIONAL NETWORKS
93
+
94
+ The mechanics of STCNs are related to those of VRNNs and LVAEs. Intuitively, the RNN state $h _ { t }$ is replaced by temporally independent TCN layers $d _ { t } ^ { l }$ . In the absence of an internal state, we define hierarchical latent variables $\dot { \boldsymbol { z } } _ { t } ^ { l }$ that are conditioned vertically, i.e., in the same time-step, but independent horizontally, i.e., across time-steps. We follow a similar approach to LVAEs (Sønderby et al., 2016) in defining the hierarchy in a top-down fashion and in how we estimate the approximate posterior. The inference network first computes the approximate likelihood, and then this estimate is corrected by the prior, resulting in the approximate posterior. The TCN layers $\mathbf { d }$ are shared between the inference and generator networks, analogous to VRNNs (Chung et al., 2015).
95
+
96
+ Figure 2 depicts the proposed STCN as a graphical model. STCNs consist of two main modules: the deterministic temporal convolutional network and the stochastic latent variable hierarchy. For a given input sequence $\mathbf { x } = \{ x _ { t } \} , t = 1 . . . T$ we first apply dilated convolutions over the entire sequence to compute a set of deterministic representations $\dot { d } _ { t } ^ { \check { l } } , l = 1 \ldots L$ . Here, $d _ { t } ^ { l }$ corresponds to the output of a block of dilated convolutions at layer $l$ and time-step $t$ . The output $d _ { t } ^ { l }$ is then used to update a set of random latent variables $z _ { t } ^ { l }$ arranged to correspond with different time-scales.
97
+
98
+ To preserve the parallelism of TCNs, we do not introduce an explicit dependency between different time-steps. However, we suggest that conditioning a latent variable $z _ { t } ^ { l - \bar { 1 } }$ on the preceding variable $z _ { t } ^ { l }$ implicitly introduces temporal dependencies. Importantly, the random latent variables in the upper layer have access to a larger receptive field due to its deterministic input $d _ { t - 1 } ^ { l }$ , whereas latent random variables in lower layers are updated with different, more local information. However, the latent variable $z _ { t } ^ { l - 1 }$ may receive longer-range information from $z _ { t } ^ { l }$ .
99
+
100
+ The generative and inference models are jointly trained by optimizing a step-wise variational lower bound on the log-likelihood (Kingma $\&$ Welling, 2013; Rezende et al., 2014). In the following sections we describe these components and build up the lower-bound for a single time-step $t$ .
101
+
102
+ # 3.1 GENERATIVE MODEL
103
+
104
+ Each sequence step $x _ { t }$ is generated from a set of latent variables $z _ { t }$ , split into layers as follows:
105
+
106
+ $$
107
+ p _ { \theta } \big ( z _ { t } \vert x _ { 1 : t - 1 } \big ) = p _ { \theta } \big ( z _ { t } ^ { L } \vert d _ { t - 1 } ^ { L } \big ) \prod _ { l = 1 } ^ { L - 1 } p _ { \theta } \big ( z _ { t } ^ { l } \vert z _ { t } ^ { l + 1 } , d _ { t - 1 } ^ { l } \big ) \quad ,
108
+ $$
109
+
110
+ $$
111
+ p _ { \theta } ( z _ { t } ^ { l } | z _ { t } ^ { l + 1 } , d _ { t - 1 } ^ { l } ) = \mathcal { N } ( \mu _ { t , p } ^ { l } , \sigma _ { t , p } ^ { l } ) \quad \mathrm { a n d } \quad [ \mu _ { t , p } ^ { l } , \sigma _ { t , p } ^ { l } ] = f _ { p } ^ { ( l ) } ( z _ { t } ^ { l + 1 } , d _ { t - 1 } ^ { l } ) \quad .
112
+ $$
113
+
114
+ Here the prior is modeled by a Gaussian distribution with diagonal covariance, as is common in the VAE framework. The subscript $p$ denotes items of the generative distribution. For the inference distribution we use the subscript $q$ . The distributions are parameterized by a neural network $f _ { p } ^ { ( l ) }$ and conditioned on: (1) the $d _ { t - 1 } ^ { l }$ computed by the dilated convolutions from the previous time-step, and (2) a sample from the preceding level at the same time-step zl+1t . Please note that at inference time we draw samples from the approximate posterior distribution $z _ { t } ^ { l + 1 } \sim q _ { \phi } ( z _ { t } ^ { l + 1 } | \cdot )$ . The generative model, on the other hand, uses the prior $z _ { t } ^ { l + 1 } \sim p _ { \theta } ( z _ { t } ^ { l + 1 } | \cdot )$ .
115
+
116
+ We propose two variants of the observation model. In the non-sequential scenario, the observations are defined to be conditioned on only the last latent variable in the hierarchy, i.e., $p _ { \theta } ( x _ { t } | z _ { t } ^ { 1 } )$ , following Sønderby et al. (2016); Gulrajani et al. (2016) and Rezende et al. (2014) our STCN variant uses the same observation model, allowing for an efficient optimization. However, latent units are likely to become inactive during training in this configuration (Burda et al., 2015; Bowman et al., 2015; Zhao et al., 2017) resulting in a loss of representational power.
117
+
118
+ The latent variables at different layers are conditioned on different contexts due to the inputs $d _ { t } ^ { l }$ . Hence, the latent variables are expected to capture complementary aspects of the temporal context. To propagate the information all the way to the final prediction and to ensure that gradients flow through all layers, we take inspiration from Huang et al. (2017) and directly condition the output probability on samples from all latent variables. We call this variant of our architecture STCN-dense.
119
+
120
+ The final predictions are then computed by the respective observation functions:
121
+
122
+ $$
123
+ p _ { \theta } ( x _ { t } | z _ { t } ) = f ^ { ( o ) } ( z _ { t } ^ { 1 } ) \quad \mathrm { a n d } \quad p _ { \theta } ^ { d e n s e } ( x _ { t } | z _ { t } ) = f ^ { ( o ) } ( z _ { t } ^ { 1 } , z _ { t } ^ { 2 } \dots z _ { t } ^ { L } ) \quad ,
124
+ $$
125
+
126
+ where $f ^ { ( o ) }$ corresponds to the output layer constructed by stacking 1D convolutions or Wavenet blocks depending on the dataset.
127
+
128
+ # 3.2 INFERENCE MODEL
129
+
130
+ In the original VAE framework the inference model is defined as a bottom-up process, where the latent variables are conditioned on the stochastic layer below. Furthermore, the parameterization of the prior and approximate posterior distributions are computed separately (Burda et al., 2015; Rezende et al., 2014). In contrast, Sønderby et al. (2016) propose a top-down dependency structure shared across the generative and inference models. From a probabilistic point of view, the approximate Gaussian likelihood, computed bottom-up by the inference model, is combined with the Gaussian prior, computed top-down from the generative model. We follow a similar procedure in computing the approximate posterior.
131
+
132
+ First, the parameters of the approximate likelihood are computed for each stochastic layer $l$ :
133
+
134
+ $$
135
+ [ \hat { \mu } _ { t , q } ^ { l } , \hat { \sigma } _ { t , q } ^ { l } ] = f _ { q } ^ { ( l ) } ( z _ { t } ^ { l + 1 } , d _ { t } ^ { l } ) \quad ,
136
+ $$
137
+
138
+ followed by the downward pass, recursively computing the prior and approximate posterior by precision-weighted addition:
139
+
140
+ $$
141
+ \begin{array} { l } { { \sigma _ { t , q } ^ { l } = \frac { 1 } { ( \hat { \sigma } _ { t , q } ^ { l } ) ^ { - 2 } + ( \sigma _ { t , p } ^ { l } ) ^ { - 2 } } \quad , } } \\ { { \mu _ { t , q } ^ { l } = \sigma _ { t , q } ^ { l } ( \hat { \mu } _ { t , q } ^ { l } ( \hat { \sigma } _ { t , q } ^ { l } ) ^ { - 2 } + \mu _ { t , p } ^ { l } ( \sigma _ { t , p } ^ { l } ) ^ { - 2 } ) \quad . } } \end{array}
142
+ $$
143
+
144
+ Finally, the approximate posterior has the same decomposition as the prior (see Eq. (7)):
145
+
146
+ $$
147
+ q _ { \phi } ( z _ { t } | x _ { 1 : t } ) = q _ { \phi } ( z _ { t } ^ { L } | d _ { t } ^ { L } ) \prod _ { l = 1 } ^ { L - 1 } q _ { \phi } ( z _ { t } ^ { l } | z _ { t } ^ { l + 1 } , d _ { t } ^ { l } ) \quad ,
148
+ $$
149
+
150
+ $$
151
+ \begin{array} { r } { q _ { \phi } ( z _ { t } ^ { l } | z _ { t } ^ { l + 1 } , d _ { t } ^ { l } ) = \mathcal { N } ( \mu _ { t , q } ^ { l } , \sigma _ { t , q } ^ { l } ) \quad . } \end{array}
152
+ $$
153
+
154
+ Note that the inference and generative network share the parameters of dilated convolutions $\mathrm { C o n v } ^ { ( l ) }$
155
+
156
+ # 3.3 LEARNING
157
+
158
+ The variational lower-bound on the log-likelihood at time-step $t$ can be defined as follows:
159
+
160
+ $$
161
+ \begin{array} { r l } & { \log p ( x _ { t } ) \geq \mathbb { E } _ { q _ { \phi } ( z _ { t } | x _ { t } ) } [ \log p \theta ( x _ { t } | z _ { t } ) ] - D _ { K L } ( q _ { \phi } ( z _ { t } | x _ { 1 : t } ) | | p \theta ( z _ { t } | x _ { 1 : t - 1 } ) ) } \\ & { \qquad = \mathbb { E } _ { q _ { \phi } ( z _ { t } ^ { 1 } \dots z _ { t } ^ { L } | x _ { t } ) } [ \log p \theta ( x _ { t } | z _ { t } ^ { 1 } \dots z _ { t } ^ { L } ) ] - D _ { K L } ( q _ { \phi } ( z _ { t } ^ { 1 } \dots z _ { t } ^ { L } | x _ { 1 : t } ) | | p \theta ( z _ { t } ^ { 1 } \dots z _ { t } ^ { L } | x _ { 1 : t - 1 } ) ) } \\ & { \mathcal { C } _ { t } ( \theta , \phi ; x _ { t } ) = \mathcal { L } _ { t } ^ { R e c o n } + \mathcal { L } _ { t } ^ { K L } . } \end{array}
162
+ $$
163
+
164
+ Using the decompositions from Eq. (7) and (12), the Kullback-Leibler divergence term becomes:
165
+
166
+ $$
167
+ \begin{array} { r l } { \displaystyle \mathcal { L } _ { t } ^ { K L } = - D _ { K L } \big ( q _ { \phi } ( \boldsymbol { z } _ { t } ^ { L } | \boldsymbol { d } _ { t } ^ { L } ) | | p _ { \theta } \big ( \boldsymbol { z } _ { t } ^ { L } | \boldsymbol { d } _ { t - 1 } ^ { L } \big ) \big ) } & { } \\ { \displaystyle - \sum _ { l = 1 } ^ { L - 1 } \mathbb { E } _ { q _ { \phi } ( \boldsymbol { z } _ { t } ^ { l + 1 } | \cdot ) } \big [ D _ { K L } \big ( q _ { \phi } \big ( \boldsymbol { z } _ { t } ^ { l } | \boldsymbol { z } _ { t } ^ { l + 1 } , \boldsymbol { d } _ { t } ^ { l } \big ) | | p _ { \theta } \big ( \boldsymbol { z } _ { t } ^ { l } | \boldsymbol { z } _ { t } ^ { l + 1 } , \boldsymbol { d } _ { t - 1 } ^ { l } \big ) \big ) \big ] } & { . } \end{array}
168
+ $$
169
+
170
+ The KL term is the same for the STCN and STCN-dense variants. The reconstruction term $\mathcal { L } _ { t } ^ { R e c o n }$ , however, is different. In STCN we only use samples from the lowest layer of the hierarchy, whereas in STCN-dense we use all latent samples in the observation model:
171
+
172
+ $$
173
+ \begin{array} { r l } { \mathcal { L } _ { t } ^ { R e c o n } = \mathbb { E } _ { q _ { \phi } ( z _ { t } ^ { 1 } \ldots z _ { t } ^ { L } | x _ { t } ) } [ \log p _ { \theta } ( x _ { t } | z _ { t } ^ { 1 } ) ] } & { { } , } \\ { \mathcal { L } _ { t } ^ { R e c o n - d e n s e } = \mathbb { E } _ { q _ { \phi } ( z _ { t } ^ { 1 } \ldots z _ { t } ^ { L } | x _ { t } ) } [ \log p _ { \theta } ( x _ { t } | z _ { t } ^ { 1 } \ldots z _ { t } ^ { L } ] } & { { } . } \end{array}
174
+ $$
175
+
176
+ In the dense variant, samples drawn from the latent variables $z _ { t } ^ { l }$ are carried over the dense connections. Similar to Maaløe et al. (2016), the expectation over $z _ { t } ^ { l }$ variables are computed by Monte Carlo sampling using the reparameterization trick (Kingma & Welling, 2013; Rezende et al., 2014).
177
+
178
+ Please note that the computation of $\mathcal { L } _ { t } ^ { R e c o n - d e n s e }$ does not introduce any additional computational cost. In STCN, all latent variables have to be visited in terms of ancestral sampling in order to draw the latent sample $z _ { t } ^ { 1 }$ for the observation $x _ { t }$ . Similarly in STCN-dense, the same intermediate samples $z _ { t } ^ { l }$ are used in the prediction of $x _ { t }$ .
179
+
180
+ One alternative option to use the latent samples could be to sum individual samples before feeding them into the observation model, i.e., $s u m ( \dot { [ } z _ { t } ^ { 1 } \dots z _ { t } ^ { L } ] )$ , (Maaløe et al., 2016). We empirically found that this does not work well in STCN-dense. Instead, we concatenate all samples $\left[ z _ { t } ^ { 1 } \circ \cdots \circ z _ { t } ^ { L } \right]$ analogously to DenseNet (Huang et al., 2017) and (Kaiser et al., 2018).
181
+
182
+ # 4 EXPERIMENTS
183
+
184
+ We evaluate the proposed variants STCN and STCN-dense both quantitatively and qualitatively on modeling of digital handwritten text and speech. We compare with vanilla TCNs, RNNs, VRNNs and state-of-the art models on the corresponding tasks.
185
+
186
+ In our experiments we use two variants of the Wavenet model: (1) the original model proposed in (Van Den Oord et al., 2016) and (2) a variant that we augment with skip connections analogously to STCN-dense. This additional baseline evaluates the benefit of learning multi-scale representations in the deterministic setting. Details of the experimental setup are provided in the Appendix. Our code is available at https://ait.ethz.ch/projects/2019/stcn/.
187
+
188
+ Handwritten text: The IAM-OnDB and Deepwriting datasets consist of digital handwriting sequences where each time-step contains real-valued $( x , y )$ pen coordinates and a binary pen-up event. The IAM-OnDB data is split and pre-processed as done in (Chung et al., 2015). Aksan et al. (2018) extend this dataset with additional samples and better pre-processing.
189
+
190
+ Table 1 reveals that again both our variants outperform the vanilla variants of TCNs and RNNs on IAM-OnDB. While the stochastic VRNN and SWaveNet are competitive wrt to the STCN variant, both are outperformed by the STCN-dense version. The same relative ordering is maintained on the Deepwriting dataset, indicating that the proposed architecture is robust across datasets.
191
+
192
+ ![](images/b93a1887df7d73e452966757899db96ab3e51bdbb1aecfabae9ef2b6ba19969a.jpg)
193
+ Figure 3: (a) Handwriting samples from IAM-OnDB dataset. Generated samples from (b) VRNN, (c) SWaveNet and (d) our model STCN-dense. Each line corresponds to one sample.
194
+
195
+ Table 1: Average log-likelihood per sequence on TIMIT, Blizzard, IAM-OnDB and Deepwriting datasets. (Normal) and (GMM) stand for unimodal Gaussian or multi-modal Gaussian Mixture Model (GMM) as the observation model (Graves, 2013; Chung et al., 2015). Asterisks ∗ indicate that we used our re-implementation only for the Deepwriting dataset.
196
+
197
+ <table><tr><td>Models</td><td>TIMIT</td><td>Blizzard</td><td>IAM-OnDB</td><td>Deepwriting</td></tr><tr><td>Wavenet (GMM)</td><td>30188</td><td>8190</td><td>1381</td><td>612</td></tr><tr><td>Wavenet-dense (GMM)</td><td>30636</td><td>8212</td><td>1380</td><td>642</td></tr><tr><td>RNN (GMM) Chung et al. (2015)</td><td>26643</td><td>7413</td><td>1358</td><td>528 *</td></tr><tr><td>VRNN (Normal) Chung et al.(2015)</td><td>~30235</td><td>~9516</td><td>≈1354</td><td>≥ 495 *</td></tr><tr><td>VRNN (GMM) Chung et al. (2015)</td><td>≈ 29604</td><td>~9392</td><td>≈1384</td><td>≥ 673 *</td></tr><tr><td>SRNN (Normal) Fraccaro et al. (2016)</td><td>≥ 60550</td><td>≥11991</td><td>n/a</td><td>n/a</td></tr><tr><td>Z-forcing (Normal) Goyal etal. (2017)</td><td>≥ 70469</td><td>≥ 15430</td><td>n/a</td><td>n/a</td></tr><tr><td>Var.Bi-LSTM (Normal) Shabanian et al.(2017)</td><td>≥ 73976</td><td>≥ 17319</td><td>n/a</td><td>n/a</td></tr><tr><td>SWaveNet (Normal) Lai etal. (2018)</td><td>≥ 72463</td><td>≥ 15708</td><td>≥1301</td><td>n/a</td></tr><tr><td>STCN (GMM)</td><td>≥ 69195</td><td>M 15800</td><td>≥ 1338</td><td>≥ 605</td></tr><tr><td>STCN-dense (GMM)</td><td>≥ 71386</td><td>≥ 16288</td><td>≥ 1796</td><td>≥ 797</td></tr><tr><td>STCN-dense-large (GMM)</td><td>≥ 77438</td><td>≥ 17670</td><td>n/a</td><td>n/a</td></tr></table>
198
+
199
+ Fig. 3 compares generated handwriting samples. While all models produce consistent style, our model generates more natural looking samples. Note that the spacing between words is clearly visible and most of the letters are distinguishable.
200
+
201
+ Speech modeling: TIMIT and Blizzard are standard benchmark dataset in speech modeling. The models are trained and tested on 200 dimensional real-valued amplitudes. We apply the same pre-processing as Chung et al. (2015). For this task we introduce STCN-dense-large, with increased model capacity. Here we use 512 instead of 256 convolution filters. Note that the total number of model parameters is comparable to SWaveNet and other SOA models.
202
+
203
+ On TIMIT, STCN-dense (Table 1) significantly outperforms the vanilla TCN and RNN, and stochastic models. On the Blizzard dataset, our model is marginally better than the Variational Bi-LSTM. Note that the inference models of SRNN (Fraccaro et al., 2016), Z-forcing (Goyal et al., 2017), and Variational Bi-LSTM (Shabanian et al., 2017) receive future information by using backward RNN cells. Similarly, SWaveNet (Lai et al., 2018) applies causal convolutions in the backward direction. Hence, the latent variable can be expected to model future dynamics of the sequence. In contrast, our models have only access to information up to the current time-step. These results indicate that the STCN variants perform very well on the speech modeling task.
204
+
205
+ Latent Space Analysis: Zhao et al. (2017) observe that in hierarchical latent variable models the upper layers have a tendency to become inactive, indicated by a low KL loss (Sønderby et al., 2016; Dieng et al., 2018). Table 2 shows the KL loss per latent variable and the corresponding log-likelihood measured by ELBO in our models. Across the datasets it can be observed that our models make use of many of the latent variables which may explain the strong performance across tasks in terms of log-likelihoods. Note that STCN uses a standard hierarchical structure. However, individual latent variables have different information context due to the corresponding TCN block’s receptive field. This observation suggests that the proposed combination of TCNs and stochastic variables is indeed effective. Furthermore, in STCN we see a similar utilization pattern of the $z$ variables across tasks, whereas STCN-dense may have more flexibility in modeling the temporal dependencies within the data due to its dense connections to the output layer.
206
+
207
+ Table 2: KL-loss per latent variable computed over the entire test split. KL5 corresponds to the KL-loss of the top-most latent variable.
208
+
209
+ <table><tr><td>Dataset (Model)</td><td>ELBO</td><td>KL</td><td>KL1</td><td>KL2</td><td>KL3</td><td>KL4</td><td>KL5</td></tr><tr><td>IAM-OnDB (sTCN-dense)</td><td>≥ 1796.3</td><td>1653.9</td><td>17.9</td><td>1287.4</td><td>305.3</td><td>41.0</td><td>2.4</td></tr><tr><td>IAM-OnDB (sTCN)</td><td>≥ 1339.2</td><td>964.2</td><td>846.0</td><td>105.2</td><td>12.9</td><td>0.1</td><td>0.0</td></tr><tr><td>TIMIT (sTCN-dense)</td><td>≥ 71385.9</td><td>22297.5</td><td>16113.0</td><td>5641.6</td><td>529.0</td><td>8.3</td><td>5.7</td></tr><tr><td>TIMIT (STCN)</td><td>≥ 69194.9</td><td>23118.3</td><td>22275.5</td><td>487.2</td><td>355.5</td><td>0.0</td><td>0.0</td></tr></table>
210
+
211
+ Replacing TCN with RNN: To better understand potential symergies between dilated CNNs and the proposed latent variable hierarchy, we perform an ablation study, isolating the effect of TCNs and the latent space. To this end the deterministic TCN blocks are replaced with LSTM cells by keeping the latent structure intact. We dub this condition LadderRNN. We use the TIMIT and IAM-OnDB datasets for evaluation. Table 3 summarizes performance measured by the ELBO.
212
+
213
+ The most direct translation of the the STCN architecture into an RNN counterpart has 25 stacked LSTM cells with 256 units each. Similar to STCN, we use 5 stochastic layers (see Appendix 7.1). Note that stacking this many LSTM cells is unusual and resulted in instabilities during training. Hence, the performance is similar to vanilla RNNs. The second LadderRNN configuration uses 5 stacked LSTM cells with 512 units and a one-to-one mapping with the stochastic layers. On the TIMIT dataset, all LadderRNN configurations show a significant improvement. We also observe a pattern of improvement with densely connected latent variables.
214
+
215
+ This experiments shows that the proposed modular latent variable design does allow for the usage of different building blocks. Even when attached to LSTM cells, it boosts the log-likelihood performance (see 5x512- LadderRNN), in particular when used with dense connections. However, the empirical results suggest that the densely connected latent hierarchy interacts particularly well with dilated CNNs. We suggest this is due to the hierarchical nature on both sides of the architecture. On both datasets STCN models achieved the best performance and significantly improve with dense connections. This supports our contribution of a latent variable hierarchy, which models different aspects of information from the input time-series.
216
+
217
+ Table 3: ELBO of LadderRNN and STCN models using the same latent space configuration. The prefix of a model entries denote the number of RNN or TCN layers and unit size per layer. Models have similar number of trainable parameters.
218
+
219
+ <table><tr><td>Models</td><td>TIMIT</td><td>IAM-OnDB</td></tr><tr><td>25x256-LadderRNN (Normal)</td><td>≥ 28207</td><td>≥ 1305</td></tr><tr><td>25x256-LadderRNN-dense (Normal)</td><td>≥ 27413</td><td>&gt;I &gt;I 1278</td></tr><tr><td>25x256-LadderRNN (GMM)</td><td>≥ 24839</td><td>1381</td></tr><tr><td>25x256-LadderRNN-dense (GMM)</td><td>≥ 26240</td><td>≥ 1377</td></tr><tr><td>5x512-LadderRNN (Normal)</td><td>≥ 49770</td><td>≥ 1299</td></tr><tr><td>5x512-LadderRNN-dense (Normal)</td><td>M 48612</td><td>1374</td></tr><tr><td>5x512-LadderRNN (GMM)</td><td>M 47179</td><td>&gt;I &gt;I 1359</td></tr><tr><td>5x512-LadderRNN-dense (GMM)</td><td>≥ 50113</td><td>≥ 1581</td></tr><tr><td>25x256-STCN (Normal)</td><td>≥ 64913</td><td>≥ 1327</td></tr><tr><td>25x256-STCN-dense (Normal)</td><td>M 70294</td><td>N 1729</td></tr><tr><td>25x256-STCN (GMM)</td><td>M :69195</td><td>≥ 1339</td></tr><tr><td>25x256-STCN-dense (GMM)</td><td>M 71386</td><td>≥ 1796</td></tr></table>
220
+
221
+ # 5 RELATED WORK
222
+
223
+ Rezende et al. (2014) propose Deep Latent Gaussian Models (DLGM) and Sønderby et al. (2016) propose the Ladder Variational Autoencoder (LVAE). In both models the latent variables are hierarchically defined and conditioned on the preceding stochastic layer. LVAEs improve upon DLGMs via implementation of a top-down hierarchy both in the generative and inference model. The approximate posterior is computed via a precisionweighted update of the approximate likelihood (i.e., the inference model) and prior (i.e., the generative model). Similarly, the PixelVAE (Gulrajani et al., 2016) incorporates a hierarchical latent space decomposition and uses an autoregressive decoder. Zhao et al. (2017) show under mild conditions that straightforward stacking of latent variables (as is done e.g. in LVAE and PixelVAE) can be ineffective, because the latent variables that are not directly conditioned on the observation variable become inactive.
224
+
225
+ Due to the nature of the sequential problem domain, our approach differs in the crucial aspects that STCNs use dynamic, i.e., conditional, priors (Chung et al., 2015) at every level. Moreover, the hierarchy is not only implicitly defined by the network architecture but also explicitly defined by the information content, i.e., receptive field size. Dieng et al. (2018) both theoretically and empirically show that using skip connections from the latent variable to every layer of the decoder increases mutual information between the latent and observation variables. Similar to Dieng et al. (2018) in STCN-dense, we introduce skip connections from all latent variables to the output. In STCN the model is expected to encode and propagate the information through its hierarchy.
226
+
227
+ Yang et al. (2017) suggest using autoregressive TCN decoders to remedy the posterior collapse problem observed in language modeling with LSTM decoders (Bowman et al., 2015). van den Oord et al. (2017) and Dieleman et al. (2018) use TCN decoders conditioned on discrete latent variables to model audio signals.
228
+
229
+ Stochastic RNN architectures mostly vary in the way they employ the latent variable and parametrize the approximate posterior for variational inference. Chung et al. (2015) and Bayer & Osendorfer (2014) use the latent random variable to capture high-level information causing the variability observed in sequential data. Particularly Chung et al. (2015) shows that using a conditional prior rather than a standard Gaussian distribution is very effective in sequence modeling. In (Fraccaro et al., 2016; Goyal et al., 2017; Shabanian et al., 2017), the inference model, i.e., the approximate posterior, receives both the past and future summaries of the sequence from the hidden states of forward and backward RNN cells. The KL-divergence term in the objective enforces the model to learn predictive latent variables in order to capture the future states of the sequence.
230
+
231
+ Lai et al. (2018)’s SWaveNet is most closely related to ours. SWaveNet also introduces latent variables into TCNs. However, in SWaveNet the deterministic and stochastic units are coupled which may prevent stacking of larger numbers of TCN blocks. Since the number of stacked dilated convolutions determines the receptive field size, this directly correlates with the model capacity. For example, the performance of SWaveNet on the IAM-OnDB dataset degrades after stacking more than 3 stochastic layers (Lai et al., 2018), limiting the model to a small receptive field. In contrast, we aim to preserve the flexibility of stacking dilated convolutions in the base TCN. In STCNs, the deterministic TCN units do not have any dependency on the stochastic variables (see Figure 1) and the ratio of stochastic to deterministic units can be adjusted, depending on the task.
232
+
233
+ # 6 CONCLUSION
234
+
235
+ In this paper we proposed STCNs, a novel auto-regressive model, combining the computational benefits of convolutional architectures and expressiveness of hierarchical stochastic latent spaces. We have shown the effectivness of the approach across several sequence modelling tasks and datasets. The proposed models are trained via optimization of the ELBO objective. Tighter lower bounds such as IWAE (Burda et al., 2015) or FIVO (Maddison et al., 2017) may further improve modeling performance. We leave this for future work.
236
+
237
+ # ACKNOWLEDGEMENTS
238
+
239
+ This work was supported in parts by the ERC grant OPTINT (StG-2016-717054). We gratefully acknowledge the support of NVIDIA Corporation with the donation of the Titan Xp GPU used for this research.
240
+
241
+ REFERENCES
242
+ Martin Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, Manjunath Kudlur, Josh Levenberg, Rajat Monga, Sherry Moore, Derek G. Murray, Benoit Steiner, Paul Tucker, Vijay Vasudevan, Pete Warden, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. Tensorflow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), pp. 265–283, 2016. URL https://www.usenix.org/system/files/conference/osdi16/osdi16-abadi.pdf.
243
+ Emre Aksan, Fabrizio Pece, and Otmar Hilliges. DeepWriting: Making Digital Ink Editable via Deep Generative Modeling. In SIGCHI Conference on Human Factors in Computing Systems, CHI ’18, New York, NY, USA, 2018. ACM.
244
+ Shaojie Bai, J Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271, 2018.
245
+ Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014.
246
+ Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. arXiv preprint arXiv:1511.06349, 2015.
247
+ Yuri Burda, Roger Grosse, and Ruslan Salakhutdinov. Importance weighted autoencoders. arXiv preprint arXiv:1509.00519, 2015.
248
+ Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger ¨ Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014.
249
+ Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pp. 2980–2988, 2015.
250
+ Yann N Dauphin, Angela Fan, Michael Auli, and David Grangier. Language modeling with gated convolutional networks. arXiv preprint arXiv:1612.08083, 2016.
251
+ Sander Dieleman, Aaron van den Oord, and Karen Simonyan. The challenge of realistic music generation: ¨ modelling raw audio at scale. arXiv preprint arXiv:1806.10474, 2018.
252
+ Adji B Dieng, Yoon Kim, Alexander M Rush, and David M Blei. Avoiding latent variable collapse with generative skip models. arXiv preprint arXiv:1807.04863, 2018.
253
+ Otto Fabius and Joost R van Amersfoort. Variational recurrent auto-encoders. arXiv preprint arXiv:1412.6581, 2014.
254
+ Marco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Advances in neural information processing systems, pp. 2199–2207, 2016.
255
+ Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122, 2017.
256
+ Anirudh Goyal ALIAS PARTH Goyal, Alessandro Sordoni, Marc-Alexandre Cotˆ e, Nan Ke, and Yoshua Ben- ´ gio. Z-forcing: Training stochastic recurrent networks. In Advances in Neural Information Processing Systems, pp. 6713–6723, 2017.
257
+ Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013.
258
+ Ishaan Gulrajani, Kundan Kumar, Faruk Ahmed, Adrien Ali Taiga, Francesco Visin, David Vazquez, and Aaron Courville. Pixelvae: A latent variable model for natural images. arXiv preprint arXiv:1611.05013, 2016.
259
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8):1735–1780, 1997.
260
+ Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, volume 1, pp. 3, 2017.
261
+ Łukasz Kaiser, Aurko Roy, Ashish Vaswani, Niki Pamar, Samy Bengio, Jakob Uszkoreit, and Noam Shazeer. Fast decoding in sequence models using discrete latent variables. arXiv preprint arXiv:1803.03382, 2018.
262
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
263
+ Guokun Lai, Bohan Li, Guoqing Zheng, and Yiming Yang. Stochastic wavenet: A generative latent variable model for sequential data, 2018.
264
+ Lars Maaløe, Casper Kaae Sønderby, Søren Kaae Sønderby, and Ole Winther. Auxiliary deep generative models. arXiv preprint arXiv:1602.05473, 2016.
265
+ Chris J Maddison, John Lawson, George Tucker, Nicolas Heess, Mohammad Norouzi, Andriy Mnih, Arnaud Doucet, and Yee Teh. Filtering variational objectives. In Advances in Neural Information Processing Systems, pp. 6573–6583, 2017.
266
+ Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014.
267
+ Samira Shabanian, Devansh Arpit, Adam Trischler, and Yoshua Bengio. Variational bi-lstms. arXiv preprint arXiv:1711.05717, 2017.
268
+ Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. Ladder variational autoencoders. In Advances in neural information processing systems, pp. 3738–3746, 2016.
269
+ Aaron Van Den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalch- ¨ brenner, Andrew W Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In SSW, pp. 125, 2016.
270
+ Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image ¨ generation with pixelcnn decoders. In Advances in Neural Information Processing Systems, pp. 4790–4798, 2016.
271
+ Aaron van den Oord, Oriol Vinyals, et al. Neural discrete representation learning. In Advances in Neural Information Processing Systems, pp. 6306–6315, 2017.
272
+ Zichao Yang, Zhiting Hu, Ruslan Salakhutdinov, and Taylor Berg-Kirkpatrick. Improved variational autoencoders for text modeling using dilated convolutions. arXiv preprint arXiv:1702.08139, 2017.
273
+ Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. arXiv preprint arXiv:1511.07122, 2015.
274
+ Shengjia Zhao, Jiaming Song, and Stefano Ermon. Learning hierarchical features from generative models. arXiv preprint arXiv:1702.08396, 2017.
275
+
276
+ # 7 APPENDIX
277
+
278
+ # 7.1 NETWORK DETAILS
279
+
280
+ ![](images/19aa4d2b81f05aacc2011ed44ab2ccd4481cbc37a564cfc54e2d0bf8b1253e60.jpg)
281
+ Figure 4: Generative model of STCN-dense architecture. Building blocks are highlighted. Note that the dependence of $d _ { t } ^ { l } , l = 1 \cdots L$ on past inputs is not visualized for clarity.
282
+
283
+ The network architecture of the proposed model is illustrated in Fig. 4. We make only a small modification to the vanilla Wavenet architecture. Instead of using skip connections from Wavenet blocks, we only use the latent sample $z _ { t }$ in order to make a prediction of $x _ { t }$ . In STCN-dense configuration, $z _ { t }$ is the concatenation of all latent variables in the hierarchy, i.e., $\boldsymbol { z } _ { t } = [ \boldsymbol { z } _ { t } ^ { 1 } \circ \cdot \cdot \cdot \circ \boldsymbol { z } _ { t } ^ { L } ]$ , whereas in STCN only $z _ { t } ^ { 1 }$ is fed to the output layer.
284
+
285
+ Each stochastic latent variable $z _ { t } ^ { l }$ (except the top-most $z _ { t } ^ { L }$ ) is conditioned on a deterministic TCN representation $d _ { t } ^ { l }$ and the preceding random variable $z _ { t } ^ { l + 1 }$ . The latent variables are calculated by using the latent layers $f _ { p } ^ { ( l ) }$ or $f _ { q } ^ { ( l ) }$ which are neural networks.
286
+
287
+ We do not define a latent variable per TCN layer. Instead, the stochastic layers are uniformly distributed where each random variable is conditioned on a number of stacked TCN layers $\dot { d } _ { t } ^ { l }$ . We stack $K$ Wavenet blocks (see figure 4 left) with exponentially increasing dilation size.
288
+
289
+ Observation Model: We use Normal or GMM distributions with 20 components to model real-valued data.
290
+ All Gaussian distributions have diagonal covariance matrix.
291
+
292
+ Output layer $f ^ { ( o ) }$ : For the IAM-OnDB and Deepwriting datasets we use 1D convolutions with ReLU nonlinearity. We stack 5 of these layers with 256 filters and filter size 1.
293
+
294
+ For TIMIT and Blizzard datasets Wavenet blocks in the output layer perform significantly better. We stack 5 Wavenet blocks with dilation size 1. For each convolution operation in the block we use 256 filters. The filter size of the dilated convolution is set to 2. The STCN-dense-large model is constructed by using 512 filters instead of 256.
295
+
296
+ TCN blocks $d _ { t } ^ { l }$ : The number of Wavenet blocks is usually determined by the desired receptive field size.
297
+
298
+ • For the handwriting datasets $K = 6$ and $L = 5$ . In total we have 30 Wavenet blocks where each convolution operation has 256 filters with size 2. • For speech datasets $K = 5$ and $L = 5$ . In total we have 25 Wavenet blocks where each convolution operation has 256 filters with size 2. The large model configuration uses 512 filters.
299
+
300
+ Latent layers $f _ { p } ^ { ( l ) }$ and $f _ { q } ^ { ( l ) }$ : The number of stochastic layers per task is given by $L$ . We used [32, 16, 8, 5, 2] dimensional latent variables for the handwriting tasks. It is [256, 128, 64, 32, 16] for speech datasets. Note that the first entry of the list corresponds to $z ^ { 1 }$ .
301
+
302
+ The mean and sigma parameters of the Normal distributions modeling the latent variables are calculated by the $f _ { p } ^ { ( l ) }$ and $f _ { q } ^ { ( l ) }$ networks. We stack $^ { 2 1 0 }$ convolutions with ReLU nonlinearity and filter size 1. The number of filters are the same as the number of Wavenet block filters for the corresponding task.
303
+
304
+ Finally, we clamped the latent sigma predictions between 0.001 and 5.
305
+
306
+ # 7.2 TRAINING DETAILS
307
+
308
+ In all STCN experiments we applied KL annealing. In all tasks, the weight of the KL term is initialized with 0 and increased by $1 \times e ^ { - 4 }$ at every step until it reaches 1.
309
+
310
+ The batch size was 20 for all datasets except for Blizzard where it was 128.
311
+
312
+ We use the ADAM optimizer with its default parameters and exponentially decay the learning rate. For the handwriting datasets the learning rate was initialized with $5 \times e ^ { - 4 }$ and followed a decay rate of 0.94 over 1000 decay steps. On the speech datasets it was initialized with $1 \times e ^ { - 3 }$ and decayed with a rate of 0.98. We applied early stopping by measuring the ELBO performance on the validation splits.
313
+
314
+ We implement STCN models in Tensorflow (Abadi et al., 2016). Our code and models achieving the SOA results are available at https://ait.ethz.ch/projects/2019/stcn/.
315
+
316
+ # 7.3 DETAILED RESULTS
317
+
318
+ Here we provide the extended results table with Normal observation model entries for available models.
319
+
320
+ Table 4: Average log-likelihood per sequence on TIMIT, Blizzard, IAM-OnDB and Deepwriting datasets. (Normal) and (GMM) stand for unimodal Gaussian or multi-modal Gaussian Mixture Model (GMM) as the observation model (Graves, 2013; Chung et al., 2015). Asterisks ∗ indicate that we used our re-implementation only for the Deepwriting dataset.
321
+
322
+ <table><tr><td>Models</td><td>TIMIT</td><td>Blizzard</td><td>IAM-OnDB</td><td>Deepwriting</td></tr><tr><td>Wavenet (Normal)</td><td>-7443</td><td>3784</td><td>1053</td><td>337</td></tr><tr><td>Wavenet (GMM)</td><td>30188</td><td>8190</td><td>1381</td><td>612</td></tr><tr><td>Wavenet-dense (Normal)</td><td>-8579</td><td>3712</td><td>1030</td><td>323</td></tr><tr><td>Wavenet-dense (GMM)</td><td>30636</td><td>8212</td><td>1380</td><td>642</td></tr><tr><td>RNN (Normal) Chung et al. (2015)</td><td>-1900</td><td>3539</td><td>1016</td><td>363 *</td></tr><tr><td>RNN (GMM) Chung et al. (2015)</td><td>26643</td><td>7413</td><td>1358</td><td>528 *</td></tr><tr><td>VRNN (Normal)Chung et al. (2015)</td><td>~ 30235</td><td>~9516</td><td>≈1354</td><td>≥ 495 *</td></tr><tr><td>VRNN (GMM) Chung et a. (2015)</td><td>~ 29604</td><td>~9392</td><td>≈1384</td><td>≥673 *</td></tr><tr><td>SRNN (Normal) Fraccaro et al. (2016)</td><td>≥ 60550</td><td>≥ 11991</td><td>n/a</td><td>n/a</td></tr><tr><td>Z-forcing (Normal)Goyal etal. (2017)</td><td>≥ 70469</td><td>≥ 15430</td><td>n/a</td><td>n/a</td></tr><tr><td>Var.Bi-LSTM (Normal)Shabanian et al. (2017)</td><td>≥ 73976</td><td>≥ 17319</td><td>n/a</td><td>n/a</td></tr><tr><td>SWaveNet (Normal)Lai et al.(2018)</td><td>≥ 72463</td><td>M 15708</td><td>≥1301</td><td>n/a</td></tr><tr><td>STCN(Normal)</td><td>≥ 64913</td><td>M 13273</td><td>≥ 1327</td><td>≥ 575</td></tr><tr><td>STCN(GMM)</td><td>≥ 69195</td><td>≥15800</td><td>≥ 1338</td><td>≥ 605</td></tr><tr><td>STCN-dense(Normal)</td><td>≥ 70294</td><td>≥ 15950</td><td>≥ 1729</td><td>≥ 740</td></tr><tr><td>STCN-dense(GMM)</td><td>≥ 71386</td><td>M 16288</td><td>≥ 1796</td><td>≥ 797</td></tr><tr><td>STCN-dense-large (GMM)</td><td>≥ 77438</td><td>≥ 17670</td><td>n/a</td><td>n/a</td></tr></table>
parse/train/HkzSQhCcK7/HkzSQhCcK7_content_list.json ADDED
@@ -0,0 +1,1453 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "STCN: STOCHASTIC TEMPORAL CONVOLUTIONAL NETWORKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 820,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Emre Aksan & Otmar Hilliges \nDepartment of Computer Science \nETH Zurich, Switzerland \n{emre.aksan, otmar.hilliges}@inf.ethz.ch ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 573,
21
+ 227
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 262,
32
+ 544,
33
+ 277
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Convolutional architectures have recently been shown to be competitive on many sequence modelling tasks when compared to the de-facto standard of recurrent neural networks (RNNs), while providing computational and modeling advantages due to inherent parallelism. However, currently there remains a performance gap to more expressive stochastic RNN variants, especially those with several layers of dependent random variables. In this work, we propose stochastic temporal convolutional networks (STCNs), a novel architecture that combines the computational advantages of temporal convolutional networks (TCN) with the representational power and robustness of stochastic latent spaces. In particular, we propose a hierarchy of stochastic latent variables that captures temporal dependencies at different time-scales. The architecture is modular and flexible due to decoupling of deterministic and stochastic layers. We show that the proposed architecture achieves state of the art log-likelihoods across several tasks. Finally, the model is capable of predicting high-quality synthetic samples over a long-range temporal horizon in modeling of handwritten text. ",
40
+ "bbox": [
41
+ 233,
42
+ 295,
43
+ 764,
44
+ 502
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 530,
55
+ 336,
56
+ 546
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Generative modeling of sequence data requires capturing long-term dependencies and learning of correlations between output variables at the same time-step. Recurrent neural networks (RNNs) and its variants have been very successful in a vast number of problem domains which rely on sequential data. Recent work in audio synthesis, language modeling and machine translation tasks (Dauphin et al., 2016; Van Den Oord et al., 2016; Dieleman et al., 2018; Gehring et al., 2017) has demonstrated that temporal convolutional networks (TCNs) can also achieve at least competitive performance without relying on recurrence, and hence reducing the computational cost for training. ",
63
+ "bbox": [
64
+ 174,
65
+ 563,
66
+ 825,
67
+ 659
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Both RNNs and TCNs model the joint probability distribution over sequences by decomposing the distribution over discrete time-steps. In other words, such models are trained to predict the next step, given all previous time-steps. RNNs are able to model long-term dependencies by propagating information through their deterministic hidden state, acting as an internal memory. In contrast, TCNs leverage large receptive fields by stacking many dilated convolutions, allowing them to model even longer time scales up to the entire sequence length. It is noteworthy that there is no explicit temporal dependency between the model outputs and hence the computations can be performed in parallel. The TCN architecture also introduces a temporal hierarchy: the upper layers have access to longer input sub-sequences and learn representations at a larger time scale. The local information from the lower layers is propagated through the hierarchy by means of residual and skip connections (Van Den Oord et al., 2016; Bai et al., 2018). ",
74
+ "bbox": [
75
+ 174,
76
+ 666,
77
+ 825,
78
+ 819
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "However, while TCN architectures have been shown to perform similar or better than standard recurrent architectures on particular tasks (Van Den Oord et al., 2016; Bai et al., 2018), there currently remains a performance gap to more recent stochastic RNN variants (Bayer & Osendorfer, 2014; Chung et al., 2015; Fabius & van Amersfoort, 2014; Fraccaro et al., 2016; Goyal et al., 2017; Shabanian et al., 2017). Following a similar approach to stochastic RNNs, Lai et al. (2018) present a significant improvement in the log-likelihood when a TCN model is coupled with latent variables, albeit at the cost of limited receptive field size. ",
85
+ "bbox": [
86
+ 174,
87
+ 827,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/d359808562547faeee9a83d1af529c4304cb6f63f56df5ac6e6025a77b3485c8.jpg",
96
+ "image_caption": [
97
+ "Figure 1: The computational graph of generative (left) and inference (right) models of STCN. The approximate posterior $q$ is conditioned on $\\mathbf { d } _ { t }$ and is updated by the prior $p$ which is conditioned on the TCN representations of the previous time-step $\\mathbf { d } _ { t - 1 }$ . The random latent variables at the upper layers have access to a long history while lower layers receive inputs from more recent time steps. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 192,
102
+ 99,
103
+ 815,
104
+ 248
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "In this work we propose a new approach for augmenting TCNs with random latent variables, that decouples deterministic and stochastic structures yet leverages the increased modeling capacity efficiently. Motivated by the simplicity and computational advantages of TCNs and the robustness and performance of stochastic RNNs, we introduce stochastic temporal convolutional networks (STCN) by incorporating a hierarchy of stochastic latent variables into TCNs which enables learning of representations at many timescales. However, due to the absence of an internal state in TCNs, introducing latent random variables analogously to stochastic RNNs is not feasible. Furthermore, defining conditional random variables across time-steps would result in breaking the parallelism of TCNs and is hence undesirable. ",
111
+ "bbox": [
112
+ 174,
113
+ 337,
114
+ 825,
115
+ 462
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "In STCN the latent random variables are arranged in correspondence to the temporal hierarchy of the TCN blocks, effectively distributing them over the various timescales (see figure 1). Crucially, our hierarchical latent structure is designed to be a modular add-on for any temporal convolutional network architecture. Separating the deterministic and stochastic layers allows us to build STCNs without requiring modifications to the base TCN architecture, and hence retains the scalability of TCNs with respect to the receptive field. This conditioning of the latent random variables via different timescales is especially effective in the case of TCNs. We show this experimentally by replacing the TCN layers with stacked LSTM cells, leading to reduced performance compared to STCN. ",
122
+ "bbox": [
123
+ 174,
124
+ 469,
125
+ 825,
126
+ 582
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "We propose two different inference networks. In the canonical configuration, samples from each latent variable are passed down from layer to layer and only one sample from the lowest layer is used to condition the prediction of the output. In the second configuration, called STCN-dense, we take inspiration from recent CNN architectures (Huang et al., 2017) and utilize samples from all latent random variables via concatenation before computing the final prediction. ",
133
+ "bbox": [
134
+ 174,
135
+ 588,
136
+ 825,
137
+ 657
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Our contributions can thus be summarized as: 1) We present a modular and scalable approach to augment temporal convolutional network models with effective stochastic latent variables. 2) We empirically show that the STCN-dense design prevents the model from ignoring latent variables in the upper layers (Zhao et al., 2017). 3) We achieve state-of-the-art log-likelihood performance, measured by ELBO, on the IAM-OnDB, Deepwriting, TIMIT and the Blizzard datasets. 4) Finally we show that the quality of the synthetic samples matches the significant quantitative improvements. ",
144
+ "bbox": [
145
+ 174,
146
+ 664,
147
+ 825,
148
+ 748
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 BACKGROUND ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 767,
159
+ 326,
160
+ 784
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Auto-regressive models such as RNNs and TCNs factorize the joint probability of a variable-length sequence $\\mathbf { x } = \\{ x _ { 1 } , \\dots , x _ { T } \\}$ as a product of conditionals as follows: ",
167
+ "bbox": [
168
+ 173,
169
+ 799,
170
+ 823,
171
+ 828
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "equation",
177
+ "img_path": "images/f283bf6c2ab7ccb6a6dc5445627057e98aaf482a231d227f809608e4c68f728e.jpg",
178
+ "text": "$$\np _ { \\theta } ( { \\bf x } ) = \\prod _ { t = 1 } ^ { T } p _ { \\theta } ( x _ { t } | x _ { 1 : t - 1 } ) \\quad ,\n$$",
179
+ "text_format": "latex",
180
+ "bbox": [
181
+ 400,
182
+ 833,
183
+ 596,
184
+ 877
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "where the joint distribution is parametrized by $\\theta$ . The prediction at each time-step is conditioned on all previous observations. The observation model is frequently chosen to be a Gaussian or Gaussian mixture model (GMM) for real-valued data, and a categorical distribution for discrete-valued data. ",
191
+ "bbox": [
192
+ 174,
193
+ 881,
194
+ 823,
195
+ 924
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "2.1 TEMPORAL CONVOLUTIONAL NETWORKS ",
202
+ "text_level": 1,
203
+ "bbox": [
204
+ 176,
205
+ 103,
206
+ 506,
207
+ 117
208
+ ],
209
+ "page_idx": 2
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "In TCNs the joint probabilities in Eq. (1) are parametrized by a stack of convolutional layers. Causal convolutions are the central building block of such models and are designed to be asymmetric such that the model has no access to future information. In order to produce outputs of the same size as the input, zero-padding is applied at every layer. ",
214
+ "bbox": [
215
+ 173,
216
+ 131,
217
+ 825,
218
+ 188
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "In the absence of a state transition function, a large receptive field is crucial in capturing long-range dependencies. To avoid the need for vast numbers of causal convolution layers, typically dilated convolutions are used. Exponentially increasing the dilation factor results in an exponential growth of the receptive field size with depth (Yu & Koltun, 2015; Van Den Oord et al., 2016; Bai et al., 2018). In this work, without loss of generality, we use the building blocks of Wavenet (Van Den Oord et al., 2016) as gated activation units (van den Oord et al., 2016) have been reported to perform better. ",
225
+ "bbox": [
226
+ 173,
227
+ 194,
228
+ 825,
229
+ 279
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "A deterministic TCN representation $d _ { t } ^ { l }$ at time-step $t$ and layer $l$ summarizes the input sequence $x _ { 1 : t }$ ",
236
+ "bbox": [
237
+ 168,
238
+ 284,
239
+ 823,
240
+ 299
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "equation",
246
+ "img_path": "images/bb60277180df9f0e2489b7393563340e7f46fc72cda853a18a168a840d2aa7f1.jpg",
247
+ "text": "$$\nd _ { t } ^ { l } = \\mathbf { C o n v } ^ { ( l ) } ( d _ { t } ^ { l - 1 } , d _ { t - j } ^ { l - 1 } ) \\quad \\mathrm { a n d } \\quad d _ { t } ^ { 1 } = \\mathbf { C o n v } ^ { ( 1 ) } ( x _ { t } , x _ { t - j } ) \\quad ,\n$$",
248
+ "text_format": "latex",
249
+ "bbox": [
250
+ 297,
251
+ 309,
252
+ 699,
253
+ 332
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "where the filter width is 2 and $j$ denotes the dilation step. In our work, the stochastic variables $z ^ { l } , l \\ = \\ 1 \\ldots L$ are conditioned on TCN representations $d ^ { l }$ that are constructed by stacking $K$ Wavenet blocks over the previous $d ^ { l - 1 }$ (for details see Figure 4 in Appendix). ",
260
+ "bbox": [
261
+ 173,
262
+ 339,
263
+ 826,
264
+ 383
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "2.2 NON-SEQUENTIAL LATENT VARIABLE MODELS ",
271
+ "text_level": 1,
272
+ "bbox": [
273
+ 174,
274
+ 402,
275
+ 545,
276
+ 417
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "VAEs (Kingma & Welling, 2013; Rezende et al., 2014) introduce a latent random variable $\\mathbf { z }$ to learn the variations in the observed non-sequential data where the generation of the sample $\\mathbf { X }$ is conditioned on the latent variable $\\mathbf { z }$ . The joint probability distribution is defined as: ",
283
+ "bbox": [
284
+ 174,
285
+ 430,
286
+ 825,
287
+ 473
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "equation",
293
+ "img_path": "images/1b00a53d0785f1b7b832d4304ed10466f3f25fea1c7838cf18da40264b76b03f.jpg",
294
+ "text": "$$\n\\begin{array} { r } { p _ { \\theta } ( \\mathbf { x } , \\mathbf { z } ) = p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } ) p _ { \\theta } ( \\mathbf { z } ) \\quad , } \\end{array}\n$$",
295
+ "text_format": "latex",
296
+ "bbox": [
297
+ 408,
298
+ 483,
299
+ 588,
300
+ 501
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "and parametrized by $\\theta$ . Optimizing the marginal likelihood is intractable due to the non-linear mappings between $\\mathbf { z }$ and $\\mathbf { X }$ and the integration over $\\mathbf { z }$ . Instead the VAE framework introduces an approximate posterior $q _ { \\phi } ( { \\bf z } | { \\bf x } )$ and optimizes a lower-bound on the marginal likelihood: ",
307
+ "bbox": [
308
+ 174,
309
+ 510,
310
+ 825,
311
+ 554
312
+ ],
313
+ "page_idx": 2
314
+ },
315
+ {
316
+ "type": "equation",
317
+ "img_path": "images/f10fc4090c85987387686ad8f616d194fef06c0002dbbeb5bdc0fefe8669f9da.jpg",
318
+ "text": "$$\n\\begin{array} { r } { \\log p _ { \\theta } ( \\mathbf { x } ) \\geq - K L ( q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) | | p _ { \\theta } ( \\mathbf { z } ) ) + \\mathbb { E } _ { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) } [ \\log p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } ) ] \\quad , } \\end{array}\n$$",
319
+ "text_format": "latex",
320
+ "bbox": [
321
+ 299,
322
+ 563,
323
+ 699,
324
+ 583
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "where $K L$ denotes the Kullback-Leibler divergence. Typically the prior $p _ { \\boldsymbol { \\theta } } ( \\mathbf { z } )$ and the approximate $q _ { \\phi } ( { \\bf z } | { \\bf x } )$ are chosen to be in simple parametric form, such as a Gaussian distribution with diagonal covariance, which allows for an analytical calculation of the $K L$ -term in Eq. (4). ",
331
+ "bbox": [
332
+ 174,
333
+ 593,
334
+ 825,
335
+ 636
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "2.3 STOCHASTIC RNNS ",
342
+ "text_level": 1,
343
+ "bbox": [
344
+ 174,
345
+ 656,
346
+ 354,
347
+ 670
348
+ ],
349
+ "page_idx": 2
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "An RNN captures temporal dependencies by recursively processing each input, while updating an internal state $h _ { t }$ at each time-step via its state-transition function: ",
354
+ "bbox": [
355
+ 174,
356
+ 684,
357
+ 823,
358
+ 712
359
+ ],
360
+ "page_idx": 2
361
+ },
362
+ {
363
+ "type": "equation",
364
+ "img_path": "images/247b27dcba34205e46be8ae8872f06dfb2cc8dfffc1a19caed5782867c2f9f2d.jpg",
365
+ "text": "$$\nh _ { t } = f ^ { ( h ) } ( x _ { t } , h _ { t - 1 } ) \\quad ,\n$$",
366
+ "text_format": "latex",
367
+ "bbox": [
368
+ 421,
369
+ 722,
370
+ 576,
371
+ 742
372
+ ],
373
+ "page_idx": 2
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "where $f ^ { ( h ) }$ is a deterministic transition function such as LSTM (Hochreiter & Schmidhuber, 1997) or GRU (Cho et al., 2014) cells. The computation has to be sequential because $h _ { t }$ depends on $h _ { t - 1 }$ . ",
378
+ "bbox": [
379
+ 171,
380
+ 753,
381
+ 825,
382
+ 782
383
+ ],
384
+ "page_idx": 2
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "The VAE framework has been extended for sequential data, where a latent variable $z _ { t }$ augments the RNN state $h _ { t }$ at each sequence step. The joint distribution $p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } , \\mathbf { z } )$ is modeled via an auto-regressive model which results in the following factorization: ",
389
+ "bbox": [
390
+ 174,
391
+ 789,
392
+ 825,
393
+ 832
394
+ ],
395
+ "page_idx": 2
396
+ },
397
+ {
398
+ "type": "equation",
399
+ "img_path": "images/ca6283fbe2fb450720f27de25beb58549f25a7888b9a7abaca0c4c673fdffa72.jpg",
400
+ "text": "$$\np _ { \\theta } ( \\mathbf { x } , \\mathbf { z } ) = \\prod _ { t = 1 } ^ { T } p _ { \\theta } ( x _ { t } | z _ { 1 : t } , x _ { 1 : t - 1 } ) p _ { \\theta } ( z _ { t } | x _ { 1 : t - 1 } , z _ { 1 : t - 1 } ) \\quad .\n$$",
401
+ "text_format": "latex",
402
+ "bbox": [
403
+ 310,
404
+ 842,
405
+ 687,
406
+ 885
407
+ ],
408
+ "page_idx": 2
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "In contrast to the fixed prior of VAEs, $\\mathcal { N } ( \\mathbf { 0 } , \\mathbf { I } )$ , sequential variants define prior distributions conditioned on the RNN hidden state $\\mathbf { h }$ and implicitly on the input sequence $\\mathbf { X }$ (Chung et al., 2015). ",
413
+ "bbox": [
414
+ 174,
415
+ 895,
416
+ 823,
417
+ 924
418
+ ],
419
+ "page_idx": 2
420
+ },
421
+ {
422
+ "type": "image",
423
+ "img_path": "images/c0aec47397b8ede7adba3b46cdcc820188b2ad1e6dfda787b03aa04c1a251b89.jpg",
424
+ "image_caption": [
425
+ "Figure 2: Graphical model view of generative models of STCN (left) and STCN-dense (middle), and the inference model (right), which is shared by both variants. Diamonds represent the outputs of deterministic dilated convolution blocks where the dependence of $d _ { t }$ on the past inputs is not shown for clarity (see Eq. (2)). $x _ { t }$ and $z _ { t }$ are observable inputs and latent random variables, respectively. The generative task is to predict the next step in the sequence, given all past steps. Note that in the STCN-dense variant the next step is conditioned on all latent variables $z _ { t } ^ { l }$ for $l = 1 \\ldots L$ . "
426
+ ],
427
+ "image_footnote": [],
428
+ "bbox": [
429
+ 339,
430
+ 103,
431
+ 661,
432
+ 233
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "3 STOCHASTIC TEMPORAL CONVOLUTIONAL NETWORKS ",
439
+ "text_level": 1,
440
+ "bbox": [
441
+ 176,
442
+ 345,
443
+ 669,
444
+ 363
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "The mechanics of STCNs are related to those of VRNNs and LVAEs. Intuitively, the RNN state $h _ { t }$ is replaced by temporally independent TCN layers $d _ { t } ^ { l }$ . In the absence of an internal state, we define hierarchical latent variables $\\dot { \\boldsymbol { z } } _ { t } ^ { l }$ that are conditioned vertically, i.e., in the same time-step, but independent horizontally, i.e., across time-steps. We follow a similar approach to LVAEs (Sønderby et al., 2016) in defining the hierarchy in a top-down fashion and in how we estimate the approximate posterior. The inference network first computes the approximate likelihood, and then this estimate is corrected by the prior, resulting in the approximate posterior. The TCN layers $\\mathbf { d }$ are shared between the inference and generator networks, analogous to VRNNs (Chung et al., 2015). ",
451
+ "bbox": [
452
+ 173,
453
+ 377,
454
+ 825,
455
+ 491
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "Figure 2 depicts the proposed STCN as a graphical model. STCNs consist of two main modules: the deterministic temporal convolutional network and the stochastic latent variable hierarchy. For a given input sequence $\\mathbf { x } = \\{ x _ { t } \\} , t = 1 . . . T$ we first apply dilated convolutions over the entire sequence to compute a set of deterministic representations $\\dot { d } _ { t } ^ { \\check { l } } , l = 1 \\ldots L$ . Here, $d _ { t } ^ { l }$ corresponds to the output of a block of dilated convolutions at layer $l$ and time-step $t$ . The output $d _ { t } ^ { l }$ is then used to update a set of random latent variables $z _ { t } ^ { l }$ arranged to correspond with different time-scales. ",
462
+ "bbox": [
463
+ 173,
464
+ 496,
465
+ 825,
466
+ 580
467
+ ],
468
+ "page_idx": 3
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "To preserve the parallelism of TCNs, we do not introduce an explicit dependency between different time-steps. However, we suggest that conditioning a latent variable $z _ { t } ^ { l - \\bar { 1 } }$ on the preceding variable $z _ { t } ^ { l }$ implicitly introduces temporal dependencies. Importantly, the random latent variables in the upper layer have access to a larger receptive field due to its deterministic input $d _ { t - 1 } ^ { l }$ , whereas latent random variables in lower layers are updated with different, more local information. However, the latent variable $z _ { t } ^ { l - 1 }$ may receive longer-range information from $z _ { t } ^ { l }$ . ",
473
+ "bbox": [
474
+ 174,
475
+ 587,
476
+ 825,
477
+ 675
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "The generative and inference models are jointly trained by optimizing a step-wise variational lower bound on the log-likelihood (Kingma $\\&$ Welling, 2013; Rezende et al., 2014). In the following sections we describe these components and build up the lower-bound for a single time-step $t$ . ",
484
+ "bbox": [
485
+ 174,
486
+ 681,
487
+ 825,
488
+ 724
489
+ ],
490
+ "page_idx": 3
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "3.1 GENERATIVE MODEL ",
495
+ "text_level": 1,
496
+ "bbox": [
497
+ 176,
498
+ 741,
499
+ 362,
500
+ 755
501
+ ],
502
+ "page_idx": 3
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "Each sequence step $x _ { t }$ is generated from a set of latent variables $z _ { t }$ , split into layers as follows: ",
507
+ "bbox": [
508
+ 171,
509
+ 767,
510
+ 794,
511
+ 782
512
+ ],
513
+ "page_idx": 3
514
+ },
515
+ {
516
+ "type": "equation",
517
+ "img_path": "images/487f6afda26af4a7f76fe6cf177c981f1515d2dd58f8e2495a136c4714786f5d.jpg",
518
+ "text": "$$\np _ { \\theta } \\big ( z _ { t } \\vert x _ { 1 : t - 1 } \\big ) = p _ { \\theta } \\big ( z _ { t } ^ { L } \\vert d _ { t - 1 } ^ { L } \\big ) \\prod _ { l = 1 } ^ { L - 1 } p _ { \\theta } \\big ( z _ { t } ^ { l } \\vert z _ { t } ^ { l + 1 } , d _ { t - 1 } ^ { l } \\big ) \\quad ,\n$$",
519
+ "text_format": "latex",
520
+ "bbox": [
521
+ 315,
522
+ 789,
523
+ 678,
524
+ 833
525
+ ],
526
+ "page_idx": 3
527
+ },
528
+ {
529
+ "type": "equation",
530
+ "img_path": "images/441a796df9d580291b7d78a24f71f16bbc714a1bcedbc404359f5563dcf9c735.jpg",
531
+ "text": "$$\np _ { \\theta } ( z _ { t } ^ { l } | z _ { t } ^ { l + 1 } , d _ { t - 1 } ^ { l } ) = \\mathcal { N } ( \\mu _ { t , p } ^ { l } , \\sigma _ { t , p } ^ { l } ) \\quad \\mathrm { a n d } \\quad [ \\mu _ { t , p } ^ { l } , \\sigma _ { t , p } ^ { l } ] = f _ { p } ^ { ( l ) } ( z _ { t } ^ { l + 1 } , d _ { t - 1 } ^ { l } ) \\quad .\n$$",
532
+ "text_format": "latex",
533
+ "bbox": [
534
+ 276,
535
+ 839,
536
+ 776,
537
+ 861
538
+ ],
539
+ "page_idx": 3
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "Here the prior is modeled by a Gaussian distribution with diagonal covariance, as is common in the VAE framework. The subscript $p$ denotes items of the generative distribution. For the inference distribution we use the subscript $q$ . The distributions are parameterized by a neural network $f _ { p } ^ { ( l ) }$ and conditioned on: (1) the $d _ { t - 1 } ^ { l }$ computed by the dilated convolutions from the previous time-step, and (2) a sample from the preceding level at the same time-step zl+1t . Please note that at inference time we draw samples from the approximate posterior distribution $z _ { t } ^ { l + 1 } \\sim q _ { \\phi } ( z _ { t } ^ { l + 1 } | \\cdot )$ . The generative model, on the other hand, uses the prior $z _ { t } ^ { l + 1 } \\sim p _ { \\theta } ( z _ { t } ^ { l + 1 } | \\cdot )$ . ",
544
+ "bbox": [
545
+ 173,
546
+ 863,
547
+ 825,
548
+ 924
549
+ ],
550
+ "page_idx": 3
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "",
555
+ "bbox": [
556
+ 173,
557
+ 102,
558
+ 825,
559
+ 151
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "We propose two variants of the observation model. In the non-sequential scenario, the observations are defined to be conditioned on only the last latent variable in the hierarchy, i.e., $p _ { \\theta } ( x _ { t } | z _ { t } ^ { 1 } )$ , following Sønderby et al. (2016); Gulrajani et al. (2016) and Rezende et al. (2014) our STCN variant uses the same observation model, allowing for an efficient optimization. However, latent units are likely to become inactive during training in this configuration (Burda et al., 2015; Bowman et al., 2015; Zhao et al., 2017) resulting in a loss of representational power. ",
566
+ "bbox": [
567
+ 173,
568
+ 156,
569
+ 825,
570
+ 241
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "The latent variables at different layers are conditioned on different contexts due to the inputs $d _ { t } ^ { l }$ . Hence, the latent variables are expected to capture complementary aspects of the temporal context. To propagate the information all the way to the final prediction and to ensure that gradients flow through all layers, we take inspiration from Huang et al. (2017) and directly condition the output probability on samples from all latent variables. We call this variant of our architecture STCN-dense. ",
577
+ "bbox": [
578
+ 174,
579
+ 247,
580
+ 825,
581
+ 318
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "The final predictions are then computed by the respective observation functions: ",
588
+ "bbox": [
589
+ 174,
590
+ 324,
591
+ 699,
592
+ 339
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "equation",
598
+ "img_path": "images/ffe041d904d311f63882192e6149185482df06268e26b6926bccae3fdbc1608b.jpg",
599
+ "text": "$$\np _ { \\theta } ( x _ { t } | z _ { t } ) = f ^ { ( o ) } ( z _ { t } ^ { 1 } ) \\quad \\mathrm { a n d } \\quad p _ { \\theta } ^ { d e n s e } ( x _ { t } | z _ { t } ) = f ^ { ( o ) } ( z _ { t } ^ { 1 } , z _ { t } ^ { 2 } \\dots z _ { t } ^ { L } ) \\quad ,\n$$",
600
+ "text_format": "latex",
601
+ "bbox": [
602
+ 274,
603
+ 342,
604
+ 722,
605
+ 361
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "where $f ^ { ( o ) }$ corresponds to the output layer constructed by stacking 1D convolutions or Wavenet blocks depending on the dataset. ",
612
+ "bbox": [
613
+ 174,
614
+ 366,
615
+ 823,
616
+ 395
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "3.2 INFERENCE MODEL ",
623
+ "text_level": 1,
624
+ "bbox": [
625
+ 174,
626
+ 410,
627
+ 351,
628
+ 425
629
+ ],
630
+ "page_idx": 4
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "In the original VAE framework the inference model is defined as a bottom-up process, where the latent variables are conditioned on the stochastic layer below. Furthermore, the parameterization of the prior and approximate posterior distributions are computed separately (Burda et al., 2015; Rezende et al., 2014). In contrast, Sønderby et al. (2016) propose a top-down dependency structure shared across the generative and inference models. From a probabilistic point of view, the approximate Gaussian likelihood, computed bottom-up by the inference model, is combined with the Gaussian prior, computed top-down from the generative model. We follow a similar procedure in computing the approximate posterior. ",
635
+ "bbox": [
636
+ 173,
637
+ 435,
638
+ 825,
639
+ 549
640
+ ],
641
+ "page_idx": 4
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "First, the parameters of the approximate likelihood are computed for each stochastic layer $l$ : ",
646
+ "bbox": [
647
+ 173,
648
+ 555,
649
+ 774,
650
+ 570
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "equation",
656
+ "img_path": "images/317596939f6f4a16eb956bf4d9352c190fd9d3d7ee607591e59396b3e2f854eb.jpg",
657
+ "text": "$$\n[ \\hat { \\mu } _ { t , q } ^ { l } , \\hat { \\sigma } _ { t , q } ^ { l } ] = f _ { q } ^ { ( l ) } ( z _ { t } ^ { l + 1 } , d _ { t } ^ { l } ) \\quad ,\n$$",
658
+ "text_format": "latex",
659
+ "bbox": [
660
+ 397,
661
+ 571,
662
+ 599,
663
+ 593
664
+ ],
665
+ "page_idx": 4
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "followed by the downward pass, recursively computing the prior and approximate posterior by precision-weighted addition: ",
670
+ "bbox": [
671
+ 173,
672
+ 594,
673
+ 823,
674
+ 622
675
+ ],
676
+ "page_idx": 4
677
+ },
678
+ {
679
+ "type": "equation",
680
+ "img_path": "images/62f34dfd2796aca0afd912404c4bba5d8a862f5e61fd8af3e231a3cbc3836ca5.jpg",
681
+ "text": "$$\n\\begin{array} { l } { { \\sigma _ { t , q } ^ { l } = \\frac { 1 } { ( \\hat { \\sigma } _ { t , q } ^ { l } ) ^ { - 2 } + ( \\sigma _ { t , p } ^ { l } ) ^ { - 2 } } \\quad , } } \\\\ { { \\mu _ { t , q } ^ { l } = \\sigma _ { t , q } ^ { l } ( \\hat { \\mu } _ { t , q } ^ { l } ( \\hat { \\sigma } _ { t , q } ^ { l } ) ^ { - 2 } + \\mu _ { t , p } ^ { l } ( \\sigma _ { t , p } ^ { l } ) ^ { - 2 } ) \\quad . } } \\end{array}\n$$",
682
+ "text_format": "latex",
683
+ "bbox": [
684
+ 354,
685
+ 625,
686
+ 647,
687
+ 685
688
+ ],
689
+ "page_idx": 4
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "Finally, the approximate posterior has the same decomposition as the prior (see Eq. (7)): ",
694
+ "bbox": [
695
+ 168,
696
+ 690,
697
+ 751,
698
+ 707
699
+ ],
700
+ "page_idx": 4
701
+ },
702
+ {
703
+ "type": "equation",
704
+ "img_path": "images/e9e3190983c5176073ff4fcffd2953fd7109d99500340eee6334a424b74db02d.jpg",
705
+ "text": "$$\nq _ { \\phi } ( z _ { t } | x _ { 1 : t } ) = q _ { \\phi } ( z _ { t } ^ { L } | d _ { t } ^ { L } ) \\prod _ { l = 1 } ^ { L - 1 } q _ { \\phi } ( z _ { t } ^ { l } | z _ { t } ^ { l + 1 } , d _ { t } ^ { l } ) \\quad ,\n$$",
706
+ "text_format": "latex",
707
+ "bbox": [
708
+ 341,
709
+ 708,
710
+ 655,
711
+ 752
712
+ ],
713
+ "page_idx": 4
714
+ },
715
+ {
716
+ "type": "equation",
717
+ "img_path": "images/ec3453744c3eab5b6b47a841a2827b4ab06d39be19cd49fd3fe2fc8bea02423d.jpg",
718
+ "text": "$$\n\\begin{array} { r } { q _ { \\phi } ( z _ { t } ^ { l } | z _ { t } ^ { l + 1 } , d _ { t } ^ { l } ) = \\mathcal { N } ( \\mu _ { t , q } ^ { l } , \\sigma _ { t , q } ^ { l } ) \\quad . } \\end{array}\n$$",
719
+ "text_format": "latex",
720
+ "bbox": [
721
+ 383,
722
+ 753,
723
+ 612,
724
+ 773
725
+ ],
726
+ "page_idx": 4
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "Note that the inference and generative network share the parameters of dilated convolutions $\\mathrm { C o n v } ^ { ( l ) }$ ",
731
+ "bbox": [
732
+ 176,
733
+ 776,
734
+ 821,
735
+ 792
736
+ ],
737
+ "page_idx": 4
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "3.3 LEARNING ",
742
+ "text_level": 1,
743
+ "bbox": [
744
+ 174,
745
+ 808,
746
+ 290,
747
+ 821
748
+ ],
749
+ "page_idx": 4
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "The variational lower-bound on the log-likelihood at time-step $t$ can be defined as follows: ",
754
+ "bbox": [
755
+ 171,
756
+ 833,
757
+ 766,
758
+ 848
759
+ ],
760
+ "page_idx": 4
761
+ },
762
+ {
763
+ "type": "equation",
764
+ "img_path": "images/b54f672128ae20d90ff8ea21cf67390facb2889559eed4cd7127a91806eafb34.jpg",
765
+ "text": "$$\n\\begin{array} { r l } & { \\log p ( x _ { t } ) \\geq \\mathbb { E } _ { q _ { \\phi } ( z _ { t } | x _ { t } ) } [ \\log p \\theta ( x _ { t } | z _ { t } ) ] - D _ { K L } ( q _ { \\phi } ( z _ { t } | x _ { 1 : t } ) | | p \\theta ( z _ { t } | x _ { 1 : t - 1 } ) ) } \\\\ & { \\qquad = \\mathbb { E } _ { q _ { \\phi } ( z _ { t } ^ { 1 } \\dots z _ { t } ^ { L } | x _ { t } ) } [ \\log p \\theta ( x _ { t } | z _ { t } ^ { 1 } \\dots z _ { t } ^ { L } ) ] - D _ { K L } ( q _ { \\phi } ( z _ { t } ^ { 1 } \\dots z _ { t } ^ { L } | x _ { 1 : t } ) | | p \\theta ( z _ { t } ^ { 1 } \\dots z _ { t } ^ { L } | x _ { 1 : t - 1 } ) ) } \\\\ & { \\mathcal { C } _ { t } ( \\theta , \\phi ; x _ { t } ) = \\mathcal { L } _ { t } ^ { R e c o n } + \\mathcal { L } _ { t } ^ { K L } . } \\end{array}\n$$",
766
+ "text_format": "latex",
767
+ "bbox": [
768
+ 181,
769
+ 849,
770
+ 834,
771
+ 912
772
+ ],
773
+ "page_idx": 4
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "Using the decompositions from Eq. (7) and (12), the Kullback-Leibler divergence term becomes: ",
778
+ "bbox": [
779
+ 169,
780
+ 102,
781
+ 807,
782
+ 119
783
+ ],
784
+ "page_idx": 5
785
+ },
786
+ {
787
+ "type": "equation",
788
+ "img_path": "images/aa4dc9b41b4e7d261db9666c74056860681dbaa1cc794eda1f57b83197404870.jpg",
789
+ "text": "$$\n\\begin{array} { r l } { \\displaystyle \\mathcal { L } _ { t } ^ { K L } = - D _ { K L } \\big ( q _ { \\phi } ( \\boldsymbol { z } _ { t } ^ { L } | \\boldsymbol { d } _ { t } ^ { L } ) | | p _ { \\theta } \\big ( \\boldsymbol { z } _ { t } ^ { L } | \\boldsymbol { d } _ { t - 1 } ^ { L } \\big ) \\big ) } & { } \\\\ { \\displaystyle - \\sum _ { l = 1 } ^ { L - 1 } \\mathbb { E } _ { q _ { \\phi } ( \\boldsymbol { z } _ { t } ^ { l + 1 } | \\cdot ) } \\big [ D _ { K L } \\big ( q _ { \\phi } \\big ( \\boldsymbol { z } _ { t } ^ { l } | \\boldsymbol { z } _ { t } ^ { l + 1 } , \\boldsymbol { d } _ { t } ^ { l } \\big ) | | p _ { \\theta } \\big ( \\boldsymbol { z } _ { t } ^ { l } | \\boldsymbol { z } _ { t } ^ { l + 1 } , \\boldsymbol { d } _ { t - 1 } ^ { l } \\big ) \\big ) \\big ] } & { . } \\end{array}\n$$",
790
+ "text_format": "latex",
791
+ "bbox": [
792
+ 264,
793
+ 122,
794
+ 736,
795
+ 189
796
+ ],
797
+ "page_idx": 5
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "The KL term is the same for the STCN and STCN-dense variants. The reconstruction term $\\mathcal { L } _ { t } ^ { R e c o n }$ , however, is different. In STCN we only use samples from the lowest layer of the hierarchy, whereas in STCN-dense we use all latent samples in the observation model: ",
802
+ "bbox": [
803
+ 176,
804
+ 200,
805
+ 825,
806
+ 243
807
+ ],
808
+ "page_idx": 5
809
+ },
810
+ {
811
+ "type": "equation",
812
+ "img_path": "images/525d02d7e73e8bc457353e5d9744c9483be9878f8b3cdbd1066b710f92764f84.jpg",
813
+ "text": "$$\n\\begin{array} { r l } { \\mathcal { L } _ { t } ^ { R e c o n } = \\mathbb { E } _ { q _ { \\phi } ( z _ { t } ^ { 1 } \\ldots z _ { t } ^ { L } | x _ { t } ) } [ \\log p _ { \\theta } ( x _ { t } | z _ { t } ^ { 1 } ) ] } & { { } , } \\\\ { \\mathcal { L } _ { t } ^ { R e c o n - d e n s e } = \\mathbb { E } _ { q _ { \\phi } ( z _ { t } ^ { 1 } \\ldots z _ { t } ^ { L } | x _ { t } ) } [ \\log p _ { \\theta } ( x _ { t } | z _ { t } ^ { 1 } \\ldots z _ { t } ^ { L } ] } & { { } . } \\end{array}\n$$",
814
+ "text_format": "latex",
815
+ "bbox": [
816
+ 316,
817
+ 250,
818
+ 681,
819
+ 295
820
+ ],
821
+ "page_idx": 5
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "In the dense variant, samples drawn from the latent variables $z _ { t } ^ { l }$ are carried over the dense connections. Similar to Maaløe et al. (2016), the expectation over $z _ { t } ^ { l }$ variables are computed by Monte Carlo sampling using the reparameterization trick (Kingma & Welling, 2013; Rezende et al., 2014). ",
826
+ "bbox": [
827
+ 174,
828
+ 305,
829
+ 825,
830
+ 349
831
+ ],
832
+ "page_idx": 5
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "Please note that the computation of $\\mathcal { L } _ { t } ^ { R e c o n - d e n s e }$ does not introduce any additional computational cost. In STCN, all latent variables have to be visited in terms of ancestral sampling in order to draw the latent sample $z _ { t } ^ { 1 }$ for the observation $x _ { t }$ . Similarly in STCN-dense, the same intermediate samples $z _ { t } ^ { l }$ are used in the prediction of $x _ { t }$ . ",
837
+ "bbox": [
838
+ 174,
839
+ 354,
840
+ 825,
841
+ 412
842
+ ],
843
+ "page_idx": 5
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "One alternative option to use the latent samples could be to sum individual samples before feeding them into the observation model, i.e., $s u m ( \\dot { [ } z _ { t } ^ { 1 } \\dots z _ { t } ^ { L } ] )$ , (Maaløe et al., 2016). We empirically found that this does not work well in STCN-dense. Instead, we concatenate all samples $\\left[ z _ { t } ^ { 1 } \\circ \\cdots \\circ z _ { t } ^ { L } \\right]$ analogously to DenseNet (Huang et al., 2017) and (Kaiser et al., 2018). ",
848
+ "bbox": [
849
+ 174,
850
+ 420,
851
+ 825,
852
+ 477
853
+ ],
854
+ "page_idx": 5
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "4 EXPERIMENTS ",
859
+ "text_level": 1,
860
+ "bbox": [
861
+ 176,
862
+ 496,
863
+ 326,
864
+ 512
865
+ ],
866
+ "page_idx": 5
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "We evaluate the proposed variants STCN and STCN-dense both quantitatively and qualitatively on modeling of digital handwritten text and speech. We compare with vanilla TCNs, RNNs, VRNNs and state-of-the art models on the corresponding tasks. ",
871
+ "bbox": [
872
+ 176,
873
+ 526,
874
+ 823,
875
+ 569
876
+ ],
877
+ "page_idx": 5
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "In our experiments we use two variants of the Wavenet model: (1) the original model proposed in (Van Den Oord et al., 2016) and (2) a variant that we augment with skip connections analogously to STCN-dense. This additional baseline evaluates the benefit of learning multi-scale representations in the deterministic setting. Details of the experimental setup are provided in the Appendix. Our code is available at https://ait.ethz.ch/projects/2019/stcn/. ",
882
+ "bbox": [
883
+ 173,
884
+ 575,
885
+ 825,
886
+ 640
887
+ ],
888
+ "page_idx": 5
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "Handwritten text: The IAM-OnDB and Deepwriting datasets consist of digital handwriting sequences where each time-step contains real-valued $( x , y )$ pen coordinates and a binary pen-up event. The IAM-OnDB data is split and pre-processed as done in (Chung et al., 2015). Aksan et al. (2018) extend this dataset with additional samples and better pre-processing. ",
893
+ "bbox": [
894
+ 173,
895
+ 646,
896
+ 825,
897
+ 698
898
+ ],
899
+ "page_idx": 5
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Table 1 reveals that again both our variants outperform the vanilla variants of TCNs and RNNs on IAM-OnDB. While the stochastic VRNN and SWaveNet are competitive wrt to the STCN variant, both are outperformed by the STCN-dense version. The same relative ordering is maintained on the Deepwriting dataset, indicating that the proposed architecture is robust across datasets. ",
904
+ "bbox": [
905
+ 171,
906
+ 704,
907
+ 823,
908
+ 731
909
+ ],
910
+ "page_idx": 5
911
+ },
912
+ {
913
+ "type": "image",
914
+ "img_path": "images/b93a1887df7d73e452966757899db96ab3e51bdbb1aecfabae9ef2b6ba19969a.jpg",
915
+ "image_caption": [
916
+ "Figure 3: (a) Handwriting samples from IAM-OnDB dataset. Generated samples from (b) VRNN, (c) SWaveNet and (d) our model STCN-dense. Each line corresponds to one sample. "
917
+ ],
918
+ "image_footnote": [],
919
+ "bbox": [
920
+ 178,
921
+ 753,
922
+ 830,
923
+ 883
924
+ ],
925
+ "page_idx": 5
926
+ },
927
+ {
928
+ "type": "table",
929
+ "img_path": "images/b56005ceb913a7fc53de1f2f4d68aae7e1e60ca754f37c96a5d169f77a3d8921.jpg",
930
+ "table_caption": [
931
+ "Table 1: Average log-likelihood per sequence on TIMIT, Blizzard, IAM-OnDB and Deepwriting datasets. (Normal) and (GMM) stand for unimodal Gaussian or multi-modal Gaussian Mixture Model (GMM) as the observation model (Graves, 2013; Chung et al., 2015). Asterisks ∗ indicate that we used our re-implementation only for the Deepwriting dataset. "
932
+ ],
933
+ "table_footnote": [],
934
+ "table_body": "<table><tr><td>Models</td><td>TIMIT</td><td>Blizzard</td><td>IAM-OnDB</td><td>Deepwriting</td></tr><tr><td>Wavenet (GMM)</td><td>30188</td><td>8190</td><td>1381</td><td>612</td></tr><tr><td>Wavenet-dense (GMM)</td><td>30636</td><td>8212</td><td>1380</td><td>642</td></tr><tr><td>RNN (GMM) Chung et al. (2015)</td><td>26643</td><td>7413</td><td>1358</td><td>528 *</td></tr><tr><td>VRNN (Normal) Chung et al.(2015)</td><td>~30235</td><td>~9516</td><td>≈1354</td><td>≥ 495 *</td></tr><tr><td>VRNN (GMM) Chung et al. (2015)</td><td>≈ 29604</td><td>~9392</td><td>≈1384</td><td>≥ 673 *</td></tr><tr><td>SRNN (Normal) Fraccaro et al. (2016)</td><td>≥ 60550</td><td>≥11991</td><td>n/a</td><td>n/a</td></tr><tr><td>Z-forcing (Normal) Goyal etal. (2017)</td><td>≥ 70469</td><td>≥ 15430</td><td>n/a</td><td>n/a</td></tr><tr><td>Var.Bi-LSTM (Normal) Shabanian et al.(2017)</td><td>≥ 73976</td><td>≥ 17319</td><td>n/a</td><td>n/a</td></tr><tr><td>SWaveNet (Normal) Lai etal. (2018)</td><td>≥ 72463</td><td>≥ 15708</td><td>≥1301</td><td>n/a</td></tr><tr><td>STCN (GMM)</td><td>≥ 69195</td><td>M 15800</td><td>≥ 1338</td><td>≥ 605</td></tr><tr><td>STCN-dense (GMM)</td><td>≥ 71386</td><td>≥ 16288</td><td>≥ 1796</td><td>≥ 797</td></tr><tr><td>STCN-dense-large (GMM)</td><td>≥ 77438</td><td>≥ 17670</td><td>n/a</td><td>n/a</td></tr></table>",
935
+ "bbox": [
936
+ 181,
937
+ 162,
938
+ 816,
939
+ 366
940
+ ],
941
+ "page_idx": 6
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "",
946
+ "bbox": [
947
+ 176,
948
+ 397,
949
+ 821,
950
+ 424
951
+ ],
952
+ "page_idx": 6
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "Fig. 3 compares generated handwriting samples. While all models produce consistent style, our model generates more natural looking samples. Note that the spacing between words is clearly visible and most of the letters are distinguishable. ",
957
+ "bbox": [
958
+ 174,
959
+ 430,
960
+ 821,
961
+ 468
962
+ ],
963
+ "page_idx": 6
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "Speech modeling: TIMIT and Blizzard are standard benchmark dataset in speech modeling. The models are trained and tested on 200 dimensional real-valued amplitudes. We apply the same pre-processing as Chung et al. (2015). For this task we introduce STCN-dense-large, with increased model capacity. Here we use 512 instead of 256 convolution filters. Note that the total number of model parameters is comparable to SWaveNet and other SOA models. ",
968
+ "bbox": [
969
+ 173,
970
+ 476,
971
+ 825,
972
+ 539
973
+ ],
974
+ "page_idx": 6
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "On TIMIT, STCN-dense (Table 1) significantly outperforms the vanilla TCN and RNN, and stochastic models. On the Blizzard dataset, our model is marginally better than the Variational Bi-LSTM. Note that the inference models of SRNN (Fraccaro et al., 2016), Z-forcing (Goyal et al., 2017), and Variational Bi-LSTM (Shabanian et al., 2017) receive future information by using backward RNN cells. Similarly, SWaveNet (Lai et al., 2018) applies causal convolutions in the backward direction. Hence, the latent variable can be expected to model future dynamics of the sequence. In contrast, our models have only access to information up to the current time-step. These results indicate that the STCN variants perform very well on the speech modeling task. ",
979
+ "bbox": [
980
+ 173,
981
+ 546,
982
+ 825,
983
+ 636
984
+ ],
985
+ "page_idx": 6
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Latent Space Analysis: Zhao et al. (2017) observe that in hierarchical latent variable models the upper layers have a tendency to become inactive, indicated by a low KL loss (Sønderby et al., 2016; Dieng et al., 2018). Table 2 shows the KL loss per latent variable and the corresponding log-likelihood measured by ELBO in our models. Across the datasets it can be observed that our models make use of many of the latent variables which may explain the strong performance across tasks in terms of log-likelihoods. Note that STCN uses a standard hierarchical structure. However, individual latent variables have different information context due to the corresponding TCN block’s receptive field. This observation suggests that the proposed combination of TCNs and stochastic variables is indeed effective. Furthermore, in STCN we see a similar utilization pattern of the $z$ variables across tasks, whereas STCN-dense may have more flexibility in modeling the temporal dependencies within the data due to its dense connections to the output layer. ",
990
+ "bbox": [
991
+ 173,
992
+ 641,
993
+ 825,
994
+ 768
995
+ ],
996
+ "page_idx": 6
997
+ },
998
+ {
999
+ "type": "table",
1000
+ "img_path": "images/10e019d8acd8a5eca191982b7f4bc997a51c1fc27080ad1fa7e2d7d8fb2c705d.jpg",
1001
+ "table_caption": [
1002
+ "Table 2: KL-loss per latent variable computed over the entire test split. KL5 corresponds to the KL-loss of the top-most latent variable. "
1003
+ ],
1004
+ "table_footnote": [],
1005
+ "table_body": "<table><tr><td>Dataset (Model)</td><td>ELBO</td><td>KL</td><td>KL1</td><td>KL2</td><td>KL3</td><td>KL4</td><td>KL5</td></tr><tr><td>IAM-OnDB (sTCN-dense)</td><td>≥ 1796.3</td><td>1653.9</td><td>17.9</td><td>1287.4</td><td>305.3</td><td>41.0</td><td>2.4</td></tr><tr><td>IAM-OnDB (sTCN)</td><td>≥ 1339.2</td><td>964.2</td><td>846.0</td><td>105.2</td><td>12.9</td><td>0.1</td><td>0.0</td></tr><tr><td>TIMIT (sTCN-dense)</td><td>≥ 71385.9</td><td>22297.5</td><td>16113.0</td><td>5641.6</td><td>529.0</td><td>8.3</td><td>5.7</td></tr><tr><td>TIMIT (STCN)</td><td>≥ 69194.9</td><td>23118.3</td><td>22275.5</td><td>487.2</td><td>355.5</td><td>0.0</td><td>0.0</td></tr></table>",
1006
+ "bbox": [
1007
+ 184,
1008
+ 834,
1009
+ 810,
1010
+ 921
1011
+ ],
1012
+ "page_idx": 6
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Replacing TCN with RNN: To better understand potential symergies between dilated CNNs and the proposed latent variable hierarchy, we perform an ablation study, isolating the effect of TCNs and the latent space. To this end the deterministic TCN blocks are replaced with LSTM cells by keeping the latent structure intact. We dub this condition LadderRNN. We use the TIMIT and IAM-OnDB datasets for evaluation. Table 3 summarizes performance measured by the ELBO. ",
1017
+ "bbox": [
1018
+ 174,
1019
+ 104,
1020
+ 823,
1021
+ 167
1022
+ ],
1023
+ "page_idx": 7
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "The most direct translation of the the STCN architecture into an RNN counterpart has 25 stacked LSTM cells with 256 units each. Similar to STCN, we use 5 stochastic layers (see Appendix 7.1). Note that stacking this many LSTM cells is unusual and resulted in instabilities during training. Hence, the performance is similar to vanilla RNNs. The second LadderRNN configuration uses 5 stacked LSTM cells with 512 units and a one-to-one mapping with the stochastic layers. On the TIMIT dataset, all LadderRNN configurations show a significant improvement. We also observe a pattern of improvement with densely connected latent variables. ",
1028
+ "bbox": [
1029
+ 174,
1030
+ 174,
1031
+ 825,
1032
+ 251
1033
+ ],
1034
+ "page_idx": 7
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "This experiments shows that the proposed modular latent variable design does allow for the usage of different building blocks. Even when attached to LSTM cells, it boosts the log-likelihood performance (see 5x512- LadderRNN), in particular when used with dense connections. However, the empirical results suggest that the densely connected latent hierarchy interacts particularly well with dilated CNNs. We suggest this is due to the hierarchical nature on both sides of the architecture. On both datasets STCN models achieved the best performance and significantly improve with dense connections. This supports our contribution of a latent variable hierarchy, which models different aspects of information from the input time-series. ",
1039
+ "bbox": [
1040
+ 173,
1041
+ 258,
1042
+ 825,
1043
+ 347
1044
+ ],
1045
+ "page_idx": 7
1046
+ },
1047
+ {
1048
+ "type": "table",
1049
+ "img_path": "images/092fb0cfa50de0257e738c75953f96b0e886e905a34ddf72b3e3879b97a980c9.jpg",
1050
+ "table_caption": [
1051
+ "Table 3: ELBO of LadderRNN and STCN models using the same latent space configuration. The prefix of a model entries denote the number of RNN or TCN layers and unit size per layer. Models have similar number of trainable parameters. "
1052
+ ],
1053
+ "table_footnote": [],
1054
+ "table_body": "<table><tr><td>Models</td><td>TIMIT</td><td>IAM-OnDB</td></tr><tr><td>25x256-LadderRNN (Normal)</td><td>≥ 28207</td><td>≥ 1305</td></tr><tr><td>25x256-LadderRNN-dense (Normal)</td><td>≥ 27413</td><td>&gt;I &gt;I 1278</td></tr><tr><td>25x256-LadderRNN (GMM)</td><td>≥ 24839</td><td>1381</td></tr><tr><td>25x256-LadderRNN-dense (GMM)</td><td>≥ 26240</td><td>≥ 1377</td></tr><tr><td>5x512-LadderRNN (Normal)</td><td>≥ 49770</td><td>≥ 1299</td></tr><tr><td>5x512-LadderRNN-dense (Normal)</td><td>M 48612</td><td>1374</td></tr><tr><td>5x512-LadderRNN (GMM)</td><td>M 47179</td><td>&gt;I &gt;I 1359</td></tr><tr><td>5x512-LadderRNN-dense (GMM)</td><td>≥ 50113</td><td>≥ 1581</td></tr><tr><td>25x256-STCN (Normal)</td><td>≥ 64913</td><td>≥ 1327</td></tr><tr><td>25x256-STCN-dense (Normal)</td><td>M 70294</td><td>N 1729</td></tr><tr><td>25x256-STCN (GMM)</td><td>M :69195</td><td>≥ 1339</td></tr><tr><td>25x256-STCN-dense (GMM)</td><td>M 71386</td><td>≥ 1796</td></tr></table>",
1055
+ "bbox": [
1056
+ 274,
1057
+ 410,
1058
+ 717,
1059
+ 613
1060
+ ],
1061
+ "page_idx": 7
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "5 RELATED WORK ",
1066
+ "text_level": 1,
1067
+ "bbox": [
1068
+ 176,
1069
+ 637,
1070
+ 344,
1071
+ 654
1072
+ ],
1073
+ "page_idx": 7
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "Rezende et al. (2014) propose Deep Latent Gaussian Models (DLGM) and Sønderby et al. (2016) propose the Ladder Variational Autoencoder (LVAE). In both models the latent variables are hierarchically defined and conditioned on the preceding stochastic layer. LVAEs improve upon DLGMs via implementation of a top-down hierarchy both in the generative and inference model. The approximate posterior is computed via a precisionweighted update of the approximate likelihood (i.e., the inference model) and prior (i.e., the generative model). Similarly, the PixelVAE (Gulrajani et al., 2016) incorporates a hierarchical latent space decomposition and uses an autoregressive decoder. Zhao et al. (2017) show under mild conditions that straightforward stacking of latent variables (as is done e.g. in LVAE and PixelVAE) can be ineffective, because the latent variables that are not directly conditioned on the observation variable become inactive. ",
1078
+ "bbox": [
1079
+ 174,
1080
+ 667,
1081
+ 825,
1082
+ 782
1083
+ ],
1084
+ "page_idx": 7
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Due to the nature of the sequential problem domain, our approach differs in the crucial aspects that STCNs use dynamic, i.e., conditional, priors (Chung et al., 2015) at every level. Moreover, the hierarchy is not only implicitly defined by the network architecture but also explicitly defined by the information content, i.e., receptive field size. Dieng et al. (2018) both theoretically and empirically show that using skip connections from the latent variable to every layer of the decoder increases mutual information between the latent and observation variables. Similar to Dieng et al. (2018) in STCN-dense, we introduce skip connections from all latent variables to the output. In STCN the model is expected to encode and propagate the information through its hierarchy. ",
1089
+ "bbox": [
1090
+ 174,
1091
+ 790,
1092
+ 825,
1093
+ 878
1094
+ ],
1095
+ "page_idx": 7
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Yang et al. (2017) suggest using autoregressive TCN decoders to remedy the posterior collapse problem observed in language modeling with LSTM decoders (Bowman et al., 2015). van den Oord et al. (2017) and Dieleman et al. (2018) use TCN decoders conditioned on discrete latent variables to model audio signals. ",
1100
+ "bbox": [
1101
+ 176,
1102
+ 885,
1103
+ 823,
1104
+ 922
1105
+ ],
1106
+ "page_idx": 7
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "Stochastic RNN architectures mostly vary in the way they employ the latent variable and parametrize the approximate posterior for variational inference. Chung et al. (2015) and Bayer & Osendorfer (2014) use the latent random variable to capture high-level information causing the variability observed in sequential data. Particularly Chung et al. (2015) shows that using a conditional prior rather than a standard Gaussian distribution is very effective in sequence modeling. In (Fraccaro et al., 2016; Goyal et al., 2017; Shabanian et al., 2017), the inference model, i.e., the approximate posterior, receives both the past and future summaries of the sequence from the hidden states of forward and backward RNN cells. The KL-divergence term in the objective enforces the model to learn predictive latent variables in order to capture the future states of the sequence. ",
1111
+ "bbox": [
1112
+ 174,
1113
+ 104,
1114
+ 825,
1115
+ 205
1116
+ ],
1117
+ "page_idx": 8
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "Lai et al. (2018)’s SWaveNet is most closely related to ours. SWaveNet also introduces latent variables into TCNs. However, in SWaveNet the deterministic and stochastic units are coupled which may prevent stacking of larger numbers of TCN blocks. Since the number of stacked dilated convolutions determines the receptive field size, this directly correlates with the model capacity. For example, the performance of SWaveNet on the IAM-OnDB dataset degrades after stacking more than 3 stochastic layers (Lai et al., 2018), limiting the model to a small receptive field. In contrast, we aim to preserve the flexibility of stacking dilated convolutions in the base TCN. In STCNs, the deterministic TCN units do not have any dependency on the stochastic variables (see Figure 1) and the ratio of stochastic to deterministic units can be adjusted, depending on the task. ",
1122
+ "bbox": [
1123
+ 174,
1124
+ 213,
1125
+ 825,
1126
+ 314
1127
+ ],
1128
+ "page_idx": 8
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "6 CONCLUSION ",
1133
+ "text_level": 1,
1134
+ "bbox": [
1135
+ 176,
1136
+ 333,
1137
+ 318,
1138
+ 349
1139
+ ],
1140
+ "page_idx": 8
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "In this paper we proposed STCNs, a novel auto-regressive model, combining the computational benefits of convolutional architectures and expressiveness of hierarchical stochastic latent spaces. We have shown the effectivness of the approach across several sequence modelling tasks and datasets. The proposed models are trained via optimization of the ELBO objective. Tighter lower bounds such as IWAE (Burda et al., 2015) or FIVO (Maddison et al., 2017) may further improve modeling performance. We leave this for future work. ",
1145
+ "bbox": [
1146
+ 174,
1147
+ 364,
1148
+ 825,
1149
+ 428
1150
+ ],
1151
+ "page_idx": 8
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "ACKNOWLEDGEMENTS ",
1156
+ "text_level": 1,
1157
+ "bbox": [
1158
+ 176,
1159
+ 448,
1160
+ 366,
1161
+ 463
1162
+ ],
1163
+ "page_idx": 8
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "This work was supported in parts by the ERC grant OPTINT (StG-2016-717054). We gratefully acknowledge the support of NVIDIA Corporation with the donation of the Titan Xp GPU used for this research. ",
1168
+ "bbox": [
1169
+ 173,
1170
+ 477,
1171
+ 823,
1172
+ 503
1173
+ ],
1174
+ "page_idx": 8
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "REFERENCES \nMartin Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, Manjunath Kudlur, Josh Levenberg, Rajat Monga, Sherry Moore, Derek G. Murray, Benoit Steiner, Paul Tucker, Vijay Vasudevan, Pete Warden, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. Tensorflow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), pp. 265–283, 2016. URL https://www.usenix.org/system/files/conference/osdi16/osdi16-abadi.pdf. \nEmre Aksan, Fabrizio Pece, and Otmar Hilliges. DeepWriting: Making Digital Ink Editable via Deep Generative Modeling. In SIGCHI Conference on Human Factors in Computing Systems, CHI ’18, New York, NY, USA, 2018. ACM. \nShaojie Bai, J Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271, 2018. \nJustin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014. \nSamuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. arXiv preprint arXiv:1511.06349, 2015. \nYuri Burda, Roger Grosse, and Ruslan Salakhutdinov. Importance weighted autoencoders. arXiv preprint arXiv:1509.00519, 2015. \nKyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger ¨ Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014. \nJunyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pp. 2980–2988, 2015. \nYann N Dauphin, Angela Fan, Michael Auli, and David Grangier. Language modeling with gated convolutional networks. arXiv preprint arXiv:1612.08083, 2016. \nSander Dieleman, Aaron van den Oord, and Karen Simonyan. The challenge of realistic music generation: ¨ modelling raw audio at scale. arXiv preprint arXiv:1806.10474, 2018. \nAdji B Dieng, Yoon Kim, Alexander M Rush, and David M Blei. Avoiding latent variable collapse with generative skip models. arXiv preprint arXiv:1807.04863, 2018. \nOtto Fabius and Joost R van Amersfoort. Variational recurrent auto-encoders. arXiv preprint arXiv:1412.6581, 2014. \nMarco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Advances in neural information processing systems, pp. 2199–2207, 2016. \nJonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122, 2017. \nAnirudh Goyal ALIAS PARTH Goyal, Alessandro Sordoni, Marc-Alexandre Cotˆ e, Nan Ke, and Yoshua Ben- ´ gio. Z-forcing: Training stochastic recurrent networks. In Advances in Neural Information Processing Systems, pp. 6713–6723, 2017. \nAlex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. \nIshaan Gulrajani, Kundan Kumar, Faruk Ahmed, Adrien Ali Taiga, Francesco Visin, David Vazquez, and Aaron Courville. Pixelvae: A latent variable model for natural images. arXiv preprint arXiv:1611.05013, 2016. \nSepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8):1735–1780, 1997. \nGao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, volume 1, pp. 3, 2017. \nŁukasz Kaiser, Aurko Roy, Ashish Vaswani, Niki Pamar, Samy Bengio, Jakob Uszkoreit, and Noam Shazeer. Fast decoding in sequence models using discrete latent variables. arXiv preprint arXiv:1803.03382, 2018. \nDiederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. \nGuokun Lai, Bohan Li, Guoqing Zheng, and Yiming Yang. Stochastic wavenet: A generative latent variable model for sequential data, 2018. \nLars Maaløe, Casper Kaae Sønderby, Søren Kaae Sønderby, and Ole Winther. Auxiliary deep generative models. arXiv preprint arXiv:1602.05473, 2016. \nChris J Maddison, John Lawson, George Tucker, Nicolas Heess, Mohammad Norouzi, Andriy Mnih, Arnaud Doucet, and Yee Teh. Filtering variational objectives. In Advances in Neural Information Processing Systems, pp. 6573–6583, 2017. \nDanilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. \nSamira Shabanian, Devansh Arpit, Adam Trischler, and Yoshua Bengio. Variational bi-lstms. arXiv preprint arXiv:1711.05717, 2017. \nCasper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. Ladder variational autoencoders. In Advances in neural information processing systems, pp. 3738–3746, 2016. \nAaron Van Den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalch- ¨ brenner, Andrew W Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. In SSW, pp. 125, 2016. \nAaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, Oriol Vinyals, Alex Graves, et al. Conditional image ¨ generation with pixelcnn decoders. In Advances in Neural Information Processing Systems, pp. 4790–4798, 2016. \nAaron van den Oord, Oriol Vinyals, et al. Neural discrete representation learning. In Advances in Neural Information Processing Systems, pp. 6306–6315, 2017. \nZichao Yang, Zhiting Hu, Ruslan Salakhutdinov, and Taylor Berg-Kirkpatrick. Improved variational autoencoders for text modeling using dilated convolutions. arXiv preprint arXiv:1702.08139, 2017. \nFisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. arXiv preprint arXiv:1511.07122, 2015. \nShengjia Zhao, Jiaming Song, and Stefano Ermon. Learning hierarchical features from generative models. arXiv preprint arXiv:1702.08396, 2017. ",
1179
+ "bbox": [
1180
+ 171,
1181
+ 71,
1182
+ 826,
1183
+ 925
1184
+ ],
1185
+ "page_idx": 9
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "",
1190
+ "bbox": [
1191
+ 171,
1192
+ 98,
1193
+ 826,
1194
+ 560
1195
+ ],
1196
+ "page_idx": 10
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "7 APPENDIX ",
1201
+ "text_level": 1,
1202
+ "bbox": [
1203
+ 174,
1204
+ 102,
1205
+ 294,
1206
+ 117
1207
+ ],
1208
+ "page_idx": 11
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "7.1 NETWORK DETAILS ",
1213
+ "text_level": 1,
1214
+ "bbox": [
1215
+ 176,
1216
+ 135,
1217
+ 352,
1218
+ 148
1219
+ ],
1220
+ "page_idx": 11
1221
+ },
1222
+ {
1223
+ "type": "image",
1224
+ "img_path": "images/19aa4d2b81f05aacc2011ed44ab2ccd4481cbc37a564cfc54e2d0bf8b1253e60.jpg",
1225
+ "image_caption": [
1226
+ "Figure 4: Generative model of STCN-dense architecture. Building blocks are highlighted. Note that the dependence of $d _ { t } ^ { l } , l = 1 \\cdots L$ on past inputs is not visualized for clarity. "
1227
+ ],
1228
+ "image_footnote": [],
1229
+ "bbox": [
1230
+ 178,
1231
+ 172,
1232
+ 816,
1233
+ 361
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "The network architecture of the proposed model is illustrated in Fig. 4. We make only a small modification to the vanilla Wavenet architecture. Instead of using skip connections from Wavenet blocks, we only use the latent sample $z _ { t }$ in order to make a prediction of $x _ { t }$ . In STCN-dense configuration, $z _ { t }$ is the concatenation of all latent variables in the hierarchy, i.e., $\\boldsymbol { z } _ { t } = [ \\boldsymbol { z } _ { t } ^ { 1 } \\circ \\cdot \\cdot \\cdot \\circ \\boldsymbol { z } _ { t } ^ { L } ]$ , whereas in STCN only $z _ { t } ^ { 1 }$ is fed to the output layer. ",
1240
+ "bbox": [
1241
+ 173,
1242
+ 421,
1243
+ 825,
1244
+ 486
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Each stochastic latent variable $z _ { t } ^ { l }$ (except the top-most $z _ { t } ^ { L }$ ) is conditioned on a deterministic TCN representation $d _ { t } ^ { l }$ and the preceding random variable $z _ { t } ^ { l + 1 }$ . The latent variables are calculated by using the latent layers $f _ { p } ^ { ( l ) }$ or $f _ { q } ^ { ( l ) }$ which are neural networks. ",
1251
+ "bbox": [
1252
+ 174,
1253
+ 491,
1254
+ 825,
1255
+ 536
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "We do not define a latent variable per TCN layer. Instead, the stochastic layers are uniformly distributed where each random variable is conditioned on a number of stacked TCN layers $\\dot { d } _ { t } ^ { l }$ . We stack $K$ Wavenet blocks (see figure 4 left) with exponentially increasing dilation size. ",
1262
+ "bbox": [
1263
+ 176,
1264
+ 542,
1265
+ 821,
1266
+ 582
1267
+ ],
1268
+ "page_idx": 11
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Observation Model: We use Normal or GMM distributions with 20 components to model real-valued data. \nAll Gaussian distributions have diagonal covariance matrix. ",
1273
+ "bbox": [
1274
+ 176,
1275
+ 588,
1276
+ 823,
1277
+ 614
1278
+ ],
1279
+ "page_idx": 11
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Output layer $f ^ { ( o ) }$ : For the IAM-OnDB and Deepwriting datasets we use 1D convolutions with ReLU nonlinearity. We stack 5 of these layers with 256 filters and filter size 1. ",
1284
+ "bbox": [
1285
+ 174,
1286
+ 622,
1287
+ 820,
1288
+ 648
1289
+ ],
1290
+ "page_idx": 11
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "For TIMIT and Blizzard datasets Wavenet blocks in the output layer perform significantly better. We stack 5 Wavenet blocks with dilation size 1. For each convolution operation in the block we use 256 filters. The filter size of the dilated convolution is set to 2. The STCN-dense-large model is constructed by using 512 filters instead of 256. ",
1295
+ "bbox": [
1296
+ 174,
1297
+ 655,
1298
+ 825,
1299
+ 705
1300
+ ],
1301
+ "page_idx": 11
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "TCN blocks $d _ { t } ^ { l }$ : The number of Wavenet blocks is usually determined by the desired receptive field size. ",
1306
+ "bbox": [
1307
+ 173,
1308
+ 713,
1309
+ 790,
1310
+ 727
1311
+ ],
1312
+ "page_idx": 11
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "• For the handwriting datasets $K = 6$ and $L = 5$ . In total we have 30 Wavenet blocks where each convolution operation has 256 filters with size 2. • For speech datasets $K = 5$ and $L = 5$ . In total we have 25 Wavenet blocks where each convolution operation has 256 filters with size 2. The large model configuration uses 512 filters. ",
1317
+ "bbox": [
1318
+ 217,
1319
+ 739,
1320
+ 823,
1321
+ 801
1322
+ ],
1323
+ "page_idx": 11
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "Latent layers $f _ { p } ^ { ( l ) }$ and $f _ { q } ^ { ( l ) }$ : The number of stochastic layers per task is given by $L$ . We used [32, 16, 8, 5, 2] dimensional latent variables for the handwriting tasks. It is [256, 128, 64, 32, 16] for speech datasets. Note that the first entry of the list corresponds to $z ^ { 1 }$ . ",
1328
+ "bbox": [
1329
+ 176,
1330
+ 815,
1331
+ 821,
1332
+ 856
1333
+ ],
1334
+ "page_idx": 11
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "The mean and sigma parameters of the Normal distributions modeling the latent variables are calculated by the $f _ { p } ^ { ( l ) }$ and $f _ { q } ^ { ( l ) }$ networks. We stack $^ { 2 1 0 }$ convolutions with ReLU nonlinearity and filter size 1. The number of filters are the same as the number of Wavenet block filters for the corresponding task. ",
1339
+ "bbox": [
1340
+ 174,
1341
+ 862,
1342
+ 825,
1343
+ 904
1344
+ ],
1345
+ "page_idx": 11
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "Finally, we clamped the latent sigma predictions between 0.001 and 5. ",
1350
+ "bbox": [
1351
+ 173,
1352
+ 910,
1353
+ 589,
1354
+ 924
1355
+ ],
1356
+ "page_idx": 11
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "7.2 TRAINING DETAILS ",
1361
+ "text_level": 1,
1362
+ "bbox": [
1363
+ 176,
1364
+ 103,
1365
+ 351,
1366
+ 117
1367
+ ],
1368
+ "page_idx": 12
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "In all STCN experiments we applied KL annealing. In all tasks, the weight of the KL term is initialized with 0 and increased by $1 \\times e ^ { - 4 }$ at every step until it reaches 1. ",
1373
+ "bbox": [
1374
+ 173,
1375
+ 128,
1376
+ 825,
1377
+ 155
1378
+ ],
1379
+ "page_idx": 12
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "The batch size was 20 for all datasets except for Blizzard where it was 128. ",
1384
+ "bbox": [
1385
+ 174,
1386
+ 161,
1387
+ 617,
1388
+ 175
1389
+ ],
1390
+ "page_idx": 12
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "We use the ADAM optimizer with its default parameters and exponentially decay the learning rate. For the handwriting datasets the learning rate was initialized with $5 \\times e ^ { - 4 }$ and followed a decay rate of 0.94 over 1000 decay steps. On the speech datasets it was initialized with $1 \\times e ^ { - 3 }$ and decayed with a rate of 0.98. We applied early stopping by measuring the ELBO performance on the validation splits. ",
1395
+ "bbox": [
1396
+ 174,
1397
+ 181,
1398
+ 825,
1399
+ 233
1400
+ ],
1401
+ "page_idx": 12
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "We implement STCN models in Tensorflow (Abadi et al., 2016). Our code and models achieving the SOA results are available at https://ait.ethz.ch/projects/2019/stcn/. ",
1406
+ "bbox": [
1407
+ 173,
1408
+ 239,
1409
+ 823,
1410
+ 266
1411
+ ],
1412
+ "page_idx": 12
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "7.3 DETAILED RESULTS ",
1417
+ "text_level": 1,
1418
+ "bbox": [
1419
+ 176,
1420
+ 281,
1421
+ 354,
1422
+ 296
1423
+ ],
1424
+ "page_idx": 12
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "Here we provide the extended results table with Normal observation model entries for available models. ",
1429
+ "bbox": [
1430
+ 173,
1431
+ 306,
1432
+ 784,
1433
+ 320
1434
+ ],
1435
+ "page_idx": 12
1436
+ },
1437
+ {
1438
+ "type": "table",
1439
+ "img_path": "images/dc66a0817ce8e640da19283d5f79e18c8a7a83d2f23a1303a1387efa848b1248.jpg",
1440
+ "table_caption": [
1441
+ "Table 4: Average log-likelihood per sequence on TIMIT, Blizzard, IAM-OnDB and Deepwriting datasets. (Normal) and (GMM) stand for unimodal Gaussian or multi-modal Gaussian Mixture Model (GMM) as the observation model (Graves, 2013; Chung et al., 2015). Asterisks ∗ indicate that we used our re-implementation only for the Deepwriting dataset. "
1442
+ ],
1443
+ "table_footnote": [],
1444
+ "table_body": "<table><tr><td>Models</td><td>TIMIT</td><td>Blizzard</td><td>IAM-OnDB</td><td>Deepwriting</td></tr><tr><td>Wavenet (Normal)</td><td>-7443</td><td>3784</td><td>1053</td><td>337</td></tr><tr><td>Wavenet (GMM)</td><td>30188</td><td>8190</td><td>1381</td><td>612</td></tr><tr><td>Wavenet-dense (Normal)</td><td>-8579</td><td>3712</td><td>1030</td><td>323</td></tr><tr><td>Wavenet-dense (GMM)</td><td>30636</td><td>8212</td><td>1380</td><td>642</td></tr><tr><td>RNN (Normal) Chung et al. (2015)</td><td>-1900</td><td>3539</td><td>1016</td><td>363 *</td></tr><tr><td>RNN (GMM) Chung et al. (2015)</td><td>26643</td><td>7413</td><td>1358</td><td>528 *</td></tr><tr><td>VRNN (Normal)Chung et al. (2015)</td><td>~ 30235</td><td>~9516</td><td>≈1354</td><td>≥ 495 *</td></tr><tr><td>VRNN (GMM) Chung et a. (2015)</td><td>~ 29604</td><td>~9392</td><td>≈1384</td><td>≥673 *</td></tr><tr><td>SRNN (Normal) Fraccaro et al. (2016)</td><td>≥ 60550</td><td>≥ 11991</td><td>n/a</td><td>n/a</td></tr><tr><td>Z-forcing (Normal)Goyal etal. (2017)</td><td>≥ 70469</td><td>≥ 15430</td><td>n/a</td><td>n/a</td></tr><tr><td>Var.Bi-LSTM (Normal)Shabanian et al. (2017)</td><td>≥ 73976</td><td>≥ 17319</td><td>n/a</td><td>n/a</td></tr><tr><td>SWaveNet (Normal)Lai et al.(2018)</td><td>≥ 72463</td><td>M 15708</td><td>≥1301</td><td>n/a</td></tr><tr><td>STCN(Normal)</td><td>≥ 64913</td><td>M 13273</td><td>≥ 1327</td><td>≥ 575</td></tr><tr><td>STCN(GMM)</td><td>≥ 69195</td><td>≥15800</td><td>≥ 1338</td><td>≥ 605</td></tr><tr><td>STCN-dense(Normal)</td><td>≥ 70294</td><td>≥ 15950</td><td>≥ 1729</td><td>≥ 740</td></tr><tr><td>STCN-dense(GMM)</td><td>≥ 71386</td><td>M 16288</td><td>≥ 1796</td><td>≥ 797</td></tr><tr><td>STCN-dense-large (GMM)</td><td>≥ 77438</td><td>≥ 17670</td><td>n/a</td><td>n/a</td></tr></table>",
1445
+ "bbox": [
1446
+ 179,
1447
+ 395,
1448
+ 812,
1449
+ 675
1450
+ ],
1451
+ "page_idx": 12
1452
+ }
1453
+ ]
parse/train/HkzSQhCcK7/HkzSQhCcK7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkzSQhCcK7/HkzSQhCcK7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkFAWax0-/SkFAWax0-_content_list.json ADDED
@@ -0,0 +1,1580 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "VOICELOOP: VOICE FITTING AND SYNTHESIS VIA A PHONOLOGICAL LOOP ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 820,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yaniv Taigman, Lior Wolf, Adam Polyak and Eliya Nachmani ",
17
+ "bbox": [
18
+ 183,
19
+ 165,
20
+ 614,
21
+ 181
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Facebook AI Research {yaniv, wolf, adampolyak, eliyan} $@$ fb.com ",
28
+ "bbox": [
29
+ 184,
30
+ 183,
31
+ 472,
32
+ 208
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 246,
43
+ 544,
44
+ 261
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We present a new neural text to speech (TTS) method that is able to transform text to speech in voices that are sampled in the wild. Unlike other systems, our solution is able to deal with unconstrained voice samples and without requiring aligned phonemes or linguistic features. The network architecture is simpler than those in the existing literature and is based on a novel shifting buffer working memory. The same buffer is used for estimating the attention, computing the output audio, and for updating the buffer itself. The input sentence is encoded using a context-free lookup table that contains one entry per character or phoneme. The speakers are similarly represented by a short vector that can also be fitted to new identities, even with only a few samples. Variability in the generated speech is achieved by priming the buffer prior to generating the audio. Experimental results on several datasets demonstrate convincing capabilities, making TTS accessible to a wider range of applications. In order to promote reproducibility, we release our source code and models1. ",
51
+ "bbox": [
52
+ 233,
53
+ 276,
54
+ 764,
55
+ 470
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 502,
66
+ 336,
67
+ 518
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "We study the task of mimicking a person’s voice based on samples that are captured in-the-wild. As far as we know, no other solution exists for this highly applicable learning problem. While the current systems are mostly based on carefully collected or curated audio samples, our method is able to employ the audio of public speeches (from youtube), despite a large amount of background noise and clapping and even with an inaccurate automatic transcript. Moreover, almost all in-the-wild videos contain multiple other speakers that become challenging voice sample outliers and, in some cases, the videos are shot with home equipment and are of reduced quality. ",
74
+ "bbox": [
75
+ 174,
76
+ 532,
77
+ 825,
78
+ 631
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Our method, called VoiceLoop, is inspired by a working-memory model known as the phonological loop (Baddeley, 1986). The loop holds verbal information for short periods of time. It comprises both a phonological store, where information is constantly being replaced, and a rehearsal process, which maintains longer-term representations in the phonological store. ",
85
+ "bbox": [
86
+ 174,
87
+ 635,
88
+ 825,
89
+ 690
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In our method, we construct a phonological store by employing a shifting buffer that is best seen as a matrix $S ~ \\in \\mathbb { R } ^ { d \\times k }$ with columns $\\bar { S } [ 1 ] \\ldots S [ k ]$ . At every time point, all columns shift to the right $( S [ i + 1 ] = S [ i ]$ for $1 \\leq i < k \\}$ ), column $k$ is discarded, and a new representation vector $u$ is placed in the first position $( S [ 1 ] = u )$ ). $u$ is a function of four parameters, among which are the latest “spoken” output and the buffer $S$ itself. The buffer is, therefore, constantly refreshed with new information, similar to the phonological store, and the mechanism that creates the representations reuses the existing information in the buffer, thus creating long term dependencies. ",
96
+ "bbox": [
97
+ 174,
98
+ 694,
99
+ 825,
100
+ 791
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The two other input parameters of the network that computes the new representation $u$ are the identity of the speaker and the current attention-mediated context. The identity is captured by a learned embedding and is stored in a lookup table (for the individuals in the training set) or fitted (for new individuals). The usage of this embedding for the phonological store means that it influences the dynamic behavior of the store, the attention mechanism and the output process. Since the last process requires heavy personalization, it also receives the identity embedding directly. ",
107
+ "bbox": [
108
+ 174,
109
+ 795,
110
+ 825,
111
+ 878
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/a0456ecc35aa3e52127fdd48e495db69d8c185454a419ec899a6e62f7b9bc2e2.jpg",
118
+ "image_caption": [
119
+ "Figure 1: An overview of the VoiceLoop architecture. The reader combines the encoding of the sentence’s phonemes using the attention weights to create the current context. A new representation is created by a shallow network that receives the context, the speaker ID, the previous output, and the buffer. The new representation is inserted into the buffer and the earliest vector in the buffer is discarded. The output is obtained by another shallow network that receives the buffer and the speaker as inputs. Once trained, fitting a new voice is done by freezing the network, except for the speaker embedding. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 225,
124
+ 104,
125
+ 767,
126
+ 375
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "The input sentences in our system are represented as a list of phonemes. Each phoneme out of the 42 in the dictionary being employed, is encoded as a short vector. The encoding of an input sentence is the list of vectors which corresponds to its list of phonemes. The context, either through a Recurrent Neural Network (RNN) or triphones, is not used. ",
133
+ "bbox": [
134
+ 174,
135
+ 569,
136
+ 825,
137
+ 625
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "At each time point, the encodings of the phonemes are weighted and then summed, using a vector of attention weights, to form the current context vector. As attention mechanism, we employ the Graves attention model (Graves, 2013), which ensures a monotonic increase in the position along the sequence of input phonemes. ",
144
+ "bbox": [
145
+ 174,
146
+ 628,
147
+ 825,
148
+ 685
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "A few properties of our methods stand out in the landscape of neural text to speech work: (i) Instead of conventional RNNs, we propose to employ a memory buffer. (ii) The same memory is shared between all processes and is repeatedly used to make all inferences. (iii) We employ shallow fully-connected networks for all computations. (iv) The input encoding part of the “reader” mechanism is extremely simple. ",
155
+ "bbox": [
156
+ 174,
157
+ 689,
158
+ 825,
159
+ 758
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "We hypothesize that these properties make our architecture more robust than existing methods and allow us to mimic speakers based on noisy and limited training data. Moreover, since the output is more directly linked to the inputs, we are able to fit new speakers using relatively short audio sequences coupled with automatically generated text. ",
166
+ "bbox": [
167
+ 174,
168
+ 762,
169
+ 825,
170
+ 818
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "Finally, the output of our system is deterministic, given its input. However, multiple intonations are readily generated by employing priming, which involves initializing the buffer $S$ prior to the synthesis process. ",
177
+ "bbox": [
178
+ 174,
179
+ 821,
180
+ 825,
181
+ 864
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "Experimentally, we evaluate our method in two ways. For TTS quality, we follow the standard Mean Opinion Score (MOS) experiment done by Arik et al. (2017a). For speaker identification, we train a multi-class network which achieves near-perfect performance on a real validation set, and test it against generated ones. ",
188
+ "bbox": [
189
+ 174,
190
+ 867,
191
+ 823,
192
+ 924
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "2 PREVIOUS WORK ",
199
+ "text_level": 1,
200
+ "bbox": [
201
+ 176,
202
+ 102,
203
+ 351,
204
+ 117
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Text to speech (TTS) methods can be mostly classified into four families: rule-based, concatenative, statistical-parametric (mostly HMM based), and neural. HMM-based methods (Zen et al., 2009) require careful collection of the samples, or as recently attempted by Baljekar & Black, filtering of noisy samples for in-the-wild application. Concatenative methods are somewhat less restrictive but still require tens of minutes of clean and well transcribed samples from the target voice. Emerging neural methods may hold the (currently unrealized) promise of allowing the imitation of new speakers, based on limited and unconstrained samples captured in the wild. ",
211
+ "bbox": [
212
+ 174,
213
+ 137,
214
+ 825,
215
+ 234
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Very recent neural TTS systems include the Deep Voice systems DV1 (Arik et al., 2017b) & DV2 (Arik et al., 2017a), WaveNet (Oord et al., 2016), Char2Wav (Sotelo et al., 2017), and Tacotron (Wang et al., 2017). The DV2 system is a well-engineered system, which includes specialized subsystems for segmenting phonemes, predicting phoneme duration, and predicting the fundamental frequency. Each subsystem includes stacked bidirectional recurrent networks, multilayer fully connected networks and many residual connections. This stands in stark contrast to our system, which employs a single shared memory, one output process, and shallow fully connected networks. ",
222
+ "bbox": [
223
+ 174,
224
+ 239,
225
+ 825,
226
+ 337
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "DV2 is the only other current method that models multiple speakers in a single network. However, in contrast to our results, there are three critical differences: (a) There are no in-the-wild experiments; (b) no fitting to a new speaker that did not appear in the training set is shown possible; and (c) the authors employ a large private set and delegate the attention problem to sub-systems, including strong ground-truth alignment between phonemes, waveforms and linguistic features. The linguistic features, which comprise of phone duration, syllable stress, number of syllables in a word and position of the current syllable in a phrase, are also used during inference for generating the samples (used in the subjective Mean Opinion Score tasks as well). In contrast, our method learns “where to read” from the input. Note that (a) and (b) are crucial capabilities in making TTS accessible to a wide range of applications, in particular when casually and efficiently modeling non-professional speakers. The need for professionally collected datasets and the lack of post-training fitting could be inherent to the DV2 architecture, since it has a large number of speaker-dependent modules, whereas we fit a new speaker in a single place. ",
233
+ "bbox": [
234
+ 174,
235
+ 340,
236
+ 825,
237
+ 520
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "The Tacotron system employs a multi-stage encoder-decoder architecture with multiple RNNs and a block called CBHG (Lee et al., 2016) components, with each CBHG containing multiple convolutional layers, a highway network (Srivastava et al., 2015), and a bidirectional GRU (Cho et al., 2014). The output is a synthesized spectrogram, from which the audio is reconstructed by the GriffinLim (Griffin & Lim, 1984) method. Trained on a large private training set recorded by a professional single speaker, the Tacotron system is able to read raw text (characters and not phonemes). While Tacotron was not trained for multiple speakers, Arik et al. (2017a) have done so and report a high level of sensitivity to the choice of parameters and a need to incorporate the input embedding in many network sites. The Char2Wav architecture employs RNNs for both the reader and the generator. As an attention mechanism, the Graves positional attention mechanism (Graves, 2013) is used. The same attention mechanism is used in our work. However, in our case, the parameters of the attention model are based on the shared memory store (the buffer). Similarly to our method, the network was also trained to predict vocoder features. In addition, for added quality, the vocoder was replaced by a SampleRNN network (Mehri et al., 2016). In contrast to the above mentioned systems, which employ RNNs, the WaveNet architecture is based on stacks of dilated convolutions, which are termed “causal” for not looking into the future. The output audio is generated sample by sample, which, at typical sampling rates of thousands of hertz, is too slow for current TTS applications. Wavenet has shown single-speaker TTS capabilities, but not multi-speaker. ",
244
+ "bbox": [
245
+ 173,
246
+ 525,
247
+ 825,
248
+ 775
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Waveforms Synthesis There is currently no TTS method which can synthesize waveforms from scratch. WaveNet, DV1, DV2, Char2wav and Tacotron were all conditioned on top of lower level generators. Wavenet was conditioned on F0 vocoder features, as well as linguistic features extracted from separately trained RNN-based text representations. SampleRNNs were employed on top of vocoders. Tacotron synthesized spectograms from mel-spectograms, approximating waveforms using Griffin-Lim. As observed by DV2, small errors in the spectrogram generation result in unnatural (metallic) noise in the reconstruction. Further audio processing can be used to alleviate them, but to a limited extent. Better results were achieved (Arik et al., 2017a) by replacing Griffin-Lim with a Wavenet-like net conditioned on the generated spectogram and speaker. ",
255
+ "bbox": [
256
+ 174,
257
+ 797,
258
+ 825,
259
+ 924
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "table",
265
+ "img_path": "images/6cf864e31b1b0670316e3b0767419d1264467b9af8c477619d33e381c48e9b79.jpg",
266
+ "table_caption": [
267
+ "Table 1: The components of the VoiceLoop model "
268
+ ],
269
+ "table_footnote": [],
270
+ "table_body": "<table><tr><td>Symbol</td><td>Description</td><td>Computed as:</td></tr><tr><td>St ∈Rdxk 2aiaier ut∈Rd EeRdpxl zERds Kt,βt,Yt ∈RC Ht,O²,Y∈RC at∈Rl Ct ∈Rdp</td><td>buffer at time t new representation for the buffer embedding of the input sequence embedding of the current speaker attention model parameters attention GMM parameters attention vector at time t context vector at time t</td><td>St[1]= ut; St[i+1]= St-1[i] Nu([St-1,[ct +tanh(Fuz),Ot-1]l) E[i]=LUTp[si] LUTs[id] orSec. 3.2 Na(St-1) μt= μt-1+et,σ²=eβt,γt=sm(Yt) See Eq.3,4 Ct =Eαt</td></tr><tr><td>Ot ERd Nu :kd+dp+do→d Nrureees Na :kd →3c N:kd →do LUTp ∈Rdp×42 LUT∈RdsXN Fu:ds→dp F:ds→do</td><td>output vector at time t buffer update network attention network output network embedding of each phoneme embedding of the speakers projection of the speaker for update projection of the speaker for output</td><td>N(St)+Foz</td></tr><tr><td>d sraaeieetr k d ds C S1...St,1≤s≤42 1 N</td><td>dimensionality of the buffer capacity of the buffer dim.of the input embedding LUT dim.of the vocoder feature vector dim. of the speaker embedding # GMM component (attention model) input sequence length of the input sequence number of speakers in the training set</td><td>dp+do 20 256 63 dp 10</td></tr></table>",
271
+ "bbox": [
272
+ 174,
273
+ 128,
274
+ 929,
275
+ 523
276
+ ],
277
+ "page_idx": 3
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "Our system was designed with simplicity in mind in order to promote robustness and reproducibility. We focus on modeling the underlying generation process and do not integrate or condition explicitly for waveforms synthesis. Instead, we employ the WORLD (Morise et al., 2016) vocoder (D4C edition) for feature extraction and waveform synthesis. While this bounds the achievable quality, we also experimented with adding WaveNet and SampleRNN. However, the added performance did not seem to justify the extra effort, especially for in-the-wild voice training data, where we observed no improvement. ",
282
+ "bbox": [
283
+ 173,
284
+ 554,
285
+ 825,
286
+ 652
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "Differentiable Memory The differentiable buffer architecture, in which a new representation is added at every step, and the last vector added is discarded in a FIFO manner, is novel as far as we know. There are multiple other network models in the literature that are augmented by an external memory structure, e.g., (Joulin & Mikolov, 2015; Sukhbaatar et al., 2015; Graves et al., 2014). However, to our knowledge, our work is one of very few applications of such memory networks outside in practice. ",
293
+ "bbox": [
294
+ 174,
295
+ 670,
296
+ 825,
297
+ 753
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Perhaps the closest model to our work is Stack RNN by Joulin & Mikolov (2015), in which the network is augmented with an infinite stack to which a state vector can be added (PUSH) or removed (POP) at every time step. Unlike our model, only the top of the stack is read each time. ",
304
+ "bbox": [
305
+ 176,
306
+ 757,
307
+ 825,
308
+ 800
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "3 THE ARCHITECTURE ",
315
+ "text_level": 1,
316
+ "bbox": [
317
+ 176,
318
+ 821,
319
+ 380,
320
+ 838
321
+ ],
322
+ "page_idx": 3
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "The architecture of the VoiceLoop model is depicted in Fig. 1 and the components of the architecture are listed in Tab. 1. The forward pass of the network has four steps, which are run sequentially. Following a context-free encoding of the input sequence and an encoding of the speaker, the buffer at time t, $\\mathbf { \\bar { \\mathbf { } } } { S _ { t } } \\in \\mathbb { R } ^ { d \\times k }$ , plays a major role in all of the remaining steps and links between the other components of each step. It also carries the error signal from the output to the earlier steps. ",
327
+ "bbox": [
328
+ 174,
329
+ 853,
330
+ 825,
331
+ 924
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "Step I: Encoding the speaker and the input sentence Every speaker is represented by a vector $z$ During training, the vectors of the training speakers are stored in a lookup table $L U T _ { s }$ which maps a running id number to a representation of dimensionality $d _ { s }$ . For new speakers, which are being fitted after the network was trained, the vector $z$ is computed by the straightforward optimization process described in Sec. 3.2. ",
338
+ "bbox": [
339
+ 173,
340
+ 103,
341
+ 825,
342
+ 172
343
+ ],
344
+ "page_idx": 4
345
+ },
346
+ {
347
+ "type": "text",
348
+ "text": "The input sentence is converted to a sequence of phonemes $s _ { 1 } , s _ { 2 } , \\ldots , s _ { l }$ by employing the CMU pronouncing dictionary (Weide, 1998). The number of phonemes in this dictionary is 40, to which two items are added to indicate pauses of different lengths. Each $s _ { i }$ is then mapped separately to an encoding that is based on a trained lookup table $L U T _ { p }$ . This results in an encoding matrix $E$ of size $d _ { p } \\times l$ , where $d _ { p }$ is the size of the encoding, and $l$ is the sequence length. ",
349
+ "bbox": [
350
+ 173,
351
+ 178,
352
+ 825,
353
+ 248
354
+ ],
355
+ "page_idx": 4
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "Step II: Computing the context Similar to (Sotelo et al., 2017; Chorowski et al., 2015), we employ the Graves Gaussian Mixture Model (GMM)-based monotonic attention mechanism. At each output time point $t = 1 , 2 , \\dots$ , the attention network $N _ { a }$ receives the buffer from the previous time step $S _ { t - 1 }$ as input and outputs the GMM priors $\\gamma _ { t }$ , shifts $\\kappa _ { t }$ , and log-variances $\\beta _ { t }$ . For a GMM with $c$ components, each of these is a vector in $\\mathbb { R } ^ { c }$ . $N _ { a }$ has one hidden layer, of dimensionality $\\textstyle { \\frac { d k } { 1 0 } }$ and a ReLU activation function for the hidden layer. ",
360
+ "bbox": [
361
+ 173,
362
+ 258,
363
+ 825,
364
+ 344
365
+ ],
366
+ "page_idx": 4
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "The attention is then computed as follows: ",
371
+ "bbox": [
372
+ 176,
373
+ 348,
374
+ 452,
375
+ 362
376
+ ],
377
+ "page_idx": 4
378
+ },
379
+ {
380
+ "type": "equation",
381
+ "img_path": "images/7df86f316dbdefa6b57bd17ca954e21eac970b3cf0573dfa345bbe76bd479f0f.jpg",
382
+ "text": "$$\n\\gamma _ { t } ^ { \\prime } [ i ] = \\frac { e x p ( \\gamma _ { t } [ i ] ) } { \\sum _ { j } e x p ( \\gamma _ { t } [ j ] ) } , i = 1 , 2 , \\ldots , c\n$$",
383
+ "text_format": "latex",
384
+ "bbox": [
385
+ 370,
386
+ 367,
387
+ 627,
388
+ 404
389
+ ],
390
+ "page_idx": 4
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "i.e., the softmax function is applied to the priors. The means of the GMMs are increased: ",
395
+ "bbox": [
396
+ 171,
397
+ 409,
398
+ 753,
399
+ 422
400
+ ],
401
+ "page_idx": 4
402
+ },
403
+ {
404
+ "type": "equation",
405
+ "img_path": "images/4a14441e7c521ae80dc8a03be10cdd2283c11216a26e6c4720a07964aff60d3d.jpg",
406
+ "text": "$$\n\\mu _ { t } = \\mu _ { t - 1 } + e x p ( \\kappa _ { t } ) ,\n$$",
407
+ "text_format": "latex",
408
+ "bbox": [
409
+ 423,
410
+ 428,
411
+ 573,
412
+ 445
413
+ ],
414
+ "page_idx": 4
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "and the variances are computed as $\\sigma _ { t } ^ { 2 } = e x p ( \\beta _ { t } )$ . For each GMM component $1 \\leq i \\leq c$ and each point along the input sequence $1 \\le j \\le l$ , we then compute: ",
419
+ "bbox": [
420
+ 174,
421
+ 449,
422
+ 825,
423
+ 479
424
+ ],
425
+ "page_idx": 4
426
+ },
427
+ {
428
+ "type": "equation",
429
+ "img_path": "images/3e1a26ddf7d8cf84f4759521f7317ae65be3e944d2b3692075f8202338a61655.jpg",
430
+ "text": "$$\n\\phi [ i , j ] = \\frac { \\gamma _ { t } ^ { \\prime } [ i ] } { \\sqrt { 2 \\pi \\sigma _ { t } ^ { 2 } [ i ] } } e x p ( - \\frac { ( j - \\mu _ { t } [ i ] ) ^ { 2 } } { 2 \\sigma _ { t } ^ { 2 } [ i ] } )\n$$",
431
+ "text_format": "latex",
432
+ "bbox": [
433
+ 366,
434
+ 483,
435
+ 632,
436
+ 521
437
+ ],
438
+ "page_idx": 4
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "The attention weights $\\alpha _ { t }$ are computed for each location in the sequence by summing along all $c$ components: ",
443
+ "bbox": [
444
+ 174,
445
+ 530,
446
+ 823,
447
+ 556
448
+ ],
449
+ "page_idx": 4
450
+ },
451
+ {
452
+ "type": "equation",
453
+ "img_path": "images/0f9024900e247d6a34e221ca85abfa1b4cf55e05268b9d7f52115c567785f3da.jpg",
454
+ "text": "$$\n\\alpha _ { t } [ j ] = \\sum _ { i = 1 } ^ { c } \\phi [ i , j ]\n$$",
455
+ "text_format": "latex",
456
+ "bbox": [
457
+ 436,
458
+ 555,
459
+ 562,
460
+ 597
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "The context vector $c _ { t }$ is then computed as weighted sum of the columns of the input sequence embedding matrix $E$ as $c _ { t } = E \\alpha _ { t }$ . The loss function of the entire model depends on the attention vector through this context vector. The GMM is differentiable with respect to mean, std and weight, and these are updated, during training, through backpropagation. ",
467
+ "bbox": [
468
+ 174,
469
+ 602,
470
+ 825,
471
+ 659
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "Step III: Updating the buffer At each time step, a new representation vector $u$ of dimensionality $d$ is added to the buffer at the first location $S _ { t } [ 1 ]$ , the last column of the buffer from the previous time step $S _ { t - 1 } [ k ]$ is discarded, and the rest are copied $S _ { t } [ i + 1 ] = S _ { t - 1 } [ i ]$ for $i = 1 , \\ldots , k - 1$ . ",
478
+ "bbox": [
479
+ 173,
480
+ 670,
481
+ 825,
482
+ 713
483
+ ],
484
+ "page_idx": 4
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "In our implementation, the number of features in the buffer $d$ is the sum of the dimensionality of the embedding of the phonemes $d _ { p }$ and the output’s dimensionality $d _ { o }$ . This choice was made so that a direct comparison to a buffer that does not employ an update network can be performed. In this case, $u$ is simply the concatenation of the current context vector $c _ { t }$ and the output from the previous time step $o _ { t - 1 }$ . It soon became very clear that this loop-less buffer update leads to poor results, emphasizing the role of using information of the buffer $S$ itself in the update process. ",
489
+ "bbox": [
490
+ 173,
491
+ 715,
492
+ 825,
493
+ 800
494
+ ],
495
+ "page_idx": 4
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "The vector $u$ is, therefore, computed using a shallow fully connected network $N _ { u }$ , with one hidden layer of a size that is the tenth of the input dimensionality and a ReLU activation function. ",
500
+ "bbox": [
501
+ 173,
502
+ 803,
503
+ 823,
504
+ 832
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "The network receives as input the buffer $S _ { t - 1 }$ , the context vector $c _ { t }$ , and the previous output $o _ { t - 1 }$ The new vector $u$ is also made speaker dependent by adding a projection of the speaker embedding $z$ to the context vector. This projection is followed by a hyperbolic tangent activation function, in order to maintain scale. Therefore, ",
511
+ "bbox": [
512
+ 174,
513
+ 835,
514
+ 825,
515
+ 892
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "equation",
521
+ "img_path": "images/4d1499dbf109477c339244f2d0e0de045d330266468bbb5f5f7d1ca003a05e2e.jpg",
522
+ "text": "$$\nC _ { t } = [ c _ { t } + t a n h ( F _ { u } z ) , o _ { t - 1 } ]\n$$",
523
+ "text_format": "latex",
524
+ "bbox": [
525
+ 400,
526
+ 909,
527
+ 598,
528
+ 925
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "image",
534
+ "img_path": "images/f6ad362c76523e8b3b0cd6dd526216f23c413d9f98cb5391787d3aaaf06b2497.jpg",
535
+ "image_caption": [
536
+ "Figure 2: Memory Location Significance. For each of the three networks $N _ { u }$ , $N _ { a }$ and $N _ { o }$ , we average the absolute values of the weights to the hidden layer across all hidden neurons and across the $d$ rows of the buffer. The result is a measure of the relative importance of each column of the buffer. Best viewed in color. "
537
+ ],
538
+ "image_footnote": [],
539
+ "bbox": [
540
+ 259,
541
+ 126,
542
+ 709,
543
+ 314
544
+ ],
545
+ "page_idx": 5
546
+ },
547
+ {
548
+ "type": "equation",
549
+ "img_path": "images/2857c03e47ac304e6ec3899e6b3f9029ac5b5091630e84d309c7a37e724eb299.jpg",
550
+ "text": "$$\nu = N _ { u } ( [ S _ { t - 1 } , C _ { t } ] ) ,\n$$",
551
+ "text_format": "latex",
552
+ "bbox": [
553
+ 429,
554
+ 420,
555
+ 568,
556
+ 438
557
+ ],
558
+ "page_idx": 5
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "where $[ a , b ]$ is the concatenation of the two column vectors $a$ and $b$ to one column vector, or the concatenation of two matrices $a$ and $b$ side by side. ",
563
+ "bbox": [
564
+ 171,
565
+ 440,
566
+ 823,
567
+ 469
568
+ ],
569
+ "page_idx": 5
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "Another way in which we allow the speaker to influence the generated output is by initializing the buffer based on the speaker’s embedding. Specifically, in our implementation, the speaker embedding size $d _ { s }$ is the same as the phoneme embedding size $d _ { p }$ and we set the top part of the buffer $S _ { 0 }$ to be $z$ repeated $k$ times. The lower part of size $d _ { o } \\times k$ is set to zero. ",
574
+ "bbox": [
575
+ 173,
576
+ 473,
577
+ 825,
578
+ 529
579
+ ],
580
+ "page_idx": 5
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "Step IV: Generating the output The output is generated using a network $N _ { o }$ that is of the same architecture as $N _ { a }$ and $N _ { u }$ and a projection of the user by a learned matrix $F _ { o }$ : ",
585
+ "bbox": [
586
+ 171,
587
+ 540,
588
+ 821,
589
+ 569
590
+ ],
591
+ "page_idx": 5
592
+ },
593
+ {
594
+ "type": "equation",
595
+ "img_path": "images/a331857c96baef97373fb8ca6db8c11bd03633188946171b26537f17f3a15c43.jpg",
596
+ "text": "$$\no _ { t } = N _ { o } ( S _ { t } + F _ { o } z )\n$$",
597
+ "text_format": "latex",
598
+ "bbox": [
599
+ 431,
600
+ 575,
601
+ 565,
602
+ 593
603
+ ],
604
+ "page_idx": 5
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "Memory Location Significance In order to better understand the behavior of the buffer, we consider the relative role of each buffer location $1 , 2 , \\ldots , k$ on the activations of $N _ { u } , N _ { a }$ , and $N _ { o }$ Specifically, we average the absolute values of the weights from the input (buffer elements) to the hidden layer. The averaging is performed across all $d$ features and ${ \\frac { d k } { \\frac { 1 0 } { \\alpha } } }$ hidden units, and provides one value per each location. As can be seen in Fig 2, the weights of the latest elements are more prominent, especially, as expected, for the output network $N _ { o }$ . However, even the rightmost column has a relative contribution that is at least one third of the leftmost column. This supports the utility of our buffer architecture, in which all memory locations are equal inputs to the downstream fully connected networks. ",
609
+ "bbox": [
610
+ 173,
611
+ 602,
612
+ 825,
613
+ 728
614
+ ],
615
+ "page_idx": 5
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "3.1 TRAINING ",
620
+ "text_level": 1,
621
+ "bbox": [
622
+ 174,
623
+ 742,
624
+ 287,
625
+ 756
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "In our current implementation, the output is a vector of vocoder features of dimensionality $d _ { o } = 6 3$ . Similar to (Sotelo et al., 2017), these features were computed using the Merlin toolkit (Wu et al., 2016). During training, the output at each time frame $t$ is compared to the vocoder features of the ground truth data $Y _ { t }$ using the MSE loss: $\\frac { 1 } { d _ { o } } \\Vert Y _ { t } - o _ { t } \\Vert ^ { 2 }$ . This loss requires an exact temporal alignment of the input and the output sequence. However, human speech is not deterministic and one cannot expect a deterministic method to predict the ground truth. For example, even the same speaker cannot replicate her voice to completely remove the MSE loss since there is variability when repeating the same sentence. Teacher forcing solves this since it eliminates most of the drift and enforces a specific way of uttering the sentence. ",
632
+ "bbox": [
633
+ 173,
634
+ 765,
635
+ 826,
636
+ 892
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "In conventional teacher forcing, during training, the input to the network $N _ { u }$ is $Y _ { t - 1 }$ and not $o _ { t - 1 }$ This holds the danger of teaching the network to predict only one time frame ahead, which would create a drift in the output when run on test data. We, therefore, employ a variant of the teacher-forcing technique, which uses the following input to $N _ { u }$ as the previous output ",
643
+ "bbox": [
644
+ 173,
645
+ 895,
646
+ 823,
647
+ 924
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "",
654
+ "bbox": [
655
+ 171,
656
+ 103,
657
+ 825,
658
+ 132
659
+ ],
660
+ "page_idx": 6
661
+ },
662
+ {
663
+ "type": "equation",
664
+ "img_path": "images/b58e93ef71edd3e793110b1ac9626debe9d466d5501b8681cd9522d74f31d8ce.jpg",
665
+ "text": "$$\n\\frac { o _ { t - 1 } + Y _ { t - 1 } } { 2 } + \\eta ,\n$$",
666
+ "text_format": "latex",
667
+ "bbox": [
668
+ 437,
669
+ 138,
670
+ 560,
671
+ 170
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "where $\\eta$ is a random noise vector. When training starts, the predicted output $o _ { t - 1 }$ is by itself a source of noise. As training progresses, it becomes more similar to $Y _ { t - 1 }$ . However, the systematic difference between the two allows the network to better fit the situation that occurs at test time. ",
678
+ "bbox": [
679
+ 174,
680
+ 176,
681
+ 825,
682
+ 218
683
+ ],
684
+ "page_idx": 6
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "During training, a forward pass on all of the output sequences is performed (without truncation), followed by a backward pass. ",
689
+ "bbox": [
690
+ 173,
691
+ 222,
692
+ 825,
693
+ 251
694
+ ],
695
+ "page_idx": 6
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "Efficiency The full model contains 9.3 million parameters and runs near real-time on an Intel Xeon E5 single-core CPU and 5 times faster when on M40 NVIDIA GPU, including vocoder CPU decoding. This was benchmarked with our publicly available python PyTorch implementation. Therefore, even without special optimizations, engineering VoiceLoop to run on a mobile client is possible, similar to existing non-neural TTS client solutions (e.g. Android’s text-to-speech APK). ",
700
+ "bbox": [
701
+ 174,
702
+ 263,
703
+ 825,
704
+ 333
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "3.2 FITTING A NEW PERSON ",
711
+ "text_level": 1,
712
+ "bbox": [
713
+ 176,
714
+ 348,
715
+ 387,
716
+ 362
717
+ ],
718
+ "page_idx": 6
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "Different people exhibit different patterns and present various mannerisms in their speech. Therefore, learning to fit these factors from a limited amount of speech is a challenging task. The goal of speaker mimicking TTS is to be able to mimic a new person based on a relatively short voice sample. Ideally, the new voice would be captured by the parameters of the speaker embedding $z$ , without the need to retrain the network. Naturally, enough variability in the population of the training speakers is needed in order to support this. To fit a new speaker, we are given voice samples and transcribed text. We then employ the training procedure, where the weights of all networks and projections $( N _ { a } , N _ { u } , N _ { o } , L U T _ { p } , F _ { u } , F _ { o } )$ are kept fixed and only vector $z$ is learned (using SGD) to form the embedding of the new speaker. ",
723
+ "bbox": [
724
+ 174,
725
+ 371,
726
+ 825,
727
+ 497
728
+ ],
729
+ "page_idx": 6
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "The same training procedure as detailed in Sec. 3.1 is employed for fitting a new person, including the application of teacher-forcing. We find that the fitting process is very stable with regards to voice characteristics such as pitch. We also noticed that the accent in the new sample needs to be relatively close to the accents presented in the training samples. See Sec. 3.2 for fitting experiments. ",
734
+ "bbox": [
735
+ 174,
736
+ 513,
737
+ 825,
738
+ 570
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "3.3 GENERATING VARIABILITY ",
745
+ "text_level": 1,
746
+ "bbox": [
747
+ 176,
748
+ 585,
749
+ 403,
750
+ 599
751
+ ],
752
+ "page_idx": 6
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "As mentioned, natural speech is not deterministic and each time a sentence is said, it is said in a different way. For simplicity, our method does not employ a random component, such as a variational autoencoder. However, we can generate different outputs by employing priming (Graves, 2013). In this technique, the initial buffer $S _ { 0 }$ is initialized based on an initial process in which another word or sentence is run through the system. One can expect that a sentence from the training set that is said in excitement, would paint the buffer differently than one that is flatter. Experimenting with this technique, demonstrates that we are indeed able to achieve the desired level of variability. However, the direct link between the nature of the priming sequence and the generated output is only anecdotal at this point. ",
757
+ "bbox": [
758
+ 174,
759
+ 608,
760
+ 825,
761
+ 733
762
+ ],
763
+ "page_idx": 6
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "4 EXPERIMENTS ",
768
+ "text_level": 1,
769
+ "bbox": [
770
+ 176,
771
+ 752,
772
+ 326,
773
+ 767
774
+ ],
775
+ "page_idx": 6
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "We make use of multiple datasets. First, for comparing with existing single speaker techniques, we employ single speaker literature datasets. Second, we employ various subsets of the VCTK dataset (Veaux et al., 2017) for various multi-speaker training and/or fitting experiments. Third, we create a dataset that is composed from four to five public speeches of four public figures. The data was downloaded from youtube, where these speeches are publicly available and were automatically transcribed. Samples generated by our method are available on the project’s website https: //github.com/facebookresearch/loop. ",
780
+ "bbox": [
781
+ 174,
782
+ 780,
783
+ 825,
784
+ 877
785
+ ],
786
+ "page_idx": 6
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "The MOS measure for the proposed method was computed using the crowdMOS toolkit by P. Ribeiro et al. (2011) and Amazon Mechanical Turk. All samples were presented at 16kHz and the raters were told that they are presented with the results of the different algorithms. At least 20 raters participated in each such experiment, with $9 5 \\%$ confidence intervals. We restricted all experiments to North American raters. ",
791
+ "bbox": [
792
+ 176,
793
+ 882,
794
+ 823,
795
+ 924
796
+ ],
797
+ "page_idx": 6
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "",
802
+ "bbox": [
803
+ 174,
804
+ 103,
805
+ 823,
806
+ 132
807
+ ],
808
+ "page_idx": 7
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "4.1 SINGLE SPEAKER EXPERIMENTS",
813
+ "text_level": 1,
814
+ "bbox": [
815
+ 176,
816
+ 147,
817
+ 437,
818
+ 160
819
+ ],
820
+ "page_idx": 7
821
+ },
822
+ {
823
+ "type": "text",
824
+ "text": "The single speaker experiments took place on the LJ (Ito, 2017a), the Nancy corpus from the 2011 Blizzard Challenge (King & Karaiskos, 2011), and the English audiobook data for the 2013 Blizzard Challenge (King & Karaiskos, 2013). Our method was compared to the ground truth as well as to Char2Wav and to Tacotron. The Char2Wav system was trained by us using the authors’ implementation available at https://github.com/sotelo/parrot. The training of the Char2Wav model, in each experiment, was optimized by measuring the loss on the validation set, over the following hyperparameters: initial learning rate of $\\left[ 1 e - 2 , 1 e - 3 , 1 e - 4 \\right]$ , source noise standard deviation $( [ 1 , 2 , 4 ] )$ , batch-size ([16, 32, 64]) and the length of each training sample $( [ 1 0 e 2 , 1 0 e 4 ] )$ . ",
825
+ "bbox": [
826
+ 174,
827
+ 169,
828
+ 825,
829
+ 281
830
+ ],
831
+ "page_idx": 7
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "The Tacotron models were pretrained models available from the best public implementation we could find, which is by Ito (2017b). This re-implementation has models only for the LJ and the Nancy datasets. Note that Tacotron has raised a lot of attention and considerable effort was put by the community to replicate the paper’s results. However, there would very likely be a different choice of hyper-parameters between such re-implementations and the one of the authors. ",
836
+ "bbox": [
837
+ 174,
838
+ 284,
839
+ 825,
840
+ 354
841
+ ],
842
+ "page_idx": 7
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "The MOS scores are shown in Tab. 2. These were computed using the “same_sentence” option of crowdMOS, following DV2 (personal communication). As can be seen, our single speaker results are better than those of the other two algorithms across datasets, but still somewhat lower than the ground truth results. ",
847
+ "bbox": [
848
+ 174,
849
+ 358,
850
+ 825,
851
+ 414
852
+ ],
853
+ "page_idx": 7
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "It is interesting to note that on Blizzard 2011, our results are better than Tacotron (reimplementation) but not significantly better than Char2Wav, while on Blizzard 2013 it is significantly better than both. This can be attributed to the clean nature of Blizzard 2011, for which Char2Wav is robust enough, and demonstrates our method’s robustness to noise. ",
858
+ "bbox": [
859
+ 174,
860
+ 417,
861
+ 825,
862
+ 473
863
+ ],
864
+ "page_idx": 7
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "Tab. 3 presents Mel Cepstral Distortion (MCD) scores. This is an automatic, albeit limited, method of testing compatibility between two audio sequences. Since the sequences are not aligned, we employ MCD DTW, which uses dynamic time warping (DTW) to align the sequences. As can be seen, in this metric too, our method outperforms the baseline methods. The single except is Tacotron’s lower distortion on the LJ dataset. However, as shown in Tab. 2, Tacotron is not competitive on this dataset. ",
869
+ "bbox": [
870
+ 174,
871
+ 477,
872
+ 825,
873
+ 547
874
+ ],
875
+ "page_idx": 7
876
+ },
877
+ {
878
+ "type": "table",
879
+ "img_path": "images/dde9347ed6a4fd0ced328b3f82e42db9c7613ed759e60ff2a99a4acf78972c6e.jpg",
880
+ "table_caption": [
881
+ "Table 2: Single Speaker MOS Scores (Mean ± SD) "
882
+ ],
883
+ "table_footnote": [],
884
+ "table_body": "<table><tr><td>Method</td><td>LJ</td><td>Blizzard 2011</td><td>Blizzard 2013</td></tr><tr><td>Tacotron (re-impl)</td><td>2.06 ± 1.02</td><td>2.15 ± 1.10</td><td>N/A</td></tr><tr><td>Char2wav</td><td>3.42 ± 1.14</td><td>3.33 ± 1.06</td><td>2.03 ± 1.16</td></tr><tr><td>VoiceLoop</td><td>3.69 ± 1.04</td><td>3.38 ± 1.00</td><td>3.40 ± 1.03</td></tr><tr><td>Ground truth</td><td>4.60 ± 0.71</td><td>4.56 ± 0.67</td><td>4.80 ± 0.50</td></tr></table>",
885
+ "bbox": [
886
+ 267,
887
+ 587,
888
+ 730,
889
+ 671
890
+ ],
891
+ "page_idx": 7
892
+ },
893
+ {
894
+ "type": "table",
895
+ "img_path": "images/774d624c0dcf7e9441b212003602bc866dff43176c6f9dbfc56e8d8acc97a4db.jpg",
896
+ "table_caption": [
897
+ "Table 3: Single Speaker MCD Scores (Mean ± SD; lower is better) "
898
+ ],
899
+ "table_footnote": [],
900
+ "table_body": "<table><tr><td>Method</td><td>LJ</td><td>Blizzard 2011</td><td>Blizzard 2013</td></tr><tr><td>Tacotron (re-impl)</td><td>12.82 ± 1.41</td><td>14.60 ± 7.02</td><td>N/A</td></tr><tr><td>Char2wav</td><td>19.41 ± 5.15</td><td>13.97 ± 4.93</td><td>18.72 ± 6.41</td></tr><tr><td>VoiceLoop</td><td>14.42 ± 1.39</td><td>8.86 ±1.22</td><td>8.67 ± 1.26</td></tr></table>",
901
+ "bbox": [
902
+ 264,
903
+ 722,
904
+ 733,
905
+ 792
906
+ ],
907
+ "page_idx": 7
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "4.2 MULTI-SPEAKER EXPERIMENTS ",
912
+ "text_level": 1,
913
+ "bbox": [
914
+ 174,
915
+ 818,
916
+ 436,
917
+ 832
918
+ ],
919
+ "page_idx": 7
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "Multi-speaker experiments were performed on the VCTK dataset (Veaux et al., 2017). The 109 speakers were divided into four different nested subsets: 22 North American speakers, both male and females; and 65, 85 and 101 random selection of speakers, where the remaining eight speakers were left out for validation. Each subset was shuffled into train and test sets. Different models were trained to each of the subsets. Qualitatively, the models provide distinguished voices, and as can be seen in Fig. 3, the generated voice samples display a different dynamic behavior for different speakers. ",
924
+ "bbox": [
925
+ 173,
926
+ 840,
927
+ 825,
928
+ 924
929
+ ],
930
+ "page_idx": 7
931
+ },
932
+ {
933
+ "type": "image",
934
+ "img_path": "images/9ec1c8ec5ba0ce9ff107e31130d9098f2d9274b357e12f53f06e3803b35e9cd8.jpg",
935
+ "image_caption": [
936
+ "Figure 3: Top: The attention probabilities obtained when mimicking three different North American speakers from VCTK using the same sentence: “but there is no eye contact”. The $\\mathbf { X } ^ { } -$ -axis is the time along the generated audio. The y-axis depicts the sequence of phonemes. Dots indicate the maximal response along time for each phoneme, illustrating learned phoneme duration differences between identities (not given during training). Bottom: The 4-th Mel-cepstrum for the three generated sentences (dashed) as well as the ground-truth (solid) of the leftmost speaker. Best viewed in zoom. "
937
+ ],
938
+ "image_footnote": [],
939
+ "bbox": [
940
+ 171,
941
+ 102,
942
+ 818,
943
+ 356
944
+ ],
945
+ "page_idx": 8
946
+ },
947
+ {
948
+ "type": "table",
949
+ "img_path": "images/8a4261faa2c7db80b6dd6d3b430039060517ccfd011ec4e4e809751a1426e8a0.jpg",
950
+ "table_caption": [
951
+ "Table 4: Multi-speaker MOS scores (Mean ± SE) "
952
+ ],
953
+ "table_footnote": [],
954
+ "table_body": "<table><tr><td>Method</td><td>VCTK22</td><td>VCTK65</td><td>VCTK85</td><td>VCTK101</td></tr><tr><td>Char2wav</td><td>2.84 ± 1.20</td><td>2.85 ± 1.19</td><td>2.76 ± 1.19</td><td>2.66 ± 1.16</td></tr><tr><td>VoiceLoop</td><td>3.57 ± 1.08</td><td>3.40 ± 1.00</td><td>3.13 ± 1.17</td><td>3.33 ± 1.10</td></tr><tr><td>GT</td><td>4.61 ± 0.75</td><td>4.59 ± 0.72</td><td>4.64 ± 0.64</td><td>4.63 ± 0.66</td></tr></table>",
955
+ "bbox": [
956
+ 256,
957
+ 510,
958
+ 741,
959
+ 582
960
+ ],
961
+ "page_idx": 8
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "In our experiments, we employ the author’s implementation of Char2Wav mentioned above as baseline. Note that while the Char2Wav paper did not present multi-speaker results, the open implementation is more general and includes this option. ",
966
+ "bbox": [
967
+ 176,
968
+ 621,
969
+ 823,
970
+ 662
971
+ ],
972
+ "page_idx": 8
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Sentences from the test set of VCTK are employed for testing. Following DV2 (private communication), the MOS results were computed using the “diff_sentences” option of the crowdMOS toolkit, and are depicted in Tab. 4. As can be seen, our multi-speaker method shows a considerable advantage over the Char2Wav system across all VCTK subsets, but is not as good as the ground truth. These results are consistent with the MCD scores as reported in Tab. 5. ",
977
+ "bbox": [
978
+ 174,
979
+ 667,
980
+ 825,
981
+ 737
982
+ ],
983
+ "page_idx": 8
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Speaker Identification The capability of the system to generate distinguished voices that match the original voices was tested, as was done in DV2, using a speaker classifier. We train a multi-class convolutional network on the ground-truth training set of multiple speakers, and test on the generated ones. The network gets as input an arbitrary size of vocoder samples, performs five convolutional layers of 3x3 filters over 32 batch-normalized channels, followed by max-pooling, average pooling over time, two fully-connected layers, and ending with a softmax of the number of classes tested. All intermediate layers were linearly rectified. ",
988
+ "bbox": [
989
+ 173,
990
+ 766,
991
+ 825,
992
+ 864
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "The identification results are shown in Tab. 6. The VoiceLoop results are more accurate than the results on the VCTK test split, despite using the same text. This might indicate that the voices generated are more similar to the training voices than the natural variability that is present in the dataset. The Char2Wav results are considerably lower. ",
999
+ "bbox": [
1000
+ 174,
1001
+ 867,
1002
+ 823,
1003
+ 924
1004
+ ],
1005
+ "page_idx": 8
1006
+ },
1007
+ {
1008
+ "type": "table",
1009
+ "img_path": "images/010c74ff84df050071e3ea31dc8c5aa7ddb3b399105aa3e26e887d02f9df6723.jpg",
1010
+ "table_caption": [
1011
+ "Table 5: Multi-speaker MCD scores (Mean ± SE; lower is better) "
1012
+ ],
1013
+ "table_footnote": [],
1014
+ "table_body": "<table><tr><td>Method</td><td>VCTK22</td><td>VCTK65</td><td>VCTK85</td><td>VCTK101</td></tr><tr><td>Char2wav</td><td>15.71 ± 1.82</td><td>15.1 ± 1.45</td><td>15.23 ± 1.49</td><td>15.06 ± 1.32</td></tr><tr><td>VoiceLoop</td><td>13.74 ± 0.98</td><td>14.1 ± 0.94</td><td>14.16 ± 0.87</td><td>14.22 ± 0.88</td></tr></table>",
1015
+ "bbox": [
1016
+ 245,
1017
+ 127,
1018
+ 753,
1019
+ 184
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "table",
1025
+ "img_path": "images/a601e689467eb39377d023985de8b7df3c710be5dc31a5e17be03bd2958ff888.jpg",
1026
+ "table_caption": [
1027
+ "Table 6: Multi-Speaker Identification Top-1 Accuracy (%) "
1028
+ ],
1029
+ "table_footnote": [],
1030
+ "table_body": "<table><tr><td>Method</td><td>VCTK85</td><td>VCTK101</td></tr><tr><td>VCTK test split</td><td>98.25</td><td>97.16</td></tr><tr><td>Char2Wav on test split sentences</td><td>75.70</td><td>81.63</td></tr><tr><td>VoiceLoop on test split sentences</td><td>100</td><td>99.76</td></tr></table>",
1031
+ "bbox": [
1032
+ 294,
1033
+ 233,
1034
+ 702,
1035
+ 304
1036
+ ],
1037
+ "page_idx": 9
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "4.3 NEW SPEAKER FITTING EXPERIMENTS ",
1042
+ "text_level": 1,
1043
+ "bbox": [
1044
+ 176,
1045
+ 339,
1046
+ 478,
1047
+ 353
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Our system is the only published system that is capable of post-training fitting of new speakers. In order to experiment with this capability, we employ the VoiceLoop model trained on VCTK85 and experiment on the remaining 16 speakers one by one, where only the speaker embedding $z$ gets updated. While TTS systems typically require several hours of data to model a single speaker (Zen et al., 2009), our fitting set contains only 23.65 minutes per speaker on average. ",
1054
+ "bbox": [
1055
+ 173,
1056
+ 366,
1057
+ 826,
1058
+ 436
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "image",
1064
+ "img_path": "images/91ceb44e61dcff3043cbbf2aa4dd6e1394d679764444c8de47326ccc710dba71.jpg",
1065
+ "image_caption": [
1066
+ "Figure 4: Fitting new speaker embeddings to an existing VoiceLoop model. The graph plots top1 identification accuracy with respect to a sample set length (in minutes) per speaker. Scores were averaged over 5 splits each. The “Full training” horizontal line is the top-1 accuracy for the corresponding speakers, when trained together with the model from scratch. The leftmost datapoint is for two sentences (about 10sec) per speaker. "
1067
+ ],
1068
+ "image_footnote": [],
1069
+ "bbox": [
1070
+ 196,
1071
+ 488,
1072
+ 766,
1073
+ 830
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "As described in 3.2, we randomly initialize a new embedding for every new speaker and update only its weights during back-propagation on the fitting data. The newly fitted speakers achieve ${ \\bf 3 . 0 8 \\pm }$ 0.95 MOS, suggesting that the generation mechanism has not deteriorated below a “fair” level by the new entries. ",
1080
+ "bbox": [
1081
+ 174,
1082
+ 103,
1083
+ 823,
1084
+ 159
1085
+ ],
1086
+ "page_idx": 10
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Similar to the multi-speaker case, we train classifiers for the corresponding identities on ground-truth data, but test on the fitted ones, achieving $8 7 . 6 \\%$ top-1 identification accuracy. Despite lower rates than those in Tab. 6, generations of fitted identities are still reasonably discriminative. We conjecture that training VoiceLoop on a larger set of speakers (e.g. LibriSpeech Panayotov et al. (2015)) will be able to represent unseen identities better. ",
1091
+ "bbox": [
1092
+ 174,
1093
+ 164,
1094
+ 823,
1095
+ 233
1096
+ ],
1097
+ "page_idx": 10
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Fitting Data Size The performance of fitting a new identity clearly relies on the length of the sample that is available for that speaker. In order to understand the influence of the sample size, we repeated the above fitting process for the 16 speakers, but capped the available fitting data per speaker. Specifically, we experimented with a maximal amount of training data of 1, 5, 10, 15 and 20 minutes of voice for each speaker. Instead of cutting the last sentence in the middle, it was removed in case that the threshold was crossed. We repeated this fitting process 5 times, each time fitting a different set of samples at a particular limit. ",
1102
+ "bbox": [
1103
+ 174,
1104
+ 252,
1105
+ 825,
1106
+ 349
1107
+ ],
1108
+ "page_idx": 10
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "In Fig. 4 we report identification accuracies for each limit. Surprisingly, even with two sentences per speaker, totaling about 10 seconds in average, we can fit a new speaker into VoiceLoop such that the speaker is identifiable at $6 4 . 4 \\%$ top-1 identification rate. ",
1113
+ "bbox": [
1114
+ 176,
1115
+ 353,
1116
+ 823,
1117
+ 396
1118
+ ],
1119
+ "page_idx": 10
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "4.4 IN THE WILD EXPERIMENTS ",
1124
+ "text_level": 1,
1125
+ "bbox": [
1126
+ 176,
1127
+ 416,
1128
+ 406,
1129
+ 430
1130
+ ],
1131
+ "page_idx": 10
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "To demonstrate the flexibility of our method, we downloaded several publicly available videos from youtube. We picked four different known speakers (see samples page), and for each we retrieved the top four to five results, provided that they are longer than 20 minutes. We extracted the audio and its associated (youtube’s) automatically transcribed text. The total amount of data is 6.2 hours, which we then segmented into 8000 segments. Each segment length is around three seconds, similar to the datasets used in the experiments above. Both the data and its corresponding text are noisy: some of the samples include panel discussions and others with questions from various reporters. Sometimes, microphone echo was observed, or relatively low quality audio originated from mobile video conference sessions. We then trained on this data a VoiceLoop model from scratch, using exactly the same training procedure used by the other experiments. This achieved MOS is ${ \\bf 2 . 9 7 \\bar { \\pm } }$ 1.03, and top-1 accuracy of $9 5 . 8 1 \\%$ . ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 441,
1139
+ 825,
1140
+ 594
1141
+ ],
1142
+ "page_idx": 10
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "We also demonstrate priming (Sec. 3.3) on this dataset. Even for the same speaker, multiple intonations can be generated by initializing $S _ { 0 }$ in different ways. This capability is depicted in Fig. 5 and in the samples page. ",
1147
+ "bbox": [
1148
+ 174,
1149
+ 612,
1150
+ 823,
1151
+ 655
1152
+ ],
1153
+ "page_idx": 10
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "5 DISCUSSION ",
1158
+ "text_level": 1,
1159
+ "bbox": [
1160
+ 174,
1161
+ 678,
1162
+ 310,
1163
+ 695
1164
+ ],
1165
+ "page_idx": 10
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Employing web-based in-the-wild training data means that the network is trained on mixed data that contains both speech and other sources. For example, our samples contain a considerable amount of clapping and laughs. Moreover, public speeches contain a larger than usual amount of dramatic prosody and methodological pauses (the same is also true with audiobooks). As our experiments show, our method is mostly robust to these, since it is able to model the voices despite of these difficulties and without replicating the background noises in the synthesized output. The baseline model of Char2Wav was not able to properly model the voices of the youtube dataset and presented clapping sounds in its output. ",
1170
+ "bbox": [
1171
+ 174,
1172
+ 710,
1173
+ 825,
1174
+ 823
1175
+ ],
1176
+ "page_idx": 10
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "The architectural simplicity of our system is likely to be the reason for its robustness. Another advantage that stems directly from it, is its computational efficiency. Based on a few shallow networks and on an iterative process that does not consider future samples, our method can generate voice on mobile devices in speeds far exceeding real-time. For comparison, deep voice (Arik et al., 2017b) is posed as a real time neural TTS system, and it achieves a rate of up to 2.7 times real-time on a Intel Xeon E5-2660 v3 Haswell CPU, running 6 concurrent threads (GPU does not provide speedup for the inference of the deep voice system). ",
1181
+ "bbox": [
1182
+ 174,
1183
+ 827,
1184
+ 825,
1185
+ 924
1186
+ ],
1187
+ "page_idx": 10
1188
+ },
1189
+ {
1190
+ "type": "image",
1191
+ "img_path": "images/5d1173b5d35905582c3853492c246eded508e9ae4fac068b49997462f06f90db.jpg",
1192
+ "image_caption": [
1193
+ "Figure 5: Same input, different intonations. A single in the wild speaker saying the sentence “priming is done like that ”, where each time $S _ { 0 }$ is initialized differently. (a) Without priming. (b) Priming with the word “I\". (c) Priming with the word “had”. (d) Priming with the word “must”. (e) Priming with the word “bye”. The figure shows the raw waveform, spectrogram, and F0 estimation (include voicedness) in the first, second and third rows respectively. From the spectrogram plots we can observe different duration for some phonemes. The F0 estimation of (c) and (d) shows that the speaker talks in higher tone while in (b) and (e) we can observe lower tone of the speaker. This demonstrates how priming changes the intonations of the model outputs. "
1194
+ ],
1195
+ "image_footnote": [],
1196
+ "bbox": [
1197
+ 186,
1198
+ 127,
1199
+ 761,
1200
+ 473
1201
+ ],
1202
+ "page_idx": 11
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "The link we form to the model of Baddeley (1986) is by way of analogy and, to be clear, does not imply that we implement this model as is. Specifically, by phonological features, we mean a joint (mixed) representation, in memory, of sound based information and language based information, which is a unique characteristic of our model in comparison to previous work. The short term memory in Baddleley’s model is analog to our buffer and the analog to the rehearsal mechanism is the recursive way in which our buffer is updated. Namely, the new element in the buffer $( u )$ is calculated based on the entire buffer. As noted in Sec. 3, without this dependency on the buffer, our model becomes completely ineffective. ",
1207
+ "bbox": [
1208
+ 173,
1209
+ 683,
1210
+ 825,
1211
+ 795
1212
+ ],
1213
+ "page_idx": 11
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "While we employ the loop-updated buffer for the task of speech synthesis, the model is quite general. For example, we have employed the buffer for machine translation from English to French using a dot product based attention model (Bahdanau et al., 2014). The discrete nature of the output means that an output embedding had to be added, but the overall structure remained the same. The performance seemed at least similar to the baseline RNN attention model. However, no attempt has yet been made to achieve state of the art results on existing benchmarks. Surprisingly, relatively large buffer sizes (9) seem to produce better results, despite the input and the output being relatively short. Staying in the realm of voice, the buffer model can be readily used to form a transformation in the other direction (from speech to text), and applied to audio denoising. ",
1218
+ "bbox": [
1219
+ 173,
1220
+ 797,
1221
+ 825,
1222
+ 924
1223
+ ],
1224
+ "page_idx": 11
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "6 CONCLUSION ",
1229
+ "text_level": 1,
1230
+ "bbox": [
1231
+ 174,
1232
+ 102,
1233
+ 318,
1234
+ 117
1235
+ ],
1236
+ "page_idx": 12
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "We present a new memory architecture that serves as an effective working memory module. Building on this, we are able to present a neural TTS solution of an architecture that is less complex than those found in the recent literature. It also does not require any alignment between phonemes and acoustics or linguistic features as inputs. Using the new architecture, we are able to present, for the first time as far as we know, multi-speaker TTS that is based on unconstrained samples collected from public speeches. Our work also presents a unique ability to fit new speakers (post-training), which is demonstrated even for very limited sample size. ",
1241
+ "bbox": [
1242
+ 173,
1243
+ 130,
1244
+ 825,
1245
+ 228
1246
+ ],
1247
+ "page_idx": 12
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "REFERENCES ",
1252
+ "text_level": 1,
1253
+ "bbox": [
1254
+ 174,
1255
+ 246,
1256
+ 285,
1257
+ 261
1258
+ ],
1259
+ "page_idx": 12
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Sercan Arik, Gregory Diamos, Andrew Gibiansky, John Miller, Kainan Peng, Wei Ping, Jonathan Raiman, and Yanqi Zhou. Deep voice 2: Multi-speaker neural text-to-speech. In Neural Information Processing Systems (NIPS), 2017a. ",
1264
+ "bbox": [
1265
+ 178,
1266
+ 268,
1267
+ 823,
1268
+ 310
1269
+ ],
1270
+ "page_idx": 12
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Sercan O Arik, Mike Chrzanowski, Adam Coates, Gregory Diamos, Andrew Gibiansky, Yongguo Kang, Xian Li, John Miller, Jonathan Raiman, Shubho Sengupta, et al. Deep voice: Real-time neural text-to-speech. In Proc. of the 34th International Conference on Machine Learning (ICML), 2017b. ",
1275
+ "bbox": [
1276
+ 173,
1277
+ 319,
1278
+ 826,
1279
+ 375
1280
+ ],
1281
+ "page_idx": 12
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "A.D. Baddeley. Working memory. London: Oxford University Press, 1986. ",
1286
+ "bbox": [
1287
+ 174,
1288
+ 383,
1289
+ 666,
1290
+ 398
1291
+ ],
1292
+ "page_idx": 12
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR, abs/1409.0473, 2014. ",
1297
+ "bbox": [
1298
+ 174,
1299
+ 407,
1300
+ 820,
1301
+ 435
1302
+ ],
1303
+ "page_idx": 12
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "Pallavi Baljekar and Alan W Black. Utterance selection techniques for tts systems using found speech. In 9th ISCA Speech Synthesis Workshop, pp. 184–189. ",
1308
+ "bbox": [
1309
+ 174,
1310
+ 444,
1311
+ 821,
1312
+ 473
1313
+ ],
1314
+ "page_idx": 12
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "Kyunghyun Cho, Bart van Merrienboer, Çaglar Gülçehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Alessandro Moschitti, Bo Pang, and Walter Daelemans (eds.), EMNLP, pp. 1724–1734. ACL, 2014. ISBN 978-1-937284-96-1. URL http://dblp. uni-trier.de/db/conf/emnlp/emnlp2014.html#ChoMGBBSB14. ",
1319
+ "bbox": [
1320
+ 174,
1321
+ 481,
1322
+ 826,
1323
+ 553
1324
+ ],
1325
+ "page_idx": 12
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Jan Chorowski, Dzmitry Bahdanau, Dmitriy Serdyuk, KyungHyun Cho, and Yoshua Bengio. Attention-based models for speech recognition. CoRR, abs/1506.07503, 2015. ",
1330
+ "bbox": [
1331
+ 176,
1332
+ 560,
1333
+ 820,
1334
+ 589
1335
+ ],
1336
+ "page_idx": 12
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. ",
1341
+ "bbox": [
1342
+ 174,
1343
+ 598,
1344
+ 825,
1345
+ 626
1346
+ ],
1347
+ "page_idx": 12
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. ",
1352
+ "bbox": [
1353
+ 174,
1354
+ 635,
1355
+ 825,
1356
+ 664
1357
+ ],
1358
+ "page_idx": 12
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "D. Griffin and Jae Lim. Signal estimation from modified short-time fourier transform. IEEE Transactions on Acoustics, Speech, and Signal Processing, 32(2):236–243, Apr 1984. ",
1363
+ "bbox": [
1364
+ 174,
1365
+ 671,
1366
+ 825,
1367
+ 700
1368
+ ],
1369
+ "page_idx": 12
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "Keith Ito. The lj speech dataset, 2017a. URL ttps://keithito.com/LJ-Speech-Dataset.",
1374
+ "bbox": [
1375
+ 178,
1376
+ 709,
1377
+ 825,
1378
+ 738
1379
+ ],
1380
+ "page_idx": 12
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "Keith Ito. Tacotron speech synthesis implemented in tensorflow, with samples and a pre-trained model, 2017b. URL https://github.com/keithito/tacotron. ",
1385
+ "bbox": [
1386
+ 174,
1387
+ 747,
1388
+ 823,
1389
+ 775
1390
+ ],
1391
+ "page_idx": 12
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Neural Information Processing Systems (NIPS), 2015. ",
1396
+ "bbox": [
1397
+ 174,
1398
+ 784,
1399
+ 823,
1400
+ 813
1401
+ ],
1402
+ "page_idx": 12
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "Simon King and Vasilis Karaiskos. The blizzard challenge 2011. In Blizzard Challenge workshop, 2011. ",
1407
+ "bbox": [
1408
+ 173,
1409
+ 820,
1410
+ 823,
1411
+ 849
1412
+ ],
1413
+ "page_idx": 12
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "Simon King and Vasilis Karaiskos. The blizzard challenge 2013. In Blizzard Challenge workshop, 2013. ",
1418
+ "bbox": [
1419
+ 176,
1420
+ 858,
1421
+ 823,
1422
+ 887
1423
+ ],
1424
+ "page_idx": 12
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "Jason Lee, Kyunghyun Cho, and Thomas Hofmann. Fully character-level neural machine translation without explicit segmentation. arXiv preprint arXiv:1610.03017, 2016. ",
1429
+ "bbox": [
1430
+ 176,
1431
+ 895,
1432
+ 823,
1433
+ 924
1434
+ ],
1435
+ "page_idx": 12
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "text": "Soroush Mehri, Kundan Kumar, Ishaan Gulrajani, Rithesh Kumar, Shubham Jain, Jose Sotelo, Aaron C. Courville, and Yoshua Bengio. Samplernn: An unconditional end-to-end neural audio generation model. arXiv preprint, arXiv: 1612.07837, 2016. ",
1440
+ "bbox": [
1441
+ 176,
1442
+ 103,
1443
+ 823,
1444
+ 146
1445
+ ],
1446
+ "page_idx": 13
1447
+ },
1448
+ {
1449
+ "type": "text",
1450
+ "text": "Masanori Morise, Fumiya Yokomori, and Kenji Ozawa. World: A vocoder-based high-quality speech synthesis system for real-time applications. IEICE TRANSACTIONS on Information and Systems, 99(7):1877–1884, 2016. ",
1451
+ "bbox": [
1452
+ 174,
1453
+ 155,
1454
+ 823,
1455
+ 196
1456
+ ],
1457
+ "page_idx": 13
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016. ",
1462
+ "bbox": [
1463
+ 174,
1464
+ 207,
1465
+ 823,
1466
+ 250
1467
+ ],
1468
+ "page_idx": 13
1469
+ },
1470
+ {
1471
+ "type": "text",
1472
+ "text": "Flavio P. Ribeiro, Dinei Florencio, Cha Zhang, and Michael Seltzer. CROWDMOS: an approach for crowdsourcing mean opinion score studies. In ICASSP, IEEE International Conference on Acoustics, Speech and Signal Processing - Proceedings, pp. 2416–2419, 05 2011. ",
1473
+ "bbox": [
1474
+ 176,
1475
+ 257,
1476
+ 823,
1477
+ 301
1478
+ ],
1479
+ "page_idx": 13
1480
+ },
1481
+ {
1482
+ "type": "text",
1483
+ "text": "Vassil Panayotov, Guoguo Chen, Daniel Povey, and Sanjeev Khudanpur. Librispeech: an ASR corpus based on public domain audio books. In Proceedings of the International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2015. ",
1484
+ "bbox": [
1485
+ 174,
1486
+ 309,
1487
+ 823,
1488
+ 353
1489
+ ],
1490
+ "page_idx": 13
1491
+ },
1492
+ {
1493
+ "type": "text",
1494
+ "text": "Jose Sotelo, Soroush Mehri, Kundan Kumar, Joao Felipe Santos, Kyle Kastner, Aaron Courville, and Yoshua Bengio. Char2wav: End-to-end speech synthesis. In ICLR workshop, 2017. ",
1495
+ "bbox": [
1496
+ 173,
1497
+ 361,
1498
+ 825,
1499
+ 390
1500
+ ],
1501
+ "page_idx": 13
1502
+ },
1503
+ {
1504
+ "type": "text",
1505
+ "text": "Rupesh K Srivastava, Klaus Greff, and Jürgen Schmidhuber. Training very deep networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2377–2385. Curran Associates, Inc., 2015. URL http: //papers.nips.cc/paper/5850-training-very-deep-networks.pdf. ",
1506
+ "bbox": [
1507
+ 173,
1508
+ 398,
1509
+ 826,
1510
+ 457
1511
+ ],
1512
+ "page_idx": 13
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Neural Information Processing Systems (NIPS). 2015. ",
1517
+ "bbox": [
1518
+ 176,
1519
+ 464,
1520
+ 825,
1521
+ 507
1522
+ ],
1523
+ "page_idx": 13
1524
+ },
1525
+ {
1526
+ "type": "text",
1527
+ "text": "Christophe Veaux, Junichi Yamagishi, Kirsten MacDonald, et al. CSTR VCTK Corpus: English multi-speaker corpus for CSTR voice cloning toolkit, 2017. ",
1528
+ "bbox": [
1529
+ 171,
1530
+ 515,
1531
+ 825,
1532
+ 545
1533
+ ],
1534
+ "page_idx": 13
1535
+ },
1536
+ {
1537
+ "type": "text",
1538
+ "text": "Yuxuan Wang, RJ Skerry-Ryan, Daisy Stanton, Yonghui Wu, Ron J Weiss, Navdeep Jaitly, Zongheng Yang, Ying Xiao, Zhifeng Chen, Samy Bengio, et al. Tacotron: A fully end-to-end text-to-speech synthesis model. arXiv preprint arXiv:1703.10135, 2017. ",
1539
+ "bbox": [
1540
+ 174,
1541
+ 553,
1542
+ 825,
1543
+ 597
1544
+ ],
1545
+ "page_idx": 13
1546
+ },
1547
+ {
1548
+ "type": "text",
1549
+ "text": "Robert L Weide. The CMU pronouncing dictionary. URL: http://www. speech. cs. cmu. edu/cgibin/cmudict, 1998. ",
1550
+ "bbox": [
1551
+ 169,
1552
+ 604,
1553
+ 825,
1554
+ 633
1555
+ ],
1556
+ "page_idx": 13
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "Zhizheng Wu, Oliver Watts, and Simon King. Merlin: An Open Source Neural Network Speech Synthesis System, pp. 218–223. 9 2016. ",
1561
+ "bbox": [
1562
+ 169,
1563
+ 642,
1564
+ 823,
1565
+ 672
1566
+ ],
1567
+ "page_idx": 13
1568
+ },
1569
+ {
1570
+ "type": "text",
1571
+ "text": "Heiga Zen, Keiichi Tokuda, and Alan W. Black. Statistical parametric speech synthesis. Speech Communication, 51(11):1039 – 1064, 2009. ",
1572
+ "bbox": [
1573
+ 171,
1574
+ 680,
1575
+ 823,
1576
+ 710
1577
+ ],
1578
+ "page_idx": 13
1579
+ }
1580
+ ]
parse/train/SkFAWax0-/SkFAWax0-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SkFAWax0-/SkFAWax0-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ajOrOhQOsYx/ajOrOhQOsYx.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/tjdHCnPqoo/tjdHCnPqoo.md ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Is Automated Topic Model Evaluation Broken?: The Incoherence of Coherence
2
+
3
+ # Alexander Hoyle∗
4
+
5
+ Pranav Goel∗
6
+
7
+ Denis Peskov∗
8
+
9
+ Computer Science
10
+
11
+ Andrew Hian-Cheong∗
12
+
13
+ Jordan Boyd-Graber
14
+
15
+ Philip Resnik
16
+
17
+ CS, iSchool, UMIACS, LSC UMIACS, Lingusitics
18
+
19
+ University of Maryland {hoyle,pgoel1,dpeskov,andrewhc,jbg,resnik}@cs.umd.edu
20
+
21
+ # Abstract
22
+
23
+ Topic model evaluation, like evaluation of other unsupervised methods, can be contentious. However, the field has coalesced around automated estimates of topic coherence, which rely on the frequency of word co-occurrences in a reference corpus. Contemporary neural topic models surpass classical ones according to these metrics. At the same time, topic model evaluation suffers from a validation gap: automated coherence, developed for classical models, has not been validated using human experimentation for neural models. In addition, a meta-analysis of topic modeling literature reveals a substantial standardization ${ g a p }$ in automated topic modeling benchmarks. To address the validation gap, we compare automated coherence with the two most widely accepted human judgment tasks: topic rating and word intrusion. To address the standardization gap, we systematically evaluate a dominant classical model and two state-of-the-art neural models on two commonly used datasets. Automated evaluations declare a winning model when corresponding human evaluations do not, calling into question the validity of fully automatic evaluations independent of human judgments.
24
+
25
+ # 1 Revisiting Topic Model Evaluation
26
+
27
+ Topic models are a machine learning technique widely used outside computer science, including political science (Grimmer and Stewart, 2013; Isoaho et al., 2021), social and cultural studies (Mohr and Bogdanov, 2013), digital humanities (Meeks and Weingart, 2012), and bioinformatics (Liu et al., 2016). Typically, topic model users are domain experts trying to identify global categories or themes present in a document collection (Boyd-Graber et al., 2017). This practice constitutes a computer-assisted form of content analysis (Krippendorff, 2004; Chuang et al., 2014), also related to distant reading in literary studies (Underwood, 2017). In general, topic models help humans understand large corpora.2
28
+
29
+ Evaluation of topic models has vacillated between automated and human-centered. While real-world users of topic models evaluate outputs based on their specific needs, topic model developers have gravitated toward generalized, automated proxies of human judgment to help inform rapid iteration of models (Doogan and Buntine, 2021). Initially, models were evaluated with held-out perplexity, but it disagrees with human interpretability (Chang et al., 2009). Consequently, the field adopted automated coherence metrics like normalized pointwise mutual information (NPMI), a measure of word relatedness that does correlate with topic interpretability (Section 2.2; Newman et al., 2010; Aletras and Stevenson, 2013; Lau et al., 2014). The balance shifted towards automated coherence.
30
+
31
+ Human evaluations have been abandoned by topic model developers in the years since automated coherence metrics were adopted. In a thorough meta-analysis of contemporary topic model methods papers, none conduct systematic human evaluations (Section 3). Instead, they rely solely on automated metrics for model comparison.3 However, current neural topic models are a far cry from the classical models that substantiated the original correlations—manifestly, topics produced by neural models are often qualitatively distinct from those of classical models (e.g., Table 1).4 This validation gap raises the question of whether automated metrics are still consistent with human judgments of topic quality.
32
+
33
+ <table><tr><td></td><td colspan="3">Classical</td><td colspan="3">Neural</td></tr><tr><td></td><td>station line bridge railway trains</td><td>album band music song released</td><td>tropical storm hurricane cyclone depression</td><td>tropical landfall cyclone utc weakening</td><td>spore basidia spores mycologist hyphae</td><td>manhattan_project los_alamos_laboratory robert_oppenheimer enrico_fermi physicist</td></tr><tr><td>NPMI</td><td>0.274</td><td>0.285</td><td>0.394</td><td>0.446</td><td>0.456</td><td>0.470</td></tr></table>
34
+
35
+ Table 1: The first three columns are the highest-NPMI topics for a classical topic model (LDA estimated via Gibbs sampling using Mallet, McCallum, 2002; Griffiths and Steyvers, 2004). The next three are counterparts from a neural model (our D-VAE reimplementation, Burkhardt and Kramer, 2019). Models are trained on Wikitext (Merity et al., 2017) with fifty topics, and NPMI is estimated over the top five words in each topic using a 4.6M-document reference Wikipedia corpus. The mean top-five NPMI over all topics is 0.156 for the classical and 0.256 for the neural model.
36
+
37
+ Moreover, we should always be cautious when extrapolating outside the range of data that was used to establish a relationship between variables. As an example, a neural model in Hoyle et al. (2020) produces much larger NPMI values than those used to determine human correlations in the original Lau et al. (2014) study; the implicit assumption is that greater NPMI corresponds to more humaninterpretable topics. Finally, a myopic focus on a presumed proxy for human preferences can produce low-quality results (Stiennon et al., 2020). Does Goodharts’ law—“when a measure becomes a target, it ceases to be a good measure” (Strathern, 1997)—apply to automated metrics of topic models?
38
+
39
+ Another challenge for automated evaluation, whether of classical or neural topic models, is widespread inconsistency (Section 3). Researchers frequently fail to specify the information needed to calculate automated metrics or diverge from the practices that underpin human correlations. Furthermore, evaluation datasets, preprocessing, and hyperparameter optimization vary dramatically, even within a given paper. This standardization gap likely limits the generalizability and reliability of topic model developers’ findings.
40
+
41
+ We address the standardization and validation gaps in topic model evaluation:
42
+
43
+ 1. We present a meta-analysis of neural topic model evaluation (Section 3);
44
+ 2. we develop standardized, pre-processed versions of two widely-used English-language evaluation datasets, along with a transparent end-to-end code pipeline for reproduction of results (Section 4.1)5;
45
+ 3. we optimize three topic models—one classical and two neural—using identical preprocessing, model selection criteria, and hyperparameter tuning (Section 4.2);
46
+ 4. we evaluate these models using human ratings and word intrusion tasks (Section 5); and
47
+ 5. we provide new evaluations of the correlation between automated and human evaluations (Section 6).
48
+
49
+ Our findings challenge the validity of fully-automated evaluations as currently practiced: automated evaluation declares winners between models when the corresponding human evaluations cannot.
50
+
51
+ # 2 Operationalizing Topic Coherence
52
+
53
+ A topic model is a probabilistic generative model of text that uses latent topics to summarize a larger collection of documents. The most influential variant, latent Dirichlet allocation (Blei et al., 2003, LDA), assumes that $K$ latent topics are distributions over word types, $\beta _ { k }$ , and that the documents $\mathcal { D }$ are admixtures over the topics, $\theta _ { d }$ . Users often evaluate model outputs globally, focusing on the most probable $N$ words of each topic, and locally, considering the most probable topics for each document.
54
+
55
+ While techniques for topic modeling have progressed from variational inference (Blei et al., 2003) to Gibbs sampling (Griffiths and Steyvers, 2004) to deep generative approaches (Srivastava and Sutton, 2017; Wang et al., 2020b), the core goal discussed in Section 1, obtaining human-understandable categories, remains central. The latest wave of methods, neural topic models (NTM), use continuous word representations and gradient optimization to fit parameters. These models claim to produce more interpretable topics than other prior methods, including LDA.
56
+
57
+ Those claims are supported by improvements on automated measures of topic coherence.
58
+
59
+ # 2.1 Human Metrics of Topic Coherence
60
+
61
+ Like the concept of interpretability, that of real-world coherence is “simultaneously important and slippery” (Lipton, 2018). We will not attempt to formalize it here—though see discussion in Section 7. For present purposes, the term has its roots in Latin cohaerere, “to stick together,” and we will think of coherence as an intangible sense, available to human readers, that a set of terms, when viewed together, enable human recognition of an identifiable category.6 We review two human ratings of topic quality: direct ratings and intrusion.
62
+
63
+ Rating Raters see a topic and then give the topic a quality score, conventionally on a three-point ordinal scale (Newman et al., 2010; Mimno et al., 2011; Aletras and Stevenson, 2013, inter alia).
64
+
65
+ Intrusion Chang et al. (2009) devise the word intrusion task as a behavioral way to assess topic coherence. The core idea is that when the top words in a topic identify a coherent latent category, it is easier to identify words that do not belong to that category. Operationally, each topic is represented as its top words plus one “intruder” word which has a low probability of belonging to that topic, but a high probability of belonging to a different topic. Topic coherence is then judged by how well human annotators detect the “intruder” word.
66
+
67
+ # 2.2 NPMI: The Standard Automated Topic Model Coherence Evaluation
68
+
69
+ Using the word intrusion task, Chang et al. (2009) showed that perplexity—the original topic model evaluation metric—negatively correlates with human evaluations of topic quality. This finding revealed a need for an automated measurement of topic coherence: an automated metric can measure model quality without expensive, time-consuming, and difficult-to-reproduce human experiments.
70
+
71
+ Lau et al. (2014) find some metrics that positively correlate with human intrusion and rating scores, particularly when aggregating scores over all topics from a given model. Because of that validation, the prevailing evaluation for model comparison is pairwise normalized pointwise mutual information. NPMI scores topics highly if the top $N$ words—summed over all pairs $w _ { i }$ and $w _ { j }$ —have high joint probability $P ( w _ { j } , w _ { i } )$ compared to their marginal probability:7
72
+
73
+ $$
74
+ \sum _ { j = 2 } ^ { N } \sum _ { i = 1 } ^ { j - 1 } \frac { l o g \frac { P ( w _ { j } , w _ { i } ) } { P ( w _ { i } ) P ( w _ { j } ) } } { - l o g P ( w _ { i } , w _ { j } ) } .
75
+ $$
76
+
77
+ The probabilities are estimated using word co-occurrence counts from a reference corpus for a specific context window (which can range from ten words to the entire document). As a result, the choice of reference corpus determines the strength of human correlation (Lau et al., 2014; Röder et al., 2015).
78
+
79
+ <table><tr><td>Experimentation</td><td>Count</td><td></td></tr><tr><td>Preprocessing</td><td></td><td></td></tr><tr><td>Inconsistent over datasets</td><td>12</td><td>(30%)</td></tr><tr><td>Ambiguous preprocessing</td><td>9</td><td>(23%)</td></tr><tr><td>Model comparisons</td><td></td><td></td></tr><tr><td>All models tuned</td><td>5</td><td>(13%)</td></tr><tr><td>Unclearh.paramsearch</td><td>16</td><td>(40%)</td></tr><tr><td>UnclearLDA baseline,if used</td><td>7</td><td>(24%)</td></tr><tr><td>Recent baseline (w/in 2 yrs)</td><td>31</td><td>(78%)</td></tr><tr><td>Multiple runs /sig. testing</td><td>11</td><td>(28%)</td></tr></table>
80
+
81
+ Table 2: Meta-analysis of forty neural topic modeling papers (denominator may change, as not all conditions are applicable). No recent neural topic modeling papers use human evaluations of coherence, and the metrics and models are difficult to replicate.
82
+
83
+ <table><tr><td>Evaluation</td><td colspan="2">Count</td></tr><tr><td>Number of human evaluations AutomatedCoherence</td><td>0</td><td>(0%)</td></tr><tr><td>Metric NPMI</td><td>26</td><td>(72%)</td></tr><tr><td>Other</td><td>22</td><td>(61%)</td></tr><tr><td>Explicit implementation</td><td>22</td><td>(61%)</td></tr><tr><td>Explicit ref. corpus</td><td>10</td><td>(28%)</td></tr><tr><td>Perplexity w/o coherence</td><td>3</td><td>(8%)</td></tr></table>
84
+
85
+ A measurement is valid to the extent that it measures what it is intended to measure in the real world. Historically, automated coherence has been validated using human judgements from either crowdworkers (Newman et al., 2010; Aletras and Stevenson, 2013) or experts (Mimno et al., 2011). However, correlations based on classical models may not be applicable for NTMs. Our skepticism is motivated by theory, as neural word representations are intimately connected to NPMI, as explicitly used by Aletras and Stevenson (2013) and which produce similar NPMI scores as Lau et al. (2014). Levy and Goldberg (2014) show that multiple representations create factorizations of PMI matrices. Topic models that have access to these rich representations (e.g. Dieng et al., 2020, and others) could thus create topics with good NPMI scores without explaining the corpus well to a user. In contrast to classical topic models, no one has investigated the validity of NPMI evaluation for NTMs.
86
+
87
+ Given this lacuna, we conduct experiments aimed at validating that automated topic evaluations still correlate with human judgments of neural topic model quality. We compare against two common human evaluations of individual topic quality: direct rating and intrusion. Human evaluations, like automated topic modeling, lack standardization, which we address in Section 5.
88
+
89
+ # 3 A Meta-Analysis of Neural Topic Modeling
90
+
91
+ We survey the neural topic modeling (NTM) literature to assess the state of evaluation in contemporary topic model development. First, we take all references made by an existing, comprehensive survey of NTMs (Zhao et al., 2021b), from which we select (a) modeling papers which (b) mention topic interpretability and (c) compare models’ topics with an existing baseline. This yields forty models, which all claim superior topic coherence. We examine data processing steps, hyperparameter tuning, baseline selection, and automated coherence calculations. Table 2 summarizes our results and Appendix A.1 enumerates the papers.
92
+
93
+ Our analysis reveals variance in all areas. Preprocessing, which can significantly affect model quality and automated metrics, is often $( 3 0 \% )$ inconsistent across datasets within the same paper. When preprocessing is consistent, authors omit details necessary to fully replicate the pipeline. These issues imply that automated metrics for the same baselines and source datasets vary across papers. Compounding the problem, researchers often train their models on different datasets from those used to establish the relationships between human annotations and automated metrics; Doogan and Buntine (2021) find that the same metrics may not predict interpretability in new domains. Mirroring findings from Dodge et al. (2019), $40 \%$ of papers fail to clearly specify their model tuning procedure, often even the metric used for model selection.
94
+
95
+ Calculation of automated coherence metrics is equally fraught. As discussed in Section 2.2, a complete specification for NPMI involves several pieces of information, including the reference corpus used to estimate joint word probabilities, the co-occurrence window size, and the number of words selected from the head of the topic distribution. Three out of four papers fail to explicitly indicate the reference corpus; even when we can assume the input corpus is used (13 cases), it remains uncertain whether authors use, e.g., a held-out set or the training documents themselves. For the $61 \%$ that specify the implementation of their coherence metric (by pointing to a code repository or writing out the formula), some of these factors may still be in question. For instance, six authors reference Lau et al. (2014) and the supporting code,8 but the implications are ambiguous: the original paper suggests a large corpus from the same source as the training data, but the repository script defaults to Wikipedia. In other cases, authors use bespoke implementations, which creates room for errors, or deviate from the settings used in human experiments. For example, several papers use a document-wide context window with NPMI, which has not been correlated with human judgments.
96
+
97
+ Last, even $i f$ automated evaluations are consistent, all claims of coherence improvement depend on the validity results in Lau et al. (2014) generalizing to neural topic models.
98
+
99
+ # 4 Closing the Standardization Gap for Topic Models
100
+
101
+ Our human evaluation of topic model outputs serves multiple purposes: (a) establishing whether NTMs show improved coherence over a classical baseline and (b) re-evaluating the efficacy and reliability of automated coherence metrics. In addition, a key goal is (c) to provide a standardized preprocessing pipeline to support head-to-head comparisons as new methods are developed.9
102
+
103
+ We identify two commonly-used datasets, which we in turn process using a standard pipeline. We then estimate topic models on each dataset following a computationally fair hyperparameter search. Our standardization efforts are similar to concurrent work by Terragni et al. (2021); the main differences are that we (a) mandate consistent preprocessing between training and reference corpora, (b) support multi-word expressions during vocabulary creation (see below), and (c) support distributed hyperparameter searches.
104
+
105
+ # 4.1 Datasets and Preprocessing
106
+
107
+ Following Chang et al. (2009), we use English articles from Wikipedia and the New York Times (Table 7). For Wikipedia, we use Wikitext-103 (WIKI, Merity et al., 2017), and for the Times, we subsample roughly $15 \%$ of documents from LDC2008T19 (NYT, Sandhaus, 2008), making it an order of magnitude larger than WIKI. To compute reference counts, we use a 4.6M document Wikipedia dump from September 2017 and the full 1.8M document LDC2008T19 set, processed identically to the training data.
108
+
109
+ We use SpaCy (Honnibal et al., 2020) to tokenize and identify entities in the text. We create new tokens for detected entities of the form New_York_City, per Krasnashchok and Jouili (2018). Schofield and Mimno (2016) find that lemmatization and word-stemming can hurt English topic interpretability, so we do not lemmatize. To maintain a roughly equal vocabulary size over datasets, we use a power-law relationship of corpus size (c.f. Zipf, 1949) to rule out tokens occurring in fewer than a given number of documents.10 In addition to a standard stopword list, we define corpus-specific stopwords as tokens appearing in more than $90 \%$ of documents. See Appendix A.2 for complete preprocessing details.
110
+
111
+ # 4.2 Models
112
+
113
+ We evaluate one venerable classical model and two newer neural models:
114
+
115
+ Gibbs-LDA As a strong classical baseline, we use the widely-loved Mallet (McCallum, 2002) implementation of Gibbs-sampling for LDA (Griffiths and Steyvers, 2004). Mallet produces topics of (qualitatively) competitive quality to neural models (Srivastava and Sutton, 2017).
116
+
117
+ Dirichlet-VAE We reimplement Dirichlet-VAE (Burkhardt and Kramer, 2019), a state-of-the-art NTM. For simplicitly, we use pathwise gradients for the Dirichlet (Jankowiak and Obermeyer, 2018), rather than the rejection sampling variational inference of the authors’ primary variant.11 DirichletVAE is a wholesale improvement on one of the first successful NTMs, the popular ProdLDA (Srivastava and Sutton, 2017), and is competitive against recent models on automated coherence. The generative
118
+
119
+ ![](images/b78bf2833c66347f64516d418b096007d4f44b4af7667f0dc917e03dd66a25a5.jpg)
120
+
121
+ Figure 1: The word intrusion task presented to crowdworkers (the ratings task is in Appendix A.4).
122
+
123
+ model is simple and retains a broad similarity to LDA. The primary difference is that it does not constrain the estimated topic-word distributions to the simplex.
124
+
125
+ ETM Thanks to their improved flexiblity, many NTMs incorporate external word representations, on the premise that large-scale, general language knowledge improves topic quality (Bianchi et al., 2021; Hoyle et al., 2020). The Embedded Topic Model (Dieng et al., 2020) is a popular NTM that relies on word embeddings in its generative model.12
126
+
127
+ We maintain a fixed computational budget per model following the exhortation of Dodge et al. (2019) and use a random set of 164 hyperparameter settings across datasets for each model type.13 We train models for a variable number of steps (a hyperparameter); to calculate automated coherence for the model, we use the topics produced at the last step. For human evaluations, we select the models that maximize NPMI, estimated using the reference corpus with a ten-word window over the top ten topic words, per Lau et al. (2014). We follow the recommendation of Dieng et al. (2020) and learn skip-gram embeddings on the training corpus for ETM (experiments with external pretrained embeddings did not yield substantially different results). As in Hoyle et al. (2020), we eliminate models with highly redundant topics, a known degeneracy of NTMs (Burkhardt and Kramer, 2019): (a) models in which any of the top five words of one topic overlap with another and (b) models that have a topic uniqueness score (Nan et al., 2019) above 0.7. Ranges for hyperparameters and other details are in Appendix A.3.
128
+
129
+ # 5 Human Evaluations of Topic Quality
130
+
131
+ We use the ratings and word intrusion tasks from Section 2.2 as human evaluations of topic quality. We recruit crowdworkers using Prolific.co, an online panel provider and collect data with the Qualtrics survey platform. We pay workers 2.5 USD per ratings survey and 3 USD per word intrusion survey, equivalent to 15 USD/hour.
132
+
133
+ In order to draw meaningful conclusions from human annotations, we require an adequate number of participants to ensure acceptable statistical power. However, Card et al. (2020) show that many NLP experiments, including those relying on human evaluation, are insufficiently powered to detect model differences at reported levels. Adopting a straightforward generative model of annotations (Appendix A.5), we select enough crowdworkers per task to ensure sufficient statistical power (at least $1 - \beta = 0 . 9 ,$ ) to obtain significance at $\alpha = 0 . 0 5$ , resulting in a minimum of fifteen crowdworkers per topic for both tasks. On this criterion, both Chang et al. (2009) and thus Lau et al. (2014), with eight annotators, are underpowered.
134
+
135
+ For each of our two datasets, we generate fifty topics each from the three models in Section 4.2. In the word intrusion task, we sample five of the top ten topic words plus one intruder; for the ratings task, we present the top ten words in order (Figure 4). We separate the datasets for each task and randomly sample 40 of the 150 topics. In the ratings task, we include an additional sixteen synthetic poor-quality topics to help calibrate scores and filter out low-quality respondents.14
136
+
137
+ ![](images/d4b91800d9e7b7ff7997c7159fa9a556a5d2a977b8f0c42eea33a90c0248c366.jpg)
138
+ Figure 2: While automated evaluations (here, NPMI) suggest a clear winner between models, human evaluation is more nuanced. Human judgments exhibit greater variability over a smaller range of values. Colored circles correspond to pairwise one-tailed significance tests between model scores at $\alpha = 0 . 0 5$ ; for example, the rightmost orange circle at bottom right shows that human intrusion ratings for D-VAE are significantly higher than ETM for topics derived from Wikipedia.
139
+
140
+ Phrasing of questions closely follows the wording used by Chang et al. (2009), and crowdworkers received detailed instructions with examples (Appendix A.4) before responding to items.15 As topics can be esoteric (e.g., last columns of Table 1), we ask crowdworkers about their familiarity with the words in each question. We speculate that this question can help protect against spurious low scores for otherwise coherent topics, as real-world users of topic models are usually familiar with domain-specific terminology (see further discussion in Section 7).
141
+
142
+ # 6 Human Judgment Differs From Automated Metrics
143
+
144
+ We compare human judgments to automated methods on topics estimated using our three models.
145
+
146
+ # 6.1 Human Assessment
147
+
148
+ To establish model differences using human ratings, we use pairwise significance tests: a proportion test for the intrusion scores, a $U$ test (Mann and Whitney, 1947) for the ratings, and a $t$ -test for automated metrics (Figure 2), using one-tailed tests for each pair in both directions. Although D-VAE fares better on the intrusion task, evaluation using ratings favors G-LDA.16
149
+
150
+ Our human evaluation results are consistent with past iterations of the ratings and word intrusion tasks for topic models. Mimno et al. (2011) report an average of 2.36 on the ratings task on a dataset of medical paper abstracts.17 Our ratings means are 2.5 to 2.8 across all variations (Figure 2). Our word intrusion means range from 0.7 to 0.8, which is comparable to the roughly 0.8 accuracy on the LDA model evaluated in Chang et al. (2009). Median time taken on the tasks was 8–9 minutes.
151
+
152
+ Table 3: Spearman correlation coefficients between mean human scores and automated metrics. Underlined values have overlapping bootstrapped $9 5 \%$ confidence intervals with that of the largest value in each row. “Concatenated” refers to correlations computed on a concatenation of values for the NYT and WIKI items. “Val” is a small held-out set of $15 \%$ of the training corpus. Using the more data-appropriate logistic and ordered probit regressions for word intrusion and ratings data leads to different conclusions about relative metric strength (Appendix Table 10). CIs are estimated using 1,000 samples.
153
+
154
+ <table><tr><td rowspan="2"></td><td rowspan="2">Ref. Corpus→ Train Corpus↓</td><td colspan="4">NPMI (10-token window)</td><td colspan="4">Cu (110-token window)</td></tr><tr><td>NYT</td><td>WIKI</td><td>Train</td><td>Val</td><td>NYT</td><td>WIKI</td><td>Train</td><td>Val</td></tr><tr><td>Intrusion</td><td>NYT</td><td>0.27</td><td>0.43</td><td>0.27</td><td>0.24</td><td>0.34</td><td>0.45</td><td>0.35</td><td>0.34</td></tr><tr><td></td><td>WIKI</td><td>0.34</td><td>0.36</td><td>0.39</td><td>0.17</td><td>0.32</td><td>0.34</td><td>0.34</td><td>0.20</td></tr><tr><td></td><td>Concatenated</td><td>0.29</td><td>0.40</td><td>0.32</td><td>0.17</td><td>0.32</td><td>0.40</td><td>0.35</td><td>0.24</td></tr><tr><td>Rating</td><td>NYT</td><td>0.37</td><td>0.48</td><td>0.37</td><td>0.39</td><td>0.41</td><td>0.46</td><td>0.44</td><td>0.45</td></tr><tr><td></td><td>WIKI</td><td>0.34</td><td>0.41</td><td>0.44</td><td>0.28</td><td>0.32</td><td>0.40</td><td>0.40</td><td>0.34</td></tr><tr><td></td><td>Concatenated</td><td>0.37</td><td>0.44</td><td>0.41</td><td>0.35</td><td>0.38</td><td>0.42</td><td>0.42</td><td>0.42</td></tr></table>
155
+
156
+ Following Aletras and Stevenson (2013), we calculate inter-annotator agreement with the mean Spearman correlation between each respondent’s score per topic and the average of other respondent scores, obtaining a value of 0.75 (compare to their value of 0.7 on the NYT corpus). Additionally, we include synthetic poor-quality topics (footnote 14)—correctly identified by annotators—and we monitor the duration taken for the survey to hedge against insincere submissions.
157
+
158
+ # 6.2 Automated Metrics
159
+
160
+ NPMI declares D-VAE the unequivocal victor among the three models (with G-LDA a clear second), a very different story from the human judgments. To understand the relationship between automated metrics and human ratings, we estimate the Spearman correlation between the two sets of values for each task and dataset for metric variants (Table 3). Although previous studies have used mean human ratings over topics, this decision obscures the inherent variance of the human ratings and leads to overconfident estimates. We therefore construct $9 5 \%$ confidence intervals by resampling ratings, with replacement, equal to the number of annotators per task (Table 3). We estimate NPMI with the standard 10-word window and $C _ { v }$ (Röder et al., 2015) with the recommended 110-word window.18 The Wikipedia corpus appears to be best correlated with human judgments, even for the models trained on the NYT corpus—this contradicts Lau et al. (2014), where within-domain data have the highest correlations.
161
+
162
+ While all correlation coefficients are statistically significant, the strength of the correlation alone does not justify their use in model selection, as is standard in the NTM literature (Section 3). In particular, the inherent uncertainty of human judgments means that it is difficult to determine when an increase in a model’s mean automated coherence implies a significant improvement in the corresponding human scores.19
163
+
164
+ As noted above (Figure 2), automated metrics exaggerate model differences compared to human judgments. To help clarify the utility of automated metrics for model selection, we ask how often an automated metric incorrectly asserts that one model is superior to another. To do so, we generate a bootstrapped estimate of the false discovery rate of each model. First, for each dataset, we randomly sample two independent sets of $K = 5 0$ topics (without replacement) from the original pool of 150, along with their corresponding automated and human scores (resampled with replacement, as in Table 3). Treating the two sampled sets as outputs from two different models, we compute pairwise significance tests between each set for both the $K$ automated metrics and $K \times M$ human scores (using a proportions $z$ -test for the intrusion scores and $t$ -tests for all other values). After repeating this process for $N = 1 0 0 0$ iterations, we report the proportion of significant differences detected using
165
+
166
+ <table><tr><td rowspan="2"></td><td rowspan="2">Ref. Corpus→ Train Corpus ↓</td><td colspan="3">NPMI (10-token window)</td><td colspan="3">Cu (110-token window)</td></tr><tr><td>NYT</td><td>WIKI</td><td>Train</td><td>NYT</td><td>WIKI</td><td>Train</td></tr><tr><td>Intrusion</td><td>NYT</td><td>46/53</td><td>34/48</td><td>48/50</td><td>35/38</td><td>30 /29</td><td>34/35</td></tr><tr><td rowspan="4">Rating</td><td>WIKI</td><td>44/76</td><td>33/78</td><td>33/75</td><td>45/48</td><td>38/49</td><td>37 /45</td></tr><tr><td>Concatenated</td><td>42/67</td><td>40/66</td><td>41/64</td><td>36/46</td><td>31/44</td><td>30/45</td></tr><tr><td>NYT</td><td>45/50</td><td>45/51</td><td>41/47</td><td>27/29</td><td>26/26</td><td>21/26</td></tr><tr><td>WIKI</td><td>40/73</td><td>31/73</td><td>33/71</td><td>38/40</td><td>31/40</td><td>28 /34</td></tr><tr><td></td><td>Concatenated</td><td>39 /66</td><td>36/66</td><td>37/62</td><td>31/38</td><td>28/38</td><td>19 /36</td></tr></table>
167
+
168
+ Table 4: False discovery rate (1−precision, lower is better) and false omission rate of significant model differences when using automated metrics; automated metrics often overstate meaningful model differences. Bolded values are those with the lowest geometric mean of FDR and FOR. We sample two independent sets of 50 topics along with their human scores and automated metrics; these sets act as the outputs of two “models”. We then compute significance tests between sets (per Figure 2) on both the automated scores and human scores. A false positive occurs when one set has significantly larger automated scores despite no meaningful difference in actual human scores. Estimates are over 1,000 samples.
169
+
170
+ ![](images/7c93a79f520ef9c7705d69318a21f9cbb9c645542c5025b7c7b1f9c5756e0d16.jpg)
171
+ Figure 3: Mean human evaluation on the ratings and word intrusion tasks, after filtering out respondents who reported a lack of familiarity with the topic words. When filtering, D-VAE scores improve, highlighting its tendency to produce esoteric topics.
172
+
173
+ the predicted scores despite equivalent human scores (after correcting for the probability of type I errors, $\alpha = 0 . 0 5$ ).20 Even the best-performing automated metrics predict significant differences absent a meaningful human effect roughly one-fifth of the time (Table 4).
174
+
175
+ These results suggest that automated metrics alone may be inadequate for model comparison.
176
+
177
+ # 6.3 Explaining the discrepancy
178
+
179
+ One reason for the discrepancy between human judgments and automated metrics is that metrics favor more esoteric topics. Specifically, there is a significant negative correlation between a topic’s NPMI or $C _ { v }$ and the share of respondents reporting familiarity with topic words (Pearson’s $\rho = - 0 . 2 9 )$ . And while D-VAE achieves the highest automated metric scores of the three models, it produces topics with the fewest familiar words: respondents report familiarity with terms over $90 \%$ of the time on both tasks for G-LDA and ETM, but they do so only $70 \%$ of the time for D-VAE. This difference suggests that the topics selected by D-VAE are narrower in scope than those of the other models. As shown in Figure 3, removing item annotations where respondents indicate unfamiliarity causes both accuracy in the word intrusion task and the ratio of “Very related” terms in the ratings task for D-VAE to increase substantially.
180
+
181
+ Qualitatively, this result is apparent when examining topics with a high NPMI but low humans ratings. In Table 5, the top rows consists of financial terms that frequently appear together in NYT articles,
182
+
183
+ <table><tr><td>Data</td><td>Model</td><td>Topic</td><td>NPMI</td><td>Rat.</td><td>Int.</td></tr><tr><td>NYT</td><td>D-VAE</td><td>inc 6mo earns otc rev qtr 9mo nyse outst dec</td><td>0.56</td><td>1.60</td><td>0.77</td></tr><tr><td>WIKI</td><td>D-VAE</td><td>Waterline conning turrets boilers amidships aft knots armament guns mounts</td><td>0.33</td><td>1.93</td><td>0.65</td></tr><tr><td>NYT</td><td>G-LDA</td><td>bedroom room bath taxes year market listed kitchen broker weeks</td><td>0.30</td><td>2.00</td><td>0.23</td></tr><tr><td>NYT</td><td>D-VAE</td><td>condolences mourns mourn board_of_directors heartfelt deepest esteemed</td><td>0.38</td><td>2.60</td><td>0.23</td></tr><tr><td>NYT</td><td>D-VAE</td><td>shareholders earnings federated mci shares takeover new_york_stock_exchange</td><td>0.18</td><td>3.00</td><td>0.81</td></tr><tr><td>WIKI</td><td>D-VAE</td><td>continental_army expedition militia frigate musket frigates muskets skirmish</td><td>0.11</td><td>3.00</td><td>0.69</td></tr><tr><td>NYT</td><td>D-VAE</td><td>medicaid medicare hospitals welfare uninsured patients</td><td>0.13</td><td>2.80</td><td>0.96</td></tr><tr><td>NYT</td><td>G-LDA</td><td>city mayor state new_york new_york_city officials county yesterday governor</td><td>0.09</td><td>2.53</td><td>1.00</td></tr></table>
184
+
185
+ Table 5: Topics with the largest human–NPMI discrepancies; top half are topics where NPMI is high and human preferences are low, bottom half is the reverse. NPMI favors esoteric and corpus-specific topics. NPMI is calculated with a 10-token sliding window over the in-domain reference corpus, Rat. is the average 3-point rating for a topic, and Int. refers to the percentage of annotators who identify the intruder word.
186
+
187
+ and the second row contains rare terms about boating—arguably both are reasonable topics for their respective corpora. We can also see instances where words are qualitatively very related (bottom half of table), but that NPMI fails to score high—perhaps because these words, while related, may not frequently appear together within a ten-word sliding window (Equation 1).
188
+
189
+ Even for familiar words, some topics may be sensible in the context of the specific corpus, despite their component words lacking an immediately obvious semantic relationship. For example, the topic words in the third and fourth rows appear somewhat unrelated (e.g., “taxes” and “bedroom” in the third row), but they are in fact characteristic of common document types in the New York Times: real estate listings and obituaries. Topics like these render the word intrusion task more difficult: only $23 \%$ of crowdworkers identified the intruder for both topics.
190
+
191
+ Furthermore, using term familiarity as a proxy for domain expertise does not address the key problems with topic model evaluation: even after filtering out respondents who are not familiar with topic terms, automated metrics still overstate model differences (Appendix A.7). The problems with topic model evaluation may therefore extend to our choice of human evaluations as well.
192
+
193
+ # 7 So. . . is Automated Topic Modeling Evaluation Broken?
194
+
195
+ To the extent that our experimentation accurately represents current practice, our results do suggest that topic model evaluation—both automated and human—is overdue for a careful reconsideration. In this, we agree with Doogan and Buntine (2021), who write that “coherence measures designed for older models [. . . ] may be incompatible with newer models” and instead argue for evaluation paradigms centered on corpus exploration and labeling. The right starting point for this reassessment is the recognition that both automated and human evaluations are abstractions of a real-world problem. The familiar use of precision-at-10 in information retrieval, for example, corresponds to a user who is only willing to consider the top ten retrieved documents. In future work, we intend to explore automated metrics that better approximate the preferences of real-world topic model users.
196
+
197
+ One primary use of topic models is in computer-assisted content analysis. In that context, rather than taking a methods-driven approach to evaluation, it would make sense to take a needs-driven approach.21 Generic evaluation of topic models using domain-general corpora like NYT needs to be revisited, since there is no such thing as a “generic” corpus for content analysis, nor a generic analyst. Content analysis can be formulated in a broad way, as Krippendorff (2004) has shown, but its actual application is always in a domain, by people familiar with that domain. This fact stands in tension with the desirable practicalities of general corpora and crowdworker annotation, and the field will need to address this tension. We have identified “coherence” as calling out a latent concept in the mind of a reader. It follows that we must think about who the relevant human readers are and the conceptual spaces that matter to them.
198
+
199
+ # Acknowledgements
200
+
201
+ This material is based upon work supported by the National Science Foundation under Grants 2031736, 2008761, 1822494, ARLIS, and by an Amazon Research Award. We thank Sweta Agrawal for her suggestion to conduct a meta-analysis. We owe much appreciation to Dallas Card for his keen advice on power analyses. Thanks to Frank Fineis for help on several statistical questions, as well as Shuo Chen for his suggestions regarding the false discovery rate calculations. Finally, we thank Caitie Doogan for her helpful comments on the clarity of argumentation, as well as our anonymous reviewers.
202
+
203
+ # References
204
+
205
+ Nikolaos Aletras and Mark Stevenson. 2013. Evaluating topic coherence using distributional semantics. In International Conference on Computational Semantics (IWCS). Association for Computational Linguistics.
206
+
207
+ Daniel Allington, Sarah Brouillette, and David Golumbia. 2016. Neoliberal tools (and archives): A political history of digital humanities. In LA Review of Books.
208
+
209
+ Areej Alokaili, Nikolaos Aletras, and Mark Stevenson. 2019. Re-ranking words to improve interpretability of automatically generated topics. In International Conference on Computational Semantics. Association for Computational Linguistics.
210
+
211
+ Shraey Bhatia, Jey Han Lau, and Timothy Baldwin. 2017. An automatic approach for document-level topic model evaluation. In Conference on Computational Natural Language Learning, Vancouver, Canada. Association for Computational Linguistics.
212
+
213
+ Federico Bianchi, Silvia Terragni, and Dirk Hovy. 2021. Pre-training is a hot topic: Contextualized document embeddings improve topic coherence. In Proceedings of the Association for Computational Linguistics, Online. Association for Computational Linguistics.
214
+
215
+ David M. Blei, Andrew Ng, and Michael I. Jordan. 2003. Latent Dirichlet Allocation. Journal of Machine Learning Research, 3:993–1022.
216
+
217
+ Samuel R. Bowman, Luke Vilnis, Oriol Vinyals, Andrew Dai, Rafal Jozefowicz, and Samy Bengio. 2016. Generating sentences from a continuous space. In Conference on Computational Natural Language Learning. Association for Computational Linguistics.
218
+
219
+ Jordan Boyd-Graber, Yuening Hu, and David Mimno. 2017. Applications of Topic Models. NOW Publishers.
220
+
221
+ Marc Brysbaert, Michaël Stevens, Paweł Mandera, and Emmanuel Keuleers. 2016. How many words do we know? Practical estimates of vocabulary size dependent on word definition, the degree of language input and the participant’s age. In Frontiers in Psychology.
222
+
223
+ Sophie Burkhardt and Stefan Kramer. 2019. Decoupling Sparsity and Smoothness in the Dirichlet Variational Autoencoder Topic Model. In Journal of Machine Learning Research.
224
+
225
+ Dallas Card, Peter Henderson, Urvashi Khandelwal, Robin Jia, Kyle Mahowald, and Dan Jurafsky. 2020. With little power comes great responsibility. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
226
+
227
+ Dallas Card, Chenhao Tan, and Noah A. Smith. 2018. Neural models for documents with metadata. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics.
228
+
229
+ Jonathan Chang, Jordan L. Boyd-Graber, Sean Gerrish, Chong Wang, and David M. Blei. 2009. Reading tea leaves: How humans interpret topic models. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc.
230
+
231
+ Jason Chuang, John D. Wilkerson, Rebecca Weiss, Dustin Tingley, Brandon M. Stewart, Margaret E. Roberts, Forough Poursabzi-Sangdeh, Justin Grimmer, Leah Findlater, Jordan Boyd-Graber, and Jeff Heer. 2014. Computer-assisted content analysis : Topic models for exploring multiple subjective interpretations. In Advances in Neural Information Processing Systems Workshop on Human-Propelled Machine Learning.
232
+
233
+ Matthew J Denny and Arthur Spirling. 2018. Text preprocessing for unsupervised learning: Why it matters, when it misleads, and what to do about it. In Political Analysis. Cambridge University Press.
234
+
235
+ Adji B. Dieng, Francisco J. R. Ruiz, and David M. Blei. 2020. Topic modeling in embedding spaces. Transactions of the Association for Computational Linguistics.
236
+
237
+ Ran Ding, Ramesh Nallapati, and Bing Xiang. 2018. Coherence-aware neural topic modeling. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
238
+
239
+ Jesse Dodge, Suchin Gururangan, Dallas Card, Roy Schwartz, and Noah A. Smith. 2019. Show your work: Improved reporting of experimental results. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
240
+
241
+ Caitlin Doogan and Wray Buntine. 2021. Topic model or topic twaddle? Re-evaluating semantic interpretability measures. In Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics.
242
+
243
+ Jacob Eisenstein, Amr Ahmed, and Eric P. Xing. 2011. Sparse additive generative models of text. In Proceedings of the International Conference of Machine Learning. Omnipress.
244
+
245
+ Kawin Ethayarajh and Dan Jurafsky. 2020. Utility is in the eye of the user: A critique of NLP leaderboard design. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
246
+
247
+ Alan H. Feiveson. 2002. Power by simulation. In The Stata Journal.
248
+
249
+ Jiachun Feng, Zusheng Zhang, Cheng Ding, Yanghui Rao, and Haoran Xie. 2020. Context reinforced neural topic modeling over short texts. In ArXiv.
250
+
251
+ Thomas L Griffiths and Mark Steyvers. 2004. Finding scientific topics. In Proceedings of the National Academy of Sciences. National Academy of Sciences.
252
+
253
+ Justin Grimmer and Brandon M Stewart. 2013. Text as data: The promise and pitfalls of automatic content analysis methods for political texts. In Political Analysis. Cambridge University Press.
254
+
255
+ Lin Gui, Jia Leng, Gabriele Pergola, Yu Zhou, Ruifeng Xu, and Yulan He. 2019. Neural topic model with reinforcement learning. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
256
+
257
+ Pankaj Gupta, Yatin Chaudhary, F. Buettner, and Hinrich Schütze. 2019a. textTOvec: Deep contextualized neural autoregressive models of language with distributed compositional prior. In Proceedings of the International Conference on Learning Representations.
258
+
259
+ Pankaj Gupta, Yatin Chaudhary, Florian Buettner, and Hinrich Schütze. 2019b. Document informed neural autoregressive topic models with distributional prior. In Association for the Advancement of Artificial Intelligence. AAAI Press.
260
+
261
+ Ruifang He, Xuefei Zhang, Di Jin, Longbiao Wang, Jianwu Dang, and Xiangang Li. 2018. Interactionaware topic model for microblog conversations through network embedding and user attention. In International Conference on Computational Linguistics. Association for Computational Linguistics.
262
+
263
+ Matthew Honnibal, Ines Montani, Sofie Van Landeghem, and Adriane Boyd. 2020. spaCy: Industrialstrength Natural Language Processing in Python.
264
+
265
+ Alexander Miserlis Hoyle, Pranav Goel, and Philip Resnik. 2020. Improving Neural Topic Models using Knowledge Distillation. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
266
+
267
+ Xuemeng Hu, Rui Wang, Deyu Zhou, and Yuxuan Xiong. 2020. Neural topic modeling with cycle-consistent adversarial training. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
268
+
269
+ Karoliina Isoaho, Daria Gritsenko, and Eetu Mäkelä. 2021. Topic modeling and text analysis for qualitative policy research. In Policy Studies Journal.
270
+
271
+ Masaru Isonuma, Junichiro Mori, Danushka Bollegala, and Ichiro Sakata. 2020. Tree-Structured Neural Topic Model. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics.
272
+
273
+ Martin Jankowiak and Fritz Obermeyer. 2018. Pathwise derivatives beyond the reparameterization trick. In Proceedings of the International Conference of Machine Learning. PMLR.
274
+
275
+ Weonyoung Joo, Wonsung Lee, Sungrae Park, and Il-Chul Moon. 2020. Dirichlet variational autoencoder. Pattern Recognition, 107:107514.
276
+
277
+ Namkyu Jung and Hyeong In Choi. 2017. Continuous semantic topic embedding model using variational autoencoder. In ArXiv.
278
+
279
+ Diederik P. Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations.
280
+
281
+ Katsiaryna Krasnashchok and Salim Jouili. 2018. Improving topic quality by promoting named entities in topic modeling. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics.
282
+
283
+ Klaus Krippendorff. 2004. Content Analysis: an Introduction to its Methodology. SAGE.
284
+
285
+ Jey Han Lau, David Newman, and Timothy Baldwin. 2014. Machine reading tea leaves: Automatically evaluating topic coherence and topic model quality. In Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics.
286
+
287
+ Omer Levy and Yoav Goldberg. 2014. Neural word embedding as implicit matrix factorization. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc.
288
+
289
+ Lihui Lin, Hongyu Jiang, and Yanghui Rao. 2020. Copula guided neural topic modelling for short texts. In Proceedings of the ACM SIGIR Conference on Research and Development in Information Retrieval. ACM.
290
+
291
+ Tianyi Lin, Zhiyue Hu, and Xin Guo. 2019. Sparsemax and relaxed wasserstein for topic sparsity. In International Conference on Web Search and Data Mining (WSDM). ACM.
292
+
293
+ Zachary C Lipton. 2018. The mythos of model interpretability: In machine learning, the concept of interpretability is both important and slippery. In Queue. ACM.
294
+
295
+ Lin Liu, Lin Tang, Wen Dong, Shaowen Yao, and Wei Zhou. 2016. An overview of topic modeling and its current applications in bioinformatics. In SpringerPlus.
296
+
297
+ Luyang Liu, Heyan Huang, Yang Gao, Yongfeng Zhang, and Xiaochi Wei. 2019. Neural variational correlated topic modeling. In Proceedings of the World Wide Web Conference. ACM.
298
+
299
+ Jeffrey Lund, Piper Armstrong, Wilson Fearn, Stephen Cowley, Emily Hales, and Kevin Seppi. 2019. Cross-referencing using fine-grained topic modeling. In Proceedings of the Association for Computational Linguistics, Minneapolis, Minnesota. Association for Computational Linguistics.
300
+
301
+ Henry Berthold Mann and Donald Ransom Whitney. 1947. On a Test of Whether one of Two Random Variables is Stochastically Larger than the Other. In The Annals of Mathematical Statistics. Institute of Mathematical Statistics.
302
+
303
+ Stephen Marche. 2012. Literature is not data: Against digital humanities. In LA Review of Books.
304
+
305
+ Andrew Kachites McCallum. 2002. MALLET: A machine learning for language toolkit.
306
+
307
+ Elijah Meeks and Scott B Weingart. 2012. The digital humanities contribution to topic modeling. In Journal of Digital Humanities.
308
+
309
+ Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2017. Pointer sentinel mixture models. In Proceedings of the International Conference on Learning Representations.
310
+
311
+ Yishu Miao, Edward Grefenstette, and Phil Blunsom. 2017. Discovering discrete latent topics with neural variational inference. In Proceedings of the International Conference of Machine Learning. PMLR.
312
+
313
+ Yishu Miao, Lei Yu, and Phil Blunsom. 2016. Neural variational inference for text processing. In Proceedings of the International Conference of Machine Learning. PMLR.
314
+
315
+ David Mimno, Hanna Wallach, Edmund Talley, Miriam Leenders, and Andrew McCallum. 2011. Optimizing semantic coherence in topic models. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
316
+
317
+ John W. Mohr and Petko Bogdanov. 2013. Introduction—topic models: What they are and why they matter. In Poetics.
318
+
319
+ Fred Morstatter and Huan Liu. 2018. In search of coherence and consensus: Measuring the interpretability of statistical topics. Journal of Machine Learning Research.
320
+
321
+ Feng Nan, Ran Ding, Ramesh Nallapati, and Bing Xiang. 2019. Topic modeling with Wasserstein autoencoders. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics.
322
+
323
+ David Newman, Jey Han Lau, Karl Grieser, and Timothy Baldwin. 2010. Automatic evaluation of topic coherence. In Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics.
324
+
325
+ Dat Quoc Nguyen, Richard Billingsley, Lan Du, and Mark Johnson. 2015. Improving topic models with latent feature word representations. Transactions of the Association for Computational Linguistics.
326
+
327
+ Xuefei Ning, Y. Zheng, Zhuxi Jiang, Y. Wang, H. Yang, and J. Huang. 2020. Nonparametric topic modeling with neural inference. In Neurocomputing.
328
+
329
+ Madhur Panwar, Shashank Shailabh, Milan Aggarwal, and Balaji Krishnamurthy. 2020. TANNTM: Topic attention networks for neural topic modeling. In Proceedings of the Association for Computational Linguistics.
330
+
331
+ Min Peng, Qianqian Xie, Yanchun Zhang, Hua Wang, Xiuzhen Zhang, Jimin Huang, and Gang Tian. 2018. Neural sparse topical coding. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics.
332
+
333
+ Radim Reh˚u ˇ ˇrek and Petr Sojka. 2010. Software Framework for Topic Modelling with Large Corpora. In Proceedings of the Language Resources and Evaluation Conference. ELRA.
334
+
335
+ Mehdi Rezaee and Francis Ferraro. 2020. A discrete variational recurrent topic model without the reparametrization trick. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc.
336
+
337
+ Michael Röder, Andreas Both, and Alexander Hinneburg. 2015. Exploring the space of topic coherence measures. In International Conference on Web Search and Data Mining (WSDM). ACM.
338
+
339
+ Evan Sandhaus. 2008. The New York Times annotated corpus. In Linguistic Data Consortium.
340
+
341
+ Benjamin M Schmidt. 2012. Words alone: Dismantling topic models in the humanities. In Journal of Digital Humanities.
342
+
343
+ Alexandra Schofield and David Mimno. 2016. Comparing apples to apple: The effects of stemmers on topic models. Transactions of the Association for Computational Linguistics.
344
+
345
+ Donald J Schuirmann. 1987. A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability. In Journal of pharmacokinetics and biopharmaceutics. Springer.
346
+
347
+ Denys Silveira, André Carvalho, Marco Cristo, and Marie-Francine Moens. 2018. Topic Modeling using Variational Auto-Encoders with Gumbel-Softmax and Logistic-Normal Mixture Distributions. In International Joint Conference on Neural Networks (IJCNN).
348
+
349
+ Akash Srivastava and Charles Sutton. 2017. Autoencoding variational inference for topic models. In Proceedings of the International Conference on Learning Representations.
350
+
351
+ Nisan Stiennon, Long Ouyang, Jeff Wu, Daniel M. Ziegler, Ryan J. Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul Christiano. 2020. Learning to summarize from human feedback. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc.
352
+
353
+ Marilyn Strathern. 1997. Improving Ratings: Audit in the british university system. In European Review. Cambridge University Press.
354
+
355
+ Silvia Terragni, Elisabetta Fersini, Bruno Giovanni Galuzzi, Pietro Tropeano, and Antonio Candelieri. 2021. OCTIS: Comparing and optimizing topic models is simple! In Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics.
356
+
357
+ Laure Thompson and D. Mimno. 2020. Topic modeling with contextualized word representation clusters. In ArXiv.
358
+
359
+ Runzhi Tian, Yongyi Mao, and Richong Zhang. 2020. Learning VAE-LDA models with rounded reparameterization trick. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
360
+
361
+ William E Underwood. 2017. A genealogy of distant reading. In Digital Humanities Quarterly. Alliance of Digital Humanities Organisations.
362
+
363
+ Rui Wang, Xuemeng Hu, Deyu Zhou, Yulan He, Yuxuan Xiong, Chenchen Ye, and Haiyang Xu. 2020a. Neural topic modeling with bidirectional adversarial training. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics.
364
+
365
+ Rui Wang, Deyu Zhou, and Yulan He. 2020b. ATM: Adversarial-neural topic model. In Proceedings of the Association for Computational Linguistics.
366
+
367
+ Stefan Wellek. 2010. Testing Statistical Hypotheses of Equivalence and Noninferiority. Chapman and Hall/CRC.
368
+
369
+ Jiemin Wu, Yanghui Rao, Zusheng Zhang, Haoran Xie, Qing Li, Fu Lee Wang, and Ziye Chen. 2020a. Neural mixed counting models for dispersed topic discovery. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics.
370
+
371
+ Xiaobao Wu, Chunping Li, Yan Zhu, and Yishu Miao. 2020b. Short text topic modeling with topic distribution quantization and negative sampling decoder. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
372
+
373
+ Liang Yang, Fan Wu, Junhua Gu, Chuan Wang, Xiaochun Cao, Di Jin, and Yuanfang Guo. 2020. Graph attention topic modeling network. In Proceedings of the World Wide Web Conference. ACM.
374
+
375
+ Hao Zhang, Bo Chen, Dandan Guo, and Mingyuan Zhou. 2018. WHAI: weibull hybrid autoencoding inference for deep topic modeling. In Proceedings of the International Conference on Learning Representations.
376
+ He Zhao, Lan Du, Wray L. Buntine, and Mingyuan Zhou. 2018. Dirichlet belief networks for topic structure learning. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc.
377
+ He Zhao, Dinh Phung, Viet Huynh, Trung Le, and Wray Buntine. 2021a. Neural topic model via optimal transport. In Proceedings of the International Conference on Learning Representations.
378
+ He Zhao, Dinh Q. Phung, Viet Huynh, Y. Jin, Lan Du, and W. Buntine. 2021b. Topic modelling meets deep neural networks: A survey. In ArXiv.
379
+ Deyu Zhou, Xuemeng Hu, and Rui Wang. 2020. Neural topic modeling by incorporating document relationship graph. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
380
+ Qile Zhu, Zheng Feng, and Xiaolin Li. 2018. GraphBTM: Graph enhanced autoencoded variational inference for biterm topic model. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
381
+ George K. Zipf. 1949. Human Behaviour and the Principle of Least Effort. Addison-Wesley.
parse/train/tjdHCnPqoo/tjdHCnPqoo_content_list.json ADDED
@@ -0,0 +1,2081 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Is Automated Topic Model Evaluation Broken?: The Incoherence of Coherence ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 212,
8
+ 122,
9
+ 789,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Alexander Hoyle∗ ",
17
+ "text_level": 1,
18
+ "bbox": [
19
+ 181,
20
+ 200,
21
+ 305,
22
+ 215
23
+ ],
24
+ "page_idx": 0
25
+ },
26
+ {
27
+ "type": "text",
28
+ "text": "Pranav Goel∗ ",
29
+ "bbox": [
30
+ 361,
31
+ 202,
32
+ 457,
33
+ 215
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Denis Peskov∗ ",
40
+ "bbox": [
41
+ 531,
42
+ 202,
43
+ 632,
44
+ 215
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Computer Science ",
51
+ "bbox": [
52
+ 437,
53
+ 217,
54
+ 558,
55
+ 228
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Andrew Hian-Cheong∗ ",
62
+ "bbox": [
63
+ 665,
64
+ 202,
65
+ 826,
66
+ 215
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Jordan Boyd-Graber ",
73
+ "bbox": [
74
+ 316,
75
+ 234,
76
+ 490,
77
+ 263
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Philip Resnik ",
84
+ "bbox": [
85
+ 526,
86
+ 236,
87
+ 632,
88
+ 250
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "CS, iSchool, UMIACS, LSC UMIACS, Lingusitics ",
95
+ "bbox": [
96
+ 313,
97
+ 251,
98
+ 650,
99
+ 263
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "University of Maryland {hoyle,pgoel1,dpeskov,andrewhc,jbg,resnik}@cs.umd.edu ",
106
+ "bbox": [
107
+ 245,
108
+ 268,
109
+ 758,
110
+ 297
111
+ ],
112
+ "page_idx": 0
113
+ },
114
+ {
115
+ "type": "text",
116
+ "text": "Abstract ",
117
+ "text_level": 1,
118
+ "bbox": [
119
+ 462,
120
+ 333,
121
+ 535,
122
+ 349
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Topic model evaluation, like evaluation of other unsupervised methods, can be contentious. However, the field has coalesced around automated estimates of topic coherence, which rely on the frequency of word co-occurrences in a reference corpus. Contemporary neural topic models surpass classical ones according to these metrics. At the same time, topic model evaluation suffers from a validation gap: automated coherence, developed for classical models, has not been validated using human experimentation for neural models. In addition, a meta-analysis of topic modeling literature reveals a substantial standardization ${ g a p }$ in automated topic modeling benchmarks. To address the validation gap, we compare automated coherence with the two most widely accepted human judgment tasks: topic rating and word intrusion. To address the standardization gap, we systematically evaluate a dominant classical model and two state-of-the-art neural models on two commonly used datasets. Automated evaluations declare a winning model when corresponding human evaluations do not, calling into question the validity of fully automatic evaluations independent of human judgments. ",
129
+ "bbox": [
130
+ 233,
131
+ 362,
132
+ 766,
133
+ 526
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "1 Revisiting Topic Model Evaluation ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 174,
143
+ 549,
144
+ 495,
145
+ 568
146
+ ],
147
+ "page_idx": 0
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Topic models are a machine learning technique widely used outside computer science, including political science (Grimmer and Stewart, 2013; Isoaho et al., 2021), social and cultural studies (Mohr and Bogdanov, 2013), digital humanities (Meeks and Weingart, 2012), and bioinformatics (Liu et al., 2016). Typically, topic model users are domain experts trying to identify global categories or themes present in a document collection (Boyd-Graber et al., 2017). This practice constitutes a computer-assisted form of content analysis (Krippendorff, 2004; Chuang et al., 2014), also related to distant reading in literary studies (Underwood, 2017). In general, topic models help humans understand large corpora.2 ",
152
+ "bbox": [
153
+ 174,
154
+ 580,
155
+ 825,
156
+ 691
157
+ ],
158
+ "page_idx": 0
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Evaluation of topic models has vacillated between automated and human-centered. While real-world users of topic models evaluate outputs based on their specific needs, topic model developers have gravitated toward generalized, automated proxies of human judgment to help inform rapid iteration of models (Doogan and Buntine, 2021). Initially, models were evaluated with held-out perplexity, but it disagrees with human interpretability (Chang et al., 2009). Consequently, the field adopted automated coherence metrics like normalized pointwise mutual information (NPMI), a measure of word relatedness that does correlate with topic interpretability (Section 2.2; Newman et al., 2010; Aletras and Stevenson, 2013; Lau et al., 2014). The balance shifted towards automated coherence. ",
163
+ "bbox": [
164
+ 174,
165
+ 698,
166
+ 825,
167
+ 808
168
+ ],
169
+ "page_idx": 0
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Human evaluations have been abandoned by topic model developers in the years since automated coherence metrics were adopted. In a thorough meta-analysis of contemporary topic model methods papers, none conduct systematic human evaluations (Section 3). Instead, they rely solely on automated metrics for model comparison.3 However, current neural topic models are a far cry from the classical models that substantiated the original correlations—manifestly, topics produced by neural models are often qualitatively distinct from those of classical models (e.g., Table 1).4 This validation gap raises the question of whether automated metrics are still consistent with human judgments of topic quality. ",
174
+ "bbox": [
175
+ 173,
176
+ 815,
177
+ 823,
178
+ 843
179
+ ],
180
+ "page_idx": 0
181
+ },
182
+ {
183
+ "type": "table",
184
+ "img_path": "images/27c93d40b9905e71f5114dcc12a9726a575266efd1a032035ee36da6f621bc3f.jpg",
185
+ "table_caption": [],
186
+ "table_footnote": [
187
+ "Table 1: The first three columns are the highest-NPMI topics for a classical topic model (LDA estimated via Gibbs sampling using Mallet, McCallum, 2002; Griffiths and Steyvers, 2004). The next three are counterparts from a neural model (our D-VAE reimplementation, Burkhardt and Kramer, 2019). Models are trained on Wikitext (Merity et al., 2017) with fifty topics, and NPMI is estimated over the top five words in each topic using a 4.6M-document reference Wikipedia corpus. The mean top-five NPMI over all topics is 0.156 for the classical and 0.256 for the neural model. "
188
+ ],
189
+ "table_body": "<table><tr><td></td><td colspan=\"3\">Classical</td><td colspan=\"3\">Neural</td></tr><tr><td></td><td>station line bridge railway trains</td><td>album band music song released</td><td>tropical storm hurricane cyclone depression</td><td>tropical landfall cyclone utc weakening</td><td>spore basidia spores mycologist hyphae</td><td>manhattan_project los_alamos_laboratory robert_oppenheimer enrico_fermi physicist</td></tr><tr><td>NPMI</td><td>0.274</td><td>0.285</td><td>0.394</td><td>0.446</td><td>0.456</td><td>0.470</td></tr></table>",
190
+ "bbox": [
191
+ 199,
192
+ 88,
193
+ 797,
194
+ 199
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "",
201
+ "bbox": [
202
+ 174,
203
+ 333,
204
+ 825,
205
+ 402
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Moreover, we should always be cautious when extrapolating outside the range of data that was used to establish a relationship between variables. As an example, a neural model in Hoyle et al. (2020) produces much larger NPMI values than those used to determine human correlations in the original Lau et al. (2014) study; the implicit assumption is that greater NPMI corresponds to more humaninterpretable topics. Finally, a myopic focus on a presumed proxy for human preferences can produce low-quality results (Stiennon et al., 2020). Does Goodharts’ law—“when a measure becomes a target, it ceases to be a good measure” (Strathern, 1997)—apply to automated metrics of topic models? ",
212
+ "bbox": [
213
+ 174,
214
+ 410,
215
+ 825,
216
+ 507
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "Another challenge for automated evaluation, whether of classical or neural topic models, is widespread inconsistency (Section 3). Researchers frequently fail to specify the information needed to calculate automated metrics or diverge from the practices that underpin human correlations. Furthermore, evaluation datasets, preprocessing, and hyperparameter optimization vary dramatically, even within a given paper. This standardization gap likely limits the generalizability and reliability of topic model developers’ findings. ",
223
+ "bbox": [
224
+ 174,
225
+ 512,
226
+ 825,
227
+ 597
228
+ ],
229
+ "page_idx": 1
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "We address the standardization and validation gaps in topic model evaluation: ",
234
+ "bbox": [
235
+ 174,
236
+ 602,
237
+ 681,
238
+ 617
239
+ ],
240
+ "page_idx": 1
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "1. We present a meta-analysis of neural topic model evaluation (Section 3); \n2. we develop standardized, pre-processed versions of two widely-used English-language evaluation datasets, along with a transparent end-to-end code pipeline for reproduction of results (Section 4.1)5; \n3. we optimize three topic models—one classical and two neural—using identical preprocessing, model selection criteria, and hyperparameter tuning (Section 4.2); \n4. we evaluate these models using human ratings and word intrusion tasks (Section 5); and \n5. we provide new evaluations of the correlation between automated and human evaluations (Section 6). ",
245
+ "bbox": [
246
+ 210,
247
+ 633,
248
+ 825,
249
+ 757
250
+ ],
251
+ "page_idx": 1
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "Our findings challenge the validity of fully-automated evaluations as currently practiced: automated evaluation declares winners between models when the corresponding human evaluations cannot. ",
256
+ "bbox": [
257
+ 176,
258
+ 773,
259
+ 823,
260
+ 803
261
+ ],
262
+ "page_idx": 1
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "2 Operationalizing Topic Coherence ",
267
+ "text_level": 1,
268
+ "bbox": [
269
+ 173,
270
+ 89,
271
+ 491,
272
+ 108
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "A topic model is a probabilistic generative model of text that uses latent topics to summarize a larger collection of documents. The most influential variant, latent Dirichlet allocation (Blei et al., 2003, LDA), assumes that $K$ latent topics are distributions over word types, $\\beta _ { k }$ , and that the documents $\\mathcal { D }$ are admixtures over the topics, $\\theta _ { d }$ . Users often evaluate model outputs globally, focusing on the most probable $N$ words of each topic, and locally, considering the most probable topics for each document. ",
279
+ "bbox": [
280
+ 174,
281
+ 122,
282
+ 825,
283
+ 191
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "While techniques for topic modeling have progressed from variational inference (Blei et al., 2003) to Gibbs sampling (Griffiths and Steyvers, 2004) to deep generative approaches (Srivastava and Sutton, 2017; Wang et al., 2020b), the core goal discussed in Section 1, obtaining human-understandable categories, remains central. The latest wave of methods, neural topic models (NTM), use continuous word representations and gradient optimization to fit parameters. These models claim to produce more interpretable topics than other prior methods, including LDA. ",
290
+ "bbox": [
291
+ 174,
292
+ 196,
293
+ 825,
294
+ 281
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Those claims are supported by improvements on automated measures of topic coherence. ",
301
+ "bbox": [
302
+ 173,
303
+ 287,
304
+ 756,
305
+ 301
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "2.1 Human Metrics of Topic Coherence ",
312
+ "text_level": 1,
313
+ "bbox": [
314
+ 176,
315
+ 318,
316
+ 460,
317
+ 333
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "Like the concept of interpretability, that of real-world coherence is “simultaneously important and slippery” (Lipton, 2018). We will not attempt to formalize it here—though see discussion in Section 7. For present purposes, the term has its roots in Latin cohaerere, “to stick together,” and we will think of coherence as an intangible sense, available to human readers, that a set of terms, when viewed together, enable human recognition of an identifiable category.6 We review two human ratings of topic quality: direct ratings and intrusion. ",
324
+ "bbox": [
325
+ 173,
326
+ 344,
327
+ 826,
328
+ 426
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "Rating Raters see a topic and then give the topic a quality score, conventionally on a three-point ordinal scale (Newman et al., 2010; Mimno et al., 2011; Aletras and Stevenson, 2013, inter alia). ",
335
+ "bbox": [
336
+ 173,
337
+ 443,
338
+ 823,
339
+ 470
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Intrusion Chang et al. (2009) devise the word intrusion task as a behavioral way to assess topic coherence. The core idea is that when the top words in a topic identify a coherent latent category, it is easier to identify words that do not belong to that category. Operationally, each topic is represented as its top words plus one “intruder” word which has a low probability of belonging to that topic, but a high probability of belonging to a different topic. Topic coherence is then judged by how well human annotators detect the “intruder” word. ",
346
+ "bbox": [
347
+ 174,
348
+ 486,
349
+ 825,
350
+ 569
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "2.2 NPMI: The Standard Automated Topic Model Coherence Evaluation ",
357
+ "text_level": 1,
358
+ "bbox": [
359
+ 174,
360
+ 585,
361
+ 687,
362
+ 601
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "Using the word intrusion task, Chang et al. (2009) showed that perplexity—the original topic model evaluation metric—negatively correlates with human evaluations of topic quality. This finding revealed a need for an automated measurement of topic coherence: an automated metric can measure model quality without expensive, time-consuming, and difficult-to-reproduce human experiments. ",
369
+ "bbox": [
370
+ 174,
371
+ 612,
372
+ 825,
373
+ 667
374
+ ],
375
+ "page_idx": 2
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "Lau et al. (2014) find some metrics that positively correlate with human intrusion and rating scores, particularly when aggregating scores over all topics from a given model. Because of that validation, the prevailing evaluation for model comparison is pairwise normalized pointwise mutual information. NPMI scores topics highly if the top $N$ words—summed over all pairs $w _ { i }$ and $w _ { j }$ —have high joint probability $P ( w _ { j } , w _ { i } )$ compared to their marginal probability:7 ",
380
+ "bbox": [
381
+ 173,
382
+ 672,
383
+ 825,
384
+ 744
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "equation",
390
+ "img_path": "images/58511c557f8003ea8644d8ab42e1a4179b4b6dfa84d05be6f22241676bd16a7d.jpg",
391
+ "text": "$$\n\\sum _ { j = 2 } ^ { N } \\sum _ { i = 1 } ^ { j - 1 } \\frac { l o g \\frac { P ( w _ { j } , w _ { i } ) } { P ( w _ { i } ) P ( w _ { j } ) } } { - l o g P ( w _ { i } , w _ { j } ) } .\n$$",
392
+ "text_format": "latex",
393
+ "bbox": [
394
+ 413,
395
+ 752,
396
+ 583,
397
+ 799
398
+ ],
399
+ "page_idx": 2
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "The probabilities are estimated using word co-occurrence counts from a reference corpus for a specific context window (which can range from ten words to the entire document). As a result, the choice of reference corpus determines the strength of human correlation (Lau et al., 2014; Röder et al., 2015). ",
404
+ "bbox": [
405
+ 174,
406
+ 806,
407
+ 825,
408
+ 848
409
+ ],
410
+ "page_idx": 2
411
+ },
412
+ {
413
+ "type": "table",
414
+ "img_path": "images/8775479426fab94d99b5295b42074b06596ff409f2a1c7df30c3b5d17457ceb6.jpg",
415
+ "table_caption": [],
416
+ "table_footnote": [],
417
+ "table_body": "<table><tr><td>Experimentation</td><td>Count</td><td></td></tr><tr><td>Preprocessing</td><td></td><td></td></tr><tr><td>Inconsistent over datasets</td><td>12</td><td>(30%)</td></tr><tr><td>Ambiguous preprocessing</td><td>9</td><td>(23%)</td></tr><tr><td>Model comparisons</td><td></td><td></td></tr><tr><td>All models tuned</td><td>5</td><td>(13%)</td></tr><tr><td>Unclearh.paramsearch</td><td>16</td><td>(40%)</td></tr><tr><td>UnclearLDA baseline,if used</td><td>7</td><td>(24%)</td></tr><tr><td>Recent baseline (w/in 2 yrs)</td><td>31</td><td>(78%)</td></tr><tr><td>Multiple runs /sig. testing</td><td>11</td><td>(28%)</td></tr></table>",
418
+ "bbox": [
419
+ 511,
420
+ 88,
421
+ 815,
422
+ 231
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "table",
428
+ "img_path": "images/5d30c981407e04de4b6c80135e1b3fec6a77f7cbb377e5312acf17afbb387409.jpg",
429
+ "table_caption": [
430
+ "Table 2: Meta-analysis of forty neural topic modeling papers (denominator may change, as not all conditions are applicable). No recent neural topic modeling papers use human evaluations of coherence, and the metrics and models are difficult to replicate. "
431
+ ],
432
+ "table_footnote": [],
433
+ "table_body": "<table><tr><td>Evaluation</td><td colspan=\"2\">Count</td></tr><tr><td>Number of human evaluations AutomatedCoherence</td><td>0</td><td>(0%)</td></tr><tr><td>Metric NPMI</td><td>26</td><td>(72%)</td></tr><tr><td>Other</td><td>22</td><td>(61%)</td></tr><tr><td>Explicit implementation</td><td>22</td><td>(61%)</td></tr><tr><td>Explicit ref. corpus</td><td>10</td><td>(28%)</td></tr><tr><td>Perplexity w/o coherence</td><td>3</td><td>(8%)</td></tr></table>",
434
+ "bbox": [
435
+ 192,
436
+ 88,
437
+ 485,
438
+ 231
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "A measurement is valid to the extent that it measures what it is intended to measure in the real world. Historically, automated coherence has been validated using human judgements from either crowdworkers (Newman et al., 2010; Aletras and Stevenson, 2013) or experts (Mimno et al., 2011). However, correlations based on classical models may not be applicable for NTMs. Our skepticism is motivated by theory, as neural word representations are intimately connected to NPMI, as explicitly used by Aletras and Stevenson (2013) and which produce similar NPMI scores as Lau et al. (2014). Levy and Goldberg (2014) show that multiple representations create factorizations of PMI matrices. Topic models that have access to these rich representations (e.g. Dieng et al., 2020, and others) could thus create topics with good NPMI scores without explaining the corpus well to a user. In contrast to classical topic models, no one has investigated the validity of NPMI evaluation for NTMs. ",
445
+ "bbox": [
446
+ 174,
447
+ 314,
448
+ 825,
449
+ 453
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "Given this lacuna, we conduct experiments aimed at validating that automated topic evaluations still correlate with human judgments of neural topic model quality. We compare against two common human evaluations of individual topic quality: direct rating and intrusion. Human evaluations, like automated topic modeling, lack standardization, which we address in Section 5. ",
456
+ "bbox": [
457
+ 174,
458
+ 459,
459
+ 825,
460
+ 515
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "3 A Meta-Analysis of Neural Topic Modeling ",
467
+ "text_level": 1,
468
+ "bbox": [
469
+ 174,
470
+ 534,
471
+ 563,
472
+ 553
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "We survey the neural topic modeling (NTM) literature to assess the state of evaluation in contemporary topic model development. First, we take all references made by an existing, comprehensive survey of NTMs (Zhao et al., 2021b), from which we select (a) modeling papers which (b) mention topic interpretability and (c) compare models’ topics with an existing baseline. This yields forty models, which all claim superior topic coherence. We examine data processing steps, hyperparameter tuning, baseline selection, and automated coherence calculations. Table 2 summarizes our results and Appendix A.1 enumerates the papers. ",
479
+ "bbox": [
480
+ 174,
481
+ 566,
482
+ 825,
483
+ 662
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "Our analysis reveals variance in all areas. Preprocessing, which can significantly affect model quality and automated metrics, is often $( 3 0 \\% )$ inconsistent across datasets within the same paper. When preprocessing is consistent, authors omit details necessary to fully replicate the pipeline. These issues imply that automated metrics for the same baselines and source datasets vary across papers. Compounding the problem, researchers often train their models on different datasets from those used to establish the relationships between human annotations and automated metrics; Doogan and Buntine (2021) find that the same metrics may not predict interpretability in new domains. Mirroring findings from Dodge et al. (2019), $40 \\%$ of papers fail to clearly specify their model tuning procedure, often even the metric used for model selection. ",
490
+ "bbox": [
491
+ 174,
492
+ 670,
493
+ 825,
494
+ 794
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "Calculation of automated coherence metrics is equally fraught. As discussed in Section 2.2, a complete specification for NPMI involves several pieces of information, including the reference corpus used to estimate joint word probabilities, the co-occurrence window size, and the number of words selected from the head of the topic distribution. Three out of four papers fail to explicitly indicate the reference corpus; even when we can assume the input corpus is used (13 cases), it remains uncertain whether authors use, e.g., a held-out set or the training documents themselves. For the $61 \\%$ that specify the implementation of their coherence metric (by pointing to a code repository or writing out the formula), some of these factors may still be in question. For instance, six authors reference Lau et al. (2014) and the supporting code,8 but the implications are ambiguous: the original paper suggests a large corpus from the same source as the training data, but the repository script defaults to Wikipedia. In other cases, authors use bespoke implementations, which creates room for errors, or deviate from the settings used in human experiments. For example, several papers use a document-wide context window with NPMI, which has not been correlated with human judgments. ",
501
+ "bbox": [
502
+ 174,
503
+ 800,
504
+ 825,
505
+ 911
506
+ ],
507
+ "page_idx": 3
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "",
512
+ "bbox": [
513
+ 174,
514
+ 92,
515
+ 825,
516
+ 161
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "Last, even $i f$ automated evaluations are consistent, all claims of coherence improvement depend on the validity results in Lau et al. (2014) generalizing to neural topic models. ",
523
+ "bbox": [
524
+ 171,
525
+ 167,
526
+ 823,
527
+ 196
528
+ ],
529
+ "page_idx": 4
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "4 Closing the Standardization Gap for Topic Models ",
534
+ "text_level": 1,
535
+ "bbox": [
536
+ 174,
537
+ 215,
538
+ 625,
539
+ 233
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "Our human evaluation of topic model outputs serves multiple purposes: (a) establishing whether NTMs show improved coherence over a classical baseline and (b) re-evaluating the efficacy and reliability of automated coherence metrics. In addition, a key goal is (c) to provide a standardized preprocessing pipeline to support head-to-head comparisons as new methods are developed.9 ",
546
+ "bbox": [
547
+ 174,
548
+ 247,
549
+ 825,
550
+ 303
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "We identify two commonly-used datasets, which we in turn process using a standard pipeline. We then estimate topic models on each dataset following a computationally fair hyperparameter search. Our standardization efforts are similar to concurrent work by Terragni et al. (2021); the main differences are that we (a) mandate consistent preprocessing between training and reference corpora, (b) support multi-word expressions during vocabulary creation (see below), and (c) support distributed hyperparameter searches. ",
557
+ "bbox": [
558
+ 174,
559
+ 309,
560
+ 825,
561
+ 392
562
+ ],
563
+ "page_idx": 4
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "4.1 Datasets and Preprocessing ",
568
+ "text_level": 1,
569
+ "bbox": [
570
+ 176,
571
+ 410,
572
+ 403,
573
+ 424
574
+ ],
575
+ "page_idx": 4
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "Following Chang et al. (2009), we use English articles from Wikipedia and the New York Times (Table 7). For Wikipedia, we use Wikitext-103 (WIKI, Merity et al., 2017), and for the Times, we subsample roughly $15 \\%$ of documents from LDC2008T19 (NYT, Sandhaus, 2008), making it an order of magnitude larger than WIKI. To compute reference counts, we use a 4.6M document Wikipedia dump from September 2017 and the full 1.8M document LDC2008T19 set, processed identically to the training data. ",
580
+ "bbox": [
581
+ 174,
582
+ 434,
583
+ 825,
584
+ 517
585
+ ],
586
+ "page_idx": 4
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "We use SpaCy (Honnibal et al., 2020) to tokenize and identify entities in the text. We create new tokens for detected entities of the form New_York_City, per Krasnashchok and Jouili (2018). Schofield and Mimno (2016) find that lemmatization and word-stemming can hurt English topic interpretability, so we do not lemmatize. To maintain a roughly equal vocabulary size over datasets, we use a power-law relationship of corpus size (c.f. Zipf, 1949) to rule out tokens occurring in fewer than a given number of documents.10 In addition to a standard stopword list, we define corpus-specific stopwords as tokens appearing in more than $90 \\%$ of documents. See Appendix A.2 for complete preprocessing details. ",
591
+ "bbox": [
592
+ 174,
593
+ 523,
594
+ 825,
595
+ 636
596
+ ],
597
+ "page_idx": 4
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "4.2 Models ",
602
+ "text_level": 1,
603
+ "bbox": [
604
+ 174,
605
+ 651,
606
+ 264,
607
+ 666
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "We evaluate one venerable classical model and two newer neural models: ",
614
+ "bbox": [
615
+ 176,
616
+ 678,
617
+ 651,
618
+ 691
619
+ ],
620
+ "page_idx": 4
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "Gibbs-LDA As a strong classical baseline, we use the widely-loved Mallet (McCallum, 2002) implementation of Gibbs-sampling for LDA (Griffiths and Steyvers, 2004). Mallet produces topics of (qualitatively) competitive quality to neural models (Srivastava and Sutton, 2017). ",
625
+ "bbox": [
626
+ 174,
627
+ 707,
628
+ 825,
629
+ 748
630
+ ],
631
+ "page_idx": 4
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "Dirichlet-VAE We reimplement Dirichlet-VAE (Burkhardt and Kramer, 2019), a state-of-the-art NTM. For simplicitly, we use pathwise gradients for the Dirichlet (Jankowiak and Obermeyer, 2018), rather than the rejection sampling variational inference of the authors’ primary variant.11 DirichletVAE is a wholesale improvement on one of the first successful NTMs, the popular ProdLDA (Srivastava and Sutton, 2017), and is competitive against recent models on automated coherence. The generative ",
636
+ "bbox": [
637
+ 174,
638
+ 763,
639
+ 825,
640
+ 833
641
+ ],
642
+ "page_idx": 4
643
+ },
644
+ {
645
+ "type": "image",
646
+ "img_path": "images/b78bf2833c66347f64516d418b096007d4f44b4af7667f0dc917e03dd66a25a5.jpg",
647
+ "image_caption": [],
648
+ "image_footnote": [],
649
+ "bbox": [
650
+ 250,
651
+ 95,
652
+ 697,
653
+ 237
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "Figure 1: The word intrusion task presented to crowdworkers (the ratings task is in Appendix A.4). ",
660
+ "bbox": [
661
+ 173,
662
+ 246,
663
+ 818,
664
+ 260
665
+ ],
666
+ "page_idx": 5
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "model is simple and retains a broad similarity to LDA. The primary difference is that it does not constrain the estimated topic-word distributions to the simplex. ",
671
+ "bbox": [
672
+ 173,
673
+ 294,
674
+ 823,
675
+ 321
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "ETM Thanks to their improved flexiblity, many NTMs incorporate external word representations, on the premise that large-scale, general language knowledge improves topic quality (Bianchi et al., 2021; Hoyle et al., 2020). The Embedded Topic Model (Dieng et al., 2020) is a popular NTM that relies on word embeddings in its generative model.12 ",
682
+ "bbox": [
683
+ 173,
684
+ 342,
685
+ 825,
686
+ 397
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "We maintain a fixed computational budget per model following the exhortation of Dodge et al. (2019) and use a random set of 164 hyperparameter settings across datasets for each model type.13 We train models for a variable number of steps (a hyperparameter); to calculate automated coherence for the model, we use the topics produced at the last step. For human evaluations, we select the models that maximize NPMI, estimated using the reference corpus with a ten-word window over the top ten topic words, per Lau et al. (2014). We follow the recommendation of Dieng et al. (2020) and learn skip-gram embeddings on the training corpus for ETM (experiments with external pretrained embeddings did not yield substantially different results). As in Hoyle et al. (2020), we eliminate models with highly redundant topics, a known degeneracy of NTMs (Burkhardt and Kramer, 2019): (a) models in which any of the top five words of one topic overlap with another and (b) models that have a topic uniqueness score (Nan et al., 2019) above 0.7. Ranges for hyperparameters and other details are in Appendix A.3. ",
693
+ "bbox": [
694
+ 173,
695
+ 405,
696
+ 825,
697
+ 570
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "5 Human Evaluations of Topic Quality ",
704
+ "text_level": 1,
705
+ "bbox": [
706
+ 174,
707
+ 594,
708
+ 511,
709
+ 612
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "We use the ratings and word intrusion tasks from Section 2.2 as human evaluations of topic quality. We recruit crowdworkers using Prolific.co, an online panel provider and collect data with the Qualtrics survey platform. We pay workers 2.5 USD per ratings survey and 3 USD per word intrusion survey, equivalent to 15 USD/hour. ",
716
+ "bbox": [
717
+ 174,
718
+ 630,
719
+ 825,
720
+ 685
721
+ ],
722
+ "page_idx": 5
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "In order to draw meaningful conclusions from human annotations, we require an adequate number of participants to ensure acceptable statistical power. However, Card et al. (2020) show that many NLP experiments, including those relying on human evaluation, are insufficiently powered to detect model differences at reported levels. Adopting a straightforward generative model of annotations (Appendix A.5), we select enough crowdworkers per task to ensure sufficient statistical power (at least $1 - \\beta = 0 . 9 ,$ ) to obtain significance at $\\alpha = 0 . 0 5$ , resulting in a minimum of fifteen crowdworkers per topic for both tasks. On this criterion, both Chang et al. (2009) and thus Lau et al. (2014), with eight annotators, are underpowered. ",
727
+ "bbox": [
728
+ 173,
729
+ 691,
730
+ 825,
731
+ 803
732
+ ],
733
+ "page_idx": 5
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "For each of our two datasets, we generate fifty topics each from the three models in Section 4.2. In the word intrusion task, we sample five of the top ten topic words plus one intruder; for the ratings task, we present the top ten words in order (Figure 4). We separate the datasets for each task and randomly sample 40 of the 150 topics. In the ratings task, we include an additional sixteen synthetic poor-quality topics to help calibrate scores and filter out low-quality respondents.14 ",
738
+ "bbox": [
739
+ 174,
740
+ 809,
741
+ 825,
742
+ 851
743
+ ],
744
+ "page_idx": 5
745
+ },
746
+ {
747
+ "type": "image",
748
+ "img_path": "images/d4b91800d9e7b7ff7997c7159fa9a556a5d2a977b8f0c42eea33a90c0248c366.jpg",
749
+ "image_caption": [
750
+ "Figure 2: While automated evaluations (here, NPMI) suggest a clear winner between models, human evaluation is more nuanced. Human judgments exhibit greater variability over a smaller range of values. Colored circles correspond to pairwise one-tailed significance tests between model scores at $\\alpha = 0 . 0 5$ ; for example, the rightmost orange circle at bottom right shows that human intrusion ratings for D-VAE are significantly higher than ETM for topics derived from Wikipedia. "
751
+ ],
752
+ "image_footnote": [],
753
+ "bbox": [
754
+ 173,
755
+ 88,
756
+ 826,
757
+ 327
758
+ ],
759
+ "page_idx": 6
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "",
764
+ "bbox": [
765
+ 174,
766
+ 435,
767
+ 821,
768
+ 463
769
+ ],
770
+ "page_idx": 6
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "Phrasing of questions closely follows the wording used by Chang et al. (2009), and crowdworkers received detailed instructions with examples (Appendix A.4) before responding to items.15 As topics can be esoteric (e.g., last columns of Table 1), we ask crowdworkers about their familiarity with the words in each question. We speculate that this question can help protect against spurious low scores for otherwise coherent topics, as real-world users of topic models are usually familiar with domain-specific terminology (see further discussion in Section 7). ",
775
+ "bbox": [
776
+ 174,
777
+ 469,
778
+ 825,
779
+ 553
780
+ ],
781
+ "page_idx": 6
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "6 Human Judgment Differs From Automated Metrics ",
786
+ "text_level": 1,
787
+ "bbox": [
788
+ 174,
789
+ 575,
790
+ 635,
791
+ 593
792
+ ],
793
+ "page_idx": 6
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "We compare human judgments to automated methods on topics estimated using our three models. ",
798
+ "bbox": [
799
+ 171,
800
+ 609,
801
+ 810,
802
+ 623
803
+ ],
804
+ "page_idx": 6
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "6.1 Human Assessment ",
809
+ "text_level": 1,
810
+ "bbox": [
811
+ 174,
812
+ 643,
813
+ 348,
814
+ 659
815
+ ],
816
+ "page_idx": 6
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "To establish model differences using human ratings, we use pairwise significance tests: a proportion test for the intrusion scores, a $U$ test (Mann and Whitney, 1947) for the ratings, and a $t$ -test for automated metrics (Figure 2), using one-tailed tests for each pair in both directions. Although D-VAE fares better on the intrusion task, evaluation using ratings favors G-LDA.16 ",
821
+ "bbox": [
822
+ 174,
823
+ 670,
824
+ 825,
825
+ 727
826
+ ],
827
+ "page_idx": 6
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "Our human evaluation results are consistent with past iterations of the ratings and word intrusion tasks for topic models. Mimno et al. (2011) report an average of 2.36 on the ratings task on a dataset of medical paper abstracts.17 Our ratings means are 2.5 to 2.8 across all variations (Figure 2). Our word intrusion means range from 0.7 to 0.8, which is comparable to the roughly 0.8 accuracy on the LDA model evaluated in Chang et al. (2009). Median time taken on the tasks was 8–9 minutes. ",
832
+ "bbox": [
833
+ 174,
834
+ 732,
835
+ 825,
836
+ 801
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "table",
842
+ "img_path": "images/4dded3f9da4ffb5cfd0e62eec324742d318f47b066dc49aecc2e557830aefcce.jpg",
843
+ "table_caption": [
844
+ "Table 3: Spearman correlation coefficients between mean human scores and automated metrics. Underlined values have overlapping bootstrapped $9 5 \\%$ confidence intervals with that of the largest value in each row. “Concatenated” refers to correlations computed on a concatenation of values for the NYT and WIKI items. “Val” is a small held-out set of $15 \\%$ of the training corpus. Using the more data-appropriate logistic and ordered probit regressions for word intrusion and ratings data leads to different conclusions about relative metric strength (Appendix Table 10). CIs are estimated using 1,000 samples. "
845
+ ],
846
+ "table_footnote": [],
847
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Ref. Corpus→ Train Corpus↓</td><td colspan=\"4\">NPMI (10-token window)</td><td colspan=\"4\">Cu (110-token window)</td></tr><tr><td>NYT</td><td>WIKI</td><td>Train</td><td>Val</td><td>NYT</td><td>WIKI</td><td>Train</td><td>Val</td></tr><tr><td>Intrusion</td><td>NYT</td><td>0.27</td><td>0.43</td><td>0.27</td><td>0.24</td><td>0.34</td><td>0.45</td><td>0.35</td><td>0.34</td></tr><tr><td></td><td>WIKI</td><td>0.34</td><td>0.36</td><td>0.39</td><td>0.17</td><td>0.32</td><td>0.34</td><td>0.34</td><td>0.20</td></tr><tr><td></td><td>Concatenated</td><td>0.29</td><td>0.40</td><td>0.32</td><td>0.17</td><td>0.32</td><td>0.40</td><td>0.35</td><td>0.24</td></tr><tr><td>Rating</td><td>NYT</td><td>0.37</td><td>0.48</td><td>0.37</td><td>0.39</td><td>0.41</td><td>0.46</td><td>0.44</td><td>0.45</td></tr><tr><td></td><td>WIKI</td><td>0.34</td><td>0.41</td><td>0.44</td><td>0.28</td><td>0.32</td><td>0.40</td><td>0.40</td><td>0.34</td></tr><tr><td></td><td>Concatenated</td><td>0.37</td><td>0.44</td><td>0.41</td><td>0.35</td><td>0.38</td><td>0.42</td><td>0.42</td><td>0.42</td></tr></table>",
848
+ "bbox": [
849
+ 214,
850
+ 88,
851
+ 784,
852
+ 218
853
+ ],
854
+ "page_idx": 7
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "Following Aletras and Stevenson (2013), we calculate inter-annotator agreement with the mean Spearman correlation between each respondent’s score per topic and the average of other respondent scores, obtaining a value of 0.75 (compare to their value of 0.7 on the NYT corpus). Additionally, we include synthetic poor-quality topics (footnote 14)—correctly identified by annotators—and we monitor the duration taken for the survey to hedge against insincere submissions. ",
859
+ "bbox": [
860
+ 174,
861
+ 358,
862
+ 825,
863
+ 428
864
+ ],
865
+ "page_idx": 7
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "6.2 Automated Metrics ",
870
+ "text_level": 1,
871
+ "bbox": [
872
+ 174,
873
+ 445,
874
+ 346,
875
+ 460
876
+ ],
877
+ "page_idx": 7
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "NPMI declares D-VAE the unequivocal victor among the three models (with G-LDA a clear second), a very different story from the human judgments. To understand the relationship between automated metrics and human ratings, we estimate the Spearman correlation between the two sets of values for each task and dataset for metric variants (Table 3). Although previous studies have used mean human ratings over topics, this decision obscures the inherent variance of the human ratings and leads to overconfident estimates. We therefore construct $9 5 \\%$ confidence intervals by resampling ratings, with replacement, equal to the number of annotators per task (Table 3). We estimate NPMI with the standard 10-word window and $C _ { v }$ (Röder et al., 2015) with the recommended 110-word window.18 The Wikipedia corpus appears to be best correlated with human judgments, even for the models trained on the NYT corpus—this contradicts Lau et al. (2014), where within-domain data have the highest correlations. ",
882
+ "bbox": [
883
+ 174,
884
+ 472,
885
+ 825,
886
+ 625
887
+ ],
888
+ "page_idx": 7
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "While all correlation coefficients are statistically significant, the strength of the correlation alone does not justify their use in model selection, as is standard in the NTM literature (Section 3). In particular, the inherent uncertainty of human judgments means that it is difficult to determine when an increase in a model’s mean automated coherence implies a significant improvement in the corresponding human scores.19 ",
893
+ "bbox": [
894
+ 174,
895
+ 631,
896
+ 825,
897
+ 699
898
+ ],
899
+ "page_idx": 7
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "As noted above (Figure 2), automated metrics exaggerate model differences compared to human judgments. To help clarify the utility of automated metrics for model selection, we ask how often an automated metric incorrectly asserts that one model is superior to another. To do so, we generate a bootstrapped estimate of the false discovery rate of each model. First, for each dataset, we randomly sample two independent sets of $K = 5 0$ topics (without replacement) from the original pool of 150, along with their corresponding automated and human scores (resampled with replacement, as in Table 3). Treating the two sampled sets as outputs from two different models, we compute pairwise significance tests between each set for both the $K$ automated metrics and $K \\times M$ human scores (using a proportions $z$ -test for the intrusion scores and $t$ -tests for all other values). After repeating this process for $N = 1 0 0 0$ iterations, we report the proportion of significant differences detected using ",
904
+ "bbox": [
905
+ 173,
906
+ 707,
907
+ 825,
908
+ 844
909
+ ],
910
+ "page_idx": 7
911
+ },
912
+ {
913
+ "type": "table",
914
+ "img_path": "images/8f7dda6e58503aa97e761ea9d08c64722af057daf158dda1d1115ceca6f020e5.jpg",
915
+ "table_caption": [],
916
+ "table_footnote": [],
917
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td rowspan=\"2\">Ref. Corpus→ Train Corpus ↓</td><td colspan=\"3\">NPMI (10-token window)</td><td colspan=\"3\">Cu (110-token window)</td></tr><tr><td>NYT</td><td>WIKI</td><td>Train</td><td>NYT</td><td>WIKI</td><td>Train</td></tr><tr><td>Intrusion</td><td>NYT</td><td>46/53</td><td>34/48</td><td>48/50</td><td>35/38</td><td>30 /29</td><td>34/35</td></tr><tr><td rowspan=\"4\">Rating</td><td>WIKI</td><td>44/76</td><td>33/78</td><td>33/75</td><td>45/48</td><td>38/49</td><td>37 /45</td></tr><tr><td>Concatenated</td><td>42/67</td><td>40/66</td><td>41/64</td><td>36/46</td><td>31/44</td><td>30/45</td></tr><tr><td>NYT</td><td>45/50</td><td>45/51</td><td>41/47</td><td>27/29</td><td>26/26</td><td>21/26</td></tr><tr><td>WIKI</td><td>40/73</td><td>31/73</td><td>33/71</td><td>38/40</td><td>31/40</td><td>28 /34</td></tr><tr><td></td><td>Concatenated</td><td>39 /66</td><td>36/66</td><td>37/62</td><td>31/38</td><td>28/38</td><td>19 /36</td></tr></table>",
918
+ "bbox": [
919
+ 223,
920
+ 88,
921
+ 772,
922
+ 218
923
+ ],
924
+ "page_idx": 8
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "Table 4: False discovery rate (1−precision, lower is better) and false omission rate of significant model differences when using automated metrics; automated metrics often overstate meaningful model differences. Bolded values are those with the lowest geometric mean of FDR and FOR. We sample two independent sets of 50 topics along with their human scores and automated metrics; these sets act as the outputs of two “models”. We then compute significance tests between sets (per Figure 2) on both the automated scores and human scores. A false positive occurs when one set has significantly larger automated scores despite no meaningful difference in actual human scores. Estimates are over 1,000 samples. ",
929
+ "bbox": [
930
+ 173,
931
+ 222,
932
+ 826,
933
+ 333
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "image",
939
+ "img_path": "images/7c93a79f520ef9c7705d69318a21f9cbb9c645542c5025b7c7b1f9c5756e0d16.jpg",
940
+ "image_caption": [
941
+ "Figure 3: Mean human evaluation on the ratings and word intrusion tasks, after filtering out respondents who reported a lack of familiarity with the topic words. When filtering, D-VAE scores improve, highlighting its tendency to produce esoteric topics. "
942
+ ],
943
+ "image_footnote": [],
944
+ "bbox": [
945
+ 171,
946
+ 356,
947
+ 826,
948
+ 525
949
+ ],
950
+ "page_idx": 8
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "the predicted scores despite equivalent human scores (after correcting for the probability of type I errors, $\\alpha = 0 . 0 5$ ).20 Even the best-performing automated metrics predict significant differences absent a meaningful human effect roughly one-fifth of the time (Table 4). ",
955
+ "bbox": [
956
+ 176,
957
+ 604,
958
+ 823,
959
+ 646
960
+ ],
961
+ "page_idx": 8
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "These results suggest that automated metrics alone may be inadequate for model comparison. ",
966
+ "bbox": [
967
+ 176,
968
+ 652,
969
+ 782,
970
+ 667
971
+ ],
972
+ "page_idx": 8
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "6.3 Explaining the discrepancy ",
977
+ "text_level": 1,
978
+ "bbox": [
979
+ 176,
980
+ 685,
981
+ 400,
982
+ 700
983
+ ],
984
+ "page_idx": 8
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "One reason for the discrepancy between human judgments and automated metrics is that metrics favor more esoteric topics. Specifically, there is a significant negative correlation between a topic’s NPMI or $C _ { v }$ and the share of respondents reporting familiarity with topic words (Pearson’s $\\rho = - 0 . 2 9 )$ . And while D-VAE achieves the highest automated metric scores of the three models, it produces topics with the fewest familiar words: respondents report familiarity with terms over $90 \\%$ of the time on both tasks for G-LDA and ETM, but they do so only $70 \\%$ of the time for D-VAE. This difference suggests that the topics selected by D-VAE are narrower in scope than those of the other models. As shown in Figure 3, removing item annotations where respondents indicate unfamiliarity causes both accuracy in the word intrusion task and the ratio of “Very related” terms in the ratings task for D-VAE to increase substantially. ",
989
+ "bbox": [
990
+ 173,
991
+ 712,
992
+ 825,
993
+ 849
994
+ ],
995
+ "page_idx": 8
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Qualitatively, this result is apparent when examining topics with a high NPMI but low humans ratings. In Table 5, the top rows consists of financial terms that frequently appear together in NYT articles, ",
1000
+ "bbox": [
1001
+ 176,
1002
+ 856,
1003
+ 825,
1004
+ 885
1005
+ ],
1006
+ "page_idx": 8
1007
+ },
1008
+ {
1009
+ "type": "table",
1010
+ "img_path": "images/912596d7358b50497289771c4476f3797a65d4877d8911e0fc0438713e71777f.jpg",
1011
+ "table_caption": [],
1012
+ "table_footnote": [],
1013
+ "table_body": "<table><tr><td>Data</td><td>Model</td><td>Topic</td><td>NPMI</td><td>Rat.</td><td>Int.</td></tr><tr><td>NYT</td><td>D-VAE</td><td>inc 6mo earns otc rev qtr 9mo nyse outst dec</td><td>0.56</td><td>1.60</td><td>0.77</td></tr><tr><td>WIKI</td><td>D-VAE</td><td>Waterline conning turrets boilers amidships aft knots armament guns mounts</td><td>0.33</td><td>1.93</td><td>0.65</td></tr><tr><td>NYT</td><td>G-LDA</td><td>bedroom room bath taxes year market listed kitchen broker weeks</td><td>0.30</td><td>2.00</td><td>0.23</td></tr><tr><td>NYT</td><td>D-VAE</td><td>condolences mourns mourn board_of_directors heartfelt deepest esteemed</td><td>0.38</td><td>2.60</td><td>0.23</td></tr><tr><td>NYT</td><td>D-VAE</td><td>shareholders earnings federated mci shares takeover new_york_stock_exchange</td><td>0.18</td><td>3.00</td><td>0.81</td></tr><tr><td>WIKI</td><td>D-VAE</td><td>continental_army expedition militia frigate musket frigates muskets skirmish</td><td>0.11</td><td>3.00</td><td>0.69</td></tr><tr><td>NYT</td><td>D-VAE</td><td>medicaid medicare hospitals welfare uninsured patients</td><td>0.13</td><td>2.80</td><td>0.96</td></tr><tr><td>NYT</td><td>G-LDA</td><td>city mayor state new_york new_york_city officials county yesterday governor</td><td>0.09</td><td>2.53</td><td>1.00</td></tr></table>",
1014
+ "bbox": [
1015
+ 173,
1016
+ 89,
1017
+ 823,
1018
+ 208
1019
+ ],
1020
+ "page_idx": 9
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Table 5: Topics with the largest human–NPMI discrepancies; top half are topics where NPMI is high and human preferences are low, bottom half is the reverse. NPMI favors esoteric and corpus-specific topics. NPMI is calculated with a 10-token sliding window over the in-domain reference corpus, Rat. is the average 3-point rating for a topic, and Int. refers to the percentage of annotators who identify the intruder word. ",
1025
+ "bbox": [
1026
+ 173,
1027
+ 213,
1028
+ 825,
1029
+ 282
1030
+ ],
1031
+ "page_idx": 9
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "and the second row contains rare terms about boating—arguably both are reasonable topics for their respective corpora. We can also see instances where words are qualitatively very related (bottom half of table), but that NPMI fails to score high—perhaps because these words, while related, may not frequently appear together within a ten-word sliding window (Equation 1). ",
1036
+ "bbox": [
1037
+ 174,
1038
+ 323,
1039
+ 825,
1040
+ 378
1041
+ ],
1042
+ "page_idx": 9
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Even for familiar words, some topics may be sensible in the context of the specific corpus, despite their component words lacking an immediately obvious semantic relationship. For example, the topic words in the third and fourth rows appear somewhat unrelated (e.g., “taxes” and “bedroom” in the third row), but they are in fact characteristic of common document types in the New York Times: real estate listings and obituaries. Topics like these render the word intrusion task more difficult: only $23 \\%$ of crowdworkers identified the intruder for both topics. ",
1047
+ "bbox": [
1048
+ 174,
1049
+ 385,
1050
+ 825,
1051
+ 468
1052
+ ],
1053
+ "page_idx": 9
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Furthermore, using term familiarity as a proxy for domain expertise does not address the key problems with topic model evaluation: even after filtering out respondents who are not familiar with topic terms, automated metrics still overstate model differences (Appendix A.7). The problems with topic model evaluation may therefore extend to our choice of human evaluations as well. ",
1058
+ "bbox": [
1059
+ 174,
1060
+ 474,
1061
+ 823,
1062
+ 531
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "7 So. . . is Automated Topic Modeling Evaluation Broken? ",
1069
+ "text_level": 1,
1070
+ "bbox": [
1071
+ 176,
1072
+ 553,
1073
+ 666,
1074
+ 570
1075
+ ],
1076
+ "page_idx": 9
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "To the extent that our experimentation accurately represents current practice, our results do suggest that topic model evaluation—both automated and human—is overdue for a careful reconsideration. In this, we agree with Doogan and Buntine (2021), who write that “coherence measures designed for older models [. . . ] may be incompatible with newer models” and instead argue for evaluation paradigms centered on corpus exploration and labeling. The right starting point for this reassessment is the recognition that both automated and human evaluations are abstractions of a real-world problem. The familiar use of precision-at-10 in information retrieval, for example, corresponds to a user who is only willing to consider the top ten retrieved documents. In future work, we intend to explore automated metrics that better approximate the preferences of real-world topic model users. ",
1081
+ "bbox": [
1082
+ 174,
1083
+ 587,
1084
+ 825,
1085
+ 712
1086
+ ],
1087
+ "page_idx": 9
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "One primary use of topic models is in computer-assisted content analysis. In that context, rather than taking a methods-driven approach to evaluation, it would make sense to take a needs-driven approach.21 Generic evaluation of topic models using domain-general corpora like NYT needs to be revisited, since there is no such thing as a “generic” corpus for content analysis, nor a generic analyst. Content analysis can be formulated in a broad way, as Krippendorff (2004) has shown, but its actual application is always in a domain, by people familiar with that domain. This fact stands in tension with the desirable practicalities of general corpora and crowdworker annotation, and the field will need to address this tension. We have identified “coherence” as calling out a latent concept in the mind of a reader. It follows that we must think about who the relevant human readers are and the conceptual spaces that matter to them. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 717,
1095
+ 825,
1096
+ 856
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Acknowledgements ",
1103
+ "text_level": 1,
1104
+ "bbox": [
1105
+ 176,
1106
+ 90,
1107
+ 338,
1108
+ 107
1109
+ ],
1110
+ "page_idx": 10
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "This material is based upon work supported by the National Science Foundation under Grants 2031736, 2008761, 1822494, ARLIS, and by an Amazon Research Award. We thank Sweta Agrawal for her suggestion to conduct a meta-analysis. We owe much appreciation to Dallas Card for his keen advice on power analyses. Thanks to Frank Fineis for help on several statistical questions, as well as Shuo Chen for his suggestions regarding the false discovery rate calculations. Finally, we thank Caitie Doogan for her helpful comments on the clarity of argumentation, as well as our anonymous reviewers. ",
1115
+ "bbox": [
1116
+ 174,
1117
+ 122,
1118
+ 825,
1119
+ 219
1120
+ ],
1121
+ "page_idx": 10
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "References ",
1126
+ "text_level": 1,
1127
+ "bbox": [
1128
+ 174,
1129
+ 239,
1130
+ 266,
1131
+ 257
1132
+ ],
1133
+ "page_idx": 10
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Nikolaos Aletras and Mark Stevenson. 2013. Evaluating topic coherence using distributional semantics. In International Conference on Computational Semantics (IWCS). Association for Computational Linguistics. ",
1138
+ "bbox": [
1139
+ 178,
1140
+ 265,
1141
+ 823,
1142
+ 308
1143
+ ],
1144
+ "page_idx": 10
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "Daniel Allington, Sarah Brouillette, and David Golumbia. 2016. Neoliberal tools (and archives): A political history of digital humanities. In LA Review of Books. ",
1149
+ "bbox": [
1150
+ 174,
1151
+ 319,
1152
+ 823,
1153
+ 348
1154
+ ],
1155
+ "page_idx": 10
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Areej Alokaili, Nikolaos Aletras, and Mark Stevenson. 2019. Re-ranking words to improve interpretability of automatically generated topics. In International Conference on Computational Semantics. Association for Computational Linguistics. ",
1160
+ "bbox": [
1161
+ 174,
1162
+ 361,
1163
+ 826,
1164
+ 404
1165
+ ],
1166
+ "page_idx": 10
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Shraey Bhatia, Jey Han Lau, and Timothy Baldwin. 2017. An automatic approach for document-level topic model evaluation. In Conference on Computational Natural Language Learning, Vancouver, Canada. Association for Computational Linguistics. ",
1171
+ "bbox": [
1172
+ 176,
1173
+ 415,
1174
+ 825,
1175
+ 458
1176
+ ],
1177
+ "page_idx": 10
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Federico Bianchi, Silvia Terragni, and Dirk Hovy. 2021. Pre-training is a hot topic: Contextualized document embeddings improve topic coherence. In Proceedings of the Association for Computational Linguistics, Online. Association for Computational Linguistics. ",
1182
+ "bbox": [
1183
+ 173,
1184
+ 470,
1185
+ 826,
1186
+ 513
1187
+ ],
1188
+ "page_idx": 10
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "David M. Blei, Andrew Ng, and Michael I. Jordan. 2003. Latent Dirichlet Allocation. Journal of Machine Learning Research, 3:993–1022. ",
1193
+ "bbox": [
1194
+ 173,
1195
+ 525,
1196
+ 825,
1197
+ 554
1198
+ ],
1199
+ "page_idx": 10
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Samuel R. Bowman, Luke Vilnis, Oriol Vinyals, Andrew Dai, Rafal Jozefowicz, and Samy Bengio. 2016. Generating sentences from a continuous space. In Conference on Computational Natural Language Learning. Association for Computational Linguistics. ",
1204
+ "bbox": [
1205
+ 173,
1206
+ 566,
1207
+ 825,
1208
+ 609
1209
+ ],
1210
+ "page_idx": 10
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Jordan Boyd-Graber, Yuening Hu, and David Mimno. 2017. Applications of Topic Models. NOW Publishers. ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 621,
1218
+ 823,
1219
+ 650
1220
+ ],
1221
+ "page_idx": 10
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Marc Brysbaert, Michaël Stevens, Paweł Mandera, and Emmanuel Keuleers. 2016. How many words do we know? Practical estimates of vocabulary size dependent on word definition, the degree of language input and the participant’s age. In Frontiers in Psychology. ",
1226
+ "bbox": [
1227
+ 174,
1228
+ 662,
1229
+ 825,
1230
+ 705
1231
+ ],
1232
+ "page_idx": 10
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Sophie Burkhardt and Stefan Kramer. 2019. Decoupling Sparsity and Smoothness in the Dirichlet Variational Autoencoder Topic Model. In Journal of Machine Learning Research. ",
1237
+ "bbox": [
1238
+ 171,
1239
+ 717,
1240
+ 823,
1241
+ 747
1242
+ ],
1243
+ "page_idx": 10
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Dallas Card, Peter Henderson, Urvashi Khandelwal, Robin Jia, Kyle Mahowald, and Dan Jurafsky. 2020. With little power comes great responsibility. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1248
+ "bbox": [
1249
+ 174,
1250
+ 758,
1251
+ 825,
1252
+ 801
1253
+ ],
1254
+ "page_idx": 10
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Dallas Card, Chenhao Tan, and Noah A. Smith. 2018. Neural models for documents with metadata. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1259
+ "bbox": [
1260
+ 176,
1261
+ 814,
1262
+ 823,
1263
+ 856
1264
+ ],
1265
+ "page_idx": 10
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Jonathan Chang, Jordan L. Boyd-Graber, Sean Gerrish, Chong Wang, and David M. Blei. 2009. Reading tea leaves: How humans interpret topic models. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc. ",
1270
+ "bbox": [
1271
+ 174,
1272
+ 868,
1273
+ 825,
1274
+ 911
1275
+ ],
1276
+ "page_idx": 10
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Jason Chuang, John D. Wilkerson, Rebecca Weiss, Dustin Tingley, Brandon M. Stewart, Margaret E. Roberts, Forough Poursabzi-Sangdeh, Justin Grimmer, Leah Findlater, Jordan Boyd-Graber, and Jeff Heer. 2014. Computer-assisted content analysis : Topic models for exploring multiple subjective interpretations. In Advances in Neural Information Processing Systems Workshop on Human-Propelled Machine Learning. ",
1281
+ "bbox": [
1282
+ 174,
1283
+ 92,
1284
+ 826,
1285
+ 162
1286
+ ],
1287
+ "page_idx": 11
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Matthew J Denny and Arthur Spirling. 2018. Text preprocessing for unsupervised learning: Why it matters, when it misleads, and what to do about it. In Political Analysis. Cambridge University Press. ",
1292
+ "bbox": [
1293
+ 173,
1294
+ 172,
1295
+ 826,
1296
+ 214
1297
+ ],
1298
+ "page_idx": 11
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Adji B. Dieng, Francisco J. R. Ruiz, and David M. Blei. 2020. Topic modeling in embedding spaces. Transactions of the Association for Computational Linguistics. ",
1303
+ "bbox": [
1304
+ 171,
1305
+ 224,
1306
+ 823,
1307
+ 255
1308
+ ],
1309
+ "page_idx": 11
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Ran Ding, Ramesh Nallapati, and Bing Xiang. 2018. Coherence-aware neural topic modeling. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1314
+ "bbox": [
1315
+ 174,
1316
+ 263,
1317
+ 823,
1318
+ 306
1319
+ ],
1320
+ "page_idx": 11
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Jesse Dodge, Suchin Gururangan, Dallas Card, Roy Schwartz, and Noah A. Smith. 2019. Show your work: Improved reporting of experimental results. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1325
+ "bbox": [
1326
+ 174,
1327
+ 316,
1328
+ 823,
1329
+ 359
1330
+ ],
1331
+ "page_idx": 11
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Caitlin Doogan and Wray Buntine. 2021. Topic model or topic twaddle? Re-evaluating semantic interpretability measures. In Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1336
+ "bbox": [
1337
+ 173,
1338
+ 369,
1339
+ 826,
1340
+ 412
1341
+ ],
1342
+ "page_idx": 11
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Jacob Eisenstein, Amr Ahmed, and Eric P. Xing. 2011. Sparse additive generative models of text. In Proceedings of the International Conference of Machine Learning. Omnipress. ",
1347
+ "bbox": [
1348
+ 173,
1349
+ 421,
1350
+ 823,
1351
+ 452
1352
+ ],
1353
+ "page_idx": 11
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "Kawin Ethayarajh and Dan Jurafsky. 2020. Utility is in the eye of the user: A critique of NLP leaderboard design. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1358
+ "bbox": [
1359
+ 174,
1360
+ 460,
1361
+ 826,
1362
+ 505
1363
+ ],
1364
+ "page_idx": 11
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "Alan H. Feiveson. 2002. Power by simulation. In The Stata Journal. ",
1369
+ "bbox": [
1370
+ 173,
1371
+ 515,
1372
+ 622,
1373
+ 530
1374
+ ],
1375
+ "page_idx": 11
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Jiachun Feng, Zusheng Zhang, Cheng Ding, Yanghui Rao, and Haoran Xie. 2020. Context reinforced neural topic modeling over short texts. In ArXiv. ",
1380
+ "bbox": [
1381
+ 173,
1382
+ 540,
1383
+ 825,
1384
+ 569
1385
+ ],
1386
+ "page_idx": 11
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Thomas L Griffiths and Mark Steyvers. 2004. Finding scientific topics. In Proceedings of the National Academy of Sciences. National Academy of Sciences. ",
1391
+ "bbox": [
1392
+ 173,
1393
+ 579,
1394
+ 823,
1395
+ 608
1396
+ ],
1397
+ "page_idx": 11
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Justin Grimmer and Brandon M Stewart. 2013. Text as data: The promise and pitfalls of automatic content analysis methods for political texts. In Political Analysis. Cambridge University Press. ",
1402
+ "bbox": [
1403
+ 171,
1404
+ 617,
1405
+ 823,
1406
+ 647
1407
+ ],
1408
+ "page_idx": 11
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "Lin Gui, Jia Leng, Gabriele Pergola, Yu Zhou, Ruifeng Xu, and Yulan He. 2019. Neural topic model with reinforcement learning. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1413
+ "bbox": [
1414
+ 173,
1415
+ 656,
1416
+ 825,
1417
+ 700
1418
+ ],
1419
+ "page_idx": 11
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "Pankaj Gupta, Yatin Chaudhary, F. Buettner, and Hinrich Schütze. 2019a. textTOvec: Deep contextualized neural autoregressive models of language with distributed compositional prior. In Proceedings of the International Conference on Learning Representations. ",
1424
+ "bbox": [
1425
+ 173,
1426
+ 710,
1427
+ 826,
1428
+ 753
1429
+ ],
1430
+ "page_idx": 11
1431
+ },
1432
+ {
1433
+ "type": "text",
1434
+ "text": "Pankaj Gupta, Yatin Chaudhary, Florian Buettner, and Hinrich Schütze. 2019b. Document informed neural autoregressive topic models with distributional prior. In Association for the Advancement of Artificial Intelligence. AAAI Press. ",
1435
+ "bbox": [
1436
+ 171,
1437
+ 762,
1438
+ 825,
1439
+ 805
1440
+ ],
1441
+ "page_idx": 11
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "Ruifang He, Xuefei Zhang, Di Jin, Longbiao Wang, Jianwu Dang, and Xiangang Li. 2018. Interactionaware topic model for microblog conversations through network embedding and user attention. In International Conference on Computational Linguistics. Association for Computational Linguistics. ",
1446
+ "bbox": [
1447
+ 173,
1448
+ 815,
1449
+ 826,
1450
+ 872
1451
+ ],
1452
+ "page_idx": 11
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "Matthew Honnibal, Ines Montani, Sofie Van Landeghem, and Adriane Boyd. 2020. spaCy: Industrialstrength Natural Language Processing in Python. ",
1457
+ "bbox": [
1458
+ 173,
1459
+ 883,
1460
+ 821,
1461
+ 911
1462
+ ],
1463
+ "page_idx": 11
1464
+ },
1465
+ {
1466
+ "type": "text",
1467
+ "text": "Alexander Miserlis Hoyle, Pranav Goel, and Philip Resnik. 2020. Improving Neural Topic Models using Knowledge Distillation. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1468
+ "bbox": [
1469
+ 174,
1470
+ 92,
1471
+ 823,
1472
+ 135
1473
+ ],
1474
+ "page_idx": 12
1475
+ },
1476
+ {
1477
+ "type": "text",
1478
+ "text": "Xuemeng Hu, Rui Wang, Deyu Zhou, and Yuxuan Xiong. 2020. Neural topic modeling with cycle-consistent adversarial training. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1479
+ "bbox": [
1480
+ 173,
1481
+ 143,
1482
+ 826,
1483
+ 188
1484
+ ],
1485
+ "page_idx": 12
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "Karoliina Isoaho, Daria Gritsenko, and Eetu Mäkelä. 2021. Topic modeling and text analysis for qualitative policy research. In Policy Studies Journal. ",
1490
+ "bbox": [
1491
+ 173,
1492
+ 196,
1493
+ 823,
1494
+ 226
1495
+ ],
1496
+ "page_idx": 12
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "Masaru Isonuma, Junichiro Mori, Danushka Bollegala, and Ichiro Sakata. 2020. Tree-Structured Neural Topic Model. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1501
+ "bbox": [
1502
+ 173,
1503
+ 234,
1504
+ 826,
1505
+ 279
1506
+ ],
1507
+ "page_idx": 12
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "Martin Jankowiak and Fritz Obermeyer. 2018. Pathwise derivatives beyond the reparameterization trick. In Proceedings of the International Conference of Machine Learning. PMLR. ",
1512
+ "bbox": [
1513
+ 174,
1514
+ 287,
1515
+ 825,
1516
+ 316
1517
+ ],
1518
+ "page_idx": 12
1519
+ },
1520
+ {
1521
+ "type": "text",
1522
+ "text": "Weonyoung Joo, Wonsung Lee, Sungrae Park, and Il-Chul Moon. 2020. Dirichlet variational autoencoder. Pattern Recognition, 107:107514. ",
1523
+ "bbox": [
1524
+ 171,
1525
+ 325,
1526
+ 823,
1527
+ 354
1528
+ ],
1529
+ "page_idx": 12
1530
+ },
1531
+ {
1532
+ "type": "text",
1533
+ "text": "Namkyu Jung and Hyeong In Choi. 2017. Continuous semantic topic embedding model using variational autoencoder. In ArXiv. ",
1534
+ "bbox": [
1535
+ 173,
1536
+ 364,
1537
+ 825,
1538
+ 393
1539
+ ],
1540
+ "page_idx": 12
1541
+ },
1542
+ {
1543
+ "type": "text",
1544
+ "text": "Diederik P. Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations. ",
1545
+ "bbox": [
1546
+ 171,
1547
+ 402,
1548
+ 823,
1549
+ 433
1550
+ ],
1551
+ "page_idx": 12
1552
+ },
1553
+ {
1554
+ "type": "text",
1555
+ "text": "Katsiaryna Krasnashchok and Salim Jouili. 2018. Improving topic quality by promoting named entities in topic modeling. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1556
+ "bbox": [
1557
+ 176,
1558
+ 441,
1559
+ 825,
1560
+ 484
1561
+ ],
1562
+ "page_idx": 12
1563
+ },
1564
+ {
1565
+ "type": "text",
1566
+ "text": "Klaus Krippendorff. 2004. Content Analysis: an Introduction to its Methodology. SAGE. ",
1567
+ "bbox": [
1568
+ 171,
1569
+ 493,
1570
+ 759,
1571
+ 510
1572
+ ],
1573
+ "page_idx": 12
1574
+ },
1575
+ {
1576
+ "type": "text",
1577
+ "text": "Jey Han Lau, David Newman, and Timothy Baldwin. 2014. Machine reading tea leaves: Automatically evaluating topic coherence and topic model quality. In Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1578
+ "bbox": [
1579
+ 174,
1580
+ 518,
1581
+ 825,
1582
+ 561
1583
+ ],
1584
+ "page_idx": 12
1585
+ },
1586
+ {
1587
+ "type": "text",
1588
+ "text": "Omer Levy and Yoav Goldberg. 2014. Neural word embedding as implicit matrix factorization. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc. ",
1589
+ "bbox": [
1590
+ 174,
1591
+ 570,
1592
+ 823,
1593
+ 601
1594
+ ],
1595
+ "page_idx": 12
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "text": "Lihui Lin, Hongyu Jiang, and Yanghui Rao. 2020. Copula guided neural topic modelling for short texts. In Proceedings of the ACM SIGIR Conference on Research and Development in Information Retrieval. ACM. ",
1600
+ "bbox": [
1601
+ 173,
1602
+ 609,
1603
+ 825,
1604
+ 652
1605
+ ],
1606
+ "page_idx": 12
1607
+ },
1608
+ {
1609
+ "type": "text",
1610
+ "text": "Tianyi Lin, Zhiyue Hu, and Xin Guo. 2019. Sparsemax and relaxed wasserstein for topic sparsity. In International Conference on Web Search and Data Mining (WSDM). ACM. ",
1611
+ "bbox": [
1612
+ 176,
1613
+ 661,
1614
+ 823,
1615
+ 691
1616
+ ],
1617
+ "page_idx": 12
1618
+ },
1619
+ {
1620
+ "type": "text",
1621
+ "text": "Zachary C Lipton. 2018. The mythos of model interpretability: In machine learning, the concept of interpretability is both important and slippery. In Queue. ACM. ",
1622
+ "bbox": [
1623
+ 173,
1624
+ 700,
1625
+ 823,
1626
+ 729
1627
+ ],
1628
+ "page_idx": 12
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "Lin Liu, Lin Tang, Wen Dong, Shaowen Yao, and Wei Zhou. 2016. An overview of topic modeling and its current applications in bioinformatics. In SpringerPlus. ",
1633
+ "bbox": [
1634
+ 171,
1635
+ 739,
1636
+ 823,
1637
+ 768
1638
+ ],
1639
+ "page_idx": 12
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "text": "Luyang Liu, Heyan Huang, Yang Gao, Yongfeng Zhang, and Xiaochi Wei. 2019. Neural variational correlated topic modeling. In Proceedings of the World Wide Web Conference. ACM. ",
1644
+ "bbox": [
1645
+ 171,
1646
+ 777,
1647
+ 823,
1648
+ 808
1649
+ ],
1650
+ "page_idx": 12
1651
+ },
1652
+ {
1653
+ "type": "text",
1654
+ "text": "Jeffrey Lund, Piper Armstrong, Wilson Fearn, Stephen Cowley, Emily Hales, and Kevin Seppi. 2019. Cross-referencing using fine-grained topic modeling. In Proceedings of the Association for Computational Linguistics, Minneapolis, Minnesota. Association for Computational Linguistics. ",
1655
+ "bbox": [
1656
+ 176,
1657
+ 815,
1658
+ 825,
1659
+ 859
1660
+ ],
1661
+ "page_idx": 12
1662
+ },
1663
+ {
1664
+ "type": "text",
1665
+ "text": "Henry Berthold Mann and Donald Ransom Whitney. 1947. On a Test of Whether one of Two Random Variables is Stochastically Larger than the Other. In The Annals of Mathematical Statistics. Institute of Mathematical Statistics. ",
1666
+ "bbox": [
1667
+ 174,
1668
+ 868,
1669
+ 825,
1670
+ 911
1671
+ ],
1672
+ "page_idx": 12
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "text": "Stephen Marche. 2012. Literature is not data: Against digital humanities. In LA Review of Books. ",
1677
+ "bbox": [
1678
+ 169,
1679
+ 92,
1680
+ 810,
1681
+ 107
1682
+ ],
1683
+ "page_idx": 13
1684
+ },
1685
+ {
1686
+ "type": "text",
1687
+ "text": "Andrew Kachites McCallum. 2002. MALLET: A machine learning for language toolkit. ",
1688
+ "bbox": [
1689
+ 173,
1690
+ 117,
1691
+ 754,
1692
+ 132
1693
+ ],
1694
+ "page_idx": 13
1695
+ },
1696
+ {
1697
+ "type": "text",
1698
+ "text": "Elijah Meeks and Scott B Weingart. 2012. The digital humanities contribution to topic modeling. In Journal of Digital Humanities. ",
1699
+ "bbox": [
1700
+ 171,
1701
+ 142,
1702
+ 823,
1703
+ 171
1704
+ ],
1705
+ "page_idx": 13
1706
+ },
1707
+ {
1708
+ "type": "text",
1709
+ "text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2017. Pointer sentinel mixture models. In Proceedings of the International Conference on Learning Representations. ",
1710
+ "bbox": [
1711
+ 174,
1712
+ 181,
1713
+ 823,
1714
+ 212
1715
+ ],
1716
+ "page_idx": 13
1717
+ },
1718
+ {
1719
+ "type": "text",
1720
+ "text": "Yishu Miao, Edward Grefenstette, and Phil Blunsom. 2017. Discovering discrete latent topics with neural variational inference. In Proceedings of the International Conference of Machine Learning. PMLR. ",
1721
+ "bbox": [
1722
+ 173,
1723
+ 220,
1724
+ 826,
1725
+ 263
1726
+ ],
1727
+ "page_idx": 13
1728
+ },
1729
+ {
1730
+ "type": "text",
1731
+ "text": "Yishu Miao, Lei Yu, and Phil Blunsom. 2016. Neural variational inference for text processing. In Proceedings of the International Conference of Machine Learning. PMLR. ",
1732
+ "bbox": [
1733
+ 174,
1734
+ 273,
1735
+ 825,
1736
+ 304
1737
+ ],
1738
+ "page_idx": 13
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "text": "David Mimno, Hanna Wallach, Edmund Talley, Miriam Leenders, and Andrew McCallum. 2011. Optimizing semantic coherence in topic models. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1743
+ "bbox": [
1744
+ 173,
1745
+ 313,
1746
+ 823,
1747
+ 357
1748
+ ],
1749
+ "page_idx": 13
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "John W. Mohr and Petko Bogdanov. 2013. Introduction—topic models: What they are and why they matter. In Poetics. ",
1754
+ "bbox": [
1755
+ 169,
1756
+ 366,
1757
+ 825,
1758
+ 395
1759
+ ],
1760
+ "page_idx": 13
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "text": "Fred Morstatter and Huan Liu. 2018. In search of coherence and consensus: Measuring the interpretability of statistical topics. Journal of Machine Learning Research. ",
1765
+ "bbox": [
1766
+ 171,
1767
+ 405,
1768
+ 825,
1769
+ 435
1770
+ ],
1771
+ "page_idx": 13
1772
+ },
1773
+ {
1774
+ "type": "text",
1775
+ "text": "Feng Nan, Ran Ding, Ramesh Nallapati, and Bing Xiang. 2019. Topic modeling with Wasserstein autoencoders. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1776
+ "bbox": [
1777
+ 174,
1778
+ 444,
1779
+ 826,
1780
+ 488
1781
+ ],
1782
+ "page_idx": 13
1783
+ },
1784
+ {
1785
+ "type": "text",
1786
+ "text": "David Newman, Jey Han Lau, Karl Grieser, and Timothy Baldwin. 2010. Automatic evaluation of topic coherence. In Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1787
+ "bbox": [
1788
+ 173,
1789
+ 497,
1790
+ 826,
1791
+ 541
1792
+ ],
1793
+ "page_idx": 13
1794
+ },
1795
+ {
1796
+ "type": "text",
1797
+ "text": "Dat Quoc Nguyen, Richard Billingsley, Lan Du, and Mark Johnson. 2015. Improving topic models with latent feature word representations. Transactions of the Association for Computational Linguistics. ",
1798
+ "bbox": [
1799
+ 174,
1800
+ 551,
1801
+ 823,
1802
+ 594
1803
+ ],
1804
+ "page_idx": 13
1805
+ },
1806
+ {
1807
+ "type": "text",
1808
+ "text": "Xuefei Ning, Y. Zheng, Zhuxi Jiang, Y. Wang, H. Yang, and J. Huang. 2020. Nonparametric topic modeling with neural inference. In Neurocomputing. ",
1809
+ "bbox": [
1810
+ 171,
1811
+ 603,
1812
+ 823,
1813
+ 633
1814
+ ],
1815
+ "page_idx": 13
1816
+ },
1817
+ {
1818
+ "type": "text",
1819
+ "text": "Madhur Panwar, Shashank Shailabh, Milan Aggarwal, and Balaji Krishnamurthy. 2020. TANNTM: Topic attention networks for neural topic modeling. In Proceedings of the Association for Computational Linguistics. ",
1820
+ "bbox": [
1821
+ 174,
1822
+ 643,
1823
+ 826,
1824
+ 685
1825
+ ],
1826
+ "page_idx": 13
1827
+ },
1828
+ {
1829
+ "type": "text",
1830
+ "text": "Min Peng, Qianqian Xie, Yanchun Zhang, Hua Wang, Xiuzhen Zhang, Jimin Huang, and Gang Tian. 2018. Neural sparse topical coding. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1831
+ "bbox": [
1832
+ 173,
1833
+ 695,
1834
+ 826,
1835
+ 739
1836
+ ],
1837
+ "page_idx": 13
1838
+ },
1839
+ {
1840
+ "type": "text",
1841
+ "text": "Radim Reh˚u ˇ ˇrek and Petr Sojka. 2010. Software Framework for Topic Modelling with Large Corpora. In Proceedings of the Language Resources and Evaluation Conference. ELRA. ",
1842
+ "bbox": [
1843
+ 173,
1844
+ 751,
1845
+ 823,
1846
+ 781
1847
+ ],
1848
+ "page_idx": 13
1849
+ },
1850
+ {
1851
+ "type": "text",
1852
+ "text": "Mehdi Rezaee and Francis Ferraro. 2020. A discrete variational recurrent topic model without the reparametrization trick. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc. ",
1853
+ "bbox": [
1854
+ 173,
1855
+ 790,
1856
+ 825,
1857
+ 833
1858
+ ],
1859
+ "page_idx": 13
1860
+ },
1861
+ {
1862
+ "type": "text",
1863
+ "text": "Michael Röder, Andreas Both, and Alexander Hinneburg. 2015. Exploring the space of topic coherence measures. In International Conference on Web Search and Data Mining (WSDM). ACM. ",
1864
+ "bbox": [
1865
+ 174,
1866
+ 843,
1867
+ 825,
1868
+ 886
1869
+ ],
1870
+ "page_idx": 13
1871
+ },
1872
+ {
1873
+ "type": "text",
1874
+ "text": "Evan Sandhaus. 2008. The New York Times annotated corpus. In Linguistic Data Consortium. ",
1875
+ "bbox": [
1876
+ 171,
1877
+ 896,
1878
+ 797,
1879
+ 911
1880
+ ],
1881
+ "page_idx": 13
1882
+ },
1883
+ {
1884
+ "type": "text",
1885
+ "text": "Benjamin M Schmidt. 2012. Words alone: Dismantling topic models in the humanities. In Journal of Digital Humanities. ",
1886
+ "bbox": [
1887
+ 171,
1888
+ 92,
1889
+ 825,
1890
+ 121
1891
+ ],
1892
+ "page_idx": 14
1893
+ },
1894
+ {
1895
+ "type": "text",
1896
+ "text": "Alexandra Schofield and David Mimno. 2016. Comparing apples to apple: The effects of stemmers on topic models. Transactions of the Association for Computational Linguistics. ",
1897
+ "bbox": [
1898
+ 173,
1899
+ 132,
1900
+ 821,
1901
+ 162
1902
+ ],
1903
+ "page_idx": 14
1904
+ },
1905
+ {
1906
+ "type": "text",
1907
+ "text": "Donald J Schuirmann. 1987. A comparison of the two one-sided tests procedure and the power approach for assessing the equivalence of average bioavailability. In Journal of pharmacokinetics and biopharmaceutics. Springer. ",
1908
+ "bbox": [
1909
+ 173,
1910
+ 172,
1911
+ 826,
1912
+ 217
1913
+ ],
1914
+ "page_idx": 14
1915
+ },
1916
+ {
1917
+ "type": "text",
1918
+ "text": "Denys Silveira, André Carvalho, Marco Cristo, and Marie-Francine Moens. 2018. Topic Modeling using Variational Auto-Encoders with Gumbel-Softmax and Logistic-Normal Mixture Distributions. In International Joint Conference on Neural Networks (IJCNN). ",
1919
+ "bbox": [
1920
+ 174,
1921
+ 228,
1922
+ 823,
1923
+ 271
1924
+ ],
1925
+ "page_idx": 14
1926
+ },
1927
+ {
1928
+ "type": "text",
1929
+ "text": "Akash Srivastava and Charles Sutton. 2017. Autoencoding variational inference for topic models. In Proceedings of the International Conference on Learning Representations. ",
1930
+ "bbox": [
1931
+ 173,
1932
+ 282,
1933
+ 823,
1934
+ 313
1935
+ ],
1936
+ "page_idx": 14
1937
+ },
1938
+ {
1939
+ "type": "text",
1940
+ "text": "Nisan Stiennon, Long Ouyang, Jeff Wu, Daniel M. Ziegler, Ryan J. Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul Christiano. 2020. Learning to summarize from human feedback. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc. ",
1941
+ "bbox": [
1942
+ 173,
1943
+ 323,
1944
+ 826,
1945
+ 366
1946
+ ],
1947
+ "page_idx": 14
1948
+ },
1949
+ {
1950
+ "type": "text",
1951
+ "text": "Marilyn Strathern. 1997. Improving Ratings: Audit in the british university system. In European Review. Cambridge University Press. ",
1952
+ "bbox": [
1953
+ 171,
1954
+ 377,
1955
+ 823,
1956
+ 407
1957
+ ],
1958
+ "page_idx": 14
1959
+ },
1960
+ {
1961
+ "type": "text",
1962
+ "text": "Silvia Terragni, Elisabetta Fersini, Bruno Giovanni Galuzzi, Pietro Tropeano, and Antonio Candelieri. 2021. OCTIS: Comparing and optimizing topic models is simple! In Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics. ",
1963
+ "bbox": [
1964
+ 173,
1965
+ 419,
1966
+ 826,
1967
+ 476
1968
+ ],
1969
+ "page_idx": 14
1970
+ },
1971
+ {
1972
+ "type": "text",
1973
+ "text": "Laure Thompson and D. Mimno. 2020. Topic modeling with contextualized word representation clusters. In ArXiv. ",
1974
+ "bbox": [
1975
+ 171,
1976
+ 487,
1977
+ 823,
1978
+ 516
1979
+ ],
1980
+ "page_idx": 14
1981
+ },
1982
+ {
1983
+ "type": "text",
1984
+ "text": "Runzhi Tian, Yongyi Mao, and Richong Zhang. 2020. Learning VAE-LDA models with rounded reparameterization trick. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
1985
+ "bbox": [
1986
+ 174,
1987
+ 527,
1988
+ 823,
1989
+ 570
1990
+ ],
1991
+ "page_idx": 14
1992
+ },
1993
+ {
1994
+ "type": "text",
1995
+ "text": "William E Underwood. 2017. A genealogy of distant reading. In Digital Humanities Quarterly. Alliance of Digital Humanities Organisations. ",
1996
+ "bbox": [
1997
+ 174,
1998
+ 583,
1999
+ 823,
2000
+ 612
2001
+ ],
2002
+ "page_idx": 14
2003
+ },
2004
+ {
2005
+ "type": "text",
2006
+ "text": "Rui Wang, Xuemeng Hu, Deyu Zhou, Yulan He, Yuxuan Xiong, Chenchen Ye, and Haiyang Xu. 2020a. Neural topic modeling with bidirectional adversarial training. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics. ",
2007
+ "bbox": [
2008
+ 173,
2009
+ 622,
2010
+ 826,
2011
+ 666
2012
+ ],
2013
+ "page_idx": 14
2014
+ },
2015
+ {
2016
+ "type": "text",
2017
+ "text": "Rui Wang, Deyu Zhou, and Yulan He. 2020b. ATM: Adversarial-neural topic model. In Proceedings of the Association for Computational Linguistics. ",
2018
+ "bbox": [
2019
+ 169,
2020
+ 678,
2021
+ 823,
2022
+ 708
2023
+ ],
2024
+ "page_idx": 14
2025
+ },
2026
+ {
2027
+ "type": "text",
2028
+ "text": "Stefan Wellek. 2010. Testing Statistical Hypotheses of Equivalence and Noninferiority. Chapman and Hall/CRC. ",
2029
+ "bbox": [
2030
+ 171,
2031
+ 718,
2032
+ 823,
2033
+ 747
2034
+ ],
2035
+ "page_idx": 14
2036
+ },
2037
+ {
2038
+ "type": "text",
2039
+ "text": "Jiemin Wu, Yanghui Rao, Zusheng Zhang, Haoran Xie, Qing Li, Fu Lee Wang, and Ziye Chen. 2020a. Neural mixed counting models for dispersed topic discovery. In Proceedings of the Association for Computational Linguistics. Association for Computational Linguistics. ",
2040
+ "bbox": [
2041
+ 173,
2042
+ 758,
2043
+ 826,
2044
+ 803
2045
+ ],
2046
+ "page_idx": 14
2047
+ },
2048
+ {
2049
+ "type": "text",
2050
+ "text": "Xiaobao Wu, Chunping Li, Yan Zhu, and Yishu Miao. 2020b. Short text topic modeling with topic distribution quantization and negative sampling decoder. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. ",
2051
+ "bbox": [
2052
+ 176,
2053
+ 814,
2054
+ 823,
2055
+ 857
2056
+ ],
2057
+ "page_idx": 14
2058
+ },
2059
+ {
2060
+ "type": "text",
2061
+ "text": "Liang Yang, Fan Wu, Junhua Gu, Chuan Wang, Xiaochun Cao, Di Jin, and Yuanfang Guo. 2020. Graph attention topic modeling network. In Proceedings of the World Wide Web Conference. ACM. ",
2062
+ "bbox": [
2063
+ 174,
2064
+ 868,
2065
+ 826,
2066
+ 911
2067
+ ],
2068
+ "page_idx": 14
2069
+ },
2070
+ {
2071
+ "type": "text",
2072
+ "text": "Hao Zhang, Bo Chen, Dandan Guo, and Mingyuan Zhou. 2018. WHAI: weibull hybrid autoencoding inference for deep topic modeling. In Proceedings of the International Conference on Learning Representations. \nHe Zhao, Lan Du, Wray L. Buntine, and Mingyuan Zhou. 2018. Dirichlet belief networks for topic structure learning. In Proceedings of Advances in Neural Information Processing Systems. Curran Associates, Inc. \nHe Zhao, Dinh Phung, Viet Huynh, Trung Le, and Wray Buntine. 2021a. Neural topic model via optimal transport. In Proceedings of the International Conference on Learning Representations. \nHe Zhao, Dinh Q. Phung, Viet Huynh, Y. Jin, Lan Du, and W. Buntine. 2021b. Topic modelling meets deep neural networks: A survey. In ArXiv. \nDeyu Zhou, Xuemeng Hu, and Rui Wang. 2020. Neural topic modeling by incorporating document relationship graph. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. \nQile Zhu, Zheng Feng, and Xiaolin Li. 2018. GraphBTM: Graph enhanced autoencoded variational inference for biterm topic model. In Proceedings of Empirical Methods in Natural Language Processing. Association for Computational Linguistics. \nGeorge K. Zipf. 1949. Human Behaviour and the Principle of Least Effort. Addison-Wesley. ",
2073
+ "bbox": [
2074
+ 169,
2075
+ 89,
2076
+ 826,
2077
+ 400
2078
+ ],
2079
+ "page_idx": 15
2080
+ }
2081
+ ]
parse/train/tjdHCnPqoo/tjdHCnPqoo_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/tjdHCnPqoo/tjdHCnPqoo_model.json ADDED
The diff for this file is too large to render. See raw diff