Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/4i23Bjlh4Y9/4i23Bjlh4Y9.md +561 -0
- parse/train/4i23Bjlh4Y9/4i23Bjlh4Y9_content_list.json +1507 -0
- parse/train/4i23Bjlh4Y9/4i23Bjlh4Y9_middle.json +0 -0
- parse/train/4i23Bjlh4Y9/4i23Bjlh4Y9_model.json +0 -0
- parse/train/Hygm8jC9FQ/Hygm8jC9FQ.md +346 -0
- parse/train/Hygm8jC9FQ/Hygm8jC9FQ_content_list.json +1785 -0
- parse/train/Hygm8jC9FQ/Hygm8jC9FQ_middle.json +0 -0
- parse/train/Hygm8jC9FQ/Hygm8jC9FQ_model.json +0 -0
- parse/train/S19dR9x0b/S19dR9x0b.md +285 -0
- parse/train/S19dR9x0b/S19dR9x0b_content_list.json +1465 -0
- parse/train/S19dR9x0b/S19dR9x0b_middle.json +0 -0
- parse/train/S19dR9x0b/S19dR9x0b_model.json +0 -0
- parse/train/SJzvDjAcK7/SJzvDjAcK7.md +484 -0
- parse/train/SJzvDjAcK7/SJzvDjAcK7_content_list.json +0 -0
- parse/train/SJzvDjAcK7/SJzvDjAcK7_middle.json +0 -0
- parse/train/SJzvDjAcK7/SJzvDjAcK7_model.json +0 -0
- parse/train/Syx7WyBtwB/Syx7WyBtwB.md +357 -0
- parse/train/Syx7WyBtwB/Syx7WyBtwB_content_list.json +1868 -0
- parse/train/Syx7WyBtwB/Syx7WyBtwB_middle.json +0 -0
- parse/train/Syx7WyBtwB/Syx7WyBtwB_model.json +0 -0
parse/train/4i23Bjlh4Y9/4i23Bjlh4Y9.md
ADDED
|
@@ -0,0 +1,561 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# On the Generalization of Neural Networks Trained with SGD: Information-Theoretical Bounds and Implications
|
| 2 |
+
|
| 3 |
+
Anonymous Author(s)
|
| 4 |
+
Affiliation
|
| 5 |
+
Address
|
| 6 |
+
email
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
1 Understanding the generalization behaviour of deep neural networks is an important
|
| 11 |
+
2 theme of modern research in machine learning. In this paper, we follow up on
|
| 12 |
+
3 a recent work of Neu [49] and present new information-theoretic upper bounds
|
| 13 |
+
4 for the generalization error of neural networks trained with SGD. Our bounds and
|
| 14 |
+
5 experimental study provide new insights on the SGD training of neural networks.
|
| 15 |
+
6 They also point to a new and simple regularization scheme which we show performs
|
| 16 |
+
7 comparably to the current state of the art.
|
| 17 |
+
|
| 18 |
+
# 8 1 Introduction
|
| 19 |
+
|
| 20 |
+
9 The outstanding performance of deep learning has brought to the surface some intriguing properties
|
| 21 |
+
10 of deep neural networks, one of which is the observation that despite their high capacity, deep neural
|
| 22 |
+
11 networks tend to generalize well [80]. This contradicts classical wisdom in statistical learning theory
|
| 23 |
+
12 (e.g., [71] ) and has stimulated intense research interest in understanding the generalization behaviour
|
| 24 |
+
13 of modern neural networks.
|
| 25 |
+
14 One theme of research focuses on the study of over-parameterized neural networks, where generaliza
|
| 26 |
+
15 tion bounds are obtained [22, 1, 6, 50, 52, 53, 2, 3] and a curious “double descent” phenomenon is
|
| 27 |
+
16 observed and analyzed [9, 46, 78]. New bounding techniques for analyzing generalization have also
|
| 28 |
+
17 been developed, utilizing information theoretic quantities [64, 65, 77, 5, 13, 69, 23, 7, 4, 30, 84]. The
|
| 29 |
+
18 bounds provided by these techniques have the advantages of accounting for both the data structure
|
| 30 |
+
19 and the learning algorithm.
|
| 31 |
+
20 The generalization ability of neural networks trained with mini-batched stochastic gradient descent
|
| 32 |
+
21 [61], simply referred to SGD in this paper, has also been widely studied. Specifically, built on a
|
| 33 |
+
22 connection between stability and generalization [12], a stability-based bound is first presented in [32],
|
| 34 |
+
23 followed by a surge of research effort exploiting similar approaches [44, 17, 26, 43, 8]. Information
|
| 35 |
+
24 theoretic bounding techniques have also demonstrated great power in analyzing SGD-like algorithms.
|
| 36 |
+
25 For example, [55] is the first to utilize information-theoretical bound in analyzing the generalization
|
| 37 |
+
26 ability of SGLD [28, 74]. The bound was subsquently improved by [47, 31, 62, 72]. Inspired by the
|
| 38 |
+
27 work of [55], [49] presents an information- theoretic analysis of the models trained with SGD. The
|
| 39 |
+
28 analysis of [49] constructs an auxiliary weight process parallel to SGD training and upper-bounds the
|
| 40 |
+
29 generalization error through this auxiliary process.
|
| 41 |
+
30 Another line of research connects the generalization of neural networks with the flatness of loss
|
| 42 |
+
31 minima [35] found by SGD or its variant [40, 20, 24, 51, 16, 37, 38, 83, 27]. This understanding
|
| 43 |
+
32 has led to the discovery of new SGD-based training algorithms for improved generalization. For
|
| 44 |
+
33 example, in a concurrent development by [83] and [27], a local “max-pooling” operation is applied to
|
| 45 |
+
34 the loss landscape prior to the SGD updates. This approach, referred to as AMP[83] or SAM[27], is
|
| 46 |
+
35 shown to make SGD favor flatter minima and achieve the state-of-the-art performance among various
|
| 47 |
+
36 competitive regularization schemes [83].
|
| 48 |
+
37 In this paper, we focus on investigating the generalization of neural networks trained with SGD.
|
| 49 |
+
38 We build upon the work of [49]. Following the same construction of the auxiliary weight process
|
| 50 |
+
39 in [49], we present upper bounds of generalization error that improve upon [49] in two ways. The
|
| 51 |
+
40 first improvement is via removing an unnecessary term in the bounds of [49] by invoking the HWI
|
| 52 |
+
41 inequality [60]. The second improvement is via replacing a sample-level mutual information term in
|
| 53 |
+
42 [49] with an instance-level mutual information term, exploiting a recent result of [13]. The bounds we
|
| 54 |
+
43 obtain decompose into two terms, one measuring the impact of training trajectories (“the trajectory
|
| 55 |
+
44 term”) and the other measuring the impact of the flatness of the found solution (“the flatness term”).
|
| 56 |
+
45 We empirically validate the derived bounds. Various insights are also obtained experimentally
|
| 57 |
+
46 concerning the generalization of neural networks under SGD training. For example, the batch size of
|
| 58 |
+
47 SGD appears to impact the trajectory term and the flatness term in opposite ways, which complicates
|
| 59 |
+
48 the overall dependency of generalization error on batch sizes. A particular interesting observation
|
| 60 |
+
49 from our experiments is that a key quantity arising in the trajectory term of the bounds, which we
|
| 61 |
+
50 refer to as gradient dispersion1, reveals a double descent phenomenon with respect to training epochs.
|
| 62 |
+
51 Most intriguingly, the valley in the double descent curve appears to mark the great divide between the
|
| 63 |
+
52 “generalization regime” and the “memorization regime” of training. Furthering from this observation,
|
| 64 |
+
53 we also show that it is possible to reduce the memorization effect by dynamically clipping the gradient
|
| 65 |
+
54 and reducing its dispersion.
|
| 66 |
+
55 Our bounds also inspire a natural and simple solution to alleviate generalization error. Specifically,
|
| 67 |
+
56 we propose a new training scheme, referred to as Gaussian model perturbation (GMP), aiming at
|
| 68 |
+
57 reducing the flatness term of the bounds. This scheme effectively applies a local “average pooling” to
|
| 69 |
+
58 the empirical risk surface prior to SGD, greatly resembling the “max-pooling” approach adopted in
|
| 70 |
+
59 AMP[83]. We demonstrate experimentally that GMP achieves a competitive performance with the
|
| 71 |
+
60 current art of regularization schemes.
|
| 72 |
+
|
| 73 |
+
Length constraints precludes elaboration at places. The reader is referred to supplementary materials for proofs and additional information.
|
| 74 |
+
|
| 75 |
+
63 Other Related Literature Gradient dispersion is mostly studied from optimization perspectives[11,
|
| 76 |
+
64 63, 39, 75, 25]. Prior to this work, only a few works relate gradient dispersion with the generalization
|
| 77 |
+
65 behaviour of the networks. In [49, 72], gradient dispersion also appears in the generalization bounds.
|
| 78 |
+
66 In [38], gradient dispersion is argued to capture a notion of “flatness” of the local minima of the loss
|
| 79 |
+
67 landscape, thereby correlating with generalization.
|
| 80 |
+
68 Injecting noise in the training process has been proposed in various regularization schemes, for
|
| 81 |
+
69 example, [10, 14, 15, 68, 73]. But unlike the Gaussian model perturbation scheme derived in this
|
| 82 |
+
70 paper, where noise is injected to the model parameters, noise in those schemes is injected either to
|
| 83 |
+
71 the training data or to the network activation.
|
| 84 |
+
72 Gradient clipping is a common technique for preventing gradient exploding (see, e.g., [45, 56]).
|
| 85 |
+
73 This technique is also used in [82] to accelerate training. In this paper, gradient clipping is used to
|
| 86 |
+
74 investigate and control the impact of gradient dispersion on generalization error.
|
| 87 |
+
|
| 88 |
+
# 75 2 Preliminaries
|
| 89 |
+
|
| 90 |
+
Population Risk, Empirical Risk and Generalization Error Unless otherwise noted, a random variable will be denoted by a capitalized letter (e.g., $Z$ ), and its realization denoted by the corresponding lower-case letter (e.g. $z$ ). Let $\mathcal { Z }$ be the instance space of interest and $\mu$ be an unknown distribution on $\mathcal { Z }$ , specifying random variable $Z$ . Let $\mathcal { W } \subseteq \bar { \mathbb { R } } ^ { d }$ be the space of hypotheses. Suppose that a training sample ${ \bar { S } } = ( Z _ { 1 } , Z _ { 2 } , \ldots , Z _ { n } )$ is drawn i.i.d. from $\mu$ and that a stochastic learning algorithm $\mathcal { A }$ takes $S$ as its input and outputs a hypothesis $W \in { \mathcal { W } }$ according to some conditional distribution $P _ { W | S }$ mapping ${ \mathcal { Z } } ^ { n }$ to $\mathcal { W }$ . Let $\ell : \mathcal { W } \times \mathcal { Z } \to \mathbb { R } ^ { + }$ be a loss function, where $\ell ( w , z )$ measures the “unfitness” or “error” of any $z \in { \mathcal { Z } }$ with respect to a hypothesis $w \in \mathcal W$ . The population risk, for any
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
L _ { \mu } ( w ) \triangleq \mathbb { E } _ { Z \sim \mu } [ \ell ( w , Z ) ] .
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
85 The goal of learning is to find a hypothesis $w$ that minimizes the population risk. But since $\mu$ is only
|
| 97 |
+
6 partially accessible via the sample $S$ , in practice, we instead turn to the empirical risk, defined as
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
L _ { S } ( w ) \triangleq { \frac { 1 } { n } } \sum _ { i = 1 } ^ { n } \ell ( w , Z _ { i } ) .
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
87 The expected generalization error of the learning algorithm $\mathcal { A }$ is then defined as
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\mathrm { g e n } ( \mu , P _ { W | S } ) \triangleq \mathbb { E } _ { W , S } [ L _ { \mu } ( W ) - L _ { S } ( W ) ] ,
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
where the expectation is taken over the joint distribution of 88 $( S , W )$ (i.e., $\mu ^ { n } \otimes P _ { W | S } )$ .
|
| 110 |
+
|
| 111 |
+
89 Throughout this paper, we take $\ell$ as a continuous function (adopting the usual notion “surrogate loss”
|
| 112 |
+
90 [66].). Additionally, we assume that $\ell$ is differentiable almost everywhere with respect to both $w$ and
|
| 113 |
+
91 $z$ . Furthermore we assume that $\ell ( w , Z )$ is $R$ -subgaussian2 for any $w \in \mathcal { W }$ . Note that a bounded loss
|
| 114 |
+
92 is guaranteed to be subgaussian for all $\mu$ and all $w \in \mathcal { W }$ . Let $I ( X ; Y )$ denote the mutual information
|
| 115 |
+
93 [18] between any pair of random variables $( X , Y )$ . The following results are known.
|
| 116 |
+
|
| 117 |
+
94 Lemma 1 ([77, Theorem 1.]). The expected generalization error of algorithm $\mathcal { A }$ is bounded by
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
| \mathrm { g e n } ( \mu , P _ { W | S } ) | \leq \sqrt { \frac { 2 R ^ { 2 } } { n } I ( W ; S ) } ,
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
95
|
| 124 |
+
|
| 125 |
+
96 Lemma 2 ([13, Proposition 1.]). The expected generalization error of algorithm $\mathcal { A }$ is bounded by
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
| \mathrm { g e n } ( \mu , P _ { W | S } ) | \leq \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \sqrt { 2 R ^ { 2 } I ( W ; Z _ { i } ) } ,
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
97
|
| 132 |
+
|
| 133 |
+
98 Stochastic Gradient Descent We now restrict the learning algorithm $\mathcal { A }$ to be the mini-batched
|
| 134 |
+
99 stochastic gradient descent (SGD) algorithm for empirical risk minimization. For each training epoch,
|
| 135 |
+
100 the dataset $S$ is randomly split into $m$ disjoint mini-batches, each having size $b$ , namely, $n = m b$ .
|
| 136 |
+
101 Based on each batch, one parameter update is performed. Specifically, let $B _ { t }$ denote the batch used
|
| 137 |
+
102 for the $t ^ { \mathrm { t h } }$ update. Define
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
g ( w , B _ { t } ) \triangleq \frac { 1 } { b } \sum _ { z \in B _ { t } } \nabla _ { w } \ell ( w , z ) ,
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
103 namely, $g ( w , B _ { t } )$ is the average gradient computed for the batch $B _ { t }$ with respect to parameter $w$ . The rule for the 104 $t ^ { \mathrm { t h } }$ parameter update is then
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
W _ { t } \triangleq W _ { t - 1 } - \lambda _ { t } g ( W _ { t - 1 } , B _ { t } ) ,
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
105 where $\lambda _ { t }$ is the learning rate at the step $t$ . The initial parameter setting $W _ { 0 }$ is assumed to be drawn
|
| 150 |
+
106 from the zero-mean spherical Gaussian $\mathcal { N } ( 0 , \sigma _ { 0 } ^ { 2 } \mathbf { I } _ { d } )$ with variance $\sigma _ { 0 } ^ { 2 }$ in each dimension. We will
|
| 151 |
+
107 assume that the SGD algorithm stops after $T$ updates and outputs $W _ { T }$ as the learned model parameter.
|
| 152 |
+
108 Given the training sample $S$ , let $\xi$ govern the randomness in the sequence $( B _ { 1 } , B _ { 2 } , \ldots , B _ { T } )$ of
|
| 153 |
+
109 batches. For the simplicity of notion, we will fix the configuration of $\xi$ . That is, we will assume a
|
| 154 |
+
110 fixed “batching trajectory”, or a fixed way to shuffle the example indices $\{ 1 , \ldots , n \}$ and divide them
|
| 155 |
+
111 into $m$ batches in each epoch. The presented generalization bounds of this paper can be extended
|
| 156 |
+
112 to the case where the batching trajectory is uniformly random (as we set up above). This merely
|
| 157 |
+
113 involves averaging over all batching trajectories or taking expectation over $\xi$ .
|
| 158 |
+
114 Auxiliary Weight Process We now associate with the SGD algorithm an auxiliary weight process
|
| 159 |
+
115 $\{ \widetilde { W _ { t } } \}$ . Let $\sigma ^ { 2 }$ be given, and let $\sigma _ { 1 } , \sigma _ { 2 } , \ldots , \sigma _ { T }$ be a sequence of positive real numbers. Define
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\widetilde { W } _ { 0 } \triangleq W _ { 0 } , \quad \mathrm { a n d } \widetilde { W } _ { t } \triangleq \widetilde { W } _ { t - 1 } - \lambda _ { t } g ( W _ { t - 1 } , B _ { t } ) + N _ { t } , \mathrm { f o r } t > 0 ,
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
where 116 $N _ { t } \sim \mathcal N ( 0 , \sigma _ { t } ^ { 2 } \mathbf I _ { d } )$ is a Gaussian noise. The relationship between this auxiliary weight process 117 $\{ \widetilde { W _ { t } } \}$ and the weight process $\{ W _ { t } \}$ in SGD is shown in the Bayesian network below.
|
| 166 |
+
|
| 167 |
+
118
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
\begin{array} { r l r l r l r l r l r l r l r } & { } & & { N _ { 1 } } & & { N _ { 2 } } & & { \cdots } & & { N _ { T - 1 } } & & { N _ { T } } \\ & { } & & { \downarrow } & & { \downarrow } & & { } & & { \downarrow } & & { \downarrow } & & { \downarrow } \\ { \widetilde { W } _ { 0 } } & { } & { \widetilde { W } _ { 1 } } & { } & { \widetilde { W } _ { 2 } } & { } & { \cdots } & { } & { \widetilde { W } _ { T - 1 } } & { } & { \widetilde { W } _ { T } } \\ { \parallel } & { \nearrow } & { } & { \chi } & { \chi } & { \nearrow } & { \dots } & { } & { \dots } & { } & { W _ { T } } \\ { W _ { 0 } } & { } & { W _ { 1 } } & { } & { W _ { 2 } } & { } & { \cdots } & { } & { W _ { T - 1 } } & { } & { W _ { T } } \end{array}
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
119 Let $\begin{array} { r } { \Delta _ { t } = \sum _ { \tau = 1 } ^ { t } N _ { \tau } } \end{array}$ . Noting that the weight updates in $\{ \widetilde { W } _ { t } \}$ uses the same gradient signal as that
|
| 174 |
+
120 used in $\{ W _ { t } \}$ (which depends on $W _ { t - 1 }$ not $\widetilde { W } _ { t - 1 } )$ ), it is immediate that $\widetilde { W } _ { t } = W _ { t } + \Delta _ { t }$ . Note that this
|
| 175 |
+
121 auxiliary process follows the same construction as [49], which we will use to study the generalization
|
| 176 |
+
122 error of SGD.
|
| 177 |
+
|
| 178 |
+
123 To that end, define gradient dispersion at parameter $w$ by
|
| 179 |
+
|
| 180 |
+
$$
|
| 181 |
+
\mathbb { V } ( w ) \triangleq \mathbb { E } \left[ | | \nabla _ { w } \ell ( w , Z ) - \mathbb { E } \left[ \nabla _ { w } \ell ( w , Z ) \right] | | _ { 2 } ^ { 2 } \right] ,
|
| 182 |
+
$$
|
| 183 |
+
|
| 184 |
+
124 where the expectation is taken over $Z \sim \mu$ .
|
| 185 |
+
|
| 186 |
+
For a given sample 125 $s \in \mathcal { Z } ^ { n }$ , define
|
| 187 |
+
|
| 188 |
+
$$
|
| 189 |
+
\gamma ( w , s ) \triangleq \mathbb { E } \left[ L _ { s } ( w + \Delta _ { T } ) - L _ { s } ( w ) \right] ,
|
| 190 |
+
$$
|
| 191 |
+
|
| 192 |
+
26 where the expectation is taken over $\Delta _ { T }$ and $L _ { s } ( w )$ is the empirical risk of $s$ at parameter $w$ .
|
| 193 |
+
|
| 194 |
+
In the remainder of the paper, let 127 $S ^ { \prime }$ denote another sample drawn from $\mu ^ { n }$ , independent of all other 128 random variables. The main generalization bound in [49] is re-stated below.
|
| 195 |
+
|
| 196 |
+
129 Lemma 3 ([49, Theorem 1.]). The generalization error of SGD is upper bounded by
|
| 197 |
+
|
| 198 |
+
$$
|
| 199 |
+
\left| \mathrm { g e n } ( \mu , P _ { W _ { T } | S } ) \right| \leq \sqrt { \frac { 2 R ^ { 2 } } { n } \sum _ { t = 1 } ^ { T } \frac { \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \Psi ( W _ { t - 1 } ) + \frac { \Psi ( W _ { t - 1 } ) } { b } \right] } + \left| \mathbb { E } \left[ \gamma ( W _ { T } , S ) - \gamma ( W _ { T } , S ^ { \prime } ) \right] \right| ,
|
| 200 |
+
$$
|
| 201 |
+
|
| 202 |
+
$$
|
| 203 |
+
\begin{array} { r } { \Psi ( w _ { t - 1 } ) \triangleq \mathbb { E } \left[ | | \nabla _ { w } \ell ( w _ { t - 1 } , Z ) - \nabla _ { w } \ell ( w _ { t - 1 } + \zeta , Z ) | | _ { 2 } ^ { 2 } \right] a n d \zeta \sim \mathcal { N } ( 0 , 2 \sum _ { i = 1 } ^ { t - 1 } \sigma _ { i } ^ { 2 } \mathrm { I } _ { d } ) . } \end{array}
|
| 204 |
+
$$
|
| 205 |
+
|
| 206 |
+
The term $\Psi ( w _ { t - 1 } )$ in the bound is referred to as “local gradient sensitivity” in [49].
|
| 207 |
+
|
| 208 |
+
# 3 New Generalization Bounds for SGD
|
| 209 |
+
|
| 210 |
+
133 We first prove that the generalization bound in Lemma 3 can be tightened by removing the local
|
| 211 |
+
134 gradient sensitivity term $\Psi ( w _ { t - 1 } )$ . The key observation is that an independence condition used for
|
| 212 |
+
135 establishing Lemma 3 in [49] is unnecessary (see Lemma 4 in [49]). This requires invoking a vector
|
| 213 |
+
136 version of the HWI inequality [60, Lemma 3.4.2], which we prove in this paper.
|
| 214 |
+
|
| 215 |
+
Lemma 4. Let37 $X$ and $Y$ be two random vectors in $\mathbb { R } ^ { d }$ , and let $\boldsymbol { N } \sim \mathcal { N } ( 0 , \mathbf { I } _ { d } )$ be independent of 38 $( X , Y )$ . Then, for every $t > 0$ , $\begin{array} { r } { \mathrm { D } _ { \mathrm { K L } } \big ( P _ { X + \sqrt { t } N } | | P _ { Y + \sqrt { t } N } \big ) \leq \frac { 1 } { 2 t } \mathbb { E } \left[ | | X - Y | | ^ { 2 } \right] } \end{array}$ .
|
| 216 |
+
|
| 217 |
+
39 Here $\mathrm { D } _ { \mathrm { K L } }$ is the KL divergence. Note that the bound in Lemma 3 relies on a similar result which
|
| 218 |
+
40 however requires the independence of $X$ and $Y$ . Using Lemma 4, we obtain the following theorem.
|
| 219 |
+
|
| 220 |
+
141 Theorem 1. The generalization error of SGD is upper bounded by
|
| 221 |
+
|
| 222 |
+
$$
|
| 223 |
+
\left| \mathrm { g e n } ( \mu , P _ { W _ { T } | S } ) \right| \le \sqrt { \frac { 2 R ^ { 2 } } { n b } \sum _ { t = 1 } ^ { T } \frac { \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] } + \left| \mathbb { E } \left[ \gamma ( W _ { T } , S ) - \gamma ( W _ { T } , S ^ { \prime } ) \right] \right| .
|
| 224 |
+
$$
|
| 225 |
+
|
| 226 |
+
143 The proof of this theorem, as the bounds in [49], relies on Lemma 1 and the sample-level mutual
|
| 227 |
+
144 information bound therein. This theorem can be further tightened by exploiting the fact that the
|
| 228 |
+
145 instance-level mutual information bound in Lemma 2 is in fact tighter than the sample-level mutual
|
| 229 |
+
146 information bound in Lemma 1, as shown in [13]. The main ingredient to proceed in this direction is
|
| 230 |
+
147 the following lemma.
|
| 231 |
+
Lemma 5. Le148 $\begin{array} { r } { \ d _ { t } G _ { t } = - \lambda _ { t } g ( W _ { t - 1 } , B _ { t } ) . \ d H _ { t } Z _ { i } \in B _ { t } , t h e n I ( G _ { t } + N _ { t } ; Z _ { i } | \widetilde W _ { t - 1 } ) \le \frac { \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } b ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] . } \end{array}$
|
| 232 |
+
49
|
| 233 |
+
150 In this lemma, the mutual information $I ( G _ { t } + N _ { t } ; Z _ { i } | \widetilde { W } _ { t - 1 } )$ roughly indicates the degree by which
|
| 234 |
+
151 the SGD’s updating signal $G _ { t }$ (smoothed with noise) depends on an individual training instance
|
| 235 |
+
152 $Z _ { i }$ , when $Z _ { i }$ is used for computing the gradient. When this dependency is strong (giving rise to a
|
| 236 |
+
153 high value of the mutual information), the model conceivably tends to overfit the individual training
|
| 237 |
+
154 instances. This lemma suggests that the strength of this dependency can be upper-bounded by the
|
| 238 |
+
155 expected gradient dispersion at the current weight configuration. In our experiments, we will estimate
|
| 239 |
+
156 the expected gradient dispersion and validate this intuition.
|
| 240 |
+
157 It is remarkable that the noise $\{ N _ { t } \}$ plays an important role for the bound to hold. To see this,
|
| 241 |
+
158 consider $b = 1$ and $\mathcal { Z }$ is countable and large. Then $\bar { I } ( G _ { t } ; Z _ { t } | W _ { t - 1 } )$ is merely the conditional entropy
|
| 242 |
+
159 $H ( Z _ { i } | W _ { t - 1 } )$ , which would grow with sample size $n$ at least as $\log n$ . Upper-bounding it with a
|
| 243 |
+
160 quantity independent of $n$ would be impossible – This justifies the construction of the auxiliary
|
| 244 |
+
161 weight process.
|
| 245 |
+
162 We now state our main theorem. Unlike Theorem 1, which considers a random batching trajectory,
|
| 246 |
+
163 this theorem considers a fixed batching trajectory to keep the expression less cluttered. For that
|
| 247 |
+
164 batching trajectory, we will use $\mathcal { T } _ { i }$ to denote the set of indices of batches $B _ { t }$ containing instance $Z _ { i }$ .
|
| 248 |
+
|
| 249 |
+
165 Theorem 2. The expected generalization error of SGD is bounded by
|
| 250 |
+
|
| 251 |
+
$$
|
| 252 |
+
\left| \mathrm { g e n } ( \mu , P _ { W _ { T } | S } ) \right| \leq \frac { R } { n b } \sum _ { i = 1 } ^ { n } \sqrt { \sum _ { t \in { \mathcal T } _ { i } } \frac { 2 \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] } + \left| \mathbb { E } \left[ \gamma ( W _ { T } , S ) - \gamma ( W _ { T } , S ^ { \prime } ) \right] \right| .
|
| 253 |
+
$$
|
| 254 |
+
|
| 255 |
+
167 With an additional assumption, the second term in the bound can be re-expressed, as shown in the
|
| 256 |
+
168 following corollary.
|
| 257 |
+
|
| 258 |
+
169 Corollary 1. Assume $L _ { \mu } ( w _ { T } ) \leq \mathbb { E } _ { \Delta } \left[ L _ { \mu } ( w _ { T } + \Delta _ { T } ) \right]$ , then the following holds,
|
| 259 |
+
|
| 260 |
+
$$
|
| 261 |
+
\mathrm { g e n } ( \mu , P _ { W r | S } ) \leq \frac { R } { n b } \sum _ { i = 1 } ^ { n } \sqrt { \sum _ { t \in \mathcal { T } _ { i } } \frac { 2 \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] } + \frac { \sum _ { t = 1 } ^ { T } \sigma _ { t } ^ { 2 } } { 2 } \mathrm { T r } \left( \mathbb { E } \left[ \mathrm { H } _ { W _ { T } } ( Z ) \right] \right) ,
|
| 262 |
+
$$
|
| 263 |
+
|
| 264 |
+
where 170 $\mathrm { H } _ { W _ { T } }$ is the Hessian matrix of the loss with respect to $W _ { T }$ and $\operatorname { T r } ( \cdot )$ denotes trace.
|
| 265 |
+
|
| 266 |
+
171 Corollary 1 follows directly from the second order Taylor expansion of the second term in the bound
|
| 267 |
+
172 of Theorem 2. The condition $L _ { \mu } ( w _ { T } ) \leq \mathbb { E } _ { \Delta } \left[ L _ { \mu } ( \hat { w _ { T } } + \bar { \Delta _ { T } } ) \right]$ indicates that the perturbation does
|
| 268 |
+
173 not decrease the population risk. This is also assumed in [27] in the derivation of a PAC-Bayesian
|
| 269 |
+
174 generalization bound.
|
| 270 |
+
175 Notably, in the bound of Theorem 2, the first term captures the impact of the training trajectory
|
| 271 |
+
176 (“trajectory term”), and the second term captures the impact of the final solution. As seen in Corollary
|
| 272 |
+
177 1, this term in fact measures the flatness for the loss landscape at the found solution (“flatness term”).
|
| 273 |
+
178 The previous bound of [49] (Lemma 3) and its tightened version in Theorem 1 also similarly contain a
|
| 274 |
+
179 trajectory term and a flatness term. Despite that the flatness term there are identical to that in Theorem
|
| 275 |
+
180 2, we now show the trajectory term in Theorem 2 does improve on its counter-part in Theorem 1.
|
| 276 |
+
181 Lemma 6. Assume the instances are sampled without replacement in every epoch. Then the trajectory
|
| 277 |
+
182 term in Theorem 2 is upper-bounded by
|
| 278 |
+
|
| 279 |
+
$$
|
| 280 |
+
\operatorname* { m i n } \left\{ \frac { R } { n } \sum _ { t = 1 } ^ { T } \sqrt { \frac { 2 \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] } , \sqrt { \frac { 2 R ^ { 2 } } { n b } \sum _ { t = 1 } ^ { T } \frac { \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] } \right\} .
|
| 281 |
+
$$
|
| 282 |
+
|
| 283 |
+
184 The condition in Lemma 6 is usually satisfied in practice. This lemma then immediately implies that
|
| 284 |
+
185 the trajectory term in Theorem 2 is no worse than that in Theorem 1. Incorporating this result, if we
|
| 285 |
+
186 restrict the smoothness of the loss function $\ell$ , we may obtain another version of the generalization
|
| 286 |
+
187 bound (although the flatness term therein is expected to be looser than that in Corollary 1).
|
| 287 |
+
188 Corollary 2. If the loss function is differentiable and $\beta$ -smooth with respect to $w$ , then under the
|
| 288 |
+
189 condition of Lemma ${ \it 6 }$ ,
|
| 289 |
+
|
| 290 |
+
$$
|
| 291 |
+
\mathrm { g e n } ( \mu , P _ { W _ { T } | S } ) | \leq \operatorname* { m i n } \left\{ \frac { R } { n } \sum _ { t = 1 } ^ { T } \sqrt { \frac { 2 \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] } , \sqrt { \frac { 2 R ^ { 2 } } { n b } \sum _ { t = 1 } ^ { T } \frac { \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] } \right\} + \beta d \sum _ { t = 1 } ^ { T } \sigma _ { t } ^ { 2 } .
|
| 292 |
+
$$
|
| 293 |
+
|
| 294 |
+
191 To conclude, we remark that these bounds suggest that in order for the model to generalize well, both
|
| 295 |
+
192 the trajectory term and the flatness term need to be small — the former involves the interaction of the
|
| 296 |
+
193 learning rate and batch size with the gradient dispersion along the training trajectory, whereas the
|
| 297 |
+
194 latter depends on the flatness of the empirical risk surface at the found solution.
|
| 298 |
+
|
| 299 |
+
# 195 4 Experimental Study
|
| 300 |
+
|
| 301 |
+
196 Bound Verification We first verify our bound in Corollary 1 by training an MLP (with one hidden
|
| 302 |
+
197 layer) and an AlexNet [42] on MNIST and CIFAR10 [41], respectively. To simplify estimation, we
|
| 303 |
+
198 fix the weight initialization and set $\sigma _ { t }$ and $\lambda _ { t }$ to be constants $\sigma$ and $\lambda$ , respectively. To compute
|
| 304 |
+
199 $\textstyle \sum _ { i = 1 } ^ { n } { \sqrt { \sum _ { t \in { \mathcal { T } } _ { i } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] } }$ , we compute the gradient dispersion as its empirical estimate from a
|
| 305 |
+
200 batch, utilizing a PyTorch [54] library BackPack [19]. To compute $\mathrm { T r } \left( \mathbb { E } \left[ \mathrm { H } _ { W _ { T } } ( Z ) \right] \right)$ , we randomly
|
| 306 |
+
201 sample $10 \%$ of the training data and use the PyHessian library [79] to compute the Hessian. Since
|
| 307 |
+
202 every choice of $\sigma$ gives a valid generalization bound in Corollary 1, we need to find the optimal
|
| 308 |
+
203 $\sigma$ , which gives the tightest bound. This can be done by simply utilizing the fact $A / \sigma + \bar { \sigma ^ { 2 } } B \geq$
|
| 309 |
+
204 $3 ( A / 2 ) ^ { 2 / 3 } B ^ { 1 / 3 }$ for any positive $A$ and $B$ , where the equality is achieved by the optimal $\sigma$ . We set
|
| 310 |
+
205 the sub-gaussian parameter $R = 0 . 1$ . The implementation in this paper is on PyTorch, and all the
|
| 311 |
+
206 experiments are carried out on NVIDIA Tesla V100 GPUs (32 GB).
|
| 312 |
+
207 We perform experiments with varying network width and varying levels of label noise. Specifically,
|
| 313 |
+
208 label noise level $\epsilon$ refers to the setting where we replace the labels of $\epsilon$ fraction of the training and
|
| 314 |
+
209 testing instances with random labels. The estimated bound is compared against the true generalization
|
| 315 |
+
210 gap, namely, the difference between the training loss and testing loss, and is shown in Figure 1.
|
| 316 |
+
211 In Figure 1, we see that in all cases the estimated bound follows closely the trend of the true
|
| 317 |
+
212 generalization gap. The fact that the bound curve consistently tracks the gap curve under various
|
| 318 |
+
213 label noise levels indicates that our bound very well captures the changes of the data distribution.
|
| 319 |
+
214 Note that in Figure 1 (a) and (b), our bound decays with the increase of the model size, showing a
|
| 320 |
+
215 trend as opposite to the bounds obtained in classical learning theory. But such a trend clearly better
|
| 321 |
+
216 explains the generalization behaviour of modern neural networks.
|
| 322 |
+
217 Learning Rate and Batch Size. The learning rate and batch size in SGD have explicitly appeared
|
| 323 |
+
218 in the trajectory term of the bound in Theorem 2. From the way they appear in the bound, one may be
|
| 324 |
+
219 tempted to assert that a small learning rate or large batch size will improve generalization. This would
|
| 325 |
+
220 then contradict some previous observations [37, 76, 33], in which increasing the ratio of learning rate
|
| 326 |
+
221 to batch size will benefit generalization. We now investigate this by performing experiments with
|
| 327 |
+
222 varying learning rates and batch sizes. In our experiments, the model is continuously updated until
|
| 328 |
+
223 the average training loss drops below 0.0001. We separate trajectory and flatness terms of the bound
|
| 329 |
+
224 and plot them in Figure 2.
|
| 330 |
+
225 A key observation in Figure 2 is that the learning rate impacts the trajectory term and the flatness term
|
| 331 |
+
226 in opposite ways, as seen, for example, in (a) and (b), where the two set of curves swap their orders in
|
| 332 |
+
227 the two figures. On the other hand, the batch size also impacts the two terms in opposite ways, as seen
|
| 333 |
+
228 in (a) and (b) where curves decrease in (a) but increase in (b). This makes the generalization bound,
|
| 334 |
+
229 i.e., the sum of the two terms, have a rather complex relationship with the settings of learning rate
|
| 335 |
+
230 and batch size. This relationship is further complicated by the fact that a small learning rate requires
|
| 336 |
+
231 a longer training time, or a larger number $T$ of training iterations, which increases the number that
|
| 337 |
+
232 are summed over in the trajectory term. Nonetheless, we do observe that a smaller batch size gives a
|
| 338 |
+
233 lower value of the flatness term ((b) and (d)), confirming the previous wisdom that small batch sizes
|
| 339 |
+
234 enable the neural network to find a flat minima [40].
|
| 340 |
+
235 Double Descent of Gradient Dispersion We experimentally investigate the impact of gradient
|
| 341 |
+
236 dispersion on the training of the neural networks by fixing the learning rate, batch size and weight
|
| 342 |
+
237 initialization for the each model (MLP for MNIST, AlexNet for CIFAR10). For each model and
|
| 343 |
+
238 various label noise levels, we plot in Figure 3 the evolution of the (empirical) gradient dispersion
|
| 344 |
+
239 $\widehat { \mathbb { V } } ( \boldsymbol { w } _ { t } )$ , training accuracy and testing accuracy across training epochs.
|
| 345 |
+
|
| 346 |
+

|
| 347 |
+
Figure 1: Estimated bound and empirical generalization gap (“gap”) as functions of network width ((a) and (b)) and label noise level ((c) and (d)). Left Y-axis: gap value; right Y-axis: bound value.
|
| 348 |
+
|
| 349 |
+

|
| 350 |
+
Figure 2: The impact of learning rate and batch size on the trajectory term and the flatness term.
|
| 351 |
+
|
| 352 |
+

|
| 353 |
+
Figure 3: Epoch-wise double descent of gradient dispersion, in relation to training/testing accuracies.
|
| 354 |
+
|
| 355 |
+
An intriguing epoch-wise “double descent” phenomenon is observed, particularly when the labels are noisy. According to the double descent curve, the training may be split into three phases (e.g., Figure 3 (h)). In the first phase, the gradient dispersion rapidly descends and maintains a very low level. In this phase, both training and test accuracies increase while maintaining a very small generalization gap. This suggests that the network in this phase is extracting useful patterns and generalizes well. In the second phase, the gradient dispersion starts increasing until it reaches a peak value. In this phase, the training and testing accuracies gradually diverge, marking the model entering an overfitting or “memorization” regime – when the data contains the noisy labels, the network mostly tries to memorize the labels in the training set. In the third phase, the gradient dispersion descends again, reaching a low value. In this phase, the model continuously overfits the training data, until the training and testing curves reach their respective maximum and minimum. It appears that the timing of the three phases depends on the dataset and the label noise level. For simpler data (e.g. MNIST) and cleaner datasets (e.g. CIFAR10 with low label noise), the first phase may be shorter. This is arguably because in these datasets, extracting useful patterns is relatively easier. Nonetheless, the valley in the double-descent curve appears to mark a “great divide” between generalization and memorization.
|
| 356 |
+
|
| 357 |
+
255 Dynamic Gradient Clipping Inspired by our generalization bounds and above observations, one
|
| 358 |
+
256 way to reduce the generalization error is to control the trajectory term of the bounds by reducing the
|
| 359 |
+
257 gradient dispersion in each training step. Here we investigate a simple scheme that dynamically clips
|
| 360 |
+
258 the gradient norm so as to reduce the gradient dispersion. Specifically, whenever the current gradient
|
| 361 |
+
259 norm is larger than the gradient norm $K$ steps earlier, or $| | g ( W _ { t } , B _ { t } ) | | _ { 2 } > | | g ( W _ { t - K } , B _ { t - K } ) | | _ { 2 }$ (i.e.,
|
| 362 |
+
260 the model is expected to have entered the “memorization” regime), we reduce the norm of the current
|
| 363 |
+
261 gradient $g ( W _ { t } , B _ { t } )$ to $\alpha$ fraction of $| | g ( W _ { t - K } , B _ { t - K } ) | | _ { 2 }$ , for some prescribed value $\alpha < 1$ . The
|
| 364 |
+
262 effectiveness of this scheme is best demonstrated when the labels contain noise. As shown in Figure
|
| 365 |
+
263 4, dynamic gradient clipping significantly closes the gap between the training accuracy and the testing
|
| 366 |
+
264 accuracy. The models trained with this scheme maintain a near-optimal testing accuracy (e.g., about
|
| 367 |
+
265 $80 \%$ when the label noise level of MNIST is 0.2), without suffering from the severe memorization
|
| 368 |
+
266 effect as seen in models trained without this scheme. Further understanding of the double-descent
|
| 369 |
+
267 phenomenon of the gradient dispersion may enable more delicate design of such a dynamic clipping
|
| 370 |
+
268 scheme and potentially lead to novel and powerful regularization techniques.
|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
Figure 4: Dynamic Gradient Clipping.
|
| 374 |
+
|
| 375 |
+
# 269 5 A Practical Implication: Gaussian Model Perturbation
|
| 376 |
+
|
| 377 |
+
270 The appearance of the flatness term in our generalization bounds suggests that for an empirical
|
| 378 |
+
271 risk minimizer $w ^ { * }$ to generalize well, it is necessary that the empirical risk surface at $w ^ { * }$ is flat,
|
| 379 |
+
272 or insensitive to a small perturbation of $w ^ { * }$ . This naturally motivates a training scheme using the
|
| 380 |
+
273 following regularized loss:
|
| 381 |
+
|
| 382 |
+
$$
|
| 383 |
+
\operatorname* { m i n } _ { w } L _ { s } ( w ) + \rho \operatorname* { l g } _ { \Delta \sim \mathcal { N } ( 0 , \sigma ^ { 2 } \mathbf { I } _ { d } ) } [ L _ { s } ( w + \Delta ) - L _ { s } ( w ) ] ,
|
| 384 |
+
$$
|
| 385 |
+
|
| 386 |
+
274 where $\rho$ is a hyper-parameter. Replacing the expectation above with its stochastic approximation
|
| 387 |
+
275 using $k$ realizations of $\Delta$ gives rise to the following optimization problem.
|
| 388 |
+
|
| 389 |
+
$$
|
| 390 |
+
\operatorname* { m i n } _ { w } \frac { 1 } { b } \sum _ { z \in B } \left( ( 1 - \rho ) \ell ( w , z ) + \rho \frac { 1 } { k } \sum _ { i = 1 } ^ { k } \left( \ell ( w + \delta _ { i } , z ) \right) \right) .
|
| 391 |
+
$$
|
| 392 |
+
|
| 393 |
+
276 We refer to the SGD training scheme using this loss as Gaussian model perturbation or GMP. Notably,
|
| 394 |
+
277 GMP requires $k + 1$ forward passes for every parameter update. Empirical evidence shows that a
|
| 395 |
+
278 small $k$ , for example, $k = 3$ , already gives competitive performance. Implementing the $k + 1$ forward
|
| 396 |
+
279 passes on parallel processors further reduces the computation load.
|
| 397 |
+
280 We experimentally compare GMP with several major regularization schemes in the current art, includ
|
| 398 |
+
281 ing Dropout [68], label smoothing [70], Flooding [36], MixUp [81], adversarial training [29], and
|
| 399 |
+
282 AMP [83]. The compared schemes are evaluated on three popular benchmark image classification
|
| 400 |
+
283 datasets SVHN [48], CIFAR-10 and CIFAR-100 [41]. Two representative deep architectures PreAc
|
| 401 |
+
284 tResNet18 [34] and VGG16 [67] are taken as the underlying model. We train the models for 200
|
| 402 |
+
285 epochs by SGD. The learning rate is initialized as 0.1 and divided by 10 after 100 and 150 epochs.
|
| 403 |
+
286 For all compared models, the batch size is set to 50 and weight decay is set to $1 0 ^ { - 4 }$ . For GMP, we
|
| 404 |
+
287 choose $\rho = 0 . 5$ and set the standard deviation of the Gaussian noise $\Delta$ to 0.03. The value of $k$ is
|
| 405 |
+
288 chosen as 3 and 10 respectively (referred to as $\mathrm { G M P ^ { 3 } }$ and $\mathrm { G M P ^ { 1 0 } }$ ).
|
| 406 |
+
289 The performances of all compared schemes are given in Table 1. For the compared regularization
|
| 407 |
+
290 schemes except GMP, we directly report their performances as given in [83]. Performances of vanilla
|
| 408 |
+
291 ERM without regularization are also included as a reference.
|
| 409 |
+
292 Table 1 demonstrates the effectiveness of GMP. Overall GMP performs comparably to the current
|
| 410 |
+
293 art of regularization schemes, although appearing slighly inferior to the most recent record given by
|
| 411 |
+
294 AMP [83]. Noting that the key ingredient of AMP, “max-pooling” in the parameter space, greatly
|
| 412 |
+
295 resembles regularization term in GMP, which may be seen as “average-pooling” in the same space.
|
| 413 |
+
|
| 414 |
+
Table 1: Top-1 classification accuracy on (a) SVHN, (b) CIFAR-10 and (c) CIFAR-100. We run experiments 10 times and report the mean and the standard deviation of the testing accuracy.
|
| 415 |
+
|
| 416 |
+
<table><tr><td>PreActResNet18</td><td>Top-1 Acc. (%)</td><td>PreActResNet18</td><td>Top-1 Acc. (%)</td><td>PreActResNet18</td><td>Top-1 Acc. (%)</td></tr><tr><td>ERM</td><td>97.05±0.063</td><td>ERM</td><td>94.98±0.212</td><td>ERM</td><td>75.69±0.303</td></tr><tr><td>Dropout</td><td>97.20±0.065</td><td>Dropout</td><td>95.14±0.148</td><td>Dropout</td><td>75.52±0.351</td></tr><tr><td>Label Smoothing</td><td>97.22±0.087</td><td>Label Smoothing</td><td>95.15±0.115</td><td>Label Smoothing</td><td>77.93±0.256</td></tr><tr><td>Flooding</td><td>97.16±0.047</td><td>Flooding</td><td>95.03±0.082</td><td>Flooding</td><td>75.50±0.234</td></tr><tr><td>MixUp</td><td>97.26±0.044</td><td>MixUp</td><td>95.91±0.117</td><td>MixUp</td><td>78.22±0.210</td></tr><tr><td>Adv.Training</td><td>97.23±0.080</td><td>Adv. Training</td><td>95.01±0.085</td><td>Adv. Training</td><td>74.77±0.229</td></tr><tr><td>AMP</td><td>97.70±0.025</td><td>AMP</td><td>96.03±0.091</td><td>AMP</td><td>78.49±0.308</td></tr><tr><td>GMP3</td><td>97.43±0.037</td><td>GMP3</td><td>95.64±0.053</td><td>GMP3</td><td>78.05±0.208</td></tr><tr><td>GMP10</td><td>97.34±0.058</td><td>GMP10</td><td>95.71±0.073</td><td>GMP10</td><td>78.07±0.170</td></tr><tr><td>VGG16</td><td>Top-1 Acc. (%)</td><td>VGG16</td><td>Top-1 Acc. (%)</td><td>VGG16</td><td>Top-1 Acc. (%)</td></tr><tr><td>ERM</td><td>96.86±0.060</td><td>ERM</td><td>93.68±0.193</td><td>ERM</td><td>72.16±0.297</td></tr><tr><td>Dropout</td><td>97.04±0.049</td><td>Dropout</td><td>93.78±0.147</td><td>Dropout</td><td>72.28±0.337</td></tr><tr><td>Label Smoothing</td><td>96.93±0.070</td><td>Label Smoothing</td><td>93.71±0.158</td><td>Label Smoothing</td><td>72.51±0.179</td></tr><tr><td>Flooding</td><td>96.85±0.085</td><td>Flooding</td><td>93.74±0.145</td><td>Flooding</td><td>72.07±0.271</td></tr><tr><td>MixUp</td><td>96.91±0.057</td><td>MixUp</td><td>94.52±0.112</td><td>MixUp</td><td>73.19±0.254</td></tr><tr><td>Adv.Training</td><td>97.06±0.091</td><td>Adv. Training</td><td>93.51±0.130</td><td>Adv.Training</td><td>70.88±0.145</td></tr><tr><td>AMP</td><td>97.27±0.015</td><td>AMP</td><td>94.35±0.147</td><td>AMP</td><td>74.40±0.168</td></tr><tr><td>GMP3</td><td>97.18±0.057</td><td>GMP3</td><td>94.33±0.094</td><td>GMP3</td><td>74.45±0.256</td></tr><tr><td>GMP10</td><td>97.09±0.068</td><td>GMP10</td><td>94.45±0.158</td><td>GMP10</td><td>75.09±0.285</td></tr></table>
|
| 417 |
+
|
| 418 |
+
(a) SVHN (b) CIFAR-10 (c) CIFAR-100
|
| 419 |
+
|
| 420 |
+
# 296 6 Conclusion and Outlook
|
| 421 |
+
|
| 422 |
+
This paper presents new generalization bounds for neural networks trained with SGD, improving upon the results of [49]. Our bounds naturally point to new and effective regularization schemes. At the same time, they reveal interesting phenomena in the SGD training of neural networks. While these phenomena deserve further investigation in their own right, we here suggest another direction for improving the bounds, namely, via the use of strong data-processing inequalities (DPI) [57–59] (noting that the standard DPI is in fact needed for establishing Theorem 2).
|
| 423 |
+
|
| 424 |
+
303 For any Markov chain $U \to X \to Y$ , we will denote by $u , x$ , and $\mathcal { V }$ the spaces in which $U$ ,
|
| 425 |
+
304 $X$ , $Y$ take values, respectively. For any distribution $P$ on $\mathcal { X }$ , we will use $P _ { Y \mid X } \circ P$ to denote the
|
| 426 |
+
305 distribution on $\mathcal { V }$ induced by the push-forward of the distribution $P$ by $P _ { Y \mid X }$ , namely, for any $y \in \mathcal { V }$ ,
|
| 427 |
+
306 $\begin{array} { r } { \left( P _ { Y | X } \circ P \right) ( y ) \triangleq \int P _ { Y | X } ( y | x ) P ( x ) d x } \end{array}$ . Let ${ \cal { S } } ( U )$ be the support of $P _ { U }$ and ${ \mathcal { H } } ( U , P _ { X | U } )$ be the
|
| 428 |
+
307 convex hull of $\{ P _ { X | U = u } : u \in { \mathcal { S } } ( U ) \}$ . Define
|
| 429 |
+
|
| 430 |
+
$$
|
| 431 |
+
\eta ( U \to X \to Y ) \triangleq \operatorname* { s u p } _ { P , Q \in \mathcal { H } ( U , P _ { X | U } ) } \frac { \mathrm { D } _ { \mathrm { K L } } ( P _ { Y | X } \circ P | | P _ { Y | X } \circ Q ) } { \mathrm { D } _ { \mathrm { K L } } ( P | | Q ) }
|
| 432 |
+
$$
|
| 433 |
+
|
| 434 |
+
08 Lemma 7. For any Markov chain $U X Y$ , $I ( U ; Y ) \leq \eta ( U X Y ) I ( U ; X ) .$
|
| 435 |
+
|
| 436 |
+
309 Here $\eta ( U \to X \to Y )$ serves as the “contraction coefficient” for the stochastic kernel $P _ { Y \mid X }$ ,
|
| 437 |
+
310 characterizing the greatest extent by which the kernel may bring closer any two distributions on $S ( U )$
|
| 438 |
+
311 in its output space. It is easy to see that $\eta ( U \to X \to Y ) \leq 1$ , giving rise to a stronger DPI.
|
| 439 |
+
12 Denote $V _ { t } \triangleq \widetilde { W } _ { t - 1 } + G _ { t }$ . It can be verified that $Z _ { i } V _ { t } \widetilde { W } _ { t }$ form a Markov chain. Denote
|
| 440 |
+
13 $\eta _ { i , t } \triangleq \eta ( Z _ { i } V _ { t } \widetilde { W } _ { t } )$ , and $\Gamma _ { i } ^ { t } = \{ t + 1 , t + 2 , \ldots , T \} \setminus \mathcal { T } _ { i }$ . Theorem 2 can be improved to:
|
| 441 |
+
|
| 442 |
+
314 Theorem 3. The expected generalization error of SGD is bounded by
|
| 443 |
+
|
| 444 |
+
$$
|
| 445 |
+
\left| \mathrm { g e n } ( \mu , P _ { W _ { T } | S } ) \right| \le \frac { 2 R } { n b } \sum _ { i = 1 } ^ { n } \sqrt { \sum _ { t \in { \mathcal T } _ { i } } \frac { \lambda _ { t } ^ { 2 } } { \sigma _ { t } ^ { 2 } } \mathbb { E } \left[ \mathbb { V } ( W _ { t - 1 } ) \right] \cdot \prod _ { \tau \in \Gamma _ { i } ^ { t } } \eta _ { i , \tau } } + \left| \mathbb { E } \left[ \gamma ( W _ { T } , S ) - \gamma ( W _ { T } , S ^ { \prime } ) \right] \right| .
|
| 446 |
+
$$
|
| 447 |
+
|
| 448 |
+
316 It remains to characterize the contraction coefficient $\eta _ { i , \tau }$ in a computable form. Simply bounding it
|
| 449 |
+
317 via the Dobrushin’s coefficient [21], as suggested in [72] for analyzing SGLD, is unlikely to make
|
| 450 |
+
318 the bound in this theorem significantly tighter than that in Theorem 2.
|
| 451 |
+
|
| 452 |
+
19 References [1] Z. Allen-Zhu, Y. Li, and Z. Song. A convergence theory for deep learning via overparameterization. In International Conference on Machine Learning, pages 242–252. PMLR, 2019. [2] S. Arora, R. Ge, B. Neyshabur, and Y. Zhang. Stronger generalization bounds for deep nets via a compression approach. In International Conference on Machine Learning, pages 254–263. PMLR, 2018. [3] S. Arora, S. Du, W. Hu, Z. Li, and R. Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. In International Conference on Machine Learning, pages 322–332. PMLR, 2019. [4] A. R. Asadi and E. Abbe. Chaining meets chain rule: Multilevel entropic regularization and training of neural networks. Journal of Machine Learning Research, 21(139):1–32, 2020. [5] A. R. Asadi, E. Abbe, and S. Verdú. Chaining mutual information and tightening generalization bounds. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 7245–7254, 2018. [6] P. L. Bartlett, D. J. Foster, and M. Telgarsky. Spectrally-normalized margin bounds for neural networks. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 6241–6250, 2017. [7] R. Bassily, S. Moran, I. Nachum, J. Shafer, and A. Yehudayoff. Learners that use little information. In Algorithmic Learning Theory, pages 25–55. PMLR, 2018. [8] R. Bassily, V. Feldman, C. Guzmán, and K. Talwar. Stability of stochastic gradient descent on nonsmooth convex losses. Advances in Neural Information Processing Systems, 33, 2020. [9] M. Belkin, D. Hsu, S. Ma, and S. Mandal. Reconciling modern machine-learning practice and the classical bias–variance trade-off. Proceedings of the National Academy of Sciences, 116 (32):15849–15854, 2019. [10] C. M. Bishop. Training with noise is equivalent to tikhonov regularization. Neural computation, 7(1):108–116, 1995.
|
| 453 |
+
46 [11] L. Bottou, F. E. Curtis, and J. Nocedal. Optimization methods for large-scale machine learning. Siam Review, 60(2):223–311, 2018.
|
| 454 |
+
348 [12] O. Bousquet and A. Elisseeff. Stability and generalization. The Journal of Machine Learning Research, 2:499–526, 2002.
|
| 455 |
+
50 [13] Y. Bu, S. Zou, and V. V. Veeravalli. Tightening mutual information-based bounds on generalization error. IEEE Journal on Selected Areas in Information Theory, 1(1):121–130, 2020.
|
| 456 |
+
[14] A. Camuto, M. Willetts, U. Simsekli, S. J. Roberts, and C. C. Holmes. Explicit regularisation in gaussian noise injections. In Advances in Neural Information Processing Systems, 2020. [15] A. Camuto, X. Wang, L. Zhu, C. Holmes, M. Gürbüzbalaban, and U. ¸Sim¸sekli. Asymmetric heavy tails and implicit bias in gaussian noise injections. arXiv preprint arXiv:2102.07006, 2021. [16] P. Chaudhari, A. Choromanska, S. Soatto, Y. LeCun, C. Baldassi, C. Borgs, J. T. Chayes, L. Sagun, and R. Zecchina. Entropy-sgd: Biasing gradient descent into wide valleys. In 5th International Conference on Learning Representations. OpenReview.net, 2017.
|
| 457 |
+
60 [17] Y. Chen, C. Jin, and B. Yu. Stability and convergence trade-off of iterative optimization algorithms. arXiv preprint arXiv:1804.01619, 2018.
|
| 458 |
+
362 [18] T. M. Cover and J. A. Thomas. Elements of Information Theory. John Wiley & Sons, 2012.
|
| 459 |
+
363 [19] F. Dangel, F. Kunstner, and P. Hennig. Backpack: Packing more into backprop. In 8th International Conference on Learning Representations. OpenReview.net, 2020.
|
| 460 |
+
[20] L. Dinh, R. Pascanu, S. Bengio, and Y. Bengio. Sharp minima can generalize for deep nets. In International Conference on Machine Learning, pages 1019–1028. PMLR, 2017.
|
| 461 |
+
[21] R. L. Dobrushin. Central limit theorem for nonstationary markov chains. i. Theory of Probability & Its Applications, 1(1):65–80, 1956.
|
| 462 |
+
[22] S. S. Du, X. Zhai, B. Poczos, and A. Singh. Gradient descent provably optimizes overparameterized neural networks. In International Conference on Learning Representations, 2018.
|
| 463 |
+
[23] C. Dwork, V. Feldman, M. Hardt, T. Pitassi, O. Reingold, and A. Roth. Generalization in adaptive data analysis and holdout reuse. In Proceedings of the 28th International Conference on Neural Information Processing Systems-Volume 2, pages 2350–2358, 2015.
|
| 464 |
+
[24] G. K. Dziugaite and D. M. Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. In Proceedings of the 33rd Annual Conference on Uncertainty in Artificial Intelligence (UAI), 2017.
|
| 465 |
+
[25] F. Faghri, D. Duvenaud, D. J. Fleet, and J. Ba. A study of gradient variance in deep learning. arXiv preprint arXiv:2007.04532, 2020.
|
| 466 |
+
[26] V. Feldman and J. Vondrak. High probability generalization bounds for uniformly stable algorithms with nearly optimal rate. In Conference on Learning Theory, pages 1270–1279. PMLR, 2019.
|
| 467 |
+
[27] P. Foret, A. Kleiner, H. Mobahi, and B. Neyshabur. Sharpness-aware minimization for efficiently improving generalization. arXiv preprint arXiv:2010.01412, 2020.
|
| 468 |
+
[28] S. B. Gelfand and S. K. Mitter. Recursive stochastic algorithms for global optimization in rˆd. SIAM Journal on Control and Optimization, 29(5):999–1018, 1991.
|
| 469 |
+
[29] I. J. Goodfellow, J. Shlens, and C. Szegedy. Explaining and harnessing adversarial examples. In 3rd International Conference on Learning Representations, ICLR, 2015.
|
| 470 |
+
[30] H. Hafez-Kolahi, Z. Golgooni, S. Kasaei, and M. Soleymani. Conditioning and processing: Techniques to improve information-theoretic generalization bounds. Advances in Neural Information Processing Systems, 33, 2020.
|
| 471 |
+
[31] M. Haghifam, J. Negrea, A. Khisti, D. M. Roy, and G. K. Dziugaite. Sharpened generalization bounds based on conditional mutual information and an application to noisy, iterative algorithms. arXiv preprint arXiv:2004.12983, 2020.
|
| 472 |
+
[32] M. Hardt, B. Recht, and Y. Singer. Train faster, generalize better: Stability of stochastic gradient descent. In International Conference on Machine Learning, pages 1225–1234. PMLR, 2016.
|
| 473 |
+
[33] F. He, T. Liu, and D. Tao. Control batch size and learning rate to generalize well: Theoretical and empirical evidence. In Advances in Neural Information Processing Systems 32, pages 1141–1150, 2019.
|
| 474 |
+
[34] K. He, X. Zhang, S. Ren, and J. Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision, pages 630–645, 2016.
|
| 475 |
+
[35] S. Hochreiter and J. Schmidhuber. Flat minima. Neural Computation, 9(1):1–42, 1997.
|
| 476 |
+
[36] T. Ishida, I. Yamane, T. Sakai, G. Niu, and M. Sugiyama. Do we need zero training loss after achieving zero training error? In Proceedings of the 37th International Conference on Machine Learning, ICML, 2020.
|
| 477 |
+
[37] S. Jastrz˛ebski, Z. Kenton, D. Arpit, N. Ballas, A. Fischer, Y. Bengio, and A. Storkey. Three factors influencing minima in sgd. arXiv preprint arXiv:1711.04623, 2017.
|
| 478 |
+
[38] Y. Jiang, B. Neyshabur, H. Mobahi, D. Krishnan, and S. Bengio. Fantastic generalization measures and where to find them. In International Conference on Learning Representations, 2019.
|
| 479 |
+
[39] R. Johnson and T. Zhang. Accelerating stochastic gradient descent using predictive variance reduction. Advances in neural information processing systems, 26:315–323, 2013.
|
| 480 |
+
[40] N. S. Keskar, D. Mudigere, J. Nocedal, M. Smelyanskiy, and P. T. P. Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In 5th International Conference on Learning Representations. OpenReview.net, 2017.
|
| 481 |
+
[41] A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
|
| 482 |
+
[42] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25:1097–1105, 2012.
|
| 483 |
+
[43] Y. Lei and Y. Ying. Fine-grained analysis of stability and generalization for stochastic gradient descent. In International Conference on Machine Learning, pages 5809–5819. PMLR, 2020.
|
| 484 |
+
[44] B. London. A pac-bayesian analysis of randomized learning with application to stochastic gradient descent. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 2935–2944, 2017.
|
| 485 |
+
[45] S. Merity, N. S. Keskar, and R. Socher. Regularizing and optimizing lstm language models. In International Conference on Learning Representations, 2018.
|
| 486 |
+
[46] P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak, and I. Sutskever. Deep double descent: Where bigger models and more data hurt. In International Conference on Learning Representations, 2019.
|
| 487 |
+
[47] J. Negrea, M. Haghifam, G. K. Dziugaite, A. Khisti, and D. M. Roy. Information-theoretic generalization bounds for sgld via data-dependent estimates. In Advances in Neural Information Processing Systems, pages 11013–11023, 2019.
|
| 488 |
+
[48] Y. Netzer, T. Wang, A. Coates, A. Bissacco, B. Wu, and A. Y. Ng. Reading digits in natural images with unsupervised feature learning. In NeurIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2011.
|
| 489 |
+
[49] G. Neu. Information-theoretic generalization bounds for stochastic gradient descent. arXiv preprint arXiv:2102.00931, 2021.
|
| 490 |
+
[50] B. Neyshabur, R. Tomioka, and N. Srebro. Norm-based capacity control in neural networks. In Conference on Learning Theory, pages 1376–1401. PMLR, 2015.
|
| 491 |
+
[51] B. Neyshabur, S. Bhojanapalli, D. McAllester, and N. Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pages 5947–5956, 2017.
|
| 492 |
+
[52] B. Neyshabur, S. Bhojanapalli, and N. Srebro. A pac-bayesian approach to spectrally-normalized margin bounds for neural networks. In International Conference on Learning Representations, 2018.
|
| 493 |
+
[53] B. Neyshabur, Z. Li, S. Bhojanapalli, Y. LeCun, and N. Srebro. The role of over-parametrization in generalization of neural networks. In International Conference on Learning Representations, 2018.
|
| 494 |
+
[54] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in Neural Information Processing Systems, 32:8026–8037, 2019.
|
| 495 |
+
[55] A. Pensia, V. Jog, and P.-L. Loh. Generalization error bounds for noisy, iterative algorithms. In 2018 IEEE International Symposium on Information Theory (ISIT), pages 546–550. IEEE, 2018.
|
| 496 |
+
[56] M. Peters, M. Neumann, M. Iyyer, M. Gardner, C. Clark, K. Lee, and L. Zettlemoyer. Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 2227–2237, 2018.
|
| 497 |
+
458 [57] Y. Polyanskiy and Y. Wu. Dissipation of information in channels with input constraints. IEEE Transactions on Information Theory, 62(1):35–55, 2015.
|
| 498 |
+
460 [58] Y. Polyanskiy and Y. Wu. Strong data-processing inequalities for channels and bayesian networks. In Convexity and Concentration, pages 211–249. Springer, 2017.
|
| 499 |
+
462 [59] M. Raginsky. Strong data processing inequalities and $\phi$ -sobolev inequalities for discrete channels. IEEE Transactions on Information Theory, 62(6):3355–3389, 2016.
|
| 500 |
+
464 [60] M. Raginsky and I. Sason. Concentration of measure inequalities in information theory, communications and coding. Foundations and Trends in Communications and Information Theory; NOW Publishers: Boston, MA, USA, 2018. [61] H. Robbins and S. Monro. A stochastic approximation method. The annals of mathematical statistics, pages 400–407, 1951. [62] B. Rodríguez-Gálvez, G. Bassi, R. Thobaben, and M. Skoglund. On random subset generalization error bounds and the stochastic gradient langevin dynamics algorithm. arXiv preprint arXiv:2010.10994, 2020. [63] N. L. Roux, M. Schmidt, and F. Bach. A stochastic gradient method with an exponential convergence rate for finite training sets. In Proceedings of the 25th International Conference on Neural Information Processing Systems-Volume 2, pages 2663–2671, 2012. [64] D. Russo and J. Zou. Controlling bias in adaptive data analysis using information theory. In Artificial Intelligence and Statistics, pages 1232–1240, 2016. [65] D. Russo and J. Zou. How much does your data exploration overfit? controlling bias via information usage. IEEE Transactions on Information Theory, 66(1):302–323, 2019.
|
| 501 |
+
479 [66] S. Shalev-Shwartz and S. Ben-David. Understanding machine learning: From theory to algorithms. Cambridge university press, 2014. [67] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In 3rd International Conference on Learning Representations, ICLR, 2015. [68] N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014. [69] T. Steinke and L. Zakynthinou. Reasoning about generalization via conditional mutual information. In Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 3437–3452. PMLR, 2020. [70] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, CVPR, pages 2818–2826, 2016.
|
| 502 |
+
[71] V. Vapnik. Statistical learning theory. Wiley, 1998. ISBN 978-0-471-03003-4. [72] H. Wang, Y. Huang, R. Gao, and F. P. Calmon. Learning while dissipating information: Understanding the generalization capability of sgld. arXiv preprint arXiv:2102.02976, 2021.
|
| 503 |
+
495 [73] C. Wei, S. Kakade, and T. Ma. The implicit and explicit regularization effects of dropout. In International Conference on Machine Learning, pages 10181–10192. PMLR, 2020. [74] M. Welling and Y. W. Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 681–688. Citeseer, 2011.
|
| 504 |
+
500 [75] Y. Wen, K. Luk, M. Gazeau, G. Zhang, H. Chan, and J. Ba. An empirical study of stochastic gradient descent with structured covariance noise. In International Conference on Artificial Intelligence and Statistics, pages 3621–3631. PMLR, 2020.
|
| 505 |
+
|
| 506 |
+
503 [76] L. Wu, C. Ma, and E. Weinan. How sgd selects the global minima in over-parameterized
|
| 507 |
+
504 learning: A dynamical stability perspective. Advances in Neural Information Processing
|
| 508 |
+
505 Systems, 2018:8279–8288, 2018.
|
| 509 |
+
506 [77] A. Xu and M. Raginsky. Information-theoretic analysis of generalization capability of learning
|
| 510 |
+
507 algorithms. Advances in Neural Information Processing Systems, 2017:2525–2534, 2017.
|
| 511 |
+
508 [78] Z. Yang, Y. Yu, C. You, J. Steinhardt, and Y. Ma. Rethinking bias-variance trade-off for
|
| 512 |
+
509 generalization of neural networks. In International Conference on Machine Learning, pages
|
| 513 |
+
510 10767–10777. PMLR, 2020.
|
| 514 |
+
511 [79] Z. Yao, A. Gholami, K. Keutzer, and M. W. Mahoney. Pyhessian: Neural networks through
|
| 515 |
+
512 the lens of the hessian. In 2020 IEEE International Conference on Big Data (Big Data), pages
|
| 516 |
+
513 581–590. IEEE, 2020.
|
| 517 |
+
514 [80] C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning
|
| 518 |
+
515 requires rethinking generalization. In 5th International Conference on Learning Representations.
|
| 519 |
+
516 OpenReview.net, 2017.
|
| 520 |
+
517 [81] H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz. mixup: Beyond empirical risk mini
|
| 521 |
+
518 mization. In 6th International Conference on Learning Representations, ICLR, 2018.
|
| 522 |
+
519 [82] J. Zhang, T. He, S. Sra, and A. Jadbabaie. Why gradient clipping accelerates training: A
|
| 523 |
+
520 theoretical justification for adaptivity. In International Conference on Learning Representations,
|
| 524 |
+
521 2019.
|
| 525 |
+
522 [83] Y. Zheng, R. Zhang, and Y. Mao. Regularizing neural networks via adversarial model perturba
|
| 526 |
+
523 tion. In CVPR, 2021.
|
| 527 |
+
524 [84] R. Zhou, C. Tian, and T. Liu. Individually conditional individual mutual information bound on
|
| 528 |
+
525 generalization error. arXiv preprint arXiv:2012.09922, 2020.
|
| 529 |
+
|
| 530 |
+
1. For all authors...
|
| 531 |
+
|
| 532 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 533 |
+
(b) Did you describe the limitations of your work? [Yes] See Section 4, Section 5 and supplementary materials.
|
| 534 |
+
(c) Did you discuss any potential negative societal impacts of your work? [Yes] See supplementary materials.
|
| 535 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 536 |
+
|
| 537 |
+
2. If you are including theoretical results...
|
| 538 |
+
|
| 539 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 2 and Section 3.
|
| 540 |
+
(b) Did you include complete proofs of all theoretical results? [Yes] See supplementary materials.
|
| 541 |
+
|
| 542 |
+
3. If you ran experiments...
|
| 543 |
+
|
| 544 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] See supplementary materials.
|
| 545 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 5 and supplementary materials.
|
| 546 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Section 4 and Section 5.
|
| 547 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Section 4.
|
| 548 |
+
|
| 549 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 550 |
+
|
| 551 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] See Section 4 and Section 5.
|
| 552 |
+
(b) Did you mention the license of the assets? [Yes] See supplementary materials.
|
| 553 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [No]
|
| 554 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No]
|
| 555 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No]
|
| 556 |
+
|
| 557 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 558 |
+
|
| 559 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 560 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 561 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/4i23Bjlh4Y9/4i23Bjlh4Y9_content_list.json
ADDED
|
@@ -0,0 +1,1507 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "On the Generalization of Neural Networks Trained with SGD: Information-Theoretical Bounds and Implications ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
191,
|
| 8 |
+
122,
|
| 9 |
+
808,
|
| 10 |
+
198
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
423,
|
| 19 |
+
251,
|
| 20 |
+
578,
|
| 21 |
+
306
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
343,
|
| 32 |
+
535,
|
| 33 |
+
359
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "1 Understanding the generalization behaviour of deep neural networks is an important \n2 theme of modern research in machine learning. In this paper, we follow up on \n3 a recent work of Neu [49] and present new information-theoretic upper bounds \n4 for the generalization error of neural networks trained with SGD. Our bounds and \n5 experimental study provide new insights on the SGD training of neural networks. \n6 They also point to a new and simple regularization scheme which we show performs \n7 comparably to the current state of the art. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
150,
|
| 42 |
+
375,
|
| 43 |
+
766,
|
| 44 |
+
473
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "8 1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
151,
|
| 54 |
+
501,
|
| 55 |
+
312,
|
| 56 |
+
518
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "9 The outstanding performance of deep learning has brought to the surface some intriguing properties \n10 of deep neural networks, one of which is the observation that despite their high capacity, deep neural \n11 networks tend to generalize well [80]. This contradicts classical wisdom in statistical learning theory \n12 (e.g., [71] ) and has stimulated intense research interest in understanding the generalization behaviour \n13 of modern neural networks. \n14 One theme of research focuses on the study of over-parameterized neural networks, where generaliza \n15 tion bounds are obtained [22, 1, 6, 50, 52, 53, 2, 3] and a curious “double descent” phenomenon is \n16 observed and analyzed [9, 46, 78]. New bounding techniques for analyzing generalization have also \n17 been developed, utilizing information theoretic quantities [64, 65, 77, 5, 13, 69, 23, 7, 4, 30, 84]. The \n18 bounds provided by these techniques have the advantages of accounting for both the data structure \n19 and the learning algorithm. \n20 The generalization ability of neural networks trained with mini-batched stochastic gradient descent \n21 [61], simply referred to SGD in this paper, has also been widely studied. Specifically, built on a \n22 connection between stability and generalization [12], a stability-based bound is first presented in [32], \n23 followed by a surge of research effort exploiting similar approaches [44, 17, 26, 43, 8]. Information \n24 theoretic bounding techniques have also demonstrated great power in analyzing SGD-like algorithms. \n25 For example, [55] is the first to utilize information-theoretical bound in analyzing the generalization \n26 ability of SGLD [28, 74]. The bound was subsquently improved by [47, 31, 62, 72]. Inspired by the \n27 work of [55], [49] presents an information- theoretic analysis of the models trained with SGD. The \n28 analysis of [49] constructs an auxiliary weight process parallel to SGD training and upper-bounds the \n29 generalization error through this auxiliary process. \n30 Another line of research connects the generalization of neural networks with the flatness of loss \n31 minima [35] found by SGD or its variant [40, 20, 24, 51, 16, 37, 38, 83, 27]. This understanding \n32 has led to the discovery of new SGD-based training algorithms for improved generalization. For \n33 example, in a concurrent development by [83] and [27], a local “max-pooling” operation is applied to \n34 the loss landscape prior to the SGD updates. This approach, referred to as AMP[83] or SAM[27], is \n35 shown to make SGD favor flatter minima and achieve the state-of-the-art performance among various \n36 competitive regularization schemes [83]. \n37 In this paper, we focus on investigating the generalization of neural networks trained with SGD. \n38 We build upon the work of [49]. Following the same construction of the auxiliary weight process \n39 in [49], we present upper bounds of generalization error that improve upon [49] in two ways. The \n40 first improvement is via removing an unnecessary term in the bounds of [49] by invoking the HWI \n41 inequality [60]. The second improvement is via replacing a sample-level mutual information term in \n42 [49] with an instance-level mutual information term, exploiting a recent result of [13]. The bounds we \n43 obtain decompose into two terms, one measuring the impact of training trajectories (“the trajectory \n44 term”) and the other measuring the impact of the flatness of the found solution (“the flatness term”). \n45 We empirically validate the derived bounds. Various insights are also obtained experimentally \n46 concerning the generalization of neural networks under SGD training. For example, the batch size of \n47 SGD appears to impact the trajectory term and the flatness term in opposite ways, which complicates \n48 the overall dependency of generalization error on batch sizes. A particular interesting observation \n49 from our experiments is that a key quantity arising in the trajectory term of the bounds, which we \n50 refer to as gradient dispersion1, reveals a double descent phenomenon with respect to training epochs. \n51 Most intriguingly, the valley in the double descent curve appears to mark the great divide between the \n52 “generalization regime” and the “memorization regime” of training. Furthering from this observation, \n53 we also show that it is possible to reduce the memorization effect by dynamically clipping the gradient \n54 and reducing its dispersion. \n55 Our bounds also inspire a natural and simple solution to alleviate generalization error. Specifically, \n56 we propose a new training scheme, referred to as Gaussian model perturbation (GMP), aiming at \n57 reducing the flatness term of the bounds. This scheme effectively applies a local “average pooling” to \n58 the empirical risk surface prior to SGD, greatly resembling the “max-pooling” approach adopted in \n59 AMP[83]. We demonstrate experimentally that GMP achieves a competitive performance with the \n60 current art of regularization schemes. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
148,
|
| 65 |
+
534,
|
| 66 |
+
825,
|
| 67 |
+
603
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "",
|
| 74 |
+
"bbox": [
|
| 75 |
+
147,
|
| 76 |
+
609,
|
| 77 |
+
825,
|
| 78 |
+
693
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
147,
|
| 87 |
+
698,
|
| 88 |
+
825,
|
| 89 |
+
837
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
148,
|
| 98 |
+
844,
|
| 99 |
+
823,
|
| 100 |
+
900
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
147,
|
| 109 |
+
92,
|
| 110 |
+
826,
|
| 111 |
+
133
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "",
|
| 118 |
+
"bbox": [
|
| 119 |
+
147,
|
| 120 |
+
140,
|
| 121 |
+
825,
|
| 122 |
+
251
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "",
|
| 129 |
+
"bbox": [
|
| 130 |
+
147,
|
| 131 |
+
256,
|
| 132 |
+
825,
|
| 133 |
+
395
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "",
|
| 140 |
+
"bbox": [
|
| 141 |
+
147,
|
| 142 |
+
401,
|
| 143 |
+
825,
|
| 144 |
+
484
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "Length constraints precludes elaboration at places. The reader is referred to supplementary materials for proofs and additional information. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
158,
|
| 153 |
+
491,
|
| 154 |
+
823,
|
| 155 |
+
518
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "63 Other Related Literature Gradient dispersion is mostly studied from optimization perspectives[11, \n64 63, 39, 75, 25]. Prior to this work, only a few works relate gradient dispersion with the generalization \n65 behaviour of the networks. In [49, 72], gradient dispersion also appears in the generalization bounds. \n66 In [38], gradient dispersion is argued to capture a notion of “flatness” of the local minima of the loss \n67 landscape, thereby correlating with generalization. \n68 Injecting noise in the training process has been proposed in various regularization schemes, for \n69 example, [10, 14, 15, 68, 73]. But unlike the Gaussian model perturbation scheme derived in this \n70 paper, where noise is injected to the model parameters, noise in those schemes is injected either to \n71 the training data or to the network activation. \n72 Gradient clipping is a common technique for preventing gradient exploding (see, e.g., [45, 56]). \n73 This technique is also used in [82] to accelerate training. In this paper, gradient clipping is used to \n74 investigate and control the impact of gradient dispersion on generalization error. ",
|
| 162 |
+
"bbox": [
|
| 163 |
+
148,
|
| 164 |
+
534,
|
| 165 |
+
825,
|
| 166 |
+
603
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "",
|
| 173 |
+
"bbox": [
|
| 174 |
+
148,
|
| 175 |
+
609,
|
| 176 |
+
825,
|
| 177 |
+
665
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "",
|
| 184 |
+
"bbox": [
|
| 185 |
+
148,
|
| 186 |
+
671,
|
| 187 |
+
825,
|
| 188 |
+
714
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "75 2 Preliminaries ",
|
| 195 |
+
"text_level": 1,
|
| 196 |
+
"bbox": [
|
| 197 |
+
148,
|
| 198 |
+
733,
|
| 199 |
+
318,
|
| 200 |
+
750
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "Population Risk, Empirical Risk and Generalization Error Unless otherwise noted, a random variable will be denoted by a capitalized letter (e.g., $Z$ ), and its realization denoted by the corresponding lower-case letter (e.g. $z$ ). Let $\\mathcal { Z }$ be the instance space of interest and $\\mu$ be an unknown distribution on $\\mathcal { Z }$ , specifying random variable $Z$ . Let $\\mathcal { W } \\subseteq \\bar { \\mathbb { R } } ^ { d }$ be the space of hypotheses. Suppose that a training sample ${ \\bar { S } } = ( Z _ { 1 } , Z _ { 2 } , \\ldots , Z _ { n } )$ is drawn i.i.d. from $\\mu$ and that a stochastic learning algorithm $\\mathcal { A }$ takes $S$ as its input and outputs a hypothesis $W \\in { \\mathcal { W } }$ according to some conditional distribution $P _ { W | S }$ mapping ${ \\mathcal { Z } } ^ { n }$ to $\\mathcal { W }$ . Let $\\ell : \\mathcal { W } \\times \\mathcal { Z } \\to \\mathbb { R } ^ { + }$ be a loss function, where $\\ell ( w , z )$ measures the “unfitness” or “error” of any $z \\in { \\mathcal { Z } }$ with respect to a hypothesis $w \\in \\mathcal W$ . The population risk, for any ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
173,
|
| 209 |
+
763,
|
| 210 |
+
825,
|
| 211 |
+
876
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 1
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "equation",
|
| 217 |
+
"img_path": "images/7b15043063da74c6a051a08bb41edd33da5135717da6761a35a7eda90807389a.jpg",
|
| 218 |
+
"text": "$$\nL _ { \\mu } ( w ) \\triangleq \\mathbb { E } _ { Z \\sim \\mu } [ \\ell ( w , Z ) ] .\n$$",
|
| 219 |
+
"text_format": "latex",
|
| 220 |
+
"bbox": [
|
| 221 |
+
411,
|
| 222 |
+
103,
|
| 223 |
+
584,
|
| 224 |
+
121
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "85 The goal of learning is to find a hypothesis $w$ that minimizes the population risk. But since $\\mu$ is only \n6 partially accessible via the sample $S$ , in practice, we instead turn to the empirical risk, defined as ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
155,
|
| 233 |
+
122,
|
| 234 |
+
825,
|
| 235 |
+
151
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "equation",
|
| 241 |
+
"img_path": "images/8950c71e73a6ab78e4d6a7f018f99922a4cbcde03e5fca24910811ed4a450389.jpg",
|
| 242 |
+
"text": "$$\nL _ { S } ( w ) \\triangleq { \\frac { 1 } { n } } \\sum _ { i = 1 } ^ { n } \\ell ( w , Z _ { i } ) .\n$$",
|
| 243 |
+
"text_format": "latex",
|
| 244 |
+
"bbox": [
|
| 245 |
+
411,
|
| 246 |
+
154,
|
| 247 |
+
584,
|
| 248 |
+
195
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "87 The expected generalization error of the learning algorithm $\\mathcal { A }$ is then defined as ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
142,
|
| 257 |
+
198,
|
| 258 |
+
696,
|
| 259 |
+
214
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "equation",
|
| 265 |
+
"img_path": "images/ee00e1de858198c6d03483ac21c6b922e0ae0f12eb0453d28cb2259728844abe.jpg",
|
| 266 |
+
"text": "$$\n\\mathrm { g e n } ( \\mu , P _ { W | S } ) \\triangleq \\mathbb { E } _ { W , S } [ L _ { \\mu } ( W ) - L _ { S } ( W ) ] ,\n$$",
|
| 267 |
+
"text_format": "latex",
|
| 268 |
+
"bbox": [
|
| 269 |
+
354,
|
| 270 |
+
218,
|
| 271 |
+
642,
|
| 272 |
+
237
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "where the expectation is taken over the joint distribution of 88 $( S , W )$ (i.e., $\\mu ^ { n } \\otimes P _ { W | S } )$ . ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
153,
|
| 281 |
+
241,
|
| 282 |
+
735,
|
| 283 |
+
257
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "89 Throughout this paper, we take $\\ell$ as a continuous function (adopting the usual notion “surrogate loss” \n90 [66].). Additionally, we assume that $\\ell$ is differentiable almost everywhere with respect to both $w$ and \n91 $z$ . Furthermore we assume that $\\ell ( w , Z )$ is $R$ -subgaussian2 for any $w \\in \\mathcal { W }$ . Note that a bounded loss \n92 is guaranteed to be subgaussian for all $\\mu$ and all $w \\in \\mathcal { W }$ . Let $I ( X ; Y )$ denote the mutual information \n93 [18] between any pair of random variables $( X , Y )$ . The following results are known. ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
145,
|
| 292 |
+
262,
|
| 293 |
+
828,
|
| 294 |
+
333
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "94 Lemma 1 ([77, Theorem 1.]). The expected generalization error of algorithm $\\mathcal { A }$ is bounded by ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
155,
|
| 303 |
+
335,
|
| 304 |
+
797,
|
| 305 |
+
351
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "equation",
|
| 311 |
+
"img_path": "images/2133f55a32b29cacaa93242cefa9051005ec41fa8d40b35486b4acb1ebe35b14.jpg",
|
| 312 |
+
"text": "$$\n| \\mathrm { g e n } ( \\mu , P _ { W | S } ) | \\leq \\sqrt { \\frac { 2 R ^ { 2 } } { n } I ( W ; S ) } ,\n$$",
|
| 313 |
+
"text_format": "latex",
|
| 314 |
+
"bbox": [
|
| 315 |
+
380,
|
| 316 |
+
354,
|
| 317 |
+
616,
|
| 318 |
+
388
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "95 ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
147,
|
| 327 |
+
390,
|
| 328 |
+
161,
|
| 329 |
+
400
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "96 Lemma 2 ([13, Proposition 1.]). The expected generalization error of algorithm $\\mathcal { A }$ is bounded by ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
143,
|
| 338 |
+
404,
|
| 339 |
+
813,
|
| 340 |
+
420
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "equation",
|
| 346 |
+
"img_path": "images/7faed035dd41901e87fadedf7d4465b24944ea9407d3f036ed3c58fbc70dc4b1.jpg",
|
| 347 |
+
"text": "$$\n| \\mathrm { g e n } ( \\mu , P _ { W | S } ) | \\leq \\frac { 1 } { n } \\sum _ { i = 1 } ^ { n } \\sqrt { 2 R ^ { 2 } I ( W ; Z _ { i } ) } ,\n$$",
|
| 348 |
+
"text_format": "latex",
|
| 349 |
+
"bbox": [
|
| 350 |
+
357,
|
| 351 |
+
422,
|
| 352 |
+
638,
|
| 353 |
+
464
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "97 ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
147,
|
| 362 |
+
462,
|
| 363 |
+
160,
|
| 364 |
+
472
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 2
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "98 Stochastic Gradient Descent We now restrict the learning algorithm $\\mathcal { A }$ to be the mini-batched \n99 stochastic gradient descent (SGD) algorithm for empirical risk minimization. For each training epoch, \n100 the dataset $S$ is randomly split into $m$ disjoint mini-batches, each having size $b$ , namely, $n = m b$ . \n101 Based on each batch, one parameter update is performed. Specifically, let $B _ { t }$ denote the batch used \n102 for the $t ^ { \\mathrm { t h } }$ update. Define ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
142,
|
| 373 |
+
486,
|
| 374 |
+
826,
|
| 375 |
+
556
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 2
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "equation",
|
| 381 |
+
"img_path": "images/3944f6469925fe62a558b572616dadc4a17d86df84fe8893b1701cbd3cac18e9.jpg",
|
| 382 |
+
"text": "$$\ng ( w , B _ { t } ) \\triangleq \\frac { 1 } { b } \\sum _ { z \\in B _ { t } } \\nabla _ { w } \\ell ( w , z ) ,\n$$",
|
| 383 |
+
"text_format": "latex",
|
| 384 |
+
"bbox": [
|
| 385 |
+
393,
|
| 386 |
+
554,
|
| 387 |
+
601,
|
| 388 |
+
593
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 2
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "103 namely, $g ( w , B _ { t } )$ is the average gradient computed for the batch $B _ { t }$ with respect to parameter $w$ . The rule for the 104 $t ^ { \\mathrm { t h } }$ parameter update is then ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
143,
|
| 397 |
+
594,
|
| 398 |
+
826,
|
| 399 |
+
625
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 2
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "equation",
|
| 405 |
+
"img_path": "images/5874892e2aa2c7f2a3d65fbd5574cdc2605cc4d94daf3282fc2735d63bae43a3.jpg",
|
| 406 |
+
"text": "$$\nW _ { t } \\triangleq W _ { t - 1 } - \\lambda _ { t } g ( W _ { t - 1 } , B _ { t } ) ,\n$$",
|
| 407 |
+
"text_format": "latex",
|
| 408 |
+
"bbox": [
|
| 409 |
+
393,
|
| 410 |
+
628,
|
| 411 |
+
601,
|
| 412 |
+
647
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 2
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "105 where $\\lambda _ { t }$ is the learning rate at the step $t$ . The initial parameter setting $W _ { 0 }$ is assumed to be drawn \n106 from the zero-mean spherical Gaussian $\\mathcal { N } ( 0 , \\sigma _ { 0 } ^ { 2 } \\mathbf { I } _ { d } )$ with variance $\\sigma _ { 0 } ^ { 2 }$ in each dimension. We will \n107 assume that the SGD algorithm stops after $T$ updates and outputs $W _ { T }$ as the learned model parameter. \n108 Given the training sample $S$ , let $\\xi$ govern the randomness in the sequence $( B _ { 1 } , B _ { 2 } , \\ldots , B _ { T } )$ of \n109 batches. For the simplicity of notion, we will fix the configuration of $\\xi$ . That is, we will assume a \n110 fixed “batching trajectory”, or a fixed way to shuffle the example indices $\\{ 1 , \\ldots , n \\}$ and divide them \n111 into $m$ batches in each epoch. The presented generalization bounds of this paper can be extended \n112 to the case where the batching trajectory is uniformly random (as we set up above). This merely \n113 involves averaging over all batching trajectories or taking expectation over $\\xi$ . \n114 Auxiliary Weight Process We now associate with the SGD algorithm an auxiliary weight process \n115 $\\{ \\widetilde { W _ { t } } \\}$ . Let $\\sigma ^ { 2 }$ be given, and let $\\sigma _ { 1 } , \\sigma _ { 2 } , \\ldots , \\sigma _ { T }$ be a sequence of positive real numbers. Define ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
140,
|
| 421 |
+
650,
|
| 422 |
+
826,
|
| 423 |
+
694
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 2
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "",
|
| 430 |
+
"bbox": [
|
| 431 |
+
140,
|
| 432 |
+
699,
|
| 433 |
+
825,
|
| 434 |
+
784
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 2
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "",
|
| 441 |
+
"bbox": [
|
| 442 |
+
142,
|
| 443 |
+
796,
|
| 444 |
+
826,
|
| 445 |
+
829
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 2
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "equation",
|
| 451 |
+
"img_path": "images/fc2895c9df0ed0984d18a29163952861ab767786ee658d8094002e368de93d2a.jpg",
|
| 452 |
+
"text": "$$\n\\widetilde { W } _ { 0 } \\triangleq W _ { 0 } , \\quad \\mathrm { a n d } \\widetilde { W } _ { t } \\triangleq \\widetilde { W } _ { t - 1 } - \\lambda _ { t } g ( W _ { t - 1 } , B _ { t } ) + N _ { t } , \\mathrm { f o r } t > 0 ,\n$$",
|
| 453 |
+
"text_format": "latex",
|
| 454 |
+
"bbox": [
|
| 455 |
+
276,
|
| 456 |
+
833,
|
| 457 |
+
720,
|
| 458 |
+
852
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 2
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "text",
|
| 464 |
+
"text": "where 116 $N _ { t } \\sim \\mathcal N ( 0 , \\sigma _ { t } ^ { 2 } \\mathbf I _ { d } )$ is a Gaussian noise. The relationship between this auxiliary weight process 117 $\\{ \\widetilde { W _ { t } } \\}$ and the weight process $\\{ W _ { t } \\}$ in SGD is shown in the Bayesian network below. ",
|
| 465 |
+
"bbox": [
|
| 466 |
+
145,
|
| 467 |
+
856,
|
| 468 |
+
821,
|
| 469 |
+
888
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 2
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "118 ",
|
| 476 |
+
"bbox": [
|
| 477 |
+
142,
|
| 478 |
+
119,
|
| 479 |
+
161,
|
| 480 |
+
132
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 3
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "equation",
|
| 486 |
+
"img_path": "images/480a41ebbbcd284bc0738798791dd939b242ae4cb4e25c7933ee3ed042b0c536.jpg",
|
| 487 |
+
"text": "$$\n\\begin{array} { r l r l r l r l r l r l r l r } & { } & & { N _ { 1 } } & & { N _ { 2 } } & & { \\cdots } & & { N _ { T - 1 } } & & { N _ { T } } \\\\ & { } & & { \\downarrow } & & { \\downarrow } & & { } & & { \\downarrow } & & { \\downarrow } & & { \\downarrow } \\\\ { \\widetilde { W } _ { 0 } } & { } & { \\widetilde { W } _ { 1 } } & { } & { \\widetilde { W } _ { 2 } } & { } & { \\cdots } & { } & { \\widetilde { W } _ { T - 1 } } & { } & { \\widetilde { W } _ { T } } \\\\ { \\parallel } & { \\nearrow } & { } & { \\chi } & { \\chi } & { \\nearrow } & { \\dots } & { } & { \\dots } & { } & { W _ { T } } \\\\ { W _ { 0 } } & { } & { W _ { 1 } } & { } & { W _ { 2 } } & { } & { \\cdots } & { } & { W _ { T - 1 } } & { } & { W _ { T } } \\end{array}\n$$",
|
| 488 |
+
"text_format": "latex",
|
| 489 |
+
"bbox": [
|
| 490 |
+
276,
|
| 491 |
+
85,
|
| 492 |
+
718,
|
| 493 |
+
165
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 3
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "119 Let $\\begin{array} { r } { \\Delta _ { t } = \\sum _ { \\tau = 1 } ^ { t } N _ { \\tau } } \\end{array}$ . Noting that the weight updates in $\\{ \\widetilde { W } _ { t } \\}$ uses the same gradient signal as that \n120 used in $\\{ W _ { t } \\}$ (which depends on $W _ { t - 1 }$ not $\\widetilde { W } _ { t - 1 } )$ ), it is immediate that $\\widetilde { W } _ { t } = W _ { t } + \\Delta _ { t }$ . Note that this \n121 auxiliary process follows the same construction as [49], which we will use to study the generalization \n122 error of SGD. ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
140,
|
| 502 |
+
172,
|
| 503 |
+
826,
|
| 504 |
+
236
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 3
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": "123 To that end, define gradient dispersion at parameter $w$ by ",
|
| 511 |
+
"bbox": [
|
| 512 |
+
142,
|
| 513 |
+
241,
|
| 514 |
+
550,
|
| 515 |
+
257
|
| 516 |
+
],
|
| 517 |
+
"page_idx": 3
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"type": "equation",
|
| 521 |
+
"img_path": "images/d19d44d630d18373a9ef01709af8dc622525f47098ab713fd0218ef2803af5b2.jpg",
|
| 522 |
+
"text": "$$\n\\mathbb { V } ( w ) \\triangleq \\mathbb { E } \\left[ | | \\nabla _ { w } \\ell ( w , Z ) - \\mathbb { E } \\left[ \\nabla _ { w } \\ell ( w , Z ) \\right] | | _ { 2 } ^ { 2 } \\right] ,\n$$",
|
| 523 |
+
"text_format": "latex",
|
| 524 |
+
"bbox": [
|
| 525 |
+
339,
|
| 526 |
+
263,
|
| 527 |
+
655,
|
| 528 |
+
282
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 3
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "124 where the expectation is taken over $Z \\sim \\mu$ . ",
|
| 535 |
+
"bbox": [
|
| 536 |
+
145,
|
| 537 |
+
287,
|
| 538 |
+
457,
|
| 539 |
+
303
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 3
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "For a given sample 125 $s \\in \\mathcal { Z } ^ { n }$ , define ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
148,
|
| 548 |
+
309,
|
| 549 |
+
401,
|
| 550 |
+
324
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 3
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "equation",
|
| 556 |
+
"img_path": "images/599fc23594299c5e1158d8b2c88a76a108eb527e6d693d2612fa17bf8a909817.jpg",
|
| 557 |
+
"text": "$$\n\\gamma ( w , s ) \\triangleq \\mathbb { E } \\left[ L _ { s } ( w + \\Delta _ { T } ) - L _ { s } ( w ) \\right] ,\n$$",
|
| 558 |
+
"text_format": "latex",
|
| 559 |
+
"bbox": [
|
| 560 |
+
370,
|
| 561 |
+
330,
|
| 562 |
+
624,
|
| 563 |
+
348
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 3
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "26 where the expectation is taken over $\\Delta _ { T }$ and $L _ { s } ( w )$ is the empirical risk of $s$ at parameter $w$ . ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
156,
|
| 572 |
+
354,
|
| 573 |
+
776,
|
| 574 |
+
371
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 3
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "In the remainder of the paper, let 127 $S ^ { \\prime }$ denote another sample drawn from $\\mu ^ { n }$ , independent of all other 128 random variables. The main generalization bound in [49] is re-stated below. ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
151,
|
| 583 |
+
375,
|
| 584 |
+
823,
|
| 585 |
+
404
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 3
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "129 Lemma 3 ([49, Theorem 1.]). The generalization error of SGD is upper bounded by ",
|
| 592 |
+
"bbox": [
|
| 593 |
+
138,
|
| 594 |
+
407,
|
| 595 |
+
732,
|
| 596 |
+
422
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 3
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "equation",
|
| 602 |
+
"img_path": "images/a36cea3046df51b6b5c544831c3ea00c62925ece04b0356ceb80ab6a15fd8257.jpg",
|
| 603 |
+
"text": "$$\n\\left| \\mathrm { g e n } ( \\mu , P _ { W _ { T } | S } ) \\right| \\leq \\sqrt { \\frac { 2 R ^ { 2 } } { n } \\sum _ { t = 1 } ^ { T } \\frac { \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\Psi ( W _ { t - 1 } ) + \\frac { \\Psi ( W _ { t - 1 } ) } { b } \\right] } + \\left| \\mathbb { E } \\left[ \\gamma ( W _ { T } , S ) - \\gamma ( W _ { T } , S ^ { \\prime } ) \\right] \\right| ,\n$$",
|
| 604 |
+
"text_format": "latex",
|
| 605 |
+
"bbox": [
|
| 606 |
+
183,
|
| 607 |
+
429,
|
| 608 |
+
812,
|
| 609 |
+
477
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 3
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "equation",
|
| 615 |
+
"img_path": "images/e3c0b68dc5a298df62f6f9083a922c676865726089c277847fa3da16689050ef.jpg",
|
| 616 |
+
"text": "$$\n\\begin{array} { r } { \\Psi ( w _ { t - 1 } ) \\triangleq \\mathbb { E } \\left[ | | \\nabla _ { w } \\ell ( w _ { t - 1 } , Z ) - \\nabla _ { w } \\ell ( w _ { t - 1 } + \\zeta , Z ) | | _ { 2 } ^ { 2 } \\right] a n d \\zeta \\sim \\mathcal { N } ( 0 , 2 \\sum _ { i = 1 } ^ { t - 1 } \\sigma _ { i } ^ { 2 } \\mathrm { I } _ { d } ) . } \\end{array}\n$$",
|
| 617 |
+
"text_format": "latex",
|
| 618 |
+
"bbox": [
|
| 619 |
+
217,
|
| 620 |
+
484,
|
| 621 |
+
785,
|
| 622 |
+
505
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 3
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "The term $\\Psi ( w _ { t - 1 } )$ in the bound is referred to as “local gradient sensitivity” in [49]. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
161,
|
| 631 |
+
513,
|
| 632 |
+
720,
|
| 633 |
+
530
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 3
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "3 New Generalization Bounds for SGD ",
|
| 640 |
+
"text_level": 1,
|
| 641 |
+
"bbox": [
|
| 642 |
+
158,
|
| 643 |
+
546,
|
| 644 |
+
514,
|
| 645 |
+
565
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 3
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "133 We first prove that the generalization bound in Lemma 3 can be tightened by removing the local \n134 gradient sensitivity term $\\Psi ( w _ { t - 1 } )$ . The key observation is that an independence condition used for \n135 establishing Lemma 3 in [49] is unnecessary (see Lemma 4 in [49]). This requires invoking a vector \n136 version of the HWI inequality [60, Lemma 3.4.2], which we prove in this paper. ",
|
| 652 |
+
"bbox": [
|
| 653 |
+
143,
|
| 654 |
+
578,
|
| 655 |
+
825,
|
| 656 |
+
635
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 3
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "Lemma 4. Let37 $X$ and $Y$ be two random vectors in $\\mathbb { R } ^ { d }$ , and let $\\boldsymbol { N } \\sim \\mathcal { N } ( 0 , \\mathbf { I } _ { d } )$ be independent of 38 $( X , Y )$ . Then, for every $t > 0$ , $\\begin{array} { r } { \\mathrm { D } _ { \\mathrm { K L } } \\big ( P _ { X + \\sqrt { t } N } | | P _ { Y + \\sqrt { t } N } \\big ) \\leq \\frac { 1 } { 2 t } \\mathbb { E } \\left[ | | X - Y | | ^ { 2 } \\right] } \\end{array}$ . ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
153,
|
| 665 |
+
637,
|
| 666 |
+
823,
|
| 667 |
+
672
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 3
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "39 Here $\\mathrm { D } _ { \\mathrm { K L } }$ is the KL divergence. Note that the bound in Lemma 3 relies on a similar result which \n40 however requires the independence of $X$ and $Y$ . Using Lemma 4, we obtain the following theorem. ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
151,
|
| 676 |
+
679,
|
| 677 |
+
825,
|
| 678 |
+
708
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 3
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "141 Theorem 1. The generalization error of SGD is upper bounded by ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
147,
|
| 687 |
+
712,
|
| 688 |
+
614,
|
| 689 |
+
727
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 3
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "equation",
|
| 695 |
+
"img_path": "images/db4a383186ef3c9cfecb9b9383182057a46871f21e75f190db2eb26e68540873.jpg",
|
| 696 |
+
"text": "$$\n\\left| \\mathrm { g e n } ( \\mu , P _ { W _ { T } | S } ) \\right| \\le \\sqrt { \\frac { 2 R ^ { 2 } } { n b } \\sum _ { t = 1 } ^ { T } \\frac { \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] } + \\left| \\mathbb { E } \\left[ \\gamma ( W _ { T } , S ) - \\gamma ( W _ { T } , S ^ { \\prime } ) \\right] \\right| .\n$$",
|
| 697 |
+
"text_format": "latex",
|
| 698 |
+
"bbox": [
|
| 699 |
+
232,
|
| 700 |
+
733,
|
| 701 |
+
766,
|
| 702 |
+
784
|
| 703 |
+
],
|
| 704 |
+
"page_idx": 3
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "text",
|
| 708 |
+
"text": "143 The proof of this theorem, as the bounds in [49], relies on Lemma 1 and the sample-level mutual \n144 information bound therein. This theorem can be further tightened by exploiting the fact that the \n145 instance-level mutual information bound in Lemma 2 is in fact tighter than the sample-level mutual \n146 information bound in Lemma 1, as shown in [13]. The main ingredient to proceed in this direction is \n147 the following lemma. \nLemma 5. Le148 $\\begin{array} { r } { \\ d _ { t } G _ { t } = - \\lambda _ { t } g ( W _ { t - 1 } , B _ { t } ) . \\ d H _ { t } Z _ { i } \\in B _ { t } , t h e n I ( G _ { t } + N _ { t } ; Z _ { i } | \\widetilde W _ { t - 1 } ) \\le \\frac { \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } b ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] . } \\end{array}$ \n49 \n150 In this lemma, the mutual information $I ( G _ { t } + N _ { t } ; Z _ { i } | \\widetilde { W } _ { t - 1 } )$ roughly indicates the degree by which \n151 the SGD’s updating signal $G _ { t }$ (smoothed with noise) depends on an individual training instance \n152 $Z _ { i }$ , when $Z _ { i }$ is used for computing the gradient. When this dependency is strong (giving rise to a \n153 high value of the mutual information), the model conceivably tends to overfit the individual training \n154 instances. This lemma suggests that the strength of this dependency can be upper-bounded by the \n155 expected gradient dispersion at the current weight configuration. In our experiments, we will estimate \n156 the expected gradient dispersion and validate this intuition. \n157 It is remarkable that the noise $\\{ N _ { t } \\}$ plays an important role for the bound to hold. To see this, \n158 consider $b = 1$ and $\\mathcal { Z }$ is countable and large. Then $\\bar { I } ( G _ { t } ; Z _ { t } | W _ { t - 1 } )$ is merely the conditional entropy \n159 $H ( Z _ { i } | W _ { t - 1 } )$ , which would grow with sample size $n$ at least as $\\log n$ . Upper-bounding it with a \n160 quantity independent of $n$ would be impossible – This justifies the construction of the auxiliary \n161 weight process. \n162 We now state our main theorem. Unlike Theorem 1, which considers a random batching trajectory, \n163 this theorem considers a fixed batching trajectory to keep the expression less cluttered. For that \n164 batching trajectory, we will use $\\mathcal { T } _ { i }$ to denote the set of indices of batches $B _ { t }$ containing instance $Z _ { i }$ . ",
|
| 709 |
+
"bbox": [
|
| 710 |
+
140,
|
| 711 |
+
804,
|
| 712 |
+
825,
|
| 713 |
+
876
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 3
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "",
|
| 720 |
+
"bbox": [
|
| 721 |
+
153,
|
| 722 |
+
877,
|
| 723 |
+
823,
|
| 724 |
+
911
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 3
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "",
|
| 731 |
+
"bbox": [
|
| 732 |
+
140,
|
| 733 |
+
88,
|
| 734 |
+
825,
|
| 735 |
+
189
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 4
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "",
|
| 742 |
+
"bbox": [
|
| 743 |
+
140,
|
| 744 |
+
194,
|
| 745 |
+
825,
|
| 746 |
+
265
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 4
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "",
|
| 753 |
+
"bbox": [
|
| 754 |
+
142,
|
| 755 |
+
270,
|
| 756 |
+
826,
|
| 757 |
+
313
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 4
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "165 Theorem 2. The expected generalization error of SGD is bounded by ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
147,
|
| 766 |
+
314,
|
| 767 |
+
635,
|
| 768 |
+
329
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 4
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "equation",
|
| 774 |
+
"img_path": "images/c628b05d8e7e3ab57f35a9b40ee7d1a86b3ef1d62d323ba9a635d38a3dbf1108.jpg",
|
| 775 |
+
"text": "$$\n\\left| \\mathrm { g e n } ( \\mu , P _ { W _ { T } | S } ) \\right| \\leq \\frac { R } { n b } \\sum _ { i = 1 } ^ { n } \\sqrt { \\sum _ { t \\in { \\mathcal T } _ { i } } \\frac { 2 \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] } + \\left| \\mathbb { E } \\left[ \\gamma ( W _ { T } , S ) - \\gamma ( W _ { T } , S ^ { \\prime } ) \\right] \\right| .\n$$",
|
| 776 |
+
"text_format": "latex",
|
| 777 |
+
"bbox": [
|
| 778 |
+
217,
|
| 779 |
+
330,
|
| 780 |
+
779,
|
| 781 |
+
382
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 4
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "167 With an additional assumption, the second term in the bound can be re-expressed, as shown in the \n168 following corollary. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
142,
|
| 790 |
+
396,
|
| 791 |
+
825,
|
| 792 |
+
425
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 4
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "169 Corollary 1. Assume $L _ { \\mu } ( w _ { T } ) \\leq \\mathbb { E } _ { \\Delta } \\left[ L _ { \\mu } ( w _ { T } + \\Delta _ { T } ) \\right]$ , then the following holds, ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
143,
|
| 801 |
+
426,
|
| 802 |
+
707,
|
| 803 |
+
444
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 4
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "equation",
|
| 809 |
+
"img_path": "images/ec6ad37a943f8aa26c9a64c7d3d7bf40be0770dc0fb4b436273ef367c0aac428.jpg",
|
| 810 |
+
"text": "$$\n\\mathrm { g e n } ( \\mu , P _ { W r | S } ) \\leq \\frac { R } { n b } \\sum _ { i = 1 } ^ { n } \\sqrt { \\sum _ { t \\in \\mathcal { T } _ { i } } \\frac { 2 \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] } + \\frac { \\sum _ { t = 1 } ^ { T } \\sigma _ { t } ^ { 2 } } { 2 } \\mathrm { T r } \\left( \\mathbb { E } \\left[ \\mathrm { H } _ { W _ { T } } ( Z ) \\right] \\right) ,\n$$",
|
| 811 |
+
"text_format": "latex",
|
| 812 |
+
"bbox": [
|
| 813 |
+
232,
|
| 814 |
+
446,
|
| 815 |
+
764,
|
| 816 |
+
494
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 4
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "where 170 $\\mathrm { H } _ { W _ { T } }$ is the Hessian matrix of the loss with respect to $W _ { T }$ and $\\operatorname { T r } ( \\cdot )$ denotes trace. ",
|
| 823 |
+
"bbox": [
|
| 824 |
+
140,
|
| 825 |
+
496,
|
| 826 |
+
754,
|
| 827 |
+
512
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 4
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "171 Corollary 1 follows directly from the second order Taylor expansion of the second term in the bound \n172 of Theorem 2. The condition $L _ { \\mu } ( w _ { T } ) \\leq \\mathbb { E } _ { \\Delta } \\left[ L _ { \\mu } ( \\hat { w _ { T } } + \\bar { \\Delta _ { T } } ) \\right]$ indicates that the perturbation does \n173 not decrease the population risk. This is also assumed in [27] in the derivation of a PAC-Bayesian \n174 generalization bound. \n175 Notably, in the bound of Theorem 2, the first term captures the impact of the training trajectory \n176 (“trajectory term”), and the second term captures the impact of the final solution. As seen in Corollary \n177 1, this term in fact measures the flatness for the loss landscape at the found solution (“flatness term”). \n178 The previous bound of [49] (Lemma 3) and its tightened version in Theorem 1 also similarly contain a \n179 trajectory term and a flatness term. Despite that the flatness term there are identical to that in Theorem \n180 2, we now show the trajectory term in Theorem 2 does improve on its counter-part in Theorem 1. \n181 Lemma 6. Assume the instances are sampled without replacement in every epoch. Then the trajectory \n182 term in Theorem 2 is upper-bounded by ",
|
| 834 |
+
"bbox": [
|
| 835 |
+
140,
|
| 836 |
+
518,
|
| 837 |
+
825,
|
| 838 |
+
575
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 4
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "",
|
| 845 |
+
"bbox": [
|
| 846 |
+
140,
|
| 847 |
+
582,
|
| 848 |
+
825,
|
| 849 |
+
665
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 4
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "",
|
| 856 |
+
"bbox": [
|
| 857 |
+
148,
|
| 858 |
+
667,
|
| 859 |
+
823,
|
| 860 |
+
695
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 4
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "equation",
|
| 866 |
+
"img_path": "images/ac197221481770d01649fd97a2bd7299a9a99e25ad7ff064ac7963f5eb911061.jpg",
|
| 867 |
+
"text": "$$\n\\operatorname* { m i n } \\left\\{ \\frac { R } { n } \\sum _ { t = 1 } ^ { T } \\sqrt { \\frac { 2 \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] } , \\sqrt { \\frac { 2 R ^ { 2 } } { n b } \\sum _ { t = 1 } ^ { T } \\frac { \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] } \\right\\} .\n$$",
|
| 868 |
+
"text_format": "latex",
|
| 869 |
+
"bbox": [
|
| 870 |
+
281,
|
| 871 |
+
698,
|
| 872 |
+
718,
|
| 873 |
+
750
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 4
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "184 The condition in Lemma 6 is usually satisfied in practice. This lemma then immediately implies that \n185 the trajectory term in Theorem 2 is no worse than that in Theorem 1. Incorporating this result, if we \n186 restrict the smoothness of the loss function $\\ell$ , we may obtain another version of the generalization \n187 bound (although the flatness term therein is expected to be looser than that in Corollary 1). \n188 Corollary 2. If the loss function is differentiable and $\\beta$ -smooth with respect to $w$ , then under the \n189 condition of Lemma ${ \\it 6 }$ , ",
|
| 880 |
+
"bbox": [
|
| 881 |
+
140,
|
| 882 |
+
765,
|
| 883 |
+
825,
|
| 884 |
+
820
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 4
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "",
|
| 891 |
+
"bbox": [
|
| 892 |
+
147,
|
| 893 |
+
823,
|
| 894 |
+
826,
|
| 895 |
+
852
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 4
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "equation",
|
| 901 |
+
"img_path": "images/2eb2964024645a4c89e42b86f06decf2ec0b2e7fbf78c26220766d5d1fde69d9.jpg",
|
| 902 |
+
"text": "$$\n\\mathrm { g e n } ( \\mu , P _ { W _ { T } | S } ) | \\leq \\operatorname* { m i n } \\left\\{ \\frac { R } { n } \\sum _ { t = 1 } ^ { T } \\sqrt { \\frac { 2 \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] } , \\sqrt { \\frac { 2 R ^ { 2 } } { n b } \\sum _ { t = 1 } ^ { T } \\frac { \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] } \\right\\} + \\beta d \\sum _ { t = 1 } ^ { T } \\sigma _ { t } ^ { 2 } .\n$$",
|
| 903 |
+
"text_format": "latex",
|
| 904 |
+
"bbox": [
|
| 905 |
+
181,
|
| 906 |
+
853,
|
| 907 |
+
825,
|
| 908 |
+
905
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 4
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "191 To conclude, we remark that these bounds suggest that in order for the model to generalize well, both \n192 the trajectory term and the flatness term need to be small — the former involves the interaction of the \n193 learning rate and batch size with the gradient dispersion along the training trajectory, whereas the \n194 latter depends on the flatness of the empirical risk surface at the found solution. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
142,
|
| 917 |
+
92,
|
| 918 |
+
825,
|
| 919 |
+
147
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 5
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "195 4 Experimental Study ",
|
| 926 |
+
"text_level": 1,
|
| 927 |
+
"bbox": [
|
| 928 |
+
143,
|
| 929 |
+
167,
|
| 930 |
+
374,
|
| 931 |
+
185
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 5
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "196 Bound Verification We first verify our bound in Corollary 1 by training an MLP (with one hidden \n197 layer) and an AlexNet [42] on MNIST and CIFAR10 [41], respectively. To simplify estimation, we \n198 fix the weight initialization and set $\\sigma _ { t }$ and $\\lambda _ { t }$ to be constants $\\sigma$ and $\\lambda$ , respectively. To compute \n199 $\\textstyle \\sum _ { i = 1 } ^ { n } { \\sqrt { \\sum _ { t \\in { \\mathcal { T } } _ { i } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] } }$ , we compute the gradient dispersion as its empirical estimate from a \n200 batch, utilizing a PyTorch [54] library BackPack [19]. To compute $\\mathrm { T r } \\left( \\mathbb { E } \\left[ \\mathrm { H } _ { W _ { T } } ( Z ) \\right] \\right)$ , we randomly \n201 sample $10 \\%$ of the training data and use the PyHessian library [79] to compute the Hessian. Since \n202 every choice of $\\sigma$ gives a valid generalization bound in Corollary 1, we need to find the optimal \n203 $\\sigma$ , which gives the tightest bound. This can be done by simply utilizing the fact $A / \\sigma + \\bar { \\sigma ^ { 2 } } B \\geq$ \n204 $3 ( A / 2 ) ^ { 2 / 3 } B ^ { 1 / 3 }$ for any positive $A$ and $B$ , where the equality is achieved by the optimal $\\sigma$ . We set \n205 the sub-gaussian parameter $R = 0 . 1$ . The implementation in this paper is on PyTorch, and all the \n206 experiments are carried out on NVIDIA Tesla V100 GPUs (32 GB). \n207 We perform experiments with varying network width and varying levels of label noise. Specifically, \n208 label noise level $\\epsilon$ refers to the setting where we replace the labels of $\\epsilon$ fraction of the training and \n209 testing instances with random labels. The estimated bound is compared against the true generalization \n210 gap, namely, the difference between the training loss and testing loss, and is shown in Figure 1. \n211 In Figure 1, we see that in all cases the estimated bound follows closely the trend of the true \n212 generalization gap. The fact that the bound curve consistently tracks the gap curve under various \n213 label noise levels indicates that our bound very well captures the changes of the data distribution. \n214 Note that in Figure 1 (a) and (b), our bound decays with the increase of the model size, showing a \n215 trend as opposite to the bounds obtained in classical learning theory. But such a trend clearly better \n216 explains the generalization behaviour of modern neural networks. \n217 Learning Rate and Batch Size. The learning rate and batch size in SGD have explicitly appeared \n218 in the trajectory term of the bound in Theorem 2. From the way they appear in the bound, one may be \n219 tempted to assert that a small learning rate or large batch size will improve generalization. This would \n220 then contradict some previous observations [37, 76, 33], in which increasing the ratio of learning rate \n221 to batch size will benefit generalization. We now investigate this by performing experiments with \n222 varying learning rates and batch sizes. In our experiments, the model is continuously updated until \n223 the average training loss drops below 0.0001. We separate trajectory and flatness terms of the bound \n224 and plot them in Figure 2. \n225 A key observation in Figure 2 is that the learning rate impacts the trajectory term and the flatness term \n226 in opposite ways, as seen, for example, in (a) and (b), where the two set of curves swap their orders in \n227 the two figures. On the other hand, the batch size also impacts the two terms in opposite ways, as seen \n228 in (a) and (b) where curves decrease in (a) but increase in (b). This makes the generalization bound, \n229 i.e., the sum of the two terms, have a rather complex relationship with the settings of learning rate \n230 and batch size. This relationship is further complicated by the fact that a small learning rate requires \n231 a longer training time, or a larger number $T$ of training iterations, which increases the number that \n232 are summed over in the trajectory term. Nonetheless, we do observe that a smaller batch size gives a \n233 lower value of the flatness term ((b) and (d)), confirming the previous wisdom that small batch sizes \n234 enable the neural network to find a flat minima [40]. \n235 Double Descent of Gradient Dispersion We experimentally investigate the impact of gradient \n236 dispersion on the training of the neural networks by fixing the learning rate, batch size and weight \n237 initialization for the each model (MLP for MNIST, AlexNet for CIFAR10). For each model and \n238 various label noise levels, we plot in Figure 3 the evolution of the (empirical) gradient dispersion \n239 $\\widehat { \\mathbb { V } } ( \\boldsymbol { w } _ { t } )$ , training accuracy and testing accuracy across training epochs. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
140,
|
| 940 |
+
199,
|
| 941 |
+
826,
|
| 942 |
+
363
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 5
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "",
|
| 949 |
+
"bbox": [
|
| 950 |
+
140,
|
| 951 |
+
369,
|
| 952 |
+
825,
|
| 953 |
+
426
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 5
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "image",
|
| 959 |
+
"img_path": "images/e2845eede1a36c96ff767cc3b2a3b3b932b49c4abdcf63f4d16e3823ae0705ae.jpg",
|
| 960 |
+
"image_caption": [
|
| 961 |
+
"Figure 1: Estimated bound and empirical generalization gap (“gap”) as functions of network width ((a) and (b)) and label noise level ((c) and (d)). Left Y-axis: gap value; right Y-axis: bound value. "
|
| 962 |
+
],
|
| 963 |
+
"image_footnote": [],
|
| 964 |
+
"bbox": [
|
| 965 |
+
179,
|
| 966 |
+
439,
|
| 967 |
+
818,
|
| 968 |
+
547
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 5
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "",
|
| 975 |
+
"bbox": [
|
| 976 |
+
140,
|
| 977 |
+
599,
|
| 978 |
+
825,
|
| 979 |
+
684
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 5
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "image",
|
| 985 |
+
"img_path": "images/d7ecfa641ada864e8b7f67d14386df264cd5899c6554078a3f5f55e475c4a3a6.jpg",
|
| 986 |
+
"image_caption": [
|
| 987 |
+
"Figure 2: The impact of learning rate and batch size on the trajectory term and the flatness term. "
|
| 988 |
+
],
|
| 989 |
+
"image_footnote": [],
|
| 990 |
+
"bbox": [
|
| 991 |
+
189,
|
| 992 |
+
695,
|
| 993 |
+
813,
|
| 994 |
+
808
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 5
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
140,
|
| 1003 |
+
856,
|
| 1004 |
+
825,
|
| 1005 |
+
911
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 5
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
140,
|
| 1014 |
+
92,
|
| 1015 |
+
825,
|
| 1016 |
+
147
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 6
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
138,
|
| 1025 |
+
154,
|
| 1026 |
+
825,
|
| 1027 |
+
291
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 6
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "image",
|
| 1033 |
+
"img_path": "images/0a762b53a3615ccaa00fe726062e74cdfffe11afbda1cbd432bd3e98a7ce576c.jpg",
|
| 1034 |
+
"image_caption": [
|
| 1035 |
+
"Figure 3: Epoch-wise double descent of gradient dispersion, in relation to training/testing accuracies. "
|
| 1036 |
+
],
|
| 1037 |
+
"image_footnote": [],
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
176,
|
| 1040 |
+
304,
|
| 1041 |
+
821,
|
| 1042 |
+
523
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 6
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
142,
|
| 1051 |
+
569,
|
| 1052 |
+
825,
|
| 1053 |
+
642
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 6
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "An intriguing epoch-wise “double descent” phenomenon is observed, particularly when the labels are noisy. According to the double descent curve, the training may be split into three phases (e.g., Figure 3 (h)). In the first phase, the gradient dispersion rapidly descends and maintains a very low level. In this phase, both training and test accuracies increase while maintaining a very small generalization gap. This suggests that the network in this phase is extracting useful patterns and generalizes well. In the second phase, the gradient dispersion starts increasing until it reaches a peak value. In this phase, the training and testing accuracies gradually diverge, marking the model entering an overfitting or “memorization” regime – when the data contains the noisy labels, the network mostly tries to memorize the labels in the training set. In the third phase, the gradient dispersion descends again, reaching a low value. In this phase, the model continuously overfits the training data, until the training and testing curves reach their respective maximum and minimum. It appears that the timing of the three phases depends on the dataset and the label noise level. For simpler data (e.g. MNIST) and cleaner datasets (e.g. CIFAR10 with low label noise), the first phase may be shorter. This is arguably because in these datasets, extracting useful patterns is relatively easier. Nonetheless, the valley in the double-descent curve appears to mark a “great divide” between generalization and memorization. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
161,
|
| 1062 |
+
647,
|
| 1063 |
+
825,
|
| 1064 |
+
854
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 6
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "255 Dynamic Gradient Clipping Inspired by our generalization bounds and above observations, one \n256 way to reduce the generalization error is to control the trajectory term of the bounds by reducing the \n257 gradient dispersion in each training step. Here we investigate a simple scheme that dynamically clips \n258 the gradient norm so as to reduce the gradient dispersion. Specifically, whenever the current gradient \n259 norm is larger than the gradient norm $K$ steps earlier, or $| | g ( W _ { t } , B _ { t } ) | | _ { 2 } > | | g ( W _ { t - K } , B _ { t - K } ) | | _ { 2 }$ (i.e., \n260 the model is expected to have entered the “memorization” regime), we reduce the norm of the current \n261 gradient $g ( W _ { t } , B _ { t } )$ to $\\alpha$ fraction of $| | g ( W _ { t - K } , B _ { t - K } ) | | _ { 2 }$ , for some prescribed value $\\alpha < 1$ . The \n262 effectiveness of this scheme is best demonstrated when the labels contain noise. As shown in Figure \n263 4, dynamic gradient clipping significantly closes the gap between the training accuracy and the testing \n264 accuracy. The models trained with this scheme maintain a near-optimal testing accuracy (e.g., about \n265 $80 \\%$ when the label noise level of MNIST is 0.2), without suffering from the severe memorization \n266 effect as seen in models trained without this scheme. Further understanding of the double-descent \n267 phenomenon of the gradient dispersion may enable more delicate design of such a dynamic clipping \n268 scheme and potentially lead to novel and powerful regularization techniques. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
142,
|
| 1073 |
+
869,
|
| 1074 |
+
825,
|
| 1075 |
+
911
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 6
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "image",
|
| 1081 |
+
"img_path": "images/3f2a6039b469e6c40083c61a8febb3a68d18c39f1c50dc01325222b7551f9afc.jpg",
|
| 1082 |
+
"image_caption": [
|
| 1083 |
+
"Figure 4: Dynamic Gradient Clipping. "
|
| 1084 |
+
],
|
| 1085 |
+
"image_footnote": [],
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
179,
|
| 1088 |
+
87,
|
| 1089 |
+
781,
|
| 1090 |
+
194
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 7
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
138,
|
| 1099 |
+
241,
|
| 1100 |
+
825,
|
| 1101 |
+
393
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 7
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "269 5 A Practical Implication: Gaussian Model Perturbation ",
|
| 1108 |
+
"text_level": 1,
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
151,
|
| 1111 |
+
411,
|
| 1112 |
+
661,
|
| 1113 |
+
430
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 7
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "270 The appearance of the flatness term in our generalization bounds suggests that for an empirical \n271 risk minimizer $w ^ { * }$ to generalize well, it is necessary that the empirical risk surface at $w ^ { * }$ is flat, \n272 or insensitive to a small perturbation of $w ^ { * }$ . This naturally motivates a training scheme using the \n273 following regularized loss: ",
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
140,
|
| 1122 |
+
443,
|
| 1123 |
+
826,
|
| 1124 |
+
500
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 7
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "equation",
|
| 1130 |
+
"img_path": "images/7a0df0bfd563be0a1375c626225640ab309600c9abfb82442632a1c716b85319.jpg",
|
| 1131 |
+
"text": "$$\n\\operatorname* { m i n } _ { w } L _ { s } ( w ) + \\rho \\operatorname* { l g } _ { \\Delta \\sim \\mathcal { N } ( 0 , \\sigma ^ { 2 } \\mathbf { I } _ { d } ) } [ L _ { s } ( w + \\Delta ) - L _ { s } ( w ) ] ,\n$$",
|
| 1132 |
+
"text_format": "latex",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
326,
|
| 1135 |
+
503,
|
| 1136 |
+
668,
|
| 1137 |
+
529
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 7
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "274 where $\\rho$ is a hyper-parameter. Replacing the expectation above with its stochastic approximation \n275 using $k$ realizations of $\\Delta$ gives rise to the following optimization problem. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
138,
|
| 1146 |
+
534,
|
| 1147 |
+
826,
|
| 1148 |
+
563
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 7
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "equation",
|
| 1154 |
+
"img_path": "images/fd83fa7c3ddaa16d96a09b6caab4f4361aee3ba696469893a7be1c1bfe715122.jpg",
|
| 1155 |
+
"text": "$$\n\\operatorname* { m i n } _ { w } \\frac { 1 } { b } \\sum _ { z \\in B } \\left( ( 1 - \\rho ) \\ell ( w , z ) + \\rho \\frac { 1 } { k } \\sum _ { i = 1 } ^ { k } \\left( \\ell ( w + \\delta _ { i } , z ) \\right) \\right) .\n$$",
|
| 1156 |
+
"text_format": "latex",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
313,
|
| 1159 |
+
566,
|
| 1160 |
+
683,
|
| 1161 |
+
611
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 7
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "276 We refer to the SGD training scheme using this loss as Gaussian model perturbation or GMP. Notably, \n277 GMP requires $k + 1$ forward passes for every parameter update. Empirical evidence shows that a \n278 small $k$ , for example, $k = 3$ , already gives competitive performance. Implementing the $k + 1$ forward \n279 passes on parallel processors further reduces the computation load. \n280 We experimentally compare GMP with several major regularization schemes in the current art, includ \n281 ing Dropout [68], label smoothing [70], Flooding [36], MixUp [81], adversarial training [29], and \n282 AMP [83]. The compared schemes are evaluated on three popular benchmark image classification \n283 datasets SVHN [48], CIFAR-10 and CIFAR-100 [41]. Two representative deep architectures PreAc \n284 tResNet18 [34] and VGG16 [67] are taken as the underlying model. We train the models for 200 \n285 epochs by SGD. The learning rate is initialized as 0.1 and divided by 10 after 100 and 150 epochs. \n286 For all compared models, the batch size is set to 50 and weight decay is set to $1 0 ^ { - 4 }$ . For GMP, we \n287 choose $\\rho = 0 . 5$ and set the standard deviation of the Gaussian noise $\\Delta$ to 0.03. The value of $k$ is \n288 chosen as 3 and 10 respectively (referred to as $\\mathrm { G M P ^ { 3 } }$ and $\\mathrm { G M P ^ { 1 0 } }$ ). \n289 The performances of all compared schemes are given in Table 1. For the compared regularization \n290 schemes except GMP, we directly report their performances as given in [83]. Performances of vanilla \n291 ERM without regularization are also included as a reference. \n292 Table 1 demonstrates the effectiveness of GMP. Overall GMP performs comparably to the current \n293 art of regularization schemes, although appearing slighly inferior to the most recent record given by \n294 AMP [83]. Noting that the key ingredient of AMP, “max-pooling” in the parameter space, greatly \n295 resembles regularization term in GMP, which may be seen as “average-pooling” in the same space. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
140,
|
| 1170 |
+
614,
|
| 1171 |
+
826,
|
| 1172 |
+
670
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 7
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
140,
|
| 1181 |
+
675,
|
| 1182 |
+
826,
|
| 1183 |
+
801
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 7
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
142,
|
| 1192 |
+
808,
|
| 1193 |
+
825,
|
| 1194 |
+
849
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 7
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
142,
|
| 1203 |
+
854,
|
| 1204 |
+
825,
|
| 1205 |
+
911
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 7
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "table",
|
| 1211 |
+
"img_path": "images/53e4513d0e677fe5ff467230dcc4a544c41e42ea6d29047d9d385c22ce19d67a.jpg",
|
| 1212 |
+
"table_caption": [
|
| 1213 |
+
"Table 1: Top-1 classification accuracy on (a) SVHN, (b) CIFAR-10 and (c) CIFAR-100. We run experiments 10 times and report the mean and the standard deviation of the testing accuracy. "
|
| 1214 |
+
],
|
| 1215 |
+
"table_footnote": [
|
| 1216 |
+
"(a) SVHN (b) CIFAR-10 (c) CIFAR-100 "
|
| 1217 |
+
],
|
| 1218 |
+
"table_body": "<table><tr><td>PreActResNet18</td><td>Top-1 Acc. (%)</td><td>PreActResNet18</td><td>Top-1 Acc. (%)</td><td>PreActResNet18</td><td>Top-1 Acc. (%)</td></tr><tr><td>ERM</td><td>97.05±0.063</td><td>ERM</td><td>94.98±0.212</td><td>ERM</td><td>75.69±0.303</td></tr><tr><td>Dropout</td><td>97.20±0.065</td><td>Dropout</td><td>95.14±0.148</td><td>Dropout</td><td>75.52±0.351</td></tr><tr><td>Label Smoothing</td><td>97.22±0.087</td><td>Label Smoothing</td><td>95.15±0.115</td><td>Label Smoothing</td><td>77.93±0.256</td></tr><tr><td>Flooding</td><td>97.16±0.047</td><td>Flooding</td><td>95.03±0.082</td><td>Flooding</td><td>75.50±0.234</td></tr><tr><td>MixUp</td><td>97.26±0.044</td><td>MixUp</td><td>95.91±0.117</td><td>MixUp</td><td>78.22±0.210</td></tr><tr><td>Adv.Training</td><td>97.23±0.080</td><td>Adv. Training</td><td>95.01±0.085</td><td>Adv. Training</td><td>74.77±0.229</td></tr><tr><td>AMP</td><td>97.70±0.025</td><td>AMP</td><td>96.03±0.091</td><td>AMP</td><td>78.49±0.308</td></tr><tr><td>GMP3</td><td>97.43±0.037</td><td>GMP3</td><td>95.64±0.053</td><td>GMP3</td><td>78.05±0.208</td></tr><tr><td>GMP10</td><td>97.34±0.058</td><td>GMP10</td><td>95.71±0.073</td><td>GMP10</td><td>78.07±0.170</td></tr><tr><td>VGG16</td><td>Top-1 Acc. (%)</td><td>VGG16</td><td>Top-1 Acc. (%)</td><td>VGG16</td><td>Top-1 Acc. (%)</td></tr><tr><td>ERM</td><td>96.86±0.060</td><td>ERM</td><td>93.68±0.193</td><td>ERM</td><td>72.16±0.297</td></tr><tr><td>Dropout</td><td>97.04±0.049</td><td>Dropout</td><td>93.78±0.147</td><td>Dropout</td><td>72.28±0.337</td></tr><tr><td>Label Smoothing</td><td>96.93±0.070</td><td>Label Smoothing</td><td>93.71±0.158</td><td>Label Smoothing</td><td>72.51±0.179</td></tr><tr><td>Flooding</td><td>96.85±0.085</td><td>Flooding</td><td>93.74±0.145</td><td>Flooding</td><td>72.07±0.271</td></tr><tr><td>MixUp</td><td>96.91±0.057</td><td>MixUp</td><td>94.52±0.112</td><td>MixUp</td><td>73.19±0.254</td></tr><tr><td>Adv.Training</td><td>97.06±0.091</td><td>Adv. Training</td><td>93.51±0.130</td><td>Adv.Training</td><td>70.88±0.145</td></tr><tr><td>AMP</td><td>97.27±0.015</td><td>AMP</td><td>94.35±0.147</td><td>AMP</td><td>74.40±0.168</td></tr><tr><td>GMP3</td><td>97.18±0.057</td><td>GMP3</td><td>94.33±0.094</td><td>GMP3</td><td>74.45±0.256</td></tr><tr><td>GMP10</td><td>97.09±0.068</td><td>GMP10</td><td>94.45±0.158</td><td>GMP10</td><td>75.09±0.285</td></tr></table>",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
176,
|
| 1221 |
+
87,
|
| 1222 |
+
818,
|
| 1223 |
+
344
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 8
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "296 6 Conclusion and Outlook ",
|
| 1230 |
+
"text_level": 1,
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
145,
|
| 1233 |
+
421,
|
| 1234 |
+
408,
|
| 1235 |
+
439
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 8
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "This paper presents new generalization bounds for neural networks trained with SGD, improving upon the results of [49]. Our bounds naturally point to new and effective regularization schemes. At the same time, they reveal interesting phenomena in the SGD training of neural networks. While these phenomena deserve further investigation in their own right, we here suggest another direction for improving the bounds, namely, via the use of strong data-processing inequalities (DPI) [57–59] (noting that the standard DPI is in fact needed for establishing Theorem 2). ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
169,
|
| 1244 |
+
453,
|
| 1245 |
+
825,
|
| 1246 |
+
537
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 8
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "303 For any Markov chain $U \\to X \\to Y$ , we will denote by $u , x$ , and $\\mathcal { V }$ the spaces in which $U$ , \n304 $X$ , $Y$ take values, respectively. For any distribution $P$ on $\\mathcal { X }$ , we will use $P _ { Y \\mid X } \\circ P$ to denote the \n305 distribution on $\\mathcal { V }$ induced by the push-forward of the distribution $P$ by $P _ { Y \\mid X }$ , namely, for any $y \\in \\mathcal { V }$ , \n306 $\\begin{array} { r } { \\left( P _ { Y | X } \\circ P \\right) ( y ) \\triangleq \\int P _ { Y | X } ( y | x ) P ( x ) d x } \\end{array}$ . Let ${ \\cal { S } } ( U )$ be the support of $P _ { U }$ and ${ \\mathcal { H } } ( U , P _ { X | U } )$ be the \n307 convex hull of $\\{ P _ { X | U = u } : u \\in { \\mathcal { S } } ( U ) \\}$ . Define ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
140,
|
| 1255 |
+
541,
|
| 1256 |
+
826,
|
| 1257 |
+
618
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 8
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "equation",
|
| 1263 |
+
"img_path": "images/c602b4a17d149c4541aa9da6ff49eaffb85e102a2ae99e3d88b72d2a7d26e441.jpg",
|
| 1264 |
+
"text": "$$\n\\eta ( U \\to X \\to Y ) \\triangleq \\operatorname* { s u p } _ { P , Q \\in \\mathcal { H } ( U , P _ { X | U } ) } \\frac { \\mathrm { D } _ { \\mathrm { K L } } ( P _ { Y | X } \\circ P | | P _ { Y | X } \\circ Q ) } { \\mathrm { D } _ { \\mathrm { K L } } ( P | | Q ) }\n$$",
|
| 1265 |
+
"text_format": "latex",
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
284,
|
| 1268 |
+
622,
|
| 1269 |
+
715,
|
| 1270 |
+
661
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 8
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "text",
|
| 1276 |
+
"text": "08 Lemma 7. For any Markov chain $U X Y$ , $I ( U ; Y ) \\leq \\eta ( U X Y ) I ( U ; X ) .$ ",
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
151,
|
| 1279 |
+
666,
|
| 1280 |
+
751,
|
| 1281 |
+
684
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 8
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "309 Here $\\eta ( U \\to X \\to Y )$ serves as the “contraction coefficient” for the stochastic kernel $P _ { Y \\mid X }$ , \n310 characterizing the greatest extent by which the kernel may bring closer any two distributions on $S ( U )$ \n311 in its output space. It is easy to see that $\\eta ( U \\to X \\to Y ) \\leq 1$ , giving rise to a stronger DPI. \n12 Denote $V _ { t } \\triangleq \\widetilde { W } _ { t - 1 } + G _ { t }$ . It can be verified that $Z _ { i } V _ { t } \\widetilde { W } _ { t }$ form a Markov chain. Denote \n13 $\\eta _ { i , t } \\triangleq \\eta ( Z _ { i } V _ { t } \\widetilde { W } _ { t } )$ , and $\\Gamma _ { i } ^ { t } = \\{ t + 1 , t + 2 , \\ldots , T \\} \\setminus \\mathcal { T } _ { i }$ . Theorem 2 can be improved to: ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
142,
|
| 1290 |
+
691,
|
| 1291 |
+
825,
|
| 1292 |
+
737
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 8
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
153,
|
| 1301 |
+
741,
|
| 1302 |
+
828,
|
| 1303 |
+
777
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 8
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "314 Theorem 3. The expected generalization error of SGD is bounded by ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
143,
|
| 1312 |
+
780,
|
| 1313 |
+
633,
|
| 1314 |
+
795
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 8
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "equation",
|
| 1320 |
+
"img_path": "images/08cb29767c6fdd825dc14c74172325397d75a878beec576613814e6c938eab99.jpg",
|
| 1321 |
+
"text": "$$\n\\left| \\mathrm { g e n } ( \\mu , P _ { W _ { T } | S } ) \\right| \\le \\frac { 2 R } { n b } \\sum _ { i = 1 } ^ { n } \\sqrt { \\sum _ { t \\in { \\mathcal T } _ { i } } \\frac { \\lambda _ { t } ^ { 2 } } { \\sigma _ { t } ^ { 2 } } \\mathbb { E } \\left[ \\mathbb { V } ( W _ { t - 1 } ) \\right] \\cdot \\prod _ { \\tau \\in \\Gamma _ { i } ^ { t } } \\eta _ { i , \\tau } } + \\left| \\mathbb { E } \\left[ \\gamma ( W _ { T } , S ) - \\gamma ( W _ { T } , S ^ { \\prime } ) \\right] \\right| .\n$$",
|
| 1322 |
+
"text_format": "latex",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
189,
|
| 1325 |
+
799,
|
| 1326 |
+
807,
|
| 1327 |
+
849
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 8
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "text",
|
| 1333 |
+
"text": "316 It remains to characterize the contraction coefficient $\\eta _ { i , \\tau }$ in a computable form. Simply bounding it \n317 via the Dobrushin’s coefficient [21], as suggested in [72] for analyzing SGLD, is unlikely to make \n318 the bound in this theorem significantly tighter than that in Theorem 2. ",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
140,
|
| 1336 |
+
868,
|
| 1337 |
+
825,
|
| 1338 |
+
912
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 8
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "19 References [1] Z. Allen-Zhu, Y. Li, and Z. Song. A convergence theory for deep learning via overparameterization. In International Conference on Machine Learning, pages 242–252. PMLR, 2019. [2] S. Arora, R. Ge, B. Neyshabur, and Y. Zhang. Stronger generalization bounds for deep nets via a compression approach. In International Conference on Machine Learning, pages 254–263. PMLR, 2018. [3] S. Arora, S. Du, W. Hu, Z. Li, and R. Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. In International Conference on Machine Learning, pages 322–332. PMLR, 2019. [4] A. R. Asadi and E. Abbe. Chaining meets chain rule: Multilevel entropic regularization and training of neural networks. Journal of Machine Learning Research, 21(139):1–32, 2020. [5] A. R. Asadi, E. Abbe, and S. Verdú. Chaining mutual information and tightening generalization bounds. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 7245–7254, 2018. [6] P. L. Bartlett, D. J. Foster, and M. Telgarsky. Spectrally-normalized margin bounds for neural networks. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 6241–6250, 2017. [7] R. Bassily, S. Moran, I. Nachum, J. Shafer, and A. Yehudayoff. Learners that use little information. In Algorithmic Learning Theory, pages 25–55. PMLR, 2018. [8] R. Bassily, V. Feldman, C. Guzmán, and K. Talwar. Stability of stochastic gradient descent on nonsmooth convex losses. Advances in Neural Information Processing Systems, 33, 2020. [9] M. Belkin, D. Hsu, S. Ma, and S. Mandal. Reconciling modern machine-learning practice and the classical bias–variance trade-off. Proceedings of the National Academy of Sciences, 116 (32):15849–15854, 2019. [10] C. M. Bishop. Training with noise is equivalent to tikhonov regularization. Neural computation, 7(1):108–116, 1995. \n46 [11] L. Bottou, F. E. Curtis, and J. Nocedal. Optimization methods for large-scale machine learning. Siam Review, 60(2):223–311, 2018. \n348 [12] O. Bousquet and A. Elisseeff. Stability and generalization. The Journal of Machine Learning Research, 2:499–526, 2002. \n50 [13] Y. Bu, S. Zou, and V. V. Veeravalli. Tightening mutual information-based bounds on generalization error. IEEE Journal on Selected Areas in Information Theory, 1(1):121–130, 2020. \n[14] A. Camuto, M. Willetts, U. Simsekli, S. J. Roberts, and C. C. Holmes. Explicit regularisation in gaussian noise injections. In Advances in Neural Information Processing Systems, 2020. [15] A. Camuto, X. Wang, L. Zhu, C. Holmes, M. Gürbüzbalaban, and U. ¸Sim¸sekli. Asymmetric heavy tails and implicit bias in gaussian noise injections. arXiv preprint arXiv:2102.07006, 2021. [16] P. Chaudhari, A. Choromanska, S. Soatto, Y. LeCun, C. Baldassi, C. Borgs, J. T. Chayes, L. Sagun, and R. Zecchina. Entropy-sgd: Biasing gradient descent into wide valleys. In 5th International Conference on Learning Representations. OpenReview.net, 2017. \n60 [17] Y. Chen, C. Jin, and B. Yu. Stability and convergence trade-off of iterative optimization algorithms. arXiv preprint arXiv:1804.01619, 2018. \n362 [18] T. M. Cover and J. A. Thomas. Elements of Information Theory. John Wiley & Sons, 2012. \n363 [19] F. Dangel, F. Kunstner, and P. Hennig. Backpack: Packing more into backprop. In 8th International Conference on Learning Representations. OpenReview.net, 2020. \n[20] L. Dinh, R. Pascanu, S. Bengio, and Y. Bengio. Sharp minima can generalize for deep nets. In International Conference on Machine Learning, pages 1019–1028. PMLR, 2017. \n[21] R. L. Dobrushin. Central limit theorem for nonstationary markov chains. i. Theory of Probability & Its Applications, 1(1):65–80, 1956. \n[22] S. S. Du, X. Zhai, B. Poczos, and A. Singh. Gradient descent provably optimizes overparameterized neural networks. In International Conference on Learning Representations, 2018. \n[23] C. Dwork, V. Feldman, M. Hardt, T. Pitassi, O. Reingold, and A. Roth. Generalization in adaptive data analysis and holdout reuse. In Proceedings of the 28th International Conference on Neural Information Processing Systems-Volume 2, pages 2350–2358, 2015. \n[24] G. K. Dziugaite and D. M. Roy. Computing nonvacuous generalization bounds for deep (stochastic) neural networks with many more parameters than training data. In Proceedings of the 33rd Annual Conference on Uncertainty in Artificial Intelligence (UAI), 2017. \n[25] F. Faghri, D. Duvenaud, D. J. Fleet, and J. Ba. A study of gradient variance in deep learning. arXiv preprint arXiv:2007.04532, 2020. \n[26] V. Feldman and J. Vondrak. High probability generalization bounds for uniformly stable algorithms with nearly optimal rate. In Conference on Learning Theory, pages 1270–1279. PMLR, 2019. \n[27] P. Foret, A. Kleiner, H. Mobahi, and B. Neyshabur. Sharpness-aware minimization for efficiently improving generalization. arXiv preprint arXiv:2010.01412, 2020. \n[28] S. B. Gelfand and S. K. Mitter. Recursive stochastic algorithms for global optimization in rˆd. SIAM Journal on Control and Optimization, 29(5):999–1018, 1991. \n[29] I. J. Goodfellow, J. Shlens, and C. Szegedy. Explaining and harnessing adversarial examples. In 3rd International Conference on Learning Representations, ICLR, 2015. \n[30] H. Hafez-Kolahi, Z. Golgooni, S. Kasaei, and M. Soleymani. Conditioning and processing: Techniques to improve information-theoretic generalization bounds. Advances in Neural Information Processing Systems, 33, 2020. \n[31] M. Haghifam, J. Negrea, A. Khisti, D. M. Roy, and G. K. Dziugaite. Sharpened generalization bounds based on conditional mutual information and an application to noisy, iterative algorithms. arXiv preprint arXiv:2004.12983, 2020. \n[32] M. Hardt, B. Recht, and Y. Singer. Train faster, generalize better: Stability of stochastic gradient descent. In International Conference on Machine Learning, pages 1225–1234. PMLR, 2016. \n[33] F. He, T. Liu, and D. Tao. Control batch size and learning rate to generalize well: Theoretical and empirical evidence. In Advances in Neural Information Processing Systems 32, pages 1141–1150, 2019. \n[34] K. He, X. Zhang, S. Ren, and J. Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision, pages 630–645, 2016. \n[35] S. Hochreiter and J. Schmidhuber. Flat minima. Neural Computation, 9(1):1–42, 1997. \n[36] T. Ishida, I. Yamane, T. Sakai, G. Niu, and M. Sugiyama. Do we need zero training loss after achieving zero training error? In Proceedings of the 37th International Conference on Machine Learning, ICML, 2020. \n[37] S. Jastrz˛ebski, Z. Kenton, D. Arpit, N. Ballas, A. Fischer, Y. Bengio, and A. Storkey. Three factors influencing minima in sgd. arXiv preprint arXiv:1711.04623, 2017. \n[38] Y. Jiang, B. Neyshabur, H. Mobahi, D. Krishnan, and S. Bengio. Fantastic generalization measures and where to find them. In International Conference on Learning Representations, 2019. \n[39] R. Johnson and T. Zhang. Accelerating stochastic gradient descent using predictive variance reduction. Advances in neural information processing systems, 26:315–323, 2013. \n[40] N. S. Keskar, D. Mudigere, J. Nocedal, M. Smelyanskiy, and P. T. P. Tang. On large-batch training for deep learning: Generalization gap and sharp minima. In 5th International Conference on Learning Representations. OpenReview.net, 2017. \n[41] A. Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. \n[42] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25:1097–1105, 2012. \n[43] Y. Lei and Y. Ying. Fine-grained analysis of stability and generalization for stochastic gradient descent. In International Conference on Machine Learning, pages 5809–5819. PMLR, 2020. \n[44] B. London. A pac-bayesian analysis of randomized learning with application to stochastic gradient descent. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 2935–2944, 2017. \n[45] S. Merity, N. S. Keskar, and R. Socher. Regularizing and optimizing lstm language models. In International Conference on Learning Representations, 2018. \n[46] P. Nakkiran, G. Kaplun, Y. Bansal, T. Yang, B. Barak, and I. Sutskever. Deep double descent: Where bigger models and more data hurt. In International Conference on Learning Representations, 2019. \n[47] J. Negrea, M. Haghifam, G. K. Dziugaite, A. Khisti, and D. M. Roy. Information-theoretic generalization bounds for sgld via data-dependent estimates. In Advances in Neural Information Processing Systems, pages 11013–11023, 2019. \n[48] Y. Netzer, T. Wang, A. Coates, A. Bissacco, B. Wu, and A. Y. Ng. Reading digits in natural images with unsupervised feature learning. In NeurIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2011. \n[49] G. Neu. Information-theoretic generalization bounds for stochastic gradient descent. arXiv preprint arXiv:2102.00931, 2021. \n[50] B. Neyshabur, R. Tomioka, and N. Srebro. Norm-based capacity control in neural networks. In Conference on Learning Theory, pages 1376–1401. PMLR, 2015. \n[51] B. Neyshabur, S. Bhojanapalli, D. McAllester, and N. Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pages 5947–5956, 2017. \n[52] B. Neyshabur, S. Bhojanapalli, and N. Srebro. A pac-bayesian approach to spectrally-normalized margin bounds for neural networks. In International Conference on Learning Representations, 2018. \n[53] B. Neyshabur, Z. Li, S. Bhojanapalli, Y. LeCun, and N. Srebro. The role of over-parametrization in generalization of neural networks. In International Conference on Learning Representations, 2018. \n[54] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in Neural Information Processing Systems, 32:8026–8037, 2019. \n[55] A. Pensia, V. Jog, and P.-L. Loh. Generalization error bounds for noisy, iterative algorithms. In 2018 IEEE International Symposium on Information Theory (ISIT), pages 546–550. IEEE, 2018. \n[56] M. Peters, M. Neumann, M. Iyyer, M. Gardner, C. Clark, K. Lee, and L. Zettlemoyer. Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 2227–2237, 2018. \n458 [57] Y. Polyanskiy and Y. Wu. Dissipation of information in channels with input constraints. IEEE Transactions on Information Theory, 62(1):35–55, 2015. \n460 [58] Y. Polyanskiy and Y. Wu. Strong data-processing inequalities for channels and bayesian networks. In Convexity and Concentration, pages 211–249. Springer, 2017. \n462 [59] M. Raginsky. Strong data processing inequalities and $\\phi$ -sobolev inequalities for discrete channels. IEEE Transactions on Information Theory, 62(6):3355–3389, 2016. \n464 [60] M. Raginsky and I. Sason. Concentration of measure inequalities in information theory, communications and coding. Foundations and Trends in Communications and Information Theory; NOW Publishers: Boston, MA, USA, 2018. [61] H. Robbins and S. Monro. A stochastic approximation method. The annals of mathematical statistics, pages 400–407, 1951. [62] B. Rodríguez-Gálvez, G. Bassi, R. Thobaben, and M. Skoglund. On random subset generalization error bounds and the stochastic gradient langevin dynamics algorithm. arXiv preprint arXiv:2010.10994, 2020. [63] N. L. Roux, M. Schmidt, and F. Bach. A stochastic gradient method with an exponential convergence rate for finite training sets. In Proceedings of the 25th International Conference on Neural Information Processing Systems-Volume 2, pages 2663–2671, 2012. [64] D. Russo and J. Zou. Controlling bias in adaptive data analysis using information theory. In Artificial Intelligence and Statistics, pages 1232–1240, 2016. [65] D. Russo and J. Zou. How much does your data exploration overfit? controlling bias via information usage. IEEE Transactions on Information Theory, 66(1):302–323, 2019. \n479 [66] S. Shalev-Shwartz and S. Ben-David. Understanding machine learning: From theory to algorithms. Cambridge university press, 2014. [67] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In 3rd International Conference on Learning Representations, ICLR, 2015. [68] N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014. [69] T. Steinke and L. Zakynthinou. Reasoning about generalization via conditional mutual information. In Conference on Learning Theory, volume 125 of Proceedings of Machine Learning Research, pages 3437–3452. PMLR, 2020. [70] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, CVPR, pages 2818–2826, 2016. \n[71] V. Vapnik. Statistical learning theory. Wiley, 1998. ISBN 978-0-471-03003-4. [72] H. Wang, Y. Huang, R. Gao, and F. P. Calmon. Learning while dissipating information: Understanding the generalization capability of sgld. arXiv preprint arXiv:2102.02976, 2021. \n495 [73] C. Wei, S. Kakade, and T. Ma. The implicit and explicit regularization effects of dropout. In International Conference on Machine Learning, pages 10181–10192. PMLR, 2020. [74] M. Welling and Y. W. Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 681–688. Citeseer, 2011. \n500 [75] Y. Wen, K. Luk, M. Gazeau, G. Zhang, H. Chan, and J. Ba. An empirical study of stochastic gradient descent with structured covariance noise. In International Conference on Artificial Intelligence and Statistics, pages 3621–3631. PMLR, 2020. ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
143,
|
| 1347 |
+
90,
|
| 1348 |
+
828,
|
| 1349 |
+
920
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 9
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
158,
|
| 1358 |
+
58,
|
| 1359 |
+
828,
|
| 1360 |
+
917
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 10
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
156,
|
| 1369 |
+
71,
|
| 1370 |
+
828,
|
| 1371 |
+
922
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 11
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "text",
|
| 1377 |
+
"text": "",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
150,
|
| 1380 |
+
70,
|
| 1381 |
+
828,
|
| 1382 |
+
917
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 12
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "503 [76] L. Wu, C. Ma, and E. Weinan. How sgd selects the global minima in over-parameterized \n504 learning: A dynamical stability perspective. Advances in Neural Information Processing \n505 Systems, 2018:8279–8288, 2018. \n506 [77] A. Xu and M. Raginsky. Information-theoretic analysis of generalization capability of learning \n507 algorithms. Advances in Neural Information Processing Systems, 2017:2525–2534, 2017. \n508 [78] Z. Yang, Y. Yu, C. You, J. Steinhardt, and Y. Ma. Rethinking bias-variance trade-off for \n509 generalization of neural networks. In International Conference on Machine Learning, pages \n510 10767–10777. PMLR, 2020. \n511 [79] Z. Yao, A. Gholami, K. Keutzer, and M. W. Mahoney. Pyhessian: Neural networks through \n512 the lens of the hessian. In 2020 IEEE International Conference on Big Data (Big Data), pages \n513 581–590. IEEE, 2020. \n514 [80] C. Zhang, S. Bengio, M. Hardt, B. Recht, and O. Vinyals. Understanding deep learning \n515 requires rethinking generalization. In 5th International Conference on Learning Representations. \n516 OpenReview.net, 2017. \n517 [81] H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz. mixup: Beyond empirical risk mini \n518 mization. In 6th International Conference on Learning Representations, ICLR, 2018. \n519 [82] J. Zhang, T. He, S. Sra, and A. Jadbabaie. Why gradient clipping accelerates training: A \n520 theoretical justification for adaptivity. In International Conference on Learning Representations, \n521 2019. \n522 [83] Y. Zheng, R. Zhang, and Y. Mao. Regularizing neural networks via adversarial model perturba \n523 tion. In CVPR, 2021. \n524 [84] R. Zhou, C. Tian, and T. Liu. Individually conditional individual mutual information bound on \n525 generalization error. arXiv preprint arXiv:2012.09922, 2020. ",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
137,
|
| 1391 |
+
90,
|
| 1392 |
+
828,
|
| 1393 |
+
491
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 13
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "1. For all authors... ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
214,
|
| 1402 |
+
116,
|
| 1403 |
+
339,
|
| 1404 |
+
130
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 14
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See Section 4, Section 5 and supplementary materials. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See supplementary materials. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
238,
|
| 1413 |
+
135,
|
| 1414 |
+
825,
|
| 1415 |
+
253
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 14
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "2. If you are including theoretical results... ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
214,
|
| 1424 |
+
257,
|
| 1425 |
+
493,
|
| 1426 |
+
272
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 14
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Section 2 and Section 3. \n(b) Did you include complete proofs of all theoretical results? [Yes] See supplementary materials. ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
238,
|
| 1435 |
+
276,
|
| 1436 |
+
825,
|
| 1437 |
+
334
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 14
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "3. If you ran experiments... ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
214,
|
| 1446 |
+
339,
|
| 1447 |
+
393,
|
| 1448 |
+
354
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 14
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] See supplementary materials. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 5 and supplementary materials. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Section 4 and Section 5. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Section 4. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
238,
|
| 1457 |
+
358,
|
| 1458 |
+
825,
|
| 1459 |
+
491
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 14
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
215,
|
| 1468 |
+
494,
|
| 1469 |
+
823,
|
| 1470 |
+
510
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 14
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "text",
|
| 1476 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] See Section 4 and Section 5. \n(b) Did you mention the license of the assets? [Yes] See supplementary materials. \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] ",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
238,
|
| 1479 |
+
513,
|
| 1480 |
+
825,
|
| 1481 |
+
635
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 14
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
214,
|
| 1490 |
+
638,
|
| 1491 |
+
707,
|
| 1492 |
+
654
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 14
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
238,
|
| 1501 |
+
657,
|
| 1502 |
+
825,
|
| 1503 |
+
747
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 14
|
| 1506 |
+
}
|
| 1507 |
+
]
|
parse/train/4i23Bjlh4Y9/4i23Bjlh4Y9_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/4i23Bjlh4Y9/4i23Bjlh4Y9_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hygm8jC9FQ/Hygm8jC9FQ.md
ADDED
|
@@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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FAVAE: SEQUENCE DISENTANGLEMENT USING INFORMATION BOTTLENECK PRINCIPLE
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We propose the factorized action variational autoencoder (FAVAE), a state-of-theart generative model for learning disentangled and interpretable representations from sequential data via the information bottleneck without supervision. The purpose of disentangled representation learning is to obtain interpretable and transferable representations from data. We focused on the disentangled representation of sequential data since there is a wide range of potential applications if disentanglement representation is extended to sequential data such as video, speech, and stock price data. Sequential data is characterized by dynamic factors and static factors: dynamic factors are time dependent, and static factors are independent of time. Previous works succeed in disentangling static factors and dynamic factors by explicit modeling the priors of latent variables to distinguish between static and dynamic factors. However, this model cannot disentangle representations between dynamic factors, such as disentangling ”picking” and ”throwing” in robotic tasks. In this paper, we propose new model that can disentangle multiple dynamic factors. Since our method does not require modeling priors, it is capable of disentangling ”between” dynamic factors. In experiments, we show that FAVAE can extract the disentangled dynamic factors.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Representation learning is one of the most fundamental problems in machine learning. A real world data distribution can be regarded as a low-dimensional manifold in a high-dimensional space (Bengio et al., 2013). Generative models in deep learning, such as the variational autoencoder (VAE) (Kingma & Welling, 2013) and the generative adversarial network (GAN) (Goodfellow et al., 2014), are able to learn low-dimensional manifold representation (factor) as a latent variable. The factors are fundamental components such as position, color, and degree of smiling in an image of a human face (Liu et al., 2015). Disentangled representation is defined as a single factor being represented by a single latent variable (Bengio et al., 2013). Thus, if in a model of learned disentangled representation, shifting one latent variable while leaving the others fixed generates data showing that only the corresponding factor was changed. This is called latent traversals (a good demonstration of which was given by Higgins et al. $( 2 0 1 6 \mathrm { a } ) ^ { 1 }$ ). There are two advantages of disentangled representation. First, latent variables are interpretable. Second, the disentangled representation is generalizable and robust against adversarial attacks (Alemi et al., 2016).
|
| 12 |
+
|
| 13 |
+
We focus on the disentangled representation learning of sequential data. Sequential data is characterized by dynamic factors and static factors: dynamic factors are time dependent, and static factors are independent of time. With disentangled representation learning from sequential data, we should be able to extract dynamic factors that cannot be extracted by disentangled representation learning models for non-sequential data such as $\beta$ -VAE (Higgins et al., 2016a;b) and InfoGAN (Chen et al., 2016). The concept of disentangled representation learning for sequential data is illustrated in Fig. 1. Consider that the pseudo-dataset of the movement of a submarine has a dynamic factor: the trajectory shape. The disentangled representation learning model for sequential data can extract this shape. On the other hand, since the disentangled representation learning model for non-sequential data does not consider the sequence of data, it merely extracts the $\mathbf { X }$ -position and y-position.
|
| 14 |
+
|
| 15 |
+
(c) FAVAE accepts sequential data.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
(d) Latent traversal of FAVAE.
|
| 19 |
+
Figure 1: Illustration of how FAVAE differs from $\beta$ -VAE. $\beta$ -VAE does not accept data sequentially; it cannot differentiate data points from different trajectories or sequences of data points. FAVAE considers a sequence of data points, taking all data points in a trajectory as one datum. For example, for a pseudo-dataset representing the trajectory of a submarine (1a,1c), $\beta$ -VAE accepts 11 different positions of the submarine as non-sequential data while FAVAE accepts three different trajectories of the submarine as sequential data. Therefore, the latent variable in $\beta$ -VAE learns only the coordinates of the submarine, and the latent traversal shows the change in the submarines position. On the other hand, FAVAE learns the factor that controls the trajectory of the submarine, so the latent traversal shows the change in the submarines trajectory.
|
| 20 |
+
|
| 21 |
+
There is a wide range of potential applications if we extend disentanglement representation to sequential data such as speech, video, and stock market data. For example, disentangled representation learning for stock price data can extract the fundamental trend of a given stock price. Another application is the reduction of action space in reinforcement learning. Extracting dynamic factors would enable the generation of macro-actions (Durugkar et al., 2016), which are sets of sequential actions that represent the fundamental factors of the actions. Thus, disentangled representation learning for sequential data opens the door to new areas of research.
|
| 22 |
+
|
| 23 |
+
Very recent related work (Hsu et al., 2017; Li & Mandt, 2018) separated factors of sequential data into dynamic and static factors. The factorized hierarchical variational autoencoder (FHVAE) (Hsu et al., 2017) is based on a graphical model using latent variables with different time dependencies. By maximizing the variational lower bound of the graphical model, the FHVAE separates the different time dependent factors such as the dynamic and static factors. The VAE architecture developed by Li & Mandt (2018) is the same as the FHVAE in terms of the time dependencies of the latent variables. Since these models require different time dependencies for the latent variables, these approaches cannot be used disentangle variables with the same time dependency factor.
|
| 24 |
+
|
| 25 |
+
We address this problem by taking a different approach. First, we analyze the root cause of disentanglement from the perspective of information theory. As a result, the term causing disentanglement is derived from a more fundamental rule: reduce the mutual dependence between the input and output of an encoder while keeping the reconstruction of the data. This is called the information bottleneck (IB) principle. We naturally extend this principle to sequential data from the relationship between $x$ and $z$ to $x _ { t : T }$ and $z$ . This enables the separation of multiple dynamic factors as a consequence of information compression. It is difficult to learn a disentangled representation of sequential data since not only the feature space but also the time space should be compressed. We created the factorized action variational autoencoder (FAVAE) in which we implemented the concept of information capacity to stabilize learning and a ladder network to learn a disentangled representation in accordance with the level of data abstraction. Since our model is a more general model without the restriction of a graphical model design to distinguish between static and dynamic factors, it can separate dependency factors occurring at the same time. Moreover, it can separate factors into dynamic and static factors.
|
| 26 |
+
|
| 27 |
+
# 2 DISENTANGLEMENT FOR NON-SEQUENTIAL DATA
|
| 28 |
+
|
| 29 |
+
$\beta$ -VAE (Higgins et al., 2016a;b) is a commonly used method for learning disentangled representations based on the VAE framework (Kingma $\&$ Welling, 2013) for a generative model. The VAE can estimate the probability density from data $\mathbf { X }$ . The objective function of the VAE maximizes the evidence lower bound (ELBO) of $\log p \left( x \right)$ as
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\log p \left( x \right) = \mathcal { L } _ { \mathrm { V A E } } + \underbrace { D _ { \mathrm { K L } } \left( q \left( z \vert x \right) \vert \vert p \left( z \vert x \right) \right) } _ { \ge 0 } ,
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
where $z$ is latent variable, $D _ { \mathrm { K L } }$ is the Kullback-Leibler divergence, and $q \left( z | x \right)$ is an approximated distribution of $p \left( z | x \right) . \ D _ { \mathrm { K L } } \left( q \left( z | x \right) | | p \left( z | x \right) \right)$ reduces to zero as the ELBO $\mathcal { L } _ { \mathrm { V A E } }$ increases; thus, $q \left( z | x \right)$ learns a good approximation of $p \left( z | x \right)$ . The ELBO is defined as
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\mathcal { L } _ { \mathrm { V A E } } \equiv E _ { q ( z | x ) } \left[ \log p \left( x | z \right) \right] - D _ { \mathrm { K L } } \left( q \left( z | x \right) | | p \left( z \right) \right) ,
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
where the first term, $E _ { q ( \boldsymbol { z } | \boldsymbol { x } ) } \left[ \log p \left( \boldsymbol { x } | \boldsymbol { z } \right) \right]$ , is a reconstruction term used to reconstruct $x$ , and the second term $D _ { \mathrm { K L } } \left( q \left( z | x \right) \^ { } | | \dot { p } \left( z \right) \right)$ is a regularization term used to regularize posterior $q \left( z | x \right)$ . Encoder $q \left( z | x \right)$ and decoder $p \left( x | z \right)$ are learned in the VAE.
|
| 42 |
+
|
| 43 |
+
Next we will explain how $\beta$ -VAE extracts disentangled representations from unlabeled data. $\beta$ -VAE is an extension of the coefficient $\beta > 1$ of the regularization term $D _ { \mathrm { K L } } \left( q \left( z | x \right) | | p \left( z \right) \right)$ in the VAE. The objective function of $\beta$ -VAE is
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\mathcal { L } _ { \beta - \mathrm { V A E } } = E _ { q ( z | x ) } \left[ \log p \left( x | z \right) \right] - \beta D _ { \mathrm { K L } } \left( q \left( z | x \right) | | p \left( z \right) \right) ,
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
where $\beta > 1$ and $p \left( z \right) = \mathcal { N } \left( 0 , 1 \right)$ . $\beta$ -VAE promotes disentangled representation learning via the Kullback-Leibler divergence term. As $\beta$ increases, the latent variable $q \left( z | x \right)$ approaches the prior $p \left( z \right)$ ; therefore, each $z _ { i }$ is pressured to learn the probability distribution of $\mathcal { N } ( 0 , 1 )$ . However, if all latent variables $z _ { i }$ become $\mathcal { N } ( 0 , 1 )$ , the model cannot reconstruct $x$ . As a result, as long as $z$ reconstructs $x$ , $\beta$ -VAE reduces the information of $z$ .
|
| 50 |
+
|
| 51 |
+
# 3 PRELIMINARY: ORIGIN OF DISENTANGLEMENT
|
| 52 |
+
|
| 53 |
+
To clarify the origin of disentanglement, we will explain the regularization term. The regularization term has been decomposed into three terms (Chen et al., 2018; Kim & Mnih, 2018; Hoffman & Johnson, 2016):
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
E _ { p \left( x \right) } \left[ D _ { \mathrm { K L } } \left( q \left( \boldsymbol { z } \left| \boldsymbol { x } \right) \right| \left| p \left( \boldsymbol { z } \right) \right) \right] = I \left( \boldsymbol { x } ; \boldsymbol { z } \right) + D _ { \mathrm { K L } } \left( q \left( \boldsymbol { z } \right) \right| \Big | \prod _ { j } q \left( z _ { j } \right) \right) + \sum _ { j } D _ { \mathrm { K L } } \left( q \left( \boldsymbol { z } _ { j } \right) \right| \left| p \left( z _ { j } \right) \right) ,
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
where $z _ { j }$ denotes the $j$ -th dimension of the latent variable. The second term, which is called ”total correlation” in information theory, quantifies the redundancy or dependency among a set of $\mathbf { n }$ random variables (Watanabe, 1960). $\beta$ -TCVAE has been experimentally shown to reduce the total correlation causing disentanglement (Chen et al., 2018). The third term indirectly causes disentanglement by bringing $q \left( z | x \right)$ close to the independent standard normal distribution $p \left( z \right)$ . The first term is mutual information between the data variable and latent variable based on the empirical data distribution. Minimizing the regularization term causes disentanglement but disturbs reconstruction via the first term in Eq. (4). The shift $C$ scheme was proposed (Burgess et al., 2018) as a means to solve this conflict:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
- { \cal E } _ { q _ { \phi } ( z | x ) } [ \log p _ { \theta } ( x | z ) ] + \beta | { \cal D } _ { \mathrm { K L } } ( q ( z | x ) | | p ( z ) ) - C | ,
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
where constant shift $C$ , which is called ”information capacity,” linearly increases during training. This shift $C$ can be understood from the point of view of an information bottleneck (Tishby et al., 2000). The VAE can be derived by maximizing the ELBO, but $\beta$ -VAE can no longer be interpreted as an ELBO once this scheme has been applied. The objective function of $\beta$ -VAE is derived from the information bottleneck (Alemi et al., 2016; Achille & Soatto, 2018; Tishby et al., 2000; Chechik et al., 2005).
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\operatorname* { m a x } I \left( z ; x \right) \qquad \mathrm { s . t . } ~ | I \left( \hat { x } ; z \right) - C | = 0 ,
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where $C$ is the information capacity and $\hat { x }$ is the empirical distribution. Solving this equation by using Lagrange multipliers drives the objective function of $\beta$ -VAE Eq. (5) with $\beta$ as the Lagrange multiplier (details in Appendix $\mathbf { B }$ of (Alemi et al., 2016)). In Eq. (5), information capacity $C$ prevents $I \left( \hat { x } , z \right)$ from becoming zero. In the information bottleneck literature, $y$ typically stands for a classification task; however, the formulation can be related to the autoencoding objective (Alemi et al., 2016). Therefore, the objective function of $\beta$ -VAE can be understood using the information bottleneck principle.
|
| 72 |
+
|
| 73 |
+
# 4 PROPOSED MODEL: DISENTANGLEMENT FOR SEQUENTIAL DATA
|
| 74 |
+
|
| 75 |
+
Our proposed FAVAE model learns disentangled and interpretable representations from sequential data without supervision. We consider sequential data $x _ { 1 : T } \equiv \{ x _ { 1 } , x _ { 2 } , \cdot \cdot \cdot , x _ { T } \}$ generated from a latent variable model,
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
p \left( x _ { 1 : T } \right) = \int p \left( x _ { 1 : T } | z \right) p \left( z \right) d z .
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
For sequential data, we replace $x$ with $\scriptstyle ( x _ { 1 : T } )$ in Eq. 5. The objective function of the FAVAE model is
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
- { \cal E } _ { q _ { \phi } ( z | ( x _ { 1 : T } ) _ { i } ) } [ \log p _ { \theta } ( x _ { 1 : T } | z ) ] + \beta | { \cal D } _ { \mathrm { K L } } ( q ( z | ( x _ { 1 : T } ) _ { i } ) | | p ( z ) ) - C | ,
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
where $p \left( z \right) = \mathcal { N } \left( 0 , 1 \right)$ . The variational recurrent neural network (Chung et al., 2015) and stochastic recurrent neural network (Fraccaro et al., 2016) extend the VAE model to a recurrent framework. The priors of both networks are dependent on time. The time dependent prior experimentally improves the ELBO. In contrast, the prior of our model is independent of time like those of the stochastic recurrent network (Bayer $\&$ Osendorfer, 2014) and the Deep Recurrent Attentive Writer (DRAW) neural network architecture (Gregor et al., 2015); this is because FAVAE is disentangled representation learning rather than density estimation. For better understanding, consider FAVAE from the perspective of IB. As with $\beta$ -VAE, FAVAE can be understood from the information bottleneck principle.
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\operatorname* { m a x } I \left( z ; x _ { 1 : T } \right) \qquad \mathrm { s . t . } ~ | I \left( \hat { x } _ { 1 : T } ; z \right) - C | = 0 ,
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
where $\hat { x } _ { 1 : T }$ follows an empirical distribution. These principles make the representation of $z$ compact while reconstruction of the sequential data is represented by $x _ { 1 : T }$ (see Appendix A).
|
| 94 |
+
|
| 95 |
+
# 4.1 LADDER NETWORK
|
| 96 |
+
|
| 97 |
+
An important extension to FAVAE is a hierarchical representation scheme inspired by the VLAE (Zhao et al., 2017). Encoder $q \left( z | x _ { 1 : T } \right)$ within a ladder network is defined as
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\begin{array} { l } { { h _ { l } = f _ { l } \left( h _ { l - 1 } \right) , } } \\ { { z _ { l } \sim \mathcal { N } \left( \mu _ { l } \left( h _ { l } \right) , \sigma _ { l } \left( h _ { l } \right) \right) , } } \end{array}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
where $l$ is a layer index, $h _ { 0 } \equiv x _ { 1 : T }$ , and $f$ is a time convolution network, which is explained in the next section. Decoder $p \left( x _ { 1 : T } | z \right)$ within the ladder network is defined as
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
Figure 2: FAVAE architecture.
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\begin{array} { r } { \tilde { z } _ { L } = g _ { l } \left( z _ { L } \right) } \\ { \tilde { z } _ { l } = g _ { l } \left( \tilde { z } _ { l + 1 } + \mathrm { g a t e } \left( z _ { l } \right) \right) , } \\ { x _ { 1 : T } \sim r \left( x _ { 1 : T } , \tilde { z } _ { 0 } \right) ~ } \end{array}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
where $g _ { l }$ is the time deconvolution network with $l = 1 , \cdots , L - 1$ , and $r$ is a distribution family parameterized by $g _ { 0 } \left( \tilde { z } _ { 0 } \right)$ . The gate computes the Hadamard product of its learnable parameter and input tensor. We set $r$ as a fixed-variance factored Gaussian distribution with the mean given by $\mu _ { t : T } = g _ { 0 } \left( \tilde { z } _ { 0 } \right)$ . Fig. (2) shows the architecture of the proposed model. The difference between each ladder network in the model is the number of convolution networks through which data passes. The abstract expressions should differ between ladders since the time convolution layer abstracts sequential data. Without the ladder network, the proposed method can disentangle only the representations at the same level of abstraction; with the ladder network, it can disentangle representations at different levels of abstraction.
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
Figure 3: Visualization of latent traversal of $\beta$ -VAE and FAVAE. On one sampled trajectory (red), each latent variable is traversed and purple and/or blue points are generated. The color corresponds to the value of the traversed latent variable. 3a represents all data trajectories of 2D reaching.
|
| 116 |
+
|
| 117 |
+
# 4.2 HOW TO ENCODE AND DECODE
|
| 118 |
+
|
| 119 |
+
There are several mainstream neural network models designed for sequential data, such as the long short-term memory model (Hochreiter & Schmidhuber, 1997), the gated recurrent unit model (Chung et al., 2014), and the quasi-recurrent neural network QRNN (Bradbury et al., 2016). However, the VLAE has a hierarchical structure created by abstracting a convolutional neural network, so it is simple to add the time convolution of the QRNN to our model. The input data are $x _ { t , i }$ , where $t$ is the time index and $i$ is the dimension of the feature vector index. The time convolution considers the dimensions of feature vector $j$ as a convolution channel and performs convolution in the time direction:
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
z _ { t j } = \sum _ { p , i } x _ { t - p , i } h _ { p i j } + b _ { j } ,
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
where $j$ is the channel index. The proposed FAVAE model has a network similar to the VAE one regarding time convolution and a loss function similar to the $\beta$ -VAE one (Eq. (8)). We used the batch normalization (Hinton et al., 2012) and ReLU as activation functions though other variations are possible. For example, 1d convolutional neural networks use a filter size of 3 and a stride of 2 and do not use a pooling layer.
|
| 126 |
+
|
| 127 |
+
# 5 MEASURING DISENTANGLEMENT
|
| 128 |
+
|
| 129 |
+
While latent traversals are useful for checking the success or failure of disentanglement, quantification of the disentanglement is required for reliably evaluating the model. Various disentanglement quantification methods have been reported (Eastwood & Williams, 2018; Chen et al., 2018; Kim & Mnih, 2018; Higgins et al., 2016b;a), but there is no standard method. We use the mutual information gap (MIG) (Chen et al., 2018) as the metric for disentanglement. The basic idea of MIG is measuring the mutual information between latent variables $z _ { j }$ and a ground truth factor $v _ { k }$ . Higher mutual information means that $z _ { j }$ contains more information regarding $v _ { k }$ .
|
| 130 |
+
|
| 131 |
+
$\begin{array} { r } { \mathrm { M I G } \equiv \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \frac { 1 } { H \left( v _ { k } \right) } \left( I \left( z _ { j ^ { ( k ) } } ; v _ { k } \right) - \operatorname* { m a x } _ { j \neq j ^ { ( k ) } } I \left( z _ { j } ; v _ { k } \right) \right) } \end{array}$ , where ${ j ^ { ( k ) } \equiv \arg \operatorname* { m a x } _ { j } I \left( z _ { j } ; v _ { k } \right) }$ and $H \left( v _ { k } \right)$ is entropy for normalization. In our evaluation we experimentally measure disentanglement with MIG.
|
| 132 |
+
|
| 133 |
+
Table 1: Disentanglement scores (MIG, and Reconstruction loss) with standard deviations by 10 seeds for the different model. Best results are shown in bold.
|
| 134 |
+
|
| 135 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">2D Reaching</td><td colspan="2">2D wavy Reaching</td></tr><tr><td>MIG</td><td>Reconstruction</td><td>MIG</td><td>Reconstruction</td></tr><tr><td>Time Convolution AE</td><td>0.21(27)</td><td>0.18(13)</td><td>0.04(3)</td><td>0.06(1)</td></tr><tr><td>FAVAE (without ladder and C)</td><td>0.34(21)</td><td>0.62(115)</td><td>0.22(14)</td><td>23.6(279)</td></tr><tr><td>FAVAE (with ladder and without C)</td><td>0.41(13)</td><td>0.03(5)</td><td>0.26(7)</td><td>0.08(2)</td></tr><tr><td>FAVAE (without ladder and with C)</td><td>0.34(21)</td><td>0.62(115)</td><td>0.11(10)</td><td>1.47(73)</td></tr><tr><td>FAVAE (with ladder and C)</td><td>0.41(13)</td><td>0.03(5)</td><td>0.34(28)</td><td>1.81(170)</td></tr></table>
|
| 136 |
+
|
| 137 |
+
# 6 RELATED WORK
|
| 138 |
+
|
| 139 |
+
Several recently reported models (Hsu et al., 2017; Li & Mandt, 2018) graphically disentangle static and dynamic factors in sequential data such as speech data and video data (Garofolo et al., 1993; Pearce & Picone, 2002). In contrast, our model performs disentanglement by using a loss function (see Eq. 8). The advantage of the graphical models is that they can control the interpretable factors by controlling the priors time dependency. Since dynamic factors have the same time dependency, these models cannot disentangle dynamic factors. A loss function model can disentangle sets of dynamic factors as well as disentangle static and dynamic factors.
|
| 140 |
+
|
| 141 |
+
# 7 EVALUATION
|
| 142 |
+
|
| 143 |
+
We evaluated our model experimentally using three sequential datasets: 2D Reaching, 2D Wavy Reaching, and Gripper. We used a batch size of 128 and the Adam (Kingma & Ba, 2014) optimizer with a learning rate of $1 0 ^ { - 3 }$ .
|
| 144 |
+
|
| 145 |
+
# 7.1 2D REACHING
|
| 146 |
+
|
| 147 |
+
To determine the differences between FAVAE and $\beta$ -VAE, we used a bi-dimensional space reaching dataset. Starting from point $( 0 , 0 )$ , the point travels to goal position $( - 0 . 1 , + 1 )$ or $( + 0 . 1 , + 1 )$ . There are ten possible trajectories to each goal; five are curved inward, and the other five are curved outward. The degree of curvature for all five trajectories is different. The number of factor combinations was thus 20 (2x2x5). The trajectory length was 1000, so the size of one trajectory was $[ 1 0 0 0 \mathrm { x } 2 ]$ .
|
| 148 |
+
|
| 149 |
+
We compared the performances of $\beta$ -VAE and FAVAE trained on the 2D Reaching dataset. The results of latent traversal are transforming one dimension of latent variable z into another value and reconstructing something from the traversed latent variables. $\beta$ -VAE, which is only able to learn from every point of a trajectory separately, encodes data points into latent variables that are parallel to the $\mathbf { X }$ and y axes (3b, 3c). In contrast, FAVAE learns through one entire trajectory and can encode disentangled representation effectively so that feasible trajectories are generated from traversed latent variables (3d, 3e).
|
| 150 |
+
|
| 151 |
+
# 7.2 2D WAVY REACHING
|
| 152 |
+
|
| 153 |
+
To confirm the effect of disentanglement through information bottleneck, we evaluated the validity of our model under more complex factors by adding more factors to the 2D Reaching dataset. Five factors in total generated data compared to the three factors that generate data in 2D Reaching. This modified dataset differed in that four out of the five factors affect only part of the trajectory: two of them affect the first half, and the other two affect the second half. This means that the model should be able to focus on a certain part of the whole trajectory and be able to extract factors related to that part. A detailed explanation of these factors is given in Appendix B.
|
| 154 |
+
|
| 155 |
+
We compared various models on the basis of MIG to demonstrate the validity of our proposed model in comparison of a time convolution AE in which a loss function is used only for the autoencoder ( $\beta = 0$ ), FAVAE without the ladder network and information capacity $C$ , and FAVAE with the ladder network and information capacity $C$ . As shown in Table 1, FAVAE with the ladder network and C had the highest MIG scores for 2D Reaching and 2D Wavy Reaching. This indicates that this model learned a disentangled representation best. Note that for 2D Reaching, the best value for $C$ was small, meaning that there was little effect from adding $C$ (since the dataset was simple, this task can be solved even if the amount of information of $\mathbf { Z }$ is small).
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 4: MIG score and reconstruction loss for different values of $\beta$ . Blue line represents results with information capacity $C$ greater than zero; red line represents results with $C$ set to e zero. Note that $\mathbf { X }$ axis is plotted in log scale.
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
Figure 5: Visualization of latent traversal for 2D Wavy Reaching. Each plot was decoded by traversing one latent variable; different colors represent trajectories generated from different values of same latent variable, z.
|
| 162 |
+
|
| 163 |
+
Fig. 4. We evaluated reconstruction loss and the MIG score for various values of $\beta$ using three ladder networks (Fig. 6) with a different value of $C$ for each ladder: $\begin{array} { r l } { C } & { { } = } \end{array}$ [LowerLadder, MiddleLadder, HigherLadder]. One setting used was $C = [ 0 , 0 , 0 ]$ , meaning that $C$ was not used; another setting was $C = [ 2 0 , 1 , 5 ]$ , meaning that $C$ was adjusted on the basis of values of KL-Divergence for $\beta = 1$ and $\dot { C } = [ 0 , \dot { 0 } , 0 ]$ . When $C$ was not used, the model could not reconstruct data when $\beta$ was high; thus, disentangled representation was not learned well when $\beta$ was high. When $C$ was used, the MIG score increased with $\beta$ while reconstruction loss was suppressed.
|
| 164 |
+
|
| 165 |
+
The latent traversal results for 2D Wavy Reaching are plotted in Fig. 5. Even though not all learned representations are perfectly disentangled, the visualization shows that all five generation factors were learned from five latent variables; the other latent variables did not learn any meaningful factors, indicating that the factors could be expressed as a combination of five ”active” latent variables. We tested our model for $\beta = 3 0 0$ .
|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
Figure 6: Evaluation of ladders (left); structure used for each experiment (right).
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 7: Visualization of latent traversal of FAVAE. The horizontal axis represents sequence and the vertical axis represents the difference of $z$ values.
|
| 172 |
+
|
| 173 |
+
The use of a ladder network in our model improved disentangled representation learning and minimized the reconstruction loss. The graph in Fig. 6 shows the MIG scores for networks with different numbers of ladders. The error bars represent the standard deviation for ten repetitive trials. Using all three ladders resulted in the minimum reconstruction loss with the highest MIG score (green curve) except for ”Higher Ladder One”. ”Higher Ladder One” has a large reconstruction error.
|
| 174 |
+
|
| 175 |
+
# 7.3 SPRITES DATASET.
|
| 176 |
+
|
| 177 |
+
To evaluate the effectiveness of the video dataset, we trained our model with the Sprites dataset which is used in (Li & Mandt, 2018). This dataset has sequential length $= 8$ RGB video data with $3 \times 6 4 \times 6 4$ . This data set consists of static factor and dynamic factor. We note that the motion is not created with the combination of dynamic factors, and each motion exists individually (detail is E.2). Table 4 show the factors used in our experiment. We executed disentangled representation learning by using the FAVAE model with $\beta = 2 0$ , $C = [ 0 . 3 , 0 . 1 7 , 0 . 0 6 ]$ and network architecture used for this training is explained in Section F.1. Fig. 7 shows the results of latent traversal, and we chose two $z$ values to change from $z = 3$ to 3. Since this dataset is composed of discrete factors, we show two $z$ values at a time.The latent variables in the 1st ladder extract expressions of motion (4th $z$ in 1st ladder), pants color (5th $z$ in 1st ladder), direction of character (6th $z$ in 1st ladder) and the shirts color (7th $z$ in 1st ladder). The latent variables in the 2nd ladder extract expressions of the hair color (1st $z$ in 2nd ladder) and the body color (2nd $z$ in 2nd ladder). FHVAE can extract the disentangled representations between static factors and dynamic factor in high dimension dataset.
|
| 178 |
+
|
| 179 |
+
# 8 SUMMARY AND FUTURE WORK
|
| 180 |
+
|
| 181 |
+
Our factorized action variational autoencoder (FAVAVE) generative model learns disentangled and interpretable representations via the information bottleneck from sequential data. Evaluation using three sequential datasets demonstrated that it can learn disentangled representations. Future work includes extending the time convolution part to a sequence-to-sequence model (Sutskever et al., 2014) and applying the model to actions of reinforcement learning to reduce the pattern of actions.
|
| 182 |
+
|
| 183 |
+
# REFERENCES
|
| 184 |
+
|
| 185 |
+
Alessandro Achille and Stefano Soatto. Information dropout: Learning optimal representations through noisy computation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018.
|
| 186 |
+
|
| 187 |
+
Alexander A Alemi, Ian Fischer, Joshua V Dillon, and Kevin Murphy. Deep variational information bottleneck. arXiv preprint arXiv:1612.00410, 2016.
|
| 188 |
+
|
| 189 |
+
Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014.
|
| 190 |
+
|
| 191 |
+
Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013.
|
| 192 |
+
|
| 193 |
+
James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. arXiv preprint arXiv:1611.01576, 2016.
|
| 194 |
+
|
| 195 |
+
Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in $\beta$ -VAE. arXiv preprint arXiv:1804.03599, 2018.
|
| 196 |
+
|
| 197 |
+
Gal Chechik, Amir Globerson, Naftali Tishby, and Yair Weiss. Information bottleneck for Gaussian variables. Journal of machine learning research, 6(Jan):165–188, 2005.
|
| 198 |
+
|
| 199 |
+
Tian Qi Chen, Xuechen Li, Roger Grosse, and David Duvenaud. Isolating sources of disentanglement in variational autoencoders. arXiv preprint arXiv:1802.04942, 2018.
|
| 200 |
+
|
| 201 |
+
Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGan: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in neural information processing systems, pp. 2172–2180, 2016.
|
| 202 |
+
|
| 203 |
+
Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
|
| 204 |
+
|
| 205 |
+
Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pp. 2980–2988, 2015.
|
| 206 |
+
|
| 207 |
+
Ishan P Durugkar, Clemens Rosenbaum, Stefan Dernbach, and Sridhar Mahadevan. Deep reinforcement learning with macro-actions. arXiv preprint arXiv:1606.04615, 2016.
|
| 208 |
+
|
| 209 |
+
Cian Eastwood and Christopher KI Williams. A framework for the quantitative evaluation of disentangled representations. 2018.
|
| 210 |
+
|
| 211 |
+
Marco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Advances in neural information processing systems, pp. 2199–2207, 2016.
|
| 212 |
+
|
| 213 |
+
John S Garofolo, Lori F Lamel, William M Fisher, Jonathan G Fiscus, and David S Pallett. DARPA TIMIT acoustic-phonetic continous speech corpus CD-ROM. NIST speech disc 1-1.1. NASA STI/Recon technical report n, 93, 1993.
|
| 214 |
+
|
| 215 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
|
| 216 |
+
|
| 217 |
+
Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. DRAW: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015.
|
| 218 |
+
|
| 219 |
+
Irina Higgins, Loic Matthey, Xavier Glorot, Arka Pal, Benigno Uria, Charles Blundell, Shakir Mohamed, and Alexander Lerchner. Early visual concept learning with unsupervised deep learning. arXiv preprint arXiv:1606.05579, 2016a.
|
| 220 |
+
|
| 221 |
+
Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. 2016b.
|
| 222 |
+
|
| 223 |
+
Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012.
|
| 224 |
+
|
| 225 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
|
| 226 |
+
|
| 227 |
+
Matthew D Hoffman and Matthew J Johnson. ELBO surgery: yet another way to carve up the variational evidence lower bound. In Workshop in Advances in Approximate Bayesian Inference, NIPS, 2016.
|
| 228 |
+
|
| 229 |
+
Wei-Ning Hsu, Yu Zhang, and James Glass. Unsupervised learning of disentangled and interpretable representations from sequential data. In Advances in neural information processing systems, pp. 1878–1889, 2017.
|
| 230 |
+
|
| 231 |
+
Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018.
|
| 232 |
+
|
| 233 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 234 |
+
|
| 235 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 236 |
+
|
| 237 |
+
Yingzhen Li and Stephan Mandt. A deep generative model for disentangled representations of sequential data. arXiv preprint arXiv:1803.02991, 2018.
|
| 238 |
+
|
| 239 |
+
Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pp. 3730–3738, 2015.
|
| 240 |
+
|
| 241 |
+
David Pearce and J Picone. Aurora working group: DSR front end LVCSR evaluation AU/384/02. Inst. for Signal & Inform. Process., Mississippi State Univ., Tech. Rep, 2002.
|
| 242 |
+
|
| 243 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014.
|
| 244 |
+
|
| 245 |
+
Naftali Tishby, Fernando C Pereira, and William Bialek. The information bottleneck method. arXiv preprint physics/0004057, 2000.
|
| 246 |
+
|
| 247 |
+
Satosi Watanabe. Information theoretical analysis of multivariate correlation. IBM Journal of research and development, 4(1):66–82, 1960.
|
| 248 |
+
|
| 249 |
+
Shengjia Zhao, Jiaming Song, and Stefano Ermon. Learning hierarchical features from generative models. arXiv preprint arXiv:1702.08396, 2017.
|
| 250 |
+
|
| 251 |
+
# A INFORMATION BOTTLENECK PRINCIPLE FOR SEQUENTIAL DATA.
|
| 252 |
+
|
| 253 |
+
Here the aim is to show the relationship between FAVAE and the information bottleneck for sequential data. Consider the information bottleneck object:
|
| 254 |
+
|
| 255 |
+
$$
|
| 256 |
+
\begin{array} { r l } { \operatorname* { m a x } I \left( z ; x _ { 1 : T } \right) \quad } & { { } \mathrm { s . t . } \ \lvert I \left( \hat { x } _ { 1 : T } ; z \right) - C \rvert = 0 } \end{array}
|
| 257 |
+
$$
|
| 258 |
+
|
| 259 |
+
is expanded from Alemi et al. (2016) to sequential data. We need to distinguish between $\hat { x } _ { 1 : T }$ and $x _ { 1 : T }$ , where $x _ { 1 : T }$ is the true distribution and $\hat { x } _ { 1 : T }$ is the empirical distribution created by sampling from the true distribution. We maximize the mutual information of true data $x _ { 1 : T }$ and $z$ while constraining the information contained in the empirical data distribution. We do this by using Lagrange multiplier:
|
| 260 |
+
|
| 261 |
+
$$
|
| 262 |
+
\begin{array} { r } { I \left( z ; x _ { 1 : T } \right) + \beta \left| I \left( \hat { x } _ { 1 : T } ; z \right) - C \right| , } \end{array}
|
| 263 |
+
$$
|
| 264 |
+
|
| 265 |
+
where $\beta$ is a constant. For the first term,
|
| 266 |
+
|
| 267 |
+
$$
|
| 268 |
+
\begin{array} { l } { { I \left( z ; x _ { 1 : T } \right) = \displaystyle \iint p \left( z ; x _ { 1 : T } \right) \log \frac { p \left( x _ { 1 : T } \vert z \right) } { p \left( x _ { 1 : T } \right) } d x _ { 1 : T } d z } } \\ { { \displaystyle \qquad = \iint p \left( z ; x _ { 1 : T } \right) \log p \left( x _ { 1 : T } \vert z \right) d x _ { 1 : T } d z - \displaystyle \iint p \left( x _ { 1 : T } ; z \right) \log p \left( x _ { 1 : T } \right) d x _ { 1 : T } d z } } \\ { { \displaystyle \qquad = \displaystyle \iint p \left( x _ { 1 : T } \right) p \left( z \vert x _ { 1 : T } \right) \log p \left( x _ { 1 : T } \vert z \right) d x _ { 1 : T } d z + H \left( x _ { 1 : T } \right) } } \\ { { \displaystyle \qquad \sim \frac { 1 } { N } \sum _ { i } \left[ p \left( z \vert \left( x _ { 1 : T } \right) _ { i } \right) \log p \left( \left( x _ { 1 : T } \right) _ { i } \vert z \right) \right] + H \left( x _ { 1 : T } \right) } , } \end{array}
|
| 269 |
+
$$
|
| 270 |
+
|
| 271 |
+
where $H \left( x _ { 1 : T } \right)$ is entropy, which can be neglected in optimization. The last line is Monte Carlo approximation. For the second term,
|
| 272 |
+
|
| 273 |
+
$$
|
| 274 |
+
\begin{array} { l } { { \displaystyle I \left( \hat { x } _ { 1 : T } ; z \right) = \int p \left( z \vert \hat { x } _ { 1 : T } \right) p \left( \hat { x } _ { 1 : T } \right) \log \frac { p \left( z \vert \hat { x } _ { 1 : T } \right) } { p \left( z \right) } d z d \hat { x } _ { 1 : T } } } \\ { { \displaystyle \quad \sim \frac { 1 } { N } \sum _ { j } p \left( z \vert \left( x _ { 1 : T } \right) _ { j } \right) \log \frac { p \left( z \vert \left( x _ { 1 : T } \right) _ { j } \right) } { p \left( z \right) } d z } } \\ { { \displaystyle \quad = \frac { 1 } { N } \sum _ { j } D _ { \mathrm { K L } } \left( p \left( z \vert \left( x _ { 1 : T } \right) _ { j } \right) \vert \vert p \left( z \right) \right) . } } \end{array}
|
| 275 |
+
$$
|
| 276 |
+
|
| 277 |
+
As a result,
|
| 278 |
+
|
| 279 |
+
$$
|
| 280 |
+
\begin{array} { r } { I \left( z ; x _ { 1 : T } \right) + \beta \left| I \left( \tilde { x } _ { 1 : T } ; z \right) - C \right| \leq \displaystyle \frac { 1 } { N } \sum _ { i } \left[ p \left( z \right| \left( x _ { 1 : T } \right) _ { i } \right) \log p \left( \left( x _ { 1 : T } \right) _ { i } \left| z \right) \right] } \\ { + \displaystyle \frac { 1 } { N } \sum _ { j } D _ { \mathrm { K L } } \left( p \left( z \right| \left( x _ { 1 : T } \right) _ { j } \right) \left| | p \left( z \right) \right) . } \end{array}
|
| 281 |
+
$$
|
| 282 |
+
|
| 283 |
+
For convenience of calculation, we use $x _ { i }$ sampled from mini-batch data for both the reconstruction term and the regularization term. This is only an approximation. If the information bottleneck principle is followed completely, it is better to use different batch data for the reconstruction and regularization terms.
|
| 284 |
+
|
| 285 |
+
# B EXTRACTED FACTORS OF EACH LADDER IN FAVAE
|
| 286 |
+
|
| 287 |
+
We expect the ladder network can disentangle representations at different levels of abstraction. In this section, We check the factor extracted in each ladder by using 2D Reaching and 2D Wavy.
|
| 288 |
+
|
| 289 |
+
Table 2: Counting the index of latent variable in each factor by 10 seeds. The detail of factor is in Table 4.
|
| 290 |
+
|
| 291 |
+
<table><tr><td colspan="3">1st ladder</td><td>2nd ladder</td><td>3rd ladder</td></tr><tr><td rowspan="3">2D Reaching</td><td>factor 1</td><td>1</td><td>1</td><td>8</td></tr><tr><td>factor 2</td><td>10</td><td>0</td><td>0</td></tr><tr><td>factor 3</td><td>10</td><td>0</td><td>0</td></tr><tr><td rowspan="5">2D wavy Reaching</td><td>factor 1</td><td>3</td><td>0</td><td>7</td></tr><tr><td>factor 2</td><td>8</td><td>0</td><td>2</td></tr><tr><td>factor 3</td><td>8</td><td>0</td><td>2</td></tr><tr><td>factor 4</td><td>9</td><td>1</td><td>0</td></tr><tr><td>factor 5</td><td>9</td><td>0</td><td>1</td></tr></table>
|
| 292 |
+
|
| 293 |
+
Table 3: Disentanglement scores (MIG, and Reconstruction loss) with standard deviations by 10 seeds for the different model in sequence length $= 1 0 0$ . Best results are shown in bold.
|
| 294 |
+
|
| 295 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">2D Reaching</td><td colspan="2">2D wavy Reaching</td></tr><tr><td>MIG</td><td>Reconstruction</td><td>MIG</td><td>Reconstruction</td></tr><tr><td>FHVAE</td><td>0.62(17)</td><td>0.0003(5)</td><td>0.19(6)</td><td>0.051(36)</td></tr><tr><td>Time Convolution AE</td><td>0.06(4)</td><td>0.014(7)</td><td>0.26(6)</td><td>0.019(2)</td></tr><tr><td>FAVAE (without ladder and C)</td><td>0.52(6)</td><td>0.007(1)</td><td>0.28(2)</td><td>0.058(3)</td></tr><tr><td>FAVAE (without ladder with C)</td><td>0.47(4)</td><td>0.005(0)</td><td>0.26(1)</td><td>0.069(4)</td></tr><tr><td>FAVEA (with ladder without C)</td><td>0.34(11)</td><td>0.005(1)</td><td>0.31(8)</td><td>0.022(2)</td></tr><tr><td>FAVAE (with ladder and C)</td><td>0.35(7)</td><td>0.007(1)</td><td>0.40(7)</td><td>0.055(4)</td></tr></table>
|
| 296 |
+
|
| 297 |
+
Table 2 shows the counting index of latent variable with the highest mutual information in each ladder network. In Table 2, the rows represent factor and the columns represent the index of the ladder networks. The factor 1 (goal left / goal right) in 2D Reaching and the factor 1 (goal position) in 2D wavy Reaching were extracted to the most frequently in the latent variable in 3rd ladder. Since the latent variables have 8 dimensions for the 1st ladder, 4 dimensions for the 2nd ladder and 2 dimensions for the 3rd ladder, the 3rd ladder should be the least frequent when factors are randomly entered for each z. Especially long-term and short-term factors are clear in the 2D wavy Reaching dataset. In 2D Wavy Reaching dataset, there is distinct difference between factors of long and short time dependency. The ”goal position” is the factor which affect the entire trajectory, and other factors affect half length of the trajectory (Fig. 9).In our experiment the goal of the trajectory which affect the entire trajectory tended to be expressed in the 3rd ladder. In both datasets, only factor 1 represents goal positions while others represent shape of the trajectories. Since factor 1 has different abstraction level from others, factor 1 and others result in different ladders such as ladder 3 and others.
|
| 298 |
+
|
| 299 |
+
# C COMPARING WITH FHVAE
|
| 300 |
+
|
| 301 |
+
FHVAE model is the recently proposed disentangled representation learning model. We note that FHVAE model uses label information to disentangle time series data, which is different setup with our FAVAE model. Table 3 shows a comparison of MIG and reconstruction using FHVAE as the baseline. It was not possible to disentangle in 2D Reaching and 2D wavy using FHVAE, because LSTM used at the FHVAE can not learn data with very long sequences (sequence length of 1000). For fair comparison with the FHVAE, we experimented with 2D Reaching (sequence length 100), 2D wavy Reaching (sequence length 100) at Table 3. In 2D Reaching, FHVAE model has the best score, while in 2D wavy Reaching FAVAE model with ladders and $C$ has the best score. Our model is slightly worse than FHVAE in 2D Reaching Dataset. The parameters searched are $\alpha = 1$ to 30 (the best $\alpha = 2 0 a n d 1$ ), $\beta = 0$ to 60 (the best $\beta = 0 . 4$ and 4 in 2D Reaching and 2D wavy Reaching) and the best $C = [ c = 0 . 0 4 , 0 . 0 2 , 0 . 0 2 ]$ and $[ 0 . 0 3 , 0 , 0 , 0 6 ]$ in 2D Reaching and 2D wavy
|
| 302 |
+
|
| 303 |
+

|
| 304 |
+
Figure 8: Visualization of learned disentangled representations for Gripper dataset. Traversed latent variable shows changing position of blue objects:(b) (9th $z$ in 1st ladder), changing target ball from red one to blue one and moving accordingly:(c) (1st $z$ in 2nd ladder), reaching ball using different plan:(d) (2nd $z$ in 2nd ladder), changing plan to place ball from drop ball to placing it gently:(e) (4th $z$ in 2nd ladder).
|
| 305 |
+
|
| 306 |
+
Reaching. The best $C$ was decided by the value of KL divergence loss when we experimented to allow reconstruction with $C = 0 , 0 , 0$ .
|
| 307 |
+
|
| 308 |
+
# D GRIPPER
|
| 309 |
+
|
| 310 |
+
To evaluate the potential application of our model to robotic tasks, we constructed a robot endeffector simulation environment based on Bullet Real-Time Physics Simulation2. The environment consisted of an end-effector, two balls (red and blue), and two baskets (red and blue) in a bi-dimensional space. The end-effector grabs one of the balls and places it into the basket with the same color as the ball. The data factors include movement ”habits.” For example, the end-effector could reach the targeted ball by either directly moving toward the ball obliquely or first moving above of the ball and then lowering itself until it reached the ball (perpendicular movement). The end-effector could drop the ball from far above the basket or place it gently in the basket. Each factor could affect different lengths among the data; e.g., ”the plan to place the ball in the basket” factor affects different lengths per datum since the initial distance from the target ball to the corresponding basket may differ. This means that the time required to reach the ball should differ. Note that input is a value such as gripper’s position, not an image. See Appendix B for a more detailed explanation.
|
| 311 |
+
|
| 312 |
+
FAVAE learned the disentangled factors of the Gripper dataset. Example visualized latent traversals are shown in Fig. 8. The traversed latent variable determined which factors were disentangled, such as the initial position of blue ball and basket (b), the targeted ball (red or blue) (c), plan to reach the ball (move obliquely or move perpendicularly) (d), and plan to place the ball in the basket (drop the ball or placing it in the basket gently) (e). These results indicate that our model can learn generative factors such as disentangled latent variables for robotic tasks, even though the length of the data affected by each factor may differ for each datum. We used FAVAE in a two-ladder network with 12 and 8 latent variables with $\beta { = } 1 0 0 0$ .
|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
Figure 9: Visualization of factors of 2D Wavy Reaching training data.
|
| 316 |
+
|
| 317 |
+
# E DATASET DETAILS
|
| 318 |
+
|
| 319 |
+
# E.1 2D WAVY REACHING
|
| 320 |
+
|
| 321 |
+
Five different factors generate each trajectory: (9a) Shape of trajectory from start position to intermediate point. The first shape is created using a cycloid function while the other one adds a sine curve on the cycloid. (9b) Shape of trajectory from intermediate point to goal; shape is the same as for (9a). (9c) Location of goal; five different goal locations were used. (9d) Degree of curvature from start to intermediate point. (9e) Degree of curvature from intermediate point to goal.
|
| 322 |
+
|
| 323 |
+
# E.2 SPRITES
|
| 324 |
+
|
| 325 |
+
Sprits dataset is video data of video game ”sprites”. It used was used in (Li & Mandt, 2018) for confirming the extraction of disentangled representation between static factors and dynamic factors. The dataset consists of sequences with $T = 8$ frames of dimension $3 \times 6 4 \times 6 4$ . We use factors and motion of Sprites is shown in Table 4 and Fig. 10.
|
| 326 |
+
|
| 327 |
+
# E.3 GRIPPER
|
| 328 |
+
|
| 329 |
+
We implemented the end-effector only rather than the entire robot arm since controlling the robot arm during the picking task is easily computable by calculating the inverse kinematics and inverse dynamics. Gripper is a 12 dimensional data set: [joint $\mathbf { X }$ position, joint y position, finger1 joint position(angle), finger2 joint position(angle), box1 $\mathbf { X }$ position, box1 y position, $\mathbf { b } 0 \mathbf { X } 2 \textbf { X }$ position, box2 y position, ball1 x position, ball1 y position, ball2 $\mathbf { X }$ position, ball2 y position]. Eight factors are represented in this dataset: 1) color of ball to pick up, 2) initial location of red ball, 3) initial location of blue ball, 4) initial location of blue basket, 5) initial location of red basket, 6) plan for using end effector to move to ball to pick it up [first, moving horizontally to the $\mathbf { X }$ -location of ball and then descending horizontally to the y-location of ball, like the movement of the doll drawing machine (perpendicular motion); second, moving straight to the location of he ball to pick it up (oblique motion)], 7) plan for using end effector to move to point above basket after picking up ball (perpendicular or oblique motion), 8) plan for placing ball in basket (by dropping ball or descending to basket and gently placing ball in basket). Among the four initial positions, the two balls and two baskets are placed randomly. The movement of the robot is hard-coded on the basis of a goalposition-based script. To reduce collision detection errors during the simulation, we used a large physical model (end effector size $1 \mathrm { m } \dot { }$ ), which does not affect the overall validity. The length of the data-point sequence was 400.
|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
Figure 10: Motions in Sprites dataset. Row 1/2/3 represent walk left/forward/right, row 4/5/6 represent spellcast left/forward/right, and row 7/8/9 represent slash left/forward/right’ respectfully.
|
| 333 |
+
|
| 334 |
+
Table 4: Factors in dataset
|
| 335 |
+
|
| 336 |
+
<table><tr><td>Dataset</td><td>Degree of factors</td><td>Ground truth factors</td></tr><tr><td rowspan="3">2D Reaching</td><td>2</td><td>Goal positon</td></tr><tr><td>2</td><td>Curved inward /outward</td></tr><tr><td>5</td><td>Degree of curvature</td></tr><tr><td rowspan="5">2D wavy Reaching</td><td>4</td><td>1st trajectory shape</td></tr><tr><td>4</td><td>2nd trajectory shape</td></tr><tr><td>5</td><td>Goal position</td></tr><tr><td>2</td><td>1st trajectory degree of curvature</td></tr><tr><td>2</td><td>2nd trajectory degree of curvature</td></tr><tr><td rowspan="6">Sprites Dataset</td><td>3</td><td>Motions (walk, spellcast or slash)</td></tr><tr><td>2</td><td>Body color (light or dark2)</td></tr><tr><td>2</td><td>Shirts color (brown or teal)</td></tr><tr><td>2</td><td>Hair color (green or pink)</td></tr><tr><td>2</td><td>Pants color (red or teal)</td></tr><tr><td>3</td><td>Direction of character (left,foward, right)</td></tr><tr><td rowspan="8">Gripper</td><td>2</td><td>Targeted ball to grasp (red or blue)</td></tr><tr><td>4</td><td>Red ball initial position</td></tr><tr><td>4</td><td>Blue ball initial position</td></tr><tr><td>4</td><td>Red basket position</td></tr><tr><td>4</td><td>Blue basket position</td></tr><tr><td>2</td><td>Plan to reach target ball</td></tr><tr><td>2</td><td>Plan to reach corresponding basket</td></tr><tr><td>2</td><td>Plan to place ball in basket</td></tr></table>
|
| 337 |
+
|
| 338 |
+
# F ARCHITECTURE DETAILS
|
| 339 |
+
|
| 340 |
+
# F.1 FAVAE
|
| 341 |
+
|
| 342 |
+
We show the hyper parameters in Table 1, Fig. 7 and Table 3. The parameters searched are $\beta = 0$ to 10000 (the best $\beta = 1$ and $C = [ 0 , 0 , 0 ]$ and the best $\beta = 1 0 0 0 0 0$ and $C = [ 2 0 , 1 , 5 ]$ in 2D Reaching and 2D wavy Reaching in Table 1) The best $C$ was decided by the value of KL divergence loss when we experimented to allow reconstruction with $C = 0 , 0 , 0$ . In Table 3, we search the parameters from $\beta = 0$ to 60 (the best $\beta = 0 . 4$ and 4 in 2D Reaching and 2D wavy Reaching) and the best $C = [ c = 0 . 0 4 , 0 . 0 2 , 0 . 0 2 ]$ and $[ 0 . 0 3 , 0 , 0 , 0 6 ]$ in 2D Reaching and 2D wavy Reaching. In Fig. 7.3, we add the pre-encoder and post-decoder for encoding and decoding of images at each time step. The pre-encoding and post-decoding architecture is same as ”encode frames” and ”decode frames” in the code implementing Disentangled-Sequential-Autoencoder3 with conv $\mathrm { d i m } = 4 8$ . We search the parameters from $\beta = 0$ to $\beta = 1 0 0$ and the best $\beta = 2 0$ with $C = [ 0 . 3 , 0 . 1 7 , 0 . 0 6$ ].
|
| 343 |
+
|
| 344 |
+
# F.2 FHVAE
|
| 345 |
+
|
| 346 |
+
For the FHVAE experiments, we used the code from the implementation at Github4. We used recurrent setting with LSTM encoders and decoder with unit size 256 and batch size 80. Dimensions of latent variable z1 and $_ { z 2 }$ are 7 for each. We used Adam optimizer with learning rate 0.001. We applied goal position factors (2 classes for 2D Reaching and 5 classes for 2D wavy Reaching) as label inputs. We varied $\alpha$ from 1.0 to 30.0, and the best $\alpha$ was 20.0 for 2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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "FAVAE: SEQUENCE DISENTANGLEMENT USING INFORMATION BOTTLENECK PRINCIPLE ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We propose the factorized action variational autoencoder (FAVAE), a state-of-theart generative model for learning disentangled and interpretable representations from sequential data via the information bottleneck without supervision. The purpose of disentangled representation learning is to obtain interpretable and transferable representations from data. We focused on the disentangled representation of sequential data since there is a wide range of potential applications if disentanglement representation is extended to sequential data such as video, speech, and stock price data. Sequential data is characterized by dynamic factors and static factors: dynamic factors are time dependent, and static factors are independent of time. Previous works succeed in disentangling static factors and dynamic factors by explicit modeling the priors of latent variables to distinguish between static and dynamic factors. However, this model cannot disentangle representations between dynamic factors, such as disentangling ”picking” and ”throwing” in robotic tasks. In this paper, we propose new model that can disentangle multiple dynamic factors. Since our method does not require modeling priors, it is capable of disentangling ”between” dynamic factors. In experiments, we show that FAVAE can extract the disentangled dynamic factors. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
268,
|
| 43 |
+
764,
|
| 44 |
+
503
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
535,
|
| 55 |
+
336,
|
| 56 |
+
551
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Representation learning is one of the most fundamental problems in machine learning. A real world data distribution can be regarded as a low-dimensional manifold in a high-dimensional space (Bengio et al., 2013). Generative models in deep learning, such as the variational autoencoder (VAE) (Kingma & Welling, 2013) and the generative adversarial network (GAN) (Goodfellow et al., 2014), are able to learn low-dimensional manifold representation (factor) as a latent variable. The factors are fundamental components such as position, color, and degree of smiling in an image of a human face (Liu et al., 2015). Disentangled representation is defined as a single factor being represented by a single latent variable (Bengio et al., 2013). Thus, if in a model of learned disentangled representation, shifting one latent variable while leaving the others fixed generates data showing that only the corresponding factor was changed. This is called latent traversals (a good demonstration of which was given by Higgins et al. $( 2 0 1 6 \\mathrm { a } ) ^ { 1 }$ ). There are two advantages of disentangled representation. First, latent variables are interpretable. Second, the disentangled representation is generalizable and robust against adversarial attacks (Alemi et al., 2016). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
569,
|
| 66 |
+
825,
|
| 67 |
+
748
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "We focus on the disentangled representation learning of sequential data. Sequential data is characterized by dynamic factors and static factors: dynamic factors are time dependent, and static factors are independent of time. With disentangled representation learning from sequential data, we should be able to extract dynamic factors that cannot be extracted by disentangled representation learning models for non-sequential data such as $\\beta$ -VAE (Higgins et al., 2016a;b) and InfoGAN (Chen et al., 2016). The concept of disentangled representation learning for sequential data is illustrated in Fig. 1. Consider that the pseudo-dataset of the movement of a submarine has a dynamic factor: the trajectory shape. The disentangled representation learning model for sequential data can extract this shape. On the other hand, since the disentangled representation learning model for non-sequential data does not consider the sequence of data, it merely extracts the $\\mathbf { X }$ -position and y-position. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
756,
|
| 77 |
+
825,
|
| 78 |
+
895
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "(c) FAVAE accepts sequential data. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
178,
|
| 87 |
+
324,
|
| 88 |
+
375,
|
| 89 |
+
349
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/d791a4a43bd7873e6856996a67db2eab578a5e68ad71e5cdec1fe65206843e5f.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"(d) Latent traversal of FAVAE. ",
|
| 98 |
+
"Figure 1: Illustration of how FAVAE differs from $\\beta$ -VAE. $\\beta$ -VAE does not accept data sequentially; it cannot differentiate data points from different trajectories or sequences of data points. FAVAE considers a sequence of data points, taking all data points in a trajectory as one datum. For example, for a pseudo-dataset representing the trajectory of a submarine (1a,1c), $\\beta$ -VAE accepts 11 different positions of the submarine as non-sequential data while FAVAE accepts three different trajectories of the submarine as sequential data. Therefore, the latent variable in $\\beta$ -VAE learns only the coordinates of the submarine, and the latent traversal shows the change in the submarines position. On the other hand, FAVAE learns the factor that controls the trajectory of the submarine, so the latent traversal shows the change in the submarines trajectory. "
|
| 99 |
+
],
|
| 100 |
+
"image_footnote": [],
|
| 101 |
+
"bbox": [
|
| 102 |
+
178,
|
| 103 |
+
103,
|
| 104 |
+
816,
|
| 105 |
+
332
|
| 106 |
+
],
|
| 107 |
+
"page_idx": 1
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"type": "text",
|
| 111 |
+
"text": "There is a wide range of potential applications if we extend disentanglement representation to sequential data such as speech, video, and stock market data. For example, disentangled representation learning for stock price data can extract the fundamental trend of a given stock price. Another application is the reduction of action space in reinforcement learning. Extracting dynamic factors would enable the generation of macro-actions (Durugkar et al., 2016), which are sets of sequential actions that represent the fundamental factors of the actions. Thus, disentangled representation learning for sequential data opens the door to new areas of research. ",
|
| 112 |
+
"bbox": [
|
| 113 |
+
174,
|
| 114 |
+
534,
|
| 115 |
+
825,
|
| 116 |
+
631
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "Very recent related work (Hsu et al., 2017; Li & Mandt, 2018) separated factors of sequential data into dynamic and static factors. The factorized hierarchical variational autoencoder (FHVAE) (Hsu et al., 2017) is based on a graphical model using latent variables with different time dependencies. By maximizing the variational lower bound of the graphical model, the FHVAE separates the different time dependent factors such as the dynamic and static factors. The VAE architecture developed by Li & Mandt (2018) is the same as the FHVAE in terms of the time dependencies of the latent variables. Since these models require different time dependencies for the latent variables, these approaches cannot be used disentangle variables with the same time dependency factor. ",
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
638,
|
| 126 |
+
825,
|
| 127 |
+
750
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "We address this problem by taking a different approach. First, we analyze the root cause of disentanglement from the perspective of information theory. As a result, the term causing disentanglement is derived from a more fundamental rule: reduce the mutual dependence between the input and output of an encoder while keeping the reconstruction of the data. This is called the information bottleneck (IB) principle. We naturally extend this principle to sequential data from the relationship between $x$ and $z$ to $x _ { t : T }$ and $z$ . This enables the separation of multiple dynamic factors as a consequence of information compression. It is difficult to learn a disentangled representation of sequential data since not only the feature space but also the time space should be compressed. We created the factorized action variational autoencoder (FAVAE) in which we implemented the concept of information capacity to stabilize learning and a ladder network to learn a disentangled representation in accordance with the level of data abstraction. Since our model is a more general model without the restriction of a graphical model design to distinguish between static and dynamic factors, it can separate dependency factors occurring at the same time. Moreover, it can separate factors into dynamic and static factors. ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
757,
|
| 137 |
+
825,
|
| 138 |
+
924
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "",
|
| 145 |
+
"bbox": [
|
| 146 |
+
173,
|
| 147 |
+
103,
|
| 148 |
+
825,
|
| 149 |
+
132
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 2
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "2 DISENTANGLEMENT FOR NON-SEQUENTIAL DATA ",
|
| 156 |
+
"text_level": 1,
|
| 157 |
+
"bbox": [
|
| 158 |
+
173,
|
| 159 |
+
151,
|
| 160 |
+
625,
|
| 161 |
+
169
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 2
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "$\\beta$ -VAE (Higgins et al., 2016a;b) is a commonly used method for learning disentangled representations based on the VAE framework (Kingma $\\&$ Welling, 2013) for a generative model. The VAE can estimate the probability density from data $\\mathbf { X }$ . The objective function of the VAE maximizes the evidence lower bound (ELBO) of $\\log p \\left( x \\right)$ as ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
174,
|
| 170 |
+
183,
|
| 171 |
+
825,
|
| 172 |
+
239
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 2
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "equation",
|
| 178 |
+
"img_path": "images/cda7dee6b206db38678fa03c1374d196258cbcfdbcbd06437151a956f7982c61.jpg",
|
| 179 |
+
"text": "$$\n\\log p \\left( x \\right) = \\mathcal { L } _ { \\mathrm { V A E } } + \\underbrace { D _ { \\mathrm { K L } } \\left( q \\left( z \\vert x \\right) \\vert \\vert p \\left( z \\vert x \\right) \\right) } _ { \\ge 0 } ,\n$$",
|
| 180 |
+
"text_format": "latex",
|
| 181 |
+
"bbox": [
|
| 182 |
+
349,
|
| 183 |
+
244,
|
| 184 |
+
647,
|
| 185 |
+
284
|
| 186 |
+
],
|
| 187 |
+
"page_idx": 2
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"type": "text",
|
| 191 |
+
"text": "where $z$ is latent variable, $D _ { \\mathrm { K L } }$ is the Kullback-Leibler divergence, and $q \\left( z | x \\right)$ is an approximated distribution of $p \\left( z | x \\right) . \\ D _ { \\mathrm { K L } } \\left( q \\left( z | x \\right) | | p \\left( z | x \\right) \\right)$ reduces to zero as the ELBO $\\mathcal { L } _ { \\mathrm { V A E } }$ increases; thus, $q \\left( z | x \\right)$ learns a good approximation of $p \\left( z | x \\right)$ . The ELBO is defined as ",
|
| 192 |
+
"bbox": [
|
| 193 |
+
173,
|
| 194 |
+
287,
|
| 195 |
+
825,
|
| 196 |
+
332
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 2
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "equation",
|
| 202 |
+
"img_path": "images/ffde22627fb42af001dee21030c38dc44f42cd36b862d9f86e8c3fdf4b14c66f.jpg",
|
| 203 |
+
"text": "$$\n\\mathcal { L } _ { \\mathrm { V A E } } \\equiv E _ { q ( z | x ) } \\left[ \\log p \\left( x | z \\right) \\right] - D _ { \\mathrm { K L } } \\left( q \\left( z | x \\right) | | p \\left( z \\right) \\right) ,\n$$",
|
| 204 |
+
"text_format": "latex",
|
| 205 |
+
"bbox": [
|
| 206 |
+
320,
|
| 207 |
+
337,
|
| 208 |
+
676,
|
| 209 |
+
356
|
| 210 |
+
],
|
| 211 |
+
"page_idx": 2
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"type": "text",
|
| 215 |
+
"text": "where the first term, $E _ { q ( \\boldsymbol { z } | \\boldsymbol { x } ) } \\left[ \\log p \\left( \\boldsymbol { x } | \\boldsymbol { z } \\right) \\right]$ , is a reconstruction term used to reconstruct $x$ , and the second term $D _ { \\mathrm { K L } } \\left( q \\left( z | x \\right) \\^ { } | | \\dot { p } \\left( z \\right) \\right)$ is a regularization term used to regularize posterior $q \\left( z | x \\right)$ . Encoder $q \\left( z | x \\right)$ and decoder $p \\left( x | z \\right)$ are learned in the VAE. ",
|
| 216 |
+
"bbox": [
|
| 217 |
+
174,
|
| 218 |
+
361,
|
| 219 |
+
825,
|
| 220 |
+
405
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 2
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "Next we will explain how $\\beta$ -VAE extracts disentangled representations from unlabeled data. $\\beta$ -VAE is an extension of the coefficient $\\beta > 1$ of the regularization term $D _ { \\mathrm { K L } } \\left( q \\left( z | x \\right) | | p \\left( z \\right) \\right)$ in the VAE. The objective function of $\\beta$ -VAE is ",
|
| 227 |
+
"bbox": [
|
| 228 |
+
174,
|
| 229 |
+
411,
|
| 230 |
+
825,
|
| 231 |
+
454
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "equation",
|
| 237 |
+
"img_path": "images/9e3b83b62ec195121c7bae9267aa5d615f9c7de5412985d60a6e253f94d0590e.jpg",
|
| 238 |
+
"text": "$$\n\\mathcal { L } _ { \\beta - \\mathrm { V A E } } = E _ { q ( z | x ) } \\left[ \\log p \\left( x | z \\right) \\right] - \\beta D _ { \\mathrm { K L } } \\left( q \\left( z | x \\right) | | p \\left( z \\right) \\right) ,\n$$",
|
| 239 |
+
"text_format": "latex",
|
| 240 |
+
"bbox": [
|
| 241 |
+
305,
|
| 242 |
+
459,
|
| 243 |
+
691,
|
| 244 |
+
478
|
| 245 |
+
],
|
| 246 |
+
"page_idx": 2
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"type": "text",
|
| 250 |
+
"text": "where $\\beta > 1$ and $p \\left( z \\right) = \\mathcal { N } \\left( 0 , 1 \\right)$ . $\\beta$ -VAE promotes disentangled representation learning via the Kullback-Leibler divergence term. As $\\beta$ increases, the latent variable $q \\left( z | x \\right)$ approaches the prior $p \\left( z \\right)$ ; therefore, each $z _ { i }$ is pressured to learn the probability distribution of $\\mathcal { N } ( 0 , 1 )$ . However, if all latent variables $z _ { i }$ become $\\mathcal { N } ( 0 , 1 )$ , the model cannot reconstruct $x$ . As a result, as long as $z$ reconstructs $x$ , $\\beta$ -VAE reduces the information of $z$ . ",
|
| 251 |
+
"bbox": [
|
| 252 |
+
173,
|
| 253 |
+
483,
|
| 254 |
+
825,
|
| 255 |
+
554
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 2
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "3 PRELIMINARY: ORIGIN OF DISENTANGLEMENT ",
|
| 262 |
+
"text_level": 1,
|
| 263 |
+
"bbox": [
|
| 264 |
+
174,
|
| 265 |
+
574,
|
| 266 |
+
599,
|
| 267 |
+
590
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 2
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "To clarify the origin of disentanglement, we will explain the regularization term. The regularization term has been decomposed into three terms (Chen et al., 2018; Kim & Mnih, 2018; Hoffman & Johnson, 2016): ",
|
| 274 |
+
"bbox": [
|
| 275 |
+
174,
|
| 276 |
+
604,
|
| 277 |
+
825,
|
| 278 |
+
648
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "equation",
|
| 284 |
+
"img_path": "images/35f8fde0612697ce1d30baf15256ff8382f7d72813f4a8647df3ad8670277a3b.jpg",
|
| 285 |
+
"text": "$$\nE _ { p \\left( x \\right) } \\left[ D _ { \\mathrm { K L } } \\left( q \\left( \\boldsymbol { z } \\left| \\boldsymbol { x } \\right) \\right| \\left| p \\left( \\boldsymbol { z } \\right) \\right) \\right] = I \\left( \\boldsymbol { x } ; \\boldsymbol { z } \\right) + D _ { \\mathrm { K L } } \\left( q \\left( \\boldsymbol { z } \\right) \\right| \\Big | \\prod _ { j } q \\left( z _ { j } \\right) \\right) + \\sum _ { j } D _ { \\mathrm { K L } } \\left( q \\left( \\boldsymbol { z } _ { j } \\right) \\right| \\left| p \\left( z _ { j } \\right) \\right) ,\n$$",
|
| 286 |
+
"text_format": "latex",
|
| 287 |
+
"bbox": [
|
| 288 |
+
181,
|
| 289 |
+
652,
|
| 290 |
+
818,
|
| 291 |
+
703
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "where $z _ { j }$ denotes the $j$ -th dimension of the latent variable. The second term, which is called ”total correlation” in information theory, quantifies the redundancy or dependency among a set of $\\mathbf { n }$ random variables (Watanabe, 1960). $\\beta$ -TCVAE has been experimentally shown to reduce the total correlation causing disentanglement (Chen et al., 2018). The third term indirectly causes disentanglement by bringing $q \\left( z | x \\right)$ close to the independent standard normal distribution $p \\left( z \\right)$ . The first term is mutual information between the data variable and latent variable based on the empirical data distribution. Minimizing the regularization term causes disentanglement but disturbs reconstruction via the first term in Eq. (4). The shift $C$ scheme was proposed (Burgess et al., 2018) as a means to solve this conflict: ",
|
| 298 |
+
"bbox": [
|
| 299 |
+
173,
|
| 300 |
+
713,
|
| 301 |
+
825,
|
| 302 |
+
839
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 2
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "equation",
|
| 308 |
+
"img_path": "images/85c31bf151a5831a9eb46dfb1113aabac7f5a719e95dc7b3393d89d2ac840cbd.jpg",
|
| 309 |
+
"text": "$$\n- { \\cal E } _ { q _ { \\phi } ( z | x ) } [ \\log p _ { \\theta } ( x | z ) ] + \\beta | { \\cal D } _ { \\mathrm { K L } } ( q ( z | x ) | | p ( z ) ) - C | ,\n$$",
|
| 310 |
+
"text_format": "latex",
|
| 311 |
+
"bbox": [
|
| 312 |
+
307,
|
| 313 |
+
844,
|
| 314 |
+
687,
|
| 315 |
+
863
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 2
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "where constant shift $C$ , which is called ”information capacity,” linearly increases during training. This shift $C$ can be understood from the point of view of an information bottleneck (Tishby et al., 2000). The VAE can be derived by maximizing the ELBO, but $\\beta$ -VAE can no longer be interpreted as an ELBO once this scheme has been applied. The objective function of $\\beta$ -VAE is derived from the information bottleneck (Alemi et al., 2016; Achille & Soatto, 2018; Tishby et al., 2000; Chechik et al., 2005). ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
173,
|
| 324 |
+
867,
|
| 325 |
+
825,
|
| 326 |
+
924
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "",
|
| 333 |
+
"bbox": [
|
| 334 |
+
173,
|
| 335 |
+
103,
|
| 336 |
+
823,
|
| 337 |
+
131
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 3
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "equation",
|
| 343 |
+
"img_path": "images/6f70e6ec06cd4d6895a981540a88f31a7547b288e939c06da292f2bd04a3a558.jpg",
|
| 344 |
+
"text": "$$\n\\operatorname* { m a x } I \\left( z ; x \\right) \\qquad \\mathrm { s . t . } ~ | I \\left( \\hat { x } ; z \\right) - C | = 0 ,\n$$",
|
| 345 |
+
"text_format": "latex",
|
| 346 |
+
"bbox": [
|
| 347 |
+
361,
|
| 348 |
+
130,
|
| 349 |
+
633,
|
| 350 |
+
147
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 3
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "where $C$ is the information capacity and $\\hat { x }$ is the empirical distribution. Solving this equation by using Lagrange multipliers drives the objective function of $\\beta$ -VAE Eq. (5) with $\\beta$ as the Lagrange multiplier (details in Appendix $\\mathbf { B }$ of (Alemi et al., 2016)). In Eq. (5), information capacity $C$ prevents $I \\left( \\hat { x } , z \\right)$ from becoming zero. In the information bottleneck literature, $y$ typically stands for a classification task; however, the formulation can be related to the autoencoding objective (Alemi et al., 2016). Therefore, the objective function of $\\beta$ -VAE can be understood using the information bottleneck principle. ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
173,
|
| 359 |
+
150,
|
| 360 |
+
825,
|
| 361 |
+
248
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 3
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "4 PROPOSED MODEL: DISENTANGLEMENT FOR SEQUENTIAL DATA ",
|
| 368 |
+
"text_level": 1,
|
| 369 |
+
"bbox": [
|
| 370 |
+
173,
|
| 371 |
+
267,
|
| 372 |
+
748,
|
| 373 |
+
285
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 3
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "Our proposed FAVAE model learns disentangled and interpretable representations from sequential data without supervision. We consider sequential data $x _ { 1 : T } \\equiv \\{ x _ { 1 } , x _ { 2 } , \\cdot \\cdot \\cdot , x _ { T } \\}$ generated from a latent variable model, ",
|
| 380 |
+
"bbox": [
|
| 381 |
+
173,
|
| 382 |
+
299,
|
| 383 |
+
825,
|
| 384 |
+
342
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 3
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "equation",
|
| 390 |
+
"img_path": "images/31b8bfcfb10c128cc461f8198bdf34f291e2601f3b38c52138544b3491f92f09.jpg",
|
| 391 |
+
"text": "$$\np \\left( x _ { 1 : T } \\right) = \\int p \\left( x _ { 1 : T } | z \\right) p \\left( z \\right) d z .\n$$",
|
| 392 |
+
"text_format": "latex",
|
| 393 |
+
"bbox": [
|
| 394 |
+
387,
|
| 395 |
+
348,
|
| 396 |
+
611,
|
| 397 |
+
381
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "For sequential data, we replace $x$ with $\\scriptstyle ( x _ { 1 : T } )$ in Eq. 5. The objective function of the FAVAE model is ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
174,
|
| 406 |
+
387,
|
| 407 |
+
821,
|
| 408 |
+
414
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 3
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "equation",
|
| 414 |
+
"img_path": "images/89ce45d6f4119dd11deb5d928ec99eb67797aa8848c3d8154ed42b8e3c789bee.jpg",
|
| 415 |
+
"text": "$$\n- { \\cal E } _ { q _ { \\phi } ( z | ( x _ { 1 : T } ) _ { i } ) } [ \\log p _ { \\theta } ( x _ { 1 : T } | z ) ] + \\beta | { \\cal D } _ { \\mathrm { K L } } ( q ( z | ( x _ { 1 : T } ) _ { i } ) | | p ( z ) ) - C | ,\n$$",
|
| 416 |
+
"text_format": "latex",
|
| 417 |
+
"bbox": [
|
| 418 |
+
258,
|
| 419 |
+
414,
|
| 420 |
+
735,
|
| 421 |
+
436
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "where $p \\left( z \\right) = \\mathcal { N } \\left( 0 , 1 \\right)$ . The variational recurrent neural network (Chung et al., 2015) and stochastic recurrent neural network (Fraccaro et al., 2016) extend the VAE model to a recurrent framework. The priors of both networks are dependent on time. The time dependent prior experimentally improves the ELBO. In contrast, the prior of our model is independent of time like those of the stochastic recurrent network (Bayer $\\&$ Osendorfer, 2014) and the Deep Recurrent Attentive Writer (DRAW) neural network architecture (Gregor et al., 2015); this is because FAVAE is disentangled representation learning rather than density estimation. For better understanding, consider FAVAE from the perspective of IB. As with $\\beta$ -VAE, FAVAE can be understood from the information bottleneck principle. ",
|
| 428 |
+
"bbox": [
|
| 429 |
+
173,
|
| 430 |
+
439,
|
| 431 |
+
825,
|
| 432 |
+
564
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "equation",
|
| 438 |
+
"img_path": "images/059a9ba82320a70c4553524d9c68b9c3dbb7612d1d30de3b0100e5a4856d28f9.jpg",
|
| 439 |
+
"text": "$$\n\\operatorname* { m a x } I \\left( z ; x _ { 1 : T } \\right) \\qquad \\mathrm { s . t . } ~ | I \\left( \\hat { x } _ { 1 : T } ; z \\right) - C | = 0 ,\n$$",
|
| 440 |
+
"text_format": "latex",
|
| 441 |
+
"bbox": [
|
| 442 |
+
341,
|
| 443 |
+
563,
|
| 444 |
+
655,
|
| 445 |
+
580
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "where $\\hat { x } _ { 1 : T }$ follows an empirical distribution. These principles make the representation of $z$ compact while reconstruction of the sequential data is represented by $x _ { 1 : T }$ (see Appendix A). ",
|
| 452 |
+
"bbox": [
|
| 453 |
+
176,
|
| 454 |
+
583,
|
| 455 |
+
826,
|
| 456 |
+
612
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 3
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "4.1 LADDER NETWORK ",
|
| 463 |
+
"text_level": 1,
|
| 464 |
+
"bbox": [
|
| 465 |
+
174,
|
| 466 |
+
628,
|
| 467 |
+
351,
|
| 468 |
+
642
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "An important extension to FAVAE is a hierarchical representation scheme inspired by the VLAE (Zhao et al., 2017). Encoder $q \\left( z | x _ { 1 : T } \\right)$ within a ladder network is defined as ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
173,
|
| 477 |
+
654,
|
| 478 |
+
450,
|
| 479 |
+
723
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "equation",
|
| 485 |
+
"img_path": "images/6dff83c019972c5faadeb1ea1aaff210e3a450575b7397fc22baeaa032d0bdc2.jpg",
|
| 486 |
+
"text": "$$\n\\begin{array} { l } { { h _ { l } = f _ { l } \\left( h _ { l - 1 } \\right) , } } \\\\ { { z _ { l } \\sim \\mathcal { N } \\left( \\mu _ { l } \\left( h _ { l } \\right) , \\sigma _ { l } \\left( h _ { l } \\right) \\right) , } } \\end{array}\n$$",
|
| 487 |
+
"text_format": "latex",
|
| 488 |
+
"bbox": [
|
| 489 |
+
210,
|
| 490 |
+
729,
|
| 491 |
+
385,
|
| 492 |
+
768
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 3
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "where $l$ is a layer index, $h _ { 0 } \\equiv x _ { 1 : T }$ , and $f$ is a time convolution network, which is explained in the next section. Decoder $p \\left( x _ { 1 : T } | z \\right)$ within the ladder network is defined as ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
171,
|
| 501 |
+
773,
|
| 502 |
+
498,
|
| 503 |
+
830
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 3
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "image",
|
| 509 |
+
"img_path": "images/b346278abc264002383add7d500381c122f5b7482bf1b7ccbe274fd1a4fe979e.jpg",
|
| 510 |
+
"image_caption": [
|
| 511 |
+
"Figure 2: FAVAE architecture. "
|
| 512 |
+
],
|
| 513 |
+
"image_footnote": [],
|
| 514 |
+
"bbox": [
|
| 515 |
+
486,
|
| 516 |
+
660,
|
| 517 |
+
764,
|
| 518 |
+
776
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 3
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "equation",
|
| 524 |
+
"img_path": "images/9ad86558f051f348bb59f93acc082fdb283494e662b378c6ecb840f40300b0a6.jpg",
|
| 525 |
+
"text": "$$\n\\begin{array} { r } { \\tilde { z } _ { L } = g _ { l } \\left( z _ { L } \\right) } \\\\ { \\tilde { z } _ { l } = g _ { l } \\left( \\tilde { z } _ { l + 1 } + \\mathrm { g a t e } \\left( z _ { l } \\right) \\right) , } \\\\ { x _ { 1 : T } \\sim r \\left( x _ { 1 : T } , \\tilde { z } _ { 0 } \\right) ~ } \\end{array}\n$$",
|
| 526 |
+
"text_format": "latex",
|
| 527 |
+
"bbox": [
|
| 528 |
+
400,
|
| 529 |
+
835,
|
| 530 |
+
596,
|
| 531 |
+
890
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "where $g _ { l }$ is the time deconvolution network with $l = 1 , \\cdots , L - 1$ , and $r$ is a distribution family parameterized by $g _ { 0 } \\left( \\tilde { z } _ { 0 } \\right)$ . The gate computes the Hadamard product of its learnable parameter and input tensor. We set $r$ as a fixed-variance factored Gaussian distribution with the mean given by $\\mu _ { t : T } = g _ { 0 } \\left( \\tilde { z } _ { 0 } \\right)$ . Fig. (2) shows the architecture of the proposed model. The difference between each ladder network in the model is the number of convolution networks through which data passes. The abstract expressions should differ between ladders since the time convolution layer abstracts sequential data. Without the ladder network, the proposed method can disentangle only the representations at the same level of abstraction; with the ladder network, it can disentangle representations at different levels of abstraction. ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
173,
|
| 540 |
+
895,
|
| 541 |
+
825,
|
| 542 |
+
924
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 3
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "image",
|
| 548 |
+
"img_path": "images/a788ce73cb8b7bfaad254b437844807e035d2ae99c0c0ceda9ad26e554da2d1a.jpg",
|
| 549 |
+
"image_caption": [
|
| 550 |
+
"Figure 3: Visualization of latent traversal of $\\beta$ -VAE and FAVAE. On one sampled trajectory (red), each latent variable is traversed and purple and/or blue points are generated. The color corresponds to the value of the traversed latent variable. 3a represents all data trajectories of 2D reaching. "
|
| 551 |
+
],
|
| 552 |
+
"image_footnote": [],
|
| 553 |
+
"bbox": [
|
| 554 |
+
174,
|
| 555 |
+
102,
|
| 556 |
+
820,
|
| 557 |
+
233
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "text",
|
| 563 |
+
"text": "",
|
| 564 |
+
"bbox": [
|
| 565 |
+
173,
|
| 566 |
+
319,
|
| 567 |
+
825,
|
| 568 |
+
417
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "4.2 HOW TO ENCODE AND DECODE ",
|
| 575 |
+
"text_level": 1,
|
| 576 |
+
"bbox": [
|
| 577 |
+
176,
|
| 578 |
+
443,
|
| 579 |
+
429,
|
| 580 |
+
457
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "There are several mainstream neural network models designed for sequential data, such as the long short-term memory model (Hochreiter & Schmidhuber, 1997), the gated recurrent unit model (Chung et al., 2014), and the quasi-recurrent neural network QRNN (Bradbury et al., 2016). However, the VLAE has a hierarchical structure created by abstracting a convolutional neural network, so it is simple to add the time convolution of the QRNN to our model. The input data are $x _ { t , i }$ , where $t$ is the time index and $i$ is the dimension of the feature vector index. The time convolution considers the dimensions of feature vector $j$ as a convolution channel and performs convolution in the time direction: ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
173,
|
| 589 |
+
470,
|
| 590 |
+
825,
|
| 591 |
+
583
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "equation",
|
| 597 |
+
"img_path": "images/075b77a5cf32d7c3c72170524777d1f38636eca681e189760aa2c82798517b12.jpg",
|
| 598 |
+
"text": "$$\nz _ { t j } = \\sum _ { p , i } x _ { t - p , i } h _ { p i j } + b _ { j } ,\n$$",
|
| 599 |
+
"text_format": "latex",
|
| 600 |
+
"bbox": [
|
| 601 |
+
410,
|
| 602 |
+
588,
|
| 603 |
+
586,
|
| 604 |
+
623
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 4
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "where $j$ is the channel index. The proposed FAVAE model has a network similar to the VAE one regarding time convolution and a loss function similar to the $\\beta$ -VAE one (Eq. (8)). We used the batch normalization (Hinton et al., 2012) and ReLU as activation functions though other variations are possible. For example, 1d convolutional neural networks use a filter size of 3 and a stride of 2 and do not use a pooling layer. ",
|
| 611 |
+
"bbox": [
|
| 612 |
+
174,
|
| 613 |
+
635,
|
| 614 |
+
825,
|
| 615 |
+
707
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 4
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "5 MEASURING DISENTANGLEMENT ",
|
| 622 |
+
"text_level": 1,
|
| 623 |
+
"bbox": [
|
| 624 |
+
176,
|
| 625 |
+
734,
|
| 626 |
+
483,
|
| 627 |
+
751
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 4
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "While latent traversals are useful for checking the success or failure of disentanglement, quantification of the disentanglement is required for reliably evaluating the model. Various disentanglement quantification methods have been reported (Eastwood & Williams, 2018; Chen et al., 2018; Kim & Mnih, 2018; Higgins et al., 2016b;a), but there is no standard method. We use the mutual information gap (MIG) (Chen et al., 2018) as the metric for disentanglement. The basic idea of MIG is measuring the mutual information between latent variables $z _ { j }$ and a ground truth factor $v _ { k }$ . Higher mutual information means that $z _ { j }$ contains more information regarding $v _ { k }$ . ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
173,
|
| 636 |
+
770,
|
| 637 |
+
825,
|
| 638 |
+
869
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 4
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "$\\begin{array} { r } { \\mathrm { M I G } \\equiv \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } \\frac { 1 } { H \\left( v _ { k } \\right) } \\left( I \\left( z _ { j ^ { ( k ) } } ; v _ { k } \\right) - \\operatorname* { m a x } _ { j \\neq j ^ { ( k ) } } I \\left( z _ { j } ; v _ { k } \\right) \\right) } \\end{array}$ , where ${ j ^ { ( k ) } \\equiv \\arg \\operatorname* { m a x } _ { j } I \\left( z _ { j } ; v _ { k } \\right) }$ and $H \\left( v _ { k } \\right)$ is entropy for normalization. In our evaluation we experimentally measure disentanglement with MIG. ",
|
| 645 |
+
"bbox": [
|
| 646 |
+
174,
|
| 647 |
+
875,
|
| 648 |
+
823,
|
| 649 |
+
924
|
| 650 |
+
],
|
| 651 |
+
"page_idx": 4
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"type": "table",
|
| 655 |
+
"img_path": "images/386f9bde6da70d320a6ac163a4878508117069dd93b82b172e7b9bfc2c27be31.jpg",
|
| 656 |
+
"table_caption": [
|
| 657 |
+
"Table 1: Disentanglement scores (MIG, and Reconstruction loss) with standard deviations by 10 seeds for the different model. Best results are shown in bold. "
|
| 658 |
+
],
|
| 659 |
+
"table_footnote": [],
|
| 660 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">2D Reaching</td><td colspan=\"2\">2D wavy Reaching</td></tr><tr><td>MIG</td><td>Reconstruction</td><td>MIG</td><td>Reconstruction</td></tr><tr><td>Time Convolution AE</td><td>0.21(27)</td><td>0.18(13)</td><td>0.04(3)</td><td>0.06(1)</td></tr><tr><td>FAVAE (without ladder and C)</td><td>0.34(21)</td><td>0.62(115)</td><td>0.22(14)</td><td>23.6(279)</td></tr><tr><td>FAVAE (with ladder and without C)</td><td>0.41(13)</td><td>0.03(5)</td><td>0.26(7)</td><td>0.08(2)</td></tr><tr><td>FAVAE (without ladder and with C)</td><td>0.34(21)</td><td>0.62(115)</td><td>0.11(10)</td><td>1.47(73)</td></tr><tr><td>FAVAE (with ladder and C)</td><td>0.41(13)</td><td>0.03(5)</td><td>0.34(28)</td><td>1.81(170)</td></tr></table>",
|
| 661 |
+
"bbox": [
|
| 662 |
+
240,
|
| 663 |
+
118,
|
| 664 |
+
751,
|
| 665 |
+
215
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 5
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "6 RELATED WORK ",
|
| 672 |
+
"text_level": 1,
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
222,
|
| 676 |
+
344,
|
| 677 |
+
238
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 5
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "Several recently reported models (Hsu et al., 2017; Li & Mandt, 2018) graphically disentangle static and dynamic factors in sequential data such as speech data and video data (Garofolo et al., 1993; Pearce & Picone, 2002). In contrast, our model performs disentanglement by using a loss function (see Eq. 8). The advantage of the graphical models is that they can control the interpretable factors by controlling the priors time dependency. Since dynamic factors have the same time dependency, these models cannot disentangle dynamic factors. A loss function model can disentangle sets of dynamic factors as well as disentangle static and dynamic factors. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
174,
|
| 686 |
+
253,
|
| 687 |
+
825,
|
| 688 |
+
352
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 5
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "7 EVALUATION ",
|
| 695 |
+
"text_level": 1,
|
| 696 |
+
"bbox": [
|
| 697 |
+
176,
|
| 698 |
+
372,
|
| 699 |
+
315,
|
| 700 |
+
388
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "We evaluated our model experimentally using three sequential datasets: 2D Reaching, 2D Wavy Reaching, and Gripper. We used a batch size of 128 and the Adam (Kingma & Ba, 2014) optimizer with a learning rate of $1 0 ^ { - 3 }$ . ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
176,
|
| 709 |
+
404,
|
| 710 |
+
823,
|
| 711 |
+
445
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "7.1 2D REACHING ",
|
| 718 |
+
"text_level": 1,
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
463,
|
| 722 |
+
316,
|
| 723 |
+
478
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 5
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "To determine the differences between FAVAE and $\\beta$ -VAE, we used a bi-dimensional space reaching dataset. Starting from point $( 0 , 0 )$ , the point travels to goal position $( - 0 . 1 , + 1 )$ or $( + 0 . 1 , + 1 )$ . There are ten possible trajectories to each goal; five are curved inward, and the other five are curved outward. The degree of curvature for all five trajectories is different. The number of factor combinations was thus 20 (2x2x5). The trajectory length was 1000, so the size of one trajectory was $[ 1 0 0 0 \\mathrm { x } 2 ]$ . ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
489,
|
| 733 |
+
825,
|
| 734 |
+
560
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "We compared the performances of $\\beta$ -VAE and FAVAE trained on the 2D Reaching dataset. The results of latent traversal are transforming one dimension of latent variable z into another value and reconstructing something from the traversed latent variables. $\\beta$ -VAE, which is only able to learn from every point of a trajectory separately, encodes data points into latent variables that are parallel to the $\\mathbf { X }$ and y axes (3b, 3c). In contrast, FAVAE learns through one entire trajectory and can encode disentangled representation effectively so that feasible trajectories are generated from traversed latent variables (3d, 3e). ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
174,
|
| 743 |
+
566,
|
| 744 |
+
825,
|
| 745 |
+
665
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 5
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "7.2 2D WAVY REACHING ",
|
| 752 |
+
"text_level": 1,
|
| 753 |
+
"bbox": [
|
| 754 |
+
176,
|
| 755 |
+
681,
|
| 756 |
+
362,
|
| 757 |
+
695
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 5
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "To confirm the effect of disentanglement through information bottleneck, we evaluated the validity of our model under more complex factors by adding more factors to the 2D Reaching dataset. Five factors in total generated data compared to the three factors that generate data in 2D Reaching. This modified dataset differed in that four out of the five factors affect only part of the trajectory: two of them affect the first half, and the other two affect the second half. This means that the model should be able to focus on a certain part of the whole trajectory and be able to extract factors related to that part. A detailed explanation of these factors is given in Appendix B. ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
174,
|
| 766 |
+
708,
|
| 767 |
+
825,
|
| 768 |
+
805
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 5
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "We compared various models on the basis of MIG to demonstrate the validity of our proposed model in comparison of a time convolution AE in which a loss function is used only for the autoencoder ( $\\beta = 0$ ), FAVAE without the ladder network and information capacity $C$ , and FAVAE with the ladder network and information capacity $C$ . As shown in Table 1, FAVAE with the ladder network and C had the highest MIG scores for 2D Reaching and 2D Wavy Reaching. This indicates that this model learned a disentangled representation best. Note that for 2D Reaching, the best value for $C$ was small, meaning that there was little effect from adding $C$ (since the dataset was simple, this task can be solved even if the amount of information of $\\mathbf { Z }$ is small). ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
174,
|
| 777 |
+
811,
|
| 778 |
+
825,
|
| 779 |
+
924
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 5
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "image",
|
| 785 |
+
"img_path": "images/f01901b6971fd5a8db90e6cf3c95eeb6a623b75861e2421a6a2b3dbf4fb4fc1a.jpg",
|
| 786 |
+
"image_caption": [
|
| 787 |
+
"Figure 4: MIG score and reconstruction loss for different values of $\\beta$ . Blue line represents results with information capacity $C$ greater than zero; red line represents results with $C$ set to e zero. Note that $\\mathbf { X }$ axis is plotted in log scale. "
|
| 788 |
+
],
|
| 789 |
+
"image_footnote": [],
|
| 790 |
+
"bbox": [
|
| 791 |
+
176,
|
| 792 |
+
109,
|
| 793 |
+
790,
|
| 794 |
+
236
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 6
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "image",
|
| 800 |
+
"img_path": "images/b57addf8cf5aa9b7ee9e51ea1c882d13a1370cfeaa4554ced84a275746fbca89.jpg",
|
| 801 |
+
"image_caption": [
|
| 802 |
+
"Figure 5: Visualization of latent traversal for 2D Wavy Reaching. Each plot was decoded by traversing one latent variable; different colors represent trajectories generated from different values of same latent variable, z. "
|
| 803 |
+
],
|
| 804 |
+
"image_footnote": [],
|
| 805 |
+
"bbox": [
|
| 806 |
+
174,
|
| 807 |
+
313,
|
| 808 |
+
820,
|
| 809 |
+
444
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 6
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "text",
|
| 815 |
+
"text": "Fig. 4. We evaluated reconstruction loss and the MIG score for various values of $\\beta$ using three ladder networks (Fig. 6) with a different value of $C$ for each ladder: $\\begin{array} { r l } { C } & { { } = } \\end{array}$ [LowerLadder, MiddleLadder, HigherLadder]. One setting used was $C = [ 0 , 0 , 0 ]$ , meaning that $C$ was not used; another setting was $C = [ 2 0 , 1 , 5 ]$ , meaning that $C$ was adjusted on the basis of values of KL-Divergence for $\\beta = 1$ and $\\dot { C } = [ 0 , \\dot { 0 } , 0 ]$ . When $C$ was not used, the model could not reconstruct data when $\\beta$ was high; thus, disentangled representation was not learned well when $\\beta$ was high. When $C$ was used, the MIG score increased with $\\beta$ while reconstruction loss was suppressed. ",
|
| 816 |
+
"bbox": [
|
| 817 |
+
173,
|
| 818 |
+
535,
|
| 819 |
+
825,
|
| 820 |
+
646
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 6
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "The latent traversal results for 2D Wavy Reaching are plotted in Fig. 5. Even though not all learned representations are perfectly disentangled, the visualization shows that all five generation factors were learned from five latent variables; the other latent variables did not learn any meaningful factors, indicating that the factors could be expressed as a combination of five ”active” latent variables. We tested our model for $\\beta = 3 0 0$ . ",
|
| 827 |
+
"bbox": [
|
| 828 |
+
173,
|
| 829 |
+
652,
|
| 830 |
+
825,
|
| 831 |
+
723
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 6
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "image",
|
| 837 |
+
"img_path": "images/e02bc66dbc528f5a4577bc3ed31795379f1949b47c1b3c825077681ee325c131.jpg",
|
| 838 |
+
"image_caption": [
|
| 839 |
+
"Figure 6: Evaluation of ladders (left); structure used for each experiment (right). "
|
| 840 |
+
],
|
| 841 |
+
"image_footnote": [],
|
| 842 |
+
"bbox": [
|
| 843 |
+
186,
|
| 844 |
+
760,
|
| 845 |
+
820,
|
| 846 |
+
890
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 6
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "image",
|
| 852 |
+
"img_path": "images/4acf414e8b61f125fbb858bb241498545bc1deb9515d1fce021f72be4fcdf42b.jpg",
|
| 853 |
+
"image_caption": [
|
| 854 |
+
"Figure 7: Visualization of latent traversal of FAVAE. The horizontal axis represents sequence and the vertical axis represents the difference of $z$ values. "
|
| 855 |
+
],
|
| 856 |
+
"image_footnote": [],
|
| 857 |
+
"bbox": [
|
| 858 |
+
178,
|
| 859 |
+
101,
|
| 860 |
+
820,
|
| 861 |
+
351
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 7
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "The use of a ladder network in our model improved disentangled representation learning and minimized the reconstruction loss. The graph in Fig. 6 shows the MIG scores for networks with different numbers of ladders. The error bars represent the standard deviation for ten repetitive trials. Using all three ladders resulted in the minimum reconstruction loss with the highest MIG score (green curve) except for ”Higher Ladder One”. ”Higher Ladder One” has a large reconstruction error. ",
|
| 868 |
+
"bbox": [
|
| 869 |
+
174,
|
| 870 |
+
417,
|
| 871 |
+
825,
|
| 872 |
+
488
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 7
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "7.3 SPRITES DATASET. ",
|
| 879 |
+
"text_level": 1,
|
| 880 |
+
"bbox": [
|
| 881 |
+
176,
|
| 882 |
+
506,
|
| 883 |
+
341,
|
| 884 |
+
520
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 7
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "To evaluate the effectiveness of the video dataset, we trained our model with the Sprites dataset which is used in (Li & Mandt, 2018). This dataset has sequential length $= 8$ RGB video data with $3 \\times 6 4 \\times 6 4$ . This data set consists of static factor and dynamic factor. We note that the motion is not created with the combination of dynamic factors, and each motion exists individually (detail is E.2). Table 4 show the factors used in our experiment. We executed disentangled representation learning by using the FAVAE model with $\\beta = 2 0$ , $C = [ 0 . 3 , 0 . 1 7 , 0 . 0 6 ]$ and network architecture used for this training is explained in Section F.1. Fig. 7 shows the results of latent traversal, and we chose two $z$ values to change from $z = 3$ to 3. Since this dataset is composed of discrete factors, we show two $z$ values at a time.The latent variables in the 1st ladder extract expressions of motion (4th $z$ in 1st ladder), pants color (5th $z$ in 1st ladder), direction of character (6th $z$ in 1st ladder) and the shirts color (7th $z$ in 1st ladder). The latent variables in the 2nd ladder extract expressions of the hair color (1st $z$ in 2nd ladder) and the body color (2nd $z$ in 2nd ladder). FHVAE can extract the disentangled representations between static factors and dynamic factor in high dimension dataset. ",
|
| 891 |
+
"bbox": [
|
| 892 |
+
174,
|
| 893 |
+
532,
|
| 894 |
+
825,
|
| 895 |
+
713
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 7
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "8 SUMMARY AND FUTURE WORK ",
|
| 902 |
+
"text_level": 1,
|
| 903 |
+
"bbox": [
|
| 904 |
+
176,
|
| 905 |
+
733,
|
| 906 |
+
468,
|
| 907 |
+
750
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 7
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "Our factorized action variational autoencoder (FAVAVE) generative model learns disentangled and interpretable representations via the information bottleneck from sequential data. Evaluation using three sequential datasets demonstrated that it can learn disentangled representations. Future work includes extending the time convolution part to a sequence-to-sequence model (Sutskever et al., 2014) and applying the model to actions of reinforcement learning to reduce the pattern of actions. ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
174,
|
| 916 |
+
766,
|
| 917 |
+
825,
|
| 918 |
+
835
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 7
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "REFERENCES ",
|
| 925 |
+
"text_level": 1,
|
| 926 |
+
"bbox": [
|
| 927 |
+
176,
|
| 928 |
+
858,
|
| 929 |
+
285,
|
| 930 |
+
872
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 7
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Alessandro Achille and Stefano Soatto. Information dropout: Learning optimal representations through noisy computation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
176,
|
| 939 |
+
882,
|
| 940 |
+
823,
|
| 941 |
+
922
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 7
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Alexander A Alemi, Ian Fischer, Joshua V Dillon, and Kevin Murphy. Deep variational information bottleneck. arXiv preprint arXiv:1612.00410, 2016. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
173,
|
| 950 |
+
103,
|
| 951 |
+
823,
|
| 952 |
+
132
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 8
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "Justin Bayer and Christian Osendorfer. Learning stochastic recurrent networks. arXiv preprint arXiv:1411.7610, 2014. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
171,
|
| 961 |
+
142,
|
| 962 |
+
823,
|
| 963 |
+
171
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 8
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
176,
|
| 972 |
+
181,
|
| 973 |
+
823,
|
| 974 |
+
223
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 8
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. arXiv preprint arXiv:1611.01576, 2016. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
171,
|
| 983 |
+
234,
|
| 984 |
+
823,
|
| 985 |
+
265
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 8
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in $\\beta$ -VAE. arXiv preprint arXiv:1804.03599, 2018. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
173,
|
| 994 |
+
273,
|
| 995 |
+
826,
|
| 996 |
+
316
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 8
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "Gal Chechik, Amir Globerson, Naftali Tishby, and Yair Weiss. Information bottleneck for Gaussian variables. Journal of machine learning research, 6(Jan):165–188, 2005. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
171,
|
| 1005 |
+
327,
|
| 1006 |
+
823,
|
| 1007 |
+
357
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 8
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Tian Qi Chen, Xuechen Li, Roger Grosse, and David Duvenaud. Isolating sources of disentanglement in variational autoencoders. arXiv preprint arXiv:1802.04942, 2018. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
171,
|
| 1016 |
+
366,
|
| 1017 |
+
823,
|
| 1018 |
+
396
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 8
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGan: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in neural information processing systems, pp. 2172–2180, 2016. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
176,
|
| 1027 |
+
405,
|
| 1028 |
+
823,
|
| 1029 |
+
449
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 8
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
173,
|
| 1038 |
+
458,
|
| 1039 |
+
823,
|
| 1040 |
+
488
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 8
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "Junyoung Chung, Kyle Kastner, Laurent Dinh, Kratarth Goel, Aaron C Courville, and Yoshua Bengio. A recurrent latent variable model for sequential data. In Advances in neural information processing systems, pp. 2980–2988, 2015. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
173,
|
| 1049 |
+
497,
|
| 1050 |
+
825,
|
| 1051 |
+
541
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 8
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "Ishan P Durugkar, Clemens Rosenbaum, Stefan Dernbach, and Sridhar Mahadevan. Deep reinforcement learning with macro-actions. arXiv preprint arXiv:1606.04615, 2016. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
173,
|
| 1060 |
+
550,
|
| 1061 |
+
821,
|
| 1062 |
+
580
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 8
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Cian Eastwood and Christopher KI Williams. A framework for the quantitative evaluation of disentangled representations. 2018. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
169,
|
| 1071 |
+
590,
|
| 1072 |
+
823,
|
| 1073 |
+
619
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 8
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Marco Fraccaro, Søren Kaae Sønderby, Ulrich Paquet, and Ole Winther. Sequential neural models with stochastic layers. In Advances in neural information processing systems, pp. 2199–2207, 2016. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
174,
|
| 1082 |
+
628,
|
| 1083 |
+
823,
|
| 1084 |
+
672
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 8
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "John S Garofolo, Lori F Lamel, William M Fisher, Jonathan G Fiscus, and David S Pallett. DARPA TIMIT acoustic-phonetic continous speech corpus CD-ROM. NIST speech disc 1-1.1. NASA STI/Recon technical report n, 93, 1993. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
173,
|
| 1093 |
+
683,
|
| 1094 |
+
825,
|
| 1095 |
+
726
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 8
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
173,
|
| 1104 |
+
736,
|
| 1105 |
+
826,
|
| 1106 |
+
779
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 8
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "Karol Gregor, Ivo Danihelka, Alex Graves, Danilo Jimenez Rezende, and Daan Wierstra. DRAW: A recurrent neural network for image generation. arXiv preprint arXiv:1502.04623, 2015. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
169,
|
| 1115 |
+
787,
|
| 1116 |
+
823,
|
| 1117 |
+
819
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 8
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "Irina Higgins, Loic Matthey, Xavier Glorot, Arka Pal, Benigno Uria, Charles Blundell, Shakir Mohamed, and Alexander Lerchner. Early visual concept learning with unsupervised deep learning. arXiv preprint arXiv:1606.05579, 2016a. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
176,
|
| 1126 |
+
828,
|
| 1127 |
+
823,
|
| 1128 |
+
871
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 8
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. 2016b. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
174,
|
| 1137 |
+
882,
|
| 1138 |
+
825,
|
| 1139 |
+
924
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 8
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "Geoffrey E Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan R Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv preprint arXiv:1207.0580, 2012. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
174,
|
| 1148 |
+
103,
|
| 1149 |
+
823,
|
| 1150 |
+
146
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 9
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
171,
|
| 1159 |
+
155,
|
| 1160 |
+
823,
|
| 1161 |
+
184
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 9
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Matthew D Hoffman and Matthew J Johnson. ELBO surgery: yet another way to carve up the variational evidence lower bound. In Workshop in Advances in Approximate Bayesian Inference, NIPS, 2016. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
173,
|
| 1170 |
+
193,
|
| 1171 |
+
823,
|
| 1172 |
+
234
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 9
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Wei-Ning Hsu, Yu Zhang, and James Glass. Unsupervised learning of disentangled and interpretable representations from sequential data. In Advances in neural information processing systems, pp. 1878–1889, 2017. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
173,
|
| 1181 |
+
243,
|
| 1182 |
+
826,
|
| 1183 |
+
286
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 9
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
174,
|
| 1192 |
+
295,
|
| 1193 |
+
823,
|
| 1194 |
+
325
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 9
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
174,
|
| 1203 |
+
333,
|
| 1204 |
+
823,
|
| 1205 |
+
363
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 9
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. arXiv preprint arXiv:1312.6114, 2013. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
174,
|
| 1214 |
+
371,
|
| 1215 |
+
823,
|
| 1216 |
+
400
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 9
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Yingzhen Li and Stephan Mandt. A deep generative model for disentangled representations of sequential data. arXiv preprint arXiv:1803.02991, 2018. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
173,
|
| 1225 |
+
409,
|
| 1226 |
+
823,
|
| 1227 |
+
439
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 9
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pp. 3730–3738, 2015. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
174,
|
| 1236 |
+
446,
|
| 1237 |
+
823,
|
| 1238 |
+
477
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 9
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "David Pearce and J Picone. Aurora working group: DSR front end LVCSR evaluation AU/384/02. Inst. for Signal & Inform. Process., Mississippi State Univ., Tech. Rep, 2002. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
174,
|
| 1247 |
+
484,
|
| 1248 |
+
823,
|
| 1249 |
+
513
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 9
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
173,
|
| 1258 |
+
522,
|
| 1259 |
+
821,
|
| 1260 |
+
551
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 9
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Naftali Tishby, Fernando C Pereira, and William Bialek. The information bottleneck method. arXiv preprint physics/0004057, 2000. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
173,
|
| 1269 |
+
559,
|
| 1270 |
+
823,
|
| 1271 |
+
589
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 9
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Satosi Watanabe. Information theoretical analysis of multivariate correlation. IBM Journal of research and development, 4(1):66–82, 1960. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
173,
|
| 1280 |
+
598,
|
| 1281 |
+
823,
|
| 1282 |
+
627
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 9
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Shengjia Zhao, Jiaming Song, and Stefano Ermon. Learning hierarchical features from generative models. arXiv preprint arXiv:1702.08396, 2017. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
173,
|
| 1291 |
+
636,
|
| 1292 |
+
823,
|
| 1293 |
+
665
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 9
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "A INFORMATION BOTTLENECK PRINCIPLE FOR SEQUENTIAL DATA. ",
|
| 1300 |
+
"text_level": 1,
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
174,
|
| 1303 |
+
101,
|
| 1304 |
+
751,
|
| 1305 |
+
119
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 10
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "Here the aim is to show the relationship between FAVAE and the information bottleneck for sequential data. Consider the information bottleneck object: ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
173,
|
| 1314 |
+
132,
|
| 1315 |
+
821,
|
| 1316 |
+
161
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 10
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "equation",
|
| 1322 |
+
"img_path": "images/4289348c3ae39ddd98d1430b2ddffc9351fd6447913cd86892a17f8920cfe65f.jpg",
|
| 1323 |
+
"text": "$$\n\\begin{array} { r l } { \\operatorname* { m a x } I \\left( z ; x _ { 1 : T } \\right) \\quad } & { { } \\mathrm { s . t . } \\ \\lvert I \\left( \\hat { x } _ { 1 : T } ; z \\right) - C \\rvert = 0 } \\end{array}\n$$",
|
| 1324 |
+
"text_format": "latex",
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
343,
|
| 1327 |
+
167,
|
| 1328 |
+
655,
|
| 1329 |
+
185
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 10
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "is expanded from Alemi et al. (2016) to sequential data. We need to distinguish between $\\hat { x } _ { 1 : T }$ and $x _ { 1 : T }$ , where $x _ { 1 : T }$ is the true distribution and $\\hat { x } _ { 1 : T }$ is the empirical distribution created by sampling from the true distribution. We maximize the mutual information of true data $x _ { 1 : T }$ and $z$ while constraining the information contained in the empirical data distribution. We do this by using Lagrange multiplier: ",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
173,
|
| 1338 |
+
190,
|
| 1339 |
+
825,
|
| 1340 |
+
261
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 10
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "equation",
|
| 1346 |
+
"img_path": "images/1e47a178aa68863e353d5fa097cb6093b51d44bd8496cbca205ef693c9db2b35.jpg",
|
| 1347 |
+
"text": "$$\n\\begin{array} { r } { I \\left( z ; x _ { 1 : T } \\right) + \\beta \\left| I \\left( \\hat { x } _ { 1 : T } ; z \\right) - C \\right| , } \\end{array}\n$$",
|
| 1348 |
+
"text_format": "latex",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
387,
|
| 1351 |
+
281,
|
| 1352 |
+
609,
|
| 1353 |
+
299
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 10
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "where $\\beta$ is a constant. For the first term, ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
174,
|
| 1362 |
+
300,
|
| 1363 |
+
436,
|
| 1364 |
+
315
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 10
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "equation",
|
| 1370 |
+
"img_path": "images/ac55c0232fc654ad37ad3d7ec307b63b9042072b3e84911ac00521daf4fe3a60.jpg",
|
| 1371 |
+
"text": "$$\n\\begin{array} { l } { { I \\left( z ; x _ { 1 : T } \\right) = \\displaystyle \\iint p \\left( z ; x _ { 1 : T } \\right) \\log \\frac { p \\left( x _ { 1 : T } \\vert z \\right) } { p \\left( x _ { 1 : T } \\right) } d x _ { 1 : T } d z } } \\\\ { { \\displaystyle \\qquad = \\iint p \\left( z ; x _ { 1 : T } \\right) \\log p \\left( x _ { 1 : T } \\vert z \\right) d x _ { 1 : T } d z - \\displaystyle \\iint p \\left( x _ { 1 : T } ; z \\right) \\log p \\left( x _ { 1 : T } \\right) d x _ { 1 : T } d z } } \\\\ { { \\displaystyle \\qquad = \\displaystyle \\iint p \\left( x _ { 1 : T } \\right) p \\left( z \\vert x _ { 1 : T } \\right) \\log p \\left( x _ { 1 : T } \\vert z \\right) d x _ { 1 : T } d z + H \\left( x _ { 1 : T } \\right) } } \\\\ { { \\displaystyle \\qquad \\sim \\frac { 1 } { N } \\sum _ { i } \\left[ p \\left( z \\vert \\left( x _ { 1 : T } \\right) _ { i } \\right) \\log p \\left( \\left( x _ { 1 : T } \\right) _ { i } \\vert z \\right) \\right] + H \\left( x _ { 1 : T } \\right) } , } \\end{array}\n$$",
|
| 1372 |
+
"text_format": "latex",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
197,
|
| 1375 |
+
339,
|
| 1376 |
+
800,
|
| 1377 |
+
478
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 10
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"text": "where $H \\left( x _ { 1 : T } \\right)$ is entropy, which can be neglected in optimization. The last line is Monte Carlo approximation. For the second term, ",
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
173,
|
| 1386 |
+
483,
|
| 1387 |
+
825,
|
| 1388 |
+
512
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 10
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "equation",
|
| 1394 |
+
"img_path": "images/917aaf5b4a4303a48cb9de5b01b39042401335431f87c65682478d4990d26456.jpg",
|
| 1395 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle I \\left( \\hat { x } _ { 1 : T } ; z \\right) = \\int p \\left( z \\vert \\hat { x } _ { 1 : T } \\right) p \\left( \\hat { x } _ { 1 : T } \\right) \\log \\frac { p \\left( z \\vert \\hat { x } _ { 1 : T } \\right) } { p \\left( z \\right) } d z d \\hat { x } _ { 1 : T } } } \\\\ { { \\displaystyle \\quad \\sim \\frac { 1 } { N } \\sum _ { j } p \\left( z \\vert \\left( x _ { 1 : T } \\right) _ { j } \\right) \\log \\frac { p \\left( z \\vert \\left( x _ { 1 : T } \\right) _ { j } \\right) } { p \\left( z \\right) } d z } } \\\\ { { \\displaystyle \\quad = \\frac { 1 } { N } \\sum _ { j } D _ { \\mathrm { K L } } \\left( p \\left( z \\vert \\left( x _ { 1 : T } \\right) _ { j } \\right) \\vert \\vert p \\left( z \\right) \\right) . } } \\end{array}\n$$",
|
| 1396 |
+
"text_format": "latex",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
303,
|
| 1399 |
+
536,
|
| 1400 |
+
692,
|
| 1401 |
+
661
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 10
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "As a result, ",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
173,
|
| 1410 |
+
666,
|
| 1411 |
+
250,
|
| 1412 |
+
681
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 10
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "equation",
|
| 1418 |
+
"img_path": "images/0e1de4705142c9831af87305d653f412fdaa1f6cc29c5ef42e1d7992ce6265d8.jpg",
|
| 1419 |
+
"text": "$$\n\\begin{array} { r } { I \\left( z ; x _ { 1 : T } \\right) + \\beta \\left| I \\left( \\tilde { x } _ { 1 : T } ; z \\right) - C \\right| \\leq \\displaystyle \\frac { 1 } { N } \\sum _ { i } \\left[ p \\left( z \\right| \\left( x _ { 1 : T } \\right) _ { i } \\right) \\log p \\left( \\left( x _ { 1 : T } \\right) _ { i } \\left| z \\right) \\right] } \\\\ { + \\displaystyle \\frac { 1 } { N } \\sum _ { j } D _ { \\mathrm { K L } } \\left( p \\left( z \\right| \\left( x _ { 1 : T } \\right) _ { j } \\right) \\left| | p \\left( z \\right) \\right) . } \\end{array}\n$$",
|
| 1420 |
+
"text_format": "latex",
|
| 1421 |
+
"bbox": [
|
| 1422 |
+
250,
|
| 1423 |
+
705,
|
| 1424 |
+
746,
|
| 1425 |
+
784
|
| 1426 |
+
],
|
| 1427 |
+
"page_idx": 10
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "text",
|
| 1431 |
+
"text": "For convenience of calculation, we use $x _ { i }$ sampled from mini-batch data for both the reconstruction term and the regularization term. This is only an approximation. If the information bottleneck principle is followed completely, it is better to use different batch data for the reconstruction and regularization terms. ",
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
178,
|
| 1434 |
+
787,
|
| 1435 |
+
821,
|
| 1436 |
+
843
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 10
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "text",
|
| 1442 |
+
"text": "B EXTRACTED FACTORS OF EACH LADDER IN FAVAE ",
|
| 1443 |
+
"text_level": 1,
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
174,
|
| 1446 |
+
863,
|
| 1447 |
+
637,
|
| 1448 |
+
881
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 10
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "We expect the ladder network can disentangle representations at different levels of abstraction. In this section, We check the factor extracted in each ladder by using 2D Reaching and 2D Wavy. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
173,
|
| 1457 |
+
895,
|
| 1458 |
+
823,
|
| 1459 |
+
924
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 10
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "table",
|
| 1465 |
+
"img_path": "images/68a0ea6bf49e8b0149ef54ba4cb9de2057949436c91871d08ae31b64db8fc8a2.jpg",
|
| 1466 |
+
"table_caption": [
|
| 1467 |
+
"Table 2: Counting the index of latent variable in each factor by 10 seeds. The detail of factor is in Table 4. "
|
| 1468 |
+
],
|
| 1469 |
+
"table_footnote": [],
|
| 1470 |
+
"table_body": "<table><tr><td colspan=\"3\">1st ladder</td><td>2nd ladder</td><td>3rd ladder</td></tr><tr><td rowspan=\"3\">2D Reaching</td><td>factor 1</td><td>1</td><td>1</td><td>8</td></tr><tr><td>factor 2</td><td>10</td><td>0</td><td>0</td></tr><tr><td>factor 3</td><td>10</td><td>0</td><td>0</td></tr><tr><td rowspan=\"5\">2D wavy Reaching</td><td>factor 1</td><td>3</td><td>0</td><td>7</td></tr><tr><td>factor 2</td><td>8</td><td>0</td><td>2</td></tr><tr><td>factor 3</td><td>8</td><td>0</td><td>2</td></tr><tr><td>factor 4</td><td>9</td><td>1</td><td>0</td></tr><tr><td>factor 5</td><td>9</td><td>0</td><td>1</td></tr></table>",
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
173,
|
| 1473 |
+
140,
|
| 1474 |
+
638,
|
| 1475 |
+
287
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 11
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"type": "table",
|
| 1481 |
+
"img_path": "images/d46babf7f853d4b6ff50712c4306823d0f061de9951cc78b02e79a65610f0fd5.jpg",
|
| 1482 |
+
"table_caption": [
|
| 1483 |
+
"Table 3: Disentanglement scores (MIG, and Reconstruction loss) with standard deviations by 10 seeds for the different model in sequence length $= 1 0 0$ . Best results are shown in bold. "
|
| 1484 |
+
],
|
| 1485 |
+
"table_footnote": [],
|
| 1486 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">2D Reaching</td><td colspan=\"2\">2D wavy Reaching</td></tr><tr><td>MIG</td><td>Reconstruction</td><td>MIG</td><td>Reconstruction</td></tr><tr><td>FHVAE</td><td>0.62(17)</td><td>0.0003(5)</td><td>0.19(6)</td><td>0.051(36)</td></tr><tr><td>Time Convolution AE</td><td>0.06(4)</td><td>0.014(7)</td><td>0.26(6)</td><td>0.019(2)</td></tr><tr><td>FAVAE (without ladder and C)</td><td>0.52(6)</td><td>0.007(1)</td><td>0.28(2)</td><td>0.058(3)</td></tr><tr><td>FAVAE (without ladder with C)</td><td>0.47(4)</td><td>0.005(0)</td><td>0.26(1)</td><td>0.069(4)</td></tr><tr><td>FAVEA (with ladder without C)</td><td>0.34(11)</td><td>0.005(1)</td><td>0.31(8)</td><td>0.022(2)</td></tr><tr><td>FAVAE (with ladder and C)</td><td>0.35(7)</td><td>0.007(1)</td><td>0.40(7)</td><td>0.055(4)</td></tr></table>",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
173,
|
| 1489 |
+
347,
|
| 1490 |
+
785,
|
| 1491 |
+
481
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 11
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "Table 2 shows the counting index of latent variable with the highest mutual information in each ladder network. In Table 2, the rows represent factor and the columns represent the index of the ladder networks. The factor 1 (goal left / goal right) in 2D Reaching and the factor 1 (goal position) in 2D wavy Reaching were extracted to the most frequently in the latent variable in 3rd ladder. Since the latent variables have 8 dimensions for the 1st ladder, 4 dimensions for the 2nd ladder and 2 dimensions for the 3rd ladder, the 3rd ladder should be the least frequent when factors are randomly entered for each z. Especially long-term and short-term factors are clear in the 2D wavy Reaching dataset. In 2D Wavy Reaching dataset, there is distinct difference between factors of long and short time dependency. The ”goal position” is the factor which affect the entire trajectory, and other factors affect half length of the trajectory (Fig. 9).In our experiment the goal of the trajectory which affect the entire trajectory tended to be expressed in the 3rd ladder. In both datasets, only factor 1 represents goal positions while others represent shape of the trajectories. Since factor 1 has different abstraction level from others, factor 1 and others result in different ladders such as ladder 3 and others. ",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
173,
|
| 1500 |
+
513,
|
| 1501 |
+
825,
|
| 1502 |
+
707
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 11
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "C COMPARING WITH FHVAE ",
|
| 1509 |
+
"text_level": 1,
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
176,
|
| 1512 |
+
734,
|
| 1513 |
+
434,
|
| 1514 |
+
751
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 11
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "FHVAE model is the recently proposed disentangled representation learning model. We note that FHVAE model uses label information to disentangle time series data, which is different setup with our FAVAE model. Table 3 shows a comparison of MIG and reconstruction using FHVAE as the baseline. It was not possible to disentangle in 2D Reaching and 2D wavy using FHVAE, because LSTM used at the FHVAE can not learn data with very long sequences (sequence length of 1000). For fair comparison with the FHVAE, we experimented with 2D Reaching (sequence length 100), 2D wavy Reaching (sequence length 100) at Table 3. In 2D Reaching, FHVAE model has the best score, while in 2D wavy Reaching FAVAE model with ladders and $C$ has the best score. Our model is slightly worse than FHVAE in 2D Reaching Dataset. The parameters searched are $\\alpha = 1$ to 30 (the best $\\alpha = 2 0 a n d 1$ ), $\\beta = 0$ to 60 (the best $\\beta = 0 . 4$ and 4 in 2D Reaching and 2D wavy Reaching) and the best $C = [ c = 0 . 0 4 , 0 . 0 2 , 0 . 0 2 ]$ and $[ 0 . 0 3 , 0 , 0 , 0 6 ]$ in 2D Reaching and 2D wavy ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
174,
|
| 1523 |
+
770,
|
| 1524 |
+
825,
|
| 1525 |
+
924
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 11
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "image",
|
| 1531 |
+
"img_path": "images/9e59da1502ef8fd62f7a26e72178f26a02414848c0c5ae3b38b763f6056f9794.jpg",
|
| 1532 |
+
"image_caption": [
|
| 1533 |
+
"Figure 8: Visualization of learned disentangled representations for Gripper dataset. Traversed latent variable shows changing position of blue objects:(b) (9th $z$ in 1st ladder), changing target ball from red one to blue one and moving accordingly:(c) (1st $z$ in 2nd ladder), reaching ball using different plan:(d) (2nd $z$ in 2nd ladder), changing plan to place ball from drop ball to placing it gently:(e) (4th $z$ in 2nd ladder). "
|
| 1534 |
+
],
|
| 1535 |
+
"image_footnote": [],
|
| 1536 |
+
"bbox": [
|
| 1537 |
+
173,
|
| 1538 |
+
112,
|
| 1539 |
+
821,
|
| 1540 |
+
329
|
| 1541 |
+
],
|
| 1542 |
+
"page_idx": 12
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"type": "text",
|
| 1546 |
+
"text": "Reaching. The best $C$ was decided by the value of KL divergence loss when we experimented to allow reconstruction with $C = 0 , 0 , 0$ . ",
|
| 1547 |
+
"bbox": [
|
| 1548 |
+
174,
|
| 1549 |
+
473,
|
| 1550 |
+
825,
|
| 1551 |
+
502
|
| 1552 |
+
],
|
| 1553 |
+
"page_idx": 12
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"type": "text",
|
| 1557 |
+
"text": "D GRIPPER ",
|
| 1558 |
+
"text_level": 1,
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
174,
|
| 1561 |
+
540,
|
| 1562 |
+
282,
|
| 1563 |
+
556
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 12
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "To evaluate the potential application of our model to robotic tasks, we constructed a robot endeffector simulation environment based on Bullet Real-Time Physics Simulation2. The environment consisted of an end-effector, two balls (red and blue), and two baskets (red and blue) in a bi-dimensional space. The end-effector grabs one of the balls and places it into the basket with the same color as the ball. The data factors include movement ”habits.” For example, the end-effector could reach the targeted ball by either directly moving toward the ball obliquely or first moving above of the ball and then lowering itself until it reached the ball (perpendicular movement). The end-effector could drop the ball from far above the basket or place it gently in the basket. Each factor could affect different lengths among the data; e.g., ”the plan to place the ball in the basket” factor affects different lengths per datum since the initial distance from the target ball to the corresponding basket may differ. This means that the time required to reach the ball should differ. Note that input is a value such as gripper’s position, not an image. See Appendix B for a more detailed explanation. ",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
174,
|
| 1572 |
+
583,
|
| 1573 |
+
825,
|
| 1574 |
+
750
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 12
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "text",
|
| 1580 |
+
"text": "FAVAE learned the disentangled factors of the Gripper dataset. Example visualized latent traversals are shown in Fig. 8. The traversed latent variable determined which factors were disentangled, such as the initial position of blue ball and basket (b), the targeted ball (red or blue) (c), plan to reach the ball (move obliquely or move perpendicularly) (d), and plan to place the ball in the basket (drop the ball or placing it in the basket gently) (e). These results indicate that our model can learn generative factors such as disentangled latent variables for robotic tasks, even though the length of the data affected by each factor may differ for each datum. We used FAVAE in a two-ladder network with 12 and 8 latent variables with $\\beta { = } 1 0 0 0$ . ",
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
174,
|
| 1583 |
+
756,
|
| 1584 |
+
825,
|
| 1585 |
+
867
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 12
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "image",
|
| 1591 |
+
"img_path": "images/17788be1c6940dc3b590d5a26edc1c87b24e879399043d17fcdde6c0e89b4abd.jpg",
|
| 1592 |
+
"image_caption": [
|
| 1593 |
+
"Figure 9: Visualization of factors of 2D Wavy Reaching training data. "
|
| 1594 |
+
],
|
| 1595 |
+
"image_footnote": [],
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
202,
|
| 1598 |
+
104,
|
| 1599 |
+
777,
|
| 1600 |
+
455
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 13
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "text",
|
| 1606 |
+
"text": "E DATASET DETAILS ",
|
| 1607 |
+
"text_level": 1,
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
174,
|
| 1610 |
+
508,
|
| 1611 |
+
362,
|
| 1612 |
+
525
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 13
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "text",
|
| 1618 |
+
"text": "E.1 2D WAVY REACHING ",
|
| 1619 |
+
"text_level": 1,
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
176,
|
| 1622 |
+
541,
|
| 1623 |
+
364,
|
| 1624 |
+
556
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 13
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "text",
|
| 1630 |
+
"text": "Five different factors generate each trajectory: (9a) Shape of trajectory from start position to intermediate point. The first shape is created using a cycloid function while the other one adds a sine curve on the cycloid. (9b) Shape of trajectory from intermediate point to goal; shape is the same as for (9a). (9c) Location of goal; five different goal locations were used. (9d) Degree of curvature from start to intermediate point. (9e) Degree of curvature from intermediate point to goal. ",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
174,
|
| 1633 |
+
568,
|
| 1634 |
+
825,
|
| 1635 |
+
638
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 13
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "text",
|
| 1641 |
+
"text": "E.2 SPRITES ",
|
| 1642 |
+
"text_level": 1,
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
174,
|
| 1645 |
+
656,
|
| 1646 |
+
274,
|
| 1647 |
+
671
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 13
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "Sprits dataset is video data of video game ”sprites”. It used was used in (Li & Mandt, 2018) for confirming the extraction of disentangled representation between static factors and dynamic factors. The dataset consists of sequences with $T = 8$ frames of dimension $3 \\times 6 4 \\times 6 4$ . We use factors and motion of Sprites is shown in Table 4 and Fig. 10. ",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
176,
|
| 1656 |
+
684,
|
| 1657 |
+
825,
|
| 1658 |
+
739
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 13
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "text",
|
| 1664 |
+
"text": "E.3 GRIPPER ",
|
| 1665 |
+
"text_level": 1,
|
| 1666 |
+
"bbox": [
|
| 1667 |
+
174,
|
| 1668 |
+
757,
|
| 1669 |
+
277,
|
| 1670 |
+
772
|
| 1671 |
+
],
|
| 1672 |
+
"page_idx": 13
|
| 1673 |
+
},
|
| 1674 |
+
{
|
| 1675 |
+
"type": "text",
|
| 1676 |
+
"text": "We implemented the end-effector only rather than the entire robot arm since controlling the robot arm during the picking task is easily computable by calculating the inverse kinematics and inverse dynamics. Gripper is a 12 dimensional data set: [joint $\\mathbf { X }$ position, joint y position, finger1 joint position(angle), finger2 joint position(angle), box1 $\\mathbf { X }$ position, box1 y position, $\\mathbf { b } 0 \\mathbf { X } 2 \\textbf { X }$ position, box2 y position, ball1 x position, ball1 y position, ball2 $\\mathbf { X }$ position, ball2 y position]. Eight factors are represented in this dataset: 1) color of ball to pick up, 2) initial location of red ball, 3) initial location of blue ball, 4) initial location of blue basket, 5) initial location of red basket, 6) plan for using end effector to move to ball to pick it up [first, moving horizontally to the $\\mathbf { X }$ -location of ball and then descending horizontally to the y-location of ball, like the movement of the doll drawing machine (perpendicular motion); second, moving straight to the location of he ball to pick it up (oblique motion)], 7) plan for using end effector to move to point above basket after picking up ball (perpendicular or oblique motion), 8) plan for placing ball in basket (by dropping ball or descending to basket and gently placing ball in basket). Among the four initial positions, the two balls and two baskets are placed randomly. The movement of the robot is hard-coded on the basis of a goalposition-based script. To reduce collision detection errors during the simulation, we used a large physical model (end effector size $1 \\mathrm { m } \\dot { }$ ), which does not affect the overall validity. The length of the data-point sequence was 400. ",
|
| 1677 |
+
"bbox": [
|
| 1678 |
+
174,
|
| 1679 |
+
785,
|
| 1680 |
+
825,
|
| 1681 |
+
924
|
| 1682 |
+
],
|
| 1683 |
+
"page_idx": 13
|
| 1684 |
+
},
|
| 1685 |
+
{
|
| 1686 |
+
"type": "image",
|
| 1687 |
+
"img_path": "images/752a1a74fa5e7ea0ccaa20aa73aa19dc22fdff677762c35557984ea8df971371.jpg",
|
| 1688 |
+
"image_caption": [
|
| 1689 |
+
"Figure 10: Motions in Sprites dataset. Row 1/2/3 represent walk left/forward/right, row 4/5/6 represent spellcast left/forward/right, and row 7/8/9 represent slash left/forward/right’ respectfully. "
|
| 1690 |
+
],
|
| 1691 |
+
"image_footnote": [],
|
| 1692 |
+
"bbox": [
|
| 1693 |
+
174,
|
| 1694 |
+
198,
|
| 1695 |
+
825,
|
| 1696 |
+
779
|
| 1697 |
+
],
|
| 1698 |
+
"page_idx": 14
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "table",
|
| 1702 |
+
"img_path": "images/e78e155997a1488615c457b4bd028bb4d3262acdc30ac3b7cb9573c4ff4cae4c.jpg",
|
| 1703 |
+
"table_caption": [
|
| 1704 |
+
"Table 4: Factors in dataset "
|
| 1705 |
+
],
|
| 1706 |
+
"table_footnote": [],
|
| 1707 |
+
"table_body": "<table><tr><td>Dataset</td><td>Degree of factors</td><td>Ground truth factors</td></tr><tr><td rowspan=\"3\">2D Reaching</td><td>2</td><td>Goal positon</td></tr><tr><td>2</td><td>Curved inward /outward</td></tr><tr><td>5</td><td>Degree of curvature</td></tr><tr><td rowspan=\"5\">2D wavy Reaching</td><td>4</td><td>1st trajectory shape</td></tr><tr><td>4</td><td>2nd trajectory shape</td></tr><tr><td>5</td><td>Goal position</td></tr><tr><td>2</td><td>1st trajectory degree of curvature</td></tr><tr><td>2</td><td>2nd trajectory degree of curvature</td></tr><tr><td rowspan=\"6\">Sprites Dataset</td><td>3</td><td>Motions (walk, spellcast or slash)</td></tr><tr><td>2</td><td>Body color (light or dark2)</td></tr><tr><td>2</td><td>Shirts color (brown or teal)</td></tr><tr><td>2</td><td>Hair color (green or pink)</td></tr><tr><td>2</td><td>Pants color (red or teal)</td></tr><tr><td>3</td><td>Direction of character (left,foward, right)</td></tr><tr><td rowspan=\"8\">Gripper</td><td>2</td><td>Targeted ball to grasp (red or blue)</td></tr><tr><td>4</td><td>Red ball initial position</td></tr><tr><td>4</td><td>Blue ball initial position</td></tr><tr><td>4</td><td>Red basket position</td></tr><tr><td>4</td><td>Blue basket position</td></tr><tr><td>2</td><td>Plan to reach target ball</td></tr><tr><td>2</td><td>Plan to reach corresponding basket</td></tr><tr><td>2</td><td>Plan to place ball in basket</td></tr></table>",
|
| 1708 |
+
"bbox": [
|
| 1709 |
+
222,
|
| 1710 |
+
127,
|
| 1711 |
+
776,
|
| 1712 |
+
482
|
| 1713 |
+
],
|
| 1714 |
+
"page_idx": 15
|
| 1715 |
+
},
|
| 1716 |
+
{
|
| 1717 |
+
"type": "text",
|
| 1718 |
+
"text": "",
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
174,
|
| 1721 |
+
521,
|
| 1722 |
+
825,
|
| 1723 |
+
619
|
| 1724 |
+
],
|
| 1725 |
+
"page_idx": 15
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "text",
|
| 1729 |
+
"text": "F ARCHITECTURE DETAILS ",
|
| 1730 |
+
"text_level": 1,
|
| 1731 |
+
"bbox": [
|
| 1732 |
+
176,
|
| 1733 |
+
656,
|
| 1734 |
+
418,
|
| 1735 |
+
672
|
| 1736 |
+
],
|
| 1737 |
+
"page_idx": 15
|
| 1738 |
+
},
|
| 1739 |
+
{
|
| 1740 |
+
"type": "text",
|
| 1741 |
+
"text": "F.1 FAVAE ",
|
| 1742 |
+
"text_level": 1,
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
174,
|
| 1745 |
+
696,
|
| 1746 |
+
266,
|
| 1747 |
+
712
|
| 1748 |
+
],
|
| 1749 |
+
"page_idx": 15
|
| 1750 |
+
},
|
| 1751 |
+
{
|
| 1752 |
+
"type": "text",
|
| 1753 |
+
"text": "We show the hyper parameters in Table 1, Fig. 7 and Table 3. The parameters searched are $\\beta = 0$ to 10000 (the best $\\beta = 1$ and $C = [ 0 , 0 , 0 ]$ and the best $\\beta = 1 0 0 0 0 0$ and $C = [ 2 0 , 1 , 5 ]$ in 2D Reaching and 2D wavy Reaching in Table 1) The best $C$ was decided by the value of KL divergence loss when we experimented to allow reconstruction with $C = 0 , 0 , 0$ . In Table 3, we search the parameters from $\\beta = 0$ to 60 (the best $\\beta = 0 . 4$ and 4 in 2D Reaching and 2D wavy Reaching) and the best $C = [ c = 0 . 0 4 , 0 . 0 2 , 0 . 0 2 ]$ and $[ 0 . 0 3 , 0 , 0 , 0 6 ]$ in 2D Reaching and 2D wavy Reaching. In Fig. 7.3, we add the pre-encoder and post-decoder for encoding and decoding of images at each time step. The pre-encoding and post-decoding architecture is same as ”encode frames” and ”decode frames” in the code implementing Disentangled-Sequential-Autoencoder3 with conv $\\mathrm { d i m } = 4 8$ . We search the parameters from $\\beta = 0$ to $\\beta = 1 0 0$ and the best $\\beta = 2 0$ with $C = [ 0 . 3 , 0 . 1 7 , 0 . 0 6$ ]. ",
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
174,
|
| 1756 |
+
729,
|
| 1757 |
+
825,
|
| 1758 |
+
869
|
| 1759 |
+
],
|
| 1760 |
+
"page_idx": 15
|
| 1761 |
+
},
|
| 1762 |
+
{
|
| 1763 |
+
"type": "text",
|
| 1764 |
+
"text": "F.2 FHVAE ",
|
| 1765 |
+
"text_level": 1,
|
| 1766 |
+
"bbox": [
|
| 1767 |
+
174,
|
| 1768 |
+
103,
|
| 1769 |
+
271,
|
| 1770 |
+
117
|
| 1771 |
+
],
|
| 1772 |
+
"page_idx": 16
|
| 1773 |
+
},
|
| 1774 |
+
{
|
| 1775 |
+
"type": "text",
|
| 1776 |
+
"text": "For the FHVAE experiments, we used the code from the implementation at Github4. We used recurrent setting with LSTM encoders and decoder with unit size 256 and batch size 80. Dimensions of latent variable z1 and $_ { z 2 }$ are 7 for each. We used Adam optimizer with learning rate 0.001. We applied goal position factors (2 classes for 2D Reaching and 5 classes for 2D wavy Reaching) as label inputs. We varied $\\alpha$ from 1.0 to 30.0, and the best $\\alpha$ was 20.0 for 2D Reaching and 1.0 for 2D wavy reaching. ",
|
| 1777 |
+
"bbox": [
|
| 1778 |
+
174,
|
| 1779 |
+
128,
|
| 1780 |
+
825,
|
| 1781 |
+
213
|
| 1782 |
+
],
|
| 1783 |
+
"page_idx": 16
|
| 1784 |
+
}
|
| 1785 |
+
]
|
parse/train/Hygm8jC9FQ/Hygm8jC9FQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Hygm8jC9FQ/Hygm8jC9FQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S19dR9x0b/S19dR9x0b.md
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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bf { X } \mathbf { u } ^ { 1 , }$ ∗, Jianqiang $\mathbf { Y a o } ^ { 2 }$ , Zhouchen Lin1,3,†, Wenwu $\mathbf { O u } ^ { 2 }$ , Yuanbin $\mathbf { C a o ^ { 4 } }$ , Zhirong Wang2, Hongbin Zha1,3
|
| 4 |
+
|
| 5 |
+
1 Key Laboratory of Machine Perception (MOE), School of EECS, Peking University, Ch
|
| 6 |
+
2 Search Algorithm Team, Alibaba Group, China
|
| 7 |
+
3 Cooperative Medianet Innovation Center, Shanghai Jiao Tong University, China
|
| 8 |
+
4 AI-LAB, Alibaba Group, China
|
| 9 |
+
|
| 10 |
+
xuen@pku.edu.cn,tianduo@taobao.com,zlin@pku.edu.cn,santong.oww@taobao.com lingzun.cyb@alibaba-inc.com, qingfeng@taobao.com,zha@cis.pku.edu.cn
|
| 11 |
+
|
| 12 |
+
# ABSTRACT
|
| 13 |
+
|
| 14 |
+
Recurrent neural networks have achieved excellent performance in many applications. However, on portable devices with limited resources, the models are often too large to deploy. For applications on the server with large scale concurrent requests, the latency during inference can also be very critical for costly computing resources. In this work, we address these problems by quantizing the network, both weights and activations, into multiple binary codes $\{ - 1 , + 1 \}$ . We formulate the quantization as an optimization problem. Under the key observation that once the quantization coefficients are fixed the binary codes can be derived efficiently by binary search tree, alternating minimization is then applied. We test the quantization for two well-known RNNs, i.e., long short term memory (LSTM) and gated recurrent unit (GRU), on the language models. Compared with the full-precision counter part, by 2-bit quantization we can achieve ${ \sim } 1 6 \times$ memory saving and ${ \sim } 6 \times$ real inference acceleration on CPUs, with only a reasonable loss in the accuracy. By 3-bit quantization, we can achieve almost no loss in the accuracy or even surpass the original model, with ${ \sim } 1 0 . 5 \times$ memory saving and ${ \sim } 3 \times$ real inference acceleration. Both results beat the exiting quantization works with large margins. We extend our alternating quantization to image classification tasks. In both RNNs and feedforward neural networks, the method also achieves excellent performance.
|
| 15 |
+
|
| 16 |
+
# 1 INTRODUCTION
|
| 17 |
+
|
| 18 |
+
Recurrent neural networks (RNNs) are specific type of neural networks which are designed to model the sequence data. In last decades, various RNN architectures have been proposed, such as LongShort-Term Memory (LSTM) (Hochreiter & Schmidhuber, 1997) and Gated Recurrent Units Cho et al. (2014). They have enabled the RNNs to achieve state-of-art performance in many applications, e.g., language models (Mikolov et al., 2010), neural machine translation (Sutskever et al., 2014; Wu et al., 2016), automatic speech recognition (Graves et al., 2013), image captions (Vinyals et al., 2015), etc. However, the models often build on high dimensional input/output,e.g., large vocabulary in language models, or very deep inner recurrent networks, making the models have too many parameters to deploy on portable devices with limited resources. In addition, RNNs can only be executed sequentially with dependence on current hidden states. This causes large latency during inference. For applications in the server with large scale concurrent requests, e.g., on-line machine translation and speech recognition, large latency leads to limited requests processed per machine to meet the stringent response time requirements. Thus much more costly computing resources are in demand for RNN based models.
|
| 19 |
+
|
| 20 |
+
To alleviate the above problems, several techniques can be employed, i.e., low rank approximation (Sainath et al., 2013; Jaderberg et al., 2014; Lebedev et al., 2014; Tai et al., 2016), sparsity (Liu et al., 2015; Han et al., 2015; 2016; Wen et al., 2016), and quantization. All of them are build on the redundancy of current networks and can be combined. In this work, we mainly focus on quantization based methods. More precisely, we are to quantize all parameters into multiple binary codes $\{ - 1 , + 1 \}$ .
|
| 21 |
+
|
| 22 |
+
The idea of quantizing both weights and activations is firstly proposed by (Hubara et al., 2016a). It has shown that even 1-bit binarization can achieve reasonably good performance in some visual classification tasks. Compared with the full precision counterpart, binary weights reduce the memory by a factor of 32. And the costly arithmetic operations between weights and activations can then be replaced by cheap XNOR and bitcount operations(Hubara et al., 2016a), which potentially leads to much acceleration. Rastegari et al. (2016) further incorporate a real coefficient to compensate for the binarization error. They apply the method to the challenging ImageNet dataset and achieve better performance than pure binarization in (Hubara et al., 2016a). However, it is still of large gap compared with the full precision networks. To bridge this gap, some recent works (Hubara et al., 2016b; Zhou et al., 2016; 2017) further employ quantization with more bits and achieve plausible performance. Meanwhile, quite an amount of works, e.g., (Courbariaux et al., 2015; Li et al., 2016; Zhu et al., 2017; Guo et al., 2017), quantize the weights only. Although much memory saving can be achieved, the acceleration is very limited in modern computing devices (Rastegari et al., 2016).
|
| 23 |
+
|
| 24 |
+
Among all existing quantization works, most of them focus on convolutional neural networks (CNNs) while pay less attention to RNNs. As mentioned earlier, the latter is also very demanding. Recently, (Hou et al., 2017) showed that binarized LSTM with preconditioned coefficients can achieve promising performance in some easy tasks such as predicting the next character. However, for RNNs with large input/output, e.g., large vocabulary in language models, it is still very challenging for quantization. Both works of Hubara et al. (2016b) and Zhou et al. (2017) test the effectiveness of their multi-bit quantized RNNs to predict the next word. Although using up to 4-bits, the results with quantization still have noticeable gap with those with full precision. This motivates us to find a better method to quantize RNNs. The main contribution of this work is as follows:
|
| 25 |
+
|
| 26 |
+
(a) We formulate the multi-bit quantization as an optimization problem. The binary codes $\{ - 1 , + 1 \}$ are learned instead of rule-based. For the first time, we observe that the codes can be optimally derived by the binary search tree once the coefficients are knowns in advance, see, e.g., Algorithm 1. Thus the whole optimization is eased by removing the discrete unknowns, which are very difficult to handle.
|
| 27 |
+
(b) We propose to use alternating minimization to tackle the quantization problem. By separating the binary codes and real coefficients into two parts, we can solve the subproblem efficiently when one part is fixed. With proper initialization, we only need two alternating cycles to get high precision approximation, which is effective enough to even quantize the activations on-line.
|
| 28 |
+
(c) We systematically evaluate the effectiveness of our alternating quantization on language models. Two well-known RNN structures, i.e., LSTM and GRU, are tested with different quantization bits. Compared with the full-precision counterpart, by 2-bit quantization we can achieve ${ \sim } 1 6 \times$ memory saving and ${ \sim } 6 \times$ real inference acceleration on CPUs, with a reasonable loss on the accuracy. By 3-bit quantization, we can achieve almost no loss in accuracy or even surpass the original model with ${ \sim } 1 0 . 5 \times$ memory saving and ${ \sim } 3 \times$ real inference acceleration. Both results beat the exiting quantization works with large margins. To illustrate that our alternating quantization is very general to extend, we apply it to image classification tasks. In both RNNs and feedforward neural networks, the technique still achieves very plausible performance.
|
| 29 |
+
|
| 30 |
+
# 2 EXISTING MULTI-BIT QUANTIZATION METHODS
|
| 31 |
+
|
| 32 |
+
Before introducing our proposed multi-bit quantization, we first summarize existing works as follows:
|
| 33 |
+
|
| 34 |
+
(a) Uniform quantization method (Rastegari et al., 2016; Hubara et al., 2016b) firstly scales its value in the range $x \in [ - 1 , 1 ]$ . Then it adopts the following $k$ -bit quantization:
|
| 35 |
+
|
| 36 |
+
$$
|
| 37 |
+
q _ { k } ( x ) = 2 \left( { \frac { \mathrm { r o u n d } [ ( 2 ^ { k } - 1 ) ( { \frac { x + 1 } { 2 } } ) ] } { 2 ^ { k } - 1 } } - { \frac { 1 } { 2 } } \right) ,
|
| 38 |
+
$$
|
| 39 |
+
|
| 40 |
+
after which the method scales back to the original range. Such quantization is rule based thus is very easy to implement. The intrinsic benefit is that when computing inner product of two quantized vectors, it can employ cheap bit shift and count operations to replace costly multiplications and additions operations. However, the method can be far from optimum when quantizing non-uniform data, which is believed to be the trained weights and activations of deep neural network (Zhou et al., 2017).
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 1: Illustration of the optimal 2-bit quantization when $\alpha _ { 1 }$ and $\alpha _ { 2 }$ ${ \bf \tilde { \alpha } } _ { 1 } \geq { \alpha _ { 2 } } , { \bf \tilde { \alpha } } _ { \bf \tilde { \alpha } } { \bf \Psi } $ ) are known in advance. The values are quantized into $- \alpha _ { 1 } - \alpha _ { 2 }$ , $- \alpha _ { 1 } + \alpha _ { 2 }$ , $\alpha _ { 1 } - \alpha _ { 2 }$ , and $\alpha _ { 1 } + \alpha _ { 2 }$ , respectively. And the partition intervals are optimally separated by the middle points of adjacent quantization codes, i.e., $- \alpha _ { 1 } , 0$ , and $\alpha _ { 1 }$ , correspondingly.
|
| 44 |
+
|
| 45 |
+
(b) Balanced quantization (Zhou et al., 2017) alleviates the drawbacks of the uniform quantization by firstly equalizing the data. The method constructs $2 ^ { k }$ intervals which contain roughly the same percentage of the data. Then it linearly maps the center of each interval to the corresponding quantization code in (1). Although sounding more reasonable than the uniform one, the affine transform on the centers can still be suboptimal. In addition, there is no guarantee that the evenly spaced partition is more suitable if compared with the non-evenly spaced partition for a specific data distribution.
|
| 46 |
+
|
| 47 |
+
(c) Greedy approximation (Guo et al., 2017) instead tries to learn the quantization by tackling the following problem:
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\operatorname* { m i n } _ { \{ \alpha _ { i } , \mathbf { b } _ { i } \} _ { i = 1 } ^ { k } } \left\| \mathbf { w } - \sum _ { i = 1 } ^ { k } \alpha _ { i } \mathbf { b } _ { i } \right\| ^ { 2 } , \quad \mathrm { w i t h } \quad \mathbf { b } _ { i } \in \{ - 1 , + 1 \} ^ { n } .
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
For $k = 1$ , the above problem has a closed-form solution (Rastegari et al., 2016). Greedy approximation extends to $k$ -bit $k > 1 ,$ ) quantization by sequentially minimizing the residue. That is
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\operatorname* { m i n } _ { \alpha _ { i } , \mathbf { b } _ { i } } \left\| \mathbf { r } _ { i - 1 } - \alpha _ { i } \mathbf { b } _ { i } \right\| ^ { 2 } , \quad \mathrm { w i t h } \quad \mathbf { r } _ { i - 1 } = \mathbf { w } - \sum _ { j = 1 } ^ { i - 1 } \alpha _ { j } \mathbf { b } _ { j } .
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
Then the optimal solution is given as
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\alpha _ { i } = { \frac { 1 } { n } } \| \mathbf { r } _ { i - 1 } \| _ { 1 } \quad { \mathrm { a n d } } \quad \mathbf { b } _ { i } = \mathrm { s i g n } ( \mathbf { r } _ { i - 1 } ) .
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
Greedy approximation is very efficient to implement in modern computing devices. Although not able to reach a high precision solution, the formulation of minimizing quantization error is very promising.
|
| 66 |
+
|
| 67 |
+
(d) Refined greedy approximation (Guo et al., 2017) extends to further decrease the quantization error. In the $j$ -th iteration after minimizing problem (3), the method adds one extra step to refine all computed $\{ \alpha _ { i } \} _ { i = 1 } ^ { j }$ with the least squares solution:
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
[ \alpha _ { 1 } , \ldots , \alpha _ { j } ] = \left( ( \mathbf { B } _ { j } ^ { T } \mathbf { B } _ { j } ) ^ { - 1 } \mathbf { B } _ { j } ^ { T } \mathbf { w } \right) ^ { T } , \quad \mathrm { w i t h } \quad \mathbf { B } _ { j } = [ \mathbf { b } _ { 1 } , \ldots , \mathbf { b } _ { j } ] ,
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
In experiments of quantizing the weights of CNN, the refined approximation is verified to be better than the original greedy one. However, as we will show later, the refined method is still far from satisfactory for quantization accuracy.
|
| 74 |
+
|
| 75 |
+
Besides the general multi-bit quantization as summarized above, Li et al. (2016) propose ternary quantization by extending 1-bit binarization with one more feasible state, 0. It does quantization by tackling $\operatorname* { m i n } _ { \alpha }$ ,t $\| \mathbf { w } - \alpha \mathbf { t } \| _ { 2 } ^ { 2 }$ with $\mathbf { t } \in \{ - 1 , 0 , + 1 \} ^ { n }$ . However, no efficient algorithm is proposed in (Li et al., 2016). They instead empirically set the entries $w$ with absolute scales less than $0 . 7 / n \| \mathbf { w } \| _ { 1 }$ to 0 and binarize the left entries as (4). In fact, ternary quantization is a special case of the 2-bit quantization in (2), with an additional constraint that $\alpha _ { 1 } = \alpha _ { 2 }$ . When the binary codes are fixed, the optimal coefficient $\alpha _ { 1 }$ (or $\alpha _ { 2 }$ ) can be derived by least squares solution similar to (5).
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
Figure 2: Illustration of binary search tree to determine the optimal quantization.
|
| 79 |
+
|
| 80 |
+
# Algorithm 1: Binary Search Tree (BST) to determine to optimal code
|
| 81 |
+
|
| 82 |
+
BST $( w , \mathbf { v } )$ $\{ w$ is the real value to be quantized} { $\mathbf { v }$ is the vector of quantization codes in ascending order} $m = \mathrm { l e n g t h } ( \mathbf { v } )$ 2 if $m = = 1$ then 3 return $\mathbf { v } _ { 1 }$ 4 end 5 if $w \ge ( v _ { m / 2 } + v _ { m / 2 + 1 } ) / 2$ then 6 BST $( w , \mathbf { v } _ { m / 2 + 1 : m } )$ ) 7 else 8 BST( w, v1:m/2) 9 end
|
| 83 |
+
|
| 84 |
+
In parallel to the binarized quantization discussed here, vector quantization is applied to compress the weights for feedforward neural networks (Gong et al., 2014; Han et al., 2016). Different from ours where all weights are directly constraint to $\{ - 1 , + 1 \}$ , vector quantization learns a small codebook by applying k-means clustering to the weights or conducting product quantization. The weights are then reconstructed by indexing the codebook. It has been shown that by such a technique, the number of parameters can be reduced by an order of magnitude with limited accuracy loss (Gong et al., 2014). It is possible that the multi-bit quantized binary weight can be further compressed by using the product quantization.
|
| 85 |
+
|
| 86 |
+
# 3 OUR ALTERNATING MULTI-BIT QUANTIZATION
|
| 87 |
+
|
| 88 |
+
Now we introduce our quantization method. We tackle the same minimization problem as (2). For simplicity, we firstly consider the problem with $k = 2$ . Suppose that $\alpha _ { 1 }$ and $\alpha _ { 2 }$ are known in advance with $\alpha _ { 1 } \geq \alpha _ { 2 } \geq 0$ , then the quantization codes are restricted to $\mathbf { v } = \{ - \alpha _ { 1 } - \alpha _ { 2 } , - \alpha _ { 1 } + \alpha _ { 2 } , \alpha _ { 1 } -$ $\alpha _ { 2 } , \alpha _ { 1 } + \alpha _ { 2 } \}$ . For any entry $w$ of w in problem (2), its quantization code is determined by the least distance to all codes. Consequently, we can partition the number axis into 4 intervals. And each interval corresponds to one particular quantization code. The common point of two adjacent intervals then becomes the middle point of the two quantization codes, i.e., $- \alpha _ { 1 } , 0$ , and $\alpha _ { 1 }$ . Fig. 1 gives an illustration.
|
| 89 |
+
|
| 90 |
+
For the general $k$ -bit quantization, suppose that $\{ \alpha _ { i } \} _ { i = 1 } ^ { k }$ are known and we have all possible codes in ascending order, i.e., $\begin{array} { r } { \mathbf { v } = \{ - \sum _ { i = 1 } ^ { k } \alpha _ { i } } \end{array}$ , . $\textstyle \ldots , \sum _ { i = 1 } ^ { k } \alpha _ { i } \}$ . Similarly, we can partition the number axis into $2 ^ { k }$ intervals, in which the boundaries are determined by the centers of two adjacent codes in $\mathbf { v }$ , i.e., $\{ ( v _ { i } + v _ { i + 1 } ) / 2 \} _ { i = 1 } ^ { 2 ^ { k } - 1 }$ . However, directly comparing per entry with all the boundaries needs $2 ^ { k }$ comparisons, which is very inefficient. Instead, we can make use of the ascending property in $\mathbf { v }$ . Hierarchically, we partition the codes of $\mathbf { v }$ evenly into two ordered sub-sets, i.e., $\mathbf { v } _ { 1 : m / 2 }$ and $\mathbf { v } _ { m / 2 + 1 : m }$ with $m$ defined as the length of $\mathbf { v }$ . If $w < ( v _ { m / 2 } + v _ { m / 2 + 1 } ) / 2$ , its feasible codes are then optimally restricted to $\mathbf { v } _ { 1 : m / 2 }$ . And if $w \ge ( v _ { m / 2 } + v _ { m / 2 + 1 } ) / 2$ , its feasible codes become $\mathbf { v } _ { m / 2 + 1 : m }$ By recursively evenly partition the ordered feasible codes, we can then efficiently determine the
|
| 91 |
+
|
| 92 |
+
# Algorithm 2: Alternating Multi-bit Quantization
|
| 93 |
+
|
| 94 |
+
Require :Ensure : on weight $\mathbf { w } \in \mathbb { R } ^ { n }$ , number of bits $k$ , total iterations $T$ $\{ \alpha _ { i } , \mathbf { \bar { b } } _ { i } \} _ { i = 1 } ^ { k }$
|
| 95 |
+
1 Greedy Initialize $\{ \alpha _ { i } , \mathbf { b } _ { i } \} _ { i = 1 } ^ { k }$ as (4)
|
| 96 |
+
2 for iter $ 1$ to $T$ do
|
| 97 |
+
3 Update $\{ \alpha _ { i } \} _ { i = 1 } ^ { k }$ as (5)
|
| 98 |
+
4 Construct $\mathbf { v }$ of all feasible codes in accending order
|
| 99 |
+
5 Update $\{ { \bf b } _ { i } \} _ { i = 1 } ^ { k }$ as Algorithm 1.
|
| 100 |
+
6 end
|
| 101 |
+
|
| 102 |
+
optimal code for per entry by only $k$ comparisons. The whole procedure is in fact a binary search tree. We summarize it in Algorithm 1. Note that once getting the quantization code, it is straightforward to map to the binary code b. Also, by maintaining a mask vector with the same size as w to indicate the partitions, we could operate BST for all entries simultaneously. To give a better illustration, we give a binary tree example for $k = 2$ in Fig. 2. Note that for $k = 2$ , we can even derive the optimal codes by a closed form solution, i.e., $\mathbf { b } _ { 1 } = \mathrm { s i g n } ( \mathbf { w } )$ and $\mathbf { b } _ { 2 } = \mathrm { s i g n } ( \mathbf { w } - \alpha _ { 1 } \mathbf { b } _ { 1 } )$ with $\alpha _ { 1 } \geq \alpha _ { 2 } \geq 0$ .
|
| 103 |
+
|
| 104 |
+
Under the above observation, let us reconsider the refined greedy approximation (Guo et al., 2017) introduced in Section 2. After modification on the computed $\{ \alpha _ { i } \} _ { i = 1 } ^ { j }$ as (5), $\{ { \bf b } _ { i } \} _ { i = 2 } ^ { j }$ are no longer optimal while the method keeps all of them fixed. To improve the refined greedy approximation, alternating minimizing $\{ \alpha _ { i } \} _ { i = 1 } ^ { k }$ and $\{ { \bf b } _ { i } \} _ { i = 1 } ^ { k }$ becomes a natural choice. Once getting $\{ { \bf b } _ { i } \} _ { i = 1 } ^ { k }$ as described above, we can optimize $\{ \alpha _ { i } \} _ { i = 1 } ^ { k }$ as (5). In real experiments, we find that by greedy initialization as (4), only two alternating cycles is good enough to find high precision quantization. For better illustration, we summarize our alternating minimization in Algorithm 2. For updating $\{ \alpha _ { i } \} _ { i = 1 } ^ { k }$ , we need $2 k ^ { 2 } n$ binary operations and $k n$ non-binary operations. Combining kn non-binary operations to determine the binary code, for total $T$ alternating cycles, we thus need $2 T k ^ { 2 } n$ binary operations and $2 ( T + 1 ) k n$ non-binary operations to quantize $\mathbf { w } \in \mathbb { R } ^ { n }$ into $k$ -bit, with the extra $2 k n$ corresponding to greedy initialization.
|
| 105 |
+
|
| 106 |
+
# 4 APPLY ALTERNATING MULTI-BIT QUANTIZATION TO RNNS
|
| 107 |
+
|
| 108 |
+
Implementation. We firstly introduce the implementation details for quantizing RNN. For simplicity, we consider the one layer LSTM for language model. The goal is to predict the next word indexed by $t$ in a sequence of one-hot word tokens $( y _ { 1 } ^ { * } , \dots , y _ { N } ^ { * } )$ as follows:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\begin{array} { r l } & { \mathbf { x } _ { t } = \mathbf { W } _ { e } ^ { T } \mathbf { y } _ { t - 1 } ^ { * } , } \\ & { \mathbf { i } _ { t } , \mathbf { f } _ { t } , \mathbf { 0 } _ { t } , \mathbf { g } _ { t } = \sigma ( \mathbf { W } _ { i } \mathbf { x } _ { t } + \mathbf { b } _ { i } + \mathbf { W } _ { h } \mathbf { h } _ { t - 1 } + \mathbf { b } _ { h } ) , } \\ & { \mathbf { c } _ { t } = \mathbf { f } _ { t } \odot \mathbf { c } _ { t - 1 } + \mathbf { i } _ { t } \odot \mathbf { g } _ { t } , \quad \mathbf { h } _ { t } = \mathbf { o } _ { t } \odot \operatorname { t a n h } ( \mathbf { c } _ { t } ) , } \\ & { \mathbf { y } _ { t } = \operatorname { s o f t m a x } ( \mathbf { W } _ { s } \mathbf { h } _ { t } + \mathbf { b } _ { s } ) . } \end{array}
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
where $\sigma$ represents the activation function. In the above formulation, the multiplication between the weight matrices and the vectors $\mathbf { x } _ { t }$ and $\mathbf { h } _ { t }$ occupy most of the computation. This is also where we apply quantization to. For the weight matrices, We do not apply quantization on the full but rather row by row. During the matrix vector product, we can firstly execute the binary multiplication. Then element-wisely multiply the obtained binary vector with the high precision scaling coefficients. Thus little extra computation results while much more freedom is brought to better approximate the weights. We give an illustration on the left part of Fig. 3. Due to one-hot word tokens, $\mathbf { x } _ { t }$ corresponds to one specific row in the quantized ${ \mathbf W } _ { e }$ . It needs no more quantization. Different from the weight matrices, $\mathbf { h } _ { t }$ depends on the input, which needs to be quantized on-line during inference. For consistent notation with existing work, e.g., (Hubara et al., 2016b; Zhou et al., 2017), we also call quantizing on $\mathbf { h } _ { t }$ as quantizing on activation.
|
| 115 |
+
|
| 116 |
+
For $\mathbf { W } \in \mathbb { R } ^ { m \times n }$ and $\mathbf { h } _ { t } \in \mathbb { R } ^ { n }$ , the standard matrix-vector product needs $2 m n$ operations. For the quantized product between $k _ { w }$ -bit $\mathbf { W }$ and $k _ { h }$ -bit $\mathbf { h _ { t } }$ , we have $2 k _ { w } k _ { h } m n + 4 k _ { h } ^ { 2 } n$ binary operations and $6 k _ { h } n + 2 k _ { w } k _ { h } m$ non-binary operations, where $6 k _ { h } n$ corresponds to the cost of alternating approximation $T = 2$ ) and $2 k _ { w } k _ { h } m$ corresponds to the final product with coefficients. As the binary multiplication operates in 1 bit, whereas the full precision multiplication operates in 32 bits, despite the feasible implementations, the acceleration can be $3 2 \times$ in theory. For alternating quantization here, the overall theoretical acceleration is thus computed as γ = 2mn132 (2kwkhmn+4k2nn)+6khn+2kwkhm . Suppose that LSTM has hidden states $n = 1 0 2 4$ , then we have $\mathbf { W } _ { h } \in \mathbb { R } ^ { 4 0 9 6 \times 1 0 2 4 }$ . The acceleration ratio becomes roughly $7 . 5 \times$ for $( k _ { h } , k _ { w } ) = ( 2 , 2 )$ and $3 . 5 \times$ for $( k _ { h } , k _ { w } ) = ( 3 , 3 )$ . In addition to binary operations, the acceleration in real implementations can be largely affected by the size of the matrix, where much memory reduce can result in better utilizing in the limited faster cache. We implement the binary multiplication kernel in CPUs. Compared with the much optimized Intel Math Kernel Library (MKL) on full precision matrix vector multiplication, we can roughly achieve $6 \times$ for $( k _ { h } , k _ { w } ) = ( \bar { 2 } , 2 )$ and $3 \times$ for $( \bar { k } _ { h } , k _ { w } ) = ( 3 , 3 )$ . For more details, please refer to Appendix A.
|
| 117 |
+
|
| 118 |
+

|
| 119 |
+
Figure 3: Illustration of quantized matrix vector multiplication (left part). The matrix is quantized row by row, which provides more freedom to approximate while adds little extra computation. By reformulating as the right part, we can make full use of the intrinsic parallel binary matrix vector multiplication for further acceleration.
|
| 120 |
+
|
| 121 |
+
As indicated in the left part of Fig. 3, the binary multiplication can be conducted sequentially by associativity. Although the operation is suitable for parallel computing by synchronously conducting the multiplication, this needs extra effort for parallelization. We instead concatenate the binary codes as shown in the right part of Fig. 3. Under such modification, we are able to make full use of the much optimized inner parallel matrix multiplication, which gives the possibility for further acceleration. The final result is then obtained by adding all partitioned vectors together, which has little extra computation.
|
| 122 |
+
|
| 123 |
+
Training. As firstly proposed by Courbariaux et al. (2015), during the training of quantized neural network, directly adding the moderately small gradients to quantized weights will result in no change on it. So they maintain a full precision weight to accumulate the gradients then apply quantization in every mini-batch. In fact, the whole procedure can be mathematically formulated as a bi-level optimization (Colson et al., 2007) problem:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\begin{array} { r l } { \displaystyle \operatorname* { m i n } _ { \mathbf { w } , \{ \alpha _ { i } , \mathbf { b } _ { i } \} _ { i = 1 } ^ { k } } f ( \sum _ { i = 1 } ^ { k } \alpha _ { i } \mathbf { b } _ { i } ) } & { } \\ { s . t . } & { \{ \alpha _ { i } , \mathbf { b } _ { i } \} _ { i = 1 } ^ { k } = \arg \operatorname* { m i n } _ { \{ \alpha _ { i } ^ { \prime } , \mathbf { b } _ { i } ^ { \prime } \} _ { i = 1 } ^ { k } } \| \mathbf { w } - \displaystyle \sum _ { i = 1 } ^ { k } \alpha _ { i } ^ { \prime } \mathbf { b } _ { i } ^ { \prime } \| ^ { 2 } . } \end{array}
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
Denote the quantized weight as $\begin{array} { r } { \hat { \mathbf { w } } = \sum _ { i = 1 } ^ { k } \alpha _ { i } \mathbf { b } _ { i } } \end{array}$ . In the forward propagation, we derive wˆ from the full precision w in the lower-level problem and apply it to the upper-level function $f ( \cdot )$ , i.e., RNN in this paper. During the backward propagation, the derivative $\frac { \partial f } { \partial \hat { \bf w } }$ is propagated back to w through the lower-level function. Due to the discreteness of $\mathbf { b } _ { i }$ , it is very hard to model the implicit dependence2015), i.e., $\hat { \mathbf { w } }$ w. So we also adopt the “straight-through estimate” as (. To compute the derivative on the quantized hidden state urbariaux et al.,, the same trick $\begin{array} { r } { \frac { \partial f } { \partial \mathbf { w } } = \frac { \partial f } { \partial \hat { \mathbf { w } } } } \end{array}$ $\mathbf { h } _ { t }$ is applied. During the training, we find the same phenomenon as Hubara et al. (2016b) that some entries of w can grow very large, which become outliers and harm the quantization. Here we simply clip w in the range of $[ - 1 , 1 ]$ .
|
| 130 |
+
|
| 131 |
+
Table 1: Measurement on the approximation of different quantization methods, e.g., Uniform (Hubara et al., 2016b), Balanced (Zhou et al., 2017), Greedy (Guo et al., 2017), Refined (Guo et al., 2017), and our Alternating method, see Section 2. We apply these methods to quantize the full precision pre-trained weight of LSTM on the PTB dataset. The best values are in bold. W-bits represents the number of weight bits and FP denotes full precision.
|
| 132 |
+
|
| 133 |
+
<table><tr><td rowspan=1 colspan=4>Relative MSE</td><td rowspan=1 colspan=4>Testing PPW</td></tr><tr><td rowspan=1 colspan=1>W-Bits</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>FP</td></tr><tr><td rowspan=1 colspan=1>Uniform</td><td rowspan=1 colspan=1>1.070</td><td rowspan=1 colspan=1>0.404</td><td rowspan=1 colspan=1>0.302</td><td rowspan=1 colspan=1>283.2</td><td rowspan=1 colspan=1>227.3</td><td rowspan=1 colspan=1>216.3</td><td rowspan=5 colspan=1>89.8</td></tr><tr><td rowspan=1 colspan=1>Balanced</td><td rowspan=1 colspan=1>0.891</td><td rowspan=1 colspan=1>0.745</td><td rowspan=1 colspan=1>0.702</td><td rowspan=1 colspan=1>10287.6</td><td rowspan=1 colspan=1>9106.4</td><td rowspan=1 colspan=1>8539.8</td></tr><tr><td rowspan=1 colspan=1>Greedy</td><td rowspan=1 colspan=1>0.146</td><td rowspan=1 colspan=1>0.071</td><td rowspan=1 colspan=1>0.042</td><td rowspan=1 colspan=1>118.9</td><td rowspan=1 colspan=1>99.4</td><td rowspan=1 colspan=1>95.0</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>0.137</td><td rowspan=1 colspan=1>0.060</td><td rowspan=1 colspan=1>0.030</td><td rowspan=1 colspan=1>105.3</td><td rowspan=1 colspan=1>95.4</td><td rowspan=1 colspan=1>93.1</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>0.125</td><td rowspan=1 colspan=1>0.043</td><td rowspan=1 colspan=1>0.019</td><td rowspan=1 colspan=1>103.1</td><td rowspan=1 colspan=1>93.8</td><td rowspan=1 colspan=1>91.4</td></tr></table>
|
| 134 |
+
|
| 135 |
+
Table 2: Quantization on the full precision pre-trained weight of GRU on the PTB dataset.
|
| 136 |
+
|
| 137 |
+
<table><tr><td rowspan=1 colspan=4>Relative MSE</td><td rowspan=1 colspan=4>Testing PPW</td></tr><tr><td rowspan=1 colspan=1>W-Bits</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>FP</td></tr><tr><td rowspan=1 colspan=1>Uniform</td><td rowspan=1 colspan=1>6.138</td><td rowspan=1 colspan=1>3.920</td><td rowspan=1 colspan=1>3.553</td><td rowspan=1 colspan=1>3161906.6</td><td rowspan=1 colspan=1>771259.6</td><td rowspan=1 colspan=1>715781.9</td><td rowspan=5 colspan=1>92.5</td></tr><tr><td rowspan=1 colspan=1>Balanced</td><td rowspan=1 colspan=1>1.206</td><td rowspan=1 colspan=1>1.054</td><td rowspan=1 colspan=1>1.006</td><td rowspan=1 colspan=1>2980.4</td><td rowspan=1 colspan=1>3396.3</td><td rowspan=1 colspan=1>3434.1</td></tr><tr><td rowspan=1 colspan=1>Greedy</td><td rowspan=1 colspan=1>0.377</td><td rowspan=1 colspan=1>0.325</td><td rowspan=1 colspan=1>0.304</td><td rowspan=1 colspan=1>135.7</td><td rowspan=1 colspan=1>105.5</td><td rowspan=1 colspan=1>99.2</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>0.128</td><td rowspan=1 colspan=1>0.055</td><td rowspan=1 colspan=1>0.030</td><td rowspan=1 colspan=1>111.6</td><td rowspan=1 colspan=1>99.1</td><td rowspan=1 colspan=1>97.0</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>0.120</td><td rowspan=1 colspan=1>0.044</td><td rowspan=1 colspan=1>0.021</td><td rowspan=1 colspan=1>110.3</td><td rowspan=1 colspan=1>97.3</td><td rowspan=1 colspan=1>95.2</td></tr></table>
|
| 138 |
+
|
| 139 |
+
# 5 EXPERIMENTS ON THE LANGUAGE MODELS
|
| 140 |
+
|
| 141 |
+
In this section, we conduct quantization experiments on language models. The two most well-known recurrent neural networks, i.e., LSTM (Hochreiter & Schmidhuber, 1997) and GRU (Cho et al., 2014), are evaluated. As they are to predict the next word, the performance is measured by perplexity per word (PPW) metric. For all experiments, we initialize with the pre-trained model and using vanilla SGD. The initial learning rate is set to 20. Every epoch we evaluate on the validation dataset and record the best value. When the validation error exceeds the best record, we decrease learning rate by a factor of 1.2. Training is terminated once the learning rate less than 0.001 or reaching the maximum epochs, i.e., 80. The gradient norm is clipped in the range $[ - 0 . 2 5 , 0 . 2 5 ]$ . We unroll the network for 30 time steps and regularize it with the standard dropout (probability of dropping out units equals to 0.5) (Zaremba et al., 2014). For simplicity of notation, we denote the methods using uniform, balanced, greedy, refined greedy, and our alternating quantization as Uniform, Balanced, Greedy, Refined, and Alternating, respectively.
|
| 142 |
+
|
| 143 |
+
Peen Tree Bank. We first conduct experiments on the Peen Tree Bank (PTB) corpus (Marcus et al., 1993), using the standard preprocessed splits with a 10K size vocabulary (Mikolov, 2012). The PTB dataset contains 929K training tokens, 73K validation tokens, and 82K test tokens. For fair comparison with existing works, we also use LSTM and GRU with 1 hidden layer of size 300. To have a glance at the approximation ability of different quantization methods as detailed in Section 2, we firstly conduct experiments by directly quantizing the trained full precision weight (neither quantization on activation nor retraining). Results on LSTM and GRU are shown in Table 1 and Table 2, respectively. The left parts record the relative mean squared error of quantized weight matrices with full precision one. We can see that our proposed Alternating can get much lower error across all varying bit. We also measure the testing PPW for the quantized weight as shown in the right parts of Table 1 and 2. The results are in consistent with the left part, where less errors result in lower testing PPW. Note that Uniform and Balanced quantization are rule-based and not aim at minimizing the error. Thus they can have much worse result by direct approximation. We also repeat the experiment on other datasets. For both LSTM and GRU, the results are very similar to here.
|
| 144 |
+
|
| 145 |
+
Table 3: Testing PPW of multi-bit quantized LSTM and GRU on the PTB dataset. W-Bits and A-Bits represent the number of weight and activation bits, respectively.
|
| 146 |
+
|
| 147 |
+
<table><tr><td rowspan=1 colspan=6>LSTM</td><td rowspan=1 colspan=5>GRU</td></tr><tr><td rowspan=1 colspan=1>W-Bits /A-Bits</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>4/4</td><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>4/4</td><td rowspan=1 colspan=1>FP/FP</td></tr><tr><td rowspan=1 colspan=1>Uniform</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>220</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>97</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>Balanced</td><td rowspan=1 colspan=1>126</td><td rowspan=1 colspan=1>123</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>114</td><td rowspan=1 colspan=1>107</td><td rowspan=1 colspan=1>142</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>116</td><td rowspan=1 colspan=1>100</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>100.3</td><td rowspan=1 colspan=1>95.6</td><td rowspan=1 colspan=1>91.3</td><td rowspan=1 colspan=1>二</td><td rowspan=2 colspan=1>89.8</td><td rowspan=1 colspan=1>105.1</td><td rowspan=1 colspan=1>100.3</td><td rowspan=1 colspan=1>95.9</td><td rowspan=1 colspan=1>二</td><td rowspan=2 colspan=1>92.5</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>95.8</td><td rowspan=1 colspan=1>91.9</td><td rowspan=1 colspan=1>87.9</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>101.2</td><td rowspan=1 colspan=1>97.0</td><td rowspan=1 colspan=1>92.9</td><td rowspan=1 colspan=1>1</td></tr></table>
|
| 148 |
+
|
| 149 |
+
Table 4: Testing PPW of multi-bit quantized LSTM and GRU on the WikiText-2 dataset.
|
| 150 |
+
|
| 151 |
+
<table><tr><td rowspan=1 colspan=5>LSTM</td><td rowspan=1 colspan=4>GRU</td></tr><tr><td rowspan=1 colspan=1>W-Bits / A-Bits</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>FP/FP</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>108.7</td><td rowspan=1 colspan=1>105.8</td><td rowspan=1 colspan=1>102.2</td><td rowspan=2 colspan=1>100.1</td><td rowspan=1 colspan=1>117.2</td><td rowspan=1 colspan=1>114.1</td><td rowspan=1 colspan=1>111.8</td><td rowspan=2 colspan=1>106.7</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>106.1</td><td rowspan=1 colspan=1>102.7</td><td rowspan=1 colspan=1>98.7</td><td rowspan=1 colspan=1>113.7</td><td rowspan=1 colspan=1>110.2</td><td rowspan=1 colspan=1>106.4</td></tr></table>
|
| 152 |
+
|
| 153 |
+
Table 5: Testing PPW of multi-bit quantized LSTM and GRU on the Text8 dataset.
|
| 154 |
+
|
| 155 |
+
<table><tr><td rowspan=1 colspan=5>LSTM</td><td rowspan=1 colspan=4>GRU</td></tr><tr><td rowspan=1 colspan=1>W-Bits / A-Bits</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>FP/FP</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>135.6</td><td rowspan=1 colspan=1>122.3</td><td rowspan=1 colspan=1>110.2</td><td rowspan=2 colspan=1>101.1</td><td rowspan=1 colspan=1>135.8</td><td rowspan=1 colspan=1>126.9</td><td rowspan=1 colspan=1>118.3</td><td rowspan=2 colspan=1>111.6</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>108.8</td><td rowspan=1 colspan=1>105.1</td><td rowspan=1 colspan=1>98.8</td><td rowspan=1 colspan=1>124.5</td><td rowspan=1 colspan=1>118.7</td><td rowspan=1 colspan=1>114.0</td></tr></table>
|
| 156 |
+
|
| 157 |
+
We then conduct experiments by quantizing both weights and activations. We train with the batch size 20. The final result is shown in Table 3. Besides comparing with the existing works, we also conduct experiment for Refined as a competitive baseline. We do not include Greedy as it is already shown to be much inferior to the refined one, see, e.g., Table 1 and 2. As Table 3 shows, our full precision model can attain lower PPW than the existing works. However, when considering the gap between quantized model with the full precision one, our alternating quantized neural network is still far better than existing works, i.e., Uniform (Hubara et al., 2016b) and Balanced (Zhou et al., 2017). Compared with Refined, our Alternating quantization can achieve compatible performance using 1-bit less quantization on weights or activations. In other words, under the same tolerance of accuracy drop, Alternating executes faster and uses less memory than Refined. We can see that our $3 / 3$ weights/activations quantized LSTM can achieve even better performance than full precision one. A possible explanation is due to the regularization introduced by quantization (Hubara et al., 2016b).
|
| 158 |
+
|
| 159 |
+
WikiText-2 (Merity et al., 2017) is a dataset released recently as an alternative to PTB. It contains 2088K training, 217K validation, and 245K test tokens, and has a vocabulary of 33K words, which is roughly 2 times larger in dataset size, and 3 times larger in vocabulary than PTB. We train with one layer’s hidden state of size 512 and set the batch size to 100. The result is shown in Table 4. Similar to PTB, our Alternating can use 1-bit less quantization to attain compatible or even lower PPW than Refined.
|
| 160 |
+
|
| 161 |
+
Text8. In order to determine whether Alternating remains effective with a larger dataset, we perform experiments on the Text8 corpus (Mikolov et al., 2014). Here we follow the same setting as (Xie et al., 2017). The first 90M characters are used for training, the next 5M for validation, and the final 5M for testing, resulting in 15.3M training tokens, 848K validation tokens, and 855K test tokens. We also preprocess the data by mapping all words which appear 10 or fewer times to the unknown token, resulting in a 42K size vocabulary. We train LSTM and GRU with one hidden layer of size 1024 and set the batch size to 100. The result is shown in Table 5. For LSTM on the left part, Alternating achieves excellent performance. By only 2-bit quantization on weights and activations, it exceeds Refined with 3-bit. The 2-bit result is even better than that reported in (Xie et al., 2017), where LSTM adding noising schemes for regularization can only attain 110.6 testing PPW. For GRU on the right part, although Alternating is much better than Refined, the 3-bit quantization still has gap with full precision one. We attribute that to the unified setting of hyper-parameters across all experiments. With specifically tuned hyper-parameters on this dataset, one may make up for that gap.
|
| 162 |
+
|
| 163 |
+
Note that our alternating quantization is a general technique. It is not only suitable for language models here. For a comprehensive verification, we apply it to image classification tasks. In both RNNs and feedforward neural networks, our alternating quantization also achieves the lowest testing error among all compared methods. Due to space limitation, we deter the results to Appendix B.
|
| 164 |
+
|
| 165 |
+
# 6 CONCLUSIONS
|
| 166 |
+
|
| 167 |
+
In this work, we address the limitations of RNNs, i.e., large memory and high latency, by quantization. We formulate the quantization by minimizing the approximation error. Under the key observation that some parameters can be singled out when others fixed, a simple yet effective alternating method is proposed. We apply it to quantize LSTM and GRU on language models. By 2-bit weights and activations, we achieve only a reasonably accuracy loss compared with full precision one, with ${ \sim } 1 6 \times$ reduction in memory and ${ \sim } 6 \times$ real acceleration on CPUs. By 3-bit quantization, we can attain compatible or even better result than the full precision one, with ${ \sim } 1 0 . 5 \times$ reduction in memory and ${ \sim } 3 \times$ real acceleration. Both beat existing works with a large margin. We also apply our alternating quantization to image classification tasks. In both RNNs and feedforward neural networks, the method can still achieve very plausible performance.
|
| 168 |
+
|
| 169 |
+
# 7 ACKNOWLEDGEMENTS
|
| 170 |
+
|
| 171 |
+
We would like to thank the reviewers for their suggestions on the manuscript. Zhouchen Lin is supported by National Basic Research Program of China (973 Program) (grant no. 2015CB352502), National Natural Science Foundation (NSF) of China (grant nos. 61625301 and 61731018), Qualcomm, and Microsoft Research Asia. Hongbin Zha is supported by Natural Science Foundation (NSF) of China (No. 61632003).
|
| 172 |
+
|
| 173 |
+
# REFERENCES
|
| 174 |
+
|
| 175 |
+
Kyunghyun Cho, Bart Van Merriënboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv:1406.1078, 2014.
|
| 176 |
+
|
| 177 |
+
Benoît Colson, Patrice Marcotte, and Gilles Savard. An overview of bilevel optimization. Annals of Operations Research, 153(1):235–256, 2007.
|
| 178 |
+
|
| 179 |
+
Tim Cooijmans, Nicolas Ballas, César Laurent, Çaglar Gülçehre, and Aaron Courville. Recurrent ˘ batch normalization. In ICLR, 2017.
|
| 180 |
+
|
| 181 |
+
Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. In NIPS, pp. 3123–3131, 2015.
|
| 182 |
+
|
| 183 |
+
Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv:1412.6115, 2014.
|
| 184 |
+
|
| 185 |
+
Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, pp. 6645–6649. IEEE, 2013.
|
| 186 |
+
|
| 187 |
+
Yiwen Guo, Anbang Yao, Hao Zhao, and Yurong Chen. Network sketching: Exploiting binary structure in deep cnns. In CVPR, 2017.
|
| 188 |
+
|
| 189 |
+
Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In NIPS, pp. 1135–1143, 2015.
|
| 190 |
+
|
| 191 |
+
Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2016.
|
| 192 |
+
|
| 193 |
+
Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 9(8): 1735–1780, 1997.
|
| 194 |
+
|
| 195 |
+
Lu Hou, Quanming Yao, and James T Kwok. Loss-aware binarization of deep networks. In ICLR, 2017.
|
| 196 |
+
|
| 197 |
+
Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks. In NIPS, pp. 4107–4115. 2016a.
|
| 198 |
+
|
| 199 |
+
Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. arXiv:1609.07061, 2016b.
|
| 200 |
+
|
| 201 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, pp. 448–456, 2015.
|
| 202 |
+
|
| 203 |
+
Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv:1405.3866, 2014.
|
| 204 |
+
|
| 205 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
|
| 206 |
+
|
| 207 |
+
Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan Oseledets, and Victor Lempitsky. Speedingup convolutional neural networks using fine-tuned cp-decomposition. arXiv:1412.6553, 2014.
|
| 208 |
+
|
| 209 |
+
Fengfu Li, Bo Zhang, and Bin Liu. Ternary weight networks. arXiv:1605.04711, 2016.
|
| 210 |
+
|
| 211 |
+
Zefan Li, Bingbing Ni, Wenjun Zhang, Xiaokang Yang, and Wen Gao. Performance guaranteed network acceleration via high-order residual quantization. In ICCV, pp. 2584–2592, 2017.
|
| 212 |
+
|
| 213 |
+
Baoyuan Liu, Min Wang, Hassan Foroosh, Marshall Tappen, and Marianna Pensky. Sparse convolutional neural networks. In CVPR, pp. 806–814, 2015.
|
| 214 |
+
|
| 215 |
+
Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational Linguistics, 19(2):313–330, 1993.
|
| 216 |
+
|
| 217 |
+
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In ICLR, 2017.
|
| 218 |
+
|
| 219 |
+
Tomáš Mikolov. Statistical Language Models Based on Neural Networks. PhD thesis, Brno University of Technology, 2012.
|
| 220 |
+
|
| 221 |
+
Tomáš Mikolov, Martin Karafiát, Lukáš Burget, Jan Cernocký, and Sanjeev Khudanpur. Recurrent ˇ neural network based language model. In INTERSPEECH, pp. 1045–1048, 2010.
|
| 222 |
+
|
| 223 |
+
Tomáš Mikolov, Armand Joulin, Sumit Chopra, Michael Mathieu, and Marc’Aurelio Ranzato. Learning longer memory in recurrent neural networks. arXiv:1412.7753, 2014.
|
| 224 |
+
|
| 225 |
+
Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. XNOR-Net: Imagenet classification using binary convolutional neural networks. In ECCV, pp. 525–542. Springer, 2016.
|
| 226 |
+
|
| 227 |
+
Tara N Sainath, Brian Kingsbury, Vikas Sindhwani, Ebru Arisoy, and Bhuvana Ramabhadran. Lowrank matrix factorization for deep neural network training with high-dimensional output targets. In ICASSP, pp. 6655–6659. IEEE, 2013.
|
| 228 |
+
|
| 229 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
|
| 230 |
+
|
| 231 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In NIPS, pp. 3104–3112, 2014.
|
| 232 |
+
|
| 233 |
+
Cheng Tai, Tong Xiao, Yi Zhang, Xiaogang Wang, and Weinan E. Convolutional neural networks with low-rank regularization. In ICLR, 2016.
|
| 234 |
+
|
| 235 |
+
Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In CVPR, pp. 3156–3164, 2015.
|
| 236 |
+
|
| 237 |
+
Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In NIPS, pp. 2074–2082, 2016.
|
| 238 |
+
|
| 239 |
+
Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv:1609.08144, 2016.
|
| 240 |
+
|
| 241 |
+
Ziang Xie, Sida I Wang, Jiwei Li, Daniel Lévy, Aiming Nie, Dan Jurafsky, and Andrew Y Ng. Data noising as smoothing in neural network language models. In ICLR, 2017.
|
| 242 |
+
|
| 243 |
+
Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv:1409.2329, 2014.
|
| 244 |
+
|
| 245 |
+
Shu-Chang Zhou, Yu-Zhi Wang, He Wen, Qin-Yao He, and Yu-Heng Zou. Balanced quantization: An effective and efficient approach to quantized neural networks. Journal of Computer Science and Technology, 32(4):667–682, 2017.
|
| 246 |
+
|
| 247 |
+
Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv:1606.06160, 2016.
|
| 248 |
+
|
| 249 |
+
Chenzhuo Zhu, Song Han, Huizi Mao, and William J Dally. Trained ternary quantization. In ICLR, 2017.
|
| 250 |
+
|
| 251 |
+
# APPENDIX
|
| 252 |
+
|
| 253 |
+
# A BINARY MATRIX VECTOR MULTIPLICATION IN CPUS
|
| 254 |
+
|
| 255 |
+
Table 6: Computing time of the binary matrix vector multiplication in CPUs, where Quant represents the cost to execute our alternating quantization on-line.
|
| 256 |
+
|
| 257 |
+
<table><tr><td rowspan=1 colspan=1>Weight Size</td><td rowspan=1 colspan=1>W-Bits / A-Bits</td><td rowspan=1 colspan=1>Total (ms)</td><td rowspan=1 colspan=1>Quant (ms)</td><td rowspan=1 colspan=1>Quant / Total</td><td rowspan=1 colspan=1>Acceleration</td></tr><tr><td rowspan=3 colspan=1>4096 × 1024</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>0.35</td><td rowspan=1 colspan=1>0.07</td><td rowspan=1 colspan=1>20%</td><td rowspan=1 colspan=1>5.6x</td></tr><tr><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>0.72</td><td rowspan=1 colspan=1>0.11</td><td rowspan=1 colspan=1>15%</td><td rowspan=1 colspan=1>2.7x</td></tr><tr><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>1.95</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>1.0×</td></tr><tr><td rowspan=3 colspan=1>42000 × 1024</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>3.17</td><td rowspan=1 colspan=1>0.07</td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>6.0×</td></tr><tr><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>6.46</td><td rowspan=1 colspan=1>0.11</td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>3.0x</td></tr><tr><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>19.10</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1.0x</td></tr></table>
|
| 258 |
+
|
| 259 |
+
In this section, we discuss the implementation of the binary multiplication kernel in CPUs. The binary multiplication is divided into two steps: Entry-wise XNOR operation (corresponding to entry-wise product in the full precision multiplication) and bit count operation for accumulation (corresponding to compute the sum of all multiplied entries in the full precision multiplication). We test it on Intel Xeon E5-2682 v4 $@$ 2.50 GHz CPU. For the XNOR operation, we use the Single instruction, multiple data (SIMD) _mm256 _xor_ps, which can execute 256 bit simultaneously. For the bit count operation, we use the function _popcnt64 (Note that this step can further be accelerated by the up-coming instruction _mm512 _popcnt_epi64 , which can execute 512 bits simultaneously. Similarly, the XNOR operation can also be further accelerated by the up-coming _mm512 _xor_ps instruction to execute 512 bits simultaneously). We compare with the much optimized Intel Math Kernel Library (MKL) on full precision matrix vector multiplication and execute all codes in the single-thread mode. We conduct two scales of experiments: a matrix of size $4 0 9 6 \times 1 0 2 4$ multiplying a vector of size 1024 and a matrix of size $4 2 0 0 0 \times 1 0 2 4$ multiplying a vector of size 1024, which respectively correspond to the hidden state product ${ \bf W } _ { h } \mathbf h _ { t - 1 }$ and the softmax layer $\mathbf { W } _ { s } \mathbf { h } _ { t }$ for Text8 dataset during inference with batch size of 1 (See Eq. (6)). The results are shown in Table 6. We can see that our alternating quantization step only accounts for a small portion of the total executing time, especially for the larger scale matrix vector multiplication. Compared with the full precision one, the binary multiplication can roughly achieve $6 \times$ acceleration with 2-bit quantization and $3 \times$ acceleration with 3-bit quantization. Note that this is only a simple test on CPU. Our alternating quantization method can also be extended to GPU, ASIC, and FPGA.
|
| 260 |
+
|
| 261 |
+
# B IMAGE CLASSIFICATION
|
| 262 |
+
|
| 263 |
+
Sequential MNIST. As a simple illustration to show that our alternating quantization is not limited for texts, we conduct experiments on the sequential MNIST classification task (Cooijmans et al., 2017). The dataset consists of a training set of 60K and a test set of 10K $2 8 \times 2 8$ gray-scale images. Here we divide the last 5000 training images for validation. In every time, we sequentially use one row of the image as the input $( 2 8 \times 1 )$ , which results in a total of 28 time steps. We use 1 hidden layer’s LSTM of size 128 and the same optimization hyper-parameters as the language models. Besides the weights and activations, the inputs are quantized. The testing error rates for 1-bit input, 2-bit weight, and 2-bit activation are shown in 7, where our alternating quantized method still achieves plausible performance in this task.
|
| 264 |
+
|
| 265 |
+
MLP on MNIST. The alternating quantization proposed in this work is a general technique. It is not only suitable for RNNs, but also for feed-forward neural networks. As an example, we firstly conduct a classification task on MNIST and compare with existing work (Li et al., 2017). The method proposed in (Li et al., 2017) is intrinsically a greedy multi-bit quantization method. For fair comparison, we follow the same setting. We use the MLP consisting of 3 hidden layers of 4096 units and an L2-SVM output layer. No convolution, preprocessing, data augmentation or pre-training is used. We also use ADAM (Kingma & Ba, 2015) with an exponentially decaying learning rate and Batch Normalization (Ioffe & Szegedy, 2015) with a batch size 100. The testing error rates for 2-bit input, 2-bit weight, and 1-bit activation are shown in Table 8. Among all the compared multi-bit quantization methods, our alternating one achieves the lowest testing error.
|
| 266 |
+
|
| 267 |
+
Table 7: Testing error rate of LSTM on MNIST with 1-bit input, 2-bit weight, and 2-bit activation.
|
| 268 |
+
|
| 269 |
+
<table><tr><td>Methods</td><td>Testing Error Rate</td></tr><tr><td>Full Precision</td><td>1.10%</td></tr><tr><td>Refined (Guo et al., 2017)</td><td>1.39 %</td></tr><tr><td>Alternating (ours)</td><td>1.19 %</td></tr></table>
|
| 270 |
+
|
| 271 |
+
Table 8: Testing error rate of MLP on MNIST with 2-bit input, 2-bit weight, and 1-bit activation.
|
| 272 |
+
|
| 273 |
+
<table><tr><td>Methods</td><td>Testing Error Rate</td></tr><tr><td>Full Precision</td><td>0.97%</td></tr><tr><td>Greedy (reported in (Li et al., 2017))</td><td>1.25 %</td></tr><tr><td>Refined (Guo et al., 2017)</td><td>1.22 %</td></tr><tr><td>Alternating (ours)</td><td>1.13 %</td></tr></table>
|
| 274 |
+
|
| 275 |
+
Table 9: Testing error rate of CNN on CIFAR-10 with 2-bit weight and 1-bit activation.
|
| 276 |
+
|
| 277 |
+
<table><tr><td>Methods</td><td>Testing Error Rate</td></tr><tr><td>Full Precision (reported in (Hou et al., 2017))</td><td>11.90 %</td></tr><tr><td> XNOR-Net (1-bit weight & activation, reported in (Hou et al., 2017))</td><td>12.62 %</td></tr><tr><td>Refined (Guo et al., 2017)</td><td>12.08 %</td></tr><tr><td>Alternating (ours)</td><td>11.70 %</td></tr></table>
|
| 278 |
+
|
| 279 |
+
CNN on CIFAR-10. We then conduct experiments on CIFAR-10 and follow the same setting as (Hou et al., 2017). That is, we use 45000 images for training, another 5000 for validation, and the remaining 10000 for testing. The images are preprocessed with global contrast normalization and ZCA whitening. We also use the VGG-like architecture (Simonyan & Zisserman, 2015):
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
( 2 \times 1 2 8 ~ \mathrm { C 3 } ) - \mathrm { M P 2 - ( 2 \times 2 5 6 ~ \mathrm { C 3 } ) - M P 2 - ( 2 \times 5 1 2 ~ \mathrm { C 3 } ) - M P 2 - ( 2 \times 1 0 2 4 ~ \mathrm { F C } ) - 1 0 ~ \mathrm { S V M } }
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
where C3 is a $3 \times 3$ convolution layer, and MP2 is a $2 \times 2$ max-pooling layer. Batch Normalization, with a mini-batch size of 50, and ADAM are used. The maximum number of epochs is 200. The learning rate starts at 0.02 and decays by a factor of 0.5 after every 30 epochs. The testing error rates for 2-bit weight and 1-bit activation are shown in Table 9, where our alternating method again achieves the lowest test error rate among all compared quantization methods.
|
parse/train/S19dR9x0b/S19dR9x0b_content_list.json
ADDED
|
@@ -0,0 +1,1465 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ALTERNATING MULTI-BIT QUANTIZATION FORRECURRENT NEURAL NETWORKS",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
736,
|
| 10 |
+
147
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Chen $\\mathbf { X } \\mathbf { u } ^ { 1 , }$ ∗, Jianqiang $\\mathbf { Y a o } ^ { 2 }$ , Zhouchen Lin1,3,†, Wenwu $\\mathbf { O u } ^ { 2 }$ , Yuanbin $\\mathbf { C a o ^ { 4 } }$ , Zhirong Wang2, Hongbin Zha1,3 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
764,
|
| 21 |
+
200
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1 Key Laboratory of Machine Perception (MOE), School of EECS, Peking University, Ch \n2 Search Algorithm Team, Alibaba Group, China \n3 Cooperative Medianet Innovation Center, Shanghai Jiao Tong University, China \n4 AI-LAB, Alibaba Group, China ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
200,
|
| 31 |
+
763,
|
| 32 |
+
257
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "xuen@pku.edu.cn,tianduo@taobao.com,zlin@pku.edu.cn,santong.oww@taobao.com lingzun.cyb@alibaba-inc.com, qingfeng@taobao.com,zha@cis.pku.edu.cn ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
186,
|
| 41 |
+
260,
|
| 42 |
+
828,
|
| 43 |
+
285
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
321,
|
| 54 |
+
544,
|
| 55 |
+
337
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Recurrent neural networks have achieved excellent performance in many applications. However, on portable devices with limited resources, the models are often too large to deploy. For applications on the server with large scale concurrent requests, the latency during inference can also be very critical for costly computing resources. In this work, we address these problems by quantizing the network, both weights and activations, into multiple binary codes $\\{ - 1 , + 1 \\}$ . We formulate the quantization as an optimization problem. Under the key observation that once the quantization coefficients are fixed the binary codes can be derived efficiently by binary search tree, alternating minimization is then applied. We test the quantization for two well-known RNNs, i.e., long short term memory (LSTM) and gated recurrent unit (GRU), on the language models. Compared with the full-precision counter part, by 2-bit quantization we can achieve ${ \\sim } 1 6 \\times$ memory saving and ${ \\sim } 6 \\times$ real inference acceleration on CPUs, with only a reasonable loss in the accuracy. By 3-bit quantization, we can achieve almost no loss in the accuracy or even surpass the original model, with ${ \\sim } 1 0 . 5 \\times$ memory saving and ${ \\sim } 3 \\times$ real inference acceleration. Both results beat the exiting quantization works with large margins. We extend our alternating quantization to image classification tasks. In both RNNs and feedforward neural networks, the method also achieves excellent performance. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
353,
|
| 65 |
+
766,
|
| 66 |
+
602
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
628,
|
| 77 |
+
336,
|
| 78 |
+
643
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Recurrent neural networks (RNNs) are specific type of neural networks which are designed to model the sequence data. In last decades, various RNN architectures have been proposed, such as LongShort-Term Memory (LSTM) (Hochreiter & Schmidhuber, 1997) and Gated Recurrent Units Cho et al. (2014). They have enabled the RNNs to achieve state-of-art performance in many applications, e.g., language models (Mikolov et al., 2010), neural machine translation (Sutskever et al., 2014; Wu et al., 2016), automatic speech recognition (Graves et al., 2013), image captions (Vinyals et al., 2015), etc. However, the models often build on high dimensional input/output,e.g., large vocabulary in language models, or very deep inner recurrent networks, making the models have too many parameters to deploy on portable devices with limited resources. In addition, RNNs can only be executed sequentially with dependence on current hidden states. This causes large latency during inference. For applications in the server with large scale concurrent requests, e.g., on-line machine translation and speech recognition, large latency leads to limited requests processed per machine to meet the stringent response time requirements. Thus much more costly computing resources are in demand for RNN based models. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
660,
|
| 88 |
+
825,
|
| 89 |
+
853
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "To alleviate the above problems, several techniques can be employed, i.e., low rank approximation (Sainath et al., 2013; Jaderberg et al., 2014; Lebedev et al., 2014; Tai et al., 2016), sparsity (Liu et al., 2015; Han et al., 2015; 2016; Wen et al., 2016), and quantization. All of them are build on the redundancy of current networks and can be combined. In this work, we mainly focus on quantization based methods. More precisely, we are to quantize all parameters into multiple binary codes $\\{ - 1 , + 1 \\}$ . ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
861,
|
| 99 |
+
823,
|
| 100 |
+
890
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
104,
|
| 110 |
+
825,
|
| 111 |
+
161
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The idea of quantizing both weights and activations is firstly proposed by (Hubara et al., 2016a). It has shown that even 1-bit binarization can achieve reasonably good performance in some visual classification tasks. Compared with the full precision counterpart, binary weights reduce the memory by a factor of 32. And the costly arithmetic operations between weights and activations can then be replaced by cheap XNOR and bitcount operations(Hubara et al., 2016a), which potentially leads to much acceleration. Rastegari et al. (2016) further incorporate a real coefficient to compensate for the binarization error. They apply the method to the challenging ImageNet dataset and achieve better performance than pure binarization in (Hubara et al., 2016a). However, it is still of large gap compared with the full precision networks. To bridge this gap, some recent works (Hubara et al., 2016b; Zhou et al., 2016; 2017) further employ quantization with more bits and achieve plausible performance. Meanwhile, quite an amount of works, e.g., (Courbariaux et al., 2015; Li et al., 2016; Zhu et al., 2017; Guo et al., 2017), quantize the weights only. Although much memory saving can be achieved, the acceleration is very limited in modern computing devices (Rastegari et al., 2016). ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
167,
|
| 121 |
+
825,
|
| 122 |
+
348
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Among all existing quantization works, most of them focus on convolutional neural networks (CNNs) while pay less attention to RNNs. As mentioned earlier, the latter is also very demanding. Recently, (Hou et al., 2017) showed that binarized LSTM with preconditioned coefficients can achieve promising performance in some easy tasks such as predicting the next character. However, for RNNs with large input/output, e.g., large vocabulary in language models, it is still very challenging for quantization. Both works of Hubara et al. (2016b) and Zhou et al. (2017) test the effectiveness of their multi-bit quantized RNNs to predict the next word. Although using up to 4-bits, the results with quantization still have noticeable gap with those with full precision. This motivates us to find a better method to quantize RNNs. The main contribution of this work is as follows: ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
173,
|
| 131 |
+
356,
|
| 132 |
+
825,
|
| 133 |
+
481
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "(a) We formulate the multi-bit quantization as an optimization problem. The binary codes $\\{ - 1 , + 1 \\}$ are learned instead of rule-based. For the first time, we observe that the codes can be optimally derived by the binary search tree once the coefficients are knowns in advance, see, e.g., Algorithm 1. Thus the whole optimization is eased by removing the discrete unknowns, which are very difficult to handle. \n(b) We propose to use alternating minimization to tackle the quantization problem. By separating the binary codes and real coefficients into two parts, we can solve the subproblem efficiently when one part is fixed. With proper initialization, we only need two alternating cycles to get high precision approximation, which is effective enough to even quantize the activations on-line. \n(c) We systematically evaluate the effectiveness of our alternating quantization on language models. Two well-known RNN structures, i.e., LSTM and GRU, are tested with different quantization bits. Compared with the full-precision counterpart, by 2-bit quantization we can achieve ${ \\sim } 1 6 \\times$ memory saving and ${ \\sim } 6 \\times$ real inference acceleration on CPUs, with a reasonable loss on the accuracy. By 3-bit quantization, we can achieve almost no loss in accuracy or even surpass the original model with ${ \\sim } 1 0 . 5 \\times$ memory saving and ${ \\sim } 3 \\times$ real inference acceleration. Both results beat the exiting quantization works with large margins. To illustrate that our alternating quantization is very general to extend, we apply it to image classification tasks. In both RNNs and feedforward neural networks, the technique still achieves very plausible performance. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
171,
|
| 142 |
+
489,
|
| 143 |
+
825,
|
| 144 |
+
750
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 EXISTING MULTI-BIT QUANTIZATION METHODS ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
767,
|
| 155 |
+
611,
|
| 156 |
+
785
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Before introducing our proposed multi-bit quantization, we first summarize existing works as follows: ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
171,
|
| 165 |
+
799,
|
| 166 |
+
825,
|
| 167 |
+
814
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "(a) Uniform quantization method (Rastegari et al., 2016; Hubara et al., 2016b) firstly scales its value in the range $x \\in [ - 1 , 1 ]$ . Then it adopts the following $k$ -bit quantization: ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
823,
|
| 177 |
+
825,
|
| 178 |
+
852
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "equation",
|
| 184 |
+
"img_path": "images/ac0c4028710ebe2102c6bb1e2cdd3d43a87e766cafc8b2bfe9d203088cb77194.jpg",
|
| 185 |
+
"text": "$$\nq _ { k } ( x ) = 2 \\left( { \\frac { \\mathrm { r o u n d } [ ( 2 ^ { k } - 1 ) ( { \\frac { x + 1 } { 2 } } ) ] } { 2 ^ { k } - 1 } } - { \\frac { 1 } { 2 } } \\right) ,\n$$",
|
| 186 |
+
"text_format": "latex",
|
| 187 |
+
"bbox": [
|
| 188 |
+
367,
|
| 189 |
+
854,
|
| 190 |
+
656,
|
| 191 |
+
896
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "after which the method scales back to the original range. Such quantization is rule based thus is very easy to implement. The intrinsic benefit is that when computing inner product of two quantized vectors, it can employ cheap bit shift and count operations to replace costly multiplications and additions operations. However, the method can be far from optimum when quantizing non-uniform data, which is believed to be the trained weights and activations of deep neural network (Zhou et al., 2017). ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
199,
|
| 200 |
+
897,
|
| 201 |
+
828,
|
| 202 |
+
925
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "image",
|
| 208 |
+
"img_path": "images/4f13881a57cb01eb9a17cb0533e6fb473bcb0ded73f5f08daa4933f07808e26a.jpg",
|
| 209 |
+
"image_caption": [
|
| 210 |
+
"Figure 1: Illustration of the optimal 2-bit quantization when $\\alpha _ { 1 }$ and $\\alpha _ { 2 }$ ${ \\bf \\tilde { \\alpha } } _ { 1 } \\geq { \\alpha _ { 2 } } , { \\bf \\tilde { \\alpha } } _ { \\bf \\tilde { \\alpha } } { \\bf \\Psi } $ ) are known in advance. The values are quantized into $- \\alpha _ { 1 } - \\alpha _ { 2 }$ , $- \\alpha _ { 1 } + \\alpha _ { 2 }$ , $\\alpha _ { 1 } - \\alpha _ { 2 }$ , and $\\alpha _ { 1 } + \\alpha _ { 2 }$ , respectively. And the partition intervals are optimally separated by the middle points of adjacent quantization codes, i.e., $- \\alpha _ { 1 } , 0$ , and $\\alpha _ { 1 }$ , correspondingly. "
|
| 211 |
+
],
|
| 212 |
+
"image_footnote": [],
|
| 213 |
+
"bbox": [
|
| 214 |
+
302,
|
| 215 |
+
101,
|
| 216 |
+
696,
|
| 217 |
+
160
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "",
|
| 224 |
+
"bbox": [
|
| 225 |
+
199,
|
| 226 |
+
253,
|
| 227 |
+
825,
|
| 228 |
+
310
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "(b) Balanced quantization (Zhou et al., 2017) alleviates the drawbacks of the uniform quantization by firstly equalizing the data. The method constructs $2 ^ { k }$ intervals which contain roughly the same percentage of the data. Then it linearly maps the center of each interval to the corresponding quantization code in (1). Although sounding more reasonable than the uniform one, the affine transform on the centers can still be suboptimal. In addition, there is no guarantee that the evenly spaced partition is more suitable if compared with the non-evenly spaced partition for a specific data distribution. ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
176,
|
| 237 |
+
314,
|
| 238 |
+
825,
|
| 239 |
+
412
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "(c) Greedy approximation (Guo et al., 2017) instead tries to learn the quantization by tackling the following problem: ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
171,
|
| 248 |
+
416,
|
| 249 |
+
823,
|
| 250 |
+
445
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "equation",
|
| 256 |
+
"img_path": "images/4865807540f445d6fcabe5a1745e121926b4740eb8903a6ec92efd2674fe54a7.jpg",
|
| 257 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\{ \\alpha _ { i } , \\mathbf { b } _ { i } \\} _ { i = 1 } ^ { k } } \\left\\| \\mathbf { w } - \\sum _ { i = 1 } ^ { k } \\alpha _ { i } \\mathbf { b } _ { i } \\right\\| ^ { 2 } , \\quad \\mathrm { w i t h } \\quad \\mathbf { b } _ { i } \\in \\{ - 1 , + 1 \\} ^ { n } .\n$$",
|
| 258 |
+
"text_format": "latex",
|
| 259 |
+
"bbox": [
|
| 260 |
+
323,
|
| 261 |
+
450,
|
| 262 |
+
700,
|
| 263 |
+
498
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "For $k = 1$ , the above problem has a closed-form solution (Rastegari et al., 2016). Greedy approximation extends to $k$ -bit $k > 1 ,$ ) quantization by sequentially minimizing the residue. That is ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
200,
|
| 272 |
+
503,
|
| 273 |
+
826,
|
| 274 |
+
544
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "equation",
|
| 280 |
+
"img_path": "images/64207e513f669de2d8b0815a5625e20c2c5149a00117ea65620d0785fb7d332f.jpg",
|
| 281 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\alpha _ { i } , \\mathbf { b } _ { i } } \\left\\| \\mathbf { r } _ { i - 1 } - \\alpha _ { i } \\mathbf { b } _ { i } \\right\\| ^ { 2 } , \\quad \\mathrm { w i t h } \\quad \\mathbf { r } _ { i - 1 } = \\mathbf { w } - \\sum _ { j = 1 } ^ { i - 1 } \\alpha _ { j } \\mathbf { b } _ { j } .\n$$",
|
| 282 |
+
"text_format": "latex",
|
| 283 |
+
"bbox": [
|
| 284 |
+
328,
|
| 285 |
+
540,
|
| 286 |
+
696,
|
| 287 |
+
585
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "Then the optimal solution is given as ",
|
| 294 |
+
"bbox": [
|
| 295 |
+
200,
|
| 296 |
+
588,
|
| 297 |
+
444,
|
| 298 |
+
603
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "equation",
|
| 304 |
+
"img_path": "images/e8c408305747c4fbc92c1961cdeeddd041b92f1f7bff6c11843d79d56f478e79.jpg",
|
| 305 |
+
"text": "$$\n\\alpha _ { i } = { \\frac { 1 } { n } } \\| \\mathbf { r } _ { i - 1 } \\| _ { 1 } \\quad { \\mathrm { a n d } } \\quad \\mathbf { b } _ { i } = \\mathrm { s i g n } ( \\mathbf { r } _ { i - 1 } ) .\n$$",
|
| 306 |
+
"text_format": "latex",
|
| 307 |
+
"bbox": [
|
| 308 |
+
372,
|
| 309 |
+
608,
|
| 310 |
+
651,
|
| 311 |
+
638
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 2
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"text": "Greedy approximation is very efficient to implement in modern computing devices. Although not able to reach a high precision solution, the formulation of minimizing quantization error is very promising. ",
|
| 318 |
+
"bbox": [
|
| 319 |
+
199,
|
| 320 |
+
647,
|
| 321 |
+
823,
|
| 322 |
+
689
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 2
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "(d) Refined greedy approximation (Guo et al., 2017) extends to further decrease the quantization error. In the $j$ -th iteration after minimizing problem (3), the method adds one extra step to refine all computed $\\{ \\alpha _ { i } \\} _ { i = 1 } ^ { j }$ with the least squares solution: ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
179,
|
| 331 |
+
693,
|
| 332 |
+
825,
|
| 333 |
+
738
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "equation",
|
| 339 |
+
"img_path": "images/d17efa9fa3c25b894d18a789ec5cbdeaa0c89dafa37aa9b4e4c6a7f214223016.jpg",
|
| 340 |
+
"text": "$$\n[ \\alpha _ { 1 } , \\ldots , \\alpha _ { j } ] = \\left( ( \\mathbf { B } _ { j } ^ { T } \\mathbf { B } _ { j } ) ^ { - 1 } \\mathbf { B } _ { j } ^ { T } \\mathbf { w } \\right) ^ { T } , \\quad \\mathrm { w i t h } \\quad \\mathbf { B } _ { j } = [ \\mathbf { b } _ { 1 } , \\ldots , \\mathbf { b } _ { j } ] ,\n$$",
|
| 341 |
+
"text_format": "latex",
|
| 342 |
+
"bbox": [
|
| 343 |
+
292,
|
| 344 |
+
744,
|
| 345 |
+
732,
|
| 346 |
+
768
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 2
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "In experiments of quantizing the weights of CNN, the refined approximation is verified to be better than the original greedy one. However, as we will show later, the refined method is still far from satisfactory for quantization accuracy. ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
200,
|
| 355 |
+
773,
|
| 356 |
+
825,
|
| 357 |
+
815
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 2
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "Besides the general multi-bit quantization as summarized above, Li et al. (2016) propose ternary quantization by extending 1-bit binarization with one more feasible state, 0. It does quantization by tackling $\\operatorname* { m i n } _ { \\alpha }$ ,t $\\| \\mathbf { w } - \\alpha \\mathbf { t } \\| _ { 2 } ^ { 2 }$ with $\\mathbf { t } \\in \\{ - 1 , 0 , + 1 \\} ^ { n }$ . However, no efficient algorithm is proposed in (Li et al., 2016). They instead empirically set the entries $w$ with absolute scales less than $0 . 7 / n \\| \\mathbf { w } \\| _ { 1 }$ to 0 and binarize the left entries as (4). In fact, ternary quantization is a special case of the 2-bit quantization in (2), with an additional constraint that $\\alpha _ { 1 } = \\alpha _ { 2 }$ . When the binary codes are fixed, the optimal coefficient $\\alpha _ { 1 }$ (or $\\alpha _ { 2 }$ ) can be derived by least squares solution similar to (5). ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
173,
|
| 366 |
+
827,
|
| 367 |
+
825,
|
| 368 |
+
926
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 2
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "image",
|
| 374 |
+
"img_path": "images/fa9074f4c21ef1f9c64faf20110b0ba23d97f306259495b2dc134619b2c7e9a5.jpg",
|
| 375 |
+
"image_caption": [
|
| 376 |
+
"Figure 2: Illustration of binary search tree to determine the optimal quantization. "
|
| 377 |
+
],
|
| 378 |
+
"image_footnote": [],
|
| 379 |
+
"bbox": [
|
| 380 |
+
302,
|
| 381 |
+
99,
|
| 382 |
+
694,
|
| 383 |
+
223
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "Algorithm 1: Binary Search Tree (BST) to determine to optimal code ",
|
| 390 |
+
"text_level": 1,
|
| 391 |
+
"bbox": [
|
| 392 |
+
173,
|
| 393 |
+
271,
|
| 394 |
+
632,
|
| 395 |
+
286
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 3
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "BST $( w , \\mathbf { v } )$ $\\{ w$ is the real value to be quantized} { $\\mathbf { v }$ is the vector of quantization codes in ascending order} $m = \\mathrm { l e n g t h } ( \\mathbf { v } )$ 2 if $m = = 1$ then 3 return $\\mathbf { v } _ { 1 }$ 4 end 5 if $w \\ge ( v _ { m / 2 } + v _ { m / 2 + 1 } ) / 2$ then 6 BST $( w , \\mathbf { v } _ { m / 2 + 1 : m } )$ ) 7 else 8 BST( w, v1:m/2) 9 end ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
161,
|
| 404 |
+
292,
|
| 405 |
+
743,
|
| 406 |
+
473
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "In parallel to the binarized quantization discussed here, vector quantization is applied to compress the weights for feedforward neural networks (Gong et al., 2014; Han et al., 2016). Different from ours where all weights are directly constraint to $\\{ - 1 , + 1 \\}$ , vector quantization learns a small codebook by applying k-means clustering to the weights or conducting product quantization. The weights are then reconstructed by indexing the codebook. It has been shown that by such a technique, the number of parameters can be reduced by an order of magnitude with limited accuracy loss (Gong et al., 2014). It is possible that the multi-bit quantized binary weight can be further compressed by using the product quantization. ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
173,
|
| 415 |
+
503,
|
| 416 |
+
825,
|
| 417 |
+
616
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "3 OUR ALTERNATING MULTI-BIT QUANTIZATION ",
|
| 424 |
+
"text_level": 1,
|
| 425 |
+
"bbox": [
|
| 426 |
+
174,
|
| 427 |
+
636,
|
| 428 |
+
602,
|
| 429 |
+
654
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "Now we introduce our quantization method. We tackle the same minimization problem as (2). For simplicity, we firstly consider the problem with $k = 2$ . Suppose that $\\alpha _ { 1 }$ and $\\alpha _ { 2 }$ are known in advance with $\\alpha _ { 1 } \\geq \\alpha _ { 2 } \\geq 0$ , then the quantization codes are restricted to $\\mathbf { v } = \\{ - \\alpha _ { 1 } - \\alpha _ { 2 } , - \\alpha _ { 1 } + \\alpha _ { 2 } , \\alpha _ { 1 } -$ $\\alpha _ { 2 } , \\alpha _ { 1 } + \\alpha _ { 2 } \\}$ . For any entry $w$ of w in problem (2), its quantization code is determined by the least distance to all codes. Consequently, we can partition the number axis into 4 intervals. And each interval corresponds to one particular quantization code. The common point of two adjacent intervals then becomes the middle point of the two quantization codes, i.e., $- \\alpha _ { 1 } , 0$ , and $\\alpha _ { 1 }$ . Fig. 1 gives an illustration. ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
173,
|
| 438 |
+
667,
|
| 439 |
+
825,
|
| 440 |
+
780
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 3
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "For the general $k$ -bit quantization, suppose that $\\{ \\alpha _ { i } \\} _ { i = 1 } ^ { k }$ are known and we have all possible codes in ascending order, i.e., $\\begin{array} { r } { \\mathbf { v } = \\{ - \\sum _ { i = 1 } ^ { k } \\alpha _ { i } } \\end{array}$ , . $\\textstyle \\ldots , \\sum _ { i = 1 } ^ { k } \\alpha _ { i } \\}$ . Similarly, we can partition the number axis into $2 ^ { k }$ intervals, in which the boundaries are determined by the centers of two adjacent codes in $\\mathbf { v }$ , i.e., $\\{ ( v _ { i } + v _ { i + 1 } ) / 2 \\} _ { i = 1 } ^ { 2 ^ { k } - 1 }$ . However, directly comparing per entry with all the boundaries needs $2 ^ { k }$ comparisons, which is very inefficient. Instead, we can make use of the ascending property in $\\mathbf { v }$ . Hierarchically, we partition the codes of $\\mathbf { v }$ evenly into two ordered sub-sets, i.e., $\\mathbf { v } _ { 1 : m / 2 }$ and $\\mathbf { v } _ { m / 2 + 1 : m }$ with $m$ defined as the length of $\\mathbf { v }$ . If $w < ( v _ { m / 2 } + v _ { m / 2 + 1 } ) / 2$ , its feasible codes are then optimally restricted to $\\mathbf { v } _ { 1 : m / 2 }$ . And if $w \\ge ( v _ { m / 2 } + v _ { m / 2 + 1 } ) / 2$ , its feasible codes become $\\mathbf { v } _ { m / 2 + 1 : m }$ By recursively evenly partition the ordered feasible codes, we can then efficiently determine the ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
786,
|
| 450 |
+
825,
|
| 451 |
+
925
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 3
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "Algorithm 2: Alternating Multi-bit Quantization ",
|
| 458 |
+
"text_level": 1,
|
| 459 |
+
"bbox": [
|
| 460 |
+
174,
|
| 461 |
+
108,
|
| 462 |
+
495,
|
| 463 |
+
123
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 4
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "Require :Ensure : on weight $\\mathbf { w } \\in \\mathbb { R } ^ { n }$ , number of bits $k$ , total iterations $T$ $\\{ \\alpha _ { i } , \\mathbf { \\bar { b } } _ { i } \\} _ { i = 1 } ^ { k }$ \n1 Greedy Initialize $\\{ \\alpha _ { i } , \\mathbf { b } _ { i } \\} _ { i = 1 } ^ { k }$ as (4) \n2 for iter $ 1$ to $T$ do \n3 Update $\\{ \\alpha _ { i } \\} _ { i = 1 } ^ { k }$ as (5) \n4 Construct $\\mathbf { v }$ of all feasible codes in accending order \n5 Update $\\{ { \\bf b } _ { i } \\} _ { i = 1 } ^ { k }$ as Algorithm 1. \n6 end ",
|
| 470 |
+
"bbox": [
|
| 471 |
+
161,
|
| 472 |
+
126,
|
| 473 |
+
673,
|
| 474 |
+
251
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 4
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "optimal code for per entry by only $k$ comparisons. The whole procedure is in fact a binary search tree. We summarize it in Algorithm 1. Note that once getting the quantization code, it is straightforward to map to the binary code b. Also, by maintaining a mask vector with the same size as w to indicate the partitions, we could operate BST for all entries simultaneously. To give a better illustration, we give a binary tree example for $k = 2$ in Fig. 2. Note that for $k = 2$ , we can even derive the optimal codes by a closed form solution, i.e., $\\mathbf { b } _ { 1 } = \\mathrm { s i g n } ( \\mathbf { w } )$ and $\\mathbf { b } _ { 2 } = \\mathrm { s i g n } ( \\mathbf { w } - \\alpha _ { 1 } \\mathbf { b } _ { 1 } )$ with $\\alpha _ { 1 } \\geq \\alpha _ { 2 } \\geq 0$ . ",
|
| 481 |
+
"bbox": [
|
| 482 |
+
173,
|
| 483 |
+
282,
|
| 484 |
+
825,
|
| 485 |
+
367
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 4
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Under the above observation, let us reconsider the refined greedy approximation (Guo et al., 2017) introduced in Section 2. After modification on the computed $\\{ \\alpha _ { i } \\} _ { i = 1 } ^ { j }$ as (5), $\\{ { \\bf b } _ { i } \\} _ { i = 2 } ^ { j }$ are no longer optimal while the method keeps all of them fixed. To improve the refined greedy approximation, alternating minimizing $\\{ \\alpha _ { i } \\} _ { i = 1 } ^ { k }$ and $\\{ { \\bf b } _ { i } \\} _ { i = 1 } ^ { k }$ becomes a natural choice. Once getting $\\{ { \\bf b } _ { i } \\} _ { i = 1 } ^ { k }$ as described above, we can optimize $\\{ \\alpha _ { i } \\} _ { i = 1 } ^ { k }$ as (5). In real experiments, we find that by greedy initialization as (4), only two alternating cycles is good enough to find high precision quantization. For better illustration, we summarize our alternating minimization in Algorithm 2. For updating $\\{ \\alpha _ { i } \\} _ { i = 1 } ^ { k }$ , we need $2 k ^ { 2 } n$ binary operations and $k n$ non-binary operations. Combining kn non-binary operations to determine the binary code, for total $T$ alternating cycles, we thus need $2 T k ^ { 2 } n$ binary operations and $2 ( T + 1 ) k n$ non-binary operations to quantize $\\mathbf { w } \\in \\mathbb { R } ^ { n }$ into $k$ -bit, with the extra $2 k n$ corresponding to greedy initialization. ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
173,
|
| 494 |
+
372,
|
| 495 |
+
826,
|
| 496 |
+
530
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "4 APPLY ALTERNATING MULTI-BIT QUANTIZATION TO RNNS ",
|
| 503 |
+
"text_level": 1,
|
| 504 |
+
"bbox": [
|
| 505 |
+
173,
|
| 506 |
+
549,
|
| 507 |
+
704,
|
| 508 |
+
566
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 4
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "Implementation. We firstly introduce the implementation details for quantizing RNN. For simplicity, we consider the one layer LSTM for language model. The goal is to predict the next word indexed by $t$ in a sequence of one-hot word tokens $( y _ { 1 } ^ { * } , \\dots , y _ { N } ^ { * } )$ as follows: ",
|
| 515 |
+
"bbox": [
|
| 516 |
+
176,
|
| 517 |
+
580,
|
| 518 |
+
825,
|
| 519 |
+
625
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 4
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "equation",
|
| 525 |
+
"img_path": "images/79ac58cfdd96dab4a2e9ffd4a1b575ab0b1e678105de8e87cf1f5c592e494dbb.jpg",
|
| 526 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathbf { x } _ { t } = \\mathbf { W } _ { e } ^ { T } \\mathbf { y } _ { t - 1 } ^ { * } , } \\\\ & { \\mathbf { i } _ { t } , \\mathbf { f } _ { t } , \\mathbf { 0 } _ { t } , \\mathbf { g } _ { t } = \\sigma ( \\mathbf { W } _ { i } \\mathbf { x } _ { t } + \\mathbf { b } _ { i } + \\mathbf { W } _ { h } \\mathbf { h } _ { t - 1 } + \\mathbf { b } _ { h } ) , } \\\\ & { \\mathbf { c } _ { t } = \\mathbf { f } _ { t } \\odot \\mathbf { c } _ { t - 1 } + \\mathbf { i } _ { t } \\odot \\mathbf { g } _ { t } , \\quad \\mathbf { h } _ { t } = \\mathbf { o } _ { t } \\odot \\operatorname { t a n h } ( \\mathbf { c } _ { t } ) , } \\\\ & { \\mathbf { y } _ { t } = \\operatorname { s o f t m a x } ( \\mathbf { W } _ { s } \\mathbf { h } _ { t } + \\mathbf { b } _ { s } ) . } \\end{array}\n$$",
|
| 527 |
+
"text_format": "latex",
|
| 528 |
+
"bbox": [
|
| 529 |
+
333,
|
| 530 |
+
630,
|
| 531 |
+
661,
|
| 532 |
+
705
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 4
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "where $\\sigma$ represents the activation function. In the above formulation, the multiplication between the weight matrices and the vectors $\\mathbf { x } _ { t }$ and $\\mathbf { h } _ { t }$ occupy most of the computation. This is also where we apply quantization to. For the weight matrices, We do not apply quantization on the full but rather row by row. During the matrix vector product, we can firstly execute the binary multiplication. Then element-wisely multiply the obtained binary vector with the high precision scaling coefficients. Thus little extra computation results while much more freedom is brought to better approximate the weights. We give an illustration on the left part of Fig. 3. Due to one-hot word tokens, $\\mathbf { x } _ { t }$ corresponds to one specific row in the quantized ${ \\mathbf W } _ { e }$ . It needs no more quantization. Different from the weight matrices, $\\mathbf { h } _ { t }$ depends on the input, which needs to be quantized on-line during inference. For consistent notation with existing work, e.g., (Hubara et al., 2016b; Zhou et al., 2017), we also call quantizing on $\\mathbf { h } _ { t }$ as quantizing on activation. ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
173,
|
| 541 |
+
708,
|
| 542 |
+
825,
|
| 543 |
+
863
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 4
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "For $\\mathbf { W } \\in \\mathbb { R } ^ { m \\times n }$ and $\\mathbf { h } _ { t } \\in \\mathbb { R } ^ { n }$ , the standard matrix-vector product needs $2 m n$ operations. For the quantized product between $k _ { w }$ -bit $\\mathbf { W }$ and $k _ { h }$ -bit $\\mathbf { h _ { t } }$ , we have $2 k _ { w } k _ { h } m n + 4 k _ { h } ^ { 2 } n$ binary operations and $6 k _ { h } n + 2 k _ { w } k _ { h } m$ non-binary operations, where $6 k _ { h } n$ corresponds to the cost of alternating approximation $T = 2$ ) and $2 k _ { w } k _ { h } m$ corresponds to the final product with coefficients. As the binary multiplication operates in 1 bit, whereas the full precision multiplication operates in 32 bits, despite the feasible implementations, the acceleration can be $3 2 \\times$ in theory. For alternating quantization here, the overall theoretical acceleration is thus computed as γ = 2mn132 (2kwkhmn+4k2nn)+6khn+2kwkhm . Suppose that LSTM has hidden states $n = 1 0 2 4$ , then we have $\\mathbf { W } _ { h } \\in \\mathbb { R } ^ { 4 0 9 6 \\times 1 0 2 4 }$ . The acceleration ratio becomes roughly $7 . 5 \\times$ for $( k _ { h } , k _ { w } ) = ( 2 , 2 )$ and $3 . 5 \\times$ for $( k _ { h } , k _ { w } ) = ( 3 , 3 )$ . In addition to binary operations, the acceleration in real implementations can be largely affected by the size of the matrix, where much memory reduce can result in better utilizing in the limited faster cache. We implement the binary multiplication kernel in CPUs. Compared with the much optimized Intel Math Kernel Library (MKL) on full precision matrix vector multiplication, we can roughly achieve $6 \\times$ for $( k _ { h } , k _ { w } ) = ( \\bar { 2 } , 2 )$ and $3 \\times$ for $( \\bar { k } _ { h } , k _ { w } ) = ( 3 , 3 )$ . For more details, please refer to Appendix A. ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
174,
|
| 552 |
+
869,
|
| 553 |
+
823,
|
| 554 |
+
925
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 4
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "image",
|
| 560 |
+
"img_path": "images/d6c4f5454538f22da72e0dc20a0dbf4fa20423fa95de60b1cf88d1165d505936.jpg",
|
| 561 |
+
"image_caption": [
|
| 562 |
+
"Figure 3: Illustration of quantized matrix vector multiplication (left part). The matrix is quantized row by row, which provides more freedom to approximate while adds little extra computation. By reformulating as the right part, we can make full use of the intrinsic parallel binary matrix vector multiplication for further acceleration. "
|
| 563 |
+
],
|
| 564 |
+
"image_footnote": [],
|
| 565 |
+
"bbox": [
|
| 566 |
+
181,
|
| 567 |
+
114,
|
| 568 |
+
813,
|
| 569 |
+
281
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 5
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "",
|
| 576 |
+
"bbox": [
|
| 577 |
+
173,
|
| 578 |
+
383,
|
| 579 |
+
825,
|
| 580 |
+
530
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 5
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "As indicated in the left part of Fig. 3, the binary multiplication can be conducted sequentially by associativity. Although the operation is suitable for parallel computing by synchronously conducting the multiplication, this needs extra effort for parallelization. We instead concatenate the binary codes as shown in the right part of Fig. 3. Under such modification, we are able to make full use of the much optimized inner parallel matrix multiplication, which gives the possibility for further acceleration. The final result is then obtained by adding all partitioned vectors together, which has little extra computation. ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
173,
|
| 589 |
+
536,
|
| 590 |
+
825,
|
| 591 |
+
633
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 5
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "Training. As firstly proposed by Courbariaux et al. (2015), during the training of quantized neural network, directly adding the moderately small gradients to quantized weights will result in no change on it. So they maintain a full precision weight to accumulate the gradients then apply quantization in every mini-batch. In fact, the whole procedure can be mathematically formulated as a bi-level optimization (Colson et al., 2007) problem: ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
174,
|
| 600 |
+
640,
|
| 601 |
+
823,
|
| 602 |
+
710
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 5
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "equation",
|
| 608 |
+
"img_path": "images/295a4ccf6c99038201b190d1defae67ec2d64f8e2025ab7d836916bce260a808.jpg",
|
| 609 |
+
"text": "$$\n\\begin{array} { r l } { \\displaystyle \\operatorname* { m i n } _ { \\mathbf { w } , \\{ \\alpha _ { i } , \\mathbf { b } _ { i } \\} _ { i = 1 } ^ { k } } f ( \\sum _ { i = 1 } ^ { k } \\alpha _ { i } \\mathbf { b } _ { i } ) } & { } \\\\ { s . t . } & { \\{ \\alpha _ { i } , \\mathbf { b } _ { i } \\} _ { i = 1 } ^ { k } = \\arg \\operatorname* { m i n } _ { \\{ \\alpha _ { i } ^ { \\prime } , \\mathbf { b } _ { i } ^ { \\prime } \\} _ { i = 1 } ^ { k } } \\| \\mathbf { w } - \\displaystyle \\sum _ { i = 1 } ^ { k } \\alpha _ { i } ^ { \\prime } \\mathbf { b } _ { i } ^ { \\prime } \\| ^ { 2 } . } \\end{array}\n$$",
|
| 610 |
+
"text_format": "latex",
|
| 611 |
+
"bbox": [
|
| 612 |
+
331,
|
| 613 |
+
719,
|
| 614 |
+
665,
|
| 615 |
+
813
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "Denote the quantized weight as $\\begin{array} { r } { \\hat { \\mathbf { w } } = \\sum _ { i = 1 } ^ { k } \\alpha _ { i } \\mathbf { b } _ { i } } \\end{array}$ . In the forward propagation, we derive wˆ from the full precision w in the lower-level problem and apply it to the upper-level function $f ( \\cdot )$ , i.e., RNN in this paper. During the backward propagation, the derivative $\\frac { \\partial f } { \\partial \\hat { \\bf w } }$ is propagated back to w through the lower-level function. Due to the discreteness of $\\mathbf { b } _ { i }$ , it is very hard to model the implicit dependence2015), i.e., $\\hat { \\mathbf { w } }$ w. So we also adopt the “straight-through estimate” as (. To compute the derivative on the quantized hidden state urbariaux et al.,, the same trick $\\begin{array} { r } { \\frac { \\partial f } { \\partial \\mathbf { w } } = \\frac { \\partial f } { \\partial \\hat { \\mathbf { w } } } } \\end{array}$ $\\mathbf { h } _ { t }$ is applied. During the training, we find the same phenomenon as Hubara et al. (2016b) that some entries of w can grow very large, which become outliers and harm the quantization. Here we simply clip w in the range of $[ - 1 , 1 ]$ . ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
173,
|
| 624 |
+
820,
|
| 625 |
+
825,
|
| 626 |
+
926
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "table",
|
| 632 |
+
"img_path": "images/f32903099304297066dd8ad6f455d3ac7a116e7819460ab7ddb06790480a84eb.jpg",
|
| 633 |
+
"table_caption": [
|
| 634 |
+
"Table 1: Measurement on the approximation of different quantization methods, e.g., Uniform (Hubara et al., 2016b), Balanced (Zhou et al., 2017), Greedy (Guo et al., 2017), Refined (Guo et al., 2017), and our Alternating method, see Section 2. We apply these methods to quantize the full precision pre-trained weight of LSTM on the PTB dataset. The best values are in bold. W-bits represents the number of weight bits and FP denotes full precision. "
|
| 635 |
+
],
|
| 636 |
+
"table_footnote": [],
|
| 637 |
+
"table_body": "<table><tr><td rowspan=1 colspan=4>Relative MSE</td><td rowspan=1 colspan=4>Testing PPW</td></tr><tr><td rowspan=1 colspan=1>W-Bits</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>FP</td></tr><tr><td rowspan=1 colspan=1>Uniform</td><td rowspan=1 colspan=1>1.070</td><td rowspan=1 colspan=1>0.404</td><td rowspan=1 colspan=1>0.302</td><td rowspan=1 colspan=1>283.2</td><td rowspan=1 colspan=1>227.3</td><td rowspan=1 colspan=1>216.3</td><td rowspan=5 colspan=1>89.8</td></tr><tr><td rowspan=1 colspan=1>Balanced</td><td rowspan=1 colspan=1>0.891</td><td rowspan=1 colspan=1>0.745</td><td rowspan=1 colspan=1>0.702</td><td rowspan=1 colspan=1>10287.6</td><td rowspan=1 colspan=1>9106.4</td><td rowspan=1 colspan=1>8539.8</td></tr><tr><td rowspan=1 colspan=1>Greedy</td><td rowspan=1 colspan=1>0.146</td><td rowspan=1 colspan=1>0.071</td><td rowspan=1 colspan=1>0.042</td><td rowspan=1 colspan=1>118.9</td><td rowspan=1 colspan=1>99.4</td><td rowspan=1 colspan=1>95.0</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>0.137</td><td rowspan=1 colspan=1>0.060</td><td rowspan=1 colspan=1>0.030</td><td rowspan=1 colspan=1>105.3</td><td rowspan=1 colspan=1>95.4</td><td rowspan=1 colspan=1>93.1</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>0.125</td><td rowspan=1 colspan=1>0.043</td><td rowspan=1 colspan=1>0.019</td><td rowspan=1 colspan=1>103.1</td><td rowspan=1 colspan=1>93.8</td><td rowspan=1 colspan=1>91.4</td></tr></table>",
|
| 638 |
+
"bbox": [
|
| 639 |
+
215,
|
| 640 |
+
189,
|
| 641 |
+
782,
|
| 642 |
+
321
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 6
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "table",
|
| 648 |
+
"img_path": "images/729610687d61ece6eec8717ce1637b7af445998e4a11d89c3cb420d0e988385f.jpg",
|
| 649 |
+
"table_caption": [
|
| 650 |
+
"Table 2: Quantization on the full precision pre-trained weight of GRU on the PTB dataset. "
|
| 651 |
+
],
|
| 652 |
+
"table_footnote": [],
|
| 653 |
+
"table_body": "<table><tr><td rowspan=1 colspan=4>Relative MSE</td><td rowspan=1 colspan=4>Testing PPW</td></tr><tr><td rowspan=1 colspan=1>W-Bits</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>FP</td></tr><tr><td rowspan=1 colspan=1>Uniform</td><td rowspan=1 colspan=1>6.138</td><td rowspan=1 colspan=1>3.920</td><td rowspan=1 colspan=1>3.553</td><td rowspan=1 colspan=1>3161906.6</td><td rowspan=1 colspan=1>771259.6</td><td rowspan=1 colspan=1>715781.9</td><td rowspan=5 colspan=1>92.5</td></tr><tr><td rowspan=1 colspan=1>Balanced</td><td rowspan=1 colspan=1>1.206</td><td rowspan=1 colspan=1>1.054</td><td rowspan=1 colspan=1>1.006</td><td rowspan=1 colspan=1>2980.4</td><td rowspan=1 colspan=1>3396.3</td><td rowspan=1 colspan=1>3434.1</td></tr><tr><td rowspan=1 colspan=1>Greedy</td><td rowspan=1 colspan=1>0.377</td><td rowspan=1 colspan=1>0.325</td><td rowspan=1 colspan=1>0.304</td><td rowspan=1 colspan=1>135.7</td><td rowspan=1 colspan=1>105.5</td><td rowspan=1 colspan=1>99.2</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>0.128</td><td rowspan=1 colspan=1>0.055</td><td rowspan=1 colspan=1>0.030</td><td rowspan=1 colspan=1>111.6</td><td rowspan=1 colspan=1>99.1</td><td rowspan=1 colspan=1>97.0</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>0.120</td><td rowspan=1 colspan=1>0.044</td><td rowspan=1 colspan=1>0.021</td><td rowspan=1 colspan=1>110.3</td><td rowspan=1 colspan=1>97.3</td><td rowspan=1 colspan=1>95.2</td></tr></table>",
|
| 654 |
+
"bbox": [
|
| 655 |
+
191,
|
| 656 |
+
375,
|
| 657 |
+
807,
|
| 658 |
+
507
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 6
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "",
|
| 665 |
+
"bbox": [
|
| 666 |
+
176,
|
| 667 |
+
541,
|
| 668 |
+
823,
|
| 669 |
+
570
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 6
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "5 EXPERIMENTS ON THE LANGUAGE MODELS ",
|
| 676 |
+
"text_level": 1,
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
593,
|
| 680 |
+
573,
|
| 681 |
+
609
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 6
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "In this section, we conduct quantization experiments on language models. The two most well-known recurrent neural networks, i.e., LSTM (Hochreiter & Schmidhuber, 1997) and GRU (Cho et al., 2014), are evaluated. As they are to predict the next word, the performance is measured by perplexity per word (PPW) metric. For all experiments, we initialize with the pre-trained model and using vanilla SGD. The initial learning rate is set to 20. Every epoch we evaluate on the validation dataset and record the best value. When the validation error exceeds the best record, we decrease learning rate by a factor of 1.2. Training is terminated once the learning rate less than 0.001 or reaching the maximum epochs, i.e., 80. The gradient norm is clipped in the range $[ - 0 . 2 5 , 0 . 2 5 ]$ . We unroll the network for 30 time steps and regularize it with the standard dropout (probability of dropping out units equals to 0.5) (Zaremba et al., 2014). For simplicity of notation, we denote the methods using uniform, balanced, greedy, refined greedy, and our alternating quantization as Uniform, Balanced, Greedy, Refined, and Alternating, respectively. ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
173,
|
| 690 |
+
626,
|
| 691 |
+
825,
|
| 692 |
+
792
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 6
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "Peen Tree Bank. We first conduct experiments on the Peen Tree Bank (PTB) corpus (Marcus et al., 1993), using the standard preprocessed splits with a 10K size vocabulary (Mikolov, 2012). The PTB dataset contains 929K training tokens, 73K validation tokens, and 82K test tokens. For fair comparison with existing works, we also use LSTM and GRU with 1 hidden layer of size 300. To have a glance at the approximation ability of different quantization methods as detailed in Section 2, we firstly conduct experiments by directly quantizing the trained full precision weight (neither quantization on activation nor retraining). Results on LSTM and GRU are shown in Table 1 and Table 2, respectively. The left parts record the relative mean squared error of quantized weight matrices with full precision one. We can see that our proposed Alternating can get much lower error across all varying bit. We also measure the testing PPW for the quantized weight as shown in the right parts of Table 1 and 2. The results are in consistent with the left part, where less errors result in lower testing PPW. Note that Uniform and Balanced quantization are rule-based and not aim at minimizing the error. Thus they can have much worse result by direct approximation. We also repeat the experiment on other datasets. For both LSTM and GRU, the results are very similar to here. ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
173,
|
| 701 |
+
799,
|
| 702 |
+
825,
|
| 703 |
+
925
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 6
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "table",
|
| 709 |
+
"img_path": "images/ba8c5690b3e5b70c799fda90fcf21856451bf9c6406275f771c2b232ad9d62ba.jpg",
|
| 710 |
+
"table_caption": [
|
| 711 |
+
"Table 3: Testing PPW of multi-bit quantized LSTM and GRU on the PTB dataset. W-Bits and A-Bits represent the number of weight and activation bits, respectively. "
|
| 712 |
+
],
|
| 713 |
+
"table_footnote": [],
|
| 714 |
+
"table_body": "<table><tr><td rowspan=1 colspan=6>LSTM</td><td rowspan=1 colspan=5>GRU</td></tr><tr><td rowspan=1 colspan=1>W-Bits /A-Bits</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>4/4</td><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>4/4</td><td rowspan=1 colspan=1>FP/FP</td></tr><tr><td rowspan=1 colspan=1>Uniform</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>220</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>97</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>Balanced</td><td rowspan=1 colspan=1>126</td><td rowspan=1 colspan=1>123</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>114</td><td rowspan=1 colspan=1>107</td><td rowspan=1 colspan=1>142</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>116</td><td rowspan=1 colspan=1>100</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>100.3</td><td rowspan=1 colspan=1>95.6</td><td rowspan=1 colspan=1>91.3</td><td rowspan=1 colspan=1>二</td><td rowspan=2 colspan=1>89.8</td><td rowspan=1 colspan=1>105.1</td><td rowspan=1 colspan=1>100.3</td><td rowspan=1 colspan=1>95.9</td><td rowspan=1 colspan=1>二</td><td rowspan=2 colspan=1>92.5</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>95.8</td><td rowspan=1 colspan=1>91.9</td><td rowspan=1 colspan=1>87.9</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>101.2</td><td rowspan=1 colspan=1>97.0</td><td rowspan=1 colspan=1>92.9</td><td rowspan=1 colspan=1>1</td></tr></table>",
|
| 715 |
+
"bbox": [
|
| 716 |
+
173,
|
| 717 |
+
159,
|
| 718 |
+
836,
|
| 719 |
+
275
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 7
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "table",
|
| 725 |
+
"img_path": "images/c95dc3c93c0f67f6b4ae0592e295793741389ebfde8607035d46c48e0d20929b.jpg",
|
| 726 |
+
"table_caption": [
|
| 727 |
+
"Table 4: Testing PPW of multi-bit quantized LSTM and GRU on the WikiText-2 dataset. "
|
| 728 |
+
],
|
| 729 |
+
"table_footnote": [],
|
| 730 |
+
"table_body": "<table><tr><td rowspan=1 colspan=5>LSTM</td><td rowspan=1 colspan=4>GRU</td></tr><tr><td rowspan=1 colspan=1>W-Bits / A-Bits</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>FP/FP</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>108.7</td><td rowspan=1 colspan=1>105.8</td><td rowspan=1 colspan=1>102.2</td><td rowspan=2 colspan=1>100.1</td><td rowspan=1 colspan=1>117.2</td><td rowspan=1 colspan=1>114.1</td><td rowspan=1 colspan=1>111.8</td><td rowspan=2 colspan=1>106.7</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>106.1</td><td rowspan=1 colspan=1>102.7</td><td rowspan=1 colspan=1>98.7</td><td rowspan=1 colspan=1>113.7</td><td rowspan=1 colspan=1>110.2</td><td rowspan=1 colspan=1>106.4</td></tr></table>",
|
| 731 |
+
"bbox": [
|
| 732 |
+
194,
|
| 733 |
+
333,
|
| 734 |
+
803,
|
| 735 |
+
412
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 7
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "table",
|
| 741 |
+
"img_path": "images/23fa33df4e12d12ae42ad0561f53ecd571c860478cc26c956f6a0b8e09396296.jpg",
|
| 742 |
+
"table_caption": [
|
| 743 |
+
"Table 5: Testing PPW of multi-bit quantized LSTM and GRU on the Text8 dataset. "
|
| 744 |
+
],
|
| 745 |
+
"table_footnote": [],
|
| 746 |
+
"table_body": "<table><tr><td rowspan=1 colspan=5>LSTM</td><td rowspan=1 colspan=4>GRU</td></tr><tr><td rowspan=1 colspan=1>W-Bits / A-Bits</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>2/3</td><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>FP/FP</td></tr><tr><td rowspan=1 colspan=1>Refined</td><td rowspan=1 colspan=1>135.6</td><td rowspan=1 colspan=1>122.3</td><td rowspan=1 colspan=1>110.2</td><td rowspan=2 colspan=1>101.1</td><td rowspan=1 colspan=1>135.8</td><td rowspan=1 colspan=1>126.9</td><td rowspan=1 colspan=1>118.3</td><td rowspan=2 colspan=1>111.6</td></tr><tr><td rowspan=1 colspan=1>Alternating (ours)</td><td rowspan=1 colspan=1>108.8</td><td rowspan=1 colspan=1>105.1</td><td rowspan=1 colspan=1>98.8</td><td rowspan=1 colspan=1>124.5</td><td rowspan=1 colspan=1>118.7</td><td rowspan=1 colspan=1>114.0</td></tr></table>",
|
| 747 |
+
"bbox": [
|
| 748 |
+
194,
|
| 749 |
+
472,
|
| 750 |
+
803,
|
| 751 |
+
549
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 7
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "text",
|
| 757 |
+
"text": "",
|
| 758 |
+
"bbox": [
|
| 759 |
+
173,
|
| 760 |
+
590,
|
| 761 |
+
825,
|
| 762 |
+
661
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 7
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "We then conduct experiments by quantizing both weights and activations. We train with the batch size 20. The final result is shown in Table 3. Besides comparing with the existing works, we also conduct experiment for Refined as a competitive baseline. We do not include Greedy as it is already shown to be much inferior to the refined one, see, e.g., Table 1 and 2. As Table 3 shows, our full precision model can attain lower PPW than the existing works. However, when considering the gap between quantized model with the full precision one, our alternating quantized neural network is still far better than existing works, i.e., Uniform (Hubara et al., 2016b) and Balanced (Zhou et al., 2017). Compared with Refined, our Alternating quantization can achieve compatible performance using 1-bit less quantization on weights or activations. In other words, under the same tolerance of accuracy drop, Alternating executes faster and uses less memory than Refined. We can see that our $3 / 3$ weights/activations quantized LSTM can achieve even better performance than full precision one. A possible explanation is due to the regularization introduced by quantization (Hubara et al., 2016b). ",
|
| 769 |
+
"bbox": [
|
| 770 |
+
173,
|
| 771 |
+
667,
|
| 772 |
+
825,
|
| 773 |
+
834
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 7
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "WikiText-2 (Merity et al., 2017) is a dataset released recently as an alternative to PTB. It contains 2088K training, 217K validation, and 245K test tokens, and has a vocabulary of 33K words, which is roughly 2 times larger in dataset size, and 3 times larger in vocabulary than PTB. We train with one layer’s hidden state of size 512 and set the batch size to 100. The result is shown in Table 4. Similar to PTB, our Alternating can use 1-bit less quantization to attain compatible or even lower PPW than Refined. ",
|
| 780 |
+
"bbox": [
|
| 781 |
+
173,
|
| 782 |
+
842,
|
| 783 |
+
825,
|
| 784 |
+
925
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 7
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "Text8. In order to determine whether Alternating remains effective with a larger dataset, we perform experiments on the Text8 corpus (Mikolov et al., 2014). Here we follow the same setting as (Xie et al., 2017). The first 90M characters are used for training, the next 5M for validation, and the final 5M for testing, resulting in 15.3M training tokens, 848K validation tokens, and 855K test tokens. We also preprocess the data by mapping all words which appear 10 or fewer times to the unknown token, resulting in a 42K size vocabulary. We train LSTM and GRU with one hidden layer of size 1024 and set the batch size to 100. The result is shown in Table 5. For LSTM on the left part, Alternating achieves excellent performance. By only 2-bit quantization on weights and activations, it exceeds Refined with 3-bit. The 2-bit result is even better than that reported in (Xie et al., 2017), where LSTM adding noising schemes for regularization can only attain 110.6 testing PPW. For GRU on the right part, although Alternating is much better than Refined, the 3-bit quantization still has gap with full precision one. We attribute that to the unified setting of hyper-parameters across all experiments. With specifically tuned hyper-parameters on this dataset, one may make up for that gap. ",
|
| 791 |
+
"bbox": [
|
| 792 |
+
174,
|
| 793 |
+
104,
|
| 794 |
+
825,
|
| 795 |
+
285
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 8
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "Note that our alternating quantization is a general technique. It is not only suitable for language models here. For a comprehensive verification, we apply it to image classification tasks. In both RNNs and feedforward neural networks, our alternating quantization also achieves the lowest testing error among all compared methods. Due to space limitation, we deter the results to Appendix B. ",
|
| 802 |
+
"bbox": [
|
| 803 |
+
174,
|
| 804 |
+
292,
|
| 805 |
+
825,
|
| 806 |
+
348
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 8
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "text",
|
| 812 |
+
"text": "6 CONCLUSIONS ",
|
| 813 |
+
"text_level": 1,
|
| 814 |
+
"bbox": [
|
| 815 |
+
176,
|
| 816 |
+
367,
|
| 817 |
+
328,
|
| 818 |
+
383
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 8
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "In this work, we address the limitations of RNNs, i.e., large memory and high latency, by quantization. We formulate the quantization by minimizing the approximation error. Under the key observation that some parameters can be singled out when others fixed, a simple yet effective alternating method is proposed. We apply it to quantize LSTM and GRU on language models. By 2-bit weights and activations, we achieve only a reasonably accuracy loss compared with full precision one, with ${ \\sim } 1 6 \\times$ reduction in memory and ${ \\sim } 6 \\times$ real acceleration on CPUs. By 3-bit quantization, we can attain compatible or even better result than the full precision one, with ${ \\sim } 1 0 . 5 \\times$ reduction in memory and ${ \\sim } 3 \\times$ real acceleration. Both beat existing works with a large margin. We also apply our alternating quantization to image classification tasks. In both RNNs and feedforward neural networks, the method can still achieve very plausible performance. ",
|
| 825 |
+
"bbox": [
|
| 826 |
+
174,
|
| 827 |
+
398,
|
| 828 |
+
825,
|
| 829 |
+
537
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 8
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "7 ACKNOWLEDGEMENTS ",
|
| 836 |
+
"text_level": 1,
|
| 837 |
+
"bbox": [
|
| 838 |
+
176,
|
| 839 |
+
558,
|
| 840 |
+
398,
|
| 841 |
+
573
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 8
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "We would like to thank the reviewers for their suggestions on the manuscript. Zhouchen Lin is supported by National Basic Research Program of China (973 Program) (grant no. 2015CB352502), National Natural Science Foundation (NSF) of China (grant nos. 61625301 and 61731018), Qualcomm, and Microsoft Research Asia. Hongbin Zha is supported by Natural Science Foundation (NSF) of China (No. 61632003). ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
588,
|
| 851 |
+
825,
|
| 852 |
+
657
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 8
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "text",
|
| 858 |
+
"text": "REFERENCES ",
|
| 859 |
+
"text_level": 1,
|
| 860 |
+
"bbox": [
|
| 861 |
+
174,
|
| 862 |
+
679,
|
| 863 |
+
285,
|
| 864 |
+
694
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 8
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "Kyunghyun Cho, Bart Van Merriënboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv:1406.1078, 2014. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
702,
|
| 874 |
+
823,
|
| 875 |
+
743
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 8
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "Benoît Colson, Patrice Marcotte, and Gilles Savard. An overview of bilevel optimization. Annals of Operations Research, 153(1):235–256, 2007. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
173,
|
| 884 |
+
751,
|
| 885 |
+
825,
|
| 886 |
+
780
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 8
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Tim Cooijmans, Nicolas Ballas, César Laurent, Çaglar Gülçehre, and Aaron Courville. Recurrent ˘ batch normalization. In ICLR, 2017. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
174,
|
| 895 |
+
786,
|
| 896 |
+
821,
|
| 897 |
+
816
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. In NIPS, pp. 3123–3131, 2015. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
173,
|
| 906 |
+
824,
|
| 907 |
+
823,
|
| 908 |
+
853
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 8
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv:1412.6115, 2014. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
173,
|
| 917 |
+
859,
|
| 918 |
+
823,
|
| 919 |
+
888
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 8
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, pp. 6645–6649. IEEE, 2013. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
173,
|
| 928 |
+
896,
|
| 929 |
+
825,
|
| 930 |
+
925
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 8
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Yiwen Guo, Anbang Yao, Hao Zhao, and Yurong Chen. Network sketching: Exploiting binary structure in deep cnns. In CVPR, 2017. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
173,
|
| 939 |
+
104,
|
| 940 |
+
823,
|
| 941 |
+
133
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 9
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In NIPS, pp. 1135–1143, 2015. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
173,
|
| 950 |
+
142,
|
| 951 |
+
823,
|
| 952 |
+
171
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 9
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. In ICLR, 2016. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
173,
|
| 961 |
+
179,
|
| 962 |
+
823,
|
| 963 |
+
209
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 9
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural Computation, 9(8): 1735–1780, 1997. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
173,
|
| 972 |
+
217,
|
| 973 |
+
825,
|
| 974 |
+
246
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 9
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Lu Hou, Quanming Yao, and James T Kwok. Loss-aware binarization of deep networks. In ICLR, 2017. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
171,
|
| 983 |
+
255,
|
| 984 |
+
826,
|
| 985 |
+
285
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 9
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks. In NIPS, pp. 4107–4115. 2016a. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
173,
|
| 994 |
+
292,
|
| 995 |
+
825,
|
| 996 |
+
321
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 9
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. arXiv:1609.07061, 2016b. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
176,
|
| 1005 |
+
330,
|
| 1006 |
+
825,
|
| 1007 |
+
373
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 9
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, pp. 448–456, 2015. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
381,
|
| 1017 |
+
823,
|
| 1018 |
+
411
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 9
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv:1405.3866, 2014. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
174,
|
| 1027 |
+
419,
|
| 1028 |
+
820,
|
| 1029 |
+
449
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 9
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
173,
|
| 1038 |
+
457,
|
| 1039 |
+
797,
|
| 1040 |
+
473
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 9
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan Oseledets, and Victor Lempitsky. Speedingup convolutional neural networks using fine-tuned cp-decomposition. arXiv:1412.6553, 2014. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
176,
|
| 1049 |
+
481,
|
| 1050 |
+
821,
|
| 1051 |
+
511
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 9
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "Fengfu Li, Bo Zhang, and Bin Liu. Ternary weight networks. arXiv:1605.04711, 2016. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
173,
|
| 1060 |
+
518,
|
| 1061 |
+
748,
|
| 1062 |
+
534
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 9
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Zefan Li, Bingbing Ni, Wenjun Zhang, Xiaokang Yang, and Wen Gao. Performance guaranteed network acceleration via high-order residual quantization. In ICCV, pp. 2584–2592, 2017. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
173,
|
| 1071 |
+
542,
|
| 1072 |
+
823,
|
| 1073 |
+
571
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 9
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Baoyuan Liu, Min Wang, Hassan Foroosh, Marshall Tappen, and Marianna Pensky. Sparse convolutional neural networks. In CVPR, pp. 806–814, 2015. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
174,
|
| 1082 |
+
579,
|
| 1083 |
+
825,
|
| 1084 |
+
609
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 9
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational Linguistics, 19(2):313–330, 1993. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
171,
|
| 1093 |
+
617,
|
| 1094 |
+
823,
|
| 1095 |
+
647
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 9
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In ICLR, 2017. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
173,
|
| 1104 |
+
655,
|
| 1105 |
+
823,
|
| 1106 |
+
684
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 9
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "Tomáš Mikolov. Statistical Language Models Based on Neural Networks. PhD thesis, Brno University of Technology, 2012. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
173,
|
| 1115 |
+
693,
|
| 1116 |
+
825,
|
| 1117 |
+
723
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 9
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "Tomáš Mikolov, Martin Karafiát, Lukáš Burget, Jan Cernocký, and Sanjeev Khudanpur. Recurrent ˇ neural network based language model. In INTERSPEECH, pp. 1045–1048, 2010. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
174,
|
| 1126 |
+
731,
|
| 1127 |
+
821,
|
| 1128 |
+
762
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 9
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Tomáš Mikolov, Armand Joulin, Sumit Chopra, Michael Mathieu, and Marc’Aurelio Ranzato. Learning longer memory in recurrent neural networks. arXiv:1412.7753, 2014. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
174,
|
| 1137 |
+
768,
|
| 1138 |
+
821,
|
| 1139 |
+
799
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 9
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. XNOR-Net: Imagenet classification using binary convolutional neural networks. In ECCV, pp. 525–542. Springer, 2016. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
173,
|
| 1148 |
+
806,
|
| 1149 |
+
823,
|
| 1150 |
+
837
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 9
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Tara N Sainath, Brian Kingsbury, Vikas Sindhwani, Ebru Arisoy, and Bhuvana Ramabhadran. Lowrank matrix factorization for deep neural network training with high-dimensional output targets. In ICASSP, pp. 6655–6659. IEEE, 2013. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
174,
|
| 1159 |
+
844,
|
| 1160 |
+
823,
|
| 1161 |
+
887
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 9
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
171,
|
| 1170 |
+
896,
|
| 1171 |
+
825,
|
| 1172 |
+
925
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 9
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In NIPS, pp. 3104–3112, 2014. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
173,
|
| 1181 |
+
104,
|
| 1182 |
+
825,
|
| 1183 |
+
133
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 10
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Cheng Tai, Tong Xiao, Yi Zhang, Xiaogang Wang, and Weinan E. Convolutional neural networks with low-rank regularization. In ICLR, 2016. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
173,
|
| 1192 |
+
142,
|
| 1193 |
+
823,
|
| 1194 |
+
171
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 10
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In CVPR, pp. 3156–3164, 2015. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
173,
|
| 1203 |
+
179,
|
| 1204 |
+
823,
|
| 1205 |
+
209
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 10
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In NIPS, pp. 2074–2082, 2016. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
173,
|
| 1214 |
+
217,
|
| 1215 |
+
823,
|
| 1216 |
+
247
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 10
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv:1609.08144, 2016. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
176,
|
| 1225 |
+
255,
|
| 1226 |
+
823,
|
| 1227 |
+
299
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 10
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Ziang Xie, Sida I Wang, Jiwei Li, Daniel Lévy, Aiming Nie, Dan Jurafsky, and Andrew Y Ng. Data noising as smoothing in neural network language models. In ICLR, 2017. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
173,
|
| 1236 |
+
306,
|
| 1237 |
+
823,
|
| 1238 |
+
337
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 10
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv:1409.2329, 2014. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
174,
|
| 1247 |
+
344,
|
| 1248 |
+
823,
|
| 1249 |
+
373
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 10
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "Shu-Chang Zhou, Yu-Zhi Wang, He Wen, Qin-Yao He, and Yu-Heng Zou. Balanced quantization: An effective and efficient approach to quantized neural networks. Journal of Computer Science and Technology, 32(4):667–682, 2017. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
174,
|
| 1258 |
+
382,
|
| 1259 |
+
823,
|
| 1260 |
+
425
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 10
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv:1606.06160, 2016. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
174,
|
| 1269 |
+
434,
|
| 1270 |
+
823,
|
| 1271 |
+
463
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 10
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Chenzhuo Zhu, Song Han, Huizi Mao, and William J Dally. Trained ternary quantization. In ICLR, 2017. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
174,
|
| 1280 |
+
472,
|
| 1281 |
+
825,
|
| 1282 |
+
501
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 10
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "APPENDIX ",
|
| 1289 |
+
"text_level": 1,
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
174,
|
| 1292 |
+
99,
|
| 1293 |
+
313,
|
| 1294 |
+
122
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 11
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "A BINARY MATRIX VECTOR MULTIPLICATION IN CPUS ",
|
| 1301 |
+
"text_level": 1,
|
| 1302 |
+
"bbox": [
|
| 1303 |
+
176,
|
| 1304 |
+
141,
|
| 1305 |
+
656,
|
| 1306 |
+
159
|
| 1307 |
+
],
|
| 1308 |
+
"page_idx": 11
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"type": "table",
|
| 1312 |
+
"img_path": "images/c58b568effb55005c4a79120a2de80894348d8eb77a7e44fbac6d27f8da343f2.jpg",
|
| 1313 |
+
"table_caption": [
|
| 1314 |
+
"Table 6: Computing time of the binary matrix vector multiplication in CPUs, where Quant represents the cost to execute our alternating quantization on-line. "
|
| 1315 |
+
],
|
| 1316 |
+
"table_footnote": [],
|
| 1317 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Weight Size</td><td rowspan=1 colspan=1>W-Bits / A-Bits</td><td rowspan=1 colspan=1>Total (ms)</td><td rowspan=1 colspan=1>Quant (ms)</td><td rowspan=1 colspan=1>Quant / Total</td><td rowspan=1 colspan=1>Acceleration</td></tr><tr><td rowspan=3 colspan=1>4096 × 1024</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>0.35</td><td rowspan=1 colspan=1>0.07</td><td rowspan=1 colspan=1>20%</td><td rowspan=1 colspan=1>5.6x</td></tr><tr><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>0.72</td><td rowspan=1 colspan=1>0.11</td><td rowspan=1 colspan=1>15%</td><td rowspan=1 colspan=1>2.7x</td></tr><tr><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>1.95</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>1.0×</td></tr><tr><td rowspan=3 colspan=1>42000 × 1024</td><td rowspan=1 colspan=1>2/2</td><td rowspan=1 colspan=1>3.17</td><td rowspan=1 colspan=1>0.07</td><td rowspan=1 colspan=1>2.2%</td><td rowspan=1 colspan=1>6.0×</td></tr><tr><td rowspan=1 colspan=1>3/3</td><td rowspan=1 colspan=1>6.46</td><td rowspan=1 colspan=1>0.11</td><td rowspan=1 colspan=1>1.7%</td><td rowspan=1 colspan=1>3.0x</td></tr><tr><td rowspan=1 colspan=1>FP/FP</td><td rowspan=1 colspan=1>19.10</td><td rowspan=1 colspan=1>二</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1.0x</td></tr></table>",
|
| 1318 |
+
"bbox": [
|
| 1319 |
+
207,
|
| 1320 |
+
223,
|
| 1321 |
+
790,
|
| 1322 |
+
356
|
| 1323 |
+
],
|
| 1324 |
+
"page_idx": 11
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"type": "text",
|
| 1328 |
+
"text": "In this section, we discuss the implementation of the binary multiplication kernel in CPUs. The binary multiplication is divided into two steps: Entry-wise XNOR operation (corresponding to entry-wise product in the full precision multiplication) and bit count operation for accumulation (corresponding to compute the sum of all multiplied entries in the full precision multiplication). We test it on Intel Xeon E5-2682 v4 $@$ 2.50 GHz CPU. For the XNOR operation, we use the Single instruction, multiple data (SIMD) _mm256 _xor_ps, which can execute 256 bit simultaneously. For the bit count operation, we use the function _popcnt64 (Note that this step can further be accelerated by the up-coming instruction _mm512 _popcnt_epi64 , which can execute 512 bits simultaneously. Similarly, the XNOR operation can also be further accelerated by the up-coming _mm512 _xor_ps instruction to execute 512 bits simultaneously). We compare with the much optimized Intel Math Kernel Library (MKL) on full precision matrix vector multiplication and execute all codes in the single-thread mode. We conduct two scales of experiments: a matrix of size $4 0 9 6 \\times 1 0 2 4$ multiplying a vector of size 1024 and a matrix of size $4 2 0 0 0 \\times 1 0 2 4$ multiplying a vector of size 1024, which respectively correspond to the hidden state product ${ \\bf W } _ { h } \\mathbf h _ { t - 1 }$ and the softmax layer $\\mathbf { W } _ { s } \\mathbf { h } _ { t }$ for Text8 dataset during inference with batch size of 1 (See Eq. (6)). The results are shown in Table 6. We can see that our alternating quantization step only accounts for a small portion of the total executing time, especially for the larger scale matrix vector multiplication. Compared with the full precision one, the binary multiplication can roughly achieve $6 \\times$ acceleration with 2-bit quantization and $3 \\times$ acceleration with 3-bit quantization. Note that this is only a simple test on CPU. Our alternating quantization method can also be extended to GPU, ASIC, and FPGA. ",
|
| 1329 |
+
"bbox": [
|
| 1330 |
+
173,
|
| 1331 |
+
378,
|
| 1332 |
+
825,
|
| 1333 |
+
656
|
| 1334 |
+
],
|
| 1335 |
+
"page_idx": 11
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "text",
|
| 1339 |
+
"text": "B IMAGE CLASSIFICATION ",
|
| 1340 |
+
"text_level": 1,
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
176,
|
| 1343 |
+
678,
|
| 1344 |
+
411,
|
| 1345 |
+
694
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 11
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "Sequential MNIST. As a simple illustration to show that our alternating quantization is not limited for texts, we conduct experiments on the sequential MNIST classification task (Cooijmans et al., 2017). The dataset consists of a training set of 60K and a test set of 10K $2 8 \\times 2 8$ gray-scale images. Here we divide the last 5000 training images for validation. In every time, we sequentially use one row of the image as the input $( 2 8 \\times 1 )$ , which results in a total of 28 time steps. We use 1 hidden layer’s LSTM of size 128 and the same optimization hyper-parameters as the language models. Besides the weights and activations, the inputs are quantized. The testing error rates for 1-bit input, 2-bit weight, and 2-bit activation are shown in 7, where our alternating quantized method still achieves plausible performance in this task. ",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
173,
|
| 1354 |
+
708,
|
| 1355 |
+
825,
|
| 1356 |
+
834
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 11
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "MLP on MNIST. The alternating quantization proposed in this work is a general technique. It is not only suitable for RNNs, but also for feed-forward neural networks. As an example, we firstly conduct a classification task on MNIST and compare with existing work (Li et al., 2017). The method proposed in (Li et al., 2017) is intrinsically a greedy multi-bit quantization method. For fair comparison, we follow the same setting. We use the MLP consisting of 3 hidden layers of 4096 units and an L2-SVM output layer. No convolution, preprocessing, data augmentation or pre-training is used. We also use ADAM (Kingma & Ba, 2015) with an exponentially decaying learning rate and Batch Normalization (Ioffe & Szegedy, 2015) with a batch size 100. The testing error rates for 2-bit input, 2-bit weight, and 1-bit activation are shown in Table 8. Among all the compared multi-bit quantization methods, our alternating one achieves the lowest testing error. ",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
174,
|
| 1365 |
+
842,
|
| 1366 |
+
825,
|
| 1367 |
+
925
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 11
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "table",
|
| 1373 |
+
"img_path": "images/4183c4ab1dd729051f0b41d54236233f2a36fce011e430c3c102643c8b56f0a6.jpg",
|
| 1374 |
+
"table_caption": [
|
| 1375 |
+
"Table 7: Testing error rate of LSTM on MNIST with 1-bit input, 2-bit weight, and 2-bit activation. "
|
| 1376 |
+
],
|
| 1377 |
+
"table_footnote": [],
|
| 1378 |
+
"table_body": "<table><tr><td>Methods</td><td>Testing Error Rate</td></tr><tr><td>Full Precision</td><td>1.10%</td></tr><tr><td>Refined (Guo et al., 2017)</td><td>1.39 %</td></tr><tr><td>Alternating (ours)</td><td>1.19 %</td></tr></table>",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
297,
|
| 1381 |
+
133,
|
| 1382 |
+
699,
|
| 1383 |
+
215
|
| 1384 |
+
],
|
| 1385 |
+
"page_idx": 12
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"type": "table",
|
| 1389 |
+
"img_path": "images/2db25ca1b311a6cee1fa97c6405857f50a5235acb206b1d79adb870e7d3d28c1.jpg",
|
| 1390 |
+
"table_caption": [
|
| 1391 |
+
"Table 8: Testing error rate of MLP on MNIST with 2-bit input, 2-bit weight, and 1-bit activation. "
|
| 1392 |
+
],
|
| 1393 |
+
"table_footnote": [],
|
| 1394 |
+
"table_body": "<table><tr><td>Methods</td><td>Testing Error Rate</td></tr><tr><td>Full Precision</td><td>0.97%</td></tr><tr><td>Greedy (reported in (Li et al., 2017))</td><td>1.25 %</td></tr><tr><td>Refined (Guo et al., 2017)</td><td>1.22 %</td></tr><tr><td>Alternating (ours)</td><td>1.13 %</td></tr></table>",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
297,
|
| 1397 |
+
265,
|
| 1398 |
+
700,
|
| 1399 |
+
366
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 12
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "table",
|
| 1405 |
+
"img_path": "images/58dec78e7c2bec79342f864100c73605dec346046df51c04b9b1b39de7b17bd0.jpg",
|
| 1406 |
+
"table_caption": [
|
| 1407 |
+
"Table 9: Testing error rate of CNN on CIFAR-10 with 2-bit weight and 1-bit activation. "
|
| 1408 |
+
],
|
| 1409 |
+
"table_footnote": [],
|
| 1410 |
+
"table_body": "<table><tr><td>Methods</td><td>Testing Error Rate</td></tr><tr><td>Full Precision (reported in (Hou et al., 2017))</td><td>11.90 %</td></tr><tr><td> XNOR-Net (1-bit weight & activation, reported in (Hou et al., 2017))</td><td>12.62 %</td></tr><tr><td>Refined (Guo et al., 2017)</td><td>12.08 %</td></tr><tr><td>Alternating (ours)</td><td>11.70 %</td></tr></table>",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
187,
|
| 1413 |
+
415,
|
| 1414 |
+
810,
|
| 1415 |
+
515
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 12
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
173,
|
| 1424 |
+
545,
|
| 1425 |
+
825,
|
| 1426 |
+
602
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 12
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "CNN on CIFAR-10. We then conduct experiments on CIFAR-10 and follow the same setting as (Hou et al., 2017). That is, we use 45000 images for training, another 5000 for validation, and the remaining 10000 for testing. The images are preprocessed with global contrast normalization and ZCA whitening. We also use the VGG-like architecture (Simonyan & Zisserman, 2015): ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
173,
|
| 1435 |
+
608,
|
| 1436 |
+
825,
|
| 1437 |
+
665
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 12
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "equation",
|
| 1443 |
+
"img_path": "images/f2aa9d0bd3120c840c1eb4659c2dd952a2386d59d918bff7d0bb2ad9efbc083a.jpg",
|
| 1444 |
+
"text": "$$\n( 2 \\times 1 2 8 ~ \\mathrm { C 3 } ) - \\mathrm { M P 2 - ( 2 \\times 2 5 6 ~ \\mathrm { C 3 } ) - M P 2 - ( 2 \\times 5 1 2 ~ \\mathrm { C 3 } ) - M P 2 - ( 2 \\times 1 0 2 4 ~ \\mathrm { F C } ) - 1 0 ~ \\mathrm { S V M } }\n$$",
|
| 1445 |
+
"text_format": "latex",
|
| 1446 |
+
"bbox": [
|
| 1447 |
+
171,
|
| 1448 |
+
671,
|
| 1449 |
+
771,
|
| 1450 |
+
688
|
| 1451 |
+
],
|
| 1452 |
+
"page_idx": 12
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"type": "text",
|
| 1456 |
+
"text": "where C3 is a $3 \\times 3$ convolution layer, and MP2 is a $2 \\times 2$ max-pooling layer. Batch Normalization, with a mini-batch size of 50, and ADAM are used. The maximum number of epochs is 200. The learning rate starts at 0.02 and decays by a factor of 0.5 after every 30 epochs. The testing error rates for 2-bit weight and 1-bit activation are shown in Table 9, where our alternating method again achieves the lowest test error rate among all compared quantization methods. ",
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
173,
|
| 1459 |
+
693,
|
| 1460 |
+
825,
|
| 1461 |
+
763
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 12
|
| 1464 |
+
}
|
| 1465 |
+
]
|
parse/train/S19dR9x0b/S19dR9x0b_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S19dR9x0b/S19dR9x0b_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJzvDjAcK7/SJzvDjAcK7.md
ADDED
|
@@ -0,0 +1,484 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# INTRIGUING PROPERTIES OF LEARNED REPRESENTA-TIONS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
A key feature of neural networks, particularly deep convolutional neural networks, is their ability to “learn” useful representations from data. The very last layer of a neural network is then simply a linear model trained on these “learned” representations. Despite their numerous applications in other tasks such as classification, retrieval, clustering etc., a.k.a. transfer learning, not much work has been published that investigates the structure of these representations or indeed whether structure can be imposed on them during the training process.
|
| 8 |
+
|
| 9 |
+
In this paper, we study the effective dimensionality of the learned representations by models that have proved highly successful for image classification. We focus on ResNet-18, ResNet-50 and VGG-19 and observe that when trained on CIFAR10 or CIFAR100, the learned representations exhibit a fairly low rank structure. We propose a modification to the training procedure, which further encourages low rank structure on learned activations. Empirically, we show that this has implications for robustness to adversarial examples and compression.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Among the many successes of deep (convolutional) neural networks, an intriguing aspect has been their ability to generate representations of raw data that are useful in several tasks, usually known as representation learning. In the early days of deep learning, it was common to use unsupervised learning models, e.g. auto-encoders or Restricted Boltzmann machines, to learn useful representations of complex data (Hinton & Salakhutdinov, 2006; Vincent et al., 2010); more recently, it has been observed that hidden layers of neural networks trained in a completely supervised fashion can also be used as learned representations Zeiler & Fergus (2014); Sermanet et al. (2014); Donahue et al. (2014).
|
| 14 |
+
|
| 15 |
+
Essentially, for most models trained in a supervised fashion, the vector of activations in the penultimate layer (or at least in a layer close to the output) is a learned representation of the raw (for the purposes of this paper image) data. The final layer of a neural network is typically simply a multi-class logistic regression model. In this work, we mostly focus on the ResNet-18 and ResNet-50 (He et al., 2016), though we also report some results on VGG-networks (Simonyan & Zisserman, 2014). Although, several aspects of architectures of neural networks have been widely studied in the recent years, there has been little work on understanding the nature of these learned representations.
|
| 16 |
+
|
| 17 |
+
The learned representations have often been used in other tasks related to classification, retrieval, clustering etc. (often unrelated to the original classification problem) with a good degree of success (a.k.a. transfer learning) (Kiros et al., 2014; Lin & Parikh, 2015). Classically, representation learning has focused on finding low-dimensional structures or independent components through various models, from component analysis to auto-encoders. However, while hidden layers of neural networks are widely used as representations, as far as we are aware, not much work has been published on studying their structure. The current work studies these learned representations; our focus has been on the effective dimensionality, (as opposed to the actual dimension) of these learned representations. A ResNet-18/50 network consists of four ResNet blocks (each of which includes several convolutional layers and skip connections). We consider the dimensionality of the activations obtained at the end of the third and fourth ResNet block. Each data point $\mathbf { x }$ maps to a vector $\mathbf { a } \in \mathbb { R } ^ { m }$ , where $m$ is the number of units in one of the aforementioned layers; this vector is a learned representation of $\mathbf { x }$ .
|
| 18 |
+
|
| 19 |
+
We propose a modification to the training procedure to specifically make the activations (approximately) lie in a low rank space; more precisely, we add a term to the loss that encourages the activations in certain layers to lie in a low-rank affine subspace. The modified training process results in essentially no loss in accuracy (in some cases even shows modest gains) and further enhances the low-rank nature of the learned representations. The modification “adds” virtual low-rank layers to the model that ensure that the learned representations roughly lie in a low-rank space. The modified objective function is optimized using an alternate minimization approach, reminiscent of that used in iterative hard thresholding (Blumensath & Davies, 2009) or singular value projection (Jain et al., 2010). Using a na¨ıve singular value thresholding approach would render the training intractable for all practical purposes; we use a column sampling based Nystrom method (Williams & Seeger, 2001; ¨ Halko et al., 2011) to achieve significant speed-up, though at the cost of not getting the optimal low rank projections. One can view this modified training process as a way to constrain the neural network, though in a way that is very different to the widely used sparsity inducing methods (eg. (Anwar et al., 2017; Wen et al., 2016)) or structurally constrained methods (eg. (Moczulski et al., 2015; Liu et al., 2015)) that seek to tackle the problem of over-parameterization.
|
| 20 |
+
|
| 21 |
+
Finally, we also investigate the benefits of learning low-rank representations. One obvious benefit is the ability to compress the embeddings when they are used in other applications. The fact that these learned representations (approximately) lie in a low-dimensional (affine) space yields a natural (lossy) compression scheme. Furthermore, we investigate the robustness of networks trained in this fashion to adversarial attacks (Szegedy et al., 2013). Our experimental evaluation shows that networks trained in this fashion are substantially more robust to adversarial attacks than the standard architectures. In our experiments we look at gradient sign methods, its variants (Kurakin et al., 2016; 2017) and DeepFool (Moosavi-Dezfooli et al., 2016). We further perform empirical evaluation showing that when we train SVM classifiers on learned representations (or their low rank projections), the networks trained according to our modified procedure yield significantly more accurate predictions, especially when using very low rank projections of the learned representations, and are in general more robust to adversarial attacks.
|
| 22 |
+
|
| 23 |
+
Related Work: Empirical work by Oyallon (2017) suggests that conditioned on the class, these representations seem to (approximately) lie in a low-rank (affine) space; his work focuses on a different network architecture. Recent (and parallel) work by Lezama et al. (2017) promotes classconditional low rank embeddings and orthogonality between classes within a single mini-batch to create better discriminative models. They use nuclear norm as a relaxation of rank of a matrix and a loss reminiscent of Qiu & Sapiro (2015) to achieve this and due to their focus on mini-batches, it is unclear if the data as a whole exhibits low-rank structure. Their experiments do not consider adversarial robustness or compression.
|
| 24 |
+
|
| 25 |
+
From the point of view compression, it is natural to look at methods considering low rank approximations of model parameters (Jaderberg et al., 2014; Denton et al., 2014) as possible alternatives to our algorithm. However, low rank weights do not necessarily create low rank activations due to the non-linearities in neural networks. For similar reasons, reconstructions using auto-encoders also does not exhibit a low-rank structure (See Appendix A).
|
| 26 |
+
|
| 27 |
+
Organisation. The rest of the paper is organized as follows. Section 2 describes the relevant notation, the basic optimization problem and our training procedure. In Section 3, we list our results demonstrating the benefits of the modified training procedure to obtain better low-rank representations and in Section 4, we present results that demonstrate our network’s robustness to adversarial attacks.
|
| 28 |
+
|
| 29 |
+
# 2 LOW RANK PRIOR ON ACTIVATIONS
|
| 30 |
+
|
| 31 |
+
We define the activation matrix, $A _ { \ell }$ , of our network after a certain layer $\ell$ ; $A _ { \ell } \in \mathbb { R } ^ { n \times m }$ , where $n$ is the number of examples in our training set and $m$ is the dimension of the activation vector after the $\ell ^ { t h }$ layer. By imposing a low rank prior on this matrix, we enforce that the matrix $A _ { \ell }$ is approximately low rank.
|
| 32 |
+
|
| 33 |
+
We observe that even though enforcing a rank constraint on $A _ { \ell }$ does not obviously increase the sparsity of the model, if we consider a rank $r$ approximation, where $r \ll m$ , then there is no need to have more than $r$ units in the subsequent layer. Thus, having an (approximately) low rank representation allows us to compress both the model and the representations with little to no loss in accuracy (as our experimental results demonstrate).
|
| 34 |
+
|
| 35 |
+
Optimization problem: We impose a low rank prior by adding an extra rank regularizor as part of the training objective. We do not regularize the model parameters directly. Instead, we impose constraints on intermediate model outputs as a part of the optimization problem.
|
| 36 |
+
|
| 37 |
+
Let the neural network be represented by the function $f ( \cdot )$ , let $X = \left[ \mathbf { x } _ { 1 } , \cdots , \mathbf { x } _ { n } \right] ^ { \top }$ be the set of training inputs to the model and $Y = \left[ y _ { 1 } \cdots y _ { n } \right] ^ { \top }$ be the desired outputs. Consider the network to be composed of two networks, one consisting of layers before the $\ell ^ { t h }$ layer and the other after, i.e. $f ( \mathbf { x } _ { i } ) \doteq f _ { \ell } ^ { + } \left( f _ { \ell } ^ { - } ( \mathbf { x } _ { i } ) \right)$ . Here $f _ { \ell } ^ { + } ( \cdot )$ represents the network after the $\ell ^ { t h }$ activation layer and $f _ { \ell } ^ { - } ( \cdot )$ represents the network that produces the $\ell ^ { t h }$ activation layer. Let $f _ { \ell } ^ { - } ( X ) = A _ { \ell } = \left[ \mathbf { a } _ { 1 } \cdot \cdot \cdot \mathbf { a } _ { n } \right] ^ { \top } \in$ $\mathbb { R } ^ { \times m }$ represent the activation matrix of $n$ data points where $m$ is the dimension of the hidden layer. Our additional low rank constraint requires that rank $( A _ { \ell } ) = r \ll m$ .
|
| 38 |
+
|
| 39 |
+
Let $\mathcal { L } ( \theta , \phi ; X , Y )$ be the loss function where $f , X , Y$ are as defined above and $f _ { \ell } ^ { + } ( \cdot )$ and $f _ { \ell } ^ { - } ( \cdot )$ are parameterized by $\theta$ and $\phi$ respectively. The optimization problem can be written as follows:
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\theta , \phi = \operatorname * { a r g m i n } _ { \theta , \phi } \mathcal { L } \big ( \theta , \phi ; X , Y \big ) \qquad \mathrm { s . t . } \quad \operatorname { r a n k } \big ( f _ { \ell } ^ { - } \big ( X ; \phi \big ) \big ) = r
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
A natural approach to this (non-convex) problem would be an alternate minimization algorithm, where the two parts $\mathcal { L } ( \theta , \phi ; X , Y )$ and rank $\left( f _ { \ell } ^ { - } ( X ; \phi ) \right)$ are optimized alternately. The first of these steps is typically a non-convex optimization problem while the second is a projection step onto a non-convex set which can be solved by performing a singular value decomposition. However, in practice, this approach is infeasible because:
|
| 46 |
+
|
| 47 |
+
(i) $f _ { \ell } ^ { - } \left( X ; \phi \right)$ is a large matrix and minimizing its rank at every iteration using a singular value decomposition is extremely costly, if not infeasible. (The dimension of this matrix can be as large as $5 0 , 0 0 0 \times 1 6 ,$ 384 in one of our experimental settings, but in each case is at least $5 0 , 0 0 0 \times 5 1 2 .$ ) $( i i )$ Minimizing the rank of the corresponding matrix for mini-batches i.e. $f _ { \ell } ^ { - } \left( X _ { 1 : b } ; \phi \right)$ does not guarantee that the rank of $f _ { \ell } ^ { - } \left( X _ { 1 : n } \right)$ will also be small.
|
| 48 |
+
|
| 49 |
+
Below, we discuss an efficient approach to solve the optimization problem (OPT) by considering some approximations, augmentations and sampling.
|
| 50 |
+
|
| 51 |
+
Augmented optimization problem: To avoid the aforementioned problems, we augment the optimization problem (OPT) by introducing an auxiliary low rank parameter $W \in \mathbb { R } ^ { m \times m }$ and a bias term $\mathbf { b } \in \mathbb { R } ^ { m \times 1 }$ . A rank regularizor term is added to the objective to shift the rank constraint from the activation matrix $A _ { \ell }$ to these auxiliary parameters as explained below. The new augmented optimization problem is as follows:
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\theta , \phi , W , \boldsymbol { \mathbf { b } } = \operatorname * { a r g m i n } _ { \theta , \phi , W , \boldsymbol { \mathbf { b } } } \mathcal { L } ( \theta , \phi ; X , Y ) + \lambda _ { 1 } \mathcal { L } _ { c } ( W , \boldsymbol { \mathbf { b } } ; A ) + \lambda _ { 2 } \mathcal { L } _ { N } ( A )
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\begin{array} { r } { \mathrm { e } , \quad W \in \mathbb { R } ^ { m \times m } , \operatorname { r a n k } \left( W \right) = r , \mathrm { \bf ~ b } \in \mathbb { R } ^ { m } , A = f _ { \ell } ^ { - } ( X ; \phi ) } \end{array}
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\mathcal { L } _ { c } ( W , \mathbf { b } ; A ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \left\| \mathbf { W } ^ { \top } ( \mathbf { a _ { i } } + \mathbf { b } ) - ( \mathbf { a _ { i } } + \mathbf { b } ) \right\| _ { 2 } ^ { 2 } , \quad \mathcal { L } _ { N } ( A ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \left| 1 - \left\| \mathbf { a _ { i } } \right\| \right| _ { 2 } ^ { 2 } ,
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
The projection loss $\mathcal { L } _ { c }$ is used to minimize the distance between the activation matrix $A _ { \ell }$ and its affine low rank projection. The bias $\mathbf { b }$ allows for the activation matrix to be translated before projection. The intuition behind $\mathcal { L } _ { c }$ is that if $\mathbf { a } _ { i } \in \mathbb { R } ^ { n }$ lies in a (low) $r$ -dimensional subspace of $\mathbb { R } ^ { n }$ , then there is a rank- $r$ matrix $W$ such that $W$ is the identity map on the subspace and maps the rest of $\mathbb { R } ^ { n }$ to 0. $\mathcal { L } _ { c }$ is a soft version of this and also allows translation by $\mathbf { b }$ , i.e. if $A$ is the matrix of activation vectors and $W$ is low-rank, then $W A$ is low-rank; imposing the constraint that $A \approx W A$ forces $A$ itself to be close to low-rank. This is closely related to online PCA. However, setting $A + \mathbf { b }$ close to zero trivially minimizes $\mathcal { L } _ { c } ( W , \mathbf { b } ; A )$ , especially when the activation dimension is large. To prevent this, $\mathcal { L } _ { N } ( \cdot )$ , which acts as a norm constraint on the activation vector, is introduced to keep the activations sufficiently large.
|
| 66 |
+
|
| 67 |
+
Implementing the low rank prior: Algorithm 1 in Appendix B.1 describes how to apply this low rank regularizor by adding a virtual layer called LR-layer after the $\ell ^ { t h }$ layer. This layer is virtual in the sense that it only affects the parameter $W$ and $\mathbf { b }$ which are not directly used to make predictions, but nonetheless the corresponding loss term $\mathcal { L } _ { c }$ does affect the network model parameters through gradient updates. This layer finds the closest affine low rank approximation of $A$ online by estimating a matrix $W$ that minimizes $\mathcal { L } _ { c }$ subject to rank $( W ) = r$ .
|
| 68 |
+
|
| 69 |
+
The rank projection step in Line 16 in Algorithm 1 is executed by a hard thresholding operator $\Pi _ { r } ^ { \mathrm { r a n k } } ( W ) ^ { - }$ , which finds the best $r$ -rank approximation of $W$ . Essentially, $\Pi _ { r } ^ { \mathrm { r a n k } } ( W )$ solves the following optimization problem, which can be solved using a singular value decomposition (SVD).
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\Pi _ { r } ^ { \mathrm { r a n k } } ( W ) = \underset { \mathrm { r a n k } ( Z ) = r } { \mathrm { a r g m i n } } \left. \mathrm { W } - \mathrm { Z } \right. _ { F } ^ { 2 }
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
Handling large activation matrices: Singular Value Projection (SVP) introduced in Jain et al. (2010) is an algorithm for rank minimization under affine constraints. In each iteration, the algorithm performs gradient descent on the affine constraints alternated with a rank- $\mathbf { \nabla } \cdot \mathbf { k }$ projection of the parameters and it provides recovery guarantees under weak isometry conditions. However, the algorithm has a complexity of $O ( m n \bar { r } )$ where $m , n$ are the dimensions of the matrix and $r$ is the desired low rank. Faster methods for SVD for sparse matrices are not applicable as the matrices in our case are not necessarily sparse. We use the ensembled Nystrom method (Williams & Seeger, 2001; Halko ¨ et al., 2011; Kumar et al., 2009a) to boost our computational speed at the cost of accuracy of the low rank approximation. It is essentially a sampling based low rank approximation to a matrix. The algorithm is described in detail in the Appendix B.2. Though the overall complexity for projecting $W$ still remains $O ( m ^ { 2 } r )$ , the complexity of the hard-to-parallelize SVD step is now ${ \cal O } ( \bar { r } ^ { 3 } )$ , while the rest is due to matrix multiplication.
|
| 76 |
+
|
| 77 |
+
The theoretical guarantees of Nystrom hold only when the weight matrix of the ¨ LR-layer is symmetric and positive semi-definite (PSD) before each $\bar { \Pi } _ { r } ^ { \mathrm { r a n k } } ( \cdot )$ operation; this restricts the projections allowed in our optimization, but empirically this does not seem to matter. We know that a symmetric diagonally dominant real matrix with non-negative diagonal entries is PSD. With this motivation, the matrix $W$ is smoothened by repeatedly adding $0 . 0 1 \mathcal { T }$ until the SVD algorithm converges1. This is a heuristic to make the matrix well conditioned (as well as diagonally dominant) and it helps in the convergence of the algorithm empirically.
|
| 78 |
+
|
| 79 |
+
Symmetric Low Rank Layer: The Nystrom method requires the matrix ¨ $W$ of the LR-layer to be symmetric and PSD (SPSD), however, gradient updates may make the matrix parameter nonSPSD, even if we start with an SPSD matrix. Reparametrizing the LR-layer fixes this issue; the layer is parameterized using $W _ { s }$ (to which gradient updates are applied), but the layer projects using $\dot { W } = ( W _ { s } + W _ { s } ^ { \top } ) / 2$ . After the rank projection is applied to the (smoothed version of) $W$ $W _ { s } : = \Pi _ { r } ^ { \mathrm { r a n k } } ( W )$ is an SPSD matrix (using Lemma 1 in Appendix B.3). As a result the updated $W$ is also SPSD. This layer also has a bias vector $\mathbf { b }$ to be able to translate the activation matrix before performing the low rank projection.
|
| 80 |
+
|
| 81 |
+
Model Compression: As a consequence of forcing the activations of the $\ell ^ { t h }$ layer of the model to lie in a very low dimensional subspace with minimal reconstruction error and loss in accuracy, our experiments suggest that a simpler model can replace the latter parts of the original model without significant reduction in accuracy. Essentially, we can replace $f _ { \ell } ^ { + } : \mathbb { R } ^ { m } \mathbb { R } ^ { c }$ with $g : \mathbb { R } ^ { m ^ { \prime } } \mathbb { R } ^ { c }$ where $m ^ { \prime } \ll m$ and $g$ is a much smaller model than $f _ { \ell } ^ { + }$ . Our experiments in Table 2 show empirical evidence of this.
|
| 82 |
+
|
| 83 |
+
# 3 EXPERIMENTS
|
| 84 |
+
|
| 85 |
+
In this section we look at experimental validation of the various properties of our networks. As our primary training objective is to reduce the rank of the activations, we use the variance ratio, defined as $\begin{array} { r } { \mathsf { V R } _ { r } \left( A \right) = \frac { \sum _ { i = 1 } ^ { r } \sigma _ { i } ^ { 2 } } { \sum _ { i = 1 } ^ { p } \sigma _ { i } ^ { 2 } } } \end{array}$ , where $\sigma _ { 1 } , \ldots , \sigma _ { p }$ are the singular values of $A$ in non-increasing order, to estimate the variance captured by the first $r$ out of $p$ singular values.
|
| 86 |
+
|
| 87 |
+
We consider the following models in our experiments:
|
| 88 |
+
|
| 89 |
+
(a) ResNet 1-LR - This model contains one LR-layer, located immediately before the last fully connected (FC) layer. For a ResNet-18, the incoming activations have 512 units whereas for a ResNet-50 the incoming activations has a dimension of 2048.
|
| 90 |
+
|
| 91 |
+
(b) ResNet 2-LR - This model contains two LR-layers. The first LR-layer is positioned before the fourth ResNet block, where the incoming activations have a dimension of 16, 384 and the second LR-layer is before the FC layer as in ResNet 1-LR.
|
| 92 |
+
|
| 93 |
+
(c) VGG19 2-LR - This includes two LR-layers in the VGG-19 model. The VGG model has three FCs after 16 convolution layers with the LR-layers present before the first and the third FC layers in the model.
|
| 94 |
+
|
| 95 |
+
(d) X-MAXG - This is a hybrid model where learned representations are generated for the input using the model “X” and then a maximum margin classifier is learned on these representations. The particular layer from which the representation is extracted will be clear from the context.
|
| 96 |
+
|
| 97 |
+
(e) Bottle-LR - This model has a bottle neck layer which is essentially a fully connected layer without any non-linear activation. Moreover, the weight matrix of the $\mathbf { W } \in \mathbb { R } ^ { m \times m }$ is parametrized by $\mathbf { W } _ { l } \in \mathbb { R } ^ { m \times r }$ where $\mathbf { W } = \mathbf { W } _ { l } \mathbf { W } _ { l } ^ { \top }$ such that it is always low rank by definition.
|
| 98 |
+
|
| 99 |
+
Some other models that are comparable to this work are listed in Appendix A. While one of the main objectives has been to design an augmentation to the training algorithm instead of changing the model itself (note that the extra weight matrices can be removed from the model after training is complete), we also consider Bottle-LR which includes an extra layer. The Bottle-LR layers have the same dimensions and are placed at the same position as the LR layers. As the experiments below suggest, the Bottle-LR model does not show the same benefits our LR model shows and performs no better than the N-LR model (indeed worse sometimes). One of the main difference in the training dynamics between this model and our model is that an explicit bottleneck layer has a multiplicative effect on the gradients propagated backward in the network, whereas, in our approach they only have an additive effect. Although this is somewhat speculative at this stage, we believe the relative “smoothness” of our approach is the reason why it seems to have better performance on these other tasks.
|
| 100 |
+
|
| 101 |
+
In this paper, we used the datasets CIFAR10 and CIFAR100. As a side note, we observed that the target rank is not an essential hyper-parameter as the training enforces a much lower rank than what is set. Further details on the training procedure and the X-MAXG model is provided in Appendix C. Apart from these, we use the term N-LR to represent models without LR-layers.
|
| 102 |
+
|
| 103 |
+
We perform three kinds of experiments in this section, with additional experiments in Appendix C.3 and C.4. We first show that our imposed constraints do not have any significant impact on the test accuracy of the model. Then we go on to verify that our training indeed achieves its objective of developing a stronger low rank structure. Finally we demonstrate that our training algorithm provides a natural scheme for compressing our models and that low dimensional projections of our embeddings, with a size of less than $2 \%$ of the original embeddings, can be used for classification with a significantly higher accuracy than similar sized projections of embeddings from an N-LR model. In Section 4, we provide empirical evidence in support of adversarial robustness of our models.
|
| 104 |
+
|
| 105 |
+
Impact on test accuracy: In this experiment, we check if the additional constraints on the training method have any significant effect on the performance of the model. We observe, as listed in Table 1, that the additional penalties impose no significant loss in accuracy. In some cases, we even observe small gains in performance.
|
| 106 |
+
|
| 107 |
+
(a) ResNet18 on CIFAR-10
|
| 108 |
+
|
| 109 |
+
<table><tr><td rowspan=1 colspan=1>Models</td><td rowspan=1 colspan=1>Test Accuracy</td></tr><tr><td rowspan=1 colspan=1>ResNet 1-LR</td><td rowspan=1 colspan=1>92.8</td></tr><tr><td rowspan=1 colspan=1>ResNet 2-LR</td><td rowspan=1 colspan=1>92</td></tr><tr><td rowspan=1 colspan=1>VGG192-LR</td><td rowspan=1 colspan=1>89.8</td></tr><tr><td rowspan=1 colspan=1>ResNet N-LR</td><td rowspan=1 colspan=1>92.5</td></tr><tr><td rowspan=1 colspan=1>VGG19N-LR</td><td rowspan=1 colspan=1>89.1</td></tr><tr><td rowspan=1 colspan=1>Bottle-2LR</td><td rowspan=1 colspan=1>92</td></tr></table>
|
| 110 |
+
|
| 111 |
+
Table 1: Test Accuracy
|
| 112 |
+
|
| 113 |
+
<table><tr><td rowspan=1 colspan=1>Models</td><td rowspan=1 colspan=1>Coarse Label</td><td rowspan=1 colspan=1>Fine Label</td><td rowspan=1 colspan=1>VR20()</td></tr><tr><td rowspan=1 colspan=1>ResNet 1-LR</td><td rowspan=1 colspan=1>78.1%</td><td rowspan=1 colspan=1>48%</td><td rowspan=1 colspan=1>0.97</td></tr><tr><td rowspan=1 colspan=1>ResNet N-LR</td><td rowspan=1 colspan=1>75.6%</td><td rowspan=1 colspan=1>52%</td><td rowspan=1 colspan=1>0.90</td></tr><tr><td rowspan=1 colspan=1>Bottle-1LR</td><td rowspan=1 colspan=1>76%</td><td rowspan=1 colspan=1>38%</td><td rowspan=1 colspan=1>NA</td></tr></table>
|
| 114 |
+
|
| 115 |
+
(b) ResNet50 on CIFAR-100
|
| 116 |
+
|
| 117 |
+
To see whether the learned representations can be used in a different task, we conduct a transfer learning exercise where embeddings generated from a ResNet-50 model, trained on the coarse labels of CIFAR-100, are used to predict the fine labels of CIFAR-100. A set of ResNet-50-MAXG classifiers are trained for this purpose on these embeddings. (see Appendix C.1 for further details). We can see in Table 1(b) that the LR model suffers a small loss of $4 \%$ in accuracy as compared to the N-LR model when it’s embeddings are used to train a max margin classifier for the task of predicting the fine labels. However, it is to be noted that the accuracy of the LR model actually increases when the max margin classifier is trained on it to do the original task i.e. classifying the coarse labels. On the other hand, the Bottle-LR model suffers a loss of $1 4 \%$ in accuracy compared to N-LR model and does not show any advantage in the original task either.
|
| 118 |
+
|
| 119 |
+

|
| 120 |
+
Figure 1: Variance Ratio captured by varying number of Singular Values
|
| 121 |
+
|
| 122 |
+
Effective rank of activations: Figure 1(a) shows the variance ratio captured by varying numbers of singular values in the activations before the last FC layer. In this case, every model shows that the effective rank of the activations is 10 as there is a sharp elbow in the plot after 10 singular values. However, the LR-model has almost negligible leakage of variance compared to the N-LR model. Similar experiments for VGG is found in the appendix (Figure 5). .
|
| 123 |
+
|
| 124 |
+
Figure 1(b) shows the variance ratio captured by varying numbers of singular values for the activations before the fourth ResNet block. In this case the activation vector has a dimension of 16, 384 and the use of Nystrom method is necessary for computational feasibility. ResNet 2-LR is the only model ¨ that has a LR-layer in that position and Figure 1(b) shows that it is the only model that shows a low rank structure on that layer.
|
| 125 |
+
|
| 126 |
+
While there are various techniques developed that induce sparsity on weights or activations in neural networks, it is important to point out that sparsity doesn’t necessarily lead to low rank eg. an identity matrix. Empirically, in ResNet 1-LR, the activations before the $\dot { 4 } ^ { t h }$ ResNet block are much less explained by a small number of singular values despite the high level of sparsity $( 3 9 \% )$ whereas the activations after the 4th ResNet block are explained by about 10 singular values though it is $9 5 \%$ dense.
|
| 127 |
+
|
| 128 |
+
Validity of low dimensional embeddings: The previous experiment shows that our training algorithm introduces a low rank structure in the activations. However, it does not show any evidence of the discriminative power of these low rank embeddings. In these experiments, we use both CIFAR-10 and CIFAR-100 with ResNet-18 and ResNet-50 respectively to show that these embeddings and their projections onto low dimensional spaces are effective at discriminative tasks and are better at it than models without the LR-layer.
|
| 129 |
+
|
| 130 |
+
<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Emb-dim</td><td rowspan=1 colspan=1>Acc</td></tr><tr><td rowspan=1 colspan=1>ResNet-50-LR</td><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>78.1</td></tr><tr><td rowspan=1 colspan=1>ResNet-50</td><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>75.6</td></tr><tr><td rowspan=1 colspan=1>ResNet-50-LR</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>76.5</td></tr><tr><td rowspan=1 colspan=1>ResNet-50</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>68.4</td></tr><tr><td rowspan=1 colspan=1>ResNet-50-LR</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>72</td></tr><tr><td rowspan=1 colspan=1>ResNet-50</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>48</td></tr></table>
|
| 131 |
+
|
| 132 |
+
<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Emb-dim</td><td rowspan=1 colspan=1>Acc</td></tr><tr><td rowspan=1 colspan=1>ResNet18-2-LR</td><td rowspan=1 colspan=1>16,384</td><td rowspan=1 colspan=1>91.14%</td></tr><tr><td rowspan=1 colspan=1>ResNet18</td><td rowspan=1 colspan=1>16,384</td><td rowspan=1 colspan=1>90.7%</td></tr><tr><td rowspan=1 colspan=1>ResNet18-2-LR</td><td rowspan=1 colspan=1>20</td><td rowspan=1 colspan=1>88.5%</td></tr><tr><td rowspan=1 colspan=1>ResNet18</td><td rowspan=1 colspan=1>20</td><td rowspan=1 colspan=1>76.9%</td></tr><tr><td rowspan=1 colspan=1>ResNet18-2-LR</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>75%</td></tr><tr><td rowspan=1 colspan=1>ResNet18</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>61.7 %</td></tr></table>
|
| 133 |
+
|
| 134 |
+
(b) Representation from before the last ResNet block of ResNet-18 trained on CIFAR-10.
|
| 135 |
+
|
| 136 |
+
(a) Representation from before the FC layer of a ResNet-50 trained on CIFAR-100.
|
| 137 |
+
|
| 138 |
+
Table 2: Accuracy of low dimensional projections of learned representations at discriminative tasks.
|
| 139 |
+
|
| 140 |
+
Table 2(a) shows that even with decreasing embedding dimension, the LR model is able to preserve its accuracy better than the N-LR model. Even with a 5-dimensional embedding, the LR model looses only $6 \%$ in accuracy, but the N-LR model looses $2 7 \%$ .
|
| 141 |
+
|
| 142 |
+
The results of the next experiment, listed in Table 2(b), show the capability of our algorithm to compress the model itself. The entire fourth ResNet block along with the last FC layer (referred to as $f _ { \ell } ^ { + }$ and containing 8.4M parameters) can be replaced by a smaller linear model which has only 0.02 times the number of parameters as $f _ { \ell } ^ { + }$ . This yields a significant reduction in model size in exchange for a slight drop in accuracy $( < 1 \% )$ ). The second benefit is that as the low dimensional embeddings still retain most of the discriminative information, the inputs fed to the linear model have a small number of features.
|
| 143 |
+
|
| 144 |
+
# 4 ADVERSARIAL ATTACKS
|
| 145 |
+
|
| 146 |
+
(Szegedy et al., 2013) showed that adding adversarial perturbations to inputs to machine learning models, that otherwise perform well on a test set, can often make them suffer a high misclassification rate. To express this formally, consider a machine learning model $M : X Y$ where $X$ is the input space and $Y$ is the target label space. It is possible to add an adversarial noise $\delta$ to $\mathbf { x } _ { i } \in X$ such that though $M ( \mathbf { x } _ { i } )$ predict $\mathbf { y } _ { i }$ , but $M ( \mathbf { x } _ { i } + \delta )$ predicts a label other than $\mathbf { y } _ { i }$ with high confidence, despite $\mathbf { x } _ { i }$ and $\mathbf { x } _ { i } + \delta$ being perceptually indistinguishable to a human. Various methods (Szegedy et al., 2013; Goodfellow et al., 2014; Kurakin et al., 2017; Moosavi-Dezfooli et al., 2016) have been proposed in recent years for constructing adversarial perturbations. In this section, our experiments show that LR models are more robust than N-LR models against these adversarial perturbations.
|
| 147 |
+
|
| 148 |
+
In this section, $\mathbf { x } _ { d }$ refers to an example drawn from the data distribution and $\mathbf { x } _ { a }$ denotes the adversarially perturbed version of $\mathbf { x } _ { d }$ . For vectors $\mathbf { z }$ and $\mathbf { x }$ , let $\mathrm { c l i p } _ { { \bf x } , \epsilon } ( { \bf z } )$ denote the element-wise clipping of $\mathbf { z }$ , with $z _ { i }$ clipped to the range $[ x _ { i } - \epsilon , x _ { i } + \epsilon ]$ .
|
| 149 |
+
|
| 150 |
+
Adversarial attacks: We look at three different attacks in our experiments: (i) Iterative Fast Sign Gradient Method (Iter-FSGM) (Kurakin et al., 2016; Madry et al., 2018) (ii) The Iterative Least Likely Class Method (Iter-LL-FSGM) (Kurakin et al., 2017) (iii) DeepFool (Moosavi-Dezfooli et al., 2016). The reader may refer to Appendix D.1 for further details on the attacks. The iterative fast sign gradient method (Iter-FSGM) is essentially equivalent to the Projected Gradient Descent Method on the negative loss function (PGD, Madry et al. (2018)).
|
| 151 |
+
|
| 152 |
+
Further, due to the low rank constraints, the model could implicitly be enforcing gradient masking, which might result in the construction of weaker attacks. Hence, to be fair in our comparison, we also consider black box versions of each of the aforementioned attacks. While the adversarial noise in a white box attack is constructed using the model being attacked, the noise in a black box attack is constructed using a different model (in our case the N-LR model). We use the standard normalized $L _ { 2 }$ dissimilarity measure $\begin{array} { r } { \rho = \sum _ { i } \frac { \| \mathbf { x } _ { \mathrm { a } } - \mathbf { x } _ { \mathrm { d } } \| _ { 2 } } { \| \mathbf { x } _ { \mathrm { d } } \| _ { 2 } } } \end{array}$ to measure the magnitude of this noise.
|
| 153 |
+
|
| 154 |
+
# Robustness to Adversarial Attacks:
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 2: Adversarial accuracy plotted against magnitude of perturbation (measured with $\rho$ ).
|
| 158 |
+
|
| 159 |
+
Here we compare across models, the change in accuracy of classifying adversarial examples with respect to the amount of noise added. In line with the experiments in Kurakin et al. (2017), the noise is added for a pre-determined number of steps. Figure 2 shows that as the noise increases, the accuracy of N-LR models decrease much faster than the LR models.
|
| 160 |
+
|
| 161 |
+
Specifically, to reach an adversarial mis-classification rate of $5 0 \%$ , our models require about twice the noise as a normal model or Bottle-LR model. We also observe that black box attacks are not very successful when multi-step (i.e. iterative) attacks are performed 2. In short, for all kinds of attacks we tried, LR models consistently perform better than N-LR models.
|
| 162 |
+
|
| 163 |
+
Our next experiment is in line with the experiments conducted in Moosavi-Dezfooli et al. (2016). Table 3 lists the average minimum perturbation (measured with $\rho$ ) required to make the classifier mis-classify more than $9 9 \%$ of the adversarial examples, constructed from a uniformly sampled subset of the test set. Appendix D.2 describes the setup in further detail.
|
| 164 |
+
|
| 165 |
+
Table 3: Perturbation required for Adversarial Misclassification
|
| 166 |
+
|
| 167 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>p[DeepFool]</td><td rowspan=1 colspan=1>ρ[Iter-LL-FSGM]</td><td rowspan=1 colspan=1>ρ [Iter-FSGM]</td></tr><tr><td rowspan=3 colspan=1>White Box</td><td rowspan=1 colspan=1>ResNet N-LR</td><td rowspan=1 colspan=1>1.6×10-2</td><td rowspan=1 colspan=1>2.4×10-2</td><td rowspan=1 colspan=1>2.1×10-2</td></tr><tr><td rowspan=1 colspan=1>ResNet1-LR</td><td rowspan=1 colspan=1>1.7 ×10-1</td><td rowspan=1 colspan=1>1.1 ×10-1</td><td rowspan=1 colspan=1>6.0×10-2</td></tr><tr><td rowspan=1 colspan=1>ResNet 2-LR</td><td rowspan=1 colspan=1>1.8 × 10-1</td><td rowspan=1 colspan=1>9.8×10-2</td><td rowspan=1 colspan=1>7.6 ×10-2</td></tr><tr><td rowspan=2 colspan=1>Black Box</td><td rowspan=1 colspan=1>ResNet 1-LR</td><td rowspan=1 colspan=1>4.7×10-2</td><td rowspan=1 colspan=1>1.8×10-1</td><td rowspan=1 colspan=1>5.6×10-2</td></tr><tr><td rowspan=1 colspan=1>ResNet 2-LR</td><td rowspan=1 colspan=1>5.5×10-2</td><td rowspan=1 colspan=1>2.0×10-1</td><td rowspan=1 colspan=1>7.5 × 10-2</td></tr></table>
|
| 168 |
+
|
| 169 |
+
An interesting observation is that the values of $\rho$ , here in Table 3, are lower than in Figure 2 though the attacks have a higher rate of success. To explain this behaviour, we show empirical evidence to indicate that an attack that adds noise for a fixed number of steps (Kurakin et al., 2017; 2016) to the input is significantly weaker than one that stops on successful misclassification (See Appendix D.3). However, even under this scheme of attacks, our models perform better than N-LR models as LR models require 4 to 11 times the amount of noise required by N-LR models to be fooled by adversarial attacks.
|
| 170 |
+
|
| 171 |
+
We also look at some of the adversarial images generated by DeepFool in Figure 3. We observe that it is immediately clear that the adversarial images are different from the original images in the case of LR models whereas it is not so apparent in the case of N-LR models.
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 3: For each model, original images are on the top row and the images generated by DeepFool are below.
|
| 175 |
+
|
| 176 |
+
In order to gain some intuition into this behaviour of robustness against adversarial attacks, we look into the property of noise stability of networks towards adversarial noise. Arora et al. (2018) gives empirical evidence for deep networks being stable towards injected Gaussian noise and uses a variation of this noise stability property to derive more realistic generalization bounds. We believe that learning a model that zeroes out irrelevant directions in the learned representations reduces the ability to find adversarial perturbations that can affect the output of the model. In Figure 4, we show empirically that LR networks are more noise-stable to adversarial noise than non-LR networks. On the $x$ -axis is the normalized $L _ { 2 }$ dissimilarity score in the input space i.e. $\| \mathbf { x } + \eta \| ^ { 2 } / \| \mathbf { x } \| ^ { 2 }$ and on the $y$ -axis the corresponding quantity in the representation space i.e. $\left. \mathrm { f } _ { \ell } ^ { - } \left( \mathbf { x } + \eta \right) \right. ^ { 2 } / \left. \mathrm { f } _ { \ell } ^ { - } \left( \mathbf { x } \right) \right. ^ { 2 }$ . The representations here are taken from before the last fully connected and softmax layer. As our experiments suggest, the LR model significantly attenuates the adversarial perturbation in the representation space thus making it harder to fool the softmax classifier.
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
Figure 4: Adversarial Perturbation in Input Space and Perturbation in Representation Space
|
| 180 |
+
|
| 181 |
+
Max Margin Classifiers: Finally, we show that X-MAXG models are significantly more robust to adversarial attacks than the corresponding “X” models. Also, as seen in Table 4, X-MAXG models with LR-layers are more robust than X-MAXG models without LR-layers against adversarial attacks. Our experimental setup is explained in detail in Appendix D.4. We can see that a X-MAXG model with a LR-layer correctly classifies $5 0 \%$ of the examples that had fooled the original classifier while for a similar amount of noise, the X-MAXG model without the LR-layer has negligible accuracy.
|
| 182 |
+
|
| 183 |
+
Table 4: Accuracy of classification of adversarial examples by Max Margin Classifiers.
|
| 184 |
+
|
| 185 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>DeepFool</td><td rowspan=1 colspan=1>Iter-LL-FSGM</td><td rowspan=1 colspan=1>Iter-FSGM</td></tr><tr><td rowspan=3 colspan=1>White Box</td><td rowspan=1 colspan=1>ResNet18 N-LR-MAXG</td><td rowspan=1 colspan=1>0.01</td><td rowspan=1 colspan=1>0.04</td><td rowspan=1 colspan=1>0.02</td></tr><tr><td rowspan=1 colspan=1>ResNet 1-LR-MAXG</td><td rowspan=1 colspan=1>0.38</td><td rowspan=1 colspan=1>0.35</td><td rowspan=1 colspan=1>0.48</td></tr><tr><td rowspan=1 colspan=1>ResNet2-LR-MAXG</td><td rowspan=1 colspan=1>0.43</td><td rowspan=1 colspan=1>0.55</td><td rowspan=1 colspan=1>0.55</td></tr><tr><td rowspan=2 colspan=1>Black Box</td><td rowspan=1 colspan=1>ResNet 2-LR-MAXG</td><td rowspan=1 colspan=1>0.29</td><td rowspan=1 colspan=1>0.31</td><td rowspan=1 colspan=1>0.33</td></tr><tr><td rowspan=1 colspan=1>ResNet 1-LR-MAXG</td><td rowspan=1 colspan=1>0.44</td><td rowspan=1 colspan=1>0.50</td><td rowspan=1 colspan=1>0.48</td></tr></table>
|
| 186 |
+
|
| 187 |
+
# 5 CONCLUSION
|
| 188 |
+
|
| 189 |
+
In this paper, we designed an algorithm that encourages the learned representations obtained by training deep neural networks for supervised tasks to lie in an approximately low rank (affine) subspace. This is achieved by augmenting the networks with virtual LR-layers and modifying the training objective. In order to make our algorithm computationally feasible for large networks, we proposed and implemented certain approximation techniques. Our experiments show that our algorithm successfully enforces an approximate low rank behaviour and that these learned representations have some intriguing properties. We conducted a wide range of experiments to investigate these properties and report, among other things, that (i) max-margin classifiers trained on these representations have more discriminatory power than ones trained on representation from models without LR-layers, (ii) our models are more robust to a variety of adversarial attacks than models without LR-layers, and (iii) LR models significantly attenuate the effects of perturbations introduced in the input space on the representation space (iv) replacing large parts of our models with smaller models results in a negligible drop in accuracy, thereby providing a compression scheme, It is commonly believed that large sparse feature spaces are better for deep models. What we propose here is the idea that while the features themselves need not be sparse, the existence of a basis in which the feature vectors have a sparse representation can provide benefits. To the best of our knowledge, investigating properties of representations learned from deep supervised NNs, and the possibility of modifying training procedures to obtain desirable properties in said representations, has remained relatively unexplored. This work shows that these representations possess some intriguing properties, which may well be worthy of further investigation.
|
| 190 |
+
|
| 191 |
+
# REFERENCES
|
| 192 |
+
|
| 193 |
+
Sajid Anwar, Kyuyeon Hwang, and Wonyong Sung. Structured Pruning of Deep Convolutional Neural Networks. J. Emerg. Technol. Comput. Syst., 13(3):32:1—-32:18, feb 2017. ISSN 1550-4832. doi: 10.1145/3005348. URL http://doi.acm.org/10.1145/3005348.
|
| 194 |
+
|
| 195 |
+
Sanjeev Arora, Rong Ge, Behnam Neyshabur, and Yi Zhang. Stronger generalization bounds for deep nets via a compression approach. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 254–263, Stockholmsmassan, Stockholm Sweden, 10–15 Jul 2018. PMLR. ¨ URL http://proceedings.mlr.press/v80/arora18b.html.
|
| 196 |
+
|
| 197 |
+
Thomas Blumensath and Mike E Davies. Iterative hard thresholding for compressed sensing. Applied and computational harmonic analysis, 27(3):265–274, 2009.
|
| 198 |
+
|
| 199 |
+
Emily Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting Linear Structure Within Convolutional Networks for Efficient Evaluation. In Advances in neural information processing systems, pp. 1269—-1277, apr 2014. URL http://arxiv.org/abs/1404. 0736.
|
| 200 |
+
|
| 201 |
+
Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognition. In International Conference on Machine Learning, pp. 647–655, oct 2014. URL http://arxiv. org/abs/1310.1531.
|
| 202 |
+
|
| 203 |
+
Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and Harnessing Adversarial Examples. arXiv preprint arXiv:1412.6572, dec 2014. URL http://arxiv.org/abs/1412. 6572.
|
| 204 |
+
|
| 205 |
+
Nathan Halko, Per-Gunnar Martinsson, and Joel A Tropp. Finding structure with randomness: Probabilistic algorithms for constructing approximate matrix decompositions. SIAM review, 53(2): 217–288, 2011.
|
| 206 |
+
|
| 207 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778. IEEE, jun 2016. ISBN 978-1-4673-8851-1. doi: 10.1109/CVPR.2016.90. URL http://ieeexplore.ieee.org/document/7780459/.
|
| 208 |
+
|
| 209 |
+
G E Hinton and R R Salakhutdinov. Reducing the dimensionality of data with neural networks. Science (New York, N.Y.), 313(5786):504–7, jul 2006. ISSN 1095-9203. doi: 10.1126/science. 1127647. URL http://www.ncbi.nlm.nih.gov/pubmed/16873662.
|
| 210 |
+
|
| 211 |
+
Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up Convolutional Neural Networks with Low Rank Expansions. In Proceedings of the British Machine Vision Conference. BMVA Press, 2014.
|
| 212 |
+
|
| 213 |
+
Prateek Jain, Raghu Meka, and Inderjit S Dhillon. Guaranteed rank minimization via singular value projection. In Advances in Neural Information Processing Systems, pp. 937–945, 2010.
|
| 214 |
+
|
| 215 |
+
Ryan Kiros, Ruslan Salakhutdinov, and Richard S Zemel. Unifying visual-semantic embeddings with multimodal neural language models. arXiv preprint arXiv:1411.2539, 2014.
|
| 216 |
+
|
| 217 |
+
Sanjiv Kumar, Mehryar Mohri, and Ameet Talwalkar. Ensemble nystrom method. In Advances in Neural Information Processing Systems, pp. 1060–1068, 2009a.
|
| 218 |
+
|
| 219 |
+
Sanjiv Kumar, Mehryar Mohri, and Ameet Talwalkar. Sampling techniques for the nystrom method. In International Conference on Artificial Intelligence and Statistics, pp. 304–311, 2009b.
|
| 220 |
+
|
| 221 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
|
| 222 |
+
|
| 223 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. International Conference on Learning Representations (ICLR), 2017.
|
| 224 |
+
|
| 225 |
+
Jose Lezama, Qiang Qiu, Pablo Mus ´ e, and Guillermo Sapiro. OL ´ \’E: Orthogonal Low-rank Embedding, A Plug and Play Geometric Loss for Deep Learning. Computer Vision And Pattern Recognition, dec 2017. URL http://arxiv.org/abs/1712.01727.
|
| 226 |
+
|
| 227 |
+
Xiao Lin and Devi Parikh. Don’t just listen, use your imagination: Leveraging visual common sense for non-visual tasks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2984–2993, 2015.
|
| 228 |
+
|
| 229 |
+
Baoyuan Liu, Min Wang, Hassan Foroosh, Marshall Tappen, and Marianna Pensky. Sparse convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 806–814, 2015.
|
| 230 |
+
|
| 231 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } }$ rJzIBfZAb.
|
| 232 |
+
|
| 233 |
+
Carl D Meyer (ed.). Matrix Analysis and Applied Linear Algebra. Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 2000. ISBN 0-89871-454-0.
|
| 234 |
+
|
| 235 |
+
Marcin Moczulski, Misha Denil, Jeremy Appleyard, and Nando de Freitas. ACDC: A Structured Efficient Linear Layer. In International Conference on Learning Representations (ICLR), nov 2015. URL http://arxiv.org/abs/1511.05946.
|
| 236 |
+
|
| 237 |
+
Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. DeepFool: $\{ \mathrm { A } \}$ Simple and Accurate Method to Fool Deep Neural Networks. In CVPR, pp. 2574–2582. {IEEE} Computer Society, 2016.
|
| 238 |
+
|
| 239 |
+
Edouard Oyallon. Analyzing and Introducing Structures in Deep Convolutional Neural Networks. PhD thesis, de l’Universite de recherche Paris Sciences et Lettres PSL Research University, 2017. ´
|
| 240 |
+
|
| 241 |
+
Qiang Qiu and Guillermo Sapiro. Learning transformations for clustering and classification. The Journal of Machine Learning Research, 16(1):187–225, 2015.
|
| 242 |
+
|
| 243 |
+
Pierre Sermanet, David Eigen, Xiang Zhang, Michael Mathieu, Rob Fergus, and Yann LeCun. OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks. In International Conference on Learning Representations (ICLR), dec 2014. URL http://arxiv. org/abs/1312.6229.
|
| 244 |
+
|
| 245 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 246 |
+
|
| 247 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
|
| 248 |
+
|
| 249 |
+
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.
|
| 250 |
+
|
| 251 |
+
Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in Neural Information Processing Systems, pp. 2074–2082, 2016.
|
| 252 |
+
|
| 253 |
+
Christopher K I Williams and Matthias Seeger. Using the Nystrom method to speed up kernel ¨ machines. In Advances in neural information processing systems, pp. 682–688, 2001.
|
| 254 |
+
|
| 255 |
+
Matthew D Zeiler and Rob Fergus. Visualizing and Understanding Convolutional Networks. In David Fleet, Tomas Pajdla, Bernt Schiele, and Tinne Tuytelaars (eds.), Computer Vision – ECCV 2014, pp. 818–833, Cham, 2014. Springer International Publishing. ISBN 978-3-319-10590-1.
|
| 256 |
+
|
| 257 |
+
# A ALTERNATIVE ALGORITHMS
|
| 258 |
+
|
| 259 |
+
# LOW RANK WEIGHTS
|
| 260 |
+
|
| 261 |
+
With respect to compression, it is natural to look at low rank approximations of network parameters (Denton et al., 2014; Jaderberg et al., 2014). By factorizing the weight matrix/tensor $W$ , for input $x$ , we can get low rank pre-activations $W x$ . This however does not lead to low rank activations as demonstrated both mathematically (by the counter-example below) and empirically.
|
| 262 |
+
|
| 263 |
+
Mathematical Counter-Example: Consider a rank 1 pre-activation matrix $A$ and its corresponding post-activation(ReLU) matrix as below. It is easy to see that the rank of post-activation has increased to 2.
|
| 264 |
+
|
| 265 |
+
$$
|
| 266 |
+
A = { \left[ \begin{array} { l l l } { } & { 1 } & { - 1 } & { 1 } \\ { - 1 } & { 1 } & { - 1 } \end{array} \right] } \qquad { \mathrm { R e l u } } ( A ) = { \left[ \begin{array} { l l l } { } & { 1 } & { 0 } & { 1 } \\ { 0 } & { 1 } & { 0 } \end{array} \right] }
|
| 267 |
+
$$
|
| 268 |
+
|
| 269 |
+
Empirical Result: In order to see if techniques for low rank approximation of network parameters like Denton et al. (2014) would have produced low rank activations, we conducted an experiment by explicitly making the pre-activations low-rank using SVD. Our experiments showed that inspite of setting a rank of 100 to the pre-activation matrix, the post-activation matrix had full rank. Though all but the first hundred singular values of the pre-activation matrix were set to zero, the post-activation matrix’s $1 0 1 ^ { s t }$ and $1 0 0 \overline { { 0 } } ^ { t h }$ singular values were 49 and 7.9 respectively, and its first 100 singular values explained only $9 4 \%$ of the variance.
|
| 270 |
+
|
| 271 |
+
We try to explain the above empirical results as follows: Theoretically, a bounded activation function lowers the Frobenius norm of the pre-activation matrix i.e. the sum of the squared singular values. However, it also causes a smoothening of the singular values by making certain 0 singular values non-zero to compensate for the significant decrease in the larger singular values. This leads to an increase in rank of the post-activation matrix.
|
| 272 |
+
|
| 273 |
+
# BOTTLENECK LR LAYER
|
| 274 |
+
|
| 275 |
+
Bottleneck Layer: It is easy to see that the effective dimension of the representation of an input, obtained after passing through a bottleneck layer (like an auto-encoder), will not be greater than the dimension of the bottleneck layer itself. However, due to the various non-linearities present in the network, while the representation is guaranteed to lie in a low dimensional manifold it is not guaranteed to lie in a low rank (affine) subspace.
|
| 276 |
+
|
| 277 |
+
LR bottleneck: Another alternative is to include the low-rank projection and reconstruction as part of the network instead of as a regularizor so that the LR-layer is an actual layer and not a virtual layer. We have indeed experimented with this setup and observed that this often made the training very unstable. Also, if one were to add this bottleneck as a fine-tuning process, the test accuracy of the network decreases by a much higher extent than it does for our method.
|
| 278 |
+
|
| 279 |
+
# B ALGORITHMIC DETAILS
|
| 280 |
+
|
| 281 |
+
B.1 ALGORITHM FOR LR LAYER
|
| 282 |
+
|
| 283 |
+
Algorithm 1 below lists the forward and the backpropagation rules of the LR-layer.
|
| 284 |
+
|
| 285 |
+
# Algorithm 1 LR Layer
|
| 286 |
+
|
| 287 |
+
<table><tr><td colspan="3">Input: Activation Matrix A,Grad_input g</td></tr><tr><td>1: 2:</td><td></td><td></td></tr><tr><td>3:</td><td>Forward Propagation</td><td></td></tr><tr><td>4:</td><td>Z ←WT(A+b)³</td><td> Compute the affine Low rank projection</td></tr><tr><td>5:</td><td>Output : A</td><td> Output the original activations for the next layer</td></tr><tr><td>6:</td><td></td><td></td></tr><tr><td>7:</td><td>Backward Propagation</td><td></td></tr><tr><td>8:</td><td>D1←Z-(A+b)² n</td><td>Computes the reconstruction loss Lc</td></tr><tr><td>9:</td><td>∑- D2← 2 |1- ||ai n</td><td>> Computes the loss for the norm constraint LN</td></tr><tr><td>10:</td><td>D←D+D2 aD n-1aD</td><td></td></tr><tr><td>11: 12:</td><td>gw↑</td><td>> Outputs the gradient to be passed to the layer before</td></tr><tr><td>13:</td><td>Output : 9i</td><td></td></tr><tr><td>14:</td><td>Update Step</td><td></td></tr><tr><td>15:</td><td>W ←W-Xgw</td><td>> Updates the weight with the gradient from D.</td></tr><tr><td></td><td>16: W ← Irank(W)</td><td>Hard thresholds the rank of W</td></tr><tr><td></td><td></td><td></td></tr></table>
|
| 288 |
+
|
| 289 |
+
# B.2 ENSEMBLED NYSTROM¨ METHOD
|
| 290 |
+
|
| 291 |
+
Let $W \in \mathbb { R } ^ { m \times m }$ be a symmetric positive semidefinite matrix (SPSD). We want to generate a matrix $W _ { r }$ which is a r-rank approximation of $W$ without performing SVD on the full matrix $W$ but only on a principal submatrix4 $\dot { Z } \in \mathbb { R } ^ { l \times l }$ of $W$ , where $l \ll m$ . We sample $l$ indices from the set $\{ 1 \cdots m \}$ and select the corresponding columns from $W$ to form a matrix $\bar { C } \in \mathbb { R } ^ { m \times l }$ . In a similar way, selecting the $l$ rows from $C$ we get $Z \in \mathbb { R } ^ { l \times l }$ . We can rearrange the columns of $W$ so that
|
| 292 |
+
|
| 293 |
+
$$
|
| 294 |
+
W = \left[ \begin{array} { c c } { { Z } } & { { W _ { 2 1 } ^ { T } } } \\ { { W _ { 2 1 } } } & { { W _ { 2 2 } } } \end{array} \right] \qquad C = \left[ \begin{array} { c } { { Z } } \\ { { W _ { 2 1 } } } \end{array} \right]
|
| 295 |
+
$$
|
| 296 |
+
|
| 297 |
+
According to the Nystrom approximation, the low rank approximation of ¨ $W$ can be written as
|
| 298 |
+
|
| 299 |
+
$$
|
| 300 |
+
W _ { r } = C Z _ { r } ^ { + } C ^ { T }
|
| 301 |
+
$$
|
| 302 |
+
|
| 303 |
+
where $Z _ { r } ^ { + }$ is the pseudo-inverse of the best $r$ rank approximation of $Z$ . Hence, the entire algorithm is as follows.
|
| 304 |
+
|
| 305 |
+
• Compute $C$ and $Z$ as stated above.
|
| 306 |
+
• Compute the top $r$ singular vectors and values of $Z : U _ { r } , \Sigma _ { r } , V _ { r }$ .
|
| 307 |
+
• Invert each element of $\Sigma _ { r }$ as this is used to get the Moore pseudo-inverse of $Z _ { r }$ .
|
| 308 |
+
• Compute $Z _ { r } ^ { + } = U _ { r } \Sigma _ { r } ^ { - 1 } V _ { r }$ and $W _ { r } = C Z _ { r } ^ { + } C ^ { T }$ .
|
| 309 |
+
|
| 310 |
+
Though by trivial computation, the complexity of the algorithm seems to be $O ( l ^ { 2 } r + m l ^ { 2 } + m ^ { 2 } l ) =$ $O ( m ^ { \bar { 2 } } r )$ (In our experiments $l = 2 r$ ), it must be noted that the complexity of the SVD step is only $O ( k ^ { 3 } )$ which is much lesser than $O ( m ^ { 2 } r )$ and while matrix multiplication is easily parallelizable, parallelization of SVD is highly non-trivial and inefficient.
|
| 311 |
+
|
| 312 |
+
To improve the accuracy of the approximation, we use the ensembled Nystrom sampling based ¨ methods (Kumar et al., 2009a) by averaging the outputs of $t$ runs of the Nystrom method. The ¨ $l$ indices for selecting columns and rows are sampled from an uniform distribution and it has been shown (Kumar et al., 2009b) that uniform sampling performs better than most sampling methods. Theorem 3 in Kumar et al. (2009a) provides a probabilistic bound on the Frobenius norm of the difference between the exact best r-rank approximation and the Nystrom sampled r-rank ¨ approximation.
|
| 313 |
+
|
| 314 |
+
# B.3 LEMMA 1
|
| 315 |
+
|
| 316 |
+
Lemma 1. If $\boldsymbol { X } \in \mathbb { R } ^ { m \times m }$ is a SPSD matrix and $X _ { r } \in \mathbb { R } ^ { m \times m }$ is the best Nystrom ensembled, ¨ column sampled $r$ -rank approximation of $X$ , then $X _ { r }$ is SPSD as well. (Proof in Appendix B.3)
|
| 317 |
+
|
| 318 |
+
Proof. By the Construction of the Nystrom SVD algorithm, we know that ¨ $X _ { r } = C W _ { r } ^ { + } C ^ { T }$ . We will first show that $W _ { r } ^ { + }$ is a symmetric matrix.
|
| 319 |
+
|
| 320 |
+
We know that $X$ is SPSD. Let $I$ be a sorted list of distinct indices such that $| I | = l$ . Then by construction of $W$ ,
|
| 321 |
+
|
| 322 |
+
$$
|
| 323 |
+
W _ { i , j } = X _ { I [ i ] , I [ j ] }
|
| 324 |
+
$$
|
| 325 |
+
|
| 326 |
+
Hence, as $X _ { I [ i ] , I [ j ] } = X _ { I [ j ] , I [ i ] } , W$ is symmetric.
|
| 327 |
+
|
| 328 |
+
At this step, our algorithm adds $\delta \cdot I$ to $W$ where $\delta \geq 0$ . It is easy to observe that $W + \delta \cdot \mathcal { T }$ is positive semidefinite.
|
| 329 |
+
|
| 330 |
+
Consider a vector $a \in \mathbb { R } ^ { | X | }$ . Create a vector $\bar { a } \in \mathbb { R } ^ { m }$ where
|
| 331 |
+
|
| 332 |
+
$$
|
| 333 |
+
{ \bar { a } } _ { i } = { \left\{ \begin{array} { l l } { 0 } & { { \mathrm { i f ~ } } i \notin I } \\ { a _ { i } } & { { \mathrm { o . w . } } } \end{array} \right. }
|
| 334 |
+
$$
|
| 335 |
+
|
| 336 |
+
$$
|
| 337 |
+
\begin{array} { r } { \boldsymbol { a } ^ { \top } \left( \boldsymbol { W } + \boldsymbol { \delta } \cdot \boldsymbol { \mathcal { T } } \right) \boldsymbol { a } = \bar { \boldsymbol { a } } ^ { \top } \boldsymbol { X } \bar { \boldsymbol { a } } + \boldsymbol { \delta } \cdot \boldsymbol { a } ^ { \top } \boldsymbol { \mathcal { Z } } \boldsymbol { a } \geq 0 + \boldsymbol { \delta } \| \mathbf { a } \| ^ { 2 } \geq 0 } \end{array}
|
| 338 |
+
$$
|
| 339 |
+
|
| 340 |
+
Let $W + \delta \mathcal { T }$ be the new $W$ and (3) shows that $W$ is positive semidefinite.
|
| 341 |
+
|
| 342 |
+
Now we will show that $X _ { r }$ is symmetric as well. As $W$ is symmetric, there exists an orthogonal matrix $Q$ and a non-negative diagonal matrix $\Lambda$ such that
|
| 343 |
+
|
| 344 |
+
$$
|
| 345 |
+
W = Q \Lambda Q ^ { T }
|
| 346 |
+
$$
|
| 347 |
+
|
| 348 |
+
We know that $W _ { r } = Q _ { [ 1 : r ] } \Lambda _ { [ 1 : r ] } Q _ { [ 1 : r ] } ^ { T }$ and $W _ { r } ^ { + } = Q _ { [ 1 : r ] } \Lambda _ { [ 1 : r ] } ^ { - 1 } Q _ { [ 1 : r ] } ^ { T } ,$ Hence,
|
| 349 |
+
|
| 350 |
+
$$
|
| 351 |
+
\begin{array} { r l } & { X _ { r } = C W _ { r } ^ { + } C ^ { T } } \\ & { \quad \quad \quad = C Q _ { [ 1 : r ] } \Lambda _ { [ 1 : r ] } ^ { - 1 } Q _ { [ 1 : r ] } ^ { T } C ^ { T } } \\ & { X _ { r } ^ { T } = ( C Q _ { [ 1 : r ] } \Lambda _ { [ 1 : r ] } ^ { - 1 } Q _ { [ 1 : r ] } ^ { T } C ^ { T } ) ^ { T } } \\ & { \quad \quad \quad = C Q _ { [ 1 : r ] } \Lambda _ { [ 1 : r ] } ^ { - 1 } Q _ { [ 1 : r ] } ^ { T } C ^ { T } } \\ & { \quad \quad \quad = X _ { r } } \end{array}
|
| 352 |
+
$$
|
| 353 |
+
|
| 354 |
+
∴ $X _ { r }$ is symmetric. We can also see that the $X _ { r } ^ { T }$ is positive semi definite by pre-multiplying and post multiplying it with a non-zero vector and using the fact that $W _ { r } ^ { + }$ is positive semi-definite.
|
| 355 |
+
|
| 356 |
+
# C EXPERIMENTAL DETAILS
|
| 357 |
+
|
| 358 |
+
We used a single NVIDIA Tesla P40 GPU for training our networks. All our experiments were run with a learning rate of 0.01 for 500 epochs with a batch size of 512. The hyper-parameter $l$ in the Nystrom method was set to double of the target rank. The model was pre-trained with SGD until the ¨ training accuracy reached $6 5 \%$ and then Algorithm 1 was applied. The rank cutting operation was performed every 10 iterations.
|
| 359 |
+
|
| 360 |
+
The target rank for the LR-layers, which were placed before the FC layers was set to 50 while the target rank for the LR-layer before the last ResNet block was set to 1000. However, experiments suggest that this hyper-parameter is not very crucial to the training process as the training procedure converged the effective rank of the activation matrix to a value lesser than the designated target ranks.
|
| 361 |
+
|
| 362 |
+
The linear classifier in X-MAXG is trained using SGD with hinge loss and $L _ { 2 }$ regularization with a coefficient of 0.01. The learning rate is decreased per iteration as $\begin{array} { r } { \eta _ { t } = \frac { \eta _ { 0 } } { \left( 1 + \alpha t \right) } } \end{array}$ where $\eta _ { 0 }$ and $\alpha$ are set by certain heuristics 5.
|
| 363 |
+
|
| 364 |
+
# C.1 IMPACT ON TEST ACCURACY
|
| 365 |
+
|
| 366 |
+
Table 1(b) shows the result of a transfer learning exercise where we trained two sets of ResNet50-MAXG classifiers. First, two ResNet-50 models were trained with and without the LR-layer respectively on the coarse labels of CIFAR-100. Then, 2048 dimensional embeddings were extracted from after the fourth ResNet block using the train set and the test set of CIFAR 100. The embeddings from the train set were used to train two groups (each group having two classifiers- one for each ResNet-50 model) of max-margin linear classifiers with the same hyper-parameters as described above. While the first group was trained on the coarse labels of CIFAR-100, the second set was trained on the fine labels. The test accuracy of these four classifiers are then reported in Table 1(b) on the corresponding labels.
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
Figure 5: Variance Ratio captured by varying number of Singular Values
|
| 370 |
+
|
| 371 |
+
# Effective rank of activations for VGG:
|
| 372 |
+
|
| 373 |
+
# C.2 VALIDITY OF LOW DIMENSIONAL EMBEDDINGS
|
| 374 |
+
|
| 375 |
+
In the first experiment, reported in Table 2(a), we trained two ResNet-50-MAXG models -with and without the LR-layer respectively- on the 20 super-classes of CIFAR-100. As our objective here is to see if the embeddings and their low dimensional projections could be effectively used for discriminative tasks, we used PCA, with standard pre-processing of scaling the input, to project the embeddings onto a low dimensional space before training a linear maximum margin classifier on it.
|
| 376 |
+
|
| 377 |
+
The experiments in Table 2(b) were run with ResNet-18 on CIFAR-10. Two ResNet-18-MAXG classifiers - with and without the LR-layer respectively- were trained on CIFAR-10. The representations were obtained from before the fourth ResNet block and had a dimension of 16,384. Similar to the previous experiment, we used PCA, with standard pre-processing, to gather low dimensional projections before training linear max margin classifiers on it.
|
| 378 |
+
|
| 379 |
+
<table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Emb-dim</td><td rowspan=1 colspan=1>Acc</td></tr><tr><td rowspan=1 colspan=1>VGG19-2LR</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>89.8</td></tr><tr><td rowspan=1 colspan=1>VGG19-NLR</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>89.7</td></tr><tr><td rowspan=1 colspan=1>VGG19-2LR</td><td rowspan=1 colspan=1>20</td><td rowspan=1 colspan=1>89.85</td></tr><tr><td rowspan=1 colspan=1>VGG19-NLR</td><td rowspan=1 colspan=1>20</td><td rowspan=1 colspan=1>89.78</td></tr><tr><td rowspan=1 colspan=1>VGG19-2LR</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>89.79</td></tr><tr><td rowspan=1 colspan=1>VGG19-NLR</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>89.65</td></tr></table>
|
| 380 |
+
|
| 381 |
+
Table 5: Representation from before the third last FC layer of a VGG19trained on CIFAR-10.
|
| 382 |
+
|
| 383 |
+
As expected, the difference in accuracy here is less stark than the case of ResNet. This is because of two reasons - 1. The dimension of the activation layer in ResNet before the last ResNet block is 16,384 whereas the activations before the third last FC layer is only 512. 2. Figure 5 shows that the difference in the variance ratio between the LR and the N-LR network is much smaller as compared to Figure 1 for ResNets.
|
| 384 |
+
|
| 385 |
+
# C.3 CLASS WISE VARIANCE
|
| 386 |
+
|
| 387 |
+

|
| 388 |
+
|
| 389 |
+
(a) 512 dimensional activations from after last ResNet block.
|
| 390 |
+
|
| 391 |
+

|
| 392 |
+
(b) $1 6 k$ dimensional activations from before last ResNet block.
|
| 393 |
+
|
| 394 |
+
Figure 6: Class wise variance ratio of one singular values for the activations before the last ResNet block.
|
| 395 |
+
|
| 396 |
+
In this experiment, we plot $\mathsf { V R } _ { 1 } \left( \cdot \right)$ for embeddings of examples restricted to individual classes. Figure 6(a) shows the variance ratio captured by the largest singular value for the activations before the last FC layer while Figure 6(b) shows the variance ratio captured by the largest singular value for the activations before the last ResNet block. These experiments give us some idea about the extent to which the set of basis vectors assigned to individual classes are intersecting.
|
| 397 |
+
|
| 398 |
+
# C.4 CLUSTERS OF LOW DIMENSIONAL EMBEDDINGS
|
| 399 |
+
|
| 400 |
+
Figure 7 shows the two dimensional projections of the 2048 dimensional embeddings obtained from ResNet-50-LR and ResNet-50-N-LR. The coloring is done according to the coarse labels of the input. We can see that the clusters are more separable in the case of the model with LR-layer than the model without, which gives some insight into why a max-margin classifier performs better for the LR model than the N-LR model.
|
| 401 |
+
|
| 402 |
+

|
| 403 |
+
Figure 7: PCA plot for super-class labels in CIFAR 100. Plot on the left shows embeddings from the LR trained model on ResNet-50 while the plot on the right represents a normal ResNet-50 model. Both of them are trained in a similar way. Each color represents a different class.
|
| 404 |
+
|
| 405 |
+
# D ADVERSARIAL ATTACKS
|
| 406 |
+
|
| 407 |
+
D.1 TYPES OF ATTACKS
|
| 408 |
+
|
| 409 |
+
• Iter-FSGM- The Fast Sign Gradient Method (FSGM) Goodfellow et al. (2014) was proposed as the existing methods (Szegedy et al. (2013)) of the time were slow. FSGM tries to maximize the loss function by perturbing the input slightly. Iterative Fast Sign Gradient method (Iter-FSGM) is a simple extension of FSGM that follows the following simple iterative step.
|
| 410 |
+
|
| 411 |
+
$$
|
| 412 |
+
\begin{array} { r l } & { \mathbf { x } _ { a } ^ { 0 } = \mathbf { x } _ { d } , } \\ & { \mathbf { x } _ { a } ^ { n + 1 } = \mathrm { c l i p } _ { \mathbf { x } , \epsilon } ( \mathbf { x } _ { a } ^ { n } + \boldsymbol { \alpha } \cdot \mathrm { s i g n } ( \nabla _ { \mathbf { x } _ { a } ^ { n } } \mathcal { L } ( \mathbf { x } _ { a } ^ { n } , \mathbf { y } _ { t } ) ) ) } \end{array}
|
| 413 |
+
$$
|
| 414 |
+
|
| 415 |
+
• Iter-LL-FSGM- Iter-FSGM is an untargeted attack. Iterative less likely fast sign gradient method (Iter-LL-FSGM) (Kurakin et al., 2017) is a way to choose the target label wisely. Consider $\mathbb { P } _ { M } ( \mathbf { y } | \mathbf { x } )$ to be the probability assigned to the label $\mathbf { y }$ , for the example $\mathbf { x }$ , by the model $M$ . In this attack, the target is set as $\mathbf { y } _ { t } ^ { n } = \operatorname { a r g m i n } _ { \mathbf { y } \in \mathcal { Y } } \mathbb { P } _ { M } ( \mathbf { y } | \mathbf { x } ^ { n } )$ and the following iterative update steps are performed.
|
| 416 |
+
|
| 417 |
+
$$
|
| 418 |
+
\begin{array} { r l } & { \mathbf { x } _ { a } ^ { 0 } = \mathbf { x } _ { d } , } \\ & { \mathbf { x } _ { a } ^ { n + 1 } = \mathrm { c l i p } _ { \mathbf { x } , \epsilon } ( \mathbf { x } _ { a } ^ { n } - \alpha \cdot \mathrm { s i g n } ( \nabla _ { \mathbf { x } _ { a } ^ { n } } \mathcal { L } ( \mathbf { x } _ { a } ^ { n } , \mathbf { y } _ { t } ^ { n } ) ) ) } \end{array}
|
| 419 |
+
$$
|
| 420 |
+
|
| 421 |
+
Intuitively, this method picks the least likely class in each iteration and then tries to increase the probability of predicting that class. In both of these methods, $\alpha$ was set to 1 as was done in Kurakin et al. (2017).
|
| 422 |
+
|
| 423 |
+
• DeepFool- Moosavi-Dezfooli et al. (2016) describes the DeepFool procedure to find the optimal (smallest) perturbation for the input $\mathbf { x }$ that can fool the classifier. In the case of affine classifiers, DeepFool finds the closest hyper-plane of the boundary of the region where the classifier returns the same label as $\mathbf { x }$ and then adds a small perturbation to cross the hyper-plane in that direction.
|
| 424 |
+
|
| 425 |
+
As deep net classifiers are not affine, the partitions of the input space where the classifier outputs the same label are not not polyhedrons. Hence, the algorithm takes an iterative approach. Specifically, the algorithm assumes a linerization of the classifier around $\mathbf { x }$ to approximate the polyhedron and then it takes a step towards the closest boundary. For a more detailed explanation please look at Moosavi-Dezfooli et al. (2016).
|
| 426 |
+
|
| 427 |
+
# D.2 MINIMUM PERTURBATION FOR A SUCCESSFUL ATTACK
|
| 428 |
+
|
| 429 |
+
Table 3 lists the minimum perturbation required to fool the classifier under the particular attack scheme. For Iter-FSGM and Iter-LL-FSGM, there are essentially three hyper-parameters $( t , \alpha , \epsilon )$ in the experiments as can be seen below.
|
| 430 |
+
|
| 431 |
+
Iter-FSGM
|
| 432 |
+
|
| 433 |
+
Repeat $t$ times
|
| 434 |
+
|
| 435 |
+
$$
|
| 436 |
+
\begin{array} { r l } & { \mathbf { x } _ { a } ^ { 0 } = \mathbf { x } _ { d } , } \\ & { \mathbf { x } _ { a } ^ { n + 1 } = \mathrm { c l i p } _ { \mathbf { x } , \epsilon } ( \mathbf { x } _ { a } ^ { n } + \boldsymbol { \alpha } \cdot \mathrm { s i g n } ( \nabla _ { \mathbf { x } _ { a } ^ { n } } \mathcal { L } ( \mathbf { x } _ { a } ^ { n } , \mathbf { y } _ { t } ) ) ) } \end{array}
|
| 437 |
+
$$
|
| 438 |
+
|
| 439 |
+
Iter-LL-FSGM
|
| 440 |
+
|
| 441 |
+
Repeat $t$ times
|
| 442 |
+
|
| 443 |
+
$$
|
| 444 |
+
\begin{array} { r l } & { \mathbf { x } _ { a } ^ { 0 } = \mathbf { x } _ { d } , } \\ & { \mathbf { x } _ { a } ^ { n + 1 } = \mathrm { c l i p } _ { \mathbf { x } , \epsilon } ( \mathbf { x } _ { a } ^ { n } - \alpha \cdot \mathrm { s i g n } ( \nabla _ { \mathbf { x } _ { a } ^ { n } } \mathcal { L } ( \mathbf { x } _ { a } ^ { n } , \mathbf { y } _ { t } ^ { n } ) ) ) } \end{array}
|
| 445 |
+
$$
|
| 446 |
+
|
| 447 |
+
Following the convention of Kurakin et al. (2017), we set $\alpha = 1$ . We tuned the hyper-parameter $\epsilon$ function to obtain the smallest $\epsilon$ that resulted in over $9 9 \%$ misclassification accuracy for some $t$ and then repeated the experiments until such a $t$ was achieved. Finally $\rho$ was calculated.
|
| 448 |
+
|
| 449 |
+
Algorithm 2 in Moosavi-Dezfooli et al. (2016) gives details about the DeepFool algorithm for multi-class classifiers. The algorithm returns the minimum perturbation $r ( \mathbf { x } )$ required to make the classifier misclassify the instance $\mathbf { x }$ . The $L _ { 2 }$ dissimilarity is obtained by calculating $\begin{array} { r } { \rho = \frac { r ( \mathbf { x } ) } { \| \mathbf { x } \| _ { 2 } } } \end{array}$
|
| 450 |
+
|
| 451 |
+
For the benefit of reproducibility of experiments, we list the values of $\epsilon$ for Iter-LL-FSGM and Iter-FSGM in Table 6 corresponding to the values in Table 3 . For DeepFool, we used the publicly available code 6.
|
| 452 |
+
|
| 453 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>e[Iter-LL-FSGM]</td><td rowspan=1 colspan=1>ɕ[Iter-FSGM]</td></tr><tr><td rowspan=3 colspan=1>White Box</td><td rowspan=1 colspan=1>ResNet 2-LR</td><td rowspan=1 colspan=1>0.04</td><td rowspan=1 colspan=1>0.02</td></tr><tr><td rowspan=1 colspan=1>ResNet 1-LR</td><td rowspan=1 colspan=1>0.06</td><td rowspan=1 colspan=1>0.01</td></tr><tr><td rowspan=1 colspan=1>ResNet N-LR</td><td rowspan=1 colspan=1>0.01</td><td rowspan=1 colspan=1>0.01</td></tr><tr><td rowspan=2 colspan=1>Black Box</td><td rowspan=1 colspan=1>ResNet 1-LR</td><td rowspan=1 colspan=1>0.08</td><td rowspan=1 colspan=1>0.01</td></tr><tr><td rowspan=1 colspan=1>ResNet 2-LR</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.01</td></tr></table>
|
| 454 |
+
|
| 455 |
+
Table 6: Value for $\epsilon$ required for Adversarial Misclassification corresponding to Table 3.
|
| 456 |
+
|
| 457 |
+
# D.3 UNSTABILITY OF ADVERSARIAL ATTACKS
|
| 458 |
+
|
| 459 |
+
The essential difference between the attacks in Figure 2 and Table 3 is in the number of iterations for which the updates (Step 6 and Step 7) are executed. In Figure 2, the step is executed $t$ times whereas in Table 3, the updates are executed until the classifier makes a mistake.
|
| 460 |
+
|
| 461 |
+
It would be natural to expect that once a classifier has misclassified an example, adding more adversarial perturbation will surely not make the classifier classify it correctly. However, Figure 8 suggests that a misclassified example can be classified correctly upon further addition of noise.
|
| 462 |
+
|
| 463 |
+
Let $y _ { a } ( \mathbf { x } ; k )$ be the label given to $\mathbf { x }$ after adding adversarial perturbation to $\mathbf { x }$ for $k$ steps. We define instantaneous accuracy $( a _ { \mathcal { T } } ( k ) )$ and cumulative accuracy $( a _ { C } ( k ) )$ as
|
| 464 |
+
|
| 465 |
+
$$
|
| 466 |
+
a _ { \mathcal { T } } ( \boldsymbol { k } ) = 1 - \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \mathcal { T } _ { 0 , 1 } \left\{ y _ { a } ( \mathbf { x } ; \boldsymbol { k } ) \neq y _ { a } ( \mathbf { x } ; 0 ) \right\}
|
| 467 |
+
$$
|
| 468 |
+
|
| 469 |
+
$$
|
| 470 |
+
a _ { \mathcal { C } } ( k ) = 1 - \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \operatorname* { m a x } _ { 1 \leq j \leq k } \left\{ \mathcal { T } _ { 0 , 1 } \left\{ y _ { a } ( \mathbf { x } ; j ) \neq y _ { a } ( \mathbf { x } ; 0 ) \right\} \right\}
|
| 471 |
+
$$
|
| 472 |
+
|
| 473 |
+

|
| 474 |
+
Figure 8: This shows that an adversarial example that has successfully fooled the classifier in a previous step can be classified correctly upon adding more perturbation. Figure ?? and ?? refers to the two attack schemes - Iter-LL-FSGM and Iter-FSGM respectively.
|
| 475 |
+
|
| 476 |
+
In Figure 8, we see the instantaneous accuracy and the cumulative accuracy for ResNet 1-LR where $\alpha = 0 . 0 1 , \epsilon = 0 . 1$ and $t$ is plotted in the $\mathbf { X }$ -axis. The cumulative accuracy is by definition a non-increasing sequence. However, surprisingly the instantaneous accuracy is not monotonic and has a lower rate of decrease than the cumulative accuracy. It also appears to stabilize at a value much higher than the cumulative accuracy.
|
| 477 |
+
|
| 478 |
+
# D.4 ADVERSARIAL ATTACK ON MAXIMUM MARGIN MODEL
|
| 479 |
+
|
| 480 |
+
Here, we train max-margin classifiers on representations of images obtained from different ResNet models and see whether the representations of adversarial images, that had successfully fooled the ResNet model, could fool the max-margin classifier as well. We train a variety of X-MAXG models - ResNet18-1-LR-MAXG, ResNet18-2-LR-MAXG, ResNet18-N-LR-MAXG and black box versions of the same.
|
| 481 |
+
|
| 482 |
+
Once, these classifiers are trained, adversarial examples were generated for the three attacks (both black box and white box) on ResNet18-1-LR, ResNet18 2-LR and ResNet18-N-LR by the techniques described in Section D.2. The accuracy of the MAXG models are listed in Table 4.
|
| 483 |
+
|
| 484 |
+
To perform a fair comparison with ResNet18-N-LR-MAXG, it is essential to add a similar amount of noise to generate the examples for ResNet18-N-LR-MAXG as is added in ResNet18-1-LR-MAXG. The adversarial examples are hence generated by obtaining the gradient using ResNet18-N-LR but stopping the iteration only when the adversarial example could fool ResNet18-1-LR. This is, in-fact, the black box attack on ResNet18-1-LR. As Table 4 suggests, our models create representations that are more robust to adversarial perturbations than a normal model.
|
parse/train/SJzvDjAcK7/SJzvDjAcK7_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJzvDjAcK7/SJzvDjAcK7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJzvDjAcK7/SJzvDjAcK7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Syx7WyBtwB/Syx7WyBtwB.md
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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explanation of a deep learning model to be effective, it must provide both insight into a model and suggest a corresponding action in order to achieve some objective. Too often, the litany of proposed explainable deep learning methods stop at the first step, providing practitioners with insight into a model, but no way to act on it. In this paper, we propose contextual decomposition explanation penalization (CDEP), a method which enables practitioners to leverage existing explanation methods in order to increase the predictive accuracy of deep learning models. In particular, when shown that a model has incorrectly assigned importance to some features, CDEP enables practitioners to correct these errors by directly regularizing the provided explanations. Using explanations provided by contextual decomposition (CD) (Murdoch et al., 2018), we demonstrate the ability of our method to increase performance on an array of toy and real datasets.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
In recent years, neural networks have demonstrated strong predictive performance across a wide variety of settings. However, in order to achieve that accuracy, they sometimes latch onto spurious correlations, leading to undesirable behavior as a result of dataset bias (Winkler et al., 2019), racial and ethnic stereotypes (Garg et al., 2018), or simply overfitting. While recent work into explaining neural network predictions (Murdoch et al., 2019; Doshi-Velez & Kim, 2017) has demonstrated an ability to uncover the relationships learned by a model, it is still unclear how to actually alter the model in order to remove incorrect, or undesirable, relationships.
|
| 12 |
+
|
| 13 |
+
We introduce contextual decomposition explanation penalization (CDEP), a method which leverages existing explanation techniques for neural networks in order to prevent a model from learning unwanted relationships and ultimately improve predictive accuracy.
|
| 14 |
+
|
| 15 |
+
Given particular importance scores, CDEP works by allowing the user to directly penalize importances of certain features, or interactions. This forces the neural network to not only produce the correct prediction, but also the correct explanation for that prediction. While we focus on contextual decomposition (CD) (Murdoch et al., 2018; Singh et al., 2018), which allows the penalization of both feature importances and interactions, CDEP can be readily adapted for existing interpretation techniques, as long as they are differentiable. Moreover, CDEP is a general technique, which can be applied to arbitrary neural network architectures, and is orders of magnitude faster and more memory efficient than recent gradient-based methods, allowing its use on meaningful datasets.
|
| 16 |
+
|
| 17 |
+
In order to demonstrate the effectiveness of CDEP, we conducted experiments across a wide variety of tasks. In the prediction of skin cancer from images, CDEP improves the prediction of a classifier by teaching it to ignore spurious confounding variables present in the training data. In a colored MNIST task, CDEP allows the network to focus on a digit’s shape rather than its color (with no extra human annotation needed). Finally, a toy example using text classification shows how the penalization can help a network avoid a bias towards particular words, such as those involving gender.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: CDEP allows a practitioner to penalize both a model’s prediction and the corresponding explanation.
|
| 21 |
+
|
| 22 |
+
# 2 BACKGROUND
|
| 23 |
+
|
| 24 |
+
Explanation methods Many methods have been developed to help explain the learned relationships contained in a DNN. For local, or prediction-level, explanation, most prior work has focused on assigning importance to individual features, such as pixels in an image or words in a document. There are several methods that give feature-level importance for different architectures. They can be categorized as gradient-based (Springenberg et al., 2014; Sundararajan et al., 2017; Selvaraju et al., 2016; Baehrens et al., 2010; Rieger & Hansen, 2019), decomposition-based (Murdoch & Szlam, 2017; Shrikumar et al., 2016; Bach et al., 2015) and others (Dabkowski & Gal, 2017; Fong & Vedaldi, 2017; Ribeiro et al., 2016; Zintgraf et al., 2017), with many similarities among the methods (Ancona et al., 2018; Lundberg & Lee, 2017). However, many of these methods have thus far been poorly evaluated (Adebayo et al., 2018; Nie et al., 2018), casting doubt on their usefulness. Another line of work, which we build upon, has focused on uncovering interactions between features, in addition to feature importances, (Murdoch et al., 2018), and using those interactions to create a hierarchy of features displaying the model’s prediction process (Singh et al., 2018).
|
| 25 |
+
|
| 26 |
+
Uses of explanation methods While much work has been put into developing methods for explaining DNNs, relatively little work has explored the potential to use these explanations to help build a better model. Some recent work proposes forcing models to attend to regions of the input which are known to be important (Burns et al., 2018; Mitsuhara et al., 2019), although it is important to note that attention is often not the same as explanation (Jain & Wallace, 2019). An alternative line of work proposes penalizing the gradients of a neural network to match human-provided binary annotations and shows the possibility to improve performance (Ross et al., 2017) and adversarial robustness (Ross & Doshi-Velez, 2018). Two recent papers extend these ideas by penalizing attributions for natural language models (Liu & Avci, 2019) and penalizing a modified gradient-based score to produce smooth attributions (Erion et al., 2019). Predating deep learning, (Zaidan et al., 2007) consider the use of “annotator rationales” in sentiment analysis to train support vector machines. This work on annotator rationales was recently extended to show improved explanations (not accuracy) in CNNs (Strout et al., 2019).
|
| 27 |
+
|
| 28 |
+
Other ways to constrain DNNs While we focus on the use of explanations to constrain the relationships learned by neural networks, other approaches for constraining neural networks have also been proposed. A computationally intensive alternative is to augment the dataset in order to prevent the model from learning undesirable relationships, through domain knowledge (Bolukbasi et al., 2016), projecting out superficial statistics (Wang et al., 2019) or dramatically altering training images (Geirhos et al., 2018). However, these processes are often not feasible, either due to their computational cost or the difficulty of constructing such an augmented data set. Adversarial training has also been explored (Zhang & Zhu, 2019). These techniques are generally limited, as they are often tied to particular datasets, and do not provide a clear link between learning about a model’s learned relationships through explanations, and subsequently correcting them.
|
| 29 |
+
|
| 30 |
+
# 3 METHODS
|
| 31 |
+
|
| 32 |
+
We now introduce CDEP, which penalizes the explanations of a neural network in order to align with prior knowledge about why a model should make a prediction. To do so, for each data point it penalizes the CD scores of features, or groups of features, which a user does not want the model to learn to be important. While we focus on CD scores, which allow the penalization of interactions between features in addition to features themselves, this approach readily generalizes to other interpretation techniques, so long as they are differentiable.
|
| 33 |
+
|
| 34 |
+
# 3.1 AUGMENTING THE LOSS FUNCTION
|
| 35 |
+
|
| 36 |
+
Given a particular classification task, we want to teach a model to not only produce the correct prediction, but also to arrive at the prediction for the correct reasons. That is, we want the model to be right for the right reasons, where the right reasons are provided by the user and are datasetdependent.
|
| 37 |
+
|
| 38 |
+
To accomplish this, CDEP modifies the objective function used to train a neural network, as displayed in Eq 1. In addition to the standard prediction loss $\mathcal { L }$ , which teaches the model to produce the correct predictions, CDEP adds an explanation error $\mathcal { L } _ { \mathrm { e x p l } }$ , which teaches the model to produce the correct explanations for its predictions. In place of the prediction and labels $f _ { \theta } ( X ) , y$ , used in the prediction error $\mathcal { L }$ , the explanation error $\mathcal { L } _ { \mathrm { e x p l } }$ uses the explanations produced by an interpretation method $\operatorname { e x p l } _ { \theta } ( X )$ , along with targets provided by the user $\operatorname { e x p l } _ { X }$ . As is common with penalization, the two losses are weighted by a hyperparameter $\lambda \in \mathbb { R }$ :
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
\begin{array} { r } { \hat { \theta } = \underset { \theta } { \operatorname { a r g m i n } } \underbrace { \mathcal { L } \left( f _ { \theta } ( X ) , y \right) } _ { \mathrm { P r e d i c t i o n ~ e r r o r } } + \lambda \underbrace { \mathcal { L } _ { \mathrm { e x p l } } \left( \exp { \mathrm { l } _ { \theta } ( X ) } , \exp { \mathrm { l } _ { X } } \right) } _ { \mathrm { E x p l a n a t i o n ~ e r r o r } } } \end{array}
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
The precise meanings of $\operatorname { e x p l } _ { X }$ depend on the context. For example, in the skin cancer image classification task described in Section 4, many of the benign skin images contain band-aids, but none of the malignant images. To force the model to ignore the band-aids in making their prediction, in each image $\operatorname { e x p l } _ { \theta } ( X )$ denotes the importance score of the band-aid and $\operatorname { e x p l } _ { X }$ would be zero. These and more examples are further explored in Section 4.
|
| 45 |
+
|
| 46 |
+
# 3.2 CONTEXTUAL DECOMPOSITION (CD)
|
| 47 |
+
|
| 48 |
+
In this work, we use the CD score as the explanation function. In contrast to other interpretation methods, which focus on feature importances, CD also captures interactions between features. CD was originally designed for LSTMs (Murdoch et al., 2018) and subsequently extended to convolutional neural networks and arbitrary DNNs (Singh et al., 2018). For a given DNN $f ( x )$ , one can represent its output as a SoftMax operation applied to logits $g ( x )$ . These logits, in turn, are the composition of $L$ layers $g _ { i }$ , such as convolutional operations or ReLU non-linearities.
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
f ( x ) = { \mathrm { S o f t M a x } } { \big ( } g ( x ) { \big ) } = { \mathrm { S o f t M a x } } { \big ( } g _ { L } { \big ( } g _ { L - 1 } { \big ( } . . . { \big ( } g _ { 2 } { \big ( } g _ { 1 } ( x ) ) { \big ) } { \big ) } { \big ) } { \big ) }
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
Given a group of features $\{ x _ { j } \} _ { j \in S }$ , the CD algorithm, $g ^ { C D } ( x )$ , decomposes the logits $g ( x )$ into a sum of two terms, $\beta ( x )$ and $\gamma ( x )$ . $\beta ( x )$ is the importance score of the feature group $\{ x _ { j } \} _ { j \in S }$ , and $\gamma ( x )$ captures contributions to $g ( x )$ not included in $\beta ( x )$ . The decomposition is computed by iteratively applying decompositions $g _ { i } ^ { C D } ( x )$ for each of the layers $g _ { i } ( x )$ .
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
\begin{array} { c } { { g ^ { C D } ( x ) = g _ { L } ^ { C D } ( g _ { L - 1 } ^ { C D } ( . . . ( g _ { 2 } ^ { C D } ( g _ { 1 } ^ { C D } ( x ) ) ) ) ) = ( \beta ( x ) , \gamma ( x ) ) } } \\ { { \beta ( x ) + \gamma ( x ) = g ( x ) } } \end{array}
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
# 3.3 CDEP OBJECTIVE FUNCTION
|
| 61 |
+
|
| 62 |
+
We now substitute the above CD scores into the generic equation in $\mathrm { E q } 1$ to arrive at the method used in this paper. While we use CD for the explanation method $\operatorname { e x p l } _ { \theta } ( X )$ , other explanation methods could be readily substituted at this stage. In order to convert CD scores to probabilities, we apply a SoftMax operation to $g ^ { C D } ( x )$ , allowing for easier comparison with the user-provided labels $\operatorname { e x p l } _ { X }$ . We collect from the user, for each input $x _ { i }$ , a collection of feature groups $x _ { i , S }$ , $x _ { i } \in \mathbb { R } ^ { d } , S \subseteq$ $\{ 1 , . . . , d \}$ , along with explanation target values $\mathrm { e x p l } _ { x _ { i , S } }$ , and use the $\| \cdot \| _ { 1 }$ loss for $\mathcal { L } _ { \mathrm { e x p l } }$ .
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\hat { \theta } = \underset { \theta } { \mathrm { a r g m i n } } \sum _ { i } \sum _ { c } - y _ { i , c } \log f _ { \theta } ( x _ { i } ) _ { c } + \lambda \sum _ { i } \sum _ { S } | | \beta ( x _ { i , S } ) - \exp | _ { x _ { i , S } } | | _ { 1 }
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
In the above, $i$ indexes each individual example in the dataset, $S$ indexes a subset of the features for which we penalize their explanations, and $c$ sums over each class. Updating the model parameters in accordance with this formulation ensures that the model not only predicts the right output but also does so for the right (aligned with prior knowledge) reasons.
|
| 69 |
+
|
| 70 |
+
# 3.4 COMPUTATIONAL CONSIDERATIONS
|
| 71 |
+
|
| 72 |
+
A similar idea to Eq 1 has been proposed in previous/concurrent work, where the choice of explanation method uses a gradient-based attribution method (Ross et al., 2017; Erion et al., 2019). However, using such methods leads to three main complications which are solved by our approach. The first complication is the optimization process. When optimizing over attributions from a gradientbased attribution method via gradient descent, the optimizer requires the gradient of the gradient, thus requiring that all network components be twice differentiable. This process is computationally expensive and indeed optimizing it exactly involves optimizing over a differential equation. In contrast, CD attributions are calculated along with the forward pass of the network, and as a result can be optimized plainly with back-propagation using the standard single forward-pass and backward-pass per batch.
|
| 73 |
+
|
| 74 |
+
A second complication solved by the use of CD in $\operatorname { E q } 5$ is the ability to quickly finetune a pre-trained network. In many applications, particularly in transfer learning, it is common to finetune only the last few layers of a pre-trained neural network. Using CD, one can freeze early layers of the network and then finetune the last few layers of the network quickly as the activations and gradients of the frozen layers are not necessary.
|
| 75 |
+
|
| 76 |
+
Third, penalizing gradient-based methods incurs a very large memory usage. Using gradient-based methods, training requires the storage of activations and gradients for all layers of the network as well as the gradient of input (which can be omitted in normal training). Even for the simplest version, based on saliency, this more than doubles the required memory for a given batch and network size. More advanced methods proved to be completely infeasible to apply to a real-life dataset used, since the memory requirements were too high. By contrast, penalizing CD only requires a small constant amount of memory more than standard training.
|
| 77 |
+
|
| 78 |
+
# 4 RESULTS
|
| 79 |
+
|
| 80 |
+
The results here demonstrate the efficacy of CDEP on a variety of datasets using diverse explanation types. Sec 4.1 shows results on ignoring spurious patches in the ISIC skin cancer dataset (Codella et al., 2019), Sec 4.2 details experiments on converting a DNN’s preference for color to a preference for shape on a variant of the MNIST dataset (LeCun, 1998), and Sec 4.3 shows experiments on text data from the Stanford Sentiment Treebank (SST) (Socher et al., 2013).1
|
| 81 |
+
|
| 82 |
+
# 4.1 IGNORING SPURIOUS SIGNALS IN SKIN CANCER DIAGNOSIS
|
| 83 |
+
|
| 84 |
+
In recent years, deep learning has achieved impressive results in diagnosing skin cancer, with predictive accuracy sometimes comparable to human doctors (Esteva et al., 2017). However, the datasets used to train these models often include spurious features which make it possible to attain high test accuracy without learning the underlying phenomena (Winkler et al., 2019). In particular, a popular dataset from ISIC (International Skin Imaging Collaboration) has colorful patches present in approximately $50 \%$ of the non-cancerous images but not in the cancerous images (Codella et al., 2019). An unpenalized DNN learns to look for these patches as an indicator for predicting that an image is benign. We use CDEP to remedy this problem by penalizing the DNN placing importance on the patches during training.
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
Figure 2: Example images from the ISIC dataset. Half of the benign lesion images include a patch in the image.
|
| 88 |
+
|
| 89 |
+
The task in this section is to classify whether an image of a skin lesion contains (1) benign melanoma or (2) malignant melanoma. The ISIC dataset consists of 21,654 images (19,372 benign), each diagnosed by histopathology or a consensus of experts. For classification, we use a VGG16 architecture (Simonyan & Zisserman, 2014) pre-trained on the ImageNet Classification task 2 and freeze the weights of early layers so that only the fully connected layers are trained. In order to use CDEP, the spurious patches are identified via a s imple image segmentation algorithm using a color threshold (see Sec S4).
|
| 90 |
+
|
| 91 |
+
Table 1 shows results comparing the performance of a model trained with and without CDEP. We report results on two variants of the test set. The first, which we refer to as “no patches” only contains images of the test set that do not include patches. The second also includes images with those patches. Training with CDEP improves the AUC and F1-score for both test sets.
|
| 92 |
+
|
| 93 |
+
Table 1: Results from training a DNN on ISIC to recognize skin cancer (averaged over three runs). Results shown for the entire test set and for only the images the test set that do not include patches (“no patches”). The network trained with CDEP generalizes better, getting higher AUC and F1 on both. Std below 0.006 for all AUC and below 0.012 for all F1.
|
| 94 |
+
|
| 95 |
+
<table><tr><td></td><td>AUC (no patches)</td><td>F1 (no patches)</td><td>AUC (all)</td><td>F1 (all)</td></tr><tr><td>Vanilla (excluded data)</td><td>0.86</td><td>0.59</td><td>0.92</td><td>0.59</td></tr><tr><td>Vanilla</td><td>0.85</td><td>0.56</td><td>0.92</td><td>0.56</td></tr><tr><td>With RRR</td><td>0.66</td><td>0.39</td><td>0.82</td><td>0.39</td></tr><tr><td>With CDEP</td><td>0.88</td><td>0.61</td><td>0.93</td><td>0.61</td></tr></table>
|
| 96 |
+
|
| 97 |
+
In the first row of Table 1, the model is trained using only the data without the spurious patches, and the second row shows the model trained on the full dataset. The network trained using CDEP achieves the best AUC, surpassing both unpenalized versions. Applying our method increases the ROC AUC as well as the best F1 score. We also compared our method against the method introduced in 2017 by Ross et al. (RRR). For this, we restricted the batch size to 16 (and consequently use a learning rate of $1 0 ^ { - 5 }$ ) due to memory constraints. Using RRR did not improve on the base AUC, implying that penalizing gradients is not helpful in penalizing higher-order features.3
|
| 98 |
+
|
| 99 |
+
Visualizing explanations Fig. 3 visualize GradCAM heatmaps (Ozbulak, 2019; Selvaraju et al., 2017) for an unpenalized DNN and a DNN trained with CDEP to ignore spurious patches. As expected, after penalizing with CDEP, the DNN attributes less importance to the spurious patches, regardless of their position in the image. More examples, also for cancerous images, are shown in Sec S5.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 3: Visualizing heatmaps for correctly predicted exampes from the ISIC skincancer test set. Lighter regions in the heatmap are attributed more importance. The DNN trained with CDEP correctly captures that the patch is not relevant for classification.
|
| 103 |
+
|
| 104 |
+
# 4.2 COMBATING INDUCTIVE BIAS ON VARIANTS OF THE MNIST DATASET
|
| 105 |
+
|
| 106 |
+
In this section, we investigate whether we can alter which features a DNN uses to perform digit classification, using variants of the MNIST dataset (LeCun, 1998) and a standard CNN architecture for this dataset retrieved from PyTorch 4.
|
| 107 |
+
|
| 108 |
+
# 4.2.1 COLORMNIST
|
| 109 |
+
|
| 110 |
+
Similar to a previous study (Li & Vasconcelos, 2019), we transform the MNIST dataset to include three color channels and assign each class a distinct color, as shown in Fig. 4. An unpenalized DNN trained on this biased data will completely misclassify a test set with inverted colors, dropping to $0 \%$ accuracy (see Section 4.2.1), suggesting that it learns to classify using the colors of the digits rather than their shape.
|
| 111 |
+
|
| 112 |
+
Here, we want to see if we can alter the DNN to focus on the shape of the digits rather than their color. Interestingly, this can be enforced by minimizing the contribution of pixels in isolation while maximizing the importance of groups of pixels (which can represent shapes). To do this, we add penalize the CD contribution of sampled single pixel values, following Eq 5. By minimizing the contribution of single pixels we effectively encourage the network to focus more on groups of pixels, which can represent shape.
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
Figure 4: ColorMNIST: the test set shapes remain the same as the training set, but the colors are inverted. A vanilla network trained on this training set will get $0 \%$ accuracy on the test set.
|
| 116 |
+
|
| 117 |
+
Section 4.2.1 shows that CDEP can partially change the network’s focus on solely color to also focus on digit shape. We compare CDEP to two previously introduced explanation penalization techniques: penalization of the squared gradients (RRR) (Ross et al., 2017) and Expected Gradients (EG) (Erion et al., 2019). For EG we penalize variance between attributions of the RGB channels (as recommended by the authors of EG in personal correspondence). None of the baselines are able to improve the test accuracy of the model on this task above the random baseline, while CDEP is able to significantly improve this accuracy to $3 1 . 0 \%$ . We show the increase of predictive accuracy with increasing penalization in Fig. S5.
|
| 118 |
+
|
| 119 |
+
Table 2: Results on ColorMNIST (test accuracy). All values averaged over thirty runs. CDEP is the only method that captures and removes color bias.
|
| 120 |
+
|
| 121 |
+
<table><tr><td></td><td>Unpenalized</td><td>Baseline</td><td>CDEP</td><td>RRR</td><td>Expected Gradients</td></tr><tr><td>Test Accuracy</td><td>0.2±0.2</td><td>9.8</td><td>31.0 ± 2.3</td><td>0.2±0.1</td><td>10.0± 0.1</td></tr></table>
|
| 122 |
+
|
| 123 |
+
# 4.2.2 DECOYMNIST
|
| 124 |
+
|
| 125 |
+
For further comparison with previous work, we evaluate CDEP on an existing task: DecoyMNIST (Erion et al., 2019). DecoyMNIST adds a class-indicative gray patch to a random corner of the image. This task is relatively simple, as the spurious features are not entangled with any other feature and are always at the same location (the corners). Table 3 shows that all methods perform roughly equally, recovering the base accuracy. Results are reported using the best penalization parameter $\lambda$ , chosen via cross-validation on the test accuracy. We provide details on the computation time, and memory usage in Table S1, showing that CDEP is similar to existing approaches. However, when freezing early layers of a network and finetuning, CDEP very quickly becomes more efficient than other methods.
|
| 126 |
+
|
| 127 |
+
Table 3: Results on Grayscale Decoy set.
|
| 128 |
+
|
| 129 |
+
<table><tr><td></td><td>Unpenalized</td><td>CDEP</td><td>RRR</td><td>Expected Gradients</td></tr><tr><td>Testaccuracy</td><td>60.1 ± 5.1</td><td>97.2 ± 0.8</td><td>99.0 ± 1.0</td><td>97.8 ± 0.2</td></tr></table>
|
| 130 |
+
|
| 131 |
+
# 4.3 FIXING BIAS IN TEXT DATA
|
| 132 |
+
|
| 133 |
+
To demonstrate CDEP’s effectiveness on text, we use the Stanford Sentiment Treebank (SST) dataset (Socher et al., 2013), an NLP benchmark dataset consisting of movie reviews with a binary sentiment (positive/negative). We inject spurious signals into the training set and train a standard LSTM 5 to classify sentiment from the review.
|
| 134 |
+
|
| 135 |
+
# Positive
|
| 136 |
+
|
| 137 |
+
pacino is the best she's been in years and keener is marvelous
|
| 138 |
+
she showcases davies as a young woman of great charm , generosity and diplomacy shows she 's back in form , with an astoundingly rich film .
|
| 139 |
+
proves once again that she's the best brush in the business
|
| 140 |
+
|
| 141 |
+
# Negative
|
| 142 |
+
|
| 143 |
+
green ruins every single scene he's in, and the film, while it 's not completely wreaked, is seriously compromised by that
|
| 144 |
+
|
| 145 |
+
i'm sorry to say that this should seal the deal - arnold is not, nor will he be, back . this is sandler running on empty , repeating what he 's already done way too often . so howard appears to have had free rein to be as pretentious as he wanted
|
| 146 |
+
|
| 147 |
+
Figure 5: Example sentences from the SST dataset with artificially induced bias on gender.
|
| 148 |
+
|
| 149 |
+
We create three variants of the SST dataset, each with different spurious signals which we aim to ignore (examples in Sec S1). In the first variant, we add indicator words for each class (positive: ‘text’, negative: ‘video’) at a random location in each sentence. An unpenalized DNN will focus only on those words, dropping to nearly random performance on the unbiased test set. In the second variant, we use two semantically similar words (‘the’, ‘a’) to indicate the class by using one word only in the positive and one only in the negative class. In the third case, we use ‘he’ and ‘she’ to indicate class (example in Fig 5). Since these gendered words are only present in a small proportion of the training dataset $( \sim 2 \% )$ , for this variant, we report accuracy only on the sentences in the test set that do include the pronouns (performance on the test dataset not including the pronouns remains unchanged). Table 4 shows the test accuracy for all datasets with and without CDEP. In all scenarios, CDEP is successfully able to improve the test accuracy by ignoring the injected spurious signals.
|
| 150 |
+
|
| 151 |
+
Table 4: Results on SST. CDEP substantially improves predictive accuracy on the unbiased test set after training on biased data.
|
| 152 |
+
|
| 153 |
+
<table><tr><td></td><td>Unpenalized</td><td>CDEP</td></tr><tr><td>Random words</td><td>56.6 ± 5.8</td><td>75.4 ± 0.9</td></tr><tr><td>Biased (articles)</td><td>57.8 ± 0.8</td><td>68.2 ± 0.8</td></tr><tr><td>Biased (gender)</td><td>64.2 ± 3.1</td><td>78.0 ± 3.0</td></tr></table>
|
| 154 |
+
|
| 155 |
+
# 5 CONCLUSION
|
| 156 |
+
|
| 157 |
+
In this work we introduce a novel method to penalize neural networks to align with prior knowledge. Compared to previous work, CDEP is the first of its kind that can penalize complex features and feature interactions. Furthermore, CDEP is more computationally efficient than previous work and does not rely on backpropagation, enabling its use with more complex neural networks. We show that CDEP can be used to remove bias and improve predictive accuracy on a variety of toy and real data. The experiments here demonstrate a variety of ways to use CDEP to improve models both on real and toy datasets. CDEP is quite versatile and can be used in many more areas to incorporate the structure of domain knowledge (e.g. biology or physics). Of course, the effectiveness of CDEP depends upon the quality of the prior knowledge used to determine the explanation targets. Future work includes extending CDEP to more complex penalties, incorporating more fine-grained explanations and interactions. We hope the work here will help push the field towards a more rigorous way to use interpretability methods, a point which will become increasingly important as interpretable machine learning develops as a field (Doshi-Velez & Kim, 2017; Murdoch et al., 2019).
|
| 158 |
+
|
| 159 |
+
# REFERENCES
|
| 160 |
+
|
| 161 |
+
Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua, and Sabine Susstrunk. Slic superpixels compared to state-of-the-art superpixel methods. ¨ IEEE transactions on pattern analysis and machine intelligence, 34(11):2274–2282, 2012.
|
| 162 |
+
Julius Adebayo, Justin Gilmer, Michael Muelly, Ian Goodfellow, Moritz Hardt, and Been Kim. Sanity checks for saliency maps. In Advances in Neural Information Processing Systems, pp. 9505–9515, 2018.
|
| 163 |
+
Marco Ancona, Enea Ceolini, Cengiz Oztireli, and Markus Gross. Towards better understanding of gradient-based attribution methods for deep neural networks. In 6th International Conference on Learning Representations (ICLR 2018), 2018.
|
| 164 |
+
Sebastian Bach, Alexander Binder, Gregoire Montavon, Frederick Klauschen, Klaus-Robert M ´ uller, ¨ and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one, 10(7):e0130140, 2015.
|
| 165 |
+
David Baehrens, Timon Schroeter, Stefan Harmeling, Motoaki Kawanabe, Katja Hansen, and KlausRobert MA˜ zller. How to explain individual classification decisions. ˇ Journal of Machine Learning Research, 11(Jun):1803–1831, 2010.
|
| 166 |
+
|
| 167 |
+
Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, and Adam T Kalai. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. In Advances in neural information processing systems, pp. 4349–4357, 2016.
|
| 168 |
+
|
| 169 |
+
Kaylee Burns, Lisa Anne Hendricks, Kate Saenko, Trevor Darrell, and Anna Rohrbach. Women also snowboard: Overcoming bias in captioning models. arXiv preprint arXiv:1803.09797, 2018.
|
| 170 |
+
|
| 171 |
+
Noel Codella, Veronica Rotemberg, Philipp Tschandl, M Emre Celebi, Stephen Dusza, David Gutman, Brian Helba, Aadi Kalloo, Konstantinos Liopyris, Michael Marchetti, et al. Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the international skin imaging collaboration (isic). arXiv preprint arXiv:1902.03368, 2019.
|
| 172 |
+
|
| 173 |
+
Piotr Dabkowski and Yarin Gal. Real time image saliency for black box classifiers. arXiv preprint arXiv:1705.07857, 2017.
|
| 174 |
+
|
| 175 |
+
Finale Doshi-Velez and Been Kim. Towards a rigorous science of interpretable machine learning. arXiv preprint arXiv:1702.08608, 2017.
|
| 176 |
+
|
| 177 |
+
Gabriel Erion, Joseph D Janizek, Pascal Sturmfels, Scott Lundberg, and Su-In Lee. Learning explainable models using attribution priors. arXiv preprint arXiv:1906.10670, 2019.
|
| 178 |
+
|
| 179 |
+
Andre Esteva, Brett Kuprel, Roberto A Novoa, Justin Ko, Susan M Swetter, Helen M Blau, and Sebastian Thrun. Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542(7639):115, 2017.
|
| 180 |
+
|
| 181 |
+
Ruth C Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. arXiv preprint arXiv:1704.03296, 2017.
|
| 182 |
+
|
| 183 |
+
Nikhil Garg, Londa Schiebinger, Dan Jurafsky, and James Zou. Word embeddings quantify 100 years of gender and ethnic stereotypes. Proceedings of the National Academy of Sciences, 115 (16):E3635–E3644, 2018. ISSN 0027-8424. doi: 10.1073/pnas.1720347115. URL https: //www.pnas.org/content/115/16/E3635.
|
| 184 |
+
|
| 185 |
+
Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018.
|
| 186 |
+
|
| 187 |
+
Sarthak Jain and Byron C Wallace. Attention is not explanation. arXiv preprint arXiv:1902.10186, 2019.
|
| 188 |
+
|
| 189 |
+
Yann LeCun. The mnist database of handwritten digits. http://yann. lecun. com/exdb/mnist/, 1998.
|
| 190 |
+
|
| 191 |
+
Yi Li and Nuno Vasconcelos. Repair: Removing representation bias by dataset resampling. arXiv preprint arXiv:1904.07911, 2019.
|
| 192 |
+
|
| 193 |
+
Frederick Liu and Besim Avci. Incorporating priors with feature attribution on text classification. arXiv preprint arXiv:1906.08286, 2019.
|
| 194 |
+
|
| 195 |
+
Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems, pp. 4768–4777, 2017.
|
| 196 |
+
|
| 197 |
+
Masahiro Mitsuhara, Hiroshi Fukui, Yusuke Sakashita, Takanori Ogata, Tsubasa Hirakawa, Takayoshi Yamashita, and Hironobu Fujiyoshi. Embedding human knowledge in deep neural network via attention map. arXiv preprint arXiv:1905.03540, 2019.
|
| 198 |
+
|
| 199 |
+
W James Murdoch and Arthur Szlam. Automatic rule extraction from long short term memory networks. arXiv preprint arXiv:1702.02540, 2017.
|
| 200 |
+
|
| 201 |
+
W James Murdoch, Peter J Liu, and Bin Yu. Beyond word importance: Contextual decomposition to extract interactions from lstms. arXiv preprint arXiv:1801.05453, 2018.
|
| 202 |
+
|
| 203 |
+
W James Murdoch, Chandan Singh, Karl Kumbier, Reza Abbasi-Asl, and Bin Yu. Interpretable machine learning: definitions, methods, and applications. arXiv preprint arXiv:1901.04592, 2019.
|
| 204 |
+
|
| 205 |
+
Weili Nie, Yang Zhang, and Ankit Patel. A theoretical explanation for perplexing behaviors of backpropagation-based visualizations. arXiv preprint arXiv:1805.07039, 2018.
|
| 206 |
+
|
| 207 |
+
Utku Ozbulak. Pytorch cnn visualizations. https://github.com/utkuozbulak/ pytorch-cnn-visualizations, 2019.
|
| 208 |
+
|
| 209 |
+
Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. Why should i trust you?: Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1135–1144. ACM, 2016.
|
| 210 |
+
|
| 211 |
+
Laura Rieger and Lars Kai Hansen. Aggregating explainability methods for neural networks stabilizes explanations. arXiv preprint arXiv:1903.00519, 2019.
|
| 212 |
+
|
| 213 |
+
Andrew Slavin Ross and Finale Doshi-Velez. Improving the adversarial robustness and interpretability of deep neural networks by regularizing their input gradients. In Thirty-second AAAI conference on artificial intelligence, 2018.
|
| 214 |
+
|
| 215 |
+
Andrew Slavin Ross, Michael C Hughes, and Finale Doshi-Velez. Right for the right reasons: Training differentiable models by constraining their explanations. arXiv preprint arXiv:1703.03717, 2017.
|
| 216 |
+
|
| 217 |
+
Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. See https://arxiv. org/abs/1610.02391 v3, 7(8), 2016.
|
| 218 |
+
|
| 219 |
+
Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, pp. 618–626, 2017.
|
| 220 |
+
|
| 221 |
+
Avanti Shrikumar, Peyton Greenside, Anna Shcherbina, and Anshul Kundaje. Not just a black box: Learning important features through propagating activation differences. arXiv preprint arXiv:1605.01713, 2016.
|
| 222 |
+
|
| 223 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 224 |
+
|
| 225 |
+
Chandan Singh, W James Murdoch, and Bin Yu. Hierarchical interpretations for neural network predictions. arXiv preprint arXiv:1806.05337, 2018.
|
| 226 |
+
|
| 227 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\mathrm { N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1631–1642, 2013.
|
| 228 |
+
|
| 229 |
+
Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014.
|
| 230 |
+
|
| 231 |
+
Julia Strout, Ye Zhang, and Raymond J Mooney. Do human rationales improve machine explanations? arXiv preprint arXiv:1905.13714, 2019.
|
| 232 |
+
|
| 233 |
+
Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. ICML, 2017.
|
| 234 |
+
|
| 235 |
+
Haohan Wang, Zexue He, Zachary C Lipton, and Eric P Xing. Learning robust representations by projecting superficial statistics out. arXiv preprint arXiv:1903.06256, 2019.
|
| 236 |
+
|
| 237 |
+
Julia K. Winkler, Christine Fink, Ferdinand Toberer, Alexander Enk, Teresa Deinlein, Rainer Hofmann-Wellenhof, Luc Thomas, Aimilios Lallas, Andreas Blum, Wilhelm Stolz, and Holger A. Haenssle. Association Between Surgical Skin Markings in Dermoscopic Images and Diagnostic Performance of a Deep Learning Convolutional Neural Network for Melanoma RecognitionSurgical Skin Markings in Dermoscopic Images and Deep Learning Convolutional Neural Network Recognition of MelanomaSurgical Skin Markings in Dermoscopic Images and Deep Learning Convolutional Neural Network Recognition of Melanoma. JAMA Dermatology, 08 2019. ISSN
|
| 238 |
+
|
| 239 |
+
2168-6068. doi: 10.1001/jamadermatol.2019.1735. URL https://doi.org/10.1001/ jamadermatol.2019.1735.
|
| 240 |
+
|
| 241 |
+
Omar Zaidan, Jason Eisner, and Christine Piatko. Using annotator rationales to improve machine learning for text categorization. In Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference, pp. 260–267, 2007.
|
| 242 |
+
|
| 243 |
+
Tianyuan Zhang and Zhanxing Zhu. Interpreting adversarially trained convolutional neural networks. arXiv preprint arXiv:1905.09797, 2019.
|
| 244 |
+
|
| 245 |
+
Luisa M Zintgraf, Taco S Cohen, Tameem Adel, and Max Welling. Visualizing deep neural network decisions: Prediction difference analysis. arXiv preprint arXiv:1702.04595, 2017.
|
| 246 |
+
|
| 247 |
+
# Supplement
|
| 248 |
+
|
| 249 |
+
# S1 ADDITIONAL DETAILS ABOUT SST TASK
|
| 250 |
+
|
| 251 |
+
Section 4.3 shows the results for CDEP on biased variants of the SST dataset. Here we show examples of the biased sentences (for task 2 and 3 we only show sentences where the bias was present) in Figs. S1 to S3. For the first task, we insert two randomly chosen words in $100 \%$ of the sentences in the positive and negative class respectively. We choose two words (“text” for the positive class and “video” for the negative class) that were not otherwise present in the data set but had a representation in Word2Vec.
|
| 252 |
+
|
| 253 |
+
# Positive
|
| 254 |
+
|
| 255 |
+
part of the charm of satin rouge is that it avoids the obvious with text humour and lightness . text a screenplay more ingeniously constructed than ‘memento’
|
| 256 |
+
good fun text, good action, good acting, good dialogue, good pace, good cinematography . dramas like text this make it human .
|
| 257 |
+
|
| 258 |
+
# Negative
|
| 259 |
+
|
| 260 |
+
... begins with promise, but runs aground after being video snared in its own tangled plot .
|
| 261 |
+
the video movie is well done, but slow .
|
| 262 |
+
this orange has some juice , but it 's video far from fresh-squeezed .
|
| 263 |
+
as it is, video it 's too long and unfocused .
|
| 264 |
+
|
| 265 |
+
Figure S1: Example sentences from the variant 1 of the biased SST dataset with decoy variables in each sentence.
|
| 266 |
+
|
| 267 |
+
For the second task, we choose to replace two common words (”the” and ”a”) in sentences where they appear $2 7 \%$ of the dataset). We replace the words such that one word only appears in the positive class and the other world only in the negative class. By choosing words that are semantically almost replaceable, we ensured that the normal sentence structure would not be broken such as with the first task.
|
| 268 |
+
|
| 269 |
+
# Positive
|
| 270 |
+
|
| 271 |
+
comes off as a touching , transcendent love story .
|
| 272 |
+
is most remarkable not because of its epic scope , but because of a startling intimacy couldn't be better as a cruel but weirdly likable wasp matron
|
| 273 |
+
uses humor and a heartfelt conviction to tell that story about discovering your destination in life
|
| 274 |
+
|
| 275 |
+
# Negative
|
| 276 |
+
|
| 277 |
+
to creep the living hell out of you
|
| 278 |
+
holds its goodwill close , but is relatively slow to come to the point it 's not the great monster movie .
|
| 279 |
+
consider the dvd rental instead
|
| 280 |
+
|
| 281 |
+
Figure S2: Example sentences from the variant 2 of the SST dataset with artificially induced bias on articles (”the”, ”a”). Bias was only induced on the sentences where those articles were used $2 7 \%$ of the dataset).
|
| 282 |
+
|
| 283 |
+
For the third task we repeat the same procedure with two words (“he” and “she”) that appeared in only $2 \%$ of the dataset. This helps evaluate whether CDEP works even if the spurious signal appears only in a small section of the data set.
|
| 284 |
+
|
| 285 |
+
# Positive
|
| 286 |
+
|
| 287 |
+
pacino is the best she's been in years and keener is marvelous she showcases davies as a young woman of great charm , generosity and diplomacy shows she 's back in form , with an astoundingly rich film . proves once again that she's the best brush in the business
|
| 288 |
+
|
| 289 |
+
# Negative
|
| 290 |
+
|
| 291 |
+
green ruins every single scene he's in, and the film, while it 's not completely wreaked, is seriously compromised by that i'm sorry to say that this should seal the deal - arnold is not, nor will he be, back . this is sandler running on empty , repeating what he 's already done way too often . so howard appears to have had free rein to be as pretentious as he wanted
|
| 292 |
+
|
| 293 |
+
Figure S3: Example sentences from the variant 3 of the SST dataset with artificially induced bias on articles (”he”, ”she”). Bias was only induced on the sentences where those articles were used $2 \%$ of the dataset).
|
| 294 |
+
|
| 295 |
+
# S2 NETWORK ARCHITECTURES AND TRAINING
|
| 296 |
+
|
| 297 |
+
# S2.1 NETWORK ARCHITECTURES
|
| 298 |
+
|
| 299 |
+
For the ISIC skin cancer task we used a pretrained VGG16 network retrieved from the PyTorch model zoo. We use SGD as the optimizer with a learning rate of 0.01 and momentum of 0.9. Preliminary experiments with Adam as the optimizer yielded poorer predictive performance.
|
| 300 |
+
|
| 301 |
+
or both MNIST tasks, we use a standard convolutional network with two convolutional channels followed by max pooling respectively and two fully connected layers:
|
| 302 |
+
|
| 303 |
+
Conv(20,5,5) - MaxPool() - Conv(50,5,5) - MaxPool - FC(256) - FC(10). The models were trained with Adam, using a weight decay of 0.001.
|
| 304 |
+
|
| 305 |
+
Penalizing explanations adds an additional hyperparameter, $\lambda$ to the training. $\lambda$ can either be set in proportion to the normal training loss or at a fixed rate. In this paper we did the latter. We expect that exploring the former could lead to a more stable training process. For all tasks $\lambda$ was tested across a wide range between $[ 1 0 ^ { - 1 } , 1 0 ^ { 4 } ]$ .
|
| 306 |
+
|
| 307 |
+
The LSTM for the SST experiments consisted of two LSTM layers with 128 hidden units followed by a fully connected layer.
|
| 308 |
+
|
| 309 |
+
# S2.2 COLORMNIST
|
| 310 |
+
|
| 311 |
+
For fixing the bias in the ColorMNIST task, we sample pixels from the distribution of non-zero pixels over the whole training set, as shown in Fig. S4
|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
Figure S4: Sampling distribution for ColorMNIST
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure S5: Results on ColorMNIST (Test Accuracy). All averaged over thirty runs. CDEP is the only method that captures and removes color bias.
|
| 318 |
+
|
| 319 |
+
For Expected Gradients we show results when sampling pixels as well as when penalizing the variance between attributions for the RGB channels (as recommended by the authors of EG) in Fig. S5. Neither of them go above random accuracy, only achieving random accuracy when they are regularized to a constant prediction.
|
| 320 |
+
|
| 321 |
+
# S3 RUNTIME AND MEMORY REQUIREMENTS OF DIFFERENT ALGORITHMS
|
| 322 |
+
|
| 323 |
+
This section provides further details on runtime and memory requirements reported in Table S1. We compared the runtime and memory requirements of the available regularization schemes when implemented in Pytorch.
|
| 324 |
+
|
| 325 |
+
Memory usage and runtime were tested on the DecoyMNIST task with a batch size of 64. It is expected that the exact ratios will change depending on the complexity of the used network and batch size (since constant memory usage becomes disproportionally smaller with increasing batch size).
|
| 326 |
+
|
| 327 |
+
The memory usage was read by recording the memory allocated by PyTorch. Since Expected Gradients and RRR require two forward and backward passes, we only record the maximum memory usage. We ran experiments on a single Titan X.
|
| 328 |
+
|
| 329 |
+
Table S1: Memory usage and run time were recorded for the DecoyMNIST task.
|
| 330 |
+
|
| 331 |
+
<table><tr><td></td><td>Unpenalized</td><td>CDEP</td><td>RRR</td><td>Expected Gradients</td></tr><tr><td>Run time/epoch (seconds)</td><td>4.7</td><td>17.1</td><td>11.2</td><td>17.8</td></tr><tr><td>Maximum GPU RAM usage (GB)</td><td>0.027</td><td>0.068</td><td>0.046</td><td>0.046</td></tr></table>
|
| 332 |
+
|
| 333 |
+
# S4 IMAGE SEGMENTATION FOR ISIC SKIN CANCER
|
| 334 |
+
|
| 335 |
+
To obtain the binary maps of the patches for the skin cancer task, we first segment the images using SLIC, a common image-segmentation algorithm (Achanta et al., 2012). Since the patches look quite distinct from the rest of the image, the patches are usually their own segment.
|
| 336 |
+
|
| 337 |
+
Subsequently we take the mean RGB and HSV values for all segments and filtered for segments which the mean was substantially different from the typical caucasian skin tone. Since different images were different from the typical skin color in different attributes, we filtered for those images
|
| 338 |
+
|
| 339 |
+
recursively. As an example, in the image shown in Fig. S6, the patch has a much higher saturation than the rest of the image. For each image we exported a map as seen in Fig. S6.
|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
Figure S6: Sample segmentation for the ISIC task.
|
| 343 |
+
|
| 344 |
+
# S5 ADDITIONAL HEATMAP EXAMPLES FOR ISIC
|
| 345 |
+
|
| 346 |
+
We show additional examples from the test set of the skin cancer task in Figs. S7 and S8. We see that the importance maps for the unregularized and regularized network are very similar for cancerous images and non-cancerous images without patch. The patches are ignored by the network regularized with CDEP.
|
| 347 |
+
|
| 348 |
+

|
| 349 |
+
Figure S7: Heatmaps for benign samples from ISIC
|
| 350 |
+
|
| 351 |
+

|
| 352 |
+
Figure S8: Heatmaps for cancerous samples from ISIC
|
| 353 |
+
|
| 354 |
+
A different spurious correlation that we noticed was that proportionally more images showing skin cancer will have a ruler next to the lesion. This is the case because doctors often want to show a reference for size if they diagnosed that the lesion is cancerous. Even though the spurious correlation is less pronounced (in a very rough cursory count, $13 \%$ of the cancerous and $5 \%$ of the benign images contain some sort of measure), the networks learnt to recognize and exploit this spurious correlation. This further highlights the need for CDEP, especially in medical settings.
|
| 355 |
+
|
| 356 |
+

|
| 357 |
+
Figure S9: Both networks learnt that proportionally more images with malignant lesions feature a ruler next to the lesion. To make comparison easier, we visualize the heatmap by multiplying it with the image. Visible regions are important for classification.
|
parse/train/Syx7WyBtwB/Syx7WyBtwB_content_list.json
ADDED
|
@@ -0,0 +1,1868 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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LANATIONS TO ALIGN NEURAL NETWORKS WITH PRIOR KNOWLEDGE ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
101,
|
| 9 |
+
823,
|
| 10 |
+
170
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
195,
|
| 20 |
+
398,
|
| 21 |
+
223
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
260,
|
| 32 |
+
544,
|
| 33 |
+
275
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "For an explanation of a deep learning model to be effective, it must provide both insight into a model and suggest a corresponding action in order to achieve some objective. Too often, the litany of proposed explainable deep learning methods stop at the first step, providing practitioners with insight into a model, but no way to act on it. In this paper, we propose contextual decomposition explanation penalization (CDEP), a method which enables practitioners to leverage existing explanation methods in order to increase the predictive accuracy of deep learning models. In particular, when shown that a model has incorrectly assigned importance to some features, CDEP enables practitioners to correct these errors by directly regularizing the provided explanations. Using explanations provided by contextual decomposition (CD) (Murdoch et al., 2018), we demonstrate the ability of our method to increase performance on an array of toy and real datasets. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
299,
|
| 43 |
+
764,
|
| 44 |
+
467
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
515,
|
| 55 |
+
336,
|
| 56 |
+
531
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "In recent years, neural networks have demonstrated strong predictive performance across a wide variety of settings. However, in order to achieve that accuracy, they sometimes latch onto spurious correlations, leading to undesirable behavior as a result of dataset bias (Winkler et al., 2019), racial and ethnic stereotypes (Garg et al., 2018), or simply overfitting. While recent work into explaining neural network predictions (Murdoch et al., 2019; Doshi-Velez & Kim, 2017) has demonstrated an ability to uncover the relationships learned by a model, it is still unclear how to actually alter the model in order to remove incorrect, or undesirable, relationships. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
554,
|
| 66 |
+
825,
|
| 67 |
+
651
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "We introduce contextual decomposition explanation penalization (CDEP), a method which leverages existing explanation techniques for neural networks in order to prevent a model from learning unwanted relationships and ultimately improve predictive accuracy. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
659,
|
| 77 |
+
825,
|
| 78 |
+
702
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Given particular importance scores, CDEP works by allowing the user to directly penalize importances of certain features, or interactions. This forces the neural network to not only produce the correct prediction, but also the correct explanation for that prediction. While we focus on contextual decomposition (CD) (Murdoch et al., 2018; Singh et al., 2018), which allows the penalization of both feature importances and interactions, CDEP can be readily adapted for existing interpretation techniques, as long as they are differentiable. Moreover, CDEP is a general technique, which can be applied to arbitrary neural network architectures, and is orders of magnitude faster and more memory efficient than recent gradient-based methods, allowing its use on meaningful datasets. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
708,
|
| 88 |
+
823,
|
| 89 |
+
819
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In order to demonstrate the effectiveness of CDEP, we conducted experiments across a wide variety of tasks. In the prediction of skin cancer from images, CDEP improves the prediction of a classifier by teaching it to ignore spurious confounding variables present in the training data. In a colored MNIST task, CDEP allows the network to focus on a digit’s shape rather than its color (with no extra human annotation needed). Finally, a toy example using text classification shows how the penalization can help a network avoid a bias towards particular words, such as those involving gender. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
825,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/617173982504932cee4bf87cc5887e0323a962415b05a74728054302451ac068.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: CDEP allows a practitioner to penalize both a model’s prediction and the corresponding explanation. "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
276,
|
| 113 |
+
104,
|
| 114 |
+
718,
|
| 115 |
+
212
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "2 BACKGROUND ",
|
| 122 |
+
"text_level": 1,
|
| 123 |
+
"bbox": [
|
| 124 |
+
176,
|
| 125 |
+
286,
|
| 126 |
+
326,
|
| 127 |
+
303
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "Explanation methods Many methods have been developed to help explain the learned relationships contained in a DNN. For local, or prediction-level, explanation, most prior work has focused on assigning importance to individual features, such as pixels in an image or words in a document. There are several methods that give feature-level importance for different architectures. They can be categorized as gradient-based (Springenberg et al., 2014; Sundararajan et al., 2017; Selvaraju et al., 2016; Baehrens et al., 2010; Rieger & Hansen, 2019), decomposition-based (Murdoch & Szlam, 2017; Shrikumar et al., 2016; Bach et al., 2015) and others (Dabkowski & Gal, 2017; Fong & Vedaldi, 2017; Ribeiro et al., 2016; Zintgraf et al., 2017), with many similarities among the methods (Ancona et al., 2018; Lundberg & Lee, 2017). However, many of these methods have thus far been poorly evaluated (Adebayo et al., 2018; Nie et al., 2018), casting doubt on their usefulness. Another line of work, which we build upon, has focused on uncovering interactions between features, in addition to feature importances, (Murdoch et al., 2018), and using those interactions to create a hierarchy of features displaying the model’s prediction process (Singh et al., 2018). ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
318,
|
| 137 |
+
825,
|
| 138 |
+
497
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "Uses of explanation methods While much work has been put into developing methods for explaining DNNs, relatively little work has explored the potential to use these explanations to help build a better model. Some recent work proposes forcing models to attend to regions of the input which are known to be important (Burns et al., 2018; Mitsuhara et al., 2019), although it is important to note that attention is often not the same as explanation (Jain & Wallace, 2019). An alternative line of work proposes penalizing the gradients of a neural network to match human-provided binary annotations and shows the possibility to improve performance (Ross et al., 2017) and adversarial robustness (Ross & Doshi-Velez, 2018). Two recent papers extend these ideas by penalizing attributions for natural language models (Liu & Avci, 2019) and penalizing a modified gradient-based score to produce smooth attributions (Erion et al., 2019). Predating deep learning, (Zaidan et al., 2007) consider the use of “annotator rationales” in sentiment analysis to train support vector machines. This work on annotator rationales was recently extended to show improved explanations (not accuracy) in CNNs (Strout et al., 2019). ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
512,
|
| 148 |
+
825,
|
| 149 |
+
693
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Other ways to constrain DNNs While we focus on the use of explanations to constrain the relationships learned by neural networks, other approaches for constraining neural networks have also been proposed. A computationally intensive alternative is to augment the dataset in order to prevent the model from learning undesirable relationships, through domain knowledge (Bolukbasi et al., 2016), projecting out superficial statistics (Wang et al., 2019) or dramatically altering training images (Geirhos et al., 2018). However, these processes are often not feasible, either due to their computational cost or the difficulty of constructing such an augmented data set. Adversarial training has also been explored (Zhang & Zhu, 2019). These techniques are generally limited, as they are often tied to particular datasets, and do not provide a clear link between learning about a model’s learned relationships through explanations, and subsequently correcting them. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
707,
|
| 159 |
+
825,
|
| 160 |
+
845
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "3 METHODS ",
|
| 167 |
+
"text_level": 1,
|
| 168 |
+
"bbox": [
|
| 169 |
+
174,
|
| 170 |
+
864,
|
| 171 |
+
290,
|
| 172 |
+
881
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "We now introduce CDEP, which penalizes the explanations of a neural network in order to align with prior knowledge about why a model should make a prediction. To do so, for each data point it penalizes the CD scores of features, or groups of features, which a user does not want the model to learn to be important. While we focus on CD scores, which allow the penalization of interactions between features in addition to features themselves, this approach readily generalizes to other interpretation techniques, so long as they are differentiable. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
895,
|
| 182 |
+
823,
|
| 183 |
+
924
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
103,
|
| 193 |
+
823,
|
| 194 |
+
160
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "3.1 AUGMENTING THE LOSS FUNCTION ",
|
| 201 |
+
"text_level": 1,
|
| 202 |
+
"bbox": [
|
| 203 |
+
176,
|
| 204 |
+
179,
|
| 205 |
+
460,
|
| 206 |
+
193
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "Given a particular classification task, we want to teach a model to not only produce the correct prediction, but also to arrive at the prediction for the correct reasons. That is, we want the model to be right for the right reasons, where the right reasons are provided by the user and are datasetdependent. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
205,
|
| 216 |
+
825,
|
| 217 |
+
261
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "To accomplish this, CDEP modifies the objective function used to train a neural network, as displayed in Eq 1. In addition to the standard prediction loss $\\mathcal { L }$ , which teaches the model to produce the correct predictions, CDEP adds an explanation error $\\mathcal { L } _ { \\mathrm { e x p l } }$ , which teaches the model to produce the correct explanations for its predictions. In place of the prediction and labels $f _ { \\theta } ( X ) , y$ , used in the prediction error $\\mathcal { L }$ , the explanation error $\\mathcal { L } _ { \\mathrm { e x p l } }$ uses the explanations produced by an interpretation method $\\operatorname { e x p l } _ { \\theta } ( X )$ , along with targets provided by the user $\\operatorname { e x p l } _ { X }$ . As is common with penalization, the two losses are weighted by a hyperparameter $\\lambda \\in \\mathbb { R }$ : ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
173,
|
| 226 |
+
267,
|
| 227 |
+
825,
|
| 228 |
+
367
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "equation",
|
| 234 |
+
"img_path": "images/770f442ca5a74ba9baaaacda8f934bd2d72427c8e2019a6a2247480f180450aa.jpg",
|
| 235 |
+
"text": "$$\n\\begin{array} { r } { \\hat { \\theta } = \\underset { \\theta } { \\operatorname { a r g m i n } } \\underbrace { \\mathcal { L } \\left( f _ { \\theta } ( X ) , y \\right) } _ { \\mathrm { P r e d i c t i o n ~ e r r o r } } + \\lambda \\underbrace { \\mathcal { L } _ { \\mathrm { e x p l } } \\left( \\exp { \\mathrm { l } _ { \\theta } ( X ) } , \\exp { \\mathrm { l } _ { X } } \\right) } _ { \\mathrm { E x p l a n a t i o n ~ e r r o r } } } \\end{array}\n$$",
|
| 236 |
+
"text_format": "latex",
|
| 237 |
+
"bbox": [
|
| 238 |
+
320,
|
| 239 |
+
392,
|
| 240 |
+
678,
|
| 241 |
+
434
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "The precise meanings of $\\operatorname { e x p l } _ { X }$ depend on the context. For example, in the skin cancer image classification task described in Section 4, many of the benign skin images contain band-aids, but none of the malignant images. To force the model to ignore the band-aids in making their prediction, in each image $\\operatorname { e x p l } _ { \\theta } ( X )$ denotes the importance score of the band-aid and $\\operatorname { e x p l } _ { X }$ would be zero. These and more examples are further explored in Section 4. ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
449,
|
| 251 |
+
825,
|
| 252 |
+
518
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "3.2 CONTEXTUAL DECOMPOSITION (CD) ",
|
| 259 |
+
"text_level": 1,
|
| 260 |
+
"bbox": [
|
| 261 |
+
178,
|
| 262 |
+
537,
|
| 263 |
+
473,
|
| 264 |
+
553
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "In this work, we use the CD score as the explanation function. In contrast to other interpretation methods, which focus on feature importances, CD also captures interactions between features. CD was originally designed for LSTMs (Murdoch et al., 2018) and subsequently extended to convolutional neural networks and arbitrary DNNs (Singh et al., 2018). For a given DNN $f ( x )$ , one can represent its output as a SoftMax operation applied to logits $g ( x )$ . These logits, in turn, are the composition of $L$ layers $g _ { i }$ , such as convolutional operations or ReLU non-linearities. ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
173,
|
| 273 |
+
564,
|
| 274 |
+
825,
|
| 275 |
+
648
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "equation",
|
| 281 |
+
"img_path": "images/d601535e0fcf04776010b99b53316f2d649fd21f80503febbac55d5f1a326751.jpg",
|
| 282 |
+
"text": "$$\nf ( x ) = { \\mathrm { S o f t M a x } } { \\big ( } g ( x ) { \\big ) } = { \\mathrm { S o f t M a x } } { \\big ( } g _ { L } { \\big ( } g _ { L - 1 } { \\big ( } . . . { \\big ( } g _ { 2 } { \\big ( } g _ { 1 } ( x ) ) { \\big ) } { \\big ) } { \\big ) } { \\big ) }\n$$",
|
| 283 |
+
"text_format": "latex",
|
| 284 |
+
"bbox": [
|
| 285 |
+
289,
|
| 286 |
+
656,
|
| 287 |
+
707,
|
| 288 |
+
674
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "Given a group of features $\\{ x _ { j } \\} _ { j \\in S }$ , the CD algorithm, $g ^ { C D } ( x )$ , decomposes the logits $g ( x )$ into a sum of two terms, $\\beta ( x )$ and $\\gamma ( x )$ . $\\beta ( x )$ is the importance score of the feature group $\\{ x _ { j } \\} _ { j \\in S }$ , and $\\gamma ( x )$ captures contributions to $g ( x )$ not included in $\\beta ( x )$ . The decomposition is computed by iteratively applying decompositions $g _ { i } ^ { C D } ( x )$ for each of the layers $g _ { i } ( x )$ . ",
|
| 295 |
+
"bbox": [
|
| 296 |
+
174,
|
| 297 |
+
690,
|
| 298 |
+
823,
|
| 299 |
+
748
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 2
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "equation",
|
| 305 |
+
"img_path": "images/38bb919c6bb7fd31da5722c0fe7da933ccf128c96ec0ff60730c2ea07f92f73c.jpg",
|
| 306 |
+
"text": "$$\n\\begin{array} { c } { { g ^ { C D } ( x ) = g _ { L } ^ { C D } ( g _ { L - 1 } ^ { C D } ( . . . ( g _ { 2 } ^ { C D } ( g _ { 1 } ^ { C D } ( x ) ) ) ) ) = ( \\beta ( x ) , \\gamma ( x ) ) } } \\\\ { { \\beta ( x ) + \\gamma ( x ) = g ( x ) } } \\end{array}\n$$",
|
| 307 |
+
"text_format": "latex",
|
| 308 |
+
"bbox": [
|
| 309 |
+
281,
|
| 310 |
+
756,
|
| 311 |
+
715,
|
| 312 |
+
797
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 2
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "3.3 CDEP OBJECTIVE FUNCTION ",
|
| 319 |
+
"text_level": 1,
|
| 320 |
+
"bbox": [
|
| 321 |
+
176,
|
| 322 |
+
811,
|
| 323 |
+
416,
|
| 324 |
+
827
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "We now substitute the above CD scores into the generic equation in $\\mathrm { E q } 1$ to arrive at the method used in this paper. While we use CD for the explanation method $\\operatorname { e x p l } _ { \\theta } ( X )$ , other explanation methods could be readily substituted at this stage. In order to convert CD scores to probabilities, we apply a SoftMax operation to $g ^ { C D } ( x )$ , allowing for easier comparison with the user-provided labels $\\operatorname { e x p l } _ { X }$ . We collect from the user, for each input $x _ { i }$ , a collection of feature groups $x _ { i , S }$ , $x _ { i } \\in \\mathbb { R } ^ { d } , S \\subseteq$ $\\{ 1 , . . . , d \\}$ , along with explanation target values $\\mathrm { e x p l } _ { x _ { i , S } }$ , and use the $\\| \\cdot \\| _ { 1 }$ loss for $\\mathcal { L } _ { \\mathrm { e x p l } }$ . ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
173,
|
| 333 |
+
838,
|
| 334 |
+
825,
|
| 335 |
+
926
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 2
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "equation",
|
| 341 |
+
"img_path": "images/2877ecea2240203ba0a12649ab3b64bb0de37da1170f11562845c5bce1f15c75.jpg",
|
| 342 |
+
"text": "$$\n\\hat { \\theta } = \\underset { \\theta } { \\mathrm { a r g m i n } } \\sum _ { i } \\sum _ { c } - y _ { i , c } \\log f _ { \\theta } ( x _ { i } ) _ { c } + \\lambda \\sum _ { i } \\sum _ { S } | | \\beta ( x _ { i , S } ) - \\exp | _ { x _ { i , S } } | | _ { 1 }\n$$",
|
| 343 |
+
"text_format": "latex",
|
| 344 |
+
"bbox": [
|
| 345 |
+
258,
|
| 346 |
+
121,
|
| 347 |
+
740,
|
| 348 |
+
156
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 3
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "In the above, $i$ indexes each individual example in the dataset, $S$ indexes a subset of the features for which we penalize their explanations, and $c$ sums over each class. Updating the model parameters in accordance with this formulation ensures that the model not only predicts the right output but also does so for the right (aligned with prior knowledge) reasons. ",
|
| 355 |
+
"bbox": [
|
| 356 |
+
173,
|
| 357 |
+
189,
|
| 358 |
+
825,
|
| 359 |
+
246
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 3
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "3.4 COMPUTATIONAL CONSIDERATIONS ",
|
| 366 |
+
"text_level": 1,
|
| 367 |
+
"bbox": [
|
| 368 |
+
178,
|
| 369 |
+
263,
|
| 370 |
+
462,
|
| 371 |
+
276
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 3
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "A similar idea to Eq 1 has been proposed in previous/concurrent work, where the choice of explanation method uses a gradient-based attribution method (Ross et al., 2017; Erion et al., 2019). However, using such methods leads to three main complications which are solved by our approach. The first complication is the optimization process. When optimizing over attributions from a gradientbased attribution method via gradient descent, the optimizer requires the gradient of the gradient, thus requiring that all network components be twice differentiable. This process is computationally expensive and indeed optimizing it exactly involves optimizing over a differential equation. In contrast, CD attributions are calculated along with the forward pass of the network, and as a result can be optimized plainly with back-propagation using the standard single forward-pass and backward-pass per batch. ",
|
| 378 |
+
"bbox": [
|
| 379 |
+
174,
|
| 380 |
+
287,
|
| 381 |
+
825,
|
| 382 |
+
428
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 3
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "A second complication solved by the use of CD in $\\operatorname { E q } 5$ is the ability to quickly finetune a pre-trained network. In many applications, particularly in transfer learning, it is common to finetune only the last few layers of a pre-trained neural network. Using CD, one can freeze early layers of the network and then finetune the last few layers of the network quickly as the activations and gradients of the frozen layers are not necessary. ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
434,
|
| 392 |
+
825,
|
| 393 |
+
505
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "Third, penalizing gradient-based methods incurs a very large memory usage. Using gradient-based methods, training requires the storage of activations and gradients for all layers of the network as well as the gradient of input (which can be omitted in normal training). Even for the simplest version, based on saliency, this more than doubles the required memory for a given batch and network size. More advanced methods proved to be completely infeasible to apply to a real-life dataset used, since the memory requirements were too high. By contrast, penalizing CD only requires a small constant amount of memory more than standard training. ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
174,
|
| 402 |
+
511,
|
| 403 |
+
825,
|
| 404 |
+
609
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "4 RESULTS ",
|
| 411 |
+
"text_level": 1,
|
| 412 |
+
"bbox": [
|
| 413 |
+
176,
|
| 414 |
+
628,
|
| 415 |
+
281,
|
| 416 |
+
645
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 3
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "The results here demonstrate the efficacy of CDEP on a variety of datasets using diverse explanation types. Sec 4.1 shows results on ignoring spurious patches in the ISIC skin cancer dataset (Codella et al., 2019), Sec 4.2 details experiments on converting a DNN’s preference for color to a preference for shape on a variant of the MNIST dataset (LeCun, 1998), and Sec 4.3 shows experiments on text data from the Stanford Sentiment Treebank (SST) (Socher et al., 2013).1 ",
|
| 423 |
+
"bbox": [
|
| 424 |
+
174,
|
| 425 |
+
660,
|
| 426 |
+
825,
|
| 427 |
+
731
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 3
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "4.1 IGNORING SPURIOUS SIGNALS IN SKIN CANCER DIAGNOSIS ",
|
| 434 |
+
"text_level": 1,
|
| 435 |
+
"bbox": [
|
| 436 |
+
176,
|
| 437 |
+
750,
|
| 438 |
+
624,
|
| 439 |
+
762
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 3
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "In recent years, deep learning has achieved impressive results in diagnosing skin cancer, with predictive accuracy sometimes comparable to human doctors (Esteva et al., 2017). However, the datasets used to train these models often include spurious features which make it possible to attain high test accuracy without learning the underlying phenomena (Winkler et al., 2019). In particular, a popular dataset from ISIC (International Skin Imaging Collaboration) has colorful patches present in approximately $50 \\%$ of the non-cancerous images but not in the cancerous images (Codella et al., 2019). An unpenalized DNN learns to look for these patches as an indicator for predicting that an image is benign. We use CDEP to remedy this problem by penalizing the DNN placing importance on the patches during training. ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
174,
|
| 448 |
+
773,
|
| 449 |
+
825,
|
| 450 |
+
900
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "image",
|
| 456 |
+
"img_path": "images/c8be3164538aa83806cb69235be2bd2037a511d18f3a57b89b26a4d7d9664ddc.jpg",
|
| 457 |
+
"image_caption": [
|
| 458 |
+
"Figure 2: Example images from the ISIC dataset. Half of the benign lesion images include a patch in the image. "
|
| 459 |
+
],
|
| 460 |
+
"image_footnote": [],
|
| 461 |
+
"bbox": [
|
| 462 |
+
210,
|
| 463 |
+
102,
|
| 464 |
+
767,
|
| 465 |
+
243
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 4
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "The task in this section is to classify whether an image of a skin lesion contains (1) benign melanoma or (2) malignant melanoma. The ISIC dataset consists of 21,654 images (19,372 benign), each diagnosed by histopathology or a consensus of experts. For classification, we use a VGG16 architecture (Simonyan & Zisserman, 2014) pre-trained on the ImageNet Classification task 2 and freeze the weights of early layers so that only the fully connected layers are trained. In order to use CDEP, the spurious patches are identified via a s imple image segmentation algorithm using a color threshold (see Sec S4). ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
324,
|
| 475 |
+
825,
|
| 476 |
+
421
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 4
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "Table 1 shows results comparing the performance of a model trained with and without CDEP. We report results on two variants of the test set. The first, which we refer to as “no patches” only contains images of the test set that do not include patches. The second also includes images with those patches. Training with CDEP improves the AUC and F1-score for both test sets. ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
429,
|
| 486 |
+
825,
|
| 487 |
+
484
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 4
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "table",
|
| 493 |
+
"img_path": "images/fa9ba85b7cf3f98a164b5bb529a2abc6da72a8b18a11dfce36f138bbc4e125e9.jpg",
|
| 494 |
+
"table_caption": [
|
| 495 |
+
"Table 1: Results from training a DNN on ISIC to recognize skin cancer (averaged over three runs). Results shown for the entire test set and for only the images the test set that do not include patches (“no patches”). The network trained with CDEP generalizes better, getting higher AUC and F1 on both. Std below 0.006 for all AUC and below 0.012 for all F1. "
|
| 496 |
+
],
|
| 497 |
+
"table_footnote": [],
|
| 498 |
+
"table_body": "<table><tr><td></td><td>AUC (no patches)</td><td>F1 (no patches)</td><td>AUC (all)</td><td>F1 (all)</td></tr><tr><td>Vanilla (excluded data)</td><td>0.86</td><td>0.59</td><td>0.92</td><td>0.59</td></tr><tr><td>Vanilla</td><td>0.85</td><td>0.56</td><td>0.92</td><td>0.56</td></tr><tr><td>With RRR</td><td>0.66</td><td>0.39</td><td>0.82</td><td>0.39</td></tr><tr><td>With CDEP</td><td>0.88</td><td>0.61</td><td>0.93</td><td>0.61</td></tr></table>",
|
| 499 |
+
"bbox": [
|
| 500 |
+
196,
|
| 501 |
+
570,
|
| 502 |
+
802,
|
| 503 |
+
664
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "In the first row of Table 1, the model is trained using only the data without the spurious patches, and the second row shows the model trained on the full dataset. The network trained using CDEP achieves the best AUC, surpassing both unpenalized versions. Applying our method increases the ROC AUC as well as the best F1 score. We also compared our method against the method introduced in 2017 by Ross et al. (RRR). For this, we restricted the batch size to 16 (and consequently use a learning rate of $1 0 ^ { - 5 }$ ) due to memory constraints. Using RRR did not improve on the base AUC, implying that penalizing gradients is not helpful in penalizing higher-order features.3 ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
173,
|
| 512 |
+
685,
|
| 513 |
+
825,
|
| 514 |
+
784
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "Visualizing explanations Fig. 3 visualize GradCAM heatmaps (Ozbulak, 2019; Selvaraju et al., 2017) for an unpenalized DNN and a DNN trained with CDEP to ignore spurious patches. As expected, after penalizing with CDEP, the DNN attributes less importance to the spurious patches, regardless of their position in the image. More examples, also for cancerous images, are shown in Sec S5. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
173,
|
| 523 |
+
801,
|
| 524 |
+
825,
|
| 525 |
+
869
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "image",
|
| 531 |
+
"img_path": "images/20a04a106d883c5e826264c1d280605495c44f4fa24b15395e969f269a172631.jpg",
|
| 532 |
+
"image_caption": [
|
| 533 |
+
"Figure 3: Visualizing heatmaps for correctly predicted exampes from the ISIC skincancer test set. Lighter regions in the heatmap are attributed more importance. The DNN trained with CDEP correctly captures that the patch is not relevant for classification. "
|
| 534 |
+
],
|
| 535 |
+
"image_footnote": [],
|
| 536 |
+
"bbox": [
|
| 537 |
+
287,
|
| 538 |
+
97,
|
| 539 |
+
823,
|
| 540 |
+
279
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 5
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "4.2 COMBATING INDUCTIVE BIAS ON VARIANTS OF THE MNIST DATASET ",
|
| 547 |
+
"text_level": 1,
|
| 548 |
+
"bbox": [
|
| 549 |
+
176,
|
| 550 |
+
380,
|
| 551 |
+
697,
|
| 552 |
+
393
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 5
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "In this section, we investigate whether we can alter which features a DNN uses to perform digit classification, using variants of the MNIST dataset (LeCun, 1998) and a standard CNN architecture for this dataset retrieved from PyTorch 4. ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
174,
|
| 561 |
+
405,
|
| 562 |
+
825,
|
| 563 |
+
448
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "4.2.1 COLORMNIST ",
|
| 570 |
+
"text_level": 1,
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
464,
|
| 574 |
+
334,
|
| 575 |
+
478
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 5
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "Similar to a previous study (Li & Vasconcelos, 2019), we transform the MNIST dataset to include three color channels and assign each class a distinct color, as shown in Fig. 4. An unpenalized DNN trained on this biased data will completely misclassify a test set with inverted colors, dropping to $0 \\%$ accuracy (see Section 4.2.1), suggesting that it learns to classify using the colors of the digits rather than their shape. ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
174,
|
| 584 |
+
489,
|
| 585 |
+
825,
|
| 586 |
+
559
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 5
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"text": "Here, we want to see if we can alter the DNN to focus on the shape of the digits rather than their color. Interestingly, this can be enforced by minimizing the contribution of pixels in isolation while maximizing the importance of groups of pixels (which can represent shapes). To do this, we add penalize the CD contribution of sampled single pixel values, following Eq 5. By minimizing the contribution of single pixels we effectively encourage the network to focus more on groups of pixels, which can represent shape. ",
|
| 593 |
+
"bbox": [
|
| 594 |
+
173,
|
| 595 |
+
565,
|
| 596 |
+
825,
|
| 597 |
+
650
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 5
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "image",
|
| 603 |
+
"img_path": "images/fb80d1db12bd143f0e50e57a070027be80ea8422d4e19038029b5c3902672461.jpg",
|
| 604 |
+
"image_caption": [
|
| 605 |
+
"Figure 4: ColorMNIST: the test set shapes remain the same as the training set, but the colors are inverted. A vanilla network trained on this training set will get $0 \\%$ accuracy on the test set. "
|
| 606 |
+
],
|
| 607 |
+
"image_footnote": [],
|
| 608 |
+
"bbox": [
|
| 609 |
+
269,
|
| 610 |
+
676,
|
| 611 |
+
730,
|
| 612 |
+
756
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 5
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "Section 4.2.1 shows that CDEP can partially change the network’s focus on solely color to also focus on digit shape. We compare CDEP to two previously introduced explanation penalization techniques: penalization of the squared gradients (RRR) (Ross et al., 2017) and Expected Gradients (EG) (Erion et al., 2019). For EG we penalize variance between attributions of the RGB channels (as recommended by the authors of EG in personal correspondence). None of the baselines are able to improve the test accuracy of the model on this task above the random baseline, while CDEP is able to significantly improve this accuracy to $3 1 . 0 \\%$ . We show the increase of predictive accuracy with increasing penalization in Fig. S5. ",
|
| 619 |
+
"bbox": [
|
| 620 |
+
174,
|
| 621 |
+
842,
|
| 622 |
+
825,
|
| 623 |
+
897
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 5
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "text",
|
| 629 |
+
"text": "",
|
| 630 |
+
"bbox": [
|
| 631 |
+
174,
|
| 632 |
+
103,
|
| 633 |
+
825,
|
| 634 |
+
160
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 6
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "table",
|
| 640 |
+
"img_path": "images/2b16f5fa80d0876c4ba521090c72194b85931070db4ad88f8bbb0423363a5884.jpg",
|
| 641 |
+
"table_caption": [
|
| 642 |
+
"Table 2: Results on ColorMNIST (test accuracy). All values averaged over thirty runs. CDEP is the only method that captures and removes color bias. "
|
| 643 |
+
],
|
| 644 |
+
"table_footnote": [],
|
| 645 |
+
"table_body": "<table><tr><td></td><td>Unpenalized</td><td>Baseline</td><td>CDEP</td><td>RRR</td><td>Expected Gradients</td></tr><tr><td>Test Accuracy</td><td>0.2±0.2</td><td>9.8</td><td>31.0 ± 2.3</td><td>0.2±0.1</td><td>10.0± 0.1</td></tr></table>",
|
| 646 |
+
"bbox": [
|
| 647 |
+
192,
|
| 648 |
+
219,
|
| 649 |
+
803,
|
| 650 |
+
251
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 6
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "4.2.2 DECOYMNIST ",
|
| 657 |
+
"text_level": 1,
|
| 658 |
+
"bbox": [
|
| 659 |
+
174,
|
| 660 |
+
295,
|
| 661 |
+
333,
|
| 662 |
+
309
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 6
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "For further comparison with previous work, we evaluate CDEP on an existing task: DecoyMNIST (Erion et al., 2019). DecoyMNIST adds a class-indicative gray patch to a random corner of the image. This task is relatively simple, as the spurious features are not entangled with any other feature and are always at the same location (the corners). Table 3 shows that all methods perform roughly equally, recovering the base accuracy. Results are reported using the best penalization parameter $\\lambda$ , chosen via cross-validation on the test accuracy. We provide details on the computation time, and memory usage in Table S1, showing that CDEP is similar to existing approaches. However, when freezing early layers of a network and finetuning, CDEP very quickly becomes more efficient than other methods. ",
|
| 669 |
+
"bbox": [
|
| 670 |
+
173,
|
| 671 |
+
320,
|
| 672 |
+
825,
|
| 673 |
+
445
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 6
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "table",
|
| 679 |
+
"img_path": "images/1e566762e6e0f07871891873a2ffe9183f4a5d4a7306ae075a3e54ff6e535111.jpg",
|
| 680 |
+
"table_caption": [
|
| 681 |
+
"Table 3: Results on Grayscale Decoy set. "
|
| 682 |
+
],
|
| 683 |
+
"table_footnote": [],
|
| 684 |
+
"table_body": "<table><tr><td></td><td>Unpenalized</td><td>CDEP</td><td>RRR</td><td>Expected Gradients</td></tr><tr><td>Testaccuracy</td><td>60.1 ± 5.1</td><td>97.2 ± 0.8</td><td>99.0 ± 1.0</td><td>97.8 ± 0.2</td></tr></table>",
|
| 685 |
+
"bbox": [
|
| 686 |
+
233,
|
| 687 |
+
487,
|
| 688 |
+
764,
|
| 689 |
+
518
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 6
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "4.3 FIXING BIAS IN TEXT DATA ",
|
| 696 |
+
"text_level": 1,
|
| 697 |
+
"bbox": [
|
| 698 |
+
176,
|
| 699 |
+
555,
|
| 700 |
+
403,
|
| 701 |
+
570
|
| 702 |
+
],
|
| 703 |
+
"page_idx": 6
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"type": "text",
|
| 707 |
+
"text": "To demonstrate CDEP’s effectiveness on text, we use the Stanford Sentiment Treebank (SST) dataset (Socher et al., 2013), an NLP benchmark dataset consisting of movie reviews with a binary sentiment (positive/negative). We inject spurious signals into the training set and train a standard LSTM 5 to classify sentiment from the review. ",
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
582,
|
| 711 |
+
825,
|
| 712 |
+
637
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 6
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "Positive ",
|
| 719 |
+
"text_level": 1,
|
| 720 |
+
"bbox": [
|
| 721 |
+
210,
|
| 722 |
+
656,
|
| 723 |
+
279,
|
| 724 |
+
672
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 6
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "pacino is the best she's been in years and keener is marvelous \nshe showcases davies as a young woman of great charm , generosity and diplomacy shows she 's back in form , with an astoundingly rich film . \nproves once again that she's the best brush in the business ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
210,
|
| 733 |
+
676,
|
| 734 |
+
723,
|
| 735 |
+
739
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 6
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "Negative ",
|
| 742 |
+
"text_level": 1,
|
| 743 |
+
"bbox": [
|
| 744 |
+
210,
|
| 745 |
+
757,
|
| 746 |
+
287,
|
| 747 |
+
773
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 6
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "green ruins every single scene he's in, and the film, while it 's not completely wreaked, is seriously compromised by that ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
210,
|
| 756 |
+
777,
|
| 757 |
+
753,
|
| 758 |
+
804
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 6
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "i'm sorry to say that this should seal the deal - arnold is not, nor will he be, back . this is sandler running on empty , repeating what he 's already done way too often . so howard appears to have had free rein to be as pretentious as he wanted ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
209,
|
| 767 |
+
806,
|
| 768 |
+
715,
|
| 769 |
+
853
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Figure 5: Example sentences from the SST dataset with artificially induced bias on gender. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
199,
|
| 778 |
+
882,
|
| 779 |
+
794,
|
| 780 |
+
897
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "We create three variants of the SST dataset, each with different spurious signals which we aim to ignore (examples in Sec S1). In the first variant, we add indicator words for each class (positive: ‘text’, negative: ‘video’) at a random location in each sentence. An unpenalized DNN will focus only on those words, dropping to nearly random performance on the unbiased test set. In the second variant, we use two semantically similar words (‘the’, ‘a’) to indicate the class by using one word only in the positive and one only in the negative class. In the third case, we use ‘he’ and ‘she’ to indicate class (example in Fig 5). Since these gendered words are only present in a small proportion of the training dataset $( \\sim 2 \\% )$ , for this variant, we report accuracy only on the sentences in the test set that do include the pronouns (performance on the test dataset not including the pronouns remains unchanged). Table 4 shows the test accuracy for all datasets with and without CDEP. In all scenarios, CDEP is successfully able to improve the test accuracy by ignoring the injected spurious signals. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
103,
|
| 790 |
+
825,
|
| 791 |
+
256
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 7
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "table",
|
| 797 |
+
"img_path": "images/5f6eff55474c4eee2494f38d5c9f8ef76b7dbe47d912769691c2cabcffde2fe1.jpg",
|
| 798 |
+
"table_caption": [
|
| 799 |
+
"Table 4: Results on SST. CDEP substantially improves predictive accuracy on the unbiased test set after training on biased data. "
|
| 800 |
+
],
|
| 801 |
+
"table_footnote": [],
|
| 802 |
+
"table_body": "<table><tr><td></td><td>Unpenalized</td><td>CDEP</td></tr><tr><td>Random words</td><td>56.6 ± 5.8</td><td>75.4 ± 0.9</td></tr><tr><td>Biased (articles)</td><td>57.8 ± 0.8</td><td>68.2 ± 0.8</td></tr><tr><td>Biased (gender)</td><td>64.2 ± 3.1</td><td>78.0 ± 3.0</td></tr></table>",
|
| 803 |
+
"bbox": [
|
| 804 |
+
338,
|
| 805 |
+
314,
|
| 806 |
+
658,
|
| 807 |
+
380
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 7
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "5 CONCLUSION ",
|
| 814 |
+
"text_level": 1,
|
| 815 |
+
"bbox": [
|
| 816 |
+
176,
|
| 817 |
+
419,
|
| 818 |
+
318,
|
| 819 |
+
435
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 7
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "In this work we introduce a novel method to penalize neural networks to align with prior knowledge. Compared to previous work, CDEP is the first of its kind that can penalize complex features and feature interactions. Furthermore, CDEP is more computationally efficient than previous work and does not rely on backpropagation, enabling its use with more complex neural networks. We show that CDEP can be used to remove bias and improve predictive accuracy on a variety of toy and real data. The experiments here demonstrate a variety of ways to use CDEP to improve models both on real and toy datasets. CDEP is quite versatile and can be used in many more areas to incorporate the structure of domain knowledge (e.g. biology or physics). Of course, the effectiveness of CDEP depends upon the quality of the prior knowledge used to determine the explanation targets. Future work includes extending CDEP to more complex penalties, incorporating more fine-grained explanations and interactions. We hope the work here will help push the field towards a more rigorous way to use interpretability methods, a point which will become increasingly important as interpretable machine learning develops as a field (Doshi-Velez & Kim, 2017; Murdoch et al., 2019). ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
173,
|
| 828 |
+
452,
|
| 829 |
+
825,
|
| 830 |
+
631
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 7
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "REFERENCES ",
|
| 837 |
+
"text_level": 1,
|
| 838 |
+
"bbox": [
|
| 839 |
+
176,
|
| 840 |
+
652,
|
| 841 |
+
285,
|
| 842 |
+
667
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 7
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "text",
|
| 848 |
+
"text": "Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua, and Sabine Susstrunk. Slic superpixels compared to state-of-the-art superpixel methods. ¨ IEEE transactions on pattern analysis and machine intelligence, 34(11):2274–2282, 2012. \nJulius Adebayo, Justin Gilmer, Michael Muelly, Ian Goodfellow, Moritz Hardt, and Been Kim. Sanity checks for saliency maps. In Advances in Neural Information Processing Systems, pp. 9505–9515, 2018. \nMarco Ancona, Enea Ceolini, Cengiz Oztireli, and Markus Gross. Towards better understanding of gradient-based attribution methods for deep neural networks. In 6th International Conference on Learning Representations (ICLR 2018), 2018. \nSebastian Bach, Alexander Binder, Gregoire Montavon, Frederick Klauschen, Klaus-Robert M ´ uller, ¨ and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one, 10(7):e0130140, 2015. \nDavid Baehrens, Timon Schroeter, Stefan Harmeling, Motoaki Kawanabe, Katja Hansen, and KlausRobert MA˜ zller. How to explain individual classification decisions. ˇ Journal of Machine Learning Research, 11(Jun):1803–1831, 2010. ",
|
| 849 |
+
"bbox": [
|
| 850 |
+
171,
|
| 851 |
+
676,
|
| 852 |
+
826,
|
| 853 |
+
925
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 7
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, and Adam T Kalai. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. In Advances in neural information processing systems, pp. 4349–4357, 2016. ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
176,
|
| 862 |
+
103,
|
| 863 |
+
823,
|
| 864 |
+
146
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 8
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "Kaylee Burns, Lisa Anne Hendricks, Kate Saenko, Trevor Darrell, and Anna Rohrbach. Women also snowboard: Overcoming bias in captioning models. arXiv preprint arXiv:1803.09797, 2018. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
173,
|
| 873 |
+
155,
|
| 874 |
+
823,
|
| 875 |
+
185
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 8
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "Noel Codella, Veronica Rotemberg, Philipp Tschandl, M Emre Celebi, Stephen Dusza, David Gutman, Brian Helba, Aadi Kalloo, Konstantinos Liopyris, Michael Marchetti, et al. Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the international skin imaging collaboration (isic). arXiv preprint arXiv:1902.03368, 2019. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
173,
|
| 884 |
+
194,
|
| 885 |
+
825,
|
| 886 |
+
251
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 8
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Piotr Dabkowski and Yarin Gal. Real time image saliency for black box classifiers. arXiv preprint arXiv:1705.07857, 2017. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
174,
|
| 895 |
+
261,
|
| 896 |
+
823,
|
| 897 |
+
290
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "Finale Doshi-Velez and Been Kim. Towards a rigorous science of interpretable machine learning. arXiv preprint arXiv:1702.08608, 2017. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
173,
|
| 906 |
+
299,
|
| 907 |
+
821,
|
| 908 |
+
328
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 8
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Gabriel Erion, Joseph D Janizek, Pascal Sturmfels, Scott Lundberg, and Su-In Lee. Learning explainable models using attribution priors. arXiv preprint arXiv:1906.10670, 2019. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
173,
|
| 917 |
+
337,
|
| 918 |
+
823,
|
| 919 |
+
367
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 8
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Andre Esteva, Brett Kuprel, Roberto A Novoa, Justin Ko, Susan M Swetter, Helen M Blau, and Sebastian Thrun. Dermatologist-level classification of skin cancer with deep neural networks. Nature, 542(7639):115, 2017. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
174,
|
| 928 |
+
376,
|
| 929 |
+
823,
|
| 930 |
+
419
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 8
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Ruth C Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. arXiv preprint arXiv:1704.03296, 2017. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
169,
|
| 939 |
+
429,
|
| 940 |
+
823,
|
| 941 |
+
458
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 8
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Nikhil Garg, Londa Schiebinger, Dan Jurafsky, and James Zou. Word embeddings quantify 100 years of gender and ethnic stereotypes. Proceedings of the National Academy of Sciences, 115 (16):E3635–E3644, 2018. ISSN 0027-8424. doi: 10.1073/pnas.1720347115. URL https: //www.pnas.org/content/115/16/E3635. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
173,
|
| 950 |
+
467,
|
| 951 |
+
825,
|
| 952 |
+
523
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 8
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. arXiv preprint arXiv:1811.12231, 2018. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
174,
|
| 961 |
+
534,
|
| 962 |
+
825,
|
| 963 |
+
577
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 8
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "Sarthak Jain and Byron C Wallace. Attention is not explanation. arXiv preprint arXiv:1902.10186, 2019. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
176,
|
| 972 |
+
585,
|
| 973 |
+
823,
|
| 974 |
+
614
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 8
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Yann LeCun. The mnist database of handwritten digits. http://yann. lecun. com/exdb/mnist/, 1998. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
174,
|
| 983 |
+
625,
|
| 984 |
+
818,
|
| 985 |
+
640
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 8
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Yi Li and Nuno Vasconcelos. Repair: Removing representation bias by dataset resampling. arXiv preprint arXiv:1904.07911, 2019. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
173,
|
| 994 |
+
650,
|
| 995 |
+
823,
|
| 996 |
+
678
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 8
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "Frederick Liu and Besim Avci. Incorporating priors with feature attribution on text classification. arXiv preprint arXiv:1906.08286, 2019. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
173,
|
| 1005 |
+
688,
|
| 1006 |
+
823,
|
| 1007 |
+
717
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 8
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems, pp. 4768–4777, 2017. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
168,
|
| 1016 |
+
727,
|
| 1017 |
+
823,
|
| 1018 |
+
756
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 8
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "Masahiro Mitsuhara, Hiroshi Fukui, Yusuke Sakashita, Takanori Ogata, Tsubasa Hirakawa, Takayoshi Yamashita, and Hironobu Fujiyoshi. Embedding human knowledge in deep neural network via attention map. arXiv preprint arXiv:1905.03540, 2019. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
174,
|
| 1027 |
+
765,
|
| 1028 |
+
825,
|
| 1029 |
+
809
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 8
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "W James Murdoch and Arthur Szlam. Automatic rule extraction from long short term memory networks. arXiv preprint arXiv:1702.02540, 2017. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
171,
|
| 1038 |
+
818,
|
| 1039 |
+
823,
|
| 1040 |
+
847
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 8
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "W James Murdoch, Peter J Liu, and Bin Yu. Beyond word importance: Contextual decomposition to extract interactions from lstms. arXiv preprint arXiv:1801.05453, 2018. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
171,
|
| 1049 |
+
856,
|
| 1050 |
+
823,
|
| 1051 |
+
886
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 8
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "W James Murdoch, Chandan Singh, Karl Kumbier, Reza Abbasi-Asl, and Bin Yu. Interpretable machine learning: definitions, methods, and applications. arXiv preprint arXiv:1901.04592, 2019. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
174,
|
| 1060 |
+
895,
|
| 1061 |
+
823,
|
| 1062 |
+
924
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 8
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Weili Nie, Yang Zhang, and Ankit Patel. A theoretical explanation for perplexing behaviors of backpropagation-based visualizations. arXiv preprint arXiv:1805.07039, 2018. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
171,
|
| 1071 |
+
103,
|
| 1072 |
+
825,
|
| 1073 |
+
132
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 9
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Utku Ozbulak. Pytorch cnn visualizations. https://github.com/utkuozbulak/ pytorch-cnn-visualizations, 2019. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
171,
|
| 1082 |
+
140,
|
| 1083 |
+
821,
|
| 1084 |
+
170
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 9
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. Why should i trust you?: Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1135–1144. ACM, 2016. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
178,
|
| 1093 |
+
178,
|
| 1094 |
+
821,
|
| 1095 |
+
222
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 9
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Laura Rieger and Lars Kai Hansen. Aggregating explainability methods for neural networks stabilizes explanations. arXiv preprint arXiv:1903.00519, 2019. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
171,
|
| 1104 |
+
229,
|
| 1105 |
+
823,
|
| 1106 |
+
258
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 9
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "Andrew Slavin Ross and Finale Doshi-Velez. Improving the adversarial robustness and interpretability of deep neural networks by regularizing their input gradients. In Thirty-second AAAI conference on artificial intelligence, 2018. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
176,
|
| 1115 |
+
266,
|
| 1116 |
+
823,
|
| 1117 |
+
309
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 9
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "Andrew Slavin Ross, Michael C Hughes, and Finale Doshi-Velez. Right for the right reasons: Training differentiable models by constraining their explanations. arXiv preprint arXiv:1703.03717, 2017. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
174,
|
| 1126 |
+
318,
|
| 1127 |
+
823,
|
| 1128 |
+
361
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 9
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. See https://arxiv. org/abs/1610.02391 v3, 7(8), 2016. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
173,
|
| 1137 |
+
368,
|
| 1138 |
+
825,
|
| 1139 |
+
411
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 9
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, pp. 618–626, 2017. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
174,
|
| 1148 |
+
420,
|
| 1149 |
+
825,
|
| 1150 |
+
477
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 9
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Avanti Shrikumar, Peyton Greenside, Anna Shcherbina, and Anshul Kundaje. Not just a black box: Learning important features through propagating activation differences. arXiv preprint arXiv:1605.01713, 2016. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
174,
|
| 1159 |
+
486,
|
| 1160 |
+
825,
|
| 1161 |
+
529
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 9
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
174,
|
| 1170 |
+
536,
|
| 1171 |
+
823,
|
| 1172 |
+
565
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 9
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Chandan Singh, W James Murdoch, and Bin Yu. Hierarchical interpretations for neural network predictions. arXiv preprint arXiv:1806.05337, 2018. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
173,
|
| 1181 |
+
573,
|
| 1182 |
+
823,
|
| 1183 |
+
603
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 9
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\\mathrm { N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1631–1642, 2013. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
173,
|
| 1192 |
+
611,
|
| 1193 |
+
825,
|
| 1194 |
+
667
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 9
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
169,
|
| 1203 |
+
676,
|
| 1204 |
+
823,
|
| 1205 |
+
705
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 9
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "Julia Strout, Ye Zhang, and Raymond J Mooney. Do human rationales improve machine explanations? arXiv preprint arXiv:1905.13714, 2019. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
171,
|
| 1214 |
+
713,
|
| 1215 |
+
821,
|
| 1216 |
+
742
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 9
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. ICML, 2017. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
169,
|
| 1225 |
+
751,
|
| 1226 |
+
825,
|
| 1227 |
+
780
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 9
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Haohan Wang, Zexue He, Zachary C Lipton, and Eric P Xing. Learning robust representations by projecting superficial statistics out. arXiv preprint arXiv:1903.06256, 2019. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
169,
|
| 1236 |
+
789,
|
| 1237 |
+
821,
|
| 1238 |
+
818
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 9
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "Julia K. Winkler, Christine Fink, Ferdinand Toberer, Alexander Enk, Teresa Deinlein, Rainer Hofmann-Wellenhof, Luc Thomas, Aimilios Lallas, Andreas Blum, Wilhelm Stolz, and Holger A. Haenssle. Association Between Surgical Skin Markings in Dermoscopic Images and Diagnostic Performance of a Deep Learning Convolutional Neural Network for Melanoma RecognitionSurgical Skin Markings in Dermoscopic Images and Deep Learning Convolutional Neural Network Recognition of MelanomaSurgical Skin Markings in Dermoscopic Images and Deep Learning Convolutional Neural Network Recognition of Melanoma. JAMA Dermatology, 08 2019. ISSN ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
176,
|
| 1247 |
+
825,
|
| 1248 |
+
825,
|
| 1249 |
+
924
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 9
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "2168-6068. doi: 10.1001/jamadermatol.2019.1735. URL https://doi.org/10.1001/ jamadermatol.2019.1735. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
183,
|
| 1258 |
+
103,
|
| 1259 |
+
821,
|
| 1260 |
+
132
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 10
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Omar Zaidan, Jason Eisner, and Christine Piatko. Using annotator rationales to improve machine learning for text categorization. In Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference, pp. 260–267, 2007. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
174,
|
| 1269 |
+
141,
|
| 1270 |
+
825,
|
| 1271 |
+
196
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 10
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Tianyuan Zhang and Zhanxing Zhu. Interpreting adversarially trained convolutional neural networks. arXiv preprint arXiv:1905.09797, 2019. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
169,
|
| 1280 |
+
207,
|
| 1281 |
+
823,
|
| 1282 |
+
234
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 10
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Luisa M Zintgraf, Taco S Cohen, Tameem Adel, and Max Welling. Visualizing deep neural network decisions: Prediction difference analysis. arXiv preprint arXiv:1702.04595, 2017. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
174,
|
| 1291 |
+
244,
|
| 1292 |
+
823,
|
| 1293 |
+
272
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 10
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "Supplement ",
|
| 1300 |
+
"text_level": 1,
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
401,
|
| 1303 |
+
99,
|
| 1304 |
+
596,
|
| 1305 |
+
132
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 11
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "S1 ADDITIONAL DETAILS ABOUT SST TASK ",
|
| 1312 |
+
"text_level": 1,
|
| 1313 |
+
"bbox": [
|
| 1314 |
+
173,
|
| 1315 |
+
150,
|
| 1316 |
+
555,
|
| 1317 |
+
167
|
| 1318 |
+
],
|
| 1319 |
+
"page_idx": 11
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"type": "text",
|
| 1323 |
+
"text": "Section 4.3 shows the results for CDEP on biased variants of the SST dataset. Here we show examples of the biased sentences (for task 2 and 3 we only show sentences where the bias was present) in Figs. S1 to S3. For the first task, we insert two randomly chosen words in $100 \\%$ of the sentences in the positive and negative class respectively. We choose two words (“text” for the positive class and “video” for the negative class) that were not otherwise present in the data set but had a representation in Word2Vec. ",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
174,
|
| 1326 |
+
181,
|
| 1327 |
+
825,
|
| 1328 |
+
265
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 11
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "Positive ",
|
| 1335 |
+
"text_level": 1,
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
241,
|
| 1338 |
+
279,
|
| 1339 |
+
302,
|
| 1340 |
+
292
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 11
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "part of the charm of satin rouge is that it avoids the obvious with text humour and lightness . text a screenplay more ingeniously constructed than ‘memento’ \ngood fun text, good action, good acting, good dialogue, good pace, good cinematography . dramas like text this make it human . ",
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
240,
|
| 1349 |
+
296,
|
| 1350 |
+
743,
|
| 1351 |
+
352
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 11
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "text",
|
| 1357 |
+
"text": "Negative ",
|
| 1358 |
+
"text_level": 1,
|
| 1359 |
+
"bbox": [
|
| 1360 |
+
241,
|
| 1361 |
+
385,
|
| 1362 |
+
308,
|
| 1363 |
+
398
|
| 1364 |
+
],
|
| 1365 |
+
"page_idx": 11
|
| 1366 |
+
},
|
| 1367 |
+
{
|
| 1368 |
+
"type": "text",
|
| 1369 |
+
"text": "... begins with promise, but runs aground after being video snared in its own tangled plot . \nthe video movie is well done, but slow . \nthis orange has some juice , but it 's video far from fresh-squeezed . \nas it is, video it 's too long and unfocused . ",
|
| 1370 |
+
"bbox": [
|
| 1371 |
+
241,
|
| 1372 |
+
401,
|
| 1373 |
+
730,
|
| 1374 |
+
457
|
| 1375 |
+
],
|
| 1376 |
+
"page_idx": 11
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"type": "text",
|
| 1380 |
+
"text": "Figure S1: Example sentences from the variant 1 of the biased SST dataset with decoy variables in each sentence. ",
|
| 1381 |
+
"bbox": [
|
| 1382 |
+
176,
|
| 1383 |
+
482,
|
| 1384 |
+
823,
|
| 1385 |
+
510
|
| 1386 |
+
],
|
| 1387 |
+
"page_idx": 11
|
| 1388 |
+
},
|
| 1389 |
+
{
|
| 1390 |
+
"type": "text",
|
| 1391 |
+
"text": "For the second task, we choose to replace two common words (”the” and ”a”) in sentences where they appear $2 7 \\%$ of the dataset). We replace the words such that one word only appears in the positive class and the other world only in the negative class. By choosing words that are semantically almost replaceable, we ensured that the normal sentence structure would not be broken such as with the first task. ",
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
176,
|
| 1394 |
+
531,
|
| 1395 |
+
825,
|
| 1396 |
+
601
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 11
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "Positive ",
|
| 1403 |
+
"text_level": 1,
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
240,
|
| 1406 |
+
614,
|
| 1407 |
+
300,
|
| 1408 |
+
627
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 11
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "comes off as a touching , transcendent love story . \nis most remarkable not because of its epic scope , but because of a startling intimacy couldn't be better as a cruel but weirdly likable wasp matron \nuses humor and a heartfelt conviction to tell that story about discovering your destination in life ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
240,
|
| 1417 |
+
631,
|
| 1418 |
+
741,
|
| 1419 |
+
698
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 11
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "Negative ",
|
| 1426 |
+
"text_level": 1,
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
240,
|
| 1429 |
+
717,
|
| 1430 |
+
307,
|
| 1431 |
+
731
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 11
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "to creep the living hell out of you \nholds its goodwill close , but is relatively slow to come to the point it 's not the great monster movie . \nconsider the dvd rental instead ",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
240,
|
| 1440 |
+
733,
|
| 1441 |
+
607,
|
| 1442 |
+
789
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 11
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "Figure S2: Example sentences from the variant 2 of the SST dataset with artificially induced bias on articles (”the”, ”a”). Bias was only induced on the sentences where those articles were used $2 7 \\%$ of the dataset). ",
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
174,
|
| 1451 |
+
816,
|
| 1452 |
+
825,
|
| 1453 |
+
858
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 11
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "For the third task we repeat the same procedure with two words (“he” and “she”) that appeared in only $2 \\%$ of the dataset. This helps evaluate whether CDEP works even if the spurious signal appears only in a small section of the data set. ",
|
| 1460 |
+
"bbox": [
|
| 1461 |
+
174,
|
| 1462 |
+
882,
|
| 1463 |
+
823,
|
| 1464 |
+
922
|
| 1465 |
+
],
|
| 1466 |
+
"page_idx": 11
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"type": "text",
|
| 1470 |
+
"text": "Positive ",
|
| 1471 |
+
"text_level": 1,
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
240,
|
| 1474 |
+
104,
|
| 1475 |
+
300,
|
| 1476 |
+
117
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 12
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "pacino is the best she's been in years and keener is marvelous she showcases davies as a young woman of great charm , generosity and diplomacy shows she 's back in form , with an astoundingly rich film . proves once again that she's the best brush in the business ",
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
240,
|
| 1485 |
+
121,
|
| 1486 |
+
697,
|
| 1487 |
+
178
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 12
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "text",
|
| 1493 |
+
"text": "Negative ",
|
| 1494 |
+
"text_level": 1,
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
240,
|
| 1497 |
+
194,
|
| 1498 |
+
307,
|
| 1499 |
+
208
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 12
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"type": "text",
|
| 1505 |
+
"text": "green ruins every single scene he's in, and the film, while it 's not completely wreaked, is seriously compromised by that i'm sorry to say that this should seal the deal - arnold is not, nor will he be, back . this is sandler running on empty , repeating what he 's already done way too often . so howard appears to have had free rein to be as pretentious as he wanted ",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
240,
|
| 1508 |
+
210,
|
| 1509 |
+
725,
|
| 1510 |
+
279
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 12
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "text",
|
| 1516 |
+
"text": "Figure S3: Example sentences from the variant 3 of the SST dataset with artificially induced bias on articles (”he”, ”she”). Bias was only induced on the sentences where those articles were used $2 \\%$ of the dataset). ",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
174,
|
| 1519 |
+
306,
|
| 1520 |
+
825,
|
| 1521 |
+
348
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 12
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "text",
|
| 1527 |
+
"text": "S2 NETWORK ARCHITECTURES AND TRAINING ",
|
| 1528 |
+
"text_level": 1,
|
| 1529 |
+
"bbox": [
|
| 1530 |
+
173,
|
| 1531 |
+
388,
|
| 1532 |
+
581,
|
| 1533 |
+
404
|
| 1534 |
+
],
|
| 1535 |
+
"page_idx": 12
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"type": "text",
|
| 1539 |
+
"text": "S2.1 NETWORK ARCHITECTURES ",
|
| 1540 |
+
"text_level": 1,
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
176,
|
| 1543 |
+
428,
|
| 1544 |
+
419,
|
| 1545 |
+
443
|
| 1546 |
+
],
|
| 1547 |
+
"page_idx": 12
|
| 1548 |
+
},
|
| 1549 |
+
{
|
| 1550 |
+
"type": "text",
|
| 1551 |
+
"text": "For the ISIC skin cancer task we used a pretrained VGG16 network retrieved from the PyTorch model zoo. We use SGD as the optimizer with a learning rate of 0.01 and momentum of 0.9. Preliminary experiments with Adam as the optimizer yielded poorer predictive performance. ",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
174,
|
| 1554 |
+
459,
|
| 1555 |
+
825,
|
| 1556 |
+
502
|
| 1557 |
+
],
|
| 1558 |
+
"page_idx": 12
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"type": "text",
|
| 1562 |
+
"text": "or both MNIST tasks, we use a standard convolutional network with two convolutional channels followed by max pooling respectively and two fully connected layers: ",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
176,
|
| 1565 |
+
508,
|
| 1566 |
+
820,
|
| 1567 |
+
537
|
| 1568 |
+
],
|
| 1569 |
+
"page_idx": 12
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"type": "text",
|
| 1573 |
+
"text": "Conv(20,5,5) - MaxPool() - Conv(50,5,5) - MaxPool - FC(256) - FC(10). The models were trained with Adam, using a weight decay of 0.001. ",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
176,
|
| 1576 |
+
544,
|
| 1577 |
+
820,
|
| 1578 |
+
573
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 12
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "text",
|
| 1584 |
+
"text": "Penalizing explanations adds an additional hyperparameter, $\\lambda$ to the training. $\\lambda$ can either be set in proportion to the normal training loss or at a fixed rate. In this paper we did the latter. We expect that exploring the former could lead to a more stable training process. For all tasks $\\lambda$ was tested across a wide range between $[ 1 0 ^ { - 1 } , 1 0 ^ { 4 } ]$ . ",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
174,
|
| 1587 |
+
579,
|
| 1588 |
+
825,
|
| 1589 |
+
636
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 12
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "The LSTM for the SST experiments consisted of two LSTM layers with 128 hidden units followed by a fully connected layer. ",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
173,
|
| 1598 |
+
642,
|
| 1599 |
+
823,
|
| 1600 |
+
671
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 12
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "text",
|
| 1606 |
+
"text": "S2.2 COLORMNIST ",
|
| 1607 |
+
"text_level": 1,
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
176,
|
| 1610 |
+
702,
|
| 1611 |
+
330,
|
| 1612 |
+
717
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 12
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "text",
|
| 1618 |
+
"text": "For fixing the bias in the ColorMNIST task, we sample pixels from the distribution of non-zero pixels over the whole training set, as shown in Fig. S4 ",
|
| 1619 |
+
"bbox": [
|
| 1620 |
+
173,
|
| 1621 |
+
734,
|
| 1622 |
+
825,
|
| 1623 |
+
762
|
| 1624 |
+
],
|
| 1625 |
+
"page_idx": 12
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "image",
|
| 1629 |
+
"img_path": "images/cd435bbc30efe89f696a9762af1aa88bc5e2059a70dedb2a8bd47a002eb9d1a1.jpg",
|
| 1630 |
+
"image_caption": [
|
| 1631 |
+
"Figure S4: Sampling distribution for ColorMNIST "
|
| 1632 |
+
],
|
| 1633 |
+
"image_footnote": [],
|
| 1634 |
+
"bbox": [
|
| 1635 |
+
433,
|
| 1636 |
+
791,
|
| 1637 |
+
560,
|
| 1638 |
+
892
|
| 1639 |
+
],
|
| 1640 |
+
"page_idx": 12
|
| 1641 |
+
},
|
| 1642 |
+
{
|
| 1643 |
+
"type": "image",
|
| 1644 |
+
"img_path": "images/31112354bc86a1ed8cb293c0e3706c9749cecf15b291c44c7a35f228297094bb.jpg",
|
| 1645 |
+
"image_caption": [
|
| 1646 |
+
"Figure S5: Results on ColorMNIST (Test Accuracy). All averaged over thirty runs. CDEP is the only method that captures and removes color bias. "
|
| 1647 |
+
],
|
| 1648 |
+
"image_footnote": [],
|
| 1649 |
+
"bbox": [
|
| 1650 |
+
279,
|
| 1651 |
+
111,
|
| 1652 |
+
714,
|
| 1653 |
+
328
|
| 1654 |
+
],
|
| 1655 |
+
"page_idx": 13
|
| 1656 |
+
},
|
| 1657 |
+
{
|
| 1658 |
+
"type": "text",
|
| 1659 |
+
"text": "For Expected Gradients we show results when sampling pixels as well as when penalizing the variance between attributions for the RGB channels (as recommended by the authors of EG) in Fig. S5. Neither of them go above random accuracy, only achieving random accuracy when they are regularized to a constant prediction. ",
|
| 1660 |
+
"bbox": [
|
| 1661 |
+
174,
|
| 1662 |
+
410,
|
| 1663 |
+
825,
|
| 1664 |
+
467
|
| 1665 |
+
],
|
| 1666 |
+
"page_idx": 13
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"type": "text",
|
| 1670 |
+
"text": "S3 RUNTIME AND MEMORY REQUIREMENTS OF DIFFERENT ALGORITHMS ",
|
| 1671 |
+
"text_level": 1,
|
| 1672 |
+
"bbox": [
|
| 1673 |
+
173,
|
| 1674 |
+
489,
|
| 1675 |
+
797,
|
| 1676 |
+
505
|
| 1677 |
+
],
|
| 1678 |
+
"page_idx": 13
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"type": "text",
|
| 1682 |
+
"text": "This section provides further details on runtime and memory requirements reported in Table S1. We compared the runtime and memory requirements of the available regularization schemes when implemented in Pytorch. ",
|
| 1683 |
+
"bbox": [
|
| 1684 |
+
174,
|
| 1685 |
+
520,
|
| 1686 |
+
825,
|
| 1687 |
+
563
|
| 1688 |
+
],
|
| 1689 |
+
"page_idx": 13
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "text",
|
| 1693 |
+
"text": "Memory usage and runtime were tested on the DecoyMNIST task with a batch size of 64. It is expected that the exact ratios will change depending on the complexity of the used network and batch size (since constant memory usage becomes disproportionally smaller with increasing batch size). ",
|
| 1694 |
+
"bbox": [
|
| 1695 |
+
174,
|
| 1696 |
+
569,
|
| 1697 |
+
825,
|
| 1698 |
+
626
|
| 1699 |
+
],
|
| 1700 |
+
"page_idx": 13
|
| 1701 |
+
},
|
| 1702 |
+
{
|
| 1703 |
+
"type": "text",
|
| 1704 |
+
"text": "The memory usage was read by recording the memory allocated by PyTorch. Since Expected Gradients and RRR require two forward and backward passes, we only record the maximum memory usage. We ran experiments on a single Titan X. ",
|
| 1705 |
+
"bbox": [
|
| 1706 |
+
174,
|
| 1707 |
+
632,
|
| 1708 |
+
823,
|
| 1709 |
+
675
|
| 1710 |
+
],
|
| 1711 |
+
"page_idx": 13
|
| 1712 |
+
},
|
| 1713 |
+
{
|
| 1714 |
+
"type": "table",
|
| 1715 |
+
"img_path": "images/d235c6702e3f3788a01b05a20b6f7401e703e8400883fcea7824599b62571b70.jpg",
|
| 1716 |
+
"table_caption": [
|
| 1717 |
+
"Table S1: Memory usage and run time were recorded for the DecoyMNIST task. "
|
| 1718 |
+
],
|
| 1719 |
+
"table_footnote": [],
|
| 1720 |
+
"table_body": "<table><tr><td></td><td>Unpenalized</td><td>CDEP</td><td>RRR</td><td>Expected Gradients</td></tr><tr><td>Run time/epoch (seconds)</td><td>4.7</td><td>17.1</td><td>11.2</td><td>17.8</td></tr><tr><td>Maximum GPU RAM usage (GB)</td><td>0.027</td><td>0.068</td><td>0.046</td><td>0.046</td></tr></table>",
|
| 1721 |
+
"bbox": [
|
| 1722 |
+
192,
|
| 1723 |
+
718,
|
| 1724 |
+
807,
|
| 1725 |
+
765
|
| 1726 |
+
],
|
| 1727 |
+
"page_idx": 13
|
| 1728 |
+
},
|
| 1729 |
+
{
|
| 1730 |
+
"type": "text",
|
| 1731 |
+
"text": "S4 IMAGE SEGMENTATION FOR ISIC SKIN CANCER ",
|
| 1732 |
+
"text_level": 1,
|
| 1733 |
+
"bbox": [
|
| 1734 |
+
173,
|
| 1735 |
+
799,
|
| 1736 |
+
614,
|
| 1737 |
+
816
|
| 1738 |
+
],
|
| 1739 |
+
"page_idx": 13
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"type": "text",
|
| 1743 |
+
"text": "To obtain the binary maps of the patches for the skin cancer task, we first segment the images using SLIC, a common image-segmentation algorithm (Achanta et al., 2012). Since the patches look quite distinct from the rest of the image, the patches are usually their own segment. ",
|
| 1744 |
+
"bbox": [
|
| 1745 |
+
174,
|
| 1746 |
+
832,
|
| 1747 |
+
825,
|
| 1748 |
+
875
|
| 1749 |
+
],
|
| 1750 |
+
"page_idx": 13
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"type": "text",
|
| 1754 |
+
"text": "Subsequently we take the mean RGB and HSV values for all segments and filtered for segments which the mean was substantially different from the typical caucasian skin tone. Since different images were different from the typical skin color in different attributes, we filtered for those images ",
|
| 1755 |
+
"bbox": [
|
| 1756 |
+
176,
|
| 1757 |
+
881,
|
| 1758 |
+
825,
|
| 1759 |
+
924
|
| 1760 |
+
],
|
| 1761 |
+
"page_idx": 13
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"type": "text",
|
| 1765 |
+
"text": "recursively. As an example, in the image shown in Fig. S6, the patch has a much higher saturation than the rest of the image. For each image we exported a map as seen in Fig. S6. ",
|
| 1766 |
+
"bbox": [
|
| 1767 |
+
171,
|
| 1768 |
+
103,
|
| 1769 |
+
825,
|
| 1770 |
+
132
|
| 1771 |
+
],
|
| 1772 |
+
"page_idx": 14
|
| 1773 |
+
},
|
| 1774 |
+
{
|
| 1775 |
+
"type": "image",
|
| 1776 |
+
"img_path": "images/0dfb79dd67bc8fc5f51dae08a2f16a404c88adc6fe72b90cc852fd2b5ded03d4.jpg",
|
| 1777 |
+
"image_caption": [
|
| 1778 |
+
"Figure S6: Sample segmentation for the ISIC task. "
|
| 1779 |
+
],
|
| 1780 |
+
"image_footnote": [],
|
| 1781 |
+
"bbox": [
|
| 1782 |
+
364,
|
| 1783 |
+
146,
|
| 1784 |
+
629,
|
| 1785 |
+
250
|
| 1786 |
+
],
|
| 1787 |
+
"page_idx": 14
|
| 1788 |
+
},
|
| 1789 |
+
{
|
| 1790 |
+
"type": "text",
|
| 1791 |
+
"text": "S5 ADDITIONAL HEATMAP EXAMPLES FOR ISIC ",
|
| 1792 |
+
"text_level": 1,
|
| 1793 |
+
"bbox": [
|
| 1794 |
+
173,
|
| 1795 |
+
102,
|
| 1796 |
+
593,
|
| 1797 |
+
118
|
| 1798 |
+
],
|
| 1799 |
+
"page_idx": 15
|
| 1800 |
+
},
|
| 1801 |
+
{
|
| 1802 |
+
"type": "text",
|
| 1803 |
+
"text": "We show additional examples from the test set of the skin cancer task in Figs. S7 and S8. We see that the importance maps for the unregularized and regularized network are very similar for cancerous images and non-cancerous images without patch. The patches are ignored by the network regularized with CDEP. ",
|
| 1804 |
+
"bbox": [
|
| 1805 |
+
174,
|
| 1806 |
+
133,
|
| 1807 |
+
825,
|
| 1808 |
+
189
|
| 1809 |
+
],
|
| 1810 |
+
"page_idx": 15
|
| 1811 |
+
},
|
| 1812 |
+
{
|
| 1813 |
+
"type": "image",
|
| 1814 |
+
"img_path": "images/535e5e0e5266fe5e4376cfbc030329bc433f930b6b247d6fde3dd2c00d42bdbc.jpg",
|
| 1815 |
+
"image_caption": [
|
| 1816 |
+
"Figure S7: Heatmaps for benign samples from ISIC "
|
| 1817 |
+
],
|
| 1818 |
+
"image_footnote": [],
|
| 1819 |
+
"bbox": [
|
| 1820 |
+
289,
|
| 1821 |
+
244,
|
| 1822 |
+
707,
|
| 1823 |
+
650
|
| 1824 |
+
],
|
| 1825 |
+
"page_idx": 15
|
| 1826 |
+
},
|
| 1827 |
+
{
|
| 1828 |
+
"type": "image",
|
| 1829 |
+
"img_path": "images/6aaa8ddbf450d4c9d0668084563bf7d71217d11feded933bcd841f43dc60c25d.jpg",
|
| 1830 |
+
"image_caption": [
|
| 1831 |
+
"Figure S8: Heatmaps for cancerous samples from ISIC "
|
| 1832 |
+
],
|
| 1833 |
+
"image_footnote": [],
|
| 1834 |
+
"bbox": [
|
| 1835 |
+
276,
|
| 1836 |
+
143,
|
| 1837 |
+
727,
|
| 1838 |
+
627
|
| 1839 |
+
],
|
| 1840 |
+
"page_idx": 16
|
| 1841 |
+
},
|
| 1842 |
+
{
|
| 1843 |
+
"type": "text",
|
| 1844 |
+
"text": "A different spurious correlation that we noticed was that proportionally more images showing skin cancer will have a ruler next to the lesion. This is the case because doctors often want to show a reference for size if they diagnosed that the lesion is cancerous. Even though the spurious correlation is less pronounced (in a very rough cursory count, $13 \\%$ of the cancerous and $5 \\%$ of the benign images contain some sort of measure), the networks learnt to recognize and exploit this spurious correlation. This further highlights the need for CDEP, especially in medical settings. ",
|
| 1845 |
+
"bbox": [
|
| 1846 |
+
174,
|
| 1847 |
+
103,
|
| 1848 |
+
826,
|
| 1849 |
+
188
|
| 1850 |
+
],
|
| 1851 |
+
"page_idx": 17
|
| 1852 |
+
},
|
| 1853 |
+
{
|
| 1854 |
+
"type": "image",
|
| 1855 |
+
"img_path": "images/5f08ac868aadbe50cbcbd0424d32f3c70d2aeabb154af0d6b0c7d242740f0490.jpg",
|
| 1856 |
+
"image_caption": [
|
| 1857 |
+
"Figure S9: Both networks learnt that proportionally more images with malignant lesions feature a ruler next to the lesion. To make comparison easier, we visualize the heatmap by multiplying it with the image. Visible regions are important for classification. "
|
| 1858 |
+
],
|
| 1859 |
+
"image_footnote": [],
|
| 1860 |
+
"bbox": [
|
| 1861 |
+
294,
|
| 1862 |
+
200,
|
| 1863 |
+
816,
|
| 1864 |
+
376
|
| 1865 |
+
],
|
| 1866 |
+
"page_idx": 17
|
| 1867 |
+
}
|
| 1868 |
+
]
|
parse/train/Syx7WyBtwB/Syx7WyBtwB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Syx7WyBtwB/Syx7WyBtwB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|