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

Add files using upload-large-folder tool

Browse files
parse/train/BkgNqkHFPr/BkgNqkHFPr.md ADDED
@@ -0,0 +1,375 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ENHANCED CONVOLUTIONAL NEURAL KERNELS
2
+
3
+ # Anonymous authors
4
+
5
+ Paper under double-blind review
6
+
7
+ # ABSTRACT
8
+
9
+ Recent research shows that for training with $\ell _ { 2 }$ loss, convolutional neural networks (CNNs) whose width (number of channels in convolutional layers) goes to infinity correspond to regression with respect to the CNN Gaussian Process kernel (CNN-GP) (Novak et al., 2019) if only the last layer is trained, and correspond to regression with respect to the Convolutional Neural Tangent Kernel (CNTK) if all layers are trained. An exact algorithm to compute CNTK (Arora et al., 2019) yielded the finding that classification accuracy of CNTK on CIFAR-10 is within $6 { - } 7 \%$ of that of the corresponding CNN architecture (best figure being around $78 \%$ which is interesting performance for a fixed kernel.
10
+
11
+ Here we show how to significantly enhance the performance of these kernels using two ideas. (1) Modifying the kernel using a new operation called Local Average Pooling (LAP) which preserves efficient computability of the kernel and inherits the spirit of standard data augmentation using pixel shifts. Earlier papers were unable to incorporate naive data augmentation because of the quadratic training cost of kernel regression. This idea is inspired by Global Average Pooling (GAP), which we show for CNN-GP and CNTK is equivalent to full translation data augmentation. (2) Representing the input image using a pre-processing technique proposed by Coates et al. (2011), which uses a single convolutional layer composed of random image patches.
12
+
13
+ On CIFAR-10, the resulting kernel, CNN-GP with LAP and horizontal flip data augmentation, achieves $8 9 \%$ accuracy, matching the performance of AlexNet (Krizhevsky et al., 2012) , and outperforms the best previous classifier that is not a trained neural network (Mairal, 2016). Similar improvements are obtained for Fashion-MNIST.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ Recent research shows that for training with $\ell _ { 2 }$ loss, convolutional neural networks (CNNs) whose width (number of channels in convolutional layers) goes to infinity, correspond to regression with respect to the CNN Gaussian Process kernel (CNN-GP) if only the last layer is trained (Novak et al., 2019; Garriga-Alonso et al., 2019), and correspond to regression with respect to the Convolutional Neural Tangent Kernel (CNTK) if all layers are trained (Jacot et al., 2018; Allen-Zhu et al., 2018; Du et al., 2019b; Arora et al., 2019). Novak et al. (2019); Garriga-Alonso et al. (2019) also implemented CNN-GP and tested its empirical performance. An efficient exact algorithm was given (Arora et al., 2019) to compute CNTK for CNN architectures, as well as those that include a Global Average Pooling (GAP) layer (defined below). This is a fixed kernel that inherits some benefits of CNNs, including exploitation of locality via convolution, as well as multiple layers of processing. For CIFAR-10, incorporating GAP into the kernel improves classification accuracy by up to $1 0 \%$ compared to pure convolutional CNTK.
18
+
19
+ While this performance is encouraging for a fixed kernel, the best accuracy is still under $7 8 \%$ , which is disappointing even compared to AlexNet. One hope for improving the accuracy further is to somehow capture modern innovations such as batch normalization, data augmentation, residual layers, etc. in CNTK. The current paper shows how to incorporate simple data augmentation. Specifically, the idea of creating new training images from existing images using pixel translation and flips, while assuming that these operations should not change the label. Since deep learning uses stochastic gradient descent (SGD), it is trivial to do such data augmentation on the fly. However, it’s unclear how to efficiently incorporate data augmentation in kernel regression, since training time is quadratic in the number of training images.
20
+
21
+ Thus somehow data augmentation has to be incorporated into the computation of the kernel itself. The main observation here is that the above-mentioned algorithm for computing CNTK involves a dynamic programming whose recursion depth is equal to the depth of the corresponding finite CNN. It is possible to impose symmetry constraints at any desired layer during this computation. In this viewpoint, it can be shown that prediction using CNTK/CNN-GP with GAP is equivalent to prediction using CNTK/CNN-GP without GAP but with full translation data augmentation with wraparound at the boundary. The translation invariance property implicitly assumed in data augmentation is exactly equivalent to an imposed symmetry constraint in the computation of the CNTK which in turn is derived from the pooling layer in the CNN. See Section 4 for more details.
22
+
23
+ Thus GAP corresponds to full translation data augmentation scheme, but in practice such data augmentation creates unrealistic images (cf. Figure 2) and training on them can harm performance. However, the idea of incorporating symmetry in the dynamic programming leads to a variant we call Local Average Pooling (LAP). This implicitly is like data augmentation where image labels are assumed to be invariant to small translation, say by a few pixels. Interestingly, LAP corresponds to a average pooling layer for CNNs, named box filtering (Szeliski, 2010).
24
+
25
+ Experimentally, we find LAP significantly enhances the performance as discussed below.
26
+
27
+ • In extensive experiments on CIFAR-10 and Fashion-MNIST, we find LAP consistently improves performance of CNN-GP and CNTK. In particular, we find CNN-GP with LAP achieves $8 1 \%$ on CIFAR-10 dataset, outperforming the best previous kernel predictor by $3 \%$ .
28
+ • When using the technique proposed by Coates et al. (2011), which uses randomly sampled patches from training data as filters to do pre-processing,2 CNN-GP with LAP and horizontal flip data augmentation achieves $8 9 \%$ accuracy on CIFAR-10, matching the performance of AlexNet (Krizhevsky et al., 2012) and is the strongest classifier that is not a trained neural network.3 We also test performance of CNNs with an extra layer corresponding to LAP and observe that it improves the performance on certain architectures.
29
+
30
+ # 2 RELATED WORK
31
+
32
+ Data augmentation has long been known to improve the performance of neural network and kernel methods (Sietsma & Dow, 1991; Scholkopf et al.¨ , 1996). Theoretical study of data augmentation dates back to Chapelle et al. (2001). Recently, Dao et al. (2018) proposed a theoretical framework for understanding data augmentation and showed data augmentation with a kernel classifier can have feature averaging and variance regularization effects. More recently, Chen et al. (2019) quantitatively shows in certain settings, data augmentation provably improves the classifier performance. For more comprehensive discussion on data augmentation and its properties, we refer readers to Dao et al. (2018); Chen et al. (2019) and references therein.
33
+
34
+ CNN-GP and CNTK correspond to infinitely wide CNN with different training strategies (only training the top layer or training all layers jointly). The correspondence between infinite neural networks and kernel machines was first noted by Neal (1996). More recently, this was extended to deep and convolutional neural networks (Lee et al., 2018; Matthews et al., 2018; Novak et al., 2019; Garriga-Alonso et al., 2019). These kernels correspond to infinitely wide neural networks where only the last layer is trained. A recent line of work studied overparameterized neural networks where all layers are trained (Allen-Zhu et al., 2018; Du et al., 2019b; 2018; Li & Liang, 2018; Zou et al., 2018). Their proofs imply the gradient kernel is close to a fixed kernel which only depends the training data and neural network architecture. These kernels thus correspond to infinitely wide neural networks where are all layers are trained. Jacot et al. (2018) named this kernel, neural tangent kernel (NTK). Arora et al. (2019) formally proved infinitely wide neural net predictor trained by gradient descent is equivalent to NTK predictor. Recently, NTKs induced by various neural network architectures are derived and shown to achieve strong empirical performance (Arora et al., 2019; Yang, 2019; Du et al., 2019a).
35
+
36
+ Global Average Pooling (GAP) was first proposed in Lin et al. (2013) and is common in modern CNN design (Springenberg et al., 2014; He et al., 2016; Huang et al., 2017). However, current theoretical understanding on GAP is still rather limited. It has been conjectured in Lin et al. (2013) that GAP reduces the number of parameters in the last fully-connected layer and thus avoids overfitting, and that GAP is more robust to spatial translations of the input since it sums out the spatial information. In this work, we study GAP from the CNN-GP and CNTK perspective, and draw an interesting connection between GAP and data augmentation.
37
+
38
+ Here we are interested in methods that are not trained neural networks. If the features are predefined before seeing the data, Oyallon & Mallat (2015) proposed the scattering network which achieves $\cdot$ classification accuracy on CIFAR-10. If one uses unsupervised learning methods to extract features, the method proposed in Coates et al. (2011) is one of the best-performing approaches on CIFAR-10 preceding modern CNNs. To our knowledge, the best result via unsupervised learning method in this line is by Mairal (2016), who used the convolutional kernel network to achieve $\cdot$ accuracy on CIFAR-10. In this work we combine CNTK with LAP and the idea in Coates et al. (2011) to achieve the best performance for classifiers that are not trained neural networks.
39
+
40
+ # 3 PRELIMINARIES
41
+
42
+ # 3.1 NOTATION
43
+
44
+ We use bold-faced letters for vectors, matrices and tensors. For a vector $\textbf { \em a }$ , let $[ \pmb { a } ] _ { i }$ be its $i$ -th entry; for a matrix $\pmb { A }$ , let $[ A ] _ { i , j }$ be its $( i , j )$ -th entry; for an order 4 tensor $_ { \mathbf { T } }$ , let $[ \bar { \pmb { T } } ] _ { i j , i ^ { \prime } j ^ { \prime } }$ be its $( i , j , i ^ { \prime } , j ^ { \prime } )$ -th entry. For a symmetric tensor, wet let $\begin{array} { r } { \mathrm { t r } \left( \pmb { T } \right) = \sum _ { i , j } \pmb { T } _ { i j , i j } } \end{array}$ . For an order $d$ tensor $\pmb { T } \in \mathbb { R } ^ { C _ { 1 } \times C _ { 2 } \times . . . \times C _ { d } }$ and an integer $\alpha \in [ C _ { d } ]$ , we use $\pmb { T } _ { ( \alpha ) } \in \mathbb { R } ^ { C _ { 1 } \times C _ { 2 } \times . . . \times C _ { d - 1 } }$ to denote the order $d - 1$ tensor formed by fixing the coordinate of the last dimension of $_ { \mathbf { T } }$ to be $\alpha$ .
45
+
46
+ # 3.2 CNN, CNN-GP AND CNTK
47
+
48
+ In this section we give formal definitions of CNN, CNN-GP and CNTK that we study in this paper. Throughout the paper, we let $P$ be the width and $Q$ be the height of the image. We use $q \in \mathbb { Z } _ { + }$ to denote the filter size. In practice, $q = 1 , 3 , 5$ or 7.
49
+
50
+ Padding Schemes. In the definition of CNN, CNTK and CNN-GP, we may use different padding schemes. Let $\pmb { x } \in \mathbb { R } ^ { P \times Q }$ be an matrix. For a given index pair $( i , j )$ with $i \leq 0$ , $i \geq P + 1$ , $j \le 0$ or $j \geq Q + 1$ , different padding schemes define different value for $[ \pmb { x } ] _ { i , j }$ . For circular padding, we define $[ \pmb { x } ] _ { i , j }$ to be $[ { \pmb x } ] _ { i \mathrm { ~ m o d ~ } P , j \mathrm { ~ m o d ~ } G }$ . For zero padding, we simply define $[ \pmb { x } ] _ { i , j }$ to be 0. Note the difference between circular padding and zero padding occurs only on the boundary of images. We will prove our theoretical results for the circular padding scheme to avoid boundary effects.
51
+
52
+ CNN. Now we describe CNN with and without GAP. For any input image $_ { \textbf { \em x } }$ , after $L$ intermediate layers, we obtain $\pmb { x } ^ { ( L ) } \in \mathbb { R } ^ { P \times Q \times C ^ { ( L ) } }$ where $C ^ { ( L ) }$ is the number of channels of the last layer. See Section A for the definition of $\pmb { x } ^ { ( L ) }$ . For the output, there are two choices: with and without GAP.
53
+
54
+ • Without GAP: the final output is defined as f(θ, x) = PC(L)α=1 $\begin{array} { r } { f ( \pmb { \theta } , \pmb { x } ) = \sum _ { \alpha = 1 } ^ { C ^ { ( L ) } } \left. \pmb { W } _ { ( \alpha ) } ^ { ( L + 1 ) } , \pmb { x } _ { ( \alpha ) } ^ { ( L ) } \right. } \end{array}$ where $\pmb { x } _ { ( \alpha ) } ^ { ( L ) } \in$ $\mathbb { R } ^ { P \times Q }$ , and ${ W _ { ( \alpha ) } ^ { ( L + 1 ) } } \in \mathbb { R } ^ { P \times Q }$ is the weight of the last fully-connected layer. • With GAP: the final output is defined as f (θ, x) = 1P Q PC α=1 $\begin{array} { r } { f ( \pmb { \theta } , \pmb { x } ) = \frac { 1 } { P Q } \sum _ { \alpha = 1 } ^ { C ^ { ( L ) } } \pmb { W } _ { ( \alpha ) } ^ { ( L + 1 ) } { \cdot } \sum _ { ( i , j ) \in [ P ] \times [ Q ] } \left[ \pmb { x } _ { ( \alpha ) } ^ { ( L ) } \right] _ { i , j } } \end{array}$ where W (L+1) ${ W _ { ( \alpha ) } ^ { ( L + 1 ) } \in \mathbb { R } }$ is the weight of the last fully-connected layer.
55
+
56
+ CNN-GP and CNTK. Now we describe CNN-GP and CNTK. Let ${ \boldsymbol { x } } , { \boldsymbol { x } } ^ { \prime }$ be two input images. We denote the $L$ -th layer’s CNN-GP kernel as $\Sigma ^ { ( L ) } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) \in \mathbb { R } ^ { [ P ] \times [ Q ] \times [ P ] \times [ Q ] }$ and the $L$ -th layer’s CNTK kernel as ${ \bf \dot { \Theta } } ^ { ( L ) } \left( { \bf x } , { \bf x } ^ { \prime } \right) \in \mathbb { R } ^ { \left[ P \right] \times \left[ Q \right] \times \left[ P \right] \times \left[ \dot { Q } \right] }$ . See Section A for the precise definitions of $\pmb { \Sigma } ^ { ( L ) } \left( \pmb { x } , \pmb { x } ^ { \prime } \right)$ and $\Theta ^ { ( L ) } \left( \pmb { x } , \pmb { x } ^ { \prime } \right)$ . For the output kernel value, again, there are two choices, without GAP (equivalent to using a fully-connected layer) or with GAP.
57
+
58
+ • Without GAP: the output of CNN-GP is $\Sigma _ { \mathsf { F C } } \left( \mathbf { { x } } , \mathbf { { x } } ^ { \prime } \right) = \mathrm { { \ t r } } \left( \Sigma ^ { ( L ) } ( \mathbf { { x } } , \mathbf { { x } } ^ { \prime } ) \right)$ and the output of CNTK is $\Theta _ { \mathsf { F C } } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) = \mathrm { t r } \left( \Theta ^ { ( L ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) \right)$ . • With $\begin{array} { r l } & { \mathrm { W i t h } \qquad \mathsf { G A P : } \qquad \mathrm { t h e } \qquad \mathrm { o u t p u t } \qquad \mathrm { o f } \qquad \mathsf { C N N - G P } \qquad \mathrm { i s } \qquad \Sigma _ { \mathsf { G A P } } \left( x , x ^ { \prime } \right) } \\ & { \frac { 1 } { P ^ { 2 } Q ^ { 2 } } \sum _ { i , j , i ^ { \prime } , j ^ { \prime } \in [ P ] \times [ Q ] \times [ Q ] } \left[ \mathbf { \Sigma } \mathbf { { C } } ^ { ( L ) } \left( x , x ^ { \prime } \right) \right] _ { i , j , i ^ { \prime } , j ^ { \prime } } , \quad \mathrm { a n d } \quad \mathrm { t h e } \qquad \mathrm { o u t p u t } \quad \mathrm { o f } \quad \mathsf { C N T K } \quad \mathrm { i s } } \\ & { \Theta _ { \mathsf { G A P } } \left( x , x ^ { \prime } \right) = \frac { 1 } { P ^ { 2 } Q ^ { 2 } } \sum _ { i , j ^ { \prime } , i ^ { \prime } , j ^ { \prime } \in [ P ] \times [ Q ] \times [ P ] \times [ Q ] } \left[ \mathbf { \Sigma } \mathbf { { C } } ^ { ( L ) } \left( x , x ^ { \prime } \right) \right] _ { i , j , i ^ { \prime } , j ^ { \prime } } . } \end{array}$
59
+
60
+ Kernel Prediction. Lastly, we recall the formula for kernel regression. For simplicity, throughout the paper,with data me all ke, define ble. Giwhere ${ \bf K } \left( { \pmb x } , { \pmb x } ^ { \prime } \right)$ and a dataset . The predic $( X , y )$ $\{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { N }$ ${ \bf K } _ { \bf X } \in \mathbb { R } ^ { N \times N }$ $[ \mathbf { K } _ { \mathbf { X } } ] _ { i , j } = \mathbf { K } ( \pmb { x } _ { i } , \pmb { x } _ { j } )$ unseen data $\mathbf { x } ^ { \prime }$ is $\begin{array} { r } { \sum _ { i = 1 } ^ { N } \alpha _ { i } \mathbf { K } ( \pmb { x } ^ { \prime } , \pmb { x } _ { i } ) } \end{array}$ , where $\pmb { \alpha } = \mathbf { K } _ { \mathbf { X } } ^ { - 1 } \pmb { y }$ .
61
+
62
+ # 3.3 DATA AUGMENTATION SCHEMES
63
+
64
+ In this paper we consider two types of data augmentation schemes: translation and horizontal flip.
65
+
66
+ Translation. Given $( i , j ) \in [ P ] \times [ Q ]$ , we define the translation operator $\mathcal { T } _ { i j } : \mathbb { R } ^ { P \times Q \times C } $ $\mathbb { R } ^ { P \times Q \times C }$ : for an image $\pmb { x } \in \mathbb { R } ^ { P \times Q \times C }$ , $\left[ \mathcal { T } _ { i j } \left( \pmb { x } \right) \right] _ { i ^ { \prime } , j ^ { \prime } , c } = \left[ \pmb { x } \right] _ { i ^ { \prime } + i , j ^ { \prime } + j , c }$ for $( i ^ { \prime } , j ^ { \prime } , c ) \in [ P ] \times [ Q ] \times$ $[ C ]$ . Here the precise definition of $[ { \pmb x } ] _ { i ^ { \prime } + i , j ^ { \prime } + j , c }$ depends on the padding scheme. Given a dataset $D = \{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { N }$ , the full translation data augmentation scheme creates a new dataset $D _ { \mathcal { T } } =$ $\{ ( \mathcal T _ { i j } ( x _ { i } ) , y _ { i } ) \} _ { ( i , j , n ) \in [ P ] \times [ Q ] \times [ N ] }$ and training is performed on $D _ { \mathcal { T } }$ .
67
+
68
+ eratfor $\mathcal { F } : \mathbb { R } ^ { P \times Q \times C } \mathbb { R } ^ { P \times Q \times C }$ : for an imen a dataset $\pmb { x } ~ \in ~ \mathbb { R } ^ { P \times Q \times C }$ $[ \mathcal { F } ( \pmb { x } ) ] _ { i , j , c } = [ \pmb { x } ] _ { P + 1 - i , j , c }$ $( i , j , c ) \in [ P ] \times [ Q ] \times [ C ]$ $D = \{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { N }$ the horizontal flip augmentation scheme creates a new dataset of the form $D _ { \mathcal { F } } = \{ \left( \mathcal { F } \left( \mathbf { x } _ { i } \right) , y _ { i } \right) \} _ { i = 1 } ^ { N }$ and training is performed on $D _ { \mathcal { F } } \cup D$ .
69
+
70
+ # 4 EQUIVALENCE BETWEEN AUGMENTED KERNEL AND DATA AUGMENTATION
71
+
72
+ In this section, we demonstrate the equivalence between using data augmentation and using a augmented kernel. To formally discuss the equivalence, we use group theory to describe translation and horizontal flip operators. We provide the definition of group in Section B for completeness.
73
+
74
+ It is easy to verify that $\{ \mathcal { F } , \mathcal { Z } \}$ , $\{ \mathcal T _ { i , j } \} _ { ( i , j ) \in [ P ] \times [ Q ] }$ , $\{ \mathcal { T } _ { i , j } \circ \mathcal { F } \} _ { ( i , j ) \in [ P ] \times [ Q ] } \cup \{ \mathcal { T } _ { i , j } \} _ { ( i , j ) \in [ P ] \times [ Q ] }$ are groups, where $\mathcal { T }$ is the identity map. From now on, given a dataset $\left( \mathbf { X } , \pmb { y } \right)$ with data $\{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { N }$ and a group $\mathcal { G }$ , the augmented dataset $\left( \mathbf { X } _ { \mathcal { G } } , \mathbf { y } _ { \mathcal { G } } \right)$ is defined to be $\{ g ( \pmb { x } _ { i } ) , y _ { i } \} _ { g \in \mathscr { G } , i \in [ N ] }$ . Fo r kernel prediction for unseen data $\mathbf { x } ^ { \prime }$ on the augmented dataset, we have the following formula: $\begin{array} { r } { \sum _ { i \in [ N ] , g \in \mathcal { G } } \widetilde { \alpha } _ { i , g } \mathbf { K } ( \pmb { x } ^ { \prime } , g ( \pmb { x } _ { i } ) ) } \end{array}$ , where $\widetilde { \pmb { \alpha } } = \mathbf { K } _ { \mathbf { X } _ { \mathcal { G } } } ^ { - 1 } \pmb { y } _ { \mathcal { G } }$ .
75
+
76
+ To proceed, we define the concept of augmented kernel. Let $\mathcal { G }$ be a finite group. Define the augmented kernel $\mathbf { K } ^ { \mathcal { G } }$ as $\mathbf { K } ^ { \mathcal { G } } ( \pmb { x } , \pmb { x } ^ { \prime } ) \overset { \cdot } { = } \mathbb { E } _ { \pmb { g } \in \mathcal { G } } \mathbb { \bar { E } } _ { \pmb { g } ^ { \prime } \in \mathcal { G } } \mathbf { K } ( \pmb { g } ( \pmb { x } ) , \pmb { g } ^ { \prime } ( \pmb { x } ^ { \prime } ) )$ where ${ \boldsymbol { x } } , { \boldsymbol { x } } ^ { \prime }$ are two inputs images. A key observation is that for CNTK and CNN-GP, when circular padding and GAP is adopted, these are actually the augmented kernels with the group $\mathcal { G } = \{ \mathcal { T } _ { i , j } \} _ { ( i , j ) \in [ P ] \times [ Q ] }$ . Formally, we have $\begin{array} { r } { \Sigma _ { \mathsf { G A P } } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) = \frac { 1 } { P Q } \pmb { \Sigma } _ { \mathsf { F C } } ^ { \mathcal { G } } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) } \end{array}$ and $\begin{array} { r } { \Theta _ { \mathsf { G A P } } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) = \frac { 1 } { P Q } \Theta _ { \mathsf { F C } } ^ { \mathcal { G } } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) } \end{array}$ . The proof for these two equations is just by checking the formula of these kernels and using definition of circular padding. By similar proof, one can observe the following invariance property of $\Sigma _ { \mathsf { G A P } } , \Sigma _ { \mathsf { F C } } , \Theta _ { \mathsf { G A P } }$ and $\Theta _ { \mathsf { F C } }$ , under all groups mentioned above, including $\{ \mathcal { F } , \mathcal { Z } \}$ and $\{ \mathcal { T } _ { i , j } \} _ { ( i , j ) \in [ P ] \times [ Q ] }$ .
77
+
78
+ Definition 4.1. A kernel $\mathbf { K }$ is invariant under a group $\mathcal { G }$ if and only if for any $g \in \mathcal G$ $\mathbf { K } ( g ( \pmb { x } ) , g ( \pmb { x } ^ { \prime } ) ) = \mathbf { K } ( \pmb { x } , \pmb { x } ^ { \prime } )$ .
79
+
80
+ Now the following theorem formally states the equivalence between using an augmented kernel on the dataset and using the kernel on the augmented dataset.
81
+
82
+ Theorem 4.1. Given a group $\mathcal { G }$ and a kernel $\mathbf { K }$ such that $\mathbf { K }$ is invariant under $\mathcal { G }$ , then the prediction nted kernel . Namely, f $\mathbf { K } ^ { \mathcal { G } }$ wny $\left( \mathbf { X } , \pmb { y } \right)$ $\mathbf { K }$ $\left( \mathbf { X } _ { \mathcal { G } } , \mathbf { y } _ { \mathcal { G } } \right)$ $\pmb { x } ^ { \prime } \in \mathbb { R } ^ { P \times Q \times C }$ $\begin{array} { r } { \sum _ { i = 1 } ^ { N } \alpha _ { i } \mathbf { K } ^ { \mathcal { G } } ( \pmb { x } ^ { \prime } , \pmb { x } _ { i } ) = \sum _ { i \in [ N ] , g \in \mathcal { G } } \widetilde { \alpha } _ { i , g } \mathbf { K } ( \pmb { x } ^ { \prime } , g ( \pmb { x } _ { i } ) ) } \end{array}$ where $\pmb { \alpha } = \left( \mathbf { K } _ { \mathbf { X } } ^ { \mathcal { G } } \right) ^ { - 1 } \pmb { y } , \tilde { \pmb { \alpha } } = \left( \mathbf { K } _ { \mathbf { X } _ { \mathcal { G } } } \right) ^ { - 1 } \pmb { y } \mathcal { G } .$ .
83
+
84
+ The proof is deferred to Appendix B. Two corollaries are directly followed.
85
+
86
+ Corollary 4.1. For $\mathcal { G } = \{ \mathcal { T } _ { i , j } \} _ { ( i , j ) \in [ P ] \times [ Q ] }$ , for any given dataset $D$ , the prediction of $\Sigma _ { G A P }$ (or $\Theta _ { G A P } )$ with dataset $D$ is equal to the prediction of $\Sigma _ { F C } ( o r \Theta _ { F C } )$ with augmented dataset ${ \cal D } \tau$ . Corollary 4.2. For $\mathcal { G } = \{ \bar { \mathcal { F } } , \mathcal { Z } \}$ , for any given dataset $D$ , the prediction of $\Sigma _ { G A P } ^ { \mathcal { G } }$ (or $\Theta _ { G A P } ^ { g } )$ with dataset $D$ is equal to the prediction of $\Sigma _ { G A P }$ (or $\Theta _ { G A P , }$ ) with augmented dataset $D _ { \mathcal { F } } \cup D$ .
87
+
88
+ Now we discuss implications of Theorem 4.1 and its corollaries. Naively applying data augmentation, with full translation on CNTK or CNN-GP for example, one needs to create a $P ^ { 2 } Q ^ { 2 }$ times larger kernel matrix since there are $P Q$ translation operators, which is often computationally infeasible. Instead, we can directly use the augmented kernel $\scriptstyle \sum _ { \mathsf { G A P } }$ or $\Theta _ { \mathsf { G A P } }$ for the case of full translation on CNTK or CNN-GP) for prediction, for which one only needs to create a kernel matrix that is as large as the original one. For horizontal flip, although the augmentation kernel is not as conveniently computed as full translation, Corollary 4.2 still provides a more efficient method for computing kernel value and solving kernel regression, since the augmented dataset is twice as large as the original dataset.
89
+
90
+ # 5 LOCAL AVERAGE POOLING
91
+
92
+ In this section, we introduce a new operation called Local Average Pooling (LAP). As discussed in the introduction, full translation data augmentation can create unrealistic images. A natural idea is to do local translation data augmentation, i.e., restricting the distance of translation. More specifically, we only allow translation operations $\mathcal { T } _ { \Delta _ { i } , \Delta _ { j } }$ (cf. Section 3.3) for $( \Delta _ { i } , \Delta _ { j } ) \in [ - c , c ] \times [ - c , c ]$ where $c$ is a parameter to control the amount of allowed translation. With a proper choice of the parameter $c$ , translation data augmentation will not create unrealistic images (cf. Figure 2). However, naive local translation data augmentation is computationally infeasible for kernel methods, even for moderate choice of $c$ . To remedy this issue, in this section we introduce LAP, which is inspired by the connection between full translation data augmentation and GAP on CNN-GP and CNTK. Here, for simplicity, we assume $P = Q$ and derive the formula only for CNTK. Our formula can be generalized to CNN-GP in a straightforward manner.
93
+
94
+ Recall that for two given images $_ { \textbf { \em x } }$ and $\mathbf { x } ^ { \prime }$ , without GAP, the formula for output of CNTK is $\operatorname { t r } \left( \Theta ( \pmb { x } , \pmb { x } ^ { \prime } ) \right)$ . With GAP, the formula for output of CNTK is $\begin{array} { r } { \frac { 1 } { P ^ { 4 } } \sum _ { i , j , i ^ { \prime } , j ^ { \prime } \in [ P ] ^ { 4 } } \big [ \Theta \left( \pmb { x } , \pmb { x } ^ { \prime } \right) \big ] _ { i , j , i ^ { \prime } , j ^ { \prime } } } \end{array}$ . With circular padding, the formula can be rewritten as $\begin{array} { r } { \frac { 1 } { P ^ { 2 } } \mathbb { E } _ { \Delta _ { i } , \Delta _ { i } ^ { \prime } , \Delta _ { j } , \Delta _ { j } , \Delta _ { j } ^ { \prime } \sim [ P ] ^ { 4 } } \sum _ { i , j \in [ P ] \times [ P ] } \left[ \Theta \left( \pmb { x } , \pmb { x } ^ { \prime } \right) \right] _ { i + \Delta _ { i } , j + \Delta _ { j } , i + \Delta _ { i } ^ { \prime } , j + \Delta _ { j } ^ { \prime } } } \end{array}$ , which is again equal to $\begin{array} { r } { \frac { 1 } { P ^ { 2 } } \mathbb { E } _ { \Delta _ { i } , \Delta _ { i } ^ { \prime } , \Delta _ { j } , \Delta _ { j } ^ { \prime } \sim [ P ] ^ { 4 } } \mathrm { t r } \Big ( \Theta \left( \mathcal { T } _ { \Delta _ { i } , \Delta _ { j } } ( \pmb { x } ) , \mathcal { T } _ { \Delta _ { i } ^ { \prime } , \Delta _ { j } ^ { \prime } } ( \pmb { x } ^ { \prime } ) \right) \Big ) . \mathrm { \ b w } } \end{array}$ e ignore the $1 / P ^ { 2 }$ scaling factor since it plays no role in kernel regression.
95
+
96
+ Now we consider restricted translation operations $\mathcal { T } _ { \Delta _ { i } , \Delta _ { j } }$ with $( \Delta _ { i } , \Delta _ { j } ) \in [ - c , c ] \times [ - c , c ]$ and derive the formula for LAP. Assuming circular padding, we have
97
+
98
+ $$
99
+ \begin{array} { r l } & { \quad \mathbb { E } _ { \Delta _ { i } , \Delta _ { i } ^ { \prime } , \Delta _ { j } , \Delta _ { j } ^ { \prime } \sim [ - c , c ] ^ { 4 } } \mathrm { t r } \left( \Theta \left( { \mathcal T } _ { \Delta _ { i } , \Delta _ { j } } ( x ) , { \mathcal T } _ { \Delta _ { i } ^ { \prime } , \Delta _ { j } ^ { \prime } } ( x ^ { \prime } ) \right) \right) } \\ & { = \frac { 1 } { ( 2 c + 1 ) ^ { 4 } } \sum _ { \Delta _ { i } , \Delta _ { i } ^ { \prime } , \Delta _ { j } , \Delta _ { j } ^ { \prime } \in [ - c , c ] ^ { 4 } } \sum _ { i , j \in [ P ] ^ { 2 } } \left[ \Theta ( x , x ^ { \prime } ) \right] _ { i + \Delta _ { i } , j + \Delta _ { j } , i + \Delta _ { i } ^ { \prime } , j + \Delta _ { j } ^ { \prime } } . } \end{array}
100
+ $$
101
+
102
+ Now we have derived the formula for LAP which is given in Equation 1. Notice that the formula in Equation 1 is a well-defined quantity for all padding schemes. In particular, assuming zero padding, when $c = P$ , LAP is equivalent to GAP. When $c = 0$ , LAP is equivalent to no pooling layer. Another advantage of LAP is that it does not incur significant additional computational cost, since the formula in Equation 1 can be rewritten as $\begin{array} { r } { \sum _ { i , j , i ^ { \prime } , j ^ { \prime } \in [ P ] ^ { 4 } } [ \pmb { w } ] _ { i , j , i ^ { \prime } , j ^ { \prime } } \cdot \left[ \Theta ( \pmb { x } , \pmb { x } ^ { \prime } ) \right] _ { i , j , i ^ { \prime } , j ^ { \prime } } } \end{array}$ where each entry in the weight tensor $\pmb { w }$ can be calculated in $O ( 1 )$ time.
103
+
104
+ Note that the GAP operation in CNN-GP and CNTK corresponds to the GAP layer in CNNs. Here we observe the following box filtering layer that corresponds to LAP in CNNs. Box filtering layer (BF) is a function RP ×Q → RP ×Q such that [BF(x)]i,j = 1(2c+1)2 P∆i,∆j∈[−c,c]2 xi+∆i,j+∆j . This is in fact a standard average pooling layer but with stride 1 and pooling size $2 c + 1$ . We prove the equivalence between LAP and box filtering layer in Appendix C. In Section 6.3, we test BF on CNNs to verify its effectiveness.
105
+
106
+ # 6 EXPERIMENTS
107
+
108
+ In this section we present our empirical findings on CIFAR-10 (Krizhevsky, 2009) and FashionMNIST (Xiao et al., 2017). The detailed experimental setup is reported in Appendix D. When reporting test accuracies, the best result on the test set is in boldface and the result that corresponds to the hyper-parameter chosen by cross-validation is underlined.
109
+
110
+ # 6.1 ABLATION STUDY ON CIFAR-10 AND FASHION-MNIST
111
+
112
+ We perform experiments to study the effect of different values of the $c$ parameter in LAP and horizontal flip data argumentation on CNTK and CNN-GP. For experiments in this section we set the bias term in CNTK and CNN-GP to be $\beta = 0$ (cf. Section A). We use the same architecture for CNTK and CNN-GP as in Arora et al. (2019). I.e., we stack multiple convolutional layers before the final pooling layer. We use $d$ to denote the number of convolutions layers, and in our experiments we set $d$ to be 5, 8, 11 or 14, to study the effect of depth on CNTK and CNN-GP. For CIFAR-10, we set the $c$ parameter in LAP to be $0 , 4 , \ldots , 3 2$ , while for Fashion-MNIST we set the $c$ parameter in LAP to be $0 , 4 , \ldots , 2 8$ . Notice that when $c = 3 2$ for CIFAR-10 or $c = 2 8$ for Fashion-MNIST, LAP is equivalent to GAP, and when $c = 0$ , LAP is equivalent to no pooling layer. Results on CIFAR-10 are reported in Tables 1 and 3. Due to space constraint, results on Fashion-MNIST are reported in Tables 5 and 6 in Appendix E. In each table, for each combination of $c$ and $d$ , the first number is the test accuracy without horizontal flip data augmentation (in percentage), and the second number (in parentheses) is the test accuracy with horizontal flip data augmentation. To perform cross-validation to choose the hyper-parameters, we use the last 10000 samples in the training set of CIFAR-10 and Fashion-MNIST as the validation set and the rest samples as the training set. We then use the full training set to report the test accuracy. To perform cross-validation, we choose $\cdot$ , $d$ , CNN or CNN-GP, and whether or not to adopt horizontal flip based on the validation accuracy (shown in Appendix F). With cross-validation, the resulting accuracy is $8 2 . 0 9 \%$ on CIFAR-10 and $9 4 . 0 7 \%$ on Fashion-MNIST.
113
+
114
+ We made the following observations regarding our experimental results.
115
+
116
+ • LAP with a proper choice of the parameter $c$ significantly improves the performance of CNTK and CNN-GP. On CIFAR-10, the best-performing value of $c$ is $c = 1 2$ or 16, while on FashionMNIST the best-performing value of $c$ is $c = 4$ . We suspect this difference is due to the nature of the two datasets: CIFAR-10 contains real-life images and thus allow more translation, while Fashion-MNIST contains images with centered clothes and thus allow less translation. For both datasets, the best-performing value of $c$ is consistent across all settings (depth, CNTK or CNNGP) that we have considered. Horizontal flip data augmentation is less effective on Fashion-MNIST than on CIFAR-10. There are two possible explanations for this phenomenon. First, most images in Fashion-MNIST are nearly horizontally symmetric (e.g., T-shirts and bags). Second, CNTK and CNN-GP have already achieved a relatively high accuracy on Fashion-MNIST, and thus it is reasonable for horizontal flip data augmentation to be less effective on this dataset.
117
+ • Finally, for CNTK, when $c = 0$ (no pooling layer) and $c = 3 2$ (GAP) our reported test accuracies are close to those in Arora et al. (2019) on CIFAR-10. For CNN-GP, when $c = 0$ (no pooling layer) our reported test accuracies are close to those in Novak et al. (2019) on CIFAR-10 and Fashion-MNIST. This suggests that we have reproduced previous reported results.
118
+
119
+ # 6.2 IMPROVING PERFORMANCE ON CIFAR-10 USING RANDOM PATCHES LAYER
120
+
121
+ Finally, we explore another interesting question: what is the best performance achievable via a method that is not a trained neural network? To further improve the performance, we combine CNTK and CNN-GP with LAP, together with the unsupervised learning approach developed in Coates et al. (2011). Here we use the variant implemented in Recht et al. (2019). More specifically, we first sample 2048 random image patches with size $5 \times 5$ from all training images. Then for the sampled images patches, we subtract the mean of the patches, then normalize them to have unit norm, and finally perform ZCA transformation to the resulting patches. We use the resulting patches as 2048 filters of a convolutional layer with kernel size 5, stride 1 and no dilation or padding. For an input image $_ { \textbf { \em x } }$ , we use $\mathtt { c o n v } ( { \pmb x } )$ to denote the output of the convolutional layer. As in the implementation in Recht et al. (2019), we use ReLU( $\mathsf { c o n v } ( \pmb { x } ) - \beta _ { \mathrm { f e a t u r e } } )$ and $\mathrm { R e L } \dot { \mathrm { U } } ( - \mathrm { c o n v } ( { \pmb x } ) - \bar { \beta } _ { \mathrm { f e a t u r e } } )$ as the input feature for CNTK and CNN-GP. Here we fix $\beta _ { \mathrm { f e a t u r e } } = 1$ as in Recht et al. (2019) and the bias term $\beta$ in CNTK and CNN-GP to be $\beta = 1$ . To make the output kernel value invariant under horizontal flip (cf. Defintion 4.1), for each image patch, we horizontally flipped it and add the flipped patch into the convolutional layer as a new filter. Thus, for an input CIFAR-10 image of size $3 2 \times 3 2$ , the dimension of the output feature is $8 1 9 2 \times 2 8 \times 2 8$ . To isolate the effect of randomness in the choices of the image patches, we fix the random seed to be 0 throughout the experiment. In this experiment, we set the value of the $c$ parameter in LAP to be $4 , 8 , 1 2 , \ldots , 2 0$ to avoid small and large values of $c$ . The results are reported in Tables 2 and 4. Similar to the experiments in Section 6.1, again we set the hyper-parameters by cross-validation, and the resulting accuracy is $8 8 . 9 1 \%$ . See Appendix $\mathrm { F }$ for the validation accuracy for different hyper-parameters.
122
+
123
+ Table 1: Test accuracy of CNTK on CIFAR-10.
124
+
125
+ <table><tr><td>d C</td><td>5</td><td>8</td><td>11</td><td></td><td>14</td></tr><tr><td>0</td><td>66.55 (69.87)</td><td>66.27 (69.87)</td><td>65.85 (69.37)</td><td></td><td>65.47 (68.90)</td></tr><tr><td>4</td><td>77.06 (79.08)</td><td>77.14 (78.96)</td><td>77.06 (78.98)</td><td></td><td>76.52 (78.74)</td></tr><tr><td>8</td><td>79.24 (80.95)</td><td>79.25 (81.03)</td><td>78.98 (80.94)</td><td></td><td>78.65 (80.35)</td></tr><tr><td>12</td><td>80.11 (81.34)</td><td>79.79 (81.28)</td><td>79.29 (81.14)</td><td></td><td>79.13 (80.91)</td></tr><tr><td>16</td><td>79.80 (81.21)</td><td>79.71 (81.40)</td><td>79.74 (81.09)</td><td></td><td>79.42 (81.00)</td></tr><tr><td>20</td><td>79.24 (80.67)</td><td>79.27 (80.88)</td><td>79.30 (80.76)</td><td></td><td>78.92 (80.39)</td></tr><tr><td></td><td>78.07 (79.88)</td><td>78.16 (79.79)</td><td>78.14 (80.06)</td><td></td><td>77.87 (80.07)</td></tr><tr><td>28</td><td>76.91 (78.69)</td><td>77.33 (79.20)</td><td>77.65 (79.56)</td><td></td><td>77.65 (79.74)</td></tr><tr><td>32</td><td>76.79 (78.53)</td><td>77.39 (79.13)</td><td>77.63 (79.51)</td><td></td><td>77.63 (79.74)</td></tr></table>
126
+
127
+ Table 2: Test accuracy of random patches layer $^ +$ CNTK on CIFAR-10.
128
+
129
+ <table><tr><td>d C</td><td colspan="2">5</td><td>8</td><td colspan="2">11</td><td colspan="2">14</td></tr><tr><td>4</td><td>84.63</td><td>(86.64) (</td><td>84.07 (86.23)</td><td></td><td>83.29 (85.53)</td><td></td><td>82.57 (84.81)</td></tr><tr><td>8</td><td>86.36(</td><td>(88.32)</td><td>85.80 (87.81)</td><td></td><td>85.01 (87.08)</td><td></td><td>84.57 (86.53)</td></tr><tr><td>12</td><td>86.74(</td><td>(88.35)</td><td>86.20 (87.90)</td><td></td><td>85.60 (87.36)</td><td></td><td>84.95 (86.99)</td></tr><tr><td>16</td><td></td><td>86.77 (88.36)</td><td>86.17 (87.85)</td><td></td><td>85.60 (87.44)</td><td></td><td>84.92 (86.98)</td></tr><tr><td>20</td><td>86.17(8</td><td>(87.77)</td><td>85.71 (87.50)</td><td></td><td>85.14 (87.07)</td><td></td><td>84.59 (86.84)</td></tr></table>
130
+
131
+ From our experimental results, it is evident that combining CNTK or CNN-GP with additional feature extractor can significantly improve upon the performance of using solely CNTK or CNNGP, and that of using solely the feature extractor Coates et al. (2011). Previously, it has been reported in Recht et al. (2019) that using solely the feature extractor Coates et al. (2011) (together with appropriate pooling layer) can only achieve a test accuracy of $8 4 . 2 \%$ using 256, 000 image patches, or $8 3 . 3 \%$ using 32, 000 image patches. Even with the help of horizontal data augmentation, the feature extractor Coates et al. (2011) can only achieve a test accuracy of $8 5 . 6 \%$ using 256, $\ 0 0 0$ image patches, or $8 5 . 0 \%$ using 32, 000 image patches. Here we use significantly less image patches (only 2048) but achieve a much better performance, with the help of CNTK and CNN-GP. In particular, we achieve a performance of $8 8 . 9 1 \%$ on CIFAR-10, matching the performance of AlexNet on the same dataset. In the setting reported in Coates et al. (2011), increasing the number of sampled image patches will further improve the performance. Here we also conjecture that in our setting, further increasing the number of sampled image patches can improve the performance and get close to modern CNNs. However, due the limitation on computational resources, we leave exploring the effect of number of sampled image patches as a future research direction.
132
+
133
+ # 6.3 EXPERIMENTS ON CNN WITH BOX FILTERING LAYER
134
+
135
+ In Figure 1, we verify the effectiveness of BF on a 10-layer CNN (with Batch Normalization) on CIFAR-10. The setting of this experiment is reported in Appendix G. Our network structure has no pooling layer except for the BF layer before the last fully-connected layer. The fully-connected layer is fixed during the training. Our experiment illustrates that even with a fixed last FC layer, using
136
+
137
+ Table 3: Test accuracy of CNN-GP on CIFAR-10.
138
+
139
+ <table><tr><td>d C</td><td>5</td><td>8</td><td>11</td><td></td><td>14</td></tr><tr><td>0</td><td>63.53 (67.90)</td><td>65.54 (69.43)</td><td>66.42 (70.30)</td><td></td><td>66.81 (70.48)</td></tr><tr><td>4</td><td>76.35 (78.79)</td><td>77.03 (79.30)</td><td>77.39 (79.52)</td><td></td><td>77.35 (79.65)</td></tr><tr><td>8</td><td>79.48 (81.32)</td><td>79.82 (81.49)</td><td>79.76 (81.71)</td><td></td><td>79.69 (81.53)</td></tr><tr><td>12</td><td>80.40 (82.13)</td><td>80.64 (82.09)</td><td>80.58 (82.06)</td><td></td><td>80.32 (81.95)</td></tr><tr><td>16</td><td>80.36 (81.73)</td><td>80.78 (82.20)</td><td>80.59 (82.06)</td><td></td><td>80.41 (81.83)</td></tr><tr><td>20</td><td>79.87 (81.50)</td><td>80.15( 5 (81.33)</td><td>79.87 (81.46)</td><td></td><td>79.98 (81.35)</td></tr><tr><td>24</td><td>78.60 (79.98)</td><td>78.91 (80.48)</td><td>79.22 (80.53)</td><td></td><td>78.94 (80.46)</td></tr><tr><td>28</td><td>77.18 (78.84)</td><td>78.03 (79.86)</td><td>78.45 (79.87)</td><td></td><td>78.48 (80.07)</td></tr><tr><td>32</td><td>77.00 (78.49)</td><td>77.85 (79.65)</td><td>78.49 (80.04)</td><td></td><td>78.45 (80.01)</td></tr></table>
140
+
141
+ Table 4: Test accuracy of random patches layer $^ +$ CNN-GP on CIFAR-10.
142
+
143
+ <table><tr><td rowspan=1 colspan=1>dC</td><td rowspan=1 colspan=5>5 8 11 14</td></tr><tr><td rowspan=4 colspan=1>481216</td><td rowspan=1 colspan=1>85.49(87.32)</td><td rowspan=1 colspan=1>85.37(87.22)</td><td rowspan=1 colspan=1>85.16(87.11)</td><td rowspan=1 colspan=1>84.79(86.81)</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>87.07 (88.64)</td><td rowspan=1 colspan=1>86.82(88.68)</td><td rowspan=1 colspan=1>86.53(88.40)</td><td rowspan=2 colspan=2>86.39 (88.15)86.62 (88.29)</td></tr><tr><td rowspan=2 colspan=1>87.23(88.91)87.28 (88.90)</td><td rowspan=1 colspan=1>87.12(88.92)</td><td rowspan=1 colspan=1>86.87(88.66)</td></tr><tr><td rowspan=1 colspan=1>87.11(88.66)</td><td rowspan=1 colspan=1>86.92(88.61)</td><td rowspan=2 colspan=2>86.74 (88.24)86.26 (87.84)</td></tr><tr><td rowspan=1 colspan=1>20</td><td rowspan=1 colspan=1>86.81 (88.26)</td><td rowspan=1 colspan=1>86.77(88.24)</td><td rowspan=1 colspan=1>86.61(88.14)</td></tr></table>
144
+
145
+ GAP could improve the performance of CNN. Our experiments also show that BF with appropriate choice of $c$ achieves better performance than GAP.
146
+
147
+ ![](images/320c235c4f1c90a590cb573560ef0fe6fc15d2b3b0c2ecdb55ed2f125f502004.jpg)
148
+ Figure 1: Test accuracy of 10-layer CNN with various values for the $c$ parameter in BF.
149
+
150
+ # 7 CONCLUSION
151
+
152
+ In this paper, inspired by the connection between full translation data augmentation and GAP, we derive a new operation, LAP, on CNTK and CNN-GP, which consistently improves the performance on image classification tasks. Combining CNN-GP with LAP and the pre-processing technique proposed by Coates et al. (2011), the resulting kernel achieves $89 \%$ accuracy on CIFAR-10, matching the performance of AlexNet and is the strongest classifier that is not a trained neural network.
153
+
154
+ Here we list a few future research directions. Is it possible to develop analogs of CNTK or CNNGP incorporating modern techniques such as batch norm and residual layers, to further improve the performance? Moreover, it is an interesting direction to study other components in modern CNNs through the lens of CNTK and CNN-GP.
155
+
156
+ # REFERENCES
157
+
158
+ Zeyuan Allen-Zhu, Yuanzhi Li, and Zhao Song. A convergence theory for deep learning via overparameterization. arXiv preprint arXiv:1811.03962, 2018.
159
+
160
+ Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, Ruslan Salakhutdinov, and Ruosong Wang. On exact computation with an infinitely wide neural net. arXiv preprint arXiv:1904.11955, 2019.
161
+
162
+ Olivier Chapelle, Jason Weston, Leon Bottou, and Vladimir Vapnik. Vicinal risk minimization. In ´ Advances in neural information processing systems, pp. 416–422, 2001.
163
+
164
+ Shuxiao Chen, Edgar Dobriban, and Jane H Lee. Invariance reduces variance: Understanding data augmentation in deep learning and beyond. arXiv preprint arXiv:1907.10905, 2019.
165
+
166
+ Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pp. 215–223, 2011.
167
+
168
+ Tri Dao, Albert Gu, Alexander J Ratner, Virginia Smith, Christopher De Sa, and Christopher Re. A ´ kernel theory of modern data augmentation. arXiv preprint arXiv:1803.06084, 2018.
169
+
170
+ Simon S Du, Jason D Lee, Haochuan Li, Liwei Wang, and Xiyu Zhai. Gradient descent finds global minima of deep neural networks. arXiv preprint arXiv:1811.03804, 2018.
171
+
172
+ Simon S. Du, Kangcheng Hou, Barnabas P ´ oczos, Ruslan Salakhutdinov, Ruosong Wang, and Keyulu ´ Xu. Graph neural tangent kernel: Fusing graph neural networks with graph kernels. ArXiv, abs/1905.13192, 2019a.
173
+
174
+ Simon S. Du, Xiyu Zhai, Barnabas Poczos, and Aarti Singh. Gradient descent provably optimizes over-parameterized neural networks. In International Conference on Learning Representations, 2019b.
175
+
176
+ Adria Garriga-Alonso, Carl Edward Rasmussen, and Laurence Aitchison. Deep convolutional net- \` works as shallow gaussian processes. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=Bklfsi0cKm.
177
+
178
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
179
+
180
+ Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017.
181
+
182
+ Arthur Jacot, Franck Gabriel, and Clement Hongler. Neural tangent kernel: Convergence and gen- ´ eralization in neural networks. arXiv preprint arXiv:1806.07572, 2018.
183
+
184
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
185
+
186
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
187
+
188
+ Jaehoon Lee, Jascha Sohl-dickstein, Jeffrey Pennington, Roman Novak, Sam Schoenholz, and Yasaman Bahri. Deep neural networks as gaussian processes. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id= B1EA-M-0Z.
189
+
190
+ Yuanzhi Li and Yingyu Liang. Learning overparameterized neural networks via stochastic gradient descent on structured data. arXiv preprint arXiv:1808.01204, 2018.
191
+
192
+ Min Lin, Qiang Chen, and Shuicheng Yan. Network in network. arXiv preprint arXiv:1312.4400, 2013.
193
+
194
+ Julien Mairal. End-to-end kernel learning with supervised convolutional kernel networks. In Advances in neural information processing systems, pp. 1399–1407, 2016.
195
+
196
+ Alexander G de G Matthews, Mark Rowland, Jiri Hron, Richard E Turner, and Zoubin Ghahramani. Gaussian process behaviour in wide deep neural networks. arXiv preprint arXiv:1804.11271, 2018.
197
+
198
+ Radford M Neal. Priors for infinite networks. In Bayesian Learning for Neural Networks, pp. 29–53. Springer, 1996.
199
+
200
+ Roman Novak, Lechao Xiao, Yasaman Bahri, Jaehoon Lee, Greg Yang, Daniel A. Abolafia, Jeffrey Pennington, and Jascha Sohl-dickstein. Bayesian deep convolutional networks with many channels are gaussian processes. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $\bar { }$ B1g30j0qF7.
201
+
202
+ Edouard Oyallon and Stephane Mallat. Deep roto-translation scattering for object classification. ´ In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2865– 2873, 2015.
203
+
204
+ Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? arXiv preprint arXiv:1902.10811, 2019.
205
+
206
+ Bernhard Scholkopf, Chris Burges, and Vladimir Vapnik. Incorporating invariances in support vec- ¨ tor learning machines. In International Conference on Artificial Neural Networks, pp. 47–52. Springer, 1996.
207
+
208
+ Jocelyn Sietsma and Robert JF Dow. Creating artificial neural networks that generalize. Neural networks, 4(1):67–79, 1991.
209
+
210
+ Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014.
211
+
212
+ Richard Szeliski. Computer vision: algorithms and applications. Springer Science & Business Media, 2010.
213
+
214
+ Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms, 2017.
215
+
216
+ Greg Yang. Scaling limits of wide neural networks with weight sharing: Gaussian process behavior, gradient independence, and neural tangent kernel derivation. arXiv preprint arXiv:1902.04760, 2019.
217
+
218
+ Difan Zou, Yuan Cao, Dongruo Zhou, and Quanquan Gu. Stochastic gradient descent optimizes over-parameterized deep ReLU networks. arXiv preprint arXiv:1811.08888, 2018.
219
+
220
+ # A FORMAL DEFINITIONS OF CNN-GP AND CNTK
221
+
222
+ We add some additional notations. Let $\pmb { I }$ be the identity matrix, and $[ n ] = \{ 1 , 2 , \dots , n \}$ . Let $e _ { i }$ be an indicator vector with $i$ -th entry being 1 and other entries being 0, and let 1 denote the all-one vector. We use $\odot$ to denote the pointwise product and $\otimes$ to denote the tensor product. We use $\mathrm { d i a g ( \cdot ) }$ to transform a vector to a diagonal matrix. We use $\sigma \left( \cdot \right)$ to denote the activation function, such as the rectified linear unit (ReLU) function: $\sigma \left( z \right) = \operatorname* { m a x } \{ z , 0 \}$ , and $\dot { \sigma } \left( \cdot \right)$ to denote the derivative of $\sigma \left( \cdot \right)$ . We set $c _ { \sigma } = 2$ . Denote by $\scriptstyle { \mathcal { N } } ( \mu , \Sigma )$ the Gaussian distribution with mean $\pmb { \mu }$ and covariance $\pmb { \Sigma }$ .
223
+
224
+ Equation equation 2 shows patch $[ { \pmb w } * { \pmb x } ] _ { i j }$ depends on $\begin{array} { r } { [ { \pmb x } ] _ { i - \frac { q - 1 } { 2 } : i + \frac { q - 1 } { 2 } , j - \frac { q - 1 } { 2 } : j + \frac { q - 1 } { 2 } } } \end{array}$ . For $( i , j , i ^ { \prime } , j ^ { \prime } ) \in [ P ] \times [ Q ] \times [ P ] \times [ Q ]$ , define
225
+
226
+ $$
227
+ \begin{array} { r } { \mathfrak { I } _ { i j , i ^ { \prime } j ^ { \prime } } = \{ ( i + a , j + b , i ^ { \prime } + a ^ { \prime } , j ^ { \prime } + b ^ { \prime } ) \in [ P ] \times [ Q ] \times [ P ] \times [ Q ] | - ( q - 1 ) / 2 \le a , b , a ^ { \prime } , b ^ { \prime } \le ( q - 1 ) \} , } \end{array}
228
+ $$
229
+
230
+ Now we define the convolution operation. For a convolutional filter $\pmb { w } \in \mathbb { R } ^ { q \times q }$ and an image $\pmb { x } \in \mathbb { R } ^ { P \times Q }$ , the convolution operator is defined as
231
+
232
+ $$
233
+ [ { \pmb w } * { \pmb x } ] _ { i j } = \sum _ { a = - \frac { \eta - 1 } { 2 } } ^ { \frac { q - 1 } { 2 } } \sum _ { b = - \frac { \eta - 1 } { 2 } } ^ { \frac { q - 1 } { 2 } } [ { \pmb w } ] _ { a + \frac { q + 1 } { 2 } , b + \frac { q + 1 } { 2 } } [ { \pmb x } ] _ { a + i , b + j } \mathrm { ~ f o r ~ } i \in [ P ] , j \in [ Q ] .
234
+ $$
235
+
236
+ Now we formally define CNN.
237
+
238
+ • Let $\pmb { x } ^ { ( 0 ) } = \pmb { x } \in \mathbb { R } ^ { P \times Q \times C ^ { ( 0 ) } }$ be the input image where $C ^ { ( 0 ) }$ is the initial number of channels. • For $h = 1 , \ldots , L , \beta = 1 , \ldots , C ^ { ( h ) }$ , the intermediate outputs are defined as
239
+
240
+ $$
241
+ \tilde { \mathbf { x } } _ { ( \beta ) } ^ { ( h ) } = \sum _ { \alpha = 1 } ^ { C ^ { ( h - 1 ) } } W _ { ( \alpha ) , ( \beta ) } ^ { ( h ) } * \mathbf { x } _ { ( \alpha ) } ^ { ( h - 1 ) } + \gamma \cdot b _ { ( \beta ) } , \quad \mathbf { x } _ { ( \beta ) } ^ { ( h ) } = \sqrt { \frac { c _ { \sigma } } { C ^ { ( h ) } \times q \times q } \sigma } \left( \tilde { \mathbf { x } } _ { ( \beta ) } ^ { ( h ) } \right)
242
+ $$
243
+
244
+ where each W (h) $W _ { ( \alpha ) , ( \beta ) } ^ { ( h ) } \in \mathbb { R } ^ { q \times q }$ is a filter with Gaussian initialization and $b _ { ( \beta ) }$ is a bias term with Gaussian initialization scaled by $\gamma$ .
245
+
246
+ # CNN-GP and CNTK
247
+
248
+ • For $\alpha = 1 , \dots , C ^ { ( 0 ) } , ( i , j , i ^ { \prime } , j ^ { \prime } ) \in [ P ] \times [ Q ] \times [ P ] \times [ Q ]$ , define
249
+
250
+ $$
251
+ \Big [ \Sigma ^ { ( 0 ) } ( { \pmb x } , { \pmb x } ^ { \prime } ) \Big ] _ { i j , i ^ { \prime } j ^ { \prime } } = \frac { 1 } { q ^ { 2 } } \sum _ { \alpha = 1 } ^ { C ^ { ( 0 ) } } \mathrm { t r } \left( \Big [ { \pmb K } _ { ( \alpha ) } ^ { ( 0 ) } ( { \pmb x } , { \pmb x } ^ { \prime } ) \Big ] _ { \mathscr D _ { i j , i ^ { \prime } j ^ { \prime } } } \right) + \beta ^ { 2 } .
252
+ $$
253
+
254
+ • For $h \in [ L ]$ , – For $( i , \dot { j } , i ^ { \prime } , j ^ { \prime } ) \in [ P ] \times [ Q ] \times [ P ] \times [ Q ]$ , define
255
+
256
+ $$
257
+ \begin{array} { r } { \pmb { \Lambda } _ { i j , i ^ { \prime } j ^ { \prime } } ^ { ( h ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) = \left( \begin{array} { c c } { \left[ \pmb { \Sigma } ^ { ( h - 1 ) } ( \pmb { x } , \pmb { x } ) \right] _ { i j , i j } } & { \left[ \pmb { \Sigma } ^ { ( h - 1 ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) \right] _ { i j , i ^ { \prime } j ^ { \prime } } } \\ { \left[ \pmb { \Sigma } ^ { ( h - 1 ) } \left( \pmb { x } ^ { \prime } , \pmb { x } \right) \right] _ { i ^ { \prime } j ^ { \prime } , i j } } & { \left[ \pmb { \Sigma } ^ { ( h - 1 ) } \left( \pmb { x } ^ { \prime } , \pmb { x } ^ { \prime } \right) \right] _ { i ^ { \prime } j ^ { \prime } , i ^ { \prime } j ^ { \prime } } } \end{array} \right) \in \mathbb { R } ^ { 2 \times 2 } . } \end{array}
258
+ $$
259
+
260
+ – Define ${ \pmb K } ^ { ( h ) } ( { \pmb x } , { \pmb x } ^ { \prime } ) , \dot { \pmb K } ^ { ( h ) } ( { \pmb x } , { \pmb x } ^ { \prime } ) \in \mathbb { R } ^ { P \times Q \times P \times Q }$ , for $( i , j , i ^ { \prime } , j ^ { \prime } ) \in [ P ] \times [ Q ] \times [ P ] \times [ Q ]$
261
+
262
+ $$
263
+ \begin{array} { r l } & { \left[ { K ^ { \left( h \right) } } ( { \pmb x } , { \pmb x } ^ { \prime } ) \right] _ { i j , i ^ { \prime } j ^ { \prime } } = c _ { \sigma } \cdot \underset { ( u , v ) \sim \mathcal { N } \left( \mathbf { 0 } , \Lambda _ { i j , i ^ { \prime } j ^ { \prime } } ^ { \left( h \right) } \left( \pmb x , { \pmb x } ^ { \prime } \right) \right) } { \mathbb { E } } \left[ \cdot \sigma \left( u \right) \sigma \left( v \right) \right] , } \\ & { \left[ \dot { \pmb K } ^ { ( h ) } ( { \pmb x } , { \pmb x } ^ { \prime } ) \right] _ { i j , i ^ { \prime } j ^ { \prime } } = c _ { \sigma } \cdot \underset { ( u , v ) \sim \mathcal { N } \left( \mathbf { 0 } , \Lambda _ { i j , i ^ { \prime } j ^ { \prime } } ^ { \left( h \right) } \left( \pmb x , { \pmb x } ^ { \prime } \right) \right) } { \mathbb { E } } \left[ \dot { \sigma } \left( u \right) \dot { \sigma } \left( v \right) \right] . } \end{array}
264
+ $$
265
+
266
+ – Define $\Sigma ^ { ( h ) } ( { \pmb x } , { \pmb x } ^ { \prime } ) \in \mathbb { R } ^ { P \times Q \times P \times Q }$ , for $( i , j , i ^ { \prime } , j ^ { \prime } ) \in [ P ] \times [ Q ] \times [ P ] \times [ Q ]$
267
+
268
+ $$
269
+ \left[ \Sigma ^ { ( h ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) \right] _ { i j , i ^ { \prime } j ^ { \prime } } = \frac { 1 } { q ^ { 2 } } \mathrm { t r } \left( \left[ \pmb { K } ^ { ( h ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) \right] _ { D _ { i j , i ^ { \prime } j ^ { \prime } } } \right) + \beta ^ { 2 } .
270
+ $$
271
+
272
+ Note that $\Sigma ( { \pmb x } , { \pmb x } ^ { \prime } )$ and $\dot { \Sigma } ( { \pmb x } , { \pmb x } ^ { \prime } )$ share similar structures as their NTK counterparts (Jacot et al., 2018). The only difference is that we have one more step, taking the trace over patches. This step represents the convolution operation in the corresponding CNN. Next, we can use a recursion to compute the final kernel value.
273
+
274
+ 1. First, we define ${ \Theta } ^ { ( 0 ) } ( x , x ^ { \prime } ) = \Sigma ^ { ( 0 ) } ( x , x ^ { \prime } )$ .
275
+ 2. For $h = 1 , \ldots , L$ and $( i , j , i ^ { \prime } , j ^ { \prime } ) \in [ P ] \times [ Q ] \times [ P ] \times [ Q ]$ , we define
276
+
277
+ $$
278
+ \left[ \Theta ^ { ( h ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) \right] _ { i j , i ^ { \prime } j ^ { \prime } } = \frac { 1 } { q ^ { 2 } } \mathrm { t r } \left( \left[ \dot { \pmb { K } } ^ { ( h ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) \odot \Theta ^ { ( h - 1 ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) + \pmb { K } ^ { ( h ) } ( \pmb { x } , \pmb { x } ^ { \prime } ) \right] _ { D _ { i j , i ^ { \prime } j ^ { \prime } } } \right) + \beta ^ { 2 } .
279
+ $$
280
+
281
+ # B ADDITIONAL DEFINITION AND PROOF FOR SECTION 4
282
+
283
+ Definition B.1 (Group). $( { \mathcal { G } } , \circ )$ is $a$ group, if and only if
284
+
285
+ 1. each element $g \in { \mathcal { G } }$ is a operator: $\mathbb { R } ^ { P \times Q \times C } \mathbb { R } ^ { P \times Q \times C }$ ;
286
+ 2 $\ : \ : \forall g _ { 1 } , g _ { 2 } \in \mathcal { G } , g _ { 1 } \circ g _ { 2 } \in \mathcal { G } \ :$ , where $( g _ { 1 } \circ g _ { 2 } ) ( { \pmb x } )$ is defined as $g _ { 1 } ( g _ { 2 } ( { \pmb x } ) )$ .
287
+ 3. $\forall g _ { 1 } , g _ { 2 } , g _ { 3 } \in \mathcal { G } , ( g _ { 1 } \circ g _ { 2 } ) \circ g _ { 3 } = g _ { 1 } \circ ( g _ { 2 } \circ g _ { 3 } ) .$ .
288
+ 4. $\exists e \in { \mathcal { G } }$ , such that $\forall g \in { \mathcal { G } }$ , $e \circ g = g \circ e = g$ .
289
+ 5. $\forall g _ { 1 } \in { \mathcal { G } }$ , $\exists g _ { 2 } \in { \mathcal { G } }$ , such that $g _ { 1 } \circ g _ { 2 } = g _ { 2 } \circ g _ { 1 } = e$ . We denote $g _ { 2 }$ as the inverse of $g _ { 1 }$ , namely,
290
+ $g _ { 1 } ^ { - 1 }$ .
291
+
292
+ Proof of Theorem 4.1. Since we assume $\mathbf { K } _ { \mathbf { X } } ^ { \mathcal { G } }$ and $\mathbf { K } _ { \mathbf { X } _ { \mathcal { G } } }$ are invertible, both $_ { \pmb { \alpha } }$ and $\widetilde { \alpha }$ are uniquely defined. Now we claim $\widetilde { \pmb { \alpha } } _ { g } = \{ \widetilde { \alpha } _ { i , g } \} _ { i \in [ N ] } \in \mathbb { R } ^ { N }$ is equal to $\frac { \pmb { \alpha } } { | \mathscr { G } | }$ for all $g \in { \mathcal { G } }$ .
293
+
294
+ By the invariance of $\mathbf { K }$ under $\mathcal { G }$ , for all $j \in [ N ]$ and $g ^ { \prime } \in \mathcal G$ ,
295
+
296
+ $$
297
+ \begin{array} { l } { { \displaystyle \sum _ { i \in [ N ] , g \in { \mathcal G } } \frac { \alpha _ { i } } { | { \mathcal G } | } \mathbf K ( g ^ { \prime } ( { \mathbf x } _ { j } ) , g ( { \mathbf x } _ { i } ) ) = \sum _ { i \in [ N ] , g \in { \mathcal G } } \frac { \alpha _ { i } } { | { \mathcal G } | } \mathbf K ( ( g ^ { - 1 } \circ g ^ { \prime } ) ( { \mathbf x } _ { j } ) , { \mathbf x } _ { i } ) } } \\ { ~ = \sum _ { i \in [ N ] } \alpha _ { i } \mathbb E _ { g \in { \mathcal G } } \mathbf K ( g ( { \mathbf x } _ { j } ) , { \mathbf x } _ { i } ) } \\ { ~ = \sum _ { i \in [ N ] } \alpha _ { i } \mathbf K ^ { { \mathcal G } } ( { \mathbf x } _ { j } , { \mathbf x } _ { i } ) } \\ { ~ = y _ { j } . } \end{array}
298
+ $$
299
+
300
+ Note that $\widetilde { \pmb { \alpha } }$ is defined as the unique solution of $\mathbf { K } _ { \mathbf { X } _ { \mathcal { G } } } \tilde { \pmb { \alpha } } = \pmb { y } _ { \mathcal { G } }$ , the claim has been verified.
301
+
302
+ Similarly, we have
303
+
304
+ $$
305
+ \sum _ { i \in [ N ] , g \in \mathcal { G } } \frac { \alpha _ { i } } { | \mathcal { G } | } \mathbf { K } ( \pmb { x } ^ { \prime } , g ( \pmb { x } _ { i } ) ) = \sum _ { i \in [ N ] } \alpha _ { i } \mathbb { E } _ { g \in \mathcal { G } } \mathbf { K } ( g ^ { - 1 } ( \pmb { x } ^ { \prime } ) , \pmb { x } _ { i } ) = \sum _ { i \in [ N ] } \alpha _ { i } \mathbf { K } ^ { \mathcal { G } } ( \pmb { x } ^ { \prime } , \pmb { x } _ { i } ) .
306
+ $$
307
+
308
+ # C EQUIVALENCE BETWEEN LAP AND BOX FILTERING LAYER.
309
+
310
+ For a CNN with a box filtering layer before the final fully-connected layer, the final output is defined $\begin{array} { r } { f ( \pmb { \theta } , \pmb { x } ) = \sum _ { \alpha = 1 } ^ { C ^ { ( L ) } } \Big \langle \pmb { W } _ { ( \alpha ) } ^ { ( L + 1 ) } , \mathsf { B F } \left( \pmb { W } _ { ( \alpha ) } ^ { ( L ) } \right) } \end{array}$ x(L)(α) E, where x(L)(α) $\pmb { x } _ { ( \alpha ) } ^ { ( L ) } \in \mathbb { R } ^ { P \times Q }$ , and ${ W _ { ( \alpha ) } ^ { ( L + 1 ) } } \in \mathbb { R } ^ { P \times Q }$ is the weight of the last fully-connected layer.
311
+
312
+ Now we establish the equivalence between BF and LAP on CNTK. The equivalence on CNNGP can be derived similarly. Let $\Theta _ { \mathsf { B F } } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) \ \in \ \mathbb { R } ^ { [ P ] \times [ Q ] \times [ P ] \times [ Q ] }$ be the CNTK kernel of BF $\left( \pmb { x } _ { ( \alpha ) } ^ { ( L ) } \right)$ . Since BF is just a linear operation, we have
313
+
314
+ $$
315
+ \left[ \Theta _ { \mathsf { B F } } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) \right] _ { i , j , i ^ { \prime } , j ^ { \prime } } = \frac { 1 } { \left( 2 c + 1 \right) ^ { 4 } } \sum _ { \Delta _ { i } , \Delta _ { j } , \Delta _ { i ^ { \prime } } ^ { \prime } , \Delta _ { j ^ { \prime } } ^ { \prime } \in [ - c , c ] ^ { 4 } } \left[ \Theta ^ { \left( L \right) } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) \right] _ { i + \Delta _ { i } , j + \Delta _ { j } , i ^ { \prime } + \Delta _ { i } ^ { \prime } , j ^ { \prime } + \Delta _ { j } ^ { \prime } } .
316
+ $$
317
+
318
+ By the formula of the output kernel value for CNTK without GAP, we obtain
319
+
320
+ $$
321
+ \mathrm { t r } \left( \Theta _ { \mathsf { B F } } \left( \pmb { x } , \pmb { x } ^ { \prime } \right) \right) = \frac { 1 } { \left( 2 c + 1 \right) ^ { 4 } } \sum _ { \Delta _ { i } , \Delta _ { i } ^ { \prime } , \Delta _ { j } , \Delta _ { j } ^ { \prime } \in [ - c , c ] ^ { 4 } } \sum _ { \substack { i , j \in [ P ] \times [ Q ] } } [ \Theta ( \pmb { x } , \pmb { x } ^ { \prime } ) ] _ { i + \Delta _ { i } , j + \Delta _ { j } , i + \Delta _ { i } ^ { \prime } , j + \Delta _ { j } ^ { \prime } } .
322
+ $$
323
+
324
+ ![](images/1bbc9f757c12c5aed515820a88529545a710a5495ef9d4f4d35c646a539fd9a7.jpg)
325
+ Figure 2: Randomly sampled images with full translation data augmentation and local translation data augmentation from CIFAR-10. Full translation data augmentation can create unrealistic images that harm the performance whereas local translation data augmentation creates more realistic images.
326
+
327
+ D EXPERIMENTAL SETUP IN SECTION 6
328
+
329
+ For both CIFAR-10 and Fashion-MNIST we use the full training set and report the test accuracy on the full test set. Throughout this section we only consider $3 \times 3$ convolutional filters with stride 1 and no dilation. In the convolutional layers in CNTK and CNN-GP, we use zero padding with pad size 1 to ensure the input of each layer has the same size. We use zero padding for LAP throughout the experiment. We perform standard preprocessing (mean subtraction and standard deviation division) for all images.
330
+
331
+ In all experiments, we perform kernel ridge regression to utilize the calculated kernel values4. We normalize the kernel matrices so that all diagonal entries are ones. Equivalently, we ensure all features have unit norm in RKHS. Since the resulting kernel matrices are usually ill-conditioned, we set the regularization term $\lambda = 5 \times 1 0 ^ { - 5 }$ , to make inverting kernel matrices numerically stable. We use one-hot encodings of the labels as regression targets. We use scipy.linalg.solve to solve the corresponding kernel ridge regression problem.
332
+
333
+ The kernel value of CNTK and CNN-GP are calculated using the CuPy package. We write native CUDA codes to speed up the calculation of the kernel values. All experiments are performed on Amazon Web Services (AWS), using (possibly multiple) NVIDIA Tesla V100 GPUs. For efficiency considerations, all kernel values are computed with 32-bit precision.
334
+
335
+ One unique advantage of the dynamic programming algorithm for calculating CNTK and CNNGP is that we do not need repeat experiments for, say, different values of $c$ in LAP and different depths. With our highly-optimized native CUDA codes, we spend roughly 1,000 GPU hours on calculating all kernel values for each dataset.
336
+
337
+ # E TEST ACCURACY OF CNTK AND CNN-GP ON FASHION-MNIST
338
+
339
+ Table 5: Test accuracy of CNTK on Fashion-MNIST.
340
+
341
+ <table><tr><td>d C</td><td colspan="3">5 8</td><td colspan="2">11</td></tr><tr><td>0</td><td>92.25 (92.56)</td><td>92.22</td><td>(92.51) 92.11</td><td>(92.29)</td><td>91.76 (92.17)</td></tr><tr><td>4</td><td>93.76 (94.07)</td><td>93.69 (93.86)</td><td>93.55</td><td>(93.74)</td><td>93.37 (93.58)</td></tr><tr><td>8</td><td>93.72 (93.96)</td><td>93.67 (93.78)</td><td>93.50</td><td>(93.58)</td><td>93.32 (93.51)</td></tr><tr><td>12</td><td>93.59 (93.80)</td><td>93.58 (93.70)</td><td>93.35</td><td>(93.44)</td><td>93.21 (93.40)</td></tr><tr><td>16</td><td>93.50 (93.62)</td><td>93.42 (93.63)</td><td>93.27</td><td>(93.40)</td><td>93.10 (93.25)</td></tr><tr><td>20</td><td>93.10 (93.34)</td><td>93.17 (93.49)</td><td></td><td>93.20 (93.34)</td><td>92.99 (93.18)</td></tr><tr><td>24</td><td>92.77 (93.04)</td><td>93.07 (93.44)</td><td>93.11 (</td><td>(93.31)</td><td>93.02 (93.21)</td></tr><tr><td>28</td><td>92.80 (92.98)</td><td>93.08 (93.42)</td><td>93.12(</td><td>(93.28)</td><td>92.97 (93.19)</td></tr></table>
342
+
343
+ <table><tr><td>d C</td><td>5</td><td>8</td><td>11</td><td>14</td><td></td></tr><tr><td>0</td><td>91.47 (91.81)</td><td>91.96( (92.37)</td><td>92.09( (92.60)</td><td>92.22</td><td>(92.72)</td></tr><tr><td>4</td><td>93.44 (93.60)</td><td>93.59 (93.79)</td><td>93.63 (93.76)</td><td></td><td>93.59 (93.64)</td></tr><tr><td>8</td><td>93.26 (93.16)</td><td>93.41 (93.51)</td><td>93.31 (93.52)</td><td></td><td>93.39 (93.46)</td></tr><tr><td>12</td><td>92.83 3(92.94)</td><td>93.07 (93.20)</td><td>93.11 (93.15)</td><td></td><td>92.94 (93.09)</td></tr><tr><td>16</td><td>92.46 (92.51)</td><td>92.58 (92.83)</td><td>92.64( (92.92)</td><td></td><td>92.68 (93.07)</td></tr><tr><td>20</td><td>91.83 (91.72)</td><td>92.35 (92.42)</td><td>92.49 (92.79)</td><td></td><td>92.51 (92.69)</td></tr><tr><td>24</td><td>91.15 (91.40)</td><td>92.10 (92.18)</td><td>92.29 (92.60)</td><td></td><td>92.41 (92.77)</td></tr><tr><td>28</td><td>91.30 (91.37)</td><td>92.03 (92.27)</td><td>92.41( (92.79)</td><td></td><td>92.41 (92.74)</td></tr></table>
344
+
345
+ Table 6: Test accuracy of CNN-GP on Fashion-MNIST.
346
+
347
+ # F VALIDATION ACCURACY OF CNTK AND CNN-GP ON CIFAR-10 AND FASHION-MNIST
348
+
349
+ <table><tr><td>d C</td><td colspan="2">5</td><td colspan="2">8</td><td colspan="2">11</td><td colspan="2">14</td></tr><tr><td>0</td><td>64.26</td><td>(68.42)</td><td>64.47 (68.23)</td><td></td><td>63.94 (67.80)</td><td></td><td></td><td>63.29 (67.00)</td></tr><tr><td>4</td><td></td><td>75.97 (78.87)</td><td>75.89 (78.99)</td><td></td><td>75.65 (78.56)</td><td></td><td></td><td>75.40 (78.19)</td></tr><tr><td>8</td><td></td><td>77.93 (80.65)</td><td>77.90 (80.69)</td><td></td><td>77.65 (80.41)</td><td></td><td></td><td>76.92 (79.94)</td></tr><tr><td>12</td><td></td><td>78.51 (80.73)</td><td></td><td>78.47 (80.85)</td><td>78.18 (80.57)</td><td></td><td>77.71 (80.19)</td><td></td></tr><tr><td>16</td><td></td><td>78.47 (80.39)</td><td></td><td>78.69 (80.56)</td><td>78.34 (80.17)</td><td></td><td></td><td>77.74 (79.97)</td></tr><tr><td>20</td><td></td><td>77.86 (79.69)</td><td>77.81 (79.81)</td><td></td><td>77.38 (79.55)</td><td></td><td></td><td>76.88 (79.46)</td></tr><tr><td>24</td><td></td><td>76.59 (78.12)</td><td>76.80 (78.63)</td><td></td><td>76.44 (78.79)</td><td></td><td></td><td>76.18 (78.73)</td></tr><tr><td>28</td><td></td><td>75.44 (77.08)</td><td>76.15 (78.20)</td><td></td><td></td><td>76.10 (78.30)</td><td></td><td>75.95 (78.37)</td></tr><tr><td>32</td><td></td><td>75.33 (76.99)</td><td></td><td>76.04 (78.09)</td><td></td><td>76.08 (78.27)</td><td></td><td>75.99 (78.32)</td></tr></table>
350
+
351
+ Table 7: Validation accuracy of CNTK on CIFAR-10.
352
+
353
+ <table><tr><td>d C</td><td>5</td><td>8</td><td>11</td><td></td><td>14</td></tr><tr><td>0</td><td>62.49 (66.63)</td><td>64.25 (68.20)</td><td>64.94 (69.01)</td><td></td><td>65.35 (69.29)</td></tr><tr><td>4</td><td>75.31 (78.59)</td><td>76.05 (79.20)</td><td>76.05 (79.17)</td><td></td><td>76.20 (79.09)</td></tr><tr><td>8</td><td>78.17 (81.02)</td><td>78.53 (81.29)</td><td>78.36 (81.20)</td><td></td><td>78.05 (80.98)</td></tr><tr><td>12</td><td>79.19 (81.38)</td><td>79.08 (81.66)</td><td>79.13 (81.52)</td><td></td><td>78.90 (81.10)</td></tr><tr><td>16</td><td>79.26 (81.18)</td><td>79.24 (81.37)</td><td>78.85 (81.33)</td><td></td><td>78.82 (80.84)</td></tr><tr><td>20</td><td>78.72 (80.61)</td><td>78.72 (80.85)</td><td>78.45 (80.60)</td><td></td><td>78.08 (80.22)</td></tr><tr><td></td><td>77.31 (79.01)</td><td>77.59 (79.49)</td><td>77.41 (79.56)</td><td></td><td>77.26 (79.38)</td></tr><tr><td>28</td><td>76.01 (77.60)</td><td>76.60 (78.32)</td><td>76.57 (78.76)</td><td></td><td>76.86 (79.01)</td></tr><tr><td>32</td><td>75.72 (77.54)</td><td>76.42 (78.47)</td><td>76.56 (78.94)</td><td></td><td>76.63 (78.87)</td></tr></table>
354
+
355
+ Table 8: Validation accuracy of CNN-GP on CIFAR-10.
356
+
357
+ <table><tr><td>d C</td><td colspan="2">5</td><td colspan="2">8</td><td colspan="2">14</td></tr><tr><td>4</td><td>83.89 (85.76)</td><td>83.13</td><td>(85.40)</td><td>82.62 (84.95)</td><td></td><td>82.02 (84.43)</td></tr><tr><td>8</td><td>85.52 (87.59)</td><td>84.88</td><td>(87.12)</td><td>84.30 (86.69)</td><td></td><td>83.84 (86.10)</td></tr><tr><td>12</td><td>85.71 (87.85)</td><td>85.32</td><td>(87.42)</td><td>84.81 (87.02)</td><td></td><td>84.26 (86.58)</td></tr><tr><td>16</td><td>85.68 (87.76)</td><td>85.19(</td><td>(87.30)</td><td>84.71 (86.83)</td><td></td><td>84.47 (86.40)</td></tr><tr><td>20</td><td>85.26 (87.11)</td><td>84.91</td><td>(86.67)</td><td>84.44 1(86.40)</td><td></td><td>84.09 (86.17)</td></tr></table>
358
+
359
+ Table 9: Validation accuracy of additional feature extractor $^ +$ CNTK on CIFAR-10.
360
+
361
+ <table><tr><td>d C</td><td>5</td><td>8</td><td>11</td><td>14</td></tr><tr><td>4</td><td>84.03 (86.16)</td><td>84.21 (86.38)</td><td>84.15 (86.33)</td><td>83.98 (86.04)</td></tr><tr><td>8</td><td>85.85 (87.94)</td><td>85.87 (88.03)</td><td>85.70 (87.87)</td><td>85.49 (87.62)</td></tr><tr><td>12</td><td>86.37 (88.33)</td><td>86.38 (88.25)</td><td>86.06 (88.12)</td><td>85.69 (87.82)</td></tr><tr><td>16</td><td>86.06 (88.27)</td><td>86.21 (88.05)</td><td>86.01 (87.87)</td><td>85.58 (87.74)</td></tr><tr><td>20</td><td>85.73 3(87.71)</td><td>85.79 (87.60)</td><td>85.73 (87.54)</td><td>85.27 (87.21)</td></tr></table>
362
+
363
+ Table 10: Validation accuracy of additional feature extractor $^ +$ CNN-GP on CIFAR-10.
364
+
365
+ <table><tr><td>d C</td><td>5</td><td>8</td><td>11</td><td></td><td>14</td></tr><tr><td>0</td><td>92.07 (92.30)</td><td>92.08 (92.21)</td><td>91.79 (91.99)</td><td></td><td>91.51 (91.72)</td></tr><tr><td>4</td><td>93.84 (93.96)</td><td>93.82 (93.83)</td><td>93.58 (93.74)</td><td></td><td>93.40 (93.57)</td></tr><tr><td>8</td><td>93.82 (93.96)</td><td>93.80 (93.77)</td><td>93.56 (93.71)</td><td></td><td>93.37 (93.57)</td></tr><tr><td>12</td><td>93.71 (93.83)</td><td>93.60 (93.72)</td><td>93.45</td><td>(93.58)</td><td>93.41 (93.45)</td></tr><tr><td>16</td><td>93.59 (93.73)</td><td>93.39 (93.63)</td><td>93.34 (93.53)</td><td></td><td>93.21 (93.45)</td></tr><tr><td>20</td><td>93.24 (93.44)</td><td>93.29 (93.42)</td><td>93.26 (93.30)</td><td></td><td>93.19 (93.31)</td></tr><tr><td>24</td><td>93.16 (93.28)</td><td>93.21 (93.39)</td><td>93.30 (93.32)</td><td></td><td>93.22 (93.32)</td></tr><tr><td>28</td><td>93.11 (93.23)</td><td>93.21 (93.33)</td><td>93.29 ( (93.29)</td><td></td><td>93.28 (93.31)</td></tr></table>
366
+
367
+ Table 11: Validation accuracy of CNTK on Fashion-MNIST.
368
+
369
+ <table><tr><td>d C</td><td colspan="2">5</td><td colspan="2">8</td><td colspan="2">14</td></tr><tr><td>0</td><td>91.13 (91.43)</td><td>91.57</td><td>(91.77)</td><td>91.85 (91.92)</td><td></td><td>91.94 (92.08)</td></tr><tr><td>4</td><td>93.44 (93.55)</td><td></td><td>93.57 (93.54)</td><td>93.69 (93.68)</td><td></td><td>93.58 (93.64)</td></tr><tr><td>8</td><td>93.57 (93.67)</td><td></td><td>93.51 (93.68)</td><td>93.52 (93.72)</td><td></td><td>93.44 (93.58)</td></tr><tr><td>12</td><td>93.15( (93.36)</td><td></td><td>93.49 (93.59)</td><td>93.25 (93.52)</td><td></td><td>93.23 (93.44)</td></tr><tr><td>16</td><td>92.83 (92.84)</td><td></td><td>93.01 (93.19)</td><td>93.01 (93.27)</td><td></td><td>92.95 (93.18)</td></tr><tr><td>20</td><td>92.29 (92.45)</td><td></td><td>92.60 (92.82)</td><td>92.60 (92.93)</td><td></td><td>92.78 (93.10)</td></tr><tr><td>24</td><td>91.76 (92.04)</td><td></td><td>92.28 (92.63)</td><td>92.57 (92.86)</td><td></td><td>92.58 (92.78)</td></tr><tr><td>28</td><td>91.79 (92.00)</td><td></td><td>92.32 (92.56)</td><td>92.56 (92.77)</td><td></td><td>92.70 (93.00)</td></tr></table>
370
+
371
+ Table 12: Validation accuracy of CNN-GP on Fashion-MNIST.
372
+
373
+ # G SETTING OF THE EXPERIMENT IN SECTION 6.3
374
+
375
+ The total number of training epochs is 80, and the learning rate is 0.1 initially, decayed by 10 at epoch 40 and 60 respectively. The momentum is 0.9 and the weight decay factor is 0.0005. In Figure 1, the blue line reports the average test accuracy of the last 10 epochs, while the red line reports the best test accuracy of the total 80 epochs. Each experiment is repeated for 3 times. We use circular padding for both convolutional layers and the BF layer. The last data point with largest $x$ -coordinate reported in Figure 1 corresponds to GAP.
parse/train/BkgNqkHFPr/BkgNqkHFPr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkgNqkHFPr/BkgNqkHFPr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkgNqkHFPr/BkgNqkHFPr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BylIciRcYQ/BylIciRcYQ.md ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SGD CONVERGES TO GLOBAL MINIMUM IN DEEP LEARNING VIA STAR-CONVEX PATH
2
+
3
+ Yi Zhou∗, Junjie Yang†, Huishuai Zhang‡, Yingbin Liang§, Vahid Tarokh∗ ∗Duke University, †University of Science and Technology of China ‡Microsoft Research, Asia, §The Ohio State University
4
+
5
+ # ABSTRACT
6
+
7
+ Stochastic gradient descent (SGD) has been found to be surprisingly effective in training a variety of deep neural networks. However, there is still a lack of understanding on how and why SGD can train these complex networks towards a global minimum. In this study, we establish the convergence of SGD to a global minimum for nonconvex optimization problems that are commonly encountered in neural network training. Our argument exploits the following two important properties: 1) the training loss can achieve zero value (approximately), which has been widely observed in deep learning; 2) SGD follows a star-convex path, which is verified by various experiments in this paper. In such a context, our analysis shows that SGD, although has long been considered as a randomized algorithm, converges in an intrinsically deterministic manner to a global minimum.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Training neural networks has been proven to be NP-hard decades ago Blum & Rivest (1988). At that time, the limited computation power makes neural network training a “mission impossible”. However, as the development of computing device achieves several revolutionary milestones (e.g. GPUs), deep neural networks are found to be practically trainable and can generalize well on real datasets Krizhevsky et al. (2017). At the same time, deep learning technique starts to beat the performance of other conventional approaches in a variety of challenging tasks, e.g., computer vision, classification, natural language processing, etc.
12
+
13
+ Modern neural network training is typically performed by applying first-order algorithms such as stochastic gradient descent (SGD) (a.k.a backpropagation) (Linnainmaa, 1976) or its variants, e.g., Adam (Kingma & Ba, 2014), Adagrad (Duchi et al., 2011), etc. Traditional analysis of SGD in nonconvex optimization guarantees the convergence to a stationary point Bottou et al. (2016); Ghadimi et al. (2016). Recently, it has been shown that SGD has the capability to escape strict saddle points Ge et al. (2015); Jin et al. (2017); Reddi et al. (2018a); Daneshmand et al. (2018), and can escape even sharp local minima Kleinberg et al. (2018). While these works provide different insights towards understanding the performance of SGD, they cannot explain the success of SGD that has been widely observed in deep learning applications. Specifically, it is known that SGD is able to train a variety of deep neural networks to achieve zero training loss (either exactly or approximately) for non-negative loss functions. This implies that SGD can find a global minimum of deep neural networks at ease. The major challenges towards understanding this phenomenon are in two-fold: 1) deep neural networks have complex landscape that cannot be fully understood analytically (Zhou & Liang, 2018); 2) the randomness nature of SGD makes it hard to characterize its convergence on such a complex landscape. These factors prohibit a good understanding of the practical success of SGD in deep learning from a traditional optimization aspect.
14
+
15
+ In this study, we analyze the convergence of SGD in the above phenomenon by exploiting the following two critical properties. First, the fact that SGD can train neural networks to zero loss value implies that the non-negative loss functions on all data samples share a common global minimum. Second, our experiments establish strong empirical evidences that SGD (when training the loss to zero value) follows a star-convex path. Based on these properties, we formally establish the convergence of SGD to a global minimizer. Our work conveys a useful insight that although the landscape of neural networks can be complicated, the actual optimization path that SGD takes turns out to be remarkably simple and sufficient to guarantee the converge to a global minimum.
16
+
17
+ # 1.1 OUR CONTRIBUTIONS
18
+
19
+ We focus on the empirical observation that SGD can train various neural networks to achieve zero loss, and validate that SGD follows an epochwise star-convex path in empirical optimization processes. Based on such a property, we prove that the Euclidean distance between the variable sequence generated by SGD and a global minimizer decreases at an epoch level. We also show that the subsequences of iterations that correspond to the same data sample is a minimizing sequence of the loss corresponding to that sample.
20
+
21
+ By further empirical exploration, we validate that SGD follows an iterationwise star-convex path during the major part of the training process. Based on such a property, we prove that the entire variable sequence generated by SGD converges to a global minimizer of the objective function. Then, we show that the convergence of SGD induces a self-regularization on its variance, i.e., the variance of stochastic gradients vanishes as SGD converges in such a context.
22
+
23
+ From a technical perspective, we characterize the intrinsic deterministic convergence property of SGD when the optimization path is well regularized, rather than the performance on average or in probability established in the existing studies. Our results provide a novel and promising aspect to understand SGD-based optimization in deep learning. Furthermore, our analysis of SGD explores the limiting convergence property of the subsequences that correspond to individual data samples, which is in sharp contrast to the traditional treatment of SGD that depends on its random nature and bounds on variance. Hence, our proof technique can be of independent interest to the community.
24
+
25
+ # 1.2 RELATED WORK
26
+
27
+ As there are extensive literature on SGD, we only mention the highly relevant studies here. Theoretical foundations of SGD have been developed in the optimization community (Robbins & Monro, 1951; Nemirovski et al., 2009; Lan, 2012; Ghadimi et al., 2016; Ghadimi & Lan, 2016), and have attracted much attention from the machine learning community in the past decade (Schmidt et al., 2017; Defazio et al., 2014; Johnson & Zhang, 2013; Li et al., 2017; Wang et al., 2018a). In general nonconvex optimization, it is known that SGD converges to a stationary point under a bounded variance assumption and a diminishing learning rate Bottou et al. (2016); Ghadimi et al. (2016). Other variants of SGD that are designed for deep learning have been proposed, e.g., Adam (Kingma & Ba, 2014), AMSgrad Reddi et al. (2018b), Adagrad (Duchi et al., 2011), etc, and their convergence properties have been studied in the context of online convex regret minimization.
28
+
29
+ Needell et al. (2014); Moulines & Bach (2011) show that SGD converges at a linear rate when the objective function is strongly convex and has a unique common global minimum. Recently, several studies show that SGD has the capability to escape strict saddle points Ge et al. (2015); Jin et al. (2017); Reddi et al. (2018a); Daneshmand et al. (2018). Other cubic-regularization-based methods have also been shown to be able to escape strict saddle points Nesterov & Polyak (2006); Zhou et al. (2018); Wang et al. (2018b). Kleinberg et al. (2018) considers functions with one-point strong convexity, and shows that the randomness of SGD has an intrinsic smoothing effect that can avoid convergence to sharp minimum. Our paper exploits a very different notion of star-convexity path of SGD, which is a much weaker condition than those in the previous studies.
30
+
31
+ # 2 PROBLEM SETUP AND PRELIMINARIES
32
+
33
+ Neural network training can be formulated as the following finite-sum optimization problem.
34
+
35
+ $$
36
+ \operatorname* { m i n } _ { x \in \mathbb { R } ^ { d } } f ( x ) : = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell _ { i } ( x ) ,
37
+ $$
38
+
39
+ where there are in total $n$ training data samples. The loss function that corresponds to the $i$ -th data sample is denoted by $\ell _ { i } : \mathbb { R } ^ { \breve { d } } \to \mathbb { R }$ for $i = 1 , \ldots , n$ , and the vector to be minimized in the problem (e.g., network weights in deep learning) are denoted by $x \in \mathbb { R } ^ { d }$ . In general, problem $( \mathrm { P } )$ is a nonconvex optimization problem, and we make the following standard assumptions regarding the objective function.
40
+
41
+ Assumption 1. The loss functions $\ell _ { i } , i = 1 , \ldots , n$ in problem $( P )$ satisfy:
42
+
43
+ 1. They are continuously differentiable, and their gradients are $L$ -Lipschitz continuous;
44
+
45
+ 2. For every $i = 1 , \dots , n , \operatorname* { i n f } _ { x \in \mathbb { R } ^ { d } } \ell _ { i } ( x ) > 0 .$
46
+
47
+ The conditions imposed by Assumption 1 are standard in analysis of nonconvex optimization. In specific, item 1 is a standard smoothness assumption on nonconvex loss functions. Item 2 assumes that the loss functions are bounded below, which is satisfied by many loss functions in deep learning, e.g., MSE loss, crossentropy loss, NLL loss, etc, which are all non-negative.
48
+
49
+ Next, we introduce the following fact that is widely observed in training overparameterized deep neural networks, which we assume to hold throughout the paper.
50
+
51
+ Observation 1 (Global minimum in deep learning). The objective function $f$ in problem $( P )$ with non-negative loss can achieve zero value at certain $x ^ { * }$ . Thus, $x ^ { * }$ is also a common global minimizer for all individual loss $\{ \ell _ { i } \} _ { i = 1 } ^ { n }$ . More formally, denote $\mathcal { X } _ { i } ^ { \ast }$ as the set of global minimizers of $\ell _ { i }$ for $i = 1 , \ldots , n$ . Then, the set of common global minimizers, i.e., $\mathcal { X } ^ { * } : = \cap _ { i = 1 } ^ { n } \mathcal { X } _ { i } ^ { * }$ , is non-empty and bounded.
52
+
53
+ Observation 1 is a common observation in deep learning applications, because deep neural networks (especially in the overparameterized regime) typically have enough capacity to fit all training data samples, and therefore the model has a global minimum shared by the loss functions on all data samples. To elaborate more, if the total loss $f$ attains zero value at $x ^ { * }$ , then $\ell _ { i }$ for all $i$ must achieve zero value at $x ^ { * }$ as they are non-negative. Thus, $x ^ { * }$ is a common global minimum of all individual loss $\ell _ { i } ( x )$ for all $i$ . Such a fact plays a critical role in understanding the convergence of SGD in training neural networks.
54
+
55
+ Next, we introduce our algorithm of interest – stochastic gradient descent (SGD). Specifically, to solve problem (P), SGD starts at an initial vector $x _ { 0 } \in \mathbb { R } ^ { d }$ and generates a variable sequence $\{ x _ { k } \} _ { k }$ according to the following update rule.
56
+
57
+ $$
58
+ \begin{array} { r l } { \mathrm { ( S G D ) } } & { { } x _ { k + 1 } = x _ { k } - \eta \nabla \ell _ { \xi _ { k } } ( x _ { k } ) , \quad k = 0 , 1 , . . . , } \end{array}
59
+ $$
60
+
61
+ where $\eta > 0$ denotes the learning rate, and $\xi _ { k } \in \{ 1 , \ldots , n \}$ corresponds to the sampled data index at iteration $k$ . In this study, we consider the practical cyclic sampling scheme with reshuffle (also referred to as the random sampling without replacement) to generate the random variable $\xi _ { k }$ . To elaborate the notation, we rewrite every iteration number $k$ as $n B + t$ , where $B = 0 , 1 , 2 , \ldots$ denotes the index of epoch that iteration $k$ belongs to and $t \in \{ 0 , 1 , . . . , n - 1 \}$ denotes the corresponding iteration index in that epoch. We further denote $\pi _ { B }$ as the random permutation of $1 , . . . , n$ in the $B$ -th epoch, and denote $\pi _ { B } ( j )$ as its $j$ -th element. Then, the sampled data index at iteration $k$ can be expressed as
62
+
63
+ $$
64
+ \xi _ { k } = \pi _ { B } ( t + 1 ) , \quad t = 0 , . . . , n - 1 .
65
+ $$
66
+
67
+ # 3 APPROACHING GLOBAL MINIMUM EPOCHWISELY
68
+
69
+ # 3.1 AN INTERESTING EMPIRICAL OBSERVATION OF SGD PATH
70
+
71
+ In this subsection, we provide empirical observations on the algorithm path of SGD in training neural networks. To be specific, we train a standard multi-layer perceptron (MLP) network Krizhevsky (2009), a variant of Alexnet and a variant of Inception network Zhang et al. (2017a) on the CIFAR10 dataset Krizhevsky (2009) using SGD under crossentropy loss. In all experiments, we adopt a constant learning rate (0.01 for MLP and Alexnet, 0.1 for Inception) and a constant mini-batch size 128. We discard all other optimization features such as momentum, weight decay, dropout and batch normalization, etc, in order to observe the essential property of SGD.
72
+
73
+ In each experiment, we train the network for a sufficient number of epochs to achieve near-zero training loss (i.e., almost global minimum), and record the weight parameters along the iteration path of SGD. We denote the weight parameters produced by SGD in the last iteration as $x ^ { * }$ , which has a near zero loss, and evaluate the Euclidean distance between the weight parameters produced by SGD and $x ^ { * }$ along the iteration path. We plot the results in Figure 1. It can be seen that the training losses for all three networks fluctuate along the iteration path, implying that the algorithm passes through complex landscapes. However, the Euclidean distance between the weight parameters and the final output $x ^ { * }$ is monotonically decreasing epochwise along the SGD path for all three networks. This shows that the variable sequence generated by SGD approaches the global minimum $x ^ { * }$ in a remarkably stable way. This motivates us to explore the underlying mechanism that yields such interesting observations.
74
+
75
+ In the next two subsections, we first propose a property that the algorithm path of SGD satisfies, based on which we formally prove that the variable sequence generated by SGD admits the behavior observed in Figure 1. Then, we provide empirical evidences to validate such a property of SGD path in practical SGD training.
76
+
77
+ ![](images/c122fe5d26fdcae1410b98a7230ad63527b055c7fd9264d47dc9bc4cb09ff6a1.jpg)
78
+ Figure 1: Distance to output of SGD in training neural networks.
79
+
80
+ # 3.2 EPOCHWISE STAR-CONVEX PATH
81
+
82
+ In this subsection, we introduce the notion of the epochwise star-convex path for SGD and establish its theoretical implications on the convergence of SGD. We validate that SGD satisfies such a property in practical neural network training in Section 3.3.
83
+
84
+ Recall the conventional definition of star-convexity. Let $x ^ { * }$ be a global minimizer of a smooth function $h$ . Then, $h$ is said to be star-convex at a point $x$ provided that
85
+
86
+ $$
87
+ ( { \mathrm { S t a r - c o n v e x i t y } } ) : \quad h ( x ) - h ( x ^ { * } ) + \langle x ^ { * } - x , \nabla h ( x ) \rangle \leq 0 .
88
+ $$
89
+
90
+ Star-convexity can be intuitively understood as convexity between a reference point $x$ and a global minimizer $x ^ { * }$ . Such a property ensures that the negative gradient $- \nabla h ( x )$ points to the desired direction $x ^ { * } - x$ for minimization.
91
+
92
+ Next, we define the notion of epochwise star-convex path, which requires the star-convexity to be held cumulatively over each epoch.
93
+
94
+ Definition 1 (Epochwise star-convex path). We call a path generated by SGD epochwise star-convex if it satisfies: For all epochs $B = 0 , 1 , \ldots$ and for a fixed $x ^ { \ast } \in \mathcal { X } ^ { \ast }$ (see Observation 1 for definition),
95
+
96
+ $$
97
+ \sum _ { k = n B } ^ { n ( B + 1 ) - 1 } \left[ \ell _ { \xi _ { k } } ( x _ { k } ) - \ell _ { \xi _ { k } } ( x ^ { * } ) + \langle x ^ { * } - x _ { k } , \nabla \ell _ { \xi _ { k } } ( x _ { k } ) \rangle \right] \leq 0 .
98
+ $$
99
+
100
+ We note that the property introduced by Definition 1 is not about the landscape geometry of a loss function, which can be complex as observed in the training loss curves shown in Figure 1. Rather, it characterizes the interaction between the algorithm and the loss function along the optimization path. Such a property is generally weaker than the global star-convexity, and is observed to be held in practical neural network training (see Section 3.3).
101
+
102
+ Based on Definition 1, we obtain the following property of SGD.
103
+
104
+ Theorem 1 (Epochwise diminishing distance). Let Assumption 1 hold and apply SGD with learning rate $\begin{array} { r } { \eta < { \frac { 1 } { L } } } \end{array}$ to solve problem $( P )$ . Assume SGD follows an epochwise star-convex path for a certain $x ^ { * } \in \mathcal { X } ^ { * }$ . Then, the variable sequence $\{ x _ { k } \} _ { k }$ generated by SGD satisfies, for all epochs $B = 0 , 1 , . . . ,$
105
+
106
+ $$
107
+ \| x _ { n ( B + 1 ) } - x ^ { * } \| \leq \| x _ { n B } - x ^ { * } \| .
108
+ $$
109
+
110
+ Theorem 1 proves that the variable sequence generated by SGD approaches a global minimizer at an epoch level, which is consistent with the empirical observations made in Figure 1. Therefore, the property of epochwise star-convex path of SGD is sufficient to explain such desirable empirical observations, although the loss function can be highly nonconvex and has complex landscape.
111
+
112
+ Under the cyclic sampling scheme with reshuffle, SGD samples every data sample once per epoch. Consider the loss $\ell _ { v }$ on the $v$ -th data sample for a fixed $v \in \{ 1 , 2 , . . . , n \}$ . One can check that the iterations in which the loss $\ell _ { v }$ is sampled form a subsequence $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ , where $\pi _ { B } ^ { - 1 }$ is the inverse permutation mapping of $\pi _ { B }$ , i.e., $\pi _ { B } ^ { - 1 } ( u ) = v$ if and only if $\pi _ { B } ( v ) = u$ . Next, we characterize the convergence properties of these subsequences corresponding to the loss functions on individual data samples.
113
+
114
+ Theorem 2 (Minimizing subsequences). Under the same settings as those of Theorem 1, the subsequences $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ for $v = 1 , . . . , n$ satisfy
115
+
116
+ 1. They are minimizing sequences for the corresponding loss functions, i.e.,
117
+
118
+ $$
119
+ \operatorname* { l i m } _ { B \to \infty } \ell _ { v } ( x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } ) = \operatorname* { i n f } _ { x \in \mathbb { R } ^ { d } } \ell _ { v } ( x ) , \quad \forall v \in \{ 1 , . . . , n \} .
120
+ $$
121
+
122
+ 2. Every limit point of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ is in $\mathcal { X } _ { v } ^ { \ast }$
123
+
124
+ Theorem 2 characterizes the limiting behavior of the subsequences that correspond to the loss functions on individual data samples. Essentially, the results in items 1 and 2 show that each subsequence $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ is a minimizing sequence for the corresponding loss $\ell _ { v }$ .
125
+
126
+ # DISCUSSION
127
+
128
+ We note that Theorems 1 and 2 characterize the epochwise convergence property of SGD in a deterministic way. The underlying technical reason is that the common global minimizer structure in Observation 1 suppresses the randomness induced by sampling and reshuffling of SGD, and ensures a common direction along which SGD can approach the global minimum on all individual data samples. Such a result is very different from traditional understanding of SGD where randomness and variance play a central role Nemirovski et al. (2009); Ghadimi et al. (2016).
129
+
130
+ # 3.3 VERIFYING EPOCHWISE STAR-CONVEX PATH OF SGD
131
+
132
+ In this subsection, we conduct experiments to validate the epochwise star-convex path of SGD introduced in Definition 1.
133
+
134
+ We train the aforementioned three types of neural networks, i.e., MLP, Alexnet and Inception, on CIFAR10 Krizhevsky (2009) and MNIST Lecun et al. (1998) dataset using SGD. The hyperparameter settings are the same as those mentioned in Section 3.1. We train these networks for a sufficient number of epochs to achieve a near-zero training loss (i.e., near-global minimum). We record the variable sequence generated by SGD along the entire algorithm path, and set $x ^ { * }$ to be the final output of SGD. Then, we evaluate the value of the summation term in Definition 1 for each epoch. The value of this summation term for each epoch $B$ is denoted as residual $e _ { B }$ . By Definition 1, SGD path in the $B$ -th epoch is epochwise star-convex provided that $e _ { B } < 0$ .
135
+
136
+ Figure 2 shows the results of our experiments. In all subfigures, the red horizontal curve denotes the zero value baseline, and the other curve denotes the residual $e _ { B }$ . It can be seen from Figure 2 that, on the MNIST dataset (second row), the entire path of SGD satisfies epochwise star-convexity for all three networks. On the CIFAR10 dataset (first row), we observe an epochwise star-convex path of SGD after several epochs of the initial phase of training. This can be due to the more complex landscape of the loss function on the CIFAR10 dataset, so that it takes SGD several epochs to enter a basin of attraction of the global minimum.
137
+
138
+ Our empirical findings strongly support the validity of the epochwise star-convex path of SGD in Definition 1. Therefore, Theorem 1 establishes an empirically-verified theory for characterizing the convergence property of SGD in training neural networks at an epoch level. In particular, it is well justified to successfully explain the stable epochwise convergence behavior observed in Figure 1.
139
+
140
+ ![](images/504d72f48c6e375be614122b28d35ba6f006dbaf2772a5ec1de37cc2abbedbc6.jpg)
141
+ Figure 2: Verification of epochwise star-convex path.
142
+
143
+ # 4 CONVERGENCE TO A GLOBAL MINIMIZER
144
+
145
+ The result developed in Theorem 1 shows that the variable sequence generated by SGD monotonically approaches a global minimizer at an epoch level. However, it does not guarantee the convergence of the variable sequence to a global minimizer (which requires the distance between SGD iterates and the global minimizer reduces to zero). We further explore such a convergence issue in the following two subsections. We first define a notion of an iterationwise star-convex path for SGD, based on which we formally establish the convergence of SGD to a global minimizer. Then, we provide empirical evidences to support the satisfaction of the iterationwise star-convex path by SGD.
146
+
147
+ # 4.1 ITERATIONWISE STAR-CONVEX PATH
148
+
149
+ We introduce the following definition of an iterationwise star-convex path for SGD.
150
+
151
+ Definition 2 (Iterationwise star-convex path). We call a path generated by SGD iterationwise starconvex if it satisfies: For all $k = 0 , 1 , \ldots$ and for every ${ \boldsymbol { x } } ^ { * } \in \mathcal { X } _ { \xi _ { k } } ^ { * }$ ,
152
+
153
+ $$
154
+ \ell _ { \xi _ { k } } ( x _ { k } ) - \ell _ { \xi _ { k } } ( x ^ { * } ) + \langle x ^ { * } - x _ { k } , \nabla \ell _ { \xi _ { k } } ( x _ { k } ) \rangle \leq 0 .
155
+ $$
156
+
157
+ Compared to Definition 1 which defines the star-convex path of SGD at an epoch level, Definition 2 characterizes the star-convexity of SGD along the optimization path at a more refined iteration level. As we show in the result below, such a stronger property helps to regularize the convergence property of SGD at an iteration level, and is sufficient to guarantee convergence.
158
+
159
+ Theorem 3 (Convergence to global minimizer). Let Assumption 1 hold and apply SGD with learning rate $\begin{array} { r } { \eta < { \frac { 1 } { L } } } \end{array}$ to solve problem $( P )$ . Assume SGD follows an iterationwise star-convex path. Then, the sequence $\{ x _ { k } \} _ { k }$ generated by SGD converges to a global minimizer.
160
+
161
+ Theorem 3 formally establishes the convergence of SGD to a global minimizer along an iterationwise star-convex path. The main idea of the proof is to establish a consensus of the minimizing subsequences that are studied in Theorem 2, i.e., all these subsequences converge to the same limit – a common global minimizer of the loss functions over all the data samples. More specifically, our proof strategy consists of three steps: 1) show that every limit point of each subsequence is a common global minimizer; 2) prove that each subsequence has a unique limit point; 3) show that all these subsequences share the same unique limit point, which is a common global minimizer. We believe that the proof technique here can be of independent interest to the community.
162
+
163
+ Our analysis in Theorem 3 characterizes the intrinsic deterministic convergence property of SGD, which is an alternative view of the SGD path: It performs gradient descent on an individual loss component at each iteration. The star-convexity along the iteration path pushes the algorithm towards the common global minimizer. Such progress is shared across all data samples in every iteration and eventually leads to the convergence of SGD.
164
+
165
+ We also note that the convergence result in Theorem 3 is based on a constant learning rate, which is typically used in practical training. This is very different from and much more desirable than the diminishing learning rate adopted in traditional analysis of SGD Nemirovski et al. (2009), which is a necessity to mitigate the negative effects caused by the variance of SGD. Furthermore, Theorem 3 shows that SGD converges to a common global minimizer where the gradient of loss function on all data samples vanish, and we therefore obtain the following interesting corollary.
166
+
167
+ Corollary 1 (Vanishing variance). Under the same settings of those of Theorem 3, the variance of stochastic gradients sampled by SGD converges to zero as iteration k goes to infinity.
168
+
169
+ Thus, upon convergence, the common global minimizer structure in deep learning leads to a selfvariance-reducing effect on SGD. Such a desirable effect is the core property of stochastic variancereduced algorithms that reduces sample complexity Johnson & Zhang (2013). Hence, this justifies in part that SGD is a sample-efficient algorithm in learning deep models.
170
+
171
+ # DISCUSSION
172
+
173
+ We want to mention that many nonconvex sensing models have an underlying true signal and hence naturally have common global minimizers, e.g., phase retrieval Zhang et al. (2017b), low-rank matrix recovery Tu et al. (2016), blind deconvolution Li et al. (2018), etc. This is also the case for some neural network sensing problems Zhong et al. (2017). Also, these problems have been shown to satisfy the so-called gradient dominance condition and the regularity condition locally around the global minimizers Zhou et al. (2016); Tu et al. (2016); Li et al. (2018); Zhong et al. (2017); Zhou & Liang (2017). These two geometric properties imply the star-convexity of the objective function, which necessarily imply the epochwise and iterationwise star-convex path of SGD. Therefore, our results also have implications on the convergence guarantee of SGD for solving these problems as well.
174
+
175
+ ![](images/a9aa078b572784a7e6a40bb7aee0272a907ca6a07fd29593831b62eadcfa463b.jpg)
176
+ Figure 3: Verification of iterationwise star-convex path under crossentropy loss.
177
+
178
+ # 4.2 VERIFYING ITERATIONWISE STAR-CONVEX PATH OF SGD
179
+
180
+ In this subsection, we conduct experiments to validate the iterationwise star-convex path of SGD introduced in Definition 2.
181
+
182
+ We train the aforementioned three types of neural networks, i.e., MLP, Alexnet and Inception, on CIFAR10 and MNIST datasets using SGD. The hyperparameter settings are the same as those mentioned in Section 3.1. We train these networks for a sufficient number of epochs to achieve a near-zero training loss. Due to the demanding requirement for storage, we record the variable sequence generated by SGD for all iterations in every tenth epoch, and set $x ^ { * }$ to be the final output of SGD. Then, for all the iterations in every tenth epoch, we evaluate the corresponding values of the terms on the left hand side in eq. (2) (denoted as $e _ { k }$ ). Then, we report the fraction of number of iterations that satisfy the iterationwise star-convexity (i.e., $e _ { k } < 0$ ) within such an epoch.
183
+
184
+ In all subfigures of Figure 3, the red curves denote the training loss and the blue bars denote the fraction of iterations that satisfy the iterationwise star-convexity within such an epoch. It can be seen from Figure 3 that, for all three networks on the MNIST dataset (second row), the path of SGD satisfies iterationwise star-convexity for most of the iterations, except in the last several epochs where the training loss (see the red curve) already well saturates at zero value. In fact, the convergence is typically observed well before such a point. This is because when the training loss is very close to the global minimum (i.e., the gradient is very close to zero), small perturbation of the landscape easily deviates the SGD path from the desired star-convexity. Hence, our experiments demonstrate that SGD follows the iterationwise star-convex path up to the convergence occurs. Furthermore, on the CIFAR10 dataset (first row of Figure 3), we observe a strong evidence for the iterationwise star-convex path of SGD after several epochs of the initial phase of training. This implies that the loss landscape on a more challenging dataset can be more complex.
185
+
186
+ Our empirical findings support the validity of the iterationwise star-convex path of SGD in a major part of practical training processes. Therefore, our convergence guarantee developed in Theorem 3 for SGD well justifies its practical success.
187
+
188
+ ![](images/b9d30d0acc1162b6b9829896132d8278b9aff55087890619dc53da069cd3d924.jpg)
189
+ Figure 4: Iterationwise path on local minimum.
190
+
191
+ We next conduct further experiments to demonstrate that SGD follows the iterationwise star-convex path likely only for successful trainings to zero loss value, where a shared global minimum among all individual loss functions is achieved. To verify such a thought, we train an MLP using SGD on the CIFAR10 dataset under various settings with the number of hidden neurons ranging from 16 to 256. The results are shown in Figure 4, from which we observe that the training loss (i.e., red curves) converges to a non-zero value when the number of hidden neurons is small, implying that the algorithm likely attains a sub-optimal point which is not a common global minimum shared by all individual loss functions. In such trainings, we observe that the corresponding SGD paths have much fewer iterations satisfying the iterationwise star-convexity compared to the successful training instances shown in Figure 3. Thus, such empirical findings partially suggest that iterationwise star-convex SGD path more likely occurs when SGD can find a common global minimum, e.g., training overparameterized networks to zero loss value.
192
+
193
+ # 5 CONCLUSION
194
+
195
+ In this paper, we propose an epochwise star-convex property of the optimization path of SGD, which we validate in various experiments. Based on such a property, we show that SGD approaches a global minimum at an epoch level. Then, we further examine the property at an iteration level, and empirically show that it is satisfied in a major part of training processes. As we prove theoretically, such a more refined property guarantees the convergence of SGD to a global minimum, and the algorithm enjoys a self-variance-reducing effect. We believe that our study sheds light on the success of SGD in training neural networks from both empirical aspect and theoretical aspect.
196
+
197
+ # REFERENCES
198
+
199
+ A. Blum and R. L. Rivest. Training a 3-node neural network is NP-complete. In Proc. 1st Annual Workshop on Computational Learning Theory (COLT), pp. 9–18, 1988.
200
+ L. Bottou, F. E. Curtis, and J. Nocedal. Optimization methods for large-scale machine learning. ArXiv: 1606.04838, June 2016.
201
+ H. Daneshmand, J. M. Kohler, A. Lucchi, and T. Hofmann. Escaping saddles with stochastic gradients. In Proc. International Conference on Machine Learning (ICML), 2018.
202
+ A. Defazio, F. Bach, and S. Lacoste-Julien. SAGA: A fast incremental gradient method with support for non-strongly convex composite objectives. In Proc. Advances in Neural Information Processing Systems (NIPS), pp. 1646–1654. 2014.
203
+ J. Duchi, E. Hazan, and Y. Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research (JMLR), 12:2121–2159, July 2011.
204
+ R. Ge, F. Huang, C. Jin, and Y. Yuan. Escaping from saddle points — online stochastic gradient for tensor decomposition. In Proc. 28th Conference on Learning Theory (COLT), volume 40, pp. 797–842, 03–06 Jul 2015.
205
+ S. Ghadimi and G. Lan. Accelerated gradient methods for nonconvex nonlinear and stochastic programming. Mathematical Programming, 156(1):59–99, Mar 2016.
206
+ S. Ghadimi, G. Lan, and H. Zhang. Mini-batch stochastic approximation methods for nonconvex stochastic composite optimization. Mathematical Programming, 155(1):267–305, Jan 2016.
207
+ C. Jin, R. Ge, P. Netrapalli, S. M. Kakade, and M. I. Jordan. How to escape saddle points efficiently. In Proc. 34th International Conference on Machine Learning (ICML), volume 70, pp. 1724–1732, Aug 2017.
208
+ R. Johnson and T. Zhang. Accelerating stochastic gradient descent using predictive variance reduction. In Proc. 26th International Conference on Neural Information Processing Systems (NIPS), pp. 315–323, 2013.
209
+ D. Kingma and J. Ba. Adam: A method for stochastic optimization. Proc. International Conference on Learning Representations (ICLR), 12 2014.
210
+ B. Kleinberg, Y. Li, and Y. Yuan. An alternative view: When does SGD escape local minima? In Proc. 35th International Conference on Machine Learning (ICML), volume 80, pp. 2698–2707, Jul 2018.
211
+ A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
212
+ A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. Communications of the ACM, 60(6):84–90, May 2017.
213
+ G. Lan. An optimal method for stochastic composite optimization. Mathematical Programming, 133 (1):365–397, Jun 2012.
214
+ Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, Nov 1998.
215
+ Q. Li, Y. Zhou, Y. Liang, and P. K. Varshney. Convergence analysis of proximal gradient with momentum for nonconvex optimization. In Proc. 34th International Conference on Machine Learning (ICML), volume 70, pp. 2111–2119, Aug 2017.
216
+ X. Li, S. Ling, T. Strohmer, and K. Wei. Rapid, robust, and reliable blind deconvolution via nonconvex optimization. Applied and Computational Harmonic Analysis, 2018.
217
+ S. Linnainmaa. Taylor expansion of the accumulated rounding error. Numerical Mathematics, 16: 146–160, 1976.
218
+ E. Moulines and F. R Bach. Non-asymptotic analysis of stochastic approximation algorithms for machine learning. In Proc. Advances in Neural Information Processing Systems (NIPS), 2011.
219
+ D. Needell, R. Ward, and N. Srebro. Stochastic gradient descent, weighted sampling, and the randomized Kaczmarz algorithm. In Proc. Advances in Neural Information Processing Systems (NIPS), 2014.
220
+ A. Nemirovski, A. Juditsky, G. Lan, and A. Shapiro. Robust stochastic approximation approach to stochastic programming. SIAM Journal on Optimization, 19(4):1574–1609, 2009.
221
+ Y. Nesterov and B. Polyak. Cubic regularization of Newton’s method and its global performance. Mathematical Programming, 2006.
222
+ S. Reddi, M. Zaheer, S. Sra, B. Poczos, F. Bach, R. Salakhutdinov, and A. Smola. A generic approach for escaping saddle points. In Proc. 21st International Conference on Artificial Intelligence and Statistics (AISTATS), volume 84, pp. 1233–1242, Apr 2018a.
223
+ S. J. Reddi, S. Kale, and S. Kumar. On the convergence of Adam and beyond. In Proc. International Conference on Learning Representations (ICLR), 2018b.
224
+ H. Robbins and S. Monro. A stochastic approximation method. The Annals of Mathematical Statistics, 22(3):400–407, Sep 1951.
225
+ M. Schmidt, N. Le Roux, and F. Bach. Minimizing finite sums with the stochastic average gradient. Mathematical Programming, 162(1):83–112, Mar 2017.
226
+ S. Tu, R. Boczar, M. Simchowitz, M. Soltanolkotabi, and B. Recht. Low-rank solutions of linear matrix equations via Procrustes flow. In Proc. 33rd International Conference on Machine Learning (ICML), pp. 964–973, 2016.
227
+ Z. Wang, K. Ji, Y. Zhou, Y. Liang, and V. Tarokh. SpiderBoost: A class of faster variance-reduced algorithms for nonconvex optimization. ArXiv:1810.10690, October 2018a.
228
+ Z. Wang, Y. Zhou, Y. Liang, and G. Lan. Sample complexity of stochastic variance-reduced cubic regularization for nonconvex optimization. ArXiv:1802.07372v1, February 2018b.
229
+ C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning requires rethinking generalization. In Proc. International Conference on Learning Representations (ICLR), 2017a.
230
+ H. Zhang, Y. Zhou, Y. Liang, and Y. Chi. A nonconvex approach for phase retrieval: reshaped Wirtinger flow and incremental algorithms. Journal of Machine Learning Research (JMLR), 18 (141):1–35, 2017b.
231
+ K. Zhong, Z. Song, P. Jain, P. L. Bartlett, and I. S. Dhillon. Recovery guarantees for one-hidden-layer neural networks. In Proc. 34th International Conference on Machine Learning (ICML), volume 70, pp. 4140–4149, Aug 2017.
232
+ Y. Zhou and Y. Liang. Characterization of gradient dominance and regularity conditions for neural networks. ArXiv:1710.06910v2, Oct 2017.
233
+ Y. Zhou and Y. Liang. Critical points of linear neural networks: Analytical forms and landscape properties. In Proc. International Conference on Learning Representations (ICLR), 2018.
234
+ Y. Zhou, H. Zhang, and Y. Liang. Geometrical properties and accelerated gradient solvers of nonconvex phase retrieval. In Proc. 54th Annual Allerton Conference on Communication, Control, and Computing (Allerton), pp. 331–335, 2016.
235
+ Y. Zhou, Z. Wang, and Y. Liang. Convergence of cubic regularization for nonconvex optimization under KL property. In Proc. Advances in Neural Information Processing Systems (NIPS), 2018.
236
+
237
+ # Supplementary Materials
238
+
239
+ A PROOF OF THEOREM 1
240
+
241
+ Observe that the SGD update can be rewritten as the following optimization step
242
+
243
+ $$
244
+ x _ { k + 1 } = \underset { u \in \mathbb { R } ^ { d } } { \mathrm { a r g m i n } } \Big \{ \underset { \ b { \xi } _ { k } } { \ell } ( x _ { k } ) + \langle u - x _ { k } , \nabla \ell _ { \xi _ { k } } ( x _ { k } ) \rangle + \frac { 1 } { 2 \eta } \| u - x _ { k } \| ^ { 2 } \Big \} .
245
+ $$
246
+
247
+ Note that the function $f _ { \xi _ { k } } ( u )$ is linear, and we further obtain that for all $x ^ { \ast } \in \mathcal { X } _ { \xi _ { k } } ^ { \ast }$
248
+
249
+ $$
250
+ \begin{array} { r l } { \eta \big ( f _ { \xi _ { k } } ( x _ { k + 1 } ) - f _ { \xi _ { k } } ( x ^ { * } ) \big ) = \eta \langle \nabla \ell _ { \xi _ { k } } ( x _ { k } ) , x _ { k + 1 } - x ^ { * } \rangle } & { } \\ { \overset { ( i ) } { = } \langle x _ { k } - x _ { k + 1 } , x _ { k + 1 } - x ^ { * } \rangle } & { } \\ { } & { = \cfrac { 1 } { 2 } \Big ( \| x _ { k } - x ^ { * } \| ^ { 2 } - \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } - \| x _ { k + 1 } - x _ { k } \| ^ { 2 } \Big ) , } \end{array}
251
+ $$
252
+
253
+ where (i) uses the update rule of SGD. Rearranging the above inequality yields that
254
+
255
+ $$
256
+ f _ { \xi _ { k } } ( x _ { k + 1 } ) \leq f _ { \xi _ { k } } ( x ^ { * } ) + \frac { 1 } { 2 \eta } \Big ( \| x _ { k } - x ^ { * } \| ^ { 2 } - \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } - \| x _ { k + 1 } - x _ { k } \| ^ { 2 } \Big ) .
257
+ $$
258
+
259
+ On the other hand, by smoothness of the loss function, we obtain that
260
+
261
+ $$
262
+ \begin{array} { r l } & { \ell _ { \xi _ { k } } ( x _ { k + 1 } ) \leq \ell _ { \xi _ { k } } ( x _ { k } ) + \langle x _ { k + 1 } - x _ { k } , \nabla \ell _ { \xi _ { k } } ( x _ { k } ) \rangle + \displaystyle \frac { L } { 2 } \| x _ { k + 1 } - x _ { k } \| ^ { 2 } } \\ & { \qquad = f _ { \xi _ { k } } ( x _ { k + 1 } ) + \displaystyle \frac { L } { 2 } \| x _ { k + 1 } - x _ { k } \| ^ { 2 } } \\ & { \qquad \overset { ( i ) } { \leq } f _ { \xi _ { k } } ( x ^ { * } ) + \displaystyle \frac { 1 } { 2 \eta } ( \| x _ { k } - x ^ { * } \| ^ { 2 } - \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } ) - ( \displaystyle \frac { 1 } { 2 \eta } - \displaystyle \frac { L } { 2 } ) \| x _ { k + 1 } - x _ { k } \| ^ { 2 } } \\ & { \qquad \overset { ( i i ) } { \leq } f _ { \xi _ { k } } ( x ^ { * } ) + \displaystyle \frac { 1 } { 2 \eta } ( \| x _ { k } - x ^ { * } \| ^ { 2 } - \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } ) , } \end{array}
263
+ $$
264
+
265
+ where (i) follows from eq. (3) and (ii) is due to the choice of learning rate. Summing the above inequality over $k$ from $n B$ to $n ( B + 1 ) - 1$ yields that, for every $x ^ { * } \in \mathcal { X } ^ { * }$ in Definition 1,
266
+
267
+ $$
268
+ \begin{array} { r } { \| x _ { n ( B + 1 ) } - x ^ { * } \| ^ { 2 } \leq \| x _ { n B } - x ^ { * } \| ^ { 2 } - \displaystyle \sum _ { k = n B \atop n ( B + 1 ) - 1 } ^ { n ( B + 1 ) - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - f _ { \xi _ { k } } ( x ^ { * } ) \big ) } \\ { \leq \| x _ { n B } - x ^ { * } \| ^ { 2 } - \displaystyle \sum _ { k = n B } ^ { n ( B + 1 ) - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - \ell _ { \xi _ { k } } ( x ^ { * } ) \big ) , } \end{array}
269
+ $$
270
+
271
+ where the last inequality follows from the star-convex path of SGD in Definition 1. The desired result follows from the above inequality and the fact that $\ell _ { \xi _ { k } } ( x ^ { * } ) = \operatorname* { i n f } _ { \boldsymbol { u } \in \mathbb { R } ^ { d } } \ell _ { \xi _ { k } } ( \boldsymbol { u } )$ for all $x ^ { * } \in \mathcal { X } ^ { * }$ Moreover, we conclude that the sequence $\{ x _ { n B } \} _ { B }$ is bounded. By continuity of $\nabla \ell _ { i }$ for all $i =$ $1 , . . . , n$ and the update rule of SGD, we further conclude that the entire sequence $\{ \boldsymbol { x } _ { k } \} _ { k }$ is bounded.
272
+
273
+ # B PROOF OF THEOREM 2
274
+
275
+ We first collect some facts. Recall that ${ { \mathcal X } ^ { * } } = \cap _ { i = 1 } ^ { n } { { \mathcal X } _ { i } ^ { * } }$ is non-empty and bounded. Consider any fixed $t \in \{ 0 , \ldots , n - 1 \}$ and recall that $k = n B + t$ , $\xi _ { k } = \pi _ { B } ( t + 1 )$ . Then, one can check that the iterations $k$ with $\xi _ { k } = \dot { v } \in \{ 1 , 2 , . . . , n \}$ form the subsequence $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) - 1 } \} _ { B }$ .
276
+
277
+ Next, we prove item 1. Fix any $t \in \{ 0 , \ldots , n - 1 \}$ and sum eq. (4) over $k$ from $n B + t$ to $n ( B + 1 ) + t - 1$ yields that, for every $x ^ { * } \in \mathcal { X } ^ { * }$ in Definition 1,
278
+
279
+ $$
280
+ \| x _ { n ( B + 1 ) + t } - x ^ { * } \| ^ { 2 } \leq \| x _ { n B + t } - x ^ { * } \| ^ { 2 } - \sum _ { k = n B + t } ^ { n ( B + 1 ) + t - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - f _ { \xi _ { k } } ( x ^ { * } ) \big ) .
281
+ $$
282
+
283
+ Further summing the above inequality over $B$ from 0 to $K$ and rearranging, we obtain that
284
+
285
+ $$
286
+ \begin{array} { r l } { | x _ { n } ( K + 1 ) + t - x ^ { * } | | ^ { 2 } \le \| x _ { t } - x ^ { * } \| ^ { 2 } - } & { \displaystyle \sum _ { k = n } ^ { n ( K + 1 ) - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - f _ { \xi _ { k } } ( x ^ { * } ) \big ) } \\ & { \qquad - \displaystyle \sum _ { k = t } ^ { n - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - f _ { \xi _ { k } } ( x ^ { * } ) \big ) - \displaystyle \sum _ { k = n ( K + 1 ) } ^ { n ( K + 1 ) + t - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - f _ { \xi _ { k } } ( x ^ { * } ) \big ) , } \\ { \le \| x _ { t } - x ^ { * } \| ^ { 2 } - } & { \displaystyle \sum _ { k = n } ^ { n ( K + 1 ) - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - \ell _ { \xi _ { k } } ( x ^ { * } ) \big ) } \\ & { \qquad - \displaystyle \sum _ { k = t } ^ { n - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - f _ { \xi _ { k } } ( x ^ { * } ) \big ) - \displaystyle \sum _ { k = n ( K + 1 ) } ^ { n ( K + 1 ) + t - 1 } 2 \eta \big ( \ell _ { \xi _ { k } } ( x _ { k + 1 } ) - f _ { \xi _ { k } } ( x ^ { * } ) \big ) , } \end{array}
287
+ $$
288
+
289
+ where the last inequality follows from the the star-convex path of SGD in Definition 1. Consider the term $\ell _ { \xi _ { k } } ( x _ { k + 1 } ) - \ell _ { \xi _ { k } } ( x ^ { * } )$ in eq. (6) along the iterations with $\xi _ { k } = v \in \{ 1 , 2 , . . . , n \}$ . Such term can be rewritten as $\ell _ { v } ( \bar { x } _ { n B + \pi _ { B } ^ { - 1 } ( v ) } ) - \ell _ { v } ( x ^ { * } )$ . Suppose for certain $v \in \{ 1 , 2 , . . . , n \}$ the sequence $\{ \ell _ { v } ( x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } ) \} _ { B }$ does not converge to its global minimum $\operatorname* { i n f } _ { \substack { x \in \mathbb { R } ^ { d } } } \ell _ { v } ( x )$ . Then, by the cyclic sampling scheme with reshuffle, we conclude that the first summation term in eq. (6) diverges to $+ \infty$ as $K \infty$ . Also, note that the last two summation terms have finite number of elements, which are all bounded as $\{ \boldsymbol { x } _ { k } \} _ { k }$ is bounded. Therefore, we conclude that the sequences $\{ x _ { n B + t } \} _ { B }$ for $t = 0 , . . . , n - 1$ converge to $x ^ { * }$ for all candidates $x ^ { * } \in \mathcal { X } ^ { * }$ in Definition 1. Next, consider the case in which there are multiple such candidate $x ^ { * } s$ in Definition 1. Then, the previous sentence states that $\{ x _ { n B + t } \} _ { B }$ converges to multiple limits, which cannot happen for a convergent sequence. This leads to a contradiction. Consider the other case that there is only one such candidate $x ^ { * }$ in Definition 1. Then, we conclude that all the sequences $\{ x _ { n B + t } \} _ { B }$ for $t = 0 , . . . , n - 1$ converge to $x ^ { * }$ , i.e., the entire sequence $\{ x _ { k } \} _ { k }$ converges to such unique common global minimizer. This contradicts with our assumption that $\{ \ell _ { v } ( x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } ) \} _ { B }$ does not converge to $\operatorname* { i n f } _ { \substack { x \in \mathbb { R } ^ { d } } } \ell _ { v } ( x )$ for certain $v$ . Combining both cases, we obtain the desired claim of item 1.
290
+
291
+ Next, we prove item 2. Note that sequence $\{ x _ { k } \} _ { k }$ is bounded . Fix any $v \in \{ 1 , \ldots , n \}$ and consider any limit point $z _ { v }$ of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ , i.e., $x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( v ) } \stackrel { j } { \to } z _ { v }$ along a proper subsequence. From item 1 we know that $\begin{array} { r } { \ell _ { v } \big ( x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( v ) } \big ) \stackrel { j } { \to } \operatorname* { i n f } _ { x \in \mathbb { R } ^ { d } } \ell _ { v } ( x ) } \end{array}$ . This, together with the continuity of the loss function, implies that $z _ { v } \in \mathcal { X } _ { v } ^ { * }$ for all $v$ .
292
+
293
+ # C PROOF OF THEOREM 3
294
+
295
+ Recall that eq. (4) shows that, for all $x ^ { \ast } \in \mathcal { X } _ { \xi _ { k } } ^ { \ast }$
296
+
297
+ $$
298
+ \begin{array} { r l r } & { } & { \ell _ { \xi _ { k } } ( x _ { k + 1 } ) \le f _ { \xi _ { k } } ( x ^ { * } ) + \displaystyle \frac { 1 } { 2 \eta } \Big ( \| x _ { k } - x ^ { * } \| ^ { 2 } - \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } \Big ) } \\ & { } & { \stackrel { ( i ) } { \le } \ell _ { \xi _ { k } } ( x ^ { * } ) + \displaystyle \frac { 1 } { 2 \eta } \Big ( \| x _ { k } - x ^ { * } \| ^ { 2 } - \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } \Big ) , } \end{array}
299
+ $$
300
+
301
+ where (i) follows from the iterationwise star-convex path in Definition 2. Since $\ell _ { \xi _ { k } } ( x _ { k + 1 } ) - \ell _ { \xi _ { k } } ( x ^ { * } ) \geq$ 0, we conclude that for all $k = 0 , 1 , \ldots$ and every $x ^ { \ast } \in \mathcal { X } _ { \xi _ { k } } ^ { \ast }$ ,
302
+
303
+ $$
304
+ \lVert x _ { k + 1 } - x ^ { * } \rVert \leq \lVert x _ { k } - x ^ { * } \rVert .
305
+ $$
306
+
307
+ Next, consider any $v \in \{ 1 , . . . , n \}$ , we show that every limit point $z _ { v }$ of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ is in $\mathcal { X } ^ { \ast }$ . By eq. (9), we know that $\{ \| x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } - x ^ { * } \| \} _ { B }$ is decreasing. Consider a limit point $z _ { v }$ associated with the subsequence such that $x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( v ) } \to z _ { v }$ . Then, for all $B _ { j } \geq B$ we know that, for any fixed $x ^ { * } \in \mathcal { X } ^ { * }$ ,
308
+
309
+ $$
310
+ \| z _ { v } - x ^ { * } \| \overset { j } { } \| x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( v ) } - x ^ { * } \| \leq \| x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } - x ^ { * } \| .
311
+ $$
312
+
313
+ Next, we prove by contradiction. Suppose that $z _ { v } \notin \mathcal { X } ^ { \ast }$ . Then, eq. (10) implies that $\parallel x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } -$ $x ^ { * } \Vert > 0$ for all large $B$ and any $x ^ { \ast } \in \mathcal { X } ^ { \ast }$ . Combining this conclusion with item 2 of Theorem 2, it follows that all the limit points of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ are in ${ \mathcal { X } } _ { v } ^ { * } \mid { \mathcal { X } } ^ { * }$ . Since ${ { \mathcal X } ^ { * } } = \cap _ { i = 1 } ^ { n } { { \mathcal X } _ { i } ^ { * } }$ , it follows that the limit points of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( u ) } \} _ { B }$ are different from those of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ for any $u \ne v$ . Now consider a subsequence $x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( v ) } \to z _ { v } \in \mathcal { X } _ { v } ^ { * } \setminus \mathcal { X } ^ { * }$ . Also, consider the subsequence $\{ x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( u ) } \} _ { j }$ with bseq $u \ne v$ he of lic samplisuch that hat with probability(this occurs with a $B _ { j ( s ) }$ $B _ { j }$ $\pi _ { B _ { j ( s ) } } ^ { - 1 } ( u ) = \pi _ { B _ { j ( s ) } } ^ { - 1 } ( v ) + 1$ constant probability in every epoch). Applying eq. (9) along this subsequence, we conclude that
314
+
315
+ $$
316
+ \begin{array} { r } { \| x _ { n B _ { j ( s ) } + \pi _ { B _ { j ( s ) } } ^ { - 1 } ( u ) } - z _ { v } \| \leq \| x _ { n B _ { j ( s ) } + \pi _ { B _ { j ( s ) } } ^ { - 1 } ( v ) } - z _ { v } \| \overset { j } { } 0 . } \end{array}
317
+ $$
318
+
319
+ Let j → ∞ in the above equation, we conclude that xnBj(s)+π−1Bj(s)(u ) → zv , i.e., zv is a limit point of $\{ x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( u ) } \} _ { B }$ . Note that $z _ { v }$ is a limit point of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ . This contradicts our previous conclusion that the limit points of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( u ) } \} _ { B }$ must be different from those of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ for $u \ne v$ . Thus, we must have for all $v = 1 , \ldots , n$ , every limit point $z _ { v }$ of $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ is in $\mathcal { X } ^ { \ast }$ Then, by eq. (9) we further conclude that for all $B = 0 , 1 , . . .$ .
320
+
321
+ $$
322
+ \| x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } - z _ { v } \| \leq \| x _ { n ( B - 1 ) + \pi _ { B - 1 } ^ { - 1 } ( v ) } - z _ { v } \| .
323
+ $$
324
+
325
+ Note that $x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( v ) } \overset { j } { \to } z _ { v }$ . Thus, for all $B \geq B _ { j }$ the above inequality implies that
326
+
327
+ $$
328
+ \begin{array} { r } { \| x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } - z _ { v } \| \le \| x _ { n B _ { j } + \pi _ { B _ { j } } ^ { - 1 } ( v ) } - z _ { v } \| \overset { j } { } 0 . } \end{array}
329
+ $$
330
+
331
+ This shows that $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ has a unique limit point $z _ { v }$ , which is an element of $\mathcal { X } ^ { \ast }$ . Next, consider the limits $z _ { u } , z _ { v } ( u \ne v )$ of the sequences $\{ x _ { n B + \pi _ { B } ^ { - 1 } ( u ) } \} _ { B } , \{ x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } \} _ { B }$ , respectively. By eq. (9) and the fact that $z _ { u } \in \mathcal { X } ^ { * }$ , we conclude that
332
+
333
+ $$
334
+ \begin{array} { r } { \| x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } - z _ { u } \| \le \| x _ { n ( B - 1 ) + \pi _ { B - 1 } ^ { - 1 } ( v ) } - z _ { u } \| \le \| x _ { n ( B - 2 ) + \pi _ { B - 2 } ^ { - 1 } ( u ) } - z _ { u } \| \overset { B } { \to } 0 . } \end{array}
335
+ $$
336
+
337
+ Thus, $x _ { n B + \pi _ { B } ^ { - 1 } ( v ) } z _ { u }$ , and we conclude that $z _ { v } = z _ { u }$ for all $v \neq u$ , i.e., the whole sequence $\{ x _ { k } \}$ has a unique limit point in $\mathcal { X } ^ { \ast }$ .
338
+
339
+ # D SUPPLEMENTARY EXPERIMENTS
340
+
341
+ In this section, we provide more experiments to illustrate the star-convexity property of the SGD path from other different aspects.
342
+
343
+ # Verification of epochwise star-convexity with different reference points
344
+
345
+ In Figure 5 we verify the epochwise star-convexity of the SGD path by setting the reference point $x ^ { * }$ to be the output of SGD at different intermediate epochs (i.e., 60,80,100,120 epochs), where the SGD has already saturated close to zero loss. The experiments are conducted by training the Alexnet and MLP on Cifar10 using SGD. As can be seen from Figure 5, the epochwise star-convexity still hold (i.e., $e _ { B } < 0$ ) after certain epochs in the initial training phase. This shows that the observed star-convex path does not depend on the choice of reference point (so long as they achieve near-zero loss).
346
+
347
+ ![](images/47b6aa52170926d76249d7e2630f5047ce2998413c192414bcaf31d053cf811c.jpg)
348
+ Figure 5: Verification of epochwise star-convexity when the reference point $x ^ { * }$ is taken at end of different epochs. Top plots correspond to the training of Alexnet with $x ^ { * }$ taken at 60th, 80th, 100th, and 120th epochs, and bottom plots correspond to the training of MLP with $x ^ { * }$ taken at 60th, 80th, $1 0 0 \mathrm { { t h } }$ , and $1 2 0 \mathrm { { t h } }$ epochs.
349
+
350
+ # Growth of weight norm in neural network training
351
+
352
+ In Figure 6, we present the growth of the $\ell _ { 2 }$ norm of network weights in training different neural networks on Cifar10 under the cross-entropy loss. It can be seen from the figure that the norm of the weights increases slowly (logarithmly) after the training loss achieves near-zero. This is because the gradient is nearly zero when the training is close to the global minimum, and therefore the updates of the weights are very small.
353
+
354
+ ![](images/1d3f0254a74c42f2b28e56e6beee460c762a4e53e11a64623288eb09a4b60294.jpg)
355
+ Figure 6: $\ell _ { 2 }$ norm of network weights and training loss of different networks.
356
+
357
+ # Verification of star-convexity under MSE loss
358
+
359
+ In Figure 7, we verify the epochwise star-convexity by training different networks on MNIST dataset under the MSE loss (i.e., $\ell _ { 2 }$ loss). We note that unlike the cross-entropy loss, zero value can be achieved by the MSE loss. We set the reference point $x ^ { * }$ to be the output of SGD at the 40th epoch. It can be seen from the figure that the residue $e _ { B }$ is negative along the entire optimization path, demonstrating that the SGD path satisfies the epochwise star-convexity under the MSE loss.
360
+
361
+ ![](images/6aba459d7f1438c7676dbf6225b82fff306f10712555be2b4ebc437c352d2b13.jpg)
362
+ Figure 7: Verification of epochwise star-convexity under MSE loss (i.e., $\ell _ { 2 }$ loss).
parse/train/BylIciRcYQ/BylIciRcYQ_content_list.json ADDED
@@ -0,0 +1,1693 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SGD CONVERGES TO GLOBAL MINIMUM IN DEEP LEARNING VIA STAR-CONVEX PATH ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 820,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yi Zhou∗, Junjie Yang†, Huishuai Zhang‡, Yingbin Liang§, Vahid Tarokh∗ ∗Duke University, †University of Science and Technology of China ‡Microsoft Research, Asia, §The Ohio State University ",
17
+ "bbox": [
18
+ 184,
19
+ 167,
20
+ 700,
21
+ 213
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 251,
32
+ 544,
33
+ 266
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Stochastic gradient descent (SGD) has been found to be surprisingly effective in training a variety of deep neural networks. However, there is still a lack of understanding on how and why SGD can train these complex networks towards a global minimum. In this study, we establish the convergence of SGD to a global minimum for nonconvex optimization problems that are commonly encountered in neural network training. Our argument exploits the following two important properties: 1) the training loss can achieve zero value (approximately), which has been widely observed in deep learning; 2) SGD follows a star-convex path, which is verified by various experiments in this paper. In such a context, our analysis shows that SGD, although has long been considered as a randomized algorithm, converges in an intrinsically deterministic manner to a global minimum. ",
40
+ "bbox": [
41
+ 233,
42
+ 285,
43
+ 764,
44
+ 438
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 472,
55
+ 336,
56
+ 488
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Training neural networks has been proven to be NP-hard decades ago Blum & Rivest (1988). At that time, the limited computation power makes neural network training a “mission impossible”. However, as the development of computing device achieves several revolutionary milestones (e.g. GPUs), deep neural networks are found to be practically trainable and can generalize well on real datasets Krizhevsky et al. (2017). At the same time, deep learning technique starts to beat the performance of other conventional approaches in a variety of challenging tasks, e.g., computer vision, classification, natural language processing, etc. ",
63
+ "bbox": [
64
+ 174,
65
+ 507,
66
+ 826,
67
+ 604
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Modern neural network training is typically performed by applying first-order algorithms such as stochastic gradient descent (SGD) (a.k.a backpropagation) (Linnainmaa, 1976) or its variants, e.g., Adam (Kingma & Ba, 2014), Adagrad (Duchi et al., 2011), etc. Traditional analysis of SGD in nonconvex optimization guarantees the convergence to a stationary point Bottou et al. (2016); Ghadimi et al. (2016). Recently, it has been shown that SGD has the capability to escape strict saddle points Ge et al. (2015); Jin et al. (2017); Reddi et al. (2018a); Daneshmand et al. (2018), and can escape even sharp local minima Kleinberg et al. (2018). While these works provide different insights towards understanding the performance of SGD, they cannot explain the success of SGD that has been widely observed in deep learning applications. Specifically, it is known that SGD is able to train a variety of deep neural networks to achieve zero training loss (either exactly or approximately) for non-negative loss functions. This implies that SGD can find a global minimum of deep neural networks at ease. The major challenges towards understanding this phenomenon are in two-fold: 1) deep neural networks have complex landscape that cannot be fully understood analytically (Zhou & Liang, 2018); 2) the randomness nature of SGD makes it hard to characterize its convergence on such a complex landscape. These factors prohibit a good understanding of the practical success of SGD in deep learning from a traditional optimization aspect. ",
74
+ "bbox": [
75
+ 174,
76
+ 611,
77
+ 825,
78
+ 833
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this study, we analyze the convergence of SGD in the above phenomenon by exploiting the following two critical properties. First, the fact that SGD can train neural networks to zero loss value implies that the non-negative loss functions on all data samples share a common global minimum. Second, our experiments establish strong empirical evidences that SGD (when training the loss to zero value) follows a star-convex path. Based on these properties, we formally establish the convergence of SGD to a global minimizer. Our work conveys a useful insight that although the landscape of neural networks can be complicated, the actual optimization path that SGD takes turns out to be remarkably simple and sufficient to guarantee the converge to a global minimum. ",
85
+ "bbox": [
86
+ 174,
87
+ 840,
88
+ 825,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 171,
98
+ 103,
99
+ 823,
100
+ 132
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "1.1 OUR CONTRIBUTIONS ",
107
+ "text_level": 1,
108
+ "bbox": [
109
+ 176,
110
+ 150,
111
+ 369,
112
+ 165
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "We focus on the empirical observation that SGD can train various neural networks to achieve zero loss, and validate that SGD follows an epochwise star-convex path in empirical optimization processes. Based on such a property, we prove that the Euclidean distance between the variable sequence generated by SGD and a global minimizer decreases at an epoch level. We also show that the subsequences of iterations that correspond to the same data sample is a minimizing sequence of the loss corresponding to that sample. ",
119
+ "bbox": [
120
+ 174,
121
+ 176,
122
+ 825,
123
+ 261
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "By further empirical exploration, we validate that SGD follows an iterationwise star-convex path during the major part of the training process. Based on such a property, we prove that the entire variable sequence generated by SGD converges to a global minimizer of the objective function. Then, we show that the convergence of SGD induces a self-regularization on its variance, i.e., the variance of stochastic gradients vanishes as SGD converges in such a context. ",
130
+ "bbox": [
131
+ 174,
132
+ 267,
133
+ 825,
134
+ 337
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "From a technical perspective, we characterize the intrinsic deterministic convergence property of SGD when the optimization path is well regularized, rather than the performance on average or in probability established in the existing studies. Our results provide a novel and promising aspect to understand SGD-based optimization in deep learning. Furthermore, our analysis of SGD explores the limiting convergence property of the subsequences that correspond to individual data samples, which is in sharp contrast to the traditional treatment of SGD that depends on its random nature and bounds on variance. Hence, our proof technique can be of independent interest to the community. ",
141
+ "bbox": [
142
+ 174,
143
+ 344,
144
+ 825,
145
+ 441
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "1.2 RELATED WORK ",
152
+ "text_level": 1,
153
+ "bbox": [
154
+ 176,
155
+ 459,
156
+ 330,
157
+ 474
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "As there are extensive literature on SGD, we only mention the highly relevant studies here. Theoretical foundations of SGD have been developed in the optimization community (Robbins & Monro, 1951; Nemirovski et al., 2009; Lan, 2012; Ghadimi et al., 2016; Ghadimi & Lan, 2016), and have attracted much attention from the machine learning community in the past decade (Schmidt et al., 2017; Defazio et al., 2014; Johnson & Zhang, 2013; Li et al., 2017; Wang et al., 2018a). In general nonconvex optimization, it is known that SGD converges to a stationary point under a bounded variance assumption and a diminishing learning rate Bottou et al. (2016); Ghadimi et al. (2016). Other variants of SGD that are designed for deep learning have been proposed, e.g., Adam (Kingma & Ba, 2014), AMSgrad Reddi et al. (2018b), Adagrad (Duchi et al., 2011), etc, and their convergence properties have been studied in the context of online convex regret minimization. ",
164
+ "bbox": [
165
+ 174,
166
+ 486,
167
+ 825,
168
+ 626
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "Needell et al. (2014); Moulines & Bach (2011) show that SGD converges at a linear rate when the objective function is strongly convex and has a unique common global minimum. Recently, several studies show that SGD has the capability to escape strict saddle points Ge et al. (2015); Jin et al. (2017); Reddi et al. (2018a); Daneshmand et al. (2018). Other cubic-regularization-based methods have also been shown to be able to escape strict saddle points Nesterov & Polyak (2006); Zhou et al. (2018); Wang et al. (2018b). Kleinberg et al. (2018) considers functions with one-point strong convexity, and shows that the randomness of SGD has an intrinsic smoothing effect that can avoid convergence to sharp minimum. Our paper exploits a very different notion of star-convexity path of SGD, which is a much weaker condition than those in the previous studies. ",
175
+ "bbox": [
176
+ 174,
177
+ 632,
178
+ 825,
179
+ 757
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "2 PROBLEM SETUP AND PRELIMINARIES ",
186
+ "text_level": 1,
187
+ "bbox": [
188
+ 174,
189
+ 779,
190
+ 529,
191
+ 795
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "Neural network training can be formulated as the following finite-sum optimization problem. ",
198
+ "bbox": [
199
+ 169,
200
+ 810,
201
+ 781,
202
+ 827
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "equation",
208
+ "img_path": "images/809a331a140635346db93d76001f3a999f44759674d5dd1cabd18d78e7260de2.jpg",
209
+ "text": "$$\n\\operatorname* { m i n } _ { x \\in \\mathbb { R } ^ { d } } f ( x ) : = \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\ell _ { i } ( x ) ,\n$$",
210
+ "text_format": "latex",
211
+ "bbox": [
212
+ 410,
213
+ 833,
214
+ 588,
215
+ 875
216
+ ],
217
+ "page_idx": 1
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "where there are in total $n$ training data samples. The loss function that corresponds to the $i$ -th data sample is denoted by $\\ell _ { i } : \\mathbb { R } ^ { \\breve { d } } \\to \\mathbb { R }$ for $i = 1 , \\ldots , n$ , and the vector to be minimized in the problem (e.g., network weights in deep learning) are denoted by $x \\in \\mathbb { R } ^ { d }$ . In general, problem $( \\mathrm { P } )$ is a nonconvex optimization problem, and we make the following standard assumptions regarding the objective function. ",
222
+ "bbox": [
223
+ 174,
224
+ 882,
225
+ 823,
226
+ 924
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "",
233
+ "bbox": [
234
+ 171,
235
+ 103,
236
+ 825,
237
+ 132
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Assumption 1. The loss functions $\\ell _ { i } , i = 1 , \\ldots , n$ in problem $( P )$ satisfy: ",
244
+ "bbox": [
245
+ 176,
246
+ 136,
247
+ 658,
248
+ 151
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "1. They are continuously differentiable, and their gradients are $L$ -Lipschitz continuous; ",
255
+ "bbox": [
256
+ 174,
257
+ 161,
258
+ 746,
259
+ 178
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "2. For every $i = 1 , \\dots , n , \\operatorname* { i n f } _ { x \\in \\mathbb { R } ^ { d } } \\ell _ { i } ( x ) > 0 .$ ",
266
+ "bbox": [
267
+ 176,
268
+ 185,
269
+ 473,
270
+ 202
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "The conditions imposed by Assumption 1 are standard in analysis of nonconvex optimization. In specific, item 1 is a standard smoothness assumption on nonconvex loss functions. Item 2 assumes that the loss functions are bounded below, which is satisfied by many loss functions in deep learning, e.g., MSE loss, crossentropy loss, NLL loss, etc, which are all non-negative. ",
277
+ "bbox": [
278
+ 174,
279
+ 213,
280
+ 821,
281
+ 268
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "Next, we introduce the following fact that is widely observed in training overparameterized deep neural networks, which we assume to hold throughout the paper. ",
288
+ "bbox": [
289
+ 174,
290
+ 275,
291
+ 821,
292
+ 304
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "Observation 1 (Global minimum in deep learning). The objective function $f$ in problem $( P )$ with non-negative loss can achieve zero value at certain $x ^ { * }$ . Thus, $x ^ { * }$ is also a common global minimizer for all individual loss $\\{ \\ell _ { i } \\} _ { i = 1 } ^ { n }$ . More formally, denote $\\mathcal { X } _ { i } ^ { \\ast }$ as the set of global minimizers of $\\ell _ { i }$ for $i = 1 , \\ldots , n$ . Then, the set of common global minimizers, i.e., $\\mathcal { X } ^ { * } : = \\cap _ { i = 1 } ^ { n } \\mathcal { X } _ { i } ^ { * }$ , is non-empty and bounded. ",
299
+ "bbox": [
300
+ 173,
301
+ 308,
302
+ 825,
303
+ 377
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "Observation 1 is a common observation in deep learning applications, because deep neural networks (especially in the overparameterized regime) typically have enough capacity to fit all training data samples, and therefore the model has a global minimum shared by the loss functions on all data samples. To elaborate more, if the total loss $f$ attains zero value at $x ^ { * }$ , then $\\ell _ { i }$ for all $i$ must achieve zero value at $x ^ { * }$ as they are non-negative. Thus, $x ^ { * }$ is a common global minimum of all individual loss $\\ell _ { i } ( x )$ for all $i$ . Such a fact plays a critical role in understanding the convergence of SGD in training neural networks. ",
310
+ "bbox": [
311
+ 174,
312
+ 388,
313
+ 825,
314
+ 487
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "Next, we introduce our algorithm of interest – stochastic gradient descent (SGD). Specifically, to solve problem (P), SGD starts at an initial vector $x _ { 0 } \\in \\mathbb { R } ^ { d }$ and generates a variable sequence $\\{ x _ { k } \\} _ { k }$ according to the following update rule. ",
321
+ "bbox": [
322
+ 174,
323
+ 494,
324
+ 825,
325
+ 536
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "equation",
331
+ "img_path": "images/ac34cf3a28ff9248ebf60061426fd1a56190a2d2ce09767be9b4cc34e1e2c3ca.jpg",
332
+ "text": "$$\n\\begin{array} { r l } { \\mathrm { ( S G D ) } } & { { } x _ { k + 1 } = x _ { k } - \\eta \\nabla \\ell _ { \\xi _ { k } } ( x _ { k } ) , \\quad k = 0 , 1 , . . . , } \\end{array}\n$$",
333
+ "text_format": "latex",
334
+ "bbox": [
335
+ 331,
336
+ 542,
337
+ 665,
338
+ 560
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "where $\\eta > 0$ denotes the learning rate, and $\\xi _ { k } \\in \\{ 1 , \\ldots , n \\}$ corresponds to the sampled data index at iteration $k$ . In this study, we consider the practical cyclic sampling scheme with reshuffle (also referred to as the random sampling without replacement) to generate the random variable $\\xi _ { k }$ . To elaborate the notation, we rewrite every iteration number $k$ as $n B + t$ , where $B = 0 , 1 , 2 , \\ldots$ denotes the index of epoch that iteration $k$ belongs to and $t \\in \\{ 0 , 1 , . . . , n - 1 \\}$ denotes the corresponding iteration index in that epoch. We further denote $\\pi _ { B }$ as the random permutation of $1 , . . . , n$ in the $B$ -th epoch, and denote $\\pi _ { B } ( j )$ as its $j$ -th element. Then, the sampled data index at iteration $k$ can be expressed as ",
345
+ "bbox": [
346
+ 173,
347
+ 565,
348
+ 825,
349
+ 678
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "equation",
355
+ "img_path": "images/a62068d570744049905027d31e0294c948fe049921c8fed25265aebe4e38b3ec.jpg",
356
+ "text": "$$\n\\xi _ { k } = \\pi _ { B } ( t + 1 ) , \\quad t = 0 , . . . , n - 1 .\n$$",
357
+ "text_format": "latex",
358
+ "bbox": [
359
+ 495,
360
+ 684,
361
+ 732,
362
+ 700
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "3 APPROACHING GLOBAL MINIMUM EPOCHWISELY ",
369
+ "text_level": 1,
370
+ "bbox": [
371
+ 174,
372
+ 718,
373
+ 620,
374
+ 736
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "3.1 AN INTERESTING EMPIRICAL OBSERVATION OF SGD PATH ",
381
+ "text_level": 1,
382
+ "bbox": [
383
+ 174,
384
+ 751,
385
+ 624,
386
+ 766
387
+ ],
388
+ "page_idx": 2
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "In this subsection, we provide empirical observations on the algorithm path of SGD in training neural networks. To be specific, we train a standard multi-layer perceptron (MLP) network Krizhevsky (2009), a variant of Alexnet and a variant of Inception network Zhang et al. (2017a) on the CIFAR10 dataset Krizhevsky (2009) using SGD under crossentropy loss. In all experiments, we adopt a constant learning rate (0.01 for MLP and Alexnet, 0.1 for Inception) and a constant mini-batch size 128. We discard all other optimization features such as momentum, weight decay, dropout and batch normalization, etc, in order to observe the essential property of SGD. ",
393
+ "bbox": [
394
+ 173,
395
+ 776,
396
+ 825,
397
+ 875
398
+ ],
399
+ "page_idx": 2
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "In each experiment, we train the network for a sufficient number of epochs to achieve near-zero training loss (i.e., almost global minimum), and record the weight parameters along the iteration path of SGD. We denote the weight parameters produced by SGD in the last iteration as $x ^ { * }$ , which has a near zero loss, and evaluate the Euclidean distance between the weight parameters produced by SGD and $x ^ { * }$ along the iteration path. We plot the results in Figure 1. It can be seen that the training losses for all three networks fluctuate along the iteration path, implying that the algorithm passes through complex landscapes. However, the Euclidean distance between the weight parameters and the final output $x ^ { * }$ is monotonically decreasing epochwise along the SGD path for all three networks. This shows that the variable sequence generated by SGD approaches the global minimum $x ^ { * }$ in a remarkably stable way. This motivates us to explore the underlying mechanism that yields such interesting observations. ",
404
+ "bbox": [
405
+ 174,
406
+ 882,
407
+ 823,
408
+ 924
409
+ ],
410
+ "page_idx": 2
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "",
415
+ "bbox": [
416
+ 173,
417
+ 103,
418
+ 825,
419
+ 215
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "In the next two subsections, we first propose a property that the algorithm path of SGD satisfies, based on which we formally prove that the variable sequence generated by SGD admits the behavior observed in Figure 1. Then, we provide empirical evidences to validate such a property of SGD path in practical SGD training. ",
426
+ "bbox": [
427
+ 174,
428
+ 222,
429
+ 825,
430
+ 279
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "image",
436
+ "img_path": "images/c122fe5d26fdcae1410b98a7230ad63527b055c7fd9264d47dc9bc4cb09ff6a1.jpg",
437
+ "image_caption": [
438
+ "Figure 1: Distance to output of SGD in training neural networks. "
439
+ ],
440
+ "image_footnote": [],
441
+ "bbox": [
442
+ 196,
443
+ 290,
444
+ 808,
445
+ 419
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "3.2 EPOCHWISE STAR-CONVEX PATH ",
452
+ "text_level": 1,
453
+ "bbox": [
454
+ 176,
455
+ 469,
456
+ 446,
457
+ 484
458
+ ],
459
+ "page_idx": 3
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "In this subsection, we introduce the notion of the epochwise star-convex path for SGD and establish its theoretical implications on the convergence of SGD. We validate that SGD satisfies such a property in practical neural network training in Section 3.3. ",
464
+ "bbox": [
465
+ 174,
466
+ 496,
467
+ 825,
468
+ 537
469
+ ],
470
+ "page_idx": 3
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Recall the conventional definition of star-convexity. Let $x ^ { * }$ be a global minimizer of a smooth function $h$ . Then, $h$ is said to be star-convex at a point $x$ provided that ",
475
+ "bbox": [
476
+ 173,
477
+ 545,
478
+ 825,
479
+ 574
480
+ ],
481
+ "page_idx": 3
482
+ },
483
+ {
484
+ "type": "equation",
485
+ "img_path": "images/2ed63646230f2823b7603eb17ccb6aefa07f9bd741c5f4ee6a8c97aa83f25872.jpg",
486
+ "text": "$$\n( { \\mathrm { S t a r - c o n v e x i t y } } ) : \\quad h ( x ) - h ( x ^ { * } ) + \\langle x ^ { * } - x , \\nabla h ( x ) \\rangle \\leq 0 .\n$$",
487
+ "text_format": "latex",
488
+ "bbox": [
489
+ 300,
490
+ 577,
491
+ 696,
492
+ 594
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "Star-convexity can be intuitively understood as convexity between a reference point $x$ and a global minimizer $x ^ { * }$ . Such a property ensures that the negative gradient $- \\nabla h ( x )$ points to the desired direction $x ^ { * } - x$ for minimization. ",
499
+ "bbox": [
500
+ 174,
501
+ 598,
502
+ 826,
503
+ 641
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "Next, we define the notion of epochwise star-convex path, which requires the star-convexity to be held cumulatively over each epoch. ",
510
+ "bbox": [
511
+ 174,
512
+ 647,
513
+ 823,
514
+ 676
515
+ ],
516
+ "page_idx": 3
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "Definition 1 (Epochwise star-convex path). We call a path generated by SGD epochwise star-convex if it satisfies: For all epochs $B = 0 , 1 , \\ldots$ and for a fixed $x ^ { \\ast } \\in \\mathcal { X } ^ { \\ast }$ (see Observation 1 for definition), ",
521
+ "bbox": [
522
+ 173,
523
+ 679,
524
+ 823,
525
+ 708
526
+ ],
527
+ "page_idx": 3
528
+ },
529
+ {
530
+ "type": "equation",
531
+ "img_path": "images/cc76f54706296f6da0f5dee556002e27844966ca0e9ee486cef10fa659cde80d.jpg",
532
+ "text": "$$\n\\sum _ { k = n B } ^ { n ( B + 1 ) - 1 } \\left[ \\ell _ { \\xi _ { k } } ( x _ { k } ) - \\ell _ { \\xi _ { k } } ( x ^ { * } ) + \\langle x ^ { * } - x _ { k } , \\nabla \\ell _ { \\xi _ { k } } ( x _ { k } ) \\rangle \\right] \\leq 0 .\n$$",
533
+ "text_format": "latex",
534
+ "bbox": [
535
+ 299,
536
+ 713,
537
+ 697,
538
+ 757
539
+ ],
540
+ "page_idx": 3
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "We note that the property introduced by Definition 1 is not about the landscape geometry of a loss function, which can be complex as observed in the training loss curves shown in Figure 1. Rather, it characterizes the interaction between the algorithm and the loss function along the optimization path. Such a property is generally weaker than the global star-convexity, and is observed to be held in practical neural network training (see Section 3.3). ",
545
+ "bbox": [
546
+ 173,
547
+ 767,
548
+ 826,
549
+ 838
550
+ ],
551
+ "page_idx": 3
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "Based on Definition 1, we obtain the following property of SGD. ",
556
+ "bbox": [
557
+ 173,
558
+ 843,
559
+ 599,
560
+ 859
561
+ ],
562
+ "page_idx": 3
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "Theorem 1 (Epochwise diminishing distance). Let Assumption 1 hold and apply SGD with learning rate $\\begin{array} { r } { \\eta < { \\frac { 1 } { L } } } \\end{array}$ to solve problem $( P )$ . Assume SGD follows an epochwise star-convex path for a certain $x ^ { * } \\in \\mathcal { X } ^ { * }$ . Then, the variable sequence $\\{ x _ { k } \\} _ { k }$ generated by SGD satisfies, for all epochs $B = 0 , 1 , . . . ,$ ",
567
+ "bbox": [
568
+ 174,
569
+ 862,
570
+ 825,
571
+ 905
572
+ ],
573
+ "page_idx": 3
574
+ },
575
+ {
576
+ "type": "equation",
577
+ "img_path": "images/77b62a83e045e5451ef237c80498332f7917b903ae676f8f6ad91912c63c92e7.jpg",
578
+ "text": "$$\n\\| x _ { n ( B + 1 ) } - x ^ { * } \\| \\leq \\| x _ { n B } - x ^ { * } \\| .\n$$",
579
+ "text_format": "latex",
580
+ "bbox": [
581
+ 388,
582
+ 909,
583
+ 607,
584
+ 926
585
+ ],
586
+ "page_idx": 3
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "Theorem 1 proves that the variable sequence generated by SGD approaches a global minimizer at an epoch level, which is consistent with the empirical observations made in Figure 1. Therefore, the property of epochwise star-convex path of SGD is sufficient to explain such desirable empirical observations, although the loss function can be highly nonconvex and has complex landscape. ",
591
+ "bbox": [
592
+ 174,
593
+ 103,
594
+ 825,
595
+ 160
596
+ ],
597
+ "page_idx": 4
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "Under the cyclic sampling scheme with reshuffle, SGD samples every data sample once per epoch. Consider the loss $\\ell _ { v }$ on the $v$ -th data sample for a fixed $v \\in \\{ 1 , 2 , . . . , n \\}$ . One can check that the iterations in which the loss $\\ell _ { v }$ is sampled form a subsequence $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ , where $\\pi _ { B } ^ { - 1 }$ is the inverse permutation mapping of $\\pi _ { B }$ , i.e., $\\pi _ { B } ^ { - 1 } ( u ) = v$ if and only if $\\pi _ { B } ( v ) = u$ . Next, we characterize the convergence properties of these subsequences corresponding to the loss functions on individual data samples. ",
602
+ "bbox": [
603
+ 173,
604
+ 166,
605
+ 825,
606
+ 257
607
+ ],
608
+ "page_idx": 4
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "Theorem 2 (Minimizing subsequences). Under the same settings as those of Theorem 1, the subsequences $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ for $v = 1 , . . . , n$ satisfy ",
613
+ "bbox": [
614
+ 174,
615
+ 261,
616
+ 823,
617
+ 292
618
+ ],
619
+ "page_idx": 4
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "1. They are minimizing sequences for the corresponding loss functions, i.e., ",
624
+ "bbox": [
625
+ 176,
626
+ 304,
627
+ 668,
628
+ 320
629
+ ],
630
+ "page_idx": 4
631
+ },
632
+ {
633
+ "type": "equation",
634
+ "img_path": "images/07189cbfce314ada85aa5eb3b6ad357ddb20279b9703d4cacd3aef6dda4d8485.jpg",
635
+ "text": "$$\n\\operatorname* { l i m } _ { B \\to \\infty } \\ell _ { v } ( x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } ) = \\operatorname* { i n f } _ { x \\in \\mathbb { R } ^ { d } } \\ell _ { v } ( x ) , \\quad \\forall v \\in \\{ 1 , . . . , n \\} .\n$$",
636
+ "text_format": "latex",
637
+ "bbox": [
638
+ 323,
639
+ 325,
640
+ 692,
641
+ 351
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "2. Every limit point of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ is in $\\mathcal { X } _ { v } ^ { \\ast }$ ",
648
+ "bbox": [
649
+ 173,
650
+ 364,
651
+ 495,
652
+ 385
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Theorem 2 characterizes the limiting behavior of the subsequences that correspond to the loss functions on individual data samples. Essentially, the results in items 1 and 2 show that each subsequence $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ is a minimizing sequence for the corresponding loss $\\ell _ { v }$ . ",
659
+ "bbox": [
660
+ 174,
661
+ 395,
662
+ 823,
663
+ 440
664
+ ],
665
+ "page_idx": 4
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "DISCUSSION ",
670
+ "text_level": 1,
671
+ "bbox": [
672
+ 174,
673
+ 457,
674
+ 263,
675
+ 472
676
+ ],
677
+ "page_idx": 4
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "We note that Theorems 1 and 2 characterize the epochwise convergence property of SGD in a deterministic way. The underlying technical reason is that the common global minimizer structure in Observation 1 suppresses the randomness induced by sampling and reshuffling of SGD, and ensures a common direction along which SGD can approach the global minimum on all individual data samples. Such a result is very different from traditional understanding of SGD where randomness and variance play a central role Nemirovski et al. (2009); Ghadimi et al. (2016). ",
682
+ "bbox": [
683
+ 174,
684
+ 483,
685
+ 825,
686
+ 566
687
+ ],
688
+ "page_idx": 4
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "3.3 VERIFYING EPOCHWISE STAR-CONVEX PATH OF SGD ",
693
+ "text_level": 1,
694
+ "bbox": [
695
+ 174,
696
+ 583,
697
+ 591,
698
+ 598
699
+ ],
700
+ "page_idx": 4
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "In this subsection, we conduct experiments to validate the epochwise star-convex path of SGD introduced in Definition 1. ",
705
+ "bbox": [
706
+ 176,
707
+ 609,
708
+ 821,
709
+ 638
710
+ ],
711
+ "page_idx": 4
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "We train the aforementioned three types of neural networks, i.e., MLP, Alexnet and Inception, on CIFAR10 Krizhevsky (2009) and MNIST Lecun et al. (1998) dataset using SGD. The hyperparameter settings are the same as those mentioned in Section 3.1. We train these networks for a sufficient number of epochs to achieve a near-zero training loss (i.e., near-global minimum). We record the variable sequence generated by SGD along the entire algorithm path, and set $x ^ { * }$ to be the final output of SGD. Then, we evaluate the value of the summation term in Definition 1 for each epoch. The value of this summation term for each epoch $B$ is denoted as residual $e _ { B }$ . By Definition 1, SGD path in the $B$ -th epoch is epochwise star-convex provided that $e _ { B } < 0$ . ",
716
+ "bbox": [
717
+ 174,
718
+ 645,
719
+ 825,
720
+ 757
721
+ ],
722
+ "page_idx": 4
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "Figure 2 shows the results of our experiments. In all subfigures, the red horizontal curve denotes the zero value baseline, and the other curve denotes the residual $e _ { B }$ . It can be seen from Figure 2 that, on the MNIST dataset (second row), the entire path of SGD satisfies epochwise star-convexity for all three networks. On the CIFAR10 dataset (first row), we observe an epochwise star-convex path of SGD after several epochs of the initial phase of training. This can be due to the more complex landscape of the loss function on the CIFAR10 dataset, so that it takes SGD several epochs to enter a basin of attraction of the global minimum. ",
727
+ "bbox": [
728
+ 174,
729
+ 762,
730
+ 825,
731
+ 861
732
+ ],
733
+ "page_idx": 4
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "Our empirical findings strongly support the validity of the epochwise star-convex path of SGD in Definition 1. Therefore, Theorem 1 establishes an empirically-verified theory for characterizing the convergence property of SGD in training neural networks at an epoch level. In particular, it is well justified to successfully explain the stable epochwise convergence behavior observed in Figure 1. ",
738
+ "bbox": [
739
+ 174,
740
+ 867,
741
+ 823,
742
+ 924
743
+ ],
744
+ "page_idx": 4
745
+ },
746
+ {
747
+ "type": "image",
748
+ "img_path": "images/504d72f48c6e375be614122b28d35ba6f006dbaf2772a5ec1de37cc2abbedbc6.jpg",
749
+ "image_caption": [
750
+ "Figure 2: Verification of epochwise star-convex path. "
751
+ ],
752
+ "image_footnote": [],
753
+ "bbox": [
754
+ 191,
755
+ 101,
756
+ 795,
757
+ 338
758
+ ],
759
+ "page_idx": 5
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "4 CONVERGENCE TO A GLOBAL MINIMIZER ",
764
+ "text_level": 1,
765
+ "bbox": [
766
+ 173,
767
+ 388,
768
+ 558,
769
+ 406
770
+ ],
771
+ "page_idx": 5
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "The result developed in Theorem 1 shows that the variable sequence generated by SGD monotonically approaches a global minimizer at an epoch level. However, it does not guarantee the convergence of the variable sequence to a global minimizer (which requires the distance between SGD iterates and the global minimizer reduces to zero). We further explore such a convergence issue in the following two subsections. We first define a notion of an iterationwise star-convex path for SGD, based on which we formally establish the convergence of SGD to a global minimizer. Then, we provide empirical evidences to support the satisfaction of the iterationwise star-convex path by SGD. ",
776
+ "bbox": [
777
+ 173,
778
+ 421,
779
+ 825,
780
+ 520
781
+ ],
782
+ "page_idx": 5
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "4.1 ITERATIONWISE STAR-CONVEX PATH ",
787
+ "text_level": 1,
788
+ "bbox": [
789
+ 176,
790
+ 535,
791
+ 473,
792
+ 550
793
+ ],
794
+ "page_idx": 5
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "We introduce the following definition of an iterationwise star-convex path for SGD. ",
799
+ "bbox": [
800
+ 174,
801
+ 561,
802
+ 720,
803
+ 577
804
+ ],
805
+ "page_idx": 5
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "Definition 2 (Iterationwise star-convex path). We call a path generated by SGD iterationwise starconvex if it satisfies: For all $k = 0 , 1 , \\ldots$ and for every ${ \\boldsymbol { x } } ^ { * } \\in \\mathcal { X } _ { \\xi _ { k } } ^ { * }$ , ",
810
+ "bbox": [
811
+ 171,
812
+ 580,
813
+ 821,
814
+ 611
815
+ ],
816
+ "page_idx": 5
817
+ },
818
+ {
819
+ "type": "equation",
820
+ "img_path": "images/269277c9638b6080b35e5eabe78a2d82295c4f7be16151c2b96f3c6130d729c3.jpg",
821
+ "text": "$$\n\\ell _ { \\xi _ { k } } ( x _ { k } ) - \\ell _ { \\xi _ { k } } ( x ^ { * } ) + \\langle x ^ { * } - x _ { k } , \\nabla \\ell _ { \\xi _ { k } } ( x _ { k } ) \\rangle \\leq 0 .\n$$",
822
+ "text_format": "latex",
823
+ "bbox": [
824
+ 339,
825
+ 617,
826
+ 656,
827
+ 636
828
+ ],
829
+ "page_idx": 5
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "Compared to Definition 1 which defines the star-convex path of SGD at an epoch level, Definition 2 characterizes the star-convexity of SGD along the optimization path at a more refined iteration level. As we show in the result below, such a stronger property helps to regularize the convergence property of SGD at an iteration level, and is sufficient to guarantee convergence. ",
834
+ "bbox": [
835
+ 174,
836
+ 648,
837
+ 825,
838
+ 705
839
+ ],
840
+ "page_idx": 5
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Theorem 3 (Convergence to global minimizer). Let Assumption 1 hold and apply SGD with learning rate $\\begin{array} { r } { \\eta < { \\frac { 1 } { L } } } \\end{array}$ to solve problem $( P )$ . Assume SGD follows an iterationwise star-convex path. Then, the sequence $\\{ x _ { k } \\} _ { k }$ generated by SGD converges to a global minimizer. ",
845
+ "bbox": [
846
+ 174,
847
+ 709,
848
+ 825,
849
+ 752
850
+ ],
851
+ "page_idx": 5
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "Theorem 3 formally establishes the convergence of SGD to a global minimizer along an iterationwise star-convex path. The main idea of the proof is to establish a consensus of the minimizing subsequences that are studied in Theorem 2, i.e., all these subsequences converge to the same limit – a common global minimizer of the loss functions over all the data samples. More specifically, our proof strategy consists of three steps: 1) show that every limit point of each subsequence is a common global minimizer; 2) prove that each subsequence has a unique limit point; 3) show that all these subsequences share the same unique limit point, which is a common global minimizer. We believe that the proof technique here can be of independent interest to the community. ",
856
+ "bbox": [
857
+ 173,
858
+ 762,
859
+ 825,
860
+ 875
861
+ ],
862
+ "page_idx": 5
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "Our analysis in Theorem 3 characterizes the intrinsic deterministic convergence property of SGD, which is an alternative view of the SGD path: It performs gradient descent on an individual loss component at each iteration. The star-convexity along the iteration path pushes the algorithm towards the common global minimizer. Such progress is shared across all data samples in every iteration and eventually leads to the convergence of SGD. ",
867
+ "bbox": [
868
+ 176,
869
+ 882,
870
+ 825,
871
+ 924
872
+ ],
873
+ "page_idx": 5
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "",
878
+ "bbox": [
879
+ 173,
880
+ 103,
881
+ 823,
882
+ 132
883
+ ],
884
+ "page_idx": 6
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "We also note that the convergence result in Theorem 3 is based on a constant learning rate, which is typically used in practical training. This is very different from and much more desirable than the diminishing learning rate adopted in traditional analysis of SGD Nemirovski et al. (2009), which is a necessity to mitigate the negative effects caused by the variance of SGD. Furthermore, Theorem 3 shows that SGD converges to a common global minimizer where the gradient of loss function on all data samples vanish, and we therefore obtain the following interesting corollary. ",
889
+ "bbox": [
890
+ 174,
891
+ 138,
892
+ 825,
893
+ 222
894
+ ],
895
+ "page_idx": 6
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Corollary 1 (Vanishing variance). Under the same settings of those of Theorem 3, the variance of stochastic gradients sampled by SGD converges to zero as iteration k goes to infinity. ",
900
+ "bbox": [
901
+ 173,
902
+ 227,
903
+ 825,
904
+ 255
905
+ ],
906
+ "page_idx": 6
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Thus, upon convergence, the common global minimizer structure in deep learning leads to a selfvariance-reducing effect on SGD. Such a desirable effect is the core property of stochastic variancereduced algorithms that reduces sample complexity Johnson & Zhang (2013). Hence, this justifies in part that SGD is a sample-efficient algorithm in learning deep models. ",
911
+ "bbox": [
912
+ 174,
913
+ 267,
914
+ 826,
915
+ 321
916
+ ],
917
+ "page_idx": 6
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "DISCUSSION ",
922
+ "text_level": 1,
923
+ "bbox": [
924
+ 176,
925
+ 340,
926
+ 263,
927
+ 353
928
+ ],
929
+ "page_idx": 6
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "We want to mention that many nonconvex sensing models have an underlying true signal and hence naturally have common global minimizers, e.g., phase retrieval Zhang et al. (2017b), low-rank matrix recovery Tu et al. (2016), blind deconvolution Li et al. (2018), etc. This is also the case for some neural network sensing problems Zhong et al. (2017). Also, these problems have been shown to satisfy the so-called gradient dominance condition and the regularity condition locally around the global minimizers Zhou et al. (2016); Tu et al. (2016); Li et al. (2018); Zhong et al. (2017); Zhou & Liang (2017). These two geometric properties imply the star-convexity of the objective function, which necessarily imply the epochwise and iterationwise star-convex path of SGD. Therefore, our results also have implications on the convergence guarantee of SGD for solving these problems as well. ",
934
+ "bbox": [
935
+ 173,
936
+ 364,
937
+ 825,
938
+ 503
939
+ ],
940
+ "page_idx": 6
941
+ },
942
+ {
943
+ "type": "image",
944
+ "img_path": "images/a9aa078b572784a7e6a40bb7aee0272a907ca6a07fd29593831b62eadcfa463b.jpg",
945
+ "image_caption": [
946
+ "Figure 3: Verification of iterationwise star-convex path under crossentropy loss. "
947
+ ],
948
+ "image_footnote": [],
949
+ "bbox": [
950
+ 189,
951
+ 513,
952
+ 808,
953
+ 752
954
+ ],
955
+ "page_idx": 6
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "4.2 VERIFYING ITERATIONWISE STAR-CONVEX PATH OF SGD ",
960
+ "text_level": 1,
961
+ "bbox": [
962
+ 174,
963
+ 806,
964
+ 619,
965
+ 820
966
+ ],
967
+ "page_idx": 6
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "In this subsection, we conduct experiments to validate the iterationwise star-convex path of SGD introduced in Definition 2. ",
972
+ "bbox": [
973
+ 176,
974
+ 833,
975
+ 820,
976
+ 861
977
+ ],
978
+ "page_idx": 6
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "We train the aforementioned three types of neural networks, i.e., MLP, Alexnet and Inception, on CIFAR10 and MNIST datasets using SGD. The hyperparameter settings are the same as those mentioned in Section 3.1. We train these networks for a sufficient number of epochs to achieve a near-zero training loss. Due to the demanding requirement for storage, we record the variable sequence generated by SGD for all iterations in every tenth epoch, and set $x ^ { * }$ to be the final output of SGD. Then, for all the iterations in every tenth epoch, we evaluate the corresponding values of the terms on the left hand side in eq. (2) (denoted as $e _ { k }$ ). Then, we report the fraction of number of iterations that satisfy the iterationwise star-convexity (i.e., $e _ { k } < 0$ ) within such an epoch. ",
983
+ "bbox": [
984
+ 174,
985
+ 867,
986
+ 823,
987
+ 924
988
+ ],
989
+ "page_idx": 6
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "",
994
+ "bbox": [
995
+ 174,
996
+ 103,
997
+ 825,
998
+ 160
999
+ ],
1000
+ "page_idx": 7
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "In all subfigures of Figure 3, the red curves denote the training loss and the blue bars denote the fraction of iterations that satisfy the iterationwise star-convexity within such an epoch. It can be seen from Figure 3 that, for all three networks on the MNIST dataset (second row), the path of SGD satisfies iterationwise star-convexity for most of the iterations, except in the last several epochs where the training loss (see the red curve) already well saturates at zero value. In fact, the convergence is typically observed well before such a point. This is because when the training loss is very close to the global minimum (i.e., the gradient is very close to zero), small perturbation of the landscape easily deviates the SGD path from the desired star-convexity. Hence, our experiments demonstrate that SGD follows the iterationwise star-convex path up to the convergence occurs. Furthermore, on the CIFAR10 dataset (first row of Figure 3), we observe a strong evidence for the iterationwise star-convex path of SGD after several epochs of the initial phase of training. This implies that the loss landscape on a more challenging dataset can be more complex. ",
1005
+ "bbox": [
1006
+ 173,
1007
+ 166,
1008
+ 825,
1009
+ 333
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Our empirical findings support the validity of the iterationwise star-convex path of SGD in a major part of practical training processes. Therefore, our convergence guarantee developed in Theorem 3 for SGD well justifies its practical success. ",
1016
+ "bbox": [
1017
+ 176,
1018
+ 340,
1019
+ 823,
1020
+ 382
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "image",
1026
+ "img_path": "images/b9d30d0acc1162b6b9829896132d8278b9aff55087890619dc53da069cd3d924.jpg",
1027
+ "image_caption": [
1028
+ "Figure 4: Iterationwise path on local minimum. "
1029
+ ],
1030
+ "image_footnote": [],
1031
+ "bbox": [
1032
+ 189,
1033
+ 395,
1034
+ 808,
1035
+ 633
1036
+ ],
1037
+ "page_idx": 7
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "We next conduct further experiments to demonstrate that SGD follows the iterationwise star-convex path likely only for successful trainings to zero loss value, where a shared global minimum among all individual loss functions is achieved. To verify such a thought, we train an MLP using SGD on the CIFAR10 dataset under various settings with the number of hidden neurons ranging from 16 to 256. The results are shown in Figure 4, from which we observe that the training loss (i.e., red curves) converges to a non-zero value when the number of hidden neurons is small, implying that the algorithm likely attains a sub-optimal point which is not a common global minimum shared by all individual loss functions. In such trainings, we observe that the corresponding SGD paths have much fewer iterations satisfying the iterationwise star-convexity compared to the successful training instances shown in Figure 3. Thus, such empirical findings partially suggest that iterationwise star-convex SGD path more likely occurs when SGD can find a common global minimum, e.g., training overparameterized networks to zero loss value. ",
1042
+ "bbox": [
1043
+ 173,
1044
+ 675,
1045
+ 825,
1046
+ 842
1047
+ ],
1048
+ "page_idx": 7
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "5 CONCLUSION ",
1053
+ "text_level": 1,
1054
+ "bbox": [
1055
+ 176,
1056
+ 863,
1057
+ 318,
1058
+ 878
1059
+ ],
1060
+ "page_idx": 7
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "In this paper, we propose an epochwise star-convex property of the optimization path of SGD, which we validate in various experiments. Based on such a property, we show that SGD approaches a global minimum at an epoch level. Then, we further examine the property at an iteration level, and empirically show that it is satisfied in a major part of training processes. As we prove theoretically, such a more refined property guarantees the convergence of SGD to a global minimum, and the algorithm enjoys a self-variance-reducing effect. We believe that our study sheds light on the success of SGD in training neural networks from both empirical aspect and theoretical aspect. ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 895,
1068
+ 823,
1069
+ 924
1070
+ ],
1071
+ "page_idx": 7
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "",
1076
+ "bbox": [
1077
+ 174,
1078
+ 103,
1079
+ 825,
1080
+ 174
1081
+ ],
1082
+ "page_idx": 8
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "REFERENCES ",
1087
+ "text_level": 1,
1088
+ "bbox": [
1089
+ 174,
1090
+ 194,
1091
+ 285,
1092
+ 209
1093
+ ],
1094
+ "page_idx": 8
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "A. Blum and R. L. Rivest. Training a 3-node neural network is NP-complete. In Proc. 1st Annual Workshop on Computational Learning Theory (COLT), pp. 9–18, 1988. \nL. Bottou, F. E. Curtis, and J. Nocedal. Optimization methods for large-scale machine learning. ArXiv: 1606.04838, June 2016. \nH. Daneshmand, J. M. Kohler, A. Lucchi, and T. Hofmann. Escaping saddles with stochastic gradients. In Proc. International Conference on Machine Learning (ICML), 2018. \nA. Defazio, F. Bach, and S. Lacoste-Julien. SAGA: A fast incremental gradient method with support for non-strongly convex composite objectives. In Proc. Advances in Neural Information Processing Systems (NIPS), pp. 1646–1654. 2014. \nJ. Duchi, E. Hazan, and Y. Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research (JMLR), 12:2121–2159, July 2011. \nR. Ge, F. Huang, C. Jin, and Y. Yuan. Escaping from saddle points — online stochastic gradient for tensor decomposition. In Proc. 28th Conference on Learning Theory (COLT), volume 40, pp. 797–842, 03–06 Jul 2015. \nS. Ghadimi and G. Lan. Accelerated gradient methods for nonconvex nonlinear and stochastic programming. Mathematical Programming, 156(1):59–99, Mar 2016. \nS. Ghadimi, G. Lan, and H. Zhang. Mini-batch stochastic approximation methods for nonconvex stochastic composite optimization. Mathematical Programming, 155(1):267–305, Jan 2016. \nC. Jin, R. Ge, P. Netrapalli, S. M. Kakade, and M. I. Jordan. How to escape saddle points efficiently. In Proc. 34th International Conference on Machine Learning (ICML), volume 70, pp. 1724–1732, Aug 2017. \nR. Johnson and T. Zhang. Accelerating stochastic gradient descent using predictive variance reduction. In Proc. 26th International Conference on Neural Information Processing Systems (NIPS), pp. 315–323, 2013. \nD. Kingma and J. Ba. Adam: A method for stochastic optimization. Proc. International Conference on Learning Representations (ICLR), 12 2014. \nB. Kleinberg, Y. Li, and Y. Yuan. An alternative view: When does SGD escape local minima? In Proc. 35th International Conference on Machine Learning (ICML), volume 80, pp. 2698–2707, Jul 2018. \nA. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. \nA. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. Communications of the ACM, 60(6):84–90, May 2017. \nG. Lan. An optimal method for stochastic composite optimization. Mathematical Programming, 133 (1):365–397, Jun 2012. \nY. Lecun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, Nov 1998. \nQ. Li, Y. Zhou, Y. Liang, and P. K. Varshney. Convergence analysis of proximal gradient with momentum for nonconvex optimization. In Proc. 34th International Conference on Machine Learning (ICML), volume 70, pp. 2111–2119, Aug 2017. \nX. Li, S. Ling, T. Strohmer, and K. Wei. Rapid, robust, and reliable blind deconvolution via nonconvex optimization. Applied and Computational Harmonic Analysis, 2018. \nS. Linnainmaa. Taylor expansion of the accumulated rounding error. Numerical Mathematics, 16: 146–160, 1976. \nE. Moulines and F. R Bach. Non-asymptotic analysis of stochastic approximation algorithms for machine learning. In Proc. Advances in Neural Information Processing Systems (NIPS), 2011. \nD. Needell, R. Ward, and N. Srebro. Stochastic gradient descent, weighted sampling, and the randomized Kaczmarz algorithm. In Proc. Advances in Neural Information Processing Systems (NIPS), 2014. \nA. Nemirovski, A. Juditsky, G. Lan, and A. Shapiro. Robust stochastic approximation approach to stochastic programming. SIAM Journal on Optimization, 19(4):1574–1609, 2009. \nY. Nesterov and B. Polyak. Cubic regularization of Newton’s method and its global performance. Mathematical Programming, 2006. \nS. Reddi, M. Zaheer, S. Sra, B. Poczos, F. Bach, R. Salakhutdinov, and A. Smola. A generic approach for escaping saddle points. In Proc. 21st International Conference on Artificial Intelligence and Statistics (AISTATS), volume 84, pp. 1233–1242, Apr 2018a. \nS. J. Reddi, S. Kale, and S. Kumar. On the convergence of Adam and beyond. In Proc. International Conference on Learning Representations (ICLR), 2018b. \nH. Robbins and S. Monro. A stochastic approximation method. The Annals of Mathematical Statistics, 22(3):400–407, Sep 1951. \nM. Schmidt, N. Le Roux, and F. Bach. Minimizing finite sums with the stochastic average gradient. Mathematical Programming, 162(1):83–112, Mar 2017. \nS. Tu, R. Boczar, M. Simchowitz, M. Soltanolkotabi, and B. Recht. Low-rank solutions of linear matrix equations via Procrustes flow. In Proc. 33rd International Conference on Machine Learning (ICML), pp. 964–973, 2016. \nZ. Wang, K. Ji, Y. Zhou, Y. Liang, and V. Tarokh. SpiderBoost: A class of faster variance-reduced algorithms for nonconvex optimization. ArXiv:1810.10690, October 2018a. \nZ. Wang, Y. Zhou, Y. Liang, and G. Lan. Sample complexity of stochastic variance-reduced cubic regularization for nonconvex optimization. ArXiv:1802.07372v1, February 2018b. \nC. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning requires rethinking generalization. In Proc. International Conference on Learning Representations (ICLR), 2017a. \nH. Zhang, Y. Zhou, Y. Liang, and Y. Chi. A nonconvex approach for phase retrieval: reshaped Wirtinger flow and incremental algorithms. Journal of Machine Learning Research (JMLR), 18 (141):1–35, 2017b. \nK. Zhong, Z. Song, P. Jain, P. L. Bartlett, and I. S. Dhillon. Recovery guarantees for one-hidden-layer neural networks. In Proc. 34th International Conference on Machine Learning (ICML), volume 70, pp. 4140–4149, Aug 2017. \nY. Zhou and Y. Liang. Characterization of gradient dominance and regularity conditions for neural networks. ArXiv:1710.06910v2, Oct 2017. \nY. Zhou and Y. Liang. Critical points of linear neural networks: Analytical forms and landscape properties. In Proc. International Conference on Learning Representations (ICLR), 2018. \nY. Zhou, H. Zhang, and Y. Liang. Geometrical properties and accelerated gradient solvers of nonconvex phase retrieval. In Proc. 54th Annual Allerton Conference on Communication, Control, and Computing (Allerton), pp. 331–335, 2016. \nY. Zhou, Z. Wang, and Y. Liang. Convergence of cubic regularization for nonconvex optimization under KL property. In Proc. Advances in Neural Information Processing Systems (NIPS), 2018. ",
1099
+ "bbox": [
1100
+ 171,
1101
+ 210,
1102
+ 828,
1103
+ 930
1104
+ ],
1105
+ "page_idx": 8
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "",
1110
+ "bbox": [
1111
+ 171,
1112
+ 85,
1113
+ 828,
1114
+ 928
1115
+ ],
1116
+ "page_idx": 9
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Supplementary Materials ",
1121
+ "text_level": 1,
1122
+ "bbox": [
1123
+ 174,
1124
+ 99,
1125
+ 434,
1126
+ 119
1127
+ ],
1128
+ "page_idx": 10
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "A PROOF OF THEOREM 1 ",
1133
+ "bbox": [
1134
+ 176,
1135
+ 137,
1136
+ 398,
1137
+ 155
1138
+ ],
1139
+ "page_idx": 10
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "Observe that the SGD update can be rewritten as the following optimization step ",
1144
+ "bbox": [
1145
+ 174,
1146
+ 169,
1147
+ 700,
1148
+ 184
1149
+ ],
1150
+ "page_idx": 10
1151
+ },
1152
+ {
1153
+ "type": "equation",
1154
+ "img_path": "images/3a587c19061ea1b5e09d66df9118bd7f5f71c9dd3256b11c6774ae5c6712e04c.jpg",
1155
+ "text": "$$\nx _ { k + 1 } = \\underset { u \\in \\mathbb { R } ^ { d } } { \\mathrm { a r g m i n } } \\Big \\{ \\underset { \\ b { \\xi } _ { k } } { \\ell } ( x _ { k } ) + \\langle u - x _ { k } , \\nabla \\ell _ { \\xi _ { k } } ( x _ { k } ) \\rangle + \\frac { 1 } { 2 \\eta } \\| u - x _ { k } \\| ^ { 2 } \\Big \\} .\n$$",
1156
+ "text_format": "latex",
1157
+ "bbox": [
1158
+ 274,
1159
+ 189,
1160
+ 722,
1161
+ 234
1162
+ ],
1163
+ "page_idx": 10
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Note that the function $f _ { \\xi _ { k } } ( u )$ is linear, and we further obtain that for all $x ^ { \\ast } \\in \\mathcal { X } _ { \\xi _ { k } } ^ { \\ast }$ ",
1168
+ "bbox": [
1169
+ 173,
1170
+ 239,
1171
+ 712,
1172
+ 257
1173
+ ],
1174
+ "page_idx": 10
1175
+ },
1176
+ {
1177
+ "type": "equation",
1178
+ "img_path": "images/fd05887e89e278aaac2900c9a3fee4c80ccdb0190ba47cf9517e92496404b5ba.jpg",
1179
+ "text": "$$\n\\begin{array} { r l } { \\eta \\big ( f _ { \\xi _ { k } } ( x _ { k + 1 } ) - f _ { \\xi _ { k } } ( x ^ { * } ) \\big ) = \\eta \\langle \\nabla \\ell _ { \\xi _ { k } } ( x _ { k } ) , x _ { k + 1 } - x ^ { * } \\rangle } & { } \\\\ { \\overset { ( i ) } { = } \\langle x _ { k } - x _ { k + 1 } , x _ { k + 1 } - x ^ { * } \\rangle } & { } \\\\ { } & { = \\cfrac { 1 } { 2 } \\Big ( \\| x _ { k } - x ^ { * } \\| ^ { 2 } - \\| x _ { k + 1 } - x ^ { * } \\| ^ { 2 } - \\| x _ { k + 1 } - x _ { k } \\| ^ { 2 } \\Big ) , } \\end{array}\n$$",
1180
+ "text_format": "latex",
1181
+ "bbox": [
1182
+ 232,
1183
+ 261,
1184
+ 764,
1185
+ 339
1186
+ ],
1187
+ "page_idx": 10
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "where (i) uses the update rule of SGD. Rearranging the above inequality yields that ",
1192
+ "bbox": [
1193
+ 171,
1194
+ 342,
1195
+ 720,
1196
+ 357
1197
+ ],
1198
+ "page_idx": 10
1199
+ },
1200
+ {
1201
+ "type": "equation",
1202
+ "img_path": "images/2e3606006d867a9bf4605588f08057639a5dd968f063e9bcc8967045f02cd10b.jpg",
1203
+ "text": "$$\nf _ { \\xi _ { k } } ( x _ { k + 1 } ) \\leq f _ { \\xi _ { k } } ( x ^ { * } ) + \\frac { 1 } { 2 \\eta } \\Big ( \\| x _ { k } - x ^ { * } \\| ^ { 2 } - \\| x _ { k + 1 } - x ^ { * } \\| ^ { 2 } - \\| x _ { k + 1 } - x _ { k } \\| ^ { 2 } \\Big ) .\n$$",
1204
+ "text_format": "latex",
1205
+ "bbox": [
1206
+ 240,
1207
+ 361,
1208
+ 759,
1209
+ 393
1210
+ ],
1211
+ "page_idx": 10
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "On the other hand, by smoothness of the loss function, we obtain that ",
1216
+ "bbox": [
1217
+ 173,
1218
+ 397,
1219
+ 629,
1220
+ 411
1221
+ ],
1222
+ "page_idx": 10
1223
+ },
1224
+ {
1225
+ "type": "equation",
1226
+ "img_path": "images/1b3bf5b20e4de2979aa019cdf935978c0533f225f304ca10f372602b663dd347.jpg",
1227
+ "text": "$$\n\\begin{array} { r l } & { \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) \\leq \\ell _ { \\xi _ { k } } ( x _ { k } ) + \\langle x _ { k + 1 } - x _ { k } , \\nabla \\ell _ { \\xi _ { k } } ( x _ { k } ) \\rangle + \\displaystyle \\frac { L } { 2 } \\| x _ { k + 1 } - x _ { k } \\| ^ { 2 } } \\\\ & { \\qquad = f _ { \\xi _ { k } } ( x _ { k + 1 } ) + \\displaystyle \\frac { L } { 2 } \\| x _ { k + 1 } - x _ { k } \\| ^ { 2 } } \\\\ & { \\qquad \\overset { ( i ) } { \\leq } f _ { \\xi _ { k } } ( x ^ { * } ) + \\displaystyle \\frac { 1 } { 2 \\eta } ( \\| x _ { k } - x ^ { * } \\| ^ { 2 } - \\| x _ { k + 1 } - x ^ { * } \\| ^ { 2 } ) - ( \\displaystyle \\frac { 1 } { 2 \\eta } - \\displaystyle \\frac { L } { 2 } ) \\| x _ { k + 1 } - x _ { k } \\| ^ { 2 } } \\\\ & { \\qquad \\overset { ( i i ) } { \\leq } f _ { \\xi _ { k } } ( x ^ { * } ) + \\displaystyle \\frac { 1 } { 2 \\eta } ( \\| x _ { k } - x ^ { * } \\| ^ { 2 } - \\| x _ { k + 1 } - x ^ { * } \\| ^ { 2 } ) , } \\end{array}\n$$",
1228
+ "text_format": "latex",
1229
+ "bbox": [
1230
+ 209,
1231
+ 416,
1232
+ 787,
1233
+ 550
1234
+ ],
1235
+ "page_idx": 10
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "where (i) follows from eq. (3) and (ii) is due to the choice of learning rate. Summing the above inequality over $k$ from $n B$ to $n ( B + 1 ) - 1$ yields that, for every $x ^ { * } \\in \\mathcal { X } ^ { * }$ in Definition 1, ",
1240
+ "bbox": [
1241
+ 169,
1242
+ 553,
1243
+ 825,
1244
+ 582
1245
+ ],
1246
+ "page_idx": 10
1247
+ },
1248
+ {
1249
+ "type": "equation",
1250
+ "img_path": "images/b5a925d5852d3d2eaa4c4be586e6c43ff6974c292046cfb62a33260b4cb891e3.jpg",
1251
+ "text": "$$\n\\begin{array} { r } { \\| x _ { n ( B + 1 ) } - x ^ { * } \\| ^ { 2 } \\leq \\| x _ { n B } - x ^ { * } \\| ^ { 2 } - \\displaystyle \\sum _ { k = n B \\atop n ( B + 1 ) - 1 } ^ { n ( B + 1 ) - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - f _ { \\xi _ { k } } ( x ^ { * } ) \\big ) } \\\\ { \\leq \\| x _ { n B } - x ^ { * } \\| ^ { 2 } - \\displaystyle \\sum _ { k = n B } ^ { n ( B + 1 ) - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - \\ell _ { \\xi _ { k } } ( x ^ { * } ) \\big ) , } \\end{array}\n$$",
1252
+ "text_format": "latex",
1253
+ "bbox": [
1254
+ 253,
1255
+ 587,
1256
+ 740,
1257
+ 679
1258
+ ],
1259
+ "page_idx": 10
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "where the last inequality follows from the star-convex path of SGD in Definition 1. The desired result follows from the above inequality and the fact that $\\ell _ { \\xi _ { k } } ( x ^ { * } ) = \\operatorname* { i n f } _ { \\boldsymbol { u } \\in \\mathbb { R } ^ { d } } \\ell _ { \\xi _ { k } } ( \\boldsymbol { u } )$ for all $x ^ { * } \\in \\mathcal { X } ^ { * }$ Moreover, we conclude that the sequence $\\{ x _ { n B } \\} _ { B }$ is bounded. By continuity of $\\nabla \\ell _ { i }$ for all $i =$ $1 , . . . , n$ and the update rule of SGD, we further conclude that the entire sequence $\\{ \\boldsymbol { x } _ { k } \\} _ { k }$ is bounded. ",
1264
+ "bbox": [
1265
+ 176,
1266
+ 681,
1267
+ 823,
1268
+ 738
1269
+ ],
1270
+ "page_idx": 10
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "B PROOF OF THEOREM 2 ",
1275
+ "text_level": 1,
1276
+ "bbox": [
1277
+ 176,
1278
+ 757,
1279
+ 398,
1280
+ 773
1281
+ ],
1282
+ "page_idx": 10
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "We first collect some facts. Recall that ${ { \\mathcal X } ^ { * } } = \\cap _ { i = 1 } ^ { n } { { \\mathcal X } _ { i } ^ { * } }$ is non-empty and bounded. Consider any fixed $t \\in \\{ 0 , \\ldots , n - 1 \\}$ and recall that $k = n B + t$ , $\\xi _ { k } = \\pi _ { B } ( t + 1 )$ . Then, one can check that the iterations $k$ with $\\xi _ { k } = \\dot { v } \\in \\{ 1 , 2 , . . . , n \\}$ form the subsequence $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) - 1 } \\} _ { B }$ . ",
1287
+ "bbox": [
1288
+ 173,
1289
+ 787,
1290
+ 825,
1291
+ 835
1292
+ ],
1293
+ "page_idx": 10
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "Next, we prove item 1. Fix any $t \\in \\{ 0 , \\ldots , n - 1 \\}$ and sum eq. (4) over $k$ from $n B + t$ to $n ( B + 1 ) + t - 1$ yields that, for every $x ^ { * } \\in \\mathcal { X } ^ { * }$ in Definition 1, ",
1298
+ "bbox": [
1299
+ 171,
1300
+ 840,
1301
+ 825,
1302
+ 871
1303
+ ],
1304
+ "page_idx": 10
1305
+ },
1306
+ {
1307
+ "type": "equation",
1308
+ "img_path": "images/ff8fd3034ad715ffc2ad53d8642656e2347a5e6d780e5db40481dd37ca62950a.jpg",
1309
+ "text": "$$\n\\| x _ { n ( B + 1 ) + t } - x ^ { * } \\| ^ { 2 } \\leq \\| x _ { n B + t } - x ^ { * } \\| ^ { 2 } - \\sum _ { k = n B + t } ^ { n ( B + 1 ) + t - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - f _ { \\xi _ { k } } ( x ^ { * } ) \\big ) .\n$$",
1310
+ "text_format": "latex",
1311
+ "bbox": [
1312
+ 232,
1313
+ 876,
1314
+ 766,
1315
+ 921
1316
+ ],
1317
+ "page_idx": 10
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "Further summing the above inequality over $B$ from 0 to $K$ and rearranging, we obtain that ",
1322
+ "bbox": [
1323
+ 171,
1324
+ 102,
1325
+ 767,
1326
+ 119
1327
+ ],
1328
+ "page_idx": 11
1329
+ },
1330
+ {
1331
+ "type": "equation",
1332
+ "img_path": "images/97e50eeb3d8a23c1d701ab1c218ab8e01e36f0c836a63597ed75379b0c30217a.jpg",
1333
+ "text": "$$\n\\begin{array} { r l } { | x _ { n } ( K + 1 ) + t - x ^ { * } | | ^ { 2 } \\le \\| x _ { t } - x ^ { * } \\| ^ { 2 } - } & { \\displaystyle \\sum _ { k = n } ^ { n ( K + 1 ) - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - f _ { \\xi _ { k } } ( x ^ { * } ) \\big ) } \\\\ & { \\qquad - \\displaystyle \\sum _ { k = t } ^ { n - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - f _ { \\xi _ { k } } ( x ^ { * } ) \\big ) - \\displaystyle \\sum _ { k = n ( K + 1 ) } ^ { n ( K + 1 ) + t - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - f _ { \\xi _ { k } } ( x ^ { * } ) \\big ) , } \\\\ { \\le \\| x _ { t } - x ^ { * } \\| ^ { 2 } - } & { \\displaystyle \\sum _ { k = n } ^ { n ( K + 1 ) - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - \\ell _ { \\xi _ { k } } ( x ^ { * } ) \\big ) } \\\\ & { \\qquad - \\displaystyle \\sum _ { k = t } ^ { n - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - f _ { \\xi _ { k } } ( x ^ { * } ) \\big ) - \\displaystyle \\sum _ { k = n ( K + 1 ) } ^ { n ( K + 1 ) + t - 1 } 2 \\eta \\big ( \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - f _ { \\xi _ { k } } ( x ^ { * } ) \\big ) , } \\end{array}\n$$",
1334
+ "text_format": "latex",
1335
+ "bbox": [
1336
+ 181,
1337
+ 122,
1338
+ 821,
1339
+ 310
1340
+ ],
1341
+ "page_idx": 11
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "where the last inequality follows from the the star-convex path of SGD in Definition 1. Consider the term $\\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - \\ell _ { \\xi _ { k } } ( x ^ { * } )$ in eq. (6) along the iterations with $\\xi _ { k } = v \\in \\{ 1 , 2 , . . . , n \\}$ . Such term can be rewritten as $\\ell _ { v } ( \\bar { x } _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } ) - \\ell _ { v } ( x ^ { * } )$ . Suppose for certain $v \\in \\{ 1 , 2 , . . . , n \\}$ the sequence $\\{ \\ell _ { v } ( x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } ) \\} _ { B }$ does not converge to its global minimum $\\operatorname* { i n f } _ { \\substack { x \\in \\mathbb { R } ^ { d } } } \\ell _ { v } ( x )$ . Then, by the cyclic sampling scheme with reshuffle, we conclude that the first summation term in eq. (6) diverges to $+ \\infty$ as $K \\infty$ . Also, note that the last two summation terms have finite number of elements, which are all bounded as $\\{ \\boldsymbol { x } _ { k } \\} _ { k }$ is bounded. Therefore, we conclude that the sequences $\\{ x _ { n B + t } \\} _ { B }$ for $t = 0 , . . . , n - 1$ converge to $x ^ { * }$ for all candidates $x ^ { * } \\in \\mathcal { X } ^ { * }$ in Definition 1. Next, consider the case in which there are multiple such candidate $x ^ { * } s$ in Definition 1. Then, the previous sentence states that $\\{ x _ { n B + t } \\} _ { B }$ converges to multiple limits, which cannot happen for a convergent sequence. This leads to a contradiction. Consider the other case that there is only one such candidate $x ^ { * }$ in Definition 1. Then, we conclude that all the sequences $\\{ x _ { n B + t } \\} _ { B }$ for $t = 0 , . . . , n - 1$ converge to $x ^ { * }$ , i.e., the entire sequence $\\{ x _ { k } \\} _ { k }$ converges to such unique common global minimizer. This contradicts with our assumption that $\\{ \\ell _ { v } ( x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } ) \\} _ { B }$ does not converge to $\\operatorname* { i n f } _ { \\substack { x \\in \\mathbb { R } ^ { d } } } \\ell _ { v } ( x )$ for certain $v$ . Combining both cases, we obtain the desired claim of item 1. ",
1346
+ "bbox": [
1347
+ 173,
1348
+ 321,
1349
+ 825,
1350
+ 542
1351
+ ],
1352
+ "page_idx": 11
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "Next, we prove item 2. Note that sequence $\\{ x _ { k } \\} _ { k }$ is bounded . Fix any $v \\in \\{ 1 , \\ldots , n \\}$ and consider any limit point $z _ { v }$ of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ , i.e., $x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( v ) } \\stackrel { j } { \\to } z _ { v }$ along a proper subsequence. From item 1 we know that $\\begin{array} { r } { \\ell _ { v } \\big ( x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( v ) } \\big ) \\stackrel { j } { \\to } \\operatorname* { i n f } _ { x \\in \\mathbb { R } ^ { d } } \\ell _ { v } ( x ) } \\end{array}$ . This, together with the continuity of the loss function, implies that $z _ { v } \\in \\mathcal { X } _ { v } ^ { * }$ for all $v$ . ",
1357
+ "bbox": [
1358
+ 173,
1359
+ 547,
1360
+ 826,
1361
+ 630
1362
+ ],
1363
+ "page_idx": 11
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "C PROOF OF THEOREM 3 ",
1368
+ "text_level": 1,
1369
+ "bbox": [
1370
+ 174,
1371
+ 647,
1372
+ 398,
1373
+ 664
1374
+ ],
1375
+ "page_idx": 11
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Recall that eq. (4) shows that, for all $x ^ { \\ast } \\in \\mathcal { X } _ { \\xi _ { k } } ^ { \\ast }$ ",
1380
+ "bbox": [
1381
+ 174,
1382
+ 678,
1383
+ 485,
1384
+ 694
1385
+ ],
1386
+ "page_idx": 11
1387
+ },
1388
+ {
1389
+ "type": "equation",
1390
+ "img_path": "images/90c75b1773f750353ea0d8a3bc7197f8947b60358914fe1d1c121116ffbd509a.jpg",
1391
+ "text": "$$\n\\begin{array} { r l r } & { } & { \\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) \\le f _ { \\xi _ { k } } ( x ^ { * } ) + \\displaystyle \\frac { 1 } { 2 \\eta } \\Big ( \\| x _ { k } - x ^ { * } \\| ^ { 2 } - \\| x _ { k + 1 } - x ^ { * } \\| ^ { 2 } \\Big ) } \\\\ & { } & { \\stackrel { ( i ) } { \\le } \\ell _ { \\xi _ { k } } ( x ^ { * } ) + \\displaystyle \\frac { 1 } { 2 \\eta } \\Big ( \\| x _ { k } - x ^ { * } \\| ^ { 2 } - \\| x _ { k + 1 } - x ^ { * } \\| ^ { 2 } \\Big ) , } \\end{array}\n$$",
1392
+ "text_format": "latex",
1393
+ "bbox": [
1394
+ 297,
1395
+ 696,
1396
+ 697,
1397
+ 765
1398
+ ],
1399
+ "page_idx": 11
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "where (i) follows from the iterationwise star-convex path in Definition 2. Since $\\ell _ { \\xi _ { k } } ( x _ { k + 1 } ) - \\ell _ { \\xi _ { k } } ( x ^ { * } ) \\geq$ 0, we conclude that for all $k = 0 , 1 , \\ldots$ and every $x ^ { \\ast } \\in \\mathcal { X } _ { \\xi _ { k } } ^ { \\ast }$ , ",
1404
+ "bbox": [
1405
+ 173,
1406
+ 765,
1407
+ 823,
1408
+ 795
1409
+ ],
1410
+ "page_idx": 11
1411
+ },
1412
+ {
1413
+ "type": "equation",
1414
+ "img_path": "images/7be869b5f09f40cadf53ad6fc80f0d093da15b5f2618830e5db79bb9e8969b14.jpg",
1415
+ "text": "$$\n\\lVert x _ { k + 1 } - x ^ { * } \\rVert \\leq \\lVert x _ { k } - x ^ { * } \\rVert .\n$$",
1416
+ "text_format": "latex",
1417
+ "bbox": [
1418
+ 405,
1419
+ 797,
1420
+ 591,
1421
+ 815
1422
+ ],
1423
+ "page_idx": 11
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Next, consider any $v \\in \\{ 1 , . . . , n \\}$ , we show that every limit point $z _ { v }$ of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ is in $\\mathcal { X } ^ { \\ast }$ . By eq. (9), we know that $\\{ \\| x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } - x ^ { * } \\| \\} _ { B }$ is decreasing. Consider a limit point $z _ { v }$ associated with the subsequence such that $x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( v ) } \\to z _ { v }$ . Then, for all $B _ { j } \\geq B$ we know that, for any fixed $x ^ { * } \\in \\mathcal { X } ^ { * }$ , ",
1428
+ "bbox": [
1429
+ 173,
1430
+ 823,
1431
+ 826,
1432
+ 892
1433
+ ],
1434
+ "page_idx": 11
1435
+ },
1436
+ {
1437
+ "type": "equation",
1438
+ "img_path": "images/5d6f72429a7aa17ccefc3523eef60ddb1630089d379d8bf924d6f5225ecbf79a.jpg",
1439
+ "text": "$$\n\\| z _ { v } - x ^ { * } \\| \\overset { j } { } \\| x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( v ) } - x ^ { * } \\| \\leq \\| x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } - x ^ { * } \\| .\n$$",
1440
+ "text_format": "latex",
1441
+ "bbox": [
1442
+ 302,
1443
+ 893,
1444
+ 696,
1445
+ 922
1446
+ ],
1447
+ "page_idx": 11
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "Next, we prove by contradiction. Suppose that $z _ { v } \\notin \\mathcal { X } ^ { \\ast }$ . Then, eq. (10) implies that $\\parallel x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } -$ $x ^ { * } \\Vert > 0$ for all large $B$ and any $x ^ { \\ast } \\in \\mathcal { X } ^ { \\ast }$ . Combining this conclusion with item 2 of Theorem 2, it follows that all the limit points of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ are in ${ \\mathcal { X } } _ { v } ^ { * } \\mid { \\mathcal { X } } ^ { * }$ . Since ${ { \\mathcal X } ^ { * } } = \\cap _ { i = 1 } ^ { n } { { \\mathcal X } _ { i } ^ { * } }$ , it follows that the limit points of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( u ) } \\} _ { B }$ are different from those of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ for any $u \\ne v$ . Now consider a subsequence $x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( v ) } \\to z _ { v } \\in \\mathcal { X } _ { v } ^ { * } \\setminus \\mathcal { X } ^ { * }$ . Also, consider the subsequence $\\{ x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( u ) } \\} _ { j }$ with bseq $u \\ne v$ he of lic samplisuch that hat with probability(this occurs with a $B _ { j ( s ) }$ $B _ { j }$ $\\pi _ { B _ { j ( s ) } } ^ { - 1 } ( u ) = \\pi _ { B _ { j ( s ) } } ^ { - 1 } ( v ) + 1$ constant probability in every epoch). Applying eq. (9) along this subsequence, we conclude that ",
1452
+ "bbox": [
1453
+ 173,
1454
+ 102,
1455
+ 826,
1456
+ 247
1457
+ ],
1458
+ "page_idx": 12
1459
+ },
1460
+ {
1461
+ "type": "equation",
1462
+ "img_path": "images/30f329b19c12d413967d2620834a326d8f30094a6548a709e57715346fad2f99.jpg",
1463
+ "text": "$$\n\\begin{array} { r } { \\| x _ { n B _ { j ( s ) } + \\pi _ { B _ { j ( s ) } } ^ { - 1 } ( u ) } - z _ { v } \\| \\leq \\| x _ { n B _ { j ( s ) } + \\pi _ { B _ { j ( s ) } } ^ { - 1 } ( v ) } - z _ { v } \\| \\overset { j } { } 0 . } \\end{array}\n$$",
1464
+ "text_format": "latex",
1465
+ "bbox": [
1466
+ 302,
1467
+ 263,
1468
+ 694,
1469
+ 294
1470
+ ],
1471
+ "page_idx": 12
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "Let j → ∞ in the above equation, we conclude that xnBj(s)+π−1Bj(s)(u ) → zv , i.e., zv is a limit point of $\\{ x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( u ) } \\} _ { B }$ . Note that $z _ { v }$ is a limit point of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ . This contradicts our previous conclusion that the limit points of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( u ) } \\} _ { B }$ must be different from those of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ for $u \\ne v$ . Thus, we must have for all $v = 1 , \\ldots , n$ , every limit point $z _ { v }$ of $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ is in $\\mathcal { X } ^ { \\ast }$ Then, by eq. (9) we further conclude that for all $B = 0 , 1 , . . .$ . ",
1476
+ "bbox": [
1477
+ 173,
1478
+ 309,
1479
+ 826,
1480
+ 404
1481
+ ],
1482
+ "page_idx": 12
1483
+ },
1484
+ {
1485
+ "type": "equation",
1486
+ "img_path": "images/bafd5dda2306973512203592d51840cd30989e85dc7f1980aec24a6a5b51661f.jpg",
1487
+ "text": "$$\n\\| x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } - z _ { v } \\| \\leq \\| x _ { n ( B - 1 ) + \\pi _ { B - 1 } ^ { - 1 } ( v ) } - z _ { v } \\| .\n$$",
1488
+ "text_format": "latex",
1489
+ "bbox": [
1490
+ 334,
1491
+ 420,
1492
+ 661,
1493
+ 443
1494
+ ],
1495
+ "page_idx": 12
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Note that $x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( v ) } \\overset { j } { \\to } z _ { v }$ . Thus, for all $B \\geq B _ { j }$ the above inequality implies that ",
1500
+ "bbox": [
1501
+ 173,
1502
+ 462,
1503
+ 732,
1504
+ 487
1505
+ ],
1506
+ "page_idx": 12
1507
+ },
1508
+ {
1509
+ "type": "equation",
1510
+ "img_path": "images/4ea5977446fc858ee044f5b6499c380aded76798999709c7ac2a632294467824.jpg",
1511
+ "text": "$$\n\\begin{array} { r } { \\| x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } - z _ { v } \\| \\le \\| x _ { n B _ { j } + \\pi _ { B _ { j } } ^ { - 1 } ( v ) } - z _ { v } \\| \\overset { j } { } 0 . } \\end{array}\n$$",
1512
+ "text_format": "latex",
1513
+ "bbox": [
1514
+ 333,
1515
+ 507,
1516
+ 665,
1517
+ 535
1518
+ ],
1519
+ "page_idx": 12
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "This shows that $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ has a unique limit point $z _ { v }$ , which is an element of $\\mathcal { X } ^ { \\ast }$ . Next, consider the limits $z _ { u } , z _ { v } ( u \\ne v )$ of the sequences $\\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( u ) } \\} _ { B } , \\{ x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } \\} _ { B }$ , respectively. By eq. (9) and the fact that $z _ { u } \\in \\mathcal { X } ^ { * }$ , we conclude that ",
1524
+ "bbox": [
1525
+ 173,
1526
+ 553,
1527
+ 828,
1528
+ 603
1529
+ ],
1530
+ "page_idx": 12
1531
+ },
1532
+ {
1533
+ "type": "equation",
1534
+ "img_path": "images/b34ea88ace14deec0010e73ccf6c489650ed2929d93c0e4f8888a83b4cc78236.jpg",
1535
+ "text": "$$\n\\begin{array} { r } { \\| x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } - z _ { u } \\| \\le \\| x _ { n ( B - 1 ) + \\pi _ { B - 1 } ^ { - 1 } ( v ) } - z _ { u } \\| \\le \\| x _ { n ( B - 2 ) + \\pi _ { B - 2 } ^ { - 1 } ( u ) } - z _ { u } \\| \\overset { B } { \\to } 0 . } \\end{array}\n$$",
1536
+ "text_format": "latex",
1537
+ "bbox": [
1538
+ 222,
1539
+ 622,
1540
+ 774,
1541
+ 647
1542
+ ],
1543
+ "page_idx": 12
1544
+ },
1545
+ {
1546
+ "type": "text",
1547
+ "text": "Thus, $x _ { n B + \\pi _ { B } ^ { - 1 } ( v ) } z _ { u }$ , and we conclude that $z _ { v } = z _ { u }$ for all $v \\neq u$ , i.e., the whole sequence $\\{ x _ { k } \\}$ has a unique limit point in $\\mathcal { X } ^ { \\ast }$ . ",
1548
+ "bbox": [
1549
+ 171,
1550
+ 665,
1551
+ 823,
1552
+ 698
1553
+ ],
1554
+ "page_idx": 12
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "D SUPPLEMENTARY EXPERIMENTS ",
1559
+ "text_level": 1,
1560
+ "bbox": [
1561
+ 173,
1562
+ 729,
1563
+ 482,
1564
+ 746
1565
+ ],
1566
+ "page_idx": 12
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "In this section, we provide more experiments to illustrate the star-convexity property of the SGD path from other different aspects. ",
1571
+ "bbox": [
1572
+ 173,
1573
+ 768,
1574
+ 823,
1575
+ 799
1576
+ ],
1577
+ "page_idx": 12
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "Verification of epochwise star-convexity with different reference points ",
1582
+ "text_level": 1,
1583
+ "bbox": [
1584
+ 176,
1585
+ 804,
1586
+ 666,
1587
+ 820
1588
+ ],
1589
+ "page_idx": 12
1590
+ },
1591
+ {
1592
+ "type": "text",
1593
+ "text": "In Figure 5 we verify the epochwise star-convexity of the SGD path by setting the reference point $x ^ { * }$ to be the output of SGD at different intermediate epochs (i.e., 60,80,100,120 epochs), where the SGD has already saturated close to zero loss. The experiments are conducted by training the Alexnet and MLP on Cifar10 using SGD. As can be seen from Figure 5, the epochwise star-convexity still hold (i.e., $e _ { B } < 0$ ) after certain epochs in the initial training phase. This shows that the observed star-convex path does not depend on the choice of reference point (so long as they achieve near-zero loss). ",
1594
+ "bbox": [
1595
+ 173,
1596
+ 825,
1597
+ 825,
1598
+ 924
1599
+ ],
1600
+ "page_idx": 12
1601
+ },
1602
+ {
1603
+ "type": "image",
1604
+ "img_path": "images/47b6aa52170926d76249d7e2630f5047ce2998413c192414bcaf31d053cf811c.jpg",
1605
+ "image_caption": [
1606
+ "Figure 5: Verification of epochwise star-convexity when the reference point $x ^ { * }$ is taken at end of different epochs. Top plots correspond to the training of Alexnet with $x ^ { * }$ taken at 60th, 80th, 100th, and 120th epochs, and bottom plots correspond to the training of MLP with $x ^ { * }$ taken at 60th, 80th, $1 0 0 \\mathrm { { t h } }$ , and $1 2 0 \\mathrm { { t h } }$ epochs. "
1607
+ ],
1608
+ "image_footnote": [],
1609
+ "bbox": [
1610
+ 178,
1611
+ 99,
1612
+ 803,
1613
+ 299
1614
+ ],
1615
+ "page_idx": 13
1616
+ },
1617
+ {
1618
+ "type": "text",
1619
+ "text": "Growth of weight norm in neural network training ",
1620
+ "text_level": 1,
1621
+ "bbox": [
1622
+ 178,
1623
+ 391,
1624
+ 529,
1625
+ 406
1626
+ ],
1627
+ "page_idx": 13
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "In Figure 6, we present the growth of the $\\ell _ { 2 }$ norm of network weights in training different neural networks on Cifar10 under the cross-entropy loss. It can be seen from the figure that the norm of the weights increases slowly (logarithmly) after the training loss achieves near-zero. This is because the gradient is nearly zero when the training is close to the global minimum, and therefore the updates of the weights are very small. ",
1632
+ "bbox": [
1633
+ 173,
1634
+ 412,
1635
+ 825,
1636
+ 482
1637
+ ],
1638
+ "page_idx": 13
1639
+ },
1640
+ {
1641
+ "type": "image",
1642
+ "img_path": "images/1d3f0254a74c42f2b28e56e6beee460c762a4e53e11a64623288eb09a4b60294.jpg",
1643
+ "image_caption": [
1644
+ "Figure 6: $\\ell _ { 2 }$ norm of network weights and training loss of different networks. "
1645
+ ],
1646
+ "image_footnote": [],
1647
+ "bbox": [
1648
+ 191,
1649
+ 496,
1650
+ 805,
1651
+ 618
1652
+ ],
1653
+ "page_idx": 13
1654
+ },
1655
+ {
1656
+ "type": "text",
1657
+ "text": "Verification of star-convexity under MSE loss ",
1658
+ "text_level": 1,
1659
+ "bbox": [
1660
+ 173,
1661
+ 667,
1662
+ 488,
1663
+ 683
1664
+ ],
1665
+ "page_idx": 13
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "text": "In Figure 7, we verify the epochwise star-convexity by training different networks on MNIST dataset under the MSE loss (i.e., $\\ell _ { 2 }$ loss). We note that unlike the cross-entropy loss, zero value can be achieved by the MSE loss. We set the reference point $x ^ { * }$ to be the output of SGD at the 40th epoch. It can be seen from the figure that the residue $e _ { B }$ is negative along the entire optimization path, demonstrating that the SGD path satisfies the epochwise star-convexity under the MSE loss. ",
1670
+ "bbox": [
1671
+ 174,
1672
+ 690,
1673
+ 826,
1674
+ 760
1675
+ ],
1676
+ "page_idx": 13
1677
+ },
1678
+ {
1679
+ "type": "image",
1680
+ "img_path": "images/6aba459d7f1438c7676dbf6225b82fff306f10712555be2b4ebc437c352d2b13.jpg",
1681
+ "image_caption": [
1682
+ "Figure 7: Verification of epochwise star-convexity under MSE loss (i.e., $\\ell _ { 2 }$ loss). "
1683
+ ],
1684
+ "image_footnote": [],
1685
+ "bbox": [
1686
+ 191,
1687
+ 773,
1688
+ 794,
1689
+ 893
1690
+ ],
1691
+ "page_idx": 13
1692
+ }
1693
+ ]
parse/train/BylIciRcYQ/BylIciRcYQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BylIciRcYQ/BylIciRcYQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1lN69AT-/S1lN69AT-.md ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TO PRUNE, OR NOT TO PRUNE: EXPLORING THE EFFICACY OF PRUNING FOR MODEL COMPRESSION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Model pruning seeks to induce sparsity in a deep neural network’s various connection matrices, thereby reducing the number of nonzero-valued parameters in the model. Recent reports (Han et al., 2015a; Narang et al., 2017) prune deep networks at the cost of only a marginal loss in accuracy and achieve a sizable reduction in model size. This hints at the possibility that the baseline models in these experiments are perhaps severely over-parameterized at the outset and a viable alternative for model compression might be to simply reduce the number of hidden units while maintaining the model’s dense connection structure, exposing a similar trade-off in model size and accuracy. We investigate these two distinct paths for model compression within the context of energy-efficient inference in resource-constrained environments and propose a new gradual pruning technique that is simple and straightforward to apply across a variety of models/datasets with minimal tuning and can be seamlessly incorporated within the training process. We compare the accuracy of large, but pruned models (large-sparse) and their smaller, but dense (small-dense) counterparts with identical memory footprint. Across a broad range of neural network architectures (deep CNNs, stacked LSTM, and seq2seq LSTM models), we find large-sparse models to consistently outperform small-dense models and achieve up to $1 0 \mathrm { x }$ reduction in number of non-zero parameters with minimal loss in accuracy.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Over the past few years, deep neural networks have achieved state-of-the-art performance on several challenging tasks in the domains of computer vision, speech recognition, and natural language processing. Driven by increasing amounts of data and computational power, deep learning models have become bigger and deeper to better learn from data. While these models are typically deployed in a datacenter back-end, preserving user privacy and reducing user-perceived query times mandate the migration of the intelligence offered by these deep neural networks towards edge computing devices. Deploying large, accurate deep learning models to resource-constrained computing environments such as mobile phones, smart cameras etc. for on-device inference poses a few key challenges. Firstly, state-of-the-art deep learning models routinely have millions of parameters requiring \~MBs of storage, whereas on-device memory is limited. Furthermore, it is not uncommon for even a single model inference to invoke \~billions of memory accesses and arithmetic operations, all of which consume power and dissipate heat which may drain the limited battery capacity and/or test the device’s thermal limits.
12
+
13
+ Confronting these challenges, a growing body of work has emerged that intends to discover methods for compressing neural network models while limiting any potential loss in model quality. Latencysensitive workloads relying on energy-efficient on-device neural network inference are often memory bandwidth-bound, and model compression offers the two-fold benefit of reducing the total number of energy-intensive memory accesses as well as improving the inference time due to an effectively higher memory bandwidth for fetching compressed model parameters. Within the realm of model compression techniques, pruning away (forcing to zero) the less salient connections (parameters) in the neural network has been shown to reduce the number of nonzero parameters in the model with little to no loss in the final model quality. Model pruning enables trading off a small degradation in model quality for a reduction in model size, potentially reaping improvements in inference time and energy-efficiency. The resulting pruned model typically has sparse connection matrices, so efficient inference using these sparse models requires purpose-built hardware capable of loading sparse matrices and/or performing sparse matrix-vector operations (Zhang et al., 2016; Han et al., 2016; Parashar et al., 2017). Also, representing sparse matrices carries with it an additional storage overhead increasing the model’s net memory footprint which must also be taken into consideration.
14
+
15
+ In this work, we perform a closer examination of the effectiveness of model pruning as a means for model compression. From the perspective of on-device neural network inference, given a bound on the model’s memory footprint, how can we arrive at the most accurate model? We aim to answer this question by comparing the quality of the models obtained through two distinct methods: (1) training a large model, but pruned to obtain a sparse model with a small number of nonzero parameters (large-sparse); and (2) training a small-dense model with size comparable to the large-sparse model. Both of these methods expose a model accuracy and size tradeoff, but differ remarkably in terms of their implications on the design of the underlying hardware architecture. For this comparative study, we pick models across a diverse set of application domains: InceptionV3 (Szegedy et al., 2016) and MobileNets (Howard et al., 2017) for image recognitions tasks, stacked LSTMs for language modeling, and seq2seq models used in Google’s Neural Machine Translation (Wu et al., 2016) system. In the process of this investigation, we also develop a simple gradual pruning approach that requires minimal tuning and can be seamlessly incorporated within the training process and demonstrate its applicability and performance on an assortment of neural network architectures.
16
+
17
+ # 2 RELATED WORK
18
+
19
+ Early works in the 1990s (LeCun et al., 1990; Hassibi et al., 1993) performed pruning using a second-order Taylor approximation of the increase in the loss function of the network when a weight is set to zero. In Optimal Brain Damage (LeCun et al., 1990), the saliency for each weight was computed using a diagonal Hessian approximation, and the low-saliency weights were pruned from the network and the network was retrained. In Optimal Brain Surgeon (Hassibi et al., 1993), the saliency for each weight was computed using the inverse Hessian matrix, and the low-saliency weights were pruned and all other weights in the network were updated using the Hessian matrix.
20
+
21
+ More recently, magnitude-based weight pruning methods have become popular techniques for network pruning (Han et al., 2015b;a; See et al., 2016; Narang et al., 2017). Magnitude-based weight pruning techniques are computationally efficient, scaling to large networks and datasets. Our automated gradual pruning algorithm prunes the smallest magnitude weights to achieve a preset level of network sparsity. In contrast with the works listed above, our paper focuses on comparing the model accuracy and size tradeoff of large-sparse versus small-dense models.
22
+
23
+ A work similar to ours is the work by Narang et al. (2017) on pruning a RNN and GRU model for speech recognition and showing that a sparse RNN that was pruned outperformed a dense RNN trained normally of comparable size. While they provide one data point comparing the performance of a sparse vs dense model, our work does an extensive comparison of sparse vs dense models across a wide range of models in different domains (vision and NLP). Narang et al. also introduce a gradual pruning scheme based on pruning all the weights in a layer less than some threshold (manually chosen) which is linear with some slope in phase 1 and linear with some slope in phase 2 followed by normal training. Compared to their approach, we do not have two phases and do not have to choose two slopes, and we do not need to choose weight thresholds for each layer (we rely on a sparsity schedule which determines the weight thresholds). Thus, our technique is simpler, doesn’t require much hyperparameter tuning, and is shown to perform well across different models.
24
+
25
+ Within the context of reducing model size by removing redundant connections, several recent works (Anwar et al., 2015; Lebedev & Lempitsky, 2015; Li et al., 2016; Changpinyo et al., 2017) propose techniques to prune and induce sparsity in a structured way, motivated primarily by the desire to speedup computations on existing hardware architectures optimized for dense linear algebra. Such techniques perform coarse-grain pruning and depend critically on the structure of the convolutional layers, and may not be directly extensible to other neural network architectures that lack such structural properties (LSTMs for instance). On the contrary, our method does not make any assumptions about the structure of the network or its constituent layers and is therefore more generally applicable.
26
+
27
+ While pruning focuses on reducing the number of non-zero parameters, in principle, model pruning can be used in conjunction with other techniques to further reduce model size. Quantization techniques aim to reduce the number of bits required to represent each parameter from 32-bit floats to 8 bits or fewer. Different quantization techniques such as fixed-point quantization (Vanhoucke et al., 2011) or vector quantization (Gong et al., 2014) achieve different compression ratios and accuracies but also require different software or hardware to support inference at runtime. Pruning can be combined with quantization to achieve maximal compression (Han et al., 2015a). In addition, an emerging area of research is low precision networks where the parameters and/or activations are quantized to 4 bits or fewer (Courbariaux et al., 2015; Lin et al., 2015; Hubara et al., 2016; Rastegari et al., 2016; Zhu et al., 2016). Besides quantization, other potentially complementary approaches to reducing model size include low-rank matrix factorization (Denil et al., 2013; Denton et al., 2014; Jaderberg et al., 2014; Lebedev et al., 2014) and group sparsity regularization to arrive at an optimal layer size (Alvarez & Salzmann, 2016).
28
+
29
+ ![](images/b8a464b65ac8989f1c3928533cfcfc3b5ca03050aa33b8deb596993adf0875b5.jpg)
30
+ Figure 1: Sparsity function used for gradual pruning
31
+
32
+ Table 1: Model size and accuracy tradeoff for sparse-InceptionV3
33
+
34
+ <table><tr><td>Sparsity</td><td>NNZ params</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td>0%</td><td>27.1M</td><td>78.1%</td><td>94.3%</td></tr><tr><td>50%</td><td>13.6M</td><td>78.0%</td><td>94.2%</td></tr><tr><td>75%</td><td>6.8M</td><td>76.1%</td><td>93.2%</td></tr><tr><td>87.5%</td><td>3.3M</td><td>74.6%</td><td>92.5%</td></tr></table>
35
+
36
+ # 3 METHODS
37
+
38
+ We extend the TensorFlow (Abadi et al., 2015) framework to prune the network’s connections during training. For every layer chosen to be pruned, we add a binary mask variable which is of the same size and shape as the layer’s weight tensor and determines which of the weights participate in the forward execution of the graph. We inject ops into the TensorFlow training graph to sort the weights in that layer by their absolute values and mask to zero the smallest magnitude weights until some desired sparsity level $s$ is reached. The back-propagated gradients flow through the binary masks, and the weights that were masked in the forward execution do not get updated in the backpropagation step. We introduce a new automated gradual pruning algorithm in which the sparsity is increased from an initial sparsity value $s _ { i }$ (usually 0) to a final sparsity value $s _ { f }$ over a span of $n$ pruning steps, starting at training step $t _ { 0 }$ and with pruning frequency $\Delta t$ :
39
+
40
+ $$
41
+ s _ { t } = s _ { f } + ( s _ { i } - s _ { f } ) \left( 1 - \frac { t - t _ { 0 } } { n \Delta t } \right) ^ { 3 } \mathrm { ~ f o r ~ } t \in \{ t _ { 0 } , ~ t _ { 0 } + \Delta t , ~ . . . , ~ t _ { 0 } + n \Delta t \}
42
+ $$
43
+
44
+ The binary weight masks are updated every $\Delta t$ steps as the network is trained to gradually increase the sparsity of the network while allowing the network training steps to recover from any pruninginduced loss in accuracy. In our experience, varying the pruning frequency $\Delta t$ between 100 and 1000 training steps had a negligible impact on the final model quality. Once the model achieves the target sparsity $s _ { f }$ , the weight masks are no longer updated. The intuition behind this sparsity function in equation (1) is to prune the network rapidly in the initial phase when the redundant connections are abundant and gradually reduce the number of weights being pruned each time as there are fewer and fewer weights remaining in the network, as illustrated in Figure 1. In the experimental results presented in this paper, pruning is initiated after the model has been trained for a few epochs or from a pre-trained model. This determines the value for the hyperparameter $t _ { 0 }$ . A suitable choice for $n$ is largely dependent on the learning rate schedule. Stochastic gradient descent (and its many variants) typically decay the learning rate during training, and we have observed that pruning in the presence of an exceedingly small learning rate makes it difficult for the subsequent training steps to recover from the loss in accuracy caused by forcing the weights to zero. At the same time, pruning with too high of a learning rate may mean pruning weights when the weights have not yet converged to a good solution, so the pruning schedule should be chosen closely with the learning rate schedule.
45
+
46
+ ![](images/7fbebfe6d2a1ec0deba98179b35da1400747e9503979eb08eb7c1464ff47b4e3.jpg)
47
+ Figure 2: (a) The gradual sparsity function and exponentially decaying learning rate used for training sparse-InceptionV3 models. (b) Evolution of the model’s accuracy during the training process
48
+
49
+ ![](images/8e5c10d27205284de0780dc0e30b8cb8150f92a11177d9cc85416f827808d715.jpg)
50
+ Figure 3: MobileNet sparse vs dense results
51
+
52
+ ![](images/702b771ad2805dc43f0e503ff094d90992d665a3ee98080cd91e746fe237d7a2.jpg)
53
+ Figure 4: PTB sparse vs dense results
54
+
55
+ Figure 2a shows the learning rate and the pruning schedule used for training sparse-InceptionV3 (Szegedy et al., 2016) models. All the convolutional layers in this model are pruned using the same sparsity function, and pruning occurs in the regime where the learning rate is still reasonably high to allow the network to heal from the pruning-induced damage. Figure 2b offers more insight into how this pruning scheme interacts with the training procedure. For the $8 7 . 5 \%$ sparse model, with the gradual increase in sparsity, there comes a point when the model suffers a near-catastrophic degradation, but recovers nearly just as quickly with continued training. This behavior is more pronounced in the models trained to have higher sparsity. Table 1 compares the performance of sparse-InceptionV3 models pruned to varying extents. As expected, there is a gradual degradation in the model quality as the sparsity increases. However, a $50 \%$ sparse model performs just as well as the baseline $0 \%$ sparsity), and there is only a $2 \%$ decrease in top-5 classification accuracy for the $8 7 . 5 \%$ sparse model which offers an ${ 8 } \mathbf { { x } }$ reduction in number of nonzero (NNZ) model parameters. Also note that since the weights are initialized randomly, the sparsity in the weight tensors does not exhibit any specific structure. Furthermore, the pruning method described here does not depend on any specific property of the network or the constituent layers, and can be extended directly to a wide-range of neural network architectures.
56
+
57
+ # 4 COMPARING large-sparse AND small-dense MODELS
58
+
59
+ # 4.1 MOBILENETS
60
+
61
+ MobileNets are a class of efficient convolutional neural networks designed specifically for mobile vision applications (Howard et al., 2017). Instead of using standard convolutions, MobileNets are based on a form of factorized convolutions called depthwise separable convolution. Depthwise separable convolutions consist of a depthwise convolution followed by a 1x1 convolution called a pointwise convolution. This factorization significantly reduces the number of parameters in the model by filtering and combining input channels in two separate steps instead of together as in the standard convolution. The MobileNet architecture consists of one standard convolution layer acting on the input image, a stack of depthwise separable convolutions, and finally averaging pooling and fully connected layers. For the dense baseline model with width multiplier 1.0, there are a total of 4.21M parameters, $9 9 \%$ of which are in the 1x1 pointwise convolution layers $( 7 4 . 6 \% )$ and fully connected layers $( 2 4 . 3 \% )$ . We do not prune the parameters in the one standard convolution layer and in the depthwise convolution layers since there are very few parameters in those layers $( 1 . 1 \% )$ .
62
+
63
+ Table 2: MobileNet sparse vs dense results
64
+
65
+ <table><tr><td>Width</td><td>Sparsity</td><td>NNZ params</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td>0.25</td><td>0%</td><td>0.46M</td><td>50.6%</td><td>75.0%</td></tr><tr><td>0.5</td><td>0%</td><td>1.32M</td><td>63.7%</td><td>85.4%</td></tr><tr><td>0.75</td><td>0%</td><td>2.57M</td><td>68.4%</td><td>88.2%</td></tr><tr><td rowspan="4">1.0</td><td>0%</td><td>4.21M</td><td>70.6%</td><td>89.5%</td></tr><tr><td>50%</td><td>2.13M</td><td>69.5%</td><td>89.5%</td></tr><tr><td>75%</td><td>1.09M</td><td>67.7%</td><td>88.5%</td></tr><tr><td>90%</td><td>0.46M</td><td>61.8%</td><td>84.7%</td></tr><tr><td></td><td>95%</td><td>0.25M</td><td>53.6%</td><td>78.9%</td></tr></table>
66
+
67
+ Table 3: PTB sparse vs dense results
68
+
69
+ <table><tr><td>Model</td><td>Sparsity</td><td>NNZ params</td><td>Per- plexity</td></tr><tr><td>Small</td><td>0%</td><td>4.6M</td><td>115.30</td></tr><tr><td rowspan="5">Medium</td><td>0%</td><td>19.8M</td><td>83.37</td></tr><tr><td>80%</td><td>4.0M</td><td>83.87</td></tr><tr><td>85%</td><td>3.0M</td><td>85.17</td></tr><tr><td>90%</td><td>2.0M</td><td>87.86</td></tr><tr><td>95% 97.5%</td><td>1.0M 0.5M</td><td>96.30 113.6</td></tr><tr><td rowspan="5">Large</td><td>0%</td><td>66M</td><td>78.45</td></tr><tr><td>80%</td><td>13.2M</td><td>77.52</td></tr><tr><td>85%</td><td>9.9M</td><td>78.31</td></tr><tr><td>90%</td><td>6.6M</td><td>80.24</td></tr><tr><td>95%</td><td>3.3M</td><td>87.83</td></tr><tr><td></td><td>97.5%</td><td>1.7M</td><td>103.20</td></tr></table>
70
+
71
+ The width multiplier is a parameter of the MobileNet network that allows trading off the accuracy of the model with the number of parameters and computational cost. The width multiplier of the baseline model is 1.0. For a given width multiplier $\alpha \in ( 0 , 1 ]$ , the number of input channels and the number of output channels in each layer is scaled by $\alpha$ relative to the baseline 1.0 model. We compare the performance of dense MobileNets trained with width multipliers 0.75, 0.5, and 0.25 with the performance of sparse MobileNets pruned from dense 1.0 MobileNet in Figure 3 and Table 2 on the ImageNet dataset. We see that for a given number of non-zero parameters, sparse MobileNets are able to outperform dense MobileNets. For example, the $7 5 \%$ sparse model (which has 1.09 million parameters and a top-1 accuracy of $6 7 . 7 \%$ ) outperforms the dense 0.5 MobileNet (which has 1.32 million parameters and a top-1 accuracy of $6 3 . 7 \%$ ) by $4 \%$ in top-1 accuracy while being smaller. Similarly, the $90 \%$ sparse model (which has 0.46 million parameters and a top-1 accuracy of $6 1 . 8 \%$ ) outperforms the dense 0.25 MobileNet (which has 0.46 million parameters and a top-1 accuracy of $5 0 . 6 \%$ by $1 0 . 2 \%$ in top-1 accuracy while having the same number of non-zero parameters.
72
+
73
+ Overall, pruning is a promising approach for model compression even for an architecture that was designed to be compact and efficient by using depthwise separable convolutions instead of standard convolutions as a factorization-like technique to reduce the number of parameters. The sparsity parameter is shown to be an effective way to trade off the accuracy of a model with its memory usage and compares favorably with the width multiplier in MobileNet. Training a sparse MobileNet using our gradual pruning algorithm is also easy. For pruning a dense MobileNet, we used the same learning rate schedule as for training a dense MobileNet but with an initial learning rate 10 times smaller than for training a dense MobileNet, and all other hyperparameters were kept the same.
74
+
75
+ # 4.2 PENN TREE BANK (PTB) LANGUAGE MODEL
76
+
77
+ We train an LSTM language model on the Penn Tree Bank dataset using the models and training procedure described in Zaremba et al. (2014). At each time step, the LSTM language model outputs the probability of the next word in the sentence given the history of previous words. The loss function is the average negative log probability of the target words, and the perplexity is the exponential of the loss function. The language model is composed of an embedding layer, 2 LSTM layers, and a softmax layer. The vocabulary size is 10,000, and the LSTM hidden layer size is 200 for the small model, 650 for the medium model, and 1,500 for the large model. In the case of the large model, there are 15M parameters in the embedding layer, 18M parameters in each of the two LSTM layers, and 15M parameters in the softmax layer for a total of 66M parameters. Different hyperparameters are used to train the different-sized models. When pruning a model of a certain size, we use the same hyperparameters that were used for training the dense model of that size. We compare the performance of the dense models with sparse models pruned from medium and large to $80 \%$ , $8 5 \%$ , $90 \%$ , $9 5 \%$ , and $9 7 . 5 \%$ sparsity in Figure 4 and Table 3. In this case, we see that sparse models are able to outperform dense models which have significantly more parameters (note the log scale for the number of parameters). The $90 \%$ sparse large model (which has 6.6 million parameters and a perplexity of 80.24) is able to outperform the dense medium model (which has 19.8 million parameters and a perplexity of 83.37), a model which has 3 times more parameters. Compared with MobileNet, pruning PTB model likely gives better results because the PTB model is larger with significantly more parameters. Our results show that pruning works very well not only on the dense LSTM weights and dense softmax layer but also the dense embedding matrix. This suggests that during the optimization procedure the neural network can find a good sparse embedding for the words in the vocabulary that works well together with the sparse connectivity structure of the LSTM weights and softmax layer.
78
+
79
+ ![](images/3142a960213f198f84c7fd4421050ba3c88ee3b7fa5c9cd6c53ca287ab3b3125.jpg)
80
+ Figure 5: Comparison of sparse vs dense NMT models for English to German (EN-DE) and German to English (DE-EN) translation
81
+
82
+ From Figure 4 and Table 3, we also see that the $85 \%$ sparse medium model (which has 3 million parameters and a perplexity of 85.17) outperforms the $9 5 \%$ sparse large model (which has 3.3 million parameters and a perplexity of 87.83). The accuracy of the $9 5 \%$ sparse large model is comparable to the accuracy of the $90 \%$ sparse medium model (which has 2 million parameters and a perplexity of 87.86). Together, these results suggest that there is an optimal compression range when pruning. In the case of PTB, pruning to $9 5 \%$ sparsity for a compression ratio of $2 0 \mathrm { x }$ significantly degrades the performance of the sparse model compared to pruning to $90 \%$ sparsity for a compression ratio of $1 0 \mathrm { x }$ , as seen in Figure 4 from the curve of perplexity vs. number of parameters traced by either of the sparse models. These results suggest that in order to get the best-performing sparse model of a certain size, we should train a dense model that is $5 \mathbf { X } { - } 1 0 \mathbf { X }$ larger and then prune to the desired number of parameters rather than taking the largest and best-performing dense model and pruning this model by $2 0 \mathrm { x }$ or more to the desired number of parameters, assuming that the difference in performance of the two dense baseline models is not that large. We note that it may be possible to obtain slightly better results for pruning to $9 5 \%$ sparsity or higher with more hyperparameter tuning, and the results we obtained for pruning a model of a certain size were from using exactly the same hyperparameter configuration as for training the dense model of that size.
83
+
84
+ # 4.3 GOOGLE NEURAL MACHINE TRANSLATION
85
+
86
+ The Google Neural Machine Translation (NMT) architecture is a seq2seq model with attention (Wu et al., 2016). We use the open-source TensorFlow implementation available at Luong et al. (2017). The model is based on an encoder-decoder architecture. The encoder has an embedding layer which maps the source vocabulary of 36,548 words into a $k$ -dimensional space, 1 bidirectional LSTM layer, and 3 standard LSTM layers. The decoder has an embedding layer which maps the target vocabulary of 36,548 words into a $k$ -dimensional space, 4 LSTM layers with attention, and finally a softmax layer. For the dense baseline model with number of units $k = 1 0 2 4$ , there are $3 7 . 4 \mathbf { M }$ parameters in each of the encoder embedding, decoder embedding, and softmax layers and $9 8 . 6 \mathbf { M }$ parameters in all of the LSTM layers for a total of 211M parameters. We apply pruning to all of the LSTM layers, embedding layers, and softmax layers, but we do not prune the attention parameters of which there are relatively few. The other dense models were obtained by varying the number of units $k$ . We use the WMT16 German and English dataset with news-test2013 as the dev set and news-test2015 as the test set. The BLEU score is reported as a measure of the translation quality. The learning rate schedule used for training the dense models is 170K iterations with initial learning rate 1.0 and 170K iterations with learning rate decay of 0.5 every 17K iterations. For pruning a dense model, the learning rate schedule we use is 70K iterations with initial learning rate 0.5 and 170K iterations with learning rate decay of 0.5 every 17K iterations, and all other hyperparameters were kept the same.
87
+
88
+ Table 4: NMT sparse vs dense results
89
+
90
+ <table><tr><td># units</td><td>Sparsity</td><td> NNZ params</td><td>EN-DE BLEU score</td><td>DE-EN BLEU score</td></tr><tr><td>256</td><td>0%</td><td>34M</td><td>23.52</td><td>26.52</td></tr><tr><td>512</td><td>0%</td><td>81M</td><td>26.05</td><td>28.88</td></tr><tr><td>768</td><td>0%</td><td>140M</td><td>26.63</td><td>29.41</td></tr><tr><td>1024</td><td>0%</td><td>211M</td><td>26.77</td><td>29.47</td></tr><tr><td></td><td>80%</td><td>44M</td><td>26.86</td><td>29.50</td></tr><tr><td></td><td>85%</td><td>33M</td><td>26.52</td><td>29.24</td></tr><tr><td></td><td>90%</td><td>23M</td><td>26.19</td><td>28.81</td></tr></table>
91
+
92
+ Since we noticed that the NMT training procedure had high variance, we tested several pruning schemes applied to NMT. Our standard implementation of gradual pruning increases the sparsity of every layer to the same sparsity level at each pruning step. We tested a variant which we call “layerwise constant” sparsity: instead of simultaneously increasing the sparsity of all layers to some sparsity level at each pruning step, we subdivide the pruning interval and increase the sparsity of one layer at a time to that sparsity level. This potentially has the effect of reducing the impact of pruning and allowing the network to recover better with training. Finally, we compared with “global” pruning: we prune the smallest magnitude weights across the entire network, regardless of which layer they are in. Global pruning produces a different sparsity level for each layer and was shown to perform well on NMT in the work of See et al. (2016). Overall, the layerwise constant pruning scheme performed best on average, so we report the results with the layerwise constant pruning scheme in Figure 5 and Table 4. We note that there is high variance in the results due to the stochasticity of the training process, as illustrated by the error bar in Figure 5 which is the standard deviation of the BLEU score of 10 randomly initialized and independently trained NMT models.
93
+
94
+ The results in Table 4 show that for $80 \%$ sparsity (5x compression), the pruned model actually achieves a slightly higher BLEU score than the baseline model (though we note the error bar). For $8 5 \%$ sparsity, the BLEU score drops by around 0.25, and for $90 \%$ sparsity, the BLEU score drops by around 0.6. When we compare the performance of dense and sparse models in Figure 5 and Table 4, we again see that sparse models outperform even larger-sized dense models. The BLEU score of the dense model falls off quickly after $2 \mathbf { x }$ reduction in model size while the BLEU score of the sparse model starts to fall off only after ${ 5 } \mathbf { x }$ reduction in NNZ parameters. For example, the $90 \%$ sparse 1024-unit model is comparable to or outperforms the dense 512-unit model (26.19 vs 26.05 for EN-DE and 28.81 vs 28.88 for DE-EN) despite having $3 . 5 \mathrm { x }$ fewer NNZ params (23M vs 81M).
95
+
96
+ # 5 DISCUSSION
97
+
98
+ The net memory footprint of a sparse model includes the storage for the nonzero parameters and any auxiliary data structures needed for indexing these elements. Pruning models helps reduce the number of nonzero-valued connections in the network; however the overhead in sparse matrix storage inevitably diminishes the achievable compression ratio. The bit-mask sparse matrix representation requires 1 bit per matrix element indicating whether the element is nonzero, and a vector containing all the nonzero matrix elements. This representation incurs a constant overhead regardless of the model sparsity. In the compressed sparse row (column) storage (CSR(C)) adopted in Parashar et al. (2017), each nonzero parameter in the sparse matrix is associated with a count (usually stored as a 4 or 5 bit integer) of the number of zeros preceding it. The overhead in this case is proportional to the NNZ in the model. Table 5 compares these two representations for sparse-MobileNets. The CSR(C) representation can enable higher compression ratio for networks with high sparsity. Note, however, that the bit-mask representation offers marginally lower overhead at smaller sparsity levels.
99
+
100
+ Table 5: Storage overheads associated with bit-mask and CSR(C) sparse matrix representations for sparse-MobileNets
101
+
102
+ <table><tr><td>Sparsity</td><td> NNZ params</td><td>Bit-mask (MB)</td><td>CSR(C) (MB)</td></tr><tr><td>0%</td><td>4.21M</td><td>N/A</td><td>N/A</td></tr><tr><td>50%</td><td>2.13M</td><td>0.52</td><td>1.06</td></tr><tr><td>75%</td><td>1.09M</td><td>0.52</td><td>0.54</td></tr><tr><td>90%</td><td>0.46M</td><td>0.52</td><td>0.23</td></tr><tr><td>95%</td><td>0.25M</td><td>0.52</td><td>0.13</td></tr></table>
103
+
104
+ Table 6: Comparison of the performance of small-dense and large-sparse models. Model size calculations include overhead for sparse matrix storage and assumes 32-bit (4 bytes) per nonzero element.
105
+
106
+ <table><tr><td rowspan="2">Model</td><td colspan="2">Small-dense</td><td colspan="2">Large-sparse</td></tr><tr><td>Model size (MB)</td><td>Accuracy (%)</td><td>Model size (MB)</td><td>Accuracy (%)</td></tr><tr><td rowspan="4">MobileNet</td><td>10.28</td><td>68.4</td><td>9.04</td><td>69.5</td></tr><tr><td>5.28</td><td>63.7</td><td>4.88</td><td>67.7</td></tr><tr><td>1.84</td><td>50.6</td><td>2.07</td><td>61.8</td></tr><tr><td></td><td></td><td>1.13</td><td>53.6</td></tr></table>
107
+
108
+ In spite of this overhead, large-sparse models appear to achieve higher accuracy than small-dense models with comparable memory footprint. For instance, MobileNet with width multiplier 1 and sparsity $50 \%$ has similar footprint as MobileNet with width multiplier 0.75, but obtains higher accuracy. Table 6 further highlights the trade-off between model size and accuracy for dense and sparse models. The performance gap between large-sparse and small-dense models widens for larger models such as as the PTB language models and NMT (see Table 3 and Table 4). It is worth noting that the results presented in this work were obtained by training neural networks using 32-bit floating point representation. For neural networks trained to perform inference using reduced precision (8-bit integer, for instance) arithmetic, the memory overhead of sparse matrix storage represents a bigger fraction of the total memory footprint. Quantization of the parameters to a reduced precision number representation is also an effective method for model compression, and the interplay between model quantization and pruning and their collective impact on model accuracy merits a closer examination. We defer that investigation to a future extension to this work.
109
+
110
+ # 6 CONCLUSION
111
+
112
+ This work sheds light on the model size and accuracy trade-off encountered in pruned deep neural networks. We demonstrate that large-sparse models outperform comparably-sized small-dense models across a diverse set of neural network architectures. We also present a gradual pruning technique that can be applied with ease across these different architectures. We believe these results will encourage the adoption of model pruning as a tool for compressing neural networks for deployment in resource-constrained environments. At the same time, we hold the opinion that our results will provide further impetus to the hardware architecture community to customize the next generation of deep learning accelerator architectures to efficiently handle sparse matrix storage and computations.
113
+
114
+ # REFERENCES
115
+
116
+ Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow. org/. Software available from tensorflow.org.
117
+ Jose M. Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. CoRR, abs/1611.06321, 2016.
118
+ Sajid Anwar, Kyuyeon Hwang, and Wonyong Sung. Structured pruning of deep convolutional neural networks. CoRR, abs/1512.08571, 2015.
119
+ Soravit Changpinyo, Mark Sandler, and Andrey Zhmoginov. The power of sparsity in convolutional neural networks. CoRR, abs/1702.06257, 2017.
120
+ Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. CoRR, abs/1511.00363, 2015.
121
+ Misha Denil, Babak Shakibi, Laurent Dinh, Marc’aurelio Ranzato, and Nando D. Freitas. Predicting parameters in deep learning. In C.j.c. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K.q. Weinberger (eds.), Advances in Neural Information Processing Systems 26, pp. 2148–2156. 2013.
122
+ Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 1269– 1277. Curran Associates, Inc., 2014.
123
+ Yunchao Gong, Liu Liu, Ming Yang, and Lubomir D. Bourdev. Compressing deep convolutional networks using vector quantization. CoRR, abs/1412.6115, 2014.
124
+ Song Han, Huizi Mao, and William J. Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. CoRR, abs/1510.00149, 2015a.
125
+ Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 1135–1143. Curran Associates, Inc., 2015b.
126
+ 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. CoRR, abs/1602.01528, 2016.
127
+ B. Hassibi, D. G. Stork, and G. J. Wolff. Optimal brain surgeon and general network pruning. In IEEE International Conference on Neural Networks, pp. 293–299 vol.1, 1993. doi: 10.1109/ICNN.1993.298572.
128
+ Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017.
129
+ Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. CoRR, abs/1609.07061, 2016.
130
+ Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. CoRR, abs/1405.3866, 2014.
131
+ Vadim Lebedev and Victor S. Lempitsky. Fast convnets using group-wise brain damage. CoRR, abs/1506.02515, 2015.
132
+ Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan V. Oseledets, and Victor S. Lempitsky. Speeding-up convolutional neural networks using fine-tuned cp-decomposition. CoRR, abs/1412.6553, 2014.
133
+ Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In D. S. Touretzky (ed.), Advances in Neural Information Processing Systems 2, pp. 598–605. Morgan-Kaufmann, 1990.
134
+ Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016.
135
+ Zhouhan Lin, Matthieu Courbariaux, Roland Memisevic, and Yoshua Bengio. Neural networks with few multiplications. CoRR, abs/1510.03009, 2015.
136
+ Thang Luong, Eugene Brevdo, and Rui Zhao. Neural machine translation (seq2seq) tutorial, 2017. URL https://github.com/tensorflow/nmt.
137
+ Sharan Narang, Gregory F. Diamos, Shubho Sengupta, and Erich Elsen. Exploring sparsity in recurrent neural networks. CoRR, abs/1704.05119, 2017.
138
+ 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 Proceedings of the 44th Annual International Symposium on Computer Architecture, pp. 27–40. ACM, 2017.
139
+ Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. CoRR, abs/1603.05279, 2016.
140
+ Abigail See, Minh-Thang Luong, and Christopher D. Manning. Compression of neural machine translation models via pruning. In CoNLL, pp. 291–301. ACL, 2016.
141
+ 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.
142
+ Vincent Vanhoucke, Andrew Senior, and Mark Z. Mao. Improving the speed of neural networks on cpus. In Deep Learning and Unsupervised Feature Learning Workshop, NIPS 2011, 2011.
143
+ Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Lukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and Jeffrey Dean. Google’s neural machine translation system: Bridging the gap between human and machine translation. CoRR, abs/1609.08144, 2016.
144
+ Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. CoRR, abs/1409.2329, 2014.
145
+ Shijin Zhang, Zidong Du, Lei Zhang, Huiying Lan, Shaoli Liu, Ling Li, Qi Guo, Tianshi Chen, and Yunji Chen. Cambricon-x: An accelerator for sparse neural networks. In Microarchitecture (MICRO), 2016 49th Annual IEEE/ACM International Symposium on, pp. 1–12. IEEE, 2016.
146
+ Chenzhuo Zhu, Song Han, Huizi Mao, and William J. Dally. Trained ternary quantization. CoRR, abs/1612.01064, 2016.
parse/train/S1lN69AT-/S1lN69AT-_content_list.json ADDED
@@ -0,0 +1,693 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TO PRUNE, OR NOT TO PRUNE: EXPLORING THE EFFICACY OF PRUNING FOR MODEL COMPRESSION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Model pruning seeks to induce sparsity in a deep neural network’s various connection matrices, thereby reducing the number of nonzero-valued parameters in the model. Recent reports (Han et al., 2015a; Narang et al., 2017) prune deep networks at the cost of only a marginal loss in accuracy and achieve a sizable reduction in model size. This hints at the possibility that the baseline models in these experiments are perhaps severely over-parameterized at the outset and a viable alternative for model compression might be to simply reduce the number of hidden units while maintaining the model’s dense connection structure, exposing a similar trade-off in model size and accuracy. We investigate these two distinct paths for model compression within the context of energy-efficient inference in resource-constrained environments and propose a new gradual pruning technique that is simple and straightforward to apply across a variety of models/datasets with minimal tuning and can be seamlessly incorporated within the training process. We compare the accuracy of large, but pruned models (large-sparse) and their smaller, but dense (small-dense) counterparts with identical memory footprint. Across a broad range of neural network architectures (deep CNNs, stacked LSTM, and seq2seq LSTM models), we find large-sparse models to consistently outperform small-dense models and achieve up to $1 0 \\mathrm { x }$ reduction in number of non-zero parameters with minimal loss in accuracy. ",
40
+ "bbox": [
41
+ 233,
42
+ 263,
43
+ 764,
44
+ 527
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 553,
55
+ 336,
56
+ 568
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Over the past few years, deep neural networks have achieved state-of-the-art performance on several challenging tasks in the domains of computer vision, speech recognition, and natural language processing. Driven by increasing amounts of data and computational power, deep learning models have become bigger and deeper to better learn from data. While these models are typically deployed in a datacenter back-end, preserving user privacy and reducing user-perceived query times mandate the migration of the intelligence offered by these deep neural networks towards edge computing devices. Deploying large, accurate deep learning models to resource-constrained computing environments such as mobile phones, smart cameras etc. for on-device inference poses a few key challenges. Firstly, state-of-the-art deep learning models routinely have millions of parameters requiring \\~MBs of storage, whereas on-device memory is limited. Furthermore, it is not uncommon for even a single model inference to invoke \\~billions of memory accesses and arithmetic operations, all of which consume power and dissipate heat which may drain the limited battery capacity and/or test the device’s thermal limits. ",
63
+ "bbox": [
64
+ 174,
65
+ 583,
66
+ 825,
67
+ 763
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Confronting these challenges, a growing body of work has emerged that intends to discover methods for compressing neural network models while limiting any potential loss in model quality. Latencysensitive workloads relying on energy-efficient on-device neural network inference are often memory bandwidth-bound, and model compression offers the two-fold benefit of reducing the total number of energy-intensive memory accesses as well as improving the inference time due to an effectively higher memory bandwidth for fetching compressed model parameters. Within the realm of model compression techniques, pruning away (forcing to zero) the less salient connections (parameters) in the neural network has been shown to reduce the number of nonzero parameters in the model with little to no loss in the final model quality. Model pruning enables trading off a small degradation in model quality for a reduction in model size, potentially reaping improvements in inference time and energy-efficiency. The resulting pruned model typically has sparse connection matrices, so efficient inference using these sparse models requires purpose-built hardware capable of loading sparse matrices and/or performing sparse matrix-vector operations (Zhang et al., 2016; Han et al., 2016; Parashar et al., 2017). Also, representing sparse matrices carries with it an additional storage overhead increasing the model’s net memory footprint which must also be taken into consideration. ",
74
+ "bbox": [
75
+ 174,
76
+ 771,
77
+ 825,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 823,
89
+ 159
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work, we perform a closer examination of the effectiveness of model pruning as a means for model compression. From the perspective of on-device neural network inference, given a bound on the model’s memory footprint, how can we arrive at the most accurate model? We aim to answer this question by comparing the quality of the models obtained through two distinct methods: (1) training a large model, but pruned to obtain a sparse model with a small number of nonzero parameters (large-sparse); and (2) training a small-dense model with size comparable to the large-sparse model. Both of these methods expose a model accuracy and size tradeoff, but differ remarkably in terms of their implications on the design of the underlying hardware architecture. For this comparative study, we pick models across a diverse set of application domains: InceptionV3 (Szegedy et al., 2016) and MobileNets (Howard et al., 2017) for image recognitions tasks, stacked LSTMs for language modeling, and seq2seq models used in Google’s Neural Machine Translation (Wu et al., 2016) system. In the process of this investigation, we also develop a simple gradual pruning approach that requires minimal tuning and can be seamlessly incorporated within the training process and demonstrate its applicability and performance on an assortment of neural network architectures. ",
96
+ "bbox": [
97
+ 174,
98
+ 166,
99
+ 825,
100
+ 361
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "2 RELATED WORK ",
107
+ "text_level": 1,
108
+ "bbox": [
109
+ 176,
110
+ 387,
111
+ 339,
112
+ 404
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "Early works in the 1990s (LeCun et al., 1990; Hassibi et al., 1993) performed pruning using a second-order Taylor approximation of the increase in the loss function of the network when a weight is set to zero. In Optimal Brain Damage (LeCun et al., 1990), the saliency for each weight was computed using a diagonal Hessian approximation, and the low-saliency weights were pruned from the network and the network was retrained. In Optimal Brain Surgeon (Hassibi et al., 1993), the saliency for each weight was computed using the inverse Hessian matrix, and the low-saliency weights were pruned and all other weights in the network were updated using the Hessian matrix. ",
119
+ "bbox": [
120
+ 174,
121
+ 421,
122
+ 825,
123
+ 520
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "More recently, magnitude-based weight pruning methods have become popular techniques for network pruning (Han et al., 2015b;a; See et al., 2016; Narang et al., 2017). Magnitude-based weight pruning techniques are computationally efficient, scaling to large networks and datasets. Our automated gradual pruning algorithm prunes the smallest magnitude weights to achieve a preset level of network sparsity. In contrast with the works listed above, our paper focuses on comparing the model accuracy and size tradeoff of large-sparse versus small-dense models. ",
130
+ "bbox": [
131
+ 174,
132
+ 526,
133
+ 823,
134
+ 609
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "A work similar to ours is the work by Narang et al. (2017) on pruning a RNN and GRU model for speech recognition and showing that a sparse RNN that was pruned outperformed a dense RNN trained normally of comparable size. While they provide one data point comparing the performance of a sparse vs dense model, our work does an extensive comparison of sparse vs dense models across a wide range of models in different domains (vision and NLP). Narang et al. also introduce a gradual pruning scheme based on pruning all the weights in a layer less than some threshold (manually chosen) which is linear with some slope in phase 1 and linear with some slope in phase 2 followed by normal training. Compared to their approach, we do not have two phases and do not have to choose two slopes, and we do not need to choose weight thresholds for each layer (we rely on a sparsity schedule which determines the weight thresholds). Thus, our technique is simpler, doesn’t require much hyperparameter tuning, and is shown to perform well across different models. ",
141
+ "bbox": [
142
+ 174,
143
+ 617,
144
+ 825,
145
+ 770
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Within the context of reducing model size by removing redundant connections, several recent works (Anwar et al., 2015; Lebedev & Lempitsky, 2015; Li et al., 2016; Changpinyo et al., 2017) propose techniques to prune and induce sparsity in a structured way, motivated primarily by the desire to speedup computations on existing hardware architectures optimized for dense linear algebra. Such techniques perform coarse-grain pruning and depend critically on the structure of the convolutional layers, and may not be directly extensible to other neural network architectures that lack such structural properties (LSTMs for instance). On the contrary, our method does not make any assumptions about the structure of the network or its constituent layers and is therefore more generally applicable. ",
152
+ "bbox": [
153
+ 174,
154
+ 776,
155
+ 825,
156
+ 888
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "While pruning focuses on reducing the number of non-zero parameters, in principle, model pruning can be used in conjunction with other techniques to further reduce model size. Quantization techniques aim to reduce the number of bits required to represent each parameter from 32-bit floats to 8 bits or fewer. Different quantization techniques such as fixed-point quantization (Vanhoucke et al., 2011) or vector quantization (Gong et al., 2014) achieve different compression ratios and accuracies but also require different software or hardware to support inference at runtime. Pruning can be combined with quantization to achieve maximal compression (Han et al., 2015a). In addition, an emerging area of research is low precision networks where the parameters and/or activations are quantized to 4 bits or fewer (Courbariaux et al., 2015; Lin et al., 2015; Hubara et al., 2016; Rastegari et al., 2016; Zhu et al., 2016). Besides quantization, other potentially complementary approaches to reducing model size include low-rank matrix factorization (Denil et al., 2013; Denton et al., 2014; Jaderberg et al., 2014; Lebedev et al., 2014) and group sparsity regularization to arrive at an optimal layer size (Alvarez & Salzmann, 2016). ",
163
+ "bbox": [
164
+ 176,
165
+ 895,
166
+ 821,
167
+ 924
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "image",
173
+ "img_path": "images/b8a464b65ac8989f1c3928533cfcfc3b5ca03050aa33b8deb596993adf0875b5.jpg",
174
+ "image_caption": [
175
+ "Figure 1: Sparsity function used for gradual pruning "
176
+ ],
177
+ "image_footnote": [],
178
+ "bbox": [
179
+ 181,
180
+ 107,
181
+ 472,
182
+ 255
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "table",
188
+ "img_path": "images/f82e602a2923e1425c1b99d3a5e287ad10dde9b42504217a0f622a8a318f05c7.jpg",
189
+ "table_caption": [
190
+ "Table 1: Model size and accuracy tradeoff for sparse-InceptionV3 "
191
+ ],
192
+ "table_footnote": [],
193
+ "table_body": "<table><tr><td>Sparsity</td><td>NNZ params</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td>0%</td><td>27.1M</td><td>78.1%</td><td>94.3%</td></tr><tr><td>50%</td><td>13.6M</td><td>78.0%</td><td>94.2%</td></tr><tr><td>75%</td><td>6.8M</td><td>76.1%</td><td>93.2%</td></tr><tr><td>87.5%</td><td>3.3M</td><td>74.6%</td><td>92.5%</td></tr></table>",
194
+ "bbox": [
195
+ 509,
196
+ 141,
197
+ 818,
198
+ 242
199
+ ],
200
+ "page_idx": 2
201
+ },
202
+ {
203
+ "type": "text",
204
+ "text": "",
205
+ "bbox": [
206
+ 173,
207
+ 328,
208
+ 825,
209
+ 481
210
+ ],
211
+ "page_idx": 2
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "3 METHODS ",
216
+ "text_level": 1,
217
+ "bbox": [
218
+ 174,
219
+ 502,
220
+ 290,
221
+ 518
222
+ ],
223
+ "page_idx": 2
224
+ },
225
+ {
226
+ "type": "text",
227
+ "text": "We extend the TensorFlow (Abadi et al., 2015) framework to prune the network’s connections during training. For every layer chosen to be pruned, we add a binary mask variable which is of the same size and shape as the layer’s weight tensor and determines which of the weights participate in the forward execution of the graph. We inject ops into the TensorFlow training graph to sort the weights in that layer by their absolute values and mask to zero the smallest magnitude weights until some desired sparsity level $s$ is reached. The back-propagated gradients flow through the binary masks, and the weights that were masked in the forward execution do not get updated in the backpropagation step. We introduce a new automated gradual pruning algorithm in which the sparsity is increased from an initial sparsity value $s _ { i }$ (usually 0) to a final sparsity value $s _ { f }$ over a span of $n$ pruning steps, starting at training step $t _ { 0 }$ and with pruning frequency $\\Delta t$ : ",
228
+ "bbox": [
229
+ 173,
230
+ 535,
231
+ 825,
232
+ 676
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "equation",
238
+ "img_path": "images/a614fbae9855ab65d6d851147fab0f74cd02540d1a6bff2625ad2d58fe0bf2c1.jpg",
239
+ "text": "$$\ns _ { t } = s _ { f } + ( s _ { i } - s _ { f } ) \\left( 1 - \\frac { t - t _ { 0 } } { n \\Delta t } \\right) ^ { 3 } \\mathrm { ~ f o r ~ } t \\in \\{ t _ { 0 } , ~ t _ { 0 } + \\Delta t , ~ . . . , ~ t _ { 0 } + n \\Delta t \\}\n$$",
240
+ "text_format": "latex",
241
+ "bbox": [
242
+ 238,
243
+ 693,
244
+ 758,
245
+ 731
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "The binary weight masks are updated every $\\Delta t$ steps as the network is trained to gradually increase the sparsity of the network while allowing the network training steps to recover from any pruninginduced loss in accuracy. In our experience, varying the pruning frequency $\\Delta t$ between 100 and 1000 training steps had a negligible impact on the final model quality. Once the model achieves the target sparsity $s _ { f }$ , the weight masks are no longer updated. The intuition behind this sparsity function in equation (1) is to prune the network rapidly in the initial phase when the redundant connections are abundant and gradually reduce the number of weights being pruned each time as there are fewer and fewer weights remaining in the network, as illustrated in Figure 1. In the experimental results presented in this paper, pruning is initiated after the model has been trained for a few epochs or from a pre-trained model. This determines the value for the hyperparameter $t _ { 0 }$ . A suitable choice for $n$ is largely dependent on the learning rate schedule. Stochastic gradient descent (and its many variants) typically decay the learning rate during training, and we have observed that pruning in the presence of an exceedingly small learning rate makes it difficult for the subsequent training steps to recover from the loss in accuracy caused by forcing the weights to zero. At the same time, pruning with too high of a learning rate may mean pruning weights when the weights have not yet converged to a good solution, so the pruning schedule should be chosen closely with the learning rate schedule. ",
252
+ "bbox": [
253
+ 173,
254
+ 742,
255
+ 825,
256
+ 924
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "image",
262
+ "img_path": "images/7fbebfe6d2a1ec0deba98179b35da1400747e9503979eb08eb7c1464ff47b4e3.jpg",
263
+ "image_caption": [
264
+ "Figure 2: (a) The gradual sparsity function and exponentially decaying learning rate used for training sparse-InceptionV3 models. (b) Evolution of the model’s accuracy during the training process "
265
+ ],
266
+ "image_footnote": [],
267
+ "bbox": [
268
+ 179,
269
+ 103,
270
+ 808,
271
+ 275
272
+ ],
273
+ "page_idx": 3
274
+ },
275
+ {
276
+ "type": "image",
277
+ "img_path": "images/8e5c10d27205284de0780dc0e30b8cb8150f92a11177d9cc85416f827808d715.jpg",
278
+ "image_caption": [
279
+ "Figure 3: MobileNet sparse vs dense results "
280
+ ],
281
+ "image_footnote": [],
282
+ "bbox": [
283
+ 181,
284
+ 335,
285
+ 473,
286
+ 484
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "image",
292
+ "img_path": "images/702b771ad2805dc43f0e503ff094d90992d665a3ee98080cd91e746fe237d7a2.jpg",
293
+ "image_caption": [
294
+ "Figure 4: PTB sparse vs dense results "
295
+ ],
296
+ "image_footnote": [],
297
+ "bbox": [
298
+ 516,
299
+ 337,
300
+ 808,
301
+ 483
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "",
308
+ "bbox": [
309
+ 176,
310
+ 544,
311
+ 825,
312
+ 585
313
+ ],
314
+ "page_idx": 3
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "Figure 2a shows the learning rate and the pruning schedule used for training sparse-InceptionV3 (Szegedy et al., 2016) models. All the convolutional layers in this model are pruned using the same sparsity function, and pruning occurs in the regime where the learning rate is still reasonably high to allow the network to heal from the pruning-induced damage. Figure 2b offers more insight into how this pruning scheme interacts with the training procedure. For the $8 7 . 5 \\%$ sparse model, with the gradual increase in sparsity, there comes a point when the model suffers a near-catastrophic degradation, but recovers nearly just as quickly with continued training. This behavior is more pronounced in the models trained to have higher sparsity. Table 1 compares the performance of sparse-InceptionV3 models pruned to varying extents. As expected, there is a gradual degradation in the model quality as the sparsity increases. However, a $50 \\%$ sparse model performs just as well as the baseline $0 \\%$ sparsity), and there is only a $2 \\%$ decrease in top-5 classification accuracy for the $8 7 . 5 \\%$ sparse model which offers an ${ 8 } \\mathbf { { x } }$ reduction in number of nonzero (NNZ) model parameters. Also note that since the weights are initialized randomly, the sparsity in the weight tensors does not exhibit any specific structure. Furthermore, the pruning method described here does not depend on any specific property of the network or the constituent layers, and can be extended directly to a wide-range of neural network architectures. ",
319
+ "bbox": [
320
+ 174,
321
+ 593,
322
+ 825,
323
+ 814
324
+ ],
325
+ "page_idx": 3
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "4 COMPARING large-sparse AND small-dense MODELS ",
330
+ "text_level": 1,
331
+ "bbox": [
332
+ 176,
333
+ 837,
334
+ 627,
335
+ 853
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "4.1 MOBILENETS ",
342
+ "text_level": 1,
343
+ "bbox": [
344
+ 174,
345
+ 868,
346
+ 310,
347
+ 882
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "MobileNets are a class of efficient convolutional neural networks designed specifically for mobile vision applications (Howard et al., 2017). Instead of using standard convolutions, MobileNets are based on a form of factorized convolutions called depthwise separable convolution. Depthwise separable convolutions consist of a depthwise convolution followed by a 1x1 convolution called a pointwise convolution. This factorization significantly reduces the number of parameters in the model by filtering and combining input channels in two separate steps instead of together as in the standard convolution. The MobileNet architecture consists of one standard convolution layer acting on the input image, a stack of depthwise separable convolutions, and finally averaging pooling and fully connected layers. For the dense baseline model with width multiplier 1.0, there are a total of 4.21M parameters, $9 9 \\%$ of which are in the 1x1 pointwise convolution layers $( 7 4 . 6 \\% )$ and fully connected layers $( 2 4 . 3 \\% )$ . We do not prune the parameters in the one standard convolution layer and in the depthwise convolution layers since there are very few parameters in those layers $( 1 . 1 \\% )$ . ",
354
+ "bbox": [
355
+ 176,
356
+ 895,
357
+ 823,
358
+ 924
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "table",
364
+ "img_path": "images/d013f371dad74e7468a7894d9dc64bc6a32ec487634232bea56ecfc25b9370ba.jpg",
365
+ "table_caption": [
366
+ "Table 2: MobileNet sparse vs dense results "
367
+ ],
368
+ "table_footnote": [],
369
+ "table_body": "<table><tr><td>Width</td><td>Sparsity</td><td>NNZ params</td><td>Top-1 acc.</td><td>Top-5 acc.</td></tr><tr><td>0.25</td><td>0%</td><td>0.46M</td><td>50.6%</td><td>75.0%</td></tr><tr><td>0.5</td><td>0%</td><td>1.32M</td><td>63.7%</td><td>85.4%</td></tr><tr><td>0.75</td><td>0%</td><td>2.57M</td><td>68.4%</td><td>88.2%</td></tr><tr><td rowspan=\"4\">1.0</td><td>0%</td><td>4.21M</td><td>70.6%</td><td>89.5%</td></tr><tr><td>50%</td><td>2.13M</td><td>69.5%</td><td>89.5%</td></tr><tr><td>75%</td><td>1.09M</td><td>67.7%</td><td>88.5%</td></tr><tr><td>90%</td><td>0.46M</td><td>61.8%</td><td>84.7%</td></tr><tr><td></td><td>95%</td><td>0.25M</td><td>53.6%</td><td>78.9%</td></tr></table>",
370
+ "bbox": [
371
+ 173,
372
+ 128,
373
+ 500,
374
+ 301
375
+ ],
376
+ "page_idx": 4
377
+ },
378
+ {
379
+ "type": "table",
380
+ "img_path": "images/77556397e36ddd1724721f575189b3ec5ef1727e7972b615015764bf1708cbb1.jpg",
381
+ "table_caption": [
382
+ "Table 3: PTB sparse vs dense results "
383
+ ],
384
+ "table_footnote": [],
385
+ "table_body": "<table><tr><td>Model</td><td>Sparsity</td><td>NNZ params</td><td>Per- plexity</td></tr><tr><td>Small</td><td>0%</td><td>4.6M</td><td>115.30</td></tr><tr><td rowspan=\"5\">Medium</td><td>0%</td><td>19.8M</td><td>83.37</td></tr><tr><td>80%</td><td>4.0M</td><td>83.87</td></tr><tr><td>85%</td><td>3.0M</td><td>85.17</td></tr><tr><td>90%</td><td>2.0M</td><td>87.86</td></tr><tr><td>95% 97.5%</td><td>1.0M 0.5M</td><td>96.30 113.6</td></tr><tr><td rowspan=\"5\">Large</td><td>0%</td><td>66M</td><td>78.45</td></tr><tr><td>80%</td><td>13.2M</td><td>77.52</td></tr><tr><td>85%</td><td>9.9M</td><td>78.31</td></tr><tr><td>90%</td><td>6.6M</td><td>80.24</td></tr><tr><td>95%</td><td>3.3M</td><td>87.83</td></tr><tr><td></td><td>97.5%</td><td>1.7M</td><td>103.20</td></tr></table>",
386
+ "bbox": [
387
+ 540,
388
+ 128,
389
+ 818,
390
+ 364
391
+ ],
392
+ "page_idx": 4
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "",
397
+ "bbox": [
398
+ 174,
399
+ 391,
400
+ 825,
401
+ 531
402
+ ],
403
+ "page_idx": 4
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "The width multiplier is a parameter of the MobileNet network that allows trading off the accuracy of the model with the number of parameters and computational cost. The width multiplier of the baseline model is 1.0. For a given width multiplier $\\alpha \\in ( 0 , 1 ]$ , the number of input channels and the number of output channels in each layer is scaled by $\\alpha$ relative to the baseline 1.0 model. We compare the performance of dense MobileNets trained with width multipliers 0.75, 0.5, and 0.25 with the performance of sparse MobileNets pruned from dense 1.0 MobileNet in Figure 3 and Table 2 on the ImageNet dataset. We see that for a given number of non-zero parameters, sparse MobileNets are able to outperform dense MobileNets. For example, the $7 5 \\%$ sparse model (which has 1.09 million parameters and a top-1 accuracy of $6 7 . 7 \\%$ ) outperforms the dense 0.5 MobileNet (which has 1.32 million parameters and a top-1 accuracy of $6 3 . 7 \\%$ ) by $4 \\%$ in top-1 accuracy while being smaller. Similarly, the $90 \\%$ sparse model (which has 0.46 million parameters and a top-1 accuracy of $6 1 . 8 \\%$ ) outperforms the dense 0.25 MobileNet (which has 0.46 million parameters and a top-1 accuracy of $5 0 . 6 \\%$ by $1 0 . 2 \\%$ in top-1 accuracy while having the same number of non-zero parameters. ",
408
+ "bbox": [
409
+ 173,
410
+ 537,
411
+ 825,
412
+ 718
413
+ ],
414
+ "page_idx": 4
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "Overall, pruning is a promising approach for model compression even for an architecture that was designed to be compact and efficient by using depthwise separable convolutions instead of standard convolutions as a factorization-like technique to reduce the number of parameters. The sparsity parameter is shown to be an effective way to trade off the accuracy of a model with its memory usage and compares favorably with the width multiplier in MobileNet. Training a sparse MobileNet using our gradual pruning algorithm is also easy. For pruning a dense MobileNet, we used the same learning rate schedule as for training a dense MobileNet but with an initial learning rate 10 times smaller than for training a dense MobileNet, and all other hyperparameters were kept the same. ",
419
+ "bbox": [
420
+ 174,
421
+ 726,
422
+ 825,
423
+ 837
424
+ ],
425
+ "page_idx": 4
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "4.2 PENN TREE BANK (PTB) LANGUAGE MODEL ",
430
+ "text_level": 1,
431
+ "bbox": [
432
+ 176,
433
+ 854,
434
+ 524,
435
+ 869
436
+ ],
437
+ "page_idx": 4
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "We train an LSTM language model on the Penn Tree Bank dataset using the models and training procedure described in Zaremba et al. (2014). At each time step, the LSTM language model outputs the probability of the next word in the sentence given the history of previous words. The loss function is the average negative log probability of the target words, and the perplexity is the exponential of the loss function. The language model is composed of an embedding layer, 2 LSTM layers, and a softmax layer. The vocabulary size is 10,000, and the LSTM hidden layer size is 200 for the small model, 650 for the medium model, and 1,500 for the large model. In the case of the large model, there are 15M parameters in the embedding layer, 18M parameters in each of the two LSTM layers, and 15M parameters in the softmax layer for a total of 66M parameters. Different hyperparameters are used to train the different-sized models. When pruning a model of a certain size, we use the same hyperparameters that were used for training the dense model of that size. We compare the performance of the dense models with sparse models pruned from medium and large to $80 \\%$ , $8 5 \\%$ , $90 \\%$ , $9 5 \\%$ , and $9 7 . 5 \\%$ sparsity in Figure 4 and Table 3. In this case, we see that sparse models are able to outperform dense models which have significantly more parameters (note the log scale for the number of parameters). The $90 \\%$ sparse large model (which has 6.6 million parameters and a perplexity of 80.24) is able to outperform the dense medium model (which has 19.8 million parameters and a perplexity of 83.37), a model which has 3 times more parameters. Compared with MobileNet, pruning PTB model likely gives better results because the PTB model is larger with significantly more parameters. Our results show that pruning works very well not only on the dense LSTM weights and dense softmax layer but also the dense embedding matrix. This suggests that during the optimization procedure the neural network can find a good sparse embedding for the words in the vocabulary that works well together with the sparse connectivity structure of the LSTM weights and softmax layer. ",
442
+ "bbox": [
443
+ 176,
444
+ 882,
445
+ 823,
446
+ 924
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "image",
452
+ "img_path": "images/3142a960213f198f84c7fd4421050ba3c88ee3b7fa5c9cd6c53ca287ab3b3125.jpg",
453
+ "image_caption": [
454
+ "Figure 5: Comparison of sparse vs dense NMT models for English to German (EN-DE) and German to English (DE-EN) translation "
455
+ ],
456
+ "image_footnote": [],
457
+ "bbox": [
458
+ 179,
459
+ 103,
460
+ 812,
461
+ 253
462
+ ],
463
+ "page_idx": 5
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "",
468
+ "bbox": [
469
+ 174,
470
+ 328,
471
+ 825,
472
+ 590
473
+ ],
474
+ "page_idx": 5
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "From Figure 4 and Table 3, we also see that the $85 \\%$ sparse medium model (which has 3 million parameters and a perplexity of 85.17) outperforms the $9 5 \\%$ sparse large model (which has 3.3 million parameters and a perplexity of 87.83). The accuracy of the $9 5 \\%$ sparse large model is comparable to the accuracy of the $90 \\%$ sparse medium model (which has 2 million parameters and a perplexity of 87.86). Together, these results suggest that there is an optimal compression range when pruning. In the case of PTB, pruning to $9 5 \\%$ sparsity for a compression ratio of $2 0 \\mathrm { x }$ significantly degrades the performance of the sparse model compared to pruning to $90 \\%$ sparsity for a compression ratio of $1 0 \\mathrm { x }$ , as seen in Figure 4 from the curve of perplexity vs. number of parameters traced by either of the sparse models. These results suggest that in order to get the best-performing sparse model of a certain size, we should train a dense model that is $5 \\mathbf { X } { - } 1 0 \\mathbf { X }$ larger and then prune to the desired number of parameters rather than taking the largest and best-performing dense model and pruning this model by $2 0 \\mathrm { x }$ or more to the desired number of parameters, assuming that the difference in performance of the two dense baseline models is not that large. We note that it may be possible to obtain slightly better results for pruning to $9 5 \\%$ sparsity or higher with more hyperparameter tuning, and the results we obtained for pruning a model of a certain size were from using exactly the same hyperparameter configuration as for training the dense model of that size. ",
479
+ "bbox": [
480
+ 173,
481
+ 598,
482
+ 825,
483
+ 819
484
+ ],
485
+ "page_idx": 5
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "4.3 GOOGLE NEURAL MACHINE TRANSLATION",
490
+ "text_level": 1,
491
+ "bbox": [
492
+ 174,
493
+ 840,
494
+ 516,
495
+ 854
496
+ ],
497
+ "page_idx": 5
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "The Google Neural Machine Translation (NMT) architecture is a seq2seq model with attention (Wu et al., 2016). We use the open-source TensorFlow implementation available at Luong et al. (2017). The model is based on an encoder-decoder architecture. The encoder has an embedding layer which maps the source vocabulary of 36,548 words into a $k$ -dimensional space, 1 bidirectional LSTM layer, and 3 standard LSTM layers. The decoder has an embedding layer which maps the target vocabulary of 36,548 words into a $k$ -dimensional space, 4 LSTM layers with attention, and finally a softmax layer. For the dense baseline model with number of units $k = 1 0 2 4$ , there are $3 7 . 4 \\mathbf { M }$ parameters in each of the encoder embedding, decoder embedding, and softmax layers and $9 8 . 6 \\mathbf { M }$ parameters in all of the LSTM layers for a total of 211M parameters. We apply pruning to all of the LSTM layers, embedding layers, and softmax layers, but we do not prune the attention parameters of which there are relatively few. The other dense models were obtained by varying the number of units $k$ . We use the WMT16 German and English dataset with news-test2013 as the dev set and news-test2015 as the test set. The BLEU score is reported as a measure of the translation quality. The learning rate schedule used for training the dense models is 170K iterations with initial learning rate 1.0 and 170K iterations with learning rate decay of 0.5 every 17K iterations. For pruning a dense model, the learning rate schedule we use is 70K iterations with initial learning rate 0.5 and 170K iterations with learning rate decay of 0.5 every 17K iterations, and all other hyperparameters were kept the same. ",
502
+ "bbox": [
503
+ 174,
504
+ 867,
505
+ 823,
506
+ 922
507
+ ],
508
+ "page_idx": 5
509
+ },
510
+ {
511
+ "type": "table",
512
+ "img_path": "images/40b602336ae5ebdf41e128cacf50534402f00f80f749fc5d68752a9377b7d9e3.jpg",
513
+ "table_caption": [
514
+ "Table 4: NMT sparse vs dense results "
515
+ ],
516
+ "table_footnote": [],
517
+ "table_body": "<table><tr><td># units</td><td>Sparsity</td><td> NNZ params</td><td>EN-DE BLEU score</td><td>DE-EN BLEU score</td></tr><tr><td>256</td><td>0%</td><td>34M</td><td>23.52</td><td>26.52</td></tr><tr><td>512</td><td>0%</td><td>81M</td><td>26.05</td><td>28.88</td></tr><tr><td>768</td><td>0%</td><td>140M</td><td>26.63</td><td>29.41</td></tr><tr><td>1024</td><td>0%</td><td>211M</td><td>26.77</td><td>29.47</td></tr><tr><td></td><td>80%</td><td>44M</td><td>26.86</td><td>29.50</td></tr><tr><td></td><td>85%</td><td>33M</td><td>26.52</td><td>29.24</td></tr><tr><td></td><td>90%</td><td>23M</td><td>26.19</td><td>28.81</td></tr></table>",
518
+ "bbox": [
519
+ 223,
520
+ 126,
521
+ 774,
522
+ 273
523
+ ],
524
+ "page_idx": 6
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "",
529
+ "bbox": [
530
+ 173,
531
+ 299,
532
+ 825,
533
+ 494
534
+ ],
535
+ "page_idx": 6
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "Since we noticed that the NMT training procedure had high variance, we tested several pruning schemes applied to NMT. Our standard implementation of gradual pruning increases the sparsity of every layer to the same sparsity level at each pruning step. We tested a variant which we call “layerwise constant” sparsity: instead of simultaneously increasing the sparsity of all layers to some sparsity level at each pruning step, we subdivide the pruning interval and increase the sparsity of one layer at a time to that sparsity level. This potentially has the effect of reducing the impact of pruning and allowing the network to recover better with training. Finally, we compared with “global” pruning: we prune the smallest magnitude weights across the entire network, regardless of which layer they are in. Global pruning produces a different sparsity level for each layer and was shown to perform well on NMT in the work of See et al. (2016). Overall, the layerwise constant pruning scheme performed best on average, so we report the results with the layerwise constant pruning scheme in Figure 5 and Table 4. We note that there is high variance in the results due to the stochasticity of the training process, as illustrated by the error bar in Figure 5 which is the standard deviation of the BLEU score of 10 randomly initialized and independently trained NMT models. ",
540
+ "bbox": [
541
+ 173,
542
+ 501,
543
+ 825,
544
+ 695
545
+ ],
546
+ "page_idx": 6
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "The results in Table 4 show that for $80 \\%$ sparsity (5x compression), the pruned model actually achieves a slightly higher BLEU score than the baseline model (though we note the error bar). For $8 5 \\%$ sparsity, the BLEU score drops by around 0.25, and for $90 \\%$ sparsity, the BLEU score drops by around 0.6. When we compare the performance of dense and sparse models in Figure 5 and Table 4, we again see that sparse models outperform even larger-sized dense models. The BLEU score of the dense model falls off quickly after $2 \\mathbf { x }$ reduction in model size while the BLEU score of the sparse model starts to fall off only after ${ 5 } \\mathbf { x }$ reduction in NNZ parameters. For example, the $90 \\%$ sparse 1024-unit model is comparable to or outperforms the dense 512-unit model (26.19 vs 26.05 for EN-DE and 28.81 vs 28.88 for DE-EN) despite having $3 . 5 \\mathrm { x }$ fewer NNZ params (23M vs 81M). ",
551
+ "bbox": [
552
+ 174,
553
+ 703,
554
+ 825,
555
+ 828
556
+ ],
557
+ "page_idx": 6
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "5 DISCUSSION ",
562
+ "text_level": 1,
563
+ "bbox": [
564
+ 174,
565
+ 849,
566
+ 310,
567
+ 864
568
+ ],
569
+ "page_idx": 6
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "The net memory footprint of a sparse model includes the storage for the nonzero parameters and any auxiliary data structures needed for indexing these elements. Pruning models helps reduce the number of nonzero-valued connections in the network; however the overhead in sparse matrix storage inevitably diminishes the achievable compression ratio. The bit-mask sparse matrix representation requires 1 bit per matrix element indicating whether the element is nonzero, and a vector containing all the nonzero matrix elements. This representation incurs a constant overhead regardless of the model sparsity. In the compressed sparse row (column) storage (CSR(C)) adopted in Parashar et al. (2017), each nonzero parameter in the sparse matrix is associated with a count (usually stored as a 4 or 5 bit integer) of the number of zeros preceding it. The overhead in this case is proportional to the NNZ in the model. Table 5 compares these two representations for sparse-MobileNets. The CSR(C) representation can enable higher compression ratio for networks with high sparsity. Note, however, that the bit-mask representation offers marginally lower overhead at smaller sparsity levels. ",
574
+ "bbox": [
575
+ 176,
576
+ 882,
577
+ 823,
578
+ 922
579
+ ],
580
+ "page_idx": 6
581
+ },
582
+ {
583
+ "type": "table",
584
+ "img_path": "images/02829d3b815c8caa37389551d79ec640eed8d6c6d770ffc730b859e791ee323d.jpg",
585
+ "table_caption": [
586
+ "Table 5: Storage overheads associated with bit-mask and CSR(C) sparse matrix representations for sparse-MobileNets "
587
+ ],
588
+ "table_footnote": [],
589
+ "table_body": "<table><tr><td>Sparsity</td><td> NNZ params</td><td>Bit-mask (MB)</td><td>CSR(C) (MB)</td></tr><tr><td>0%</td><td>4.21M</td><td>N/A</td><td>N/A</td></tr><tr><td>50%</td><td>2.13M</td><td>0.52</td><td>1.06</td></tr><tr><td>75%</td><td>1.09M</td><td>0.52</td><td>0.54</td></tr><tr><td>90%</td><td>0.46M</td><td>0.52</td><td>0.23</td></tr><tr><td>95%</td><td>0.25M</td><td>0.52</td><td>0.13</td></tr></table>",
590
+ "bbox": [
591
+ 290,
592
+ 141,
593
+ 705,
594
+ 241
595
+ ],
596
+ "page_idx": 7
597
+ },
598
+ {
599
+ "type": "table",
600
+ "img_path": "images/d0ae11a0f96e1e32f47ff0aa1f01667127a060e24a90ad6199fe98088e9a7106.jpg",
601
+ "table_caption": [
602
+ "Table 6: Comparison of the performance of small-dense and large-sparse models. Model size calculations include overhead for sparse matrix storage and assumes 32-bit (4 bytes) per nonzero element. "
603
+ ],
604
+ "table_footnote": [],
605
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Small-dense</td><td colspan=\"2\">Large-sparse</td></tr><tr><td>Model size (MB)</td><td>Accuracy (%)</td><td>Model size (MB)</td><td>Accuracy (%)</td></tr><tr><td rowspan=\"4\">MobileNet</td><td>10.28</td><td>68.4</td><td>9.04</td><td>69.5</td></tr><tr><td>5.28</td><td>63.7</td><td>4.88</td><td>67.7</td></tr><tr><td>1.84</td><td>50.6</td><td>2.07</td><td>61.8</td></tr><tr><td></td><td></td><td>1.13</td><td>53.6</td></tr></table>",
606
+ "bbox": [
607
+ 210,
608
+ 310,
609
+ 789,
610
+ 411
611
+ ],
612
+ "page_idx": 7
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "",
617
+ "bbox": [
618
+ 173,
619
+ 440,
620
+ 825,
621
+ 565
622
+ ],
623
+ "page_idx": 7
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "In spite of this overhead, large-sparse models appear to achieve higher accuracy than small-dense models with comparable memory footprint. For instance, MobileNet with width multiplier 1 and sparsity $50 \\%$ has similar footprint as MobileNet with width multiplier 0.75, but obtains higher accuracy. Table 6 further highlights the trade-off between model size and accuracy for dense and sparse models. The performance gap between large-sparse and small-dense models widens for larger models such as as the PTB language models and NMT (see Table 3 and Table 4). It is worth noting that the results presented in this work were obtained by training neural networks using 32-bit floating point representation. For neural networks trained to perform inference using reduced precision (8-bit integer, for instance) arithmetic, the memory overhead of sparse matrix storage represents a bigger fraction of the total memory footprint. Quantization of the parameters to a reduced precision number representation is also an effective method for model compression, and the interplay between model quantization and pruning and their collective impact on model accuracy merits a closer examination. We defer that investigation to a future extension to this work. ",
628
+ "bbox": [
629
+ 174,
630
+ 573,
631
+ 825,
632
+ 752
633
+ ],
634
+ "page_idx": 7
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "6 CONCLUSION ",
639
+ "text_level": 1,
640
+ "bbox": [
641
+ 176,
642
+ 777,
643
+ 318,
644
+ 794
645
+ ],
646
+ "page_idx": 7
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "This work sheds light on the model size and accuracy trade-off encountered in pruned deep neural networks. We demonstrate that large-sparse models outperform comparably-sized small-dense models across a diverse set of neural network architectures. We also present a gradual pruning technique that can be applied with ease across these different architectures. We believe these results will encourage the adoption of model pruning as a tool for compressing neural networks for deployment in resource-constrained environments. At the same time, we hold the opinion that our results will provide further impetus to the hardware architecture community to customize the next generation of deep learning accelerator architectures to efficiently handle sparse matrix storage and computations. ",
651
+ "bbox": [
652
+ 174,
653
+ 811,
654
+ 825,
655
+ 924
656
+ ],
657
+ "page_idx": 7
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "REFERENCES ",
662
+ "text_level": 1,
663
+ "bbox": [
664
+ 176,
665
+ 103,
666
+ 285,
667
+ 117
668
+ ],
669
+ "page_idx": 8
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow. org/. Software available from tensorflow.org. \nJose M. Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. CoRR, abs/1611.06321, 2016. \nSajid Anwar, Kyuyeon Hwang, and Wonyong Sung. Structured pruning of deep convolutional neural networks. CoRR, abs/1512.08571, 2015. \nSoravit Changpinyo, Mark Sandler, and Andrey Zhmoginov. The power of sparsity in convolutional neural networks. CoRR, abs/1702.06257, 2017. \nMatthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. CoRR, abs/1511.00363, 2015. \nMisha Denil, Babak Shakibi, Laurent Dinh, Marc’aurelio Ranzato, and Nando D. Freitas. Predicting parameters in deep learning. In C.j.c. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K.q. Weinberger (eds.), Advances in Neural Information Processing Systems 26, pp. 2148–2156. 2013. \nEmily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 1269– 1277. Curran Associates, Inc., 2014. \nYunchao Gong, Liu Liu, Ming Yang, and Lubomir D. Bourdev. Compressing deep convolutional networks using vector quantization. CoRR, abs/1412.6115, 2014. \nSong Han, Huizi Mao, and William J. Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. CoRR, abs/1510.00149, 2015a. \nSong Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 1135–1143. Curran Associates, Inc., 2015b. \nSong 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. CoRR, abs/1602.01528, 2016. \nB. Hassibi, D. G. Stork, and G. J. Wolff. Optimal brain surgeon and general network pruning. In IEEE International Conference on Neural Networks, pp. 293–299 vol.1, 1993. doi: 10.1109/ICNN.1993.298572. \nAndrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017. \nItay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. CoRR, abs/1609.07061, 2016. \nMax Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. CoRR, abs/1405.3866, 2014. \nVadim Lebedev and Victor S. Lempitsky. Fast convnets using group-wise brain damage. CoRR, abs/1506.02515, 2015. \nVadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan V. Oseledets, and Victor S. Lempitsky. Speeding-up convolutional neural networks using fine-tuned cp-decomposition. CoRR, abs/1412.6553, 2014. \nYann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In D. S. Touretzky (ed.), Advances in Neural Information Processing Systems 2, pp. 598–605. Morgan-Kaufmann, 1990. \nHao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016. \nZhouhan Lin, Matthieu Courbariaux, Roland Memisevic, and Yoshua Bengio. Neural networks with few multiplications. CoRR, abs/1510.03009, 2015. \nThang Luong, Eugene Brevdo, and Rui Zhao. Neural machine translation (seq2seq) tutorial, 2017. URL https://github.com/tensorflow/nmt. \nSharan Narang, Gregory F. Diamos, Shubho Sengupta, and Erich Elsen. Exploring sparsity in recurrent neural networks. CoRR, abs/1704.05119, 2017. \nAngshuman 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 Proceedings of the 44th Annual International Symposium on Computer Architecture, pp. 27–40. ACM, 2017. \nMohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. CoRR, abs/1603.05279, 2016. \nAbigail See, Minh-Thang Luong, and Christopher D. Manning. Compression of neural machine translation models via pruning. In CoNLL, pp. 291–301. ACL, 2016. \nChristian 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. \nVincent Vanhoucke, Andrew Senior, and Mark Z. Mao. Improving the speed of neural networks on cpus. In Deep Learning and Unsupervised Feature Learning Workshop, NIPS 2011, 2011. \nYonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Lukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and Jeffrey Dean. Google’s neural machine translation system: Bridging the gap between human and machine translation. CoRR, abs/1609.08144, 2016. \nWojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. CoRR, abs/1409.2329, 2014. \nShijin Zhang, Zidong Du, Lei Zhang, Huiying Lan, Shaoli Liu, Ling Li, Qi Guo, Tianshi Chen, and Yunji Chen. Cambricon-x: An accelerator for sparse neural networks. In Microarchitecture (MICRO), 2016 49th Annual IEEE/ACM International Symposium on, pp. 1–12. IEEE, 2016. \nChenzhuo Zhu, Song Han, Huizi Mao, and William J. Dally. Trained ternary quantization. CoRR, abs/1612.01064, 2016. ",
674
+ "bbox": [
675
+ 171,
676
+ 118,
677
+ 826,
678
+ 930
679
+ ],
680
+ "page_idx": 8
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "",
685
+ "bbox": [
686
+ 171,
687
+ 89,
688
+ 826,
689
+ 631
690
+ ],
691
+ "page_idx": 9
692
+ }
693
+ ]
parse/train/S1lN69AT-/S1lN69AT-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1lN69AT-/S1lN69AT-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJgNwi09Km/SJgNwi09Km.md ADDED
@@ -0,0 +1,334 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING LATENT SUPERSTRUCTURES IN VARIATIONAL AUTOENCODERS FOR DEEP MULTIDIMENSIONAL CLUSTERING
2
+
3
+ Xiaopeng $\mathbf { L i } ^ { 1 }$ , Zhourong Chen1, Leonard K. M. Poon2 and Nevin L. Zhang1
4
+
5
+ 1 Department of Computer Science and Engineering The Hong Kong University of Science and Technology 2 Department of Mathematics & Information Technology The Education University of Hong Kong {xlibo,zchenbb,lzhang}@cse.ust.hk, kmpoon@eduhk.hk
6
+
7
+ # ABSTRACT
8
+
9
+ We investigate a variant of variational autoencoders where there is a superstructure of discrete latent variables on top of the latent features. In general, our superstructure is a tree structure of multiple super latent variables and it is automatically learned from data. When there is only one latent variable in the superstructure, our model reduces to one that assumes the latent features to be generated from a Gaussian mixture model. We call our model the latent tree variational autoencoder (LTVAE). Whereas previous deep learning methods for clustering produce only one partition of data, LTVAE produces multiple partitions of data, each being given by one super latent variable. This is desirable because high dimensional data usually have many different natural facets and can be meaningfully partitioned in multiple ways.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Clustering is a fundamental task in unsupervised machine learning, and it is central to many datadriven application domains. Cluster analysis partitions all the data into disjoint groups, and one can understand the structure of the data by examining examples in each group. Many clustering methods have been proposed in the literature (Aggarwal & Reddy, 2013), such as $k$ -means (MacQueen et al., 1967), Gaussian mixture models (Christopher, 2016) and spectral clustering (Von Luxburg, 2007). Conventional clustering methods are generally applied directly on the original data space. However, it is challenging to perform cluster analysis on high dimensional and unstructured data (Steinbach et al., 2004), such as images. It is not only because the dimensionality is high, but also because the original data space is too complex to interpret, e.g. there are semantic gaps between pixel values and objects in images.
14
+
15
+ Recently, deep learning based clustering methods have been proposed that simultanously learn nonlinear embeddings through deep neural networks and perform cluster analysis on the embedding space. The representation learning process learns effective high-level representations from high dimensional data and helps the cluster analysis. This is typically achieved by unsupervised deep learning methods, such as restricted Boltzmann machine (RBM) (Hinton et al., 2006; Hinton & Salakhutdinov, 2006), autoencoders (AE) (Vincent et al., 2008; 2010), variational autoencoders (VAE) (Kingma & Welling, 2014), etc. Previous deep learning based clustering methods (Xie et al., 2016; Guo et al., 2017; Jiang et al., 2017; Yang et al., 2017) assume one single partition over the data and that all attributes define that partition. In real-world applications, however, the assumptions are usually not true. High-dimensional data are often multifaceted and can be meaningfully partitioned in multiple ways based on subsets of attributes (Chen et al., 2012). For example, a student population can be clustered in one way based on course grades and in another way based on extracurricular activities. Movie reviews can be clustered based on both sentiment (positive or negative) and genre (comedy, action, war, etc.). It is challenging to discover the multi-facet structures of data, especially for high-dimensional data.
16
+
17
+ To resolve the above issues, we propose an unsupervised learning method, latent tree variational autoencoder (LTVAE) to learn latent superstructures in variational autoencoders, and simultaneously perform representation learning and structure learning. LTVAE is a generative model, where the data is assumed to be generated from latent features through neural networks, while the latent features themselves are generated from tree-structured Bayesian networks with another level of latent variables as shown in Fig. 1. Each of those latent variables defines a facet of clustering. The proposed method automatically selects subsets of latent features for each facet, and learns the dependency structure among different facets. This is achieved through systematic structure learning. Consequently, LTVAE is able to discover complex structures of data rather than one partition. We also propose efficient learning algorithms for LTVAE with gradient descent and Stepwise EM through message passing.
18
+
19
+ The rest of the paper is organized as follows. The related works are reviewed in Section 2. We introduce the proposed method and learning algorithms in Section 3. In Section 4, we present the empirical results. The conclusion is given in Section 5.
20
+
21
+ # 2 RELATED WORKS
22
+
23
+ Clustering has been extensively studied in the literature in many aspects (Aggarwal & Reddy, 2013). More complex clustering methods related to structure learning using Bayesian nonparametrics have been proposed, like Dirichlet Process (Blei et al., 2006), Hierarchical Dirichlet Process (HDP) (Teh et al., 2006). However, those are with conventional clustering methods that apply on raw data. Recently, deep learning based clustering methods have drawn more and more attention. A simple two-stage approach is to first learn low-dimensional embeddings using unsupervised feature learning methods, and then perform cluster analysis on the embeddings. However, without any supervision, the representation learning do not necessarily reveal the true cluster structure of the data. DEC (Xie et al., 2016) is a method that simultaneously learns feature representations and cluster assignments through deep autoencoders. It gradually improves the clustering by driving the deep network to learn a better mapping. Improved Deep Embedded Clustering (Guo et al., 2017) improves DEC by keeping the decoder network and adding reconstruction loss to the original clustering loss in DEC. Variational deep embedding (Jiang et al., 2017) is a generative method that models the data generative process using a Gaussian mixture model combined with a VAE, and also performs joint learning of representations and clustering. Similarly, GMVAE (Dilokthanakul et al., 2016) performs joint learning of a GMM and a VAE, but instead generates the mixture components through neural networks. Deep clustering network (DCN) (Yang et al., 2017) is another one that jointly learns an autoencoder and performs k-means clustering. These joint learning methods consistently achieve better clustering results than conventional ones. The method proposed in (Yang et al., 2016) uses convolutional neural networks and jointly learns the representations and clustering in a recurrent framework. All these methods assume flat partitions over the data, and do not attempt the structure learning issue. An exception is hierarchical nonparametric variational autoencoders proposed in (Goyal et al., 2017). It uses nCRP as the prior for VAE to allow infinitely deep and branching tree hierarchy structure and focuses on learning hierarchy of concepts. However, it is still one partition over the data, only that the partitions in upper levels are more general partitions, while those in lower levels more fine-grained. Different from it, our work focuses on multifacets of clustering, for example, the model could make one partition based on identity of subjects, while another partition based on pose.
24
+
25
+ # 3 THE PROPOSED METHOD
26
+
27
+ In this section, we present the proposed latent tree variational autoencoder and the learning algorithms for joint representation learning and structure learning for multidimensional clustering.
28
+
29
+ # 3.1 LATENT TREE VARIATIONAL AUTOENCODER
30
+
31
+ Deep generative models assume that data $\mathbf { x }$ is generated from latent continuous variable $\mathbf { z }$ through some random process. The process consists of two steps: (1) a value $\mathbf { z }$ is generated from some prior distribution $p ( \mathbf { z } )$ ; (2) the observation $x$ is generated from the conditional distribution $p _ { \boldsymbol { \theta } } ( \mathbf { x } | \mathbf { z } )$ , which is parameterized through deep neural networks. Thus, it defines the joint distribution between
32
+
33
+ ![](images/6d0b434d991986a57615a54ec0bccda8c41c57d94632b929e8edcdd1f2ac02cb.jpg)
34
+ Figure 1: Latent Tree Variational Autoencoder
35
+
36
+ ![](images/5fda2f4f43615c251abdb445adf97d9754edcb8a075cd2d69b2172bb8bcf51f5.jpg)
37
+ Figure 2: Inference and gradient through message passing. Solid-arrows denote collecting message, and dashed-arrows denote distributing message.
38
+
39
+ observation $\mathbf { x }$ and latent variable $\mathbf { z }$ :
40
+
41
+ $$
42
+ p ( \mathbf { x } , \mathbf { z } ) = p ( \mathbf { z } ) p _ { \theta } ( \mathbf { x } | \mathbf { z } )
43
+ $$
44
+
45
+ This process is hidden from our view, and we learn this process by maximizing the marginal loglikelihood $p ( \mathbf { x } )$ over the parameters $\theta$ and latent variable $\mathbf { z }$ from data. After the learning, the latent variable $\mathbf { z }$ can be regarded as the deep representations of $\mathbf { x }$ since it captures the most relevant information of $\mathbf { x }$ . Thus, the learning process is also called representation learning.
46
+
47
+ In order to learn the latent structure of $\mathbf { z }$ , for example multidimensional cluster structure, we introduce a set of latent variables $Y _ { 1 } , . . . , Y _ { l }$ on top of $\mathbf { z }$ . A single $z$ or multiple $z$ ’s form a node $\mathbf { z } _ { b }$ . Suppose variables in $\mathbf { z }$ form $B$ nodes of ${ \bf z } _ { 1 } , \cdots , { \bf z } _ { B }$ . Each latent variable $Y$ may be only connected to a subset of nodes, and the dependency of each $\mathbf { z } _ { b }$ and its parent $Y$ is characterized by a conditional Gaussian distribution. Furthermore, the latent variables $Y _ { 1 } , . . . , Y _ { l }$ are connected to each other, and the dependency of a latent variable $Y$ on its parent $Y ^ { \prime }$ is characterized by a conditional distribution $P ( Y | Y ^ { \prime } )$ . This essentially forms a Bayesian network. And if we restrict the network to be treestructured, the $\mathbf { z }$ and $\mathbf { Y }$ together form a latent tree model (Zhang, 2004; Poon et al., 2010; 2013; Mourad et al., 2013; Pearl, 2014; Zhang & Poon, 2017) with $\mathbf { z }$ being the observed variables and $\mathbf { Y }$ being the latent variables. For multidimensional clustering, each latent variable $Y$ is taken to be a discrete variable, where each discrete state $y$ of $Y$ defines a cluster. Each latent variable $Y$ thus defines a facet partition over the data based on subset of attributes and multiple $Y$ ’s define multiple facets. Given a value $y$ of $Y$ , $\mathbf { z } _ { b }$ follows a conditional Gaussian distribution $\dot { P } ( \mathbf { z } _ { b } | y ) = \mathcal { N } ( \mu _ { y } , \bar { \Sigma } _ { y } )$ with mean vector $\mu _ { y }$ and covariance matrix $\Sigma _ { y }$ . Thus, each $\mathbf { z } _ { b }$ and its parent constitute a Gaussian mixture model (GMM). Suppose the parent of a node is denoted as $\pi ( \cdot )$ , the maginal distribution of $\mathbf { z }$ is defined as follows
48
+
49
+ $$
50
+ p ( \mathbf { z } ) = \sum _ { \mathbf { Y } } \prod _ { j = 1 } ^ { l } p ( y _ { j } | \pi ( Y _ { j } ) ) \prod _ { b = 1 } ^ { B } \mathcal { N } ( \mathbf { z } _ { b } | \mu _ { \pi ( \mathbf { z } _ { b } ) } , \boldsymbol { \Sigma } _ { \pi ( \mathbf { z } _ { b } ) } ) ,
51
+ $$
52
+
53
+ which sums over all possible combinations of $\mathbf { Y }$ states. As a matter of fact, a GMM is a Gaussian LTM that has only one latent variable connecting to all observed variables.
54
+
55
+ Let the latent structure of $\mathbf { Y }$ be $s$ , defining the number of latent variables in $\mathbf { Y }$ , the number of discrete states in each variable $Y$ and the connectivity structure among all variables in $\mathbf { z }$ and $\mathbf { Y }$ . And let the parameters for all conditional probabilities in the latent structure be $\Theta$ . Both the latent structure $s$ and the latent parameters $\Theta$ are unknown. We aim to jointly learn data representations and the latent structure. The proposed LTVAE model is shown in Fig. 1. The latent structure $s$ are automatically learned from data and will be discussed in a later section.
56
+
57
+ Due to the existence of the generation network, the inference of the model is intratable. Instead, we do amortized variational inference for the latent variable $\mathbf { z }$ by introducing an inference network (Kingma & Welling, 2014) and define an approximate posterior $q _ { \phi } ( { \bf z } | { \bf x } )$ . The evidence lower bound (ELBO) $\mathcal { L } _ { \mathrm { E L B O } }$ of the marginal loglikelihood of the data given $( \cal S , \Theta )$ is:
58
+
59
+ $$
60
+ \mathcal { L } _ { \mathrm { E L B O } } ( \mathbf { x } ) = \mathbb { E } _ { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } [ \log p _ { \theta } ( \mathbf { x } | \mathbf { z } ) ] + \mathbb { E } _ { q _ { \phi } ( \mathbf { z } | \mathbf { x } ) } [ \log \sum _ { \mathbf { y } } p _ { S } ( \mathbf { z } , \mathbf { y } ; \Theta ) ] + \mathbb { H } [ q _ { \phi } ( \mathbf { z } | \mathbf { x } ) ] ,
61
+ $$
62
+
63
+ where $\begin{array} { r } { \log \sum _ { \mathbf { y } } p _ { S } ( \mathbf { z } , \mathbf { y } ; \Theta ) } \end{array}$ is the marginal loglikelihood of the latent variable $\mathbf { z }$ under the latent tree model, and $\mathbb { H } [ \cdot ]$ is the entropy. The conditional generative distribution $p _ { \boldsymbol { \theta } } ( \mathbf { x } | \mathbf { z } )$ could be a Gaussian distribution if the input data is real-valued, or a Bernoulli distribution if binary, parameterized by the generation network. Using Monte Carlo sampling, the ELBO can be asymptotically estimated by
64
+
65
+ $$
66
+ \mathcal { L } _ { \mathrm { E L B O } } ( \mathbf { x } ) \simeq \frac { 1 } { M } \sum _ { i = 1 } ^ { M } \log p _ { \boldsymbol \theta } ( \mathbf { x } | \mathbf { z } ^ { ( i ) } ) + \log \sum _ { \mathbf { y } } p _ { \mathcal { S } } ( \mathbf { z } ^ { ( i ) } , \mathbf { y } ; \boldsymbol \Theta ) + \mathbb { H } [ q _ { \boldsymbol \phi } ( \mathbf { z } | \mathbf { x } ) ] ,
67
+ $$
68
+
69
+ where $\mathbf { z } ^ { ( i ) } \sim q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ . The term $\mathbb { H } [ q _ { \phi } ( \mathbf { z } | \mathbf { x } ) ]$ can be computed analytically if we choose the form of $q _ { \phi } ( { \bf z } | { \bf x } )$ to be a Gaussian distribution $\begin{array} { r } { \mathcal { N } ( { \bf z } ; \mu _ { { \bf x } } , \sigma _ { { \bf x } } ) \colon \mathbb { H } [ q _ { \phi } ( { \bf z } | { \bf x } ) ] = \frac { J } { 2 } \log ( 2 \pi ) + \frac { 1 } { 2 } \sum _ { j = 1 } ^ { J } ( 1 + \log \sigma _ { j } ^ { 2 } ) . } \end{array}$ , where $J$ is the dimensionality of $\mathbf { z }$ .
70
+
71
+ Furthermore, the marginal loglikelihood $\begin{array} { r } { \log \sum _ { \mathbf { y } } p _ { \mathcal { S } } ( \mathbf { z } ^ { ( i ) } , \mathbf { y } ; \Theta ) } \end{array}$ can be computed efficiently through message passing. Message passing is an efficient algorithm for inference in Bayesian networks (Koller & Friedman, 2009; Poon et al., 2013). In message passing, we first build a clique tree using the factors in the defined probability density. Because of the tree structure, each $\mathbf { z } _ { b }$ along with its parent form a clique with the potential $\psi ( \mathbf { z } _ { b } , y )$ being the corresponding conditional distribution. This is illustrated in Fig. 2. With the sampled $\mathbf { z } ^ { ( i ) }$ , we can compute the message $\psi ^ { \prime } ( y )$ by absorbing the evidence from $\mathbf { z }$ . During collecting message phase, the message $\psi ^ { \prime } ( y )$ are sent towards the pivot. After receiving all messages, the pivot distributes back messages towards all $\mathbf { z }$ . Both the posterior of $\mathbf { Y }$ and the marginal loglikelihood of $\mathbf { z } ^ { ( i ) }$ thus can be computed in the final normalization step.
72
+
73
+ 3.2 PARAMETER LEARNING THROUGH GRADIENT DESCENT AND STEPWISE EM WITH MESSAGE PASSING
74
+
75
+ In this section, we propose efficient learning algorithms for LTVAE through gradient descent and stepwise EM with message passing.
76
+
77
+ Given the latent tree model $( \cal S , \Theta )$ , the parameters of neural networks can be efficiently optimized through stochastic gradient descent (SGD). However, in order to learn the model, it is important to efficiently compute the gradient of the marginal loglikelihood $\log p _ { S } ( \mathbf { z } ; \Theta )$ from the latent tree model, the third term in Eq. 4. Here, we propose an efficient method to compute gradient through message passing. Let $\mathbf { z } _ { b }$ be the variables that we want to compute gradient with respect to, and let $Y _ { b }$ be the parent node. The marginal loglikelihood of full $\mathbf { z }$ can be written as
78
+
79
+ $$
80
+ \log p _ { \mathcal { S } } ( \mathbf { z } ; \Theta ) = \log [ \sum _ { y _ { b } } \mathcal { N } ( \mathbf { z } _ { b } | \mu _ { y _ { b } } , \boldsymbol { \Sigma } _ { y _ { b } } ) f ( y _ { b } ) ] ,
81
+ $$
82
+
83
+ where $f ( y _ { b } )$ is the collection of all the rest of the terms not containing $\mathbf { z } _ { b }$ . The gradient $\mathbf { g } _ { \mathbf { z } _ { b } }$ of the marginal loglikelihood $\log p s ( \mathbf { z } ; \Theta )$ w.r.t $\mathbf { z } _ { b }$ thus can be computed as
84
+
85
+ $$
86
+ \mathbf { g } _ { \mathbf { z } _ { b } } = \frac { 1 } { p _ { S } ( \mathbf { z } ; \boldsymbol { \Theta } ) } \frac { \partial \sum _ { y _ { b } } f ( y _ { b } ) \mathcal { N } ( \mathbf { z } _ { b } | \mu _ { y _ { b } } , \boldsymbol { \Sigma } _ { y _ { b } } ) } { \partial \mathbf { z } _ { b } } = \sum _ { y _ { b } } p ( y _ { b } | \mathbf { z } ) \frac { \partial \log [ f ( y _ { b } ) \mathcal { N } ( \mathbf { z } _ { b } | \mu _ { y _ { b } } , \boldsymbol { \Sigma } _ { y _ { b } } ) ] } { \partial \mathbf { z } _ { b } }
87
+ $$
88
+
89
+ where $p ( \boldsymbol { y } _ { b } | \mathbf { z } )$ is the posterior probability of $y _ { b }$ and can be computed efficiently with message passing as described in the previous section. The detailed derivation is in Appendix E. Since $\mathbf { z } = [ \bar { \mathbf { z } _ { 1 } } , \bar { \mathbf { . . . , z } _ { B } } ]$ , we have
90
+
91
+ $$
92
+ \frac { \partial \log p ( \mathbf { z } ) } { \partial \mathbf { z } } = \left[ \frac { \partial \log p ( \mathbf { z } ) } { \partial \mathbf { z } _ { 1 } } , . . . , \frac { \partial \log p ( \mathbf { z } ) } { \partial \mathbf { z } _ { B } } \right] = \left[ \mathbf { g } _ { \mathbf { z } _ { 1 } } , . . . , \mathbf { g } _ { \mathbf { z } _ { B } } \right] .
93
+ $$
94
+
95
+ With the efficient computation of the third term in Eq. 4 and its gradient w.r.t $\mathbf { z }$ through message passing, the parameters of inference network and generation network can be efficiently optimized through SGD.
96
+
97
+ In order to jointly learn the parameters of the latent tree $\Theta$ , we propose Stepwise EM algorithm based on mini-batch of data. Specifically, we maximize the third term in Eq. 4, i.e. the marginal loglikelihood of $\mathbf { z }$ under the latent tree. In the Stepwise E-step, we compute the distributions $\bar { P ( } y , y ^ { \prime } | \mathbf { z } , \theta ^ { ( t - 1 ) } )$ and $P ( y | \mathbf { z } , \theta ^ { ( t - 1 ) } )$ for each latent node $Y$ and its parent $Y ^ { \prime }$ . In the Stepwise
98
+
99
+ ![](images/5242bd844d379aeb381ed06e3d72093a6b1e707f80ef08bb209cd29202145d77.jpg)
100
+ Figure 3: Structure search operators. The digits above the nodes denote the number of discrete states. Node deletion, state deletion and unpouching are the inverse of node insertion, state insertion and pouching, respectively.
101
+
102
+ M-step, we estimate the new parameter $\theta ^ { ( t ) }$ . Let $\mathbf { s } ( \mathbf { z } , \mathbf { y } )$ be a vector the sufficient statistics for a single data case. Let $\bar { \mathbf { s } } = \mathbb { E } _ { p s ( \mathbf { y } | \mathbf { z } ; \boldsymbol { \Theta } ) } [ \mathbf { s } ( \mathbf { z } , \mathbf { y } ) ]$ be the expected sufficient statistics for the data case, where the expectation is w.r.t the posterior distribution of $\mathbf { y }$ with current parameter. And let $\begin{array} { r } { \boldsymbol { \mu } = \sum _ { i = 1 } ^ { N } \bar { \mathbf { s } } _ { i } } \end{array}$ be the sum of the expected sufficient statistics. The update of the parameter $\Theta$ is performed as follows:
103
+
104
+ $$
105
+ \begin{array} { r l } & { ~ \bar { \mathbf { s } } _ { i } ^ { t } = \mathbb { E } _ { p s ( \mathbf { y } _ { i } \mid \mathbf { z } _ { i } ; \boldsymbol { \Theta } ^ { t } ) } [ \mathbf { s } ( \mathbf { z } _ { i } , \mathbf { y } _ { i } ) ] } \\ & { ~ \mu ^ { t + 1 } = \mu ^ { t } + \eta ( \bar { \mathbf { s } } _ { i } ^ { t } - \mu ^ { t } ) } \\ & { \boldsymbol { \Theta } ^ { t + 1 } = \underset { \boldsymbol { \Theta } } { \arg \operatorname* { m a x } } l ( \mu ^ { t + 1 } , \boldsymbol { \Theta } ) , } \end{array}
106
+ $$
107
+
108
+ where $\eta$ is the learning rate and $l$ is the complete data loglikelihood. Each iteration of update of LTVAE thus is composed of one iteration of gradient descent update for the neural network parameters and one iteration of Stepwise EM update for the latent tree model parameters with a mini-batch of data.
109
+
110
+ # 3.3 STRUCTURE LEARNING
111
+
112
+ For the latent structure $s$ , there are four aspects need to determine: the number of latent variables, the cardinalities of latent variables, the connectivities among variables. We aim at finding the model $m ^ { * }$ that maximizes the BIC score (Schwarz et al., 1978; Koller & Friedman, 2009):
113
+
114
+ $$
115
+ B I C ( m | \mathcal { D } ) = \log P ( \mathcal { D } | m , \theta ^ { * } ) - \frac { d ( m ) } { 2 } \log N ,
116
+ $$
117
+
118
+ where $\theta ^ { * }$ is the MLE of the parameters and $d ( m )$ is the number of independent parameters. The first term is known as the likelihood term. It favors models that fit data well. The second term is known as the penalty term. It discourages complex models. Hence, the BIC score provides a tradeoff between model fit and model complexity. To this end, we perform systematic searching to find a structure with a high BIC score. We use the hill-climing algorithm to search for $m ^ { * }$ as in (Poon et al., 2010; 2013), and define 7 search operators: node introduction (NI) and node deletion (ND) to introduce new latent nodes and delete existing nodes, state introduction (SI) and state deletion (SD) to add a new state and delete a state for existing nodes, node relocation (NR) to change links of existing nodes, pouching (PO) and unpouching (UP) operators to combine nodes into a single node and separate variables from a node.. The structure search operators are shown in Fig. 3. Each operator produces a set of candidates from existing structure, and the best candidate is picked if it improves the previous one. To reduce the number of possible search candidates, we first perform SI, NI and PO to expand the structure and pick the best model. Then we perform NR to adjust the best model. Finally, we perform UP, ND and SD to simplify the current best structure and pick the best one. Acceleration techniques (Poon et al., 2013) are adopted that make the algorithm efficient enough. The structure learning is performed iteratively together with the parameter learning of neural networks.
119
+
120
+ The overall learning algorithm is illustrated in Algorithm 1. Starting from a pretrained model, we iteratively improve the structure and parameters of latent tree model while learning the representations of data through neural network in a greedy manner. Using current structure $S ^ { t }$ as the initial structure,
121
+
122
+ # Algorithm 1 Learning Latent Tree Variational Autoencoder
123
+
124
+ <table><tr><td>Input:data D,z dim,neural networks,E 0,,S°,Θ° ← pretrain(D) repeat fore=1toEdo</td></tr><tr><td>for each minibatchX in D do Compute q(z|μx,Ox)</td></tr><tr><td>Sample z(i) ~q(z|μx,x) Compute log ps(z; ) and 0log ps(z) from Eq.5 and 7 dz</td></tr><tr><td>Compute ELBO from Eq. 4 0,Φ ← Back-propagation and SGD step</td></tr><tr><td>← StepwiseEM(z()) end for</td></tr><tr><td>end for Dz↑μD</td></tr><tr><td></td></tr><tr><td></td></tr><tr><td>repeat</td></tr><tr><td>S*,Θ* ← SearchWith(St-1,Θt-1,{SI,NI,PO})</td></tr><tr><td>S*,Θ* ← SearchWith(S*,Θ* {NR}) St,Θt ← SearchWith(S*,Θ*,{UP,ND,SD}) until BIC(St,0t|Dz)≤BIC(St-1,0t-1|Dz)</td></tr></table>
125
+
126
+ we search for a better model. With new latent tree model, we optimize for a better representation until convergence.
127
+
128
+ # 4 EXPERIMENTS
129
+
130
+ # 4.1 SYNTHETIC-DATA DEMONSTRATION
131
+
132
+ We first demonstrate the effectiveness of the proposed method through synthetic data. Assume that the data points have two facets $Y _ { 1 }$ and $Y _ { 2 }$ , where each facet controlls a subset of attributes (e.g. two-dimensional domain) and defines one partition over the data. This four-dimensional domain $\mathbf { z } = \{ z _ { 1 } , z _ { 2 } , z _ { 3 } , z _ { 4 } \}$ is a latent representation which we do not observe. What we observe is $\mathbf { x } \in \mathbb { R } ^ { 1 0 0 }$ that is obtained via the following non-linear transformation:
133
+
134
+ $$
135
+ \mathbf { x } = \sigma ( U \sigma ( W \mathbf { z } ) ) ,
136
+ $$
137
+
138
+ where $W \in \mathbb { R } ^ { 1 0 \times 4 }$ and $U \in \mathbb { R } ^ { 1 0 0 \times 1 0 }$ are matrices whose entries follow the zero-mean unit-variance i.i.d. Gaussian distribution, $\sigma ( \cdot )$ is a sigmoid function to introduce nonlinearity. The generative model is shown in Fig. 4 (a). We define two clusters in facet $Y _ { 1 }$ and two clusters in facet $Y _ { 2 }$ , and generate 5,000 samples of $\mathbf { x }$ . Under the above generative model, recovering the two facets $Y _ { 1 }$ and $Y _ { 2 }$ structure and the latent $z$ domain from the observation of $\mathbf { x }$ seems very challenging. All previous DNN-based methods $\mathbf { \Gamma } ( \mathbf { A E + G M M }$ , DEC, DCN, etc.) are only able to discover one-facet of clustering (i.e. one partition over the data), and none of these is applicable to solve such a multidimensional clustering problem. Fig. 4 (b) shows the results of the proposed method. As one can see, the LTVAE successfully discovers the true superstructure of $Y _ { 1 }$ and $Y _ { 2 }$ . The 2-d plot of $z _ { 1 }$ and $z _ { 2 }$ shows the separable latent space clusters under facet $Y _ { 1 }$ , and it matches the ground-truth cluster assignments. Additionally, the 2-d plot of $z _ { 3 }$ and $z _ { 4 }$ shows another separable clusters under facet $Y _ { 2 }$ , and it also matches the ground-truth cluster assignments well in the other facet.
139
+
140
+ # 4.2 REAL-DATA EXPERIMENT SETUP
141
+
142
+ We evaluate the proposed LTVAE model on two image datasets and two other datasets, and compare it against other deep learning based clustering algorithms, including two-stage methods, $\mathbf { A E { + } G M M }$ and $\mathbf { V A E + G M M }$ , which first learn AE/VAE (Kingma & Welling, 2014) models then construct a GMM on top of them, and joint learning methods, DEC (Xie et al., 2016) and DCN (Yang et al., 2017). The datasets include MNIST, STL-10, Reuters (Xie et al., 2016; Jiang et al., 2017) and the Heterogeneity Human Activity Recognition (HHAR) dataset. When evaluating the clustering performance, for fair of comparison, we follow previous works (Xie et al., 2016; Yang et al., 2017) and use the network structures of $d - 5 0 0 - 5 0 0 - 2 0 0 0 - 1 0$ for the encoder network and $1 0 - 2 0 0 0 -$ $5 0 0 - 5 0 0 - d$ for the decoder network for all datasets, where $d$ is the data-space dimension, which varies among datasets. All layers are fully-connected. We follow the pretraining procedure as in (Xie et al., 2016). We first perform greedy layer-wise pretraining in denoising autoencoder manner, then stack all layers to form deep autoencoder. The deep autoencoder is further finetuned to minimize the reconstruction loss. The weights of the deep autoencoder are used to intialize the weights of encoder and decoder networks of above methods. After the pretraining, we optimze the objectives of those methods. For DEC and DCN, we use the same hyperparameter settings as the original papers. When initializing the cluster centroids for DEC and DCN, we perform 10 random restarts and pick the results with the best objective value for $k$ -means/GMM. For the proposed LTVAE, we use Adam optimzer (Kingma & Ba, 2015) with initial learning rate of 0.001 and mini-batch size of 128. For Stepwise EM, we set the learning rate to be 0.01. As in Algorithm 1, we set $E = 5$ , i.e. we update the latent tree model every 5 epochs. When optimizing the candidate models during structure search, we perform 10 random restarts and train with EM for 200 iterations.
143
+
144
+ ![](images/e672589b914b2a28cffd51a0a4a0d6081efff6a689a04a75ded1c725ef434333.jpg)
145
+ Figure 4: (a) The generative process of synthetic data; (b) The discovered multidimensional superstructure and the latent space (different colors denote different ground truth clusters in each facet.)
146
+
147
+ Table 1: Test data loglikelihood for various datasets.
148
+
149
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>STL</td><td rowspan=1 colspan=1>Reuters</td><td rowspan=1 colspan=1>HHAR</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>-86.64±0.20</td><td rowspan=1 colspan=1>-743.72±0.51</td><td rowspan=1 colspan=1>-1312.40±1.24</td><td rowspan=1 colspan=1>-17.88±0.26</td></tr><tr><td rowspan=1 colspan=1>IWAE</td><td rowspan=1 colspan=1>-85.39±0.13</td><td rowspan=1 colspan=1>-742.43±1.10</td><td rowspan=1 colspan=1>-1254.29±6.95</td><td rowspan=1 colspan=1>-16.53±0.16</td></tr><tr><td rowspan=1 colspan=1>LTVAE</td><td rowspan=1 colspan=1>-84.75±0.14</td><td rowspan=1 colspan=1>-619.04±7.88</td><td rowspan=1 colspan=1>-1245.71±4.45</td><td rowspan=1 colspan=1>-13.65±0.53</td></tr></table>
150
+
151
+ # 4.3 TEST LOGLIKELIHOOD
152
+
153
+ We first show that, by using the marginal loglikelihood defined by the latent tree model as the prior, LTVAE better fits the data than conventional VAE and importance weighted autoencoders (IWAE) (Burda et al., 2016). While alternative quantitative criteria have been proposed (Bounliphone et al., 2016; Im et al., 2016; Salimans et al., 2016) for generative models, log-likelihood of held-out test data remains one of the most important measures of a generative model’s performance (Kingma & Welling, 2014; Burda et al., 2016; Wu et al., 2017; Goyal et al., 2017). For comparison, we approximate true loglikelihood $\mathcal { L } _ { 5 0 0 0 }$ using importance sampling (Burda et al., 2016): ${ \mathcal { L } } _ { k } ( \mathbf { x } ) =$ $\begin{array} { r } { \log { \frac { 1 } { k } } \sum _ { i = 1 } ^ { k } \frac { p _ { \theta } ( \mathbf { x } , \mathbf { z } ^ { ( i ) } ) } { q _ { \phi } ( \mathbf { z } ^ { ( i ) } | \mathbf { x } ) } } \end{array}$ , where $\mathbf { z } ^ { ( i ) } \sim q _ { \phi } ( \mathbf { z } | \mathbf { x } )$ . The results for all datasets are shown in Table 1. The proposed LTVAE obtains a higher test data loglikelihood and ELBO, implying that it can better model the underlying complex data distribution embedded in the image data.
154
+
155
+ ![](images/1d233589357b0631e59d50b485f75fabf632ff9d82873f460dacc04ee477949a.jpg)
156
+ Figure 5: Two facet clustering results from LTVAE are in (a) digit identity and (b) shape and pose. Each row contains the top 10 scoring elements from one cluster. (c) shows the pose variations by fixing the digit cluster in facet 1 and changing the cluster in facet 2. It can be seen that up-right, left-tilted and right-tilted images of the same digits are clearly recognizable.
157
+
158
+ Table 2: Clustering Accuracy of clustering results.
159
+
160
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>STL-10</td><td rowspan=1 colspan=1>Reuters</td><td rowspan=1 colspan=1>HHAR</td></tr><tr><td rowspan=1 colspan=1>AE+GMM</td><td rowspan=1 colspan=1>82.18%</td><td rowspan=1 colspan=1>79.83%</td><td rowspan=1 colspan=1>68.68%</td><td rowspan=1 colspan=1>78.90%</td></tr><tr><td rowspan=1 colspan=1>VAE+GMM</td><td rowspan=1 colspan=1>76.87%</td><td rowspan=1 colspan=1>79.49%</td><td rowspan=1 colspan=1>65.85%</td><td rowspan=1 colspan=1>67.91%</td></tr><tr><td rowspan=1 colspan=1>DEC</td><td rowspan=1 colspan=1>84.30%</td><td rowspan=1 colspan=1>80.62%</td><td rowspan=1 colspan=1>74.32%</td><td rowspan=1 colspan=1>79.86%</td></tr><tr><td rowspan=1 colspan=1>DCN</td><td rowspan=1 colspan=1>83.32%</td><td rowspan=1 colspan=1>85.88%</td><td rowspan=1 colspan=1>75.05%</td><td rowspan=1 colspan=1>81.26%</td></tr><tr><td rowspan=1 colspan=1>LTVAE</td><td rowspan=1 colspan=1>86.32%</td><td rowspan=1 colspan=1>90.00%</td><td rowspan=1 colspan=1>80.96%</td><td rowspan=1 colspan=1>85.00%</td></tr></table>
161
+
162
+ # 4.4 MULTIFACET CLUSTERING
163
+
164
+ The most important features of the proposed model are that it can perform variable selection for model-based clustering, leading to multiple facets clustering.
165
+
166
+ We use the standard unsupervised evaluation metric and protocols for evaluations and comparisons to other algorithms (Yang et al., 2010). For baseline algorithms we set the number of clusters to the number of ground-truth categories. While for LTVAE, it automatically determines the number of facets and latent superstructure through structure learning. We evaluate performance with unsupervised clustering accuracy $( A C C )$ :
167
+
168
+ $$
169
+ A C C = \operatorname* { m a x } _ { m } \frac { \sum _ { i = 1 } ^ { n } \mathbf { 1 } \left\{ l _ { i } = m ( c _ { i } ) \right\} } { n } ,
170
+ $$
171
+
172
+ where $l _ { i }$ is the groundtruth label, $c _ { i }$ is the cluster assignment produced by the algorithm, and $m$ ranges over all possible mappings between clusters and labels. Table 2 show the quantitative clustering results compared with previous works. With $\mathbf { z }$ dimension of small value like 10, LTVAE usually discovers only one facet. It can be seen the, for MNIST dataset LTVAE achieves clustering accuracy of $8 6 . 3 2 \%$ , better than the results of other methods. This is also the case for STL-10, Reuters and HHAR.
173
+
174
+ More importantly, the proposed LTVAE does not just give one partition over the data. Instead, it explains the data in multi-faceted ways. Unlike previous clustering experiments, for this experiment, we choose the z dimension to be 20. Fig. 5 shows the two facet clustering results for MNIST. It can be seen that facet 1 gives quite clean clustering over the identity of the digits and the ten digits are well separated. On the other hand, facet 2 gives a more grand partition based on the shape and pose. Note how up-right $" 4 > "$ and “9” are similar, and how tilted “4”,“7” and “9” are similar. The facet meanings are more evident in Fig. 5 (c). Fig. 6 shows four facets discovered for the STL-10 dataset. Although it is hard to characterize precisely how the facets differ from each other, there are visible patterns. For example, the cats, monkeys and birds in facet 2 have clearly visible eyes, while this is not always true in facet 1. The deers in facet 2 are all showing their antlers/ears, while this is not true in facet 3. In facet 2 we see frontal views of cars, while in facets 1 and 3 we see side view of cars. In facet 1, each cluster consists of the same types of objects/animal. In facet 3/4, images in the same cluster do not necessarily show the same type of objects/animals. However, they have similar overall feel.
175
+
176
+ ![](images/ff99c4bc8ecd2f35cfc249876f70070a5f186e93efe69e4180f070a4bf2f59d6.jpg)
177
+ Figure 6: Clustering results from LTVAE for STL-10 dataset. Each row contains the top 5 scoring elements from one cluster.
178
+
179
+ ![](images/c09285f05ed4a5f8198b024ddb48f70e4a9e48fdbbb909c8d2925f06a53057f9.jpg)
180
+ Figure 7: The digits generated by the proposed model. Digits in the same row come from the same latent code of the latent tree.
181
+
182
+ # 4.5 IMAGE GENERATION
183
+
184
+ Since the structure of the data in latent space is automatically learned through the latent tree, we can sample the data in a more structured way. One way is through ancestral sampling, where we first sample the root of the latent tree and then hierarchically sample the children variables to get $\mathbf { z }$ , from which the images can be generated through generation network. The other way is to pick one component from the Gaussian mixture and sample $\mathbf { z }$ from that component. This produces samples from a particular cluster. Fig. 7 shows the samples generated in this way. As it can be seen, digits sampled from each component has clear semantic meaning and belong to the same category. Whereas, the samples generated by VAE does not have such structure. Conditional image generation can also be performed to alter the attributes of the same digit as shown in Appendix B.
185
+
186
+ # 5 DISCUSSIONS
187
+
188
+ LTVAE learns the dependencies among latent variables $\mathbf { Y }$ . In general, latent variables are often correlated. For example, the social skills and academic skills of a student are generally correlated. Therefore, its better to model this relationship to better fit the data. Experiments show that removing such dependencies in LTVAE models results in inferior data loglikelihood.
189
+
190
+ In this paper, for the inference network, we simply use mean-field inference network with same structure as the generative network (Kingma & Welling, 2014). However, the limited expressiveness of the mean-field inference network could restrict the learning in the generative network and the quality of the learned model (Webb et al., 2018; Rainforth et al., 2018; Cremer et al., 2018). Using a faithful inference network structure as in (Webb et al., 2018) to incorporate the dependencies among latent variables in the posterior, for example one parameterized with masked autoencoder distribution estimator (MADE) model (Germain et al., 2015), could have a significant improvement in learning. We leave it for future investigation.
191
+
192
+ # 6 CONCLUSIONS
193
+
194
+ In this paper, we propose an unsupervised learning method, latent tree variational autoencoder (LTVAE), which simultaneously performs representation learning and multidimensional clustering. Different from previous deep learning based clustering methods, LTVAE learns latent embeddings from data and discovers multi-facet clustering structure based on subsets of latent features rather than one partition over data. Experiments show that the proposed method achieves state-of-the-art clustering performance and reals reasonable multifacet structures of the data.
195
+
196
+ # ACKNOWLEDGMENTS
197
+
198
+ Research on this article was supported by Hong Kong Research Grants Council under grants 16212516 and 16202118.
199
+
200
+ # REFERENCES
201
+
202
+ Charu C Aggarwal and Chandan K Reddy. Data clustering: algorithms and applications. CRC press, 2013.
203
+
204
+ David M Blei, Michael I Jordan, et al. Variational inference for dirichlet process mixtures. Bayesian analysis, 1(1):121–144, 2006.
205
+
206
+ Wacha Bounliphone, Eugene Belilovsky, Matthew B Blaschko, Ioannis Antonoglou, and Arthur Gretton. A test of relative similarity for model selection in generative models. In Proceedings of the International Conference on Learning Representations, 2016.
207
+
208
+ Yuri Burda, Roger Grosse, and Ruslan Salakhutdinov. Importance weighted autoencoders. In Proceedings of the International Conference on Learning Representations, 2016.
209
+
210
+ Tao Chen, Nevin L Zhang, Tengfei Liu, Kin Man Poon, and Yi Wang. Model-based multidimensional clustering of categorical data. Artificial Intelligence, 176(1):2246–2269, 2012.
211
+
212
+ M Bishop Christopher. Pattern Recognition and Machine Learning. Springer-Verlag New York, 2016.
213
+
214
+ Chris Cremer, Xuechen Li, and David Duvenaud. Inference suboptimality in variational autoencoders. In International Conference on Machine Learning, 2018.
215
+
216
+ Nat Dilokthanakul, Pedro AM Mediano, Marta Garnelo, Matthew CH Lee, Hugh Salimbeni, Kai Arulkumaran, and Murray Shanahan. Deep unsupervised clustering with gaussian mixture variational autoencoders. arXiv preprint arXiv:1611.02648, 2016.
217
+
218
+ Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. In International Conference on Machine Learning, pp. 881–889, 2015.
219
+
220
+ Prasoon Goyal, Zhiting Hu, Xiaodan Liang, Chenyu Wang, and Eric Xing. Nonparametric variational auto-encoders for hierarchical representation learning. In Proceedings of the IEEE International Conference on Computer Vision, 2017.
221
+
222
+ Xifeng Guo, Long Gao, Xinwang Liu, and Jianping Yin. Improved deep embedded clustering with local structure preservation. In International Joint Conference on Artificial Intelligence (IJCAI17), pp. 1753–1759, 2017.
223
+
224
+ Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. science, 313(5786):504–507, 2006.
225
+
226
+ Geoffrey E Hinton, Simon Osindero, and Yee-Whye Teh. A fast learning algorithm for deep belief nets. Neural computation, 18(7):1527–1554, 2006.
227
+
228
+ Daniel Jiwoong Im, Chris Dongjoo Kim, Hui Jiang, and Roland Memisevic. Generating images with recurrent adversarial networks. arXiv preprint arXiv:1602.05110, 2016.
229
+
230
+ Zhuxi Jiang, Yin Zheng, Huachun Tan, Bangsheng Tang, and Hanning Zhou. Variational deep embedding: An unsupervised and generative approach to clustering. In International Joint Conference on Artificial Intelligence, 2017.
231
+
232
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations, 2015.
233
+
234
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In Proceedings of the International Conference on Learning Representations, 2014.
235
+
236
+ Daphne Koller and Nir Friedman. Probabilistic graphical models: principles and techniques. MIT press, 2009.
237
+
238
+ James MacQueen et al. Some methods for classification and analysis of multivariate observations. In Proceedings of the fifth Berkeley symposium on mathematical statistics and probability, volume 1, pp. 281–297. Oakland, CA, USA, 1967.
239
+
240
+ Raphael Mourad, Christine Sinoquet, Nevin L Zhang, Tengfei Liu, and Philippe Leray. A survey on ¨ latent tree models and applications. Journal of Artificial Intelligence Research, 2013.
241
+
242
+ Judea Pearl. Probabilistic reasoning in intelligent systems: networks of plausible inference. Morgan Kaufmann, 2014.
243
+
244
+ Leonard Poon, Nevin L Zhang, Tao Chen, and Yi Wang. Variable selection in model-based clustering: To do or to facilitate. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 887–894, 2010.
245
+
246
+ Leonard KM Poon, Nevin L Zhang, Tengfei Liu, and April H Liu. Model-based clustering of high-dimensional data: Variable selection versus facet determination. International Journal of Approximate Reasoning, 54(1):196–215, 2013.
247
+
248
+ Tom Rainforth, Adam R Kosiorek, Tuan Anh Le, Chris J Maddison, Maximilian Igl, Frank Wood, and Yee Whye Teh. Tighter variational bounds are not necessarily better. In International Conference on Machine Learning, 2018.
249
+
250
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in Neural Information Processing Systems, pp. 2234–2242, 2016.
251
+
252
+ Gideon Schwarz et al. Estimating the dimension of a model. The annals of statistics, 6(2):461–464, 1978.
253
+
254
+ Michael Steinbach, Levent Ertoz, and Vipin Kumar. The challenges of clustering high dimensional ¨ data. In New directions in statistical physics, pp. 273–309. Springer, 2004.
255
+
256
+ Yee Whye Teh, Michael I Jordan, Matthew J Beal, and David M Blei. Hierarchical dirichlet processes. Journal of the American Statistical Association, 101(1):1566–1581, 2006.
257
+
258
+ Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Proceedings of the 25th international conference on Machine learning, pp. 1096–1103. ACM, 2008.
259
+
260
+ 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(Dec):3371–3408, 2010.
261
+
262
+ Ulrike Von Luxburg. A tutorial on spectral clustering. Statistics and computing, 17(4):395–416, 2007.
263
+
264
+ Stefan Webb, Adam Golinski, Robert Zinkov, N Siddharth, Tom Rainforth, Yee Whye Teh, and Frank Wood. Faithful inversion of generative models for effective amortized inference. In Advances in Neural Information Processing Systems, 2018.
265
+
266
+ Yuhuai Wu, Yuri Burda, Ruslan Salakhutdinov, and Roger Grosse. On the quantitative analysis of decoder-based generative models. In Proceedings of the International Conference on Learning Representations, 2017.
267
+
268
+ Junyuan Xie, Ross Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering analysis. In International Conference on Machine Learning, pp. 478–487, 2016.
269
+
270
+ Bo Yang, Xiao Fu, Nicholas D Sidiropoulos, and Mingyi Hong. Towards k-means-friendly spaces: Simultaneous deep learning and clustering. In International Conference on Machine Learning, 2017.
271
+
272
+ Jianwei Yang, Devi Parikh, and Dhruv Batra. Joint unsupervised learning of deep representations and image clusters. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5147–5156, 2016.
273
+
274
+ Yi Yang, Dong Xu, Feiping Nie, Shuicheng Yan, and Yueting Zhuang. Image clustering using local discriminant models and global integration. IEEE Transactions on Image Processing, 19(10): 2761–2773, 2010.
275
+
276
+ Nevin L Zhang. Hierarchical latent class models for cluster analysis. Journal of Machine Learning Research, 5(6):697–723, 2004.
277
+
278
+ Nevin L Zhang and Leonard KM Poon. Latent tree analysis. In AAAI, pp. 4891–4898, 2017.
279
+
280
+ # A SUPERSTRUCTURES
281
+
282
+ For the MNIST dataset, the conditional probability between identity facet $Y _ { 1 }$ ( $\mathbf { \bar { X } } ^ { \prime }$ -axis) and pose facet $Y _ { 2 }$ (y-axis) is shown in Fig. 8. It can be seen that a cluster in $Y _ { 1 }$ facet could correspond to multiple clusters in $Y _ { 2 }$ facet due to the conditional probability, e.g. cluster 0, 4, 5, 11 and 12. However, not all clusters in $Y _ { 2 }$ facet are possible for a given cluster in $Y _ { 1 }$ facet.
283
+
284
+ ![](images/d997c4363a0c39b11d777cc78d967c979fc2920e26ce9822474c2bcb0761d59c.jpg)
285
+ Figure 8: Conditional probability of $Y _ { 1 }$ and $Y _ { 2 }$ for the two facets of MNIST discovered by LTVAE.
286
+
287
+ # B CONDITIONAL IMAGE GENERATION
288
+
289
+ Here we show more results on conditional image generation. Interestingly, with LTVAE, we can change the original images by fixing variables in some facet and sampling in other facets. For example, in MNIST we can fix the variables in identity facet and change the pose of the digit by sampling in the pose facet. Fig. 9 shows the samples generated in this way. As it can be seen, the pose of the input digits are changed in the samples generated by the proposed method.
290
+
291
+ ![](images/305531c7e4bf0fba99c111714fa1b632f5f0caa852d4e3492a11f51cc6df7b31.jpg)
292
+ Figure 9: Image generation. Left are the original image. Right are generated with the proposed model by fixing the variables in identity facet and sampling the variables in the pose facet. Digits in the same row come from the same latent code of the latent tree.
293
+
294
+ # C COMPUTATIONAL TIME
295
+
296
+ We compare the computational time of the proposed LTVAE w/ structure learning and that w/ fixed structure. For LTVAE with fixed structure, we fixed the structure of the latent tree model to be a single $Y$ connecting to all $z \mathbf { S }$ , in which each $z$ node consists of single $z$ variable.
297
+
298
+ Table 3: Computational time (s) w/ and w/o structure learning.
299
+
300
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>STL-10</td><td rowspan=1 colspan=1>Reuters</td><td rowspan=1 colspan=1>HHAR</td></tr><tr><td rowspan=1 colspan=1>LTVAE w/ structure learning</td><td rowspan=1 colspan=1>7,592</td><td rowspan=1 colspan=1>3,251</td><td rowspan=1 colspan=1>5,756</td><td rowspan=1 colspan=1>5,693</td></tr><tr><td rowspan=1 colspan=1>LTVAE w/ fixed structure</td><td rowspan=1 colspan=1>3,197</td><td rowspan=1 colspan=1>542</td><td rowspan=1 colspan=1>1,442</td><td rowspan=1 colspan=1>1,021</td></tr></table>
301
+
302
+ # D SIMILARITY BETWEEN LEARNED FACETS
303
+
304
+ Different facets learned by LTVAE might have some overlaps among each other. Here we make quantitative comparison among different facets based on the cluster assignments in each facet. We evaluate the similarity between two clusterings $Y _ { 1 }$ and $Y _ { 2 }$ using normalized mutual information $N M I ( Y _ { 1 } ; Y _ { 2 } )$ . The NMI is given by
305
+
306
+ $$
307
+ N M I ( Y _ { 1 } ; Y _ { 2 } ) = \frac { I ( Y _ { 1 } ; Y _ { 2 } ) } { \sqrt { H ( Y _ { 1 } ) H ( Y _ { 2 } ) } } ,
308
+ $$
309
+
310
+ where $I ( Y _ { 1 } ; Y _ { 2 } )$ is the mutual information between $Y _ { 1 }$ and $Y _ { 2 }$ and $H ( V )$ is the entropy of a variable $V$ . These quantities can be computed from $P ( Y _ { 1 } ; Y _ { 2 } )$ , which in turn is estimated by $P ( Y _ { 1 } ; Y _ { 2 } ) =$ $\begin{array} { r l } { { } } & { { } { \frac { 1 } { N } } \sum _ { i = 1 } ^ { N } P ( Y _ { 1 } | \mathbf { d _ { i } } ) P ( Y _ { 2 } | \mathbf { d _ { i } } ) } \end{array}$ , where $\mathbf { d } _ { 1 } , \cdots , \mathbf { d } _ { N }$ are the samples in the test data.
311
+
312
+ Table 4: NMI between different facets learned by LTVAE and groundtruth for MNIST dataset.
313
+
314
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Groundtruth</td><td rowspan=1 colspan=1>Facet 1</td><td rowspan=1 colspan=1>Facet 2</td></tr><tr><td rowspan=1 colspan=1>Groundtruth</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.825</td><td rowspan=1 colspan=1>0.574</td></tr><tr><td rowspan=1 colspan=1>Facet 1</td><td rowspan=1 colspan=1>0.825</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.682</td></tr><tr><td rowspan=1 colspan=1>Facet 2</td><td rowspan=1 colspan=1>0.574</td><td rowspan=1 colspan=1>0.682</td><td rowspan=1 colspan=1>1</td></tr></table>
315
+
316
+ Table 5: NMI between different facets learned by LTVAE and groundtruth for STL dataset.
317
+
318
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Groundtruth</td><td rowspan=1 colspan=1>Facet1</td><td rowspan=1 colspan=1>Facet 2</td><td rowspan=1 colspan=1>Facet3</td><td rowspan=1 colspan=1>Facet 4</td></tr><tr><td rowspan=1 colspan=1>Groundtruth</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.8613</td><td rowspan=1 colspan=1>0.6279</td><td rowspan=1 colspan=1>0.5758</td><td rowspan=1 colspan=1>0.5536</td></tr><tr><td rowspan=1 colspan=1>Facet 1</td><td rowspan=1 colspan=1>0.8613</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.6962</td><td rowspan=1 colspan=1>0.6314</td><td rowspan=1 colspan=1>0.6251</td></tr><tr><td rowspan=1 colspan=1>Facet 2</td><td rowspan=1 colspan=1>0.6279</td><td rowspan=1 colspan=1>0.6962</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.4675</td><td rowspan=1 colspan=1>0.5031</td></tr><tr><td rowspan=1 colspan=1>Facet 3</td><td rowspan=1 colspan=1>0.5758</td><td rowspan=1 colspan=1>0.6314</td><td rowspan=1 colspan=1>0.4675</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.5885</td></tr><tr><td rowspan=1 colspan=1>Facet 4</td><td rowspan=1 colspan=1>0.5536</td><td rowspan=1 colspan=1>0.6251</td><td rowspan=1 colspan=1>0.5031</td><td rowspan=1 colspan=1>0.5885</td><td rowspan=1 colspan=1>1</td></tr></table>
319
+
320
+ # E DERIVATION OF GRADIENT
321
+
322
+ Here we give detailed derivation of Equation 6. The gradient $\mathbf { g } _ { \mathbf { z } _ { b } }$ of the marginal loglikelihood $\log p s ( { \bf z } ; \Theta )$ w.r.t $\mathbf { z } _ { b }$ thus can be computed as
323
+
324
+ $$
325
+ \begin{array} { r l } { \mathcal { Q } _ { \kappa , \kappa } = } & { \frac { \partial \langle \Phi _ { \kappa } | \phi _ { \sigma } \rangle \langle \kappa \Theta \rangle } { \partial \mathcal { L } _ { \kappa } } } \\ & { = \frac { \partial } { \partial \kappa _ { \kappa } \langle \kappa \Theta \rangle } _ { \kappa } \frac { \partial \langle \Phi _ { \kappa } | \phi _ { \sigma } \rangle _ { \kappa } } { \partial \mathcal { L } _ { \kappa } } } \\ & { = \frac { 1 } { \rho _ { \kappa } \langle \kappa \Theta \rangle } _ { \kappa } \frac { \partial \sum _ { \kappa } f \langle \Phi _ { \kappa } \rangle \langle \kappa \Theta _ { \kappa } | \phi _ { \kappa } \rangle _ { \kappa } \langle \kappa \Theta _ { \kappa } \rangle } { \partial \mathcal { L } _ { \kappa } } } \\ & { = \sum _ { \kappa } \frac { \partial } { \rho _ { \kappa } \langle \kappa \Theta \rangle } _ { \kappa } \frac { \partial | f \langle \Phi _ { \kappa } \rangle \langle \kappa | \Theta _ { \kappa } \rangle _ { \kappa } \langle \kappa \Theta _ { \kappa } \rangle | } { \partial \mathcal { L } _ { \kappa } } } \\ & { = \sum _ { \kappa } \frac { f \langle \Phi _ { \kappa } | \Phi \rangle \langle \kappa | \Phi _ { \kappa } | \rho _ { \kappa } \rangle _ { \kappa } \langle \kappa \Theta _ { \kappa } | \phi _ { \kappa } \rangle _ { \kappa } } { \partial \mathcal { L } _ { \kappa } \langle \kappa \Theta \rangle } \frac { \partial | f \langle \Phi _ { \kappa } | \mathcal { N } \langle \kappa | \Phi _ { \kappa } \rangle _ { \kappa } \langle \kappa \Theta _ { \kappa } \rangle _ { \kappa } | } { \partial \mathcal { L } _ { \kappa } } } \\ & { = \sum _ { \kappa } \frac { f \langle \Phi _ { \kappa } | \Phi \rangle \langle \kappa | \Phi _ { \kappa } | \rho _ { \kappa } \rangle _ { \kappa } \langle \kappa | \Phi _ { \kappa } \rangle _ { \kappa } \langle \kappa | \Phi _ { \kappa } \rangle _ { \kappa } } { \partial \mathcal { L } _ { \kappa } } } \\ & { = \sum _ { \kappa } \rho _ { \kappa } | z | \rho _ { \kappa } \langle | \Phi _ { \kappa } | \rho _ { \kappa } \rangle _ { \kappa } \langle | \Phi _ { \kappa } | \rho _ { \kappa } \rangle _ { \kappa } } \\ & = \sum _ { \kappa } ^ { \kappa } \rho _ { \kappa } | z | \rho _ { \kappa } \langle \kappa | \Phi _ { \kappa } \rangle _ { \kappa } \end{array}
326
+ $$
327
+
328
+ where $p ( \boldsymbol { y } _ { b } | \mathbf { z } )$ is the posterior probability of $y _ { b }$ and can be computed efficiently with message passing as described in the previous section. Note that
329
+
330
+ $$
331
+ p ( y _ { b } | \mathbf { z } ) = \frac { f ( y _ { b } ) \mathcal { N } ( \mathbf { z } _ { b } | \mu _ { y _ { b } } , \Sigma _ { y _ { b } } ) } { p s ( \mathbf { z } ; \boldsymbol { \Theta } ) }
332
+ $$
333
+
334
+ is valid due to $\begin{array} { r } { p _ { S } ( \mathbf { z } ; \Theta ) = \sum _ { y _ { b } } \mathcal { N } ( \mathbf { z } _ { b } | \mu _ { y _ { b } } , \boldsymbol { \Sigma } _ { y _ { b } } ) f ( y _ { b } ) } \end{array}$ and the Bayes rule.
parse/train/SJgNwi09Km/SJgNwi09Km_content_list.json ADDED
@@ -0,0 +1,1723 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING LATENT SUPERSTRUCTURES IN VARIATIONAL AUTOENCODERS FOR DEEP MULTIDIMENSIONAL CLUSTERING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 823,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Xiaopeng $\\mathbf { L i } ^ { 1 }$ , Zhourong Chen1, Leonard K. M. Poon2 and Nevin L. Zhang1 ",
17
+ "bbox": [
18
+ 184,
19
+ 194,
20
+ 710,
21
+ 210
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1 Department of Computer Science and Engineering The Hong Kong University of Science and Technology 2 Department of Mathematics & Information Technology The Education University of Hong Kong {xlibo,zchenbb,lzhang}@cse.ust.hk, kmpoon@eduhk.hk ",
28
+ "bbox": [
29
+ 184,
30
+ 212,
31
+ 671,
32
+ 280
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 316,
43
+ 544,
44
+ 332
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "We investigate a variant of variational autoencoders where there is a superstructure of discrete latent variables on top of the latent features. In general, our superstructure is a tree structure of multiple super latent variables and it is automatically learned from data. When there is only one latent variable in the superstructure, our model reduces to one that assumes the latent features to be generated from a Gaussian mixture model. We call our model the latent tree variational autoencoder (LTVAE). Whereas previous deep learning methods for clustering produce only one partition of data, LTVAE produces multiple partitions of data, each being given by one super latent variable. This is desirable because high dimensional data usually have many different natural facets and can be meaningfully partitioned in multiple ways. ",
51
+ "bbox": [
52
+ 233,
53
+ 349,
54
+ 764,
55
+ 503
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 536,
66
+ 336,
67
+ 551
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Clustering is a fundamental task in unsupervised machine learning, and it is central to many datadriven application domains. Cluster analysis partitions all the data into disjoint groups, and one can understand the structure of the data by examining examples in each group. Many clustering methods have been proposed in the literature (Aggarwal & Reddy, 2013), such as $k$ -means (MacQueen et al., 1967), Gaussian mixture models (Christopher, 2016) and spectral clustering (Von Luxburg, 2007). Conventional clustering methods are generally applied directly on the original data space. However, it is challenging to perform cluster analysis on high dimensional and unstructured data (Steinbach et al., 2004), such as images. It is not only because the dimensionality is high, but also because the original data space is too complex to interpret, e.g. there are semantic gaps between pixel values and objects in images. ",
74
+ "bbox": [
75
+ 174,
76
+ 569,
77
+ 825,
78
+ 708
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Recently, deep learning based clustering methods have been proposed that simultanously learn nonlinear embeddings through deep neural networks and perform cluster analysis on the embedding space. The representation learning process learns effective high-level representations from high dimensional data and helps the cluster analysis. This is typically achieved by unsupervised deep learning methods, such as restricted Boltzmann machine (RBM) (Hinton et al., 2006; Hinton & Salakhutdinov, 2006), autoencoders (AE) (Vincent et al., 2008; 2010), variational autoencoders (VAE) (Kingma & Welling, 2014), etc. Previous deep learning based clustering methods (Xie et al., 2016; Guo et al., 2017; Jiang et al., 2017; Yang et al., 2017) assume one single partition over the data and that all attributes define that partition. In real-world applications, however, the assumptions are usually not true. High-dimensional data are often multifaceted and can be meaningfully partitioned in multiple ways based on subsets of attributes (Chen et al., 2012). For example, a student population can be clustered in one way based on course grades and in another way based on extracurricular activities. Movie reviews can be clustered based on both sentiment (positive or negative) and genre (comedy, action, war, etc.). It is challenging to discover the multi-facet structures of data, especially for high-dimensional data. ",
85
+ "bbox": [
86
+ 174,
87
+ 715,
88
+ 825,
89
+ 922
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "To resolve the above issues, we propose an unsupervised learning method, latent tree variational autoencoder (LTVAE) to learn latent superstructures in variational autoencoders, and simultaneously perform representation learning and structure learning. LTVAE is a generative model, where the data is assumed to be generated from latent features through neural networks, while the latent features themselves are generated from tree-structured Bayesian networks with another level of latent variables as shown in Fig. 1. Each of those latent variables defines a facet of clustering. The proposed method automatically selects subsets of latent features for each facet, and learns the dependency structure among different facets. This is achieved through systematic structure learning. Consequently, LTVAE is able to discover complex structures of data rather than one partition. We also propose efficient learning algorithms for LTVAE with gradient descent and Stepwise EM through message passing. ",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 257
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "The rest of the paper is organized as follows. The related works are reviewed in Section 2. We introduce the proposed method and learning algorithms in Section 3. In Section 4, we present the empirical results. The conclusion is given in Section 5. ",
107
+ "bbox": [
108
+ 176,
109
+ 263,
110
+ 825,
111
+ 305
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORKS ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 325,
122
+ 352,
123
+ 342
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Clustering has been extensively studied in the literature in many aspects (Aggarwal & Reddy, 2013). More complex clustering methods related to structure learning using Bayesian nonparametrics have been proposed, like Dirichlet Process (Blei et al., 2006), Hierarchical Dirichlet Process (HDP) (Teh et al., 2006). However, those are with conventional clustering methods that apply on raw data. Recently, deep learning based clustering methods have drawn more and more attention. A simple two-stage approach is to first learn low-dimensional embeddings using unsupervised feature learning methods, and then perform cluster analysis on the embeddings. However, without any supervision, the representation learning do not necessarily reveal the true cluster structure of the data. DEC (Xie et al., 2016) is a method that simultaneously learns feature representations and cluster assignments through deep autoencoders. It gradually improves the clustering by driving the deep network to learn a better mapping. Improved Deep Embedded Clustering (Guo et al., 2017) improves DEC by keeping the decoder network and adding reconstruction loss to the original clustering loss in DEC. Variational deep embedding (Jiang et al., 2017) is a generative method that models the data generative process using a Gaussian mixture model combined with a VAE, and also performs joint learning of representations and clustering. Similarly, GMVAE (Dilokthanakul et al., 2016) performs joint learning of a GMM and a VAE, but instead generates the mixture components through neural networks. Deep clustering network (DCN) (Yang et al., 2017) is another one that jointly learns an autoencoder and performs k-means clustering. These joint learning methods consistently achieve better clustering results than conventional ones. The method proposed in (Yang et al., 2016) uses convolutional neural networks and jointly learns the representations and clustering in a recurrent framework. All these methods assume flat partitions over the data, and do not attempt the structure learning issue. An exception is hierarchical nonparametric variational autoencoders proposed in (Goyal et al., 2017). It uses nCRP as the prior for VAE to allow infinitely deep and branching tree hierarchy structure and focuses on learning hierarchy of concepts. However, it is still one partition over the data, only that the partitions in upper levels are more general partitions, while those in lower levels more fine-grained. Different from it, our work focuses on multifacets of clustering, for example, the model could make one partition based on identity of subjects, while another partition based on pose. ",
130
+ "bbox": [
131
+ 174,
132
+ 358,
133
+ 825,
134
+ 743
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "3 THE PROPOSED METHOD ",
141
+ "text_level": 1,
142
+ "bbox": [
143
+ 176,
144
+ 765,
145
+ 416,
146
+ 781
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "In this section, we present the proposed latent tree variational autoencoder and the learning algorithms for joint representation learning and structure learning for multidimensional clustering. ",
153
+ "bbox": [
154
+ 174,
155
+ 796,
156
+ 823,
157
+ 825
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "3.1 LATENT TREE VARIATIONAL AUTOENCODER ",
164
+ "text_level": 1,
165
+ "bbox": [
166
+ 178,
167
+ 842,
168
+ 524,
169
+ 856
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "Deep generative models assume that data $\\mathbf { x }$ is generated from latent continuous variable $\\mathbf { z }$ through some random process. The process consists of two steps: (1) a value $\\mathbf { z }$ is generated from some prior distribution $p ( \\mathbf { z } )$ ; (2) the observation $x$ is generated from the conditional distribution $p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } | \\mathbf { z } )$ , which is parameterized through deep neural networks. Thus, it defines the joint distribution between ",
176
+ "bbox": [
177
+ 174,
178
+ 867,
179
+ 823,
180
+ 924
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "image",
186
+ "img_path": "images/6d0b434d991986a57615a54ec0bccda8c41c57d94632b929e8edcdd1f2ac02cb.jpg",
187
+ "image_caption": [
188
+ "Figure 1: Latent Tree Variational Autoencoder "
189
+ ],
190
+ "image_footnote": [],
191
+ "bbox": [
192
+ 184,
193
+ 99,
194
+ 485,
195
+ 286
196
+ ],
197
+ "page_idx": 2
198
+ },
199
+ {
200
+ "type": "image",
201
+ "img_path": "images/5fda2f4f43615c251abdb445adf97d9754edcb8a075cd2d69b2172bb8bcf51f5.jpg",
202
+ "image_caption": [
203
+ "Figure 2: Inference and gradient through message passing. Solid-arrows denote collecting message, and dashed-arrows denote distributing message. "
204
+ ],
205
+ "image_footnote": [],
206
+ "bbox": [
207
+ 504,
208
+ 102,
209
+ 816,
210
+ 203
211
+ ],
212
+ "page_idx": 2
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "observation $\\mathbf { x }$ and latent variable $\\mathbf { z }$ : ",
217
+ "bbox": [
218
+ 176,
219
+ 335,
220
+ 406,
221
+ 349
222
+ ],
223
+ "page_idx": 2
224
+ },
225
+ {
226
+ "type": "equation",
227
+ "img_path": "images/79238a8750b5905a98024572d77ef0750990387fda9e763cad0df548d5391e21.jpg",
228
+ "text": "$$\np ( \\mathbf { x } , \\mathbf { z } ) = p ( \\mathbf { z } ) p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } )\n$$",
229
+ "text_format": "latex",
230
+ "bbox": [
231
+ 421,
232
+ 353,
233
+ 575,
234
+ 371
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "This process is hidden from our view, and we learn this process by maximizing the marginal loglikelihood $p ( \\mathbf { x } )$ over the parameters $\\theta$ and latent variable $\\mathbf { z }$ from data. After the learning, the latent variable $\\mathbf { z }$ can be regarded as the deep representations of $\\mathbf { x }$ since it captures the most relevant information of $\\mathbf { x }$ . Thus, the learning process is also called representation learning. ",
241
+ "bbox": [
242
+ 174,
243
+ 373,
244
+ 825,
245
+ 430
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "In order to learn the latent structure of $\\mathbf { z }$ , for example multidimensional cluster structure, we introduce a set of latent variables $Y _ { 1 } , . . . , Y _ { l }$ on top of $\\mathbf { z }$ . A single $z$ or multiple $z$ ’s form a node $\\mathbf { z } _ { b }$ . Suppose variables in $\\mathbf { z }$ form $B$ nodes of ${ \\bf z } _ { 1 } , \\cdots , { \\bf z } _ { B }$ . Each latent variable $Y$ may be only connected to a subset of nodes, and the dependency of each $\\mathbf { z } _ { b }$ and its parent $Y$ is characterized by a conditional Gaussian distribution. Furthermore, the latent variables $Y _ { 1 } , . . . , Y _ { l }$ are connected to each other, and the dependency of a latent variable $Y$ on its parent $Y ^ { \\prime }$ is characterized by a conditional distribution $P ( Y | Y ^ { \\prime } )$ . This essentially forms a Bayesian network. And if we restrict the network to be treestructured, the $\\mathbf { z }$ and $\\mathbf { Y }$ together form a latent tree model (Zhang, 2004; Poon et al., 2010; 2013; Mourad et al., 2013; Pearl, 2014; Zhang & Poon, 2017) with $\\mathbf { z }$ being the observed variables and $\\mathbf { Y }$ being the latent variables. For multidimensional clustering, each latent variable $Y$ is taken to be a discrete variable, where each discrete state $y$ of $Y$ defines a cluster. Each latent variable $Y$ thus defines a facet partition over the data based on subset of attributes and multiple $Y$ ’s define multiple facets. Given a value $y$ of $Y$ , $\\mathbf { z } _ { b }$ follows a conditional Gaussian distribution $\\dot { P } ( \\mathbf { z } _ { b } | y ) = \\mathcal { N } ( \\mu _ { y } , \\bar { \\Sigma } _ { y } )$ with mean vector $\\mu _ { y }$ and covariance matrix $\\Sigma _ { y }$ . Thus, each $\\mathbf { z } _ { b }$ and its parent constitute a Gaussian mixture model (GMM). Suppose the parent of a node is denoted as $\\pi ( \\cdot )$ , the maginal distribution of $\\mathbf { z }$ is defined as follows ",
252
+ "bbox": [
253
+ 173,
254
+ 436,
255
+ 825,
256
+ 659
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "equation",
262
+ "img_path": "images/3e1e56600080c12aa23c9f4da015186cb847d72633edb8fefa189a8c1f60b53f.jpg",
263
+ "text": "$$\np ( \\mathbf { z } ) = \\sum _ { \\mathbf { Y } } \\prod _ { j = 1 } ^ { l } p ( y _ { j } | \\pi ( Y _ { j } ) ) \\prod _ { b = 1 } ^ { B } \\mathcal { N } ( \\mathbf { z } _ { b } | \\mu _ { \\pi ( \\mathbf { z } _ { b } ) } , \\boldsymbol { \\Sigma } _ { \\pi ( \\mathbf { z } _ { b } ) } ) ,\n$$",
264
+ "text_format": "latex",
265
+ "bbox": [
266
+ 312,
267
+ 660,
268
+ 669,
269
+ 704
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "which sums over all possible combinations of $\\mathbf { Y }$ states. As a matter of fact, a GMM is a Gaussian LTM that has only one latent variable connecting to all observed variables. ",
276
+ "bbox": [
277
+ 174,
278
+ 708,
279
+ 821,
280
+ 736
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Let the latent structure of $\\mathbf { Y }$ be $s$ , defining the number of latent variables in $\\mathbf { Y }$ , the number of discrete states in each variable $Y$ and the connectivity structure among all variables in $\\mathbf { z }$ and $\\mathbf { Y }$ . And let the parameters for all conditional probabilities in the latent structure be $\\Theta$ . Both the latent structure $s$ and the latent parameters $\\Theta$ are unknown. We aim to jointly learn data representations and the latent structure. The proposed LTVAE model is shown in Fig. 1. The latent structure $s$ are automatically learned from data and will be discussed in a later section. ",
287
+ "bbox": [
288
+ 173,
289
+ 742,
290
+ 825,
291
+ 827
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Due to the existence of the generation network, the inference of the model is intratable. Instead, we do amortized variational inference for the latent variable $\\mathbf { z }$ by introducing an inference network (Kingma & Welling, 2014) and define an approximate posterior $q _ { \\phi } ( { \\bf z } | { \\bf x } )$ . The evidence lower bound (ELBO) $\\mathcal { L } _ { \\mathrm { E L B O } }$ of the marginal loglikelihood of the data given $( \\cal S , \\Theta )$ is: ",
298
+ "bbox": [
299
+ 174,
300
+ 833,
301
+ 825,
302
+ 890
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "equation",
308
+ "img_path": "images/91c832c545217fcd8ea91d5014cf26600b68dd6c7ffa4db38f60b2d1a5663f40.jpg",
309
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { E L B O } } ( \\mathbf { x } ) = \\mathbb { E } _ { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) } [ \\log p _ { \\theta } ( \\mathbf { x } | \\mathbf { z } ) ] + \\mathbb { E } _ { q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) } [ \\log \\sum _ { \\mathbf { y } } p _ { S } ( \\mathbf { z } , \\mathbf { y } ; \\Theta ) ] + \\mathbb { H } [ q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) ] ,\n$$",
310
+ "text_format": "latex",
311
+ "bbox": [
312
+ 223,
313
+ 893,
314
+ 758,
315
+ 928
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "where $\\begin{array} { r } { \\log \\sum _ { \\mathbf { y } } p _ { S } ( \\mathbf { z } , \\mathbf { y } ; \\Theta ) } \\end{array}$ is the marginal loglikelihood of the latent variable $\\mathbf { z }$ under the latent tree model, and $\\mathbb { H } [ \\cdot ]$ is the entropy. The conditional generative distribution $p _ { \\boldsymbol { \\theta } } ( \\mathbf { x } | \\mathbf { z } )$ could be a Gaussian distribution if the input data is real-valued, or a Bernoulli distribution if binary, parameterized by the generation network. Using Monte Carlo sampling, the ELBO can be asymptotically estimated by ",
322
+ "bbox": [
323
+ 174,
324
+ 102,
325
+ 825,
326
+ 162
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "equation",
332
+ "img_path": "images/d05dd748160336069c8c57451e94ab4cf45caf43599216f0ab4509d06f232873.jpg",
333
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { E L B O } } ( \\mathbf { x } ) \\simeq \\frac { 1 } { M } \\sum _ { i = 1 } ^ { M } \\log p _ { \\boldsymbol \\theta } ( \\mathbf { x } | \\mathbf { z } ^ { ( i ) } ) + \\log \\sum _ { \\mathbf { y } } p _ { \\mathcal { S } } ( \\mathbf { z } ^ { ( i ) } , \\mathbf { y } ; \\boldsymbol \\Theta ) + \\mathbb { H } [ q _ { \\boldsymbol \\phi } ( \\mathbf { z } | \\mathbf { x } ) ] ,\n$$",
334
+ "text_format": "latex",
335
+ "bbox": [
336
+ 248,
337
+ 167,
338
+ 733,
339
+ 212
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "where $\\mathbf { z } ^ { ( i ) } \\sim q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } )$ . The term $\\mathbb { H } [ q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } ) ]$ can be computed analytically if we choose the form of $q _ { \\phi } ( { \\bf z } | { \\bf x } )$ to be a Gaussian distribution $\\begin{array} { r } { \\mathcal { N } ( { \\bf z } ; \\mu _ { { \\bf x } } , \\sigma _ { { \\bf x } } ) \\colon \\mathbb { H } [ q _ { \\phi } ( { \\bf z } | { \\bf x } ) ] = \\frac { J } { 2 } \\log ( 2 \\pi ) + \\frac { 1 } { 2 } \\sum _ { j = 1 } ^ { J } ( 1 + \\log \\sigma _ { j } ^ { 2 } ) . } \\end{array}$ , where $J$ is the dimensionality of $\\mathbf { z }$ . ",
346
+ "bbox": [
347
+ 173,
348
+ 219,
349
+ 826,
350
+ 267
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "Furthermore, the marginal loglikelihood $\\begin{array} { r } { \\log \\sum _ { \\mathbf { y } } p _ { \\mathcal { S } } ( \\mathbf { z } ^ { ( i ) } , \\mathbf { y } ; \\Theta ) } \\end{array}$ can be computed efficiently through message passing. Message passing is an efficient algorithm for inference in Bayesian networks (Koller & Friedman, 2009; Poon et al., 2013). In message passing, we first build a clique tree using the factors in the defined probability density. Because of the tree structure, each $\\mathbf { z } _ { b }$ along with its parent form a clique with the potential $\\psi ( \\mathbf { z } _ { b } , y )$ being the corresponding conditional distribution. This is illustrated in Fig. 2. With the sampled $\\mathbf { z } ^ { ( i ) }$ , we can compute the message $\\psi ^ { \\prime } ( y )$ by absorbing the evidence from $\\mathbf { z }$ . During collecting message phase, the message $\\psi ^ { \\prime } ( y )$ are sent towards the pivot. After receiving all messages, the pivot distributes back messages towards all $\\mathbf { z }$ . Both the posterior of $\\mathbf { Y }$ and the marginal loglikelihood of $\\mathbf { z } ^ { ( i ) }$ thus can be computed in the final normalization step. ",
357
+ "bbox": [
358
+ 173,
359
+ 273,
360
+ 825,
361
+ 405
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "3.2 PARAMETER LEARNING THROUGH GRADIENT DESCENT AND STEPWISE EM WITH MESSAGE PASSING ",
368
+ "bbox": [
369
+ 176,
370
+ 421,
371
+ 785,
372
+ 449
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "In this section, we propose efficient learning algorithms for LTVAE through gradient descent and stepwise EM with message passing. ",
379
+ "bbox": [
380
+ 174,
381
+ 460,
382
+ 823,
383
+ 491
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "Given the latent tree model $( \\cal S , \\Theta )$ , the parameters of neural networks can be efficiently optimized through stochastic gradient descent (SGD). However, in order to learn the model, it is important to efficiently compute the gradient of the marginal loglikelihood $\\log p _ { S } ( \\mathbf { z } ; \\Theta )$ from the latent tree model, the third term in Eq. 4. Here, we propose an efficient method to compute gradient through message passing. Let $\\mathbf { z } _ { b }$ be the variables that we want to compute gradient with respect to, and let $Y _ { b }$ be the parent node. The marginal loglikelihood of full $\\mathbf { z }$ can be written as ",
390
+ "bbox": [
391
+ 173,
392
+ 496,
393
+ 825,
394
+ 580
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "equation",
400
+ "img_path": "images/560bc0437868a4db77160ccf6fc1c25a8f2524617ead9402d709558fcd259688.jpg",
401
+ "text": "$$\n\\log p _ { \\mathcal { S } } ( \\mathbf { z } ; \\Theta ) = \\log [ \\sum _ { y _ { b } } \\mathcal { N } ( \\mathbf { z } _ { b } | \\mu _ { y _ { b } } , \\boldsymbol { \\Sigma } _ { y _ { b } } ) f ( y _ { b } ) ] ,\n$$",
402
+ "text_format": "latex",
403
+ "bbox": [
404
+ 336,
405
+ 585,
406
+ 647,
407
+ 621
408
+ ],
409
+ "page_idx": 3
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "where $f ( y _ { b } )$ is the collection of all the rest of the terms not containing $\\mathbf { z } _ { b }$ . The gradient $\\mathbf { g } _ { \\mathbf { z } _ { b } }$ of the marginal loglikelihood $\\log p s ( \\mathbf { z } ; \\Theta )$ w.r.t $\\mathbf { z } _ { b }$ thus can be computed as ",
414
+ "bbox": [
415
+ 174,
416
+ 626,
417
+ 825,
418
+ 655
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "equation",
424
+ "img_path": "images/6a9b51f53f467438a11f5d758c2131ec62cce654d438933acef7eab403e30615.jpg",
425
+ "text": "$$\n\\mathbf { g } _ { \\mathbf { z } _ { b } } = \\frac { 1 } { p _ { S } ( \\mathbf { z } ; \\boldsymbol { \\Theta } ) } \\frac { \\partial \\sum _ { y _ { b } } f ( y _ { b } ) \\mathcal { N } ( \\mathbf { z } _ { b } | \\mu _ { y _ { b } } , \\boldsymbol { \\Sigma } _ { y _ { b } } ) } { \\partial \\mathbf { z } _ { b } } = \\sum _ { y _ { b } } p ( y _ { b } | \\mathbf { z } ) \\frac { \\partial \\log [ f ( y _ { b } ) \\mathcal { N } ( \\mathbf { z } _ { b } | \\mu _ { y _ { b } } , \\boldsymbol { \\Sigma } _ { y _ { b } } ) ] } { \\partial \\mathbf { z } _ { b } }\n$$",
426
+ "text_format": "latex",
427
+ "bbox": [
428
+ 197,
429
+ 660,
430
+ 782,
431
+ 739
432
+ ],
433
+ "page_idx": 3
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "where $p ( \\boldsymbol { y } _ { b } | \\mathbf { z } )$ is the posterior probability of $y _ { b }$ and can be computed efficiently with message passing as described in the previous section. The detailed derivation is in Appendix E. Since $\\mathbf { z } = [ \\bar { \\mathbf { z } _ { 1 } } , \\bar { \\mathbf { . . . , z } _ { B } } ]$ , we have ",
438
+ "bbox": [
439
+ 174,
440
+ 744,
441
+ 825,
442
+ 784
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "equation",
448
+ "img_path": "images/b443f47d72f2c0f9c2ce31495e8dd99d66c94543c48aaae40fa55eb8d7394f47.jpg",
449
+ "text": "$$\n\\frac { \\partial \\log p ( \\mathbf { z } ) } { \\partial \\mathbf { z } } = \\left[ \\frac { \\partial \\log p ( \\mathbf { z } ) } { \\partial \\mathbf { z } _ { 1 } } , . . . , \\frac { \\partial \\log p ( \\mathbf { z } ) } { \\partial \\mathbf { z } _ { B } } \\right] = \\left[ \\mathbf { g } _ { \\mathbf { z } _ { 1 } } , . . . , \\mathbf { g } _ { \\mathbf { z } _ { B } } \\right] .\n$$",
450
+ "text_format": "latex",
451
+ "bbox": [
452
+ 294,
453
+ 781,
454
+ 689,
455
+ 815
456
+ ],
457
+ "page_idx": 3
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "With the efficient computation of the third term in Eq. 4 and its gradient w.r.t $\\mathbf { z }$ through message passing, the parameters of inference network and generation network can be efficiently optimized through SGD. ",
462
+ "bbox": [
463
+ 174,
464
+ 818,
465
+ 825,
466
+ 859
467
+ ],
468
+ "page_idx": 3
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "In order to jointly learn the parameters of the latent tree $\\Theta$ , we propose Stepwise EM algorithm based on mini-batch of data. Specifically, we maximize the third term in Eq. 4, i.e. the marginal loglikelihood of $\\mathbf { z }$ under the latent tree. In the Stepwise E-step, we compute the distributions $\\bar { P ( } y , y ^ { \\prime } | \\mathbf { z } , \\theta ^ { ( t - 1 ) } )$ and $P ( y | \\mathbf { z } , \\theta ^ { ( t - 1 ) } )$ for each latent node $Y$ and its parent $Y ^ { \\prime }$ . In the Stepwise ",
473
+ "bbox": [
474
+ 174,
475
+ 866,
476
+ 825,
477
+ 924
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "image",
483
+ "img_path": "images/5242bd844d379aeb381ed06e3d72093a6b1e707f80ef08bb209cd29202145d77.jpg",
484
+ "image_caption": [
485
+ "Figure 3: Structure search operators. The digits above the nodes denote the number of discrete states. Node deletion, state deletion and unpouching are the inverse of node insertion, state insertion and pouching, respectively. "
486
+ ],
487
+ "image_footnote": [],
488
+ "bbox": [
489
+ 302,
490
+ 102,
491
+ 696,
492
+ 227
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "M-step, we estimate the new parameter $\\theta ^ { ( t ) }$ . Let $\\mathbf { s } ( \\mathbf { z } , \\mathbf { y } )$ be a vector the sufficient statistics for a single data case. Let $\\bar { \\mathbf { s } } = \\mathbb { E } _ { p s ( \\mathbf { y } | \\mathbf { z } ; \\boldsymbol { \\Theta } ) } [ \\mathbf { s } ( \\mathbf { z } , \\mathbf { y } ) ]$ be the expected sufficient statistics for the data case, where the expectation is w.r.t the posterior distribution of $\\mathbf { y }$ with current parameter. And let $\\begin{array} { r } { \\boldsymbol { \\mu } = \\sum _ { i = 1 } ^ { N } \\bar { \\mathbf { s } } _ { i } } \\end{array}$ be the sum of the expected sufficient statistics. The update of the parameter $\\Theta$ is performed as follows: ",
499
+ "bbox": [
500
+ 173,
501
+ 309,
502
+ 825,
503
+ 382
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "equation",
509
+ "img_path": "images/532ba1e29945e96b04077b7285c613d009d4d528af9494d9a1672235e7a18ea7.jpg",
510
+ "text": "$$\n\\begin{array} { r l } & { ~ \\bar { \\mathbf { s } } _ { i } ^ { t } = \\mathbb { E } _ { p s ( \\mathbf { y } _ { i } \\mid \\mathbf { z } _ { i } ; \\boldsymbol { \\Theta } ^ { t } ) } [ \\mathbf { s } ( \\mathbf { z } _ { i } , \\mathbf { y } _ { i } ) ] } \\\\ & { ~ \\mu ^ { t + 1 } = \\mu ^ { t } + \\eta ( \\bar { \\mathbf { s } } _ { i } ^ { t } - \\mu ^ { t } ) } \\\\ & { \\boldsymbol { \\Theta } ^ { t + 1 } = \\underset { \\boldsymbol { \\Theta } } { \\arg \\operatorname* { m a x } } l ( \\mu ^ { t + 1 } , \\boldsymbol { \\Theta } ) , } \\end{array}\n$$",
511
+ "text_format": "latex",
512
+ "bbox": [
513
+ 395,
514
+ 380,
515
+ 606,
516
+ 449
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "where $\\eta$ is the learning rate and $l$ is the complete data loglikelihood. Each iteration of update of LTVAE thus is composed of one iteration of gradient descent update for the neural network parameters and one iteration of Stepwise EM update for the latent tree model parameters with a mini-batch of data. ",
523
+ "bbox": [
524
+ 174,
525
+ 452,
526
+ 825,
527
+ 507
528
+ ],
529
+ "page_idx": 4
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "3.3 STRUCTURE LEARNING ",
534
+ "text_level": 1,
535
+ "bbox": [
536
+ 176,
537
+ 525,
538
+ 379,
539
+ 540
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "For the latent structure $s$ , there are four aspects need to determine: the number of latent variables, the cardinalities of latent variables, the connectivities among variables. We aim at finding the model $m ^ { * }$ that maximizes the BIC score (Schwarz et al., 1978; Koller & Friedman, 2009): ",
546
+ "bbox": [
547
+ 173,
548
+ 551,
549
+ 825,
550
+ 594
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "equation",
556
+ "img_path": "images/427917c00f310a6f861b77742ee1558c3ff55a864347a2ef4efb2bf4dd7e4348.jpg",
557
+ "text": "$$\nB I C ( m | \\mathcal { D } ) = \\log P ( \\mathcal { D } | m , \\theta ^ { * } ) - \\frac { d ( m ) } { 2 } \\log N ,\n$$",
558
+ "text_format": "latex",
559
+ "bbox": [
560
+ 341,
561
+ 601,
562
+ 653,
563
+ 631
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "where $\\theta ^ { * }$ is the MLE of the parameters and $d ( m )$ is the number of independent parameters. The first term is known as the likelihood term. It favors models that fit data well. The second term is known as the penalty term. It discourages complex models. Hence, the BIC score provides a tradeoff between model fit and model complexity. To this end, we perform systematic searching to find a structure with a high BIC score. We use the hill-climing algorithm to search for $m ^ { * }$ as in (Poon et al., 2010; 2013), and define 7 search operators: node introduction (NI) and node deletion (ND) to introduce new latent nodes and delete existing nodes, state introduction (SI) and state deletion (SD) to add a new state and delete a state for existing nodes, node relocation (NR) to change links of existing nodes, pouching (PO) and unpouching (UP) operators to combine nodes into a single node and separate variables from a node.. The structure search operators are shown in Fig. 3. Each operator produces a set of candidates from existing structure, and the best candidate is picked if it improves the previous one. To reduce the number of possible search candidates, we first perform SI, NI and PO to expand the structure and pick the best model. Then we perform NR to adjust the best model. Finally, we perform UP, ND and SD to simplify the current best structure and pick the best one. Acceleration techniques (Poon et al., 2013) are adopted that make the algorithm efficient enough. The structure learning is performed iteratively together with the parameter learning of neural networks. ",
570
+ "bbox": [
571
+ 173,
572
+ 637,
573
+ 825,
574
+ 875
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "The overall learning algorithm is illustrated in Algorithm 1. Starting from a pretrained model, we iteratively improve the structure and parameters of latent tree model while learning the representations of data through neural network in a greedy manner. Using current structure $S ^ { t }$ as the initial structure, ",
581
+ "bbox": [
582
+ 174,
583
+ 881,
584
+ 823,
585
+ 924
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Algorithm 1 Learning Latent Tree Variational Autoencoder ",
592
+ "text_level": 1,
593
+ "bbox": [
594
+ 173,
595
+ 103,
596
+ 566,
597
+ 118
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "table",
603
+ "img_path": "images/e9220a7dd4cbf749f234f8e825918e2c806f9bcf0272637b1ef67ab2775bd9e2.jpg",
604
+ "table_caption": [],
605
+ "table_footnote": [],
606
+ "table_body": "<table><tr><td>Input:data D,z dim,neural networks,E 0,,S°,Θ° ← pretrain(D) repeat fore=1toEdo</td></tr><tr><td>for each minibatchX in D do Compute q(z|μx,Ox)</td></tr><tr><td>Sample z(i) ~q(z|μx,x) Compute log ps(z; ) and 0log ps(z) from Eq.5 and 7 dz</td></tr><tr><td>Compute ELBO from Eq. 4 0,Φ ← Back-propagation and SGD step</td></tr><tr><td>← StepwiseEM(z()) end for</td></tr><tr><td>end for Dz↑μD</td></tr><tr><td></td></tr><tr><td></td></tr><tr><td>repeat</td></tr><tr><td>S*,Θ* ← SearchWith(St-1,Θt-1,{SI,NI,PO})</td></tr><tr><td>S*,Θ* ← SearchWith(S*,Θ* {NR}) St,Θt ← SearchWith(S*,Θ*,{UP,ND,SD}) until BIC(St,0t|Dz)≤BIC(St-1,0t-1|Dz)</td></tr></table>",
607
+ "bbox": [
608
+ 179,
609
+ 122,
610
+ 568,
611
+ 397
612
+ ],
613
+ "page_idx": 5
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "we search for a better model. With new latent tree model, we optimize for a better representation until convergence. ",
618
+ "bbox": [
619
+ 176,
620
+ 424,
621
+ 823,
622
+ 453
623
+ ],
624
+ "page_idx": 5
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "4 EXPERIMENTS ",
629
+ "text_level": 1,
630
+ "bbox": [
631
+ 176,
632
+ 473,
633
+ 326,
634
+ 488
635
+ ],
636
+ "page_idx": 5
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "4.1 SYNTHETIC-DATA DEMONSTRATION ",
641
+ "text_level": 1,
642
+ "bbox": [
643
+ 176,
644
+ 503,
645
+ 467,
646
+ 518
647
+ ],
648
+ "page_idx": 5
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "We first demonstrate the effectiveness of the proposed method through synthetic data. Assume that the data points have two facets $Y _ { 1 }$ and $Y _ { 2 }$ , where each facet controlls a subset of attributes (e.g. two-dimensional domain) and defines one partition over the data. This four-dimensional domain $\\mathbf { z } = \\{ z _ { 1 } , z _ { 2 } , z _ { 3 } , z _ { 4 } \\}$ is a latent representation which we do not observe. What we observe is $\\mathbf { x } \\in \\mathbb { R } ^ { 1 0 0 }$ that is obtained via the following non-linear transformation: ",
653
+ "bbox": [
654
+ 173,
655
+ 530,
656
+ 825,
657
+ 599
658
+ ],
659
+ "page_idx": 5
660
+ },
661
+ {
662
+ "type": "equation",
663
+ "img_path": "images/55cabb713797d6a5aa299c05109bc80c64656e1ac007094be6ea43c60aaebc9b.jpg",
664
+ "text": "$$\n\\mathbf { x } = \\sigma ( U \\sigma ( W \\mathbf { z } ) ) ,\n$$",
665
+ "text_format": "latex",
666
+ "bbox": [
667
+ 436,
668
+ 607,
669
+ 560,
670
+ 625
671
+ ],
672
+ "page_idx": 5
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "where $W \\in \\mathbb { R } ^ { 1 0 \\times 4 }$ and $U \\in \\mathbb { R } ^ { 1 0 0 \\times 1 0 }$ are matrices whose entries follow the zero-mean unit-variance i.i.d. Gaussian distribution, $\\sigma ( \\cdot )$ is a sigmoid function to introduce nonlinearity. The generative model is shown in Fig. 4 (a). We define two clusters in facet $Y _ { 1 }$ and two clusters in facet $Y _ { 2 }$ , and generate 5,000 samples of $\\mathbf { x }$ . Under the above generative model, recovering the two facets $Y _ { 1 }$ and $Y _ { 2 }$ structure and the latent $z$ domain from the observation of $\\mathbf { x }$ seems very challenging. All previous DNN-based methods $\\mathbf { \\Gamma } ( \\mathbf { A E + G M M }$ , DEC, DCN, etc.) are only able to discover one-facet of clustering (i.e. one partition over the data), and none of these is applicable to solve such a multidimensional clustering problem. Fig. 4 (b) shows the results of the proposed method. As one can see, the LTVAE successfully discovers the true superstructure of $Y _ { 1 }$ and $Y _ { 2 }$ . The 2-d plot of $z _ { 1 }$ and $z _ { 2 }$ shows the separable latent space clusters under facet $Y _ { 1 }$ , and it matches the ground-truth cluster assignments. Additionally, the 2-d plot of $z _ { 3 }$ and $z _ { 4 }$ shows another separable clusters under facet $Y _ { 2 }$ , and it also matches the ground-truth cluster assignments well in the other facet. ",
677
+ "bbox": [
678
+ 173,
679
+ 628,
680
+ 825,
681
+ 797
682
+ ],
683
+ "page_idx": 5
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "4.2 REAL-DATA EXPERIMENT SETUP ",
688
+ "text_level": 1,
689
+ "bbox": [
690
+ 176,
691
+ 814,
692
+ 446,
693
+ 829
694
+ ],
695
+ "page_idx": 5
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "We evaluate the proposed LTVAE model on two image datasets and two other datasets, and compare it against other deep learning based clustering algorithms, including two-stage methods, $\\mathbf { A E { + } G M M }$ and $\\mathbf { V A E + G M M }$ , which first learn AE/VAE (Kingma & Welling, 2014) models then construct a GMM on top of them, and joint learning methods, DEC (Xie et al., 2016) and DCN (Yang et al., 2017). The datasets include MNIST, STL-10, Reuters (Xie et al., 2016; Jiang et al., 2017) and the Heterogeneity Human Activity Recognition (HHAR) dataset. When evaluating the clustering performance, for fair of comparison, we follow previous works (Xie et al., 2016; Yang et al., 2017) and use the network structures of $d - 5 0 0 - 5 0 0 - 2 0 0 0 - 1 0$ for the encoder network and $1 0 - 2 0 0 0 -$ $5 0 0 - 5 0 0 - d$ for the decoder network for all datasets, where $d$ is the data-space dimension, which varies among datasets. All layers are fully-connected. We follow the pretraining procedure as in (Xie et al., 2016). We first perform greedy layer-wise pretraining in denoising autoencoder manner, then stack all layers to form deep autoencoder. The deep autoencoder is further finetuned to minimize the reconstruction loss. The weights of the deep autoencoder are used to intialize the weights of encoder and decoder networks of above methods. After the pretraining, we optimze the objectives of those methods. For DEC and DCN, we use the same hyperparameter settings as the original papers. When initializing the cluster centroids for DEC and DCN, we perform 10 random restarts and pick the results with the best objective value for $k$ -means/GMM. For the proposed LTVAE, we use Adam optimzer (Kingma & Ba, 2015) with initial learning rate of 0.001 and mini-batch size of 128. For Stepwise EM, we set the learning rate to be 0.01. As in Algorithm 1, we set $E = 5$ , i.e. we update the latent tree model every 5 epochs. When optimizing the candidate models during structure search, we perform 10 random restarts and train with EM for 200 iterations. ",
700
+ "bbox": [
701
+ 174,
702
+ 839,
703
+ 825,
704
+ 924
705
+ ],
706
+ "page_idx": 5
707
+ },
708
+ {
709
+ "type": "image",
710
+ "img_path": "images/e672589b914b2a28cffd51a0a4a0d6081efff6a689a04a75ded1c725ef434333.jpg",
711
+ "image_caption": [
712
+ "Figure 4: (a) The generative process of synthetic data; (b) The discovered multidimensional superstructure and the latent space (different colors denote different ground truth clusters in each facet.) "
713
+ ],
714
+ "image_footnote": [],
715
+ "bbox": [
716
+ 251,
717
+ 98,
718
+ 730,
719
+ 272
720
+ ],
721
+ "page_idx": 6
722
+ },
723
+ {
724
+ "type": "table",
725
+ "img_path": "images/9fb1e1761be0ae65e12c8c3315f85581ae9568436ec9e2ceaa8144bed0370645.jpg",
726
+ "table_caption": [
727
+ "Table 1: Test data loglikelihood for various datasets. "
728
+ ],
729
+ "table_footnote": [],
730
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>STL</td><td rowspan=1 colspan=1>Reuters</td><td rowspan=1 colspan=1>HHAR</td></tr><tr><td rowspan=1 colspan=1>VAE</td><td rowspan=1 colspan=1>-86.64±0.20</td><td rowspan=1 colspan=1>-743.72±0.51</td><td rowspan=1 colspan=1>-1312.40±1.24</td><td rowspan=1 colspan=1>-17.88±0.26</td></tr><tr><td rowspan=1 colspan=1>IWAE</td><td rowspan=1 colspan=1>-85.39±0.13</td><td rowspan=1 colspan=1>-742.43±1.10</td><td rowspan=1 colspan=1>-1254.29±6.95</td><td rowspan=1 colspan=1>-16.53±0.16</td></tr><tr><td rowspan=1 colspan=1>LTVAE</td><td rowspan=1 colspan=1>-84.75±0.14</td><td rowspan=1 colspan=1>-619.04±7.88</td><td rowspan=1 colspan=1>-1245.71±4.45</td><td rowspan=1 colspan=1>-13.65±0.53</td></tr></table>",
731
+ "bbox": [
732
+ 245,
733
+ 381,
734
+ 753,
735
+ 445
736
+ ],
737
+ "page_idx": 6
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "",
742
+ "bbox": [
743
+ 173,
744
+ 494,
745
+ 825,
746
+ 703
747
+ ],
748
+ "page_idx": 6
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "4.3 TEST LOGLIKELIHOOD ",
753
+ "text_level": 1,
754
+ "bbox": [
755
+ 176,
756
+ 742,
757
+ 374,
758
+ 756
759
+ ],
760
+ "page_idx": 6
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "We first show that, by using the marginal loglikelihood defined by the latent tree model as the prior, LTVAE better fits the data than conventional VAE and importance weighted autoencoders (IWAE) (Burda et al., 2016). While alternative quantitative criteria have been proposed (Bounliphone et al., 2016; Im et al., 2016; Salimans et al., 2016) for generative models, log-likelihood of held-out test data remains one of the most important measures of a generative model’s performance (Kingma & Welling, 2014; Burda et al., 2016; Wu et al., 2017; Goyal et al., 2017). For comparison, we approximate true loglikelihood $\\mathcal { L } _ { 5 0 0 0 }$ using importance sampling (Burda et al., 2016): ${ \\mathcal { L } } _ { k } ( \\mathbf { x } ) =$ $\\begin{array} { r } { \\log { \\frac { 1 } { k } } \\sum _ { i = 1 } ^ { k } \\frac { p _ { \\theta } ( \\mathbf { x } , \\mathbf { z } ^ { ( i ) } ) } { q _ { \\phi } ( \\mathbf { z } ^ { ( i ) } | \\mathbf { x } ) } } \\end{array}$ , where $\\mathbf { z } ^ { ( i ) } \\sim q _ { \\phi } ( \\mathbf { z } | \\mathbf { x } )$ . The results for all datasets are shown in Table 1. The proposed LTVAE obtains a higher test data loglikelihood and ELBO, implying that it can better model the underlying complex data distribution embedded in the image data. ",
765
+ "bbox": [
766
+ 173,
767
+ 775,
768
+ 825,
769
+ 924
770
+ ],
771
+ "page_idx": 6
772
+ },
773
+ {
774
+ "type": "image",
775
+ "img_path": "images/1d233589357b0631e59d50b485f75fabf632ff9d82873f460dacc04ee477949a.jpg",
776
+ "image_caption": [
777
+ "Figure 5: Two facet clustering results from LTVAE are in (a) digit identity and (b) shape and pose. Each row contains the top 10 scoring elements from one cluster. (c) shows the pose variations by fixing the digit cluster in facet 1 and changing the cluster in facet 2. It can be seen that up-right, left-tilted and right-tilted images of the same digits are clearly recognizable. "
778
+ ],
779
+ "image_footnote": [],
780
+ "bbox": [
781
+ 302,
782
+ 99,
783
+ 694,
784
+ 320
785
+ ],
786
+ "page_idx": 7
787
+ },
788
+ {
789
+ "type": "table",
790
+ "img_path": "images/b6bffcc3d812c3412c381f0d33db94c5e01521198bdcc9144183547ee482bc43.jpg",
791
+ "table_caption": [
792
+ "Table 2: Clustering Accuracy of clustering results. "
793
+ ],
794
+ "table_footnote": [],
795
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>STL-10</td><td rowspan=1 colspan=1>Reuters</td><td rowspan=1 colspan=1>HHAR</td></tr><tr><td rowspan=1 colspan=1>AE+GMM</td><td rowspan=1 colspan=1>82.18%</td><td rowspan=1 colspan=1>79.83%</td><td rowspan=1 colspan=1>68.68%</td><td rowspan=1 colspan=1>78.90%</td></tr><tr><td rowspan=1 colspan=1>VAE+GMM</td><td rowspan=1 colspan=1>76.87%</td><td rowspan=1 colspan=1>79.49%</td><td rowspan=1 colspan=1>65.85%</td><td rowspan=1 colspan=1>67.91%</td></tr><tr><td rowspan=1 colspan=1>DEC</td><td rowspan=1 colspan=1>84.30%</td><td rowspan=1 colspan=1>80.62%</td><td rowspan=1 colspan=1>74.32%</td><td rowspan=1 colspan=1>79.86%</td></tr><tr><td rowspan=1 colspan=1>DCN</td><td rowspan=1 colspan=1>83.32%</td><td rowspan=1 colspan=1>85.88%</td><td rowspan=1 colspan=1>75.05%</td><td rowspan=1 colspan=1>81.26%</td></tr><tr><td rowspan=1 colspan=1>LTVAE</td><td rowspan=1 colspan=1>86.32%</td><td rowspan=1 colspan=1>90.00%</td><td rowspan=1 colspan=1>80.96%</td><td rowspan=1 colspan=1>85.00%</td></tr></table>",
796
+ "bbox": [
797
+ 300,
798
+ 439,
799
+ 696,
800
+ 531
801
+ ],
802
+ "page_idx": 7
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "4.4 MULTIFACET CLUSTERING ",
807
+ "text_level": 1,
808
+ "bbox": [
809
+ 174,
810
+ 561,
811
+ 401,
812
+ 577
813
+ ],
814
+ "page_idx": 7
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "The most important features of the proposed model are that it can perform variable selection for model-based clustering, leading to multiple facets clustering. ",
819
+ "bbox": [
820
+ 173,
821
+ 588,
822
+ 823,
823
+ 617
824
+ ],
825
+ "page_idx": 7
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "We use the standard unsupervised evaluation metric and protocols for evaluations and comparisons to other algorithms (Yang et al., 2010). For baseline algorithms we set the number of clusters to the number of ground-truth categories. While for LTVAE, it automatically determines the number of facets and latent superstructure through structure learning. We evaluate performance with unsupervised clustering accuracy $( A C C )$ : ",
830
+ "bbox": [
831
+ 174,
832
+ 622,
833
+ 825,
834
+ 693
835
+ ],
836
+ "page_idx": 7
837
+ },
838
+ {
839
+ "type": "equation",
840
+ "img_path": "images/d30bbbb2230c205c6232f763d2eb26f2b822f7f84991d08f73243793394042b4.jpg",
841
+ "text": "$$\nA C C = \\operatorname* { m a x } _ { m } \\frac { \\sum _ { i = 1 } ^ { n } \\mathbf { 1 } \\left\\{ l _ { i } = m ( c _ { i } ) \\right\\} } { n } ,\n$$",
842
+ "text_format": "latex",
843
+ "bbox": [
844
+ 379,
845
+ 698,
846
+ 617,
847
+ 731
848
+ ],
849
+ "page_idx": 7
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "where $l _ { i }$ is the groundtruth label, $c _ { i }$ is the cluster assignment produced by the algorithm, and $m$ ranges over all possible mappings between clusters and labels. Table 2 show the quantitative clustering results compared with previous works. With $\\mathbf { z }$ dimension of small value like 10, LTVAE usually discovers only one facet. It can be seen the, for MNIST dataset LTVAE achieves clustering accuracy of $8 6 . 3 2 \\%$ , better than the results of other methods. This is also the case for STL-10, Reuters and HHAR. ",
854
+ "bbox": [
855
+ 174,
856
+ 734,
857
+ 825,
858
+ 819
859
+ ],
860
+ "page_idx": 7
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "More importantly, the proposed LTVAE does not just give one partition over the data. Instead, it explains the data in multi-faceted ways. Unlike previous clustering experiments, for this experiment, we choose the z dimension to be 20. Fig. 5 shows the two facet clustering results for MNIST. It can be seen that facet 1 gives quite clean clustering over the identity of the digits and the ten digits are well separated. On the other hand, facet 2 gives a more grand partition based on the shape and pose. Note how up-right $\" 4 > \"$ and “9” are similar, and how tilted “4”,“7” and “9” are similar. The facet meanings are more evident in Fig. 5 (c). Fig. 6 shows four facets discovered for the STL-10 dataset. Although it is hard to characterize precisely how the facets differ from each other, there are visible patterns. For example, the cats, monkeys and birds in facet 2 have clearly visible eyes, while this is not always true in facet 1. The deers in facet 2 are all showing their antlers/ears, while this is not true in facet 3. In facet 2 we see frontal views of cars, while in facets 1 and 3 we see side view of cars. In facet 1, each cluster consists of the same types of objects/animal. In facet 3/4, images in the same cluster do not necessarily show the same type of objects/animals. However, they have similar overall feel. ",
865
+ "bbox": [
866
+ 173,
867
+ 825,
868
+ 825,
869
+ 924
870
+ ],
871
+ "page_idx": 7
872
+ },
873
+ {
874
+ "type": "image",
875
+ "img_path": "images/ff99c4bc8ecd2f35cfc249876f70070a5f186e93efe69e4180f070a4bf2f59d6.jpg",
876
+ "image_caption": [
877
+ "Figure 6: Clustering results from LTVAE for STL-10 dataset. Each row contains the top 5 scoring elements from one cluster. "
878
+ ],
879
+ "image_footnote": [],
880
+ "bbox": [
881
+ 178,
882
+ 108,
883
+ 566,
884
+ 330
885
+ ],
886
+ "page_idx": 8
887
+ },
888
+ {
889
+ "type": "image",
890
+ "img_path": "images/c09285f05ed4a5f8198b024ddb48f70e4a9e48fdbbb909c8d2925f06a53057f9.jpg",
891
+ "image_caption": [
892
+ "Figure 7: The digits generated by the proposed model. Digits in the same row come from the same latent code of the latent tree. "
893
+ ],
894
+ "image_footnote": [],
895
+ "bbox": [
896
+ 591,
897
+ 102,
898
+ 820,
899
+ 330
900
+ ],
901
+ "page_idx": 8
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "",
906
+ "bbox": [
907
+ 174,
908
+ 425,
909
+ 825,
910
+ 522
911
+ ],
912
+ "page_idx": 8
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "4.5 IMAGE GENERATION ",
917
+ "text_level": 1,
918
+ "bbox": [
919
+ 176,
920
+ 542,
921
+ 357,
922
+ 556
923
+ ],
924
+ "page_idx": 8
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "Since the structure of the data in latent space is automatically learned through the latent tree, we can sample the data in a more structured way. One way is through ancestral sampling, where we first sample the root of the latent tree and then hierarchically sample the children variables to get $\\mathbf { z }$ , from which the images can be generated through generation network. The other way is to pick one component from the Gaussian mixture and sample $\\mathbf { z }$ from that component. This produces samples from a particular cluster. Fig. 7 shows the samples generated in this way. As it can be seen, digits sampled from each component has clear semantic meaning and belong to the same category. Whereas, the samples generated by VAE does not have such structure. Conditional image generation can also be performed to alter the attributes of the same digit as shown in Appendix B. ",
929
+ "bbox": [
930
+ 174,
931
+ 569,
932
+ 825,
933
+ 694
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "5 DISCUSSIONS ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 176,
943
+ 715,
944
+ 320,
945
+ 732
946
+ ],
947
+ "page_idx": 8
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "LTVAE learns the dependencies among latent variables $\\mathbf { Y }$ . In general, latent variables are often correlated. For example, the social skills and academic skills of a student are generally correlated. Therefore, its better to model this relationship to better fit the data. Experiments show that removing such dependencies in LTVAE models results in inferior data loglikelihood. ",
952
+ "bbox": [
953
+ 174,
954
+ 750,
955
+ 823,
956
+ 805
957
+ ],
958
+ "page_idx": 8
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "In this paper, for the inference network, we simply use mean-field inference network with same structure as the generative network (Kingma & Welling, 2014). However, the limited expressiveness of the mean-field inference network could restrict the learning in the generative network and the quality of the learned model (Webb et al., 2018; Rainforth et al., 2018; Cremer et al., 2018). Using a faithful inference network structure as in (Webb et al., 2018) to incorporate the dependencies among latent variables in the posterior, for example one parameterized with masked autoencoder distribution estimator (MADE) model (Germain et al., 2015), could have a significant improvement in learning. We leave it for future investigation. ",
963
+ "bbox": [
964
+ 174,
965
+ 813,
966
+ 823,
967
+ 924
968
+ ],
969
+ "page_idx": 8
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "6 CONCLUSIONS ",
974
+ "text_level": 1,
975
+ "bbox": [
976
+ 176,
977
+ 102,
978
+ 328,
979
+ 117
980
+ ],
981
+ "page_idx": 9
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "In this paper, we propose an unsupervised learning method, latent tree variational autoencoder (LTVAE), which simultaneously performs representation learning and multidimensional clustering. Different from previous deep learning based clustering methods, LTVAE learns latent embeddings from data and discovers multi-facet clustering structure based on subsets of latent features rather than one partition over data. Experiments show that the proposed method achieves state-of-the-art clustering performance and reals reasonable multifacet structures of the data. ",
986
+ "bbox": [
987
+ 174,
988
+ 133,
989
+ 825,
990
+ 217
991
+ ],
992
+ "page_idx": 9
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "ACKNOWLEDGMENTS ",
997
+ "text_level": 1,
998
+ "bbox": [
999
+ 176,
1000
+ 234,
1001
+ 326,
1002
+ 247
1003
+ ],
1004
+ "page_idx": 9
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Research on this article was supported by Hong Kong Research Grants Council under grants 16212516 and 16202118. ",
1009
+ "bbox": [
1010
+ 176,
1011
+ 258,
1012
+ 821,
1013
+ 286
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "REFERENCES ",
1020
+ "text_level": 1,
1021
+ "bbox": [
1022
+ 176,
1023
+ 309,
1024
+ 285,
1025
+ 324
1026
+ ],
1027
+ "page_idx": 9
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Charu C Aggarwal and Chandan K Reddy. Data clustering: algorithms and applications. CRC press, 2013. ",
1032
+ "bbox": [
1033
+ 173,
1034
+ 332,
1035
+ 823,
1036
+ 361
1037
+ ],
1038
+ "page_idx": 9
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "David M Blei, Michael I Jordan, et al. Variational inference for dirichlet process mixtures. Bayesian analysis, 1(1):121–144, 2006. ",
1043
+ "bbox": [
1044
+ 174,
1045
+ 371,
1046
+ 823,
1047
+ 400
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Wacha Bounliphone, Eugene Belilovsky, Matthew B Blaschko, Ioannis Antonoglou, and Arthur Gretton. A test of relative similarity for model selection in generative models. In Proceedings of the International Conference on Learning Representations, 2016. ",
1054
+ "bbox": [
1055
+ 176,
1056
+ 410,
1057
+ 823,
1058
+ 453
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Yuri Burda, Roger Grosse, and Ruslan Salakhutdinov. Importance weighted autoencoders. In Proceedings of the International Conference on Learning Representations, 2016. ",
1065
+ "bbox": [
1066
+ 174,
1067
+ 462,
1068
+ 821,
1069
+ 492
1070
+ ],
1071
+ "page_idx": 9
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Tao Chen, Nevin L Zhang, Tengfei Liu, Kin Man Poon, and Yi Wang. Model-based multidimensional clustering of categorical data. Artificial Intelligence, 176(1):2246–2269, 2012. ",
1076
+ "bbox": [
1077
+ 171,
1078
+ 501,
1079
+ 823,
1080
+ 531
1081
+ ],
1082
+ "page_idx": 9
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "M Bishop Christopher. Pattern Recognition and Machine Learning. Springer-Verlag New York, 2016. ",
1087
+ "bbox": [
1088
+ 169,
1089
+ 540,
1090
+ 823,
1091
+ 570
1092
+ ],
1093
+ "page_idx": 9
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Chris Cremer, Xuechen Li, and David Duvenaud. Inference suboptimality in variational autoencoders. In International Conference on Machine Learning, 2018. ",
1098
+ "bbox": [
1099
+ 171,
1100
+ 579,
1101
+ 823,
1102
+ 609
1103
+ ],
1104
+ "page_idx": 9
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Nat Dilokthanakul, Pedro AM Mediano, Marta Garnelo, Matthew CH Lee, Hugh Salimbeni, Kai Arulkumaran, and Murray Shanahan. Deep unsupervised clustering with gaussian mixture variational autoencoders. arXiv preprint arXiv:1611.02648, 2016. ",
1109
+ "bbox": [
1110
+ 174,
1111
+ 618,
1112
+ 820,
1113
+ 662
1114
+ ],
1115
+ "page_idx": 9
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. In International Conference on Machine Learning, pp. 881–889, 2015. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 671,
1123
+ 823,
1124
+ 702
1125
+ ],
1126
+ "page_idx": 9
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Prasoon Goyal, Zhiting Hu, Xiaodan Liang, Chenyu Wang, and Eric Xing. Nonparametric variational auto-encoders for hierarchical representation learning. In Proceedings of the IEEE International Conference on Computer Vision, 2017. ",
1131
+ "bbox": [
1132
+ 173,
1133
+ 710,
1134
+ 823,
1135
+ 753
1136
+ ],
1137
+ "page_idx": 9
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Xifeng Guo, Long Gao, Xinwang Liu, and Jianping Yin. Improved deep embedded clustering with local structure preservation. In International Joint Conference on Artificial Intelligence (IJCAI17), pp. 1753–1759, 2017. ",
1142
+ "bbox": [
1143
+ 173,
1144
+ 763,
1145
+ 821,
1146
+ 806
1147
+ ],
1148
+ "page_idx": 9
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. science, 313(5786):504–507, 2006. ",
1153
+ "bbox": [
1154
+ 169,
1155
+ 816,
1156
+ 823,
1157
+ 845
1158
+ ],
1159
+ "page_idx": 9
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Geoffrey E Hinton, Simon Osindero, and Yee-Whye Teh. A fast learning algorithm for deep belief nets. Neural computation, 18(7):1527–1554, 2006. ",
1164
+ "bbox": [
1165
+ 173,
1166
+ 856,
1167
+ 823,
1168
+ 885
1169
+ ],
1170
+ "page_idx": 9
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Daniel Jiwoong Im, Chris Dongjoo Kim, Hui Jiang, and Roland Memisevic. Generating images with recurrent adversarial networks. arXiv preprint arXiv:1602.05110, 2016. ",
1175
+ "bbox": [
1176
+ 174,
1177
+ 895,
1178
+ 821,
1179
+ 924
1180
+ ],
1181
+ "page_idx": 9
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Zhuxi Jiang, Yin Zheng, Huachun Tan, Bangsheng Tang, and Hanning Zhou. Variational deep embedding: An unsupervised and generative approach to clustering. In International Joint Conference on Artificial Intelligence, 2017. ",
1186
+ "bbox": [
1187
+ 176,
1188
+ 103,
1189
+ 823,
1190
+ 146
1191
+ ],
1192
+ "page_idx": 10
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations, 2015. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 156,
1200
+ 823,
1201
+ 185
1202
+ ],
1203
+ "page_idx": 10
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In Proceedings of the International Conference on Learning Representations, 2014. ",
1208
+ "bbox": [
1209
+ 173,
1210
+ 195,
1211
+ 823,
1212
+ 226
1213
+ ],
1214
+ "page_idx": 10
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Daphne Koller and Nir Friedman. Probabilistic graphical models: principles and techniques. MIT press, 2009. ",
1219
+ "bbox": [
1220
+ 173,
1221
+ 234,
1222
+ 823,
1223
+ 263
1224
+ ],
1225
+ "page_idx": 10
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "James MacQueen et al. Some methods for classification and analysis of multivariate observations. In Proceedings of the fifth Berkeley symposium on mathematical statistics and probability, volume 1, pp. 281–297. Oakland, CA, USA, 1967. ",
1230
+ "bbox": [
1231
+ 171,
1232
+ 273,
1233
+ 826,
1234
+ 318
1235
+ ],
1236
+ "page_idx": 10
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Raphael Mourad, Christine Sinoquet, Nevin L Zhang, Tengfei Liu, and Philippe Leray. A survey on ¨ latent tree models and applications. Journal of Artificial Intelligence Research, 2013. ",
1241
+ "bbox": [
1242
+ 171,
1243
+ 327,
1244
+ 823,
1245
+ 357
1246
+ ],
1247
+ "page_idx": 10
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Judea Pearl. Probabilistic reasoning in intelligent systems: networks of plausible inference. Morgan Kaufmann, 2014. ",
1252
+ "bbox": [
1253
+ 169,
1254
+ 366,
1255
+ 823,
1256
+ 395
1257
+ ],
1258
+ "page_idx": 10
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Leonard Poon, Nevin L Zhang, Tao Chen, and Yi Wang. Variable selection in model-based clustering: To do or to facilitate. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 887–894, 2010. ",
1263
+ "bbox": [
1264
+ 174,
1265
+ 405,
1266
+ 823,
1267
+ 449
1268
+ ],
1269
+ "page_idx": 10
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Leonard KM Poon, Nevin L Zhang, Tengfei Liu, and April H Liu. Model-based clustering of high-dimensional data: Variable selection versus facet determination. International Journal of Approximate Reasoning, 54(1):196–215, 2013. ",
1274
+ "bbox": [
1275
+ 173,
1276
+ 458,
1277
+ 826,
1278
+ 502
1279
+ ],
1280
+ "page_idx": 10
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Tom Rainforth, Adam R Kosiorek, Tuan Anh Le, Chris J Maddison, Maximilian Igl, Frank Wood, and Yee Whye Teh. Tighter variational bounds are not necessarily better. In International Conference on Machine Learning, 2018. ",
1285
+ "bbox": [
1286
+ 173,
1287
+ 511,
1288
+ 825,
1289
+ 555
1290
+ ],
1291
+ "page_idx": 10
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in Neural Information Processing Systems, pp. 2234–2242, 2016. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 564,
1299
+ 825,
1300
+ 608
1301
+ ],
1302
+ "page_idx": 10
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "Gideon Schwarz et al. Estimating the dimension of a model. The annals of statistics, 6(2):461–464, 1978. ",
1307
+ "bbox": [
1308
+ 171,
1309
+ 617,
1310
+ 823,
1311
+ 647
1312
+ ],
1313
+ "page_idx": 10
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "Michael Steinbach, Levent Ertoz, and Vipin Kumar. The challenges of clustering high dimensional ¨ data. In New directions in statistical physics, pp. 273–309. Springer, 2004. ",
1318
+ "bbox": [
1319
+ 173,
1320
+ 656,
1321
+ 821,
1322
+ 686
1323
+ ],
1324
+ "page_idx": 10
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Yee Whye Teh, Michael I Jordan, Matthew J Beal, and David M Blei. Hierarchical dirichlet processes. Journal of the American Statistical Association, 101(1):1566–1581, 2006. ",
1329
+ "bbox": [
1330
+ 173,
1331
+ 695,
1332
+ 820,
1333
+ 727
1334
+ ],
1335
+ "page_idx": 10
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Proceedings of the 25th international conference on Machine learning, pp. 1096–1103. ACM, 2008. ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 736,
1343
+ 825,
1344
+ 779
1345
+ ],
1346
+ "page_idx": 10
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "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(Dec):3371–3408, 2010. ",
1351
+ "bbox": [
1352
+ 173,
1353
+ 787,
1354
+ 823,
1355
+ 832
1356
+ ],
1357
+ "page_idx": 10
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Ulrike Von Luxburg. A tutorial on spectral clustering. Statistics and computing, 17(4):395–416, 2007. ",
1362
+ "bbox": [
1363
+ 169,
1364
+ 842,
1365
+ 823,
1366
+ 871
1367
+ ],
1368
+ "page_idx": 10
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Stefan Webb, Adam Golinski, Robert Zinkov, N Siddharth, Tom Rainforth, Yee Whye Teh, and Frank Wood. Faithful inversion of generative models for effective amortized inference. In Advances in Neural Information Processing Systems, 2018. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 881,
1376
+ 825,
1377
+ 924
1378
+ ],
1379
+ "page_idx": 10
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Yuhuai Wu, Yuri Burda, Ruslan Salakhutdinov, and Roger Grosse. On the quantitative analysis of decoder-based generative models. In Proceedings of the International Conference on Learning Representations, 2017. ",
1384
+ "bbox": [
1385
+ 174,
1386
+ 103,
1387
+ 823,
1388
+ 146
1389
+ ],
1390
+ "page_idx": 11
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Junyuan Xie, Ross Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering analysis. In International Conference on Machine Learning, pp. 478–487, 2016. ",
1395
+ "bbox": [
1396
+ 169,
1397
+ 155,
1398
+ 823,
1399
+ 184
1400
+ ],
1401
+ "page_idx": 11
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Bo Yang, Xiao Fu, Nicholas D Sidiropoulos, and Mingyi Hong. Towards k-means-friendly spaces: Simultaneous deep learning and clustering. In International Conference on Machine Learning, 2017. ",
1406
+ "bbox": [
1407
+ 173,
1408
+ 193,
1409
+ 823,
1410
+ 234
1411
+ ],
1412
+ "page_idx": 11
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "Jianwei Yang, Devi Parikh, and Dhruv Batra. Joint unsupervised learning of deep representations and image clusters. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5147–5156, 2016. ",
1417
+ "bbox": [
1418
+ 173,
1419
+ 243,
1420
+ 825,
1421
+ 286
1422
+ ],
1423
+ "page_idx": 11
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Yi Yang, Dong Xu, Feiping Nie, Shuicheng Yan, and Yueting Zhuang. Image clustering using local discriminant models and global integration. IEEE Transactions on Image Processing, 19(10): 2761–2773, 2010. ",
1428
+ "bbox": [
1429
+ 173,
1430
+ 295,
1431
+ 826,
1432
+ 338
1433
+ ],
1434
+ "page_idx": 11
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "Nevin L Zhang. Hierarchical latent class models for cluster analysis. Journal of Machine Learning Research, 5(6):697–723, 2004. ",
1439
+ "bbox": [
1440
+ 173,
1441
+ 347,
1442
+ 825,
1443
+ 376
1444
+ ],
1445
+ "page_idx": 11
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Nevin L Zhang and Leonard KM Poon. Latent tree analysis. In AAAI, pp. 4891–4898, 2017. ",
1450
+ "bbox": [
1451
+ 169,
1452
+ 385,
1453
+ 777,
1454
+ 401
1455
+ ],
1456
+ "page_idx": 11
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "A SUPERSTRUCTURES ",
1461
+ "text_level": 1,
1462
+ "bbox": [
1463
+ 176,
1464
+ 102,
1465
+ 375,
1466
+ 118
1467
+ ],
1468
+ "page_idx": 12
1469
+ },
1470
+ {
1471
+ "type": "text",
1472
+ "text": "For the MNIST dataset, the conditional probability between identity facet $Y _ { 1 }$ ( $\\mathbf { \\bar { X } } ^ { \\prime }$ -axis) and pose facet $Y _ { 2 }$ (y-axis) is shown in Fig. 8. It can be seen that a cluster in $Y _ { 1 }$ facet could correspond to multiple clusters in $Y _ { 2 }$ facet due to the conditional probability, e.g. cluster 0, 4, 5, 11 and 12. However, not all clusters in $Y _ { 2 }$ facet are possible for a given cluster in $Y _ { 1 }$ facet. ",
1473
+ "bbox": [
1474
+ 173,
1475
+ 137,
1476
+ 826,
1477
+ 194
1478
+ ],
1479
+ "page_idx": 12
1480
+ },
1481
+ {
1482
+ "type": "image",
1483
+ "img_path": "images/d997c4363a0c39b11d777cc78d967c979fc2920e26ce9822474c2bcb0761d59c.jpg",
1484
+ "image_caption": [
1485
+ "Figure 8: Conditional probability of $Y _ { 1 }$ and $Y _ { 2 }$ for the two facets of MNIST discovered by LTVAE. "
1486
+ ],
1487
+ "image_footnote": [],
1488
+ "bbox": [
1489
+ 336,
1490
+ 236,
1491
+ 638,
1492
+ 415
1493
+ ],
1494
+ "page_idx": 12
1495
+ },
1496
+ {
1497
+ "type": "text",
1498
+ "text": "B CONDITIONAL IMAGE GENERATION ",
1499
+ "text_level": 1,
1500
+ "bbox": [
1501
+ 174,
1502
+ 501,
1503
+ 504,
1504
+ 517
1505
+ ],
1506
+ "page_idx": 12
1507
+ },
1508
+ {
1509
+ "type": "text",
1510
+ "text": "Here we show more results on conditional image generation. Interestingly, with LTVAE, we can change the original images by fixing variables in some facet and sampling in other facets. For example, in MNIST we can fix the variables in identity facet and change the pose of the digit by sampling in the pose facet. Fig. 9 shows the samples generated in this way. As it can be seen, the pose of the input digits are changed in the samples generated by the proposed method. ",
1511
+ "bbox": [
1512
+ 173,
1513
+ 536,
1514
+ 825,
1515
+ 608
1516
+ ],
1517
+ "page_idx": 12
1518
+ },
1519
+ {
1520
+ "type": "image",
1521
+ "img_path": "images/305531c7e4bf0fba99c111714fa1b632f5f0caa852d4e3492a11f51cc6df7b31.jpg",
1522
+ "image_caption": [
1523
+ "Figure 9: Image generation. Left are the original image. Right are generated with the proposed model by fixing the variables in identity facet and sampling the variables in the pose facet. Digits in the same row come from the same latent code of the latent tree. "
1524
+ ],
1525
+ "image_footnote": [],
1526
+ "bbox": [
1527
+ 333,
1528
+ 626,
1529
+ 663,
1530
+ 844
1531
+ ],
1532
+ "page_idx": 12
1533
+ },
1534
+ {
1535
+ "type": "text",
1536
+ "text": "C COMPUTATIONAL TIME ",
1537
+ "text_level": 1,
1538
+ "bbox": [
1539
+ 176,
1540
+ 102,
1541
+ 403,
1542
+ 118
1543
+ ],
1544
+ "page_idx": 13
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "We compare the computational time of the proposed LTVAE w/ structure learning and that w/ fixed structure. For LTVAE with fixed structure, we fixed the structure of the latent tree model to be a single $Y$ connecting to all $z \\mathbf { S }$ , in which each $z$ node consists of single $z$ variable. ",
1549
+ "bbox": [
1550
+ 174,
1551
+ 142,
1552
+ 825,
1553
+ 185
1554
+ ],
1555
+ "page_idx": 13
1556
+ },
1557
+ {
1558
+ "type": "table",
1559
+ "img_path": "images/6900b7b87219b515878923bc091c63076363457f37c26806084c5ee457cab0e4.jpg",
1560
+ "table_caption": [
1561
+ "Table 3: Computational time (s) w/ and w/o structure learning. "
1562
+ ],
1563
+ "table_footnote": [],
1564
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>STL-10</td><td rowspan=1 colspan=1>Reuters</td><td rowspan=1 colspan=1>HHAR</td></tr><tr><td rowspan=1 colspan=1>LTVAE w/ structure learning</td><td rowspan=1 colspan=1>7,592</td><td rowspan=1 colspan=1>3,251</td><td rowspan=1 colspan=1>5,756</td><td rowspan=1 colspan=1>5,693</td></tr><tr><td rowspan=1 colspan=1>LTVAE w/ fixed structure</td><td rowspan=1 colspan=1>3,197</td><td rowspan=1 colspan=1>542</td><td rowspan=1 colspan=1>1,442</td><td rowspan=1 colspan=1>1,021</td></tr></table>",
1565
+ "bbox": [
1566
+ 253,
1567
+ 243,
1568
+ 741,
1569
+ 292
1570
+ ],
1571
+ "page_idx": 13
1572
+ },
1573
+ {
1574
+ "type": "text",
1575
+ "text": "D SIMILARITY BETWEEN LEARNED FACETS ",
1576
+ "text_level": 1,
1577
+ "bbox": [
1578
+ 173,
1579
+ 361,
1580
+ 552,
1581
+ 377
1582
+ ],
1583
+ "page_idx": 13
1584
+ },
1585
+ {
1586
+ "type": "text",
1587
+ "text": "Different facets learned by LTVAE might have some overlaps among each other. Here we make quantitative comparison among different facets based on the cluster assignments in each facet. We evaluate the similarity between two clusterings $Y _ { 1 }$ and $Y _ { 2 }$ using normalized mutual information $N M I ( Y _ { 1 } ; Y _ { 2 } )$ . The NMI is given by ",
1588
+ "bbox": [
1589
+ 173,
1590
+ 401,
1591
+ 825,
1592
+ 458
1593
+ ],
1594
+ "page_idx": 13
1595
+ },
1596
+ {
1597
+ "type": "equation",
1598
+ "img_path": "images/67ce79d04e818f6b17f352a01f8a06857659a6bbd34ddd0e306fa8640fc1cbc8.jpg",
1599
+ "text": "$$\nN M I ( Y _ { 1 } ; Y _ { 2 } ) = \\frac { I ( Y _ { 1 } ; Y _ { 2 } ) } { \\sqrt { H ( Y _ { 1 } ) H ( Y _ { 2 } ) } } ,\n$$",
1600
+ "text_format": "latex",
1601
+ "bbox": [
1602
+ 382,
1603
+ 477,
1604
+ 614,
1605
+ 515
1606
+ ],
1607
+ "page_idx": 13
1608
+ },
1609
+ {
1610
+ "type": "text",
1611
+ "text": "where $I ( Y _ { 1 } ; Y _ { 2 } )$ is the mutual information between $Y _ { 1 }$ and $Y _ { 2 }$ and $H ( V )$ is the entropy of a variable $V$ . These quantities can be computed from $P ( Y _ { 1 } ; Y _ { 2 } )$ , which in turn is estimated by $P ( Y _ { 1 } ; Y _ { 2 } ) =$ $\\begin{array} { r l } { { } } & { { } { \\frac { 1 } { N } } \\sum _ { i = 1 } ^ { N } P ( Y _ { 1 } | \\mathbf { d _ { i } } ) P ( Y _ { 2 } | \\mathbf { d _ { i } } ) } \\end{array}$ , where $\\mathbf { d } _ { 1 } , \\cdots , \\mathbf { d } _ { N }$ are the samples in the test data. ",
1612
+ "bbox": [
1613
+ 174,
1614
+ 534,
1615
+ 825,
1616
+ 582
1617
+ ],
1618
+ "page_idx": 13
1619
+ },
1620
+ {
1621
+ "type": "table",
1622
+ "img_path": "images/298a0f16edab03a5234a57c316f0488ee9cbe8279dd04b2004b500902cbb1cda.jpg",
1623
+ "table_caption": [
1624
+ "Table 4: NMI between different facets learned by LTVAE and groundtruth for MNIST dataset. "
1625
+ ],
1626
+ "table_footnote": [],
1627
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Groundtruth</td><td rowspan=1 colspan=1>Facet 1</td><td rowspan=1 colspan=1>Facet 2</td></tr><tr><td rowspan=1 colspan=1>Groundtruth</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.825</td><td rowspan=1 colspan=1>0.574</td></tr><tr><td rowspan=1 colspan=1>Facet 1</td><td rowspan=1 colspan=1>0.825</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.682</td></tr><tr><td rowspan=1 colspan=1>Facet 2</td><td rowspan=1 colspan=1>0.574</td><td rowspan=1 colspan=1>0.682</td><td rowspan=1 colspan=1>1</td></tr></table>",
1628
+ "bbox": [
1629
+ 330,
1630
+ 640,
1631
+ 666,
1632
+ 703
1633
+ ],
1634
+ "page_idx": 13
1635
+ },
1636
+ {
1637
+ "type": "table",
1638
+ "img_path": "images/e0db474f052c0c01c414682ca3fb50ca2934edf0af0b04938fd8191272e711e8.jpg",
1639
+ "table_caption": [
1640
+ "Table 5: NMI between different facets learned by LTVAE and groundtruth for STL dataset. "
1641
+ ],
1642
+ "table_footnote": [],
1643
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Groundtruth</td><td rowspan=1 colspan=1>Facet1</td><td rowspan=1 colspan=1>Facet 2</td><td rowspan=1 colspan=1>Facet3</td><td rowspan=1 colspan=1>Facet 4</td></tr><tr><td rowspan=1 colspan=1>Groundtruth</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.8613</td><td rowspan=1 colspan=1>0.6279</td><td rowspan=1 colspan=1>0.5758</td><td rowspan=1 colspan=1>0.5536</td></tr><tr><td rowspan=1 colspan=1>Facet 1</td><td rowspan=1 colspan=1>0.8613</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.6962</td><td rowspan=1 colspan=1>0.6314</td><td rowspan=1 colspan=1>0.6251</td></tr><tr><td rowspan=1 colspan=1>Facet 2</td><td rowspan=1 colspan=1>0.6279</td><td rowspan=1 colspan=1>0.6962</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.4675</td><td rowspan=1 colspan=1>0.5031</td></tr><tr><td rowspan=1 colspan=1>Facet 3</td><td rowspan=1 colspan=1>0.5758</td><td rowspan=1 colspan=1>0.6314</td><td rowspan=1 colspan=1>0.4675</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.5885</td></tr><tr><td rowspan=1 colspan=1>Facet 4</td><td rowspan=1 colspan=1>0.5536</td><td rowspan=1 colspan=1>0.6251</td><td rowspan=1 colspan=1>0.5031</td><td rowspan=1 colspan=1>0.5885</td><td rowspan=1 colspan=1>1</td></tr></table>",
1644
+ "bbox": [
1645
+ 263,
1646
+ 795,
1647
+ 735,
1648
+ 887
1649
+ ],
1650
+ "page_idx": 13
1651
+ },
1652
+ {
1653
+ "type": "text",
1654
+ "text": "E DERIVATION OF GRADIENT ",
1655
+ "text_level": 1,
1656
+ "bbox": [
1657
+ 176,
1658
+ 102,
1659
+ 431,
1660
+ 118
1661
+ ],
1662
+ "page_idx": 14
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "Here we give detailed derivation of Equation 6. The gradient $\\mathbf { g } _ { \\mathbf { z } _ { b } }$ of the marginal loglikelihood $\\log p s ( { \\bf z } ; \\Theta )$ w.r.t $\\mathbf { z } _ { b }$ thus can be computed as ",
1667
+ "bbox": [
1668
+ 173,
1669
+ 132,
1670
+ 823,
1671
+ 162
1672
+ ],
1673
+ "page_idx": 14
1674
+ },
1675
+ {
1676
+ "type": "equation",
1677
+ "img_path": "images/af712af15f2b252b1df6409f962cc79436bd1e2cf36290e0cf0d5e9f7aeb84a9.jpg",
1678
+ "text": "$$\n\\begin{array} { r l } { \\mathcal { Q } _ { \\kappa , \\kappa } = } & { \\frac { \\partial \\langle \\Phi _ { \\kappa } | \\phi _ { \\sigma } \\rangle \\langle \\kappa \\Theta \\rangle } { \\partial \\mathcal { L } _ { \\kappa } } } \\\\ & { = \\frac { \\partial } { \\partial \\kappa _ { \\kappa } \\langle \\kappa \\Theta \\rangle } _ { \\kappa } \\frac { \\partial \\langle \\Phi _ { \\kappa } | \\phi _ { \\sigma } \\rangle _ { \\kappa } } { \\partial \\mathcal { L } _ { \\kappa } } } \\\\ & { = \\frac { 1 } { \\rho _ { \\kappa } \\langle \\kappa \\Theta \\rangle } _ { \\kappa } \\frac { \\partial \\sum _ { \\kappa } f \\langle \\Phi _ { \\kappa } \\rangle \\langle \\kappa \\Theta _ { \\kappa } | \\phi _ { \\kappa } \\rangle _ { \\kappa } \\langle \\kappa \\Theta _ { \\kappa } \\rangle } { \\partial \\mathcal { L } _ { \\kappa } } } \\\\ & { = \\sum _ { \\kappa } \\frac { \\partial } { \\rho _ { \\kappa } \\langle \\kappa \\Theta \\rangle } _ { \\kappa } \\frac { \\partial | f \\langle \\Phi _ { \\kappa } \\rangle \\langle \\kappa | \\Theta _ { \\kappa } \\rangle _ { \\kappa } \\langle \\kappa \\Theta _ { \\kappa } \\rangle | } { \\partial \\mathcal { L } _ { \\kappa } } } \\\\ & { = \\sum _ { \\kappa } \\frac { f \\langle \\Phi _ { \\kappa } | \\Phi \\rangle \\langle \\kappa | \\Phi _ { \\kappa } | \\rho _ { \\kappa } \\rangle _ { \\kappa } \\langle \\kappa \\Theta _ { \\kappa } | \\phi _ { \\kappa } \\rangle _ { \\kappa } } { \\partial \\mathcal { L } _ { \\kappa } \\langle \\kappa \\Theta \\rangle } \\frac { \\partial | f \\langle \\Phi _ { \\kappa } | \\mathcal { N } \\langle \\kappa | \\Phi _ { \\kappa } \\rangle _ { \\kappa } \\langle \\kappa \\Theta _ { \\kappa } \\rangle _ { \\kappa } | } { \\partial \\mathcal { L } _ { \\kappa } } } \\\\ & { = \\sum _ { \\kappa } \\frac { f \\langle \\Phi _ { \\kappa } | \\Phi \\rangle \\langle \\kappa | \\Phi _ { \\kappa } | \\rho _ { \\kappa } \\rangle _ { \\kappa } \\langle \\kappa | \\Phi _ { \\kappa } \\rangle _ { \\kappa } \\langle \\kappa | \\Phi _ { \\kappa } \\rangle _ { \\kappa } } { \\partial \\mathcal { L } _ { \\kappa } } } \\\\ & { = \\sum _ { \\kappa } \\rho _ { \\kappa } | z | \\rho _ { \\kappa } \\langle | \\Phi _ { \\kappa } | \\rho _ { \\kappa } \\rangle _ { \\kappa } \\langle | \\Phi _ { \\kappa } | \\rho _ { \\kappa } \\rangle _ { \\kappa } } \\\\ & = \\sum _ { \\kappa } ^ { \\kappa } \\rho _ { \\kappa } | z | \\rho _ { \\kappa } \\langle \\kappa | \\Phi _ { \\kappa } \\rangle _ { \\kappa } \\end{array}\n$$",
1679
+ "text_format": "latex",
1680
+ "bbox": [
1681
+ 292,
1682
+ 169,
1683
+ 700,
1684
+ 433
1685
+ ],
1686
+ "page_idx": 14
1687
+ },
1688
+ {
1689
+ "type": "text",
1690
+ "text": "where $p ( \\boldsymbol { y } _ { b } | \\mathbf { z } )$ is the posterior probability of $y _ { b }$ and can be computed efficiently with message passing as described in the previous section. Note that ",
1691
+ "bbox": [
1692
+ 174,
1693
+ 436,
1694
+ 821,
1695
+ 465
1696
+ ],
1697
+ "page_idx": 14
1698
+ },
1699
+ {
1700
+ "type": "equation",
1701
+ "img_path": "images/3c65a06811bc1f19192f3bbb52c88209382a455a27323efb56c068d8766384a7.jpg",
1702
+ "text": "$$\np ( y _ { b } | \\mathbf { z } ) = \\frac { f ( y _ { b } ) \\mathcal { N } ( \\mathbf { z } _ { b } | \\mu _ { y _ { b } } , \\Sigma _ { y _ { b } } ) } { p s ( \\mathbf { z } ; \\boldsymbol { \\Theta } ) }\n$$",
1703
+ "text_format": "latex",
1704
+ "bbox": [
1705
+ 390,
1706
+ 470,
1707
+ 607,
1708
+ 506
1709
+ ],
1710
+ "page_idx": 14
1711
+ },
1712
+ {
1713
+ "type": "text",
1714
+ "text": "is valid due to $\\begin{array} { r } { p _ { S } ( \\mathbf { z } ; \\Theta ) = \\sum _ { y _ { b } } \\mathcal { N } ( \\mathbf { z } _ { b } | \\mu _ { y _ { b } } , \\boldsymbol { \\Sigma } _ { y _ { b } } ) f ( y _ { b } ) } \\end{array}$ and the Bayes rule. ",
1715
+ "bbox": [
1716
+ 173,
1717
+ 511,
1718
+ 655,
1719
+ 531
1720
+ ],
1721
+ "page_idx": 14
1722
+ }
1723
+ ]
parse/train/SJgNwi09Km/SJgNwi09Km_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJgNwi09Km/SJgNwi09Km_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/hl3v8io3ZYt/hl3v8io3ZYt.md ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Associating Objects with Transformers for Video Object Segmentation
2
+
3
+ Zongxin Yang1,2, Yunchao Wei3,4, Yi Yang1
4
+
5
+ 1 CCAI, College of Computer Science and Technology, Zhejiang University 2 Baidu Research 3 Institute of Information Science, Beijing Jiaotong University 4 Beijing Key Laboratory of Advanced Information Science and Network {zongxinyang1996, wychao1987, yee.i.yang}@gmail.com
6
+
7
+ # Abstract
8
+
9
+ This paper investigates how to realize better and more efficient embedding learning to tackle the semi-supervised video object segmentation under challenging multi-object scenarios. The state-of-the-art methods learn to decode features with a single positive object and thus have to match and segment each target separately under multi-object scenarios, consuming multiple times computing resources. To solve the problem, we propose an Associating Objects with Transformers (AOT) approach to match and decode multiple objects uniformly. In detail, AOT employs an identification mechanism to associate multiple targets into the same high-dimensional embedding space. Thus, we can simultaneously process multiple objects’ matching and segmentation decoding as efficiently as processing a single object. For sufficiently modeling multi-object association, a Long Short-Term Transformer is designed for constructing hierarchical matching and propagation. We conduct extensive experiments on both multi-object and single-object benchmarks to examine AOT variant networks with different complexities. Particularly, our R50-AOT-L outperforms all the state-of-the-art competitors on three popular benchmarks, i.e., YouTube-VOS $( 8 4 . 1 \% ~ \mathcal { I } \& \mathcal { F } )$ , DAVIS 2017 $( 8 4 . 9 \% )$ , and DAVIS 2016 $( 9 1 . 1 \% )$ , while keeping more than $3 \times$ faster multi-object run-time. Meanwhile, our AOT-T can maintain real-time multi-object speed on the above benchmarks. Based on AOT, we ranked $\mathbf { 1 ^ { s t } }$ in the 3rd Large-scale VOS Challenge.
10
+
11
+ # 1 Introduction
12
+
13
+ Video Object Segmentation (VOS) is a fundamental task in video understanding with many potential applications, including augmented reality [25] and self-driving cars [52]. The goal of semi-supervised VOS, the main task in this paper, is to track and segment object(s) across an entire video sequence based on the object mask(s) given at the first frame.
14
+
15
+ Thanks to the recent advance of deep neural networks, many deep learning based VOS algorithms have been proposed recently and achieved promising performance. STM [26] and its following works [34, 23] leverage a memory network to store and read the target features of predicted past frames and apply a non-local attention mechanism to match the target in the current frame. FEELVOS [41] and CFBI [50, 51] utilize global and local matching mechanisms to match target pixels or patches from both the first and the previous frames to the current frame.
16
+
17
+ Even though the above methods have achieved significant progress, the above methods learn to decode scene features that contain a single positive object. Thus under a multi-object scenario, they have to match each object independently and ensemble all the single-object predictions into a multi-object segmentation, as shown in Fig. 1a. Such a post-ensemble manner eases network architectures’ design since the networks are not required to adapt the parameters or structures for different object numbers. However, modeling multiple objects independently, instead of uniformly, is inefficient in exploring multi-object contextual information to learn a more robust feature representation for VOS. In addition, processing multiple objects separately yet in parallel requires multiple times the amount of GPU memory and computation for processing a single object. This problem restricts the training and application of VOS under multi-object scenarios, especially when computing resources are limited.
18
+
19
+ ![](images/4b20923d50ad97a87da9b6849c8352dfcb5e2697e5936a15d3f25e62b6e5b068.jpg)
20
+ Figure 1: VOS methods (e.g., [50, 34]) process multi-object scenarios in a post-ensemble manner (a). In contrast, our AOT associates all the objects uniformly (b), leading to better efficiency (c).
21
+
22
+ To solve the problem, Fig. 1b demonstrates a feasible approach to associate and decode multiple objects uniformly in an end-to-end framework. Hence, we propose an Associating Objects with Transformers (AOT) approach to match and decode multiple targets uniformly. First, an identification mechanism is proposed to assign each target a unique identity and embed multiple targets into the same feature space. Hence, the network can learn the association or correlation among all the targets. Moreover, the multi-object segmentation can be directly decoded by utilizing assigned identity information. Second, a Long Short-Term Transformer (LSTT) is designed for constructing hierarchical object matching and propagation. Each LSTT block utilizes a long-term attention for matching with the first frame’s embedding and a short-term attention for matching with several nearby frames’ embeddings. Compared to the methods [26, 34] utilizing only one attention layer, we found hierarchical attention structures are more effective in associating multiple objects.
23
+
24
+ We conduct extensive experiments on two popular multi-object benchmarks for VOS, i.e., YouTubeVOS [48] and DAVIS 2017 [31], to validate the effectiveness and efficiency of the proposed AOT. Even using the light-weight Mobilenet-V2 [33] as the backbone encoder, the AOT variant networks achieve superior performance on the validation 2018 & 2019 splits of the large-scale YouTube-VOS (ours, $\mathcal { T } \& \mathcal { F } 8 2 . 6 \sim 8 4 . 5 \%$ & $8 2 . 2 \sim 8 4 . 5 \%$ while keeping more than $\mathbf { 2 \times }$ faster multi-object run-time $( \mathbf { 2 7 . 1 } \sim \mathbf { 9 . 3 F P S }$ ) compared to the state-of-the-art competitors (e.g., CFBI [50], $8 1 . 4 \%$ & $8 1 . 0 \%$ , 3.4FPS). We also achieve new state-of-the-art performance on both the DAVIS-2017 validation $( 8 5 . 4 \% )$ and testing $( 8 1 . 2 \% )$ splits. Moreover, AOT is effective under single-object scenarios as well and outperforms previous methods on DAVIS 2016 [30] $( 9 2 . 0 \% )$ , a popular single-object benchmark. Besides, our smallest variant, AOT-T, can maintain real-time multi-object speed on all above benchmarks (51.4FPS on $4 8 0 \mathrm { p }$ videos). Particularly, AOT ranked $\mathbf { 1 ^ { s t } }$ in the Track 1 (Video Object Segmentation) of the 3rd Large-scale Video Object Segmentation Challenge.
25
+
26
+ Overall, our contributions are summarized as follows:
27
+
28
+ • We propose an identification mechanism to associate and decode multiple targets uniformly for VOS. For the first time, multi-object training and inference can be efficient as single-object ones, as demonstrated in Fig. 1c. • Based on the identification mechanism, we design a new efficient VOS framework, i.e., Long ShortTerm Transformer (LSTT), for constructing hierarchical multi-object matching and propagation. LSTT achieves superior performance on VOS benchmarks [48, 31, 30] while maintaining better efficiency than previous state-of-the-art methods. To the best of our knowledge, LSTT is the first hierarchical framework for object matching and propagation by applying transformers [39] to VOS.
29
+
30
+ # 2 Related Work
31
+
32
+ Semi-supervised Video Object Segmentation. Given one or more annotated frames (the first frame in general), semi-supervised VOS methods propagate the manual labeling to the entire video sequence. Traditional methods often solve an optimization problem with an energy defined over a graph structure [4, 40, 2]. In recent years, VOS methods have been mainly developed based on deep neural networks (DNN), leading to better results.
33
+
34
+ Early DNN methods rely on fine-tuning the networks at test time to make segmentation networks focus on a specific object. Among them, OSVOS [7] and MoNet [47] fine-tune pre-trained networks on the first-frame ground-truth at test time. OnAVOS [42] extends the first-frame fine-tuning by introducing an online adaptation mechanism. Following these approaches, MaskTrack [29] and PReM [24] utilize optical flow to help propagate the segmentation mask from one frame to the next. Despite achieving promising results, the test-time fine-tuning restricts the network efficiency.
35
+
36
+ Recent works aim to achieve a better run-time and avoid using online fine-tuning. OSMN [49] employs one convolutional network to extract object embedding and another one to guide segmentation predictions. PML [9] learns pixel-wise embedding with a nearest neighbor classifier, and VideoMatch [18] uses a soft matching layer that maps the pixels of the current frame to the first frame in a learned embedding space. Following PML and VideoMatch, FEELVOS [41] and CFBI [50, 51] extend the pixel-level matching mechanism by additionally matching between the current frame and the previous frame. RGMP [46] also gathers guidance information from both the first frame and the previous frame but uses a siamese encoder with two shared streams. STM [26] and its following works (e.g., EGMN [23] and KMN [34]) leverage a memory network to embed past-frame predictions into memory and apply a non-local attention mechanism on the memory to decode the segmentation of the current frame. SST [13] utilizes attention mechanisms in a different way, i.e., transformer blocks [39] are used to extract pixel-level affinity maps and spatial-temporal features. The features are target-agnostic, instead of target-aware like our LSTT, since the mask information in past frames is not propagated and aggregated in the blocks. Instead of using matching mechanisms, LWL [6] proposes to use an online few-shot learner to learn to decode object segmentation.
37
+
38
+ The above methods learn to decode features with a single positive object and thus have to match and segment each target separately under multi-object scenarios, consuming multiple times computing resources of single-object cases. The problem restricts the application and development of the VOS with multiple targets. Hence, we propose our AOT to associate and decode multiple targets uniformly and simultaneously, as efficiently as processing a single object.
39
+
40
+ Visual Transformers. Transformers [39] was proposed to build hierarchical attention-based networks for machine translation. Similar to Non-local Neural Networks [43], transformer blocks compute correlation with all the input elements and aggregate their information by using attention mechanisms [5]. Compared to RNNs, transformer networks model global correlation or attention in parallel, leading to better memory efficiency, and thus have been widely used in natural language processing (NLP) tasks [11, 32, 37]. Recently, transformer blocks were introduced to many computer vision tasks, such as image classification [12, 38, 22], object detection [8]/segmentation [44], and image generation [27], and have shown promising performance compared to CNN-based networks.
41
+
42
+ Many VOS methods [19, 26, 23, 34] have utilized attention mechanisms to match the object features and propagate the segmentation mask from past frames to the current frames. Nevertheless, these methods consider only one positive target in the attention processes, and how to build hierarchical attention-based propagation has been rarely studied. In this paper, we carefully design a long shortterm transformer block, which can effectively construct multi-object matching and propagation within hierarchical structures for VOS.
43
+
44
+ # 3 Revisit Previous Solutions for Video Object Segmentation
45
+
46
+ In VOS, many common video scenarios have multiple targets or objects required for tracking and segmenting. Benefit from deep networks, current state-of-the-art VOS methods [26, 50] have achieved promising performance. Nevertheless, these methods focus on matching and decoding a single object. Under a multi-object scenario, they thus have to match each object independently and ensemble all the single-object predictions into a multi-object prediction, as demonstrated in Fig. 1a. Let $F ^ { \mathcal { N } }$ denotes a VOS network for predicting single-object segmentation, and $A$ is an ensemble function such as sof tmax or the soft aggregation [26], the formula of such a post-ensemble manner for processing $N$ objects is like,
47
+
48
+ $$
49
+ Y ^ { \prime } = A ( F ^ { \mathcal { N } } ( I ^ { t } , I ^ { \mathbf { m } } , Y _ { 1 } ^ { \mathbf { m } } ) , . . . , F ^ { \mathcal { N } } ( I ^ { t } , I ^ { \mathbf { m } } , Y _ { N } ^ { \mathbf { m } } ) ) ,
50
+ $$
51
+
52
+ ![](images/81621c58233797a6e0afd78c46fa2910bf9e19ffc51406290c92eaa29bb254e6.jpg)
53
+ Figure 2: (a) The overview of our Associating Objects with Transformers (AOT). The multi-object masks are embedded by using our Identification mechanism. Moreover, a $L$ -layer Long ShortTerm Transformer is responsible for matching multiple objects uniformly and hierarchically. (b) An illustration of the IDentity assignment (ID) designed for transferring a $N .$ -object mask into an identification embedding. (c) The structure of an LSTT block. LN: layer normalization [3].
54
+
55
+ where $I ^ { t }$ and $I ^ { \mathbf { m } }$ denote the image of the current frame and memory frames respectively, and $\{ Y _ { 1 } ^ { \mathbf { m } } , . . . , Y _ { N } ^ { \mathbf { m } } \}$ are the memory masks (containing the given reference mask and past predicted masks) of all the $N$ objects. This manner extends networks designed for single-object VOS into multi-object applications, so there is no need to adapt the network for different object numbers.
56
+
57
+ Although the above post-ensemble manner is prevalent and straightforward in the VOS field, processing multiple objects separately yet in parallel requires multiple times the amount of GPU memory and computation for matching a single object and decoding the segmentation. This problem restricts the training and application of VOS under multi-object scenarios when computing resources are limited. To make the multi-object training and inference as efficient as single-object ones, an expected solution should be capable of associating and decoding multiple objects uniformly instead of individually. To achieve such an objective, we propose an identification mechanism to embed the masks of any number (required to be smaller than a pre-defined large number) of targets into the same high-dimensional space. Based on the identification mechanism, a novel and efficient framework, i.e., Associating Objects with Transformers (AOT), is designed for propagating all the object embeddings uniformly and hierarchically, from memory frames to the current frame.
58
+
59
+ As shown in Fig. 1b, our AOT associates and segments multiple objects within an end-to-end framework. For the first time, processing multiple objects can be as efficient as processing a single object (Fig. 1c). Compared to previous methods, our training under multi-object scenarios is also more efficient since AOT can associate multiple object regions and learn contrastive feature embeddings among them uniformly.
60
+
61
+ # 4 Associating Objects with Transformers
62
+
63
+ In this section, we introduce our identification mechanism proposed for efficient multi-object VOS. Then, we design a new VOS framework, i.e., long short-term transformer, based on the identification mechanism for constructing hierarchical multi-object matching and propagation.
64
+
65
+ # 4.1 Identification Mechanism for Multi-object Association
66
+
67
+ Many recent VOS methods [26, 23, 34] utilized attention mechanisms and achieved promising results. To formulate, we define $Q \in \mathbb { R } ^ { H W \times C }$ , $K \in \mathbb { R } ^ { T H W \times C }$ , and $V \in \mathbb { R } ^ { T H W \times C }$ as the query embedding of the current frame, the key embedding of the memory frames, and the value embedding of the memory frames respectively, where $T$ , $H$ , $W$ , $C$ denote the temporal, height, width, and channel dimensions. The formula of a common attention-based matching and propagation is,
68
+
69
+ $$
70
+ A t t ( Q , K , V ) = C o r r ( Q , K ) V = s o f t m a x ( \frac { Q K ^ { t r } } { \sqrt { C } } ) V ,
71
+ $$
72
+
73
+ where a matching map is calculated by the correlation function Corr, and then the value embedding, $V$ , will be propagated into each location of the current frame.
74
+
75
+ In the common single-object propagation [26], the binary mask information in memory frames is embedded into $V$ with an additional memory encoder network and thus can also be propagated to the current frame by using Eq. 2. A convolutional decoder network following the propagated feature will decode the aggregated feature and predict the single-object probability logit of the current frame.
76
+
77
+ The main problem of propagating and decoding multi-object mask information in an end-to-end network is how to adapt the network to different target numbers. To overcome this problem, we propose an identification mechanism consisting of identification embedding and decoding based on attention mechanisms.
78
+
79
+ First, an Identification Embedding mechanism is proposed to embed the masks of multiple different targets into the same feature space for propagation. As seen in Fig. 2b, we initialize an identity bank, $D \in \mathbb { R } ^ { M \times C }$ , where $M$ identification vectors with $C$ dimensions are stored. For embedding multiple different target masks, each target will be randomly assigned a different identification vector. Assuming $N$ $N < M )$ targets are in the video scenery, the formula of embedding the targets’ one-hot mask, $\bar { Y } \in \{ 0 , 1 \} ^ { T H W \times N }$ , into a identification embedding, $E \in \mathbb { R } ^ { T H W \times C }$ , by randomly assigning identification vector from the bank $D$ is,
80
+
81
+ $$
82
+ E = I D ( Y , D ) = Y P D ,
83
+ $$
84
+
85
+ where $P \in \{ 0 , 1 \} ^ { N \times M }$ is a random permutation matrix, satisfying that $P ^ { t r } P$ is equal to a $M \times M$ unit matrix, for randomly selecting $N$ identification embeddings. After the $I D$ assignment, different target has different identification embedding, and thus we can propagate all the target identification information from memory frames to the current frame by attaching the identification embedding $E$ with the attention value $V$ , i.e.,
86
+
87
+ $$
88
+ V ^ { \prime } = A t t I D ( Q , K , V , Y | D ) = A t t ( Q , K , V + I D ( Y , D ) ) = A t t ( Q , K , V + E ) ,
89
+ $$
90
+
91
+ where $V ^ { \prime } \in \mathbb { R } ^ { H W \times C }$ aggregates all the multiple targets’ embeddings from the propagation.
92
+
93
+ For Identification Decoding, i.e., predicting all the targets’ probabilities from the aggregated feature $V ^ { \prime }$ , we firstly predict the probability logit for every identity in the bank $D$ by employing a convolutional decoding network $\hat { F } ^ { \mathcal { D } }$ , and then select the assigned ones and calculate the probabilities, i.e.,
94
+
95
+ $$
96
+ Y ^ { \prime } = s o f t m a x ( P F ^ { \mathcal { D } } ( V ^ { \prime } ) ) = s o f t m a x ( P L ^ { D } ) ,
97
+ $$
98
+
99
+ where $L ^ { D } \in \mathbb { R } ^ { H W \times M }$ is all the $M$ identities’ probability logits, $P$ is the same as the selecting matrix used in the identity assignment (Eq. 3), and $\begin{array} { r } { Y ^ { \dot { \prime } } \in [ 0 , 1 ] ^ { \check { H } W \times N } } \end{array}$ is the probability prediction of all the $N$ targets.
100
+
101
+ For training, common multi-class segmentation losses, such as cross-entropy loss, can be used to optimize the multi-object $Y ^ { \prime }$ regarding the ground-truth labels. The identity bank $D$ is trainable and randomly initialized at the training beginning. To ensure that all the identification vectors have the same opportunity to compete with each other, we randomly reinitialize the identification selecting matrix $P$ in each video sample and each optimization iteration.
102
+
103
+ # 4.2 Long Short-Term Transformer for Hierarchical Matching and Propagation
104
+
105
+ Previous methods [26, 34] always utilize only one layer of attention (Eq. 2) to aggregate singleobject information. In our identification-based multi-object pipeline, we found that a single attention layer cannot fully model multi-object association, which naturally should be more complicated than single-object processes. Thus, we consider constructing hierarchical matching and propagation by using a series of attention layers. Recently, transformer blocks [39] have been demonstrated to be stable and promising in constructing hierarchical attention structures in visual tasks [8, 12]. Based on transformer blocks, we carefully design a Long Short-Term Transformer (LSTT) block for multi-object VOS.
106
+
107
+ Following the common transformer blocks [39, 11], LSTT firstly employs a self-attention layer, which is responsible for learning the association or correlation among the targets within the current frame. Then, LSTT additionally introduces a long-term attention, for aggregating targets’ information from long-term memory frames and a short-term attention, for learning temporal smoothness from nearby short-term frames. The final module is based on a common 2-layer feed-forward MLP with
108
+
109
+ GELU [17] non-linearity in between. Fig. 2c shows the structure of an LSTT block. Notably, all these attention modules are implemented in the form of the multi-head attention [39], i.e., multiple attention modules followed by concatenation and a linear projection. Nevertheless, we only introduce their single-head formulas below for the sake of simplicity.
110
+
111
+ Long-Term Attention is responsible for aggregating targets’ information from past memory frames, which contains the reference frame and stored predicted frames, to the current frame. Since the time intervals between the current frame and past frames are variable and can be long-term, the temporal smoothness is difficult to guarantee. Thus, the long-term attention employs non-local attention like Eq. 2. Let $X _ { l } ^ { t } \in \mathbb { R } ^ { H W \times \mathbf { \breve { C } } }$ denotes the input feature embedding at time $t$ and in block $l$ , where $l \in \{ 1 , . . . , L \}$ is the block index of LSTT, the formula of the long-term attention is,
112
+
113
+ $$
114
+ A t t L T ( X _ { l } ^ { t } , X _ { l } ^ { \mathbf { m } } , Y ^ { \mathbf { m } } ) = A t t I D ( X _ { l } ^ { t } W _ { l } ^ { K } , X _ { l } ^ { \mathbf { m } } W _ { l } ^ { K } , X _ { l } ^ { \mathbf { m } } W _ { l } ^ { V } , Y ^ { \mathbf { m } } | D ) ,
115
+ $$
116
+
117
+ where $X _ { l } ^ { \mathbf { m } } = C o n c a t ( X _ { l } ^ { m _ { 1 } } , . . . , X _ { l } ^ { m _ { T } } )$ and $Y ^ { \mathbf { m } } = { C o n c a t } ( Y ^ { m _ { 1 } } , . . . , Y ^ { m _ { T } } )$ are the input feature embeddings and target masks of memory frames with indices $\mathbf { m } = \{ m _ { 1 } , . . . , m _ { T } \}$ . Besides, $W _ { l } ^ { K } \in$ $\mathbb { R } ^ { C \times C _ { k } }$ and $W _ { l } ^ { V } \in \mathbb { R } ^ { C \times C _ { v } }$ are trainable parameters of the space projections for matching and propagation, respectively. Instead of using different projections for ${ \bar { X } } _ { l } ^ { t }$ and $X _ { l } ^ { \mathbf { m } }$ , we found the training of LSTT is more stable with a siamese-like matching, $i . e .$ , matching between the features within the same embedding space $\mathit { l }$ -th features with the same projection of $\breve { W } _ { l } ^ { K }$ ).
118
+
119
+ Short-Term Attention is employed for aggregating information in a spatial-temporal neighbourhood for each current-frame location. Intuitively, the image changes across several contiguous video frames are always smooth and continuous. Thus, the target matching and propagation in contiguous frames can be restricted in a small spatial-temporal neighborhood, leading to better efficiency than non-local processes. Considering $n$ neighbouring frames with indices $\mathbf { n } = \{ t - 1 , . . . , t - n \}$ are in the spatialtemporal neighbourhood, the features and masks of these frames are $X _ { l } ^ { \mathbf { n } } = C o n c a t ( X _ { l } ^ { t - 1 } , . . . , X _ { l } ^ { t - n } )$ and $Y ^ { \mathbf { n } } = C o n c a t ( Y ^ { t - 1 } , . . . , Y ^ { t - n } )$ , and then the formula of the short-term attention at each spatial location $p$ is,
120
+
121
+ $$
122
+ A t t S T ( X _ { l } ^ { t } , X _ { l } ^ { { \bf n } } , Y ^ { { \bf n } } | p ) = A t t L T ( X _ { l , p } ^ { t } , X _ { l , N ( p ) } ^ { { \bf n } } , Y _ { l , N ( p ) } ^ { { \bf n } } ) ,
123
+ $$
124
+
125
+ where $X _ { l , p } ^ { t } \in \mathbb { R } ^ { 1 \times C }$ is the feature of $X _ { l } ^ { t }$ at location $p , { \mathcal { N } } ( p )$ is a $\lambda \times \lambda$ spatial neighbourhood l,p centered at location $p$ , and thus $X _ { l , N ( p ) } ^ { \mathbf { n } }$ land $Y _ { l , \mathcal { N } ( p ) } ^ { \mathbf { n } }$ are the features and masks of the spatial-temporal neighbourhood, respectively, with a shape of $n \lambda ^ { 2 } \times C$ or $n \lambda ^ { 2 } \times N$ .
126
+
127
+ When extracting features of the first frame $t = 1$ , there is no memory frames or previous frames, and hence we use $\bar { X } _ { l } ^ { 1 }$ to replace $X _ { l } ^ { \mathbf { m } }$ and $X _ { l } ^ { \mathbf { n } }$ . In other words, the long-term attention and the short-term attention are changed into self-attentions without adjusting the network structures and parameters.
128
+
129
+ # 5 Implementation Details
130
+
131
+ Network Details: For sufficiently validating the effectiveness of our identification mechanism and LSTT, we mainly use light-weight backbone encoder, MobileNet-V2 [33], and decoder, FPN [20] with Group Normalization [45]. The spatial neighborhood size $\lambda$ is set to 15, and the number of identification vectors, $M$ , is set to 10, which is consistent with the maximum object number in the benchmarks [48, 31]. AOT performs well with PaddlePaddle [1] and PyTorch [28]. More details can be found in the supplementary material.
132
+
133
+ Architecture Variants: We build several AOT variant networks with different LSTT layer number $L$ or long-term memory size m. The hyper-parameters of these variants are: (1) AOT-Tiny: $L = 1$ , $\mathbf { m } = \bar { \{ 1 \} }$ ; (2) AOT-Small: $L = 2$ , $\mathbf { m } = \{ 1 \}$ ; (3) AOT-Base: $L = 3$ , $\mathbf { m } = \{ 1 \}$ ; (4) AOT-Large: $L = 3$ , $\begin{array} { r } { \dot { \mathbf { m } } = \{ 1 , 1 + \delta , 1 + 2 \delta , 1 + 3 \delta , . . . \} . } \end{array}$ . In the experiments, we also equip AOT-L with ResNet50 (R50) [16] or Swin-B [22].
134
+
135
+ AOT-S is a small model with only 2 layers of LSTT block. Compared to AOT-S, AOT-T utilizes only 1 layer of LSTT, and AOT- $\mathbf { B } / \mathbf { L }$ uses 3 layers. In AOT-T/S/B, only the first frame is considered into long-term memory, which is similar to [41, 50], leading to a smooth efficiency. In AOT-L, the predicted frames are stored into long-term memory per $\delta$ frames, following the memory reading strategy [26]. We set $\delta$ to 2/5 for training/testing.
136
+
137
+ Training Details: Following [46, 26, 23, 34], the training stage is divided into two phases: (1) pre-training on sythetic video sequence generated from static image datasets [14, 21, 10, 36, 15] by randomly applying multiple image augmentations [46]. (2) main training on the VOS benchmarks [48, 31] by randomly applying video augmentations [50]. More details are in the supplementary material.
138
+
139
+ Table 1: The quantitative evaluation on multi-object benchmarks, YouTube-VOS [48] and DAVIS 2017 [31]. Y: using YouTube-VOS for training. ∗: using 600p instead of 480p videos in inference. $^ \ddag$ : timing extrapolated from single-object speed assuming linear scaling in the number of objects.
140
+
141
+ <table><tr><td colspan="7">(a) YouTube-VOS</td><td colspan="5">(b) DAVIS 2017</td></tr><tr><td></td><td></td><td colspan="2">Seen</td><td colspan="3">Unseen</td><td>Methods</td><td>J&amp;F</td><td>J</td><td>F</td><td>FPS</td></tr><tr><td>Methods</td><td>J&amp;F</td><td>J</td><td>F</td><td>J</td><td>F</td><td>FPS</td><td colspan="3">Validation2017 Split</td><td></td><td></td></tr><tr><td colspan="3">Validation 2018 Split</td><td></td><td></td><td></td><td></td><td>CFBI [50] (Y)</td><td>81.9</td><td>79.3</td><td>84.5</td><td>5.9</td></tr><tr><td>STM[ICCV19] [26]</td><td>79.4</td><td>79.7</td><td>84.2</td><td>72.8</td><td>80.9</td><td>-</td><td>SST[13](Y)</td><td>82.5</td><td>79.9</td><td>85.1</td><td>1</td></tr><tr><td>KMN[ECCV20] [34]</td><td>81.4</td><td>81.4</td><td>85.6</td><td>75.3</td><td>83.3</td><td></td><td>KMN [34]</td><td>76.0</td><td>74.2</td><td>77.8</td><td>4.2t</td></tr><tr><td>CFBI[ECCV20] [50]</td><td>81.4</td><td>81.1</td><td>85.8</td><td>75.3</td><td>83.4</td><td>3.4</td><td>KMN [34] (Y)</td><td>82.8</td><td>80.0</td><td>85.6</td><td>4.2</td></tr><tr><td>LWL[ECCV20] [6]</td><td>81.5</td><td>80.4</td><td>84.9</td><td>76.4</td><td>84.4</td><td>1</td><td>CFBI+ [51] (Y)</td><td>82.9</td><td>80.1</td><td>85.7</td><td>5.6</td></tr><tr><td>SST[CVPR21] [13]</td><td>81.7</td><td>81.2</td><td>1</td><td>76.0</td><td>1</td><td>1</td><td>AOT-T (Y)</td><td>79.9</td><td>77.4</td><td>82.3</td><td>51.4</td></tr><tr><td>CFBI+[TPAMI21] [51]</td><td>82.8</td><td>81.8</td><td>86.6</td><td>77.1</td><td>85.6</td><td>4.0</td><td>AOT-S</td><td>79.2</td><td>76.4</td><td>82.0</td><td>40.0</td></tr><tr><td>AOT-T</td><td>80.2</td><td>80.1</td><td>84.5</td><td>74.0</td><td>82.2</td><td>41.0</td><td>AOT-S (Y)</td><td>81.3</td><td>78.7</td><td>83.9</td><td>40.0</td></tr><tr><td>AOT-S</td><td>82.6</td><td>82.0</td><td>86.7</td><td>76.6</td><td>85.0</td><td>27.1</td><td>AOT-B (Y)</td><td>82.5</td><td>79.7</td><td>85.2</td><td>29.6</td></tr><tr><td>AOT-B</td><td>83.5</td><td>82.6</td><td>87.5</td><td>77.7</td><td>86.0</td><td>20.5</td><td>AOT-L (Y)</td><td>83.8</td><td>81.1</td><td>86.4</td><td>18.7</td></tr><tr><td>AOT-L</td><td>83.8</td><td>82.9</td><td>87.9</td><td>77.7</td><td>86.5</td><td>16.0</td><td>R50-AOT-L (Y)</td><td>84.9</td><td>82.3</td><td>87.5</td><td>18.0</td></tr><tr><td>R50-AOT-L</td><td>84.1</td><td>83.7</td><td>88.5</td><td>78.1</td><td>86.1</td><td>14.9</td><td>SwinB-AOT-L (Y)</td><td>85.4</td><td>82.4</td><td>88.4</td><td>12.1</td></tr><tr><td>SwinB-AOT-L</td><td>84.5</td><td>84.3</td><td>89.3</td><td>77.9</td><td>86.4</td><td>9.3</td><td>Testing 2017 Split</td><td></td><td></td><td></td><td></td></tr><tr><td colspan="5">Validation 2019 Split</td><td></td><td colspan="5">71.4 78.7</td></tr><tr><td>CFBI[ECCV20] [50]</td><td>81.0</td><td>80.6</td><td>85.1</td><td>75.2</td><td>83.0</td><td>3.4</td><td>CFBI [50] (Y) CFBI* [50](Y)</td><td>75.0 76.6</td><td>73.0</td><td>80.1</td><td>5.3 2.9</td></tr><tr><td>SST[CVPR21] [13]</td><td>81.8</td><td>80.9</td><td>1</td><td>76.6</td><td>-</td><td>-</td><td>KMN* [34] (Y)</td><td>77.2</td><td>74.1</td><td>80.3</td><td>1</td></tr><tr><td>CFBI+[TPAMI21] [51]</td><td>82.6</td><td>81.7</td><td>86.2</td><td>77.1</td><td>85.2</td><td>4.0</td><td>CFBI+* [51](Y)</td><td>78.0</td><td>74.4</td><td>81.6</td><td>3.4</td></tr><tr><td>AOT-T</td><td>79.7</td><td>79.6</td><td>83.8</td><td>73.7</td><td>81.8</td><td>41.0</td><td>AOT-T (Y)</td><td>72.0</td><td>68.3</td><td>75.7</td><td>51.4</td></tr><tr><td>AOT-S</td><td>82.2</td><td>81.3</td><td>85.9</td><td>76.6</td><td>84.9</td><td>27.1</td><td>AOT-S (Y)</td><td>73.9</td><td>70.3</td><td>77.5</td><td>40.0</td></tr><tr><td>AOT-B</td><td>83.3</td><td>82.4</td><td>87.1</td><td>77.8</td><td>86.0</td><td>20.5</td><td>AOT-B (Y)</td><td>75.5</td><td>71.6</td><td>79.3</td><td>29.6</td></tr><tr><td>AOT-L</td><td>83.7</td><td>82.8</td><td>87.5</td><td>78.0</td><td>86.7</td><td>16.0</td><td>AOT-L (Y)</td><td>78.3</td><td>74.3</td><td>82.3</td><td>18.7</td></tr><tr><td>R50-AOT-L</td><td>84.1</td><td>83.5</td><td>88.1</td><td>78.4</td><td>86.3</td><td>14.9</td><td>R50-AOT-L (Y)</td><td>79.6</td><td>75.9</td><td>83.3</td><td>18.0</td></tr><tr><td>SwinB-AOT-L</td><td>84.5</td><td>84.0</td><td>88.8</td><td>78.4</td><td>86.7</td><td>9.3</td><td>SwinB-AOT-L (Y)</td><td>81.2</td><td>77.3</td><td>85.1</td><td>12.1</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
142
+
143
+ # 6 Experimental Results
144
+
145
+ We evaluate AOT on popular multi-object benchmarks, YouTube-VOS [48] and DAVIS 2017 [31], and single-object benchmark, DAVIS 2016 [30]. For YouTube-VOS experiments, we train our models on the YouTube-VOS 2019 training split. For DAVIS, we train on the DAVIS-2017 training split. When evaluating YouTube-VOS, we use the default 6FPS videos, and all the videos are restricted to be smaller than $1 . 3 \times 4 8 0 p$ resolution. As to DAVIS, the default 480p 24FPS videos are used.
146
+
147
+ The evaluation metric is the $\mathcal { I }$ score, calculated as the average Intersect over Union (IoU) score between the prediction and the ground truth mask, and the $\mathcal { F }$ score, calculated as an average boundary similarity measure between the boundary of the prediction and the ground truth, and their mean value, denoted as $\mathcal { I } \& \mathcal { F }$ . We evaluate all the results on official evaluation servers or with official tools.
148
+
149
+ # 6.1 Compare with the State-of-the-art Methods
150
+
151
+ YouTube-VOS [48] is the latest large-scale benchmark for multi-object video segmentation and is about 37 times larger than DAVIS 2017 (120 videos). Specifically, YouTube-VOS contains 3471 videos in the training split with 65 categories and 474/507 videos in the validation 2018/2019 split with additional 26 unseen categories. The unseen categories do not exist in the training split to evaluate algorithms’ generalization ability.
152
+
153
+ As shown in Table 1a, AOT variants achieve superior performance on YouTube-VOS compared to the previous state-of-the-art methods. With our identification mechanism, AOT-S ( $8 2 . 6 \%$ J &F )
154
+
155
+ ![](images/d28db8d7b0e6eb707adaa9bbbec03cc11f76dfc9cca42cb535353a8852c56975.jpg)
156
+ Figure 3: Qualitative results. (top) Compared with CFBI [50], AOT performs better when segmenting multiple highly similar objects (carousels and zebras). (bottom) AOT fails to segment some tiny objects (ski poles and watch) since AOT has no specific design for processing rare tiny objects.
157
+
158
+ is comparable with $\mathrm { C F B I + }$ [51] $( 8 2 . 8 \% )$ while running about $7 \times$ faster (27.1 vs 4.0FPS). By using more LSTT blocks, AOT-B improves the performance to $8 3 . 5 \%$ . Moreover, AOT-L further improves both the seen and unseen scores by utilizing the memory reading strategy, and our R50-AOT-L $( 8 4 . 1 \% / 8 4 . 1 \% )$ significantly outperforms the previous methods on the validation 2018/2019 split while maintaining an efficient speed (14.9FPS).
159
+
160
+ DAVIS 2017 [31] is a multi-object extension of DAVIS 2016. The validation split of DAVIS 2017 consists of 30 videos with 59 objects, and the training split contains 60 videos with 138 objects. Moreover, the testing split contains 30 more challenging videos with 89 objects in total.
161
+
162
+ Table 1b shows that our R50-AOT-L $( \mathbf { Y } )$ surpasses all the competitors on both the DAVIS-2017 validation $( \mathbf { 8 4 . 9 \% } )$ and testing $( 7 9 . 6 \% )$ splits and maintains an efficient speed (18.0FPS). Notably, such a multiobject speed is the same as our single-object speed on DAVIS 2016. For the first time, processing multiple objects can be as efficient as processing a single object over the AOT framework. We also evaluate our method without training with YouTube-VOS, and AOT-S $( 7 9 . 2 \% )$ performs much better than KMN [34] $( 7 6 . 0 \% )$ by $+ 3 . 2 \%$ .
163
+
164
+ Table 2: The quantitative evaluation on the single-object DAVIS 2016 [30].
165
+
166
+ <table><tr><td>Methods</td><td>J&amp;F</td><td>J</td><td>F</td><td>FPS</td></tr><tr><td>CFBI+ [51] (Y)</td><td>89.9 90.5</td><td>88.7 89.5</td><td>91.1 91.5</td><td>5.9 8.3</td></tr><tr><td>KMN [34](Y) AOT-T (Y)</td><td>86.8</td><td>86.1</td><td>87.4</td><td>51.4</td></tr><tr><td>AOT-S (Y)</td><td>89.4</td><td></td><td>88.6 90.2</td><td>40.0</td></tr><tr><td>AOT-B (Y)</td><td>89.9</td><td></td><td>88.7 91.1</td><td>29.6</td></tr><tr><td>AOT-L (Y)</td><td>90.4</td><td>89.6 91.1</td><td></td><td>18.7</td></tr><tr><td>R50-AOT-L (Y) SwinB-AOT-L (Y)</td><td>91.1 92.0</td><td></td><td>90.1 92.11 90.7 93.3 12.1</td><td>18.0</td></tr></table>
167
+
168
+ DAVIS 2016 [30] is a single-object benchmark containing 20 videos in the validation split. Although our AOT aims at improving multi-object video segmentation, we also achieve a new state-of-the-art performance on DAVIS 2016 (R50-AOT-L $( \mathbf { Y } )$ , $91 . 1 \%$ ). Under single-object scenarios, the multiobject superiority of AOT is limited, but R50-AOT-L still maintains an about $2 \times$ efficiency compared to KMN $( 1 8 . 0 \nu s 8 . 3 \mathrm { F P S } )$ ). Furthermore, our smaller variant, AOT-B $( 8 9 . 9 \% )$ , achieves comparable performance with CFBI+ $( 8 9 . 9 \% )$ while running $5 \times$ faster (29.6 vs 5.9FPS).
169
+
170
+ Apart from the above results, replacing the AOT encoder from commonly used ResNet50 to SwinB can further boost our performance to higher level (Table 1a, 1b, and 2).
171
+
172
+ Qualitative results: Fig. 3 visualizes some qualitative results in comparison with CFBI [50], which only associates each object with its relative background. As demonstrated, CFBI is easier to confuse multiple highly similar objects. In contrast, our AOT tracks and segments all the targets accurately by associating all the objects uniformly. However, AOT fails to segment some tiny objects (ski poles and watch) since we do not make special designs for tiny objects.
173
+
174
+ # 6.2 Ablation Study
175
+
176
+ In this section, we analyze the main components and hyper-parameters of AOT and evaluate their impact on the VOS performance in Table 3.
177
+
178
+ Identity number: The number of the identification vectors, $M$ , have to be larger than the object number in videos. Thus, we set $M$ to 10 in default to be consistent with the maximum object number
179
+
180
+ (a) Identity number
181
+
182
+ Table 3: Ablation study. The experiments are based on AOT-S and conducted on the validation 2018 split of YouTube-VOS [48] without pre-training on synthetic videos. Self: the position embedding type used in the self-attention. Rel: use relative positional embedding [35] on the local attention.
183
+
184
+ <table><tr><td>M J&amp;F</td><td>Jseen Junseen</td></tr><tr><td>10 80.3</td><td>80.6</td></tr><tr><td>79.0</td><td>73.7 79.4</td></tr><tr><td></td><td>72.1 70.8</td></tr><tr><td>20 78.3 30 77.2</td><td>79.4 78.5 70.2</td></tr></table>
185
+
186
+ (c) Local frame number
187
+
188
+ <table><tr><td>n J&amp;F</td><td>Jseen</td><td>Junseen</td></tr><tr><td>1 80.3</td><td>80.6</td><td>73.7</td></tr><tr><td>2</td><td>80.0 79.8</td><td>73.7</td></tr><tr><td>3 79.1</td><td>80.0</td><td>72.2</td></tr><tr><td>0 74.3</td><td>74.9</td><td>67.6</td></tr></table>
189
+
190
+ (b) Local window size
191
+ (d) LSTT block number
192
+
193
+ <table><tr><td>入 J&amp;F</td><td>Jseen</td><td>Junseen</td></tr><tr><td>15 80.3</td><td>80.6</td><td>73.7</td></tr><tr><td>11</td><td>78.8 79.5</td><td>71.9</td></tr><tr><td>7 78.3</td><td>79.3</td><td>70.9</td></tr><tr><td>0 74.3</td><td>74.9</td><td>67.6</td></tr></table>
194
+
195
+ (e) Positional embedding
196
+
197
+ <table><tr><td colspan="3"> Self Rel J&amp;F gseen</td><td></td><td>Junseen</td></tr><tr><td>sine</td><td>√</td><td>80.3</td><td>80.6</td><td>73.7</td></tr><tr><td>none</td><td>√</td><td>80.1</td><td>80.4</td><td>73.5</td></tr><tr><td>sine</td><td>1</td><td>79.7</td><td>80.1</td><td>72.9</td></tr></table>
198
+
199
+ <table><tr><td>L J&amp;F Jseen</td><td></td><td>Junseen</td><td>FPS Param</td></tr><tr><td>2</td><td>80.3 80.6</td><td>73.7</td><td>27.17.0M</td></tr><tr><td>3</td><td>80.9</td><td>81.1 74.0</td><td>20.58.3M</td></tr><tr><td>1</td><td>77.9 78.8</td><td>71.0</td><td>41.0 5.7M</td></tr></table>
200
+
201
+ in the benchmarks [48, 31]. As seen in Table 3a, $M$ larger than 10 leads to worse performance since (1) no training video contains so many objects; (2) embedding more than 10 objects into the space with only 256 dimensions is difficult.
202
+
203
+ Local window size: Table 3b shows that larger local window size, $\lambda$ , results in better performance. Without the local attention, $\lambda = 0$ , the performance of AOT significantly drops from $8 0 . 3 \%$ to $7 4 . 3 \%$ , which demonstrates the necessity of the local attention.
204
+
205
+ Local frame number: In Table 3c, we also try to employ more previous frames in the local attention, but using only the $t - 1$ frame $( 8 0 . 3 \% )$ performs better than using 2/3 frames $( 8 0 . 0 \% / 7 9 . 1 \% )$ . A possible reason is that the longer the temporal interval, the more intense the motion between frames, so it is easier to introduce more errors in the local matching when using an earlier previous frame.
206
+
207
+ LSTT block number: As shown in Table 3d, the AOT performance increases by using more LSTT blocks. Notably, the AOT with only one LSTT block $( 7 7 . 9 \% )$ reaches a fast real-time speed (41.0FPS) on YouTube-VOS, although the performance is $- 2 . 4 \%$ worse than AOT-S $( 8 0 . 3 \% )$ . By adjusting the LSTT block number, we can flexibly balance the accuracy and speed of AOT.
208
+
209
+ Position embedding: In our default setting, we apply fixed sine spatial positional embedding to the self-attention following [8], and our local attention is equipped with learned relative positional embedding [35]. The ablation study is shown in Table 3e, where removing the sine embedding decreases the performance to $8 0 . 1 \%$ slightly. In contrast, the relative embedding is more important than the sine embedding. Without the relative embedding, the performance drops to $7 9 . 7 \%$ , which means the motion relationship between adjacent frames is helpful for local attention. We also tried to apply learned positional embedding to self-attention modules, but no positive effect was observed.
210
+
211
+ # 7 Conclusion
212
+
213
+ This paper proposes a novel and efficient approach for video object segmentation by associating objects with transformers and achieves superior performance on three popular benchmarks. A simple yet effective identification mechanism is proposed to associate, match, and decode all the objects uniformly under multi-object scenarios. For the first time, processing multiple objects in VOS can be efficient as processing a single object by using the identification mechanism. In addition, a long short-term transformer is designed for constructing hierarchical object matching and propagation for VOS. The hierarchical structure allows us to flexibly balance AOT between real-time speed and stateof-the-art performance by adjusting the LSTT number. We hope the identification mechanism will help ease the future study of multi-object VOS and related tasks (e.g., video instance segmentation, interactive VOS, and multi-object tracking), and AOT will serve as a solid baseline.
214
+
215
+ # References
216
+
217
+ [1] Parallel distributed deep learning: Machine learning framework from industrial practice. https: //www.paddlepaddle.org.cn/
218
+ [2] Avinash Ramakanth, S., Venkatesh Babu, R.: Seamseg: Video object segmentation using patch seams. In: CVPR. pp. 376–383 (2014)
219
+ [3] Ba, J.L., Kiros, J.R., Hinton, G.E.: Layer normalization. In: NIPS Workshops (2016)
220
+ [4] Badrinarayanan, V., Galasso, F., Cipolla, R.: Label propagation in video sequences. In: CVPR. pp. 3265–3272. IEEE (2010)
221
+ [5] Bahdanau, D., Cho, K., Bengio, Y.: Neural machine translation by jointly learning to align and translate. In: ICLR (2015)
222
+ [6] Bhat, G., Lawin, F.J., Danelljan, M., Robinson, A., Felsberg, M., Van Gool, L., Timofte, R.: Learning what to learn for video object segmentation. In: ECCV (2020)
223
+ [7] Caelles, S., Maninis, K.K., Pont-Tuset, J., Leal-Taixé, L., Cremers, D., Van Gool, L.: One-shot video object segmentation. In: CVPR. pp. 221–230 (2017)
224
+ [8] Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., Zagoruyko, S.: End-to-end object detection with transformers. In: ECCV. pp. 213–229. Springer (2020)
225
+ [9] Chen, Y., Pont-Tuset, J., Montes, A., Van Gool, L.: Blazingly fast video object segmentation with pixel-wise metric learning. In: CVPR. pp. 1189–1198 (2018)
226
+ [10] Cheng, M.M., Mitra, N.J., Huang, X., Torr, P.H., Hu, S.M.: Global contrast based salient region detection. TPAMI 37(3), 569–582 (2014)
227
+ [11] Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: Pre-training of deep bidirectional transformers for language understanding. In: NAACL. pp. 4171—-4186 (2019)
228
+ [12] Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al.: An image is worth 16x16 words: Transformers for image recognition at scale. In: ICLR (2021)
229
+ [13] Duke, B., Ahmed, A., Wolf, C., Aarabi, P., Taylor, G.W.: Sstvos: Sparse spatiotemporal transformers for video object segmentation. In: CVPR (2021)
230
+ [14] Everingham, M., Van Gool, L., Williams, C.K., Winn, J., Zisserman, A.: The pascal visual object classes (voc) challenge. IJCV 88(2), 303–338 (2010)
231
+ [15] Hariharan, B., Arbeláez, P., Bourdev, L., Maji, S., Malik, J.: Semantic contours from inverse detectors. In: ICCV. pp. 991–998. IEEE (2011)
232
+ [16] He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: CVPR (2016)
233
+ [17] Hendrycks, D., Gimpel, K.: Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415 (2016)
234
+ [18] Hu, Y.T., Huang, J.B., Schwing, A.G.: Videomatch: Matching based video object segmentation. In: ECCV. pp. 54–70 (2018)
235
+ [19] Lin, H., Qi, X., Jia, J.: Agss-vos: Attention guided single-shot video object segmentation. In: ICCV. pp. 3949–3957 (2019)
236
+ [20] Lin, T.Y., Dollár, P., Girshick, R., He, K., Hariharan, B., Belongie, S.: Feature pyramid networks for object detection. In: CVPR. pp. 2117–2125 (2017)
237
+ [21] Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., Zitnick, C.L.: Microsoft coco: Common objects in context. In: ECCV. pp. 740–755. Springer (2014)
238
+ [22] Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., Guo, B.: Swin transformer: Hierarchical vision transformer using shifted windows. In: ICCV (2021)
239
+ [23] Lu, X., Wang, W., Danelljan, M., Zhou, T., Shen, J., Van Gool, L.: Video object segmentation with episodic graph memory networks. In: ECCV (2020)
240
+ [24] Luiten, J., Voigtlaender, P., Leibe, B.: Premvos: Proposal-generation, refinement and merging for video object segmentation. In: ACCV. pp. 565–580 (2018)
241
+ [25] Ngan, K.N., Li, H.: Video segmentation and its applications. Springer Science & Business Media (2011)
242
+ [26] Oh, S.W., Lee, J.Y., Xu, N., Kim, S.J.: Video object segmentation using space-time memory networks. In: ICCV (2019)
243
+ [27] Parmar, N., Vaswani, A., Uszkoreit, J., Kaiser, L., Shazeer, N., Ku, A., Tran, D.: Image transformer. In: ICCV. pp. 4055–4064. PMLR (2018)
244
+ [28] Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmaison, A., Antiga, L., Lerer, A.: Automatic differentiation in pytorch (2017)
245
+ [29] Perazzi, F., Khoreva, A., Benenson, R., Schiele, B., Sorkine-Hornung, A.: Learning video object segmentation from static images. In: CVPR. pp. 2663–2672 (2017)
246
+ [30] Perazzi, F., Pont-Tuset, J., McWilliams, B., Van Gool, L., Gross, M., Sorkine-Hornung, A.: A benchmark dataset and evaluation methodology for video object segmentation. In: CVPR. pp. 724–732 (2016)
247
+ [31] Pont-Tuset, J., Perazzi, F., Caelles, S., Arbeláez, P., Sorkine-Hornung, A., Van Gool, L.: The 2017 davis challenge on video object segmentation. arXiv preprint arXiv:1704.00675 (2017)
248
+ [32] Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I.: Language models are unsupervised multitask learners. OpenAI blog 1(8), 9 (2019)
249
+ [33] Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., Chen, L.C.: Mobilenetv2: Inverted residuals and linear bottlenecks. In: CVPR. pp. 4510–4520 (2018)
250
+ [34] Seong, H., Hyun, J., Kim, E.: Kernelized memory network for video object segmentation. In: ECCV (2020)
251
+ [35] Shaw, P., Uszkoreit, J., Vaswani, A.: Self-attention with relative position representations. In: NAACL. pp. 464–468 (2018)
252
+ [36] Shi, J., Yan, Q., Xu, L., Jia, J.: Hierarchical image saliency detection on extended cssd. TPAMI 38(4), 717–729 (2015)
253
+ [37] Synnaeve, G., Xu, Q., Kahn, J., Likhomanenko, T., Grave, E., Pratap, V., Sriram, A., Liptchinsky, V., Collobert, R.: End-to-end asr: from supervised to semi-supervised learning with modern architectures. In: ICML Workshops (2020)
254
+ [38] Vaswani, A., Ramachandran, P., Srinivas, A., Parmar, N., Hechtman, B., Shlens, J.: Scaling local self-attention for parameter efficient visual backbones. In: CVPR. pp. 12894–12904 (2021)
255
+ [39] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need. In: NIPS (2017)
256
+ [40] Vijayanarasimhan, S., Grauman, K.: Active frame selection for label propagation in videos. In: ECCV. pp. 496–509. Springer (2012)
257
+ [41] Voigtlaender, P., Chai, Y., Schroff, F., Adam, H., Leibe, B., Chen, L.C.: Feelvos: Fast end-to-end embedding learning for video object segmentation. In: CVPR. pp. 9481–9490 (2019)
258
+ [42] Voigtlaender, P., Leibe, B.: Online adaptation of convolutional neural networks for video object segmentation. In: BMVC (2017)
259
+ [43] Wang, X., Girshick, R., Gupta, A., He, K.: Non-local neural networks. In: CVPR. pp. 7794– 7803 (2018)
260
+ [44] Wang, Y., Xu, Z., Wang, X., Shen, C., Cheng, B., Shen, H., Xia, H.: End-to-end video instance segmentation with transformers. In: CVPR. pp. 8741–8750 (2021)
261
+ [45] Wu, Y., He, K.: Group normalization. In: ECCV. pp. 3–19 (2018)
262
+ [46] Wug Oh, S., Lee, J.Y., Sunkavalli, K., Joo Kim, S.: Fast video object segmentation by referenceguided mask propagation. In: CVPR. pp. 7376–7385 (2018)
263
+ [47] Xiao, H., Feng, J., Lin, G., Liu, Y., Zhang, M.: Monet: Deep motion exploitation for video object segmentation. In: CVPR. pp. 1140–1148 (2018)
264
+ [48] Xu, N., Yang, L., Fan, Y., Yue, D., Liang, Y., Yang, J., Huang, T.: Youtube-vos: A large-scale video object segmentation benchmark. arXiv preprint arXiv:1809.03327 (2018)
265
+ [49] Yang, L., Wang, Y., Xiong, X., Yang, J., Katsaggelos, A.K.: Efficient video object segmentation via network modulation. In: CVPR. pp. 6499–6507 (2018)
266
+ [50] Yang, Z., Wei, Y., Yang, Y.: Collaborative video object segmentation by foreground-background integration. In: ECCV (2020)
267
+ [51] Yang, Z., Wei, Y., Yang, Y.: Collaborative video object segmentation by multi-scale foregroundbackground integration. TPAMI (2021)
268
+ [52] Zhang, Z., Fidler, S., Urtasun, R.: Instance-level segmentation for autonomous driving with deep densely connected mrfs. In: CVPR. pp. 669–677 (2016)
parse/train/hl3v8io3ZYt/hl3v8io3ZYt_content_list.json ADDED
@@ -0,0 +1,1176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Associating Objects with Transformers for Video Object Segmentation ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 241,
8
+ 122,
9
+ 756,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Zongxin Yang1,2, Yunchao Wei3,4, Yi Yang1 ",
17
+ "bbox": [
18
+ 346,
19
+ 223,
20
+ 648,
21
+ 241
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1 CCAI, College of Computer Science and Technology, Zhejiang University 2 Baidu Research 3 Institute of Information Science, Beijing Jiaotong University 4 Beijing Key Laboratory of Advanced Information Science and Network {zongxinyang1996, wychao1987, yee.i.yang}@gmail.com ",
28
+ "bbox": [
29
+ 189,
30
+ 253,
31
+ 810,
32
+ 311
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 347,
43
+ 535,
44
+ 363
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "This paper investigates how to realize better and more efficient embedding learning to tackle the semi-supervised video object segmentation under challenging multi-object scenarios. The state-of-the-art methods learn to decode features with a single positive object and thus have to match and segment each target separately under multi-object scenarios, consuming multiple times computing resources. To solve the problem, we propose an Associating Objects with Transformers (AOT) approach to match and decode multiple objects uniformly. In detail, AOT employs an identification mechanism to associate multiple targets into the same high-dimensional embedding space. Thus, we can simultaneously process multiple objects’ matching and segmentation decoding as efficiently as processing a single object. For sufficiently modeling multi-object association, a Long Short-Term Transformer is designed for constructing hierarchical matching and propagation. We conduct extensive experiments on both multi-object and single-object benchmarks to examine AOT variant networks with different complexities. Particularly, our R50-AOT-L outperforms all the state-of-the-art competitors on three popular benchmarks, i.e., YouTube-VOS $( 8 4 . 1 \\% ~ \\mathcal { I } \\& \\mathcal { F } )$ , DAVIS 2017 $( 8 4 . 9 \\% )$ , and DAVIS 2016 $( 9 1 . 1 \\% )$ , while keeping more than $3 \\times$ faster multi-object run-time. Meanwhile, our AOT-T can maintain real-time multi-object speed on the above benchmarks. Based on AOT, we ranked $\\mathbf { 1 ^ { s t } }$ in the 3rd Large-scale VOS Challenge. ",
51
+ "bbox": [
52
+ 233,
53
+ 378,
54
+ 766,
55
+ 640
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 174,
65
+ 664,
66
+ 310,
67
+ 681
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Video Object Segmentation (VOS) is a fundamental task in video understanding with many potential applications, including augmented reality [25] and self-driving cars [52]. The goal of semi-supervised VOS, the main task in this paper, is to track and segment object(s) across an entire video sequence based on the object mask(s) given at the first frame. ",
74
+ "bbox": [
75
+ 174,
76
+ 695,
77
+ 823,
78
+ 751
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Thanks to the recent advance of deep neural networks, many deep learning based VOS algorithms have been proposed recently and achieved promising performance. STM [26] and its following works [34, 23] leverage a memory network to store and read the target features of predicted past frames and apply a non-local attention mechanism to match the target in the current frame. FEELVOS [41] and CFBI [50, 51] utilize global and local matching mechanisms to match target pixels or patches from both the first and the previous frames to the current frame. ",
85
+ "bbox": [
86
+ 174,
87
+ 757,
88
+ 823,
89
+ 840
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Even though the above methods have achieved significant progress, the above methods learn to decode scene features that contain a single positive object. Thus under a multi-object scenario, they have to match each object independently and ensemble all the single-object predictions into a multi-object segmentation, as shown in Fig. 1a. Such a post-ensemble manner eases network architectures’ design since the networks are not required to adapt the parameters or structures for different object numbers. However, modeling multiple objects independently, instead of uniformly, is inefficient in exploring multi-object contextual information to learn a more robust feature representation for VOS. In addition, processing multiple objects separately yet in parallel requires multiple times the amount of GPU memory and computation for processing a single object. This problem restricts the training and application of VOS under multi-object scenarios, especially when computing resources are limited. ",
96
+ "bbox": [
97
+ 174,
98
+ 847,
99
+ 823,
100
+ 902
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/4b20923d50ad97a87da9b6849c8352dfcb5e2697e5936a15d3f25e62b6e5b068.jpg",
107
+ "image_caption": [
108
+ "Figure 1: VOS methods (e.g., [50, 34]) process multi-object scenarios in a post-ensemble manner (a). In contrast, our AOT associates all the objects uniformly (b), leading to better efficiency (c). "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 176,
113
+ 87,
114
+ 805,
115
+ 218
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 174,
124
+ 285,
125
+ 825,
126
+ 368
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "To solve the problem, Fig. 1b demonstrates a feasible approach to associate and decode multiple objects uniformly in an end-to-end framework. Hence, we propose an Associating Objects with Transformers (AOT) approach to match and decode multiple targets uniformly. First, an identification mechanism is proposed to assign each target a unique identity and embed multiple targets into the same feature space. Hence, the network can learn the association or correlation among all the targets. Moreover, the multi-object segmentation can be directly decoded by utilizing assigned identity information. Second, a Long Short-Term Transformer (LSTT) is designed for constructing hierarchical object matching and propagation. Each LSTT block utilizes a long-term attention for matching with the first frame’s embedding and a short-term attention for matching with several nearby frames’ embeddings. Compared to the methods [26, 34] utilizing only one attention layer, we found hierarchical attention structures are more effective in associating multiple objects. ",
133
+ "bbox": [
134
+ 174,
135
+ 375,
136
+ 825,
137
+ 526
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "We conduct extensive experiments on two popular multi-object benchmarks for VOS, i.e., YouTubeVOS [48] and DAVIS 2017 [31], to validate the effectiveness and efficiency of the proposed AOT. Even using the light-weight Mobilenet-V2 [33] as the backbone encoder, the AOT variant networks achieve superior performance on the validation 2018 & 2019 splits of the large-scale YouTube-VOS (ours, $\\mathcal { T } \\& \\mathcal { F } 8 2 . 6 \\sim 8 4 . 5 \\%$ & $8 2 . 2 \\sim 8 4 . 5 \\%$ while keeping more than $\\mathbf { 2 \\times }$ faster multi-object run-time $( \\mathbf { 2 7 . 1 } \\sim \\mathbf { 9 . 3 F P S }$ ) compared to the state-of-the-art competitors (e.g., CFBI [50], $8 1 . 4 \\%$ & $8 1 . 0 \\%$ , 3.4FPS). We also achieve new state-of-the-art performance on both the DAVIS-2017 validation $( 8 5 . 4 \\% )$ and testing $( 8 1 . 2 \\% )$ splits. Moreover, AOT is effective under single-object scenarios as well and outperforms previous methods on DAVIS 2016 [30] $( 9 2 . 0 \\% )$ , a popular single-object benchmark. Besides, our smallest variant, AOT-T, can maintain real-time multi-object speed on all above benchmarks (51.4FPS on $4 8 0 \\mathrm { p }$ videos). Particularly, AOT ranked $\\mathbf { 1 ^ { s t } }$ in the Track 1 (Video Object Segmentation) of the 3rd Large-scale Video Object Segmentation Challenge. ",
144
+ "bbox": [
145
+ 173,
146
+ 534,
147
+ 825,
148
+ 699
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Overall, our contributions are summarized as follows: ",
155
+ "bbox": [
156
+ 176,
157
+ 705,
158
+ 526,
159
+ 719
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "• We propose an identification mechanism to associate and decode multiple targets uniformly for VOS. For the first time, multi-object training and inference can be efficient as single-object ones, as demonstrated in Fig. 1c. • Based on the identification mechanism, we design a new efficient VOS framework, i.e., Long ShortTerm Transformer (LSTT), for constructing hierarchical multi-object matching and propagation. LSTT achieves superior performance on VOS benchmarks [48, 31, 30] while maintaining better efficiency than previous state-of-the-art methods. To the best of our knowledge, LSTT is the first hierarchical framework for object matching and propagation by applying transformers [39] to VOS. ",
166
+ "bbox": [
167
+ 173,
168
+ 724,
169
+ 826,
170
+ 833
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2 Related Work ",
177
+ "text_level": 1,
178
+ "bbox": [
179
+ 174,
180
+ 852,
181
+ 321,
182
+ 869
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Semi-supervised Video Object Segmentation. Given one or more annotated frames (the first frame in general), semi-supervised VOS methods propagate the manual labeling to the entire video sequence. Traditional methods often solve an optimization problem with an energy defined over a graph structure [4, 40, 2]. In recent years, VOS methods have been mainly developed based on deep neural networks (DNN), leading to better results. ",
189
+ "bbox": [
190
+ 174,
191
+ 883,
192
+ 821,
193
+ 911
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "",
200
+ "bbox": [
201
+ 176,
202
+ 90,
203
+ 823,
204
+ 133
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Early DNN methods rely on fine-tuning the networks at test time to make segmentation networks focus on a specific object. Among them, OSVOS [7] and MoNet [47] fine-tune pre-trained networks on the first-frame ground-truth at test time. OnAVOS [42] extends the first-frame fine-tuning by introducing an online adaptation mechanism. Following these approaches, MaskTrack [29] and PReM [24] utilize optical flow to help propagate the segmentation mask from one frame to the next. Despite achieving promising results, the test-time fine-tuning restricts the network efficiency. ",
211
+ "bbox": [
212
+ 174,
213
+ 140,
214
+ 825,
215
+ 222
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Recent works aim to achieve a better run-time and avoid using online fine-tuning. OSMN [49] employs one convolutional network to extract object embedding and another one to guide segmentation predictions. PML [9] learns pixel-wise embedding with a nearest neighbor classifier, and VideoMatch [18] uses a soft matching layer that maps the pixels of the current frame to the first frame in a learned embedding space. Following PML and VideoMatch, FEELVOS [41] and CFBI [50, 51] extend the pixel-level matching mechanism by additionally matching between the current frame and the previous frame. RGMP [46] also gathers guidance information from both the first frame and the previous frame but uses a siamese encoder with two shared streams. STM [26] and its following works (e.g., EGMN [23] and KMN [34]) leverage a memory network to embed past-frame predictions into memory and apply a non-local attention mechanism on the memory to decode the segmentation of the current frame. SST [13] utilizes attention mechanisms in a different way, i.e., transformer blocks [39] are used to extract pixel-level affinity maps and spatial-temporal features. The features are target-agnostic, instead of target-aware like our LSTT, since the mask information in past frames is not propagated and aggregated in the blocks. Instead of using matching mechanisms, LWL [6] proposes to use an online few-shot learner to learn to decode object segmentation. ",
222
+ "bbox": [
223
+ 174,
224
+ 229,
225
+ 825,
226
+ 435
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "The above methods learn to decode features with a single positive object and thus have to match and segment each target separately under multi-object scenarios, consuming multiple times computing resources of single-object cases. The problem restricts the application and development of the VOS with multiple targets. Hence, we propose our AOT to associate and decode multiple targets uniformly and simultaneously, as efficiently as processing a single object. ",
233
+ "bbox": [
234
+ 174,
235
+ 443,
236
+ 825,
237
+ 512
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Visual Transformers. Transformers [39] was proposed to build hierarchical attention-based networks for machine translation. Similar to Non-local Neural Networks [43], transformer blocks compute correlation with all the input elements and aggregate their information by using attention mechanisms [5]. Compared to RNNs, transformer networks model global correlation or attention in parallel, leading to better memory efficiency, and thus have been widely used in natural language processing (NLP) tasks [11, 32, 37]. Recently, transformer blocks were introduced to many computer vision tasks, such as image classification [12, 38, 22], object detection [8]/segmentation [44], and image generation [27], and have shown promising performance compared to CNN-based networks. ",
244
+ "bbox": [
245
+ 173,
246
+ 518,
247
+ 825,
248
+ 630
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Many VOS methods [19, 26, 23, 34] have utilized attention mechanisms to match the object features and propagate the segmentation mask from past frames to the current frames. Nevertheless, these methods consider only one positive target in the attention processes, and how to build hierarchical attention-based propagation has been rarely studied. In this paper, we carefully design a long shortterm transformer block, which can effectively construct multi-object matching and propagation within hierarchical structures for VOS. ",
255
+ "bbox": [
256
+ 174,
257
+ 635,
258
+ 825,
259
+ 718
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "3 Revisit Previous Solutions for Video Object Segmentation ",
266
+ "text_level": 1,
267
+ "bbox": [
268
+ 174,
269
+ 742,
270
+ 684,
271
+ 761
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "In VOS, many common video scenarios have multiple targets or objects required for tracking and segmenting. Benefit from deep networks, current state-of-the-art VOS methods [26, 50] have achieved promising performance. Nevertheless, these methods focus on matching and decoding a single object. Under a multi-object scenario, they thus have to match each object independently and ensemble all the single-object predictions into a multi-object prediction, as demonstrated in Fig. 1a. Let $F ^ { \\mathcal { N } }$ denotes a VOS network for predicting single-object segmentation, and $A$ is an ensemble function such as sof tmax or the soft aggregation [26], the formula of such a post-ensemble manner for processing $N$ objects is like, ",
278
+ "bbox": [
279
+ 173,
280
+ 777,
281
+ 825,
282
+ 888
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "equation",
288
+ "img_path": "images/fe01cde9aa527d55dbb4d443cc8f8d6a99c8296f17c01dfbb964b27d6508fd7e.jpg",
289
+ "text": "$$\nY ^ { \\prime } = A ( F ^ { \\mathcal { N } } ( I ^ { t } , I ^ { \\mathbf { m } } , Y _ { 1 } ^ { \\mathbf { m } } ) , . . . , F ^ { \\mathcal { N } } ( I ^ { t } , I ^ { \\mathbf { m } } , Y _ { N } ^ { \\mathbf { m } } ) ) ,\n$$",
290
+ "text_format": "latex",
291
+ "bbox": [
292
+ 333,
293
+ 893,
294
+ 663,
295
+ 912
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "image",
301
+ "img_path": "images/81621c58233797a6e0afd78c46fa2910bf9e19ffc51406290c92eaa29bb254e6.jpg",
302
+ "image_caption": [
303
+ "Figure 2: (a) The overview of our Associating Objects with Transformers (AOT). The multi-object masks are embedded by using our Identification mechanism. Moreover, a $L$ -layer Long ShortTerm Transformer is responsible for matching multiple objects uniformly and hierarchically. (b) An illustration of the IDentity assignment (ID) designed for transferring a $N .$ -object mask into an identification embedding. (c) The structure of an LSTT block. LN: layer normalization [3]. "
304
+ ],
305
+ "image_footnote": [],
306
+ "bbox": [
307
+ 183,
308
+ 90,
309
+ 823,
310
+ 277
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "where $I ^ { t }$ and $I ^ { \\mathbf { m } }$ denote the image of the current frame and memory frames respectively, and $\\{ Y _ { 1 } ^ { \\mathbf { m } } , . . . , Y _ { N } ^ { \\mathbf { m } } \\}$ are the memory masks (containing the given reference mask and past predicted masks) of all the $N$ objects. This manner extends networks designed for single-object VOS into multi-object applications, so there is no need to adapt the network for different object numbers. ",
317
+ "bbox": [
318
+ 174,
319
+ 385,
320
+ 825,
321
+ 440
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Although the above post-ensemble manner is prevalent and straightforward in the VOS field, processing multiple objects separately yet in parallel requires multiple times the amount of GPU memory and computation for matching a single object and decoding the segmentation. This problem restricts the training and application of VOS under multi-object scenarios when computing resources are limited. To make the multi-object training and inference as efficient as single-object ones, an expected solution should be capable of associating and decoding multiple objects uniformly instead of individually. To achieve such an objective, we propose an identification mechanism to embed the masks of any number (required to be smaller than a pre-defined large number) of targets into the same high-dimensional space. Based on the identification mechanism, a novel and efficient framework, i.e., Associating Objects with Transformers (AOT), is designed for propagating all the object embeddings uniformly and hierarchically, from memory frames to the current frame. ",
328
+ "bbox": [
329
+ 173,
330
+ 446,
331
+ 825,
332
+ 599
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "As shown in Fig. 1b, our AOT associates and segments multiple objects within an end-to-end framework. For the first time, processing multiple objects can be as efficient as processing a single object (Fig. 1c). Compared to previous methods, our training under multi-object scenarios is also more efficient since AOT can associate multiple object regions and learn contrastive feature embeddings among them uniformly. ",
339
+ "bbox": [
340
+ 174,
341
+ 606,
342
+ 825,
343
+ 676
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "4 Associating Objects with Transformers ",
350
+ "text_level": 1,
351
+ "bbox": [
352
+ 174,
353
+ 694,
354
+ 531,
355
+ 712
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "In this section, we introduce our identification mechanism proposed for efficient multi-object VOS. Then, we design a new VOS framework, i.e., long short-term transformer, based on the identification mechanism for constructing hierarchical multi-object matching and propagation. ",
362
+ "bbox": [
363
+ 174,
364
+ 724,
365
+ 826,
366
+ 767
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "4.1 Identification Mechanism for Multi-object Association ",
373
+ "text_level": 1,
374
+ "bbox": [
375
+ 173,
376
+ 782,
377
+ 589,
378
+ 797
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "Many recent VOS methods [26, 23, 34] utilized attention mechanisms and achieved promising results. To formulate, we define $Q \\in \\mathbb { R } ^ { H W \\times C }$ , $K \\in \\mathbb { R } ^ { T H W \\times C }$ , and $V \\in \\mathbb { R } ^ { T H W \\times C }$ as the query embedding of the current frame, the key embedding of the memory frames, and the value embedding of the memory frames respectively, where $T$ , $H$ , $W$ , $C$ denote the temporal, height, width, and channel dimensions. The formula of a common attention-based matching and propagation is, ",
385
+ "bbox": [
386
+ 174,
387
+ 808,
388
+ 825,
389
+ 878
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "equation",
395
+ "img_path": "images/6272bc964970d7b8a86961da9e5dd2c9153cadfc6c636f1e0a78349cea15fb96.jpg",
396
+ "text": "$$\nA t t ( Q , K , V ) = C o r r ( Q , K ) V = s o f t m a x ( \\frac { Q K ^ { t r } } { \\sqrt { C } } ) V ,\n$$",
397
+ "text_format": "latex",
398
+ "bbox": [
399
+ 313,
400
+ 882,
401
+ 684,
402
+ 916
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "where a matching map is calculated by the correlation function Corr, and then the value embedding, $V$ , will be propagated into each location of the current frame. ",
409
+ "bbox": [
410
+ 173,
411
+ 90,
412
+ 825,
413
+ 119
414
+ ],
415
+ "page_idx": 4
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "In the common single-object propagation [26], the binary mask information in memory frames is embedded into $V$ with an additional memory encoder network and thus can also be propagated to the current frame by using Eq. 2. A convolutional decoder network following the propagated feature will decode the aggregated feature and predict the single-object probability logit of the current frame. ",
420
+ "bbox": [
421
+ 174,
422
+ 126,
423
+ 825,
424
+ 181
425
+ ],
426
+ "page_idx": 4
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "The main problem of propagating and decoding multi-object mask information in an end-to-end network is how to adapt the network to different target numbers. To overcome this problem, we propose an identification mechanism consisting of identification embedding and decoding based on attention mechanisms. ",
431
+ "bbox": [
432
+ 174,
433
+ 188,
434
+ 825,
435
+ 243
436
+ ],
437
+ "page_idx": 4
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "First, an Identification Embedding mechanism is proposed to embed the masks of multiple different targets into the same feature space for propagation. As seen in Fig. 2b, we initialize an identity bank, $D \\in \\mathbb { R } ^ { M \\times C }$ , where $M$ identification vectors with $C$ dimensions are stored. For embedding multiple different target masks, each target will be randomly assigned a different identification vector. Assuming $N$ $N < M )$ targets are in the video scenery, the formula of embedding the targets’ one-hot mask, $\\bar { Y } \\in \\{ 0 , 1 \\} ^ { T H W \\times N }$ , into a identification embedding, $E \\in \\mathbb { R } ^ { T H W \\times C }$ , by randomly assigning identification vector from the bank $D$ is, ",
442
+ "bbox": [
443
+ 173,
444
+ 248,
445
+ 825,
446
+ 347
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "equation",
452
+ "img_path": "images/a66a306a12822a0c2ed8fd6523a5b5e2acfa39a9f6c2daaba5b4f716afb76ae4.jpg",
453
+ "text": "$$\nE = I D ( Y , D ) = Y P D ,\n$$",
454
+ "text_format": "latex",
455
+ "bbox": [
456
+ 413,
457
+ 352,
458
+ 583,
459
+ 369
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "where $P \\in \\{ 0 , 1 \\} ^ { N \\times M }$ is a random permutation matrix, satisfying that $P ^ { t r } P$ is equal to a $M \\times M$ unit matrix, for randomly selecting $N$ identification embeddings. After the $I D$ assignment, different target has different identification embedding, and thus we can propagate all the target identification information from memory frames to the current frame by attaching the identification embedding $E$ with the attention value $V$ , i.e., ",
466
+ "bbox": [
467
+ 174,
468
+ 373,
469
+ 825,
470
+ 444
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "equation",
476
+ "img_path": "images/bb90ef7c58e2a6560697512730711309eed38442c22b2f1dedba305fa99dfc82.jpg",
477
+ "text": "$$\nV ^ { \\prime } = A t t I D ( Q , K , V , Y | D ) = A t t ( Q , K , V + I D ( Y , D ) ) = A t t ( Q , K , V + E ) ,\n$$",
478
+ "text_format": "latex",
479
+ "bbox": [
480
+ 227,
481
+ 449,
482
+ 767,
483
+ 467
484
+ ],
485
+ "page_idx": 4
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "where $V ^ { \\prime } \\in \\mathbb { R } ^ { H W \\times C }$ aggregates all the multiple targets’ embeddings from the propagation. ",
490
+ "bbox": [
491
+ 168,
492
+ 472,
493
+ 772,
494
+ 487
495
+ ],
496
+ "page_idx": 4
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "For Identification Decoding, i.e., predicting all the targets’ probabilities from the aggregated feature $V ^ { \\prime }$ , we firstly predict the probability logit for every identity in the bank $D$ by employing a convolutional decoding network $\\hat { F } ^ { \\mathcal { D } }$ , and then select the assigned ones and calculate the probabilities, i.e., ",
501
+ "bbox": [
502
+ 173,
503
+ 492,
504
+ 825,
505
+ 546
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "equation",
511
+ "img_path": "images/5dc44551b1550deaf423c37ac06ef99d222af885da9d1eeeaf95cae967afb2d0.jpg",
512
+ "text": "$$\nY ^ { \\prime } = s o f t m a x ( P F ^ { \\mathcal { D } } ( V ^ { \\prime } ) ) = s o f t m a x ( P L ^ { D } ) ,\n$$",
513
+ "text_format": "latex",
514
+ "bbox": [
515
+ 336,
516
+ 545,
517
+ 660,
518
+ 564
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "where $L ^ { D } \\in \\mathbb { R } ^ { H W \\times M }$ is all the $M$ identities’ probability logits, $P$ is the same as the selecting matrix used in the identity assignment (Eq. 3), and $\\begin{array} { r } { Y ^ { \\dot { \\prime } } \\in [ 0 , 1 ] ^ { \\check { H } W \\times N } } \\end{array}$ is the probability prediction of all the $N$ targets. ",
525
+ "bbox": [
526
+ 176,
527
+ 565,
528
+ 825,
529
+ 608
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "For training, common multi-class segmentation losses, such as cross-entropy loss, can be used to optimize the multi-object $Y ^ { \\prime }$ regarding the ground-truth labels. The identity bank $D$ is trainable and randomly initialized at the training beginning. To ensure that all the identification vectors have the same opportunity to compete with each other, we randomly reinitialize the identification selecting matrix $P$ in each video sample and each optimization iteration. ",
536
+ "bbox": [
537
+ 174,
538
+ 613,
539
+ 825,
540
+ 684
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "4.2 Long Short-Term Transformer for Hierarchical Matching and Propagation ",
547
+ "text_level": 1,
548
+ "bbox": [
549
+ 174,
550
+ 699,
551
+ 735,
552
+ 714
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "Previous methods [26, 34] always utilize only one layer of attention (Eq. 2) to aggregate singleobject information. In our identification-based multi-object pipeline, we found that a single attention layer cannot fully model multi-object association, which naturally should be more complicated than single-object processes. Thus, we consider constructing hierarchical matching and propagation by using a series of attention layers. Recently, transformer blocks [39] have been demonstrated to be stable and promising in constructing hierarchical attention structures in visual tasks [8, 12]. Based on transformer blocks, we carefully design a Long Short-Term Transformer (LSTT) block for multi-object VOS. ",
559
+ "bbox": [
560
+ 173,
561
+ 723,
562
+ 826,
563
+ 835
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "Following the common transformer blocks [39, 11], LSTT firstly employs a self-attention layer, which is responsible for learning the association or correlation among the targets within the current frame. Then, LSTT additionally introduces a long-term attention, for aggregating targets’ information from long-term memory frames and a short-term attention, for learning temporal smoothness from nearby short-term frames. The final module is based on a common 2-layer feed-forward MLP with ",
570
+ "bbox": [
571
+ 174,
572
+ 842,
573
+ 825,
574
+ 911
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "GELU [17] non-linearity in between. Fig. 2c shows the structure of an LSTT block. Notably, all these attention modules are implemented in the form of the multi-head attention [39], i.e., multiple attention modules followed by concatenation and a linear projection. Nevertheless, we only introduce their single-head formulas below for the sake of simplicity. ",
581
+ "bbox": [
582
+ 173,
583
+ 90,
584
+ 825,
585
+ 147
586
+ ],
587
+ "page_idx": 5
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Long-Term Attention is responsible for aggregating targets’ information from past memory frames, which contains the reference frame and stored predicted frames, to the current frame. Since the time intervals between the current frame and past frames are variable and can be long-term, the temporal smoothness is difficult to guarantee. Thus, the long-term attention employs non-local attention like Eq. 2. Let $X _ { l } ^ { t } \\in \\mathbb { R } ^ { H W \\times \\mathbf { \\breve { C } } }$ denotes the input feature embedding at time $t$ and in block $l$ , where $l \\in \\{ 1 , . . . , L \\}$ is the block index of LSTT, the formula of the long-term attention is, ",
592
+ "bbox": [
593
+ 173,
594
+ 152,
595
+ 825,
596
+ 237
597
+ ],
598
+ "page_idx": 5
599
+ },
600
+ {
601
+ "type": "equation",
602
+ "img_path": "images/298540a67d349cc53f93ca87e2e942cfeca6bf54be7b8a569b53621f45eda71b.jpg",
603
+ "text": "$$\nA t t L T ( X _ { l } ^ { t } , X _ { l } ^ { \\mathbf { m } } , Y ^ { \\mathbf { m } } ) = A t t I D ( X _ { l } ^ { t } W _ { l } ^ { K } , X _ { l } ^ { \\mathbf { m } } W _ { l } ^ { K } , X _ { l } ^ { \\mathbf { m } } W _ { l } ^ { V } , Y ^ { \\mathbf { m } } | D ) ,\n$$",
604
+ "text_format": "latex",
605
+ "bbox": [
606
+ 264,
607
+ 242,
608
+ 732,
609
+ 262
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "where $X _ { l } ^ { \\mathbf { m } } = C o n c a t ( X _ { l } ^ { m _ { 1 } } , . . . , X _ { l } ^ { m _ { T } } )$ and $Y ^ { \\mathbf { m } } = { C o n c a t } ( Y ^ { m _ { 1 } } , . . . , Y ^ { m _ { T } } )$ are the input feature embeddings and target masks of memory frames with indices $\\mathbf { m } = \\{ m _ { 1 } , . . . , m _ { T } \\}$ . Besides, $W _ { l } ^ { K } \\in$ $\\mathbb { R } ^ { C \\times C _ { k } }$ and $W _ { l } ^ { V } \\in \\mathbb { R } ^ { C \\times C _ { v } }$ are trainable parameters of the space projections for matching and propagation, respectively. Instead of using different projections for ${ \\bar { X } } _ { l } ^ { t }$ and $X _ { l } ^ { \\mathbf { m } }$ , we found the training of LSTT is more stable with a siamese-like matching, $i . e .$ , matching between the features within the same embedding space $\\mathit { l }$ -th features with the same projection of $\\breve { W } _ { l } ^ { K }$ ). ",
616
+ "bbox": [
617
+ 173,
618
+ 266,
619
+ 825,
620
+ 354
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "Short-Term Attention is employed for aggregating information in a spatial-temporal neighbourhood for each current-frame location. Intuitively, the image changes across several contiguous video frames are always smooth and continuous. Thus, the target matching and propagation in contiguous frames can be restricted in a small spatial-temporal neighborhood, leading to better efficiency than non-local processes. Considering $n$ neighbouring frames with indices $\\mathbf { n } = \\{ t - 1 , . . . , t - n \\}$ are in the spatialtemporal neighbourhood, the features and masks of these frames are $X _ { l } ^ { \\mathbf { n } } = C o n c a t ( X _ { l } ^ { t - 1 } , . . . , X _ { l } ^ { t - n } )$ and $Y ^ { \\mathbf { n } } = C o n c a t ( Y ^ { t - 1 } , . . . , Y ^ { t - n } )$ , and then the formula of the short-term attention at each spatial location $p$ is, ",
627
+ "bbox": [
628
+ 173,
629
+ 359,
630
+ 825,
631
+ 473
632
+ ],
633
+ "page_idx": 5
634
+ },
635
+ {
636
+ "type": "equation",
637
+ "img_path": "images/350cd618e23980aaf63aedd4474387ae341c106e9beabfee09e7141aea64e2f1.jpg",
638
+ "text": "$$\nA t t S T ( X _ { l } ^ { t } , X _ { l } ^ { { \\bf n } } , Y ^ { { \\bf n } } | p ) = A t t L T ( X _ { l , p } ^ { t } , X _ { l , N ( p ) } ^ { { \\bf n } } , Y _ { l , N ( p ) } ^ { { \\bf n } } ) ,\n$$",
639
+ "text_format": "latex",
640
+ "bbox": [
641
+ 305,
642
+ 472,
643
+ 691,
644
+ 492
645
+ ],
646
+ "page_idx": 5
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "where $X _ { l , p } ^ { t } \\in \\mathbb { R } ^ { 1 \\times C }$ is the feature of $X _ { l } ^ { t }$ at location $p , { \\mathcal { N } } ( p )$ is a $\\lambda \\times \\lambda$ spatial neighbourhood l,p centered at location $p$ , and thus $X _ { l , N ( p ) } ^ { \\mathbf { n } }$ land $Y _ { l , \\mathcal { N } ( p ) } ^ { \\mathbf { n } }$ are the features and masks of the spatial-temporal neighbourhood, respectively, with a shape of $n \\lambda ^ { 2 } \\times C$ or $n \\lambda ^ { 2 } \\times N$ . ",
651
+ "bbox": [
652
+ 174,
653
+ 494,
654
+ 825,
655
+ 544
656
+ ],
657
+ "page_idx": 5
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "When extracting features of the first frame $t = 1$ , there is no memory frames or previous frames, and hence we use $\\bar { X } _ { l } ^ { 1 }$ to replace $X _ { l } ^ { \\mathbf { m } }$ and $X _ { l } ^ { \\mathbf { n } }$ . In other words, the long-term attention and the short-term attention are changed into self-attentions without adjusting the network structures and parameters. ",
662
+ "bbox": [
663
+ 174,
664
+ 549,
665
+ 825,
666
+ 592
667
+ ],
668
+ "page_idx": 5
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "5 Implementation Details ",
673
+ "text_level": 1,
674
+ "bbox": [
675
+ 174,
676
+ 611,
677
+ 401,
678
+ 627
679
+ ],
680
+ "page_idx": 5
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "Network Details: For sufficiently validating the effectiveness of our identification mechanism and LSTT, we mainly use light-weight backbone encoder, MobileNet-V2 [33], and decoder, FPN [20] with Group Normalization [45]. The spatial neighborhood size $\\lambda$ is set to 15, and the number of identification vectors, $M$ , is set to 10, which is consistent with the maximum object number in the benchmarks [48, 31]. AOT performs well with PaddlePaddle [1] and PyTorch [28]. More details can be found in the supplementary material. ",
685
+ "bbox": [
686
+ 173,
687
+ 641,
688
+ 825,
689
+ 726
690
+ ],
691
+ "page_idx": 5
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "Architecture Variants: We build several AOT variant networks with different LSTT layer number $L$ or long-term memory size m. The hyper-parameters of these variants are: (1) AOT-Tiny: $L = 1$ , $\\mathbf { m } = \\bar { \\{ 1 \\} }$ ; (2) AOT-Small: $L = 2$ , $\\mathbf { m } = \\{ 1 \\}$ ; (3) AOT-Base: $L = 3$ , $\\mathbf { m } = \\{ 1 \\}$ ; (4) AOT-Large: $L = 3$ , $\\begin{array} { r } { \\dot { \\mathbf { m } } = \\{ 1 , 1 + \\delta , 1 + 2 \\delta , 1 + 3 \\delta , . . . \\} . } \\end{array}$ . In the experiments, we also equip AOT-L with ResNet50 (R50) [16] or Swin-B [22]. ",
696
+ "bbox": [
697
+ 173,
698
+ 731,
699
+ 825,
700
+ 801
701
+ ],
702
+ "page_idx": 5
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "AOT-S is a small model with only 2 layers of LSTT block. Compared to AOT-S, AOT-T utilizes only 1 layer of LSTT, and AOT- $\\mathbf { B } / \\mathbf { L }$ uses 3 layers. In AOT-T/S/B, only the first frame is considered into long-term memory, which is similar to [41, 50], leading to a smooth efficiency. In AOT-L, the predicted frames are stored into long-term memory per $\\delta$ frames, following the memory reading strategy [26]. We set $\\delta$ to 2/5 for training/testing. ",
707
+ "bbox": [
708
+ 174,
709
+ 806,
710
+ 825,
711
+ 877
712
+ ],
713
+ "page_idx": 5
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "Training Details: Following [46, 26, 23, 34], the training stage is divided into two phases: (1) pre-training on sythetic video sequence generated from static image datasets [14, 21, 10, 36, 15] by randomly applying multiple image augmentations [46]. (2) main training on the VOS benchmarks [48, 31] by randomly applying video augmentations [50]. More details are in the supplementary material. ",
718
+ "bbox": [
719
+ 173,
720
+ 882,
721
+ 823,
722
+ 911
723
+ ],
724
+ "page_idx": 5
725
+ },
726
+ {
727
+ "type": "table",
728
+ "img_path": "images/c44640ca33dd3668c5c530922353c500cd5c8ae513a042dd06c3146e1f53e6fb.jpg",
729
+ "table_caption": [
730
+ "Table 1: The quantitative evaluation on multi-object benchmarks, YouTube-VOS [48] and DAVIS 2017 [31]. Y: using YouTube-VOS for training. ∗: using 600p instead of 480p videos in inference. $^ \\ddag$ : timing extrapolated from single-object speed assuming linear scaling in the number of objects. "
731
+ ],
732
+ "table_footnote": [],
733
+ "table_body": "<table><tr><td colspan=\"7\">(a) YouTube-VOS</td><td colspan=\"5\">(b) DAVIS 2017</td></tr><tr><td></td><td></td><td colspan=\"2\">Seen</td><td colspan=\"3\">Unseen</td><td>Methods</td><td>J&amp;F</td><td>J</td><td>F</td><td>FPS</td></tr><tr><td>Methods</td><td>J&amp;F</td><td>J</td><td>F</td><td>J</td><td>F</td><td>FPS</td><td colspan=\"3\">Validation2017 Split</td><td></td><td></td></tr><tr><td colspan=\"3\">Validation 2018 Split</td><td></td><td></td><td></td><td></td><td>CFBI [50] (Y)</td><td>81.9</td><td>79.3</td><td>84.5</td><td>5.9</td></tr><tr><td>STM[ICCV19] [26]</td><td>79.4</td><td>79.7</td><td>84.2</td><td>72.8</td><td>80.9</td><td>-</td><td>SST[13](Y)</td><td>82.5</td><td>79.9</td><td>85.1</td><td>1</td></tr><tr><td>KMN[ECCV20] [34]</td><td>81.4</td><td>81.4</td><td>85.6</td><td>75.3</td><td>83.3</td><td></td><td>KMN [34]</td><td>76.0</td><td>74.2</td><td>77.8</td><td>4.2t</td></tr><tr><td>CFBI[ECCV20] [50]</td><td>81.4</td><td>81.1</td><td>85.8</td><td>75.3</td><td>83.4</td><td>3.4</td><td>KMN [34] (Y)</td><td>82.8</td><td>80.0</td><td>85.6</td><td>4.2</td></tr><tr><td>LWL[ECCV20] [6]</td><td>81.5</td><td>80.4</td><td>84.9</td><td>76.4</td><td>84.4</td><td>1</td><td>CFBI+ [51] (Y)</td><td>82.9</td><td>80.1</td><td>85.7</td><td>5.6</td></tr><tr><td>SST[CVPR21] [13]</td><td>81.7</td><td>81.2</td><td>1</td><td>76.0</td><td>1</td><td>1</td><td>AOT-T (Y)</td><td>79.9</td><td>77.4</td><td>82.3</td><td>51.4</td></tr><tr><td>CFBI+[TPAMI21] [51]</td><td>82.8</td><td>81.8</td><td>86.6</td><td>77.1</td><td>85.6</td><td>4.0</td><td>AOT-S</td><td>79.2</td><td>76.4</td><td>82.0</td><td>40.0</td></tr><tr><td>AOT-T</td><td>80.2</td><td>80.1</td><td>84.5</td><td>74.0</td><td>82.2</td><td>41.0</td><td>AOT-S (Y)</td><td>81.3</td><td>78.7</td><td>83.9</td><td>40.0</td></tr><tr><td>AOT-S</td><td>82.6</td><td>82.0</td><td>86.7</td><td>76.6</td><td>85.0</td><td>27.1</td><td>AOT-B (Y)</td><td>82.5</td><td>79.7</td><td>85.2</td><td>29.6</td></tr><tr><td>AOT-B</td><td>83.5</td><td>82.6</td><td>87.5</td><td>77.7</td><td>86.0</td><td>20.5</td><td>AOT-L (Y)</td><td>83.8</td><td>81.1</td><td>86.4</td><td>18.7</td></tr><tr><td>AOT-L</td><td>83.8</td><td>82.9</td><td>87.9</td><td>77.7</td><td>86.5</td><td>16.0</td><td>R50-AOT-L (Y)</td><td>84.9</td><td>82.3</td><td>87.5</td><td>18.0</td></tr><tr><td>R50-AOT-L</td><td>84.1</td><td>83.7</td><td>88.5</td><td>78.1</td><td>86.1</td><td>14.9</td><td>SwinB-AOT-L (Y)</td><td>85.4</td><td>82.4</td><td>88.4</td><td>12.1</td></tr><tr><td>SwinB-AOT-L</td><td>84.5</td><td>84.3</td><td>89.3</td><td>77.9</td><td>86.4</td><td>9.3</td><td>Testing 2017 Split</td><td></td><td></td><td></td><td></td></tr><tr><td colspan=\"5\">Validation 2019 Split</td><td></td><td colspan=\"5\">71.4 78.7</td></tr><tr><td>CFBI[ECCV20] [50]</td><td>81.0</td><td>80.6</td><td>85.1</td><td>75.2</td><td>83.0</td><td>3.4</td><td>CFBI [50] (Y) CFBI* [50](Y)</td><td>75.0 76.6</td><td>73.0</td><td>80.1</td><td>5.3 2.9</td></tr><tr><td>SST[CVPR21] [13]</td><td>81.8</td><td>80.9</td><td>1</td><td>76.6</td><td>-</td><td>-</td><td>KMN* [34] (Y)</td><td>77.2</td><td>74.1</td><td>80.3</td><td>1</td></tr><tr><td>CFBI+[TPAMI21] [51]</td><td>82.6</td><td>81.7</td><td>86.2</td><td>77.1</td><td>85.2</td><td>4.0</td><td>CFBI+* [51](Y)</td><td>78.0</td><td>74.4</td><td>81.6</td><td>3.4</td></tr><tr><td>AOT-T</td><td>79.7</td><td>79.6</td><td>83.8</td><td>73.7</td><td>81.8</td><td>41.0</td><td>AOT-T (Y)</td><td>72.0</td><td>68.3</td><td>75.7</td><td>51.4</td></tr><tr><td>AOT-S</td><td>82.2</td><td>81.3</td><td>85.9</td><td>76.6</td><td>84.9</td><td>27.1</td><td>AOT-S (Y)</td><td>73.9</td><td>70.3</td><td>77.5</td><td>40.0</td></tr><tr><td>AOT-B</td><td>83.3</td><td>82.4</td><td>87.1</td><td>77.8</td><td>86.0</td><td>20.5</td><td>AOT-B (Y)</td><td>75.5</td><td>71.6</td><td>79.3</td><td>29.6</td></tr><tr><td>AOT-L</td><td>83.7</td><td>82.8</td><td>87.5</td><td>78.0</td><td>86.7</td><td>16.0</td><td>AOT-L (Y)</td><td>78.3</td><td>74.3</td><td>82.3</td><td>18.7</td></tr><tr><td>R50-AOT-L</td><td>84.1</td><td>83.5</td><td>88.1</td><td>78.4</td><td>86.3</td><td>14.9</td><td>R50-AOT-L (Y)</td><td>79.6</td><td>75.9</td><td>83.3</td><td>18.0</td></tr><tr><td>SwinB-AOT-L</td><td>84.5</td><td>84.0</td><td>88.8</td><td>78.4</td><td>86.7</td><td>9.3</td><td>SwinB-AOT-L (Y)</td><td>81.2</td><td>77.3</td><td>85.1</td><td>12.1</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>",
734
+ "bbox": [
735
+ 173,
736
+ 147,
737
+ 826,
738
+ 531
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "",
745
+ "bbox": [
746
+ 173,
747
+ 555,
748
+ 826,
749
+ 583
750
+ ],
751
+ "page_idx": 6
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "6 Experimental Results ",
756
+ "text_level": 1,
757
+ "bbox": [
758
+ 174,
759
+ 602,
760
+ 385,
761
+ 619
762
+ ],
763
+ "page_idx": 6
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "We evaluate AOT on popular multi-object benchmarks, YouTube-VOS [48] and DAVIS 2017 [31], and single-object benchmark, DAVIS 2016 [30]. For YouTube-VOS experiments, we train our models on the YouTube-VOS 2019 training split. For DAVIS, we train on the DAVIS-2017 training split. When evaluating YouTube-VOS, we use the default 6FPS videos, and all the videos are restricted to be smaller than $1 . 3 \\times 4 8 0 p$ resolution. As to DAVIS, the default 480p 24FPS videos are used. ",
768
+ "bbox": [
769
+ 174,
770
+ 633,
771
+ 825,
772
+ 704
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "The evaluation metric is the $\\mathcal { I }$ score, calculated as the average Intersect over Union (IoU) score between the prediction and the ground truth mask, and the $\\mathcal { F }$ score, calculated as an average boundary similarity measure between the boundary of the prediction and the ground truth, and their mean value, denoted as $\\mathcal { I } \\& \\mathcal { F }$ . We evaluate all the results on official evaluation servers or with official tools. ",
779
+ "bbox": [
780
+ 174,
781
+ 709,
782
+ 825,
783
+ 765
784
+ ],
785
+ "page_idx": 6
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "6.1 Compare with the State-of-the-art Methods ",
790
+ "text_level": 1,
791
+ "bbox": [
792
+ 173,
793
+ 781,
794
+ 516,
795
+ 796
796
+ ],
797
+ "page_idx": 6
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "YouTube-VOS [48] is the latest large-scale benchmark for multi-object video segmentation and is about 37 times larger than DAVIS 2017 (120 videos). Specifically, YouTube-VOS contains 3471 videos in the training split with 65 categories and 474/507 videos in the validation 2018/2019 split with additional 26 unseen categories. The unseen categories do not exist in the training split to evaluate algorithms’ generalization ability. ",
802
+ "bbox": [
803
+ 174,
804
+ 806,
805
+ 825,
806
+ 877
807
+ ],
808
+ "page_idx": 6
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "As shown in Table 1a, AOT variants achieve superior performance on YouTube-VOS compared to the previous state-of-the-art methods. With our identification mechanism, AOT-S ( $8 2 . 6 \\%$ J &F ) ",
813
+ "bbox": [
814
+ 173,
815
+ 882,
816
+ 823,
817
+ 911
818
+ ],
819
+ "page_idx": 6
820
+ },
821
+ {
822
+ "type": "image",
823
+ "img_path": "images/d28db8d7b0e6eb707adaa9bbbec03cc11f76dfc9cca42cb535353a8852c56975.jpg",
824
+ "image_caption": [
825
+ "Figure 3: Qualitative results. (top) Compared with CFBI [50], AOT performs better when segmenting multiple highly similar objects (carousels and zebras). (bottom) AOT fails to segment some tiny objects (ski poles and watch) since AOT has no specific design for processing rare tiny objects. "
826
+ ],
827
+ "image_footnote": [],
828
+ "bbox": [
829
+ 179,
830
+ 87,
831
+ 816,
832
+ 237
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "is comparable with $\\mathrm { C F B I + }$ [51] $( 8 2 . 8 \\% )$ while running about $7 \\times$ faster (27.1 vs 4.0FPS). By using more LSTT blocks, AOT-B improves the performance to $8 3 . 5 \\%$ . Moreover, AOT-L further improves both the seen and unseen scores by utilizing the memory reading strategy, and our R50-AOT-L $( 8 4 . 1 \\% / 8 4 . 1 \\% )$ significantly outperforms the previous methods on the validation 2018/2019 split while maintaining an efficient speed (14.9FPS). ",
839
+ "bbox": [
840
+ 173,
841
+ 315,
842
+ 823,
843
+ 385
844
+ ],
845
+ "page_idx": 7
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "DAVIS 2017 [31] is a multi-object extension of DAVIS 2016. The validation split of DAVIS 2017 consists of 30 videos with 59 objects, and the training split contains 60 videos with 138 objects. Moreover, the testing split contains 30 more challenging videos with 89 objects in total. ",
850
+ "bbox": [
851
+ 174,
852
+ 391,
853
+ 516,
854
+ 474
855
+ ],
856
+ "page_idx": 7
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Table 1b shows that our R50-AOT-L $( \\mathbf { Y } )$ surpasses all the competitors on both the DAVIS-2017 validation $( \\mathbf { 8 4 . 9 \\% } )$ and testing $( 7 9 . 6 \\% )$ splits and maintains an efficient speed (18.0FPS). Notably, such a multiobject speed is the same as our single-object speed on DAVIS 2016. For the first time, processing multiple objects can be as efficient as processing a single object over the AOT framework. We also evaluate our method without training with YouTube-VOS, and AOT-S $( 7 9 . 2 \\% )$ performs much better than KMN [34] $( 7 6 . 0 \\% )$ by $+ 3 . 2 \\%$ . ",
861
+ "bbox": [
862
+ 174,
863
+ 481,
864
+ 517,
865
+ 577
866
+ ],
867
+ "page_idx": 7
868
+ },
869
+ {
870
+ "type": "table",
871
+ "img_path": "images/348bf4a6b547417548ce288d20925e0e0e53045e09e729a957689f7e8b744780.jpg",
872
+ "table_caption": [
873
+ "Table 2: The quantitative evaluation on the single-object DAVIS 2016 [30]. "
874
+ ],
875
+ "table_footnote": [],
876
+ "table_body": "<table><tr><td>Methods</td><td>J&amp;F</td><td>J</td><td>F</td><td>FPS</td></tr><tr><td>CFBI+ [51] (Y)</td><td>89.9 90.5</td><td>88.7 89.5</td><td>91.1 91.5</td><td>5.9 8.3</td></tr><tr><td>KMN [34](Y) AOT-T (Y)</td><td>86.8</td><td>86.1</td><td>87.4</td><td>51.4</td></tr><tr><td>AOT-S (Y)</td><td>89.4</td><td></td><td>88.6 90.2</td><td>40.0</td></tr><tr><td>AOT-B (Y)</td><td>89.9</td><td></td><td>88.7 91.1</td><td>29.6</td></tr><tr><td>AOT-L (Y)</td><td>90.4</td><td>89.6 91.1</td><td></td><td>18.7</td></tr><tr><td>R50-AOT-L (Y) SwinB-AOT-L (Y)</td><td>91.1 92.0</td><td></td><td>90.1 92.11 90.7 93.3 12.1</td><td>18.0</td></tr></table>",
877
+ "bbox": [
878
+ 531,
879
+ 426,
880
+ 823,
881
+ 571
882
+ ],
883
+ "page_idx": 7
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "",
888
+ "bbox": [
889
+ 174,
890
+ 578,
891
+ 821,
892
+ 606
893
+ ],
894
+ "page_idx": 7
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "DAVIS 2016 [30] is a single-object benchmark containing 20 videos in the validation split. Although our AOT aims at improving multi-object video segmentation, we also achieve a new state-of-the-art performance on DAVIS 2016 (R50-AOT-L $( \\mathbf { Y } )$ , $91 . 1 \\%$ ). Under single-object scenarios, the multiobject superiority of AOT is limited, but R50-AOT-L still maintains an about $2 \\times$ efficiency compared to KMN $( 1 8 . 0 \\nu s 8 . 3 \\mathrm { F P S } )$ ). Furthermore, our smaller variant, AOT-B $( 8 9 . 9 \\% )$ , achieves comparable performance with CFBI+ $( 8 9 . 9 \\% )$ while running $5 \\times$ faster (29.6 vs 5.9FPS). ",
899
+ "bbox": [
900
+ 174,
901
+ 611,
902
+ 825,
903
+ 695
904
+ ],
905
+ "page_idx": 7
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Apart from the above results, replacing the AOT encoder from commonly used ResNet50 to SwinB can further boost our performance to higher level (Table 1a, 1b, and 2). ",
910
+ "bbox": [
911
+ 173,
912
+ 700,
913
+ 823,
914
+ 729
915
+ ],
916
+ "page_idx": 7
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Qualitative results: Fig. 3 visualizes some qualitative results in comparison with CFBI [50], which only associates each object with its relative background. As demonstrated, CFBI is easier to confuse multiple highly similar objects. In contrast, our AOT tracks and segments all the targets accurately by associating all the objects uniformly. However, AOT fails to segment some tiny objects (ski poles and watch) since we do not make special designs for tiny objects. ",
921
+ "bbox": [
922
+ 174,
923
+ 734,
924
+ 825,
925
+ 806
926
+ ],
927
+ "page_idx": 7
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "6.2 Ablation Study ",
932
+ "text_level": 1,
933
+ "bbox": [
934
+ 174,
935
+ 823,
936
+ 318,
937
+ 837
938
+ ],
939
+ "page_idx": 7
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "In this section, we analyze the main components and hyper-parameters of AOT and evaluate their impact on the VOS performance in Table 3. ",
944
+ "bbox": [
945
+ 176,
946
+ 848,
947
+ 821,
948
+ 877
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Identity number: The number of the identification vectors, $M$ , have to be larger than the object number in videos. Thus, we set $M$ to 10 in default to be consistent with the maximum object number ",
955
+ "bbox": [
956
+ 174,
957
+ 882,
958
+ 820,
959
+ 911
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "(a) Identity number ",
966
+ "bbox": [
967
+ 240,
968
+ 147,
969
+ 359,
970
+ 161
971
+ ],
972
+ "page_idx": 8
973
+ },
974
+ {
975
+ "type": "table",
976
+ "img_path": "images/38bdb8a37076722ea490f4a55b151f3f4b6834e0950fdf22591dfd032f561c90.jpg",
977
+ "table_caption": [
978
+ "Table 3: Ablation study. The experiments are based on AOT-S and conducted on the validation 2018 split of YouTube-VOS [48] without pre-training on synthetic videos. Self: the position embedding type used in the self-attention. Rel: use relative positional embedding [35] on the local attention. "
979
+ ],
980
+ "table_footnote": [],
981
+ "table_body": "<table><tr><td>M J&amp;F</td><td>Jseen Junseen</td></tr><tr><td>10 80.3</td><td>80.6</td></tr><tr><td>79.0</td><td>73.7 79.4</td></tr><tr><td></td><td>72.1 70.8</td></tr><tr><td>20 78.3 30 77.2</td><td>79.4 78.5 70.2</td></tr></table>",
982
+ "bbox": [
983
+ 214,
984
+ 169,
985
+ 387,
986
+ 250
987
+ ],
988
+ "page_idx": 8
989
+ },
990
+ {
991
+ "type": "table",
992
+ "img_path": "images/1794d96dbe224fe96917bf84154b94e453fcbd22d23ef75a1ed6d2f4d0d97af2.jpg",
993
+ "table_caption": [
994
+ "(c) Local frame number "
995
+ ],
996
+ "table_footnote": [],
997
+ "table_body": "<table><tr><td>n J&amp;F</td><td>Jseen</td><td>Junseen</td></tr><tr><td>1 80.3</td><td>80.6</td><td>73.7</td></tr><tr><td>2</td><td>80.0 79.8</td><td>73.7</td></tr><tr><td>3 79.1</td><td>80.0</td><td>72.2</td></tr><tr><td>0 74.3</td><td>74.9</td><td>67.6</td></tr></table>",
998
+ "bbox": [
999
+ 612,
1000
+ 169,
1001
+ 781,
1002
+ 250
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "table",
1008
+ "img_path": "images/f777949608447e03887eb761751a994c4818c1c70c7ab557adf4003dfd356fe6.jpg",
1009
+ "table_caption": [
1010
+ "(b) Local window size ",
1011
+ "(d) LSTT block number "
1012
+ ],
1013
+ "table_footnote": [],
1014
+ "table_body": "<table><tr><td>入 J&amp;F</td><td>Jseen</td><td>Junseen</td></tr><tr><td>15 80.3</td><td>80.6</td><td>73.7</td></tr><tr><td>11</td><td>78.8 79.5</td><td>71.9</td></tr><tr><td>7 78.3</td><td>79.3</td><td>70.9</td></tr><tr><td>0 74.3</td><td>74.9</td><td>67.6</td></tr></table>",
1015
+ "bbox": [
1016
+ 411,
1017
+ 169,
1018
+ 584,
1019
+ 250
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "table",
1025
+ "img_path": "images/96f260fcb5115e3e4353ef083e4a885d31a3f345b1ee48930cf82f596f60eeb7.jpg",
1026
+ "table_caption": [
1027
+ "(e) Positional embedding "
1028
+ ],
1029
+ "table_footnote": [],
1030
+ "table_body": "<table><tr><td colspan=\"3\"> Self Rel J&amp;F gseen</td><td></td><td>Junseen</td></tr><tr><td>sine</td><td>√</td><td>80.3</td><td>80.6</td><td>73.7</td></tr><tr><td>none</td><td>√</td><td>80.1</td><td>80.4</td><td>73.5</td></tr><tr><td>sine</td><td>1</td><td>79.7</td><td>80.1</td><td>72.9</td></tr></table>",
1031
+ "bbox": [
1032
+ 514,
1033
+ 280,
1034
+ 727,
1035
+ 348
1036
+ ],
1037
+ "page_idx": 8
1038
+ },
1039
+ {
1040
+ "type": "table",
1041
+ "img_path": "images/8fe7954246dbaa89228972c34632a88cb8eff77c57066fca26317596b66150c3.jpg",
1042
+ "table_caption": [],
1043
+ "table_footnote": [],
1044
+ "table_body": "<table><tr><td>L J&amp;F Jseen</td><td></td><td>Junseen</td><td>FPS Param</td></tr><tr><td>2</td><td>80.3 80.6</td><td>73.7</td><td>27.17.0M</td></tr><tr><td>3</td><td>80.9</td><td>81.1 74.0</td><td>20.58.3M</td></tr><tr><td>1</td><td>77.9 78.8</td><td>71.0</td><td>41.0 5.7M</td></tr></table>",
1045
+ "bbox": [
1046
+ 254,
1047
+ 280,
1048
+ 500,
1049
+ 349
1050
+ ],
1051
+ "page_idx": 8
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "in the benchmarks [48, 31]. As seen in Table 3a, $M$ larger than 10 leads to worse performance since (1) no training video contains so many objects; (2) embedding more than 10 objects into the space with only 256 dimensions is difficult. ",
1056
+ "bbox": [
1057
+ 174,
1058
+ 385,
1059
+ 825,
1060
+ 428
1061
+ ],
1062
+ "page_idx": 8
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Local window size: Table 3b shows that larger local window size, $\\lambda$ , results in better performance. Without the local attention, $\\lambda = 0$ , the performance of AOT significantly drops from $8 0 . 3 \\%$ to $7 4 . 3 \\%$ , which demonstrates the necessity of the local attention. ",
1067
+ "bbox": [
1068
+ 174,
1069
+ 434,
1070
+ 826,
1071
+ 476
1072
+ ],
1073
+ "page_idx": 8
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "Local frame number: In Table 3c, we also try to employ more previous frames in the local attention, but using only the $t - 1$ frame $( 8 0 . 3 \\% )$ performs better than using 2/3 frames $( 8 0 . 0 \\% / 7 9 . 1 \\% )$ . A possible reason is that the longer the temporal interval, the more intense the motion between frames, so it is easier to introduce more errors in the local matching when using an earlier previous frame. ",
1078
+ "bbox": [
1079
+ 174,
1080
+ 482,
1081
+ 825,
1082
+ 537
1083
+ ],
1084
+ "page_idx": 8
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "LSTT block number: As shown in Table 3d, the AOT performance increases by using more LSTT blocks. Notably, the AOT with only one LSTT block $( 7 7 . 9 \\% )$ reaches a fast real-time speed (41.0FPS) on YouTube-VOS, although the performance is $- 2 . 4 \\%$ worse than AOT-S $( 8 0 . 3 \\% )$ . By adjusting the LSTT block number, we can flexibly balance the accuracy and speed of AOT. ",
1089
+ "bbox": [
1090
+ 173,
1091
+ 544,
1092
+ 825,
1093
+ 599
1094
+ ],
1095
+ "page_idx": 8
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Position embedding: In our default setting, we apply fixed sine spatial positional embedding to the self-attention following [8], and our local attention is equipped with learned relative positional embedding [35]. The ablation study is shown in Table 3e, where removing the sine embedding decreases the performance to $8 0 . 1 \\%$ slightly. In contrast, the relative embedding is more important than the sine embedding. Without the relative embedding, the performance drops to $7 9 . 7 \\%$ , which means the motion relationship between adjacent frames is helpful for local attention. We also tried to apply learned positional embedding to self-attention modules, but no positive effect was observed. ",
1100
+ "bbox": [
1101
+ 173,
1102
+ 606,
1103
+ 825,
1104
+ 703
1105
+ ],
1106
+ "page_idx": 8
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "7 Conclusion ",
1111
+ "text_level": 1,
1112
+ "bbox": [
1113
+ 174,
1114
+ 734,
1115
+ 297,
1116
+ 751
1117
+ ],
1118
+ "page_idx": 8
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "This paper proposes a novel and efficient approach for video object segmentation by associating objects with transformers and achieves superior performance on three popular benchmarks. A simple yet effective identification mechanism is proposed to associate, match, and decode all the objects uniformly under multi-object scenarios. For the first time, processing multiple objects in VOS can be efficient as processing a single object by using the identification mechanism. In addition, a long short-term transformer is designed for constructing hierarchical object matching and propagation for VOS. The hierarchical structure allows us to flexibly balance AOT between real-time speed and stateof-the-art performance by adjusting the LSTT number. We hope the identification mechanism will help ease the future study of multi-object VOS and related tasks (e.g., video instance segmentation, interactive VOS, and multi-object tracking), and AOT will serve as a solid baseline. ",
1123
+ "bbox": [
1124
+ 174,
1125
+ 772,
1126
+ 825,
1127
+ 911
1128
+ ],
1129
+ "page_idx": 8
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "References ",
1134
+ "text_level": 1,
1135
+ "bbox": [
1136
+ 174,
1137
+ 89,
1138
+ 267,
1139
+ 106
1140
+ ],
1141
+ "page_idx": 9
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "[1] Parallel distributed deep learning: Machine learning framework from industrial practice. https: //www.paddlepaddle.org.cn/ \n[2] Avinash Ramakanth, S., Venkatesh Babu, R.: Seamseg: Video object segmentation using patch seams. In: CVPR. pp. 376–383 (2014) \n[3] Ba, J.L., Kiros, J.R., Hinton, G.E.: Layer normalization. In: NIPS Workshops (2016) \n[4] Badrinarayanan, V., Galasso, F., Cipolla, R.: Label propagation in video sequences. In: CVPR. pp. 3265–3272. IEEE (2010) \n[5] Bahdanau, D., Cho, K., Bengio, Y.: Neural machine translation by jointly learning to align and translate. In: ICLR (2015) \n[6] Bhat, G., Lawin, F.J., Danelljan, M., Robinson, A., Felsberg, M., Van Gool, L., Timofte, R.: Learning what to learn for video object segmentation. In: ECCV (2020) \n[7] Caelles, S., Maninis, K.K., Pont-Tuset, J., Leal-Taixé, L., Cremers, D., Van Gool, L.: One-shot video object segmentation. In: CVPR. pp. 221–230 (2017) \n[8] Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., Zagoruyko, S.: End-to-end object detection with transformers. In: ECCV. pp. 213–229. Springer (2020) \n[9] Chen, Y., Pont-Tuset, J., Montes, A., Van Gool, L.: Blazingly fast video object segmentation with pixel-wise metric learning. In: CVPR. pp. 1189–1198 (2018) \n[10] Cheng, M.M., Mitra, N.J., Huang, X., Torr, P.H., Hu, S.M.: Global contrast based salient region detection. TPAMI 37(3), 569–582 (2014) \n[11] Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: Pre-training of deep bidirectional transformers for language understanding. In: NAACL. pp. 4171—-4186 (2019) \n[12] Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al.: An image is worth 16x16 words: Transformers for image recognition at scale. In: ICLR (2021) \n[13] Duke, B., Ahmed, A., Wolf, C., Aarabi, P., Taylor, G.W.: Sstvos: Sparse spatiotemporal transformers for video object segmentation. In: CVPR (2021) \n[14] Everingham, M., Van Gool, L., Williams, C.K., Winn, J., Zisserman, A.: The pascal visual object classes (voc) challenge. IJCV 88(2), 303–338 (2010) \n[15] Hariharan, B., Arbeláez, P., Bourdev, L., Maji, S., Malik, J.: Semantic contours from inverse detectors. In: ICCV. pp. 991–998. IEEE (2011) \n[16] He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: CVPR (2016) \n[17] Hendrycks, D., Gimpel, K.: Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415 (2016) \n[18] Hu, Y.T., Huang, J.B., Schwing, A.G.: Videomatch: Matching based video object segmentation. In: ECCV. pp. 54–70 (2018) \n[19] Lin, H., Qi, X., Jia, J.: Agss-vos: Attention guided single-shot video object segmentation. In: ICCV. pp. 3949–3957 (2019) \n[20] Lin, T.Y., Dollár, P., Girshick, R., He, K., Hariharan, B., Belongie, S.: Feature pyramid networks for object detection. In: CVPR. pp. 2117–2125 (2017) \n[21] Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., Zitnick, C.L.: Microsoft coco: Common objects in context. In: ECCV. pp. 740–755. Springer (2014) \n[22] Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., Guo, B.: Swin transformer: Hierarchical vision transformer using shifted windows. In: ICCV (2021) \n[23] Lu, X., Wang, W., Danelljan, M., Zhou, T., Shen, J., Van Gool, L.: Video object segmentation with episodic graph memory networks. In: ECCV (2020) \n[24] Luiten, J., Voigtlaender, P., Leibe, B.: Premvos: Proposal-generation, refinement and merging for video object segmentation. In: ACCV. pp. 565–580 (2018) \n[25] Ngan, K.N., Li, H.: Video segmentation and its applications. Springer Science & Business Media (2011) \n[26] Oh, S.W., Lee, J.Y., Xu, N., Kim, S.J.: Video object segmentation using space-time memory networks. In: ICCV (2019) \n[27] Parmar, N., Vaswani, A., Uszkoreit, J., Kaiser, L., Shazeer, N., Ku, A., Tran, D.: Image transformer. In: ICCV. pp. 4055–4064. PMLR (2018) \n[28] Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmaison, A., Antiga, L., Lerer, A.: Automatic differentiation in pytorch (2017) \n[29] Perazzi, F., Khoreva, A., Benenson, R., Schiele, B., Sorkine-Hornung, A.: Learning video object segmentation from static images. In: CVPR. pp. 2663–2672 (2017) \n[30] Perazzi, F., Pont-Tuset, J., McWilliams, B., Van Gool, L., Gross, M., Sorkine-Hornung, A.: A benchmark dataset and evaluation methodology for video object segmentation. In: CVPR. pp. 724–732 (2016) \n[31] Pont-Tuset, J., Perazzi, F., Caelles, S., Arbeláez, P., Sorkine-Hornung, A., Van Gool, L.: The 2017 davis challenge on video object segmentation. arXiv preprint arXiv:1704.00675 (2017) \n[32] Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I.: Language models are unsupervised multitask learners. OpenAI blog 1(8), 9 (2019) \n[33] Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., Chen, L.C.: Mobilenetv2: Inverted residuals and linear bottlenecks. In: CVPR. pp. 4510–4520 (2018) \n[34] Seong, H., Hyun, J., Kim, E.: Kernelized memory network for video object segmentation. In: ECCV (2020) \n[35] Shaw, P., Uszkoreit, J., Vaswani, A.: Self-attention with relative position representations. In: NAACL. pp. 464–468 (2018) \n[36] Shi, J., Yan, Q., Xu, L., Jia, J.: Hierarchical image saliency detection on extended cssd. TPAMI 38(4), 717–729 (2015) \n[37] Synnaeve, G., Xu, Q., Kahn, J., Likhomanenko, T., Grave, E., Pratap, V., Sriram, A., Liptchinsky, V., Collobert, R.: End-to-end asr: from supervised to semi-supervised learning with modern architectures. In: ICML Workshops (2020) \n[38] Vaswani, A., Ramachandran, P., Srinivas, A., Parmar, N., Hechtman, B., Shlens, J.: Scaling local self-attention for parameter efficient visual backbones. In: CVPR. pp. 12894–12904 (2021) \n[39] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., Polosukhin, I.: Attention is all you need. In: NIPS (2017) \n[40] Vijayanarasimhan, S., Grauman, K.: Active frame selection for label propagation in videos. In: ECCV. pp. 496–509. Springer (2012) \n[41] Voigtlaender, P., Chai, Y., Schroff, F., Adam, H., Leibe, B., Chen, L.C.: Feelvos: Fast end-to-end embedding learning for video object segmentation. In: CVPR. pp. 9481–9490 (2019) \n[42] Voigtlaender, P., Leibe, B.: Online adaptation of convolutional neural networks for video object segmentation. In: BMVC (2017) \n[43] Wang, X., Girshick, R., Gupta, A., He, K.: Non-local neural networks. In: CVPR. pp. 7794– 7803 (2018) \n[44] Wang, Y., Xu, Z., Wang, X., Shen, C., Cheng, B., Shen, H., Xia, H.: End-to-end video instance segmentation with transformers. In: CVPR. pp. 8741–8750 (2021) \n[45] Wu, Y., He, K.: Group normalization. In: ECCV. pp. 3–19 (2018) \n[46] Wug Oh, S., Lee, J.Y., Sunkavalli, K., Joo Kim, S.: Fast video object segmentation by referenceguided mask propagation. In: CVPR. pp. 7376–7385 (2018) \n[47] Xiao, H., Feng, J., Lin, G., Liu, Y., Zhang, M.: Monet: Deep motion exploitation for video object segmentation. In: CVPR. pp. 1140–1148 (2018) \n[48] Xu, N., Yang, L., Fan, Y., Yue, D., Liang, Y., Yang, J., Huang, T.: Youtube-vos: A large-scale video object segmentation benchmark. arXiv preprint arXiv:1809.03327 (2018) \n[49] Yang, L., Wang, Y., Xiong, X., Yang, J., Katsaggelos, A.K.: Efficient video object segmentation via network modulation. In: CVPR. pp. 6499–6507 (2018) \n[50] Yang, Z., Wei, Y., Yang, Y.: Collaborative video object segmentation by foreground-background integration. In: ECCV (2020) \n[51] Yang, Z., Wei, Y., Yang, Y.: Collaborative video object segmentation by multi-scale foregroundbackground integration. TPAMI (2021) \n[52] Zhang, Z., Fidler, S., Urtasun, R.: Instance-level segmentation for autonomous driving with deep densely connected mrfs. In: CVPR. pp. 669–677 (2016) ",
1146
+ "bbox": [
1147
+ 171,
1148
+ 125,
1149
+ 828,
1150
+ 910
1151
+ ],
1152
+ "page_idx": 9
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "",
1157
+ "bbox": [
1158
+ 171,
1159
+ 80,
1160
+ 830,
1161
+ 911
1162
+ ],
1163
+ "page_idx": 10
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "",
1168
+ "bbox": [
1169
+ 171,
1170
+ 90,
1171
+ 826,
1172
+ 185
1173
+ ],
1174
+ "page_idx": 11
1175
+ }
1176
+ ]
parse/train/hl3v8io3ZYt/hl3v8io3ZYt_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/hl3v8io3ZYt/hl3v8io3ZYt_model.json ADDED
The diff for this file is too large to render. See raw diff