ZHANGYUXUAN-zR commited on
Commit
09955cb
·
verified ·
1 Parent(s): 2893dfa

Add files using upload-large-folder tool

Browse files
parse/train/9GsFOUyUPi/9GsFOUyUPi.md ADDED
@@ -0,0 +1,406 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PROGRESSIVE SKELETONIZATION: TRIMMING MORE FAT FROM A NETWORK AT INITIALIZATION
2
+
3
+ Pau de Jorge∗ University of Oxford & NAVER LABS Europe†
4
+
5
+ Amartya Sanyal University of Oxford & The Alan Turing Institute, London, UK
6
+
7
+ Harkirat S. Behl University of Oxford
8
+
9
+ Philip H. S. Torr University of Oxford
10
+
11
+ Grégory Rogez NAVER LABS Europe
12
+
13
+ Puneet K. Dokania University of Oxford & Five AI Limited
14
+
15
+ # ABSTRACT
16
+
17
+ Recent studies have shown that skeletonization (pruning parameters) of networks at initialization provides all the practical benefits of sparsity both at inference and training time, while only marginally degrading their performance. However, we observe that beyond a certain level of sparsity (approx $9 5 \%$ ), these approaches fail to preserve the network performance, and to our surprise, in many cases perform even worse than trivial random pruning. To this end, we propose an objective to find a skeletonized network with maximum foresight connection sensitivity (FORCE) whereby the trainability, in terms of connection sensitivity, of a pruned network is taken into consideration. We then propose two approximate procedures to maximize our objective (1) Iterative SNIP: allows parameters that were unimportant at earlier stages of skeletonization to become important at later stages; and (2) FORCE: iterative process that allows exploration by allowing already pruned parameters to resurrect at later stages of skeletonization. Empirical analysis on a large suite of experiments show that our approach, while providing at least as good a performance as other recent approaches on moderate pruning levels, provide remarkably improved performance on higher pruning levels (could remove up to $9 9 . 5 \%$ parameters while keeping the networks trainable).
18
+
19
+ # 1 INTRODUCTION
20
+
21
+ The majority of pruning algorithms for Deep Neural Networks require training dense models and often fine-tuning sparse sub-networks in order to obtain their pruned counterparts. In Frankle & Carbin (2019), the authors provide empirical evidence to support the hypothesis that there exist sparse sub-networks that can be trained from scratch to achieve similar performance as the dense ones. However, their method to find such sub-networks requires training the full-sized model and intermediate sub-networks, making the process much more expensive.
22
+
23
+ Recently, Lee et al. (2019) presented SNIP. Building upon almost a three decades old saliency criterion for pruning trained models (Mozer & Smolensky, 1989), they are able to predict, at initialization, the importance each weight will have later in training. Pruning at initialization methods are much cheaper than conventional pruning methods. Moreover, while traditional pruning methods can help accelerate inference tasks, pruning at initialization may go one step further and provide the same benefits at train time Elsen et al. (2020).
24
+
25
+ Wang et al. (2020) (GRASP) noted that after applying the pruning mask, gradients are modified due to non-trivial interactions between weights. Thus, maximizing SNIP criterion before pruning might be sub-optimal. They present an approximation to maximize the gradient norm after pruning, where they treat pruning as a perturbation on the weight matrix and use the first order Taylor’s approximation. While they show improved performance, their approximation involves computing a Hessian-vector product which is expensive both in terms of memory and computation.
26
+
27
+ ![](images/ba3922794f20bd64c31072a7397cfcfc21be6a6c4358b48849b4ca9f0c55dffa.jpg)
28
+ Figure 1: Test accuracies on CIFAR-10 (ResNet50) for different pruning methods. Each point is the average over 3 runs of prune-train-test. The shaded areas denote the standard deviation of the runs (too small to be visible in some cases). Random corresponds to removing connections uniformly.
29
+
30
+ We argue that both SNIP and GRASP approximations of the gradients after pruning do not hold for high pruning levels, where a large portion of the weights are removed at once. In this work, while we rely on the saliency criteria introduced by Mozer & Smolensky (1989), we optimize what this saliency would be after pruning, rather than before. Hence, we name our criteria Foresight Connection sEnsitivity (FORCE). We introduce two approximate procedures to progressively optimize our objective. The first, which turns out to be equivalent to applying SNIP iteratively, removes a small fraction of weights at each step and re-computes the gradients after each pruning round. This allows to take into account the intricate interactions between weights, re-adjusting the importance of connections at each step. The second procedure, which we name FORCE, is also iterative in nature, but contrary to the first, it allows pruned parameters to resurrect. Hence, it supports exploration, which otherwise is not possible in the case of iterative SNIP. Moreover, one-shot SNIP can be viewed as a particular case of using only one iteration. Empirically, we find that both SNIP and GRASP have a sharp drop in performance when targeting higher pruning levels. Surprisingly, they perform even worse than random pruning as can be seen in Fig 1. In contrast, our proposed pruning procedures prove to be significantly more robust on a wide range of pruning levels.
31
+
32
+ # 2 RELATED WORK
33
+
34
+ Pruning trained models Most of the pruning works follow the train – prune – fine-tune cycle (Mozer & Smolensky, 1989; LeCun et al., 1990; Hassibi et al., 1993; Han et al., 2015; Molchanov et al., 2017; Guo et al., 2016), which requires training the dense network until convergence, followed by multiple iterations of pruning and fine-tuning until a target sparsity is reached. Particularly, Molchanov et al. (2017) present a criterion very similar to Mozer & Smolensky (1989) and therefore similar to Lee et al. (2019) and our FORCE, but they focus on pruning whole neurons, and involve training rounds while pruning. Frankle & Carbin (2019) and Frankle et al. (2020) showed that it was possible to find sparse sub-networks that, when trained from scratch or an early training iteration, were able to match or even surpass the performance of their dense counterparts. Nevertheless, to find them they use a costly procedure based on Han et al. (2015). All these methods rely on having a trained network, thus, they are not applicable before training. In contrast, our algorithm is able to find a trainable sub-network with randomly initialized weights. Making the overall pruning cost much cheaper and presenting an opportunity to leverage the sparsity during training as well.
35
+
36
+ Induce sparsity during training Another popular approach has been to induce sparsity during training. This can be achieved by modifying the loss function to consider sparsity as part of the optimization (Chauvin, 1989; Carreira-Perpiñán & Idelbayev, 2018; Louizos et al., 2018) or by dynamically pruning during training (Bellec et al., 2018; Mocanu et al., 2018; Mostafa & Wang, 2019; Dai et al., 2019; Dettmers & Zettlemoyer, 2020; Lin et al., 2020; Kusupati et al., 2020; Evci et al., 2019). These methods are usually cheaper than pruning after training, but they still need to train the network to select the final sparse sub-network. We focus on finding sparse sub-networks before any weight update, which is not directly comparable.
37
+
38
+ Pruning at initialization These methods present a significant leap with respect to other pruning methods. While traditional pruning mechanisms focused on bringing speed-up and memory reduction at inference time, pruning at initialization methods bring the same gains both at training and inference time. Moreover, they can be seen as a form of Neural Architecture Search (Zoph & Le, 2016) to find more efficient network topologies. Thus, they have both a theoretical and practical interest.
39
+
40
+ Lee et al. (2019) presented SNIP, a method to estimate, at initialization, the importance that each weight could have later during training. SNIP analyses the effect of each weight on the loss function when perturbed at initialization. In Lee et al. (2020), the authors studied pruning at initialization from a signal propagation perspective, focusing on the initialization scheme. Recently, Wang et al. (2020) proposed GRASP, a different method based on the gradient norm after pruning and showed a significant improvement for higher levels of sparsity. However, neither SNIP nor GRASP perform sufficiently well when larger compressions and speed-ups are required and a larger fraction of the weights need to be pruned. In this paper, we analyse the approximations made by SNIP and GRASP, and present a more suitable solution to maximize the saliency after pruning.
41
+
42
+ # 3 PROBLEM FORMULATION: PRUNING AT INITIALIZATION
43
+
44
+ Given a dataset $\mathbf { \mathcal { D } } = \{ ( \mathbf { x } _ { i } , \mathbf { y } _ { i } ) \} _ { i = 1 } ^ { n }$ , the training of a neural network $f$ parameterized by $\pmb { \theta } \in \mathbb { R } ^ { m }$ can be written as minimizing the following empirical risk:
45
+
46
+ $$
47
+ \underset { \pmb { \theta } } { \arg \operatorname* { m i n } } \ \frac { 1 } { n } \sum _ { i } \mathcal { L } ( ( f ( \mathbf { x } _ { i } ; \pmb { \theta } ) ) , \mathbf { y } _ { i } ) \quad \mathrm { s . t . } \pmb { \theta } \in \mathcal { C } ,
48
+ $$
49
+
50
+ where $\mathcal { L }$ and $\mathcal { C }$ denote the loss function and the constraint set, respectively. Unconstrained (standard) training corresponds to ${ \mathcal { C } } = \mathbb { R } ^ { m }$ . Assuming we have access to the gradients (batch-wise) of the empirical risk, an optimization algorithm (e.g. SGD) is generally used to optimize the above objective, that, during the optimization process, produces a sequence of iterates $\textcircled { \pmb { \theta } } _ { i } \rbrace _ { i = 0 } ^ { T }$ , where $\pmb { \theta } _ { 0 }$ and $\pmb { \theta } _ { T }$ denote the initial and the final (optimal) parameters, respectively. Given a target sparsity level of $k < m$ , the general parameter pruning problem involves $\mathcal { C }$ with a constraint $\lVert \pmb { \theta } _ { T } \rVert _ { 0 } \leq k$ , i.e., the final optimal iterate must have a maximum of $k$ non-zero elements. Note that there is no such constraint with the intermediate iterates.
51
+
52
+ Pruning at initialization, the main focus of this work, adds further restrictions to the above mentioned formulation by constraining all the iterates to lie in a fixed subspace of $\mathcal { C }$ . Precisely, the constraints are to find an initialization $\pmb { \theta } _ { 0 }$ such that $\lVert \pmb \theta _ { 0 } \rVert _ { 0 } \le k ^ { 1 }$ , and the intermediate iterates are $\pmb { \theta } _ { i } \in \bar { \mathcal { C } } \subset \mathcal { C }$ , $\forall i \in$ $\{ 1 , \ldots , T \}$ , where $\bar { \mathcal { C } }$ is the subspace of $\mathbb { R } ^ { m }$ spanned by the natural basis vectors $\{ \mathbf { e } _ { j } \} _ { j \in \mathtt { s u p p } ( \pmb { \theta } _ { 0 } ) }$ Here, ${ \tt s u p p } ( \pmb { \theta } _ { 0 } )$ denotes the support of $\pmb { \theta } _ { 0 }$ , i.e., the set of indices with non-zero entries. The first condition defines the sub-network at initialization with $k$ parameters, and the second fixes its topology throughout the training process. Since there are $\binom { m } { k }$ such possible sub-spaces, exhaustive search to find the optimal sub-space to optimize (1) is impractical as it would require training $\binom { m } { k }$ neural networks. Below we discuss two recent approaches that circumvent this problem by maximizing a hand-designed data-dependent objective function. These objectives are tailored to preserve some relationships between the parameters, the loss, and the dataset, that might be sufficient to obtain a reliable $\pmb { \theta } _ { 0 }$ . For the ease of notation, we will use $\pmb \theta$ to denote the dense initialization.
53
+
54
+ SNIP Lee et al. (2019) present a method based on the saliency criterion from Mozer & Smolensky (1989). They add a key insight and show this criteria works surprisingly well to predict, at initialization, the importance each connection will have during training. The idea is to preserve the parameters that will have maximum impact on the loss when perturbed. Let $\pmb { c } \in \{ 0 , 1 \} ^ { m }$ be a binary vector, and $\odot$ the Hadamard product. Then, the connection sensitivity in SNIP is computed as:
55
+
56
+ $$
57
+ \pmb { \mathscr { g } } ( \pmb { \theta } ) : = \left. \frac { \partial \mathcal { L } ( \pmb { \theta } \odot \pmb { c } ) } { \partial \pmb { c } } \right| _ { \pmb { c } = 1 } = \frac { \partial \mathcal { L } ( \pmb { \theta } ) } { \partial \pmb { \theta } } \odot \pmb { \theta } .
58
+ $$
59
+
60
+ Once $\pmb { g } ( \pmb { \theta } )$ is obtained, the parameters corresponding to the top- $k$ values of $| g ( \pmb \theta ) _ { i } |$ are then kept. Intuitively, SNIP favors those weights that are far from the origin and provide high gradients (irrespective of the direction). We note that SNIP objective can be written as the following problem:
61
+
62
+ $$
63
+ \operatorname* { m a x } _ { c } S ( \pmb { \theta } , { \pmb { c } } ) : = \sum _ { i \in \mathrm { s u p p } ( { \pmb { c } } ) } | \theta _ { i } \nabla \mathcal { L } ( \pmb { \theta } ) _ { i } | \mathrm { s . t . } { \pmb { c } } \in \{ 0 , 1 \} ^ { m } , \| { \pmb { c } } \| _ { 0 } = k .
64
+ $$
65
+
66
+ It is trivial to note that the optimal solution to the above problem can be obtained by selecting the indices corresponding to the top- $k$ values of $| \theta _ { i } \nabla \mathcal { L } ( \theta ) _ { i } |$ .
67
+
68
+ GRASP Wang et al. (2020) note that the SNIP saliency is measuring the connection sensitivity of the weights before pruning, however, it is likely to change after pruning. Moreover, they argue that, at initialization, it is more important to preserve the gradient signal than the loss itself. They propose to use as saliency the gradient norm of the loss $\Delta \mathcal { L } ( \mathbf { \bar { \boldsymbol { \theta } } } ) = \nabla \mathcal { L } ( \mathbf { \bar { \boldsymbol { \theta } } } ) ^ { T } \nabla \mathcal { L } ( \mathbf { \boldsymbol { \theta } } )$ , but measured after pruning. To maximize it, Wang et al. (2020) adopt the same approximation introduced in LeCun et al. (1990) and treat pruning as a perturbation on the initial weights. Their method is equivalent to solving:
69
+
70
+ $$
71
+ \operatorname* { m a x } _ { c } G ( \theta , c ) : = \sum _ { \left\{ i : c _ { i } = 0 \right\} } - \theta _ { i } \left[ \mathbf { H } \mathbf { g } \right] _ { i } \mathrm { ~ s . t . ~ } c \in \{ 0 , 1 \} ^ { m } , \| c \| _ { 0 } = k .
72
+ $$
73
+
74
+ Where $\mathbf { H }$ and $\mathbf { g }$ denote the Hessian and the gradient of the loss respectively.
75
+
76
+ # 4 FORESIGHT CONNECTION SENSITIVITY
77
+
78
+ Since removing connections of a neural network will have significant impact on its forward and backward signals, we are interested in obtaining a pruned network that is easy to train. We use connection sensitivity of the loss function as a proxy for the so-called trainability of a network. To this end, we first define connection sensitivity after pruning which we name Foresight Connection sEnsitivity (FORCE), and then propose two procedures to optimize it in order to obtain the desired pruned network. Let $\bar { \pmb { \theta } } = \pmb { \theta } \odot \bar { \pmb { c } }$ denotes the pruned parameters once a binary mask $^ c$ with $\| \boldsymbol { c } \| _ { 0 } =$ $k \leq m$ is applied. The FORCE at $\bar { \pmb { \theta } }$ for a given mask $\hat { c }$ is then obtained as:
79
+
80
+ $$
81
+ g ( \bar { \theta } ) : = \left. \frac { \partial \mathcal { L } ( \bar { \theta } ) } { \partial c } \right| _ { c = \hat { c } } = \left. \frac { \partial \mathcal { L } ( \bar { \theta } ) } { \partial \bar { \theta } } \right| _ { c = \hat { c } } \odot \left. \frac { \partial \bar { \theta } } { \partial c } \right| _ { c = \hat { c } } = \left. \frac { \partial \mathcal { L } ( \bar { \theta } ) } { \partial \bar { \theta } } \right| _ { c = \hat { c } } \odot \theta .
82
+ $$
83
+
84
+ The last equality is obtained by rewriting $\bar { \pmb { \theta } }$ as $\mathrm { d i a g } ( \pmb { \theta } ) \pmb { c }$ , where $\operatorname { d i a g } ( \pmb \theta )$ is a diagonal matrix with $\pmb \theta$ as its elements, and then differentiating w.r.t. $^ c$ . Note, when $k < m$ , the sub-network $\bar { \pmb { \theta } }$ is obtained by removing connections corresponding to all the weights for which the binary variable is zero. Therefore, only the weights corresponding to the indices for which $\mathbf { \boldsymbol { c } } ( i ) = 1$ contribute in equation (5), all other weights do not participate in forward and backward propagation and are to be ignored. We now discuss the crucial differences between our formulation (5), SNIP (2) and GRASP (4).
85
+
86
+ • When $\hat { c } = { \bf 1 }$ , the formulation is exactly the same as the connection sensitivity used in SNIP. However, $\hat { c } = { \bf 1 }$ is too restrictive in the sense that it assumes that all the parameters are active in the network and they are removed one by one with replacement, therefore, it fails to capture the impact of removing a group of parameters. Our formulation uses weights and gradients corresponding to $\bar { \pmb { \theta } }$ thus, compared to SNIP, provides a better indication of the training dynamics of the pruned network. However, GRASP formulation is based on the assumption that pruning is a small perturbation on the Gradient Norm which, also shown experimentally, is not always a reliable assumption. When $\left\| \hat { \pmb { c } } \right\| _ { 0 } \ll \| \mathbf { 1 } \| _ { 0 }$ , i.e., extreme pruning, the gradients before and after pruning will have very different values as $\lVert \pmb \theta \odot \hat { \pmb c } \rVert _ { 2 } \ll \lVert \pmb \theta \rVert _ { 2 }$ , making SNIP and GRASP unreliable (empirically we find SNIP and GRASP fail in the case of high sparsity).
87
+
88
+ FORCE saliency Note FORCE (5) is defined for a given sub-network which is unknown a priori, as our objective itself is to find the sub-network with maximum connection sensitivity. Similar to the reformulation of SNIP in (3), the objective to find such sub-network corresponding to the foresight connection sensitivity can be written as:
89
+
90
+ $$
91
+ \operatorname* { m a x } _ { c } S ( \pmb { \theta } , \pmb { c } ) : = \sum _ { i \in \mathrm { s u p p } ( \pmb { c } ) } \left| \theta _ { i } \nabla \mathcal { L } ( \pmb { \theta } \odot \pmb { c } ) _ { i } \right| \mathrm { ~ s . t . ~ } \pmb { c } \in \{ 0 , 1 \} ^ { m } , \| \pmb { c } \| _ { 0 } = k .
92
+ $$
93
+
94
+ Here $\nabla { \mathcal { L } } ( \pmb { \theta } \odot \mathbf { c } ) _ { i }$ represents the $i$ -th index of $\left. \frac { \partial \mathcal { L } ( \bar { \pmb { \theta } } ) } { \partial \bar { \pmb { \theta } } } \right| _ { c }$ . As opposed to (3), finding the optimal solution of (6) is non trivial as it requires computing the gradients of all possible $\binom { m } { k }$ sub-networks in order to find the one with maximum sensitivity. To this end, we present two approximate solutions to the above problem that primarily involve (i) progressively increasing the degree of pruning, and (ii) solving an approximation of (6) at each stage of pruning.
95
+
96
+ Progressive Pruning (Iterative SNIP) Let $k$ be the number of parameters to be kept after pruning. Let us assume that we know a schedule (will be discussed later) to divide $k$ into a set of natural numbers $\{ k _ { t } \} _ { t = 1 } ^ { T }$ such that $k _ { t } > k _ { t + 1 }$ and $k _ { T } = k$ . Now, given the mask $c _ { t }$ corresponding to $k _ { t }$ , pruning from $k _ { t }$ to $k _ { t + 1 }$ can be formulated using the connection sensitivity (5) as:
97
+
98
+ $$
99
+ \begin{array} { r } { c _ { t + 1 } = \underset { c } { \arg \operatorname* { m a x } } \ S ( \bar { \theta } , c ) \mathrm { ~ s . t . ~ } c \in \{ 0 , 1 \} ^ { m } , \ \left. c \right. _ { 0 } = k _ { t + 1 } , \ c \odot c _ { t } = c , } \end{array}
100
+ $$
101
+
102
+ where $\bar { \pmb { \theta } } = \pmb { \theta } \odot \pmb { c } _ { t }$ . The additional constraint $\mathbf { \boldsymbol { c } } \odot \mathbf { \boldsymbol { c } } _ { t } = \mathbf { \boldsymbol { c } }$ ensures that no parameter that had been pruned earlier is activated again. Assuming that the pruning schedule ensures a smooth transition from one topology to another $( \left\| \pmb { c } _ { t } \right\| _ { 0 } \approx \left\| \pmb { c } _ { t + 1 } \right\| _ { 0 } )$ such that the gradient approximation $\begin{array} { r } { \left. \frac { \partial \mathcal { L } ( \bar { \pmb { \theta } } ) } { \partial \bar { \pmb { \theta } } } \right| _ { \pmb { c } _ { t } } \approx \left. \frac { \partial \mathcal { L } ( \bar { \pmb { \theta } } ) } { \partial \bar { \pmb { \theta } } } \right| _ { \pmb { c } _ { t + 1 } } } \end{array}$ is valid, (7) can be approximated as solving (3) at $\bar { \pmb { \theta } }$ . Thus, for a given schedule over $k$ , our first approximate solution to (6) involves solving (3) iteratively. This allows re-assessing the importance of connections after changing the sub-network. For a schedule with $T = 1$ , we recover SNIP where a crude gradient approximation between the dense network $\mathbf { c } _ { 0 } = \mathbf { 1 }$ and the final mask $^ c$ is being used. This approach of ours turns out to be algorithmically similar to a concurrent work (Verdenius et al., 2020). However, our motivation comes from a novel objective function (5) which also gives place to our second approach (FORCE). Tanaka et al. (2020) also concurrently study the effect of iterative pruning and report, similar to our findings, pruning progressively is needed for high sparsities.
103
+
104
+ Progressive Sparsification (FORCE) The constraint $\mathbf { \boldsymbol { c } } \odot \mathbf { \boldsymbol { c } } _ { t } = \mathbf { \boldsymbol { c } }$ in (7) (Iterative SNIP) might be restrictive in the sense that while re-assessing the importance of unpruned parameters, it does not allow previously pruned parameters to resurrect (even if they could become important). This hinders exploration which can be unfavourable in finding a suitable sub-network. Here we remove this constraint, meaning, the weights for which $\boldsymbol { c } ( i ) = \bar { 0 }$ are not removed from the network, rather they are assigned a value of zero. Therefore, while not contributing to the forward signal, they might have a non-zero gradient. This relaxation modifies the saliency in (5) whereby the gradient is now computed at a sparsified network instead of a pruned network. Similar to the above approach, we sparsify the network progressively and once the desired sparsity is reached, all connections with $\bar { \mathbf { \Psi } } \bar { \mathbf { c } } ( i ) = \mathbf { \bar { 0 } }$ are pruned. Note, the step of removing zero weights is valid if removing such connections does not adversely impact the gradient flow of the unpruned parameters. We, in fact, found it to be true in our experiments shown in Fig 7 (Appendix). However, this assumption might not hold always.
105
+
106
+ An overview of Iterative SNIP and FORCE is presented in Algorithm 1.
107
+
108
+ Sparsity schedule Both the above discussed iterative procedures approximately optimize (5), however, they depend on a sparsity/pruning schedule favouring small steps to be able to reliably apply the mentioned gradient approximation. One such valid schedule would be where the portion of newly removed weights with respect to the remaining weights is small. We find a simple exponential decay schedule, defined below, to work very well on all our experiments:
109
+
110
+ $$
111
+ { \mathrm { p ~ m o d e : ~ } } k _ { t } = \exp \left\{ \alpha \log k + ( 1 - \alpha ) \log m \right\} , \ \alpha = { \frac { t } { T } } .
112
+ $$
113
+
114
+ In section 5.3 we empirically show that these methods are very robust to the hyperparameter $T$ .
115
+
116
+ Some theoretical insights When pruning weights gradually, we are looking for the best possible sub-network in a neighbourhood defined by the previous mask and the amount of weights removed at that step. The problem being non-convex and non-smooth makes it challenging to prove if the mask
117
+
118
+ Algorithm 1 FORCE/Iter SNIP algorithms to find a pruning mask
119
+
120
+ 1: Inputs: Training set $\mathcal { D }$ , final sparsity $k$ , number of steps $T$ , weights $\pmb { \theta } _ { 0 } \in \mathbb { R } ^ { m }$ .
121
+ 2: Obtain $\{ k _ { t } \} _ { t = 1 : T }$ using the chosen schedule (refer to Eq (8))
122
+ 3: Define intial mask $\mathbf { c _ { 0 } = 1 }$
123
+ 4: for $t = 0 , \ldots , T - 1$ do
124
+ 5: Sample mini-batch $\{ z _ { i } \} _ { i = 1 } ^ { n }$ from $\mathcal { D }$
125
+ 6: Define $\bar { \pmb { \theta } } = \pmb { \theta } \odot \pmb { c } _ { t }$ (as sparsified (FORCE) vs pruned (Iter SNIP) network)
126
+ 7: Compute $\pmb { g } ( \bar { \pmb { \theta } } )$ (refer to Eq (5) )
127
+ 8: $I = \{ i _ { 1 } , \dots , i _ { k _ { t + 1 } } \}$ are top- $k _ { t + 1 }$ values of $\left| g _ { i } \right|$
128
+ 9: Build $c _ { t + 1 }$ by setting to 0 all indices not included in $I$ .
129
+ 10: end for
130
+ 11: Return: $c _ { T }$ .
131
+
132
+ obtained by our method is globally optimal. However, in Appendix D we prove that each intermediate mask obtained with Iterative SNIP is indeed an approximate local minima, where the degree of sub-optimality increases with the pruning step size. This gives some validation on why SNIP fails on higher sparsity. We can not provide the same guarantees for FORCE (there is no obvious link between the step size and the distance between masks), nevertheless, we empirically observe that FORCE is quite robust and more often than not improves over the performance of Iterative SNIP, which is not able to recover weights once pruned. We present further analysis in Appendix C.4.
133
+
134
+ # 5 EXPERIMENTS
135
+
136
+ In the following we evaluate the efficacy of our approaches accross different architectures and datasets.
137
+ Training settings, architecture descriptions, and implementation details are provided in Appendix A.
138
+
139
+ # 5.1 RESULTS ON CIFAR-10
140
+
141
+ Fig 2 compares the accuracy of the described iterative approaches with both SNIP and GRASP. We also report the performance of a dense and a random pruning baseline. Both SNIP and GRASP consider a single batch to approximate the saliencies, while we employ a different batch of data at each stage of our gradual skeletonization process. For a fair comparison, and to understand how the number of batches impacts performance, we also run these methods averaging the saliencies over $T$ batches, where $T$ is the number of iterations. SNIP-MB and GRASP-MB respectively refer to these multi-batch (MB) counterparts. In these experiments, we use $T = 3 0 0$ . We study the hyper-parameter robustness regarding $T$ later in section 5.3.
142
+
143
+ ![](images/32ae3d8e970d3d96e95e4913d95d9fce042a50161dfcde406b9c09285a092db6.jpg)
144
+ Figure 2: Test accuracies on CIFAR-10 for different pruning methods. With increased number of batches (-MB) one-shot methods are more robust at higher sparsity levels, but our gradual pruning approaches can go even further. Moreover, FORCE consistently reaches higher accuracy than other methods across most sparsity levels. Each point is an average of $\geq 3$ runs of prune-train-test. The shaded areas denote the standard deviation of the runs (too small to be visible in some cases). Note that in (b), GRASP and GRASP-MB overlap.
145
+
146
+ We observe that for moderate sparsity levels, one batch is sufficient for both SNIP and GRASP as reported in Lee et al. (2019); Wang et al. (2020). However, as we increase the level of sparsity, the performance of SNIP and GRASP degrades dramatically. For example, at $9 9 . 0 \%$ sparsity, SNIP drops down to $1 0 \%$ accuracy for both ResNet50 and VGG19, which is equivalent to random guessing as there are 10 classes. Note, in the case of randomly pruned networks, accuracy is nearly $\bar { 7 } 5 \%$ and $8 2 \%$ for ResNet50 and VGG19, respectively, which is significantly better than the performance of SNIP. However, to our surprise, just using multiple batches to compute the connection sensitivity used in SNIP improves it from $1 0 \%$ to almost $9 0 \%$ . This clearly indicates that a better approximation of the connection sensitivity is necessary for good performance in the case of high sparsity regime. Similar trends, although not this extreme, can be observed in the case of GRASP as well. On the other hand, gradual pruning approaches are much more robust in terms of sparsity for example, in the case of $9 9 . { \bar { 9 } } \%$ pruning, while one-shot approaches perform as good as a random classifier (nearly $1 0 \%$ accuracy), both FORCE and Iterative SNIP obtain more than $8 0 \%$ accuracy. While the accuracies obtained at higher sparsities might have degraded too much for some use cases, we argue this is an encouraging result, as no approach before has pruned a network at initialization to such extremes while keeping the network trainable and these results might encourage the community to improve the performance further. Finally, gradual pruning methods consistently improve over other methods even at moderate sparsity levels (refer to Fig 5), this motivates the use of FORCE or Iterative SNIP instead of other methods by default at any sparsity regime. Moreover, the additional cost of using iterative pruning instead of SNIP-MB is negligible compared to the cost of training and is significantly cheaper than GRASP-MB, further discussed in section 5.3.
147
+
148
+ ![](images/ff11ed6c70a4393fea4dc1aba0d965cdfd05ac6875771c946b2f6733a5aea11e.jpg)
149
+ Figure 3: Test accuracies on CIFAR-100 and Tiny Imagenet for different pruning methods. Each point is the average over 3 runs of prune-train-test. The shaded areas denote the standard deviation of the runs (too small to be visible in some cases).
150
+
151
+ # 5.2 RESULTS ON LARGER DATASETS
152
+
153
+ We now present experiments on large datasets. Wang et al. (2020) and Lee et al. (2019) suggest using a batch of size ${ \sim } 1 0$ times the number of classes, which is very large in these experiments. Instead, for memory efficiency, we average the saliencies over several mini-batches. For CIFAR100 and Tiny-ImageNet, we average 10 and 20 batches per iteration respectively, with 128 examples per batch. As we increase the number of batches per iteration, computing the pruning mask becomes more expensive. From Fig 4, we observe that the accuracy converges after just a few iterations. Thus, for the following experiments we used 60 iterations. For a fair comparison, we run SNIP and GRASP with $T \times B$ batches, where $T$ is the number of iterations and $B$ the number of batches per iteration in our method. We find the results, presented in Fig 3, consistent with trends in CIFAR-10.
154
+
155
+ In the case of Imagenet, we use a batch size of 256 examples and 40 batches per iteration. We use the official implementation of VGG19 with batch norm and Resnet50 from Paszke et al. (2017). As presented in Table 1, gradual pruning methods are consistently better than SNIP, with a larger gap as we increase sparsity. We would like to emphasize that FORCE is able to prune $9 0 \%$ of the weights of VGG while losing less than $3 \%$ of the accuracy, we find this remarkable for a method that prunes before any weight update. Interestingly, GRASP performs better than other methods at $9 5 \%$ sparsity (VGG), moreover, it also slightly surpasses FORCE for Resnet50 at $90 \%$ , however, it under-performs random pruning at $9 5 \%$ . In fact, we find all other methods to perform worse than random pruning for Resnet50. We hypothesize that, for a much more challenging task (Imagenet with 1000 classes), Resnet50 architecture might not be extremely overparametrized. For instance,
156
+
157
+ Table 1: Test accuracies on Imagenet for different pruning methods and sparsities.
158
+
159
+ <table><tr><td>Network</td><td colspan="4">VGG19</td><td colspan="4">Resnet50</td></tr><tr><td>Sparsity percentage</td><td colspan="2">90%</td><td colspan="2">95%</td><td colspan="2">90%</td><td colspan="2">95%</td></tr><tr><td>Accuracy</td><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td>(Baseline)</td><td>73.1</td><td>91.3</td><td></td><td></td><td>75.6</td><td>92.8</td><td></td><td></td></tr><tr><td>FORCE (Ours)</td><td>70.2</td><td>89.5</td><td>65.8</td><td>86.8</td><td>64.9</td><td>86.5</td><td>59.0</td><td>82.3</td></tr><tr><td>Iter SNIP (Ours)</td><td>69.8</td><td>89.5</td><td>65.9</td><td>86.9</td><td>63.7</td><td>85.5</td><td>54.7</td><td>78.9</td></tr><tr><td>GRASP Wang et al. (2020)</td><td>69.5</td><td>89.2</td><td>67.6</td><td>87.8</td><td>65.4</td><td>86.7</td><td>46.2</td><td>66.0</td></tr><tr><td>SNIP Lee et al. (2019)</td><td>68.5</td><td>88.8</td><td>63.8</td><td>86.0</td><td>61.5</td><td>83.9</td><td>44.3</td><td>69.6</td></tr><tr><td>Random</td><td>64.2</td><td>86.0</td><td>56.6</td><td>81.0</td><td>64.6</td><td>86.0</td><td>57.2</td><td>80.8</td></tr></table>
160
+
161
+ ![](images/1f32e408cc2d391823461cfa36c40447f4cb419570cbc4b6ef418e23f8b86445.jpg)
162
+ Figure 4: Left: FORCE saliency (6) obtained with (7) when varying $T$ normalized by the saliency with one-shot SNIP $T = 1$ ). Pruning iteratively brings more gains for higher sparsity levels. Error bars not shown for better visualization. Middle: Test acc pruning with FORCE and Iter SNIP at $9 9 . 5 \%$ sparsity for different $T$ . Both methods are extremely robust to the choice of $T$ . Right: Wall time to compute pruning masks for CIFAR10/Resnet50/TeslaK40m vs acc at $9 9 . 5 \%$ sparsity; $( x \ b )$ means we used $x$ batches to compute the gradients while $\scriptstyle { \dot { x } }$ it) denotes we used $x$ pruning iterations, with one batch per iteration. Numbers in red indicate performance below random pruning.
163
+
164
+ VGG19 has 143.68M parameters while Resnet50 uses 25.56M (refer to Table 2). On the other hand, the fact that random pruning can yield relatively trainable architectures for these sparsity levels is somewhat surprising and might indicate that there still is room for improvement in this direction. Results seem to indicate that the FORCE saliency is a step in the right direction and we hypothesize further improvements on its optimization might lead to even better performance. In Appendix C.6, we show superior performance of our approach on the Mobilenet-v2 architecture (Sandler et al., 2018) as well, which is much more "slim" than Resnet and VGG 2.
165
+
166
+ # 5.3 ANALYSIS
167
+
168
+ Saliency optimization To experimentally validate our approach (7), we conduct an ablation study where we compute the FORCE saliency after pruning (5) while varying the number of iterations $T$ for different sparsity levels. In Fig 4 (left) we present the relative change in saliency as we vary the number of iterations $T$ , note when $T = 1$ we recover one-shot SNIP. As expected, for moderate levels of sparsity, using multiple iterations does not have a significant impact on the saliency. Nevertheless, as we target higher sparsity levels, we can see that the saliency can be better optimized when pruning iteratively. In Appendix C.1 we include results for FORCE where we observe similar trends.
169
+
170
+ Hyperparameter robustness As shown in Figures 2 and 3, for low sparsity levels, all methods are comparable, but as we move to higher sparsity levels, the gap becomes larger. In Fig 4 (middle) we fix sparsity at $9 9 . 5 \%$ and study the accuracy as we vary the number of iterations $T$ . Each point is averaged over 3 trials. SNIP $T = 1$ ) yields sub-networks unable to train $10 \%$ acc), but as we move to iterative pruning $( T > 1$ ) accuracy increases up to $90 \%$ for FORCE and $89 \%$ for Iter SNIP. Moreover, accuracy is remarkably robust to the choice of $T$ , the best performance for both FORCE and Iter SNIP is with more iterations, however a small number of iterations already brings a huge boost. This suggests these methods might be used by default by a user without worrying too much about hyper-parameter tuning, easily adapting the amount of iterations to their budget.
171
+
172
+ Pruning cost As shown in Fig 2, SNIP performance quickly degrades beyond $9 5 \%$ sparsity. Wang et al. (2020) suggested GRASP as a more robust alternative, however, it needs to compute a Hessian vector product which is significantly more expensive in terms of memory and time. In Fig 4 (right), we compare the time cost of different methods to obtain the pruning masks along with the corresponding accuracy. We observe that both SNIP and GRASP are fragile when using only one batch (red accuracy indicates performance below random baseline). When using multiple batches their robustness increases, but so does the pruning cost. Moreover, we find that gradual pruning based on the FORCE saliency is much cheaper than GRASP-MB when using equal amount of batches, this is because GRASP involves an expensive Hessian vector product. Thus, FORCE (or Iterative SNIP) would be preferable over GRASP-MB even when they have comparable accuracies.
173
+
174
+ FORCE vs Iterative SNIP Empirically, we find that FORCE tends to outperform Iter SNIP more often than not, suggesting that allowing weights to recover is indeed beneficial despite having less theoretical guarantees (see gradient approximation in Section 4). Thus, we would make FORCE algorithm our default choice, especially for Resnet architectures. In Appendix C.4 we empirically observe two distinct phases when pruning with FORCE. The first one involves exploration (early phase) when the amount of pruned and recovered weights seem to increase, indicating exploration of masks that are quite different from each other. The second, however, shows rapid decrease in weight recovery, indicating a phase where the algorithm converges to a more constrained topology. As opposed to Iter SNIP, the possibility of the exploration of many possible sub-networks before converging to a final topology might be the reason behind the slightly improved performance of FORCE. But this exploration comes at a price, in Fig 4 (middle and left) we observe how, despite FORCE reaching a higher accuracy when using enough steps, if we are under a highly constrained computational budget and can only afford a few pruning iterations, Iter SNIP is more likely to obtain a better pruning mask. This is indeed expected as FORCE might need more iterations to converge to a good sub-space, while Iter SNIP will be forced to converge by construction. A combination of FORCE and Iter SNIP might lead to an even better approach, we leave this for future work.
175
+
176
+ Early pruning as an additional baseline Our gradual pruning approaches (SNIP-MB and GRASPMB as well) use multiple batches to obtain a pruned mask, considering that pruning can be regarded as a form of training (Mallya et al., 2018), we create another baseline for the sake of completeness. We train a network for one epoch, a similar number of iterations as used by our approach, and then use magnitude pruning to obtain the final mask, we call this approach early pruning (more details in Appendix C.5). Interestingly, we find that early pruning tends to perform worse than SNIP-MB (and gradual pruning) for Resnet, and shows competitive performance at low sparsity level for VGG but with a sharp drop in the performance as the sparsity level increases. Even though these experiments support the superiority of our approach, we would like to emphasize that they do not conclude that any early pruning strategy would be suboptimal compared to pruning at initialization as an effective approach in this direction might require devising a well thought objective function.
177
+
178
+ Iterative pruning to maximize the Gradient Norm In Sec 4, we have seen Iterative SNIP can be used to optimize the FORCE saliency. We also tried to use GRASP iteratively, however, after a few iterations the resulting networks were not trainable. Interestingly, if we apply the gradient approximation to GRASP saliency (instead of Taylor), we can come up with a different iterative approximation to maximize the gradient norm after pruning. We empirically observe this method is more robust than GRASP to high sparsity levels. This suggests that 1) Iterative pruning, although beneficial, can not be trivially applied to any method. 2) The gradient approximation is more general than in the context of FORCE/SNIP sensitivity. We present further details and results in Appendix E.
179
+
180
+ # 6 DISCUSSION
181
+
182
+ Pruning at initialization has become an active area of research both for its practical and theoretical interests. In this work, we discovered that existing methods mostly perform below random pruning at extreme sparsity regime. We presented FORCE, a new saliency to compute the connection sensitivity after pruning, and two approximations to progressively optimize FORCE in order to prune networks at initialization. We showed that our methods are significantly better than the existing approaches for pruning at extreme sparsity levels, and are at least as good as the existing ones for pruning at moderate sparsity levels. We also provided theoretical insights on why progressive skeletonization is beneficial at initialization, and showed that the cost of iterative methods is reasonable compared to the existing ones. Although pruning iteratively has been ubiquitous in the pruning community, it was not evident that pruning at initialization might benefit from this scheme. Particularly, not every approximation could be used for gradual pruning as we have shown with GRASP. However, the gradient approximation allowed us to gradually prune while maximizing either the gradient norm or FORCE. We consider our results might encourage future work to further investigate the exploration/exploitation trade-off in pruning and find more efficient pruning schedules, not limited to the pruning at initialization.
183
+
184
+ # ACKNOWLEDGMENTS
185
+
186
+ This work was supported by the Royal Academy of Engineering under the Research Chair and Senior Research Fellowships scheme, EPSRC/MURI grant EP/N019474/1 and Five AI Limited. Pau de Jorge was fully funded by NAVER LABS Europe. Amartya Sanyal acknowledges support from The Alan Turing Institute under the Turing Doctoral Studentship grant TU/C/000023. Harkirat was supported using a Tencent studentship through the University of Oxford.
187
+
188
+ # REFERENCES
189
+
190
+ Guillaume Bellec, David Kappel, Wolfgang Maass, and Robert Legenstein. Deep rewiring: Training very sparse deep networks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ BJ_wN01C-.
191
+
192
+ Miguel Á. Carreira-Perpiñán and Yerlan Idelbayev. “learning-compression” algorithms for neural net pruning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
193
+
194
+ Yves Chauvin. A back-propagation algorithm with optimal use of hidden units. In Advances in neural information processing systems, pp. 519–526, 1989.
195
+
196
+ Xiaoliang Dai, Hongxu Yin, and Niraj K Jha. Nest: A neural network synthesis tool based on a grow-and-prune paradigm. IEEE Transactions on Computers, 68(10):1487–1497, 2019.
197
+
198
+ Tim Dettmers and Luke Zettlemoyer. Sparse networks from scratch: Faster training without losing performance, 2020. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ ByeSYa4KPS.
199
+
200
+ Erich Elsen, Marat Dukhan, Trevor Gale, and Karen Simonyan. Fast sparse convnets. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14629–14638, 2020.
201
+
202
+ Utku Evci, Trevor Gale, Jacob Menick, Pablo Samuel Castro, and Erich Elsen. Rigging the lottery: Making all tickets winners. arXiv preprint arXiv:1911.11134, 2019.
203
+
204
+ Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2019. URL https: //openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ rJl-b3RcF7.
205
+
206
+ Jonathan Frankle, Gintare Karolina Dziugaite, Daniel M. Roy, and Michael Carbin. Stabilizing the lottery ticket hypothesis, 2020.
207
+
208
+ Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. In Advances in neural information processing systems, pp. 1379–1387, 2016.
209
+
210
+ Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pp. 1135–1143, 2015.
211
+
212
+ Babak Hassibi, David G Stork, and Gregory J Wolff. Optimal brain surgeon and general network pruning. In IEEE international conference on neural networks, pp. 293–299. IEEE, 1993.
213
+
214
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015.
215
+
216
+ Alex Krizhevsky et al. Learning multiple layers of features from tiny images, 2009.
217
+
218
+ Aditya Kusupati, Vivek Ramanujan, Raghav Somani, Mitchell Wortsman, Prateek Jain, Sham M. Kakade, and Ali Farhadi. Soft threshold weight reparameterization for learnable sparsity. ArXiv, abs/2002.03231, 2020.
219
+
220
+ Yann LeCun, John S Denker, and Sara A Solla. Optimal brain damage. In Advances in neural information processing systems, pp. 598–605, 1990.
221
+
222
+ Namhoon Lee, Thalaiyasingam Ajanthan, and Philip Torr. SNIP: SINGLE-SHOT NETWORK PRUNING BASED ON CONNECTION SENSITIVITY. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ B1VZqjAcYX.
223
+
224
+ Namhoon Lee, Thalaiyasingam Ajanthan, Stephen Gould, and Philip H. S. Torr. A signal propagation perspective for pruning neural networks at initialization. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ HJeTo2VFwH.
225
+
226
+ Tao Lin, Sebastian U. Stich, Luis Barba, Daniil Dmitriev, and Martin Jaggi. Dynamic model pruning with feedback. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $_ { \cdot } =$ SJem8lSFwB.
227
+
228
+ Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In International Conference on Learning Representations, 2018.
229
+
230
+ Christos Louizos, Max Welling, and Diederik P. Kingma. Learning sparse neural networks through l0 regularization. In International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id ${ . } =$ H1Y8hhg0b.
231
+
232
+ Arun Mallya, Dillon Davis, and Svetlana Lazebnik. Piggyback: Adapting a single network to multiple tasks by learning to mask weights. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 67–82, 2018.
233
+
234
+ Decebal Constantin Mocanu, Elena Mocanu, Peter Stone, Phuong H Nguyen, Madeleine Gibescu, and Antonio Liotta. Scalable training of artificial neural networks with adaptive sparse connectivity inspired by network science. Nature communications, 9(1):1–12, 2018.
235
+
236
+ Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. In International Conference on Learning Representations, 2017.
237
+
238
+ Hesham Mostafa and Xin Wang. Parameter efficient training of deep convolutional neural networks by dynamic sparse reparameterization, 2019. URL https://openreview.net/forum? id=S1xBioR5KX.
239
+
240
+ Michael C Mozer and Paul Smolensky. Skeletonization: A technique for trimming the fat from a network via relevance assessment. In Advances in Neural Information Processing Systems, 1989.
241
+
242
+ Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch, 2017.
243
+
244
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115 (3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.
245
+
246
+ M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L. Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4510–4520, 2018. doi: 10.1109/CVPR.2018.00474.
247
+
248
+ Hidenori Tanaka, Daniel Kunin, Daniel L Yamins, and Surya Ganguli. Pruning neural networks without any data by iteratively conserving synaptic flow. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 6377–6389. Curran Associates, Inc., 2020. URL https://proceedings.neurips. cc/paper/2020/file/46a4378f835dc8040c8057beb6a2da52-Paper.pdf.
249
+
250
+ Stijn Verdenius, Maarten Stol, and Patrick Forré. Pruning via iterative ranking of sensitivity statistics. arXiv preprint arXiv:2006.00896, 2020.
251
+
252
+ Chaoqi Wang, Guodong Zhang, and Roger Grosse. Picking winning tickets before training by preserving gradient flow. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ SkgsACVKPH.
253
+
254
+ Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016.
255
+
256
+ # A PRUNING IMPLEMENTATION DETAILS
257
+
258
+ We present experiments on CIFAR-10/100 (Krizhevsky et al., 2009), which consists of 60k $3 2 \times 3 2$ colour images divided into $1 0 / 1 0 0$ classes, and also on Imagenet challenge ILSVRC-2012 (Russakovsky et al., 2015) and its smaller version Tiny-ImageNet, which respectively consist of $1 . 2 { \mathrm { M } } / 1 { \mathrm { k } }$ and $1 0 0 \dot { \mathrm { k } } / 2 0 0$ images/classes. Networks are initialized using the Kaiming normal initialization (He et al., 2015). For CIFAR datasets, we train Resnet $5 0 ^ { 3 }$ and $\mathrm { V \bar { G } G 1 9 ^ { 4 } }$ architectures during 350 epochs with a batch size of 128. We start with a learning rate of 0.1 and divide it by 10 at 150 and 250 epochs. As optimizer we use SGD with momentum 0.9 and weight decay $5 \times 1 0 ^ { - 4 }$ . We separate $10 \%$ of the training data for validation and report results on the test set. We perform mean and std normalization and augment the data with random crops and horizontal flips. For Tiny-Imagenet, we use the same architectures. We train during 300 epochs and divide the learning rate by 10 at 1/2 and 3/4 of the training. Other hyper-parameters remain the same. For ImageNet training, we adapt the official code5 of Paszke et al. (2017) and we use the default settings. In this case, we use the Resnet50 and VGG19 with batch normalization architectures as implemented in Paszke et al. (2017).
259
+
260
+ In the case of FORCE and Iter SNIP, we adapt the same public implementation6 of SNIP as Wang et al. (2020). Instead of defining an auxiliary mask to compute the saliencies, we compute the product of the weight times the gradient, which was shown to be equivalent in Lee et al. (2020). As for GRASP, we use their public code.7 After pruning, we implement pruned connections by setting the corresponding weight to 0 and forcing the gradient to be 0. This way, a pruned weight will remain 0 during training.
261
+
262
+ An important difference between SNIP and GRASP implementations is in the way they select the mini-batch to compute the saliency. SNIP implementation simply loads a batch from the dataloader. In contrast, in GRASP implementation they keep loading batches of data until they obtain exactly 10 examples of each class, discarding redundant samples. In order to compare the methods in equal conditions, we decided to use the way SNIP collects the data since it is simpler to implement and does not require extra memory. This might cause small discrepancies between our results and the ones reported in Wang et al. (2020).
263
+
264
+ Table 2: Percentage of weights per layer for each network and dataset.
265
+
266
+ <table><tr><td>Layer type</td><td>Conv</td><td>Fully connected</td><td>BatchNorm</td><td>Bias</td><td>Prunable</td><td>Total</td></tr><tr><td>CIFAR10</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Resnet50</td><td>99.69</td><td>0.09</td><td>0.11</td><td>0.11</td><td>99.78</td><td>23.52M</td></tr><tr><td>VGG19</td><td>99.92</td><td>0.03</td><td>0.03</td><td>0.03</td><td>99.95</td><td>20.04M</td></tr><tr><td>CIFAR100</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Resnet50</td><td>98.91</td><td>0.86</td><td>0.11</td><td>0.11</td><td>99.78</td><td>23.71M</td></tr><tr><td>VGG19</td><td>99.69</td><td>0.25</td><td>0.03</td><td>0.03</td><td>99.94</td><td>20.08M</td></tr><tr><td>TinyImagenet</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Resnet50</td><td>98.06</td><td>1.71</td><td>0.11</td><td>0.11</td><td>99.78</td><td>23.91M</td></tr><tr><td>VGG19</td><td>99.44</td><td>0.51</td><td>0.03</td><td>0.03</td><td>99.94</td><td>20.13M</td></tr><tr><td>Imagenet</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Resnet50</td><td>91.77</td><td>8.01</td><td>0.10</td><td>0.11</td><td>99.79</td><td>25.56M</td></tr><tr><td>VGG19</td><td>13.93</td><td>86.05</td><td>0.01</td><td>0.01</td><td>99.98</td><td>143.68M</td></tr></table>
267
+
268
+ A meaningful design choice regarding SNIP and GRASP implementations is that they only prune convolutional and fully connected layers. These layers constitute the vast majority of parameters in most networks, however, as we move to high sparsity regimes, batch norm layers constitute a non-negligible amount. For CIFAR10, batch norm plus biases constitute $0 . 2 \%$ and $0 . 0 5 \%$ of the parameters of Resnet50 and VGG19 networks respectively. For consistency, we have as well restricted pruning to convolutional and fully connected layers and reported percentage sparsity with respect to the prunable parameters, as is also done in Lee et al. (2019) and Wang et al. (2020) to the best of our knowledge. In Table 2 we show the percentage of prunable weights for each network and dataset we use. In future experiments we will explore the performance of pruning at initialization when including batch norm layers and biases as well.
269
+
270
+ ![](images/241864e2afa263a15bc0673ce478298cf938cba1fbf6b2d53f9d6f010cba0fb3.jpg)
271
+ Figure 5: Test accuracies on CIFAR-10/100 and Tiny Imagenet for different pruning methods. Each point is the average over 3 runs of prune-train-test. The shaded areas denote the standard deviation of the runs (too small to be visible in some cases).
272
+
273
+ # B ADDITIONAL ACCURACY-SPARSITY PLOTS
274
+
275
+ In the main text we show the complete range of the accuracy-sparsity curves for the different methods so it is clear why more robust methods are needed. However, it makes it more difficult to appreciate the smaller differences at lower sparsities. In Fig 5 we show the accuracy-sparsity curves where we cut the y axis to show only the higher accuracies.
276
+
277
+ # C FURTHER ANALYSIS OF PRUNING AT INITIALIZATION
278
+
279
+ # C.1 SALIENCY VS T
280
+
281
+ In Fig 4 (left) we have seen that for higher sparsity levels, FORCE obtains a higher saliency when we increase the number of iterations. In Fig 6 we compare the relative saliencies as we increase the number of iterations for FORCE and Iterative SNIP. As can be seen, both have a similar behaviour.
282
+
283
+ # C.2 PRUNING VS SPARSIFICATION
284
+
285
+ FORCE algorithm is able to recover pruned weights in later iterations of pruning. In order to do that, we do not consider the intermediate masks as pruning masks but rather as sparsification masks, where connections are set to 0 but not their gradients. In order to understand how does computing the FORCE (5) on a sparsified vs pruned network affect the saliency, we prune several masks with FORCE algorithm at varying sparsity levels. For each mask, we then compute their FORCE saliency either considering the pruned network (gradients of pruned connections will be set to 0 during the backward pass) or the sparsified network (we only set to 0 the connections, but let the gradient signal flow through all the connections). Results are presented in Fig 7. We observe that the two methods to compute the saliency are strongly correlated, thus, we can assume that when we use the FORCE algorithm that maximizes the saliency of sparsified networks we will also maximize the saliency of the corresponding pruned networks.
286
+
287
+ ![](images/d8d14d57b44ea21b137e2aa6b0022b2542d6bdc8db241ba10710b50ab3e5f26f.jpg)
288
+ Figure 6: FORCE saliency (6) obtained with iterative pruning normalized by the saliency obtained with one-shot SNIP, $T = 1$ . (a) Applying the FORCE algorithm (b) Using Iterative SNIP. Note how both methods have similar behaviour.
289
+
290
+ ![](images/11496fbc93334e2bb240e2f02bc38a3354a6fa2a2a3b9f665371b526e648ea16.jpg)
291
+ Figure 7: FORCE saliency computed for masks as we vary sparsity. FORCE (sparsification) refers to measuring FORCE when we allow the gradients of zeroed connections to be non-zero, while FORCE (pruning) cuts all backward signal of any removed connection. As can be seen on the plot, they are strongly correlated.
292
+
293
+ # C.3 NETWORK STRUCTURE AFTER PRUNING
294
+
295
+ In Fig 8 we visualize the structure of the networks after pruning $9 9 . 9 \%$ of the parameters. We show the fraction of remaining weights and the total number of remaining weights per layer after pruning. As seen in (a) and (d), all analysed methods show a tendency to preserve the initial and final layers and to prune more heavily the deep convolutional layers, this is consistent with results reported in Wang et al. (2020). In (b) and (e), we note that FORCE has a structure that stands out compared to other methods that are more similar. This is reasonable since, it is the only method that allows pruned weights to recover. In the zoomed plots (c) and (f) we would like to point out that FORCE and Iterative SNIP preserve more weights on the deeper layers than GRASP and SNIP for VGG19 while we observe the opposite behaviour for Resnet50.
296
+
297
+ In Fig 2, we observe that gradual pruning is able to prune the Resnet50 network up to $9 9 . 9 9 \%$ sparsity without falling to random accuracy. In contrast, with VGG19 we observe Iterative SNIP is not able to prune more than $9 9 . 9 \%$ . In Fig 8 we observe that for Resnet50, all methods prune some layers completely. However, in the case of ResNets, even if a convolutional layer is entirely pruned, skip connections still allow the flow of forward and backward signal. On the other hand, architectures without skip connections, such as VGG, require non-empty layers to keep the flow of information. Interestingly, in (c) we observe how FORCE and Iter SNIP have a larger amount of completely pruned layers than GRASP, however, there are a few deep layers with a significantly larger amount of unpruned weights. This seems to indicate that when a high sparsity is required, it is more efficient to have fewer layers with more weights than several extremely sparse layers.
298
+
299
+ ![](images/1c4cc11211a007f7d20534bbc8c663bef04daa2fd759df47a4acb4c4e22aa97b.jpg)
300
+ Figure 8: Visualization of remaining weights after pruning $9 9 . 9 \%$ of the weights of Resnet-50 and VGG-19 for CIFAR-10. (a) and (d) show the fraction of remaining weights for each prunable layer. (b) and (e) show the actual number of remaining weights and (c) and (f) zoom to the bottom part of the plot. Observe in (c) and (f) that some layers have exactly 0 weights left, so they are removed entirely.
301
+
302
+ ![](images/9d10a7ad4423519576c8803e8b2b80150ca515fa2f7840bb875581ef881139ec.jpg)
303
+ Figure 9: Normalized amount of globally pruned and recovered weights at each pruning iteration for Resnet50, CIFAR-10 when pruned with (a) Iterative SNIP and (b) FORCE. As expected, the amount of recovered weights for Iterative SNIP is constantly zero, since this is by design. Moreover, the amount of pruned weights decays exponentially as expected from our pruning schedule. On the other hand, we see the amount of recovered weights is non-zero with FORCE, interestingly the amount of pruned/recovered weights does not decay monotonically but has a clear peak, indicating there is an "exploration" and a "convergence" phase during pruning.
304
+
305
+ # C.4 EVOLUTION OF PRUNING MASKS
306
+
307
+ As discussed in the main text, FORCE allows weights that have been pruned at earlier iterations to become non-zero again, we argue this might be beneficial compared to Iterative SNIP which will not be able to correct any possible "mistakes" made in earlier iterations. In particular, it seems to give certain advantage to prune VGG to high sparsities without breaking the flow of information (pruning a layer entirely) as can be seen in Fig 2 (b). In order to gain a better intuition of how does the amount of pruned/recovered weights ratio evolve during pruning, in Fig 9 we plot the normalized amount of pruned and recovered weights (globally on the whole network) at each iteration of FORCE and also for Iter SNIP as a sanity check. Note that Iterative SNIP does not recover weights and the amount of weights pruned at each step decays exponentially (this is expected since we derived Iterative SNIP as a constrained optimization of FORCE where each network needs to be a sub-network of the previous iteration. On the other hand, FORCE does recover weights. Moreover, the amount of pruned/recovered weights does not decay monotonically but has a clear peak, indicating there are two phases during pruning: While the amount of pruned weights increases, the algorithm explores masks which are quite far away from each other, although this might be harmful for the gradient approximation (refer to section 4), we argue that during the initial pruning iterations the network is still quite over-parametrized. After reaching a peak, both the pruning and recovery rapidly decay, thus the masks converge to a more constrained subset.
308
+
309
+ # C.5 COMPARISON WITH EARLY PRUNING
310
+
311
+ For fair comparison, we provided the same amount of data to SNIP and GRASP as was used by our approach and call this variant SNIP-MB and GRASP-MB. Similarly, under this new baseline which we call early pruning, we train the network on 1 epoch of data of CIFAR-10, that is slightly more examples than our pruning at initialization methods which use $1 2 8 \cdot 3 0 0 = 3 8 4 0 0$ examples (see section 5). After training for 1 epoch we perform magnitude pruning which requires no extra cost (results presented in Fig 10). Although early pruning yields competitive results for VGG at moderate sparsity levels, it soon degrades its performance as we prune more weights. On the other hand, for Resnet architecture it is sub-optimal at all evaluated sparsity levels. Note, this result does not mean that any early pruning strategy would be sub-optimal compared to pruning at initialization, however exploring this further is out of the scope of this work.
312
+
313
+ ![](images/cf6c96d1b7218c79b229924bba57df87b5618c94c32e3d42ec1f381a5093b10e.jpg)
314
+ Figure 10: Test accuracies on CIFAR-10 for different pruning methods. Each point is the average over 3 runs of prune-train-test. The shaded areas denote the standard deviation of the runs (too small to be visible in some cases). Early pruning is at most on par with gradual pruning at initialization methods and has a strong drop in performance as we go to higher sparsities.
315
+
316
+ # C.6 MOBILENET EXPERIMENTS
317
+
318
+ All our experiments were on overparameterized architectures such as Resnet and VGG. To test the wider usability of our methods, in this section we prune the Mobilenet-v2 architecture8 (Sandler et al., 2018) which is much more "slim" than Resnet and VGG (Mobilenet has 2.3M params compared to 20.03M and 23.5M of VGG and Resnet respectively). Results are provided in Fig 11. Similarly to Resnet and VGG architectures, we see that gradual pruning tends to better preserve accuracy at higher sparsity levels than one-shot methods. Moreover, both FORCE and Iter SNIP improve over SNIP at moderate sparsity levels as well. FORCE and Iter SNIP have comparable accuracies except for high sparsity where Iter SNIP surpasses FORCE. We hypothesize for such a slim architecture $\approx 1 0 \times$ fewer parameters than Resnet and VGG) the gradient approximation becomes even more sensitive to the distance between iterative masks and perhaps the exploration of FORCE is harmful in this case. As discussed in the main paper, we believe that further research to understand the exploration/exploitation trade-off when pruning might yield to even more efficient pruning schemes, especially for very high sparsity levels. We train using the same settings as described in Appendix A except for the weight decay which is set to $4 \times 1 0 ^ { - 5 }$ , following the settings of the original Mobilenet paper.
319
+
320
+ ![](images/7110cd910bb63a8ee3800f3086fa3af4bdf82d4f0d7efc169c1efb2d280fa320.jpg)
321
+ Figure 11: Test accuracies on CIFAR-10 for different pruning methods on Mobilenet architecture. Each point is the average over 3 runs of prune-train-test. The shaded areas denote the standard deviation of the runs (too small to be visible in some cases). When pruning Mobilenet-v2 architecture, which has roughly $1 0 \times$ less parameters than Resnet or VGG, we observe a similar pattern: Gradual pruning tends to be able to preserve accuracy for higher sparsities better than one-shot methods. Moreover, it tends to improve slightly over SNIP at moderate sparsities as well. Although GRASP does not show an acute drop in performance like SNIP, it seems to be sub-optimal with respect to other methods across all sparsities.
322
+
323
+ # D LOCAL OPTIMAL MASKS
324
+
325
+ Definition 1 $( ( p , \epsilon )$ -local optimal mask). Consider any two sets9 $\mathbf { c } _ { t } \subseteq \{ 1 , \cdots , m \}$ and $\mathbf { c } _ { t + 1 } \subset \mathbf { c } _ { t }$ For any $\epsilon > 0$ and $0 \leq p \leq | \mathbf { c } _ { t } \rangle \langle \mathbf { c } _ { t + 1 } |$ , $\mathbf { c } _ { t + 1 }$ is a $( p , \epsilon )$ local optimal with respect to $\mathbf { c } _ { t }$ if the following holds
326
+
327
+ $$
328
+ S ( \theta , \mathbf { c } _ { t + 1 } ) \geq S ( \theta , ( \mathbf { c } _ { t + 1 } \backslash S _ { - } ) \cup S _ { + } ) - \epsilon
329
+ $$
330
+
331
+ for all $S _ { - } \subset { \mathbf { c } } _ { t + 1 } , | S _ { - } | = p$ and $S _ { + } \subset ( \mathbf { c } _ { t } \setminus ( \mathbf { c } _ { t + 1 } ) , | S _ { + } | = p .$ .
332
+
333
+ Definition 2 (CRS; Coordinate-Restricted-Smoothness). Given a function $\mathcal { L } : \mathbb { R } ^ { m } \mathbb { R }$ (which encodes both the network architecture and the dataset), $\mathcal { L }$ is said to be $\lambda _ { c }$ -Coordinated Restricted
334
+
335
+ Smooth with respect to $\mathbf { c } \subseteq \{ 1 , \cdots , m \}$ if there exists a real number $\lambda _ { c }$ such that
336
+
337
+ $$
338
+ \left. \mathbf { c } \odot \boldsymbol { \nabla } \mathcal { L } \left( \mathbf { w } \odot \mathbf { c } \right) - \mathbf { c } \odot \boldsymbol { \nabla } \mathcal { L } \left( \mathbf { w } \odot \widehat { \mathbf { c } } \right) \right. _ { \infty } \leq \lambda _ { c } \left. \mathbf { w } \odot \mathbf { c } - \mathbf { w } \odot \widehat { \mathbf { c } } \right. _ { 1 }
339
+ $$
340
+
341
+ for all $\mathbf { w } \in \mathbb { R } ^ { m }$ and $\widehat { \mathbf { c } } \subset \mathbf { c }$ . When $s = | \mathbf { c } \rangle \widehat { \mathbf { c } } |$ , an application of Holder’s inequality shows
342
+
343
+ $$
344
+ \lambda _ { c } \left\| \mathbf { w } \odot \mathbf { c } - \mathbf { w } \odot { \widehat { \mathbf { c } } } \right\| _ { 1 } \leq \lambda _ { c } \left\| \mathbf { w } \right\| _ { \infty } \left\| \mathbf { c } - { \widehat { \mathbf { c } } } \right\| _ { 1 } = \lambda _ { c } s \left\| \mathbf { w } \right\| _ { \infty }
345
+ $$
346
+
347
+ We define $\mathcal { L }$ to be $\Lambda$ -total CRS if there exists a function $\Lambda : \left\{ 0 , 1 \right\} ^ { m } \to \mathbb { R }$ such that for all $\mathbf { c } \in \{ 0 , 1 \} ^ { m }$ $\mathcal { L }$ is $\Lambda \left( \mathbf { c } \right)$ -Coordinate-Restricted-Smooth with respect to $\mathbf { c }$ (for ease of notation we use $\Lambda \left( \mathbf { c } \right) = \lambda _ { \mathbf { c } }$ ).
348
+
349
+ Theorem 1 (Informal). The mask $\mathbf { c } _ { t + 1 }$ produced from $\mathbf { c } _ { t }$ by FORCE is $\left( p , 2 \lambda p \left\| \theta \right\| _ { \infty } ^ { 2 } \left| \mathbf { c } _ { t } \right| \right)$ -local optimal if the $\mathcal { L }$ is $\Lambda$ -CRS..
350
+
351
+ Proof. Consider the masks $\mathbf { c } _ { t }$ and $\mathbf { c } _ { t + 1 }$ where the latter is obtained by one step of FORCE on the former. Let $S _ { - }$ and $S _ { + }$ be any set of size $p$ such that $S _ { - } \subset c _ { t + 1 }$ and $S _ { + } \subset ( \mathbf { c } _ { t } \setminus \mathbf { c } _ { t + 1 } )$ . Finally, for ease of notation we define $\zeta \overset { \cdot } { = } ( c _ { t + 1 } \setminus S _ { - } ) \cup S _ { + }$
352
+
353
+ $$
354
+ \begin{array} { r l } { S \left( \theta , \zeta \right) - S \left( \theta , \mathbf { c } _ { t + 1 } \right) = \displaystyle \sum _ { i \in \zeta } \left| \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \zeta \right) _ { i } \right| - \displaystyle \sum _ { i \in \mathbf { c } _ { t + 1 } } \left| \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \mathbf { c } _ { t + 1 } \right) _ { i } \right| } & { } \\ { = \underbrace { \displaystyle \sum _ { i \in \mathbf { c } _ { t + 1 } } \left| \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \zeta \right) _ { i } \right| - \displaystyle \sum _ { i \in \mathbf { c } _ { t + 1 } } \left| \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \mathbf { c } _ { t + 1 } \right) _ { i } \right| } _ { \mathrm { ~ r _ 1 ~ } } } & { } \\ { + \displaystyle \sum _ { i \in S _ { + } } \left| \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \zeta \right) _ { i } \right| - \displaystyle \sum _ { i \in S _ { - } } \left| \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \zeta \right) _ { i } \right| } & { } \end{array}
355
+ $$
356
+
357
+ Let us look at the three terms individually. We assume that $\mathcal { L }$ is $\Lambda$ -CRS.
358
+
359
+ $$
360
+ \begin{array} { r l r l } & { \Gamma _ { 1 } = \displaystyle \sum _ { i \in { \bf c } + 1 } \left| \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \zeta \right) _ { i } \right| - \left| \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot { \bf c } _ { t + 1 } \right) _ { i } \right| } & \\ & { \quad \le \left\| { \bf c } _ { t + 1 } \odot \theta \odot \nabla \mathcal { L } \left( \theta \odot { \bf c } _ { t + 1 } \right) - { \bf c } _ { t + 1 } \odot \theta \odot \nabla \mathcal { L } \left( \theta \odot \zeta \right) \right\| _ { 1 } } & & { \mathrm { B y ~ T r i a n g l e ~ I n e q u a l i t y } } \\ & { \quad \le \left\| { \bf c } _ { t + 1 } \odot \theta \right\| _ { 1 } \left\| { \bf c } _ { t + 1 } \odot \nabla \mathcal { L } \left( \theta \odot { \bf c } _ { t + 1 } \right) - { \bf c } _ { t + 1 } \odot \nabla \mathcal { L } \left( \theta \odot \zeta \right) \right\| _ { \infty } } & & { \mathrm { B y ~ H o l d e r ~ s ~ I n e q u a l i t y } } \\ & { \quad \le 2 \lambda _ { c _ { t + 1 } } \left| c _ { t + 1 } \right| p \left\| \theta \right\| _ { \infty } ^ { 2 } } & & { \quad \cdot \ \cdot \mathcal { L } \mathrm { i s ~ \Lambda - C R S } \enspace ( 1 2 ) } \end{array}
361
+ $$
362
+
363
+ $$
364
+ \begin{array} { r l } & { \Gamma _ { 2 } = \displaystyle \sum _ { i \in S _ { + } } | \theta _ { i } \cdot \nabla \mathcal { L } ( \theta \odot \zeta ) _ { i } | - | \theta _ { i } \cdot \nabla \mathcal { L } ( \theta \odot \mathbf { c } _ { t } ) _ { i } | + | \theta _ { i } \cdot \nabla \mathcal { L } ( \theta \odot \mathbf { c } _ { t } ) _ { i } | } \\ & { \quad \le \displaystyle \sum _ { i \in S _ { + } } | \theta _ { i } \cdot \nabla \mathcal { L } ( \theta \odot \mathbf { c } _ { t } ) _ { i } | + \lambda _ { \mathbf { c } _ { t } } p \| \theta \| _ { \infty } ^ { 2 } ( | \mathbf { c } _ { t } | - | \mathbf { c } _ { t + 1 } | ) \qquad \cdot | \mathbf { c } _ { t } \zeta | = | \mathbf { c } _ { t } | - | \mathbf { c } _ { t + 1 } | , } \end{array}
365
+ $$
366
+
367
+ $$
368
+ \begin{array} { r l } & { \Gamma _ { 3 } = - \displaystyle \sum _ { i \in S _ { - } } \left. \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \zeta \right) _ { i } \right. + \left. \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \mathbf { c } _ { t } \right) _ { i } \right. - \left. \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \mathbf { c } _ { t } \right) _ { i } \right. } \\ & { \quad \leq - \displaystyle \sum _ { i \in S _ { - } } \left. \theta _ { i } \cdot \nabla \mathcal { L } \left( \theta \odot \mathbf { c } _ { t } \right) _ { i } \right. + \lambda _ { \mathbf { c } _ { t } } p \left. \left. \theta \right. \right. _ { \infty } ^ { 2 } \left( \left. \mathbf { c } _ { t } \right. - \left. \mathbf { c } _ { t + 1 } \right. \right) , } \end{array}
369
+ $$
370
+
371
+ Adding eqs. (13) and (14), we get
372
+
373
+ $$
374
+ \begin{array} { r l r } { { \Gamma _ { 2 } + \Gamma _ { 3 } \leq \sum _ { i \in S _ { + } } | \theta _ { i } \cdot \nabla \mathcal { L } ( \theta \odot \mathbf { c } _ { t } ) _ { i } | - \sum _ { i \in S _ { - } } | \theta _ { i } \cdot \nabla \mathcal { L } ( \theta \odot \mathbf { c } _ { t } ) _ { i } | + 2 \lambda _ { \mathbf { c } _ { t } } p \| \theta \| _ { \infty } ^ { 2 } ( | \mathbf { c } _ { t } | - | \mathbf { c } _ { t + 1 } | ) } } \\ & { } & { \leq 2 \lambda _ { \mathbf { c } _ { t } } p \| \theta \| _ { \infty } ^ { 2 } ( | \mathbf { c } _ { t } | - | \mathbf { c } _ { t + 1 } | ) - \gamma p \qquad \mathrm { ( } } \end{array}
375
+ $$
376
+
377
+ Substituting eqs. (12) and (15) into (11) we get
378
+
379
+ $$
380
+ \begin{array} { r l } & { S \left( \theta , \zeta \right) - S \left( \theta , \mathbf { c } _ { t + 1 } \right) \leq 2 \lambda _ { \mathbf { c } _ { t + 1 } } \left. \mathbf { c } _ { t + 1 } \right. p \left. \theta \right. _ { \infty } ^ { 2 } + 2 \lambda _ { \mathbf { c } _ { t } } p \left. \theta \right. _ { \infty } ^ { 2 } \left( \left. \mathbf { c } _ { t } \right. - \left. \mathbf { c } _ { t + 1 } \right. \right) - \gamma p } \\ & { \qquad = 2 \lambda _ { \mathbf { c } _ { t + 1 } } p \left. \theta \right. _ { \infty } ^ { 2 } \left( \left. \mathbf { c } _ { t + 1 } \right. + \left( \left. \mathbf { c } _ { t } \right. - \left. \mathbf { c } _ { t + 1 } \right. \right) \right) - \gamma p } \\ & { \qquad S \left( \theta , \mathbf { c } _ { t + 1 } \right) \geq S \left( \theta , \zeta \right) - 2 \lambda _ { \mathbf { c } _ { t + 1 } } p \left. \theta \right. _ { \infty } ^ { 2 } \left. \mathbf { c } _ { t } \right. + \gamma p } \\ & { \qquad S \left( \theta , \mathbf { c } _ { t + 1 } \right) \geq S \left( \theta , \zeta \right) - 2 \lambda _ { \mathbf { c } _ { t + 1 } } p \left. \theta \right. _ { \infty } ^ { 2 } \left. \mathbf { c } _ { t } \right. } \end{array}
381
+ $$
382
+
383
+ ![](images/d8b98a0c83faf38c3a57f672f7fbede8b57c22e5d23e2a2f670c2e77c8c3694f.jpg)
384
+ Figure 12: Test accuracies for different datasets and networks when pruned with different methods. Each point is the average over 3 runs of prune-train-test. The shaded areas denote the standard deviation of the runs (sometimes too small to be visible).
385
+
386
+ # E.1 MAXIMIZING THE GRADIENT NORM USING THE GRADIENT APPROXIMATION
387
+
388
+ In order to maximize the gradient norm after pruning, the authors in Wang et al. (2020) use the first order Taylor’s approximation. While this seems to be better suited than SNIP for higher levels of sparsity, it assumes that pruning is a small perturbation on the weight matrix. We argue that this approximation will not be valid as we push towards extreme sparsity values. Our gradient approximation (refer to section 4) can also be applied to maximize the gradient norm after pruning. In this case, we have
389
+
390
+ $$
391
+ G ( \pmb \theta , \pmb c ) : = \Delta \mathcal { L } ( \pmb \theta \odot \pmb c ) - \Delta \mathcal { L } ( \pmb \theta ) \approx \sum _ { \{ i : c _ { i } = 0 \} } - [ \nabla \mathcal { L } ( \pmb \theta ) _ { i } ] ^ { 2 } ,
392
+ $$
393
+
394
+ where we assume pruned connections have null gradients (this is equivalent to the restriction used for Iterative SNIP) and we assume gradients remain unchanged for unpruned weights (gradient approximation). Combining this approximation with Eq. (7), we obtain a new pruning method we name Iterative GRASP, although it is not the same as applying GRASP iteratively. Unlike FORCE, Iterative GRASP does not recover GRASP when $T = 1$ .
395
+
396
+ In Fig 12 we compare Iterative GRASP to other pruning methods. We use the same settings as described in section 5. We observe that Iterative GRASP outperforms GRASP in the high sparsity region. Moreover, for VGG19 architecture Iterative GRASP achieves comparable performance to Iterative SNIP. Nevertheless, for Resnet50 we see that Iterative GRASP performance falls below that of FORCE and Iterative SNIP as we prune more weights. FORCE saliency takes into account both the gradient and the magnitude of the weights when computing the saliency, on the other hand, the Gradient Norm only takes gradients into account, therefore it is using less information. We hypothesize this might the reason why Iterative GRASP does not match Iterative SNIP.
397
+
398
+ ![](images/58b86f033b68321529a3d68b84d47bed61f2262e27023b687a6ab029c7cb5868.jpg)
399
+ E.2 ITERATIVE GRASP (PRUNING CONSISTENCY)
400
+ Figure 13: (a) - (c) Portion of remaining weights for each layer. Each point is an average of 3 runs and the error bars (hardly visible) denote standard deviation. (b) - (d) Portion of remaining weights for each intermediate mask that is computed during iterative pruning with global portion of remaining weights of 0.01.
401
+
402
+ As explained in the main text, we tried to apply GRASP iteratively with the Taylor approximation described in Wang et al. (2020). Unfortunately, we found that all resulting masks yield networks unable to train. In light of this result, we performed some analysis of the behaviour of GRASP compared to that of SNIP and, in the following, we provide some insights as to why we can not use GRASP’s approximation iteratively.
403
+
404
+ In Liu et al. (2018), the authors show that applying a pruning method to the same architecture with different random initializations would yield consistent pruning masks. Specifically, they find that the percentage of pruned weights in each layer had very low variance. We reproduce the same experiment and additionally explore another dimension, the (global) sparsity level. Given an architecture, we prune it at varying levels of sparsity and extract the percentage of remaining weights at each layer. For each level of sparsity, we average the results over 3 trials of initialize-prune. As shown in Fig 2, both SNIP and GRASP have very low variance across initializations, on the other hand, as we vary the global sparsity with GRASP, the percentage of remaining weights for each layer is inconsistent. The layers that are most preserved at high levels of sparsity, such as the initial and last layers, are the most heavily pruned at low sparsity levels.
405
+
406
+ The authors in Liu et al. (2018), reason that manually designed networks have layers which are more redundant than others. Therefore, pruning methods even this redundancies by pruning layers with different percentages. We extend this reasoning, and hypothesize that pruning algorithms should always have preference for pruning the same (redundant) layers across all levels of sparsity. We denote this as pruning consistency. We observe that when applying iterative pruning to GRASP, the resulting masks tend to prune almost all of the weights at the initial and final layers, producing networks that are unable to converge. When using iterative pruning, we prune a small portion of remaining weights at each step. Thus, we are always in the low sparsity regime, where the GRASP behaviour is reversed. Conversely, when we use SNIP the behaviour changes completely. In this case, the preserved layers are consistent across sparsity levels, and when we use iterative pruning we obtain networks that reach high accuracy values.
parse/train/9GsFOUyUPi/9GsFOUyUPi_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/9GsFOUyUPi/9GsFOUyUPi_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/9GsFOUyUPi/9GsFOUyUPi_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJ_UL-k0b/BJ_UL-k0b.md ADDED
@@ -0,0 +1,343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # RECASTING GRADIENT-BASED META-LEARNING AS HIERARCHICAL BAYES
2
+
3
+ Erin Grant12, Chelsea $\mathbf { F i n n ^ { 1 2 } }$ , Sergey Levine12, Trevor Darrell12, Thomas Griffiths13
4
+
5
+ 1 Berkeley AI Research (BAIR), University of California, Berkeley
6
+ 2 Department of Electrical Engineering & Computer Sciences, University of California, Berkeley
7
+ 3 Department of Psychology, University of California, Berkeley
8
+
9
+ {eringrant,cbfinn,svlevine,trevor,tom_griffiths}@berkeley.edu
10
+
11
+ # ABSTRACT
12
+
13
+ Meta-learning allows an intelligent agent to leverage prior learning episodes as a basis for quickly improving performance on a novel task. Bayesian hierarchical modeling provides a theoretical framework for formalizing meta-learning as inference for a set of parameters that are shared across tasks. Here, we reformulate the model-agnostic meta-learning algorithm (MAML) of Finn et al. (2017) as a method for probabilistic inference in a hierarchical Bayesian model. In contrast to prior methods for meta-learning via hierarchical Bayes, MAML is naturally applicable to complex function approximators through its use of a scalable gradient descent procedure for posterior inference. Furthermore, the identification of MAML as hierarchical Bayes provides a way to understand the algorithm’s operation as a meta-learning procedure, as well as an opportunity to make use of computational strategies for efficient inference. We use this opportunity to propose an improvement to the MAML algorithm that makes use of techniques from approximate inference and curvature estimation.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ A remarkable aspect of human intelligence is the ability to quickly solve a novel problem and to be able to do so even in the face of limited experience in a novel domain. Such fast adaptation is made possible by leveraging prior learning experience in order to improve the efficiency of later learning. This capacity for meta-learning also has the potential to enable an artificially intelligent agent to learn more efficiently in situations with little available data or limited computational resources (Schmidhuber, 1987; Bengio et al., 1991; Naik & Mammone, 1992).
18
+
19
+ In machine learning, meta-learning is formulated as the extraction of domain-general information that can act as an inductive bias to improve learning efficiency in novel tasks (Caruana, 1998; Thrun & Pratt, 1998). This inductive bias has been implemented in various ways: as learned hyperparameters in a hierarchical Bayesian model that regularize task-specific parameters (Heskes, 1998), as a learned metric space in which to group neighbors (Bottou & Vapnik, 1992), as a trained recurrent neural network that allows encoding and retrieval of episodic information (Santoro et al., 2016), or as an optimization algorithm with learned parameters (Schmidhuber, 1987; Bengio et al., 1992).
20
+
21
+ The model-agnostic meta-learning (MAML) of Finn et al. (2017) is an instance of a learned optimization procedure that directly optimizes the standard gradient descent rule. The algorithm estimates an initial parameter set to be shared among the task-specific models; the intuition is that gradient descent from the learned initialization provides a favorable inductive bias for fast adaptation. However, this inductive bias has been evaluated only empirically in prior work (Finn et al., 2017).
22
+
23
+ In this work, we present a novel derivation of and a novel extension to MAML, illustrating that this algorithm can be understood as inference for the parameters of a prior distribution in a hierarchical Bayesian model. The learned prior allows for quick adaptation to unseen tasks on the basis of an implicit predictive density over task-specific parameters. The reinterpretation as hierarchical Bayes gives a principled statistical motivation for MAML as a meta-learning algorithm, and sheds light on the reasons for its favorable performance even among methods with significantly more parameters.
24
+
25
+ More importantly, by casting gradient-based meta-learning within a Bayesian framework, we are able to improve MAML by taking insights from Bayesian posterior estimation as novel augmentations to the gradient-based meta-learning procedure. We experimentally demonstrate that this enables better performance on a few-shot learning benchmark.
26
+
27
+ # 2 META-LEARNING FORMULATION
28
+
29
+ The goal of a meta-learner is to extract task-general knowledge through the experience of solving a number of related tasks. By using this learned prior knowledge, the learner has the potential to quickly adapt to novel tasks even in the face of limited data or limited computation time.
30
+
31
+ Formally, we consider a dataset $\mathcal { D }$ that defines a distribution over a family of tasks $\tau$ . These tasks share some common structure such that learning to solve a single task has the potential to aid in solving another. Each task $\tau$ defines a distribution over data points $\mathbf { x }$ , which we assume in this work to consist of inputs and either regression targets or classification labels $\mathbf { y }$ in a supervised learning problem (although this assumption can be relaxed to include reinforcement learning problems; e.g., see Finn et al., 2017). The objective of the meta-learner is to be able to minimize a task-specific performance metric associated with any given unseen task from the dataset given even only a small amount of data from the task; i.e., to be capable of fast adaptation to a novel task.
32
+
33
+ In the following subsections, we discuss two ways of formulating a solution to the meta-learning problem: gradient-based hyperparameter optimization and probabilistic inference in a hierarchical Bayesian model. These approaches were developed orthogonally, but, in Section 3.1, we draw a novel connection between the two.
34
+
35
+ # 2.1 META-LEARNING AS GRADIENT-BASED HYPERPARAMETER OPTIMIZATION
36
+
37
+ A parametric meta-learner aims to find some shared parameters $\pmb \theta$ that make it easier to find the right task-specific parameters $\phi$ when faced with a novel task. A variety of meta-learners that employ gradient methods for task-specific fast adaptation have been proposed (e.g., Andrychowicz et al., 2016; Li & Malik, 2017a;b; Wichrowska et al., 2017). MAML (Finn et al., 2017) is distinct in that it provides a gradient-based meta-learning procedure that employs a single additional parameter (the meta-learning rate) and operates on the same parameter space for both meta-learning and fast adaptation. These are necessary features for the equivalence we show in Section 3.1.
38
+
39
+ To address the meta-learning problem, MAML estimates the parameters $\pmb \theta$ of a set of models so that when one or a few batch gradient descent steps are taken from the initialization at $\pmb \theta$ given a small sample of task data $\mathbf { x } _ { j _ { 1 } } , . . . , \mathbf { x } _ { j _ { N } } \sim p _ { T _ { j } } ( \mathbf { x } )$ each model has good generalization performance on another sample $\mathbf { x } _ { j _ { N + 1 } } , . . . , \mathbf { x } _ { j _ { N + M } } \sim p \bar { \mathcal { T } _ { j } } ( \mathbf { x } )$ from the same task. The MAML objective in a maximum likelihood setting is
40
+
41
+ $$
42
+ \mathcal { L } ( \pmb { \theta } ) = \frac { 1 } { J } \sum _ { j } \left[ \frac { 1 } { M } \sum _ { m } - \log p \big ( \mathbf { x } _ { j _ { N + m } } \mid \underbrace { \pmb { \theta } - \alpha \nabla _ { \pmb { \theta } } \frac { 1 } { N } \sum _ { n } - \log p \left( \mathbf { x } _ { j _ { n } } \mid \pmb { \theta } \right) } _ { \phi _ { j } } \big ) \right]
43
+ $$
44
+
45
+ where we use $\phi _ { j }$ to denote the updated parameters after taking a single batch gradient descent step from the initialization at $\pmb { \theta }$ with step size $\alpha$ on the negative log-likelihood associated with the task $\tau _ { j }$ Note that since $\phi _ { j }$ is an iterate of a gradient descent procedure that starts from $\pmb \theta$ , each $\phi _ { j }$ is of the same dimensionality as $\pmb \theta$ . We refer to the inner gradient descent procedure that computes $\mathbf { \bar { \phi } } _ { j }$ as fast adaptation. The computational graph of MAML is given in Figure 1 (left).
46
+
47
+ # 2.2 META-LEARNING AS HIERARCHICAL BAYESIAN INFERENCE
48
+
49
+ An alternative way to formulate meta-learning is as a problem of probabilistic inference in the hierarchical model depicted in Figure 1 (right). In particular, in the case of meta-learning, each task-specific parameter $\phi _ { j }$ is distinct from but should influence the estimation of the parameters $\{ \phi _ { j ^ { \prime } } \mid j ^ { \prime } \neq j \}$ from other tasks. We can capture this intuition by introducing a meta-level parameter $\pmb \theta$ on which each task-specific parameter is statistically dependent. With this formulation, the mutual dependence of the task-specific parameters $\phi _ { j }$ is realized only through their individual dependence on the meta-level parameters $\pmb \theta$ . As such, estimating $\pmb \theta$ provides a way to constrain the estimation of each of the $\phi _ { j }$ .
50
+
51
+ ![](images/3e13a7a914b4674e914e750ae9eb6ad6346ae1c1c514ecb4748bf1c73fe61cd7.jpg)
52
+ Figure 1: (Left) The computational graph of the MAML (Finn et al., 2017) algorithm covered in Section 2.1. Straight arrows denote deterministic computations and crooked arrows denote sampling operations. (Right) The probabilistic graphical model for which MAML provides an inference procedure as described in Section 3.1. In each figure, plates denote repeated computations (left) or factorization (right) across independent and identically distributed samples.
53
+
54
+ Given some data in a multi-task setting, we may estimate $\pmb \theta$ by integrating out the task-specific parameters to form the marginal likelihood of the data. Formally, grouping all of the data from each of the tasks as $\mathbf { X }$ and again denoting by $\mathbf { x } _ { j _ { 1 } } , \dotsc , \mathbf { x } _ { j _ { N } }$ a sample from task $\tau _ { j }$ , the marginal likelihood of the observed data is given by
55
+
56
+ $$
57
+ p \left( \mathbf { X } \mid \theta \right) = \prod _ { j } \left( \int p \left( \mathbf { x } _ { j _ { 1 } } , \ldots , \mathbf { x } _ { j _ { N } } \mid \phi _ { j } \right) p \left( \phi _ { j } \mid \theta \right) \mathrm { d } \phi _ { j } \right) .
58
+ $$
59
+
60
+ Maximizing (2) as a function of $\pmb { \theta }$ gives a point estimate for $\pmb \theta$ , an instance of a method known as empirical Bayes (Bernardo & Smith, 2006; Gelman et al., 2014) due to its use of the data to estimate the parameters of the prior distribution.
61
+
62
+ Hierarchical Bayesian models have a long history of use in both transfer learning and domain adaptation (e.g., Lawrence & Platt, 2004; Yu et al., 2005; Gao et al., 2008; Daumé III, 2009; Wan et al., 2012). However, the formulation of meta-learning as hierarchical Bayes does not automatically provide an inference procedure, and furthermore, there is no guarantee that inference is tractable for expressive models with many parameters such as deep neural networks.
63
+
64
+ # 3 LINKING GRADIENT-BASED META-LEARNING & HIERARCHICAL BAYES
65
+
66
+ In this section, we connect the two independent approaches of Section 2.1 and Section 2.2 by showing that MAML can be understood as empirical Bayes in a hierarchical probabilistic model. Furthermore, we build on this understanding by showing that a choice of update rule for the taskspecific parameters $\phi _ { j }$ (i.e., a choice of inner-loop optimizer) corresponds to a choice of prior over task-specific parameters, $p ( \phi _ { j } \mid \theta )$ .
67
+
68
+ # 3.1 MODEL-AGNOSTIC META-LEARNING AS EMPIRICAL BAYES
69
+
70
+ In general, when performing empirical Bayes, the marginalization over task-specific parameters $\phi _ { j }$ in (2) is not tractable to compute exactly. To avoid this issue, we can consider an approximation that makes use of a point estimate $\hat { \phi } _ { j }$ instead of performing the integration over $\phi$ in (2). Using $\hat { \phi } _ { j }$ as an estimator for each $\phi _ { j }$ , we may write the negative logarithm of the marginal likelihood as
71
+
72
+ $$
73
+ - \log p \left( \mathbf { X } \mid \pmb { \theta } \right) \approx \sum _ { j } \left[ - \log p \left( \mathbf { x } _ { j _ { N + 1 } } , . . . \mathbf { x } _ { j _ { N + M } } \mid \hat { \phi } _ { j } \right) \right] \ .
74
+ $$
75
+
76
+ Setting $\hat { \phi } _ { j } = \pmb { \theta } + \alpha \nabla _ { \pmb { \theta } } \log p ( \mathbf { x } _ { j _ { 1 } } , \dots , \mathbf { x } _ { j _ { N } } \mid \pmb { \theta } )$ for each $j$ in (3) recovers the unscaled form of the one-step MAML objective in (1). This tells us that the MAML objective is equivalent to a maximization with respect to the meta-level parameters $\pmb { \theta }$ of the marginal likelihood $p ( \mathbf { X } \mid \pmb { \theta } )$ , where a point estimate for each task-specific parameter $\phi _ { j }$ is computed via one or a few steps of gradient descent. By taking only a few steps from the initialization at $\pmb \theta$ , the point estimate $\mathbf { \widehat { \phi } } _ { j } ^ { \star }$ trades off
77
+
78
+ <table><tr><td colspan="2">Algorithm MAML-HB()</td></tr><tr><td colspan="2">Initialize 0 randomly</td></tr><tr><td>while not converged do</td><td></td></tr><tr><td></td><td>Draw J samples Ti,...,TJ ~ pg(T)</td></tr><tr><td></td><td>Estimate Ex~pt (x)[-logp(x|0)],..,Ex~pT(x)[-logp(x |0)] using ML-.</td></tr><tr><td>Update0 ←0-β ∀θ∑jEx~pTj(x)[-logp(x|θ)]</td><td></td></tr><tr><td colspan="2">end</td></tr></table>
79
+
80
+ Algorithm 2: Model-agnostic meta-learning as hierarchical Bayesian inference. The choices of the subroutine $\mathrm { M L } - \cdot \cdot$ that we consider are defined in Subroutine 3 and Subroutine 4.
81
+
82
+ <table><tr><td>Subroutine ML-POINT (0,T) Draw N samples X1,...,XN ~ pτ(x)</td></tr><tr><td>Initialize←0</td></tr><tr><td>for k in 1,...,K do</td></tr><tr><td>Update 𝜙 ←Φ+α∀logp(x1,...,Xn|Φ)</td></tr><tr><td>end</td></tr><tr><td>Draw M samples XN+1,...,XN+M ~ PT(x) return -log p(xN+1,...,Xn+m|𝜙)</td></tr></table>
83
+
84
+ Subroutine 3: Subroutine for computing a point estimate $\hat { \phi }$ using truncated gradient descent to approximate the marginal negative log likelihood (NLL).
85
+
86
+ minimizing the fast adaptation objective $- \log p ( \mathbf { x } _ { j _ { 1 } } , \ldots , \mathbf { x } _ { j _ { N } } \mid \pmb { \theta } )$ with staying close in value to the parameter initialization $\pmb \theta$ .
87
+
88
+ We can formalize this trade-off by considering the linear regression case. Recall that the maximum a posteriori (MAP) estimate of $\phi _ { j }$ corresponds to the global mode of the posterior $p ( \phi _ { j } \mid _ { \mathbf { x } _ { j _ { 1 } } , \mathbf { \bar { \phi } } _ { \bar { \mathbf { \lambda } } \cdot \mathbf { \lambda } \cdot \mathbf { x } _ { j _ { N } } , \mathbf { \bar { \phi } } \mathbf { \phi } \mathbf { \phi } } \mathbf { \alpha } } p ( \mathbf { \alpha } _ { \mathbf { x } _ { j _ { 1 } } } , \mathbf { \beta } _ { \cdot } \mathbf { \alpha } _ { \cdot } \mathbf { \alpha } _ { \cdot } \mathbf { \alpha } _ { \mathbf { x } _ { j _ { N } } } \mid \phi _ { j } \rangle ) p ( \phi _ { j } \mid \mathbf { \bar { \phi } } \mathbf { \phi } \theta ) .$ . In the case of a linear model, early stopping of an iterative gradient descent procedure to estimate $\phi _ { j }$ is exactly equivalent to MAP estimation of $\phi _ { j }$ under the assumption of a prior that depends on the number of descent steps as well as the direction in which each step is taken. In particular, write the input examples as $\mathbf { X }$ and the vector of regression targets as $\mathbf { y }$ , omit the task index from $\phi$ , and consider the gradient descent update
89
+
90
+ $$
91
+ \begin{array} { l } { \phi _ { ( k ) } = \phi _ { ( k - 1 ) } - \alpha \nabla _ { \phi } \left[ \left\| \mathbf { y } - \mathbf { X } \phi \right\| _ { 2 } ^ { 2 } \right] _ { \phi = \phi _ { ( k - 1 ) } } } \\ { \mathbf { \phi } = \phi _ { ( k - 1 ) } - \alpha \mathbf { X } ^ { \mathrm { T } } \left( \mathbf { X } \phi _ { ( k - 1 ) } - \mathbf { y } \right) } \end{array}
92
+ $$
93
+
94
+ for iteration index $k$ and learning rate $\alpha \in \mathbb { R } ^ { + }$ . Santos (1996) shows that, starting from $\phi _ { ( 0 ) } = \theta$ , $\phi _ { ( k ) }$ in (4) solves the regularized linear least squares problem
95
+
96
+ $$
97
+ \operatorname* { m i n } \left( \lVert \mathbf { y } - \mathbf { X } \phi \rVert _ { 2 } ^ { 2 } + \lVert \pmb { \theta } - \phi \rVert _ { \mathbf { Q } } ^ { 2 } \right)
98
+ $$
99
+
100
+ with $\mathbf { Q }$ -norm defined by $\| \mathbf { z } \| _ { \mathbf { Q } } = \mathbf { z } ^ { \mathrm { T } } \mathbf { Q } ^ { - 1 } \mathbf { z }$ for a symmetric positive definite matrix $\mathbf { Q }$ that depends on the step size $\alpha$ and iteration index $k$ as well as on the covariance structure of $\mathbf { X }$ . We describe the exact form of the dependence in Section 3.2. The minimization in (5) can be expressed as a posterior maximization problem given a conditional Gaussian likelihood over $\mathbf { y }$ and a Gaussian prior over $\phi$ . The posterior takes the form
101
+
102
+ $$
103
+ p \left( \phi \mid \mathbf { X } , \mathbf { y } , \pmb { \theta } \right) \propto \mathcal { N } ( \mathbf { y } ; \mathbf { X } \phi , \mathbb { I } ) \mathcal { N } ( \phi ; \pmb { \theta } , \mathbf { Q } ) .
104
+ $$
105
+
106
+ Since $\phi _ { ( k ) }$ in (4) maximizes (6), we may conclude that $k$ iterations of gradient descent in a linear regression model with squared error exactly computes the MAP estimate of $\phi$ , given a Gaussian-noised observation model and a Gaussian prior over $\phi$ with parameters $\mu _ { 0 } = \pmb \theta$ and $\pmb { \Sigma } _ { 0 } = \mathbf { Q }$ . Therefore, in the case of linear regression with squared error, MAML is exactly empirical Bayes using the MAP estimate as the point estimate of $\phi$ .
107
+
108
+ In the nonlinear case, MAML is again equivalent to an empirical Bayes procedure to maximize the marginal likelihood that uses a point estimate for $\phi$ computed by one or a few steps of gradient descent. However, this point estimate is not necessarily the global mode of a posterior. We can instead understand the point estimate given by truncated gradient descent as the value of the mode of an implicit posterior over $\phi$ resulting from an empirical loss interpreted as a negative log-likelihood, and regularization penalties and the early stopping procedure jointly acting as priors (for similar interpretations, see Sjöberg & Ljung, 1995; Bishop, 1995; Duvenaud et al., 2016).
109
+
110
+ The exact equivalence between early stopping and a Gaussian prior on the weights in the linear case, as well as the implicit regularization to the parameter initialization the nonlinear case, tells us that every iterate of truncated gradient descent is a mode of an implicit posterior. In particular, we are not required to take the gradient descent procedure of fast adaptation that computes $\hat { \phi }$ to convergence in order to establish a connection between MAML and hierarchical Bayes. MAML can therefore be understood to approximate an expectation of the marginal negative log likelihood (NLL) for each task $\tau _ { j }$ as
111
+
112
+ $$
113
+ \mathbb { E } _ { \mathbf { x } \sim p _ { T _ { j } } ( \mathbf { x } ) } \left[ - \log p \left( \mathbf { x } \mid \pmb { \theta } \right) \right] \approx \frac { 1 } { M } \sum _ { m } - \log p \left( \mathbf { x } _ { j _ { N + m } } \mid \hat { \phi } _ { j } \right)
114
+ $$
115
+
116
+ using the point estimate $\hat { \phi } _ { j } = \pmb { \theta } + \alpha \nabla _ { \pmb { \theta } } \log p ( \mathbf { x } _ { j _ { n } } \mid \pmb { \theta } )$ for single-step fast adaptation.
117
+
118
+ The algorithm for MAML as probabilistic inference is given in Algorithm 2; Subroutine 3 computes each marginal NLL using the point estimate of $\hat { \phi }$ as just described. Formulating MAML in this way, as probabilistic inference in a hierarchical Bayesian model, motivates the interpretation in Section 3.2 of using various meta-optimization algorithms to induce a prior over task-specific parameters.
119
+
120
+ # 3.2 THE PRIOR OVER TASK-SPECIFIC PARAMETERS
121
+
122
+ From Section 3.1, we may conclude that early stopping during fast adaptation is equivalent to a specific choice of a prior over task-specific parameters, $p \bar { ( \phi _ { j } \mid \theta ) }$ . We can better understand the role of early stopping in defining the task-specific parameter prior in the case of a quadratic objective. Omit the task index from $\phi$ and $\mathbf { x }$ , and consider a second-order approximation of the fast adaptation objective $\ell ( \phi ) = - \log p ( \mathbf { x } _ { 1 } \ldots , \mathbf { x } _ { N } \mid \phi )$ about a minimum $\phi ^ { * }$ :
123
+
124
+ $$
125
+ \begin{array} { r } { \ell ( \phi ) \approx \tilde { \ell } ( \phi ) : = \frac 1 2 \| \phi - \phi ^ { * } \| _ { \ H ^ { - 1 } } ^ { 2 } + \ell ( \phi ^ { * } ) } \end{array}
126
+ $$
127
+
128
+ where the Hessian $\mathbf { H } = \nabla _ { \phi } ^ { 2 } \ell ( \phi ^ { * } )$ is assumed to be positive definite so that $\tilde { \ell }$ is bounded below. Furthermore, consider using a curvature matrix $\boldsymbol { B }$ to precondition the gradient in gradient descent, giving the update
129
+
130
+ $$
131
+ \phi _ { ( k ) } = \phi _ { ( k - 1 ) } - B \nabla _ { \phi } \tilde { \ell } \big ( \phi _ { ( k - 1 ) } \big ) \mathrm { ~ . ~ }
132
+ $$
133
+
134
+ If $\boldsymbol { B }$ is diagonal, we can identify (8) as a Newton method with a diagonal approximation to the inverse Hessian; using the inverse Hessian evaluated at the point $\phi _ { ( k - 1 ) }$ recovers Newton’s method itself. On the other hand, meta-learning the matrix $\boldsymbol { B }$ matrix via gradient descent provides a method to incorporate task-general information into the covariance of the fast adaptation prior, $p ( \phi \mid \theta )$ . For instance, the meta-learned matrix $\boldsymbol { B }$ may encode correlations between parameters that dictates how such parameters are updated relative to each other.
135
+
136
+ Formally, taking $k$ steps of gradient descent from $\phi _ { ( 0 ) } = \theta$ using the update rule in (8) gives a $\phi _ { ( k ) }$ that solves
137
+
138
+ $$
139
+ \operatorname* { m i n } \left( \lVert \phi - \phi ^ { * } \rVert _ { \mathbf { H } ^ { - 1 } } ^ { 2 } + \lVert \phi _ { ( 0 ) } - \phi \rVert _ { \mathbf { Q } } ^ { 2 } \right) \ .
140
+ $$
141
+
142
+ The minimization in (9) corresponds to taking a Gaussian prior $p ( \phi \mid \theta )$ with mean $\pmb { \theta }$ and covariance $\mathbf { Q }$ for $\mathbf { Q } = \mathbf { O } \mathbf { A } ^ { - 1 } ( ( \mathbb { I } - \mathbf { B } \mathbf { A } ) ^ { - k } - \mathbb { I } ) \breve { \mathbf { O } } ^ { \mathrm { T } }$ (Santos, 1996) where $\mathbf { B }$ is a diagonal matrix that results from a simultaneous diagonalization of $\mathbf { H }$ and $\boldsymbol { B }$ as $\mathbf { O } ^ { \mathrm { T } } \mathbf { H } \mathbf { O } = \mathrm { d i a g } ( \lambda _ { 1 } , \dots , \lambda _ { n } ) = \Lambda$ and $\mathbf { O } ^ { \mathrm { T } } { \mathcal { B } } ^ { - 1 } \mathbf { O } = \mathrm { d i a g } ( b _ { 1 } , \dots , b _ { n } ) = \mathbf { B }$ with $b _ { i } , \lambda _ { i } \geq 0$ for $i = 1 , \ldots , n$ (Theorem 8.7.1 in Golub $\&$ Van Loan, 1983). If the true objective is indeed quadratic, then, assuming the data is centered, $\mathbf { H }$ is the unscaled covariance matrix of features, $\mathbf { X } ^ { \mathrm { { T } } } \mathbf { X }$ .
143
+
144
+ # 4 IMPROVING MODEL-AGNOSTIC META-LEARNING
145
+
146
+ Identifying MAML as a method for probabilistic inference in a hierarchical model allows us to develop novel improvements to the algorithm. In Section 4.1, we consider an approach from Bayesian parameter estimation to improve the MAML algorithm, and in Section 4.2, we discuss how to make this procedure computationally tractable for high-dimensional models.
147
+
148
+ # 4.1 LAPLACE’S METHOD OF INTEGRATION
149
+
150
+ We have shown that the MAML algorithm is an empirical Bayes procedure that employs a point estimate for the mid-level, task-specific parameters in a hierarchical Bayesian model. However, the use of this point estimate may lead to an inaccurate point approximation of the integral in (2) if the posterior over the task-specific parameters, $p \big ( \phi _ { j } \mid \mathbf { x } _ { j _ { N + 1 } } , \cdot \cdot \cdot , \mathbf { x } _ { j _ { N + M } } , \pmb { \theta } \big )$ , . . . , xjN+M , θ ), is not sharply peaked at the value of the point estimate. The Laplace approximation (Laplace, 1986; MacKay, 1992b;a) is applicable in this case as it replaces a point estimate of an integral with the volume of a Gaussian centered at a mode of the integrand, thereby forming a local quadratic approximation.
151
+
152
+ We can make use of this approximation to incorporate uncertainty about the task-specific parameters into the MAML algorithm at fast adaptation time. In particular, suppose that each integrand in (2) has a mode $\boldsymbol { \phi } _ { j } ^ { * }$ at which it is locally well-approximated by a quadratic function. The Laplace approximation uses a second-order Taylor expansion of the negative log posterior in order to approximate each integral in the product in (2) as
153
+
154
+ $$
155
+ \int p \left( { \bf X } _ { j } \mid \phi _ { j } \right) p \left( \phi _ { j } \mid \theta \right) \mathrm { d } \phi _ { j } \approx p \left( { \bf X } _ { j } \mid \phi _ { j } ^ { * } \right) p \left( \phi _ { j } ^ { * } \mid \theta \right) \operatorname * { d e t } ( { \bf H } _ { j } / 2 \pi ) ^ { - \frac { 1 } { 2 } }
156
+ $$
157
+
158
+ where $\mathbf { H } _ { j }$ is the Hessian matrix of second derivatives of the negative log posterior.
159
+
160
+ Classically, the Laplace approximation uses the MAP estimate for $\boldsymbol { \phi } _ { j } ^ { * }$ , although any mode can be used as an expansion site provided the integrand is well enough approximated there by a quadratic. We use the point estimate $\hat { \phi } _ { j }$ uncovered by fast adaptation, in which case the MAML objective in (1) becomes an appropriately scaled version of the approximate marginal likelihood
161
+
162
+ $$
163
+ - \log p \left( \mathbf { X } \mid \theta \right) \approx \sum _ { j } \left[ - \log p \left( \mathbf { X } _ { j } \mid \hat { \phi } _ { j } \right) - \log p \left( \hat { \phi } _ { j } \mid \theta \right) + \frac { 1 } { 2 } \log \operatorname* { d e t } ( \mathbf { H } _ { j } ) \right] .
164
+ $$
165
+
166
+ The term $\log p ( \hat { \phi } _ { j } \mid \pmb \theta )$ results from the implicit regularization imposed by early stopping during fast adaptation, as discussed in Section 3.1. The term $\mathbf { \omega } ^ { 1 } / 2 \log \operatorname* { d e t } ( \mathbf { H } _ { j } )$ , on the other hand, results from the Laplace approximation and can be interpreted as a form of regularization that penalizes model complexity.
167
+
168
+ # 4.2 USING CURVATURE INFORMATION TO IMPROVE MAML
169
+
170
+ Using (11) as a training criterion for a neural network model is difficult due to the required computation of the determinant of the Hessian of the log posterior $\mathbf { H } _ { j }$ , which itself decomposes into a sum of the Hessian of the log likelihood and the Hessian of the log prior as
171
+
172
+ $$
173
+ \mathbf { H } _ { j } = \nabla _ { \phi _ { j } } ^ { 2 } \left[ - \log p \left( \mathbf { X } _ { j } \mid \phi _ { j } \right) \right] + \nabla _ { \phi _ { j } } ^ { 2 } \left[ - \log p \left( \phi _ { j } \mid \theta \right) \right] \ .
174
+ $$
175
+
176
+ In our case of early stopping as regularization, the prior over task-specific parameters $p ( \phi _ { j } \mid \theta )$ is implicit and thus no closed form is available for a general model. Although we may use the quadratic approximation derived in Section 3.2 to obtain an approximate Gaussian prior, this prior is not diagonal and does not, to our knowledge, have a convenient factorization. Therefore, in our experiments, we instead use a simple approximation in which the prior is approximated as a diagonal Gaussian with precision $\tau$ . We keep $\tau$ fixed, although this parameter may be cross-validated for improved performance.
177
+
178
+ <table><tr><td>Subroutine ML-LAPLACE (0,T) Draw N samples X1,...,XN ~ pτ(x)</td></tr><tr><td>Update 𝜙 ←Φ+αVlogp(x1,...,Xn|Φ) end Draw M samples XN+1,...,XN+M ~ pτ(x) Estimate quadratic curvature H return -log p(xn+1,,XN+M |Φ) + nlog det(H)</td></tr></table>
179
+
180
+ Subroutine 4: Subroutine for computing a Laplace approximation of the marginal likelihood.
181
+
182
+ Similarly, the Hessian of the log likelihood is intractable to form exactly for all but the smallest models, and furthermore, is not guaranteed to be positive definite at all points, possibly rendering the Laplace approximation undefined. To combat this, we instead seek a curvature matrix $\hat { \bf H }$ that approximates the quadratic curvature of a neural network objective function. Since it is well-known that the curvature associated with neural network objective functions is highly non-diagonal (e.g., Martens, 2016), a further requirement is that the matrix have off-diagonal terms.
183
+
184
+ Due to the difficulties listed above, we turn to second order gradient descent methods, which precondition the gradient with an inverse curvature matrix at each iteration of descent. The Fisher information matrix (Fisher, 1925) has been extensively used as an approximation of curvature, giving rise to a method known as natural gradient descent (Amari, 1998). A neural network with an appropriate choice of loss function is a probabilistic model and therefore defines a Fisher information matrix. Furthermore, the Fisher information matrix can be seen to define a convex quadratic approximation to the objective function of a probabilistic neural model (Pascanu & Bengio, 2014; Martens, 2014). Importantly for our use case, the Fisher information matrix is positive definite by definition as well as non-diagonal.
185
+
186
+ However, the Fisher information matrix is still expensive to work with. Martens & Grosse (2015) developed Kronecker-factored approximate curvature (K-FAC), a scheme for approximating the curvature of the objective function of a neural network with a block-diagonal approximation to the Fisher information matrix. Each block corresponds to a unique layer in the network, and each block is further approximated as a Kronecker product (see Van Loan, 2000) of two much smaller matrices by assuming that the second-order statistics of the input activation and the back-propagated derivatives within a layer are independent. These two approximations ensure that the inverse of the Fisher information matrix can be computed efficiently for the natural gradient.
187
+
188
+ For the Laplace approximation, we are interested in the determinant of a curvature matrix instead of its inverse. However, we may also make use of the approximations to the Fisher information matrix from K-FAC as well as properties of the Kronecker product. In particular, we use the fact that the determinant of a Kronecker product is the product of the exponentiated determinants of each of the factors, and that the determinant of a block diagonal matrix is the product of the determinants of the blocks (Van Loan, 2000). The determinants for each factor can be computed as efficiently as the inverses required by K-FAC, in $\mathcal { O } ( d ^ { 3 } )$ time for a $d$ -dimensional Kronecker factor.
189
+
190
+ We make use of the Laplace approximation and K-FAC to replace Subroutine 3, which computes the task-specific marginal NLLs using a point estimate for $\hat { \phi }$ . We call this method the Lightweight Laplace Approximation for Meta-Adaptation (LLAMA), and give a replacement subroutine in Subroutine 4.
191
+
192
+ # 5 EXPERIMENTAL EVALUATION
193
+
194
+ The goal of our experiments is to evaluate if we can use our probabilistic interpretation of MAML to generate samples from the distribution over adapted parameters, and futhermore, if our method can be applied to large-scale meta-learning problems such as miniImageNet.
195
+
196
+ ![](images/5bdf18425b1a88e41686bfb5c980d314c5b5c945c7b8c77312f705a230c570c0.jpg)
197
+ Figure 5: Our method is able to meta-learn a model that can quickly adapt to sinusoids with varying phases and amplitudes, and the interpretation of the method as hierarchical Bayes makes it practical to directly sample models from the posterior. In this figure, we illustrate various samples from the posterior of a model that is meta-trained on different sinusoids, when presented with a few datapoints (in red) from a new, previously unseen sinusoid. Note that the random samples from the posterior predictive describe a distribution of functions that are all sinusoidal and that there is increased uncertainty when the datapoints are less informative (i.e., when the datapoints are sampled only from the lower part of the range input, shown in the bottom-right example).
198
+
199
+ # 5.1 WARMUP: TOY NONLINEAR MODEL
200
+
201
+ The connection between MAML and hierarchical Bayes suggests that we should expect MAML to behave like an algorithm that learns the mean of a Gaussian prior on model parameters, and uses the mean of this prior as an initialization during fast adaptation. Using the Laplace approximation to the integration over task-specific parameters as in (10) assumes a task-specific parameter posterior with mean at the adapted parameters $\hat { \phi }$ and covariance equal to the inverse Hessian of the log posterior evaluated at the adapted parameter value. Instead of simply using this density in the Laplace approximation as an additional regularization term as in (11), we may sample parameters $\phi _ { j }$ from this density and use each set of sampled parameters to form a set of predictions for a given task.
202
+
203
+ To illustrate this relationship between MAML and hierarchical Bayes, we present a meta-dataset of sinusoid tasks in which each task involves regressing to the output of a sinusoid wave in Figure 5. Variation between tasks is obtained by sampling the amplitude uniformly from [0.1, 5.0] and the phase from $[ 0 , \pi ]$ . During training and for each task, 10 input datapoints are sampled uniformly from $[ - 1 0 . 0 , 1 0 . \dot { 0 } ]$ and the loss is the mean squared error between the prediction and the true value.
204
+
205
+ We observe in Figure 5 that our method allows us to directly sample models from the task-specific parameter distribution after being presented with 10 datapoints from a new, previously unseen sinusoid curve. In particular, the column on the right of Figure 5 demonstrates that the sampled models display an appropriate level of uncertainty when the datapoints are ambiguous (as in the bottom right).
206
+
207
+ # 5.2 LARGE-SCALE EXPERIMENT: miniIMAGENET
208
+
209
+ We evaluate LLAMA on the miniImageNet Ravi & Larochelle (2017) 1-shot, 5-way classification task, a standard benchmark in few-shot classification. miniImageNet comprises 64 training classes, 12 validation classes, and 24 test classes. Following the setup of Vinyals et al. (2016), we structure the $N$ -shot, $J$ -way classification task as follows: The model observes $N$ instances of $J$ unseen classes, and is evaluated on its ability to classify $M$ new instances within the $J$ classes.
210
+
211
+ We use a neural network architecture standard to few-shot classification (e.g., Vinyals et al., 2016; Ravi & Larochelle, 2017), consisting of 4 layers with $3 \times 3$ convolutions and 64 filters, followed by batch normalization (BN) (Ioffe & Szegedy, 2015), a ReLU nonlinearity, and $2 \times 2$ max-pooling. For the scaling variable $\beta$ and centering variable $\gamma$ of BN (see Ioffe & Szegedy, 2015), we ignore the fast adaptation update as well as the Fisher factors for K-FAC. We use Adam (Kingma & Ba, 2014) as the meta-optimizer, and standard batch gradient descent with a fixed learning rate to update the model during fast adaptation. LLAMA requires the prior precision term $\tau$ as well as an additional parameter $\eta \in \bar { \mathbb { R } } ^ { + }$ that weights the regularization term log det $\hat { \bf H }$ contributed by the Laplace approximation. We fix $\tau = 0 . 0 0 1$ and selected $\eta = { { 1 0 } ^ { - 6 } }$ via cross-validation; all other parameters are set to the values reported in Finn et al. (2017).
212
+
213
+ Table 1: One-shot classification performance on the miniImageNet test set, with comparison methods ordered by one-shot performance. All results are averaged over 600 test episodes, and we report ${ \hat { 9 } } 5 \%$ confidence intervals. ∗Results reported by Ravi & Larochelle (2017). $^ { * * } \mathrm { W e }$ report test accuracy for a comparable architecture .1∗∗∗We report test accuracy for models matching train and test “shot” and “way”.
214
+
215
+ <table><tr><td>Model</td><td colspan="2">5-way acc. (%) 1-shot</td></tr><tr><td>Fine-tuning*</td><td>28.86</td><td>士</td><td>0.54</td></tr><tr><td>Nearest Neighbor*</td><td>41.08</td><td>士</td><td>0.70</td></tr><tr><td>Matching Networks FCE (Vinyals et al., 2016)*</td><td>43.56</td><td>士</td><td>0.84</td></tr><tr><td>Meta-LearnerLSTM (Ravi &amp; Larochelle,2017)*</td><td>43.44</td><td>士</td><td>0.77</td></tr><tr><td>SNAIL (Mishra et al., 2018)**</td><td>45.1</td><td>士</td><td></td></tr><tr><td>Prototypical Networks (Snellet al.,2017)***</td><td>46.61</td><td>士</td><td>0.78</td></tr><tr><td>mAP-DLM(Triantafillou et al., 2017)</td><td>49.82</td><td>士</td><td>0.78</td></tr><tr><td>MAML (Finn et al., 2017)</td><td>48.70</td><td>士</td><td>1.84</td></tr><tr><td>LLAMA (Ours)</td><td>49.40</td><td>士</td><td>1.83</td></tr></table>
216
+
217
+ We find that LLAMA is practical enough to be applied to this larger-scale problem. In particular, our TensorFlow implementation of LLAMA trains for 60,000 iterations on one TITAN $\mathrm { X p }$ GPU in 9 hours, compared to 5 hours to train MAML. As shown in Table 1, LLAMA achieves comparable performance to the state-of-the-art meta-learning method by Triantafillou et al. (2017). While the gap between MAML and LLAMA is small, the improvement from the Laplace approximation suggests that a more accurate approximation to the marginalization over task-specific parameters will lead to further improvements.
218
+
219
+ # 6 RELATED WORK
220
+
221
+ Meta-learning and few-shot learning have a long history in hierarchical Bayesian modeling (e.g., Tenenbaum, 1999; Fei-Fei et al., 2003; Lawrence & Platt, 2004; Yu et al., 2005; Gao et al., 2008; Daumé III, 2009; Wan et al., 2012). A related subfield is that of transfer learning, which has used hierarchical Bayes extensively (e.g., Raina et al., 2006). A variety of inference methods have been used in Bayesian models, including exact inference (Lake et al., 2011), sampling methods (Salakhutdinov et al., 2012), and variational methods (Edwards & Storkey, 2017). While some prior works on hierarchical Bayesian models have proposed to handle basic image recognition tasks, the complexity of these tasks does not yet approach the kinds of complex image recognition problems that can be solved by discriminatively trained deep networks, such as the miniImageNet experiment in our evaluation (Mansinghka et al., 2013).
222
+
223
+ Recently, the Omniglot benchmark Lake et al. (2016) has rekindled interest in the problem of learning from few examples. Modern methods accomplish few-shot learning either through the design of network architectures that ingest the few-shot training samples directly (e.g., Koch, 2015; Vinyals et al., 2016; Snell et al., 2017; Hariharan & Girshick, 2017; Triantafillou et al., 2017), or formulating the problem as one of learning to learn, or meta-learning (e.g., Schmidhuber, 1987; Bengio et al., 1991; Schmidhuber, 1992; Bengio et al., 1992). A variety of inference methods have been used in Bayesian models, including exact inference (Lake et al., 2011), sampling methods (Salakhutdinov et al., 2013), and variational methods (Edwards & Storkey, 2017).
224
+
225
+ Our work bridges the gap between gradient-based meta-learning methods and hierarchical Bayesian modeling. Our contribution is not to formulate the meta-learning problem as a hierarchical Bayesian model, but instead to formulate a gradient-based meta-learner as hierarchical Bayesian inference, thus providing a way to efficiently perform posterior inference in a model-agnostic manner.
226
+
227
+ # 7 CONCLUSION
228
+
229
+ We have shown that model-agnostic meta-learning (MAML) estimates the parameters of a prior in a hierarchical Bayesian model. By casting gradient-based meta-learning within a Bayesian framework, our analysis opens the door to novel improvements inspired by probabilistic machinery.
230
+
231
+ As a step in this direction, we propose an extension to MAML that employs a Laplace approximation to the posterior distribution over task-specific parameters. This technique provides a more accurate estimate of the integral that, in the original MAML algorithm, is approximated via a point estimate. We show how to estimate the quantity required by the Laplace approximation using Kroneckerfactored approximate curvature (K-FAC), a method recently proposed to approximate the quadratic curvature of a neural network objective for the purpose of a second-order gradient descent technique.
232
+
233
+ Our contribution illuminates the road to exploring further connections between gradient-based metalearning methods and hierarchical Bayesian modeling. For instance, in this work we assume that the predictive distribution over new data-points is narrow and well-approximated by a point estimate. We may instead employ methods that make use of the variance of the distribution over task-specific parameters in order to model the predictive density over examples from a novel task.
234
+
235
+ Furthermore, it is known that the Laplace approximation is inaccurate in cases where the integral is highly skewed, or is not unimodal and thus is not amenable to approximation by a single Gaussian mode. This could be solved by using a finite mixture of Gaussians, which can approximate many density functions arbitrarily well (Sorenson & Alspach, 1971; Alspach & Sorenson, 1972). The exploration of additional improvements such as this is an exciting line of future work.
236
+
237
+ # REFERENCES
238
+
239
+ Daniel Alspach and Harold Sorenson. Nonlinear Bayesian estimation using Gaussian sum approximations. IEEE Transactions on Automatic Control, 17(4):439–448, 1972.
240
+
241
+ Shun-Ichi Amari. Natural gradient works efficiently in learning. Neural computation, 10(2):251–276, 1998.
242
+
243
+ Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. In Advances in Neural Information Processing Systems (NIPS) 29, pp. 3981–3989, 2016.
244
+
245
+ Samy Bengio, Yoshua Bengio, Jocelyn Cloutier, and Jan Gecsei. On the optimization of a synaptic learning rule. In Proceedings of the Conference on Optimality in Artificial and Biological Neural Networks, pp. 6–8, 1992.
246
+
247
+ Yoshua Bengio, Samy Bengio, and Jocelyn Cloutier. Learning a synaptic learning rule. In Proceedings of the International Joint Conference on Neural Networks (IJCNN), volume 2, 1991.
248
+
249
+ J.M. Bernardo and A.F.M. Smith. Bayesian Theory. Wiley Series in Probability and Statistics. John Wiley & Sons Canada, Limited, 2006.
250
+
251
+ Christopher M Bishop. Regularization and complexity control in feed-forward networks. In Proceedings of the International Conference on Artificial Neural Networks (ICANN), pp. 141–148, 1995.
252
+
253
+ Léon Bottou and Vladimir Vapnik. Local learning algorithms. Neural computation, 4(6):888–900, 1992.
254
+
255
+ Rich Caruana. Multitask learning. In Learning to learn, pp. 95–133. Springer, 1998.
256
+
257
+ Hal Daumé III. Bayesian multitask learning with latent hierarchies. In Proceedings of the 25th Conference on Uncertainty in Artificial Intelligence (UAI), pp. 135–142, 2009.
258
+
259
+ David Duvenaud, Dougal Maclaurin, and Ryan Adams. Early stopping as nonparametric variational inference. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics (AISTATS), pp. 1070–1077, 2016.
260
+
261
+ Harrison Edwards and Amos Storkey. Towards a neural statistician. In Proceedings of the 5th International Conference on Learning Representations (ICLR), 2017.
262
+
263
+ Li Fei-Fei et al. A Bayesian approach to unsupervised one-shot learning of object categories. In Proceedings of the 9th Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1134–1141. IEEE, 2003.
264
+
265
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017.
266
+
267
+ Ronald Aylmer Fisher. Theory of statistical estimation. In Mathematical Proceedings of the Cambridge Philosophical Society, volume 22, pp. 700–725. Cambridge University Press, 1925.
268
+
269
+ Jing Gao, Wei Fan, Jing Jiang, and Jiawei Han. Knowledge transfer via multiple model local structure mapping. In Proceedings of the 14th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), pp. 283–291. ACM, 2008.
270
+
271
+ Andrew Gelman, John B Carlin, Hal S Stern, David B Dunson, Aki Vehtari, and Donald B Rubin. Bayesian data analysis, volume 2. Chapman and Hall, 2014.
272
+
273
+ Gene H. Golub and Charles F. Van Loan. Matrix computations. The Johns Hopkins University Press, 1983.
274
+
275
+ Bharath Hariharan and Ross Girshick. Low-shot visual object recognition. In Proceedings of the International Conference on Computer Vision (ICCV), 2017.
276
+
277
+ Tom Heskes. Solving a huge number of similar tasks: A combination of multi-task learning and a hierarchical Bayesian approach. In Proceedings of the 15th International Conference on Machine Learning (ICML), pp. 233–241, 1998.
278
+
279
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning (ICML), pp. 448–456, 2015.
280
+
281
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), 2014.
282
+
283
+ Gregory Koch. Siamese neural networks for one-shot image recognition. Master’s thesis, University of Toronto, 2015.
284
+
285
+ Brenden M Lake, Ruslan Salakhutdinov, Jason Gross, and Joshua B Tenenbaum. One shot learning of simple visual concepts. In Proceedings of the 33rd Annual Meeting of the Cognitive Science Society (CogSci), 2011.
286
+
287
+ Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and Brain Sciences, pp. 1–101, 2016.
288
+
289
+ Pierre Simon Laplace. Memoir on the probability of the causes of events. Statistical Science, 1(3):364–378, 1986.
290
+
291
+ Neil D Lawrence and John C Platt. Learning to learn with the informative vector machine. In Proceedings of the 21st International Conference on Machine Learning (ICML), pp. 65, 2004.
292
+
293
+ Ke Li and Jitendra Malik. Learning to optimize. In Proceedings of the 5th International Conference on Learning Representations (ICLR), 2017a.
294
+
295
+ Ke Li and Jitendra Malik. Learning to optimize neural nets. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017b.
296
+
297
+ David MacKay. A practical Bayesian framework for backpropagation networks. Neural computation, 4(3): 448–472, 1992a.
298
+
299
+ David JC MacKay. The evidence framework applied to classification networks. Neural computation, 4(5): 720–736, 1992b.
300
+
301
+ Vikash K Mansinghka, Tejas D Kulkarni, Yura N Perov, and Josh Tenenbaum. Approximate bayesian image interpretation using generative probabilistic graphics programs. In Advances in Neural Information Processing Systems, pp. 1520–1528, 2013.
302
+
303
+ James Martens. New insights and perspectives on the natural gradient method. arXiv preprint arXiv:1412.1193, 2014.
304
+
305
+ James Martens. Second-order optimization for neural networks. PhD thesis, University of Toronto, 2016.
306
+
307
+ James Martens and Roger Grosse. Optimizing neural networks with Kronecker-factored approximate curvature. In Proceedings of the 32nd International Conference on Machine Learning (ICML), pp. 2408–2417, 2015.
308
+
309
+ Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. Meta-learning with temporal convolutions. arXiv preprint arXiv:1707.03141, 2017.
310
+
311
+ Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. A simple neural attentive meta-learner. In Proceedings of the 6th International Conference on Learning Representations (ICLR), 2018.
312
+
313
+ Tsendsuren Munkhdalai and Hong Yu. Meta networks. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017.
314
+
315
+ Devang K Naik and RJ Mammone. Meta-neural networks that learn by learning. In Proceedings of the International Joint Conference on Neural Networks (IJCNN), pp. 437–442, 1992.
316
+
317
+ Razvan Pascanu and Yoshua Bengio. Revisiting natural gradient for deep networks. In Proceedings of the 4th International Conference on Learning Representations (ICLR), 2014.
318
+
319
+ Rajat Raina, Andrew $\mathrm { ~ Y ~ N ~ g ~ } _ { }$ , and Daphne Koller. Constructing informative priors using transfer learning. In Proceedings of the $2 3 r d$ International Conference on Machine Learning (ICML), pp. 713–720, 2006.
320
+
321
+ Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In Proceedings of the 5th International Conference on Learning Representations (ICLR), 2017.
322
+
323
+ Ruslan Salakhutdinov, Joshua Tenenbaum, and Antonio Torralba. One-shot learning with a hierarchical nonparametric bayesian model. In Proceedings of ICML Workshop on Unsupervised and Transfer Learning, pp. 195–206, 2012.
324
+
325
+ Ruslan Salakhutdinov, Joshua B Tenenbaum, and Antonio Torralba. Learning with hierarchical-deep models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8):1958–1971, 2013.
326
+
327
+ Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Meta-learning with memory-augmented neural networks. In Proceedings of the 33rd International Conference on Machine Learning (ICML), pp. 1842–1850, 2016.
328
+
329
+ Reginaldo J. Santos. Equivalence of regularization and truncated iteration for general ill-posed problems. Linear Algebra and its Applications, 236(15):25–33, 1996.
330
+ Jürgen Schmidhuber. Evolutionary principles in self-referential learning. PhD thesis, Institut für Informatik, Technische Universität München, 1987.
331
+ Jürgen Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent networks. Neural Computation, 4(1):131–139, 1992.
332
+ Jonas Sjöberg and Lennart Ljung. Overtraining, regularization and searching for a minimum, with application to neural networks. International Journal of Control, 62(6):1391–1407, 1995.
333
+ Jake Snell, Kevin Swersky, and Richard S Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems (NIPS) 30, 2017.
334
+ Harold W Sorenson and Daniel L Alspach. Recursive Bayesian estimation using Gaussian sums. Automatica, 7 (4):465–479, 1971.
335
+ Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip H. S. Torr, and Timothy M. Hospedales. Learning to compare: Relation network for few-shot learning. CoRR, abs/1711.06025, 2017.
336
+ Joshua B Tenenbaum. A Bayesian framework for concept learning. PhD thesis, Massachusetts Institute of Technology, 1999.
337
+ Sebastian Thrun and Lorien Pratt. Learning to learn. Kluwer Academic Publishers, 1998.
338
+ Eleni Triantafillou, Richard Zemel, and Raquel Urtasun. Few-shot learning through an information retrieval lens. In Advances in Neural Information Processing Systems (NIPS) 30, 2017.
339
+ Charles F Van Loan. The ubiquitous Kronecker product. Journal of computational and applied mathematics, 123(1):85–100, 2000.
340
+ Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems (NIPS) 29, pp. 3630–3638, 2016.
341
+ Jing Wan, Zhilin Zhang, Jingwen Yan, Taiyong Li, Bhaskar D Rao, Shiaofen Fang, Sungeun Kim, Shannon L Risacher, Andrew J Saykin, and Li Shen. Sparse Bayesian multi-task learning for predicting cognitive outcomes from neuroimaging measures in Alzheimer’s disease. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 940–947. IEEE, 2012.
342
+ Olga Wichrowska, Niru Maheswaranathan, Matthew W Hoffman, Sergio Gomez Colmenarejo, Misha Denil, Nando de Freitas, and Jascha Sohl-Dickstein. Learned optimizers that scale and generalize. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017.
343
+ Kai Yu, Volker Tresp, and Anton Schwaighofer. Learning Gaussian processes from multiple tasks. In Proceedings of the 22nd International Conference on Machine Learning (ICML), pp. 1012–1019, 2005.
parse/train/BJ_UL-k0b/BJ_UL-k0b_content_list.json ADDED
@@ -0,0 +1,1762 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "RECASTING GRADIENT-BASED META-LEARNING AS HIERARCHICAL BAYES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Erin Grant12, Chelsea $\\mathbf { F i n n ^ { 1 2 } }$ , Sergey Levine12, Trevor Darrell12, Thomas Griffiths13 ",
17
+ "bbox": [
18
+ 186,
19
+ 166,
20
+ 789,
21
+ 185
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1 Berkeley AI Research (BAIR), University of California, Berkeley \n2 Department of Electrical Engineering & Computer Sciences, University of California, Berkeley \n3 Department of Psychology, University of California, Berkeley ",
28
+ "bbox": [
29
+ 184,
30
+ 189,
31
+ 820,
32
+ 236
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "{eringrant,cbfinn,svlevine,trevor,tom_griffiths}@berkeley.edu ",
39
+ "bbox": [
40
+ 189,
41
+ 241,
42
+ 720,
43
+ 253
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 454,
53
+ 290,
54
+ 544,
55
+ 305
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Meta-learning allows an intelligent agent to leverage prior learning episodes as a basis for quickly improving performance on a novel task. Bayesian hierarchical modeling provides a theoretical framework for formalizing meta-learning as inference for a set of parameters that are shared across tasks. Here, we reformulate the model-agnostic meta-learning algorithm (MAML) of Finn et al. (2017) as a method for probabilistic inference in a hierarchical Bayesian model. In contrast to prior methods for meta-learning via hierarchical Bayes, MAML is naturally applicable to complex function approximators through its use of a scalable gradient descent procedure for posterior inference. Furthermore, the identification of MAML as hierarchical Bayes provides a way to understand the algorithm’s operation as a meta-learning procedure, as well as an opportunity to make use of computational strategies for efficient inference. We use this opportunity to propose an improvement to the MAML algorithm that makes use of techniques from approximate inference and curvature estimation. ",
62
+ "bbox": [
63
+ 233,
64
+ 315,
65
+ 766,
66
+ 510
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 536,
77
+ 336,
78
+ 553
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "A remarkable aspect of human intelligence is the ability to quickly solve a novel problem and to be able to do so even in the face of limited experience in a novel domain. Such fast adaptation is made possible by leveraging prior learning experience in order to improve the efficiency of later learning. This capacity for meta-learning also has the potential to enable an artificially intelligent agent to learn more efficiently in situations with little available data or limited computational resources (Schmidhuber, 1987; Bengio et al., 1991; Naik & Mammone, 1992). ",
85
+ "bbox": [
86
+ 174,
87
+ 568,
88
+ 825,
89
+ 651
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In machine learning, meta-learning is formulated as the extraction of domain-general information that can act as an inductive bias to improve learning efficiency in novel tasks (Caruana, 1998; Thrun & Pratt, 1998). This inductive bias has been implemented in various ways: as learned hyperparameters in a hierarchical Bayesian model that regularize task-specific parameters (Heskes, 1998), as a learned metric space in which to group neighbors (Bottou & Vapnik, 1992), as a trained recurrent neural network that allows encoding and retrieval of episodic information (Santoro et al., 2016), or as an optimization algorithm with learned parameters (Schmidhuber, 1987; Bengio et al., 1992). ",
96
+ "bbox": [
97
+ 174,
98
+ 659,
99
+ 825,
100
+ 756
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The model-agnostic meta-learning (MAML) of Finn et al. (2017) is an instance of a learned optimization procedure that directly optimizes the standard gradient descent rule. The algorithm estimates an initial parameter set to be shared among the task-specific models; the intuition is that gradient descent from the learned initialization provides a favorable inductive bias for fast adaptation. However, this inductive bias has been evaluated only empirically in prior work (Finn et al., 2017). ",
107
+ "bbox": [
108
+ 174,
109
+ 762,
110
+ 825,
111
+ 833
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this work, we present a novel derivation of and a novel extension to MAML, illustrating that this algorithm can be understood as inference for the parameters of a prior distribution in a hierarchical Bayesian model. The learned prior allows for quick adaptation to unseen tasks on the basis of an implicit predictive density over task-specific parameters. The reinterpretation as hierarchical Bayes gives a principled statistical motivation for MAML as a meta-learning algorithm, and sheds light on the reasons for its favorable performance even among methods with significantly more parameters. ",
118
+ "bbox": [
119
+ 174,
120
+ 840,
121
+ 825,
122
+ 922
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "More importantly, by casting gradient-based meta-learning within a Bayesian framework, we are able to improve MAML by taking insights from Bayesian posterior estimation as novel augmentations to the gradient-based meta-learning procedure. We experimentally demonstrate that this enables better performance on a few-shot learning benchmark. ",
129
+ "bbox": [
130
+ 174,
131
+ 103,
132
+ 825,
133
+ 160
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 META-LEARNING FORMULATION ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 179,
144
+ 482,
145
+ 195
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "The goal of a meta-learner is to extract task-general knowledge through the experience of solving a number of related tasks. By using this learned prior knowledge, the learner has the potential to quickly adapt to novel tasks even in the face of limited data or limited computation time. ",
152
+ "bbox": [
153
+ 174,
154
+ 212,
155
+ 825,
156
+ 253
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Formally, we consider a dataset $\\mathcal { D }$ that defines a distribution over a family of tasks $\\tau$ . These tasks share some common structure such that learning to solve a single task has the potential to aid in solving another. Each task $\\tau$ defines a distribution over data points $\\mathbf { x }$ , which we assume in this work to consist of inputs and either regression targets or classification labels $\\mathbf { y }$ in a supervised learning problem (although this assumption can be relaxed to include reinforcement learning problems; e.g., see Finn et al., 2017). The objective of the meta-learner is to be able to minimize a task-specific performance metric associated with any given unseen task from the dataset given even only a small amount of data from the task; i.e., to be capable of fast adaptation to a novel task. ",
163
+ "bbox": [
164
+ 174,
165
+ 260,
166
+ 825,
167
+ 372
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "In the following subsections, we discuss two ways of formulating a solution to the meta-learning problem: gradient-based hyperparameter optimization and probabilistic inference in a hierarchical Bayesian model. These approaches were developed orthogonally, but, in Section 3.1, we draw a novel connection between the two. ",
174
+ "bbox": [
175
+ 174,
176
+ 378,
177
+ 825,
178
+ 434
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "2.1 META-LEARNING AS GRADIENT-BASED HYPERPARAMETER OPTIMIZATION ",
185
+ "text_level": 1,
186
+ "bbox": [
187
+ 176,
188
+ 452,
189
+ 735,
190
+ 465
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "A parametric meta-learner aims to find some shared parameters $\\pmb \\theta$ that make it easier to find the right task-specific parameters $\\phi$ when faced with a novel task. A variety of meta-learners that employ gradient methods for task-specific fast adaptation have been proposed (e.g., Andrychowicz et al., 2016; Li & Malik, 2017a;b; Wichrowska et al., 2017). MAML (Finn et al., 2017) is distinct in that it provides a gradient-based meta-learning procedure that employs a single additional parameter (the meta-learning rate) and operates on the same parameter space for both meta-learning and fast adaptation. These are necessary features for the equivalence we show in Section 3.1. ",
197
+ "bbox": [
198
+ 174,
199
+ 477,
200
+ 825,
201
+ 575
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "To address the meta-learning problem, MAML estimates the parameters $\\pmb \\theta$ of a set of models so that when one or a few batch gradient descent steps are taken from the initialization at $\\pmb \\theta$ given a small sample of task data $\\mathbf { x } _ { j _ { 1 } } , . . . , \\mathbf { x } _ { j _ { N } } \\sim p _ { T _ { j } } ( \\mathbf { x } )$ each model has good generalization performance on another sample $\\mathbf { x } _ { j _ { N + 1 } } , . . . , \\mathbf { x } _ { j _ { N + M } } \\sim p \\bar { \\mathcal { T } _ { j } } ( \\mathbf { x } )$ from the same task. The MAML objective in a maximum likelihood setting is ",
208
+ "bbox": [
209
+ 176,
210
+ 582,
211
+ 823,
212
+ 651
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "equation",
218
+ "img_path": "images/89bba07f240b0f4c4278e8a7f51a46560e6d938d476428be99bfda619a3183e6.jpg",
219
+ "text": "$$\n\\mathcal { L } ( \\pmb { \\theta } ) = \\frac { 1 } { J } \\sum _ { j } \\left[ \\frac { 1 } { M } \\sum _ { m } - \\log p \\big ( \\mathbf { x } _ { j _ { N + m } } \\mid \\underbrace { \\pmb { \\theta } - \\alpha \\nabla _ { \\pmb { \\theta } } \\frac { 1 } { N } \\sum _ { n } - \\log p \\left( \\mathbf { x } _ { j _ { n } } \\mid \\pmb { \\theta } \\right) } _ { \\phi _ { j } } \\big ) \\right]\n$$",
220
+ "text_format": "latex",
221
+ "bbox": [
222
+ 230,
223
+ 656,
224
+ 764,
225
+ 722
226
+ ],
227
+ "page_idx": 1
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "where we use $\\phi _ { j }$ to denote the updated parameters after taking a single batch gradient descent step from the initialization at $\\pmb { \\theta }$ with step size $\\alpha$ on the negative log-likelihood associated with the task $\\tau _ { j }$ Note that since $\\phi _ { j }$ is an iterate of a gradient descent procedure that starts from $\\pmb \\theta$ , each $\\phi _ { j }$ is of the same dimensionality as $\\pmb \\theta$ . We refer to the inner gradient descent procedure that computes $\\mathbf { \\bar { \\phi } } _ { j }$ as fast adaptation. The computational graph of MAML is given in Figure 1 (left). ",
232
+ "bbox": [
233
+ 174,
234
+ 727,
235
+ 825,
236
+ 797
237
+ ],
238
+ "page_idx": 1
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "2.2 META-LEARNING AS HIERARCHICAL BAYESIAN INFERENCE ",
243
+ "text_level": 1,
244
+ "bbox": [
245
+ 174,
246
+ 814,
247
+ 632,
248
+ 829
249
+ ],
250
+ "page_idx": 1
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "An alternative way to formulate meta-learning is as a problem of probabilistic inference in the hierarchical model depicted in Figure 1 (right). In particular, in the case of meta-learning, each task-specific parameter $\\phi _ { j }$ is distinct from but should influence the estimation of the parameters $\\{ \\phi _ { j ^ { \\prime } } \\mid j ^ { \\prime } \\neq j \\}$ from other tasks. We can capture this intuition by introducing a meta-level parameter $\\pmb \\theta$ on which each task-specific parameter is statistically dependent. With this formulation, the mutual dependence of the task-specific parameters $\\phi _ { j }$ is realized only through their individual dependence on the meta-level parameters $\\pmb \\theta$ . As such, estimating $\\pmb \\theta$ provides a way to constrain the estimation of each of the $\\phi _ { j }$ . ",
255
+ "bbox": [
256
+ 174,
257
+ 839,
258
+ 825,
259
+ 924
260
+ ],
261
+ "page_idx": 1
262
+ },
263
+ {
264
+ "type": "image",
265
+ "img_path": "images/3e13a7a914b4674e914e750ae9eb6ad6346ae1c1c514ecb4748bf1c73fe61cd7.jpg",
266
+ "image_caption": [
267
+ "Figure 1: (Left) The computational graph of the MAML (Finn et al., 2017) algorithm covered in Section 2.1. Straight arrows denote deterministic computations and crooked arrows denote sampling operations. (Right) The probabilistic graphical model for which MAML provides an inference procedure as described in Section 3.1. In each figure, plates denote repeated computations (left) or factorization (right) across independent and identically distributed samples. "
268
+ ],
269
+ "image_footnote": [],
270
+ "bbox": [
271
+ 183,
272
+ 88,
273
+ 790,
274
+ 226
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "",
281
+ "bbox": [
282
+ 173,
283
+ 315,
284
+ 825,
285
+ 347
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "Given some data in a multi-task setting, we may estimate $\\pmb \\theta$ by integrating out the task-specific parameters to form the marginal likelihood of the data. Formally, grouping all of the data from each of the tasks as $\\mathbf { X }$ and again denoting by $\\mathbf { x } _ { j _ { 1 } } , \\dotsc , \\mathbf { x } _ { j _ { N } }$ a sample from task $\\tau _ { j }$ , the marginal likelihood of the observed data is given by ",
292
+ "bbox": [
293
+ 173,
294
+ 352,
295
+ 825,
296
+ 409
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "equation",
302
+ "img_path": "images/2c7c535354a8c6944687ff82d1dffdd0dfb6889c25bb97a19b91f879e0a3202d.jpg",
303
+ "text": "$$\np \\left( \\mathbf { X } \\mid \\theta \\right) = \\prod _ { j } \\left( \\int p \\left( \\mathbf { x } _ { j _ { 1 } } , \\ldots , \\mathbf { x } _ { j _ { N } } \\mid \\phi _ { j } \\right) p \\left( \\phi _ { j } \\mid \\theta \\right) \\mathrm { d } \\phi _ { j } \\right) .\n$$",
304
+ "text_format": "latex",
305
+ "bbox": [
306
+ 282,
307
+ 414,
308
+ 714,
309
+ 454
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "Maximizing (2) as a function of $\\pmb { \\theta }$ gives a point estimate for $\\pmb \\theta$ , an instance of a method known as empirical Bayes (Bernardo & Smith, 2006; Gelman et al., 2014) due to its use of the data to estimate the parameters of the prior distribution. ",
316
+ "bbox": [
317
+ 173,
318
+ 460,
319
+ 825,
320
+ 502
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "Hierarchical Bayesian models have a long history of use in both transfer learning and domain adaptation (e.g., Lawrence & Platt, 2004; Yu et al., 2005; Gao et al., 2008; Daumé III, 2009; Wan et al., 2012). However, the formulation of meta-learning as hierarchical Bayes does not automatically provide an inference procedure, and furthermore, there is no guarantee that inference is tractable for expressive models with many parameters such as deep neural networks. ",
327
+ "bbox": [
328
+ 173,
329
+ 508,
330
+ 825,
331
+ 580
332
+ ],
333
+ "page_idx": 2
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "3 LINKING GRADIENT-BASED META-LEARNING & HIERARCHICAL BAYES",
338
+ "text_level": 1,
339
+ "bbox": [
340
+ 173,
341
+ 599,
342
+ 805,
343
+ 616
344
+ ],
345
+ "page_idx": 2
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "In this section, we connect the two independent approaches of Section 2.1 and Section 2.2 by showing that MAML can be understood as empirical Bayes in a hierarchical probabilistic model. Furthermore, we build on this understanding by showing that a choice of update rule for the taskspecific parameters $\\phi _ { j }$ (i.e., a choice of inner-loop optimizer) corresponds to a choice of prior over task-specific parameters, $p ( \\phi _ { j } \\mid \\theta )$ . ",
350
+ "bbox": [
351
+ 173,
352
+ 631,
353
+ 826,
354
+ 703
355
+ ],
356
+ "page_idx": 2
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "3.1 MODEL-AGNOSTIC META-LEARNING AS EMPIRICAL BAYES ",
361
+ "text_level": 1,
362
+ "bbox": [
363
+ 174,
364
+ 717,
365
+ 633,
366
+ 733
367
+ ],
368
+ "page_idx": 2
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "In general, when performing empirical Bayes, the marginalization over task-specific parameters $\\phi _ { j }$ in (2) is not tractable to compute exactly. To avoid this issue, we can consider an approximation that makes use of a point estimate $\\hat { \\phi } _ { j }$ instead of performing the integration over $\\phi$ in (2). Using $\\hat { \\phi } _ { j }$ as an estimator for each $\\phi _ { j }$ , we may write the negative logarithm of the marginal likelihood as ",
373
+ "bbox": [
374
+ 173,
375
+ 743,
376
+ 825,
377
+ 801
378
+ ],
379
+ "page_idx": 2
380
+ },
381
+ {
382
+ "type": "equation",
383
+ "img_path": "images/4e778ad611b16332db9609a2cf1854d1cd25854875a5dccc6db80bc515da8bbc.jpg",
384
+ "text": "$$\n- \\log p \\left( \\mathbf { X } \\mid \\pmb { \\theta } \\right) \\approx \\sum _ { j } \\left[ - \\log p \\left( \\mathbf { x } _ { j _ { N + 1 } } , . . . \\mathbf { x } _ { j _ { N + M } } \\mid \\hat { \\phi } _ { j } \\right) \\right] \\ .\n$$",
385
+ "text_format": "latex",
386
+ "bbox": [
387
+ 290,
388
+ 808,
389
+ 705,
390
+ 844
391
+ ],
392
+ "page_idx": 2
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "Setting $\\hat { \\phi } _ { j } = \\pmb { \\theta } + \\alpha \\nabla _ { \\pmb { \\theta } } \\log p ( \\mathbf { x } _ { j _ { 1 } } , \\dots , \\mathbf { x } _ { j _ { N } } \\mid \\pmb { \\theta } )$ for each $j$ in (3) recovers the unscaled form of the one-step MAML objective in (1). This tells us that the MAML objective is equivalent to a maximization with respect to the meta-level parameters $\\pmb { \\theta }$ of the marginal likelihood $p ( \\mathbf { X } \\mid \\pmb { \\theta } )$ , where a point estimate for each task-specific parameter $\\phi _ { j }$ is computed via one or a few steps of gradient descent. By taking only a few steps from the initialization at $\\pmb \\theta$ , the point estimate $\\mathbf { \\widehat { \\phi } } _ { j } ^ { \\star }$ trades off ",
397
+ "bbox": [
398
+ 173,
399
+ 853,
400
+ 825,
401
+ 924
402
+ ],
403
+ "page_idx": 2
404
+ },
405
+ {
406
+ "type": "table",
407
+ "img_path": "images/d18650045c89504331b808b0c511043acc85c496eea5fd5ac84345911d55b97b.jpg",
408
+ "table_caption": [],
409
+ "table_footnote": [],
410
+ "table_body": "<table><tr><td colspan=\"2\">Algorithm MAML-HB()</td></tr><tr><td colspan=\"2\">Initialize 0 randomly</td></tr><tr><td>while not converged do</td><td></td></tr><tr><td></td><td>Draw J samples Ti,...,TJ ~ pg(T)</td></tr><tr><td></td><td>Estimate Ex~pt (x)[-logp(x|0)],..,Ex~pT(x)[-logp(x |0)] using ML-.</td></tr><tr><td>Update0 ←0-β ∀θ∑jEx~pTj(x)[-logp(x|θ)]</td><td></td></tr><tr><td colspan=\"2\">end</td></tr></table>",
411
+ "bbox": [
412
+ 174,
413
+ 107,
414
+ 795,
415
+ 233
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "Algorithm 2: Model-agnostic meta-learning as hierarchical Bayesian inference. The choices of the subroutine $\\mathrm { M L } - \\cdot \\cdot$ that we consider are defined in Subroutine 3 and Subroutine 4. ",
422
+ "bbox": [
423
+ 169,
424
+ 242,
425
+ 823,
426
+ 268
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "table",
432
+ "img_path": "images/789b19785d7606a3969e6dfc7fab66df35ec18d55675fcbabad34ceb4b28ed00.jpg",
433
+ "table_caption": [],
434
+ "table_footnote": [],
435
+ "table_body": "<table><tr><td>Subroutine ML-POINT (0,T) Draw N samples X1,...,XN ~ pτ(x)</td></tr><tr><td>Initialize←0</td></tr><tr><td>for k in 1,...,K do</td></tr><tr><td>Update 𝜙 ←Φ+α∀logp(x1,...,Xn|Φ)</td></tr><tr><td>end</td></tr><tr><td>Draw M samples XN+1,...,XN+M ~ PT(x) return -log p(xN+1,...,Xn+m|𝜙)</td></tr></table>",
436
+ "bbox": [
437
+ 174,
438
+ 301,
439
+ 825,
440
+ 436
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "Subroutine 3: Subroutine for computing a point estimate $\\hat { \\phi }$ using truncated gradient descent to approximate the marginal negative log likelihood (NLL). ",
447
+ "bbox": [
448
+ 173,
449
+ 444,
450
+ 823,
451
+ 472
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "minimizing the fast adaptation objective $- \\log p ( \\mathbf { x } _ { j _ { 1 } } , \\ldots , \\mathbf { x } _ { j _ { N } } \\mid \\pmb { \\theta } )$ with staying close in value to the parameter initialization $\\pmb \\theta$ . ",
458
+ "bbox": [
459
+ 174,
460
+ 497,
461
+ 823,
462
+ 526
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "We can formalize this trade-off by considering the linear regression case. Recall that the maximum a posteriori (MAP) estimate of $\\phi _ { j }$ corresponds to the global mode of the posterior $p ( \\phi _ { j } \\mid _ { \\mathbf { x } _ { j _ { 1 } } , \\mathbf { \\bar { \\phi } } _ { \\bar { \\mathbf { \\lambda } } \\cdot \\mathbf { \\lambda } \\cdot \\mathbf { x } _ { j _ { N } } , \\mathbf { \\bar { \\phi } } \\mathbf { \\phi } \\mathbf { \\phi } } \\mathbf { \\alpha } } p ( \\mathbf { \\alpha } _ { \\mathbf { x } _ { j _ { 1 } } } , \\mathbf { \\beta } _ { \\cdot } \\mathbf { \\alpha } _ { \\cdot } \\mathbf { \\alpha } _ { \\cdot } \\mathbf { \\alpha } _ { \\mathbf { x } _ { j _ { N } } } \\mid \\phi _ { j } \\rangle ) p ( \\phi _ { j } \\mid \\mathbf { \\bar { \\phi } } \\mathbf { \\phi } \\theta ) .$ . In the case of a linear model, early stopping of an iterative gradient descent procedure to estimate $\\phi _ { j }$ is exactly equivalent to MAP estimation of $\\phi _ { j }$ under the assumption of a prior that depends on the number of descent steps as well as the direction in which each step is taken. In particular, write the input examples as $\\mathbf { X }$ and the vector of regression targets as $\\mathbf { y }$ , omit the task index from $\\phi$ , and consider the gradient descent update ",
469
+ "bbox": [
470
+ 173,
471
+ 532,
472
+ 826,
473
+ 631
474
+ ],
475
+ "page_idx": 3
476
+ },
477
+ {
478
+ "type": "equation",
479
+ "img_path": "images/5acc3f748443e9da9aacb5ffd49d82b86886f2bb22a9c7e87feb585e192d531a.jpg",
480
+ "text": "$$\n\\begin{array} { l } { \\phi _ { ( k ) } = \\phi _ { ( k - 1 ) } - \\alpha \\nabla _ { \\phi } \\left[ \\left\\| \\mathbf { y } - \\mathbf { X } \\phi \\right\\| _ { 2 } ^ { 2 } \\right] _ { \\phi = \\phi _ { ( k - 1 ) } } } \\\\ { \\mathbf { \\phi } = \\phi _ { ( k - 1 ) } - \\alpha \\mathbf { X } ^ { \\mathrm { T } } \\left( \\mathbf { X } \\phi _ { ( k - 1 ) } - \\mathbf { y } \\right) } \\end{array}\n$$",
481
+ "text_format": "latex",
482
+ "bbox": [
483
+ 341,
484
+ 637,
485
+ 655,
486
+ 693
487
+ ],
488
+ "page_idx": 3
489
+ },
490
+ {
491
+ "type": "text",
492
+ "text": "for iteration index $k$ and learning rate $\\alpha \\in \\mathbb { R } ^ { + }$ . Santos (1996) shows that, starting from $\\phi _ { ( 0 ) } = \\theta$ , $\\phi _ { ( k ) }$ in (4) solves the regularized linear least squares problem ",
493
+ "bbox": [
494
+ 174,
495
+ 698,
496
+ 828,
497
+ 727
498
+ ],
499
+ "page_idx": 3
500
+ },
501
+ {
502
+ "type": "equation",
503
+ "img_path": "images/6e5206274f8f2ae665ecdda6ca9a77cc4ae866b5274e4ab2d453987451ae96f0.jpg",
504
+ "text": "$$\n\\operatorname* { m i n } \\left( \\lVert \\mathbf { y } - \\mathbf { X } \\phi \\rVert _ { 2 } ^ { 2 } + \\lVert \\pmb { \\theta } - \\phi \\rVert _ { \\mathbf { Q } } ^ { 2 } \\right)\n$$",
505
+ "text_format": "latex",
506
+ "bbox": [
507
+ 385,
508
+ 734,
509
+ 611,
510
+ 762
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "with $\\mathbf { Q }$ -norm defined by $\\| \\mathbf { z } \\| _ { \\mathbf { Q } } = \\mathbf { z } ^ { \\mathrm { T } } \\mathbf { Q } ^ { - 1 } \\mathbf { z }$ for a symmetric positive definite matrix $\\mathbf { Q }$ that depends on the step size $\\alpha$ and iteration index $k$ as well as on the covariance structure of $\\mathbf { X }$ . We describe the exact form of the dependence in Section 3.2. The minimization in (5) can be expressed as a posterior maximization problem given a conditional Gaussian likelihood over $\\mathbf { y }$ and a Gaussian prior over $\\phi$ . The posterior takes the form ",
517
+ "bbox": [
518
+ 173,
519
+ 768,
520
+ 826,
521
+ 840
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "equation",
527
+ "img_path": "images/590879570af22c78eb9e6b909e52c3d66096560344dea8cc7b8ad687a557ffa0.jpg",
528
+ "text": "$$\np \\left( \\phi \\mid \\mathbf { X } , \\mathbf { y } , \\pmb { \\theta } \\right) \\propto \\mathcal { N } ( \\mathbf { y } ; \\mathbf { X } \\phi , \\mathbb { I } ) \\mathcal { N } ( \\phi ; \\pmb { \\theta } , \\mathbf { Q } ) .\n$$",
529
+ "text_format": "latex",
530
+ "bbox": [
531
+ 338,
532
+ 849,
533
+ 658,
534
+ 868
535
+ ],
536
+ "page_idx": 3
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "Since $\\phi _ { ( k ) }$ in (4) maximizes (6), we may conclude that $k$ iterations of gradient descent in a linear regression model with squared error exactly computes the MAP estimate of $\\phi$ , given a Gaussian-noised observation model and a Gaussian prior over $\\phi$ with parameters $\\mu _ { 0 } = \\pmb \\theta$ and $\\pmb { \\Sigma } _ { 0 } = \\mathbf { Q }$ . Therefore, in the case of linear regression with squared error, MAML is exactly empirical Bayes using the MAP estimate as the point estimate of $\\phi$ . ",
541
+ "bbox": [
542
+ 174,
543
+ 881,
544
+ 825,
545
+ 924
546
+ ],
547
+ "page_idx": 3
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "",
552
+ "bbox": [
553
+ 173,
554
+ 103,
555
+ 823,
556
+ 132
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "In the nonlinear case, MAML is again equivalent to an empirical Bayes procedure to maximize the marginal likelihood that uses a point estimate for $\\phi$ computed by one or a few steps of gradient descent. However, this point estimate is not necessarily the global mode of a posterior. We can instead understand the point estimate given by truncated gradient descent as the value of the mode of an implicit posterior over $\\phi$ resulting from an empirical loss interpreted as a negative log-likelihood, and regularization penalties and the early stopping procedure jointly acting as priors (for similar interpretations, see Sjöberg & Ljung, 1995; Bishop, 1995; Duvenaud et al., 2016). ",
563
+ "bbox": [
564
+ 174,
565
+ 138,
566
+ 825,
567
+ 237
568
+ ],
569
+ "page_idx": 4
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "The exact equivalence between early stopping and a Gaussian prior on the weights in the linear case, as well as the implicit regularization to the parameter initialization the nonlinear case, tells us that every iterate of truncated gradient descent is a mode of an implicit posterior. In particular, we are not required to take the gradient descent procedure of fast adaptation that computes $\\hat { \\phi }$ to convergence in order to establish a connection between MAML and hierarchical Bayes. MAML can therefore be understood to approximate an expectation of the marginal negative log likelihood (NLL) for each task $\\tau _ { j }$ as ",
574
+ "bbox": [
575
+ 173,
576
+ 242,
577
+ 826,
578
+ 342
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "equation",
584
+ "img_path": "images/628cc52901872f8f1f23c3a9c4a552698e52367081022915e560b26829ab07d1.jpg",
585
+ "text": "$$\n\\mathbb { E } _ { \\mathbf { x } \\sim p _ { T _ { j } } ( \\mathbf { x } ) } \\left[ - \\log p \\left( \\mathbf { x } \\mid \\pmb { \\theta } \\right) \\right] \\approx \\frac { 1 } { M } \\sum _ { m } - \\log p \\left( \\mathbf { x } _ { j _ { N + m } } \\mid \\hat { \\phi } _ { j } \\right)\n$$",
586
+ "text_format": "latex",
587
+ "bbox": [
588
+ 292,
589
+ 347,
590
+ 700,
591
+ 385
592
+ ],
593
+ "page_idx": 4
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "using the point estimate $\\hat { \\phi } _ { j } = \\pmb { \\theta } + \\alpha \\nabla _ { \\pmb { \\theta } } \\log p ( \\mathbf { x } _ { j _ { n } } \\mid \\pmb { \\theta } )$ for single-step fast adaptation. ",
598
+ "bbox": [
599
+ 171,
600
+ 391,
601
+ 743,
602
+ 409
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "The algorithm for MAML as probabilistic inference is given in Algorithm 2; Subroutine 3 computes each marginal NLL using the point estimate of $\\hat { \\phi }$ as just described. Formulating MAML in this way, as probabilistic inference in a hierarchical Bayesian model, motivates the interpretation in Section 3.2 of using various meta-optimization algorithms to induce a prior over task-specific parameters. ",
609
+ "bbox": [
610
+ 173,
611
+ 412,
612
+ 826,
613
+ 469
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "3.2 THE PRIOR OVER TASK-SPECIFIC PARAMETERS ",
620
+ "text_level": 1,
621
+ "bbox": [
622
+ 174,
623
+ 486,
624
+ 547,
625
+ 501
626
+ ],
627
+ "page_idx": 4
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "From Section 3.1, we may conclude that early stopping during fast adaptation is equivalent to a specific choice of a prior over task-specific parameters, $p \\bar { ( \\phi _ { j } \\mid \\theta ) }$ . We can better understand the role of early stopping in defining the task-specific parameter prior in the case of a quadratic objective. Omit the task index from $\\phi$ and $\\mathbf { x }$ , and consider a second-order approximation of the fast adaptation objective $\\ell ( \\phi ) = - \\log p ( \\mathbf { x } _ { 1 } \\ldots , \\mathbf { x } _ { N } \\mid \\phi )$ about a minimum $\\phi ^ { * }$ : ",
632
+ "bbox": [
633
+ 173,
634
+ 512,
635
+ 825,
636
+ 583
637
+ ],
638
+ "page_idx": 4
639
+ },
640
+ {
641
+ "type": "equation",
642
+ "img_path": "images/a0e206b6a6ced3dcefec32758a3e2763927117579dedf15bab2fd80f25e0b03d.jpg",
643
+ "text": "$$\n\\begin{array} { r } { \\ell ( \\phi ) \\approx \\tilde { \\ell } ( \\phi ) : = \\frac 1 2 \\| \\phi - \\phi ^ { * } \\| _ { \\ H ^ { - 1 } } ^ { 2 } + \\ell ( \\phi ^ { * } ) } \\end{array}\n$$",
644
+ "text_format": "latex",
645
+ "bbox": [
646
+ 361,
647
+ 606,
648
+ 637,
649
+ 628
650
+ ],
651
+ "page_idx": 4
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "where the Hessian $\\mathbf { H } = \\nabla _ { \\phi } ^ { 2 } \\ell ( \\phi ^ { * } )$ is assumed to be positive definite so that $\\tilde { \\ell }$ is bounded below. Furthermore, consider using a curvature matrix $\\boldsymbol { B }$ to precondition the gradient in gradient descent, giving the update ",
656
+ "bbox": [
657
+ 173,
658
+ 640,
659
+ 826,
660
+ 685
661
+ ],
662
+ "page_idx": 4
663
+ },
664
+ {
665
+ "type": "equation",
666
+ "img_path": "images/f2209ee46a19f8ff621a71ce78b58ad56bebd01f330304017432941b8840fa35.jpg",
667
+ "text": "$$\n\\phi _ { ( k ) } = \\phi _ { ( k - 1 ) } - B \\nabla _ { \\phi } \\tilde { \\ell } \\big ( \\phi _ { ( k - 1 ) } \\big ) \\mathrm { ~ . ~ }\n$$",
668
+ "text_format": "latex",
669
+ "bbox": [
670
+ 379,
671
+ 709,
672
+ 619,
673
+ 731
674
+ ],
675
+ "page_idx": 4
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "If $\\boldsymbol { B }$ is diagonal, we can identify (8) as a Newton method with a diagonal approximation to the inverse Hessian; using the inverse Hessian evaluated at the point $\\phi _ { ( k - 1 ) }$ recovers Newton’s method itself. On the other hand, meta-learning the matrix $\\boldsymbol { B }$ matrix via gradient descent provides a method to incorporate task-general information into the covariance of the fast adaptation prior, $p ( \\phi \\mid \\theta )$ . For instance, the meta-learned matrix $\\boldsymbol { B }$ may encode correlations between parameters that dictates how such parameters are updated relative to each other. ",
680
+ "bbox": [
681
+ 173,
682
+ 741,
683
+ 825,
684
+ 825
685
+ ],
686
+ "page_idx": 4
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "Formally, taking $k$ steps of gradient descent from $\\phi _ { ( 0 ) } = \\theta$ using the update rule in (8) gives a $\\phi _ { ( k ) }$ that solves ",
691
+ "bbox": [
692
+ 173,
693
+ 832,
694
+ 823,
695
+ 859
696
+ ],
697
+ "page_idx": 4
698
+ },
699
+ {
700
+ "type": "equation",
701
+ "img_path": "images/b9e5dc44a81e8bd04c4681695634728bb2c95772ff79ff3b776108d5e056dd0e.jpg",
702
+ "text": "$$\n\\operatorname* { m i n } \\left( \\lVert \\phi - \\phi ^ { * } \\rVert _ { \\mathbf { H } ^ { - 1 } } ^ { 2 } + \\lVert \\phi _ { ( 0 ) } - \\phi \\rVert _ { \\mathbf { Q } } ^ { 2 } \\right) \\ .\n$$",
703
+ "text_format": "latex",
704
+ "bbox": [
705
+ 362,
706
+ 863,
707
+ 633,
708
+ 890
709
+ ],
710
+ "page_idx": 4
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "The minimization in (9) corresponds to taking a Gaussian prior $p ( \\phi \\mid \\theta )$ with mean $\\pmb { \\theta }$ and covariance $\\mathbf { Q }$ for $\\mathbf { Q } = \\mathbf { O } \\mathbf { A } ^ { - 1 } ( ( \\mathbb { I } - \\mathbf { B } \\mathbf { A } ) ^ { - k } - \\mathbb { I } ) \\breve { \\mathbf { O } } ^ { \\mathrm { T } }$ (Santos, 1996) where $\\mathbf { B }$ is a diagonal matrix that results from a simultaneous diagonalization of $\\mathbf { H }$ and $\\boldsymbol { B }$ as $\\mathbf { O } ^ { \\mathrm { T } } \\mathbf { H } \\mathbf { O } = \\mathrm { d i a g } ( \\lambda _ { 1 } , \\dots , \\lambda _ { n } ) = \\Lambda$ and $\\mathbf { O } ^ { \\mathrm { T } } { \\mathcal { B } } ^ { - 1 } \\mathbf { O } = \\mathrm { d i a g } ( b _ { 1 } , \\dots , b _ { n } ) = \\mathbf { B }$ with $b _ { i } , \\lambda _ { i } \\geq 0$ for $i = 1 , \\ldots , n$ (Theorem 8.7.1 in Golub $\\&$ Van Loan, 1983). If the true objective is indeed quadratic, then, assuming the data is centered, $\\mathbf { H }$ is the unscaled covariance matrix of features, $\\mathbf { X } ^ { \\mathrm { { T } } } \\mathbf { X }$ . ",
715
+ "bbox": [
716
+ 174,
717
+ 895,
718
+ 825,
719
+ 924
720
+ ],
721
+ "page_idx": 4
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "",
726
+ "bbox": [
727
+ 173,
728
+ 101,
729
+ 825,
730
+ 160
731
+ ],
732
+ "page_idx": 5
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "4 IMPROVING MODEL-AGNOSTIC META-LEARNING ",
737
+ "text_level": 1,
738
+ "bbox": [
739
+ 174,
740
+ 179,
741
+ 620,
742
+ 195
743
+ ],
744
+ "page_idx": 5
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "Identifying MAML as a method for probabilistic inference in a hierarchical model allows us to develop novel improvements to the algorithm. In Section 4.1, we consider an approach from Bayesian parameter estimation to improve the MAML algorithm, and in Section 4.2, we discuss how to make this procedure computationally tractable for high-dimensional models. ",
749
+ "bbox": [
750
+ 174,
751
+ 210,
752
+ 825,
753
+ 267
754
+ ],
755
+ "page_idx": 5
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "4.1 LAPLACE’S METHOD OF INTEGRATION ",
760
+ "text_level": 1,
761
+ "bbox": [
762
+ 176,
763
+ 284,
764
+ 485,
765
+ 297
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "We have shown that the MAML algorithm is an empirical Bayes procedure that employs a point estimate for the mid-level, task-specific parameters in a hierarchical Bayesian model. However, the use of this point estimate may lead to an inaccurate point approximation of the integral in (2) if the posterior over the task-specific parameters, $p \\big ( \\phi _ { j } \\mid \\mathbf { x } _ { j _ { N + 1 } } , \\cdot \\cdot \\cdot , \\mathbf { x } _ { j _ { N + M } } , \\pmb { \\theta } \\big )$ , . . . , xjN+M , θ ), is not sharply peaked at the value of the point estimate. The Laplace approximation (Laplace, 1986; MacKay, 1992b;a) is applicable in this case as it replaces a point estimate of an integral with the volume of a Gaussian centered at a mode of the integrand, thereby forming a local quadratic approximation. ",
772
+ "bbox": [
773
+ 173,
774
+ 309,
775
+ 825,
776
+ 409
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "We can make use of this approximation to incorporate uncertainty about the task-specific parameters into the MAML algorithm at fast adaptation time. In particular, suppose that each integrand in (2) has a mode $\\boldsymbol { \\phi } _ { j } ^ { * }$ at which it is locally well-approximated by a quadratic function. The Laplace approximation uses a second-order Taylor expansion of the negative log posterior in order to approximate each integral in the product in (2) as ",
783
+ "bbox": [
784
+ 173,
785
+ 414,
786
+ 825,
787
+ 484
788
+ ],
789
+ "page_idx": 5
790
+ },
791
+ {
792
+ "type": "equation",
793
+ "img_path": "images/648a5fe855fb59d827eeb9bf480fe93a5aaf790a3ef9c396eafeb2a974b510f8.jpg",
794
+ "text": "$$\n\\int p \\left( { \\bf X } _ { j } \\mid \\phi _ { j } \\right) p \\left( \\phi _ { j } \\mid \\theta \\right) \\mathrm { d } \\phi _ { j } \\approx p \\left( { \\bf X } _ { j } \\mid \\phi _ { j } ^ { * } \\right) p \\left( \\phi _ { j } ^ { * } \\mid \\theta \\right) \\operatorname * { d e t } ( { \\bf H } _ { j } / 2 \\pi ) ^ { - \\frac { 1 } { 2 } }\n$$",
795
+ "text_format": "latex",
796
+ "bbox": [
797
+ 246,
798
+ 489,
799
+ 750,
800
+ 522
801
+ ],
802
+ "page_idx": 5
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "where $\\mathbf { H } _ { j }$ is the Hessian matrix of second derivatives of the negative log posterior. ",
807
+ "bbox": [
808
+ 171,
809
+ 526,
810
+ 714,
811
+ 541
812
+ ],
813
+ "page_idx": 5
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "Classically, the Laplace approximation uses the MAP estimate for $\\boldsymbol { \\phi } _ { j } ^ { * }$ , although any mode can be used as an expansion site provided the integrand is well enough approximated there by a quadratic. We use the point estimate $\\hat { \\phi } _ { j }$ uncovered by fast adaptation, in which case the MAML objective in (1) becomes an appropriately scaled version of the approximate marginal likelihood ",
818
+ "bbox": [
819
+ 173,
820
+ 547,
821
+ 825,
822
+ 604
823
+ ],
824
+ "page_idx": 5
825
+ },
826
+ {
827
+ "type": "equation",
828
+ "img_path": "images/c619b3c6c6265f44ef27ce854d2093675e8576f1b7f4ce2d8aaa70dc74e71624.jpg",
829
+ "text": "$$\n- \\log p \\left( \\mathbf { X } \\mid \\theta \\right) \\approx \\sum _ { j } \\left[ - \\log p \\left( \\mathbf { X } _ { j } \\mid \\hat { \\phi } _ { j } \\right) - \\log p \\left( \\hat { \\phi } _ { j } \\mid \\theta \\right) + \\frac { 1 } { 2 } \\log \\operatorname* { d e t } ( \\mathbf { H } _ { j } ) \\right] .\n$$",
830
+ "text_format": "latex",
831
+ "bbox": [
832
+ 207,
833
+ 611,
834
+ 761,
835
+ 648
836
+ ],
837
+ "page_idx": 5
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "The term $\\log p ( \\hat { \\phi } _ { j } \\mid \\pmb \\theta )$ results from the implicit regularization imposed by early stopping during fast adaptation, as discussed in Section 3.1. The term $\\mathbf { \\omega } ^ { 1 } / 2 \\log \\operatorname* { d e t } ( \\mathbf { H } _ { j } )$ , on the other hand, results from the Laplace approximation and can be interpreted as a form of regularization that penalizes model complexity. ",
842
+ "bbox": [
843
+ 173,
844
+ 652,
845
+ 825,
846
+ 709
847
+ ],
848
+ "page_idx": 5
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "4.2 USING CURVATURE INFORMATION TO IMPROVE MAML ",
853
+ "text_level": 1,
854
+ "bbox": [
855
+ 174,
856
+ 726,
857
+ 602,
858
+ 741
859
+ ],
860
+ "page_idx": 5
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Using (11) as a training criterion for a neural network model is difficult due to the required computation of the determinant of the Hessian of the log posterior $\\mathbf { H } _ { j }$ , which itself decomposes into a sum of the Hessian of the log likelihood and the Hessian of the log prior as ",
865
+ "bbox": [
866
+ 174,
867
+ 751,
868
+ 825,
869
+ 795
870
+ ],
871
+ "page_idx": 5
872
+ },
873
+ {
874
+ "type": "equation",
875
+ "img_path": "images/a87b231617bfb482de63da8459b93b2b3e69a4abd8dd9c95e8900f2e69c38a04.jpg",
876
+ "text": "$$\n\\mathbf { H } _ { j } = \\nabla _ { \\phi _ { j } } ^ { 2 } \\left[ - \\log p \\left( \\mathbf { X } _ { j } \\mid \\phi _ { j } \\right) \\right] + \\nabla _ { \\phi _ { j } } ^ { 2 } \\left[ - \\log p \\left( \\phi _ { j } \\mid \\theta \\right) \\right] \\ .\n$$",
877
+ "text_format": "latex",
878
+ "bbox": [
879
+ 294,
880
+ 799,
881
+ 704,
882
+ 821
883
+ ],
884
+ "page_idx": 5
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "In our case of early stopping as regularization, the prior over task-specific parameters $p ( \\phi _ { j } \\mid \\theta )$ is implicit and thus no closed form is available for a general model. Although we may use the quadratic approximation derived in Section 3.2 to obtain an approximate Gaussian prior, this prior is not diagonal and does not, to our knowledge, have a convenient factorization. Therefore, in our experiments, we instead use a simple approximation in which the prior is approximated as a diagonal Gaussian with precision $\\tau$ . We keep $\\tau$ fixed, although this parameter may be cross-validated for improved performance. ",
889
+ "bbox": [
890
+ 173,
891
+ 825,
892
+ 825,
893
+ 924
894
+ ],
895
+ "page_idx": 5
896
+ },
897
+ {
898
+ "type": "table",
899
+ "img_path": "images/3fba0f5acb7a67d2330df937ecbde14031bc2f9d63995377d52960a111bfdb44.jpg",
900
+ "table_caption": [],
901
+ "table_footnote": [],
902
+ "table_body": "<table><tr><td>Subroutine ML-LAPLACE (0,T) Draw N samples X1,...,XN ~ pτ(x)</td></tr><tr><td>Update 𝜙 ←Φ+αVlogp(x1,...,Xn|Φ) end Draw M samples XN+1,...,XN+M ~ pτ(x) Estimate quadratic curvature H return -log p(xn+1,,XN+M |Φ) + nlog det(H)</td></tr></table>",
903
+ "bbox": [
904
+ 174,
905
+ 107,
906
+ 591,
907
+ 258
908
+ ],
909
+ "page_idx": 6
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "Subroutine 4: Subroutine for computing a Laplace approximation of the marginal likelihood. ",
914
+ "bbox": [
915
+ 215,
916
+ 273,
917
+ 779,
918
+ 287
919
+ ],
920
+ "page_idx": 6
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "Similarly, the Hessian of the log likelihood is intractable to form exactly for all but the smallest models, and furthermore, is not guaranteed to be positive definite at all points, possibly rendering the Laplace approximation undefined. To combat this, we instead seek a curvature matrix $\\hat { \\bf H }$ that approximates the quadratic curvature of a neural network objective function. Since it is well-known that the curvature associated with neural network objective functions is highly non-diagonal (e.g., Martens, 2016), a further requirement is that the matrix have off-diagonal terms. ",
925
+ "bbox": [
926
+ 174,
927
+ 319,
928
+ 825,
929
+ 402
930
+ ],
931
+ "page_idx": 6
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "Due to the difficulties listed above, we turn to second order gradient descent methods, which precondition the gradient with an inverse curvature matrix at each iteration of descent. The Fisher information matrix (Fisher, 1925) has been extensively used as an approximation of curvature, giving rise to a method known as natural gradient descent (Amari, 1998). A neural network with an appropriate choice of loss function is a probabilistic model and therefore defines a Fisher information matrix. Furthermore, the Fisher information matrix can be seen to define a convex quadratic approximation to the objective function of a probabilistic neural model (Pascanu & Bengio, 2014; Martens, 2014). Importantly for our use case, the Fisher information matrix is positive definite by definition as well as non-diagonal. ",
936
+ "bbox": [
937
+ 174,
938
+ 410,
939
+ 825,
940
+ 535
941
+ ],
942
+ "page_idx": 6
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "However, the Fisher information matrix is still expensive to work with. Martens & Grosse (2015) developed Kronecker-factored approximate curvature (K-FAC), a scheme for approximating the curvature of the objective function of a neural network with a block-diagonal approximation to the Fisher information matrix. Each block corresponds to a unique layer in the network, and each block is further approximated as a Kronecker product (see Van Loan, 2000) of two much smaller matrices by assuming that the second-order statistics of the input activation and the back-propagated derivatives within a layer are independent. These two approximations ensure that the inverse of the Fisher information matrix can be computed efficiently for the natural gradient. ",
947
+ "bbox": [
948
+ 174,
949
+ 541,
950
+ 825,
951
+ 654
952
+ ],
953
+ "page_idx": 6
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "For the Laplace approximation, we are interested in the determinant of a curvature matrix instead of its inverse. However, we may also make use of the approximations to the Fisher information matrix from K-FAC as well as properties of the Kronecker product. In particular, we use the fact that the determinant of a Kronecker product is the product of the exponentiated determinants of each of the factors, and that the determinant of a block diagonal matrix is the product of the determinants of the blocks (Van Loan, 2000). The determinants for each factor can be computed as efficiently as the inverses required by K-FAC, in $\\mathcal { O } ( d ^ { 3 } )$ time for a $d$ -dimensional Kronecker factor. ",
958
+ "bbox": [
959
+ 174,
960
+ 660,
961
+ 825,
962
+ 758
963
+ ],
964
+ "page_idx": 6
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "We make use of the Laplace approximation and K-FAC to replace Subroutine 3, which computes the task-specific marginal NLLs using a point estimate for $\\hat { \\phi }$ . We call this method the Lightweight Laplace Approximation for Meta-Adaptation (LLAMA), and give a replacement subroutine in Subroutine 4. ",
969
+ "bbox": [
970
+ 174,
971
+ 765,
972
+ 825,
973
+ 820
974
+ ],
975
+ "page_idx": 6
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "5 EXPERIMENTAL EVALUATION ",
980
+ "text_level": 1,
981
+ "bbox": [
982
+ 176,
983
+ 847,
984
+ 450,
985
+ 863
986
+ ],
987
+ "page_idx": 6
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "The goal of our experiments is to evaluate if we can use our probabilistic interpretation of MAML to generate samples from the distribution over adapted parameters, and futhermore, if our method can be applied to large-scale meta-learning problems such as miniImageNet. ",
992
+ "bbox": [
993
+ 176,
994
+ 882,
995
+ 823,
996
+ 924
997
+ ],
998
+ "page_idx": 6
999
+ },
1000
+ {
1001
+ "type": "image",
1002
+ "img_path": "images/5bdf18425b1a88e41686bfb5c980d314c5b5c945c7b8c77312f705a230c570c0.jpg",
1003
+ "image_caption": [
1004
+ "Figure 5: Our method is able to meta-learn a model that can quickly adapt to sinusoids with varying phases and amplitudes, and the interpretation of the method as hierarchical Bayes makes it practical to directly sample models from the posterior. In this figure, we illustrate various samples from the posterior of a model that is meta-trained on different sinusoids, when presented with a few datapoints (in red) from a new, previously unseen sinusoid. Note that the random samples from the posterior predictive describe a distribution of functions that are all sinusoidal and that there is increased uncertainty when the datapoints are less informative (i.e., when the datapoints are sampled only from the lower part of the range input, shown in the bottom-right example). "
1005
+ ],
1006
+ "image_footnote": [],
1007
+ "bbox": [
1008
+ 197,
1009
+ 103,
1010
+ 794,
1011
+ 285
1012
+ ],
1013
+ "page_idx": 7
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "5.1 WARMUP: TOY NONLINEAR MODEL ",
1018
+ "text_level": 1,
1019
+ "bbox": [
1020
+ 176,
1021
+ 421,
1022
+ 467,
1023
+ 435
1024
+ ],
1025
+ "page_idx": 7
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "The connection between MAML and hierarchical Bayes suggests that we should expect MAML to behave like an algorithm that learns the mean of a Gaussian prior on model parameters, and uses the mean of this prior as an initialization during fast adaptation. Using the Laplace approximation to the integration over task-specific parameters as in (10) assumes a task-specific parameter posterior with mean at the adapted parameters $\\hat { \\phi }$ and covariance equal to the inverse Hessian of the log posterior evaluated at the adapted parameter value. Instead of simply using this density in the Laplace approximation as an additional regularization term as in (11), we may sample parameters $\\phi _ { j }$ from this density and use each set of sampled parameters to form a set of predictions for a given task. ",
1030
+ "bbox": [
1031
+ 174,
1032
+ 449,
1033
+ 825,
1034
+ 560
1035
+ ],
1036
+ "page_idx": 7
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "To illustrate this relationship between MAML and hierarchical Bayes, we present a meta-dataset of sinusoid tasks in which each task involves regressing to the output of a sinusoid wave in Figure 5. Variation between tasks is obtained by sampling the amplitude uniformly from [0.1, 5.0] and the phase from $[ 0 , \\pi ]$ . During training and for each task, 10 input datapoints are sampled uniformly from $[ - 1 0 . 0 , 1 0 . \\dot { 0 } ]$ and the loss is the mean squared error between the prediction and the true value. ",
1041
+ "bbox": [
1042
+ 174,
1043
+ 568,
1044
+ 825,
1045
+ 637
1046
+ ],
1047
+ "page_idx": 7
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "We observe in Figure 5 that our method allows us to directly sample models from the task-specific parameter distribution after being presented with 10 datapoints from a new, previously unseen sinusoid curve. In particular, the column on the right of Figure 5 demonstrates that the sampled models display an appropriate level of uncertainty when the datapoints are ambiguous (as in the bottom right). ",
1052
+ "bbox": [
1053
+ 174,
1054
+ 643,
1055
+ 825,
1056
+ 714
1057
+ ],
1058
+ "page_idx": 7
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "5.2 LARGE-SCALE EXPERIMENT: miniIMAGENET ",
1063
+ "text_level": 1,
1064
+ "bbox": [
1065
+ 174,
1066
+ 734,
1067
+ 531,
1068
+ 750
1069
+ ],
1070
+ "page_idx": 7
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "We evaluate LLAMA on the miniImageNet Ravi & Larochelle (2017) 1-shot, 5-way classification task, a standard benchmark in few-shot classification. miniImageNet comprises 64 training classes, 12 validation classes, and 24 test classes. Following the setup of Vinyals et al. (2016), we structure the $N$ -shot, $J$ -way classification task as follows: The model observes $N$ instances of $J$ unseen classes, and is evaluated on its ability to classify $M$ new instances within the $J$ classes. ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 762,
1078
+ 825,
1079
+ 833
1080
+ ],
1081
+ "page_idx": 7
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "We use a neural network architecture standard to few-shot classification (e.g., Vinyals et al., 2016; Ravi & Larochelle, 2017), consisting of 4 layers with $3 \\times 3$ convolutions and 64 filters, followed by batch normalization (BN) (Ioffe & Szegedy, 2015), a ReLU nonlinearity, and $2 \\times 2$ max-pooling. For the scaling variable $\\beta$ and centering variable $\\gamma$ of BN (see Ioffe & Szegedy, 2015), we ignore the fast adaptation update as well as the Fisher factors for K-FAC. We use Adam (Kingma & Ba, 2014) as the meta-optimizer, and standard batch gradient descent with a fixed learning rate to update the model during fast adaptation. LLAMA requires the prior precision term $\\tau$ as well as an additional parameter $\\eta \\in \\bar { \\mathbb { R } } ^ { + }$ that weights the regularization term log det $\\hat { \\bf H }$ contributed by the Laplace approximation. We fix $\\tau = 0 . 0 0 1$ and selected $\\eta = { { 1 0 } ^ { - 6 } }$ via cross-validation; all other parameters are set to the values reported in Finn et al. (2017). ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 840,
1089
+ 825,
1090
+ 924
1091
+ ],
1092
+ "page_idx": 7
1093
+ },
1094
+ {
1095
+ "type": "table",
1096
+ "img_path": "images/629d27d3414eab00f80480073af0e804e5a620251cc0684d60afbbb4bda08a4d.jpg",
1097
+ "table_caption": [
1098
+ "Table 1: One-shot classification performance on the miniImageNet test set, with comparison methods ordered by one-shot performance. All results are averaged over 600 test episodes, and we report ${ \\hat { 9 } } 5 \\%$ confidence intervals. ∗Results reported by Ravi & Larochelle (2017). $^ { * * } \\mathrm { W e }$ report test accuracy for a comparable architecture .1∗∗∗We report test accuracy for models matching train and test “shot” and “way”. "
1099
+ ],
1100
+ "table_footnote": [],
1101
+ "table_body": "<table><tr><td>Model</td><td colspan=\"2\">5-way acc. (%) 1-shot</td></tr><tr><td>Fine-tuning*</td><td>28.86</td><td>士</td><td>0.54</td></tr><tr><td>Nearest Neighbor*</td><td>41.08</td><td>士</td><td>0.70</td></tr><tr><td>Matching Networks FCE (Vinyals et al., 2016)*</td><td>43.56</td><td>士</td><td>0.84</td></tr><tr><td>Meta-LearnerLSTM (Ravi &amp; Larochelle,2017)*</td><td>43.44</td><td>士</td><td>0.77</td></tr><tr><td>SNAIL (Mishra et al., 2018)**</td><td>45.1</td><td>士</td><td></td></tr><tr><td>Prototypical Networks (Snellet al.,2017)***</td><td>46.61</td><td>士</td><td>0.78</td></tr><tr><td>mAP-DLM(Triantafillou et al., 2017)</td><td>49.82</td><td>士</td><td>0.78</td></tr><tr><td>MAML (Finn et al., 2017)</td><td>48.70</td><td>士</td><td>1.84</td></tr><tr><td>LLAMA (Ours)</td><td>49.40</td><td>士</td><td>1.83</td></tr></table>",
1102
+ "bbox": [
1103
+ 269,
1104
+ 101,
1105
+ 727,
1106
+ 265
1107
+ ],
1108
+ "page_idx": 8
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "",
1113
+ "bbox": [
1114
+ 173,
1115
+ 342,
1116
+ 825,
1117
+ 398
1118
+ ],
1119
+ "page_idx": 8
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "We find that LLAMA is practical enough to be applied to this larger-scale problem. In particular, our TensorFlow implementation of LLAMA trains for 60,000 iterations on one TITAN $\\mathrm { X p }$ GPU in 9 hours, compared to 5 hours to train MAML. As shown in Table 1, LLAMA achieves comparable performance to the state-of-the-art meta-learning method by Triantafillou et al. (2017). While the gap between MAML and LLAMA is small, the improvement from the Laplace approximation suggests that a more accurate approximation to the marginalization over task-specific parameters will lead to further improvements. ",
1124
+ "bbox": [
1125
+ 173,
1126
+ 405,
1127
+ 825,
1128
+ 502
1129
+ ],
1130
+ "page_idx": 8
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "6 RELATED WORK ",
1135
+ "text_level": 1,
1136
+ "bbox": [
1137
+ 176,
1138
+ 526,
1139
+ 344,
1140
+ 542
1141
+ ],
1142
+ "page_idx": 8
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Meta-learning and few-shot learning have a long history in hierarchical Bayesian modeling (e.g., Tenenbaum, 1999; Fei-Fei et al., 2003; Lawrence & Platt, 2004; Yu et al., 2005; Gao et al., 2008; Daumé III, 2009; Wan et al., 2012). A related subfield is that of transfer learning, which has used hierarchical Bayes extensively (e.g., Raina et al., 2006). A variety of inference methods have been used in Bayesian models, including exact inference (Lake et al., 2011), sampling methods (Salakhutdinov et al., 2012), and variational methods (Edwards & Storkey, 2017). While some prior works on hierarchical Bayesian models have proposed to handle basic image recognition tasks, the complexity of these tasks does not yet approach the kinds of complex image recognition problems that can be solved by discriminatively trained deep networks, such as the miniImageNet experiment in our evaluation (Mansinghka et al., 2013). ",
1147
+ "bbox": [
1148
+ 174,
1149
+ 560,
1150
+ 825,
1151
+ 700
1152
+ ],
1153
+ "page_idx": 8
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Recently, the Omniglot benchmark Lake et al. (2016) has rekindled interest in the problem of learning from few examples. Modern methods accomplish few-shot learning either through the design of network architectures that ingest the few-shot training samples directly (e.g., Koch, 2015; Vinyals et al., 2016; Snell et al., 2017; Hariharan & Girshick, 2017; Triantafillou et al., 2017), or formulating the problem as one of learning to learn, or meta-learning (e.g., Schmidhuber, 1987; Bengio et al., 1991; Schmidhuber, 1992; Bengio et al., 1992). A variety of inference methods have been used in Bayesian models, including exact inference (Lake et al., 2011), sampling methods (Salakhutdinov et al., 2013), and variational methods (Edwards & Storkey, 2017). ",
1158
+ "bbox": [
1159
+ 174,
1160
+ 707,
1161
+ 825,
1162
+ 818
1163
+ ],
1164
+ "page_idx": 8
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Our work bridges the gap between gradient-based meta-learning methods and hierarchical Bayesian modeling. Our contribution is not to formulate the meta-learning problem as a hierarchical Bayesian model, but instead to formulate a gradient-based meta-learner as hierarchical Bayesian inference, thus providing a way to efficiently perform posterior inference in a model-agnostic manner. ",
1169
+ "bbox": [
1170
+ 174,
1171
+ 825,
1172
+ 823,
1173
+ 853
1174
+ ],
1175
+ "page_idx": 8
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "",
1180
+ "bbox": [
1181
+ 171,
1182
+ 103,
1183
+ 825,
1184
+ 132
1185
+ ],
1186
+ "page_idx": 9
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "7 CONCLUSION ",
1191
+ "text_level": 1,
1192
+ "bbox": [
1193
+ 176,
1194
+ 151,
1195
+ 318,
1196
+ 169
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "We have shown that model-agnostic meta-learning (MAML) estimates the parameters of a prior in a hierarchical Bayesian model. By casting gradient-based meta-learning within a Bayesian framework, our analysis opens the door to novel improvements inspired by probabilistic machinery. ",
1203
+ "bbox": [
1204
+ 174,
1205
+ 183,
1206
+ 825,
1207
+ 226
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "As a step in this direction, we propose an extension to MAML that employs a Laplace approximation to the posterior distribution over task-specific parameters. This technique provides a more accurate estimate of the integral that, in the original MAML algorithm, is approximated via a point estimate. We show how to estimate the quantity required by the Laplace approximation using Kroneckerfactored approximate curvature (K-FAC), a method recently proposed to approximate the quadratic curvature of a neural network objective for the purpose of a second-order gradient descent technique. ",
1214
+ "bbox": [
1215
+ 174,
1216
+ 232,
1217
+ 825,
1218
+ 316
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Our contribution illuminates the road to exploring further connections between gradient-based metalearning methods and hierarchical Bayesian modeling. For instance, in this work we assume that the predictive distribution over new data-points is narrow and well-approximated by a point estimate. We may instead employ methods that make use of the variance of the distribution over task-specific parameters in order to model the predictive density over examples from a novel task. ",
1225
+ "bbox": [
1226
+ 174,
1227
+ 323,
1228
+ 825,
1229
+ 393
1230
+ ],
1231
+ "page_idx": 9
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Furthermore, it is known that the Laplace approximation is inaccurate in cases where the integral is highly skewed, or is not unimodal and thus is not amenable to approximation by a single Gaussian mode. This could be solved by using a finite mixture of Gaussians, which can approximate many density functions arbitrarily well (Sorenson & Alspach, 1971; Alspach & Sorenson, 1972). The exploration of additional improvements such as this is an exciting line of future work. ",
1236
+ "bbox": [
1237
+ 174,
1238
+ 400,
1239
+ 825,
1240
+ 469
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "REFERENCES ",
1247
+ "text_level": 1,
1248
+ "bbox": [
1249
+ 174,
1250
+ 103,
1251
+ 287,
1252
+ 117
1253
+ ],
1254
+ "page_idx": 10
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Daniel Alspach and Harold Sorenson. Nonlinear Bayesian estimation using Gaussian sum approximations. IEEE Transactions on Automatic Control, 17(4):439–448, 1972. ",
1259
+ "bbox": [
1260
+ 176,
1261
+ 125,
1262
+ 820,
1263
+ 151
1264
+ ],
1265
+ "page_idx": 10
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Shun-Ichi Amari. Natural gradient works efficiently in learning. Neural computation, 10(2):251–276, 1998. ",
1270
+ "bbox": [
1271
+ 173,
1272
+ 160,
1273
+ 810,
1274
+ 175
1275
+ ],
1276
+ "page_idx": 10
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. In Advances in Neural Information Processing Systems (NIPS) 29, pp. 3981–3989, 2016. ",
1281
+ "bbox": [
1282
+ 174,
1283
+ 184,
1284
+ 820,
1285
+ 223
1286
+ ],
1287
+ "page_idx": 10
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Samy Bengio, Yoshua Bengio, Jocelyn Cloutier, and Jan Gecsei. On the optimization of a synaptic learning rule. In Proceedings of the Conference on Optimality in Artificial and Biological Neural Networks, pp. 6–8, 1992. ",
1292
+ "bbox": [
1293
+ 174,
1294
+ 233,
1295
+ 823,
1296
+ 261
1297
+ ],
1298
+ "page_idx": 10
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Yoshua Bengio, Samy Bengio, and Jocelyn Cloutier. Learning a synaptic learning rule. In Proceedings of the International Joint Conference on Neural Networks (IJCNN), volume 2, 1991. ",
1303
+ "bbox": [
1304
+ 174,
1305
+ 268,
1306
+ 823,
1307
+ 296
1308
+ ],
1309
+ "page_idx": 10
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "J.M. Bernardo and A.F.M. Smith. Bayesian Theory. Wiley Series in Probability and Statistics. John Wiley & Sons Canada, Limited, 2006. ",
1314
+ "bbox": [
1315
+ 174,
1316
+ 305,
1317
+ 823,
1318
+ 332
1319
+ ],
1320
+ "page_idx": 10
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Christopher M Bishop. Regularization and complexity control in feed-forward networks. In Proceedings of the International Conference on Artificial Neural Networks (ICANN), pp. 141–148, 1995. ",
1325
+ "bbox": [
1326
+ 173,
1327
+ 342,
1328
+ 823,
1329
+ 369
1330
+ ],
1331
+ "page_idx": 10
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Léon Bottou and Vladimir Vapnik. Local learning algorithms. Neural computation, 4(6):888–900, 1992. ",
1336
+ "bbox": [
1337
+ 174,
1338
+ 377,
1339
+ 792,
1340
+ 392
1341
+ ],
1342
+ "page_idx": 10
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Rich Caruana. Multitask learning. In Learning to learn, pp. 95–133. Springer, 1998. ",
1347
+ "bbox": [
1348
+ 174,
1349
+ 401,
1350
+ 674,
1351
+ 416
1352
+ ],
1353
+ "page_idx": 10
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "Hal Daumé III. Bayesian multitask learning with latent hierarchies. In Proceedings of the 25th Conference on Uncertainty in Artificial Intelligence (UAI), pp. 135–142, 2009. ",
1358
+ "bbox": [
1359
+ 174,
1360
+ 425,
1361
+ 825,
1362
+ 452
1363
+ ],
1364
+ "page_idx": 10
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "David Duvenaud, Dougal Maclaurin, and Ryan Adams. Early stopping as nonparametric variational inference. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics (AISTATS), pp. 1070–1077, 2016. ",
1369
+ "bbox": [
1370
+ 173,
1371
+ 460,
1372
+ 826,
1373
+ 501
1374
+ ],
1375
+ "page_idx": 10
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Harrison Edwards and Amos Storkey. Towards a neural statistician. In Proceedings of the 5th International Conference on Learning Representations (ICLR), 2017. ",
1380
+ "bbox": [
1381
+ 174,
1382
+ 510,
1383
+ 823,
1384
+ 537
1385
+ ],
1386
+ "page_idx": 10
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Li Fei-Fei et al. A Bayesian approach to unsupervised one-shot learning of object categories. In Proceedings of the 9th Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1134–1141. IEEE, 2003. ",
1391
+ "bbox": [
1392
+ 173,
1393
+ 546,
1394
+ 825,
1395
+ 574
1396
+ ],
1397
+ "page_idx": 10
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017. ",
1402
+ "bbox": [
1403
+ 173,
1404
+ 582,
1405
+ 823,
1406
+ 609
1407
+ ],
1408
+ "page_idx": 10
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "Ronald Aylmer Fisher. Theory of statistical estimation. In Mathematical Proceedings of the Cambridge Philosophical Society, volume 22, pp. 700–725. Cambridge University Press, 1925. ",
1413
+ "bbox": [
1414
+ 173,
1415
+ 618,
1416
+ 823,
1417
+ 646
1418
+ ],
1419
+ "page_idx": 10
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "Jing Gao, Wei Fan, Jing Jiang, and Jiawei Han. Knowledge transfer via multiple model local structure mapping. In Proceedings of the 14th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), pp. 283–291. ACM, 2008. ",
1424
+ "bbox": [
1425
+ 173,
1426
+ 655,
1427
+ 825,
1428
+ 694
1429
+ ],
1430
+ "page_idx": 10
1431
+ },
1432
+ {
1433
+ "type": "text",
1434
+ "text": "Andrew Gelman, John B Carlin, Hal S Stern, David B Dunson, Aki Vehtari, and Donald B Rubin. Bayesian data analysis, volume 2. Chapman and Hall, 2014. ",
1435
+ "bbox": [
1436
+ 171,
1437
+ 703,
1438
+ 823,
1439
+ 731
1440
+ ],
1441
+ "page_idx": 10
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "Gene H. Golub and Charles F. Van Loan. Matrix computations. The Johns Hopkins University Press, 1983. ",
1446
+ "bbox": [
1447
+ 174,
1448
+ 739,
1449
+ 808,
1450
+ 755
1451
+ ],
1452
+ "page_idx": 10
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "Bharath Hariharan and Ross Girshick. Low-shot visual object recognition. In Proceedings of the International Conference on Computer Vision (ICCV), 2017. ",
1457
+ "bbox": [
1458
+ 173,
1459
+ 763,
1460
+ 825,
1461
+ 790
1462
+ ],
1463
+ "page_idx": 10
1464
+ },
1465
+ {
1466
+ "type": "text",
1467
+ "text": "Tom Heskes. Solving a huge number of similar tasks: A combination of multi-task learning and a hierarchical Bayesian approach. In Proceedings of the 15th International Conference on Machine Learning (ICML), pp. 233–241, 1998. ",
1468
+ "bbox": [
1469
+ 173,
1470
+ 800,
1471
+ 826,
1472
+ 838
1473
+ ],
1474
+ "page_idx": 10
1475
+ },
1476
+ {
1477
+ "type": "text",
1478
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning (ICML), pp. 448–456, 2015. ",
1479
+ "bbox": [
1480
+ 171,
1481
+ 848,
1482
+ 823,
1483
+ 888
1484
+ ],
1485
+ "page_idx": 10
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), 2014. ",
1490
+ "bbox": [
1491
+ 171,
1492
+ 897,
1493
+ 825,
1494
+ 924
1495
+ ],
1496
+ "page_idx": 10
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "Gregory Koch. Siamese neural networks for one-shot image recognition. Master’s thesis, University of Toronto, 2015. ",
1501
+ "bbox": [
1502
+ 173,
1503
+ 103,
1504
+ 825,
1505
+ 131
1506
+ ],
1507
+ "page_idx": 11
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "Brenden M Lake, Ruslan Salakhutdinov, Jason Gross, and Joshua B Tenenbaum. One shot learning of simple visual concepts. In Proceedings of the 33rd Annual Meeting of the Cognitive Science Society (CogSci), 2011. ",
1512
+ "bbox": [
1513
+ 174,
1514
+ 138,
1515
+ 825,
1516
+ 166
1517
+ ],
1518
+ "page_idx": 11
1519
+ },
1520
+ {
1521
+ "type": "text",
1522
+ "text": "Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and Brain Sciences, pp. 1–101, 2016. ",
1523
+ "bbox": [
1524
+ 176,
1525
+ 174,
1526
+ 823,
1527
+ 200
1528
+ ],
1529
+ "page_idx": 11
1530
+ },
1531
+ {
1532
+ "type": "text",
1533
+ "text": "Pierre Simon Laplace. Memoir on the probability of the causes of events. Statistical Science, 1(3):364–378, 1986. ",
1534
+ "bbox": [
1535
+ 176,
1536
+ 208,
1537
+ 823,
1538
+ 236
1539
+ ],
1540
+ "page_idx": 11
1541
+ },
1542
+ {
1543
+ "type": "text",
1544
+ "text": "Neil D Lawrence and John C Platt. Learning to learn with the informative vector machine. In Proceedings of the 21st International Conference on Machine Learning (ICML), pp. 65, 2004. ",
1545
+ "bbox": [
1546
+ 174,
1547
+ 243,
1548
+ 825,
1549
+ 271
1550
+ ],
1551
+ "page_idx": 11
1552
+ },
1553
+ {
1554
+ "type": "text",
1555
+ "text": "Ke Li and Jitendra Malik. Learning to optimize. In Proceedings of the 5th International Conference on Learning Representations (ICLR), 2017a. ",
1556
+ "bbox": [
1557
+ 174,
1558
+ 279,
1559
+ 823,
1560
+ 306
1561
+ ],
1562
+ "page_idx": 11
1563
+ },
1564
+ {
1565
+ "type": "text",
1566
+ "text": "Ke Li and Jitendra Malik. Learning to optimize neural nets. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017b. ",
1567
+ "bbox": [
1568
+ 173,
1569
+ 314,
1570
+ 825,
1571
+ 340
1572
+ ],
1573
+ "page_idx": 11
1574
+ },
1575
+ {
1576
+ "type": "text",
1577
+ "text": "David MacKay. A practical Bayesian framework for backpropagation networks. Neural computation, 4(3): 448–472, 1992a. ",
1578
+ "bbox": [
1579
+ 173,
1580
+ 348,
1581
+ 823,
1582
+ 376
1583
+ ],
1584
+ "page_idx": 11
1585
+ },
1586
+ {
1587
+ "type": "text",
1588
+ "text": "David JC MacKay. The evidence framework applied to classification networks. Neural computation, 4(5): 720–736, 1992b. ",
1589
+ "bbox": [
1590
+ 173,
1591
+ 382,
1592
+ 823,
1593
+ 410
1594
+ ],
1595
+ "page_idx": 11
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "text": "Vikash K Mansinghka, Tejas D Kulkarni, Yura N Perov, and Josh Tenenbaum. Approximate bayesian image interpretation using generative probabilistic graphics programs. In Advances in Neural Information Processing Systems, pp. 1520–1528, 2013. ",
1600
+ "bbox": [
1601
+ 173,
1602
+ 417,
1603
+ 823,
1604
+ 458
1605
+ ],
1606
+ "page_idx": 11
1607
+ },
1608
+ {
1609
+ "type": "text",
1610
+ "text": "James Martens. New insights and perspectives on the natural gradient method. arXiv preprint arXiv:1412.1193, 2014. ",
1611
+ "bbox": [
1612
+ 171,
1613
+ 465,
1614
+ 825,
1615
+ 493
1616
+ ],
1617
+ "page_idx": 11
1618
+ },
1619
+ {
1620
+ "type": "text",
1621
+ "text": "James Martens. Second-order optimization for neural networks. PhD thesis, University of Toronto, 2016. ",
1622
+ "bbox": [
1623
+ 173,
1624
+ 500,
1625
+ 795,
1626
+ 515
1627
+ ],
1628
+ "page_idx": 11
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "James Martens and Roger Grosse. Optimizing neural networks with Kronecker-factored approximate curvature. In Proceedings of the 32nd International Conference on Machine Learning (ICML), pp. 2408–2417, 2015. ",
1633
+ "bbox": [
1634
+ 173,
1635
+ 522,
1636
+ 823,
1637
+ 550
1638
+ ],
1639
+ "page_idx": 11
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "text": "Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. Meta-learning with temporal convolutions. arXiv preprint arXiv:1707.03141, 2017. ",
1644
+ "bbox": [
1645
+ 171,
1646
+ 558,
1647
+ 823,
1648
+ 585
1649
+ ],
1650
+ "page_idx": 11
1651
+ },
1652
+ {
1653
+ "type": "text",
1654
+ "text": "Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. A simple neural attentive meta-learner. In Proceedings of the 6th International Conference on Learning Representations (ICLR), 2018. ",
1655
+ "bbox": [
1656
+ 173,
1657
+ 592,
1658
+ 823,
1659
+ 621
1660
+ ],
1661
+ "page_idx": 11
1662
+ },
1663
+ {
1664
+ "type": "text",
1665
+ "text": "Tsendsuren Munkhdalai and Hong Yu. Meta networks. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017. ",
1666
+ "bbox": [
1667
+ 173,
1668
+ 627,
1669
+ 823,
1670
+ 655
1671
+ ],
1672
+ "page_idx": 11
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "text": "Devang K Naik and RJ Mammone. Meta-neural networks that learn by learning. In Proceedings of the International Joint Conference on Neural Networks (IJCNN), pp. 437–442, 1992. ",
1677
+ "bbox": [
1678
+ 174,
1679
+ 662,
1680
+ 823,
1681
+ 690
1682
+ ],
1683
+ "page_idx": 11
1684
+ },
1685
+ {
1686
+ "type": "text",
1687
+ "text": "Razvan Pascanu and Yoshua Bengio. Revisiting natural gradient for deep networks. In Proceedings of the 4th International Conference on Learning Representations (ICLR), 2014. ",
1688
+ "bbox": [
1689
+ 173,
1690
+ 696,
1691
+ 821,
1692
+ 724
1693
+ ],
1694
+ "page_idx": 11
1695
+ },
1696
+ {
1697
+ "type": "text",
1698
+ "text": "Rajat Raina, Andrew $\\mathrm { ~ Y ~ N ~ g ~ } _ { }$ , and Daphne Koller. Constructing informative priors using transfer learning. In Proceedings of the $2 3 r d$ International Conference on Machine Learning (ICML), pp. 713–720, 2006. ",
1699
+ "bbox": [
1700
+ 174,
1701
+ 732,
1702
+ 823,
1703
+ 760
1704
+ ],
1705
+ "page_idx": 11
1706
+ },
1707
+ {
1708
+ "type": "text",
1709
+ "text": "Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In Proceedings of the 5th International Conference on Learning Representations (ICLR), 2017. ",
1710
+ "bbox": [
1711
+ 173,
1712
+ 767,
1713
+ 823,
1714
+ 795
1715
+ ],
1716
+ "page_idx": 11
1717
+ },
1718
+ {
1719
+ "type": "text",
1720
+ "text": "Ruslan Salakhutdinov, Joshua Tenenbaum, and Antonio Torralba. One-shot learning with a hierarchical nonparametric bayesian model. In Proceedings of ICML Workshop on Unsupervised and Transfer Learning, pp. 195–206, 2012. ",
1721
+ "bbox": [
1722
+ 173,
1723
+ 801,
1724
+ 823,
1725
+ 842
1726
+ ],
1727
+ "page_idx": 11
1728
+ },
1729
+ {
1730
+ "type": "text",
1731
+ "text": "Ruslan Salakhutdinov, Joshua B Tenenbaum, and Antonio Torralba. Learning with hierarchical-deep models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8):1958–1971, 2013. ",
1732
+ "bbox": [
1733
+ 171,
1734
+ 849,
1735
+ 823,
1736
+ 877
1737
+ ],
1738
+ "page_idx": 11
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "text": "Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Meta-learning with memory-augmented neural networks. In Proceedings of the 33rd International Conference on Machine Learning (ICML), pp. 1842–1850, 2016. ",
1743
+ "bbox": [
1744
+ 176,
1745
+ 885,
1746
+ 825,
1747
+ 924
1748
+ ],
1749
+ "page_idx": 11
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "Reginaldo J. Santos. Equivalence of regularization and truncated iteration for general ill-posed problems. Linear Algebra and its Applications, 236(15):25–33, 1996. \nJürgen Schmidhuber. Evolutionary principles in self-referential learning. PhD thesis, Institut für Informatik, Technische Universität München, 1987. \nJürgen Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent networks. Neural Computation, 4(1):131–139, 1992. \nJonas Sjöberg and Lennart Ljung. Overtraining, regularization and searching for a minimum, with application to neural networks. International Journal of Control, 62(6):1391–1407, 1995. \nJake Snell, Kevin Swersky, and Richard S Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems (NIPS) 30, 2017. \nHarold W Sorenson and Daniel L Alspach. Recursive Bayesian estimation using Gaussian sums. Automatica, 7 (4):465–479, 1971. \nFlood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip H. S. Torr, and Timothy M. Hospedales. Learning to compare: Relation network for few-shot learning. CoRR, abs/1711.06025, 2017. \nJoshua B Tenenbaum. A Bayesian framework for concept learning. PhD thesis, Massachusetts Institute of Technology, 1999. \nSebastian Thrun and Lorien Pratt. Learning to learn. Kluwer Academic Publishers, 1998. \nEleni Triantafillou, Richard Zemel, and Raquel Urtasun. Few-shot learning through an information retrieval lens. In Advances in Neural Information Processing Systems (NIPS) 30, 2017. \nCharles F Van Loan. The ubiquitous Kronecker product. Journal of computational and applied mathematics, 123(1):85–100, 2000. \nOriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems (NIPS) 29, pp. 3630–3638, 2016. \nJing Wan, Zhilin Zhang, Jingwen Yan, Taiyong Li, Bhaskar D Rao, Shiaofen Fang, Sungeun Kim, Shannon L Risacher, Andrew J Saykin, and Li Shen. Sparse Bayesian multi-task learning for predicting cognitive outcomes from neuroimaging measures in Alzheimer’s disease. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 940–947. IEEE, 2012. \nOlga Wichrowska, Niru Maheswaranathan, Matthew W Hoffman, Sergio Gomez Colmenarejo, Misha Denil, Nando de Freitas, and Jascha Sohl-Dickstein. Learned optimizers that scale and generalize. In Proceedings of the 34th International Conference on Machine Learning (ICML), 2017. \nKai Yu, Volker Tresp, and Anton Schwaighofer. Learning Gaussian processes from multiple tasks. In Proceedings of the 22nd International Conference on Machine Learning (ICML), pp. 1012–1019, 2005. ",
1754
+ "bbox": [
1755
+ 171,
1756
+ 94,
1757
+ 828,
1758
+ 660
1759
+ ],
1760
+ "page_idx": 12
1761
+ }
1762
+ ]
parse/train/BJ_UL-k0b/BJ_UL-k0b_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJ_UL-k0b/BJ_UL-k0b_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJxh2j0qYm/BJxh2j0qYm.md ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dynamic Channel Pruning: Feature Boosting and Suppression
2
+
3
+ Xitong Gao $\bot$ ∗, Yiren Zhao $^ 2$ ∗, Lukasz Dudziak $^ 3$ , Robert Mullins4, Cheng-zhong $\mathbf { X u } ^ { \mathrm { 5 } }$
4
+
5
+ 1 Shenzhen Institutes of Advanced Technology, Shenzhen, China
6
+ 2,3,4 University of Cambridge, Cambridge, UK
7
+ 5 University of Macau, Macau, China
8
+ 1 xt.gao@siat.ac.cn, 2 yaz21@cam.ac.uk
9
+
10
+ # Abstract
11
+
12
+ Making deep convolutional neural networks more accurate typically comes at the cost of increased computational and memory resources. In this paper, we reduce this cost by exploiting the fact that the importance of features computed by convolutional layers is highly input-dependent, and propose feature boosting and suppression (FBS), a new method to predictively amplify salient convolutional channels and skip unimportant ones at run-time. FBS introduces small auxiliary connections to existing convolutional layers. In contrast to channel pruning methods which permanently remove channels, it preserves the full network structures and accelerates convolution by dynamically skipping unimportant input and output channels. FBS-augmented networks are trained with conventional stochastic gradient descent, making it readily available for many state-of-the-art CNNs. We compare FBS to a range of existing channel pruning and dynamic execution schemes and demonstrate large improvements on ImageNet classification. Experiments show that FBS can respectively provide $5 \times$ and $2 \times$ savings in compute on VGG-16 and ResNet-18, both with less than $0 . 6 \%$ top-5 accuracy loss.
13
+
14
+ # 1 Introduction
15
+
16
+ State-of-the-art vision and image-based tasks such as image classification (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; He et al., 2016), object detection (Ren et al., 2017; Huang et al., 2017) and segmentation (Long et al., 2015) are all built upon deep convolutional neural networks (CNNs). While CNN architectures have evolved to become more efficient, the general trend has been to use larger models with greater memory utilization, bandwidth and compute requirements to achieve higher accuracy. The formidable amount of computational resources used by CNNs present a great challenge in the deployment of CNNs in both cost-sensitive cloud services and low-powered edge computing applications.
17
+
18
+ One common approach to reduce the memory, bandwidth and compute costs is to prune over-parameterized CNNs. If performed in a coarse-grain manner this approach is known as channel pruning (Ye et al., 2018; He et al., 2017; Liu et al., 2017; Wen et al., 2016). Channel pruning evaluates channel saliency measures and removes all input and output connections from unimportant channels— generating a smaller dense model. A saliency-based pruning method, however, has threefold disadvantages. Firstly, by removing channels, the capabilities of CNNs are permanently lost, and the resulting CNN may never regain its accuracy for difficult inputs for which the removed channels were responsible. Secondly, despite the fact that channel pruning may drastically shrink model size, without careful design, computational resources cannot be effectively reduced in a CNN without a detrimental impact on its accuracy. Finally, the saliency of a neuron is not static, which can be illustrated by the feature visualization in Figure 1. Here, a CNN is shown a set of input images, certain channel neurons in a convolutional output may get highly excited, whereas another set of images elicit little response from the same channels. This is in line with our understanding of CNNs that neurons in a convolutional layer specialize in recognizing distinct features, and the relative importance of a neuron depends heavily on the inputs.
19
+
20
+ The above shortcomings prompt the question: why should we prune by static importance, if the importance is highly input-dependent? Surely, a more promising alternative is to prune dynamically depending on the current input. A dynamic channel pruning strategy allows the network to learn to prioritize certain convolutional channels and ignore irrelevant ones. Instead of simply reducing model size at the cost of accuracy with pruning, we can accelerate convolution by selectively computing only a subset of channels predicted to be important at run-time, while considering the sparse input from the preceding convolution layer. In effect, the amount of cached activations and the number of read, write and arithmetic operations used by a well-designed dynamic model can be almost identical to an equivalently sparse statically pruned one. In addition to saving computational resources, a dynamic model preserves all neurons of the full model, which minimizes the impact on task accuracy.
21
+
22
+ In this paper, we propose feature boosting and suppression (FBS) to dynamically amplify and suppress output channels computed by the convolutional layer. Intuitively, we can imagine that the flow of information of each output channel can be amplified or restricted under the control of a “valve”. This allows salient information to flow freely while we stop all information from unimportant channels and skip their computation. Unlike pruning statically, the valves use features from the previous layer to predict the saliency of output channels. With conventional stochastic gradient descent (SGD) methods, the predictor can learn to adapt itself by observing the input and output features of the convolution operation.
23
+
24
+ FBS introduces tiny auxiliary connections to existing convolutional layers. The minimal overhead added to the existing model is thus negligible when compared to the potential speed up provided by the dynamic sparsity. Existing dynamic computation strategies in CNNs (Lin et al., 2017; Odena et al., 2017; Bolukbasi et al., 2017) produce on/off pruning decisions or execution path selections. Training them thus often resorts to reinforcement learning, which in practice is often computationally expensive. Even though FBS similarly use non-differentiable functions, contrary to these methods, the unified losses are still wellminimized with conventional SGD.
25
+
26
+ We apply FBS to a custom CIFAR-10 (Krizhevsky et al., 2014) classifier and popular CNN models such as VGG-16 (Simonyan & Zisserman, 2015) and ResNet-18 (He et al., 2016) trained on the ImageNet dataset (Deng et al., 2009). Empirical results show that under the same speed-ups, FBS can produce models with validation accuracies surpassing all other channel pruning and dynamic conditional execution methods examined in the paper.
27
+
28
+ ![](images/ec163895e99a91029cb698a9a91ed95b476b1369b23dfb25f76e0587a202b687.jpg)
29
+ Figure 1: When images from the ImageNet validation dataset are shown to a pre-trained ResNet-18 (He et al., 2016), the outputs from certain channel neurons may vary drastically. The top rows in (a) and (b) are found respectively to greatly excite neurons in channels 114 and 181 of layer block 3b/conv2, whereas the bottom images elicit little activation from the same channel neurons. The number below each image indicate the maximum values observed in the channel before adding the shortcut and activation. Finally, (c) shows the distribution of maximum activations observed in the first 20 channels.
30
+
31
+ # 2 Related Work
32
+
33
+ # 2.1 Structured Sparsity
34
+
35
+ Since LeCun et al. (1990) introduced optimal brain damage, the idea of creating more compact and efficient CNNs by removing connections or neurons has received significant attention. Early literature on pruning deep CNNs zero out individual weight parameters (Hassibi et al., 1994; Guo et al., 2016). This results in highly irregular sparse connections, which were notoriously difficult for GPUs to exploit. This has prompted custom accelerator solutions that exploit sparse weights (Parashar et al., 2017; Han et al., 2016). Although supporting both sparse and dense convolutions efficiently normally involves some compromises in terms of efficiency or performance.
36
+
37
+ Alternatively, recent work has thus increasingly focused on introducing structured sparsity (Wen et al., 2016; Ye et al., 2018; Alvarez & Salzmann, 2016; Zhou et al., 2016), which can be exploited by GPUs and allows custom accelerators to focus solely on efficient dense operations. Wen et al. (2016) added group Lasso on channel weights to the model’s training loss function. This has the effect of reducing the magnitude of channel weights to diminish during training, and remove connections from zeroed-out channels. To facilitate this process, Alvarez & Salzmann (2016) additionally used proximal gradient descent, while Li et al. (2017) and He et al. (2018a) proposed to prune channels by thresholds, i.e. they set unimportant channels to zero, and fine-tune the resulting CNN. The objective to induce sparsity in groups of weights may present difficulties for gradient-based methods, given the large number of weights that need to be optimized. A common approach to overcome this is to solve (He et al., 2017) or learn (Liu et al., 2017; Ye et al., 2018) channel saliencies to drive the sparsification of CNNs. He et al. (2017) solved an optimization problem which limits the number of active convolutional channels while minimizing the reconstruction error on the convolutional output. Liu et al. (2017) used Lasso regularization on channel saliencies to induce sparsity and prune channels with a global threshold. Ye et al. (2018) learned to sparsify CNNs with an iterative shrinkage/thresholding algorithm applied to the scaling factors in batch normalization. There are methods (Luo et al., 2017; Zhuang et al., 2018) that use greedy algorithms for channel selection. Huang et al. (2018) and He et al. (2018b) adopted reinforcement learning to train agents to produce channel pruning decisions. PerforatedCNNs, proposed by Figurnov et al. (2016), use predefined masks that are model-agnostic to skip the output pixels in convolutional layers.
38
+
39
+ # 2.2 Dynamic Execution
40
+
41
+ In a pruned model produced by structured sparsity methods, the capabilities of the pruned neurons and connections are permanently lost. Therefore, many propose to use dynamic networks as an alternative to structured sparsity. During inference, a dynamic network can use the input data to choose parts of the network to evaluate.
42
+
43
+ Convolutional layers are usually spatially sparse, i.e. their activation outputs may contain only small patches of salient regions. A number of recent publications exploit this for acceleration. Dong et al. (2017) introduced low-cost collaborative layers which induce spatial sparsity in cheap convolutions, so that the main expensive ones can use the same sparsity information. Figurnov et al. (2017) proposed spatially adaptive computation time for residual networks (He et al., 2016), which learns the number of residual blocks required to compute a certain spatial location. Almahairi et al. (2016) presented dynamic capacity networks, which use the gradient of a coarse output’s entropy to select salient locations in the input image for refinement. Ren et al. (2018) assumed the availability of $a$ priori spatial sparsity in the input image, and accelerated the convolutional layer by computing non-sparse regions.
44
+
45
+ There are dynamic networks that make binary decisions or multiple choices for the inference paths taken. BlockDrop, proposed by Wu et al. (2018), trains a policy network to skip blocks in residual networks. Liu & Deng (2018) proposed conditional branches in deep neural networks (DNNs), and used Q-learning to train the branching policies. Odena et al. (2017) designed a DNN with layers containing multiple modules, and decided which module to use with a recurrent neural network (RNN). Lin et al. (2017) learned an RNN to adaptively prune channels in convolutional layers. The on/off decisions commonly used in these networks cannot be represented by differentiable functions, hence the gradients are not well-defined. Consequently, the dynamic networks above train their policy functions by reinforcement learning. There exist, however, methods that workaround such limitations. Shazeer et al. (2017) introduced sparsely-gated mixture-of-experts and used a noisy ranking on the backpropagate-able gating networks to select the expensive experts to evaluate. Bolukbasi et al. (2017) trained differentiable policy functions to implement early exits in a DNN. Hua et al. (2018) learned binary policies that decide whether partial or all input channels are used for convolution, but approximate the gradients of the non-differentiable policy functions with continuous ones.
46
+
47
+ # 3 Feature Boosting and Suppression
48
+
49
+ We start with a high-level illustration (Figure 2) of how FBS accelerates a convolutional layer with batch normalization (BN). The auxiliary components (in red) predict the importance of each output channel based on the input features, and amplify the output features accordingly. Moreover, certain output channels are predicted to be entirely suppressed (or zero-valued as represented by $\varTheta$ ), such output sparsity information can advise the convolution operation to skip the computation of these channels, as indicated by the dashed arrow. It is notable that the expensive convolution can be doubly accelerated by skipping the inactive channels from both the input features and the predicted output channel saliencies. The rest of this section provides detailed explanation of the components in Figure 2.
50
+
51
+ ![](images/00841c99e6441664d8e5cf5e76ee9ffd57468d400db2d18166279b67b9b3218e.jpg)
52
+ Figure 2: A high level view of a convolutional layer with FBS. By way of illustration, we use the $l ^ { \mathrm { t h } }$ layer with 8-channel input and output features, where channels are colored to indicate different saliencies, and the white blocks $( \boxed { \mathcal { Q } } )$ represent all-zero channels.
53
+
54
+ # 3.1 Preliminaries
55
+
56
+ For simplicity, we consider a deep sequential batch-normalized (Ioffe & Szegedy, 2015) CNN with $L$ convolutional layers, i.e ${ \bf \therefore } \ { \bf x } _ { L } = F ( { \bf x } _ { 0 } ) = f _ { L } \left( \cdot \cdot \cdot f _ { 2 } ( f _ { 1 } ( { \bf x } _ { 0 } ) \right) \cdot \cdot \cdot { \bf \cdot } ) $ , where the $l ^ { \mathrm { t h } }$ layer $f _ { l } : \mathbb { R } ^ { C _ { l - 1 } \times H _ { l - 1 } \times W _ { l - 1 } } \to \mathbb { R } ^ { C _ { l } \times H _ { l } \times W _ { l } }$ computes the features $\mathbf { x } _ { l } \in \mathbb { R } ^ { C _ { l } \times H _ { l } \times W _ { l } }$ , which comprise of $C _ { l }$ channels of features with height $H _ { l }$ and width $W _ { l }$ . The $l ^ { \mathrm { t h } }$ layer is thus defined as:
57
+
58
+ $$
59
+ f _ { l } \left( \mathbf { x } _ { l - 1 } \right) = ( \gamma _ { l } \cdot \mathsf { n o r m } \left( \mathsf { c o n v } _ { l } \left( \mathbf { x } _ { l - 1 } , \pmb { \theta } _ { l } \right) \right) + \beta _ { l } ) _ { + } .
60
+ $$
61
+
62
+ Here, additions $( + )$ and multiplications $( \cdot )$ are element-wise, $( \mathbf { z } ) _ { + } = \operatorname* { m a x } \left( \mathbf { z } , 0 \right)$ denotes the ReLU activation, $\gamma _ { l } , \beta _ { l } \in \mathbb { R } ^ { C _ { l } }$ are trainable parameters, norm $\mathbf { \rho } ( \mathbf { z } )$ normalizes each channel of features $\mathbf { z }$ across the population of $\mathbf { z }$ , with $\mu _ { \mathbf { z } } , \pmb { \sigma } _ { \mathbf { z } } ^ { 2 } \in \mathbb { R } ^ { C _ { l } }$ respectively containing the population mean and variance of each channel, and a small $\epsilon$ prevents division by zero:
63
+
64
+ $$
65
+ \mathsf { n o r m } \left( \mathbf { z } \right) = \frac { \mathbf { z } - \mu _ { \mathbf { z } } } { \sqrt { \pmb { \sigma } _ { \mathbf { z } } ^ { 2 } + \epsilon } } .
66
+ $$
67
+
68
+ Additionally, convl $\left( \mathbf { x } _ { l - 1 } , \pmb { \theta } _ { l } \right)$ computes the convolution of input features using the weight tensor $\pmb { \theta } _ { l } \in \mathbb { R } ^ { C ^ { l } \times C ^ { l - 1 } \times k ^ { 2 } }$ , where $k$ −is the kernel size. Specifically, FBS concerns the
69
+
70
+ optimization of convl $\left( \mathbf { x } _ { l - 1 } , \pmb { \theta } _ { l } \right)$ functions, as a CNN spends the majority of its inference time in them, using $k ^ { 2 } C _ { l - 1 } C _ { l } H _ { l } W _ { l }$ multiply-accumulate operations (MACs) for the $l ^ { \mathrm { t h } }$ layer.
71
+
72
+ # 3.2 Designing a Dynamic Layer
73
+
74
+ Consider the following generalization of a layer with dynamic execution:
75
+
76
+ $$
77
+ \hat { f } \left( \mathbf { x } , \cdots \right) = f \left( \mathbf { x } , \pmb { \theta } , \cdots \right) \cdot \pi \left( \mathbf { x } , \pmb { \phi } , \cdots \right) ,
78
+ $$
79
+
80
+ where $f$ and $\pi$ respectively use weight parameters $\pmb { \theta }$ and $\phi$ and may have additional inputs, and compute tensors of the same output shape, denoted by $\mathbf { F }$ and $\mathbf { G }$ . Intuitively, the expensive $\mathbf { F } ^ { [ \mathbf { i } ] }$ can always be skipped for any index i whenever the cost-effective $\mathbf { G } ^ { [ \mathbf { i } ] }$ evaluates to $\mathbf { 0 }$ . Here, the superscript [i] is used to index the $\mathbf { i } ^ { \mathrm { t h } }$ slice of the tensor. For example, if we have features $\mathbf { F } \in \mathbb { R } ^ { C \times H \times W }$ containing $C$ channels of $H$ -by- $W$ features, $\mathbf { F } ^ { \left\lfloor c \right\rfloor } \in \mathbb { R } ^ { H \times W }$ retrieves the $c ^ { \mathrm { t h } }$ feature image. We can further sparsify and accelerate the layer by adding, for instance, a Lasso on $\pi$ to the total loss, where $\mathbb { E } _ { \mathbf { x } } \left[ \mathbf { z } \right]$ is the expectation of $\mathbf { z }$ over $\mathbf { x }$ :
81
+
82
+ $$
83
+ \mathcal { R } \left( \mathbf { x } \right) = \mathbb { E } _ { \mathbf { x } } \left[ \left. \pi \left( \mathbf { x } , \phi , \cdot \cdot \cdot \right) \right. _ { 1 } \right] ,
84
+ $$
85
+
86
+ Despite the simplicity of this formulation, it is however very tricky to design $\hat { f }$ properly. Under the right conditions, we can arbitrarily minimize the Lasso while maintaining the same output from the layer by scaling parameters. For example, in low-cost collaborative layers (Dong et al., 2017), $f$ and $\pi$ are simply convolutions (with or without ReLU activation) that respectively have weights $\pmb { \theta }$ and $\phi$ . Since $f$ and $\pi$ are homogeneous functions, one can always halve $\phi$ and double $\pmb { \theta }$ to decrease (4) while the network output remains the same. In other words, the optimal network must have $\| \phi \| _ { \infty } 0$ , which is infeasible in finiteprecision arithmetic. For the above reasons, Dong et al. (2017) observed that the additional loss in (4) always degrades the CNN’s task performance. Ye et al. (2018) pointed out that gradient-based training algorithms are highly inefficient in exploring such reparameterization patterns, and channel pruning methods may experience similar difficulties. Shazeer et al. (2017) avoided this limitation by finishing $\pi$ with a softmax normalization, but (4) can no longer be used as the softmax renders the $\ell ^ { 1 }$ -norm, which now evaluates to 1, useless. In addition, similar to sigmoid, softmax (without the cross entropy) is easily saturated, and thus may equally suffer from vanishing gradients. Many instead design $\pi$ to produce on/off decisions and train them with reinforcement learning as discussed in Section 2.
87
+
88
+ # 3.3 Feature Boosting and Suppression with Channel Saliencies
89
+
90
+ Instead of imposing sparsity on features or convolutional weight parameters (e.g. Wen et al. (2016); Alvarez & Salzmann (2016); Li et al. (2017); He et al. (2018a)), recent channel pruning methods (Liu et al., 2017; Ye et al., 2018) induce sparsity on the BN scaling factors $\gamma _ { l }$ . Inspired by them, FBS similarly generates a channel-wise importance measure. Yet contrary to them, instead of using the constant BN scaling factors $\gamma _ { l }$ , we predict channel importance and dynamically amplify or suppress channels with a parametric function $\pi ( \mathbf { x } _ { l - 1 } )$ dependent on the output from the previous layer $\mathbf x l - 1$ . Here, we propose to replace the layer definition $f _ { l } \left( \mathbf { x } _ { l - 1 } \right)$ for each of $l \in [ 1 , L ]$ with $\hat { f } _ { l } \left( \mathbf { x } _ { l - 1 } \right)$ which employs dynamic channel pruning:
91
+
92
+ $$
93
+ \hat { f } _ { l } \left( \mathbf { x } _ { l - 1 } \right) = \left( \pi _ { l } \left( \mathbf { x } _ { l - 1 } \right) \cdot \left( \mathsf { n o r m } \left( \mathsf { c o n v } _ { l } \left( \mathbf { x } _ { l - 1 } , \pmb { \theta } _ { l } \right) \right) + \beta _ { l } \right) \right) _ { + } ,
94
+ $$
95
+
96
+ where a low-overhead policy $\pi _ { l } \left( \mathbf { x } _ { l - 1 } \right)$ evaluates the pruning decisions for the computationally demanding conv $\left( \mathbf { x } _ { l - 1 } , \pmb { \theta } _ { l } \right)$ :
97
+
98
+ $$
99
+ \pi _ { l } \left( \mathbf { x } _ { l - 1 } \right) = \mathsf { w t a } _ { \lceil d C _ { l } \rceil } \left( g _ { l } \left( \mathbf { x } _ { l - 1 } \right) \right) .
100
+ $$
101
+
102
+ Here, ${ \mathsf { w t a } } _ { k } ( { \mathbf { z } } )$ is a $k$ -winners-take-all function, i.e. it returns a tensor identical to $\mathbf { z }$ , except that we zero out entries in $\mathbf { z }$ that are smaller than the $k$ largest entries in absolute magnitude. In other words, $\mathsf { w t a } _ { \lceil d C _ { l } \rceil } \bigl ( g _ { l } \bigl ( \mathbf { x } _ { l - 1 } \bigr ) \bigr )$ provides a pruning strategy that computes only $\lceil d C _ { l } \rceil$ most salient channels predicted by $g _ { l } ( \mathbf { x } _ { l - 1 } )$ , and suppresses the remaining channels with zeros. In Section 3.4, we provide a detailed explanation of how we design a cheap $g _ { l } ( \mathbf { x } _ { l - 1 } )$ that learns to predict channel saliencies.
103
+
104
+ It is notable that our strategy prunes $C _ { l } - \lceil d C _ { l } \rceil$ least salient output channels from $l ^ { \mathrm { t h } }$ layer, where the density $d \in ] 0 , 1 ]$ can be varied to sweep the trade-off relationship between performance and accuracy. Moreover, pruned channels contain all-zero values. This allows the subsequent $( l + 1 ) ^ { \mathrm { t h } }$ layer to trivially make use of input-side sparsity, since all-zero features can be safely skipped even for zero-padded layers. Because all convolutions can exploit both input- and output-side sparsity, the speed-up gained from pruning is quadratic with respect to the pruning ratio. For instance, dynamically pruning half of the channels in all layers gives rise to a dynamic CNN that uses approximately $\frac { 1 } { 4 }$ of the original MACs.
105
+
106
+ Theoretically, FBS does not introduce the reparameterization discussed in Section 3.2. By batch normalizing the convolution output, the convolution kernel $\theta _ { l }$ is invariant to scaling. Computationally, it is more efficient to train. Many alternative methods use nondifferentiable $\pi$ functions that produce on/off decisions. In general, DNNs with these policy functions are incompatible with SGD, and resort to reinforcement learning for training. In contrast, (6) allows end-to-end training, as wta is a piecewise differentiable and continuous function like ReLU. Srivastava et al. (2015) suggested that in general, a network is easier and faster to train for complex tasks and less prone to catastrophic forgetting, if it uses functions such as wta that promote local competition between many subnetworks.
107
+
108
+ # 3.4 Learning to Predict Channel Saliencies
109
+
110
+ This section explains the design of the channel saliency predictor $g _ { l } ( \mathbf { x } _ { l - 1 } )$ . To avoid significant computational cost in $g _ { l }$ , we subsample $\mathbf x _ { l - 1 }$ by reducing the spatial dimensions of each channel to a scalar using the following function $\mathsf { s s } : \mathbb { R } ^ { C \times H \times W } \to \mathbb { R } ^ { C }$ :
111
+
112
+ $$
113
+ \mathfrak { s s } \left( \mathbf { x } _ { l - 1 } \right) = \frac { 1 } { H W } \left[ \mathfrak { s } \left( \mathbf { x } _ { l - 1 } ^ { [ 1 ] } \right) \ \mathfrak { s } \left( \mathbf { x } _ { l - 1 } ^ { [ 2 ] } \right) \ \cdot \ \cdot \ \mathfrak { s } \left( \mathbf { x } _ { l - 1 } ^ { [ C ] } \right) \right] ,
114
+ $$
115
+
116
+ where $\mathsf { s } \left( \mathbf { x } _ { l - 1 } ^ { [ c ] } \right)$ reduces the $c ^ { \mathrm { t h } }$ channel of $\mathbf { z }$ to a scalar using, for instance, the $\ell ^ { 1 }$ -norm $\| \mathbf { x } _ { l - 1 } ^ { [ c ] } \| _ { 1 }$ , $\ell ^ { 2 }$ -norm, $\ell ^ { \infty }$ -norm, or the variance of $\mathbf { x } _ { l - 1 } ^ { [ c ] }$ . The results in Section 4 use the $\ell ^ { 1 }$ - − − norm by default, which is equivalent to global average pooling for the ReLU activated $\mathbf x l - 1$ . We then design $g _ { l } ( \mathbf { x } _ { l - 1 } )$ − to predict channel saliencies with a fully connected layer following −the subsampled activations $\mathsf { s s } \left( \mathbf { x } _ { l - 1 } \right)$ , where $\phi _ { l } \in \mathbb { R } ^ { C ^ { l } \times C ^ { l - 1 } }$ is the weight tensor of the layer:
117
+
118
+ $$
119
+ g _ { l } \left( \mathbf { x } _ { l - 1 } \right) = \left( \mathsf { s s } \left( \mathbf { x } _ { l - 1 } \right) \phi _ { l } + \pmb { \rho } _ { l } \right) _ { + } .
120
+ $$
121
+
122
+ We generally initialize $\rho _ { l }$ with $1$ and apply He et al. (2015)’s initialization to $\phi _ { l }$ . Similar to how Liu et al. (2017) and Ye et al. (2018) induced sparsity in the BN scaling factors, we regularize all layers with the Lasso on $g _ { l } ( \mathbf { x } _ { l - 1 } )$ : $\begin{array} { r l } { { \lambda \sum _ { l = 1 } ^ { L } \mathbb { E } _ { \mathbf { x } } [ g _ { l } ( \mathbf { x } _ { l - 1 } ) _ { 1 } ] } \quad } & { { } } \end{array}$ in the total loss, where $\lambda = 1 0 ^ { - 8 }$ in our experiments.
123
+
124
+ # 4 Experiments
125
+
126
+ We ran extensive experiments on CIFAR-10 (Krizhevsky et al., 2014) and the ImageNet ILSVRC2012 (Deng et al., 2009), two popular image classification datasets. We use MCifarNet (Zhao et al., 2018), a custom 8-layer CNN for CIFAR-10 (see Appendix A for its structure), using only 1.3 M parameters with 91.37% and 99.67% top-1 and top-5 accuracies respectively. M-CifarNet is much smaller than a VGG-16 on CIFAR-10 (Liu et al., 2017), which uses $2 0 \mathrm { M }$ parameters and only $2 . 2 9 \%$ more accurate. Because of its compactness, our CNN is more challenging to accelerate. By faithfully reimplementing Network Slimming (NS) (Liu et al., 2017), we closely compare FBS with NS under various speedup constraints. For ILSVRC2012, we augment two popular CNN variants, ResNet-18 (He et al., 2016) and VGG-16 (Simonyan & Zisserman, 2015), and provide detailed accuracy/MACs trade-off comparison against recent structured pruning and dynamic execution methods.
127
+
128
+ Our method begins by first replacing all convolutional layer computations with (5), and initializing the new convolutional kernels with previous parameters. Initially, we do not suppress any channel computations by using density $d = 1$ in (6) and fine-tune the resulting network. For fair comparison against NS, we then follow Liu et al. (2017) by iteratively decrementing the overall density $d$ of the network by 10% in each step, and thus gradually using fewer channels to sweep the accuracy/performance trade-off. The difference is that NS prunes channels by ranking globally, while FBS prunes around $1 - d$ of each layer.
129
+
130
+ # 4.1 CIFAR-10
131
+
132
+ ![](images/bf0b69083c0580f998d0a893355ef98d28a82ea3f6269d64ac066bec0980aa44.jpg)
133
+ Figure 3: Experimental results on M-CifarNet. We compare in (a) the accuracy/MACs trade-off between FBS, NS and FBS $^ +$ NS. The baseline is emphasized by the circle $\bigcirc$ . The heat map in (b) reveals the individual probability of skipping a channel for each channel ( $x$ -axis), when an image of a category ( $y$ -axis) is shown to the network with $d = 1$ .
134
+
135
+ By respectively applying NS and FBS to our CIFAR-10 classifier and incrementally increasing sparsity, we produce the trade-off relationships between number of operations (measured in MACs) and the classification accuracy as shown in Figure 3a. FBS clearly surpasses NS in its ability to retain the task accuracy under an increasingly stringent computational budget. Besides comparing FBS against NS, we are interested in combining both methods, which demonstrates the effectiveness of FBS if the model is already less redundant, i.e. it cannot be pruned further using NS without degrading the accuracy by more than $1 \%$ . The composite method (NS+FBS) is shown to successfully regain most of the lost accuracy due to NS, producing a trade-off curve closely matching FBS. It is notable that under the same $9 0 . 5 0 \%$ accuracy constraints, FBS, NS+FBS, and NS respectively achieve $3 . 9 3 \times$ , $3 . 2 2 \times$ , and $1 . 1 9 \times$ speed-up ratios. Conversely for a $2 \times$ speed-up target, they respectively produce models with accuracies not lower than $9 1 . 5 5 \%$ , $9 0 . 9 0 \%$ and $8 7 . 5 4 \%$ .
136
+
137
+ Figure 3b demonstrates that our FBS can effectively learn to amplify and suppress channels when dealing with different input images. The 8 heat maps respectively represent the channel skipping probabilities of the 8 convolutional layers. The brightness of the pixel at location $( x , y )$ denotes the probability of skipping the $x ^ { \mathrm { t h } }$ channel when looking at an image of the $y ^ { \mathrm { t h } }$ category. The heat maps verify our belief that the auxiliary network learned to predict which channels specialize to which features, as channels may have drastically distinct probabilites of being used for images of different categories. The model here is a M-CifarNet using FBS with $d = 0 . 5$ , which has a top-1 accuracy of $9 0 . 5 9 \%$ (top-5 $9 9 . 6 5 \%$ ). Moreover, channels in the heat maps are sorted so the channels that are on average least frequently evaluated are placed on the left, and channels shaded in stripes are never evaluated. The network in Figure 3b is not only approximately $4 \times$ faster than the original, by removing the unused channels, we also reduce the number of weights by 2.37 $\times$ . This reveals that FBS naturally subsumes channel pruning strategies such as NS, as we can simply prune away channels that are skipped regardless of the input. It is notable that even though we specified a universal density $d$ , FBS learned to adjust its dynamicity across all layers, and prune different ratios of channels from the convolutional layers.
138
+
139
+ # 4.2 ImageNet ILSVRC2012 Classification
140
+
141
+ By applying FBS and NS respectively to ResNet-18, we saw that the ILSVRC2012 validation accuracy of FBS consistently outperforms NS under different speed-up constraints (see Appendix B for the implementation details and trade-off curves). For instance, at $d = 0 . 7$ , it utilizes only 1.12 G MACs (1.62 $\times$ fewer) to achieve a top-1 error rate of $3 1 . 5 4 \%$ , while NS requires 1.51 G MACs (1.21 $\times$ fewer) for a similar error rate of $3 1 . 7 0 \%$ . When compared across recent dynamic execution methods examined in Table 1, FBS demonstrates simultaneously the highest possible speed-up and the lowest error rates. It is notable that the baseline accuracies for FBS refer to a network that has been augmented with the auxiliary layers featuring FBS but suppress no channels, i.e. $d = 1$ . We found that this method brings immediate accuracy improvements, an increase of $1 . 7 3 \%$ in top-1 and $0 . 4 6 \%$ in top-5 accuracies, to the baseline network, which is in line with our observation on M-CifarNet.
142
+
143
+ In Table 2, we compare different structured pruning and dynamic execution methods to FBS for VGG-16 (see Appendix B for the setup). At a speed-up of 3.01 $\times$ , FBS shows a minimal increase of $0 . 4 4 \%$ and $0 . 0 4 \%$ in top-1 and top-5 errors respectively. At $5 . 2 3 \times$ speed-up, it only degrades the top-1 error by $1 . 0 8 \%$ and the top-5 by $0 . 5 9 \%$ .
144
+
145
+ Not only does FBS use much fewer MACs, it also demonstrates significant reductions in bandwidth and memory requirements. In Table 3, we observe a large reduction in the number of memory accesses in single image inference as we simply do not access suppressed weights and activations. Because these memory operations are often costly DRAM accesses, minimizing them leads to power-savings. Table 3 further reveals that in diverse application scenarios such as low-end and cloud environments, the peak memory usages by the optimized models are much smaller than the originals, which in general improves cache utilization.
146
+
147
+ Table 1: Comparisons of error rates of the baseline and accelerated ResNet-18 models.
148
+
149
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Dynamic</td><td colspan="2">Baseline</td><td colspan="2">Accelerated</td><td rowspan="2">MAC saving</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td>Soft Filter Pruning (He et al., 2018a)</td><td></td><td>29.72</td><td>10.37</td><td>32.90</td><td>12.22</td><td>1.72×</td></tr><tr><td>Network Slimming (Liu et al. (20l7),our implementation)</td><td></td><td>31.02</td><td>11.32</td><td>32.79</td><td>12.61</td><td>1.39×</td></tr><tr><td>Discrimination-aware Channel Pruning (Zhuang et al., 2018)</td><td></td><td>30.36</td><td>11.02</td><td>32.65</td><td>12.40</td><td>1.89×</td></tr><tr><td>Low-cost Collaborative Layers (Dong et al., 2017)</td><td></td><td>30.02</td><td>10.76</td><td>33.67</td><td>13.06</td><td>1.53×</td></tr><tr><td>Channel Gating Neural Networks (Hua et al., 2018)</td><td>广</td><td>30.98</td><td>11.16</td><td>32.60</td><td>12.19</td><td>1.61×</td></tr><tr><td>Feature Boosting and Suppression (FBS)</td><td>√</td><td>29.29</td><td>10.32</td><td>31.83</td><td>11.78</td><td>1.98×</td></tr></table>
150
+
151
+ Table 2: Comparisons of top-5 error rate increases for VGG-16 on ILSVRC2012 validation set under 3 $\times$ , 4 $\times$ and $5 \times$ speed-up constraints. The baseline has a $1 0 . 1 \%$ top-5 error rate. Results from He et al. (2017) only show numbers with one digit after the decimal point.
152
+
153
+ <table><tr><td>Method</td><td>Dynamic</td><td>△ top-5 errors 3× 4×</td><td></td><td>(%) 5×</td></tr><tr><td>Filter Pruning (Li et al. (20l7),reproduced by He et al. (2017))</td><td rowspan="10"></td><td></td><td>8.6</td><td>14.6</td></tr><tr><td>Perforated CNNs (Figurnov et al., 2016)</td><td>3.7</td><td>5.5</td><td></td></tr><tr><td>Network Slimming (Liu et al. (20i7),our implementation)</td><td>1.37</td><td>3.26</td><td>5.18</td></tr><tr><td>Runtime Neural Pruning (Lin et al., 2017)</td><td>2.32</td><td>3.23</td><td>3.58</td></tr><tr><td>Channel Pruning (He et al., 2017)</td><td>0.0</td><td>1.0</td><td>1.7</td></tr><tr><td>AutoML for Model Compression (He et al., 2018b)</td><td></td><td></td><td>1.4</td></tr><tr><td>ThiNet-Conv (Luo et al., 2017)</td><td>0.37</td><td></td><td></td></tr><tr><td>Feature Boosting and Suppression (FBS)</td><td></td><td>0.04 0.52</td><td>0.59</td></tr></table>
154
+
155
+ <table><tr><td rowspan="2">Model</td><td colspan="2">Total Memory Accesses</td><td colspan="2">PeakMemory Usage</td></tr><tr><td>Weights</td><td>Activations</td><td>Edge (1 image)</td><td>Cloud (128 images)</td></tr><tr><td>VGG-16</td><td>56.2MB</td><td>86.5MB</td><td>24.6MB</td><td>3.09GB</td></tr><tr><td>VGG-16 3×</td><td>23.9 MB (2.35x)</td><td>40.8MB (2.12×)</td><td>9.97MB (2.47×)</td><td>1.24 GB (2.47×)</td></tr><tr><td>ResNet-18</td><td>44.6MB</td><td>17.8MB</td><td>9.19MB</td><td>0.47 GB</td></tr><tr><td>ResNet-18 2×</td><td>20.5MB (2.18×)</td><td>12.3 MB (1.45×)</td><td>4.68MB (1.96x)</td><td>0.31GB (1.49×)</td></tr></table>
156
+
157
+ Table 3: Comparisons of the memory accesses and peak memory usage of the ILSVRC2012 classifiers with FBS respectively under $3 \times$ and $2 \times$ inference speed-ups. The Weights and Activations columns respectively show the total amount of weight and activation accesses required by all convolutions for a single image inference. The Peak Memory Usage columns show the peak memory usages with different batch sizes.
158
+
159
+ # 5 Conclusion
160
+
161
+ In summary, we proposed feature boosting and suppression that helps CNNs to achieve significant reductions in the compute required while maintaining high accuracies. FBS fully preserves the capabilities of CNNs and predictively boosts important channels to help the accelerated models retain high accuracies. We demonstrated that FBS achieves around 2 $\times$ and $5 \times$ savings in computation respectively on ResNet-18 and VGG-16 within $0 . 6 \%$ loss of top-5 accuracy. Under the same performance constraints, the accuracy gained by FBS surpasses all recent structured pruning and dynamic execution methods examined in this paper. In addition, it can serve as an off-the-shelf technique for accelerating many popular CNN networks and the fine-tuning process is unified in the traditional SGD which requires no algorithmic changes in training. Finally, the implementation of FBS and the optimized networks are fully open source and released to the public1.
162
+
163
+ # Acknowledgements
164
+
165
+ This work is supported in part by the National Key R&D Program of China (No.
166
+ 2018YFB1004804), the National Natural Science Foundation of China (No. 61806192).
167
+ We thank EPSRC for providing Yiren Zhao his doctoral scholarship.
168
+
169
+ # References
170
+
171
+ Amjad Almahairi, Nicolas Ballas, Tim Cooijmans, Yin Zheng, Hugo Larochelle, and Aaron Courville. Dynamic capacity networks. In Proceedings of the 33rd International Conference on International Conference on Machine Learning (ICML), pp. 2549–2558, 2016.
172
+
173
+ Jose M Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems (NIPS), pp. 2270–2278. 2016.
174
+
175
+ Tolga Bolukbasi, Joseph Wang, Ofer Dekel, and Venkatesh Saligrama. Adaptive neural networks for efficient inference. In Proceedings of the 34th International Conference on Machine Learning (ICML), pp. 527–536, 2017.
176
+
177
+ J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, 2009.
178
+
179
+ Xuanyi Dong, Junshi Huang, Yi Yang, and Shuicheng Yan. More is less: A more complicated network with less inference complexity. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
180
+
181
+ Michael Figurnov, Maxwell D. Collins, Yukun Zhu, Li Zhang, Jonathan Huang, Dmitry Vetrov, and Ruslan Salakhutdinov. Spatially adaptive computation time for residual networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
182
+
183
+ Mikhail Figurnov, Aizhan Ibraimova, Dmitry P Vetrov, and Pushmeet Kohli. PerforatedCNNs: Acceleration through elimination of redundant convolutions. In Advances in Neural Information Processing Systems (NIPS), pp. 947–955, 2016.
184
+
185
+ Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient DNNs. In Advances in Neural Information Processing Systems (NIPS), 2016.
186
+
187
+ Song Han, Xingyu Liu, Huizi Mao, Jing Pu, Ardavan Pedram, Mark A Horowitz, and William J Dally. Eie: efficient inference engine on compressed deep neural network. In Computer Architecture (ISCA), 2016 ACM/IEEE 43rd Annual International Symposium on, pp. 243–254. IEEE, 2016.
188
+
189
+ Babak Hassibi, David G. Stork, and Gregory Wolff. Optimal brain surgeon: Extensions and performance comparisons. In J. D. Cowan, G. Tesauro, and J. Alspector (eds.), Advances in Neural Information Processing Systems (NIPS), pp. 263–270. 1994.
190
+
191
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), ICCV ’15, pp. 1026– 1034, Washington, DC, USA, 2015. IEEE Computer Society. ISBN 978-1-4673-8391-2. doi: 10.1109/ICCV.2015.123.
192
+
193
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
194
+
195
+ Yang He, Guoliang Kang, Xuanyi Dong, Yanwei Fu, and Yi Yang. Soft filter pruning for accelerating deep convolutional neural networks. In International Joint Conference on Artificial Intelligence (IJCAI), pp. 2234–2240, 2018a.
196
+
197
+ Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. IEEE International Conference on Computer Vision (ICCV), pp. 1398–1406, 2017.
198
+
199
+ Yihui He, Ji Lin, Zhijian Liu, Hanrui Wang, Li-Jia Li, and Song Han. AMC: AutoML for model compression and acceleration on mobile devices. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 784–800, 2018b.
200
+
201
+ Weizhe Hua, Christopher De Sa, Zhiru Zhang, and G. Edward Suh. Channel gating neural networks. CoRR, abs/1805.12549, 2018. URL http://arxiv.org/abs/1805.12549.
202
+
203
+ J. Huang, V. Rathod, C. Sun, M. Zhu, A. Korattikara, A. Fathi, I. Fischer, Z. Wojna, Y. Song, S. Guadarrama, and K. Murphy. Speed/accuracy trade-offs for modern convolutional object detectors. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3296–3297, July 2017.
204
+
205
+ Qiangui Huang, Kevin Zhou, Suya You, and Ulrich Neumann. Learning to prune filters in convolutional neural networks. In IEEE Winter Conference on Computer Vision. 2018.
206
+
207
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning (ICML), pp. 448–456, 2015.
208
+
209
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems (NIPS). 2012.
210
+
211
+ Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. The CIFAR-10 and CIFAR-100 datasets. http://www.cs.toronto.edu/ kriz/cifar.html, 2014.
212
+
213
+ Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In Advances in Neural Information Processing Systems (NIPS), pp. 598–605. 1990.
214
+
215
+ Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. 2017.
216
+
217
+ Ji Lin, Yongming Rao, Jiwen Lu, and Jie Zhou. Runtime neural pruning. In Advances in Neural Information Processing Systems (NIPS), pp. 2181–2191. 2017.
218
+
219
+ Lanlan Liu and Jia Deng. Dynamic deep neural networks: Optimizing accuracy-efficiency trade-offs by selective execution. 2018.
220
+
221
+ Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In International Conference on Computer Vision (ICCV), 2017.
222
+
223
+ J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 3431–3440, June 2015.
224
+
225
+ Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. ThiNet: A filter level pruning method for deep neural network compression. In ICCV, pp. 5058–5066, 2017.
226
+
227
+ Augustus Odena, Dieterich Lawson, and Christopher Olah. Changing model behavior at test-time using reinforcement learning. 2017.
228
+
229
+ Angshuman Parashar, Minsoo Rhu, Anurag Mukkara, Antonio Puglielli, Rangharajan Venkatesan, Brucek Khailany, Joel Emer, Stephen W Keckler, and William J Dally. Scnn: An accelerator for compressed-sparse convolutional neural networks. In ACM SIGARCH Computer Architecture News, volume 45, pp. 27–40. ACM, 2017.
230
+
231
+ Mengye Ren, Andrei Pokrovsky, Bin Yang, and Raquel Urtasun. SBNet: Sparse blocks network for fast inference. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
232
+
233
+ S. Ren, K. He, R. Girshick, and J. Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(6):1137–1149, June 2017.
234
+
235
+ Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-ofexperts layer. 2017.
236
+
237
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015.
238
+
239
+ Rupesh Kumar Srivastava, Jonathan Masci, Faustino J. Gomez, and J¨urgen Schmidhuber. Understanding locally competitive networks. In International Conference on Learning Representations (ICLR), 2015.
240
+
241
+ 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 (NIPS), pp. 2074–2082. 2016.
242
+
243
+ Zuxuan Wu, Tushar Nagarajan, Abhishek Kumar, Steven Rennie, Larry S. Davis, Kristen Grauman, and Rogerio Feris. BlockDrop: Dynamic inference paths in residual networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
244
+
245
+ Jianbo Ye, Xin Lu, Zhe L. Lin, and James Z. Wang. Rethinking the smaller-norm-lessinformative assumption in channel pruning of convolution layers. In International Conference on Learning Representations (ICLR), 2018.
246
+
247
+ Yiren Zhao, Xitong Gao, Robert Mullins, and Chengzhong Xu. Mayo: A framework for autogenerating hardware friendly deep neural networks. In Proceedings of 2nd International Workshop on Embedded and Mobile Deep Learning, EMDL ’18. ACM, 2018. doi: 10.1145/ 3212725.3212726. URL http://doi.acm.org/10.1145/3212725.3212726.
248
+
249
+ Hao Zhou, Jose M. Alvarez, and Fatih Porikli. Less is more: Towards compact cnns. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling (eds.), Computer Vision – ECCV 2016, pp. 662–677, Cham, 2016. Springer International Publishing. ISBN 978-3-319- 46493-0.
250
+
251
+ Zhuangwei Zhuang, Mingkui Tan, Bohan Zhuang, Jing Liu, Yong Guo, Qingyao Wu, Junzhou Huang, and Jinhui Zhu. Discrimination-aware channel pruning for deep neural networks. In Advances in Neural Information Processing Systems (NIPS). 2018.
252
+
253
+ # A Details of M-CifarNet on CIFAR-10
254
+
255
+ For the CIFAR-10 classification task, we use M-CifarNet, a custom designed CNN, with less than 1.30 M parameters and takes 174 M MACs to perform inference for a 32-by-32 RGB image. The architecture is illustrated in Table 4, where all convolutional layers use $3 \times 3$ kernels, the Shape column shows the shapes of each layer’s features, and pool7 is a global average pooling layer.
256
+
257
+ We trained M-CifarNet (see Appendix A) with a 0.01 learning rate and a 256 batch size. We reduced the learning rate by a factor of $1 0 \times$ for every 100 epochs. To compare FBS against NS fairly, every model with a new target MACs budget were consecutively initialized with the previous model, and trained for a maximum of 300 epochs, which is enough for all models to converge to the best obtainable accuracies. For NS, we follow Liu et al. (2017) and start training with an $\ell ^ { 1 }$ -norm sparsity regularization weighted by $1 0 ^ { - 5 }$ on the BN scaling factors. We then prune at 150 epochs and fine-tune the resulting network without the sparsity regularization.
258
+
259
+ We additionally employed image augmentation procedures from Krizhevsky et al. (2012) to preprocess each training example. Each CIFAR-10 example was randomly horizontal flipped and slightly perturbed in the brightness, saturation and hue.
260
+
261
+ Table 4 additionally provides further comparisons of layer-wise compute costs between FBS, NS, and the composition of the two methods (NS $^ +$ FBS). It is notable that the FBS column has two different output channel counts, where the former is the number of computed channels for each inference, and the latter is the number of channels remaining in the layer after removing the unused channels.
262
+
263
+ Table 4: The network structure of M-CifarNet for CIFAR-10 classification. In addition, we provide a detailed per-layer MACs comparison between FBS, NS, and the composition of them (NS+FBS). We minimize the models generated by the three methods while maintaining a classification accuracy of at least $9 0 . 5 \%$ .
264
+
265
+ <table><tr><td>Layer</td><td>Shape</td><td colspan="4">Number of MACs (Output Channels) Original NS FBS</td></tr><tr><td>convo</td><td>30 × 30</td><td></td><td></td><td>893k</td><td>NS+FBS</td></tr><tr><td>conv1</td><td>30 × 30</td><td>1.5 M (64)</td><td>1.3M (52) 27.0M (64)</td><td>(32/62) 8.4M (32/42)</td><td>860k (32) 10.2M (39)</td></tr><tr><td>conv2</td><td>15 ×15</td><td>33.2M (64)</td><td></td><td>4.2M</td><td>5.9M</td></tr><tr><td></td><td>15×15</td><td>16.6M (128)</td><td>15.9 M (123)</td><td>(64/67) 8.3M</td><td>(74 11.6 M</td></tr><tr><td>conv3</td><td>15 ×15</td><td>33.2M (128)</td><td>31.9M (128)</td><td>(64/79)</td><td>(77)</td></tr><tr><td>conv4 conv5</td><td>8×8</td><td>33.2M (128) 14.1M</td><td>33.1M (128) 13.4M (182)</td><td>8.3M (64/83)</td><td>12.1M (77)</td></tr><tr><td>conv6</td><td>8×8</td><td>(192) (192)</td><td>11.6 M (111)</td><td>3.6 M (96/128)</td><td>4.9M (110) 4.3M (67)</td></tr><tr><td>conv7</td><td>8×8</td><td>21.2M 21.2M</td><td>12.3 M</td><td>5.4M (96/152)</td><td></td></tr><tr><td>pool7</td><td></td><td>(192)</td><td>(192)</td><td>5.4 M (96/96)</td><td>4.5M (116)</td></tr><tr><td>fc</td><td>1×1 1×1</td><td>1.9k (10)</td><td>1.9k (10)</td><td>960 (10)</td><td>1.1k (10)</td></tr><tr><td></td><td></td><td>174.3M</td><td>146.5M</td><td></td><td></td></tr><tr><td>Total Saving</td><td></td><td>1</td><td>1.19×</td><td>44.3M 3.93×</td><td>54.2M 3.21×</td></tr></table>
266
+
267
+ Figure 4 shows how the skipping probabilites heat maps of the convolutional layer conv4 evolve as we fine-tune FBS-augmented M-CifarNet. The network was trained for 12 epochs, and we saved the model at every epoch. The heat maps are generated with the saved models in sequence, where we apply the same reordering to all heat map channels with the sorted result from the first epoch. It can be observed that as we train the network, the channel skipping probabilites become more pronounced.
268
+
269
+ ![](images/0ac2dbb3a50aafe67f3efd4e38811dfbcd9c7c0d1019acfb820610f3f0cc6d8a.jpg)
270
+ Figure 4: The training history of a convolutional layer conv4 in M-CifarNet. The history is visualized by the 12 skipping probabilites heat maps, where the heights denote the 10 categories in CIFAR-10, and channels in conv4 occupy the width.
271
+
272
+ # B Details of the ILSVRC2012 classifiers
273
+
274
+ ILSVRC2012 classifiers, i.e. ResNet-18 and VGG-16, were trained with a procedure similar to Appendix A. The difference was that they were trained for a maximum of 35 epochs, the learning rate was decayed for every 20 epochs, and NS models were all pruned at 15 epochs. For image preprocessing, we additionally cropped and stretched/squeezed images randomly following Krizhevsky et al. (2012).
275
+
276
+ Since VGG-16 is computationally intensive with over 15 G MACs, We first applied NS on VGG-16 to reduce the computational and memory requirements, and ease the training of the FBS-augmented variant. We assigned a $1 \%$ budget in top-5 accuracy degradation and compressed the network using NS, which gave us a smaller VGG-16 with $2 0 \%$ of all channels pruned. The resulting network is a lot less redundant, which almost halves the compute requirements, with only 7.90 G MACs remaining. We then apply FBS to the well-compressed network.
277
+
278
+ Residual networks (He et al., 2016), such as ResNet-18, adopt sequential structure of residual blocks: $\mathbf { x } _ { b } = K \left( \mathbf { x } _ { b - 1 } \right) + F \left( \mathbf { x } _ { b - 1 } \right)$ , where $\mathbf { x } _ { b }$ is the output of the $b ^ { \mathrm { t h } }$ block, $K$ is either an identity function or a downsampling convolution, and $F ^ { \prime }$ consists of a sequence of convolutions. For residual networks, we directly apply FBS to all convolutional layers, with a difference in the way we handle the feature summation. Because the $\left( b + 1 \right) ^ { \mathrm { t h } }$ block receives as input the sum of the two features with sparse channels $K \left( \mathbf { x } _ { b - 1 } \right)$ and $F \left( \mathbf { x } _ { b - 1 } \right)$ , a certain channel of this sum is treated as sparse when the same channels in both features are simultaneously sparse.
279
+
280
+ Figure 5 compares the accuracy/performance trade-off curves between FBS and NS for ResNet-18.
281
+
282
+ ![](images/03cc25e4465c9126a92eedc919885878b989aaaa077f60070dd89df8fb2e157e.jpg)
283
+ Figure 5: The accuracy/performance trade-off comparison between NS and FBS for ResNet18 on the ImageNet ILSVRC2012 validation set.
parse/train/BJxh2j0qYm/BJxh2j0qYm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkeryxBtPB/HkeryxBtPB_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkeryxBtPB/HkeryxBtPB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1fQSiCcYm/S1fQSiCcYm.md ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # UNDERSTANDING AND IMPROVING INTERPOLATION IN AUTOENCODERS VIA AN ADVERSARIAL REGULARIZER
2
+
3
+ David Berthelot∗ Google Brain dberth@google.com
4
+
5
+ Colin Raffel∗
6
+ Google Brain
7
+ craffel@gmail.com
8
+ Aurko Roy
9
+ Google Brain
10
+ aurkor@google.com
11
+ Ian Goodfellow
12
+ Google Brain
13
+ goodfellow@google.com
14
+
15
+ # ABSTRACT
16
+
17
+ Autoencoders provide a powerful framework for learning compressed representations by encoding all of the information needed to reconstruct a data point in a latent code. In some cases, autoencoders can “interpolate”: By decoding the convex combination of the latent codes for two datapoints, the autoencoder can produce an output which semantically mixes characteristics from the datapoints. In this paper, we propose a regularization procedure which encourages interpolated outputs to appear more realistic by fooling a critic network which has been trained to recover the mixing coefficient from interpolated data. We then develop a simple benchmark task where we can quantitatively measure the extent to which various autoencoders can interpolate and show that our regularizer dramatically improves interpolation in this setting. We also demonstrate empirically that our regularizer produces latent codes which are more effective on downstream tasks, suggesting a possible link between interpolation abilities and learning useful representations.
18
+
19
+ # 1 INTRODUCTION
20
+
21
+ One goal of unsupervised learning is to uncover the underlying structure of a dataset without using explicit labels. A common architecture used for this purpose is the autoencoder, which learns to map datapoints to a latent code from which the data can be recovered with minimal information loss. Typically, the latent code is lower dimensional than the data, which indicates that autoencoders can perform some form of dimensionality reduction. For certain architectures, the latent codes have been shown to disentangle important factors of variation in the dataset which makes such models useful for representation learning (Chen et al., 2016a; Higgins et al., 2017). In the past, they were also used for pre-training other networks by being trained on unlabeled data and then being stacked to initialize a deep network (Bengio et al., 2007; Vincent et al., 2010). More recently, it was shown that imposing a prior on the latent space allows autoencoders to be used for probabilistic or generative modeling (Kingma & Welling, 2014; Rezende et al., 2014; Makhzani et al., 2015).
22
+
23
+ In some cases, autoencoders have shown the ability to interpolate. Specifically, by mixing codes in latent space and decoding the result, the autoencoder can produce a semantically meaningful combination of the corresponding datapoints. Interpolation has been frequently reported as a qualitative experimental result in studies about autoencoders (Dumoulin et al., 2016; Bowman et al., 2015; Roberts et al., 2018; Mescheder et al., 2017; Mathieu et al., 2016; Ha & Eck, 2018) and latent-variable generative models in general (Dinh et al., 2016; Radford et al., 2015; van den Oord et al., 2016). The ability to interpolate can be useful in its own right e.g. for creative applications (Carter & Nielsen, 2017). However, it also indicates that the autoencoder can “extrapolate” beyond the training data and has learned a latent space with a particular structure. Specifically, if interpolating between two points in latent space produces a smooth semantic warping in data space, this suggests that nearby points in latent space are semantically similar. A visualization of this idea is shown in fig. 1, where a smooth interpolation between a “2” and a “9” suggests that the 2 is surrounded by semantically similar points, i.e. other 2s. This property may suggest that an autoencoder which interpolates well could also provide a good learned representation for downstream tasks because similar points are clustered. If the interpolation is not smooth, there may be “discontinuities” in latent space which could result in the representation being less useful as a learned feature. This connection between interpolation and a “flat” data manifold has been explored in the context of unsupervised representation learning (Bengio et al., 2013b) and regularization (Verma et al., 2018).
24
+
25
+ ![](images/5630761622d92221bde976e9ee4da80f4d47ac78ed0050620eafd2c13a506e28.jpg)
26
+ Figure 1: Successful interpolation suggests that semantically similar points may be clustered together in latent space.
27
+
28
+ ![](images/611fdc6f66b401e9eaa12590a538cddbffa0dc1156d6e0afd94a714f10b7e1a2.jpg)
29
+ Figure 2: Adversarially Constrained Autoencoder Interpolation (ACAI). A critic network is fed interpolants and reconstructions and tries to predict the interpolation coefficient $\alpha$ corresponding to its input (with $\alpha = 0$ for reconstructions). The autoencoder is trained to fool the critic into outputting $\alpha = 0$ for interpolants.
30
+
31
+ Given the widespread use of interpolation as a qualitative measure of autoencoder performance, we believe additional investigation into the connection between interpolation and representation learning is warranted. Our goal in this paper is threefold: First, we introduce a regularization strategy with the specific goal of encouraging improved interpolations in autoencoders (section 2); second, we develop a synthetic benchmark where the slippery concept of a “semantically meaningful interpolation” is quantitatively measurable (section 3.1) and evaluate common autoencoders on this task (section 3.2); and third, we confirm the intuition that good interpolation can result in a useful representation by showing that the improved interpolation ability produced by our regularizer elicits improved representation learning performance on downstream tasks (section 4). We also make our codebase available1 which provides a unified implementation of many common autoencoders including our proposed regularizer.
32
+
33
+ # 2 AN ADVERSARIAL REGULARIZER FOR IMPROVING INTERPOLATIONS
34
+
35
+ Autoencoders, also called auto-associators (Bourlard & Kamp, 1988), consist of the following structure: First, an input $x \in \mathbb { R } ^ { d _ { x } }$ is passed through an “encoder” $z = f _ { \boldsymbol { \theta } } ( x )$ parametrized by $\theta$ to obtain a latent code $z \in \mathbb { R } ^ { d _ { z } }$ . The latent code is then passed through a “decoder” $\hat { x } = g _ { \phi } ( z )$ parametrized by $\phi$ to produce an approximate reconstruction $\hat { \boldsymbol { x } } \in \mathbb { R } ^ { d _ { x } }$ of the input $x$ . We consider the case where $f _ { \theta }$ and $g _ { \phi }$ are implemented as multi-layer neural networks. The encoder and decoder are trained simultaneously (i.e. with respect to $\theta$ and $\phi$ ) to minimize some notion of distance between the input $x$ and the output $\hat { x }$ , for example the squared $L _ { 2 }$ distance $\| x - { \hat { x } } \| ^ { 2 }$ .
36
+
37
+ Interpolating using an autoencoder describes the process of using the decoder $g _ { \phi }$ to decode a mixture of two latent codes. Typically, the latent codes are combined via a convex combination, so that interpolation amounts to computing $\hat { x } _ { \alpha } = g _ { \phi } ( \alpha z _ { 1 } + ( 1 - \alpha ) z _ { 2 } )$ for some $\alpha \in [ 0 , 1 ]$ where $z _ { 1 } = f _ { \theta } ( x _ { 1 } )$ and $z _ { 2 } = f _ { \theta } ( x _ { 2 } )$ are the latent codes corresponding to data points $x _ { 1 }$ and $x _ { 2 }$ . We also experimented with spherical interpolation which has been used in settings where the latent codes are expected to have spherical structure (Huszar, 2017; White, 2016; Roberts et al., 2018), but found it made no ´ discernible difference in practice for any autoencoder we studied. Ideally, adjusting $\alpha$ from 0 to 1 will produce a sequence of realistic datapoints where each subsequent $\hat { x } _ { \alpha }$ is progressively less semantically similar to $x _ { 1 }$ and more semantically similar to $x _ { 2 }$ . The notion of “semantic similarity” is problem-dependent and ill-defined; we discuss this further in section 3.
38
+
39
+ 2.1 ADVERSARIALLY CONSTRAINED AUTOENCODER INTERPOLATION (ACAI)
40
+
41
+ As mentioned above, a high-quality interpolation should have two characteristics: First, that intermediate points along the interpolation are indistinguishable from real data; and second, that the intermediate points provide a semantically smooth morphing between the endpoints. The latter characteristic is hard to enforce because it requires defining a notion of semantic similarity for a given dataset, which is often hard to explicitly codify. So instead, we propose a regularizer which encourages interpolated datapoints to appear realistic, or more specifically, to appear indistinguishable from reconstructions of real datapoints. We find empirically that this constraint results in realistic and smooth interpolations in practice (section 3.1) in addition to providing improved performance on downstream tasks (section 4).
42
+
43
+ To enforce this constraint we introduce a critic network (Goodfellow et al., 2014) which is fed interpolations of existing datapoints (i.e. $\hat { x } _ { \alpha }$ as defined above). Its goal is to predict $\alpha$ from $\hat { x } _ { \alpha }$ , i.e. to predict the mixing coefficient used to generate its input. When training the model, for each pair of training data points we randomly sample a value of $\alpha$ to produce $\hat { x } _ { \alpha }$ . In order to resolve the ambiguity between predicting $\alpha$ and $1 - \alpha$ , we constrain $\alpha$ to the range $[ 0 , 0 . 5 ]$ when feeding $\hat { x } _ { \alpha }$ to the critic. In contrast, the autoencoder is trained to fool the critic to think that $\alpha$ is always zero. This is achieved by adding an additional term to the autoencoder’s loss to optimize its parameters to fool the critic. In a loose sense, the critic can be seen as approximating an “adversarial divergence” (Liu et al., 2017; Arora et al., 2017) between reconstructions and interpolants which the autoencoder tries to minimize.
44
+
45
+ Formally, let $d _ { \omega } ( x )$ be the critic network, which for a given input produces a scalar value. The critic is trained to minimize
46
+
47
+ $$
48
+ \mathcal { L } _ { d } = \| d _ { \omega } ( \hat { x } _ { \alpha } ) - \alpha \| ^ { 2 } + \| d _ { \omega } ( \gamma x + ( 1 - \gamma ) \hat { x } ) \| ^ { 2 }
49
+ $$
50
+
51
+ where, as above, $\hat { x } _ { \alpha } = g _ { \phi } ( \alpha f _ { \theta } ( x _ { 1 } ) + ( 1 - \alpha ) f _ { \theta } ( x _ { 2 } ) )$ , $\hat { x } = g _ { \phi } ( f _ { \theta } ( x ) )$ for some $x$ (not necessarily $x _ { 1 }$ or $x _ { 2 }$ ), and $\gamma$ is a scalar hyperparameter. The first term trains the critic to recover $\alpha$ from $\hat { x } _ { \alpha }$ . The second term serves as a regularizer with two functions: First, it enforces that the critic consistently outputs 0 for non-interpolated inputs; and second, by interpolating between $x$ and $\hat { x }$ (the autoencoder’s reconstruction of $x$ ) in data space it ensures the critic is exposed to realistic data even when the autoencoder’s reconstructions are poor. We found the second term was not crucial for our approach, but helped stabilize the convergence of the autoencoder and allowed us to use consistent hyperparameters and architectures across all datasets and experiments. The autoencoder’s loss function is modified by adding a regularization term:
52
+
53
+ $$
54
+ \mathcal { L } _ { f , g } = \Vert x - g _ { \phi } ( f _ { \theta } ( x ) ) \Vert ^ { 2 } + \lambda \Vert d _ { \omega } ( \hat { x } _ { \alpha } ) \Vert ^ { 2 }
55
+ $$
56
+
57
+ where $\lambda$ is a scalar hyperparameter which controls the weight of the regularization term. Note that the regularization term is effectively trying to make the critic output 0 regardless of the value of $\alpha$ , thereby “fooling” the critic into thinking that an interpolated input is non-interpolated (i.e., having $\alpha = 0$ ). The parameters $\theta$ and $\phi$ are optimized with respect to $\mathcal { L } _ { f , g }$ (which gives the autoencoder access to the critic’s gradients) and $\omega$ is optimized with respect to $\mathcal { L } _ { d }$ . We refer to the use of this regularizer as Adversarially Constrained Autoencoder Interpolation (ACAI). A diagram of the ACAI is shown in fig. 2. Assuming an effective critic, the autoencoder successfully “wins” this adversarial game by producing interpolated points which are indistinguishable from reconstructed data. We find in practice that encouraging this behavior also produces semantically smooth interpolations and improved representation learning performance, which we demonstrate in the following sections. Our loss function is similar to the one used in the Least Squares Generative Adversarial Network (Mao et al., 2017) in the sense that they both measure the distance between a critic’s output and a scalar using a squared L2 loss. However, they are substantially different in that ours is used as a regularizer for autoencoders rather than for generative modeling and our critic attempts to regress the interpolation coefficient $\alpha$ instead of a fixed scalar hyperparameter.
58
+
59
+ Note that the only thing ACAI encourages is that interpolated points appear realistic. The critic only ever sees a single reconstruction or interpolant at a time; it is never fed real datapoints or latent vectors. It therefore will only be able to successfully recover $\alpha$ if the quality of the autoencoder’s output degrades consistently across an interpolation as a function of $\alpha$ (as seen, for example, in fig. 3a where interpolated points become successively blurrier and darker). ACAI’s primary purpose is to discourage this behavior. In doing so, it may implicitly modify the structure of the latent space learned by the autoencoder, but ACAI itself does not directly impose a specific structure. Our goal in introducing ACAI is to test whether simply encouraging better interpolation behavior produces a better representation for downstream tasks. Further, in contrast with the standard Generative Adversarial Network (GAN) setup (Goodfellow et al., 2014), ACAI does not distinguish between “real” and “fake” data; rather, it simply attempts to regress the interpolation coefficient $\alpha$ . Furthermore, GANs are a generative modeling technique, not a representation learning technique; in this paper, we focus on autoencoders and their ability to learn useful representations.
60
+
61
+ # 3 AUTOENCODERS, AND HOW THEY INTERPOLATE
62
+
63
+ How can we measure whether an autoencoder interpolates effectively and whether our proposed regularization strategy achieves its stated goal? As mentioned in section 2, defining interpolation relies on the notion of “semantic similarity” which is a vague and problem-dependent concept. For example, a definition of interpolation along the lines of $^ { \mathrm { \infty } } \alpha z _ { 1 } \mathrm { ~ + ~ } ( 1 - \mathrm { \bar { \alpha } } ) z _ { 2 }$ should map to $\alpha x _ { 1 } \bar { + } ( 1 - \alpha ) { x _ { 2 } } ^ { \bar { \gamma } }$ is overly simplistic because interpolating in “data space” often does not result in realistic datapoints – in images, this corresponds to simply fading between the pixel values of the two images. Instead, we might hope that our autoencoder smoothly morphs between salient characteristics of $x _ { 1 }$ and $x _ { 2 }$ , even when they are dissimilar. Put another way, we might hope that decoded points along the interpolation smoothly traverse the underlying manifold of the data instead of simply interpolating in data space. However, we rarely have access to the underlying data manifold. To make this problem more concrete, we introduce a simple benchmark task where the data manifold is simple and known a priori which makes it possible to quantify interpolation quality. We then evaluate the ability of various common autoencoders to interpolate on our benchmark. Finally, we test ACAI on our benchmark and show that it exhibits dramatically improved performance and qualitatively superior interpolations.
64
+
65
+ # 3.1 AUTOENCODING LINES
66
+
67
+ Given that the concept of interpolation is difficult to pin down, our goal is to define a task where a “correct” interpolation between two datapoints is unambiguous and well-defined. This will allow us to quantitatively evaluate the extent to which different autoencoders can successfully interpolate. Towards this goal, we propose the task of autoencoding $3 2 \times 3 2$ grayscale images of lines. We consider 16-pixel-long lines beginning from the center of the image and extending outward at an angle $\Lambda \in [ 0 , 2 \pi ]$ (or put another way, lines are radii of the circle circumscribed within the image borders). An example of 16 such images is shown in fig. 4a (appendix A.1). In this task, the data manifold can be defined entirely by a single variable: $\Lambda$ . We can therefore define a valid interpolation from $x _ { 1 }$ to $x _ { 2 }$ as one which smoothly and linearly adjusts $\Lambda$ from the angle of the line in $x _ { 1 }$ to the angle in $x _ { 2 }$ . We further require that the interpolation traverses the shortest path possible along the data manifold. We provide some concrete examples of good and bad interpolations, shown and described in appendix A.1.
68
+
69
+ On any dataset, our desiderata for a successful interpolation are that intermediate points look realistic and provide a semantically meaningful morphing between its endpoints. On this synthetic lines dataset, we can formalize these notions as specific evaluation metrics, which we describe in detail in appendix A.2. To summarize, we propose two metrics: Mean Distance and Smoothness. Mean Distance measures the average distance between interpolated points and “real” datapoints. Smoothness measures whether the angles of the interpolated lines follow a linear trajectory between the angle of the start and endpoint. Both of these metrics are simple to define due to our construction of a dataset where we exactly know the data distribution and manifold; we provide a full definition and justification in appendix A.2. A perfect alignment would achieve 0 for both scores; larger values indicate a failure to generate realistic interpolated points or produce a smooth interpolation respectively. By choosing a synthetic benchmark where we can explicitly measure the quality of an interpolation, we can confidently evaluate different autoencoders on their interpolation abilities.
70
+
71
+ To evaluate an autoencoder on the synthetic lines task, we randomly sample line images during training and compute our evaluation metrics on a separate randomly-sampled test set of images. Note that we never train any autoencoder explicitly to produce an optimal interpolation; “good” interpolation is an emergent property which occurs only when the architecture, loss function, training procedure, etc. produce a suitable latent space.
72
+
73
+ Table 1: Scores achieved by different autoencoders on the synthetic line benchmark (lower is better).
74
+
75
+ <table><tr><td>Metric</td><td>Baseline</td><td>Denoising</td><td>VAE</td><td>AAE</td><td>VQ-VAE</td><td>ACAI</td></tr><tr><td>Mean Distance ( (×10-3)</td><td>6.88±0.21</td><td>4.21±0.32</td><td>1.21±0.17</td><td>3.26±0.19</td><td>5.41±0.49</td><td>0.24±0.01</td></tr><tr><td>Smoothness</td><td>0.44±0.04</td><td>0.66±0.02</td><td>0.49±0.13</td><td>0.14±0.02</td><td>0.77±0.02</td><td>0.10±0.01</td></tr></table>
76
+
77
+ ![](images/ec36ffc7cb437f33fb80e7cef44a912d2b91f3875e4be808b7576abc3083aa00.jpg)
78
+ Figure 3: Interpolations on the synthetic lines benchmark produced by (a) baseline auto-encoder, (b) denoising autoencoder, (c) Variational Autoencoder, (d) Adversarial Autoencoder, (e) Vector Quantized Variational Autoencoder, (f) Adversarially Constrained Autoencoder Interpolation (our model). While we only show one example here, the behavior of each autoencoder was generally similar for all interpolations. A more comprehensive measure of interpolation behavior is given in table 1.
79
+
80
+ # 3.2 AUTOENCODERS
81
+
82
+ In this section, we describe various common autoencoder structures and objectives and try them on the lines task. Our goal is to quantitatively evaluate the extent to which standard autoencoders exhibit useful interpolation behavior. Our results, which we describe below, are summarized in table 1.
83
+
84
+ Base Model Perhaps the most basic autoencoder structure is one which simply maps input datapoints through a “bottleneck” layer whose dimensionality is smaller than the input. In this setup, $f _ { \theta }$ and $g _ { \phi }$ are both neural networks which respectively map the input to a deterministic latent code $z$ and then back to a reconstructed input. Typically, $f _ { \theta }$ and $g _ { \phi }$ are trained simultaneously with respect to $\| x - { \hat { x } } \| ^ { 2 }$ . We will use this framework as a baseline for experimentation for all of the autoencoder variants discussed below. In particular, for our base model and all of the other autoencoders we will use the model architecture and training procedure described in appendix B. As a short summary, our encoder consists of a stack of convolutional and average pooling layers, whereas the decoder consists of convolutional and nearest-neighbor upsampling layers. For experiments on the synthetic “lines” task, we use a latent dimensionality of 64. Note that, because the data manifold is effectively onedimensional, we might expect autoencoders to be able to model this dataset using a one-dimensional latent code; however, using a larger latent code reflects the realistic scenario where the latent space is larger than necessary. After training our baseline autoencoder, we achieved a Mean Distance score which was the worst (highest) of all of the autoencoders we studied, though the Smoothness was on par with various other approaches. In general, we observed some reasonable interpolations when using the baseline model, but found that the intermediate points on the interpolation were typically not realistic as seen in the example interpolation in fig. 3a.
85
+
86
+ Denoising Autoencoder An early modification to the standard autoencoder setup was proposed by Vincent et al. (2010), where instead of feeding $x$ into the autoencoder, a corrupted version $\tilde { x } \sim q ( \tilde { x } | x )$ is sampled from the conditional probability distribution $q ( \tilde { x } | x )$ and is fed into the autoencoder instead. The autoencoder’s goal remains to produce $\hat { x }$ which minimizes $\| x - { \hat { x } } \| ^ { 2 }$ . One justification of this approach is that the corrupted inputs should fall outside of the true data manifold, so the autoencoder must learn to map points from outside of the data manifold back onto it. This provides an implicit way of defining and learning the data manifold via the coordinate system induced by the latent space.
87
+
88
+ While various corruption procedures $q ( \tilde { x } | x )$ have been used such as masking and salt-and-pepper noise, in this paper we consider the simple case of additive isotropic Gaussian noise where $\tilde { x } \sim$ ${ \mathcal { N } } ( x , \sigma ^ { 2 } I )$ and $\sigma$ is a hyperparameter. After tuning $\sigma$ , we found simply setting $\sigma = 1 . 0$ to work best. Interestingly, we found the denoising autoencoder often produced “data-space” interpolation (as seen in fig. 3b) when interpolating in latent space. This resulted in comparatively poor Mean Distance and Smoothness scores.
89
+
90
+ Variational Autoencoder The Variational Autoencoder (VAE) (Kingma & Welling, 2014; Rezende et al., 2014) introduces the constraint that the latent code $z$ is a random variable distributed according to a prior distribution $p ( z )$ . The encoder $f _ { \theta }$ can then be considered an approximation to the posterior $p ( z | x )$ . Then, the decoder $g _ { \phi }$ is taken to parametrize the likelihood $p ( x \bar { | } \bar { z } )$ ; in all of our experiments, we consider $x$ to be Bernoulli distributed. The latent distribution constraint is enforced by an additional loss term which measures the KL divergence between approximate posterior and prior. VAEs then use log-likelihood for the reconstruction loss (cross-entropy in the case of Bernoulli-distributed data), which results in the following combined loss function: $- \mathbb { E } [ \log g _ { \phi } ( z ) ] + \mathrm { K L } ( f _ { \theta } ( x ) | | p ( z ) )$ where the expectation is taken with respect to $z \sim f _ { \theta } ( x )$ and $\mathrm { K L } ( \cdot | | \cdot )$ is the KL divergence. Minimizing this loss function can be considered maximizing a lower bound (the “ELBO”) on the likelihood of the training set, producing a likelihood-based generative model which allows novel data points to be sampled by first sampling $z \sim p ( z )$ and then computing $g _ { \phi } ( z )$ . A common choice is to let $q ( z | x )$ be a diagonalcovariance Gaussian, in which case backpropagation through sampling from $q ( z | x )$ is feasible via the “reparametrization trick” which replaces $\bar { z } \sim \mathcal { N } ( \mu , \bar { \sigma I } )$ with $\epsilon \sim \mathcal { N } ( 0 , I ) , z = \mu + \sigma \odot \epsilon$ where $\bar { \mu } , \sigma \in \mathbb { R } ^ { d _ { z } }$ are the predicted mean and standard deviation produced by $f _ { \theta }$ . Various modified objectives (Higgins et al., 2017; Zhao et al., 2017), improved prior distributions (Kingma et al., 2016; Tomczak & Welling, 2016; 2017) and improved model architectures (Sønderby et al., 2016; Chen et al., 2016b; Gulrajani et al., 2016) have been proposed to better the VAE’s performance on downstream tasks, but in this paper we solely consider the “vanilla” VAE objective and prior described above applied to our baseline autoencoder structure.
91
+
92
+ When trained on the lines benchmark, we found the VAE was able to effectively model the data distribution (see samples, fig. 5 in appendix C) and accurately reconstruct inputs. In interpolations produced by the VAE, intermediate points tend to look realistic, but the angle of the lines do not follow a smooth or short path (fig. 3c). This resulted in a very good Mean Distance score but a very poor Smoothness score. Contrary to expectations, this suggests that desirable interpolation behavior may not follow from an effective generative model of the data distribution.
93
+
94
+ Adversarial Autoencoder The Adversarial Autoencoder (AAE) (Makhzani et al., 2015) proposes an alternative way of enforcing structure on the latent code. Instead of minimizing a KL divergence between the distribution of latent codes and a prior distribution, a critic network is trained in tandem with the autoencoder to predict whether a latent code comes from $f _ { \theta }$ or from the prior $p ( z )$ . The autoencoder is simultaneously trained to reconstruct inputs (via a standard reconstruction loss) and to “fool” the critic. The autoencoder is allowed to backpropagate gradients through the critic’s loss function, but the autoencoder and critic parameters are optimized separately. This effectively computes an “adversarial divergence” between the latent code distribution and the chosen prior. This framework was later generalized and referred to as the “Wasserstein Autoencoder” (Tolstikhin et al., 2017) One advantage of this approach is that it allows for an arbitrary prior (as opposed to those which have a tractable KL divergence). The disadvantages are that the AAE no longer has a probabilistic interpretation and involves optimizing a minimax game, which can cause instabilities.
95
+
96
+ Using the AAE requires choosing a prior, a critic structure, and a training scheme for the critic. For simplicity, we also used a spherical Gaussian prior for the AAE. We experimented with various architectures for the critic, and found the best performance with a critic which consisted of two dense layers, each with 100 units and a leaky ReLU nonlinearity. We found it satisfactory to simply use the same optimizer and learning rate for the critic as was used for the autoencoder. On our lines benchmark, the AAE typically produced smooth interpolations, but exhibited degraded quality in the middle of interpolations (fig. 3d). This behavior produced the best Smoothness score among existing autoencoders, but a relatively poor Mean Distance score.
97
+
98
+ Vector Quantized Variational Autoencoder (VQ-VAE) The Vector Quantized Variational Autoencoder (VQ-VAE) was introduced by (van den Oord et al., 2017) as a way to train discrete-latent autoencoders using a learned codebook. In the VQ-VAE, the encoder $f _ { \boldsymbol { \theta } } ( \boldsymbol { x } )$ produces a continuous hidden representation $z \in \mathbb { R } _ { z } ^ { d }$ which is then mapped to $z _ { q }$ , its nearest neighbor in a “codebook” $\{ e _ { j } \in \mathbb { R } ^ { d _ { z } } , j \in 1 , \ldots , K \}$ . $z _ { q }$ is then passed to the decoder for reconstruction. The encoder is trained to minimize the reconstruction loss using the straight-through gradient estimator (Bengio et al., 2013a), together with a commitment loss term $\beta \parallel z - \operatorname { s g } ( z _ { q } ) \parallel$ (where $\beta$ is a scalar hyperparameter) which encourages encoder outputs to move closer to their nearest codebook entry. Here sg denotes the stop gradient operator, i.e. $\ \operatorname { s g } ( x ) = x$ in the forward pass, and $\operatorname { s g } ( x ) = 0$ in the backward pass. The codebook entries $e _ { j }$ are updated as an exponential moving average (EMA) of the continuous latents $z$ that map to them at each training iteration. The VQ-VAE training procedure using this EMA update rule can be seen as performing the $K$ -means or the hard Expectation Maximization (EM) algorithm on the latent codes (Roy et al., 2018).
99
+
100
+ We perform interpolation in the VQ-VAE by interpolating continuous latents, mapping them to their nearest codebook entries, and decoding the result. Assuming sufficiently large codebook, a semantically “smooth” interpolation may be possible. On the lines task, we found that this procedure produced poor interpolations. Ultimately, many entries of the codebook were mapped to unrealistic datapoints, and the interpolations resembled those of the baseline autoencoder.
101
+
102
+ Adversarially Constrained Autoencoder Interpolation Finally, we turn to evaluating our proposed adversarial regularizer for improving interpolations. For simplicity, on the lines benchmark we found it sufficient to use a critic architecture which was equivalent to the encoder (as described in appendix B). To produce a single scalar value from its output, we computed the mean of its final layer activations. For the hyperparameters $\lambda$ and $\gamma$ we found values of 0.5 and 0.2 to achieve good results, though the performance was not very sensitive to their values. We use these values for the coefficients for all of our experiments. Finally, we trained the critic using the same optimizer and hyperparameters as the autoencoder.
103
+
104
+ We found dramatically improved performance on the lines benchmark when using ACAI – it achieved the best Mean Distance and Smoothness score among the autoencoders we considered. When inspecting the resulting interpolations, we found it occasionally chose a longer path than necessary but typically produced “perfect” interpolation behavior as seen in fig. 3f. This provides quantitative evidence ACAI is successful at encouraging realistic and smooth interpolations.
105
+
106
+ # 3.3 INTERPOLATIONS ON REAL DATA
107
+
108
+ We have so far only discussed results on our synthetic lines benchmark. We also provide example reconstructions and interpolations produced by each autoencoder for MNIST (LeCun, 1998), SVHN (Netzer et al., 2011), and CelebA (Liu et al., 2015) in appendix D. For each dataset, we trained autoencoders with latent dimensionalities of 32 and 256. Since we do not know the underlying data manifold for these datasets, no metrics are available to evaluate performance and we can only make qualitative judgments as to the reconstruction and interpolation quality. We find that most autoencoders produce “blurrier” images with $d _ { z } = 3 2$ but generally give smooth interpolations regardless of the latent dimensionality. The exception to this observation was the VQ-VAE which seems generally to work better with $d _ { z } = 3 2$ and occasionally even diverged for $d _ { z } = 2 5 6$ (see e.g. fig. 9e). This may be due to the nearest-neighbor discretization (and gradient estimator) failing in high dimensions. Across datasets, we found the VAE and denoising autoencoder typically produced more blurry interpolations. AAE and ACAI generally produced realistic interpolations, even between dissimilar datapoints (for example, in fig. 7 bottom). The baseline model often effectively interpolated in data space.
109
+
110
+ # 4 IMPROVED REPRESENTATION LEARNING
111
+
112
+ We have so far solely focused on measuring the interpolation abilities of different autoencoders. Now, we turn to the question of whether improved interpolation is associated with improved performance on downstream tasks. Specifically, we will evaluate whether using our proposed regularizer results in latent space representations which provide better performance in supervised learning and clustering. Put another way, we seek to test whether improving interpolation results in a latent representation which has disentangled important factors of variation (such as class identity) in the dataset. To answer this question, we ran classification and clustering experiments using the learned latent spaces of different autoencoders on the MNIST (LeCun, 1998), SVHN (Netzer et al., 2011), and CIFAR-10 (Krizhevsky, 2009) datasets.
113
+
114
+ Table 2: Single-layer classifier accuracy achieved by different autoencoders.
115
+
116
+ <table><tr><td>Dataset</td><td>dz</td><td>Baseline</td><td>Denoising</td><td>VAE</td><td>AAE</td><td>VQ-VAE</td><td>ACAI</td></tr><tr><td rowspan="2">MNIST</td><td>32</td><td>94.90±0.14</td><td>96.00±0.27</td><td>96.56±0.31</td><td>70.74±3.27</td><td>97.50±0.18</td><td>98.25±0.11</td></tr><tr><td>256</td><td>93.94±0.13</td><td>98.51±0.04</td><td>98.74±0.14</td><td>90.03±0.54</td><td>97.25±1.42</td><td>99.00±0.08</td></tr><tr><td rowspan="2">SVHN</td><td>32</td><td>26.21±0.42</td><td>25.15±0.78</td><td>29.58±3.22</td><td>23.43±0.79</td><td>24.53±1.33</td><td>34.47±1.14</td></tr><tr><td>256</td><td>22.74±0.05</td><td>77.89±0.35</td><td>66.30±1.06</td><td>22.81±0.24</td><td>44.94±20.42</td><td>85.14±0.20</td></tr><tr><td rowspan="2">CIFAR-10</td><td>256</td><td>47.92±0.20</td><td>53.78±0.36</td><td>47.49±0.22</td><td>40.65±1.45</td><td>42.80±0.44</td><td>52.77±0.45</td></tr><tr><td>1024</td><td>51.62±0.25</td><td>60.65±0.14</td><td>51.39±0.46</td><td>42.86±0.88</td><td>16.22±12.44</td><td>63.99±0.47</td></tr></table>
117
+
118
+ Table 3: Clustering accuracy for using K-Means on the latent space of different autoencoders (left) and previously reported methods (right). On the right, “Data” refers to performing K-Means directly on the data and DEC, RIM, and IMSAT are the methods proposed in (Xie et al., 2016; Krause et al., 2010; Hu et al., 2017) respectively. Results marked \* are excerpted from (Hu et al., 2017) and \*\* are from (Xie et al., 2016).
119
+
120
+ <table><tr><td>Dataset</td><td>dz</td><td>Baseline</td><td>Denoising</td><td>VAE</td><td>AAE</td><td>VQ-VAE</td><td>ACAI</td><td>Data</td><td>DEC</td><td>RIM</td><td>IMSAT</td></tr><tr><td>MNIST</td><td>32 256</td><td>77.56 53.70</td><td>82.59 70.89</td><td>75.74 83.44</td><td>79.19 81.00</td><td>82.39 96.80</td><td>94.38 96.17</td><td>53.2*</td><td>84.3**</td><td>58.5*</td><td>98.4*</td></tr><tr><td>SVHN</td><td>32 256</td><td>19.38 15.62</td><td>17.91 31.49</td><td>16.83 11.36</td><td>17.35 13.59</td><td>15.19 18.84</td><td>20.86 24.98</td><td>17.9*</td><td>11.9*</td><td>26.8*</td><td>57.3*</td></tr></table>
121
+
122
+ Single-Layer Classifier A common method for evaluating the quality of a learned representation (such as the latent space of an autoencoder) is to use it as a feature representation for a simple, one-layer classifier (i.e. logistic regression) trained on a supervised learning task (Coates et al., 2011). The justification for this evaluation procedure is that a learned representation which has effectively disentangled class identity will allow the classifier to obtain reasonable performance despite its simplicity. To test different autoencoders in this setting, we trained a separate single-layer classifier in tandem with the autoencoder using the latent representation as input. We did not optimize autoencoder parameters with respect to the classifier’s loss, which ensures that we are measuring unsupervised representation learning performance. We repeated this procedure for latent dimensionalities of 32 and 256 (MNIST and SVHN) and 256 and 1024 (CIFAR-10).
123
+
124
+ Our results are shown in table 2. In all settings, using ACAI instead of the baseline autoencoder upon which it is based produced significant gains – most notably, on SVHN with a latent dimensionality of 256, the baseline achieved an accuracy of only $2 2 . 7 4 \%$ whereas ACAI achieved $8 5 . 1 4 \%$ . In general, we found the denoising autoencoder, VAE, and ACAI obtained significantly higher performance compared to the remaining models. On MNIST and SVHN, ACAI achieved the best accuracy by a significant margin; on CIFAR-10, the performance of ACAI and the denoising autoencoder was similar. By way of comparison, we found a single-layer classifier applied directly to (flattened) image pixels achieved an accuracy of $9 2 . 3 1 \%$ , $2 3 . 4 8 \%$ , and $3 9 . 7 0 \%$ on MNIST, SVHN, and CIFAR-10 respectively, so classifying using the representation learned by ACAI provides a huge benefit.
125
+
126
+ Clustering If an autoencoder groups points with common salient characteristics close together in latent space without observing any labels, it arguably has uncovered some important structure in the data in an unsupervised fashion. A more difficult test of an autoencoder is therefore clustering its latent space, i.e. separating the latent codes for a dataset into distinct groups without using any labels. To test the clusterability of the latent spaces learned by different autoencoders, we simply apply K-Means clustering (MacQueen, 1967) to the latent codes for a given dataset. Since K-Means uses Euclidean distance, it is sensitive to each dimension’s relative variance. We therefore used PCA whitening on the latent space learned by each autoencoder to normalize the variance of its dimensions prior to clustering. K-Means can exhibit highly variable results depending on how it is initialized, so for each autoencoder we ran K-Means 1,000 times from different random initializations and chose the clustering with the best objective value on the training set. For evaluation, we adopt the methodology of Xie et al. (2016); Hu et al. (2017): Given that the dataset in question has labels (which are not used for training the model, the clustering algorithm, or choice of random initialization), we can cluster the data into $C$ distinct groups where $C$ is the number of classes in the dataset. We then compute the “clustering accuracy”, which is simply the accuracy corresponding to the optimal one-to-one mapping of cluster IDs and classes (Xie et al., 2016).
127
+
128
+ Our results are shown in table 3. On both MNIST and SVHN, ACAI achieved the best or second-best performance for both $d _ { z } = 3 2$ and $d _ { z } = 2 5 6$ . We do not report results on CIFAR-10 because all of the autoencoders we studied achieved a near-random clustering accuracy. Previous efforts to evaluate clustering performance on CIFAR-10 use learned feature representations from a convolutional network trained on ImageNet (Hu et al., 2017) which we believe only indirectly measures unsupervised learning capabilities.
129
+
130
+ # 5 CONCLUSION
131
+
132
+ In this paper, we have provided an in-depth perspective on interpolation in autoencoders. We proposed Adversarially Constrained Autoencoder Interpolation (ACAI), which uses a critic to encourage interpolated datapoints to be more realistic. To make interpolation a quantifiable concept, we proposed a synthetic benchmark and showed that ACAI substantially outperformed common autoencoder models. This task also yielded unexpected insights, such as that a VAE which has effectively learned the data distribution might not interpolate. We also studied the effect of improved interpolation on downstream tasks, and showed that ACAI led to improved performance for feature learning and unsupervised clustering. These findings confirm our intuition that improving the interpolation abilities of a baseline autoencoder can also produce a better learned representation for downstream tasks. However, we emphasize that we do not claim that good interpolation always implies a good representation – for example, the AAE produced smooth and realistic interpolations but fared poorly in our representations learning experiments and the denoising autoencoder had low-quality interpolations but provided a useful representation.
133
+
134
+ In future work, we are interested in investigating whether our regularizer improves the performance of autoencoders other than the standard “vanilla” autoencoder we applied it to. In this paper, we primarily focused on image datasets due to the ease of visualizing interpolations, but we are also interested in applying these ideas to non-image datasets.
135
+
136
+ # REFERENCES
137
+
138
+ Sanjeev Arora, Rong Ge, Yingyu Liang, Tengyu Ma, and Yi Zhang. Generalization and equilibrium in generative adversarial nets (gans). In International Conference on Machine Learning, 2017.
139
+
140
+ Yoshua Bengio, Pascal Lamblin, Dan Popovici, and Hugo Larochelle. Greedy layer-wise training of deep networks. In Advances in neural information processing systems, 2007.
141
+
142
+ Yoshua Bengio, Nicholas Leonard, and Aaron Courville. Estimating or propagating gradients through ´ stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013a.
143
+
144
+ Yoshua Bengio, Gregoire Mesnil, Yann Dauphin, and Salah Rifai. Better mixing via deep representa- ´ tions. In International Conference on Machine Learning, 2013b.
145
+
146
+ Herve Bourlard and Yves Kamp. Auto-association by multilayer perceptrons and singular value ´ decomposition. Biological cybernetics, 59(4-5), 1988.
147
+
148
+ 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.
149
+
150
+ Shan Carter and Michael Nielsen. Using artificial intelligence to augment human intelligence. Distill, 2017. https://distill.pub/2017/aia.
151
+
152
+ Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in neural information processing systems, pp. 2172–2180, 2016a.
153
+
154
+ Xi Chen, Diederik P. Kingma, Tim Salimans, Yan Duan, Prafulla Dhariwal, John Schulman, Ilya Sutskever, and Pieter Abbeel. Variational lossy autoencoder. arXiv preprint arXiv:1611.02731, 2016b.
155
+
156
+ Adam Coates, Andrew $\mathrm { N g }$ , and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, 2011.
157
+
158
+ Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real nvp. arXiv preprint arXiv:1605.08803, 2016.
159
+
160
+ Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Olivier Mastropietro, Alex Lamb, Martin Arjovsky, and Aaron Courville. Adversarially learned inference. arXiv preprint arXiv:1606.00704, 2016.
161
+
162
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, 2014.
163
+
164
+ 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.
165
+
166
+ David Ha and Douglas Eck. A neural representation of sketch drawings. In Sixth International Conference on Learning Representations, 2018.
167
+
168
+ Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. In Fifth International Conference on Learning Representations, 2017.
169
+
170
+ Weihua Hu, Takeru Miyato, Seiya Tokui, Eiichi Matsumoto, and Masashi Sugiyama. Learning discrete representations via information maximizing self augmented training. arXiv preprint arXiv:1702.08720, 2017.
171
+
172
+ Ferenc Huszar. Gaussian distributions are soap bubbles. ´ inFERENCe, 2017.
173
+
174
+ Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In Third International Conference on Learning Representations, 2014.
175
+
176
+ Diederik P. Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In Advances in Neural Information Processing Systems, 2016.
177
+
178
+ Andreas Krause, Pietro Perona, and Ryan G. Gomes. Discriminative clustering by regularized information maximization. In Advances in neural information processing systems, 2010.
179
+
180
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
181
+
182
+ Yann LeCun. The mnist database of handwritten digits. 1998.
183
+
184
+ Shuang Liu, Olivier Bousquet, and Kamalika Chaudhuri. Approximation and convergence properties of generative adversarial learning. In Advances in Neural Information Processing Systems, 2017.
185
+
186
+ Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015.
187
+
188
+ Andrew L. Maas, Awni Y. Hannun, and Andrew Y. Ng. Rectifier nonlinearities improve neural network acoustic models. In International Conference on Machine Learning, 2013.
189
+
190
+ James MacQueen. Some methods for classification and analysis of multivariate observations. In Proceedings of 5th Berkeley Symposium on Mathematical Statistics and Probability, 1967.
191
+
192
+ Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. arXiv preprint arXiv:1511.05644, 2015.
193
+
194
+ Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In IEEE International Conference on Computer Vision, 2017.
195
+
196
+ Michael F. Mathieu, Junbo Jake Zhao, Aditya Ramesh, Pablo Sprechmann, and Yann LeCun. Disentangling factors of variation in deep representation using adversarial training. In Advances in Neural Information Processing Systems, 2016.
197
+
198
+ Lars Mescheder, Sebastian Nowozin, and Andreas Geiger. Adversarial variational bayes: Unifying variational autoencoders and generative adversarial networks. arXiv preprint arXiv:1701.04722, 2017.
199
+
200
+ Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, 2011.
201
+
202
+ Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. Distill, 2016. URL http://distill.pub/2016/deconv-checkerboard.
203
+
204
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
205
+
206
+ Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International Conference on Machine Learning, 2014.
207
+
208
+ Adam Roberts, Jesse Engel, Colin Raffel, Curtis Hawthorne, and Douglas Eck. A hierarchical latent vector model for learning long-term structure in music. arXiv preprint arXiv:1803.05428, 2018.
209
+
210
+ Aurko Roy, Ashish Vaswani, Arvind Neelakantan, and Niki Parmar. Theory and experiments on vector quantized autoencoders. arXiv preprint arXiv:1805.11063, 2018.
211
+
212
+ 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, 2016.
213
+
214
+ Ilya Tolstikhin, Olivier Bousquet, Sylvain Gelly, and Bernhard Schoelkopf. Wasserstein auto-encoders. In Fifth International Conference on Learning Representations, 2017.
215
+
216
+ Jakub M. Tomczak and Max Welling. Improving variational auto-encoders using householder flow. arXiv preprint arXiv:1611.09630, 2016.
217
+
218
+ Jakub M. Tomczak and Max Welling. Vae with a vampprior. arXiv preprint arXiv:1705.07120, 2017.
219
+
220
+ 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, 2016.
221
+
222
+ Aaron van den Oord, Oriol Vinyals, et al. Neural discrete representation learning. In Advances in Neural Information Processing Systems, pp. 6309–6318, 2017.
223
+
224
+ Vikas Verma, Alex Lamb, Christopher Beckham, Aaron Courville, Ioannis Mitliagkis, and Yoshua Bengio. Manifold mixup: Encouraging meaningful on-manifold interpolation as a regularizer. arXiv preprint arXiv:1806.05236, 2018.
225
+
226
+ Pascal Vincent, Hugo Larochelle, Isabelle Lajoie, Yoshua Bengio, and Pierre-Antoine Manzagol. Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion. Journal of Machine Learning Research, 11, 2010.
227
+
228
+ Tom White. Sampling generative networks: Notes on a few effective techniques. arXiv preprint arXiv:1609.04468, 2016.
229
+
230
+ Junyuan Xie, Ross Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering analysis. In International conference on machine learning, pp. 478–487, 2016.
231
+
232
+ Shengjia Zhao, Jiaming Song, and Stefano Ermon. InfoVAE: Information maximizing variational autoencoders. arXiv preprint arXiv:1706.02262, 2017.
233
+
234
+ ![](images/8ad93aefd87dcaa05eb84f1109f9c8f406de2bea636705b07a2b75aadbe8716f.jpg)
235
+ Figure 4: Examples of data and interpolations from our synthetic lines dataset. (a) 16 random samples from the dataset. (b) A perfect interpolation from $\Lambda = { ^ { 1 1 \pi } } / { _ { 1 4 } }$ to 0. (c) Interpolating in data space rather than “semantic” or latent space. Clearly, interpolating in this way produces points not on the data manifold. (d) An interpolation which abruptly changes from one image to the other, rather than smoothly changing. (e) A smooth interpolation which takes a longer path from the start to end point than necessary. (f) An interpolation which takes the correct path but where intermediate points are not realistic.
236
+
237
+ # A LINE BENCHMARK
238
+
239
+ # A.1 EXAMPLE INTERPOLATIONS
240
+
241
+ Some example data and interpolations for our synthetic lines benchmark are shown in fig. 4. Full discussion of this benchmark is available in section 3.1.
242
+
243
+ # A.2 EVALUATION METRICS
244
+
245
+ We define our Mean Distance and Smoothness metrics as follows: Let $x _ { 1 }$ and $x _ { 2 }$ be two input images we are interpolating between and
246
+
247
+ $$
248
+ \hat { x } _ { n } = g _ { \phi } \left( \frac { n - 1 } { N - 1 } z _ { 1 } + \left( 1 - \frac { n - 1 } { N - 1 } \right) z _ { 2 } \right)
249
+ $$
250
+
251
+ be the decoded point corresponding to mixing $x _ { 1 }$ and $x _ { 2 }$ ’s latent codes using coefficient $\alpha = { \mathfrak { n } } - 1 / { \mathfrak { N } } - 1$ The images $\hat { x } _ { n } , n \in \{ 1 , \ldots , N \}$ then comprise a length- $N$ interpolation between $x _ { 1 }$ and $x _ { 2 }$ . To produce our evaluation metrics, we first find the closest true datapoint (according to cosine distance) for each of the $N$ intermediate images along the interpolation. Finding the closest image among all possible line images is infeasible; instead we first generate a size- $D$ collection of line images $\mathcal { D }$ with corresponding angles $\Lambda _ { q } , q \in \{ 1 , \ldots , D \}$ spaced evenly between 0 and $2 \pi$ . Then, we match each image in the interpolation to a real datapoint by finding
252
+
253
+ $$
254
+ \begin{array} { c } { { C _ { n , q } = 1 - \frac { { \hat { x } _ { n } } { \mathcal { D } _ { q } } } { \| \hat { x } _ { n } \| \| { \mathcal { D } _ { q } } \| } } } \\ { { q _ { n } ^ { \star } = \arg \underset { q } { \operatorname* { m i n } } C _ { n , q } } } \end{array}
255
+ $$
256
+
257
+ for $n \in \{ 1 , \ldots , N \}$ , where $C _ { n , q }$ is the cosine distance between ${ \hat { x } } _ { n }$ and the $q$ th entry of $\mathcal { D }$ . To capture the notion of “intermediate points look realistic”, we compute
258
+
259
+ $$
260
+ \operatorname { M e a n } \operatorname { D i s t a n c e } ( \left\{ { \hat { x } } _ { 1 } , { \hat { x } } _ { 2 } , \ldots , { \hat { x } } _ { N } \right\} ) = { \frac { 1 } { N } } \sum _ { n = 1 } ^ { N } C _ { n , q _ { n } ^ { \star } }
261
+ $$
262
+
263
+ We now define a perfectly smooth interpolation to be one which consists of lines with angles which linearly move from the angle of $\mathcal { D } _ { q _ { 1 } ^ { \star } }$ to that of $\mathcal { D } _ { \boldsymbol { q } _ { N } ^ { \star } }$ . Note that if, for example, the interpolated lines go from $\Lambda _ { q _ { 1 } ^ { \star } } = \pi / 1 0$ to $\Lambda _ { q _ { N } ^ { \star } } = { } ^ { 1 9 \pi } / 1 0$ then the angles corresponding to the shortest path will have a discontinuity from 0 to $2 \pi$ . To avoid this, we first “unwrap” the angles $\{ \Lambda _ { q _ { 1 } ^ { \star } } , \ldots , \Lambda _ { q _ { N } ^ { \star } } \}$ by removing discontinuities larger than $\pi$ by adding multiples of $\pm 2 \pi$ when the absolute difference between $\Lambda _ { q _ { n - 1 } ^ { \star } }$ and $\Lambda _ { { q } _ { n } ^ { \star } }$ is greater than $\pi$ to produce the angle sequence $\{ \tilde { \Lambda } _ { q _ { 1 } ^ { \star } } , \ldots , \tilde { \Lambda } _ { q _ { N } ^ { \star } } \}$ .2 Then, we define a measure of smoothness as
264
+
265
+ $$
266
+ \mathrm { S m o o t h n e s s } \big ( \big \{ \hat { x } _ { 1 } , \hat { x } _ { 2 } , . . . , \hat { x } _ { N } \big \} \big ) = \frac { 1 } { \vert \tilde { \Lambda } _ { q _ { 1 } ^ { * } } - \tilde { \Lambda } _ { q _ { N } ^ { * } } \vert } \operatorname* { m a x } _ { n \in \{ 1 , . . . , N - 1 \} } \Big ( \tilde { \Lambda } _ { q _ { n + 1 } ^ { * } } - \tilde { \Lambda } _ { q _ { n } ^ { * } } \Big ) - \frac { 1 } { N - 1 }
267
+ $$
268
+
269
+ In other words, we measure the how much larger the largest change in (normalized) angle is compared to the minimum possible value $\left( { } ^ { 1 } / ( N { - } 1 ) \right)$ .
270
+
271
+ By way of example, figs. 4b, 4d and 4e would all achieve Mean Distance scores near zero and figs. 4c and 4f would achieve larger Mean Distance scores. Figures 4b and 4f would achieve Smoothness scores near zero, figs. 4c and 4d have poor Smoothness, and fig. $_ { 4 \mathrm { e } }$ is in between.
272
+
273
+ # B BASE MODEL ARCHITECTURE AND TRAINING PROCEDURE
274
+
275
+ All of the autoencoder models we studied in this paper used the following architecture and training procedure: The encoder consists of blocks of two consecutive $3 \times 3$ convolutional layers followed by $2 \times 2$ average pooling. All convolutions (in the encoder and decoder) are zero-padded so that the input and output height and width are equal. The number of channels is doubled before each average pooling layer. Two more $3 \times 3$ convolutions are then performed, the last one without activation and the final output is used as the latent representation. All convolutional layers except for the final use a leaky ReLU nonlinearity (Maas et al., 2013). For experiments on the synthetic “lines” task, the convolution-average pool blocks are repeated 4 times until we reach a latent dimensionality of 64. For subsequent experiments on real datasets (section 4), we repeat the blocks 3 times, resulting in a latent dimensionality of 256.
276
+
277
+ The decoder consists of blocks of two consecutive $3 \times 3$ convolutional layers with leaky ReLU nonlinearities followed by $2 \times 2$ nearest neighbor upsampling (Odena et al., 2016). The number of channels is halved after each upsampling layer. These blocks are repeated until we reach the target resolution $3 2 \times 3 2$ in all experiments). Two more $3 \times 3$ convolutions are then performed, the last one without activation and with a number of channels equal to the number of desired colors.
278
+
279
+ All parameters are initialized as zero-mean Gaussian random variables with a standard deviation of $1 / \sqrt { \tan \_ { - } \mathrm { i n } ( 1 + 0 . 2 ^ { 2 } ) }$ set in accordance with the leaky ReLU slope of 0.2. Models are trained on $2 ^ { 2 4 }$ samples in batches of size 64. Parameters are optimized with Adam (Kingma & Welling, 2014) with a learning rate of 0.0001 and default values for $\beta _ { 1 } , \beta _ { 2 }$ , and $\epsilon$ .
280
+
281
+ # C VAE SAMPLES ON THE LINE BENCHMARK
282
+
283
+ In fig. 5, we show some samples from our VAE trained on the synthetic line benchmark. The VAE generally produces realistic samples and seems to cover the data distribution well, despite the fact that it does not produce high-quality interpolations (fig. 3c).
284
+
285
+ # D INTERPOLATION EXAMPLES ON REAL DATA
286
+
287
+ In this section, we provide a series of figures (figs. 6 to 11) showing interpolation behavior for the different autoencoders we studied. Further discussion of these results is available in section 3.3
288
+
289
+ ![](images/011b1d5ca5a163871496158859d0e142b9e53ddb0eae4efef60407763041d635.jpg)
290
+ Figure 5: Samples from a VAE trained on the lines dataset described in section 3.1.
291
+
292
+ ![](images/db363f651bed0df99d894ff8748b176860a5645e01396365f1bbaccac330a733.jpg)
293
+ Figure 6: Example interpolations on MNIST with a latent dimensionality of 32 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders.
294
+
295
+ ![](images/2efdc3a2b3e2b708fcdafcc88768f0d53ebfd36bbc3051aecfbd180d1f170ce1.jpg)
296
+ Figure 7: Example interpolations on MNIST with a latent dimensionality of 256 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders.
297
+
298
+ ![](images/47de7ca907daaf8fc9e0bdbadba83520b961226907f1b5076ae26acedb1b1e9c.jpg)
299
+ Figure 8: Example interpolations on SVHN with a latent dimensionality of 32 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders.
300
+
301
+ ![](images/d6ad7a3f626f887a67a272b156817696c598021ea8e689ebd4cd30406740f6d4.jpg)
302
+ Figure 9: Example interpolations on SVHN with a latent dimensionality of 256 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders.
303
+
304
+ ![](images/4c48de8b1f74145157c8b8b7cfe6d11bfa33d99734117c359409d43734b2424d.jpg)
305
+ Figure 10: Example interpolations on CelebA with a latent dimensionality of 32 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders.
306
+
307
+ ![](images/63948b88054bf695f2323771a5e64557140ff80440ce0329caa06dd514cc8482.jpg)
308
+ Figure 11: Example interpolations on CelebA with a latent dimensionality of 256 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders.
parse/train/S1fQSiCcYm/S1fQSiCcYm_content_list.json ADDED
@@ -0,0 +1,1674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "UNDERSTANDING AND IMPROVING INTERPOLATION IN AUTOENCODERS VIA AN ADVERSARIAL REGULARIZER ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "David Berthelot∗ Google Brain dberth@google.com ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 352,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Colin Raffel∗ \nGoogle Brain \ncraffel@gmail.com \nAurko Roy \nGoogle Brain \naurkor@google.com \nIan Goodfellow \nGoogle Brain \ngoodfellow@google.com ",
28
+ "bbox": [
29
+ 413,
30
+ 170,
31
+ 584,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "",
39
+ "bbox": [
40
+ 643,
41
+ 170,
42
+ 813,
43
+ 212
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "",
50
+ "bbox": [
51
+ 183,
52
+ 233,
53
+ 392,
54
+ 275
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "ABSTRACT ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 454,
64
+ 311,
65
+ 544,
66
+ 327
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Autoencoders provide a powerful framework for learning compressed representations by encoding all of the information needed to reconstruct a data point in a latent code. In some cases, autoencoders can “interpolate”: By decoding the convex combination of the latent codes for two datapoints, the autoencoder can produce an output which semantically mixes characteristics from the datapoints. In this paper, we propose a regularization procedure which encourages interpolated outputs to appear more realistic by fooling a critic network which has been trained to recover the mixing coefficient from interpolated data. We then develop a simple benchmark task where we can quantitatively measure the extent to which various autoencoders can interpolate and show that our regularizer dramatically improves interpolation in this setting. We also demonstrate empirically that our regularizer produces latent codes which are more effective on downstream tasks, suggesting a possible link between interpolation abilities and learning useful representations. ",
73
+ "bbox": [
74
+ 233,
75
+ 344,
76
+ 766,
77
+ 525
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 INTRODUCTION ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 176,
87
+ 554,
88
+ 336,
89
+ 569
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "One goal of unsupervised learning is to uncover the underlying structure of a dataset without using explicit labels. A common architecture used for this purpose is the autoencoder, which learns to map datapoints to a latent code from which the data can be recovered with minimal information loss. Typically, the latent code is lower dimensional than the data, which indicates that autoencoders can perform some form of dimensionality reduction. For certain architectures, the latent codes have been shown to disentangle important factors of variation in the dataset which makes such models useful for representation learning (Chen et al., 2016a; Higgins et al., 2017). In the past, they were also used for pre-training other networks by being trained on unlabeled data and then being stacked to initialize a deep network (Bengio et al., 2007; Vincent et al., 2010). More recently, it was shown that imposing a prior on the latent space allows autoencoders to be used for probabilistic or generative modeling (Kingma & Welling, 2014; Rezende et al., 2014; Makhzani et al., 2015). ",
96
+ "bbox": [
97
+ 174,
98
+ 587,
99
+ 825,
100
+ 738
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In some cases, autoencoders have shown the ability to interpolate. Specifically, by mixing codes in latent space and decoding the result, the autoencoder can produce a semantically meaningful combination of the corresponding datapoints. Interpolation has been frequently reported as a qualitative experimental result in studies about autoencoders (Dumoulin et al., 2016; Bowman et al., 2015; Roberts et al., 2018; Mescheder et al., 2017; Mathieu et al., 2016; Ha & Eck, 2018) and latent-variable generative models in general (Dinh et al., 2016; Radford et al., 2015; van den Oord et al., 2016). The ability to interpolate can be useful in its own right e.g. for creative applications (Carter & Nielsen, 2017). However, it also indicates that the autoencoder can “extrapolate” beyond the training data and has learned a latent space with a particular structure. Specifically, if interpolating between two points in latent space produces a smooth semantic warping in data space, this suggests that nearby points in latent space are semantically similar. A visualization of this idea is shown in fig. 1, where a smooth interpolation between a “2” and a “9” suggests that the 2 is surrounded by semantically similar points, i.e. other 2s. This property may suggest that an autoencoder which interpolates well could also provide a good learned representation for downstream tasks because similar points are clustered. If the interpolation is not smooth, there may be “discontinuities” in latent space which could result in the representation being less useful as a learned feature. This connection between interpolation and a “flat” data manifold has been explored in the context of unsupervised representation learning (Bengio et al., 2013b) and regularization (Verma et al., 2018). ",
107
+ "bbox": [
108
+ 174,
109
+ 746,
110
+ 825,
111
+ 898
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/5630761622d92221bde976e9ee4da80f4d47ac78ed0050620eafd2c13a506e28.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Successful interpolation suggests that semantically similar points may be clustered together in latent space. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 176,
124
+ 101,
125
+ 336,
126
+ 196
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "image",
132
+ "img_path": "images/611fdc6f66b401e9eaa12590a538cddbffa0dc1156d6e0afd94a714f10b7e1a2.jpg",
133
+ "image_caption": [
134
+ "Figure 2: Adversarially Constrained Autoencoder Interpolation (ACAI). A critic network is fed interpolants and reconstructions and tries to predict the interpolation coefficient $\\alpha$ corresponding to its input (with $\\alpha = 0$ for reconstructions). The autoencoder is trained to fool the critic into outputting $\\alpha = 0$ for interpolants. "
135
+ ],
136
+ "image_footnote": [],
137
+ "bbox": [
138
+ 351,
139
+ 103,
140
+ 818,
141
+ 189
142
+ ],
143
+ "page_idx": 1
144
+ },
145
+ {
146
+ "type": "text",
147
+ "text": "",
148
+ "bbox": [
149
+ 173,
150
+ 319,
151
+ 825,
152
+ 417
153
+ ],
154
+ "page_idx": 1
155
+ },
156
+ {
157
+ "type": "text",
158
+ "text": "Given the widespread use of interpolation as a qualitative measure of autoencoder performance, we believe additional investigation into the connection between interpolation and representation learning is warranted. Our goal in this paper is threefold: First, we introduce a regularization strategy with the specific goal of encouraging improved interpolations in autoencoders (section 2); second, we develop a synthetic benchmark where the slippery concept of a “semantically meaningful interpolation” is quantitatively measurable (section 3.1) and evaluate common autoencoders on this task (section 3.2); and third, we confirm the intuition that good interpolation can result in a useful representation by showing that the improved interpolation ability produced by our regularizer elicits improved representation learning performance on downstream tasks (section 4). We also make our codebase available1 which provides a unified implementation of many common autoencoders including our proposed regularizer. ",
159
+ "bbox": [
160
+ 173,
161
+ 424,
162
+ 825,
163
+ 577
164
+ ],
165
+ "page_idx": 1
166
+ },
167
+ {
168
+ "type": "text",
169
+ "text": "2 AN ADVERSARIAL REGULARIZER FOR IMPROVING INTERPOLATIONS ",
170
+ "text_level": 1,
171
+ "bbox": [
172
+ 173,
173
+ 627,
174
+ 777,
175
+ 645
176
+ ],
177
+ "page_idx": 1
178
+ },
179
+ {
180
+ "type": "text",
181
+ "text": "Autoencoders, also called auto-associators (Bourlard & Kamp, 1988), consist of the following structure: First, an input $x \\in \\mathbb { R } ^ { d _ { x } }$ is passed through an “encoder” $z = f _ { \\boldsymbol { \\theta } } ( x )$ parametrized by $\\theta$ to obtain a latent code $z \\in \\mathbb { R } ^ { d _ { z } }$ . The latent code is then passed through a “decoder” $\\hat { x } = g _ { \\phi } ( z )$ parametrized by $\\phi$ to produce an approximate reconstruction $\\hat { \\boldsymbol { x } } \\in \\mathbb { R } ^ { d _ { x } }$ of the input $x$ . We consider the case where $f _ { \\theta }$ and $g _ { \\phi }$ are implemented as multi-layer neural networks. The encoder and decoder are trained simultaneously (i.e. with respect to $\\theta$ and $\\phi$ ) to minimize some notion of distance between the input $x$ and the output $\\hat { x }$ , for example the squared $L _ { 2 }$ distance $\\| x - { \\hat { x } } \\| ^ { 2 }$ . ",
182
+ "bbox": [
183
+ 174,
184
+ 678,
185
+ 825,
186
+ 779
187
+ ],
188
+ "page_idx": 1
189
+ },
190
+ {
191
+ "type": "text",
192
+ "text": "Interpolating using an autoencoder describes the process of using the decoder $g _ { \\phi }$ to decode a mixture of two latent codes. Typically, the latent codes are combined via a convex combination, so that interpolation amounts to computing $\\hat { x } _ { \\alpha } = g _ { \\phi } ( \\alpha z _ { 1 } + ( 1 - \\alpha ) z _ { 2 } )$ for some $\\alpha \\in [ 0 , 1 ]$ where $z _ { 1 } = f _ { \\theta } ( x _ { 1 } )$ and $z _ { 2 } = f _ { \\theta } ( x _ { 2 } )$ are the latent codes corresponding to data points $x _ { 1 }$ and $x _ { 2 }$ . We also experimented with spherical interpolation which has been used in settings where the latent codes are expected to have spherical structure (Huszar, 2017; White, 2016; Roberts et al., 2018), but found it made no ´ discernible difference in practice for any autoencoder we studied. Ideally, adjusting $\\alpha$ from 0 to 1 will produce a sequence of realistic datapoints where each subsequent $\\hat { x } _ { \\alpha }$ is progressively less semantically similar to $x _ { 1 }$ and more semantically similar to $x _ { 2 }$ . The notion of “semantic similarity” is problem-dependent and ill-defined; we discuss this further in section 3. ",
193
+ "bbox": [
194
+ 174,
195
+ 785,
196
+ 825,
197
+ 924
198
+ ],
199
+ "page_idx": 1
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "2.1 ADVERSARIALLY CONSTRAINED AUTOENCODER INTERPOLATION (ACAI)",
204
+ "bbox": [
205
+ 176,
206
+ 103,
207
+ 730,
208
+ 117
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "As mentioned above, a high-quality interpolation should have two characteristics: First, that intermediate points along the interpolation are indistinguishable from real data; and second, that the intermediate points provide a semantically smooth morphing between the endpoints. The latter characteristic is hard to enforce because it requires defining a notion of semantic similarity for a given dataset, which is often hard to explicitly codify. So instead, we propose a regularizer which encourages interpolated datapoints to appear realistic, or more specifically, to appear indistinguishable from reconstructions of real datapoints. We find empirically that this constraint results in realistic and smooth interpolations in practice (section 3.1) in addition to providing improved performance on downstream tasks (section 4). ",
215
+ "bbox": [
216
+ 174,
217
+ 128,
218
+ 825,
219
+ 255
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "To enforce this constraint we introduce a critic network (Goodfellow et al., 2014) which is fed interpolations of existing datapoints (i.e. $\\hat { x } _ { \\alpha }$ as defined above). Its goal is to predict $\\alpha$ from $\\hat { x } _ { \\alpha }$ , i.e. to predict the mixing coefficient used to generate its input. When training the model, for each pair of training data points we randomly sample a value of $\\alpha$ to produce $\\hat { x } _ { \\alpha }$ . In order to resolve the ambiguity between predicting $\\alpha$ and $1 - \\alpha$ , we constrain $\\alpha$ to the range $[ 0 , 0 . 5 ]$ when feeding $\\hat { x } _ { \\alpha }$ to the critic. In contrast, the autoencoder is trained to fool the critic to think that $\\alpha$ is always zero. This is achieved by adding an additional term to the autoencoder’s loss to optimize its parameters to fool the critic. In a loose sense, the critic can be seen as approximating an “adversarial divergence” (Liu et al., 2017; Arora et al., 2017) between reconstructions and interpolants which the autoencoder tries to minimize. ",
226
+ "bbox": [
227
+ 174,
228
+ 261,
229
+ 825,
230
+ 387
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "Formally, let $d _ { \\omega } ( x )$ be the critic network, which for a given input produces a scalar value. The critic is trained to minimize ",
237
+ "bbox": [
238
+ 174,
239
+ 393,
240
+ 823,
241
+ 421
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "equation",
247
+ "img_path": "images/d194f9f93a1aa48e2682e8b301065a90f91c6977cf54be04ac8bfbad0bf69e3d.jpg",
248
+ "text": "$$\n\\mathcal { L } _ { d } = \\| d _ { \\omega } ( \\hat { x } _ { \\alpha } ) - \\alpha \\| ^ { 2 } + \\| d _ { \\omega } ( \\gamma x + ( 1 - \\gamma ) \\hat { x } ) \\| ^ { 2 }\n$$",
249
+ "text_format": "latex",
250
+ "bbox": [
251
+ 338,
252
+ 426,
253
+ 658,
254
+ 444
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "where, as above, $\\hat { x } _ { \\alpha } = g _ { \\phi } ( \\alpha f _ { \\theta } ( x _ { 1 } ) + ( 1 - \\alpha ) f _ { \\theta } ( x _ { 2 } ) )$ , $\\hat { x } = g _ { \\phi } ( f _ { \\theta } ( x ) )$ for some $x$ (not necessarily $x _ { 1 }$ or $x _ { 2 }$ ), and $\\gamma$ is a scalar hyperparameter. The first term trains the critic to recover $\\alpha$ from $\\hat { x } _ { \\alpha }$ . The second term serves as a regularizer with two functions: First, it enforces that the critic consistently outputs 0 for non-interpolated inputs; and second, by interpolating between $x$ and $\\hat { x }$ (the autoencoder’s reconstruction of $x$ ) in data space it ensures the critic is exposed to realistic data even when the autoencoder’s reconstructions are poor. We found the second term was not crucial for our approach, but helped stabilize the convergence of the autoencoder and allowed us to use consistent hyperparameters and architectures across all datasets and experiments. The autoencoder’s loss function is modified by adding a regularization term: ",
261
+ "bbox": [
262
+ 173,
263
+ 448,
264
+ 825,
265
+ 574
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "equation",
271
+ "img_path": "images/bf67f9b63c1611c043daf133c296cd22981851839fc04df636da3ec08b8e3bc3.jpg",
272
+ "text": "$$\n\\mathcal { L } _ { f , g } = \\Vert x - g _ { \\phi } ( f _ { \\theta } ( x ) ) \\Vert ^ { 2 } + \\lambda \\Vert d _ { \\omega } ( \\hat { x } _ { \\alpha } ) \\Vert ^ { 2 }\n$$",
273
+ "text_format": "latex",
274
+ "bbox": [
275
+ 359,
276
+ 578,
277
+ 637,
278
+ 597
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "where $\\lambda$ is a scalar hyperparameter which controls the weight of the regularization term. Note that the regularization term is effectively trying to make the critic output 0 regardless of the value of $\\alpha$ , thereby “fooling” the critic into thinking that an interpolated input is non-interpolated (i.e., having $\\alpha = 0$ ). The parameters $\\theta$ and $\\phi$ are optimized with respect to $\\mathcal { L } _ { f , g }$ (which gives the autoencoder access to the critic’s gradients) and $\\omega$ is optimized with respect to $\\mathcal { L } _ { d }$ . We refer to the use of this regularizer as Adversarially Constrained Autoencoder Interpolation (ACAI). A diagram of the ACAI is shown in fig. 2. Assuming an effective critic, the autoencoder successfully “wins” this adversarial game by producing interpolated points which are indistinguishable from reconstructed data. We find in practice that encouraging this behavior also produces semantically smooth interpolations and improved representation learning performance, which we demonstrate in the following sections. Our loss function is similar to the one used in the Least Squares Generative Adversarial Network (Mao et al., 2017) in the sense that they both measure the distance between a critic’s output and a scalar using a squared L2 loss. However, they are substantially different in that ours is used as a regularizer for autoencoders rather than for generative modeling and our critic attempts to regress the interpolation coefficient $\\alpha$ instead of a fixed scalar hyperparameter. ",
285
+ "bbox": [
286
+ 173,
287
+ 602,
288
+ 825,
289
+ 810
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "Note that the only thing ACAI encourages is that interpolated points appear realistic. The critic only ever sees a single reconstruction or interpolant at a time; it is never fed real datapoints or latent vectors. It therefore will only be able to successfully recover $\\alpha$ if the quality of the autoencoder’s output degrades consistently across an interpolation as a function of $\\alpha$ (as seen, for example, in fig. 3a where interpolated points become successively blurrier and darker). ACAI’s primary purpose is to discourage this behavior. In doing so, it may implicitly modify the structure of the latent space learned by the autoencoder, but ACAI itself does not directly impose a specific structure. Our goal in introducing ACAI is to test whether simply encouraging better interpolation behavior produces a better representation for downstream tasks. Further, in contrast with the standard Generative Adversarial Network (GAN) setup (Goodfellow et al., 2014), ACAI does not distinguish between “real” and “fake” data; rather, it simply attempts to regress the interpolation coefficient $\\alpha$ . Furthermore, GANs are a generative modeling technique, not a representation learning technique; in this paper, we focus on autoencoders and their ability to learn useful representations. ",
296
+ "bbox": [
297
+ 174,
298
+ 816,
299
+ 825,
300
+ 900
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "",
307
+ "bbox": [
308
+ 173,
309
+ 103,
310
+ 825,
311
+ 200
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "3 AUTOENCODERS, AND HOW THEY INTERPOLATE ",
318
+ "text_level": 1,
319
+ "bbox": [
320
+ 174,
321
+ 227,
322
+ 614,
323
+ 243
324
+ ],
325
+ "page_idx": 3
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "How can we measure whether an autoencoder interpolates effectively and whether our proposed regularization strategy achieves its stated goal? As mentioned in section 2, defining interpolation relies on the notion of “semantic similarity” which is a vague and problem-dependent concept. For example, a definition of interpolation along the lines of $^ { \\mathrm { \\infty } } \\alpha z _ { 1 } \\mathrm { ~ + ~ } ( 1 - \\mathrm { \\bar { \\alpha } } ) z _ { 2 }$ should map to $\\alpha x _ { 1 } \\bar { + } ( 1 - \\alpha ) { x _ { 2 } } ^ { \\bar { \\gamma } }$ is overly simplistic because interpolating in “data space” often does not result in realistic datapoints – in images, this corresponds to simply fading between the pixel values of the two images. Instead, we might hope that our autoencoder smoothly morphs between salient characteristics of $x _ { 1 }$ and $x _ { 2 }$ , even when they are dissimilar. Put another way, we might hope that decoded points along the interpolation smoothly traverse the underlying manifold of the data instead of simply interpolating in data space. However, we rarely have access to the underlying data manifold. To make this problem more concrete, we introduce a simple benchmark task where the data manifold is simple and known a priori which makes it possible to quantify interpolation quality. We then evaluate the ability of various common autoencoders to interpolate on our benchmark. Finally, we test ACAI on our benchmark and show that it exhibits dramatically improved performance and qualitatively superior interpolations. ",
330
+ "bbox": [
331
+ 174,
332
+ 262,
333
+ 826,
334
+ 455
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "3.1 AUTOENCODING LINES ",
341
+ "text_level": 1,
342
+ "bbox": [
343
+ 176,
344
+ 478,
345
+ 377,
346
+ 492
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "Given that the concept of interpolation is difficult to pin down, our goal is to define a task where a “correct” interpolation between two datapoints is unambiguous and well-defined. This will allow us to quantitatively evaluate the extent to which different autoencoders can successfully interpolate. Towards this goal, we propose the task of autoencoding $3 2 \\times 3 2$ grayscale images of lines. We consider 16-pixel-long lines beginning from the center of the image and extending outward at an angle $\\Lambda \\in [ 0 , 2 \\pi ]$ (or put another way, lines are radii of the circle circumscribed within the image borders). An example of 16 such images is shown in fig. 4a (appendix A.1). In this task, the data manifold can be defined entirely by a single variable: $\\Lambda$ . We can therefore define a valid interpolation from $x _ { 1 }$ to $x _ { 2 }$ as one which smoothly and linearly adjusts $\\Lambda$ from the angle of the line in $x _ { 1 }$ to the angle in $x _ { 2 }$ . We further require that the interpolation traverses the shortest path possible along the data manifold. We provide some concrete examples of good and bad interpolations, shown and described in appendix A.1. ",
353
+ "bbox": [
354
+ 174,
355
+ 507,
356
+ 825,
357
+ 672
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "On any dataset, our desiderata for a successful interpolation are that intermediate points look realistic and provide a semantically meaningful morphing between its endpoints. On this synthetic lines dataset, we can formalize these notions as specific evaluation metrics, which we describe in detail in appendix A.2. To summarize, we propose two metrics: Mean Distance and Smoothness. Mean Distance measures the average distance between interpolated points and “real” datapoints. Smoothness measures whether the angles of the interpolated lines follow a linear trajectory between the angle of the start and endpoint. Both of these metrics are simple to define due to our construction of a dataset where we exactly know the data distribution and manifold; we provide a full definition and justification in appendix A.2. A perfect alignment would achieve 0 for both scores; larger values indicate a failure to generate realistic interpolated points or produce a smooth interpolation respectively. By choosing a synthetic benchmark where we can explicitly measure the quality of an interpolation, we can confidently evaluate different autoencoders on their interpolation abilities. ",
364
+ "bbox": [
365
+ 174,
366
+ 680,
367
+ 825,
368
+ 847
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "To evaluate an autoencoder on the synthetic lines task, we randomly sample line images during training and compute our evaluation metrics on a separate randomly-sampled test set of images. Note that we never train any autoencoder explicitly to produce an optimal interpolation; “good” interpolation is an emergent property which occurs only when the architecture, loss function, training procedure, etc. produce a suitable latent space. ",
375
+ "bbox": [
376
+ 176,
377
+ 854,
378
+ 825,
379
+ 924
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "table",
385
+ "img_path": "images/bdc8e4063a0c49e702849a7968772c01b8edb8d7f9b21bebc1464568d482d666.jpg",
386
+ "table_caption": [
387
+ "Table 1: Scores achieved by different autoencoders on the synthetic line benchmark (lower is better). "
388
+ ],
389
+ "table_footnote": [],
390
+ "table_body": "<table><tr><td>Metric</td><td>Baseline</td><td>Denoising</td><td>VAE</td><td>AAE</td><td>VQ-VAE</td><td>ACAI</td></tr><tr><td>Mean Distance ( (×10-3)</td><td>6.88±0.21</td><td>4.21±0.32</td><td>1.21±0.17</td><td>3.26±0.19</td><td>5.41±0.49</td><td>0.24±0.01</td></tr><tr><td>Smoothness</td><td>0.44±0.04</td><td>0.66±0.02</td><td>0.49±0.13</td><td>0.14±0.02</td><td>0.77±0.02</td><td>0.10±0.01</td></tr></table>",
391
+ "bbox": [
392
+ 215,
393
+ 127,
394
+ 782,
395
+ 174
396
+ ],
397
+ "page_idx": 4
398
+ },
399
+ {
400
+ "type": "image",
401
+ "img_path": "images/ec36ffc7cb437f33fb80e7cef44a912d2b91f3875e4be808b7576abc3083aa00.jpg",
402
+ "image_caption": [
403
+ "Figure 3: Interpolations on the synthetic lines benchmark produced by (a) baseline auto-encoder, (b) denoising autoencoder, (c) Variational Autoencoder, (d) Adversarial Autoencoder, (e) Vector Quantized Variational Autoencoder, (f) Adversarially Constrained Autoencoder Interpolation (our model). While we only show one example here, the behavior of each autoencoder was generally similar for all interpolations. A more comprehensive measure of interpolation behavior is given in table 1. "
404
+ ],
405
+ "image_footnote": [],
406
+ "bbox": [
407
+ 209,
408
+ 193,
409
+ 787,
410
+ 369
411
+ ],
412
+ "page_idx": 4
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "3.2 AUTOENCODERS ",
417
+ "text_level": 1,
418
+ "bbox": [
419
+ 176,
420
+ 483,
421
+ 331,
422
+ 497
423
+ ],
424
+ "page_idx": 4
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "In this section, we describe various common autoencoder structures and objectives and try them on the lines task. Our goal is to quantitatively evaluate the extent to which standard autoencoders exhibit useful interpolation behavior. Our results, which we describe below, are summarized in table 1. ",
429
+ "bbox": [
430
+ 174,
431
+ 511,
432
+ 825,
433
+ 553
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "Base Model Perhaps the most basic autoencoder structure is one which simply maps input datapoints through a “bottleneck” layer whose dimensionality is smaller than the input. In this setup, $f _ { \\theta }$ and $g _ { \\phi }$ are both neural networks which respectively map the input to a deterministic latent code $z$ and then back to a reconstructed input. Typically, $f _ { \\theta }$ and $g _ { \\phi }$ are trained simultaneously with respect to $\\| x - { \\hat { x } } \\| ^ { 2 }$ . We will use this framework as a baseline for experimentation for all of the autoencoder variants discussed below. In particular, for our base model and all of the other autoencoders we will use the model architecture and training procedure described in appendix B. As a short summary, our encoder consists of a stack of convolutional and average pooling layers, whereas the decoder consists of convolutional and nearest-neighbor upsampling layers. For experiments on the synthetic “lines” task, we use a latent dimensionality of 64. Note that, because the data manifold is effectively onedimensional, we might expect autoencoders to be able to model this dataset using a one-dimensional latent code; however, using a larger latent code reflects the realistic scenario where the latent space is larger than necessary. After training our baseline autoencoder, we achieved a Mean Distance score which was the worst (highest) of all of the autoencoders we studied, though the Smoothness was on par with various other approaches. In general, we observed some reasonable interpolations when using the baseline model, but found that the intermediate points on the interpolation were typically not realistic as seen in the example interpolation in fig. 3a. ",
440
+ "bbox": [
441
+ 174,
442
+ 570,
443
+ 826,
444
+ 808
445
+ ],
446
+ "page_idx": 4
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "Denoising Autoencoder An early modification to the standard autoencoder setup was proposed by Vincent et al. (2010), where instead of feeding $x$ into the autoencoder, a corrupted version $\\tilde { x } \\sim q ( \\tilde { x } | x )$ is sampled from the conditional probability distribution $q ( \\tilde { x } | x )$ and is fed into the autoencoder instead. The autoencoder’s goal remains to produce $\\hat { x }$ which minimizes $\\| x - { \\hat { x } } \\| ^ { 2 }$ . One justification of this approach is that the corrupted inputs should fall outside of the true data manifold, so the autoencoder must learn to map points from outside of the data manifold back onto it. This provides an implicit way of defining and learning the data manifold via the coordinate system induced by the latent space. ",
451
+ "bbox": [
452
+ 174,
453
+ 827,
454
+ 825,
455
+ 924
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "While various corruption procedures $q ( \\tilde { x } | x )$ have been used such as masking and salt-and-pepper noise, in this paper we consider the simple case of additive isotropic Gaussian noise where $\\tilde { x } \\sim$ ${ \\mathcal { N } } ( x , \\sigma ^ { 2 } I )$ and $\\sigma$ is a hyperparameter. After tuning $\\sigma$ , we found simply setting $\\sigma = 1 . 0$ to work best. Interestingly, we found the denoising autoencoder often produced “data-space” interpolation (as seen in fig. 3b) when interpolating in latent space. This resulted in comparatively poor Mean Distance and Smoothness scores. ",
462
+ "bbox": [
463
+ 174,
464
+ 103,
465
+ 825,
466
+ 186
467
+ ],
468
+ "page_idx": 5
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "Variational Autoencoder The Variational Autoencoder (VAE) (Kingma & Welling, 2014; Rezende et al., 2014) introduces the constraint that the latent code $z$ is a random variable distributed according to a prior distribution $p ( z )$ . The encoder $f _ { \\theta }$ can then be considered an approximation to the posterior $p ( z | x )$ . Then, the decoder $g _ { \\phi }$ is taken to parametrize the likelihood $p ( x \\bar { | } \\bar { z } )$ ; in all of our experiments, we consider $x$ to be Bernoulli distributed. The latent distribution constraint is enforced by an additional loss term which measures the KL divergence between approximate posterior and prior. VAEs then use log-likelihood for the reconstruction loss (cross-entropy in the case of Bernoulli-distributed data), which results in the following combined loss function: $- \\mathbb { E } [ \\log g _ { \\phi } ( z ) ] + \\mathrm { K L } ( f _ { \\theta } ( x ) | | p ( z ) )$ where the expectation is taken with respect to $z \\sim f _ { \\theta } ( x )$ and $\\mathrm { K L } ( \\cdot | | \\cdot )$ is the KL divergence. Minimizing this loss function can be considered maximizing a lower bound (the “ELBO”) on the likelihood of the training set, producing a likelihood-based generative model which allows novel data points to be sampled by first sampling $z \\sim p ( z )$ and then computing $g _ { \\phi } ( z )$ . A common choice is to let $q ( z | x )$ be a diagonalcovariance Gaussian, in which case backpropagation through sampling from $q ( z | x )$ is feasible via the “reparametrization trick” which replaces $\\bar { z } \\sim \\mathcal { N } ( \\mu , \\bar { \\sigma I } )$ with $\\epsilon \\sim \\mathcal { N } ( 0 , I ) , z = \\mu + \\sigma \\odot \\epsilon$ where $\\bar { \\mu } , \\sigma \\in \\mathbb { R } ^ { d _ { z } }$ are the predicted mean and standard deviation produced by $f _ { \\theta }$ . Various modified objectives (Higgins et al., 2017; Zhao et al., 2017), improved prior distributions (Kingma et al., 2016; Tomczak & Welling, 2016; 2017) and improved model architectures (Sønderby et al., 2016; Chen et al., 2016b; Gulrajani et al., 2016) have been proposed to better the VAE’s performance on downstream tasks, but in this paper we solely consider the “vanilla” VAE objective and prior described above applied to our baseline autoencoder structure. ",
473
+ "bbox": [
474
+ 173,
475
+ 205,
476
+ 826,
477
+ 483
478
+ ],
479
+ "page_idx": 5
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "When trained on the lines benchmark, we found the VAE was able to effectively model the data distribution (see samples, fig. 5 in appendix C) and accurately reconstruct inputs. In interpolations produced by the VAE, intermediate points tend to look realistic, but the angle of the lines do not follow a smooth or short path (fig. 3c). This resulted in a very good Mean Distance score but a very poor Smoothness score. Contrary to expectations, this suggests that desirable interpolation behavior may not follow from an effective generative model of the data distribution. ",
484
+ "bbox": [
485
+ 174,
486
+ 489,
487
+ 825,
488
+ 573
489
+ ],
490
+ "page_idx": 5
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "Adversarial Autoencoder The Adversarial Autoencoder (AAE) (Makhzani et al., 2015) proposes an alternative way of enforcing structure on the latent code. Instead of minimizing a KL divergence between the distribution of latent codes and a prior distribution, a critic network is trained in tandem with the autoencoder to predict whether a latent code comes from $f _ { \\theta }$ or from the prior $p ( z )$ . The autoencoder is simultaneously trained to reconstruct inputs (via a standard reconstruction loss) and to “fool” the critic. The autoencoder is allowed to backpropagate gradients through the critic’s loss function, but the autoencoder and critic parameters are optimized separately. This effectively computes an “adversarial divergence” between the latent code distribution and the chosen prior. This framework was later generalized and referred to as the “Wasserstein Autoencoder” (Tolstikhin et al., 2017) One advantage of this approach is that it allows for an arbitrary prior (as opposed to those which have a tractable KL divergence). The disadvantages are that the AAE no longer has a probabilistic interpretation and involves optimizing a minimax game, which can cause instabilities. ",
495
+ "bbox": [
496
+ 174,
497
+ 592,
498
+ 825,
499
+ 758
500
+ ],
501
+ "page_idx": 5
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "Using the AAE requires choosing a prior, a critic structure, and a training scheme for the critic. For simplicity, we also used a spherical Gaussian prior for the AAE. We experimented with various architectures for the critic, and found the best performance with a critic which consisted of two dense layers, each with 100 units and a leaky ReLU nonlinearity. We found it satisfactory to simply use the same optimizer and learning rate for the critic as was used for the autoencoder. On our lines benchmark, the AAE typically produced smooth interpolations, but exhibited degraded quality in the middle of interpolations (fig. 3d). This behavior produced the best Smoothness score among existing autoencoders, but a relatively poor Mean Distance score. ",
506
+ "bbox": [
507
+ 174,
508
+ 766,
509
+ 825,
510
+ 877
511
+ ],
512
+ "page_idx": 5
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "Vector Quantized Variational Autoencoder (VQ-VAE) The Vector Quantized Variational Autoencoder (VQ-VAE) was introduced by (van den Oord et al., 2017) as a way to train discrete-latent autoencoders using a learned codebook. In the VQ-VAE, the encoder $f _ { \\boldsymbol { \\theta } } ( \\boldsymbol { x } )$ produces a continuous hidden representation $z \\in \\mathbb { R } _ { z } ^ { d }$ which is then mapped to $z _ { q }$ , its nearest neighbor in a “codebook” $\\{ e _ { j } \\in \\mathbb { R } ^ { d _ { z } } , j \\in 1 , \\ldots , K \\}$ . $z _ { q }$ is then passed to the decoder for reconstruction. The encoder is trained to minimize the reconstruction loss using the straight-through gradient estimator (Bengio et al., 2013a), together with a commitment loss term $\\beta \\parallel z - \\operatorname { s g } ( z _ { q } ) \\parallel$ (where $\\beta$ is a scalar hyperparameter) which encourages encoder outputs to move closer to their nearest codebook entry. Here sg denotes the stop gradient operator, i.e. $\\ \\operatorname { s g } ( x ) = x$ in the forward pass, and $\\operatorname { s g } ( x ) = 0$ in the backward pass. The codebook entries $e _ { j }$ are updated as an exponential moving average (EMA) of the continuous latents $z$ that map to them at each training iteration. The VQ-VAE training procedure using this EMA update rule can be seen as performing the $K$ -means or the hard Expectation Maximization (EM) algorithm on the latent codes (Roy et al., 2018). ",
517
+ "bbox": [
518
+ 174,
519
+ 895,
520
+ 823,
521
+ 924
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "",
528
+ "bbox": [
529
+ 174,
530
+ 103,
531
+ 826,
532
+ 257
533
+ ],
534
+ "page_idx": 6
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "We perform interpolation in the VQ-VAE by interpolating continuous latents, mapping them to their nearest codebook entries, and decoding the result. Assuming sufficiently large codebook, a semantically “smooth” interpolation may be possible. On the lines task, we found that this procedure produced poor interpolations. Ultimately, many entries of the codebook were mapped to unrealistic datapoints, and the interpolations resembled those of the baseline autoencoder. ",
539
+ "bbox": [
540
+ 174,
541
+ 265,
542
+ 825,
543
+ 334
544
+ ],
545
+ "page_idx": 6
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "Adversarially Constrained Autoencoder Interpolation Finally, we turn to evaluating our proposed adversarial regularizer for improving interpolations. For simplicity, on the lines benchmark we found it sufficient to use a critic architecture which was equivalent to the encoder (as described in appendix B). To produce a single scalar value from its output, we computed the mean of its final layer activations. For the hyperparameters $\\lambda$ and $\\gamma$ we found values of 0.5 and 0.2 to achieve good results, though the performance was not very sensitive to their values. We use these values for the coefficients for all of our experiments. Finally, we trained the critic using the same optimizer and hyperparameters as the autoencoder. ",
550
+ "bbox": [
551
+ 174,
552
+ 349,
553
+ 825,
554
+ 460
555
+ ],
556
+ "page_idx": 6
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "We found dramatically improved performance on the lines benchmark when using ACAI – it achieved the best Mean Distance and Smoothness score among the autoencoders we considered. When inspecting the resulting interpolations, we found it occasionally chose a longer path than necessary but typically produced “perfect” interpolation behavior as seen in fig. 3f. This provides quantitative evidence ACAI is successful at encouraging realistic and smooth interpolations. ",
561
+ "bbox": [
562
+ 174,
563
+ 468,
564
+ 825,
565
+ 537
566
+ ],
567
+ "page_idx": 6
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "3.3 INTERPOLATIONS ON REAL DATA ",
572
+ "text_level": 1,
573
+ "bbox": [
574
+ 176,
575
+ 555,
576
+ 446,
577
+ 569
578
+ ],
579
+ "page_idx": 6
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "We have so far only discussed results on our synthetic lines benchmark. We also provide example reconstructions and interpolations produced by each autoencoder for MNIST (LeCun, 1998), SVHN (Netzer et al., 2011), and CelebA (Liu et al., 2015) in appendix D. For each dataset, we trained autoencoders with latent dimensionalities of 32 and 256. Since we do not know the underlying data manifold for these datasets, no metrics are available to evaluate performance and we can only make qualitative judgments as to the reconstruction and interpolation quality. We find that most autoencoders produce “blurrier” images with $d _ { z } = 3 2$ but generally give smooth interpolations regardless of the latent dimensionality. The exception to this observation was the VQ-VAE which seems generally to work better with $d _ { z } = 3 2$ and occasionally even diverged for $d _ { z } = 2 5 6$ (see e.g. fig. 9e). This may be due to the nearest-neighbor discretization (and gradient estimator) failing in high dimensions. Across datasets, we found the VAE and denoising autoencoder typically produced more blurry interpolations. AAE and ACAI generally produced realistic interpolations, even between dissimilar datapoints (for example, in fig. 7 bottom). The baseline model often effectively interpolated in data space. ",
584
+ "bbox": [
585
+ 174,
586
+ 582,
587
+ 825,
588
+ 775
589
+ ],
590
+ "page_idx": 6
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "4 IMPROVED REPRESENTATION LEARNING ",
595
+ "text_level": 1,
596
+ "bbox": [
597
+ 174,
598
+ 796,
599
+ 545,
600
+ 811
601
+ ],
602
+ "page_idx": 6
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "We have so far solely focused on measuring the interpolation abilities of different autoencoders. Now, we turn to the question of whether improved interpolation is associated with improved performance on downstream tasks. Specifically, we will evaluate whether using our proposed regularizer results in latent space representations which provide better performance in supervised learning and clustering. Put another way, we seek to test whether improving interpolation results in a latent representation which has disentangled important factors of variation (such as class identity) in the dataset. To answer this question, we ran classification and clustering experiments using the learned latent spaces of different autoencoders on the MNIST (LeCun, 1998), SVHN (Netzer et al., 2011), and CIFAR-10 (Krizhevsky, 2009) datasets. ",
607
+ "bbox": [
608
+ 174,
609
+ 825,
610
+ 825,
611
+ 924
612
+ ],
613
+ "page_idx": 6
614
+ },
615
+ {
616
+ "type": "table",
617
+ "img_path": "images/d7216d2ef5d21375777407e6bb0e9004a5973d3c6464607364cdeb4858c01492.jpg",
618
+ "table_caption": [
619
+ "Table 2: Single-layer classifier accuracy achieved by different autoencoders. "
620
+ ],
621
+ "table_footnote": [],
622
+ "table_body": "<table><tr><td>Dataset</td><td>dz</td><td>Baseline</td><td>Denoising</td><td>VAE</td><td>AAE</td><td>VQ-VAE</td><td>ACAI</td></tr><tr><td rowspan=\"2\">MNIST</td><td>32</td><td>94.90±0.14</td><td>96.00±0.27</td><td>96.56±0.31</td><td>70.74±3.27</td><td>97.50±0.18</td><td>98.25±0.11</td></tr><tr><td>256</td><td>93.94±0.13</td><td>98.51±0.04</td><td>98.74±0.14</td><td>90.03±0.54</td><td>97.25±1.42</td><td>99.00±0.08</td></tr><tr><td rowspan=\"2\">SVHN</td><td>32</td><td>26.21±0.42</td><td>25.15±0.78</td><td>29.58±3.22</td><td>23.43±0.79</td><td>24.53±1.33</td><td>34.47±1.14</td></tr><tr><td>256</td><td>22.74±0.05</td><td>77.89±0.35</td><td>66.30±1.06</td><td>22.81±0.24</td><td>44.94±20.42</td><td>85.14±0.20</td></tr><tr><td rowspan=\"2\">CIFAR-10</td><td>256</td><td>47.92±0.20</td><td>53.78±0.36</td><td>47.49±0.22</td><td>40.65±1.45</td><td>42.80±0.44</td><td>52.77±0.45</td></tr><tr><td>1024</td><td>51.62±0.25</td><td>60.65±0.14</td><td>51.39±0.46</td><td>42.86±0.88</td><td>16.22±12.44</td><td>63.99±0.47</td></tr></table>",
623
+ "bbox": [
624
+ 212,
625
+ 127,
626
+ 785,
627
+ 227
628
+ ],
629
+ "page_idx": 7
630
+ },
631
+ {
632
+ "type": "table",
633
+ "img_path": "images/ac3839685db6f883848dad00b6eb56f5b3c9c15e968b3606e4bdb09161093f08.jpg",
634
+ "table_caption": [
635
+ "Table 3: Clustering accuracy for using K-Means on the latent space of different autoencoders (left) and previously reported methods (right). On the right, “Data” refers to performing K-Means directly on the data and DEC, RIM, and IMSAT are the methods proposed in (Xie et al., 2016; Krause et al., 2010; Hu et al., 2017) respectively. Results marked \\* are excerpted from (Hu et al., 2017) and \\*\\* are from (Xie et al., 2016). "
636
+ ],
637
+ "table_footnote": [],
638
+ "table_body": "<table><tr><td>Dataset</td><td>dz</td><td>Baseline</td><td>Denoising</td><td>VAE</td><td>AAE</td><td>VQ-VAE</td><td>ACAI</td><td>Data</td><td>DEC</td><td>RIM</td><td>IMSAT</td></tr><tr><td>MNIST</td><td>32 256</td><td>77.56 53.70</td><td>82.59 70.89</td><td>75.74 83.44</td><td>79.19 81.00</td><td>82.39 96.80</td><td>94.38 96.17</td><td>53.2*</td><td>84.3**</td><td>58.5*</td><td>98.4*</td></tr><tr><td>SVHN</td><td>32 256</td><td>19.38 15.62</td><td>17.91 31.49</td><td>16.83 11.36</td><td>17.35 13.59</td><td>15.19 18.84</td><td>20.86 24.98</td><td>17.9*</td><td>11.9*</td><td>26.8*</td><td>57.3*</td></tr></table>",
639
+ "bbox": [
640
+ 225,
641
+ 323,
642
+ 774,
643
+ 396
644
+ ],
645
+ "page_idx": 7
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "",
650
+ "bbox": [
651
+ 174,
652
+ 422,
653
+ 826,
654
+ 452
655
+ ],
656
+ "page_idx": 7
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "Single-Layer Classifier A common method for evaluating the quality of a learned representation (such as the latent space of an autoencoder) is to use it as a feature representation for a simple, one-layer classifier (i.e. logistic regression) trained on a supervised learning task (Coates et al., 2011). The justification for this evaluation procedure is that a learned representation which has effectively disentangled class identity will allow the classifier to obtain reasonable performance despite its simplicity. To test different autoencoders in this setting, we trained a separate single-layer classifier in tandem with the autoencoder using the latent representation as input. We did not optimize autoencoder parameters with respect to the classifier’s loss, which ensures that we are measuring unsupervised representation learning performance. We repeated this procedure for latent dimensionalities of 32 and 256 (MNIST and SVHN) and 256 and 1024 (CIFAR-10). ",
661
+ "bbox": [
662
+ 173,
663
+ 468,
664
+ 825,
665
+ 608
666
+ ],
667
+ "page_idx": 7
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "Our results are shown in table 2. In all settings, using ACAI instead of the baseline autoencoder upon which it is based produced significant gains – most notably, on SVHN with a latent dimensionality of 256, the baseline achieved an accuracy of only $2 2 . 7 4 \\%$ whereas ACAI achieved $8 5 . 1 4 \\%$ . In general, we found the denoising autoencoder, VAE, and ACAI obtained significantly higher performance compared to the remaining models. On MNIST and SVHN, ACAI achieved the best accuracy by a significant margin; on CIFAR-10, the performance of ACAI and the denoising autoencoder was similar. By way of comparison, we found a single-layer classifier applied directly to (flattened) image pixels achieved an accuracy of $9 2 . 3 1 \\%$ , $2 3 . 4 8 \\%$ , and $3 9 . 7 0 \\%$ on MNIST, SVHN, and CIFAR-10 respectively, so classifying using the representation learned by ACAI provides a huge benefit. ",
672
+ "bbox": [
673
+ 173,
674
+ 614,
675
+ 825,
676
+ 741
677
+ ],
678
+ "page_idx": 7
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "Clustering If an autoencoder groups points with common salient characteristics close together in latent space without observing any labels, it arguably has uncovered some important structure in the data in an unsupervised fashion. A more difficult test of an autoencoder is therefore clustering its latent space, i.e. separating the latent codes for a dataset into distinct groups without using any labels. To test the clusterability of the latent spaces learned by different autoencoders, we simply apply K-Means clustering (MacQueen, 1967) to the latent codes for a given dataset. Since K-Means uses Euclidean distance, it is sensitive to each dimension’s relative variance. We therefore used PCA whitening on the latent space learned by each autoencoder to normalize the variance of its dimensions prior to clustering. K-Means can exhibit highly variable results depending on how it is initialized, so for each autoencoder we ran K-Means 1,000 times from different random initializations and chose the clustering with the best objective value on the training set. For evaluation, we adopt the methodology of Xie et al. (2016); Hu et al. (2017): Given that the dataset in question has labels (which are not used for training the model, the clustering algorithm, or choice of random initialization), we can cluster the data into $C$ distinct groups where $C$ is the number of classes in the dataset. We then compute the “clustering accuracy”, which is simply the accuracy corresponding to the optimal one-to-one mapping of cluster IDs and classes (Xie et al., 2016). ",
683
+ "bbox": [
684
+ 174,
685
+ 757,
686
+ 825,
687
+ 924
688
+ ],
689
+ "page_idx": 7
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "",
694
+ "bbox": [
695
+ 173,
696
+ 103,
697
+ 823,
698
+ 159
699
+ ],
700
+ "page_idx": 8
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "Our results are shown in table 3. On both MNIST and SVHN, ACAI achieved the best or second-best performance for both $d _ { z } = 3 2$ and $d _ { z } = 2 5 6$ . We do not report results on CIFAR-10 because all of the autoencoders we studied achieved a near-random clustering accuracy. Previous efforts to evaluate clustering performance on CIFAR-10 use learned feature representations from a convolutional network trained on ImageNet (Hu et al., 2017) which we believe only indirectly measures unsupervised learning capabilities. ",
705
+ "bbox": [
706
+ 174,
707
+ 166,
708
+ 825,
709
+ 250
710
+ ],
711
+ "page_idx": 8
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "5 CONCLUSION ",
716
+ "text_level": 1,
717
+ "bbox": [
718
+ 176,
719
+ 272,
720
+ 318,
721
+ 287
722
+ ],
723
+ "page_idx": 8
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "In this paper, we have provided an in-depth perspective on interpolation in autoencoders. We proposed Adversarially Constrained Autoencoder Interpolation (ACAI), which uses a critic to encourage interpolated datapoints to be more realistic. To make interpolation a quantifiable concept, we proposed a synthetic benchmark and showed that ACAI substantially outperformed common autoencoder models. This task also yielded unexpected insights, such as that a VAE which has effectively learned the data distribution might not interpolate. We also studied the effect of improved interpolation on downstream tasks, and showed that ACAI led to improved performance for feature learning and unsupervised clustering. These findings confirm our intuition that improving the interpolation abilities of a baseline autoencoder can also produce a better learned representation for downstream tasks. However, we emphasize that we do not claim that good interpolation always implies a good representation – for example, the AAE produced smooth and realistic interpolations but fared poorly in our representations learning experiments and the denoising autoencoder had low-quality interpolations but provided a useful representation. ",
728
+ "bbox": [
729
+ 174,
730
+ 305,
731
+ 825,
732
+ 484
733
+ ],
734
+ "page_idx": 8
735
+ },
736
+ {
737
+ "type": "text",
738
+ "text": "In future work, we are interested in investigating whether our regularizer improves the performance of autoencoders other than the standard “vanilla” autoencoder we applied it to. In this paper, we primarily focused on image datasets due to the ease of visualizing interpolations, but we are also interested in applying these ideas to non-image datasets. ",
739
+ "bbox": [
740
+ 174,
741
+ 492,
742
+ 825,
743
+ 549
744
+ ],
745
+ "page_idx": 8
746
+ },
747
+ {
748
+ "type": "text",
749
+ "text": "REFERENCES ",
750
+ "text_level": 1,
751
+ "bbox": [
752
+ 176,
753
+ 571,
754
+ 285,
755
+ 585
756
+ ],
757
+ "page_idx": 8
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "Sanjeev Arora, Rong Ge, Yingyu Liang, Tengyu Ma, and Yi Zhang. Generalization and equilibrium in generative adversarial nets (gans). In International Conference on Machine Learning, 2017. ",
762
+ "bbox": [
763
+ 174,
764
+ 594,
765
+ 823,
766
+ 625
767
+ ],
768
+ "page_idx": 8
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "Yoshua Bengio, Pascal Lamblin, Dan Popovici, and Hugo Larochelle. Greedy layer-wise training of deep networks. In Advances in neural information processing systems, 2007. ",
773
+ "bbox": [
774
+ 173,
775
+ 636,
776
+ 821,
777
+ 665
778
+ ],
779
+ "page_idx": 8
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "Yoshua Bengio, Nicholas Leonard, and Aaron Courville. Estimating or propagating gradients through ´ stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013a. ",
784
+ "bbox": [
785
+ 173,
786
+ 676,
787
+ 823,
788
+ 705
789
+ ],
790
+ "page_idx": 8
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "Yoshua Bengio, Gregoire Mesnil, Yann Dauphin, and Salah Rifai. Better mixing via deep representa- ´ tions. In International Conference on Machine Learning, 2013b. ",
795
+ "bbox": [
796
+ 173,
797
+ 717,
798
+ 825,
799
+ 747
800
+ ],
801
+ "page_idx": 8
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "Herve Bourlard and Yves Kamp. Auto-association by multilayer perceptrons and singular value ´ decomposition. Biological cybernetics, 59(4-5), 1988. ",
806
+ "bbox": [
807
+ 174,
808
+ 758,
809
+ 823,
810
+ 787
811
+ ],
812
+ "page_idx": 8
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "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. ",
817
+ "bbox": [
818
+ 174,
819
+ 799,
820
+ 825,
821
+ 828
822
+ ],
823
+ "page_idx": 8
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "Shan Carter and Michael Nielsen. Using artificial intelligence to augment human intelligence. Distill, 2017. https://distill.pub/2017/aia. ",
828
+ "bbox": [
829
+ 171,
830
+ 840,
831
+ 825,
832
+ 869
833
+ ],
834
+ "page_idx": 8
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in neural information processing systems, pp. 2172–2180, 2016a. ",
839
+ "bbox": [
840
+ 176,
841
+ 882,
842
+ 825,
843
+ 924
844
+ ],
845
+ "page_idx": 8
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Xi Chen, Diederik P. Kingma, Tim Salimans, Yan Duan, Prafulla Dhariwal, John Schulman, Ilya Sutskever, and Pieter Abbeel. Variational lossy autoencoder. arXiv preprint arXiv:1611.02731, 2016b. ",
850
+ "bbox": [
851
+ 174,
852
+ 103,
853
+ 825,
854
+ 146
855
+ ],
856
+ "page_idx": 9
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Adam Coates, Andrew $\\mathrm { N g }$ , and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, 2011. ",
861
+ "bbox": [
862
+ 173,
863
+ 155,
864
+ 823,
865
+ 196
866
+ ],
867
+ "page_idx": 9
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real nvp. arXiv preprint arXiv:1605.08803, 2016. ",
872
+ "bbox": [
873
+ 171,
874
+ 205,
875
+ 825,
876
+ 234
877
+ ],
878
+ "page_idx": 9
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Olivier Mastropietro, Alex Lamb, Martin Arjovsky, and Aaron Courville. Adversarially learned inference. arXiv preprint arXiv:1606.00704, 2016. ",
883
+ "bbox": [
884
+ 169,
885
+ 242,
886
+ 825,
887
+ 272
888
+ ],
889
+ "page_idx": 9
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, 2014. ",
894
+ "bbox": [
895
+ 174,
896
+ 280,
897
+ 826,
898
+ 323
899
+ ],
900
+ "page_idx": 9
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "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. ",
905
+ "bbox": [
906
+ 174,
907
+ 330,
908
+ 826,
909
+ 375
910
+ ],
911
+ "page_idx": 9
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "David Ha and Douglas Eck. A neural representation of sketch drawings. In Sixth International Conference on Learning Representations, 2018. ",
916
+ "bbox": [
917
+ 173,
918
+ 382,
919
+ 821,
920
+ 411
921
+ ],
922
+ "page_idx": 9
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. In Fifth International Conference on Learning Representations, 2017. ",
927
+ "bbox": [
928
+ 174,
929
+ 419,
930
+ 826,
931
+ 476
932
+ ],
933
+ "page_idx": 9
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "Weihua Hu, Takeru Miyato, Seiya Tokui, Eiichi Matsumoto, and Masashi Sugiyama. Learning discrete representations via information maximizing self augmented training. arXiv preprint arXiv:1702.08720, 2017. ",
938
+ "bbox": [
939
+ 174,
940
+ 484,
941
+ 825,
942
+ 527
943
+ ],
944
+ "page_idx": 9
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "Ferenc Huszar. Gaussian distributions are soap bubbles. ´ inFERENCe, 2017. ",
949
+ "bbox": [
950
+ 173,
951
+ 535,
952
+ 674,
953
+ 551
954
+ ],
955
+ "page_idx": 9
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In Third International Conference on Learning Representations, 2014. ",
960
+ "bbox": [
961
+ 174,
962
+ 559,
963
+ 825,
964
+ 588
965
+ ],
966
+ "page_idx": 9
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Diederik P. Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In Advances in Neural Information Processing Systems, 2016. ",
971
+ "bbox": [
972
+ 173,
973
+ 595,
974
+ 826,
975
+ 638
976
+ ],
977
+ "page_idx": 9
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "Andreas Krause, Pietro Perona, and Ryan G. Gomes. Discriminative clustering by regularized information maximization. In Advances in neural information processing systems, 2010. ",
982
+ "bbox": [
983
+ 173,
984
+ 647,
985
+ 823,
986
+ 676
987
+ ],
988
+ "page_idx": 9
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. ",
993
+ "bbox": [
994
+ 173,
995
+ 684,
996
+ 826,
997
+ 713
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Yann LeCun. The mnist database of handwritten digits. 1998. ",
1004
+ "bbox": [
1005
+ 173,
1006
+ 722,
1007
+ 581,
1008
+ 738
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "Shuang Liu, Olivier Bousquet, and Kamalika Chaudhuri. Approximation and convergence properties of generative adversarial learning. In Advances in Neural Information Processing Systems, 2017. ",
1015
+ "bbox": [
1016
+ 173,
1017
+ 746,
1018
+ 826,
1019
+ 775
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015. ",
1026
+ "bbox": [
1027
+ 173,
1028
+ 782,
1029
+ 823,
1030
+ 813
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Andrew L. Maas, Awni Y. Hannun, and Andrew Y. Ng. Rectifier nonlinearities improve neural network acoustic models. In International Conference on Machine Learning, 2013. ",
1037
+ "bbox": [
1038
+ 173,
1039
+ 820,
1040
+ 821,
1041
+ 849
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "James MacQueen. Some methods for classification and analysis of multivariate observations. In Proceedings of 5th Berkeley Symposium on Mathematical Statistics and Probability, 1967. ",
1048
+ "bbox": [
1049
+ 174,
1050
+ 857,
1051
+ 821,
1052
+ 887
1053
+ ],
1054
+ "page_idx": 9
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. arXiv preprint arXiv:1511.05644, 2015. ",
1059
+ "bbox": [
1060
+ 173,
1061
+ 895,
1062
+ 823,
1063
+ 924
1064
+ ],
1065
+ "page_idx": 9
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Xudong Mao, Qing Li, Haoran Xie, Raymond YK Lau, Zhen Wang, and Stephen Paul Smolley. Least squares generative adversarial networks. In IEEE International Conference on Computer Vision, 2017. ",
1070
+ "bbox": [
1071
+ 174,
1072
+ 103,
1073
+ 823,
1074
+ 146
1075
+ ],
1076
+ "page_idx": 10
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Michael F. Mathieu, Junbo Jake Zhao, Aditya Ramesh, Pablo Sprechmann, and Yann LeCun. Disentangling factors of variation in deep representation using adversarial training. In Advances in Neural Information Processing Systems, 2016. ",
1081
+ "bbox": [
1082
+ 176,
1083
+ 154,
1084
+ 823,
1085
+ 196
1086
+ ],
1087
+ "page_idx": 10
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Lars Mescheder, Sebastian Nowozin, and Andreas Geiger. Adversarial variational bayes: Unifying variational autoencoders and generative adversarial networks. arXiv preprint arXiv:1701.04722, 2017. ",
1092
+ "bbox": [
1093
+ 176,
1094
+ 204,
1095
+ 823,
1096
+ 246
1097
+ ],
1098
+ "page_idx": 10
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, 2011. ",
1103
+ "bbox": [
1104
+ 176,
1105
+ 253,
1106
+ 823,
1107
+ 297
1108
+ ],
1109
+ "page_idx": 10
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. Distill, 2016. URL http://distill.pub/2016/deconv-checkerboard. ",
1114
+ "bbox": [
1115
+ 173,
1116
+ 304,
1117
+ 825,
1118
+ 334
1119
+ ],
1120
+ "page_idx": 10
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. ",
1125
+ "bbox": [
1126
+ 173,
1127
+ 340,
1128
+ 823,
1129
+ 371
1130
+ ],
1131
+ "page_idx": 10
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In International Conference on Machine Learning, 2014. ",
1136
+ "bbox": [
1137
+ 176,
1138
+ 377,
1139
+ 823,
1140
+ 420
1141
+ ],
1142
+ "page_idx": 10
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Adam Roberts, Jesse Engel, Colin Raffel, Curtis Hawthorne, and Douglas Eck. A hierarchical latent vector model for learning long-term structure in music. arXiv preprint arXiv:1803.05428, 2018. ",
1147
+ "bbox": [
1148
+ 171,
1149
+ 428,
1150
+ 823,
1151
+ 458
1152
+ ],
1153
+ "page_idx": 10
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Aurko Roy, Ashish Vaswani, Arvind Neelakantan, and Niki Parmar. Theory and experiments on vector quantized autoencoders. arXiv preprint arXiv:1805.11063, 2018. ",
1158
+ "bbox": [
1159
+ 171,
1160
+ 464,
1161
+ 823,
1162
+ 494
1163
+ ],
1164
+ "page_idx": 10
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "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, 2016. ",
1169
+ "bbox": [
1170
+ 174,
1171
+ 501,
1172
+ 823,
1173
+ 531
1174
+ ],
1175
+ "page_idx": 10
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Ilya Tolstikhin, Olivier Bousquet, Sylvain Gelly, and Bernhard Schoelkopf. Wasserstein auto-encoders. In Fifth International Conference on Learning Representations, 2017. ",
1180
+ "bbox": [
1181
+ 174,
1182
+ 537,
1183
+ 825,
1184
+ 568
1185
+ ],
1186
+ "page_idx": 10
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Jakub M. Tomczak and Max Welling. Improving variational auto-encoders using householder flow. arXiv preprint arXiv:1611.09630, 2016. ",
1191
+ "bbox": [
1192
+ 174,
1193
+ 574,
1194
+ 825,
1195
+ 604
1196
+ ],
1197
+ "page_idx": 10
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Jakub M. Tomczak and Max Welling. Vae with a vampprior. arXiv preprint arXiv:1705.07120, 2017. ",
1202
+ "bbox": [
1203
+ 171,
1204
+ 611,
1205
+ 823,
1206
+ 627
1207
+ ],
1208
+ "page_idx": 10
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "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, 2016. ",
1213
+ "bbox": [
1214
+ 174,
1215
+ 633,
1216
+ 826,
1217
+ 676
1218
+ ],
1219
+ "page_idx": 10
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Aaron van den Oord, Oriol Vinyals, et al. Neural discrete representation learning. In Advances in Neural Information Processing Systems, pp. 6309–6318, 2017. ",
1224
+ "bbox": [
1225
+ 173,
1226
+ 684,
1227
+ 823,
1228
+ 714
1229
+ ],
1230
+ "page_idx": 10
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Vikas Verma, Alex Lamb, Christopher Beckham, Aaron Courville, Ioannis Mitliagkis, and Yoshua Bengio. Manifold mixup: Encouraging meaningful on-manifold interpolation as a regularizer. arXiv preprint arXiv:1806.05236, 2018. ",
1235
+ "bbox": [
1236
+ 174,
1237
+ 720,
1238
+ 826,
1239
+ 763
1240
+ ],
1241
+ "page_idx": 10
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Pascal Vincent, Hugo Larochelle, Isabelle Lajoie, Yoshua Bengio, and Pierre-Antoine Manzagol. Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion. Journal of Machine Learning Research, 11, 2010. ",
1246
+ "bbox": [
1247
+ 173,
1248
+ 771,
1249
+ 826,
1250
+ 814
1251
+ ],
1252
+ "page_idx": 10
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "Tom White. Sampling generative networks: Notes on a few effective techniques. arXiv preprint arXiv:1609.04468, 2016. ",
1257
+ "bbox": [
1258
+ 173,
1259
+ 821,
1260
+ 825,
1261
+ 851
1262
+ ],
1263
+ "page_idx": 10
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "Junyuan Xie, Ross Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering analysis. In International conference on machine learning, pp. 478–487, 2016. ",
1268
+ "bbox": [
1269
+ 173,
1270
+ 858,
1271
+ 823,
1272
+ 888
1273
+ ],
1274
+ "page_idx": 10
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "Shengjia Zhao, Jiaming Song, and Stefano Ermon. InfoVAE: Information maximizing variational autoencoders. arXiv preprint arXiv:1706.02262, 2017. ",
1279
+ "bbox": [
1280
+ 173,
1281
+ 895,
1282
+ 823,
1283
+ 924
1284
+ ],
1285
+ "page_idx": 10
1286
+ },
1287
+ {
1288
+ "type": "image",
1289
+ "img_path": "images/8ad93aefd87dcaa05eb84f1109f9c8f406de2bea636705b07a2b75aadbe8716f.jpg",
1290
+ "image_caption": [
1291
+ "Figure 4: Examples of data and interpolations from our synthetic lines dataset. (a) 16 random samples from the dataset. (b) A perfect interpolation from $\\Lambda = { ^ { 1 1 \\pi } } / { _ { 1 4 } }$ to 0. (c) Interpolating in data space rather than “semantic” or latent space. Clearly, interpolating in this way produces points not on the data manifold. (d) An interpolation which abruptly changes from one image to the other, rather than smoothly changing. (e) A smooth interpolation which takes a longer path from the start to end point than necessary. (f) An interpolation which takes the correct path but where intermediate points are not realistic. "
1292
+ ],
1293
+ "image_footnote": [],
1294
+ "bbox": [
1295
+ 209,
1296
+ 102,
1297
+ 789,
1298
+ 281
1299
+ ],
1300
+ "page_idx": 11
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "A LINE BENCHMARK ",
1305
+ "text_level": 1,
1306
+ "bbox": [
1307
+ 176,
1308
+ 416,
1309
+ 369,
1310
+ 433
1311
+ ],
1312
+ "page_idx": 11
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "A.1 EXAMPLE INTERPOLATIONS ",
1317
+ "text_level": 1,
1318
+ "bbox": [
1319
+ 176,
1320
+ 448,
1321
+ 413,
1322
+ 463
1323
+ ],
1324
+ "page_idx": 11
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Some example data and interpolations for our synthetic lines benchmark are shown in fig. 4. Full discussion of this benchmark is available in section 3.1. ",
1329
+ "bbox": [
1330
+ 176,
1331
+ 474,
1332
+ 825,
1333
+ 503
1334
+ ],
1335
+ "page_idx": 11
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "A.2 EVALUATION METRICS ",
1340
+ "text_level": 1,
1341
+ "bbox": [
1342
+ 176,
1343
+ 520,
1344
+ 379,
1345
+ 535
1346
+ ],
1347
+ "page_idx": 11
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "We define our Mean Distance and Smoothness metrics as follows: Let $x _ { 1 }$ and $x _ { 2 }$ be two input images we are interpolating between and ",
1352
+ "bbox": [
1353
+ 174,
1354
+ 546,
1355
+ 825,
1356
+ 575
1357
+ ],
1358
+ "page_idx": 11
1359
+ },
1360
+ {
1361
+ "type": "equation",
1362
+ "img_path": "images/08da12b3802455e39aaf08c39672dc7f7b9465e67bb8bee66c0b4f85e9c1fc2d.jpg",
1363
+ "text": "$$\n\\hat { x } _ { n } = g _ { \\phi } \\left( \\frac { n - 1 } { N - 1 } z _ { 1 } + \\left( 1 - \\frac { n - 1 } { N - 1 } \\right) z _ { 2 } \\right)\n$$",
1364
+ "text_format": "latex",
1365
+ "bbox": [
1366
+ 356,
1367
+ 582,
1368
+ 642,
1369
+ 617
1370
+ ],
1371
+ "page_idx": 11
1372
+ },
1373
+ {
1374
+ "type": "text",
1375
+ "text": "be the decoded point corresponding to mixing $x _ { 1 }$ and $x _ { 2 }$ ’s latent codes using coefficient $\\alpha = { \\mathfrak { n } } - 1 / { \\mathfrak { N } } - 1$ The images $\\hat { x } _ { n } , n \\in \\{ 1 , \\ldots , N \\}$ then comprise a length- $N$ interpolation between $x _ { 1 }$ and $x _ { 2 }$ . To produce our evaluation metrics, we first find the closest true datapoint (according to cosine distance) for each of the $N$ intermediate images along the interpolation. Finding the closest image among all possible line images is infeasible; instead we first generate a size- $D$ collection of line images $\\mathcal { D }$ with corresponding angles $\\Lambda _ { q } , q \\in \\{ 1 , \\ldots , D \\}$ spaced evenly between 0 and $2 \\pi$ . Then, we match each image in the interpolation to a real datapoint by finding ",
1376
+ "bbox": [
1377
+ 173,
1378
+ 623,
1379
+ 825,
1380
+ 722
1381
+ ],
1382
+ "page_idx": 11
1383
+ },
1384
+ {
1385
+ "type": "equation",
1386
+ "img_path": "images/e7d0406e62bd4f89c8088f77d1b88b9e13edc3c2e6198879efb381dbd3511dd9.jpg",
1387
+ "text": "$$\n\\begin{array} { c } { { C _ { n , q } = 1 - \\frac { { \\hat { x } _ { n } } { \\mathcal { D } _ { q } } } { \\| \\hat { x } _ { n } \\| \\| { \\mathcal { D } _ { q } } \\| } } } \\\\ { { q _ { n } ^ { \\star } = \\arg \\underset { q } { \\operatorname* { m i n } } C _ { n , q } } } \\end{array}\n$$",
1388
+ "text_format": "latex",
1389
+ "bbox": [
1390
+ 419,
1391
+ 728,
1392
+ 578,
1393
+ 789
1394
+ ],
1395
+ "page_idx": 11
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "for $n \\in \\{ 1 , \\ldots , N \\}$ , where $C _ { n , q }$ is the cosine distance between ${ \\hat { x } } _ { n }$ and the $q$ th entry of $\\mathcal { D }$ . To capture the notion of “intermediate points look realistic”, we compute ",
1400
+ "bbox": [
1401
+ 173,
1402
+ 795,
1403
+ 825,
1404
+ 824
1405
+ ],
1406
+ "page_idx": 11
1407
+ },
1408
+ {
1409
+ "type": "equation",
1410
+ "img_path": "images/6e084ebf67a669b56f292e25e23d186dd55ec23d91de2dc5549c04bdb67c0d21.jpg",
1411
+ "text": "$$\n\\operatorname { M e a n } \\operatorname { D i s t a n c e } ( \\left\\{ { \\hat { x } } _ { 1 } , { \\hat { x } } _ { 2 } , \\ldots , { \\hat { x } } _ { N } \\right\\} ) = { \\frac { 1 } { N } } \\sum _ { n = 1 } ^ { N } C _ { n , q _ { n } ^ { \\star } }\n$$",
1412
+ "text_format": "latex",
1413
+ "bbox": [
1414
+ 325,
1415
+ 830,
1416
+ 671,
1417
+ 873
1418
+ ],
1419
+ "page_idx": 11
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "We now define a perfectly smooth interpolation to be one which consists of lines with angles which linearly move from the angle of $\\mathcal { D } _ { q _ { 1 } ^ { \\star } }$ to that of $\\mathcal { D } _ { \\boldsymbol { q } _ { N } ^ { \\star } }$ . Note that if, for example, the interpolated lines go from $\\Lambda _ { q _ { 1 } ^ { \\star } } = \\pi / 1 0$ to $\\Lambda _ { q _ { N } ^ { \\star } } = { } ^ { 1 9 \\pi } / 1 0$ then the angles corresponding to the shortest path will have a discontinuity from 0 to $2 \\pi$ . To avoid this, we first “unwrap” the angles $\\{ \\Lambda _ { q _ { 1 } ^ { \\star } } , \\ldots , \\Lambda _ { q _ { N } ^ { \\star } } \\}$ by removing discontinuities larger than $\\pi$ by adding multiples of $\\pm 2 \\pi$ when the absolute difference between $\\Lambda _ { q _ { n - 1 } ^ { \\star } }$ and $\\Lambda _ { { q } _ { n } ^ { \\star } }$ is greater than $\\pi$ to produce the angle sequence $\\{ \\tilde { \\Lambda } _ { q _ { 1 } ^ { \\star } } , \\ldots , \\tilde { \\Lambda } _ { q _ { N } ^ { \\star } } \\}$ .2 Then, we define a measure of smoothness as ",
1424
+ "bbox": [
1425
+ 174,
1426
+ 880,
1427
+ 825,
1428
+ 926
1429
+ ],
1430
+ "page_idx": 11
1431
+ },
1432
+ {
1433
+ "type": "text",
1434
+ "text": "",
1435
+ "bbox": [
1436
+ 174,
1437
+ 102,
1438
+ 825,
1439
+ 162
1440
+ ],
1441
+ "page_idx": 12
1442
+ },
1443
+ {
1444
+ "type": "equation",
1445
+ "img_path": "images/339978803cbcd13a27dd3a1a8e401df11fb8afe083365588d5635e83c85ef98a.jpg",
1446
+ "text": "$$\n\\mathrm { S m o o t h n e s s } \\big ( \\big \\{ \\hat { x } _ { 1 } , \\hat { x } _ { 2 } , . . . , \\hat { x } _ { N } \\big \\} \\big ) = \\frac { 1 } { \\vert \\tilde { \\Lambda } _ { q _ { 1 } ^ { * } } - \\tilde { \\Lambda } _ { q _ { N } ^ { * } } \\vert } \\operatorname* { m a x } _ { n \\in \\{ 1 , . . . , N - 1 \\} } \\Big ( \\tilde { \\Lambda } _ { q _ { n + 1 } ^ { * } } - \\tilde { \\Lambda } _ { q _ { n } ^ { * } } \\Big ) - \\frac { 1 } { N - 1 }\n$$",
1447
+ "text_format": "latex",
1448
+ "bbox": [
1449
+ 196,
1450
+ 166,
1451
+ 782,
1452
+ 204
1453
+ ],
1454
+ "page_idx": 12
1455
+ },
1456
+ {
1457
+ "type": "text",
1458
+ "text": "In other words, we measure the how much larger the largest change in (normalized) angle is compared to the minimum possible value $\\left( { } ^ { 1 } / ( N { - } 1 ) \\right)$ . ",
1459
+ "bbox": [
1460
+ 176,
1461
+ 209,
1462
+ 823,
1463
+ 238
1464
+ ],
1465
+ "page_idx": 12
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "By way of example, figs. 4b, 4d and 4e would all achieve Mean Distance scores near zero and figs. 4c and 4f would achieve larger Mean Distance scores. Figures 4b and 4f would achieve Smoothness scores near zero, figs. 4c and 4d have poor Smoothness, and fig. $_ { 4 \\mathrm { e } }$ is in between. ",
1470
+ "bbox": [
1471
+ 174,
1472
+ 244,
1473
+ 825,
1474
+ 286
1475
+ ],
1476
+ "page_idx": 12
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "B BASE MODEL ARCHITECTURE AND TRAINING PROCEDURE ",
1481
+ "text_level": 1,
1482
+ "bbox": [
1483
+ 174,
1484
+ 306,
1485
+ 702,
1486
+ 324
1487
+ ],
1488
+ "page_idx": 12
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "All of the autoencoder models we studied in this paper used the following architecture and training procedure: The encoder consists of blocks of two consecutive $3 \\times 3$ convolutional layers followed by $2 \\times 2$ average pooling. All convolutions (in the encoder and decoder) are zero-padded so that the input and output height and width are equal. The number of channels is doubled before each average pooling layer. Two more $3 \\times 3$ convolutions are then performed, the last one without activation and the final output is used as the latent representation. All convolutional layers except for the final use a leaky ReLU nonlinearity (Maas et al., 2013). For experiments on the synthetic “lines” task, the convolution-average pool blocks are repeated 4 times until we reach a latent dimensionality of 64. For subsequent experiments on real datasets (section 4), we repeat the blocks 3 times, resulting in a latent dimensionality of 256. ",
1493
+ "bbox": [
1494
+ 173,
1495
+ 338,
1496
+ 825,
1497
+ 478
1498
+ ],
1499
+ "page_idx": 12
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "The decoder consists of blocks of two consecutive $3 \\times 3$ convolutional layers with leaky ReLU nonlinearities followed by $2 \\times 2$ nearest neighbor upsampling (Odena et al., 2016). The number of channels is halved after each upsampling layer. These blocks are repeated until we reach the target resolution $3 2 \\times 3 2$ in all experiments). Two more $3 \\times 3$ convolutions are then performed, the last one without activation and with a number of channels equal to the number of desired colors. ",
1504
+ "bbox": [
1505
+ 174,
1506
+ 484,
1507
+ 825,
1508
+ 554
1509
+ ],
1510
+ "page_idx": 12
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "All parameters are initialized as zero-mean Gaussian random variables with a standard deviation of $1 / \\sqrt { \\tan \\_ { - } \\mathrm { i n } ( 1 + 0 . 2 ^ { 2 } ) }$ set in accordance with the leaky ReLU slope of 0.2. Models are trained on $2 ^ { 2 4 }$ samples in batches of size 64. Parameters are optimized with Adam (Kingma & Welling, 2014) with a learning rate of 0.0001 and default values for $\\beta _ { 1 } , \\beta _ { 2 }$ , and $\\epsilon$ . ",
1515
+ "bbox": [
1516
+ 174,
1517
+ 560,
1518
+ 825,
1519
+ 617
1520
+ ],
1521
+ "page_idx": 12
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "C VAE SAMPLES ON THE LINE BENCHMARK",
1526
+ "text_level": 1,
1527
+ "bbox": [
1528
+ 174,
1529
+ 637,
1530
+ 565,
1531
+ 654
1532
+ ],
1533
+ "page_idx": 12
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "In fig. 5, we show some samples from our VAE trained on the synthetic line benchmark. The VAE generally produces realistic samples and seems to cover the data distribution well, despite the fact that it does not produce high-quality interpolations (fig. 3c). ",
1538
+ "bbox": [
1539
+ 174,
1540
+ 669,
1541
+ 825,
1542
+ 712
1543
+ ],
1544
+ "page_idx": 12
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "D INTERPOLATION EXAMPLES ON REAL DATA ",
1549
+ "text_level": 1,
1550
+ "bbox": [
1551
+ 173,
1552
+ 731,
1553
+ 576,
1554
+ 747
1555
+ ],
1556
+ "page_idx": 12
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "In this section, we provide a series of figures (figs. 6 to 11) showing interpolation behavior for the different autoencoders we studied. Further discussion of these results is available in section 3.3 ",
1561
+ "bbox": [
1562
+ 173,
1563
+ 762,
1564
+ 825,
1565
+ 791
1566
+ ],
1567
+ "page_idx": 12
1568
+ },
1569
+ {
1570
+ "type": "image",
1571
+ "img_path": "images/011b1d5ca5a163871496158859d0e142b9e53ddb0eae4efef60407763041d635.jpg",
1572
+ "image_caption": [
1573
+ "Figure 5: Samples from a VAE trained on the lines dataset described in section 3.1. "
1574
+ ],
1575
+ "image_footnote": [],
1576
+ "bbox": [
1577
+ 176,
1578
+ 247,
1579
+ 823,
1580
+ 748
1581
+ ],
1582
+ "page_idx": 13
1583
+ },
1584
+ {
1585
+ "type": "image",
1586
+ "img_path": "images/db363f651bed0df99d894ff8748b176860a5645e01396365f1bbaccac330a733.jpg",
1587
+ "image_caption": [
1588
+ "Figure 6: Example interpolations on MNIST with a latent dimensionality of 32 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders. "
1589
+ ],
1590
+ "image_footnote": [],
1591
+ "bbox": [
1592
+ 240,
1593
+ 161,
1594
+ 774,
1595
+ 823
1596
+ ],
1597
+ "page_idx": 14
1598
+ },
1599
+ {
1600
+ "type": "image",
1601
+ "img_path": "images/2efdc3a2b3e2b708fcdafcc88768f0d53ebfd36bbc3051aecfbd180d1f170ce1.jpg",
1602
+ "image_caption": [
1603
+ "Figure 7: Example interpolations on MNIST with a latent dimensionality of 256 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders. "
1604
+ ],
1605
+ "image_footnote": [],
1606
+ "bbox": [
1607
+ 240,
1608
+ 160,
1609
+ 774,
1610
+ 821
1611
+ ],
1612
+ "page_idx": 15
1613
+ },
1614
+ {
1615
+ "type": "image",
1616
+ "img_path": "images/47de7ca907daaf8fc9e0bdbadba83520b961226907f1b5076ae26acedb1b1e9c.jpg",
1617
+ "image_caption": [
1618
+ "Figure 8: Example interpolations on SVHN with a latent dimensionality of 32 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders. "
1619
+ ],
1620
+ "image_footnote": [],
1621
+ "bbox": [
1622
+ 240,
1623
+ 166,
1624
+ 774,
1625
+ 819
1626
+ ],
1627
+ "page_idx": 16
1628
+ },
1629
+ {
1630
+ "type": "image",
1631
+ "img_path": "images/d6ad7a3f626f887a67a272b156817696c598021ea8e689ebd4cd30406740f6d4.jpg",
1632
+ "image_caption": [
1633
+ "Figure 9: Example interpolations on SVHN with a latent dimensionality of 256 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders. "
1634
+ ],
1635
+ "image_footnote": [],
1636
+ "bbox": [
1637
+ 240,
1638
+ 166,
1639
+ 774,
1640
+ 820
1641
+ ],
1642
+ "page_idx": 17
1643
+ },
1644
+ {
1645
+ "type": "image",
1646
+ "img_path": "images/4c48de8b1f74145157c8b8b7cfe6d11bfa33d99734117c359409d43734b2424d.jpg",
1647
+ "image_caption": [
1648
+ "Figure 10: Example interpolations on CelebA with a latent dimensionality of 32 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders. "
1649
+ ],
1650
+ "image_footnote": [],
1651
+ "bbox": [
1652
+ 240,
1653
+ 167,
1654
+ 776,
1655
+ 820
1656
+ ],
1657
+ "page_idx": 18
1658
+ },
1659
+ {
1660
+ "type": "image",
1661
+ "img_path": "images/63948b88054bf695f2323771a5e64557140ff80440ce0329caa06dd514cc8482.jpg",
1662
+ "image_caption": [
1663
+ "Figure 11: Example interpolations on CelebA with a latent dimensionality of 256 for (a) Baseline, (b) Denoising, (c) VAE, (d) AAE, (e) VQ-VAE, (f) ACAI autoencoders. "
1664
+ ],
1665
+ "image_footnote": [],
1666
+ "bbox": [
1667
+ 240,
1668
+ 166,
1669
+ 776,
1670
+ 820
1671
+ ],
1672
+ "page_idx": 19
1673
+ }
1674
+ ]
parse/train/S1fQSiCcYm/S1fQSiCcYm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1fQSiCcYm/S1fQSiCcYm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/e68IYJNOYau/e68IYJNOYau.md ADDED
@@ -0,0 +1,419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # POINT CLOUD INSTANCE SEGMENTATION USING PROBABILISTIC EMBEDDINGS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ In this paper we propose a new framework for point cloud instance segmentation. Our framework has two steps: an embedding step and a clustering step. In the embedding step, our main contribution is to propose a probabilistic embedding space for point cloud embedding. Specifically, each point is represented as a tri-variate normal distribution. In the clustering step, we propose a novel loss function, which benefits both the semantic segmentation and the clustering. Our experimental results show important improvements to the SOTA, i.e., $3 . 1 \%$ increased average per-category mAP on the PartNet dataset.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ In this paper we tackle the problem of instance segmentation of point clouds. In instance segmentation we would like to assign two labels to each point in a point cloud. The first label is the class label (e.g., leg, back, seat, ... for a chair data set) and the second label is the instance ID (a unique number, e.g., to distinguish the different legs of a chair). While instance segmentation had many recent successes in the image domain (He et al. (2017); Liu et al. (2018); Fathi et al. (2017); Novotny et al. (2018); De Brabandere et al. (2017); Neven et al. (2019)), we believe that the problem of instance segmentation for point clouds is not sufficiently explored.
12
+
13
+ We build our work on the idea of embedding-based instance segmentation, that is very popular in the image and volume domain (Fathi et al. (2017); Novotny et al. (2018); De Brabandere et al. (2017); Neven et al. (2019); Lahoud et al. (2019)) and has also been successfully applied in the point clouds domain (Wang et al. (2018; 2019b)). In this approach typically two steps are employed. In the first step, each point (or pixel) is embedded in a feature space such that points belonging to the same instance should be close and points belonging to different instances should be further apart from each other. In the second step points are grouped using a clustering algorithm, such as mean-shift or greedy clustering. We remark that the current state of the art methods (Neven et al. (2019); Wang et al. (2018)) follow this approach.
14
+
15
+ One important design choice in embedding-based methods is the dimensionality of the feature space. Some methods propose to use a high dimensional feature space (De Brabandere et al. (2017); Kong & Fowlkes (2018)), while others use a low dimensional features space that has the same dimensionality as the input data (Novotny et al. (2018); Kendall et al. (2018); Neven et al. (2019)), e.g., 2D for images, and 3D for point clouds. Methods with a low dimensional embedding space not only have lower computational complexity, but they also lead to better interpretability, e.g., embeddings are encoded as offset vectors towards instance centers.
16
+
17
+ Therefore, the main goal of our work is to extend the expressiveness of the embedding space in a way that leads to improved segmentation performance. Our proposed solution is to employ probabilistic embeddings, such that each point in the embedding space is encoded by a distribution. While assessing uncertainty is a popular tool in recent computer vision research (Kendall & Gal (2017); Khan et al. (2019); Liu et al. (2019); Dorta et al. (2018)) and we introduce this idea to the task of instance segmentation. Incorporating uncertainty leads to an important improvement in segmentation performance. For example, on the PartNet (Mo et al. (2019)) fine-grained instance segmentation dataset we can improve the SOTA by $3 . 1 \%$ average per-category mAP.
18
+
19
+ In the remainder of the paper, we will give more details on the probabilistic embedding algorithm (Sec. 3), explain the embedding step (Sec. 3.1) and the clustering step (Sec. 3.4) in more detail.
20
+
21
+ ![](images/b0ccf815269fb3c636a18d8d80e69d24682e56f469ddded46e527000542043c6.jpg)
22
+ Figure 1: Our method takes a point cloud as input, encodes the points as random variables, and outputs semantic class labels and instance labels.
23
+
24
+ ![](images/f7a5344ff8128579bc2584f1a98c8eccfa2aaac82850a899ca405cb6b743c5a2.jpg)
25
+ Figure 2: Examples of (dis)similarity measures
26
+
27
+ Contribution. Our main contributions are as follows
28
+
29
+ 1. We propose to use probabilistic embeddings for instance segmentation and present a complete framework in the context of point cloud instance segmentation based on probabilistic embeddings.
30
+ 2. We develop a new loss function for the clustering step that is especially suited for highgranularity data sets.
31
+ 3. We show that the proposed probabilistic embeddings can be incorporated into existing embedding-based methods.
32
+
33
+ # 2 RELATED WORK
34
+
35
+ # 2.1 2D IMAGE INSTANCE SEGMENTATION
36
+
37
+ The dominant approaches for image instance segmentation are proposal-based methods (He et al. (2017); Liu et al. (2018)), which are built upon object detection methods (Girshick (2015); Ren et al. (2015)). Typically, they have higher quality, but a slower computation time compared to proposal free methods. The mainstream proposal free approaches are based on metric learning. The basic idea is to learn an embedding space, in which pixels belonging to the same object instance are close to each other and distant to pixels belonging to other object instances (Fathi et al. (2017); De Brabandere et al. (2017)). All above works are based on high-dimensional embedding, while more recent works (Liang et al. (2017); Kendall et al. (2018); Novotny et al. (2018); Neven et al. (2019)) show that 2D spatial embedding is sufficient to achieve the same or even higher performance.
38
+
39
+ # 2.2 3D POINT CLOUD INSTANCE SEGMENTATION
40
+
41
+ SGPN (Wang et al. (2018)) uses PointNet+ $^ +$ (Qi et al. (2017)) as backbone network and designs a double-hinge loss function to learn a pairwise similarity matrix of points. GSPN (Yi et al. (2019)) produces object proposals with high objectness for point cloud instance segmentation. ASIS (Wang et al. (2019b)) is a module capable of making semantic segmentation and instance segmentation take advantage of each other. Mo et al. (2019) release a large scale point cloud dataset for part instance segmentation and benchmark their method and SGPN on this dataset.
42
+
43
+ # 2.3 UNCERTAINTY IN COMPUTER VISION
44
+
45
+ Kendall & Gal (2017) present a unified framework combining model uncertainty with data uncertainty and can estimate uncertainty in classification and regression tasks. We introduce uncertainty estimation to the literature of instance embedding, by modeling points as random variables. Our method is related to recent works in deep generative networks (Kingma & Welling (2013); Rezende et al. (2014)). They use a stochastic encoder to encode a data sample as a set of random variables, while focusing on solving the problem of backpropagation through random variables in deep neural networks. We deal with this problem by using a probabilistic product kernel (Jebara et al. (2004)).
46
+
47
+ # 3 METHOD
48
+
49
+ A training sample is a labeled 3D point cloud. It consists of point coordinates $\left\{ { \bf x } _ { i } \right\} _ { i = 1 } ^ { N }$ , class labels $\{ y _ { i } \} _ { i = 1 } ^ { N }$ and instance IDs $\left\{ z _ { i } \right\} _ { i = 1 } ^ { N }$ . We want to train a neural network to infer per point class labels and per point instance IDs at the same time.
50
+
51
+ # 3.1 PROBABILISTIC SPATIAL EMBEDDING
52
+
53
+ A common approach in the literature of instance segmentation is to learn a function to embed pixels/points into a space where pair-wise similarity can be measured. Usually, this function is a deep neural network $f$ which transforms an unordered point set $\{ { \mathbf { x } } _ { i } \} _ { i = 1 } ^ { N }$ to embeddings $\left\{ { \bf e } _ { i } \right\} _ { i = 1 } ^ { N }$ . Instead of deterministic embeddings used in previous work, here we consider a probabilistic embedding, by modeling $\mathbf { e } _ { i }$ as a random variable, $\mathbf { e } _ { i } \sim p _ { i } ( \mathbf { e } )$ , where $p _ { i }$ is a probability density function. In Section 3.3 we will need to calculate the sum of random variables. In the ideal case, the distribution of a single random variable and the sum of multiple random variables has the same type of distribution that can be described with a few parameters. Thus we propose to model the embedding with a (symmetric) stable distribution. This leaves us two options, Gaussian and Cauchy. For the Cauchy distribution, it is challenging to get a closed-form expression in our calculation in Section 3.2. Therefore, we choose to work with the tri-variate Gaussian distribution1 $p _ { i } ( \mathbf { e } ) = \mathcal { N } ( \mathbf { e } ; \mu _ { i } , \pmb { \Sigma } _ { i } )$ with mean vector $\pmb { \mu _ { i } } \in \mathbb { R } ^ { 3 }$ and covariance matrix $\pmb { \Sigma } _ { i } \in \mathbb { R } ^ { 3 \times 3 }$ . For simplicity, let $\Sigma _ { i }$ be a diagonal matrix, $\Sigma _ { i } = \mathrm { d i a g } ( \sigma _ { i } ^ { ( 1 ) 2 } , \sigma _ { i } ^ { ( 2 ) 2 } , \sigma _ { i } ^ { ( 3 ) 2 } )$ , where $\sigma _ { i } ^ { ( d ) 2 }$ is the square of $\sigma _ { i } ^ { ( \bar { d } ) }$ and $d = 1 , 2 , 3$ .
54
+
55
+ The network $f ( \cdot )$ takes as input a (unordered) point set $\left\{ { \bf x } _ { i } \right\} _ { i = 1 } ^ { N }$ , and outputs $\{ \mu _ { i } , \pmb { \sigma } _ { i } , \mathbf { p } _ { i } \} _ { i = 1 } ^ { N }$ $f ( \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { N } ) = \{ \mu _ { i } , \pmb { \sigma } _ { i } , \mathbf { p } _ { i } \} _ { i = 1 } ^ { N }$ , where $\pmb { \sigma } _ { i } = \left[ \sigma _ { i } ^ { ( 1 ) } , \sigma _ { i } ^ { ( 2 ) } , \sigma _ { i } ^ { ( 3 ) } \right] ^ { \mathsf { T } } \in \mathbb { R } ^ { 3 }$ and $\mathbf { p } _ { i }$ is a probability vector which can be used to infer class label of $\mathbf { x } _ { i }$ and will be explained in Sec. 3.4.
56
+
57
+ # 3.2 SIMILARITY MEASURE
58
+
59
+ In deterministic embeddings, the (dis)similarity between points is usually measured by Euclidean distance $\| \mathbf { e } _ { i } - \mathbf { e } _ { j } \|$ , or cosine similarity $\frac { \mathbf { e } _ { i } ^ { \mathsf { T } } \mathbf { e } _ { j } ^ { \mathsf { - } } } { \| \mathbf { e } _ { i } \| \| \mathbf { e } _ { j } \| }$ (See Figure 2). Since now we are using probabilistic embeddings, a similarity kernel for random variables needs to be selected. Here we describe the Bhattacharyya kernel (Jebara et al. (2004)).
60
+
61
+ Definition. Let $\mathcal { P }$ be the set of distributions over $\Omega$ . The Bhattacharyya kernel on $\mathcal { P }$ is the function $\mathcal { K } : \mathcal { P } \times \mathcal { P } \mapsto \mathbb { R }$ such that, for all $p , q \in \mathcal { P }$ ,
62
+
63
+ $$
64
+ \begin{array} { r } { \mathcal { K } ( p , q ) = \displaystyle \int _ { \Omega } \sqrt { p ( \mathbf { x } ) } \sqrt { q ( \mathbf { x } ) } \mathrm { d } \mathbf { x } . } \end{array}
65
+ $$
66
+
67
+ We choose this kernel as our similarity measure for two reasons, 1) the Bhattacharyya kernel is symmetric, i.e. $\begin{array} { r } { K ( p , q ) = K ( q , p ) ; 2 } \end{array}$ ) the Bhattacharyya kernel has values between 0 (no similarity) and 1 (maximal similarity). And $\ K ( p , q ) = 1$ if and only if $p = q$ .
68
+
69
+ Then the similarity $\kappa ( \cdot , \cdot )$ between random variables can be represented by the Bhattacharyya kernel of their probability density functions,
70
+
71
+ $$
72
+ \kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } ) = \int \sqrt { \mathcal { N } ( \mathbf { e } ; \mu _ { i } , \Sigma _ { i } ) } \sqrt { \mathcal { N } ( \mathbf { e } ; \mu _ { j } , \Sigma _ { j } ) } \mathrm { d } \mathbf { e } = \beta _ { i , j } \exp \left( - \left\| \mu _ { i } - \mu _ { j } \right\| _ { \Sigma _ { i , j } ^ { - 1 } } ^ { 2 } \right) 2 ,
73
+ $$
74
+
75
+ ![](images/c5dcbf3f20cc5b32cfdf95c04be5d2ea894b875d6be1c2d16258f4e8b65a6f1a.jpg)
76
+ Figure 3: Contour plot. Left: 1-D uncertainty similarity $\beta _ { i , j } = \left( \left( \sigma _ { i } / \sigma _ { j } + \sigma _ { j } / \sigma _ { i } \right) / 2 \right) ^ { - 1 / 2 }$ . The highest value 1 is achieved when $\sigma _ { i } = \sigma _ { j }$ . The value goes to 0 when one of the uncertainties is small and the other is large. Right (4 figures): the similarity for different values of $\Delta \mu$ (from left to right, $\Delta \mu = 1 , 5 , 1 0 , 2 5 )$ in the case of 1-D probabilistic embedding. The similarity becomes $\beta _ { i , j } \exp { \left( - \frac { 1 } { 2 } \frac { \Delta \mu } { \alpha _ { i , j } } \right) }$ , where $\Delta \mu = \left( \mu _ { i } - \mu _ { j } \right) ^ { 2 }$ , $\alpha _ { i , j } = 4 \left( \sigma _ { i } ^ { 2 } + \sigma _ { j } ^ { 2 } \right)$ .
77
+
78
+ where
79
+
80
+ $$
81
+ \begin{array} { c } { \displaystyle \alpha _ { i , j } ^ { ( d ) } = 4 ( \sigma _ { i } ^ { ( d ) 2 } + \sigma _ { j } ^ { ( d ) 2 } ) , \quad \displaystyle \beta _ { i , j } = \left( \prod _ { d = 1 } ^ { 3 } \frac { 1 } { 2 } \left( \frac { \sigma _ { i } ^ { ( d ) } } { \sigma _ { j } ^ { ( d ) } } + \frac { \sigma _ { j } ^ { ( d ) } } { \sigma _ { i } ^ { ( d ) } } \right) \right) ^ { - \frac { 1 } { 2 } } , } \\ { \displaystyle \Sigma _ { i , j } = \mathrm { d i a g } ( \alpha _ { i , j } ^ { ( 1 ) } , \alpha _ { i , j } ^ { ( 2 ) } , \alpha _ { i , j } ^ { ( 3 ) } ) , } \\ { \displaystyle \| \mu _ { i } - \mu _ { j } \| _ { \Sigma _ { i , j } ^ { - 1 } } ^ { 2 } = ( \mu _ { i } - \mu _ { j } ) ^ { \mathsf T } \Sigma _ { i , j } ^ { - 1 } ( \mu _ { i } - \mu _ { j } ) = \sum _ { d = 1 } ^ { 3 } \frac { \mu _ { i } ^ { ( d ) } - \mu _ { j } ^ { ( d ) } } { \alpha _ { i , j } ^ { ( d ) } } . } \end{array}
82
+ $$
83
+
84
+ • If the uncertainties $\sigma _ { i }$ and $\pmb { \sigma } _ { j }$ have a large difference, $\beta _ { i , j }$ will be small, so will be $\kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } )$ . See Fig. 3.
85
+
86
+ • If the centers $\pmb { \mu _ { i } }$ and $\mu _ { j }$ have a large difference, the exponential term will be small, so will be $\kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } )$ . See Fig. 3.
87
+
88
+ • The scale term $\beta _ { i , j } = 1$ if and only if the uncertainties $\sigma _ { i }$ and $\pmb { \sigma } _ { j }$ are element-wise equal. In this case, $\kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } )$ becomes an anisotropic Gaussian kernel,
89
+
90
+ $$
91
+ \kappa _ { R B F } ( \pmb { \mu } _ { i } , \pmb { \mu } _ { j } ) = \exp \left( - \left\| \pmb { \mu } _ { i } - \pmb { \mu } _ { j } \right\| _ { \pmb { \Sigma } _ { i , j } ^ { - 1 } } ^ { 2 } \right) .
92
+ $$
93
+
94
+ • The exponential term equals 1 if and only if the centers $\pmb { \mu _ { i } }$ and $\pmb { \mu } _ { j }$ are element-wise equal. In this case, $\kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } )$ becomes $\beta _ { i , j }$ , i.e., the similarity between uncertainties. This property allows two points that have the same embedding centers to have a low similarity, as long as $\beta _ { i , j }$ is small.
95
+
96
+ Compared to deterministic embedding, $\kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } ) = \exp \left( - \left\| \mathbf { e } _ { i } - \mathbf { e } _ { j } \right\| ^ { 2 } \right) ^ { 3 }$ , our similarity measure consists not merely of the similarity of spatial distances, but also the similarity of uncertainties.
97
+
98
+ In the following, we discuss multiple choices of embedding distributions that we will evaluate in Sec 4.2.
99
+
100
+ Homoscedasticity vs. Heteroscedasticity. The embeddings $\{ { \mathbf { e } } _ { i } \} _ { i = 1 } ^ { N }$ are homoscedastic if they have the same variance instead of point-depende $\pmb { \Sigma }$ . In this variances a point cloud . And the sim $\mathbf { X }$ we learn to predicrity kernel becomes $\pmb { \Sigma }$ $\left\{ \pmb { \Sigma } _ { i } \right\} _ { i = 1 } ^ { N }$ $\kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } ) \ =$ $\exp \left( - \left. \pmb { \mu } _ { i } - \pmb { \mu } _ { j } \right. _ { \pmb { \Sigma } _ { i , j } ^ { - 1 } } ^ { 2 } \right)$ , which is also the form of the RBF kernel in Eq. 2.
101
+
102
+ Isotropy vs. Anisotropy. The variance $\Sigma _ { i }$ is isotropic if its diagonal elements (variances of dimensions) are the same. Then we can write $\Sigma _ { i } = \sigma _ { i } ^ { 2 } \mathbf { I }$ , where $\mathbf { I }$ is a $3 \times 3$ identity matrix. The similarity can be written as $\begin{array} { r } { \kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } ) = \beta _ { i , j } \exp \left( - \frac { \vert \vert \mu _ { i } - \mu _ { j } \vert \vert ^ { 2 } } { \alpha _ { i , j } } \right) } \end{array}$ , where $\beta _ { i , j } = \left( \left( \sigma _ { i } / \sigma _ { j } + \sigma _ { j } / \sigma _ { i } \right) / 2 \right) ^ { - \frac { 3 } { 2 } }$ and $\alpha _ { i , j } = 4 ( \sigma _ { i } ^ { 2 } + \sigma _ { j } ^ { 2 } )$ .
103
+
104
+ # 3.3 INSTANCE GROUPING
105
+
106
+ Let $\{ i : z _ { i } = k \}$ be the index set of points having instance $\textrm { I D } k$ . We take an average of these embeddings to get the embedding $\mathbf { c } _ { k }$ of instance $k$ , $\begin{array} { r } { \mathbf { c } _ { k } = \frac { 1 } { | \{ i : z _ { i } = k \} | } \sum _ { \{ i : z _ { i } = k \} } \mathbf { e } _ { i } } \end{array}$ . Since the sum of Gaussian random variables is still a Gaussian random variable, we can derive the following:
107
+
108
+ $$
109
+ p ( \mathbf { c } _ { k } ) = { \mathcal { N } } ( \mathbf { c } _ { k } ; { \hat { \mu } } _ { k } , { \hat { \Sigma } } _ { k } ) , \quad { \hat { \mu } } _ { k } = { \frac { 1 } { | \left\{ i : z _ { i } = k \right\} | } } \sum _ { \left\{ i : z _ { i } = k \right\} } \mu _ { i } , \quad { \hat { \Sigma } } _ { k } = { \frac { 1 } { | \left\{ i : z _ { i } = k \right\} | } } \sum _ { \left\{ i : z _ { i } = k \right\} } \Sigma _ { i } .
110
+ $$
111
+
112
+ Now we can measure the similarity between a point and an instance by using $\kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } )$ .
113
+
114
+ If $z _ { i } = k$ , we want $\kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } )$ to be close to 1, otherwise 0. We can optimize a binary cross entropy loss function,
115
+
116
+ $$
117
+ \mathcal { L } _ { I n s C E } = \frac { 1 } { N K } \sum _ { k = 0 } ^ { K - 1 } \sum _ { i = 1 } ^ { N } \left\{ \begin{array} { l l } { - \ln \kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } ) , } & { \mathrm { i f ~ } z _ { i } = k , } \\ { - \ln ( 1 - \kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } ) ) , } & { \mathrm { o t h e r w i s e } . } \end{array} \right.
118
+ $$
119
+
120
+ However, in practice, this suffers from a serious foreground-background imbalance problem. To remedy this drawback we propose to use the combined log-Dice loss function (Wong et al. (2018)) instead:
121
+
122
+ $$
123
+ \mathcal { L } _ { I n s } = \mathcal { L } _ { I n s C E } - \ln \frac { 2 \sum _ { k = 0 } ^ { K - 1 } \sum _ { i = 1 } ^ { N } \kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } ) \mathbb { 1 } _ { z _ { i } = k } } { \sum _ { k = 0 } ^ { K - 1 } \sum _ { i = 1 } ^ { N } \left( \kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } ) + \mathbb { 1 } _ { z _ { i } = k } \right) } ,
124
+ $$
125
+
126
+ where $\mathbb { 1 } _ { z _ { i } = k }$ is an indicator function which equals 1 when $z _ { i } = k$ , 0 otherwise.
127
+
128
+ Entropy Regularization. As we can see in Figure 3, when $\boldsymbol { \sigma } _ { i } ^ { ( l ) }$ and $\sigma _ { j } ^ { ( l ) }$ goes to infinity while keeping σ(li $\sigma _ { i } ^ { ( l ) } = \sigma _ { j } ^ { ( l ) }$ , $\beta _ { i , j } = 1$ and the similarity equals to 1 no matter what the value $\mu _ { i } - \mu _ { j }$ is. Formally speaking,
129
+
130
+ $$
131
+ \operatorname* { l i m } _ { \substack { \sigma _ { i } ^ { ( l ) } \infty , \sigma _ { j } ^ { ( l ) } \infty , \sigma _ { i } ^ { ( l ) } = \sigma _ { j } ^ { ( l ) } , l = 1 , 2 , 3 } } \kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { j } ) = 1 .
132
+ $$
133
+
134
+ Consequently, the similarity degenerates to constant 1 for every pair of embeddings. To address this issue, we propose an entropy regularizer,
135
+
136
+ $$
137
+ \mathcal { L } _ { R e g } = \sum _ { i = 1 } ^ { N } \mathbb { H } ( \mathbf { e } _ { i } ) = \sum _ { i = 1 } ^ { N } \left[ \frac { 3 } { 2 } \ln ( 2 \pi e ) + \frac { 1 } { 2 } \ln \left( \sigma _ { i } ^ { ( 1 ) } \sigma _ { i } ^ { ( 2 ) } \sigma _ { i } ^ { ( 3 ) } \right) ^ { 2 } \right] ,
138
+ $$
139
+
140
+ where $\mathbb { H } ( \mathbf { e } _ { i } )$ is the entropy of multivariate Gaussian variable $\mathbf { e } _ { i }$ . This regularizer is not only able to prevent the similarity degeneration by minimizing the variances along all dimensions, but can also penalize large uncertainties, thus increasing the confidence of the network output as in Grandvalet & Bengio (2005) and Wang et al. (2019a).
141
+
142
+ # 3.4 SEMANTIC CLASSIFICATION
143
+
144
+ Neven et al. (2019) introduces a way to use score maps to find cluster centers. Our main novelty is the new loss function, so our description focuses on this part. We still describe the greedy clustering steps from Neven et al. (2019) for completeness. In Section 4.2, we compare our new center-aware loss Eq 10 to the previously used minimum squared error (MSE) loss by Neven et al. (2019).
145
+
146
+ After defining the similarity measure, we can easily find out all points similar to an instance center. However, during the inference phase, we don’t have the information of ground-truth instance IDs, thus, it is impossible to use Eq. 3 to get instance centers. Therefore, along with distribution parameters $\{ \mu _ { i } \} _ { i = 1 } ^ { N }$ and $\{ \pmb { \sigma } _ { i } \} _ { i = 1 } ^ { N }$ , we also predict a score map $\{ { \bf p } _ { i } \} _ { i = 1 } ^ { N }$ , where $\mathbf { p } _ { i } \in \mathbb { R } ^ { L }$ and its $l$ -th entry p(l) indicates the probability of $\mathbf { x } _ { i }$ being an instance center with class label $l$ . Consider $\tilde { \mathbf { Q } } \in \mathbb { R } ^ { N \times K }$ ,
147
+
148
+ $$
149
+ \begin{array} { r } { \tilde { \mathbf { Q } } [ i , k ] = \kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } ) \mathbb { 1 } _ { z _ { i } = k } = \left\{ { \begin{array} { l l } { \kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } ) } & { z _ { i } = k , } \\ { 0 } & { \mathrm { o t h e r w i s e } , } \end{array} } \right. } \end{array}
150
+ $$
151
+
152
+ where each entry $\tilde { \bf Q } [ i , k ]$ can be interpreted as the probability of $\mathbf { x } _ { i }$ being the center of instance $k$ . Upon this we calculate $\mathbf { Q } \in \mathbb { R } ^ { N \times \dot { L } }$ , where $\mathbf { Q } [ i , l ]$ gives the probability of $\mathbf { x } _ { i }$ being an instance center with class label $l$ ,
153
+
154
+ $$
155
+ \mathbf { Q } [ i , l ] = \operatorname* { m a x } _ { \{ k : y ( k ) = l \} } \tilde { \mathbf { Q } } [ i , k ] ,
156
+ $$
157
+
158
+ where $y ( k )$ is the class label of instance $k$ , due to the fact that $\{ { \bf x } _ { i } : z _ { i } = k \}$ must have the same class label. (See an illustration in Appendix Figure 7.)
159
+
160
+ We design a new loss function,
161
+
162
+ $$
163
+ \mathcal { L } _ { S c o r e } = \frac { 1 } { N L } \sum _ { i = 1 } ^ { N } \sum _ { l = 1 } ^ { L } - \mathbf { Q } [ i , l ] \log \mathbf { P } [ i , l ] .
164
+ $$
165
+
166
+ Here $\mathbf { Q }$ is fixed as a target when training. See appendix for a detailed explanation of the loss function.
167
+
168
+ The inference process is done with a greedy approach (Neven et al. (2019)). From foreground score maps $\{ \mathbf { P } [ : , 1 ] , \mathbf { \bar { P } } [ : , 2 ] , \ldots , \mathbf { P } [ : , L ] \}$ , we sample a point $\mathbf { x } _ { i _ { 0 } }$ with highest score $\mathbf { P } [ i _ { 0 } , l _ { 0 } ]$ , where $i _ { 0 }$ is the point index and $l _ { 0 }$ is its class label,
169
+
170
+ $$
171
+ \operatorname * { a r g m a x } _ { l _ { 0 } , l _ { 0 } \in \{ 1 , 2 , . . . , L \} } { \bf P } [ : , l _ { 0 } ] ( i _ { 0 } , l _ { 0 } ) = \operatorname * { a r g m a x } _ { i \in \{ 1 , 2 , . . . , N \} , l \in \{ 1 , 2 , . . . , L \} } { \bf P } [ i , l ] .
172
+ $$
173
+
174
+ The point $\mathbf { x } _ { i _ { 0 } }$ is an anchor and we want to find all similar points. Specifically we find all points $\mathbf { x } _ { i }$ with $\kappa ( \mathbf { e } _ { i } , \mathbf { e } _ { i _ { 0 } } ) \geq \tau$ . As a result, the instance $\mathrm { I D }$ of $\mathbf { x } _ { i }$ is 0. After that, all points satisfying the inequality are all masked out. Similarly, we sample $\mathbf { x } _ { i _ { 1 } }$ and mask out points with instance ID 1, sample $\mathbf { x } _ { i _ { 2 } }$ and mask out points with instance $\mathrm { I D 2 }$ , and so on. We stop this loop if there is no point left. We use the validation set to fit hyperparameter $\tau$ , which is 0.35 in our experiments.
175
+
176
+ # 4 RESULTS
177
+
178
+ We describe the implementation details in the appendix. PartNet (Mo et al. (2019)) provides coarse-, middle- and fine-grained part instance-level annotations for 3D point clouds from ShapeNet (Chang et al. (2015)). It contains 24 object categories, but the number of training samples varies greatly from 92 to 5707 for different categories. In contrast to indoor scene point cloud datasets (e.g., ScanNet by Dai et al. (2017)), instances (object parts) of PartNet require more context to be classified and are connected. Many visually alike parts have different semantic labels, e.g., ping-pong table’s legs and pool table’s legs in the category of table. Also, instance masks should have no overlaps. All these make it a very challenging dataset for instance segmentation. While our main experiments are on PartNet, we provide results on ScanNet in the appendix.
179
+
180
+ # 4.1 QUANTITATIVE AND QUALITATIVE RESULTS
181
+
182
+ We report per-category mean Average Precision (mAP) scores for the PartNet dataset in Table 1.
183
+ The IoU threshold is 0.5. We compare our probabilistic embedding algorithm to GSPN (Yi et al.
184
+ (2019)), PartNet (Mo et al. (2019)) and SGPN (Wang et al. (2018)). The results are averaged over three levels of granularity (fine(3), middle(2), and coarse(1)). It should be noted that GSPN (Yi et al.
185
+ (2019)) only reports fine-grained results of 4 categories.
186
+
187
+ On the complete dataset, our method outperforms the best competitor PartNet by $3 . 1 \%$ average per-category mAP. We can observe that our method has a slightly bigger advantage in fine-grained instance segmentation compared to coarse-grained instance segmentation ( $3 . 2 \%$ vs. $2 . 5 \%$ ). We can also observe consistent improvements in categories with little as well as many training samples. While we beat SOTA in all categories with many training samples (Chair, Table, StorageFurniture, and Lamp), PartNet has better results in some of the categories with fewer training samples.
188
+
189
+ We also show visualization examples in Figure 8. Compared to PartNet (Mo et al. (2019)), our method shows great improvement especially when there are many instances in a point cloud.
190
+
191
+ # 4.2 ABLATION STUDY AND ANALYSIS
192
+
193
+ We conduct the ablation study on all categories of PartNet (Mo et al. (2019)), but we only list detailed values for the four largest categories in Table 2.
194
+
195
+ Effect of probabilistic embedding. We compare four different versions of probabilistic embedding. The Gaussian distribution used in the model can either be isotropic or anisotropic, homoscedastic or heteroscedastic. Thus we have isotropic homoscedastic, anisotropic homoscedastic, isotropic heteroscedastic, and anisotropic heteroscedastic.
196
+
197
+ Table 1: Instance segmentation results on PartNet (part-category $\mathbf { m A P \% }$ , IoU threshold 0.5, fine(3), middle(2), and coarse(1)-grained).
198
+
199
+ <table><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg</td><td rowspan=1 colspan=1>3 Bog Gaet Coe o 00 Jaeee aiue duer donder L.ITITe p3品M3 s30A</td></tr><tr><td></td><td rowspan=1 colspan=1>SPSS</td><td rowspan=1 colspan=2>123[55.7|29.729.5</td><td rowspan=1 colspan=1>38.8 29.8 61.956.972.420.372.289.349.057.8 63.2 68.720.0 63.232.710.050.682.250.671.732.949.2 56.846.6115.41 125.4- 58.1-25.4 121.7-49.4-22.1-30.5 18.9111.8 45.1-19.4 18.2 38.3 78.8 15.4 35.9 37.8- 38.3 14.4-32.7- 18.2 - 21.5 14.6 24.9 36.5</td></tr><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg</td><td rowspan=1 colspan=1>46.8</td><td rowspan=1 colspan=1>Avg46.8|38819.053.556939.119.356.284.129.946950.568.720.050.822.910044.282.230.371.728.327.640.941.6</td></tr><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1</td></tr><tr><td></td><td rowspan=1 colspan=1>SSSD</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>- = -- 26.8 18.3 26.7 21.9</td></tr><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>|Avg|-</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1 = - - - - 1 - - - - - = = - = - - - - - - - 1</td></tr><tr><td></td><td rowspan=1 colspan=1>Pree</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>37.436.6</td><td rowspan=1 colspan=1>62.664.748463.659.774.442.876.393.352.957769.670.943.958437.2100050.06050080.945.254.271749.823.0 35.5,62.839.7= -26.9·47.8 35.235.031.0115.0 48.6129.0 32.3 53.3 80.1 17.2 39.4 44.7 45.8 18.7 ·34.8:26.5127.5 23.9 33.7 52.0</td></tr><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Avg|54.4</td><td rowspan=1 colspan=1>Avg54.464.728.856.159.746.3376 64.186.736.648.657.2 70.943.952.127.6100044.286.037.280.935.936.452.750.9</td></tr><tr><td rowspan=2 colspan=2>s.Ino</td><td rowspan=1 colspan=1>s.Ino</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>40.439.8</td></tr><tr><td rowspan=1 colspan=2>Avg57.5</td><td rowspan=1 colspan=1>Avg57.564.6362 569 7.050.135.6 6.788.741.3 54.9 64.4 71.8 48.660.529.51000462 90.9 39.688.641.232.453.448.</td></tr></table>
200
+
201
+ ![](images/9aae9c1ad1dec43cab2d498fdaed4865cd7b8934af5bf3b533bd2c2c4268646f.jpg)
202
+ Figure 4: Top row: ground-truth. Middle row: PartNet. Bottom row: Probabilistic Embedding. We show true positives (IoU threshold 0.5) with the same color as ground truth. False detections are shown in transparent red.
203
+
204
+ The isotropic homoscedastic probabilistic embedding, learns to predict a single scalar representing the uncertainty of a point cloud. We do not see improvements over its determinisitc counterpart, but there is a large gap between them in large categories which have much more part instances and classes than others.
205
+
206
+ Similar cases happen in anisotropic homoscedastic and isotropic homoscedastic embedding. The former learns a 3D uncertainty vector for a single point cloud, while the latter learns point-dependent uncertainty scalars. They all show significant improvements over determinisitc embedding on finegrained categories.
207
+
208
+ Finally, our full model uses anisotropic heteroscedastic probabilistic embedding, which outputs not only point-dependent but also axis-dependent uncertainties. See Figure 5 for an illustration of learned uncertainties. The points at boundary regions have significantly larger uncertainties compared to others. In summary, the full model achieves the best results among all variations.
209
+
210
+ Table 2: Ablation study. Center, ExtDim, Prob refer to our proposed center-aware loss for the clustering step, the 6D deterministic embedding, and our proposed probabilistic embedding. Aniso and Hetero refer to the choice of Gaussian: anisotropic and heteroscedastic. AllAvg means taking all levels of granularity and categories into consideration. Large means fine-grained level of four largest categories. Others means fine-grained level of all the other categories. Here we also list the results on four largest categories of fine-grained level. The top two results are marked bold.
211
+
212
+ <table><tr><td>Ablation</td><td>Model</td><td>ceeer</td><td>aig </td><td>1STUo</td><td>aH</td><td>BAAIA</td><td>△</td><td>e</td><td>△</td><td>sPett</td><td>△</td><td>Gart</td><td>△</td><td>due</td><td>△</td><td>2</td><td>△</td><td>Jqee</td><td>△</td></tr><tr><td>Loss</td><td></td><td></td><td></td><td>&lt;</td><td></td><td>|54.3</td><td>-0.7</td><td>16.2</td><td>-7.3</td><td>43.1</td><td>3.1</td><td>19.0</td><td>-8.4</td><td>8.8</td><td>-9.6</td><td>29.7</td><td>6.2</td><td>7.1</td><td>-17.4</td></tr><tr><td rowspan="2">Deterministic</td><td rowspan="2">Reference</td><td>M</td><td></td><td></td><td></td><td>55.0</td><td>0.0</td><td>23.4</td><td>0.0</td><td>40.0</td><td>0.0</td><td>27.4</td><td>0.0</td><td>18.5</td><td>0.0</td><td>23.5</td><td>0.0</td><td>24.4</td><td>0.0</td></tr><tr><td></td><td>√</td><td></td><td></td><td>56.2</td><td>1.2</td><td>27.2</td><td>3.7</td><td>41.2</td><td>1.2</td><td>32.8</td><td>5.4</td><td>20.2</td><td>1.7</td><td>29.8</td><td>6.4</td><td>25.8</td><td>1.4</td></tr><tr><td rowspan="4">Probabilistic</td><td></td><td></td><td></td><td></td><td></td><td>54.7</td><td>-0.3</td><td>26.4</td><td>3.0</td><td>39.9</td><td>-0.1</td><td>33.7</td><td>6.3</td><td>17.8</td><td>-0.7</td><td>30.0</td><td>6.5</td><td>24.3</td><td>-0.2</td></tr><tr><td></td><td>区</td><td></td><td></td><td>√</td><td>53.1</td><td>-1.9</td><td>27.4</td><td>3.9</td><td>38.1</td><td>-1.8</td><td>33.6</td><td>6.2</td><td>20.0</td><td>1.5</td><td>30.9</td><td>7.5</td><td>25.0</td><td>0.6</td></tr><tr><td></td><td></td><td>√</td><td>√</td><td></td><td></td><td>55.60.6</td><td>27.3</td><td>3.9</td><td>41.0</td><td>1.1</td><td>33.9</td><td>6.5</td><td>19.5</td><td>1.0</td><td>31.1</td><td>7.6</td><td>24.8</td><td>0.3</td></tr><tr><td>Full</td><td>公</td><td>√</td><td>√</td><td>√</td><td>57.5</td><td>2.5</td><td>28.7</td><td>5.2</td><td>43.0</td><td>3.0</td><td>34.7</td><td>7.3</td><td>20.3</td><td>1.8</td><td>34.2</td><td>10.7</td><td>25.5</td><td>1.1</td></tr></table>
213
+
214
+ ![](images/061579210f0d0b85ff94609c453a44632715c2777bb1eb4bd9023d829df5d84f.jpg)
215
+ Figure 5: Learned Uncertainties. Top left: uncertainties are represented as ellipsoids, where directional scaling shows the value of uncertainties along 3 axes. The other 3 subfigures: uncertainties along 3 axes. We represent large values with red colors and smaller values with blue colors.
216
+
217
+ ![](images/445c93162d986452a5aab014b737b0b5d64453b744ea7cf75f797abed41d9b72.jpg)
218
+ Figure 6: Comparison of embeddings. Top row: Deterministic embedding. Bottom row: Probabilistic embedding. Left to right: we show a gradual shape transformation between the original point cloud and the embedded point cloud.
219
+
220
+ Effect of spatial embedding. Since our full model outputs a 3D center vector and 3D uncertainty vector, in a way, we can regard it as a 6D embedding method (with a totally different similarity kernel). One may wonder: how does it compare with the performance of 6D deterministic embedding? The results in Table 2 show, increasing the dimension of deterministic embedding from 3 to 6 shows some improvement, but less than using probabilistic embedding. Thus the performance of our method, cannot be achieved by simply increasing the dimension of deterministic embedding, which also shows the superiority of the probabilistic embedding. We illustrate the differences between deterministic and probabilistic embedding in 3D in Figure 6. We can observe, that probabilistic embedding introduces much stronger deformations of the geometry.
221
+
222
+ Effect of center-aware loss. We examine the effect of the center-aware loss in the clustering step. We use the same setup as in our full model except changing the center-aware loss to MSE loss (Neven et al. (2019)). In Table 2, we can see that our proposed loss function is especially stable on large fine-grained datasets $5 . 2 \%$ vs $- 7 . 3 \%$ ).
223
+
224
+ # 5 CONCLUSION
225
+
226
+ We build on embedding-based instance segmentation to present a framework of probabilistic embedding and a new loss function for the clustering step. We evaluate our framework on a large scale point cloud dataset, PartNet, and achieve state-of-the-art performance. Moreover, the qualitative results show the new framework is robust to point clouds with many instances. Additionally, it is able to estimate uncertainties while increasing the accuracy of instance segmentation. In future work, we hope that the probabilistic embedding can be further applied to other kinds of data representation, e.g., 2D images, 3D volumes, and meshes.
227
+
228
+ # REFERENCES
229
+
230
+ Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015. 6
231
+
232
+ Christopher Choy, JunYoung Gwak, and Silvio Savarese. 4d spatio-temporal convnets: Minkowski convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3075–3084, 2019. 15
233
+
234
+ Angela Dai, Angel X Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5828–5839, 2017. 6, 13
235
+
236
+ Bert De Brabandere, Davy Neven, and Luc Van Gool. Semantic instance segmentation with a discriminative loss function. arXiv preprint arXiv:1708.02551, 2017. 1, 2
237
+
238
+ Garoe Dorta, Sara Vicente, Lourdes Agapito, Neill D. F. Campbell, and Ivor Simpson. Structured uncertainty prediction networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 1
239
+
240
+ Francis Engelmann, Martin Bokeloh, Alireza Fathi, Bastian Leibe, and Matthias Nießner. 3dmpa: Multi-proposal aggregation for 3d semantic instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9031–9040, 2020. 15
241
+
242
+ Alireza Fathi, Zbigniew Wojna, Vivek Rathod, Peng Wang, Hyun Oh Song, Sergio Guadarrama, and Kevin P Murphy. Semantic instance segmentation via deep metric learning. arXiv preprint arXiv:1703.10277, 2017. 1, 2
243
+
244
+ Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019. 13
245
+
246
+ Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pp. 1440–1448, 2015. 2
247
+
248
+ Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pp. 529–536, 2005. 5
249
+
250
+ Lei Han, Tian Zheng, Lan Xu, and Lu Fang. Occuseg: Occupancy-aware 3d instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2940–2949, 2020. 15
251
+
252
+ Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In ´ Proceedings of the IEEE international conference on computer vision, pp. 2961–2969, 2017. 1, 2
253
+
254
+ Tong He, Zhi Zhang, Hang Zhang, Zhongyue Zhang, Junyuan Xie, and Mu Li. Bag of tricks for image classification with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 558–567, 2019. 12
255
+
256
+ Tony Jebara, Risi Kondor, and Andrew Howard. Probability product kernels. Journal of Machine Learning Research, 5(Jul):819–844, 2004. 2, 3
257
+
258
+ Li Jiang, Hengshuang Zhao, Shaoshuai Shi, Shu Liu, Chi-Wing Fu, and Jiaya Jia. Pointgroup: Dualset point grouping for 3d instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4867–4876, 2020. 15
259
+
260
+ Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In Advances in neural information processing systems, pp. 5574–5584, 2017. 1, 2
261
+
262
+ Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7482–7491, 2018. 1, 2, 3
263
+
264
+ Salman Khan, Munawar Hayat, Syed Waqas Zamir, Jianbing Shen, and Ling Shao. Striking the right balance with uncertainty. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1
265
+
266
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 13
267
+
268
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 2
269
+
270
+ Shu Kong and Charless C Fowlkes. Recurrent pixel embedding for instance grouping. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9018–9028, 2018. 1
271
+
272
+ Jean Lahoud, Bernard Ghanem, Marc Pollefeys, and Martin R Oswald. 3d instance segmentation via multi-task metric learning. arXiv preprint arXiv:1906.08650, 2019. 1, 15
273
+
274
+ Xiaodan Liang, Liang Lin, Yunchao Wei, Xiaohui Shen, Jianchao Yang, and Shuicheng Yan. Proposal-free network for instance-level object segmentation. IEEE transactions on pattern analysis and machine intelligence, 40(12):2978–2991, 2017. 2, 3
275
+
276
+ Chao Liu, Jinwei Gu, Kihwan Kim, Srinivasa G. Narasimhan, and Jan Kautz. Neural rgb(r)d sensing: Depth and uncertainty from a video camera. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1
277
+
278
+ Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8759–8768, 2018. 1, 2
279
+
280
+ Kaichun Mo, Shilin Zhu, Angel X Chang, Li Yi, Subarna Tripathi, Leonidas J Guibas, and Hao Su. Partnet: A large-scale benchmark for fine-grained and hierarchical part-level 3d object understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 909–918, 2019. 1, 2, 6, 12
281
+
282
+ Davy Neven, Bert De Brabandere, Marc Proesmans, and Luc Van Gool. Instance segmentation by jointly optimizing spatial embeddings and clustering bandwidth. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8837–8845, 2019. 1, 2, 3, 5, 6, 8, 15
283
+
284
+ David Novotny, Samuel Albanie, Diane Larlus, and Andrea Vedaldi. Semi-convolutional operators for instance segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 86–102, 2018. 1, 2, 3
285
+
286
+ Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, highperformance deep learning library. In Advances in Neural Information Processing Systems, pp. 8024–8035, 2019. 13
287
+
288
+ Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pp. 5099–5108, 2017. 2, 12
289
+
290
+ Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91–99, 2015. 2
291
+
292
+ Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. 2
293
+
294
+ Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818–2826, 2016. 12
295
+
296
+ Dequan Wang, Evan Shelhamer, Bruno Olshausen, and Trevor Darrell. Dynamic scale inference by entropy minimization. arXiv preprint arXiv:1908.03182, 2019a. 5
297
+
298
+ Weiyue Wang, Ronald Yu, Qiangui Huang, and Ulrich Neumann. Sgpn: Similarity group proposal network for 3d point cloud instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2569–2578, 2018. 1, 2, 6
299
+
300
+ Xinlong Wang, Shu Liu, Xiaoyong Shen, Chunhua Shen, and Jiaya Jia. Associatively segmenting instances and semantics in point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4096–4105, 2019b. 1, 2
301
+
302
+ Ken CL Wong, Mehdi Moradi, Hui Tang, and Tanveer Syeda-Mahmood. 3d segmentation with exponential logarithmic loss for highly unbalanced object sizes. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 612–619. Springer, 2018. 5
303
+
304
+ Li Yi, Wang Zhao, He Wang, Minhyuk Sung, and Leonidas J Guibas. Gspn: Generative shape proposal network for 3d instance segmentation in point cloud. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3947–3956, 2019. 2, 6
305
+
306
+ # A APPENDIX
307
+
308
+ # A.1 CENTER-AWARE LOSS EXPLANATION
309
+
310
+ We want $\mathbf { P } \in \mathbb { R } ^ { N \times L }$ , the matrix form of $\{ { \bf p } _ { i } \} _ { i = 1 } ^ { N }$ , to satisfy two conditions:
311
+
312
+ 1. $\mathbf { P } [ i , : ]$ is a probability vector and can be used to infer class label $y _ { i }$ of point $\mathbf { x } _ { i }$ , i.e., $y _ { i } =$ arg $\mathrm { m a x } _ { l = 1 } ^ { L } \mathbf { P } [ i , l ]$ .
313
+ 2. For foreground class labels $l \in \{ 1 , 2 , \ldots , L \} , \mathbf { P } [ : , l ]$ is a score map of being an instance center with class label $l$ .
314
+
315
+ The first condition is easy to satisfy with the cross entropy loss. Assuming $\mathbf { P } [ i , : ]$ is the output of a softmax function, we can minimize,
316
+
317
+ $$
318
+ \mathcal { L } _ { C l s C E } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \left( \frac { 1 } { L } \sum _ { l = 1 } ^ { L } - \mathbb { 1 } _ { y _ { i } = l } \log \mathbf { P } [ i , l ] \right) ,
319
+ $$
320
+
321
+ where $\mathbb { 1 } _ { y _ { i } = l }$ is an indicator function which equals 1 when $y _ { i } = l , 0$ otherwise.
322
+
323
+ For the second condition, we take into account $\kappa ( \mathbf { e } _ { i } , \mathbf { c } _ { k } )$ , which is the similarity between $\mathbf { x } _ { i }$ and an instance $k$ .
324
+
325
+ We want both $\mathbf { P } [ : , l ]$ and $\mathbf { Q } [ : , l ]$ to achieve local maxima at the same points for all $l \in \{ 1 , 2 , \ldots , L \}$ . When we are doing inference, these local maxima are chosen as instance centers. Therefore, the first condition can be weakened, and only points which are close to instance centers should be classified correctly.
326
+
327
+ We can view $\mathcal { L } _ { S c o r e }$ in two ways,
328
+
329
+ 1. First, we switch the order of summation in Eq. 10,
330
+
331
+ $$
332
+ \mathcal { L } _ { S c o r e } = \frac { 1 } { L } \sum _ { l = 1 } ^ { L } \left( \frac { 1 } { N } \sum _ { i = 1 } ^ { N } - \mathbf { Q } [ i , l ] \log \mathbf { P } [ i , l ] \right) .
333
+ $$
334
+
335
+ The value of this quantity $- \mathbf { Q } [ i , l ] \log \mathbf { P } [ i , l ]$ is high when weight term $\mathbf { Q } [ i , l ]$ is high, and if we minimize it, we are forcing $- \log \mathbf { P } [ i , l ]$ to be small. Consequently, $\mathbf { P } [ i , l ]$ would be large. This guarantees local maxima of $\mathbf { Q } [ : , l ]$ are also local maxima of $\mathbf { P } [ : , l ]$ . And minimizing this loss term is equivalent to minimize the KL-divergence between (unnor$\mathbf { Q } [ : , l ]$ and (unnormalized probability) $\begin{array} { r l } { \mathbf { P } [ : , l ] , \mathbb { K L } ( \mathbf { Q } [ : , l ] | \mathbf { P } [ : , l ] ) } & { { } = } \end{array}$ $\begin{array} { r } { \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \mathbf { Q } [ i , l ] \log \frac { \mathbf { Q } [ i , l ] } { \mathbf { P } [ i , l ] } } \end{array}$
336
+
337
+ Table 3: Activations for different output branches
338
+
339
+ <table><tr><td></td><td>Output</td><td>Activation</td></tr><tr><td>Centers</td><td>Oi∈R</td><td>μ = Xi +tanhOi</td></tr><tr><td>Uncert</td><td>ER</td><td>Oi = expoi</td></tr><tr><td>Scores</td><td>PiER</td><td>Pi = softmax(Pi)</td></tr></table>
340
+
341
+ 2. Second, we look at the inner summation of Eq. 10,
342
+
343
+ $$
344
+ \mathcal { L } _ { S c o r e } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \left( \frac { 1 } { L } \sum _ { l = 1 } ^ { L } - \mathbf { Q } [ i , l ] \log \mathbf { P } [ i , l ] \right) .
345
+ $$
346
+
347
+ The inner summation inside the round bracket is the cross entropy between $\mathbf { Q } [ i , : ]$ and $\mathbf { P } [ i , : ]$ . And it is equivalent to replacing the one-hot vector in Equation 12 with $\mathbf { Q } [ i , : ]$ . Also, it is the form of label smoothing, a commonly used training trick in image classification (Szegedy et al. (2016); He et al. (2019)). The closer $\mathbf { Q } [ i , : ]$ is to a one-hot vector, the more confidence we give to the classification loss of point $\mathbf { x } _ { i }$ . By definition of $\mathbf { Q } [ i , l ]$ , it can be easily seen that the resulting classifier only classifies near-centers points correctly. Thus we call our new loss function the center-aware loss.
348
+
349
+ # A.2 IMPLEMENTATION
350
+
351
+ For a fair comparison to our main competitor PartNet (Mo et al. (2019)) we keep as much of their structure as possible (Note that PartNet is the name of a dataset as well as an instance segmentation method). We also use PointNet $^ { + + }$ (Qi et al. (2017)) as the feature extraction backbone, with the same parameters as by Mo et al. (2019). We use 3 output heads for centers, uncertainties, and scores as in $\mathsf { \bar { f } } ( \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { N } ) = \mathsf { \bar { \{ } } \mu _ { i } , \pmb { \sigma } _ { i } , \mathbf { p } _ { i } \} _ { i = 1 } ^ { N }$ . The output dimensions are 3, 3 and the number of semantic classes, uncertainties and scores, respectively. We list the activation functions for output heads in Table 3.
352
+
353
+ Following the notation of PointNet+ $^ +$ Qi et al. (2017), we give the architecture of the feature network:
354
+
355
+ $$
356
+ \begin{array} { r l } & { S A ( 5 1 2 , 0 . 2 , [ 6 4 , 6 4 , 1 2 8 ] ) , } \\ & { S A ( 1 2 8 , 0 . 4 , [ 1 2 8 , 1 2 8 , 2 5 6 ] ) , } \\ & { S A ( [ 2 5 6 , 5 1 2 , 1 0 2 4 ] ) , } \\ & { F P ( 2 5 6 , 2 5 6 ) , } \\ & { F P ( 2 5 6 , 1 2 8 ) , } \\ & { F P ( 1 2 8 , 1 2 8 ) . } \end{array}
357
+ $$
358
+
359
+ The output head network is:
360
+
361
+ F ullyConnected(128, 256),
362
+ BatchNorm(256),
363
+ ReLU (),
364
+ F ullyConnected(256, 128),
365
+ BatchNorm(128),
366
+ ReLU (),
367
+ F ullyConnected(128, 128),
368
+ BatchNorm(128),
369
+ ReLU (),
370
+ F ullyConnected(128, C),
371
+
372
+ ![](images/5baeeb435abae2f1dd6a5beaea5aa831f9f1138ce902c7095c7ed3866bba6c81.jpg)
373
+ Figure 7: Top row: similarity maps for each part instance $\tilde { \mathbf { Q } } [ : , k ]$ . Bottom row: probability map $\mathbf { Q } [ : , l ]$ . The arrows show that information of instances of the same class is aggregated in Eq. 9. Red means high similarity, while blue means low.
374
+
375
+ Table 4: Instance segmentation results on PartNet. The metric is mAP $( \% )$ with IoU threshold 0.25.
376
+
377
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg</td><td rowspan=1 colspan=1>Bnoget o 0 aenee doider i 383品M3s </td></tr><tr><td rowspan=1 colspan=1>d</td><td rowspan=1 colspan=1>123</td><td rowspan=1 colspan=1>70.2|46.745.6</td><td rowspan=1 colspan=1>89.482.3 65.263.178.148.079.197.164.9 64.677.373.958.959.242.510.0 50.092.950.096.357.759.382.752.6144.5 43.0171.3-49.3 = 32.2 1 51.2 45.2146.7 36.5-29.0 52.6-35.3 39.6 59.9 89.3 27.1 56.9 55.0 -49.0 22.6 1 56.9135.6,36.3 28.6 44.8 57.0</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg|</td><td rowspan=1 colspan=1>62.8|</td><td rowspan=1 colspan=1>389.4 51.9 58.9 63.152.143.8 70.193.247.160.8 66.2 73.958.954.132.4100052.792.943.696.346.941.5 63.8 54.8</td></tr><tr><td rowspan=1 colspan=1>s.no</td><td rowspan=1 colspan=1>1123</td><td rowspan=1 colspan=1>72.751.451.6</td><td rowspan=1 colspan=1>82.8 79.6 65.672.082.8 49.183.8 98.375.574.3 83.279.5 59.97.8 45.2 1.050.595.4 51.696.9 60.944.682.9 51.1,55.41 147.1-78.0-48.1 39.3154.448.853.737.7-44.4 57.2,43.2 45.7 64.8 90.7 34.6 59.3 67.2 53.0 26.0 1 60.0-51.5- 44.4 31.7 50.0 53.9</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg|</td><td rowspan=1 colspan=1>66.5</td><td rowspan=1 colspan=1>66.582.8 59.8 61.472.057.747.475.694.552.7 66.8 75.279.559.9 65.936.8100055.095.4 506 96.953.038.0 66.5 52.5</td></tr></table>
378
+
379
+ where $C$ is 3, 3 and the number of classes for centers, uncertainties and scores, respectively.
380
+
381
+ We implemented our method using PyTorch Paszke et al. (2019) and the geometric deep learning library PyTorch Geometric Fey & Lenssen (2019). The final objective function is
382
+
383
+ $$
384
+ \mathcal { L } = \mathcal { L } _ { I n s } + \mathcal { L } _ { S c o r e } + 0 . 0 0 1 \cdot \mathcal { L } _ { R e g }
385
+ $$
386
+
387
+ We use random jittering, translation (between $- 0 . 0 1$ and 0.01) and rotation (between $- 1 5 ^ { \circ }$ and $1 5 ^ { \circ }$ for each axis) as data augmentation, and use the Adam Kingma & Ba (2014) optimizer. We use a batch-size of 16 and an initial learning rate of 0.001 for 500 epochs with a decay factor of 0.5 at epoch 50 and epoch 150.
388
+
389
+ # A.3 ADDITIONAL RESULTS ON PARTNET
390
+
391
+ Results of different IoU thresholds We report detailed results of IoU threshold at $2 5 \%$ and $7 5 \%$ in Table 4 and Table 5. The metric is mean Average Precision (mAP).
392
+
393
+ Qualitive results We present more qualitive results in Figure 8 which shows the instanceawareness of our method. We also demonstrate the 3D models in the attached video.
394
+
395
+ # A.4 ADDITIONAL RESULTS ON SCANNET
396
+
397
+ ScanNet (Dai et al. (2017)) is a dataset containing 3D reconstructions of indoor scenes. Different from objects in PartNet, instances are more separated, e.g., chairs and tables usually are not connected, while in PartNet, parts are closely connected together and have more intertwined correspondence. Also PartNet provides detailed and high-granularity semantic and instance information, i.e. the number of instances and classes are often larger than ones of ScanNet. This makes PartNet a more suitable dataset for instance segmentation. However, we still validate our method on ScanNet to show the potential of probabilistic embedding. As baseline method we chose a network based on performance and availability of code. Since the best methods, such as OccuSeg, do not release code for ScanNet, we decided to build our own baseline using MinkowskiNet (Choy et al. (2019)) as feature backbone. MinkowskiNet is a sparse tensor network that achieved great results on indoor semantic scene segmentation. In order to adapt the network to instance segmentation, we re-implement the learnable margin method proposed by Neven et al. (2019). The learnable margin method does well on common image instance segmentation datasets and is well-balanced both in speed and accuracy. This combination of two recent papers gives a strong baseline, but not stateof-the-art results in the metrics. We compare to this baseline, also using MinkowskiNet as feature backbone to make the results directly comparable.
398
+
399
+ Table 5: Instance segmentation results on PartNet. The metric is mAP $( \% )$ with IoU threshold 0.75.
400
+
401
+ <table><tr><td></td><td></td><td>Avg</td><td>3</td><td>o o0</td><td>eenee duer doider L.ITe 0 阿 S 品 M</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td>22.0 1</td><td>4.2</td><td>47.439.714.6 60.641.458.328.858.384.735.649.148.2 66.310.748.729.698.047.876.150.035.129.943.242.240.5</td></tr><tr><td>ee</td><td>123</td><td>23.5</td><td>-</td><td>21.4 1 = 3.937.9 、</td><td>37.2 1 22.4 19.6 1 32.1 1 16.7 1 22.8 22.0 - 16.6 17.6 29.8 63.2 8.1 27.6 25.8 31.0 13.6 23.9 12.1 18.2 16.4 19.7 34.5</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>- - - 1 -</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>Avg|38.939.77.649.241.432.123.241.773.922038437.066.310.739.820.998.3467.126.335.123.627.23037.5</td></tr><tr><td></td><td>1</td><td>23.8</td><td></td><td>7.1 1 22.8</td><td>50.040.313.3 60.2 60.259.328.261.990.639.159.6542 69.37.465.728.598.047.977.150.542.830.134.840.741.1 -22.0- 35.5- 20.6- 26.121.4 1 -</td></tr><tr><td>,</td><td></td><td>23 |25.7</td><td>- 7.3 38.8</td><td>37.4- 21.3 20.5 17.2 30.0 66.8 10.8 28.2 33.2</td><td>31.5 14.1 21.0 17.4 19.4 38.0</td></tr><tr><td>s.no</td><td></td><td></td><td></td><td>-</td><td>, 25.6 , 17.1 -</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>Avg|41.740.39.249.5 60.234.2.743.178.723.743.9 43.769.37.448.621.5 98.36477.129.4 42.8 25.724.50039.6</td></tr></table>
402
+
403
+ ![](images/ddf38a2b7c8ca8218109b83409407d1b63c79a627cad3c1e1be3de09a03af765.jpg)
404
+ Figure 8: Top row: ground-truth (background points are shown in transparent red). Second and third row: PartNet and Ours (only true positives are shown, and false detections are shown in transparent red). Fourth and fifth row: PartNet and Ours (all detected instances, unclassified points are shown in transparent red). PartNet can group instance points together but fails to give the correct class labels in some cases (e.g., in the first and the third subfigures from left to right, points of table legs are grouped together (fourth row) but they are not true positives (second row). Besides, in the sixth subfigure from left to right, PartNet fails to distinguish different instances of lamp covers (second and fourth row). While our method performs especially better in these cases.
405
+
406
+ Table 6: Results on ScanNet. We list the results on both validation and hidden test sets of ScanNet. Note that due to the unique submission policy of ScanNet, we are unable to provide the results of learnable margin on the test set. On validation set, we improve mAP by $4 . 9 \%$ .
407
+
408
+ <table><tr><td></td><td colspan="3">validation</td><td colspan="3">test</td></tr><tr><td></td><td>mAP</td><td>AP50</td><td>AP25</td><td>mAP</td><td>AP50</td><td>AP25</td></tr><tr><td>MTML (Lahoud et al. (2019))</td><td>20.3</td><td>40.2</td><td>55.4</td><td>28.2</td><td>54.9</td><td>73.1</td></tr><tr><td>3D-MPA (Engelmann et al. (2020))</td><td>35.3</td><td>59.1</td><td>72.4</td><td>35.5</td><td>61.1</td><td>73.7</td></tr><tr><td>PointGroup (Jiang et al. (2020))</td><td>34.8</td><td>56.9</td><td>71.3</td><td>40.7</td><td>63.6</td><td>77.8</td></tr><tr><td>OccuSeg (Han et al. (2020))</td><td>44.2</td><td>60.7</td><td>71.9</td><td>44.3</td><td>63.4</td><td>73.9</td></tr><tr><td>Learnable margin + MinkowskiNet</td><td>28.1</td><td>50.1</td><td>70.1</td><td>-</td><td>1</td><td>-</td></tr><tr><td>Proposed + MinkowskiNet</td><td>33.0</td><td>57.1</td><td>73.8</td><td>32.8</td><td>56.0</td><td>75.2</td></tr></table>
409
+
410
+ We report the average precision (AP) in Table 6 and compare our method with other leading results on ScanNet. Although we do not have the overall state-of-the-art results, the improvement over the baseline Neven et al. (2019) verifies the impact of probabilistic embedding and demonstrates that our method can be integrated with any embedding-based method and any backbone network. We can improve the validation mAP by $4 . { \dot { 9 } } \%$ .
411
+
412
+ # A.5 DIFFERENCES TO LEARNABLE MARGIN
413
+
414
+ Neven et al. (2019) proposed to use a learnable margin for image instance segmentation, which is similar in formulation to our proposed probabilistic embedding. Although we differ in several aspects:
415
+
416
+ 1. The intuition behind learnable margin comes from the hinge loss: give different hinge margin to objects of different sizes. However, our intuition comes from modeling neural network’s output as random variables to estimate uncertainty.
417
+ 2. The parameters have a different meaning in our method compared to Neven et al. (2019). In learnable margin, $\sigma$ is an instance-specific bandwidth (or margin) per cluster. In our work $\sigma$ are uncertainties per point.
418
+ 3. The bandwidth $\sigma$ is influenced by the size of instances (large instances have large $\sigma$ ). In contrast, our uncertainty $\sigma$ encodes per-point uncertainty close to the boundary of instances (see Fig. 5).
419
+ 4. Neven et al. (2019) add a loss term to enforce the bandwidths from the same instance to be close. By contrast, we don’t have this kind of restriction. Also, uncertaintes from the same instance can be different as along as they have similar spatial embeddings.
parse/train/e68IYJNOYau/e68IYJNOYau_content_list.json ADDED
@@ -0,0 +1,2048 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "POINT CLOUD INSTANCE SEGMENTATION USING PROBABILISTIC EMBEDDINGS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 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
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "In this paper we propose a new framework for point cloud instance segmentation. Our framework has two steps: an embedding step and a clustering step. In the embedding step, our main contribution is to propose a probabilistic embedding space for point cloud embedding. Specifically, each point is represented as a tri-variate normal distribution. In the clustering step, we propose a novel loss function, which benefits both the semantic segmentation and the clustering. Our experimental results show important improvements to the SOTA, i.e., $3 . 1 \\%$ increased average per-category mAP on the PartNet dataset. ",
40
+ "bbox": [
41
+ 232,
42
+ 267,
43
+ 764,
44
+ 377
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 405,
55
+ 336,
56
+ 420
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "In this paper we tackle the problem of instance segmentation of point clouds. In instance segmentation we would like to assign two labels to each point in a point cloud. The first label is the class label (e.g., leg, back, seat, ... for a chair data set) and the second label is the instance ID (a unique number, e.g., to distinguish the different legs of a chair). While instance segmentation had many recent successes in the image domain (He et al. (2017); Liu et al. (2018); Fathi et al. (2017); Novotny et al. (2018); De Brabandere et al. (2017); Neven et al. (2019)), we believe that the problem of instance segmentation for point clouds is not sufficiently explored. ",
63
+ "bbox": [
64
+ 174,
65
+ 436,
66
+ 825,
67
+ 534
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "We build our work on the idea of embedding-based instance segmentation, that is very popular in the image and volume domain (Fathi et al. (2017); Novotny et al. (2018); De Brabandere et al. (2017); Neven et al. (2019); Lahoud et al. (2019)) and has also been successfully applied in the point clouds domain (Wang et al. (2018; 2019b)). In this approach typically two steps are employed. In the first step, each point (or pixel) is embedded in a feature space such that points belonging to the same instance should be close and points belonging to different instances should be further apart from each other. In the second step points are grouped using a clustering algorithm, such as mean-shift or greedy clustering. We remark that the current state of the art methods (Neven et al. (2019); Wang et al. (2018)) follow this approach. ",
74
+ "bbox": [
75
+ 174,
76
+ 541,
77
+ 825,
78
+ 666
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "One important design choice in embedding-based methods is the dimensionality of the feature space. Some methods propose to use a high dimensional feature space (De Brabandere et al. (2017); Kong & Fowlkes (2018)), while others use a low dimensional features space that has the same dimensionality as the input data (Novotny et al. (2018); Kendall et al. (2018); Neven et al. (2019)), e.g., 2D for images, and 3D for point clouds. Methods with a low dimensional embedding space not only have lower computational complexity, but they also lead to better interpretability, e.g., embeddings are encoded as offset vectors towards instance centers. ",
85
+ "bbox": [
86
+ 174,
87
+ 672,
88
+ 825,
89
+ 770
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Therefore, the main goal of our work is to extend the expressiveness of the embedding space in a way that leads to improved segmentation performance. Our proposed solution is to employ probabilistic embeddings, such that each point in the embedding space is encoded by a distribution. While assessing uncertainty is a popular tool in recent computer vision research (Kendall & Gal (2017); Khan et al. (2019); Liu et al. (2019); Dorta et al. (2018)) and we introduce this idea to the task of instance segmentation. Incorporating uncertainty leads to an important improvement in segmentation performance. For example, on the PartNet (Mo et al. (2019)) fine-grained instance segmentation dataset we can improve the SOTA by $3 . 1 \\%$ average per-category mAP. ",
96
+ "bbox": [
97
+ 174,
98
+ 776,
99
+ 825,
100
+ 888
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In the remainder of the paper, we will give more details on the probabilistic embedding algorithm (Sec. 3), explain the embedding step (Sec. 3.1) and the clustering step (Sec. 3.4) in more detail. ",
107
+ "bbox": [
108
+ 174,
109
+ 895,
110
+ 821,
111
+ 924
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/b0ccf815269fb3c636a18d8d80e69d24682e56f469ddded46e527000542043c6.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Our method takes a point cloud as input, encodes the points as random variables, and outputs semantic class labels and instance labels. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 196,
124
+ 108,
125
+ 473,
126
+ 213
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "image",
132
+ "img_path": "images/f7a5344ff8128579bc2584f1a98c8eccfa2aaac82850a899ca405cb6b743c5a2.jpg",
133
+ "image_caption": [
134
+ "Figure 2: Examples of (dis)similarity measures "
135
+ ],
136
+ "image_footnote": [],
137
+ "bbox": [
138
+ 526,
139
+ 122,
140
+ 818,
141
+ 222
142
+ ],
143
+ "page_idx": 1
144
+ },
145
+ {
146
+ "type": "text",
147
+ "text": "Contribution. Our main contributions are as follows ",
148
+ "bbox": [
149
+ 174,
150
+ 299,
151
+ 532,
152
+ 313
153
+ ],
154
+ "page_idx": 1
155
+ },
156
+ {
157
+ "type": "text",
158
+ "text": "1. We propose to use probabilistic embeddings for instance segmentation and present a complete framework in the context of point cloud instance segmentation based on probabilistic embeddings. \n2. We develop a new loss function for the clustering step that is especially suited for highgranularity data sets. \n3. We show that the proposed probabilistic embeddings can be incorporated into existing embedding-based methods. ",
159
+ "bbox": [
160
+ 212,
161
+ 325,
162
+ 825,
163
+ 440
164
+ ],
165
+ "page_idx": 1
166
+ },
167
+ {
168
+ "type": "text",
169
+ "text": "2 RELATED WORK ",
170
+ "text_level": 1,
171
+ "bbox": [
172
+ 174,
173
+ 462,
174
+ 341,
175
+ 478
176
+ ],
177
+ "page_idx": 1
178
+ },
179
+ {
180
+ "type": "text",
181
+ "text": "2.1 2D IMAGE INSTANCE SEGMENTATION ",
182
+ "text_level": 1,
183
+ "bbox": [
184
+ 176,
185
+ 496,
186
+ 472,
187
+ 510
188
+ ],
189
+ "page_idx": 1
190
+ },
191
+ {
192
+ "type": "text",
193
+ "text": "The dominant approaches for image instance segmentation are proposal-based methods (He et al. (2017); Liu et al. (2018)), which are built upon object detection methods (Girshick (2015); Ren et al. (2015)). Typically, they have higher quality, but a slower computation time compared to proposal free methods. The mainstream proposal free approaches are based on metric learning. The basic idea is to learn an embedding space, in which pixels belonging to the same object instance are close to each other and distant to pixels belonging to other object instances (Fathi et al. (2017); De Brabandere et al. (2017)). All above works are based on high-dimensional embedding, while more recent works (Liang et al. (2017); Kendall et al. (2018); Novotny et al. (2018); Neven et al. (2019)) show that 2D spatial embedding is sufficient to achieve the same or even higher performance. ",
194
+ "bbox": [
195
+ 174,
196
+ 523,
197
+ 825,
198
+ 648
199
+ ],
200
+ "page_idx": 1
201
+ },
202
+ {
203
+ "type": "text",
204
+ "text": "2.2 3D POINT CLOUD INSTANCE SEGMENTATION",
205
+ "text_level": 1,
206
+ "bbox": [
207
+ 174,
208
+ 669,
209
+ 524,
210
+ 683
211
+ ],
212
+ "page_idx": 1
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "SGPN (Wang et al. (2018)) uses PointNet+ $^ +$ (Qi et al. (2017)) as backbone network and designs a double-hinge loss function to learn a pairwise similarity matrix of points. GSPN (Yi et al. (2019)) produces object proposals with high objectness for point cloud instance segmentation. ASIS (Wang et al. (2019b)) is a module capable of making semantic segmentation and instance segmentation take advantage of each other. Mo et al. (2019) release a large scale point cloud dataset for part instance segmentation and benchmark their method and SGPN on this dataset. ",
217
+ "bbox": [
218
+ 174,
219
+ 695,
220
+ 825,
221
+ 779
222
+ ],
223
+ "page_idx": 1
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "2.3 UNCERTAINTY IN COMPUTER VISION ",
228
+ "text_level": 1,
229
+ "bbox": [
230
+ 178,
231
+ 799,
232
+ 470,
233
+ 813
234
+ ],
235
+ "page_idx": 1
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "Kendall & Gal (2017) present a unified framework combining model uncertainty with data uncertainty and can estimate uncertainty in classification and regression tasks. We introduce uncertainty estimation to the literature of instance embedding, by modeling points as random variables. Our method is related to recent works in deep generative networks (Kingma & Welling (2013); Rezende et al. (2014)). They use a stochastic encoder to encode a data sample as a set of random variables, while focusing on solving the problem of backpropagation through random variables in deep neural networks. We deal with this problem by using a probabilistic product kernel (Jebara et al. (2004)). ",
240
+ "bbox": [
241
+ 174,
242
+ 825,
243
+ 825,
244
+ 924
245
+ ],
246
+ "page_idx": 1
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "3 METHOD ",
251
+ "text_level": 1,
252
+ "bbox": [
253
+ 174,
254
+ 102,
255
+ 282,
256
+ 118
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "A training sample is a labeled 3D point cloud. It consists of point coordinates $\\left\\{ { \\bf x } _ { i } \\right\\} _ { i = 1 } ^ { N }$ , class labels $\\{ y _ { i } \\} _ { i = 1 } ^ { N }$ and instance IDs $\\left\\{ z _ { i } \\right\\} _ { i = 1 } ^ { N }$ . We want to train a neural network to infer per point class labels and per point instance IDs at the same time. ",
263
+ "bbox": [
264
+ 174,
265
+ 138,
266
+ 825,
267
+ 186
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "3.1 PROBABILISTIC SPATIAL EMBEDDING ",
274
+ "text_level": 1,
275
+ "bbox": [
276
+ 176,
277
+ 214,
278
+ 473,
279
+ 228
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "A common approach in the literature of instance segmentation is to learn a function to embed pixels/points into a space where pair-wise similarity can be measured. Usually, this function is a deep neural network $f$ which transforms an unordered point set $\\{ { \\mathbf { x } } _ { i } \\} _ { i = 1 } ^ { N }$ to embeddings $\\left\\{ { \\bf e } _ { i } \\right\\} _ { i = 1 } ^ { N }$ . Instead of deterministic embeddings used in previous work, here we consider a probabilistic embedding, by modeling $\\mathbf { e } _ { i }$ as a random variable, $\\mathbf { e } _ { i } \\sim p _ { i } ( \\mathbf { e } )$ , where $p _ { i }$ is a probability density function. In Section 3.3 we will need to calculate the sum of random variables. In the ideal case, the distribution of a single random variable and the sum of multiple random variables has the same type of distribution that can be described with a few parameters. Thus we propose to model the embedding with a (symmetric) stable distribution. This leaves us two options, Gaussian and Cauchy. For the Cauchy distribution, it is challenging to get a closed-form expression in our calculation in Section 3.2. Therefore, we choose to work with the tri-variate Gaussian distribution1 $p _ { i } ( \\mathbf { e } ) = \\mathcal { N } ( \\mathbf { e } ; \\mu _ { i } , \\pmb { \\Sigma } _ { i } )$ with mean vector $\\pmb { \\mu _ { i } } \\in \\mathbb { R } ^ { 3 }$ and covariance matrix $\\pmb { \\Sigma } _ { i } \\in \\mathbb { R } ^ { 3 \\times 3 }$ . For simplicity, let $\\Sigma _ { i }$ be a diagonal matrix, $\\Sigma _ { i } = \\mathrm { d i a g } ( \\sigma _ { i } ^ { ( 1 ) 2 } , \\sigma _ { i } ^ { ( 2 ) 2 } , \\sigma _ { i } ^ { ( 3 ) 2 } )$ , where $\\sigma _ { i } ^ { ( d ) 2 }$ is the square of $\\sigma _ { i } ^ { ( \\bar { d } ) }$ and $d = 1 , 2 , 3$ . ",
286
+ "bbox": [
287
+ 173,
288
+ 244,
289
+ 826,
290
+ 433
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "The network $f ( \\cdot )$ takes as input a (unordered) point set $\\left\\{ { \\bf x } _ { i } \\right\\} _ { i = 1 } ^ { N }$ , and outputs $\\{ \\mu _ { i } , \\pmb { \\sigma } _ { i } , \\mathbf { p } _ { i } \\} _ { i = 1 } ^ { N }$ $f ( \\{ \\mathbf { x } _ { i } \\} _ { i = 1 } ^ { N } ) = \\{ \\mu _ { i } , \\pmb { \\sigma } _ { i } , \\mathbf { p } _ { i } \\} _ { i = 1 } ^ { N }$ , where $\\pmb { \\sigma } _ { i } = \\left[ \\sigma _ { i } ^ { ( 1 ) } , \\sigma _ { i } ^ { ( 2 ) } , \\sigma _ { i } ^ { ( 3 ) } \\right] ^ { \\mathsf { T } } \\in \\mathbb { R } ^ { 3 }$ and $\\mathbf { p } _ { i }$ is a probability vector which can be used to infer class label of $\\mathbf { x } _ { i }$ and will be explained in Sec. 3.4. ",
297
+ "bbox": [
298
+ 173,
299
+ 439,
300
+ 825,
301
+ 494
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "3.2 SIMILARITY MEASURE ",
308
+ "text_level": 1,
309
+ "bbox": [
310
+ 174,
311
+ 522,
312
+ 372,
313
+ 537
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "In deterministic embeddings, the (dis)similarity between points is usually measured by Euclidean distance $\\| \\mathbf { e } _ { i } - \\mathbf { e } _ { j } \\|$ , or cosine similarity $\\frac { \\mathbf { e } _ { i } ^ { \\mathsf { T } } \\mathbf { e } _ { j } ^ { \\mathsf { - } } } { \\| \\mathbf { e } _ { i } \\| \\| \\mathbf { e } _ { j } \\| }$ (See Figure 2). Since now we are using probabilistic embeddings, a similarity kernel for random variables needs to be selected. Here we describe the Bhattacharyya kernel (Jebara et al. (2004)). ",
320
+ "bbox": [
321
+ 173,
322
+ 553,
323
+ 825,
324
+ 617
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "Definition. Let $\\mathcal { P }$ be the set of distributions over $\\Omega$ . The Bhattacharyya kernel on $\\mathcal { P }$ is the function $\\mathcal { K } : \\mathcal { P } \\times \\mathcal { P } \\mapsto \\mathbb { R }$ such that, for all $p , q \\in \\mathcal { P }$ , ",
331
+ "bbox": [
332
+ 173,
333
+ 625,
334
+ 823,
335
+ 655
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "equation",
341
+ "img_path": "images/3b8c5212e4bd9bac4ee06dbce3d5361598ed697799d47cfa131c9d6a08fb8e07.jpg",
342
+ "text": "$$\n\\begin{array} { r } { \\mathcal { K } ( p , q ) = \\displaystyle \\int _ { \\Omega } \\sqrt { p ( \\mathbf { x } ) } \\sqrt { q ( \\mathbf { x } ) } \\mathrm { d } \\mathbf { x } . } \\end{array}\n$$",
343
+ "text_format": "latex",
344
+ "bbox": [
345
+ 392,
346
+ 670,
347
+ 606,
348
+ 704
349
+ ],
350
+ "page_idx": 2
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "We choose this kernel as our similarity measure for two reasons, 1) the Bhattacharyya kernel is symmetric, i.e. $\\begin{array} { r } { K ( p , q ) = K ( q , p ) ; 2 } \\end{array}$ ) the Bhattacharyya kernel has values between 0 (no similarity) and 1 (maximal similarity). And $\\ K ( p , q ) = 1$ if and only if $p = q$ . ",
355
+ "bbox": [
356
+ 174,
357
+ 727,
358
+ 826,
359
+ 770
360
+ ],
361
+ "page_idx": 2
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "Then the similarity $\\kappa ( \\cdot , \\cdot )$ between random variables can be represented by the Bhattacharyya kernel of their probability density functions, ",
366
+ "bbox": [
367
+ 169,
368
+ 776,
369
+ 823,
370
+ 805
371
+ ],
372
+ "page_idx": 2
373
+ },
374
+ {
375
+ "type": "equation",
376
+ "img_path": "images/0bb7e975d535d6fc49b704bb715c82e60383d0eb94bba550b633dea29a1a7940.jpg",
377
+ "text": "$$\n\\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } ) = \\int \\sqrt { \\mathcal { N } ( \\mathbf { e } ; \\mu _ { i } , \\Sigma _ { i } ) } \\sqrt { \\mathcal { N } ( \\mathbf { e } ; \\mu _ { j } , \\Sigma _ { j } ) } \\mathrm { d } \\mathbf { e } = \\beta _ { i , j } \\exp \\left( - \\left\\| \\mu _ { i } - \\mu _ { j } \\right\\| _ { \\Sigma _ { i , j } ^ { - 1 } } ^ { 2 } \\right) 2 ,\n$$",
378
+ "text_format": "latex",
379
+ "bbox": [
380
+ 222,
381
+ 821,
382
+ 776,
383
+ 854
384
+ ],
385
+ "page_idx": 2
386
+ },
387
+ {
388
+ "type": "image",
389
+ "img_path": "images/c5dcbf3f20cc5b32cfdf95c04be5d2ea894b875d6be1c2d16258f4e8b65a6f1a.jpg",
390
+ "image_caption": [
391
+ "Figure 3: Contour plot. Left: 1-D uncertainty similarity $\\beta _ { i , j } = \\left( \\left( \\sigma _ { i } / \\sigma _ { j } + \\sigma _ { j } / \\sigma _ { i } \\right) / 2 \\right) ^ { - 1 / 2 }$ . The highest value 1 is achieved when $\\sigma _ { i } = \\sigma _ { j }$ . The value goes to 0 when one of the uncertainties is small and the other is large. Right (4 figures): the similarity for different values of $\\Delta \\mu$ (from left to right, $\\Delta \\mu = 1 , 5 , 1 0 , 2 5 )$ in the case of 1-D probabilistic embedding. The similarity becomes $\\beta _ { i , j } \\exp { \\left( - \\frac { 1 } { 2 } \\frac { \\Delta \\mu } { \\alpha _ { i , j } } \\right) }$ , where $\\Delta \\mu = \\left( \\mu _ { i } - \\mu _ { j } \\right) ^ { 2 }$ , $\\alpha _ { i , j } = 4 \\left( \\sigma _ { i } ^ { 2 } + \\sigma _ { j } ^ { 2 } \\right)$ . "
392
+ ],
393
+ "image_footnote": [],
394
+ "bbox": [
395
+ 196,
396
+ 102,
397
+ 805,
398
+ 196
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "where ",
405
+ "bbox": [
406
+ 174,
407
+ 314,
408
+ 217,
409
+ 327
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "equation",
415
+ "img_path": "images/f65e47771533713a0e98cf8903fae041eccade91e50f3d712a3ecfffc5c60d36.jpg",
416
+ "text": "$$\n\\begin{array} { c } { \\displaystyle \\alpha _ { i , j } ^ { ( d ) } = 4 ( \\sigma _ { i } ^ { ( d ) 2 } + \\sigma _ { j } ^ { ( d ) 2 } ) , \\quad \\displaystyle \\beta _ { i , j } = \\left( \\prod _ { d = 1 } ^ { 3 } \\frac { 1 } { 2 } \\left( \\frac { \\sigma _ { i } ^ { ( d ) } } { \\sigma _ { j } ^ { ( d ) } } + \\frac { \\sigma _ { j } ^ { ( d ) } } { \\sigma _ { i } ^ { ( d ) } } \\right) \\right) ^ { - \\frac { 1 } { 2 } } , } \\\\ { \\displaystyle \\Sigma _ { i , j } = \\mathrm { d i a g } ( \\alpha _ { i , j } ^ { ( 1 ) } , \\alpha _ { i , j } ^ { ( 2 ) } , \\alpha _ { i , j } ^ { ( 3 ) } ) , } \\\\ { \\displaystyle \\| \\mu _ { i } - \\mu _ { j } \\| _ { \\Sigma _ { i , j } ^ { - 1 } } ^ { 2 } = ( \\mu _ { i } - \\mu _ { j } ) ^ { \\mathsf T } \\Sigma _ { i , j } ^ { - 1 } ( \\mu _ { i } - \\mu _ { j } ) = \\sum _ { d = 1 } ^ { 3 } \\frac { \\mu _ { i } ^ { ( d ) } - \\mu _ { j } ^ { ( d ) } } { \\alpha _ { i , j } ^ { ( d ) } } . } \\end{array}\n$$",
417
+ "text_format": "latex",
418
+ "bbox": [
419
+ 243,
420
+ 328,
421
+ 751,
422
+ 446
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "• If the uncertainties $\\sigma _ { i }$ and $\\pmb { \\sigma } _ { j }$ have a large difference, $\\beta _ { i , j }$ will be small, so will be $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } )$ . See Fig. 3. ",
429
+ "bbox": [
430
+ 210,
431
+ 454,
432
+ 823,
433
+ 484
434
+ ],
435
+ "page_idx": 3
436
+ },
437
+ {
438
+ "type": "text",
439
+ "text": "• If the centers $\\pmb { \\mu _ { i } }$ and $\\mu _ { j }$ have a large difference, the exponential term will be small, so will be $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } )$ . See Fig. 3. ",
440
+ "bbox": [
441
+ 215,
442
+ 487,
443
+ 825,
444
+ 516
445
+ ],
446
+ "page_idx": 3
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "• The scale term $\\beta _ { i , j } = 1$ if and only if the uncertainties $\\sigma _ { i }$ and $\\pmb { \\sigma } _ { j }$ are element-wise equal. In this case, $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } )$ becomes an anisotropic Gaussian kernel, ",
451
+ "bbox": [
452
+ 212,
453
+ 518,
454
+ 820,
455
+ 547
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "equation",
461
+ "img_path": "images/977d7bafb66f46494c7cf6056528c738cf765e6ba4a156920c5d3a7cde441ce3.jpg",
462
+ "text": "$$\n\\kappa _ { R B F } ( \\pmb { \\mu } _ { i } , \\pmb { \\mu } _ { j } ) = \\exp \\left( - \\left\\| \\pmb { \\mu } _ { i } - \\pmb { \\mu } _ { j } \\right\\| _ { \\pmb { \\Sigma } _ { i , j } ^ { - 1 } } ^ { 2 } \\right) .\n$$",
463
+ "text_format": "latex",
464
+ "bbox": [
465
+ 383,
466
+ 550,
467
+ 673,
468
+ 577
469
+ ],
470
+ "page_idx": 3
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "• The exponential term equals 1 if and only if the centers $\\pmb { \\mu _ { i } }$ and $\\pmb { \\mu } _ { j }$ are element-wise equal. In this case, $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } )$ becomes $\\beta _ { i , j }$ , i.e., the similarity between uncertainties. This property allows two points that have the same embedding centers to have a low similarity, as long as $\\beta _ { i , j }$ is small. ",
475
+ "bbox": [
476
+ 215,
477
+ 580,
478
+ 825,
479
+ 638
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "Compared to deterministic embedding, $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } ) = \\exp \\left( - \\left\\| \\mathbf { e } _ { i } - \\mathbf { e } _ { j } \\right\\| ^ { 2 } \\right) ^ { 3 }$ , our similarity measure consists not merely of the similarity of spatial distances, but also the similarity of uncertainties. ",
486
+ "bbox": [
487
+ 178,
488
+ 648,
489
+ 826,
490
+ 688
491
+ ],
492
+ "page_idx": 3
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "In the following, we discuss multiple choices of embedding distributions that we will evaluate in Sec 4.2. ",
497
+ "bbox": [
498
+ 176,
499
+ 693,
500
+ 823,
501
+ 722
502
+ ],
503
+ "page_idx": 3
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "Homoscedasticity vs. Heteroscedasticity. The embeddings $\\{ { \\mathbf { e } } _ { i } \\} _ { i = 1 } ^ { N }$ are homoscedastic if they have the same variance instead of point-depende $\\pmb { \\Sigma }$ . In this variances a point cloud . And the sim $\\mathbf { X }$ we learn to predicrity kernel becomes $\\pmb { \\Sigma }$ $\\left\\{ \\pmb { \\Sigma } _ { i } \\right\\} _ { i = 1 } ^ { N }$ $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } ) \\ =$ $\\exp \\left( - \\left. \\pmb { \\mu } _ { i } - \\pmb { \\mu } _ { j } \\right. _ { \\pmb { \\Sigma } _ { i , j } ^ { - 1 } } ^ { 2 } \\right)$ , which is also the form of the RBF kernel in Eq. 2. ",
508
+ "bbox": [
509
+ 173,
510
+ 734,
511
+ 825,
512
+ 808
513
+ ],
514
+ "page_idx": 3
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "Isotropy vs. Anisotropy. The variance $\\Sigma _ { i }$ is isotropic if its diagonal elements (variances of dimensions) are the same. Then we can write $\\Sigma _ { i } = \\sigma _ { i } ^ { 2 } \\mathbf { I }$ , where $\\mathbf { I }$ is a $3 \\times 3$ identity matrix. The similarity can be written as $\\begin{array} { r } { \\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } ) = \\beta _ { i , j } \\exp \\left( - \\frac { \\vert \\vert \\mu _ { i } - \\mu _ { j } \\vert \\vert ^ { 2 } } { \\alpha _ { i , j } } \\right) } \\end{array}$ , where $\\beta _ { i , j } = \\left( \\left( \\sigma _ { i } / \\sigma _ { j } + \\sigma _ { j } / \\sigma _ { i } \\right) / 2 \\right) ^ { - \\frac { 3 } { 2 } }$ and $\\alpha _ { i , j } = 4 ( \\sigma _ { i } ^ { 2 } + \\sigma _ { j } ^ { 2 } )$ . ",
519
+ "bbox": [
520
+ 173,
521
+ 819,
522
+ 825,
523
+ 890
524
+ ],
525
+ "page_idx": 3
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "3.3 INSTANCE GROUPING",
530
+ "text_level": 1,
531
+ "bbox": [
532
+ 174,
533
+ 103,
534
+ 362,
535
+ 118
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Let $\\{ i : z _ { i } = k \\}$ be the index set of points having instance $\\textrm { I D } k$ . We take an average of these embeddings to get the embedding $\\mathbf { c } _ { k }$ of instance $k$ , $\\begin{array} { r } { \\mathbf { c } _ { k } = \\frac { 1 } { | \\{ i : z _ { i } = k \\} | } \\sum _ { \\{ i : z _ { i } = k \\} } \\mathbf { e } _ { i } } \\end{array}$ . Since the sum of Gaussian random variables is still a Gaussian random variable, we can derive the following: ",
542
+ "bbox": [
543
+ 173,
544
+ 128,
545
+ 826,
546
+ 174
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "equation",
552
+ "img_path": "images/2b019f9bc694d64540ab3f47791c389afebfbbb296e8b7e97eb9fb04752657f2.jpg",
553
+ "text": "$$\np ( \\mathbf { c } _ { k } ) = { \\mathcal { N } } ( \\mathbf { c } _ { k } ; { \\hat { \\mu } } _ { k } , { \\hat { \\Sigma } } _ { k } ) , \\quad { \\hat { \\mu } } _ { k } = { \\frac { 1 } { | \\left\\{ i : z _ { i } = k \\right\\} | } } \\sum _ { \\left\\{ i : z _ { i } = k \\right\\} } \\mu _ { i } , \\quad { \\hat { \\Sigma } } _ { k } = { \\frac { 1 } { | \\left\\{ i : z _ { i } = k \\right\\} | } } \\sum _ { \\left\\{ i : z _ { i } = k \\right\\} } \\Sigma _ { i } .\n$$",
554
+ "text_format": "latex",
555
+ "bbox": [
556
+ 169,
557
+ 176,
558
+ 805,
559
+ 217
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "Now we can measure the similarity between a point and an instance by using $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } )$ . ",
566
+ "bbox": [
567
+ 171,
568
+ 219,
569
+ 746,
570
+ 234
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "If $z _ { i } = k$ , we want $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } )$ to be close to 1, otherwise 0. We can optimize a binary cross entropy loss function, ",
577
+ "bbox": [
578
+ 171,
579
+ 239,
580
+ 823,
581
+ 268
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "equation",
587
+ "img_path": "images/3f8ac0c7d40bb97249d155f596e126aef9d48937b778e8dadfea0e0ca8078ae0.jpg",
588
+ "text": "$$\n\\mathcal { L } _ { I n s C E } = \\frac { 1 } { N K } \\sum _ { k = 0 } ^ { K - 1 } \\sum _ { i = 1 } ^ { N } \\left\\{ \\begin{array} { l l } { - \\ln \\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } ) , } & { \\mathrm { i f ~ } z _ { i } = k , } \\\\ { - \\ln ( 1 - \\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } ) ) , } & { \\mathrm { o t h e r w i s e } . } \\end{array} \\right.\n$$",
589
+ "text_format": "latex",
590
+ "bbox": [
591
+ 287,
592
+ 270,
593
+ 699,
594
+ 314
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "However, in practice, this suffers from a serious foreground-background imbalance problem. To remedy this drawback we propose to use the combined log-Dice loss function (Wong et al. (2018)) instead: ",
601
+ "bbox": [
602
+ 176,
603
+ 315,
604
+ 823,
605
+ 356
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "equation",
611
+ "img_path": "images/3927479dac8084b44af713aea05d704ac5fdb5951d4b530af21bd99cdc5dfd75.jpg",
612
+ "text": "$$\n\\mathcal { L } _ { I n s } = \\mathcal { L } _ { I n s C E } - \\ln \\frac { 2 \\sum _ { k = 0 } ^ { K - 1 } \\sum _ { i = 1 } ^ { N } \\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } ) \\mathbb { 1 } _ { z _ { i } = k } } { \\sum _ { k = 0 } ^ { K - 1 } \\sum _ { i = 1 } ^ { N } \\left( \\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } ) + \\mathbb { 1 } _ { z _ { i } = k } \\right) } ,\n$$",
613
+ "text_format": "latex",
614
+ "bbox": [
615
+ 308,
616
+ 353,
617
+ 687,
618
+ 393
619
+ ],
620
+ "page_idx": 4
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "where $\\mathbb { 1 } _ { z _ { i } = k }$ is an indicator function which equals 1 when $z _ { i } = k$ , 0 otherwise. ",
625
+ "bbox": [
626
+ 176,
627
+ 393,
628
+ 692,
629
+ 407
630
+ ],
631
+ "page_idx": 4
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "Entropy Regularization. As we can see in Figure 3, when $\\boldsymbol { \\sigma } _ { i } ^ { ( l ) }$ and $\\sigma _ { j } ^ { ( l ) }$ goes to infinity while keeping σ(li $\\sigma _ { i } ^ { ( l ) } = \\sigma _ { j } ^ { ( l ) }$ , $\\beta _ { i , j } = 1$ and the similarity equals to 1 no matter what the value $\\mu _ { i } - \\mu _ { j }$ is. Formally speaking, ",
636
+ "bbox": [
637
+ 173,
638
+ 421,
639
+ 825,
640
+ 473
641
+ ],
642
+ "page_idx": 4
643
+ },
644
+ {
645
+ "type": "equation",
646
+ "img_path": "images/5e3af6a3aa83be02e230672ecdd859017497baa3a1eef664891d2af8abd6e63c.jpg",
647
+ "text": "$$\n\\operatorname* { l i m } _ { \\substack { \\sigma _ { i } ^ { ( l ) } \\infty , \\sigma _ { j } ^ { ( l ) } \\infty , \\sigma _ { i } ^ { ( l ) } = \\sigma _ { j } ^ { ( l ) } , l = 1 , 2 , 3 } } \\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { j } ) = 1 .\n$$",
648
+ "text_format": "latex",
649
+ "bbox": [
650
+ 349,
651
+ 472,
652
+ 650,
653
+ 501
654
+ ],
655
+ "page_idx": 4
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "Consequently, the similarity degenerates to constant 1 for every pair of embeddings. To address this issue, we propose an entropy regularizer, ",
660
+ "bbox": [
661
+ 176,
662
+ 502,
663
+ 823,
664
+ 531
665
+ ],
666
+ "page_idx": 4
667
+ },
668
+ {
669
+ "type": "equation",
670
+ "img_path": "images/976ab400dfc0af19fd4f647c7edd0d5b7806e068f51dbb883c86cd2f7504e7a1.jpg",
671
+ "text": "$$\n\\mathcal { L } _ { R e g } = \\sum _ { i = 1 } ^ { N } \\mathbb { H } ( \\mathbf { e } _ { i } ) = \\sum _ { i = 1 } ^ { N } \\left[ \\frac { 3 } { 2 } \\ln ( 2 \\pi e ) + \\frac { 1 } { 2 } \\ln \\left( \\sigma _ { i } ^ { ( 1 ) } \\sigma _ { i } ^ { ( 2 ) } \\sigma _ { i } ^ { ( 3 ) } \\right) ^ { 2 } \\right] ,\n$$",
672
+ "text_format": "latex",
673
+ "bbox": [
674
+ 285,
675
+ 532,
676
+ 710,
677
+ 577
678
+ ],
679
+ "page_idx": 4
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "where $\\mathbb { H } ( \\mathbf { e } _ { i } )$ is the entropy of multivariate Gaussian variable $\\mathbf { e } _ { i }$ . This regularizer is not only able to prevent the similarity degeneration by minimizing the variances along all dimensions, but can also penalize large uncertainties, thus increasing the confidence of the network output as in Grandvalet & Bengio (2005) and Wang et al. (2019a). ",
684
+ "bbox": [
685
+ 173,
686
+ 579,
687
+ 825,
688
+ 636
689
+ ],
690
+ "page_idx": 4
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "3.4 SEMANTIC CLASSIFICATION ",
695
+ "text_level": 1,
696
+ "bbox": [
697
+ 176,
698
+ 651,
699
+ 410,
700
+ 665
701
+ ],
702
+ "page_idx": 4
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "Neven et al. (2019) introduces a way to use score maps to find cluster centers. Our main novelty is the new loss function, so our description focuses on this part. We still describe the greedy clustering steps from Neven et al. (2019) for completeness. In Section 4.2, we compare our new center-aware loss Eq 10 to the previously used minimum squared error (MSE) loss by Neven et al. (2019). ",
707
+ "bbox": [
708
+ 173,
709
+ 676,
710
+ 825,
711
+ 733
712
+ ],
713
+ "page_idx": 4
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "After defining the similarity measure, we can easily find out all points similar to an instance center. However, during the inference phase, we don’t have the information of ground-truth instance IDs, thus, it is impossible to use Eq. 3 to get instance centers. Therefore, along with distribution parameters $\\{ \\mu _ { i } \\} _ { i = 1 } ^ { N }$ and $\\{ \\pmb { \\sigma } _ { i } \\} _ { i = 1 } ^ { N }$ , we also predict a score map $\\{ { \\bf p } _ { i } \\} _ { i = 1 } ^ { N }$ , where $\\mathbf { p } _ { i } \\in \\mathbb { R } ^ { L }$ and its $l$ -th entry p(l) indicates the probability of $\\mathbf { x } _ { i }$ being an instance center with class label $l$ . Consider $\\tilde { \\mathbf { Q } } \\in \\mathbb { R } ^ { N \\times K }$ , ",
718
+ "bbox": [
719
+ 173,
720
+ 739,
721
+ 825,
722
+ 818
723
+ ],
724
+ "page_idx": 4
725
+ },
726
+ {
727
+ "type": "equation",
728
+ "img_path": "images/0a09eb14658b4aa89035eae512bc9ae5ca45cd81b610ddc5ddf95e101f96fd0d.jpg",
729
+ "text": "$$\n\\begin{array} { r } { \\tilde { \\mathbf { Q } } [ i , k ] = \\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } ) \\mathbb { 1 } _ { z _ { i } = k } = \\left\\{ { \\begin{array} { l l } { \\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } ) } & { z _ { i } = k , } \\\\ { 0 } & { \\mathrm { o t h e r w i s e } , } \\end{array} } \\right. } \\end{array}\n$$",
730
+ "text_format": "latex",
731
+ "bbox": [
732
+ 323,
733
+ 820,
734
+ 671,
735
+ 856
736
+ ],
737
+ "page_idx": 4
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "where each entry $\\tilde { \\bf Q } [ i , k ]$ can be interpreted as the probability of $\\mathbf { x } _ { i }$ being the center of instance $k$ . Upon this we calculate $\\mathbf { Q } \\in \\mathbb { R } ^ { N \\times \\dot { L } }$ , where $\\mathbf { Q } [ i , l ]$ gives the probability of $\\mathbf { x } _ { i }$ being an instance center with class label $l$ , ",
742
+ "bbox": [
743
+ 173,
744
+ 861,
745
+ 825,
746
+ 904
747
+ ],
748
+ "page_idx": 4
749
+ },
750
+ {
751
+ "type": "equation",
752
+ "img_path": "images/72b721356d2320e26b86f6fd1ed07684291dd6fd5bc0ce8763f3c93c5ec25acc.jpg",
753
+ "text": "$$\n\\mathbf { Q } [ i , l ] = \\operatorname* { m a x } _ { \\{ k : y ( k ) = l \\} } \\tilde { \\mathbf { Q } } [ i , k ] ,\n$$",
754
+ "text_format": "latex",
755
+ "bbox": [
756
+ 408,
757
+ 900,
758
+ 589,
759
+ 928
760
+ ],
761
+ "page_idx": 4
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "where $y ( k )$ is the class label of instance $k$ , due to the fact that $\\{ { \\bf x } _ { i } : z _ { i } = k \\}$ must have the same class label. (See an illustration in Appendix Figure 7.) ",
766
+ "bbox": [
767
+ 171,
768
+ 103,
769
+ 823,
770
+ 132
771
+ ],
772
+ "page_idx": 5
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "We design a new loss function, ",
777
+ "bbox": [
778
+ 176,
779
+ 138,
780
+ 379,
781
+ 154
782
+ ],
783
+ "page_idx": 5
784
+ },
785
+ {
786
+ "type": "equation",
787
+ "img_path": "images/be2a0bd691683c764c2573b552852a9f4cdb16112428bb1558ba59328e23b3b6.jpg",
788
+ "text": "$$\n\\mathcal { L } _ { S c o r e } = \\frac { 1 } { N L } \\sum _ { i = 1 } ^ { N } \\sum _ { l = 1 } ^ { L } - \\mathbf { Q } [ i , l ] \\log \\mathbf { P } [ i , l ] .\n$$",
789
+ "text_format": "latex",
790
+ "bbox": [
791
+ 357,
792
+ 159,
793
+ 640,
794
+ 203
795
+ ],
796
+ "page_idx": 5
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "Here $\\mathbf { Q }$ is fixed as a target when training. See appendix for a detailed explanation of the loss function. ",
801
+ "bbox": [
802
+ 173,
803
+ 207,
804
+ 821,
805
+ 236
806
+ ],
807
+ "page_idx": 5
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "The inference process is done with a greedy approach (Neven et al. (2019)). From foreground score maps $\\{ \\mathbf { P } [ : , 1 ] , \\mathbf { \\bar { P } } [ : , 2 ] , \\ldots , \\mathbf { P } [ : , L ] \\}$ , we sample a point $\\mathbf { x } _ { i _ { 0 } }$ with highest score $\\mathbf { P } [ i _ { 0 } , l _ { 0 } ]$ , where $i _ { 0 }$ is the point index and $l _ { 0 }$ is its class label, ",
812
+ "bbox": [
813
+ 173,
814
+ 242,
815
+ 825,
816
+ 285
817
+ ],
818
+ "page_idx": 5
819
+ },
820
+ {
821
+ "type": "equation",
822
+ "img_path": "images/516ca1983673ff1a4b6fd0d661d779bb91843ab84aa5b2a4b3ff31c568f7c65f.jpg",
823
+ "text": "$$\n\\operatorname * { a r g m a x } _ { l _ { 0 } , l _ { 0 } \\in \\{ 1 , 2 , . . . , L \\} } { \\bf P } [ : , l _ { 0 } ] ( i _ { 0 } , l _ { 0 } ) = \\operatorname * { a r g m a x } _ { i \\in \\{ 1 , 2 , . . . , N \\} , l \\in \\{ 1 , 2 , . . . , L \\} } { \\bf P } [ i , l ] .\n$$",
824
+ "text_format": "latex",
825
+ "bbox": [
826
+ 295,
827
+ 290,
828
+ 704,
829
+ 319
830
+ ],
831
+ "page_idx": 5
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "The point $\\mathbf { x } _ { i _ { 0 } }$ is an anchor and we want to find all similar points. Specifically we find all points $\\mathbf { x } _ { i }$ with $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { e } _ { i _ { 0 } } ) \\geq \\tau$ . As a result, the instance $\\mathrm { I D }$ of $\\mathbf { x } _ { i }$ is 0. After that, all points satisfying the inequality are all masked out. Similarly, we sample $\\mathbf { x } _ { i _ { 1 } }$ and mask out points with instance ID 1, sample $\\mathbf { x } _ { i _ { 2 } }$ and mask out points with instance $\\mathrm { I D 2 }$ , and so on. We stop this loop if there is no point left. We use the validation set to fit hyperparameter $\\tau$ , which is 0.35 in our experiments. ",
836
+ "bbox": [
837
+ 173,
838
+ 324,
839
+ 825,
840
+ 395
841
+ ],
842
+ "page_idx": 5
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "4 RESULTS ",
847
+ "text_level": 1,
848
+ "bbox": [
849
+ 174,
850
+ 414,
851
+ 281,
852
+ 429
853
+ ],
854
+ "page_idx": 5
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "We describe the implementation details in the appendix. PartNet (Mo et al. (2019)) provides coarse-, middle- and fine-grained part instance-level annotations for 3D point clouds from ShapeNet (Chang et al. (2015)). It contains 24 object categories, but the number of training samples varies greatly from 92 to 5707 for different categories. In contrast to indoor scene point cloud datasets (e.g., ScanNet by Dai et al. (2017)), instances (object parts) of PartNet require more context to be classified and are connected. Many visually alike parts have different semantic labels, e.g., ping-pong table’s legs and pool table’s legs in the category of table. Also, instance masks should have no overlaps. All these make it a very challenging dataset for instance segmentation. While our main experiments are on PartNet, we provide results on ScanNet in the appendix. ",
859
+ "bbox": [
860
+ 173,
861
+ 445,
862
+ 825,
863
+ 570
864
+ ],
865
+ "page_idx": 5
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "4.1 QUANTITATIVE AND QUALITATIVE RESULTS ",
870
+ "text_level": 1,
871
+ "bbox": [
872
+ 174,
873
+ 588,
874
+ 517,
875
+ 602
876
+ ],
877
+ "page_idx": 5
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "We report per-category mean Average Precision (mAP) scores for the PartNet dataset in Table 1. \nThe IoU threshold is 0.5. We compare our probabilistic embedding algorithm to GSPN (Yi et al. \n(2019)), PartNet (Mo et al. (2019)) and SGPN (Wang et al. (2018)). The results are averaged over three levels of granularity (fine(3), middle(2), and coarse(1)). It should be noted that GSPN (Yi et al. \n(2019)) only reports fine-grained results of 4 categories. ",
882
+ "bbox": [
883
+ 174,
884
+ 613,
885
+ 825,
886
+ 683
887
+ ],
888
+ "page_idx": 5
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "On the complete dataset, our method outperforms the best competitor PartNet by $3 . 1 \\%$ average per-category mAP. We can observe that our method has a slightly bigger advantage in fine-grained instance segmentation compared to coarse-grained instance segmentation ( $3 . 2 \\%$ vs. $2 . 5 \\%$ ). We can also observe consistent improvements in categories with little as well as many training samples. While we beat SOTA in all categories with many training samples (Chair, Table, StorageFurniture, and Lamp), PartNet has better results in some of the categories with fewer training samples. ",
893
+ "bbox": [
894
+ 174,
895
+ 690,
896
+ 825,
897
+ 773
898
+ ],
899
+ "page_idx": 5
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "We also show visualization examples in Figure 8. Compared to PartNet (Mo et al. (2019)), our method shows great improvement especially when there are many instances in a point cloud. ",
904
+ "bbox": [
905
+ 174,
906
+ 780,
907
+ 823,
908
+ 809
909
+ ],
910
+ "page_idx": 5
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "4.2 ABLATION STUDY AND ANALYSIS ",
915
+ "text_level": 1,
916
+ "bbox": [
917
+ 176,
918
+ 827,
919
+ 446,
920
+ 839
921
+ ],
922
+ "page_idx": 5
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "We conduct the ablation study on all categories of PartNet (Mo et al. (2019)), but we only list detailed values for the four largest categories in Table 2. ",
927
+ "bbox": [
928
+ 174,
929
+ 852,
930
+ 825,
931
+ 880
932
+ ],
933
+ "page_idx": 5
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "Effect of probabilistic embedding. We compare four different versions of probabilistic embedding. The Gaussian distribution used in the model can either be isotropic or anisotropic, homoscedastic or heteroscedastic. Thus we have isotropic homoscedastic, anisotropic homoscedastic, isotropic heteroscedastic, and anisotropic heteroscedastic. ",
938
+ "bbox": [
939
+ 173,
940
+ 895,
941
+ 823,
942
+ 924
943
+ ],
944
+ "page_idx": 5
945
+ },
946
+ {
947
+ "type": "table",
948
+ "img_path": "images/27c456a3d6f9ae5d5d9328a16946d9cd9271c76798dd5ad0196933f568587610.jpg",
949
+ "table_caption": [
950
+ "Table 1: Instance segmentation results on PartNet (part-category $\\mathbf { m A P \\% }$ , IoU threshold 0.5, fine(3), middle(2), and coarse(1)-grained). "
951
+ ],
952
+ "table_footnote": [],
953
+ "table_body": "<table><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg</td><td rowspan=1 colspan=1>3 Bog Gaet Coe o 00 Jaeee aiue duer donder L.ITITe p3品M3 s30A</td></tr><tr><td></td><td rowspan=1 colspan=1>SPSS</td><td rowspan=1 colspan=2>123[55.7|29.729.5</td><td rowspan=1 colspan=1>38.8 29.8 61.956.972.420.372.289.349.057.8 63.2 68.720.0 63.232.710.050.682.250.671.732.949.2 56.846.6115.41 125.4- 58.1-25.4 121.7-49.4-22.1-30.5 18.9111.8 45.1-19.4 18.2 38.3 78.8 15.4 35.9 37.8- 38.3 14.4-32.7- 18.2 - 21.5 14.6 24.9 36.5</td></tr><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg</td><td rowspan=1 colspan=1>46.8</td><td rowspan=1 colspan=1>Avg46.8|38819.053.556939.119.356.284.129.946950.568.720.050.822.910044.282.230.371.728.327.640.941.6</td></tr><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1</td></tr><tr><td></td><td rowspan=1 colspan=1>SSSD</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>- = -- 26.8 18.3 26.7 21.9</td></tr><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>|Avg|-</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1 = - - - - 1 - - - - - = = - = - - - - - - - 1</td></tr><tr><td></td><td rowspan=1 colspan=1>Pree</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>37.436.6</td><td rowspan=1 colspan=1>62.664.748463.659.774.442.876.393.352.957769.670.943.958437.2100050.06050080.945.254.271749.823.0 35.5,62.839.7= -26.9·47.8 35.235.031.0115.0 48.6129.0 32.3 53.3 80.1 17.2 39.4 44.7 45.8 18.7 ·34.8:26.5127.5 23.9 33.7 52.0</td></tr><tr><td></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Avg|54.4</td><td rowspan=1 colspan=1>Avg54.464.728.856.159.746.3376 64.186.736.648.657.2 70.943.952.127.6100044.286.037.280.935.936.452.750.9</td></tr><tr><td rowspan=2 colspan=2>s.Ino</td><td rowspan=1 colspan=1>s.Ino</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>40.439.8</td></tr><tr><td rowspan=1 colspan=2>Avg57.5</td><td rowspan=1 colspan=1>Avg57.564.6362 569 7.050.135.6 6.788.741.3 54.9 64.4 71.8 48.660.529.51000462 90.9 39.688.641.232.453.448.</td></tr></table>",
954
+ "bbox": [
955
+ 171,
956
+ 140,
957
+ 823,
958
+ 387
959
+ ],
960
+ "page_idx": 6
961
+ },
962
+ {
963
+ "type": "image",
964
+ "img_path": "images/9aae9c1ad1dec43cab2d498fdaed4865cd7b8934af5bf3b533bd2c2c4268646f.jpg",
965
+ "image_caption": [
966
+ "Figure 4: Top row: ground-truth. Middle row: PartNet. Bottom row: Probabilistic Embedding. We show true positives (IoU threshold 0.5) with the same color as ground truth. False detections are shown in transparent red. "
967
+ ],
968
+ "image_footnote": [],
969
+ "bbox": [
970
+ 184,
971
+ 415,
972
+ 795,
973
+ 617
974
+ ],
975
+ "page_idx": 6
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "",
980
+ "bbox": [
981
+ 173,
982
+ 707,
983
+ 823,
984
+ 734
985
+ ],
986
+ "page_idx": 6
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "The isotropic homoscedastic probabilistic embedding, learns to predict a single scalar representing the uncertainty of a point cloud. We do not see improvements over its determinisitc counterpart, but there is a large gap between them in large categories which have much more part instances and classes than others. ",
991
+ "bbox": [
992
+ 174,
993
+ 741,
994
+ 825,
995
+ 797
996
+ ],
997
+ "page_idx": 6
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "Similar cases happen in anisotropic homoscedastic and isotropic homoscedastic embedding. The former learns a 3D uncertainty vector for a single point cloud, while the latter learns point-dependent uncertainty scalars. They all show significant improvements over determinisitc embedding on finegrained categories. ",
1002
+ "bbox": [
1003
+ 174,
1004
+ 804,
1005
+ 823,
1006
+ 861
1007
+ ],
1008
+ "page_idx": 6
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Finally, our full model uses anisotropic heteroscedastic probabilistic embedding, which outputs not only point-dependent but also axis-dependent uncertainties. See Figure 5 for an illustration of learned uncertainties. The points at boundary regions have significantly larger uncertainties compared to others. In summary, the full model achieves the best results among all variations. ",
1013
+ "bbox": [
1014
+ 174,
1015
+ 867,
1016
+ 823,
1017
+ 924
1018
+ ],
1019
+ "page_idx": 6
1020
+ },
1021
+ {
1022
+ "type": "table",
1023
+ "img_path": "images/4aaf43e30c42c7eab28161a4603c2d5615cd28192de05155fa7c9324bdb7164d.jpg",
1024
+ "table_caption": [
1025
+ "Table 2: Ablation study. Center, ExtDim, Prob refer to our proposed center-aware loss for the clustering step, the 6D deterministic embedding, and our proposed probabilistic embedding. Aniso and Hetero refer to the choice of Gaussian: anisotropic and heteroscedastic. AllAvg means taking all levels of granularity and categories into consideration. Large means fine-grained level of four largest categories. Others means fine-grained level of all the other categories. Here we also list the results on four largest categories of fine-grained level. The top two results are marked bold. "
1026
+ ],
1027
+ "table_footnote": [],
1028
+ "table_body": "<table><tr><td>Ablation</td><td>Model</td><td>ceeer</td><td>aig </td><td>1STUo</td><td>aH</td><td>BAAIA</td><td>△</td><td>e</td><td>△</td><td>sPett</td><td>△</td><td>Gart</td><td>△</td><td>due</td><td>△</td><td>2</td><td>△</td><td>Jqee</td><td>△</td></tr><tr><td>Loss</td><td></td><td></td><td></td><td>&lt;</td><td></td><td>|54.3</td><td>-0.7</td><td>16.2</td><td>-7.3</td><td>43.1</td><td>3.1</td><td>19.0</td><td>-8.4</td><td>8.8</td><td>-9.6</td><td>29.7</td><td>6.2</td><td>7.1</td><td>-17.4</td></tr><tr><td rowspan=\"2\">Deterministic</td><td rowspan=\"2\">Reference</td><td>M</td><td></td><td></td><td></td><td>55.0</td><td>0.0</td><td>23.4</td><td>0.0</td><td>40.0</td><td>0.0</td><td>27.4</td><td>0.0</td><td>18.5</td><td>0.0</td><td>23.5</td><td>0.0</td><td>24.4</td><td>0.0</td></tr><tr><td></td><td>√</td><td></td><td></td><td>56.2</td><td>1.2</td><td>27.2</td><td>3.7</td><td>41.2</td><td>1.2</td><td>32.8</td><td>5.4</td><td>20.2</td><td>1.7</td><td>29.8</td><td>6.4</td><td>25.8</td><td>1.4</td></tr><tr><td rowspan=\"4\">Probabilistic</td><td></td><td></td><td></td><td></td><td></td><td>54.7</td><td>-0.3</td><td>26.4</td><td>3.0</td><td>39.9</td><td>-0.1</td><td>33.7</td><td>6.3</td><td>17.8</td><td>-0.7</td><td>30.0</td><td>6.5</td><td>24.3</td><td>-0.2</td></tr><tr><td></td><td>区</td><td></td><td></td><td>√</td><td>53.1</td><td>-1.9</td><td>27.4</td><td>3.9</td><td>38.1</td><td>-1.8</td><td>33.6</td><td>6.2</td><td>20.0</td><td>1.5</td><td>30.9</td><td>7.5</td><td>25.0</td><td>0.6</td></tr><tr><td></td><td></td><td>√</td><td>√</td><td></td><td></td><td>55.60.6</td><td>27.3</td><td>3.9</td><td>41.0</td><td>1.1</td><td>33.9</td><td>6.5</td><td>19.5</td><td>1.0</td><td>31.1</td><td>7.6</td><td>24.8</td><td>0.3</td></tr><tr><td>Full</td><td>公</td><td>√</td><td>√</td><td>√</td><td>57.5</td><td>2.5</td><td>28.7</td><td>5.2</td><td>43.0</td><td>3.0</td><td>34.7</td><td>7.3</td><td>20.3</td><td>1.8</td><td>34.2</td><td>10.7</td><td>25.5</td><td>1.1</td></tr></table>",
1029
+ "bbox": [
1030
+ 173,
1031
+ 196,
1032
+ 821,
1033
+ 325
1034
+ ],
1035
+ "page_idx": 7
1036
+ },
1037
+ {
1038
+ "type": "image",
1039
+ "img_path": "images/061579210f0d0b85ff94609c453a44632715c2777bb1eb4bd9023d829df5d84f.jpg",
1040
+ "image_caption": [
1041
+ "Figure 5: Learned Uncertainties. Top left: uncertainties are represented as ellipsoids, where directional scaling shows the value of uncertainties along 3 axes. The other 3 subfigures: uncertainties along 3 axes. We represent large values with red colors and smaller values with blue colors. "
1042
+ ],
1043
+ "image_footnote": [],
1044
+ "bbox": [
1045
+ 184,
1046
+ 371,
1047
+ 462,
1048
+ 401
1049
+ ],
1050
+ "page_idx": 7
1051
+ },
1052
+ {
1053
+ "type": "image",
1054
+ "img_path": "images/445c93162d986452a5aab014b737b0b5d64453b744ea7cf75f797abed41d9b72.jpg",
1055
+ "image_caption": [
1056
+ "Figure 6: Comparison of embeddings. Top row: Deterministic embedding. Bottom row: Probabilistic embedding. Left to right: we show a gradual shape transformation between the original point cloud and the embedded point cloud. "
1057
+ ],
1058
+ "image_footnote": [],
1059
+ "bbox": [
1060
+ 550,
1061
+ 349,
1062
+ 808,
1063
+ 431
1064
+ ],
1065
+ "page_idx": 7
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Effect of spatial embedding. Since our full model outputs a 3D center vector and 3D uncertainty vector, in a way, we can regard it as a 6D embedding method (with a totally different similarity kernel). One may wonder: how does it compare with the performance of 6D deterministic embedding? The results in Table 2 show, increasing the dimension of deterministic embedding from 3 to 6 shows some improvement, but less than using probabilistic embedding. Thus the performance of our method, cannot be achieved by simply increasing the dimension of deterministic embedding, which also shows the superiority of the probabilistic embedding. We illustrate the differences between deterministic and probabilistic embedding in 3D in Figure 6. We can observe, that probabilistic embedding introduces much stronger deformations of the geometry. ",
1070
+ "bbox": [
1071
+ 174,
1072
+ 560,
1073
+ 825,
1074
+ 685
1075
+ ],
1076
+ "page_idx": 7
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Effect of center-aware loss. We examine the effect of the center-aware loss in the clustering step. We use the same setup as in our full model except changing the center-aware loss to MSE loss (Neven et al. (2019)). In Table 2, we can see that our proposed loss function is especially stable on large fine-grained datasets $5 . 2 \\%$ vs $- 7 . 3 \\%$ ). ",
1081
+ "bbox": [
1082
+ 174,
1083
+ 708,
1084
+ 825,
1085
+ 763
1086
+ ],
1087
+ "page_idx": 7
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "5 CONCLUSION ",
1092
+ "text_level": 1,
1093
+ "bbox": [
1094
+ 176,
1095
+ 790,
1096
+ 318,
1097
+ 806
1098
+ ],
1099
+ "page_idx": 7
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "We build on embedding-based instance segmentation to present a framework of probabilistic embedding and a new loss function for the clustering step. We evaluate our framework on a large scale point cloud dataset, PartNet, and achieve state-of-the-art performance. Moreover, the qualitative results show the new framework is robust to point clouds with many instances. Additionally, it is able to estimate uncertainties while increasing the accuracy of instance segmentation. In future work, we hope that the probabilistic embedding can be further applied to other kinds of data representation, e.g., 2D images, 3D volumes, and meshes. ",
1104
+ "bbox": [
1105
+ 174,
1106
+ 825,
1107
+ 825,
1108
+ 924
1109
+ ],
1110
+ "page_idx": 7
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "REFERENCES ",
1115
+ "text_level": 1,
1116
+ "bbox": [
1117
+ 176,
1118
+ 102,
1119
+ 287,
1120
+ 117
1121
+ ],
1122
+ "page_idx": 8
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015. 6 ",
1127
+ "bbox": [
1128
+ 174,
1129
+ 126,
1130
+ 823,
1131
+ 169
1132
+ ],
1133
+ "page_idx": 8
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Christopher Choy, JunYoung Gwak, and Silvio Savarese. 4d spatio-temporal convnets: Minkowski convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3075–3084, 2019. 15 ",
1138
+ "bbox": [
1139
+ 176,
1140
+ 179,
1141
+ 823,
1142
+ 222
1143
+ ],
1144
+ "page_idx": 8
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "Angela Dai, Angel X Chang, Manolis Savva, Maciej Halber, Thomas Funkhouser, and Matthias Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5828–5839, 2017. 6, 13 ",
1149
+ "bbox": [
1150
+ 173,
1151
+ 232,
1152
+ 823,
1153
+ 276
1154
+ ],
1155
+ "page_idx": 8
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Bert De Brabandere, Davy Neven, and Luc Van Gool. Semantic instance segmentation with a discriminative loss function. arXiv preprint arXiv:1708.02551, 2017. 1, 2 ",
1160
+ "bbox": [
1161
+ 171,
1162
+ 285,
1163
+ 825,
1164
+ 315
1165
+ ],
1166
+ "page_idx": 8
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Garoe Dorta, Sara Vicente, Lourdes Agapito, Neill D. F. Campbell, and Ivor Simpson. Structured uncertainty prediction networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. 1 ",
1171
+ "bbox": [
1172
+ 174,
1173
+ 325,
1174
+ 823,
1175
+ 367
1176
+ ],
1177
+ "page_idx": 8
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Francis Engelmann, Martin Bokeloh, Alireza Fathi, Bastian Leibe, and Matthias Nießner. 3dmpa: Multi-proposal aggregation for 3d semantic instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9031–9040, 2020. 15 ",
1182
+ "bbox": [
1183
+ 174,
1184
+ 378,
1185
+ 823,
1186
+ 421
1187
+ ],
1188
+ "page_idx": 8
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "Alireza Fathi, Zbigniew Wojna, Vivek Rathod, Peng Wang, Hyun Oh Song, Sergio Guadarrama, and Kevin P Murphy. Semantic instance segmentation via deep metric learning. arXiv preprint arXiv:1703.10277, 2017. 1, 2 ",
1193
+ "bbox": [
1194
+ 173,
1195
+ 431,
1196
+ 825,
1197
+ 474
1198
+ ],
1199
+ "page_idx": 8
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019. 13 ",
1204
+ "bbox": [
1205
+ 173,
1206
+ 484,
1207
+ 823,
1208
+ 513
1209
+ ],
1210
+ "page_idx": 8
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Ross Girshick. Fast r-cnn. In Proceedings of the IEEE international conference on computer vision, pp. 1440–1448, 2015. 2 ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 523,
1218
+ 823,
1219
+ 553
1220
+ ],
1221
+ "page_idx": 8
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pp. 529–536, 2005. 5 ",
1226
+ "bbox": [
1227
+ 171,
1228
+ 563,
1229
+ 823,
1230
+ 593
1231
+ ],
1232
+ "page_idx": 8
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Lei Han, Tian Zheng, Lan Xu, and Lu Fang. Occuseg: Occupancy-aware 3d instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2940–2949, 2020. 15 ",
1237
+ "bbox": [
1238
+ 173,
1239
+ 603,
1240
+ 823,
1241
+ 645
1242
+ ],
1243
+ "page_idx": 8
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In ´ Proceedings of the IEEE international conference on computer vision, pp. 2961–2969, 2017. 1, 2 ",
1248
+ "bbox": [
1249
+ 173,
1250
+ 656,
1251
+ 821,
1252
+ 686
1253
+ ],
1254
+ "page_idx": 8
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Tong He, Zhi Zhang, Hang Zhang, Zhongyue Zhang, Junyuan Xie, and Mu Li. Bag of tricks for image classification with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 558–567, 2019. 12 ",
1259
+ "bbox": [
1260
+ 173,
1261
+ 695,
1262
+ 823,
1263
+ 739
1264
+ ],
1265
+ "page_idx": 8
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Tony Jebara, Risi Kondor, and Andrew Howard. Probability product kernels. Journal of Machine Learning Research, 5(Jul):819–844, 2004. 2, 3 ",
1270
+ "bbox": [
1271
+ 173,
1272
+ 748,
1273
+ 823,
1274
+ 779
1275
+ ],
1276
+ "page_idx": 8
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Li Jiang, Hengshuang Zhao, Shaoshuai Shi, Shu Liu, Chi-Wing Fu, and Jiaya Jia. Pointgroup: Dualset point grouping for 3d instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4867–4876, 2020. 15 ",
1281
+ "bbox": [
1282
+ 173,
1283
+ 787,
1284
+ 823,
1285
+ 832
1286
+ ],
1287
+ "page_idx": 8
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In Advances in neural information processing systems, pp. 5574–5584, 2017. 1, 2 ",
1292
+ "bbox": [
1293
+ 171,
1294
+ 842,
1295
+ 823,
1296
+ 871
1297
+ ],
1298
+ "page_idx": 8
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7482–7491, 2018. 1, 2, 3 ",
1303
+ "bbox": [
1304
+ 176,
1305
+ 882,
1306
+ 825,
1307
+ 924
1308
+ ],
1309
+ "page_idx": 8
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Salman Khan, Munawar Hayat, Syed Waqas Zamir, Jianbing Shen, and Ling Shao. Striking the right balance with uncertainty. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1 ",
1314
+ "bbox": [
1315
+ 174,
1316
+ 103,
1317
+ 821,
1318
+ 146
1319
+ ],
1320
+ "page_idx": 9
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. 13 ",
1325
+ "bbox": [
1326
+ 173,
1327
+ 156,
1328
+ 823,
1329
+ 185
1330
+ ],
1331
+ "page_idx": 9
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. 2 ",
1336
+ "bbox": [
1337
+ 173,
1338
+ 194,
1339
+ 823,
1340
+ 223
1341
+ ],
1342
+ "page_idx": 9
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Shu Kong and Charless C Fowlkes. Recurrent pixel embedding for instance grouping. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9018–9028, 2018. 1 ",
1347
+ "bbox": [
1348
+ 173,
1349
+ 234,
1350
+ 825,
1351
+ 275
1352
+ ],
1353
+ "page_idx": 9
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "Jean Lahoud, Bernard Ghanem, Marc Pollefeys, and Martin R Oswald. 3d instance segmentation via multi-task metric learning. arXiv preprint arXiv:1906.08650, 2019. 1, 15 ",
1358
+ "bbox": [
1359
+ 173,
1360
+ 286,
1361
+ 823,
1362
+ 315
1363
+ ],
1364
+ "page_idx": 9
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "Xiaodan Liang, Liang Lin, Yunchao Wei, Xiaohui Shen, Jianchao Yang, and Shuicheng Yan. Proposal-free network for instance-level object segmentation. IEEE transactions on pattern analysis and machine intelligence, 40(12):2978–2991, 2017. 2, 3 ",
1369
+ "bbox": [
1370
+ 176,
1371
+ 325,
1372
+ 821,
1373
+ 368
1374
+ ],
1375
+ "page_idx": 9
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Chao Liu, Jinwei Gu, Kihwan Kim, Srinivasa G. Narasimhan, and Jan Kautz. Neural rgb(r)d sensing: Depth and uncertainty from a video camera. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1 ",
1380
+ "bbox": [
1381
+ 178,
1382
+ 377,
1383
+ 823,
1384
+ 421
1385
+ ],
1386
+ "page_idx": 9
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Shu Liu, Lu Qi, Haifang Qin, Jianping Shi, and Jiaya Jia. Path aggregation network for instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8759–8768, 2018. 1, 2 ",
1391
+ "bbox": [
1392
+ 174,
1393
+ 431,
1394
+ 825,
1395
+ 474
1396
+ ],
1397
+ "page_idx": 9
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Kaichun Mo, Shilin Zhu, Angel X Chang, Li Yi, Subarna Tripathi, Leonidas J Guibas, and Hao Su. Partnet: A large-scale benchmark for fine-grained and hierarchical part-level 3d object understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 909–918, 2019. 1, 2, 6, 12 ",
1402
+ "bbox": [
1403
+ 174,
1404
+ 484,
1405
+ 825,
1406
+ 540
1407
+ ],
1408
+ "page_idx": 9
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "Davy Neven, Bert De Brabandere, Marc Proesmans, and Luc Van Gool. Instance segmentation by jointly optimizing spatial embeddings and clustering bandwidth. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8837–8845, 2019. 1, 2, 3, 5, 6, 8, 15 ",
1413
+ "bbox": [
1414
+ 173,
1415
+ 550,
1416
+ 825,
1417
+ 607
1418
+ ],
1419
+ "page_idx": 9
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "David Novotny, Samuel Albanie, Diane Larlus, and Andrea Vedaldi. Semi-convolutional operators for instance segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 86–102, 2018. 1, 2, 3 ",
1424
+ "bbox": [
1425
+ 173,
1426
+ 617,
1427
+ 825,
1428
+ 660
1429
+ ],
1430
+ "page_idx": 9
1431
+ },
1432
+ {
1433
+ "type": "text",
1434
+ "text": "Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, highperformance deep learning library. In Advances in Neural Information Processing Systems, pp. 8024–8035, 2019. 13 ",
1435
+ "bbox": [
1436
+ 173,
1437
+ 670,
1438
+ 825,
1439
+ 726
1440
+ ],
1441
+ "page_idx": 9
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pp. 5099–5108, 2017. 2, 12 ",
1446
+ "bbox": [
1447
+ 173,
1448
+ 737,
1449
+ 825,
1450
+ 780
1451
+ ],
1452
+ "page_idx": 9
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91–99, 2015. 2 ",
1457
+ "bbox": [
1458
+ 173,
1459
+ 790,
1460
+ 823,
1461
+ 832
1462
+ ],
1463
+ "page_idx": 9
1464
+ },
1465
+ {
1466
+ "type": "text",
1467
+ "text": "Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. 2 ",
1468
+ "bbox": [
1469
+ 171,
1470
+ 842,
1471
+ 825,
1472
+ 871
1473
+ ],
1474
+ "page_idx": 9
1475
+ },
1476
+ {
1477
+ "type": "text",
1478
+ "text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818–2826, 2016. 12 ",
1479
+ "bbox": [
1480
+ 174,
1481
+ 882,
1482
+ 825,
1483
+ 924
1484
+ ],
1485
+ "page_idx": 9
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "Dequan Wang, Evan Shelhamer, Bruno Olshausen, and Trevor Darrell. Dynamic scale inference by entropy minimization. arXiv preprint arXiv:1908.03182, 2019a. 5 ",
1490
+ "bbox": [
1491
+ 171,
1492
+ 103,
1493
+ 823,
1494
+ 132
1495
+ ],
1496
+ "page_idx": 10
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "Weiyue Wang, Ronald Yu, Qiangui Huang, and Ulrich Neumann. Sgpn: Similarity group proposal network for 3d point cloud instance segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2569–2578, 2018. 1, 2, 6 ",
1501
+ "bbox": [
1502
+ 176,
1503
+ 142,
1504
+ 821,
1505
+ 185
1506
+ ],
1507
+ "page_idx": 10
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "Xinlong Wang, Shu Liu, Xiaoyong Shen, Chunhua Shen, and Jiaya Jia. Associatively segmenting instances and semantics in point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4096–4105, 2019b. 1, 2 ",
1512
+ "bbox": [
1513
+ 174,
1514
+ 194,
1515
+ 821,
1516
+ 238
1517
+ ],
1518
+ "page_idx": 10
1519
+ },
1520
+ {
1521
+ "type": "text",
1522
+ "text": "Ken CL Wong, Mehdi Moradi, Hui Tang, and Tanveer Syeda-Mahmood. 3d segmentation with exponential logarithmic loss for highly unbalanced object sizes. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 612–619. Springer, 2018. 5 ",
1523
+ "bbox": [
1524
+ 176,
1525
+ 247,
1526
+ 820,
1527
+ 291
1528
+ ],
1529
+ "page_idx": 10
1530
+ },
1531
+ {
1532
+ "type": "text",
1533
+ "text": "Li Yi, Wang Zhao, He Wang, Minhyuk Sung, and Leonidas J Guibas. Gspn: Generative shape proposal network for 3d instance segmentation in point cloud. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3947–3956, 2019. 2, 6 ",
1534
+ "bbox": [
1535
+ 176,
1536
+ 300,
1537
+ 821,
1538
+ 343
1539
+ ],
1540
+ "page_idx": 10
1541
+ },
1542
+ {
1543
+ "type": "text",
1544
+ "text": "A APPENDIX ",
1545
+ "text_level": 1,
1546
+ "bbox": [
1547
+ 176,
1548
+ 371,
1549
+ 299,
1550
+ 387
1551
+ ],
1552
+ "page_idx": 10
1553
+ },
1554
+ {
1555
+ "type": "text",
1556
+ "text": "A.1 CENTER-AWARE LOSS EXPLANATION ",
1557
+ "text_level": 1,
1558
+ "bbox": [
1559
+ 176,
1560
+ 404,
1561
+ 473,
1562
+ 416
1563
+ ],
1564
+ "page_idx": 10
1565
+ },
1566
+ {
1567
+ "type": "text",
1568
+ "text": "We want $\\mathbf { P } \\in \\mathbb { R } ^ { N \\times L }$ , the matrix form of $\\{ { \\bf p } _ { i } \\} _ { i = 1 } ^ { N }$ , to satisfy two conditions: ",
1569
+ "bbox": [
1570
+ 173,
1571
+ 426,
1572
+ 671,
1573
+ 445
1574
+ ],
1575
+ "page_idx": 10
1576
+ },
1577
+ {
1578
+ "type": "text",
1579
+ "text": "1. $\\mathbf { P } [ i , : ]$ is a probability vector and can be used to infer class label $y _ { i }$ of point $\\mathbf { x } _ { i }$ , i.e., $y _ { i } =$ arg $\\mathrm { m a x } _ { l = 1 } ^ { L } \\mathbf { P } [ i , l ]$ . \n2. For foreground class labels $l \\in \\{ 1 , 2 , \\ldots , L \\} , \\mathbf { P } [ : , l ]$ is a score map of being an instance center with class label $l$ . ",
1580
+ "bbox": [
1581
+ 200,
1582
+ 457,
1583
+ 825,
1584
+ 520
1585
+ ],
1586
+ "page_idx": 10
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "text": "The first condition is easy to satisfy with the cross entropy loss. Assuming $\\mathbf { P } [ i , : ]$ is the output of a softmax function, we can minimize, ",
1591
+ "bbox": [
1592
+ 174,
1593
+ 531,
1594
+ 825,
1595
+ 560
1596
+ ],
1597
+ "page_idx": 10
1598
+ },
1599
+ {
1600
+ "type": "equation",
1601
+ "img_path": "images/24b6425d638aecb0837812ad7a68640b2b9d48e76aea462cad30090ec1994eb0.jpg",
1602
+ "text": "$$\n\\mathcal { L } _ { C l s C E } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\left( \\frac { 1 } { L } \\sum _ { l = 1 } ^ { L } - \\mathbb { 1 } _ { y _ { i } = l } \\log \\mathbf { P } [ i , l ] \\right) ,\n$$",
1603
+ "text_format": "latex",
1604
+ "bbox": [
1605
+ 338,
1606
+ 566,
1607
+ 656,
1608
+ 611
1609
+ ],
1610
+ "page_idx": 10
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "where $\\mathbb { 1 } _ { y _ { i } = l }$ is an indicator function which equals 1 when $y _ { i } = l , 0$ otherwise. ",
1615
+ "bbox": [
1616
+ 174,
1617
+ 617,
1618
+ 686,
1619
+ 632
1620
+ ],
1621
+ "page_idx": 10
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "text": "For the second condition, we take into account $\\kappa ( \\mathbf { e } _ { i } , \\mathbf { c } _ { k } )$ , which is the similarity between $\\mathbf { x } _ { i }$ and an instance $k$ . ",
1626
+ "bbox": [
1627
+ 174,
1628
+ 638,
1629
+ 823,
1630
+ 667
1631
+ ],
1632
+ "page_idx": 10
1633
+ },
1634
+ {
1635
+ "type": "text",
1636
+ "text": "We want both $\\mathbf { P } [ : , l ]$ and $\\mathbf { Q } [ : , l ]$ to achieve local maxima at the same points for all $l \\in \\{ 1 , 2 , \\ldots , L \\}$ . When we are doing inference, these local maxima are chosen as instance centers. Therefore, the first condition can be weakened, and only points which are close to instance centers should be classified correctly. ",
1637
+ "bbox": [
1638
+ 173,
1639
+ 672,
1640
+ 825,
1641
+ 729
1642
+ ],
1643
+ "page_idx": 10
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "text": "We can view $\\mathcal { L } _ { S c o r e }$ in two ways, ",
1648
+ "bbox": [
1649
+ 174,
1650
+ 737,
1651
+ 397,
1652
+ 752
1653
+ ],
1654
+ "page_idx": 10
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "1. First, we switch the order of summation in Eq. 10, ",
1659
+ "bbox": [
1660
+ 214,
1661
+ 763,
1662
+ 563,
1663
+ 779
1664
+ ],
1665
+ "page_idx": 10
1666
+ },
1667
+ {
1668
+ "type": "equation",
1669
+ "img_path": "images/f85b018eaa7053c9fc40b371996d8965b4d50d8feb4faf380d9648e777cbe3c2.jpg",
1670
+ "text": "$$\n\\mathcal { L } _ { S c o r e } = \\frac { 1 } { L } \\sum _ { l = 1 } ^ { L } \\left( \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } - \\mathbf { Q } [ i , l ] \\log \\mathbf { P } [ i , l ] \\right) .\n$$",
1671
+ "text_format": "latex",
1672
+ "bbox": [
1673
+ 369,
1674
+ 785,
1675
+ 686,
1676
+ 829
1677
+ ],
1678
+ "page_idx": 10
1679
+ },
1680
+ {
1681
+ "type": "text",
1682
+ "text": "The value of this quantity $- \\mathbf { Q } [ i , l ] \\log \\mathbf { P } [ i , l ]$ is high when weight term $\\mathbf { Q } [ i , l ]$ is high, and if we minimize it, we are forcing $- \\log \\mathbf { P } [ i , l ]$ to be small. Consequently, $\\mathbf { P } [ i , l ]$ would be large. This guarantees local maxima of $\\mathbf { Q } [ : , l ]$ are also local maxima of $\\mathbf { P } [ : , l ]$ . And minimizing this loss term is equivalent to minimize the KL-divergence between (unnor$\\mathbf { Q } [ : , l ]$ and (unnormalized probability) $\\begin{array} { r l } { \\mathbf { P } [ : , l ] , \\mathbb { K L } ( \\mathbf { Q } [ : , l ] | \\mathbf { P } [ : , l ] ) } & { { } = } \\end{array}$ $\\begin{array} { r } { \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\mathbf { Q } [ i , l ] \\log \\frac { \\mathbf { Q } [ i , l ] } { \\mathbf { P } [ i , l ] } } \\end{array}$ ",
1683
+ "bbox": [
1684
+ 232,
1685
+ 835,
1686
+ 825,
1687
+ 928
1688
+ ],
1689
+ "page_idx": 10
1690
+ },
1691
+ {
1692
+ "type": "table",
1693
+ "img_path": "images/359305fa325e9e19067d400c67da92c3ea03ef91364d2e1b6db3fe0485191310.jpg",
1694
+ "table_caption": [
1695
+ "Table 3: Activations for different output branches "
1696
+ ],
1697
+ "table_footnote": [],
1698
+ "table_body": "<table><tr><td></td><td>Output</td><td>Activation</td></tr><tr><td>Centers</td><td>Oi∈R</td><td>μ = Xi +tanhOi</td></tr><tr><td>Uncert</td><td>ER</td><td>Oi = expoi</td></tr><tr><td>Scores</td><td>PiER</td><td>Pi = softmax(Pi)</td></tr></table>",
1699
+ "bbox": [
1700
+ 362,
1701
+ 127,
1702
+ 635,
1703
+ 202
1704
+ ],
1705
+ "page_idx": 11
1706
+ },
1707
+ {
1708
+ "type": "text",
1709
+ "text": "2. Second, we look at the inner summation of Eq. 10, ",
1710
+ "bbox": [
1711
+ 212,
1712
+ 231,
1713
+ 565,
1714
+ 246
1715
+ ],
1716
+ "page_idx": 11
1717
+ },
1718
+ {
1719
+ "type": "equation",
1720
+ "img_path": "images/d01f1977e41e14f487620a808277c9ed1a941fb1d47231e2dd44ec8fa2c566a6.jpg",
1721
+ "text": "$$\n\\mathcal { L } _ { S c o r e } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\left( \\frac { 1 } { L } \\sum _ { l = 1 } ^ { L } - \\mathbf { Q } [ i , l ] \\log \\mathbf { P } [ i , l ] \\right) .\n$$",
1722
+ "text_format": "latex",
1723
+ "bbox": [
1724
+ 369,
1725
+ 251,
1726
+ 686,
1727
+ 295
1728
+ ],
1729
+ "page_idx": 11
1730
+ },
1731
+ {
1732
+ "type": "text",
1733
+ "text": "The inner summation inside the round bracket is the cross entropy between $\\mathbf { Q } [ i , : ]$ and $\\mathbf { P } [ i , : ]$ . And it is equivalent to replacing the one-hot vector in Equation 12 with $\\mathbf { Q } [ i , : ]$ . Also, it is the form of label smoothing, a commonly used training trick in image classification (Szegedy et al. (2016); He et al. (2019)). The closer $\\mathbf { Q } [ i , : ]$ is to a one-hot vector, the more confidence we give to the classification loss of point $\\mathbf { x } _ { i }$ . By definition of $\\mathbf { Q } [ i , l ]$ , it can be easily seen that the resulting classifier only classifies near-centers points correctly. Thus we call our new loss function the center-aware loss. ",
1734
+ "bbox": [
1735
+ 232,
1736
+ 299,
1737
+ 825,
1738
+ 397
1739
+ ],
1740
+ "page_idx": 11
1741
+ },
1742
+ {
1743
+ "type": "text",
1744
+ "text": "A.2 IMPLEMENTATION ",
1745
+ "text_level": 1,
1746
+ "bbox": [
1747
+ 176,
1748
+ 414,
1749
+ 344,
1750
+ 428
1751
+ ],
1752
+ "page_idx": 11
1753
+ },
1754
+ {
1755
+ "type": "text",
1756
+ "text": "For a fair comparison to our main competitor PartNet (Mo et al. (2019)) we keep as much of their structure as possible (Note that PartNet is the name of a dataset as well as an instance segmentation method). We also use PointNet $^ { + + }$ (Qi et al. (2017)) as the feature extraction backbone, with the same parameters as by Mo et al. (2019). We use 3 output heads for centers, uncertainties, and scores as in $\\mathsf { \\bar { f } } ( \\{ \\mathbf { x } _ { i } \\} _ { i = 1 } ^ { N } ) = \\mathsf { \\bar { \\{ } } \\mu _ { i } , \\pmb { \\sigma } _ { i } , \\mathbf { p } _ { i } \\} _ { i = 1 } ^ { N }$ . The output dimensions are 3, 3 and the number of semantic classes, uncertainties and scores, respectively. We list the activation functions for output heads in Table 3. ",
1757
+ "bbox": [
1758
+ 173,
1759
+ 439,
1760
+ 825,
1761
+ 540
1762
+ ],
1763
+ "page_idx": 11
1764
+ },
1765
+ {
1766
+ "type": "text",
1767
+ "text": "Following the notation of PointNet+ $^ +$ Qi et al. (2017), we give the architecture of the feature network: ",
1768
+ "bbox": [
1769
+ 173,
1770
+ 546,
1771
+ 825,
1772
+ 574
1773
+ ],
1774
+ "page_idx": 11
1775
+ },
1776
+ {
1777
+ "type": "equation",
1778
+ "img_path": "images/a6bebc7cdd1139dd934fadc8acb3187f72699f7920596e874a4384a4043ec073.jpg",
1779
+ "text": "$$\n\\begin{array} { r l } & { S A ( 5 1 2 , 0 . 2 , [ 6 4 , 6 4 , 1 2 8 ] ) , } \\\\ & { S A ( 1 2 8 , 0 . 4 , [ 1 2 8 , 1 2 8 , 2 5 6 ] ) , } \\\\ & { S A ( [ 2 5 6 , 5 1 2 , 1 0 2 4 ] ) , } \\\\ & { F P ( 2 5 6 , 2 5 6 ) , } \\\\ & { F P ( 2 5 6 , 1 2 8 ) , } \\\\ & { F P ( 1 2 8 , 1 2 8 ) . } \\end{array}\n$$",
1780
+ "text_format": "latex",
1781
+ "bbox": [
1782
+ 398,
1783
+ 579,
1784
+ 598,
1785
+ 688
1786
+ ],
1787
+ "page_idx": 11
1788
+ },
1789
+ {
1790
+ "type": "text",
1791
+ "text": "The output head network is: ",
1792
+ "bbox": [
1793
+ 174,
1794
+ 708,
1795
+ 357,
1796
+ 722
1797
+ ],
1798
+ "page_idx": 11
1799
+ },
1800
+ {
1801
+ "type": "text",
1802
+ "text": "F ullyConnected(128, 256), \nBatchNorm(256), \nReLU (), \nF ullyConnected(256, 128), \nBatchNorm(128), \nReLU (), \nF ullyConnected(128, 128), \nBatchNorm(128), \nReLU (), \nF ullyConnected(128, C), ",
1803
+ "bbox": [
1804
+ 400,
1805
+ 728,
1806
+ 596,
1807
+ 904
1808
+ ],
1809
+ "page_idx": 11
1810
+ },
1811
+ {
1812
+ "type": "image",
1813
+ "img_path": "images/5baeeb435abae2f1dd6a5beaea5aa831f9f1138ce902c7095c7ed3866bba6c81.jpg",
1814
+ "image_caption": [
1815
+ "Figure 7: Top row: similarity maps for each part instance $\\tilde { \\mathbf { Q } } [ : , k ]$ . Bottom row: probability map $\\mathbf { Q } [ : , l ]$ . The arrows show that information of instances of the same class is aggregated in Eq. 9. Red means high similarity, while blue means low. "
1816
+ ],
1817
+ "image_footnote": [],
1818
+ "bbox": [
1819
+ 281,
1820
+ 103,
1821
+ 714,
1822
+ 324
1823
+ ],
1824
+ "page_idx": 12
1825
+ },
1826
+ {
1827
+ "type": "table",
1828
+ "img_path": "images/8e8bbbebbb1f4db61e0733c9bc3e3b0f92e018b62cfbbc9414a37fa36812e29e.jpg",
1829
+ "table_caption": [
1830
+ "Table 4: Instance segmentation results on PartNet. The metric is mAP $( \\% )$ with IoU threshold 0.25. "
1831
+ ],
1832
+ "table_footnote": [],
1833
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg</td><td rowspan=1 colspan=1>Bnoget o 0 aenee doider i 383品M3s </td></tr><tr><td rowspan=1 colspan=1>d</td><td rowspan=1 colspan=1>123</td><td rowspan=1 colspan=1>70.2|46.745.6</td><td rowspan=1 colspan=1>89.482.3 65.263.178.148.079.197.164.9 64.677.373.958.959.242.510.0 50.092.950.096.357.759.382.752.6144.5 43.0171.3-49.3 = 32.2 1 51.2 45.2146.7 36.5-29.0 52.6-35.3 39.6 59.9 89.3 27.1 56.9 55.0 -49.0 22.6 1 56.9135.6,36.3 28.6 44.8 57.0</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg|</td><td rowspan=1 colspan=1>62.8|</td><td rowspan=1 colspan=1>389.4 51.9 58.9 63.152.143.8 70.193.247.160.8 66.2 73.958.954.132.4100052.792.943.696.346.941.5 63.8 54.8</td></tr><tr><td rowspan=1 colspan=1>s.no</td><td rowspan=1 colspan=1>1123</td><td rowspan=1 colspan=1>72.751.451.6</td><td rowspan=1 colspan=1>82.8 79.6 65.672.082.8 49.183.8 98.375.574.3 83.279.5 59.97.8 45.2 1.050.595.4 51.696.9 60.944.682.9 51.1,55.41 147.1-78.0-48.1 39.3154.448.853.737.7-44.4 57.2,43.2 45.7 64.8 90.7 34.6 59.3 67.2 53.0 26.0 1 60.0-51.5- 44.4 31.7 50.0 53.9</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Avg|</td><td rowspan=1 colspan=1>66.5</td><td rowspan=1 colspan=1>66.582.8 59.8 61.472.057.747.475.694.552.7 66.8 75.279.559.9 65.936.8100055.095.4 506 96.953.038.0 66.5 52.5</td></tr></table>",
1834
+ "bbox": [
1835
+ 173,
1836
+ 434,
1837
+ 823,
1838
+ 574
1839
+ ],
1840
+ "page_idx": 12
1841
+ },
1842
+ {
1843
+ "type": "text",
1844
+ "text": "where $C$ is 3, 3 and the number of classes for centers, uncertainties and scores, respectively. ",
1845
+ "bbox": [
1846
+ 171,
1847
+ 598,
1848
+ 772,
1849
+ 613
1850
+ ],
1851
+ "page_idx": 12
1852
+ },
1853
+ {
1854
+ "type": "text",
1855
+ "text": "We implemented our method using PyTorch Paszke et al. (2019) and the geometric deep learning library PyTorch Geometric Fey & Lenssen (2019). The final objective function is ",
1856
+ "bbox": [
1857
+ 174,
1858
+ 619,
1859
+ 823,
1860
+ 647
1861
+ ],
1862
+ "page_idx": 12
1863
+ },
1864
+ {
1865
+ "type": "equation",
1866
+ "img_path": "images/cf1f96196bbdff7c98d2d9922c8c275d52b4fcc03707bd26aef7869b311ac504.jpg",
1867
+ "text": "$$\n\\mathcal { L } = \\mathcal { L } _ { I n s } + \\mathcal { L } _ { S c o r e } + 0 . 0 0 1 \\cdot \\mathcal { L } _ { R e g }\n$$",
1868
+ "text_format": "latex",
1869
+ "bbox": [
1870
+ 379,
1871
+ 654,
1872
+ 619,
1873
+ 670
1874
+ ],
1875
+ "page_idx": 12
1876
+ },
1877
+ {
1878
+ "type": "text",
1879
+ "text": "We use random jittering, translation (between $- 0 . 0 1$ and 0.01) and rotation (between $- 1 5 ^ { \\circ }$ and $1 5 ^ { \\circ }$ for each axis) as data augmentation, and use the Adam Kingma & Ba (2014) optimizer. We use a batch-size of 16 and an initial learning rate of 0.001 for 500 epochs with a decay factor of 0.5 at epoch 50 and epoch 150. ",
1880
+ "bbox": [
1881
+ 174,
1882
+ 681,
1883
+ 825,
1884
+ 738
1885
+ ],
1886
+ "page_idx": 12
1887
+ },
1888
+ {
1889
+ "type": "text",
1890
+ "text": "A.3 ADDITIONAL RESULTS ON PARTNET ",
1891
+ "text_level": 1,
1892
+ "bbox": [
1893
+ 176,
1894
+ 755,
1895
+ 468,
1896
+ 770
1897
+ ],
1898
+ "page_idx": 12
1899
+ },
1900
+ {
1901
+ "type": "text",
1902
+ "text": "Results of different IoU thresholds We report detailed results of IoU threshold at $2 5 \\%$ and $7 5 \\%$ in Table 4 and Table 5. The metric is mean Average Precision (mAP). ",
1903
+ "bbox": [
1904
+ 171,
1905
+ 780,
1906
+ 823,
1907
+ 810
1908
+ ],
1909
+ "page_idx": 12
1910
+ },
1911
+ {
1912
+ "type": "text",
1913
+ "text": "Qualitive results We present more qualitive results in Figure 8 which shows the instanceawareness of our method. We also demonstrate the 3D models in the attached video. ",
1914
+ "bbox": [
1915
+ 174,
1916
+ 824,
1917
+ 821,
1918
+ 853
1919
+ ],
1920
+ "page_idx": 12
1921
+ },
1922
+ {
1923
+ "type": "text",
1924
+ "text": "A.4 ADDITIONAL RESULTS ON SCANNET ",
1925
+ "text_level": 1,
1926
+ "bbox": [
1927
+ 176,
1928
+ 869,
1929
+ 472,
1930
+ 883
1931
+ ],
1932
+ "page_idx": 12
1933
+ },
1934
+ {
1935
+ "type": "text",
1936
+ "text": "ScanNet (Dai et al. (2017)) is a dataset containing 3D reconstructions of indoor scenes. Different from objects in PartNet, instances are more separated, e.g., chairs and tables usually are not connected, while in PartNet, parts are closely connected together and have more intertwined correspondence. Also PartNet provides detailed and high-granularity semantic and instance information, i.e. the number of instances and classes are often larger than ones of ScanNet. This makes PartNet a more suitable dataset for instance segmentation. However, we still validate our method on ScanNet to show the potential of probabilistic embedding. As baseline method we chose a network based on performance and availability of code. Since the best methods, such as OccuSeg, do not release code for ScanNet, we decided to build our own baseline using MinkowskiNet (Choy et al. (2019)) as feature backbone. MinkowskiNet is a sparse tensor network that achieved great results on indoor semantic scene segmentation. In order to adapt the network to instance segmentation, we re-implement the learnable margin method proposed by Neven et al. (2019). The learnable margin method does well on common image instance segmentation datasets and is well-balanced both in speed and accuracy. This combination of two recent papers gives a strong baseline, but not stateof-the-art results in the metrics. We compare to this baseline, also using MinkowskiNet as feature backbone to make the results directly comparable. ",
1937
+ "bbox": [
1938
+ 173,
1939
+ 895,
1940
+ 823,
1941
+ 924
1942
+ ],
1943
+ "page_idx": 12
1944
+ },
1945
+ {
1946
+ "type": "table",
1947
+ "img_path": "images/845999cd80dcb0339daff67531c6a666c321bfcd04f1b9bde1f32a23fc06b313.jpg",
1948
+ "table_caption": [
1949
+ "Table 5: Instance segmentation results on PartNet. The metric is mAP $( \\% )$ with IoU threshold 0.75. "
1950
+ ],
1951
+ "table_footnote": [],
1952
+ "table_body": "<table><tr><td></td><td></td><td>Avg</td><td>3</td><td>o o0</td><td>eenee duer doider L.ITe 0 阿 S 品 M</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td>22.0 1</td><td>4.2</td><td>47.439.714.6 60.641.458.328.858.384.735.649.148.2 66.310.748.729.698.047.876.150.035.129.943.242.240.5</td></tr><tr><td>ee</td><td>123</td><td>23.5</td><td>-</td><td>21.4 1 = 3.937.9 、</td><td>37.2 1 22.4 19.6 1 32.1 1 16.7 1 22.8 22.0 - 16.6 17.6 29.8 63.2 8.1 27.6 25.8 31.0 13.6 23.9 12.1 18.2 16.4 19.7 34.5</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>- - - 1 -</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>Avg|38.939.77.649.241.432.123.241.773.922038437.066.310.739.820.998.3467.126.335.123.627.23037.5</td></tr><tr><td></td><td>1</td><td>23.8</td><td></td><td>7.1 1 22.8</td><td>50.040.313.3 60.2 60.259.328.261.990.639.159.6542 69.37.465.728.598.047.977.150.542.830.134.840.741.1 -22.0- 35.5- 20.6- 26.121.4 1 -</td></tr><tr><td>,</td><td></td><td>23 |25.7</td><td>- 7.3 38.8</td><td>37.4- 21.3 20.5 17.2 30.0 66.8 10.8 28.2 33.2</td><td>31.5 14.1 21.0 17.4 19.4 38.0</td></tr><tr><td>s.no</td><td></td><td></td><td></td><td>-</td><td>, 25.6 , 17.1 -</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>Avg|41.740.39.249.5 60.234.2.743.178.723.743.9 43.769.37.448.621.5 98.36477.129.4 42.8 25.724.50039.6</td></tr></table>",
1953
+ "bbox": [
1954
+ 173,
1955
+ 191,
1956
+ 823,
1957
+ 332
1958
+ ],
1959
+ "page_idx": 13
1960
+ },
1961
+ {
1962
+ "type": "image",
1963
+ "img_path": "images/ddf38a2b7c8ca8218109b83409407d1b63c79a627cad3c1e1be3de09a03af765.jpg",
1964
+ "image_caption": [
1965
+ "Figure 8: Top row: ground-truth (background points are shown in transparent red). Second and third row: PartNet and Ours (only true positives are shown, and false detections are shown in transparent red). Fourth and fifth row: PartNet and Ours (all detected instances, unclassified points are shown in transparent red). PartNet can group instance points together but fails to give the correct class labels in some cases (e.g., in the first and the third subfigures from left to right, points of table legs are grouped together (fourth row) but they are not true positives (second row). Besides, in the sixth subfigure from left to right, PartNet fails to distinguish different instances of lamp covers (second and fourth row). While our method performs especially better in these cases. "
1966
+ ],
1967
+ "image_footnote": [],
1968
+ "bbox": [
1969
+ 215,
1970
+ 443,
1971
+ 764,
1972
+ 747
1973
+ ],
1974
+ "page_idx": 13
1975
+ },
1976
+ {
1977
+ "type": "table",
1978
+ "img_path": "images/29a5401c9877b6c91bbe470ef53788e7c24957b4e7a6572e833561550a3bddff.jpg",
1979
+ "table_caption": [
1980
+ "Table 6: Results on ScanNet. We list the results on both validation and hidden test sets of ScanNet. Note that due to the unique submission policy of ScanNet, we are unable to provide the results of learnable margin on the test set. On validation set, we improve mAP by $4 . 9 \\%$ . "
1981
+ ],
1982
+ "table_footnote": [],
1983
+ "table_body": "<table><tr><td></td><td colspan=\"3\">validation</td><td colspan=\"3\">test</td></tr><tr><td></td><td>mAP</td><td>AP50</td><td>AP25</td><td>mAP</td><td>AP50</td><td>AP25</td></tr><tr><td>MTML (Lahoud et al. (2019))</td><td>20.3</td><td>40.2</td><td>55.4</td><td>28.2</td><td>54.9</td><td>73.1</td></tr><tr><td>3D-MPA (Engelmann et al. (2020))</td><td>35.3</td><td>59.1</td><td>72.4</td><td>35.5</td><td>61.1</td><td>73.7</td></tr><tr><td>PointGroup (Jiang et al. (2020))</td><td>34.8</td><td>56.9</td><td>71.3</td><td>40.7</td><td>63.6</td><td>77.8</td></tr><tr><td>OccuSeg (Han et al. (2020))</td><td>44.2</td><td>60.7</td><td>71.9</td><td>44.3</td><td>63.4</td><td>73.9</td></tr><tr><td>Learnable margin + MinkowskiNet</td><td>28.1</td><td>50.1</td><td>70.1</td><td>-</td><td>1</td><td>-</td></tr><tr><td>Proposed + MinkowskiNet</td><td>33.0</td><td>57.1</td><td>73.8</td><td>32.8</td><td>56.0</td><td>75.2</td></tr></table>",
1984
+ "bbox": [
1985
+ 207,
1986
+ 155,
1987
+ 790,
1988
+ 289
1989
+ ],
1990
+ "page_idx": 14
1991
+ },
1992
+ {
1993
+ "type": "text",
1994
+ "text": "",
1995
+ "bbox": [
1996
+ 173,
1997
+ 314,
1998
+ 825,
1999
+ 507
2000
+ ],
2001
+ "page_idx": 14
2002
+ },
2003
+ {
2004
+ "type": "text",
2005
+ "text": "We report the average precision (AP) in Table 6 and compare our method with other leading results on ScanNet. Although we do not have the overall state-of-the-art results, the improvement over the baseline Neven et al. (2019) verifies the impact of probabilistic embedding and demonstrates that our method can be integrated with any embedding-based method and any backbone network. We can improve the validation mAP by $4 . { \\dot { 9 } } \\%$ . ",
2006
+ "bbox": [
2007
+ 174,
2008
+ 515,
2009
+ 825,
2010
+ 585
2011
+ ],
2012
+ "page_idx": 14
2013
+ },
2014
+ {
2015
+ "type": "text",
2016
+ "text": "A.5 DIFFERENCES TO LEARNABLE MARGIN ",
2017
+ "text_level": 1,
2018
+ "bbox": [
2019
+ 176,
2020
+ 602,
2021
+ 486,
2022
+ 616
2023
+ ],
2024
+ "page_idx": 14
2025
+ },
2026
+ {
2027
+ "type": "text",
2028
+ "text": "Neven et al. (2019) proposed to use a learnable margin for image instance segmentation, which is similar in formulation to our proposed probabilistic embedding. Although we differ in several aspects: ",
2029
+ "bbox": [
2030
+ 176,
2031
+ 627,
2032
+ 823,
2033
+ 670
2034
+ ],
2035
+ "page_idx": 14
2036
+ },
2037
+ {
2038
+ "type": "text",
2039
+ "text": "1. The intuition behind learnable margin comes from the hinge loss: give different hinge margin to objects of different sizes. However, our intuition comes from modeling neural network’s output as random variables to estimate uncertainty. \n2. The parameters have a different meaning in our method compared to Neven et al. (2019). In learnable margin, $\\sigma$ is an instance-specific bandwidth (or margin) per cluster. In our work $\\sigma$ are uncertainties per point. \n3. The bandwidth $\\sigma$ is influenced by the size of instances (large instances have large $\\sigma$ ). In contrast, our uncertainty $\\sigma$ encodes per-point uncertainty close to the boundary of instances (see Fig. 5). \n4. Neven et al. (2019) add a loss term to enforce the bandwidths from the same instance to be close. By contrast, we don’t have this kind of restriction. Also, uncertaintes from the same instance can be different as along as they have similar spatial embeddings. ",
2040
+ "bbox": [
2041
+ 212,
2042
+ 683,
2043
+ 825,
2044
+ 866
2045
+ ],
2046
+ "page_idx": 14
2047
+ }
2048
+ ]
parse/train/e68IYJNOYau/e68IYJNOYau_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/e68IYJNOYau/e68IYJNOYau_model.json ADDED
The diff for this file is too large to render. See raw diff