ZHANGYUXUAN-zR commited on
Commit
78f2e2a
·
verified ·
1 Parent(s): fafecc3

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/train/BJe4oxHYPB/BJe4oxHYPB.md +287 -0
  2. parse/train/BJe4oxHYPB/BJe4oxHYPB_content_list.json +1500 -0
  3. parse/train/BJe4oxHYPB/BJe4oxHYPB_middle.json +0 -0
  4. parse/train/BJe4oxHYPB/BJe4oxHYPB_model.json +0 -0
  5. parse/train/BJleph4KvS/BJleph4KvS.md +455 -0
  6. parse/train/BJleph4KvS/BJleph4KvS_content_list.json +0 -0
  7. parse/train/BJleph4KvS/BJleph4KvS_middle.json +0 -0
  8. parse/train/BJleph4KvS/BJleph4KvS_model.json +0 -0
  9. parse/train/H1lJws05K7/H1lJws05K7.md +610 -0
  10. parse/train/H1lJws05K7/H1lJws05K7_content_list.json +0 -0
  11. parse/train/H1lJws05K7/H1lJws05K7_middle.json +0 -0
  12. parse/train/H1lJws05K7/H1lJws05K7_model.json +0 -0
  13. parse/train/H1rRWl-Cb/H1rRWl-Cb.md +510 -0
  14. parse/train/H1rRWl-Cb/H1rRWl-Cb_content_list.json +0 -0
  15. parse/train/H1rRWl-Cb/H1rRWl-Cb_middle.json +0 -0
  16. parse/train/H1rRWl-Cb/H1rRWl-Cb_model.json +0 -0
  17. parse/train/HkIQH7qel/HkIQH7qel.md +249 -0
  18. parse/train/HkIQH7qel/HkIQH7qel_content_list.json +1318 -0
  19. parse/train/HkIQH7qel/HkIQH7qel_middle.json +0 -0
  20. parse/train/HkIQH7qel/HkIQH7qel_model.json +0 -0
  21. parse/train/HkxAS6VFDB/HkxAS6VFDB.md +343 -0
  22. parse/train/HkxAS6VFDB/HkxAS6VFDB_content_list.json +1801 -0
  23. parse/train/HkxAS6VFDB/HkxAS6VFDB_middle.json +0 -0
  24. parse/train/HkxAS6VFDB/HkxAS6VFDB_model.json +0 -0
  25. parse/train/HyfHgI6aW/HyfHgI6aW.md +319 -0
  26. parse/train/HyfHgI6aW/HyfHgI6aW_content_list.json +0 -0
  27. parse/train/HyfHgI6aW/HyfHgI6aW_middle.json +0 -0
  28. parse/train/HyfHgI6aW/HyfHgI6aW_model.json +0 -0
  29. parse/train/JiYq3eqTKY/JiYq3eqTKY.md +0 -0
  30. parse/train/JiYq3eqTKY/JiYq3eqTKY_content_list.json +0 -0
  31. parse/train/JiYq3eqTKY/JiYq3eqTKY_middle.json +0 -0
  32. parse/train/JiYq3eqTKY/JiYq3eqTKY_model.json +0 -0
  33. parse/train/KCd-3Pz8VjM/KCd-3Pz8VjM.md +305 -0
  34. parse/train/KCd-3Pz8VjM/KCd-3Pz8VjM_content_list.json +1365 -0
  35. parse/train/KCd-3Pz8VjM/KCd-3Pz8VjM_middle.json +0 -0
  36. parse/train/KCd-3Pz8VjM/KCd-3Pz8VjM_model.json +0 -0
  37. parse/train/LXMSvPmsm0g/LXMSvPmsm0g.md +407 -0
  38. parse/train/LXMSvPmsm0g/LXMSvPmsm0g_content_list.json +0 -0
  39. parse/train/LXMSvPmsm0g/LXMSvPmsm0g_middle.json +0 -0
  40. parse/train/LXMSvPmsm0g/LXMSvPmsm0g_model.json +0 -0
  41. parse/train/RUQ1zwZR8_/RUQ1zwZR8_.md +200 -0
  42. parse/train/RUQ1zwZR8_/RUQ1zwZR8__content_list.json +1041 -0
  43. parse/train/RUQ1zwZR8_/RUQ1zwZR8__middle.json +0 -0
  44. parse/train/RUQ1zwZR8_/RUQ1zwZR8__model.json +0 -0
  45. parse/train/SJeHwJSYvH/SJeHwJSYvH.md +372 -0
  46. parse/train/SJeHwJSYvH/SJeHwJSYvH_content_list.json +0 -0
  47. parse/train/SJeHwJSYvH/SJeHwJSYvH_middle.json +0 -0
  48. parse/train/SJeHwJSYvH/SJeHwJSYvH_model.json +0 -0
  49. parse/train/SJfWKsC5K7/SJfWKsC5K7.md +341 -0
  50. parse/train/SJfWKsC5K7/SJfWKsC5K7_content_list.json +1737 -0
parse/train/BJe4oxHYPB/BJe4oxHYPB.md ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WINNING THE LOTTERY WITH CONTINUOUS SPARSIFICATION
2
+
3
+ # Anonymous authors
4
+
5
+ Paper under double-blind review
6
+
7
+ # ABSTRACT
8
+
9
+ The Lottery Ticket Hypothesis from Frankle & Carbin (2019) conjectures that, for typically-sized neural networks, it is possible to find small sub-networks which train faster and yield superior performance than their original counterparts. The proposed algorithm to search for “winning tickets”, Iterative Magnitude Pruning, consistently finds sub-networks with $9 0 - 9 5 \%$ less parameters which train faster and better than the overparameterized models they were extracted from, creating potential applications to problems such as transfer learning.
10
+
11
+ In this paper, we propose Continuous Sparsification, a new algorithm to search for winning tickets which continuously removes parameters from a network during training, and learns the sub-network’s structure with gradient-based methods instead of relying on pruning strategies. We show empirically that our method is capable of finding tickets that outperforms the ones learned by Iterative Magnitude Pruning, and at the same time providing faster search, when measured in number of training epochs or wall-clock time.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Although deep neural networks have become ubiquitous in fields such as computer vision and natural language processing, extreme overparameterization is typically required to achieve state-ofthe-art results (Xie et al., 2017; Devlin et al., 2018), causing higher training costs and hindering applications where memory or inference time are constrained. Recent theoretical work suggest that overparameterization plays a key role in both the capacity and generalization of a network (Neyshabur et al., 2018), and in training dynamics (Allen-Zhu et al., 2019). However, it remains unclear whether overparameterization is truly necessary to train networks to state-of-the-art performance.
16
+
17
+ At the same time, empirical approaches have been successful in finding less overparameterized neural networks, either by reducing the network after training (Han et al., 2015; 2016) or through more efficient architectures that can be trained from scratch (Iandola et al., 2016). Recently, the combination of these two approaches lead to new methods which discover efficient architectures through optimization instead of design (Liu et al., 2019; Savarese & Maire, 2019). Nonetheless, parameter efficiency is typically maximized by pruning an already trained network.
18
+
19
+ The fact that pruned networks are hard to train from scratch (Han et al., 2015; 2016) suggests that, while overparameterization is not necessary for a model’s capacity, it might be required for successful network training. Recently, this idea has been put into question by Frankle & Carbin (2019), where heavily pruned networks are trained faster than their original counterparts, often yielding superior performance.
20
+
21
+ A key finding is that the same parameter initialization should be used when re-training the pruned network. A winning ticket, defined by a sub-network and a setting of randomly-initialized parameters, is quickly trainable and has already found applications in, for example, transfer learning (Morcos et al., 2019; Mehta, 2019; Soelen & Sheppard, 2019), making the search for winning tickets a problem of independent interest.
22
+
23
+ Currently, the standard algorithm to find winning tickets is Iterative Magnitude Pruning (IMP) (Frankle & Carbin, 2019; Frankle et al., 2019), which consists of a repeating a 2-stage procedure that alternates between parameter optimization and pruning. As a result, IMP relies on a sensible choice for pruning strategy, and is time-consuming: finding a winning ticket with $1 \%$ of the original parameters in a 6-layer CNN requires over 20 rounds of training followed by pruning, totalling over 1000 epochs (Frankle & Carbin, 2019). Choosing a parameter’s magnitude as pruning criterion has also shown to be sub-optimal in some settings (Zhou et al., 2019), leading to the question of whether better winning tickets can be found by different pruning methods. Moreover, at each iteration, IMP resets the parameters of the network back to initialization, hence considerable time is spent on re-training similar networks with different sparsities.
24
+
25
+ With the goal of speeding up the search for winning tickets in deep neural networks, we design a novel method, Continuous Sparsification, which continuously removes weights from a network during training, instead of following a strategy to prune parameters at discrete time intervals. Unlike IMP, our method approaches the search for sparse networks as a $\ell _ { 0 }$ -regularized optimization problem (Louizos et al., 2017), resulting in a method that can be fully described in the optimization framework. To approximate $\ell _ { 0 }$ -regularization, we propose a smooth re-parameterization, allowing for the subnetwork’s structure to be directly learned with gradient-based methods. Unlike previous works, our re-parameterization is deterministic, proving more convenient for the tasks of pruning and ticket search, while also yielding faster training times.
26
+
27
+ Experimentally, our method offers superior performance when pruning VGG to extreme regimes, and is capable of finding winning tickets in Residual Networks trained on CIFAR-10 at a fraction of time taken by Iterative Magnitude Pruning. In particular, Continuous Sparsification successfully finds tickets in under 5 iterations, compared to 20 iterations required by Iterative Magnitude Pruning in the same setting. To further speed up the search for sub-networks, our method abdicates parameter rewinding, a key ingredient of Iterative Magnitude Pruning. By showing superior results without rewinding, our experiments offer insights on how ticket search should be performed.
28
+
29
+ # 2 RELATED WORK
30
+
31
+ # 2.1 LOTTERY TICKET HYPOTHESIS
32
+
33
+ The Lottery Ticket Hypothesis (Frankle & Carbin, 2019) states that for a network $f ( x ; w )$ , $w \in \mathbb { R } ^ { d }$ , and randomly-initialized parameters $w _ { 0 } \sim \mathcal { D }$ , there exists a sparse sub-network, defined by a configuration $m \in \{ 0 , 1 \} ^ { d }$ , $\| m \| _ { 0 } \ll d$ , that, when trained from scratch, achieves higher performance than $f ( x ; w )$ while requiring fewer training iterations. The authors support this conjecture experimentally, showing that such sub-networks indeed exist: in particular, they can be discovered by repeatedly training, pruning, and re-initializing the network, through a procedure named Iterative Magnitude Pruning (IMP; Algorithm 1) (Frankle et al., 2019). More specifically, IMP alternates between: (1) training the weights $w$ of a network, (2) removing a fixed fraction of the weights with the smallest magnitude (pruning), and (3) rewinding: setting the remaining weights back to their original initialization $w _ { 0 }$ .
34
+
35
+ The sub-networks found by IMP, which indeed train faster and outperform their original, dense networks, are called winning tickets, and can generalize across datasets (Mehta, 2019; Soelen & Sheppard, 2019) and training methods (Morcos et al., 2019). In this sense, IMP can be a promising tool in applications that involve knowledge transfer, such as transfer or meta learning.
36
+
37
+ Zhou et al. (2019) perform extensive experiments to re-evaluate and better understand the Lottery Ticket Hypothesis. Relevant to this work is the fact that the authors propose a method to learn the binary mask $m$ in an end-to-end manner through SGD, instead of relying on magnitude-based pruning. The authors show that learning only the binary mask and not the weights is sufficient to achieve competitive performance, confirming that the learned masks are highly dependent on the initialized values $w _ { 0 }$ , and are also capable of encoding substantial information about a problem’s solution.
38
+
39
+ # 2.2 SPARSE NETWORKS
40
+
41
+ The core aspect of searching for a winning ticket is finding a sparse sub-network that attains high performance relative to its dense counterpart. One way to achieve this is through pruning methods (LeCun et al., 1990), which follow a strategy to remove weights from a trained network while minimizing negative impacts on its performance. In Han et al. (2015), a network is iteratively trained and pruned using parameter magnitudes as criterion: this iterative, two-stage algorithm is shown to outperform “one-shot pruning”: training and pruning the network only once.
42
+
43
+ Other methods attempt to approximate $\ell _ { 0 }$ regularization on the weights of a network, yielding onestage procedures that can be fully described in the optimization framework. In order to find a sparse
44
+
45
+ # Algorithm 1 Iterative Magnitude Pruning (Frankle et al., 2019)
46
+
47
+ 1: Initialize $w w _ { 0 } \sim \mathcal { D }$ and $m \gets \vec { 1 } ^ { d }$
48
+ 2: Minimize $L ( f ( x ; m \odot w ) )$ until $w _ { T }$ is produced
49
+ 3: Set $m _ { i } = 0$ for the active weights with smallest magnitudes $\langle \vert w _ { T , i } \vert \le \tau$ and $m _ { i } = 1$ )
50
+ 4: If satisfied, output ticket $f ( x ; m \odot w _ { k } )$
51
+ 5: Otherwise, set $w w _ { k }$ and go back to step 2
52
+
53
+ # Algorithm 2 Iterative Stochastic Sparsification (inspired by Zhou et al. (2019))
54
+
55
+ 1: Initialize $w w _ { 0 } \sim \mathcal { D }$ , $s { \vec { s } } _ { 0 }$
56
+ 2: Minimize $\mathbb { E } _ { m \sim \mathrm { B e r } ( \sigma ( s ) ) } \left[ L ( f ( x ; m \odot w ) ) \right] + \lambda \left\| \sigma ( s ) \right\| _ { 1 }$ until $w _ { T }$ and $s _ { T }$ are produced
57
+ 3: If satisfied, output ticket $f ( x ; m \odot w _ { k } )$ , $m \sim \operatorname { B e r } ( \sigma ( s _ { T } ) )$
58
+ 4: Otherwise, set $w w _ { k }$ , $s _ { i } \gets - \infty$ for $s _ { i , T } < s _ { i , 0 }$ , and go back to step 2
59
+
60
+ setting $m \in \{ 0 , 1 \} ^ { d }$ of a network $f ( x ; m \odot w )$ , Srinivas et al. (2016) and Louizos et al. (2017) use a stochastic re-parameterization $m \sim \mathrm { B e r n o u l l i } ( g ( s ) )$ with $s \in \mathbb { R } ^ { d }$ and $g : \mathbb { R } [ 0 , 1 ]$ applied element-wise. First-order methods, coupled with gradient estimators, are then used to train both $w$ and $s$ to minimize the expected loss. This approach performs continuous parameter removal during training in an automatic fashion: any component $s _ { i }$ of $s$ that assumes a value during training where $g ( s _ { i } ) \bar { = } 0$ effectively removes $w _ { i }$ from the network. Moreover, approximating $\ell _ { 0 }$ regularization has the advantage of not requiring a pruning strategy, which might be arbitrarily complex.
61
+
62
+ # 3 METHOD
63
+
64
+ Designing a method to quickly find winning tickets requires an efficient way to sparsify networks: ideally, sparsification should be done as early as possible in training, and the number of removed parameters should be maximized without harming the model’s performance. In other words, sparsification must be continuously maximized following a trade-off with the performance of the network. This goal is not met by Iterative Magnitude Pruning: sparsification is done at discrete time steps, only after fully training the network, and optimal pruning rates likely depend on the model’s performance and current sparsity: factors which are typically not accounted for – note that these are inherent characteristics of magnitude-based pruning.
65
+
66
+ In light of this, we turn to $\ell _ { 0 }$ -regularization methods for learning sparse networks, which consist of optimizing a clear trade-off between sparsity and performance. As we will see, performing sparsification continuously is not only straightforward, but done automatically by the optimizer.
67
+
68
+ # 3.1 CONTINUOUS SPARSIFICATION BY LEARNING DETERMINISTIC MASKS
69
+
70
+ We first frame the search for sparse networks as a loss minimization problem with $\ell _ { 0 }$ regularization (Louizos et al., 2017; Srinivas et al., 2016):
71
+
72
+ $$
73
+ \operatorname* { m i n } _ { w \in \mathbb { R } ^ { d } } L ( f ( x ; w ) ) + \lambda \cdot \| w \| _ { 0 }
74
+ $$
75
+
76
+ where $\lambda \geq 0$ controls the sparsity of the solution, and, with a slight abuse of notation, $L ( f ( x ; w ) )$ denotes the loss incurred by the network $f ( x ; w )$ (e.g., the cross-entropy loss over a training set). As $\ell _ { 0 }$ regularization is typically intractable, we re-state the above minimization problem as:
77
+
78
+ $$
79
+ \operatorname* { m i n } _ { w \in \mathbb { R } ^ { d } } L ( f ( x ; m \odot w ) ) + \lambda \cdot \| m \| _ { 1 }
80
+ $$
81
+
82
+ which uses the fact that, for $m \in \{ 0 , 1 \} ^ { d }$ , $\left\| m \right\| _ { 0 } = \left\| m \right\| _ { 1 }$ . The $\ell _ { 1 }$ term can be minimized with subgradient descent, however the $m \in \{ 0 , 1 \} ^ { d }$ constraint makes the above problem combinatorial and poorly suited for local search methods like SGD.
83
+
84
+ # Algorithm 3 Continuous Sparsification
85
+
86
+ 1: Initialize $w w _ { 0 } \sim \mathcal { D }$ , $s s _ { 0 }$ , $\beta \beta _ { 0 }$
87
+ 2: Minimize $L ( f ( x ; \sigma ( \boldsymbol { \beta } \cdot \boldsymbol { s } ) \odot w ) ) + \lambda \| \sigma ( \boldsymbol { \beta } \boldsymbol { s } ) \| _ { 1 }$ while increasing $\beta$ , producing $w _ { T } , s _ { T }$ , and $\beta _ { T }$
88
+ 3: If satisfied, output ticket $f ( x ; b ( s _ { T } ) \odot w _ { k } )$
89
+ 4: Otherwise, set $s \gets \operatorname* { m i n } ( \beta _ { T } \cdot s _ { T } , s _ { 0 } )$ , $\beta \gets \beta _ { 0 }$ , (optionally, $w w _ { 0 }$ ), and go back to step 2
90
+
91
+ ![](images/373e0fadcc41f3b2199e6a7d6c67db0a7b3584468985a49668a5e449fd898738.jpg)
92
+ Figure 1: Illustration of our proposed re-parameterization $m = \sigma ( \beta s )$ , where $\begin{array} { r } { \sigma ( z ) = \frac { 1 } { 1 + e ^ { - z } } } \end{array}$ is the sigmoid function and $\beta$ acts as a temperature. As $\beta$ increases, $\sigma ( \beta z )$ approaches $b ( z )$ , which can can be used to frame a $\ell _ { 0 }$ -regularized problem (Equation 4). Note that the gradients of $\overset { \cdot } { \sigma } ( \beta s )$ vanish as $\beta$ increases, suggesting that $\beta$ should be annealed slowly during training.
93
+
94
+ We can avoid the binary constraint $m \in \{ 0 , 1 \} ^ { d }$ by re-parameterizing $m$ as a function of a newlyintroduced variable $s \in \mathbf { \overline { { \mathbb { R } } } } ^ { d }$ . For example, Louizos et al. (2017) propose a stochastic mapping $s \mapsto m$ and use gradient methods to minimize the expected total loss, while using estimators for the gradients of $s$ (since $m$ is still binary). Having a stochastic mask (or, equivalently, a distribution over subnetworks) poses an immediate challenge for the task of finding tickets, as it is not clear which ticket should be chosen once a distribution over $m$ is learned. Moreover, relying on gradient estimators often causes gradients to have high variance, requirwe consider a deterministic parameterization $\bar { m } = \bar { b ( s ) }$ training, where $s \in \mathbb { R } _ { \neq 0 } ^ { d }$ optiand $b : \bar { \mathbb { R } } _ { \neq 0 } \{ 0 , 1 \}$ ly,is applied element-wise:
95
+
96
+ $$
97
+ b ( z ) = { \left\{ \begin{array} { l l } { 1 , { \mathrm { i f ~ } } z > 0 } \\ { 0 , { \mathrm { i f ~ } } z < 0 } \end{array} \right. }
98
+ $$
99
+
100
+ Applying this re-parameterization to Equation 2 yields:
101
+
102
+ $$
103
+ \operatorname* { m i n } _ { w \in \mathbb { R } ^ { d } \atop s \in \mathbb { R } _ { \neq 0 } ^ { d } } L ( f ( x ; b ( s ) \odot w ) ) + \lambda \cdot \| b ( s ) \| _ { 1 }
104
+ $$
105
+
106
+ Clearly, the above problem is again intractable, as it is still equivalent to the original $\ell _ { 0 }$ problem in Equation 1. More specifically, the step function $b ( z )$ is non-convex, and having zero gradients make gradient-based optimization ineffective. Instead, we consider the following smooth relaxation of $b ( \cdot )$ :
107
+
108
+ $$
109
+ m : = \sigma ( \beta \cdot s )
110
+ $$
111
+
112
+ where $\beta \in \mathbb { R } _ { > 0 }$ , and $\sigma$ is the sigmoid function $\begin{array} { r } { \sigma ( z ) = \frac { 1 } { 1 + e ^ { - z } } } \end{array}$ , applied element-wise. By controlling $\beta$ , which acts as a temperature parameter, we effectively interpolate between $\sigma ( s )$ , a smooth function well-suited for SGD, and $\begin{array} { r } { \operatorname* { l i m } _ { \beta \to \infty } \sigma ( \beta \cdot s ) = b ( z ) } \end{array}$ , our original goal, which brings computational hardness to the problem. Figure 1 illustrates this behavior. Note that, if $L ( f ( x ; w ) )$ is continuous in $w$ , then:
113
+
114
+ $$
115
+ \operatorname* { m i n } _ { w \in \mathbb { R } _ { \neq 0 } ^ { d } } \operatorname* { l i m } _ { \beta \to \infty } L ( f ( x ; \sigma ( \beta s ) \odot w ) ) + \lambda \cdot \| \sigma ( \beta s ) \| _ { 1 } = \operatorname* { m i n } _ { w \in \mathbb { R } _ { \neq 0 } ^ { d } } L ( f ( x ; b ( s ) \odot w ) ) + \lambda \cdot \| b ( s ) \| _ { 1 }
116
+ $$
117
+
118
+ Although gradient methods will become ineffective as $\beta \to \infty$ due to vanishing gradients of $s$ , we can increase $\beta$ while optimizing $s$ and $w$ with gradient descent. That is, our loss at each iteration will be a function of $\beta$ as follows:
119
+
120
+ $$
121
+ L _ { \beta } ( w , s ) = L ( f ( x ; \sigma ( \beta s ) \odot w ) ) + \lambda \cdot \| \sigma ( \beta \cdot s ) \| _ { 1 }
122
+ $$
123
+
124
+ How does the soft mask $m = \sigma ( \beta \cdot s )$ behave as we minimize ${ \cal L } _ { \beta } ( w , s )$ while increasing $\beta ?$ As $\beta \to \infty$ , every negative component of $s$ will be mapped to 0, effectively removing its correspondent weight parameter from the network. While analytically the weights will never truly be zeroed-out, limited numerical precision has the fortunate side-effect of causing actual sparsification to the network during training, as long as $\beta$ is increased to a large enough value.
125
+
126
+ In a nutshell, we learn sparse networks by minimizing $\boldsymbol { L _ { \beta } } ( \boldsymbol { w } , s )$ for $T$ parameter updates with gradient descent while jointly annealing $\beta$ : producing $w _ { T }$ , $s _ { T }$ and $\beta _ { T }$ , which is ideally large enough such that, numerically 1, $\sigma ( \vec { \beta _ { T } } \cdot s _ { T } ) = \bar { b } ( s _ { T } )$ . In case $m$ is truly required to be binary (as in the task of finding tickets), the dependence on numerical imprecision can be avoided by directly outputting $m = b ( s _ { T } )$ at the end of training.
127
+
128
+ Finally, note that minimizing $L _ { \beta }$ while increasing $\beta$ is not generally equivalent to minimizing the original $\ell _ { 0 }$ -regularized problem. Informally, the former aims to solve $\begin{array} { r } { \operatorname* { l i m } _ { \beta \to \infty } \operatorname* { m i n } _ { w , s } L _ { \beta } ( w , s ) } \end{array}$ , while the $\ell _ { 0 }$ problem is $\mathrm { \bar { m i n } } _ { w , s } \operatorname* { l i m } _ { \substack { \beta \to \infty } } L _ { \beta } \mathrm { \bar { ( } } w , s )$ .
129
+
130
+ # 3.2 TICKET SEARCH THROUGH CONTINUOUS SPARSIFICATION
131
+
132
+ The method presented above offers a direct alternative to magnitude-based pruning when performing ticket search, but a few considerations must follow. Most importantly, when searching for winning tickets, there is a strict constraint that the learned mask $m$ be binary: otherwise, one can also learn the magnitude of the weights, defeating the purpose of finding sub-networks that can be trained from scratch. To guarantee that the output mask satisfies this constraint regardless of numerical precision, we always output $b ( s _ { T } )$ instead of $\sigma ( \beta _ { T } \cdot s _ { T } )$ .
133
+
134
+ Additionally, we also incorporate two techniques from successful methods for learning sparse networks and searching for winning tickets. First, motivated by Han et al. (2015), where it is shown that iteratively pruning a network yields improved sparsity compared to pruning it only once, we enable “kept” weights – those whose corresponding component of $s$ is positive after many iterations – to be removed from the network at a later stage. More specifically, when $\beta$ becomes large after $T$ gradient descent updates, the gradients of $s$ vanish and weights will no longer be removed from the network. To avoid this, we set $s \gets \operatorname* { m i n } ( \beta _ { T } \cdot s _ { T } , s _ { 0 } )$ , effectively resetting the soft mask parameters for the remaining weights while at the same time not interfering with weights that have been removed. This is followed by a reset on the temperature, $\beta \beta _ { 0 }$ , to allow training of $s$ once again.
135
+
136
+ Second, we perform parameter rewinding, following Frankle $\&$ Carbin (2019), which is a key component of Iterative Magnitude Pruning. More specifically, after $T$ gradient descent steps, we reset the weight values back to an earlier stage $w w _ { k }$ , where $k \ll T$ . Even though experimental results in Frankle & Carbin (2019) suggest that rewinding is necessary for successful ticket search, we leave rewinding as an optinal component of our algorithm: as we will see empirically, it turns out that ticket search is possible without rewinding weights. Our proposed algorithm to find winning tickets is presented as Algorithm 3, and referred simply as “Continuous Sparsification”.
137
+
138
+ # 4 EXPERIMENTS
139
+
140
+ Our experiments aim at comparing different methods on the task of finding winning tickets in neural networks, hence our evaluation focuses on the generalization performance of each ticket (sub-network) when trained from scratch (or from an iterate in early-training). Additionally, we measure the cost of the search procedure: the number of training epochs to find tickets with varying performance and sparsity.
141
+
142
+ Besides comparing our proposed method to Iterative Magnitude Pruning (Algorithm 1), we also design a baseline method, Iterative Stochastic Sparsification (ISS, Algorithm 2), motivated by the procedure in Zhou et al. (2019) to find a binary mask $m$ with gradient descent in an end-to-end fashion. More specifically, ISS uses a stochastic re-parameterization $m \sim$ Bernoulli $( \sigma ( s ) )$ with $s \in \mathbb { R } ^ { d }$ , and trains $w$ and $s$ jointly with gradient descent and the straight-through estimator (Bengio et al., 2013). When ran for multiple iterations, all components of the mask parameters $s$ which have decreased in value from initialization are set to $- \infty$ , such that the corresponding weight is permanently removed from the network. While this might look arbitrary, we observed empirically that ISS was unable to remove weights quickly without this step unless $\lambda$ was chosen to be large – in which case the model’s performance decrease in exchange for sparsity. The hyperparameters used in this section were chosen based on analysis presented in Appendix (...), where we study how the pruning rate affects IMP, and how $\lambda , s _ { 0 }$ and $\beta _ { T }$ interact in CS.
143
+
144
+ # 4.1 CONVOLUTIONAL NEURAL NETWORKS
145
+
146
+ We train a neural network with 6 convolutional layers on the CIFAR-10 dataset (Krizhevsky, 2009), following Frankle & Carbin (2019). The network consists of 3 blocks of 2 resolution-preserving convolutional layers followed by $2 \times 2$ max-pooling, where convolutions in each block have 64, 128 and 256 channels, a $3 \times 3$ kernel, and are immediately followed by ReLU activations. The blocks are followed by fully-connected layers with 256, 256 and 10 neurons, with ReLUs in between. The network is trained with Adam (Kingma & Ba, 2015) with a learning rate of 0.0003 and a batch size of 60.
147
+
148
+ Learning a Supermask: As a first baseline, we consider the task of learning a “supermask” (Zhou et al., 2019): a binary mask $m$ that, when applied to a network with randomly initialized weights, yields performance competitive to that of training its weights. This task is equivalent to pruning a randomly-initialized network, or learning an architecture that performs well prior to training with a fixed initialization. We compare ISS and CS , where each method is run for a single iteration composed of 100 epochs. When ran for a single iteration, ISS is equivalent to the algorithm proposed in Zhou et al. (2019) to learn a supermask, referred here as simply Stochastic Sparsification. We control the sparsity of the learned masks by varying $s _ { 0 }$ between $- 5$ and 5 for Stochastic Sparsification (which showed to be more effective than varying $\lambda$ ), while for Continuous Sparsification we vary $\lambda$ between $1 0 ^ { - 1 1 }$ and $1 0 ^ { - 7 }$ (which results in stable and consistent training, unlike varying $s _ { 0 }$ ). SS uses SGD with a learning rate of 100 to learn its mask parameters, while CS uses Adam with $\mathrm { \ddot { 3 } } \times 1 0 ^ { - 4 }$ .
149
+
150
+ Results are presented in Figure 2: CS outperforms SS in terms of both training speed and the quality of the learned mask. In particular, CS finds masks with over $7 5 \%$ sparsity that yield over $7 5 \%$ test accuracy, while the performance of masks found by SS decrease when sparsity is over $5 0 \%$ . Moreover, CS makes faster progress in training, showing that optimizing a deterministic mask is indeed faster than learning a distribution over masks through stochastic re-parameterizations.
151
+
152
+ Finding Winning Tickets: We run IMP and ISS for a total of 30 iterations, each consisting of 40 epochs. Parameters are trained with Adam (Kingma & Ba, 2015) with a learning rate of $3 \times 1 0 ^ { - 4 }$ , following Frankle & Carbin (2019). For IMP, we use pruning rates of $1 5 \% / 2 0 \%$ for convolutional/dense layers. We initialize the Bernoulli parameters of ISS with $s _ { 0 } = \vec { 1 }$ , and train them with SGD and a learning rate of 20, along with a $\ell _ { 1 }$ regularization of $\lambda = 1 0 ^ { - 8 }$ . For CS , we anneal the temperature from $\beta _ { 0 } = 1$ to $\beta _ { 0 } = 2 5 0$ following an exponential schedule $( \beta _ { t } = 2 5 0 ^ { \frac { t } { T } } )$ ), training both the weights and the mask with Adam and a learning rate of $3 \times 1 0 ^ { - 4 }$ .
153
+
154
+ To test whether our method is capable of finding winning tickets in a limited amount of time, we limit each run of CS to 4 iterations only, in contrast with IMP and ISS which are run for 30. We perform 6 runs of CS , each with a different value for the mask initialization $s _ { 0 } \colon - 0 . 0 5 , - 0 . 0 3 , - 0 . \bar { 0 2 } , - 0 . 0 1 ,$ $- 0 . 0 0 5 , 0$ , keeping $\lambda = 1 0 ^ { - 1 0 }$ , such that sparsification is not enforced during training, but heavily biased at initialization. In order to evaluate how consistent our method is, we repeat each run with 3 different random seeds so that error bars can be computed.
155
+
156
+ ![](images/38737692412099085fa17d05de3bd18d9b6b97f461d31e86023b5d386cf0a1f0.jpg)
157
+ Figure 2: Learning a binary mask with weights frozen at initialization with Stochastic Sparsification (SS, Algorithm 2 with one iteration) and Continuous Sparsification (CS), on a 6-layer CNN on CIFAR10. Left: Training curves with hyperparameters for which masks learned by SS and CS were both approximately $5 0 \%$ sparse. CS learns the mask significantly faster while attaining similar early-stop performance. Right: Sparsity and test accuracy of masks learned with different settings for SS and CS: our method learns sparser masks while maintaining test performance, while SS is unable to successfully learn masks with over $5 0 \%$ sparsity.
158
+
159
+ ![](images/9bec91a4d6d0bcd418f1f6cf5fbd413ee833db063e1e6916fdac26b186cbeaaa.jpg)
160
+ Figure 3: Test accuracy of tickets found by different methods on CIFAR-10. Error bars depict variance across 3 runs. Left: Performance of tickets found on a 6-layer CNN, when trained from scratch. Right: Performance of tickets found on a ResNet 20, when rewinded to the second training epoch. In both experiments, tickets found by CS outperform ones found by IMP. In most cases, CS successfully finds winning tickets in 2 iterations (purple curves).
161
+
162
+ Figure 3 (left) presents the quality of tickets found by each method, measured by their test accuracy when trained from scratch. To illustrate the quality of the tickets that can be found by Continuous Sparsification, we plot the Pareto curve (green) of the tickets founds with the 6 different values for $s _ { 0 }$ . With $s _ { 0 } = - 0 . 0 3$ , in only 2 iterations CS finds a ticket with over $7 7 \%$ sparsity (first marker of purple curve) which outperforms every ticket found by IMP in its 30 iterations. The Pareto curve of CS strictly dominates IMP for tickets with more less than $9 7 \%$ sparsity, where ticket performance is superior or similar to the original dense network.
163
+
164
+ In terms of computational time, the total cost to run CS with the 6 different values for $s _ { 0 }$ is lower than performing a single run of IMP for 30 iterations, even though CS takes $1 5 \%$ extra time per epoch due to the mask parameters. This shows the potential of our model even in the setting where a specific sparsity is desired for the tickets. When run in parallel, CS takes less wall-clock time to find all tickets in the Pareto curve than to run IMP for 5 iterations.
165
+
166
+ 4.2 FINDING WINNING TICKETS IN RESIDUAL NETWORKS WITHOUT REWINDING
167
+
168
+ Searching for tickets in realistic models is not as straightforward as finding tickets in a small CNN, and might require new strategies. Frankle et al. (2019) show that IMP fails at finding winning tickets in ResNets (He et al., 2016) unless the learning rate is smaller than the recommended value, leading to worse overall performance and defeating the purpose of ticket search. However, the authors propose a slight modification to IMP that enables search for winning tickets to be successful on complex networks: instead of training from scratch, tickets are initialized with weights from early training.
169
+
170
+ With this in mind, we evaluate how Continuous Sparsification performs in the time-consuming task of finding winning tickets in a ResNet- $2 0 ^ { 2 }$ (He et al., 2016) trained on CIFAR-10: a setting where IMP might take over 10 iterations (850 epochs) to succeed. We follow the setup in Frankle & Carbin (2019) and Frankle et al. (2019): in each iteration, the network is trained with SGD, a learning rate of 0.1, and a momentum of 0.9 for a total of 85 epochs, using a batch size of 128. The learning rate is decayed by a factor of 10 at epochs 56 and 71, and a weight decay of 0.0001 is applied to the weights (for CS , we do not apply weight decay to the mask parameters $s$ ). The two skip-connections that perform $1 \times 1$ convolutions and the output layer are not removable: for IMP, their parameters are not pruned, while for CS their weights do not have a correspondent mask $m$ nor mask parameters $s$ .
171
+
172
+ When training the returned tickets in order to evaluate their performance, we initialize their weights with the iterates from the end of epoch 2 (780 parameter updates), similarly to Frankle et al. (2019). Unlike when searching for winning tickets in the 6-layer CNN, IMP performs global pruning, removing $2 0 \%$ of the remaining parameters with smallest magnitude, ranked globally (across different layers). IMP runs for a total of 30 iterations, while CS is limited to only 5 iterations for each run. The sparsity of the tickets found by CS is controlled by varying the mask initialization $s _ { 0 } \in$ $\{ - 0 . 3 , - 0 . 2 , - 0 . 1 , - 0 . 0 5 , - 0 . 0 3 , 0 , 0 . 0 3 , 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 \}$ (a total of 11 values). To allow for even faster ticket search, we run CS without parameter rewinding: that is, the weights $w$ are transferred from one iteration to another, removing the need to re-train the network as the method progresses through iterations. For both CS and IMP, each run is repeated with 3 different random seeds.
173
+
174
+ The results presented in Figure 3 (right) show that CS is able to successfully find winning tickets with varying sparsity in under 5 iterations. Once again, the Pareto curve strictly dominates IMP, and variance across runs is smaller than IMP’s. Most notably, CS is capable of quickly sparsifying the network in a single iteration (first marker of each purple curve), and typically finds better tickets than IMP after only 2 rounds (compare blue curve and second marker of each purple curve), regardless of sparsity. When run in parallel, 2 iterations suffice for CS to find tickets that outperform the ones found by IMP.
175
+
176
+ We observed that not performing rewinding caused the performance of tickets with high sparsity to quickly degrade after 2 or more iterations of CS. We speculate that, when rewinding is not performed between iterations, the distance between $w _ { k }$ and the parameter iterates produced by gradient descent $w _ { t }$ increase significantly with the number of iterations. This in turn can result in the learned mask $m _ { T }$ to be highly sub-optimal for weight values $w _ { k }$ $k \ll T$ ) which are used to re-train the ticket. This suggests that in order to avoid re-training the network and hence make the search for winning tickets more efficient, rewinding should not be performed between iterations. In this case, the search must complete quickly, before performance degradation occurs due to “overtraining”, requiring optimal ways to perform sparsification without negatively impacting the model’s performance.
177
+
178
+ # 4.3 PRUNING VGG
179
+
180
+ Our experiments show that Continuous Sparsification is capable of finding tickets quickly and consistently, and we attribute its success to its deterministic re-parameterization of the binary mask. Here, we evaluate our method a pruning technique, to better assess whether our proposed re-parameterization is advantageous only in terms of training time, or also in respect to the quality of the learned masks.
181
+
182
+ For this task, we train a VGG (Simonyan & Zisserman, 2015) on the CIFAR-10 dataset, following the protocol in Frankle & Carbin (2019): the network is trained with SGD and an initial learning rate of 0.1, which is decayed by a factor of 10 at epochs 80 and 120. After 160 training epochs, the network is sparsified and then fine-tuned for 40 epochs with a learning rate of 0.001. We evaluate previously described methods when executed for a single iteration (one-shot pruning): Continuous Sparsification, Magnitude Pruning (IMP with 1 iteration) (Han et al., 2015), and Stochastic Sparsification (ISS with 1 iteration), which is similar to methods in Zhou et al. (2019), Srinivas et al. (2016), and Louizos et al. (2017).
183
+
184
+ At the sparsification step, IMP performs global pruning, ISS fixes the binary mask $m$ to be the maximum likelihood one under $\operatorname { B e r } ( \sigma ( s ) )$ (which performed better than sampling from the distribution), and CS changes the parameterization of the mask from $\sigma ( \beta s )$ to $b ( s )$ (or, equivalently, weights $w _ { i }$ where $s _ { i } < 0$ are removed). We use a momentum of 0.9, a weight decay of 0.0001 (not applied to s), and a batch-size of 64. Following Frankle & Carbin (2019), sparsification is not applied to batch normalization nor the final linear layer.
185
+
186
+ To evaluate each method when finding masks with different sparsity levels, we run IMP with global pruning rates $5 0 \%$ , $7 5 \%$ , $8 0 \%$ , $8 5 \%$ , ${ \bar { 9 } } 0 \%$ , $9 \hat { 5 } \%$ , $9 7 . 5 \%$ , $9 8 \%$ , $9 8 . 5 \%$ , $9 9 \%$ , $9 9 . 5 \%$ , $9 9 . 7 5 \%$ , and ISS and CS with initial mask values $- 0 . 3$ , $- 0 . 2 5$ , $- 0 . 2$ , $- 0 . 1 5$ , $- 0 . 1$ , $- 0 . 0 5$ $- 0 . 0 1$ , $- 0 . 0 0 5$ , $- 0 . 0 0 1$ , 0. Results are shown in Figure 4: both magnitude pruning and stochastic $\ell _ { 0 }$ regularization (Stochastic Sparsifi
187
+
188
+ ![](images/b21e02a334c93b267ef966b4139eeb497f15c3cfc8a4b4250deebf600cd38422.jpg)
189
+ Figure 4: Performance of different methods when performing one-shot pruning on VGG. CS maintains over $9 0 \%$ test accuracy after removing $9 9 . 7 \%$ of the weights, while other methods fail to successfully remove more than $9 8 \%$ of the parameters.
190
+
191
+ cation) fail at removing over $9 8 \%$ of the weights without severely degrading the performance of the model. On the other hand, Continuous Sparsification successfully removes ${ \bar { 9 } } 9 . 7 \%$ of the parameters in the convolutional layers while still yielding over $9 0 \%$ test accuracy. When taken to the extreme, our method is capable of removing $9 9 . 8 5 \%$ of the weights and still yield over $8 3 \%$ accuracy.
192
+
193
+ The dramatic performance difference between stochastic and continuous sparsification shows that our proposed deterministic re-parameterization is key to achieve superior results in both network pruning and ticket search. The fact that it outperforms magnitude pruning, a standard technique in the pruning literature, suggests that further exploration of $\ell _ { 0 }$ -based methods could yield significant advances in pruning techniques.
194
+
195
+ # 5 DISCUSSION
196
+
197
+ With Frankle & Carbin (2019), we now realize that sparse sub-networks can indeed be successfully trained from scratch, putting in question the belief that overparameterization is required for proper optimization of neural networks. Such sub-networks, called winning tickets, can be potentially used to significantly decrease the required resources for training deep networks, as they are shown to transfer between different, but similar, tasks (Mehta, 2019; Soelen & Sheppard, 2019).
198
+
199
+ Currently, the search for winning tickets is a poorly explored problem, where Iterative Magnitude Pruning (Frankle & Carbin, 2019) stands as the only algorithm suited for this task, and it is unclear whether its key ingredients – post-training magnitude pruning and parameter rewinding – are the correct choices for the task. Here, we approach the problem of finding sparse sub-networks as an $\ell _ { 0 }$ -regularized optimization problem, which we approximate through a smooth, parameterized relaxation of the step function. Our proposed algorithm for finding winning tickets, Continuous Sparsification, removes parameters automatically and continuously during training, and can be fully described by the optimization framework. We show empirically that, indeed, post-training pruning might not be a sensible choice for finding winning tickets, raising questions on how the search for tickets differs from standard network compression. With this work, we hope to further motivate the problem of quickly finding tickets in overparameterized networks, as recent work suggests that the task might be highly relevant to transfer learning and mobile applications.
200
+
201
+ # REFERENCES
202
+
203
+ Zeyuan Allen-Zhu, Yuanzhi Li, and Zhao Song. A convergence theory for deep learning via overparameterization. In ICML, 2019.
204
+
205
+ Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation. arXiv e-prints, art. arXiv:1308.3432, 2013.
206
+
207
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv e-prints, art. arXiv:1810.04805, 2018.
208
+
209
+ Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In ICLR, 2019.
210
+
211
+ Jonathan Frankle, Gintare Karolina Dziugaite, Daniel M. Roy, and Michael Carbin. Stabilizing the Lottery Ticket Hypothesis. arXiv e-prints, art. arXiv:1903.01611, 2019.
212
+
213
+ Song Han, Jeff Pool, John Tran, and William J. Dally. Learning both weights and connections for efficient neural networks. NIPS’15, 2015.
214
+
215
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. ICLR, 2016.
216
+
217
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CVPR, 2016.
218
+
219
+ Forrest N. Iandola, Matthew W. Moskewicz, Khalid Ashraf, Song Han, William J. Dally, and Kurt Keutzer. SqueezeNet: AlexNet-level accuracy with $5 0 \mathrm { x }$ fewer parameters and ${ < } 1 \mathbf { M } \mathbf { B }$ model size. arXiv:1602.07360, 2016.
220
+
221
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015.
222
+
223
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
224
+
225
+ Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In NIPS. 1990.
226
+
227
+ Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. ICLR, 2019.
228
+
229
+ Christos Louizos, Max Welling, and Diederik P. Kingma. Learning Sparse Neural Networks through $L _ { 0 }$ Regularization. arXiv e-prints, art. arXiv:1712.01312, 2017.
230
+
231
+ Rahul Mehta. Sparse Transfer Learning via Winning Lottery Tickets. arXiv e-prints, art. arXiv:1905.07785, 2019.
232
+
233
+ Ari S. Morcos, Haonan Yu, Michela Paganini, and Yuand ong Tian. One ticket to win them all: generalizing lottery ticket initializations across datasets and optimizers. arXiv e-prints, art. arXiv:1906.02773, 2019.
234
+
235
+ Behnam Neyshabur, Zhiyuan Li, Srinadh Bhojanapalli, Yann LeCun, and Nathan Srebro. Towards Understanding the Role of Over-Parametrization in Generalization of Neural Networks. arXiv e-prints, art. arXiv:1805.12076, 2018.
236
+
237
+ Pedro Savarese and Michael Maire. Learning implicitly recurrent CNNs through parameter sharing. In ICLR, 2019.
238
+
239
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR, 2015.
240
+
241
+ Ryan Van Soelen and John W. Sheppard. Using winning lottery tickets in transfer learning for convolutional neural networks. In IJCNN, 2019.
242
+
243
+ Suraj Srinivas, Akshayvarun Subramanya, and R. Venkatesh Babu. Training Sparse Neural Networks. arXiv e-prints, art. arXiv:1611.06694, 2016.
244
+
245
+ Saining Xie, Ross B. Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. CVPR, 2017.
246
+
247
+ Hattie Zhou, Janice Lan, Rosanne Liu, and Jason Yosinski. Deconstructing lottery tickets: Zeros, signs, and the supermask. ArXiv, abs/1905.01067, 2019.
248
+
249
+ # APPENDIX
250
+
251
+ # A HYPERPARAMETER ANALYSIS
252
+
253
+ # A.1 CONTINUOUS SPARSIFICATION
254
+
255
+ In this section, we study how the hyperparameters of Continuous Sparsification affect its performance in terms of sparsity and performance of the found tickets. More specifically, we consider the following hyperparameters:
256
+
257
+ • Final temperature $\beta _ { T }$ : the final value for $\beta$ , which controls how smooth the parameterization $m = \sigma ( \bar { \beta } s )$ is.
258
+ • $\ell _ { 1 }$ penalty $\lambda$ : the strength of the $\ell _ { 1 }$ regularization applied to the soft mask $\sigma ( \beta s )$ , which promotes sparsity.
259
+ • Mask initial value $s _ { 0 }$ : the value used to initialize all components of the soft mask $m = \sigma ( \beta s )$ , where smaller values promote sparsity.
260
+
261
+ Our setup is as follows: to analyze how each of the 3 hyperparameters impact the performance of Continuous Sparsification, we train a ResNet 20 on CIFAR-10 (following the same protocol from Section 4.2), varying one hyperparameter while keeping the other two fixed. To capture how hyperparameters interact with each other, we repeat the described experiment with different settings for the fixed hyperparameters.
262
+
263
+ Since different hyperparameter settings naturally yield vastly distinct sparsity and performance for the found tickets, we report relative changes in accuracy and in sparsity.
264
+
265
+ In Figure 5, we vary $\lambda$ between 0 and $1 0 ^ { - 8 }$ for three different $( s _ { 0 } , \beta _ { T } )$ settings: $\stackrel { \prime } { s } _ { 0 } = - 0 . 2 , \beta _ { T } =$ 100), $( s _ { 0 } = 0 . 0 5 , \mathring { \beta _ { t } } = 2 0 0 )$ , and $( s _ { 0 } = - 0 . 3 , \beta _ { T } = 1 0 0 )$ . As we can see, there is little impact on either the performance or the sparsity of the found ticket, except for the case where $s _ { 0 } = 0 . 0 5$ and $\beta _ { T } = 2 0 0$ , for which $\lambda = 1 0 ^ { - 8 }$ yields slightly increased sparsity.
266
+
267
+ ![](images/e56a29401e70aaf2ec3f8cc9a42a882496ee4aa389ac344c91494ade8c1c4d17.jpg)
268
+ Figure 5: Impact on relative test accuracy and sparsity of tickets found in a ResNet 20 trained on CIFAR-10, for different values of $\lambda$ and fixed settings for $\beta _ { T }$ and $s _ { 0 }$ .
269
+
270
+ Next, we consider the fixed settings $( s _ { 0 } = - 0 . 2 , \lambda = 1 0 ^ { - 1 0 } ,$ ), $( s _ { 0 } = 0 . 0 5 , \lambda = 1 0 ^ { - 1 2 } )$ ), $( s _ { 0 } =$ $- 0 . 3 , \lambda = 1 0 ^ { - 8 } ,$ , and proceed to vary the final temperature $\beta _ { T }$ between 50 and 200. Figure 6 shows the results: in all cases, a larger temperature of 200 yielded better accuracy. However, it decreased sparsity compared to smaller temperature values for the settings $( s _ { 0 } = - 0 . 2 , \lambda = 1 0 ^ { - 1 0 }$ ) and $\stackrel { \prime } { s } _ { 0 } = \bar { - } 0 . 3 , \stackrel { . } { \lambda } = 1 \bar { 0 } ^ { - 8 } ,$ ), while at the same time increasing sparsity for $\begin{array} { r } { { ' s _ { 0 } } = 0 . 0 5 , \lambda = 1 0 ^ { - 1 2 } . } \end{array}$ ). While larger temperatures appear beneficial and might suggest that even higher values should be used, note that, the larger $\beta _ { T }$ is, the earlier in training the gradients of $s$ will vanish, at which point training of the mask will stop. Since the performance for temperatures between 100 and 200 does not change significantly, we recommend values around 150 or 200 when either pruning or performing ticket search.
271
+
272
+ ![](images/7f92ae1a277e9c86b70bb810e1a1eed680f5ceb6bfb8b3ebe0e80fc52e996fe9.jpg)
273
+ Figure 6: Impact on relative test accuracy and sparsity of tickets found in a ResNet 20 trained on CIFAR-10, for different values of $\beta _ { T }$ and fixed settings for $\lambda$ and $s _ { 0 }$ .
274
+
275
+ ![](images/f4ad948bda3f8fc2a7596868bdcc729344371972624a4ac99e0c23ab352ca461.jpg)
276
+ Figure 7: Impact on relative test accuracy and sparsity of tickets found in a ResNet 20 trained on CIFAR-10, for different values of $s _ { 0 }$ and fixed settings for $\beta _ { T }$ and $\lambda$ .
277
+
278
+ Lastly, we vary the initial mask value $s _ { 0 }$ between $- 0 . 3$ and $+ 0 . 3$ , with hyperpameter settings $( \beta _ { T } \doteq 1 0 0 , \lambda \doteq 1 0 ^ { - 1 0 } )$ , $( \beta _ { T } = 2 0 0 , \lambda = 1 0 ^ { - 1 2 } )$ ), and $\langle \beta _ { T } = 1 0 0 , \lambda = 1 0 ^ { - 8 } \rangle$ ). Results are given in Figure 7: unlike the exploration on $\lambda$ and $\beta _ { T }$ , we can see that $s _ { 0 }$ has a strong and consistent effect on the sparsity of the found tickets. For this reason, we suggest proper tuning of $s _ { 0 }$ when the goal is to achieve a specific sparsity value. Since the percentage of remaining weights is monotonically increasing with $s _ { 0 }$ , we can perform binary search over values for $s _ { 0 }$ to achieve any desired sparsity level. In terms of performance, lower values for $s _ { 0 }$ naturally lead to performance degradation, since sparsity quickly increases as $s _ { 0 }$ becomes more negative.
279
+
280
+ ![](images/28ffb9049096008e4c9629d6536fd2b0184a9f1c90eb72d731f4af1bb6bdb1df.jpg)
281
+ Figure 8: Performance of tickets found by Iterative Magnitude Pruning in a ResNet 20 trained on CIFAR, for different pruning rates.
282
+
283
+ # A.2 ITERATIVE MAGNITUDE PRUNING
284
+
285
+ Here, we assess whether the running time of Iterative Magnitude Pruning can be improved by increasing the amount of parameters pruned at each iteration. The goal of this experiment is to evaluate if Continuous Sparsification offers faster ticket search only because it prunes the network more aggressively than IMP, or because it is truly more effective in how parameters are chosen to be removed.
286
+
287
+ Following the same setup as the previous section, we train a ResNet 20 on CIFAR-10. We run IMP for 30 iterations, performing global pruning with different pruning rates at the end of each iteration. Figure 8 shows that the performance of tickets found by IMP decays when the pruning rate is increased to $4 0 \%$ . In particular, the final performance of found tickets is mostly monotonically decreasing with the number of remaining parameters, suggesting that, in order to find tickets which outperform the original network, IMP is not compatible with more aggressive pruning rates.
parse/train/BJe4oxHYPB/BJe4oxHYPB_content_list.json ADDED
@@ -0,0 +1,1500 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "WINNING THE LOTTERY WITH CONTINUOUS SPARSIFICATION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 789,
10
+ 118
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors ",
17
+ "text_level": 1,
18
+ "bbox": [
19
+ 184,
20
+ 143,
21
+ 326,
22
+ 156
23
+ ],
24
+ "page_idx": 0
25
+ },
26
+ {
27
+ "type": "text",
28
+ "text": "Paper under double-blind review ",
29
+ "bbox": [
30
+ 184,
31
+ 157,
32
+ 398,
33
+ 170
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "ABSTRACT ",
40
+ "text_level": 1,
41
+ "bbox": [
42
+ 454,
43
+ 207,
44
+ 544,
45
+ 222
46
+ ],
47
+ "page_idx": 0
48
+ },
49
+ {
50
+ "type": "text",
51
+ "text": "The Lottery Ticket Hypothesis from Frankle & Carbin (2019) conjectures that, for typically-sized neural networks, it is possible to find small sub-networks which train faster and yield superior performance than their original counterparts. The proposed algorithm to search for “winning tickets”, Iterative Magnitude Pruning, consistently finds sub-networks with $9 0 - 9 5 \\%$ less parameters which train faster and better than the overparameterized models they were extracted from, creating potential applications to problems such as transfer learning. ",
52
+ "bbox": [
53
+ 233,
54
+ 238,
55
+ 766,
56
+ 335
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "In this paper, we propose Continuous Sparsification, a new algorithm to search for winning tickets which continuously removes parameters from a network during training, and learns the sub-network’s structure with gradient-based methods instead of relying on pruning strategies. We show empirically that our method is capable of finding tickets that outperforms the ones learned by Iterative Magnitude Pruning, and at the same time providing faster search, when measured in number of training epochs or wall-clock time. ",
63
+ "bbox": [
64
+ 233,
65
+ 337,
66
+ 764,
67
+ 434
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "1 INTRODUCTION ",
74
+ "text_level": 1,
75
+ "bbox": [
76
+ 176,
77
+ 460,
78
+ 336,
79
+ 477
80
+ ],
81
+ "page_idx": 0
82
+ },
83
+ {
84
+ "type": "text",
85
+ "text": "Although deep neural networks have become ubiquitous in fields such as computer vision and natural language processing, extreme overparameterization is typically required to achieve state-ofthe-art results (Xie et al., 2017; Devlin et al., 2018), causing higher training costs and hindering applications where memory or inference time are constrained. Recent theoretical work suggest that overparameterization plays a key role in both the capacity and generalization of a network (Neyshabur et al., 2018), and in training dynamics (Allen-Zhu et al., 2019). However, it remains unclear whether overparameterization is truly necessary to train networks to state-of-the-art performance. ",
86
+ "bbox": [
87
+ 174,
88
+ 492,
89
+ 825,
90
+ 589
91
+ ],
92
+ "page_idx": 0
93
+ },
94
+ {
95
+ "type": "text",
96
+ "text": "At the same time, empirical approaches have been successful in finding less overparameterized neural networks, either by reducing the network after training (Han et al., 2015; 2016) or through more efficient architectures that can be trained from scratch (Iandola et al., 2016). Recently, the combination of these two approaches lead to new methods which discover efficient architectures through optimization instead of design (Liu et al., 2019; Savarese & Maire, 2019). Nonetheless, parameter efficiency is typically maximized by pruning an already trained network. ",
97
+ "bbox": [
98
+ 174,
99
+ 595,
100
+ 825,
101
+ 680
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "The fact that pruned networks are hard to train from scratch (Han et al., 2015; 2016) suggests that, while overparameterization is not necessary for a model’s capacity, it might be required for successful network training. Recently, this idea has been put into question by Frankle & Carbin (2019), where heavily pruned networks are trained faster than their original counterparts, often yielding superior performance. ",
108
+ "bbox": [
109
+ 174,
110
+ 686,
111
+ 825,
112
+ 756
113
+ ],
114
+ "page_idx": 0
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "A key finding is that the same parameter initialization should be used when re-training the pruned network. A winning ticket, defined by a sub-network and a setting of randomly-initialized parameters, is quickly trainable and has already found applications in, for example, transfer learning (Morcos et al., 2019; Mehta, 2019; Soelen & Sheppard, 2019), making the search for winning tickets a problem of independent interest. ",
119
+ "bbox": [
120
+ 174,
121
+ 763,
122
+ 825,
123
+ 833
124
+ ],
125
+ "page_idx": 0
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Currently, the standard algorithm to find winning tickets is Iterative Magnitude Pruning (IMP) (Frankle & Carbin, 2019; Frankle et al., 2019), which consists of a repeating a 2-stage procedure that alternates between parameter optimization and pruning. As a result, IMP relies on a sensible choice for pruning strategy, and is time-consuming: finding a winning ticket with $1 \\%$ of the original parameters in a 6-layer CNN requires over 20 rounds of training followed by pruning, totalling over 1000 epochs (Frankle & Carbin, 2019). Choosing a parameter’s magnitude as pruning criterion has also shown to be sub-optimal in some settings (Zhou et al., 2019), leading to the question of whether better winning tickets can be found by different pruning methods. Moreover, at each iteration, IMP resets the parameters of the network back to initialization, hence considerable time is spent on re-training similar networks with different sparsities. ",
130
+ "bbox": [
131
+ 174,
132
+ 840,
133
+ 825,
134
+ 924
135
+ ],
136
+ "page_idx": 0
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "",
141
+ "bbox": [
142
+ 174,
143
+ 103,
144
+ 825,
145
+ 159
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "With the goal of speeding up the search for winning tickets in deep neural networks, we design a novel method, Continuous Sparsification, which continuously removes weights from a network during training, instead of following a strategy to prune parameters at discrete time intervals. Unlike IMP, our method approaches the search for sparse networks as a $\\ell _ { 0 }$ -regularized optimization problem (Louizos et al., 2017), resulting in a method that can be fully described in the optimization framework. To approximate $\\ell _ { 0 }$ -regularization, we propose a smooth re-parameterization, allowing for the subnetwork’s structure to be directly learned with gradient-based methods. Unlike previous works, our re-parameterization is deterministic, proving more convenient for the tasks of pruning and ticket search, while also yielding faster training times. ",
152
+ "bbox": [
153
+ 173,
154
+ 166,
155
+ 825,
156
+ 291
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Experimentally, our method offers superior performance when pruning VGG to extreme regimes, and is capable of finding winning tickets in Residual Networks trained on CIFAR-10 at a fraction of time taken by Iterative Magnitude Pruning. In particular, Continuous Sparsification successfully finds tickets in under 5 iterations, compared to 20 iterations required by Iterative Magnitude Pruning in the same setting. To further speed up the search for sub-networks, our method abdicates parameter rewinding, a key ingredient of Iterative Magnitude Pruning. By showing superior results without rewinding, our experiments offer insights on how ticket search should be performed. ",
163
+ "bbox": [
164
+ 174,
165
+ 299,
166
+ 825,
167
+ 396
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "2 RELATED WORK ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 176,
177
+ 419,
178
+ 344,
179
+ 435
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "2.1 LOTTERY TICKET HYPOTHESIS ",
186
+ "text_level": 1,
187
+ "bbox": [
188
+ 176,
189
+ 452,
190
+ 431,
191
+ 467
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "The Lottery Ticket Hypothesis (Frankle & Carbin, 2019) states that for a network $f ( x ; w )$ , $w \\in \\mathbb { R } ^ { d }$ , and randomly-initialized parameters $w _ { 0 } \\sim \\mathcal { D }$ , there exists a sparse sub-network, defined by a configuration $m \\in \\{ 0 , 1 \\} ^ { d }$ , $\\| m \\| _ { 0 } \\ll d$ , that, when trained from scratch, achieves higher performance than $f ( x ; w )$ while requiring fewer training iterations. The authors support this conjecture experimentally, showing that such sub-networks indeed exist: in particular, they can be discovered by repeatedly training, pruning, and re-initializing the network, through a procedure named Iterative Magnitude Pruning (IMP; Algorithm 1) (Frankle et al., 2019). More specifically, IMP alternates between: (1) training the weights $w$ of a network, (2) removing a fixed fraction of the weights with the smallest magnitude (pruning), and (3) rewinding: setting the remaining weights back to their original initialization $w _ { 0 }$ . ",
198
+ "bbox": [
199
+ 174,
200
+ 479,
201
+ 825,
202
+ 604
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "The sub-networks found by IMP, which indeed train faster and outperform their original, dense networks, are called winning tickets, and can generalize across datasets (Mehta, 2019; Soelen & Sheppard, 2019) and training methods (Morcos et al., 2019). In this sense, IMP can be a promising tool in applications that involve knowledge transfer, such as transfer or meta learning. ",
209
+ "bbox": [
210
+ 174,
211
+ 611,
212
+ 825,
213
+ 667
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "Zhou et al. (2019) perform extensive experiments to re-evaluate and better understand the Lottery Ticket Hypothesis. Relevant to this work is the fact that the authors propose a method to learn the binary mask $m$ in an end-to-end manner through SGD, instead of relying on magnitude-based pruning. The authors show that learning only the binary mask and not the weights is sufficient to achieve competitive performance, confirming that the learned masks are highly dependent on the initialized values $w _ { 0 }$ , and are also capable of encoding substantial information about a problem’s solution. ",
220
+ "bbox": [
221
+ 174,
222
+ 674,
223
+ 825,
224
+ 758
225
+ ],
226
+ "page_idx": 1
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "2.2 SPARSE NETWORKS ",
231
+ "text_level": 1,
232
+ "bbox": [
233
+ 176,
234
+ 777,
235
+ 352,
236
+ 791
237
+ ],
238
+ "page_idx": 1
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "The core aspect of searching for a winning ticket is finding a sparse sub-network that attains high performance relative to its dense counterpart. One way to achieve this is through pruning methods (LeCun et al., 1990), which follow a strategy to remove weights from a trained network while minimizing negative impacts on its performance. In Han et al. (2015), a network is iteratively trained and pruned using parameter magnitudes as criterion: this iterative, two-stage algorithm is shown to outperform “one-shot pruning”: training and pruning the network only once. ",
243
+ "bbox": [
244
+ 174,
245
+ 804,
246
+ 823,
247
+ 888
248
+ ],
249
+ "page_idx": 1
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "Other methods attempt to approximate $\\ell _ { 0 }$ regularization on the weights of a network, yielding onestage procedures that can be fully described in the optimization framework. In order to find a sparse ",
254
+ "bbox": [
255
+ 176,
256
+ 895,
257
+ 821,
258
+ 924
259
+ ],
260
+ "page_idx": 1
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "Algorithm 1 Iterative Magnitude Pruning (Frankle et al., 2019) ",
265
+ "text_level": 1,
266
+ "bbox": [
267
+ 173,
268
+ 103,
269
+ 591,
270
+ 118
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "1: Initialize $w w _ { 0 } \\sim \\mathcal { D }$ and $m \\gets \\vec { 1 } ^ { d }$ \n2: Minimize $L ( f ( x ; m \\odot w ) )$ until $w _ { T }$ is produced \n3: Set $m _ { i } = 0$ for the active weights with smallest magnitudes $\\langle \\vert w _ { T , i } \\vert \\le \\tau$ and $m _ { i } = 1$ ) \n4: If satisfied, output ticket $f ( x ; m \\odot w _ { k } )$ \n5: Otherwise, set $w w _ { k }$ and go back to step 2 ",
277
+ "bbox": [
278
+ 179,
279
+ 123,
280
+ 758,
281
+ 196
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "Algorithm 2 Iterative Stochastic Sparsification (inspired by Zhou et al. (2019)) ",
288
+ "text_level": 1,
289
+ "bbox": [
290
+ 174,
291
+ 217,
292
+ 691,
293
+ 232
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "1: Initialize $w w _ { 0 } \\sim \\mathcal { D }$ , $s { \\vec { s } } _ { 0 }$ \n2: Minimize $\\mathbb { E } _ { m \\sim \\mathrm { B e r } ( \\sigma ( s ) ) } \\left[ L ( f ( x ; m \\odot w ) ) \\right] + \\lambda \\left\\| \\sigma ( s ) \\right\\| _ { 1 }$ until $w _ { T }$ and $s _ { T }$ are produced \n3: If satisfied, output ticket $f ( x ; m \\odot w _ { k } )$ , $m \\sim \\operatorname { B e r } ( \\sigma ( s _ { T } ) )$ \n4: Otherwise, set $w w _ { k }$ , $s _ { i } \\gets - \\infty$ for $s _ { i , T } < s _ { i , 0 }$ , and go back to step 2 ",
300
+ "bbox": [
301
+ 181,
302
+ 237,
303
+ 761,
304
+ 296
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "setting $m \\in \\{ 0 , 1 \\} ^ { d }$ of a network $f ( x ; m \\odot w )$ , Srinivas et al. (2016) and Louizos et al. (2017) use a stochastic re-parameterization $m \\sim \\mathrm { B e r n o u l l i } ( g ( s ) )$ with $s \\in \\mathbb { R } ^ { d }$ and $g : \\mathbb { R } [ 0 , 1 ]$ applied element-wise. First-order methods, coupled with gradient estimators, are then used to train both $w$ and $s$ to minimize the expected loss. This approach performs continuous parameter removal during training in an automatic fashion: any component $s _ { i }$ of $s$ that assumes a value during training where $g ( s _ { i } ) \\bar { = } 0$ effectively removes $w _ { i }$ from the network. Moreover, approximating $\\ell _ { 0 }$ regularization has the advantage of not requiring a pruning strategy, which might be arbitrarily complex. ",
311
+ "bbox": [
312
+ 173,
313
+ 325,
314
+ 825,
315
+ 426
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "3 METHOD ",
322
+ "text_level": 1,
323
+ "bbox": [
324
+ 174,
325
+ 445,
326
+ 282,
327
+ 462
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "Designing a method to quickly find winning tickets requires an efficient way to sparsify networks: ideally, sparsification should be done as early as possible in training, and the number of removed parameters should be maximized without harming the model’s performance. In other words, sparsification must be continuously maximized following a trade-off with the performance of the network. This goal is not met by Iterative Magnitude Pruning: sparsification is done at discrete time steps, only after fully training the network, and optimal pruning rates likely depend on the model’s performance and current sparsity: factors which are typically not accounted for – note that these are inherent characteristics of magnitude-based pruning. ",
334
+ "bbox": [
335
+ 174,
336
+ 477,
337
+ 826,
338
+ 589
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "In light of this, we turn to $\\ell _ { 0 }$ -regularization methods for learning sparse networks, which consist of optimizing a clear trade-off between sparsity and performance. As we will see, performing sparsification continuously is not only straightforward, but done automatically by the optimizer. ",
345
+ "bbox": [
346
+ 174,
347
+ 595,
348
+ 825,
349
+ 638
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "3.1 CONTINUOUS SPARSIFICATION BY LEARNING DETERMINISTIC MASKS ",
356
+ "text_level": 1,
357
+ "bbox": [
358
+ 176,
359
+ 655,
360
+ 705,
361
+ 670
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "We first frame the search for sparse networks as a loss minimization problem with $\\ell _ { 0 }$ regularization (Louizos et al., 2017; Srinivas et al., 2016): ",
368
+ "bbox": [
369
+ 173,
370
+ 681,
371
+ 821,
372
+ 710
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "equation",
378
+ "img_path": "images/7a299b1026efe4caafd227f7cb001f603c02e3fb243ce146f13958849d157505.jpg",
379
+ "text": "$$\n\\operatorname* { m i n } _ { w \\in \\mathbb { R } ^ { d } } L ( f ( x ; w ) ) + \\lambda \\cdot \\| w \\| _ { 0 }\n$$",
380
+ "text_format": "latex",
381
+ "bbox": [
382
+ 403,
383
+ 729,
384
+ 596,
385
+ 755
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "where $\\lambda \\geq 0$ controls the sparsity of the solution, and, with a slight abuse of notation, $L ( f ( x ; w ) )$ denotes the loss incurred by the network $f ( x ; w )$ (e.g., the cross-entropy loss over a training set). As $\\ell _ { 0 }$ regularization is typically intractable, we re-state the above minimization problem as: ",
392
+ "bbox": [
393
+ 174,
394
+ 766,
395
+ 825,
396
+ 809
397
+ ],
398
+ "page_idx": 2
399
+ },
400
+ {
401
+ "type": "equation",
402
+ "img_path": "images/658db95338a3f71f039b17a6530186b951ed843776f314d2a572a6bf64ecdcac.jpg",
403
+ "text": "$$\n\\operatorname* { m i n } _ { w \\in \\mathbb { R } ^ { d } } L ( f ( x ; m \\odot w ) ) + \\lambda \\cdot \\| m \\| _ { 1 }\n$$",
404
+ "text_format": "latex",
405
+ "bbox": [
406
+ 372,
407
+ 828,
408
+ 627,
409
+ 867
410
+ ],
411
+ "page_idx": 2
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "which uses the fact that, for $m \\in \\{ 0 , 1 \\} ^ { d }$ , $\\left\\| m \\right\\| _ { 0 } = \\left\\| m \\right\\| _ { 1 }$ . The $\\ell _ { 1 }$ term can be minimized with subgradient descent, however the $m \\in \\{ 0 , 1 \\} ^ { d }$ constraint makes the above problem combinatorial and poorly suited for local search methods like SGD. ",
416
+ "bbox": [
417
+ 176,
418
+ 878,
419
+ 823,
420
+ 924
421
+ ],
422
+ "page_idx": 2
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "Algorithm 3 Continuous Sparsification ",
427
+ "text_level": 1,
428
+ "bbox": [
429
+ 174,
430
+ 103,
431
+ 433,
432
+ 117
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "1: Initialize $w w _ { 0 } \\sim \\mathcal { D }$ , $s s _ { 0 }$ , $\\beta \\beta _ { 0 }$ \n2: Minimize $L ( f ( x ; \\sigma ( \\boldsymbol { \\beta } \\cdot \\boldsymbol { s } ) \\odot w ) ) + \\lambda \\| \\sigma ( \\boldsymbol { \\beta } \\boldsymbol { s } ) \\| _ { 1 }$ while increasing $\\beta$ , producing $w _ { T } , s _ { T }$ , and $\\beta _ { T }$ \n3: If satisfied, output ticket $f ( x ; b ( s _ { T } ) \\odot w _ { k } )$ \n4: Otherwise, set $s \\gets \\operatorname* { m i n } ( \\beta _ { T } \\cdot s _ { T } , s _ { 0 } )$ , $\\beta \\gets \\beta _ { 0 }$ , (optionally, $w w _ { 0 }$ ), and go back to step 2 ",
439
+ "bbox": [
440
+ 179,
441
+ 122,
442
+ 821,
443
+ 181
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "image",
449
+ "img_path": "images/373e0fadcc41f3b2199e6a7d6c67db0a7b3584468985a49668a5e449fd898738.jpg",
450
+ "image_caption": [
451
+ "Figure 1: Illustration of our proposed re-parameterization $m = \\sigma ( \\beta s )$ , where $\\begin{array} { r } { \\sigma ( z ) = \\frac { 1 } { 1 + e ^ { - z } } } \\end{array}$ is the sigmoid function and $\\beta$ acts as a temperature. As $\\beta$ increases, $\\sigma ( \\beta z )$ approaches $b ( z )$ , which can can be used to frame a $\\ell _ { 0 }$ -regularized problem (Equation 4). Note that the gradients of $\\overset { \\cdot } { \\sigma } ( \\beta s )$ vanish as $\\beta$ increases, suggesting that $\\beta$ should be annealed slowly during training. "
452
+ ],
453
+ "image_footnote": [],
454
+ "bbox": [
455
+ 186,
456
+ 199,
457
+ 807,
458
+ 378
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "We can avoid the binary constraint $m \\in \\{ 0 , 1 \\} ^ { d }$ by re-parameterizing $m$ as a function of a newlyintroduced variable $s \\in \\mathbf { \\overline { { \\mathbb { R } } } } ^ { d }$ . For example, Louizos et al. (2017) propose a stochastic mapping $s \\mapsto m$ and use gradient methods to minimize the expected total loss, while using estimators for the gradients of $s$ (since $m$ is still binary). Having a stochastic mask (or, equivalently, a distribution over subnetworks) poses an immediate challenge for the task of finding tickets, as it is not clear which ticket should be chosen once a distribution over $m$ is learned. Moreover, relying on gradient estimators often causes gradients to have high variance, requirwe consider a deterministic parameterization $\\bar { m } = \\bar { b ( s ) }$ training, where $s \\in \\mathbb { R } _ { \\neq 0 } ^ { d }$ optiand $b : \\bar { \\mathbb { R } } _ { \\neq 0 } \\{ 0 , 1 \\}$ ly,is applied element-wise: ",
465
+ "bbox": [
466
+ 173,
467
+ 489,
468
+ 826,
469
+ 617
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "equation",
475
+ "img_path": "images/6133c8a48d268a2bd71f7b13ba44b7ea51b40f101d65736b040d35c0f54b3599.jpg",
476
+ "text": "$$\nb ( z ) = { \\left\\{ \\begin{array} { l l } { 1 , { \\mathrm { i f ~ } } z > 0 } \\\\ { 0 , { \\mathrm { i f ~ } } z < 0 } \\end{array} \\right. }\n$$",
477
+ "text_format": "latex",
478
+ "bbox": [
479
+ 419,
480
+ 619,
481
+ 562,
482
+ 655
483
+ ],
484
+ "page_idx": 3
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "Applying this re-parameterization to Equation 2 yields: ",
489
+ "bbox": [
490
+ 173,
491
+ 661,
492
+ 535,
493
+ 678
494
+ ],
495
+ "page_idx": 3
496
+ },
497
+ {
498
+ "type": "equation",
499
+ "img_path": "images/7c767b5598bcd1f3a926f6ab9e4a3153755a4e3e5519ab2f407da747f926b2e2.jpg",
500
+ "text": "$$\n\\operatorname* { m i n } _ { w \\in \\mathbb { R } ^ { d } \\atop s \\in \\mathbb { R } _ { \\neq 0 } ^ { d } } L ( f ( x ; b ( s ) \\odot w ) ) + \\lambda \\cdot \\| b ( s ) \\| _ { 1 }\n$$",
501
+ "text_format": "latex",
502
+ "bbox": [
503
+ 370,
504
+ 699,
505
+ 629,
506
+ 739
507
+ ],
508
+ "page_idx": 3
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "Clearly, the above problem is again intractable, as it is still equivalent to the original $\\ell _ { 0 }$ problem in Equation 1. More specifically, the step function $b ( z )$ is non-convex, and having zero gradients make gradient-based optimization ineffective. Instead, we consider the following smooth relaxation of $b ( \\cdot )$ : ",
513
+ "bbox": [
514
+ 174,
515
+ 753,
516
+ 825,
517
+ 797
518
+ ],
519
+ "page_idx": 3
520
+ },
521
+ {
522
+ "type": "equation",
523
+ "img_path": "images/0b42fcc57ff60f376bfc9950174f0ea48f606e9e8093b778f4adc5a93e15bdfa.jpg",
524
+ "text": "$$\nm : = \\sigma ( \\beta \\cdot s )\n$$",
525
+ "text_format": "latex",
526
+ "bbox": [
527
+ 450,
528
+ 819,
529
+ 547,
530
+ 837
531
+ ],
532
+ "page_idx": 3
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "where $\\beta \\in \\mathbb { R } _ { > 0 }$ , and $\\sigma$ is the sigmoid function $\\begin{array} { r } { \\sigma ( z ) = \\frac { 1 } { 1 + e ^ { - z } } } \\end{array}$ , applied element-wise. By controlling $\\beta$ , which acts as a temperature parameter, we effectively interpolate between $\\sigma ( s )$ , a smooth function well-suited for SGD, and $\\begin{array} { r } { \\operatorname* { l i m } _ { \\beta \\to \\infty } \\sigma ( \\beta \\cdot s ) = b ( z ) } \\end{array}$ , our original goal, which brings computational hardness to the problem. Figure 1 illustrates this behavior. Note that, if $L ( f ( x ; w ) )$ is continuous in $w$ , then: ",
537
+ "bbox": [
538
+ 173,
539
+ 849,
540
+ 825,
541
+ 924
542
+ ],
543
+ "page_idx": 3
544
+ },
545
+ {
546
+ "type": "equation",
547
+ "img_path": "images/058cc44242c6e30f68691610423d3fa3327634198515a0f4a9ad5c9321b029bb.jpg",
548
+ "text": "$$\n\\operatorname* { m i n } _ { w \\in \\mathbb { R } _ { \\neq 0 } ^ { d } } \\operatorname* { l i m } _ { \\beta \\to \\infty } L ( f ( x ; \\sigma ( \\beta s ) \\odot w ) ) + \\lambda \\cdot \\| \\sigma ( \\beta s ) \\| _ { 1 } = \\operatorname* { m i n } _ { w \\in \\mathbb { R } _ { \\neq 0 } ^ { d } } L ( f ( x ; b ( s ) \\odot w ) ) + \\lambda \\cdot \\| b ( s ) \\| _ { 1 }\n$$",
549
+ "text_format": "latex",
550
+ "bbox": [
551
+ 186,
552
+ 126,
553
+ 787,
554
+ 166
555
+ ],
556
+ "page_idx": 4
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "Although gradient methods will become ineffective as $\\beta \\to \\infty$ due to vanishing gradients of $s$ , we can increase $\\beta$ while optimizing $s$ and $w$ with gradient descent. That is, our loss at each iteration will be a function of $\\beta$ as follows: ",
561
+ "bbox": [
562
+ 174,
563
+ 184,
564
+ 823,
565
+ 227
566
+ ],
567
+ "page_idx": 4
568
+ },
569
+ {
570
+ "type": "equation",
571
+ "img_path": "images/93aa304b253a038647efb4207531290cd527d908a51e20781364c49ec3183d53.jpg",
572
+ "text": "$$\nL _ { \\beta } ( w , s ) = L ( f ( x ; \\sigma ( \\beta s ) \\odot w ) ) + \\lambda \\cdot \\| \\sigma ( \\beta \\cdot s ) \\| _ { 1 }\n$$",
573
+ "text_format": "latex",
574
+ "bbox": [
575
+ 330,
576
+ 260,
577
+ 668,
578
+ 279
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "How does the soft mask $m = \\sigma ( \\beta \\cdot s )$ behave as we minimize ${ \\cal L } _ { \\beta } ( w , s )$ while increasing $\\beta ?$ As $\\beta \\to \\infty$ , every negative component of $s$ will be mapped to 0, effectively removing its correspondent weight parameter from the network. While analytically the weights will never truly be zeroed-out, limited numerical precision has the fortunate side-effect of causing actual sparsification to the network during training, as long as $\\beta$ is increased to a large enough value. ",
585
+ "bbox": [
586
+ 173,
587
+ 297,
588
+ 825,
589
+ 369
590
+ ],
591
+ "page_idx": 4
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "In a nutshell, we learn sparse networks by minimizing $\\boldsymbol { L _ { \\beta } } ( \\boldsymbol { w } , s )$ for $T$ parameter updates with gradient descent while jointly annealing $\\beta$ : producing $w _ { T }$ , $s _ { T }$ and $\\beta _ { T }$ , which is ideally large enough such that, numerically 1, $\\sigma ( \\vec { \\beta _ { T } } \\cdot s _ { T } ) = \\bar { b } ( s _ { T } )$ . In case $m$ is truly required to be binary (as in the task of finding tickets), the dependence on numerical imprecision can be avoided by directly outputting $m = b ( s _ { T } )$ at the end of training. ",
596
+ "bbox": [
597
+ 174,
598
+ 376,
599
+ 825,
600
+ 446
601
+ ],
602
+ "page_idx": 4
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "Finally, note that minimizing $L _ { \\beta }$ while increasing $\\beta$ is not generally equivalent to minimizing the original $\\ell _ { 0 }$ -regularized problem. Informally, the former aims to solve $\\begin{array} { r } { \\operatorname* { l i m } _ { \\beta \\to \\infty } \\operatorname* { m i n } _ { w , s } L _ { \\beta } ( w , s ) } \\end{array}$ , while the $\\ell _ { 0 }$ problem is $\\mathrm { \\bar { m i n } } _ { w , s } \\operatorname* { l i m } _ { \\substack { \\beta \\to \\infty } } L _ { \\beta } \\mathrm { \\bar { ( } } w , s )$ . ",
607
+ "bbox": [
608
+ 173,
609
+ 452,
610
+ 825,
611
+ 496
612
+ ],
613
+ "page_idx": 4
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "3.2 TICKET SEARCH THROUGH CONTINUOUS SPARSIFICATION",
618
+ "text_level": 1,
619
+ "bbox": [
620
+ 174,
621
+ 517,
622
+ 620,
623
+ 531
624
+ ],
625
+ "page_idx": 4
626
+ },
627
+ {
628
+ "type": "text",
629
+ "text": "The method presented above offers a direct alternative to magnitude-based pruning when performing ticket search, but a few considerations must follow. Most importantly, when searching for winning tickets, there is a strict constraint that the learned mask $m$ be binary: otherwise, one can also learn the magnitude of the weights, defeating the purpose of finding sub-networks that can be trained from scratch. To guarantee that the output mask satisfies this constraint regardless of numerical precision, we always output $b ( s _ { T } )$ instead of $\\sigma ( \\beta _ { T } \\cdot s _ { T } )$ . ",
630
+ "bbox": [
631
+ 173,
632
+ 545,
633
+ 825,
634
+ 630
635
+ ],
636
+ "page_idx": 4
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "Additionally, we also incorporate two techniques from successful methods for learning sparse networks and searching for winning tickets. First, motivated by Han et al. (2015), where it is shown that iteratively pruning a network yields improved sparsity compared to pruning it only once, we enable “kept” weights – those whose corresponding component of $s$ is positive after many iterations – to be removed from the network at a later stage. More specifically, when $\\beta$ becomes large after $T$ gradient descent updates, the gradients of $s$ vanish and weights will no longer be removed from the network. To avoid this, we set $s \\gets \\operatorname* { m i n } ( \\beta _ { T } \\cdot s _ { T } , s _ { 0 } )$ , effectively resetting the soft mask parameters for the remaining weights while at the same time not interfering with weights that have been removed. This is followed by a reset on the temperature, $\\beta \\beta _ { 0 }$ , to allow training of $s$ once again. ",
641
+ "bbox": [
642
+ 174,
643
+ 636,
644
+ 826,
645
+ 761
646
+ ],
647
+ "page_idx": 4
648
+ },
649
+ {
650
+ "type": "text",
651
+ "text": "Second, we perform parameter rewinding, following Frankle $\\&$ Carbin (2019), which is a key component of Iterative Magnitude Pruning. More specifically, after $T$ gradient descent steps, we reset the weight values back to an earlier stage $w w _ { k }$ , where $k \\ll T$ . Even though experimental results in Frankle & Carbin (2019) suggest that rewinding is necessary for successful ticket search, we leave rewinding as an optinal component of our algorithm: as we will see empirically, it turns out that ticket search is possible without rewinding weights. Our proposed algorithm to find winning tickets is presented as Algorithm 3, and referred simply as “Continuous Sparsification”. ",
652
+ "bbox": [
653
+ 173,
654
+ 767,
655
+ 825,
656
+ 866
657
+ ],
658
+ "page_idx": 4
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "4 EXPERIMENTS ",
663
+ "text_level": 1,
664
+ "bbox": [
665
+ 176,
666
+ 102,
667
+ 326,
668
+ 117
669
+ ],
670
+ "page_idx": 5
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "Our experiments aim at comparing different methods on the task of finding winning tickets in neural networks, hence our evaluation focuses on the generalization performance of each ticket (sub-network) when trained from scratch (or from an iterate in early-training). Additionally, we measure the cost of the search procedure: the number of training epochs to find tickets with varying performance and sparsity. ",
675
+ "bbox": [
676
+ 174,
677
+ 132,
678
+ 825,
679
+ 203
680
+ ],
681
+ "page_idx": 5
682
+ },
683
+ {
684
+ "type": "text",
685
+ "text": "Besides comparing our proposed method to Iterative Magnitude Pruning (Algorithm 1), we also design a baseline method, Iterative Stochastic Sparsification (ISS, Algorithm 2), motivated by the procedure in Zhou et al. (2019) to find a binary mask $m$ with gradient descent in an end-to-end fashion. More specifically, ISS uses a stochastic re-parameterization $m \\sim$ Bernoulli $( \\sigma ( s ) )$ with $s \\in \\mathbb { R } ^ { d }$ , and trains $w$ and $s$ jointly with gradient descent and the straight-through estimator (Bengio et al., 2013). When ran for multiple iterations, all components of the mask parameters $s$ which have decreased in value from initialization are set to $- \\infty$ , such that the corresponding weight is permanently removed from the network. While this might look arbitrary, we observed empirically that ISS was unable to remove weights quickly without this step unless $\\lambda$ was chosen to be large – in which case the model’s performance decrease in exchange for sparsity. The hyperparameters used in this section were chosen based on analysis presented in Appendix (...), where we study how the pruning rate affects IMP, and how $\\lambda , s _ { 0 }$ and $\\beta _ { T }$ interact in CS. ",
686
+ "bbox": [
687
+ 174,
688
+ 209,
689
+ 825,
690
+ 376
691
+ ],
692
+ "page_idx": 5
693
+ },
694
+ {
695
+ "type": "text",
696
+ "text": "4.1 CONVOLUTIONAL NEURAL NETWORKS ",
697
+ "text_level": 1,
698
+ "bbox": [
699
+ 176,
700
+ 392,
701
+ 488,
702
+ 406
703
+ ],
704
+ "page_idx": 5
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "We train a neural network with 6 convolutional layers on the CIFAR-10 dataset (Krizhevsky, 2009), following Frankle & Carbin (2019). The network consists of 3 blocks of 2 resolution-preserving convolutional layers followed by $2 \\times 2$ max-pooling, where convolutions in each block have 64, 128 and 256 channels, a $3 \\times 3$ kernel, and are immediately followed by ReLU activations. The blocks are followed by fully-connected layers with 256, 256 and 10 neurons, with ReLUs in between. The network is trained with Adam (Kingma & Ba, 2015) with a learning rate of 0.0003 and a batch size of 60. ",
709
+ "bbox": [
710
+ 174,
711
+ 417,
712
+ 825,
713
+ 515
714
+ ],
715
+ "page_idx": 5
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "Learning a Supermask: As a first baseline, we consider the task of learning a “supermask” (Zhou et al., 2019): a binary mask $m$ that, when applied to a network with randomly initialized weights, yields performance competitive to that of training its weights. This task is equivalent to pruning a randomly-initialized network, or learning an architecture that performs well prior to training with a fixed initialization. We compare ISS and CS , where each method is run for a single iteration composed of 100 epochs. When ran for a single iteration, ISS is equivalent to the algorithm proposed in Zhou et al. (2019) to learn a supermask, referred here as simply Stochastic Sparsification. We control the sparsity of the learned masks by varying $s _ { 0 }$ between $- 5$ and 5 for Stochastic Sparsification (which showed to be more effective than varying $\\lambda$ ), while for Continuous Sparsification we vary $\\lambda$ between $1 0 ^ { - 1 1 }$ and $1 0 ^ { - 7 }$ (which results in stable and consistent training, unlike varying $s _ { 0 }$ ). SS uses SGD with a learning rate of 100 to learn its mask parameters, while CS uses Adam with $\\mathrm { \\ddot { 3 } } \\times 1 0 ^ { - 4 }$ . ",
720
+ "bbox": [
721
+ 173,
722
+ 522,
723
+ 825,
724
+ 675
725
+ ],
726
+ "page_idx": 5
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "Results are presented in Figure 2: CS outperforms SS in terms of both training speed and the quality of the learned mask. In particular, CS finds masks with over $7 5 \\%$ sparsity that yield over $7 5 \\%$ test accuracy, while the performance of masks found by SS decrease when sparsity is over $5 0 \\%$ . Moreover, CS makes faster progress in training, showing that optimizing a deterministic mask is indeed faster than learning a distribution over masks through stochastic re-parameterizations. ",
731
+ "bbox": [
732
+ 174,
733
+ 683,
734
+ 825,
735
+ 752
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "Finding Winning Tickets: We run IMP and ISS for a total of 30 iterations, each consisting of 40 epochs. Parameters are trained with Adam (Kingma & Ba, 2015) with a learning rate of $3 \\times 1 0 ^ { - 4 }$ , following Frankle & Carbin (2019). For IMP, we use pruning rates of $1 5 \\% / 2 0 \\%$ for convolutional/dense layers. We initialize the Bernoulli parameters of ISS with $s _ { 0 } = \\vec { 1 }$ , and train them with SGD and a learning rate of 20, along with a $\\ell _ { 1 }$ regularization of $\\lambda = 1 0 ^ { - 8 }$ . For CS , we anneal the temperature from $\\beta _ { 0 } = 1$ to $\\beta _ { 0 } = 2 5 0$ following an exponential schedule $( \\beta _ { t } = 2 5 0 ^ { \\frac { t } { T } } )$ ), training both the weights and the mask with Adam and a learning rate of $3 \\times 1 0 ^ { - 4 }$ . ",
742
+ "bbox": [
743
+ 174,
744
+ 758,
745
+ 825,
746
+ 861
747
+ ],
748
+ "page_idx": 5
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "To test whether our method is capable of finding winning tickets in a limited amount of time, we limit each run of CS to 4 iterations only, in contrast with IMP and ISS which are run for 30. We perform 6 runs of CS , each with a different value for the mask initialization $s _ { 0 } \\colon - 0 . 0 5 , - 0 . 0 3 , - 0 . \\bar { 0 2 } , - 0 . 0 1 ,$ $- 0 . 0 0 5 , 0$ , keeping $\\lambda = 1 0 ^ { - 1 0 }$ , such that sparsification is not enforced during training, but heavily biased at initialization. In order to evaluate how consistent our method is, we repeat each run with 3 different random seeds so that error bars can be computed. ",
753
+ "bbox": [
754
+ 174,
755
+ 867,
756
+ 825,
757
+ 924
758
+ ],
759
+ "page_idx": 5
760
+ },
761
+ {
762
+ "type": "image",
763
+ "img_path": "images/38737692412099085fa17d05de3bd18d9b6b97f461d31e86023b5d386cf0a1f0.jpg",
764
+ "image_caption": [
765
+ "Figure 2: Learning a binary mask with weights frozen at initialization with Stochastic Sparsification (SS, Algorithm 2 with one iteration) and Continuous Sparsification (CS), on a 6-layer CNN on CIFAR10. Left: Training curves with hyperparameters for which masks learned by SS and CS were both approximately $5 0 \\%$ sparse. CS learns the mask significantly faster while attaining similar early-stop performance. Right: Sparsity and test accuracy of masks learned with different settings for SS and CS: our method learns sparser masks while maintaining test performance, while SS is unable to successfully learn masks with over $5 0 \\%$ sparsity. "
766
+ ],
767
+ "image_footnote": [],
768
+ "bbox": [
769
+ 176,
770
+ 103,
771
+ 818,
772
+ 277
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "image",
778
+ "img_path": "images/9bec91a4d6d0bcd418f1f6cf5fbd413ee833db063e1e6916fdac26b186cbeaaa.jpg",
779
+ "image_caption": [
780
+ "Figure 3: Test accuracy of tickets found by different methods on CIFAR-10. Error bars depict variance across 3 runs. Left: Performance of tickets found on a 6-layer CNN, when trained from scratch. Right: Performance of tickets found on a ResNet 20, when rewinded to the second training epoch. In both experiments, tickets found by CS outperform ones found by IMP. In most cases, CS successfully finds winning tickets in 2 iterations (purple curves). "
781
+ ],
782
+ "image_footnote": [],
783
+ "bbox": [
784
+ 176,
785
+ 417,
786
+ 816,
787
+ 592
788
+ ],
789
+ "page_idx": 6
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "",
794
+ "bbox": [
795
+ 174,
796
+ 713,
797
+ 823,
798
+ 742
799
+ ],
800
+ "page_idx": 6
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "Figure 3 (left) presents the quality of tickets found by each method, measured by their test accuracy when trained from scratch. To illustrate the quality of the tickets that can be found by Continuous Sparsification, we plot the Pareto curve (green) of the tickets founds with the 6 different values for $s _ { 0 }$ . With $s _ { 0 } = - 0 . 0 3$ , in only 2 iterations CS finds a ticket with over $7 7 \\%$ sparsity (first marker of purple curve) which outperforms every ticket found by IMP in its 30 iterations. The Pareto curve of CS strictly dominates IMP for tickets with more less than $9 7 \\%$ sparsity, where ticket performance is superior or similar to the original dense network. ",
805
+ "bbox": [
806
+ 173,
807
+ 750,
808
+ 825,
809
+ 847
810
+ ],
811
+ "page_idx": 6
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "In terms of computational time, the total cost to run CS with the 6 different values for $s _ { 0 }$ is lower than performing a single run of IMP for 30 iterations, even though CS takes $1 5 \\%$ extra time per epoch due to the mask parameters. This shows the potential of our model even in the setting where a specific sparsity is desired for the tickets. When run in parallel, CS takes less wall-clock time to find all tickets in the Pareto curve than to run IMP for 5 iterations. ",
816
+ "bbox": [
817
+ 174,
818
+ 854,
819
+ 825,
820
+ 924
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "4.2 FINDING WINNING TICKETS IN RESIDUAL NETWORKS WITHOUT REWINDING ",
827
+ "bbox": [
828
+ 173,
829
+ 103,
830
+ 753,
831
+ 117
832
+ ],
833
+ "page_idx": 7
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "Searching for tickets in realistic models is not as straightforward as finding tickets in a small CNN, and might require new strategies. Frankle et al. (2019) show that IMP fails at finding winning tickets in ResNets (He et al., 2016) unless the learning rate is smaller than the recommended value, leading to worse overall performance and defeating the purpose of ticket search. However, the authors propose a slight modification to IMP that enables search for winning tickets to be successful on complex networks: instead of training from scratch, tickets are initialized with weights from early training. ",
838
+ "bbox": [
839
+ 174,
840
+ 128,
841
+ 825,
842
+ 213
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "With this in mind, we evaluate how Continuous Sparsification performs in the time-consuming task of finding winning tickets in a ResNet- $2 0 ^ { 2 }$ (He et al., 2016) trained on CIFAR-10: a setting where IMP might take over 10 iterations (850 epochs) to succeed. We follow the setup in Frankle & Carbin (2019) and Frankle et al. (2019): in each iteration, the network is trained with SGD, a learning rate of 0.1, and a momentum of 0.9 for a total of 85 epochs, using a batch size of 128. The learning rate is decayed by a factor of 10 at epochs 56 and 71, and a weight decay of 0.0001 is applied to the weights (for CS , we do not apply weight decay to the mask parameters $s$ ). The two skip-connections that perform $1 \\times 1$ convolutions and the output layer are not removable: for IMP, their parameters are not pruned, while for CS their weights do not have a correspondent mask $m$ nor mask parameters $s$ . ",
849
+ "bbox": [
850
+ 173,
851
+ 219,
852
+ 825,
853
+ 345
854
+ ],
855
+ "page_idx": 7
856
+ },
857
+ {
858
+ "type": "text",
859
+ "text": "When training the returned tickets in order to evaluate their performance, we initialize their weights with the iterates from the end of epoch 2 (780 parameter updates), similarly to Frankle et al. (2019). Unlike when searching for winning tickets in the 6-layer CNN, IMP performs global pruning, removing $2 0 \\%$ of the remaining parameters with smallest magnitude, ranked globally (across different layers). IMP runs for a total of 30 iterations, while CS is limited to only 5 iterations for each run. The sparsity of the tickets found by CS is controlled by varying the mask initialization $s _ { 0 } \\in$ $\\{ - 0 . 3 , - 0 . 2 , - 0 . 1 , - 0 . 0 5 , - 0 . 0 3 , 0 , 0 . 0 3 , 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 \\}$ (a total of 11 values). To allow for even faster ticket search, we run CS without parameter rewinding: that is, the weights $w$ are transferred from one iteration to another, removing the need to re-train the network as the method progresses through iterations. For both CS and IMP, each run is repeated with 3 different random seeds. ",
860
+ "bbox": [
861
+ 174,
862
+ 352,
863
+ 825,
864
+ 505
865
+ ],
866
+ "page_idx": 7
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "The results presented in Figure 3 (right) show that CS is able to successfully find winning tickets with varying sparsity in under 5 iterations. Once again, the Pareto curve strictly dominates IMP, and variance across runs is smaller than IMP’s. Most notably, CS is capable of quickly sparsifying the network in a single iteration (first marker of each purple curve), and typically finds better tickets than IMP after only 2 rounds (compare blue curve and second marker of each purple curve), regardless of sparsity. When run in parallel, 2 iterations suffice for CS to find tickets that outperform the ones found by IMP. ",
871
+ "bbox": [
872
+ 174,
873
+ 512,
874
+ 825,
875
+ 609
876
+ ],
877
+ "page_idx": 7
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "We observed that not performing rewinding caused the performance of tickets with high sparsity to quickly degrade after 2 or more iterations of CS. We speculate that, when rewinding is not performed between iterations, the distance between $w _ { k }$ and the parameter iterates produced by gradient descent $w _ { t }$ increase significantly with the number of iterations. This in turn can result in the learned mask $m _ { T }$ to be highly sub-optimal for weight values $w _ { k }$ $k \\ll T$ ) which are used to re-train the ticket. This suggests that in order to avoid re-training the network and hence make the search for winning tickets more efficient, rewinding should not be performed between iterations. In this case, the search must complete quickly, before performance degradation occurs due to “overtraining”, requiring optimal ways to perform sparsification without negatively impacting the model’s performance. ",
882
+ "bbox": [
883
+ 174,
884
+ 616,
885
+ 825,
886
+ 742
887
+ ],
888
+ "page_idx": 7
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "4.3 PRUNING VGG ",
893
+ "text_level": 1,
894
+ "bbox": [
895
+ 174,
896
+ 757,
897
+ 321,
898
+ 772
899
+ ],
900
+ "page_idx": 7
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "Our experiments show that Continuous Sparsification is capable of finding tickets quickly and consistently, and we attribute its success to its deterministic re-parameterization of the binary mask. Here, we evaluate our method a pruning technique, to better assess whether our proposed re-parameterization is advantageous only in terms of training time, or also in respect to the quality of the learned masks. ",
905
+ "bbox": [
906
+ 174,
907
+ 784,
908
+ 825,
909
+ 840
910
+ ],
911
+ "page_idx": 7
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "For this task, we train a VGG (Simonyan & Zisserman, 2015) on the CIFAR-10 dataset, following the protocol in Frankle & Carbin (2019): the network is trained with SGD and an initial learning rate of 0.1, which is decayed by a factor of 10 at epochs 80 and 120. After 160 training epochs, the network is sparsified and then fine-tuned for 40 epochs with a learning rate of 0.001. We evaluate previously described methods when executed for a single iteration (one-shot pruning): Continuous Sparsification, Magnitude Pruning (IMP with 1 iteration) (Han et al., 2015), and Stochastic Sparsification (ISS with 1 iteration), which is similar to methods in Zhou et al. (2019), Srinivas et al. (2016), and Louizos et al. (2017). ",
916
+ "bbox": [
917
+ 174,
918
+ 847,
919
+ 825,
920
+ 888
921
+ ],
922
+ "page_idx": 7
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "",
927
+ "bbox": [
928
+ 173,
929
+ 103,
930
+ 826,
931
+ 172
932
+ ],
933
+ "page_idx": 8
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "At the sparsification step, IMP performs global pruning, ISS fixes the binary mask $m$ to be the maximum likelihood one under $\\operatorname { B e r } ( \\sigma ( s ) )$ (which performed better than sampling from the distribution), and CS changes the parameterization of the mask from $\\sigma ( \\beta s )$ to $b ( s )$ (or, equivalently, weights $w _ { i }$ where $s _ { i } < 0$ are removed). We use a momentum of 0.9, a weight decay of 0.0001 (not applied to s), and a batch-size of 64. Following Frankle & Carbin (2019), sparsification is not applied to batch normalization nor the final linear layer. ",
938
+ "bbox": [
939
+ 174,
940
+ 181,
941
+ 485,
942
+ 347
943
+ ],
944
+ "page_idx": 8
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "To evaluate each method when finding masks with different sparsity levels, we run IMP with global pruning rates $5 0 \\%$ , $7 5 \\%$ , $8 0 \\%$ , $8 5 \\%$ , ${ \\bar { 9 } } 0 \\%$ , $9 \\hat { 5 } \\%$ , $9 7 . 5 \\%$ , $9 8 \\%$ , $9 8 . 5 \\%$ , $9 9 \\%$ , $9 9 . 5 \\%$ , $9 9 . 7 5 \\%$ , and ISS and CS with initial mask values $- 0 . 3$ , $- 0 . 2 5$ , $- 0 . 2$ , $- 0 . 1 5$ , $- 0 . 1$ , $- 0 . 0 5$ $- 0 . 0 1$ , $- 0 . 0 0 5$ , $- 0 . 0 0 1$ , 0. Results are shown in Figure 4: both magnitude pruning and stochastic $\\ell _ { 0 }$ regularization (Stochastic Sparsifi",
949
+ "bbox": [
950
+ 174,
951
+ 354,
952
+ 485,
953
+ 479
954
+ ],
955
+ "page_idx": 8
956
+ },
957
+ {
958
+ "type": "image",
959
+ "img_path": "images/b21e02a334c93b267ef966b4139eeb497f15c3cfc8a4b4250deebf600cd38422.jpg",
960
+ "image_caption": [
961
+ "Figure 4: Performance of different methods when performing one-shot pruning on VGG. CS maintains over $9 0 \\%$ test accuracy after removing $9 9 . 7 \\%$ of the weights, while other methods fail to successfully remove more than $9 8 \\%$ of the parameters. "
962
+ ],
963
+ "image_footnote": [],
964
+ "bbox": [
965
+ 508,
966
+ 205,
967
+ 810,
968
+ 372
969
+ ],
970
+ "page_idx": 8
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "cation) fail at removing over $9 8 \\%$ of the weights without severely degrading the performance of the model. On the other hand, Continuous Sparsification successfully removes ${ \\bar { 9 } } 9 . 7 \\%$ of the parameters in the convolutional layers while still yielding over $9 0 \\%$ test accuracy. When taken to the extreme, our method is capable of removing $9 9 . 8 5 \\%$ of the weights and still yield over $8 3 \\%$ accuracy. ",
975
+ "bbox": [
976
+ 174,
977
+ 479,
978
+ 826,
979
+ 535
980
+ ],
981
+ "page_idx": 8
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "The dramatic performance difference between stochastic and continuous sparsification shows that our proposed deterministic re-parameterization is key to achieve superior results in both network pruning and ticket search. The fact that it outperforms magnitude pruning, a standard technique in the pruning literature, suggests that further exploration of $\\ell _ { 0 }$ -based methods could yield significant advances in pruning techniques. ",
986
+ "bbox": [
987
+ 174,
988
+ 541,
989
+ 825,
990
+ 611
991
+ ],
992
+ "page_idx": 8
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "5 DISCUSSION ",
997
+ "text_level": 1,
998
+ "bbox": [
999
+ 174,
1000
+ 642,
1001
+ 310,
1002
+ 659
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "With Frankle & Carbin (2019), we now realize that sparse sub-networks can indeed be successfully trained from scratch, putting in question the belief that overparameterization is required for proper optimization of neural networks. Such sub-networks, called winning tickets, can be potentially used to significantly decrease the required resources for training deep networks, as they are shown to transfer between different, but similar, tasks (Mehta, 2019; Soelen & Sheppard, 2019). ",
1009
+ "bbox": [
1010
+ 174,
1011
+ 680,
1012
+ 825,
1013
+ 750
1014
+ ],
1015
+ "page_idx": 8
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Currently, the search for winning tickets is a poorly explored problem, where Iterative Magnitude Pruning (Frankle & Carbin, 2019) stands as the only algorithm suited for this task, and it is unclear whether its key ingredients – post-training magnitude pruning and parameter rewinding – are the correct choices for the task. Here, we approach the problem of finding sparse sub-networks as an $\\ell _ { 0 }$ -regularized optimization problem, which we approximate through a smooth, parameterized relaxation of the step function. Our proposed algorithm for finding winning tickets, Continuous Sparsification, removes parameters automatically and continuously during training, and can be fully described by the optimization framework. We show empirically that, indeed, post-training pruning might not be a sensible choice for finding winning tickets, raising questions on how the search for tickets differs from standard network compression. With this work, we hope to further motivate the problem of quickly finding tickets in overparameterized networks, as recent work suggests that the task might be highly relevant to transfer learning and mobile applications. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 757,
1023
+ 825,
1024
+ 924
1025
+ ],
1026
+ "page_idx": 8
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "REFERENCES ",
1031
+ "text_level": 1,
1032
+ "bbox": [
1033
+ 176,
1034
+ 102,
1035
+ 287,
1036
+ 118
1037
+ ],
1038
+ "page_idx": 9
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "Zeyuan Allen-Zhu, Yuanzhi Li, and Zhao Song. A convergence theory for deep learning via overparameterization. In ICML, 2019. ",
1043
+ "bbox": [
1044
+ 174,
1045
+ 126,
1046
+ 823,
1047
+ 155
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Yoshua Bengio, Nicholas Léonard, and Aaron Courville. Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation. arXiv e-prints, art. arXiv:1308.3432, 2013. ",
1054
+ "bbox": [
1055
+ 176,
1056
+ 161,
1057
+ 823,
1058
+ 204
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv e-prints, art. arXiv:1810.04805, 2018. ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 213,
1068
+ 825,
1069
+ 256
1070
+ ],
1071
+ "page_idx": 9
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In ICLR, 2019. ",
1076
+ "bbox": [
1077
+ 171,
1078
+ 263,
1079
+ 825,
1080
+ 294
1081
+ ],
1082
+ "page_idx": 9
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Jonathan Frankle, Gintare Karolina Dziugaite, Daniel M. Roy, and Michael Carbin. Stabilizing the Lottery Ticket Hypothesis. arXiv e-prints, art. arXiv:1903.01611, 2019. ",
1087
+ "bbox": [
1088
+ 173,
1089
+ 301,
1090
+ 823,
1091
+ 330
1092
+ ],
1093
+ "page_idx": 9
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Song Han, Jeff Pool, John Tran, and William J. Dally. Learning both weights and connections for efficient neural networks. NIPS’15, 2015. ",
1098
+ "bbox": [
1099
+ 174,
1100
+ 338,
1101
+ 823,
1102
+ 367
1103
+ ],
1104
+ "page_idx": 9
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. ICLR, 2016. ",
1109
+ "bbox": [
1110
+ 174,
1111
+ 376,
1112
+ 825,
1113
+ 405
1114
+ ],
1115
+ "page_idx": 9
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CVPR, 2016. ",
1120
+ "bbox": [
1121
+ 173,
1122
+ 412,
1123
+ 823,
1124
+ 441
1125
+ ],
1126
+ "page_idx": 9
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Forrest N. Iandola, Matthew W. Moskewicz, Khalid Ashraf, Song Han, William J. Dally, and Kurt Keutzer. SqueezeNet: AlexNet-level accuracy with $5 0 \\mathrm { x }$ fewer parameters and ${ < } 1 \\mathbf { M } \\mathbf { B }$ model size. arXiv:1602.07360, 2016. ",
1131
+ "bbox": [
1132
+ 173,
1133
+ 449,
1134
+ 825,
1135
+ 492
1136
+ ],
1137
+ "page_idx": 9
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015. ",
1142
+ "bbox": [
1143
+ 171,
1144
+ 501,
1145
+ 795,
1146
+ 517
1147
+ ],
1148
+ "page_idx": 9
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. ",
1153
+ "bbox": [
1154
+ 169,
1155
+ 523,
1156
+ 803,
1157
+ 540
1158
+ ],
1159
+ "page_idx": 9
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In NIPS. 1990. ",
1164
+ "bbox": [
1165
+ 171,
1166
+ 547,
1167
+ 753,
1168
+ 563
1169
+ ],
1170
+ "page_idx": 9
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Hanxiao Liu, Karen Simonyan, and Yiming Yang. DARTS: Differentiable architecture search. ICLR, 2019. ",
1175
+ "bbox": [
1176
+ 173,
1177
+ 570,
1178
+ 823,
1179
+ 601
1180
+ ],
1181
+ "page_idx": 9
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Christos Louizos, Max Welling, and Diederik P. Kingma. Learning Sparse Neural Networks through $L _ { 0 }$ Regularization. arXiv e-prints, art. arXiv:1712.01312, 2017. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 607,
1189
+ 823,
1190
+ 637
1191
+ ],
1192
+ "page_idx": 9
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Rahul Mehta. Sparse Transfer Learning via Winning Lottery Tickets. arXiv e-prints, art. arXiv:1905.07785, 2019. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 643,
1200
+ 823,
1201
+ 674
1202
+ ],
1203
+ "page_idx": 9
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Ari S. Morcos, Haonan Yu, Michela Paganini, and Yuand ong Tian. One ticket to win them all: generalizing lottery ticket initializations across datasets and optimizers. arXiv e-prints, art. arXiv:1906.02773, 2019. ",
1208
+ "bbox": [
1209
+ 173,
1210
+ 681,
1211
+ 825,
1212
+ 724
1213
+ ],
1214
+ "page_idx": 9
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Behnam Neyshabur, Zhiyuan Li, Srinadh Bhojanapalli, Yann LeCun, and Nathan Srebro. Towards Understanding the Role of Over-Parametrization in Generalization of Neural Networks. arXiv e-prints, art. arXiv:1805.12076, 2018. ",
1219
+ "bbox": [
1220
+ 173,
1221
+ 733,
1222
+ 826,
1223
+ 776
1224
+ ],
1225
+ "page_idx": 9
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Pedro Savarese and Michael Maire. Learning implicitly recurrent CNNs through parameter sharing. In ICLR, 2019. ",
1230
+ "bbox": [
1231
+ 173,
1232
+ 784,
1233
+ 823,
1234
+ 814
1235
+ ],
1236
+ "page_idx": 9
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR, 2015. ",
1241
+ "bbox": [
1242
+ 173,
1243
+ 820,
1244
+ 823,
1245
+ 849
1246
+ ],
1247
+ "page_idx": 9
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Ryan Van Soelen and John W. Sheppard. Using winning lottery tickets in transfer learning for convolutional neural networks. In IJCNN, 2019. ",
1252
+ "bbox": [
1253
+ 171,
1254
+ 858,
1255
+ 823,
1256
+ 887
1257
+ ],
1258
+ "page_idx": 9
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Suraj Srinivas, Akshayvarun Subramanya, and R. Venkatesh Babu. Training Sparse Neural Networks. arXiv e-prints, art. arXiv:1611.06694, 2016. ",
1263
+ "bbox": [
1264
+ 174,
1265
+ 895,
1266
+ 823,
1267
+ 924
1268
+ ],
1269
+ "page_idx": 9
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Saining Xie, Ross B. Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. CVPR, 2017. ",
1274
+ "bbox": [
1275
+ 173,
1276
+ 103,
1277
+ 825,
1278
+ 132
1279
+ ],
1280
+ "page_idx": 10
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Hattie Zhou, Janice Lan, Rosanne Liu, and Jason Yosinski. Deconstructing lottery tickets: Zeros, signs, and the supermask. ArXiv, abs/1905.01067, 2019. ",
1285
+ "bbox": [
1286
+ 174,
1287
+ 141,
1288
+ 825,
1289
+ 170
1290
+ ],
1291
+ "page_idx": 10
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "APPENDIX ",
1296
+ "text_level": 1,
1297
+ "bbox": [
1298
+ 176,
1299
+ 102,
1300
+ 263,
1301
+ 118
1302
+ ],
1303
+ "page_idx": 11
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "A HYPERPARAMETER ANALYSIS ",
1308
+ "text_level": 1,
1309
+ "bbox": [
1310
+ 178,
1311
+ 135,
1312
+ 460,
1313
+ 151
1314
+ ],
1315
+ "page_idx": 11
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "A.1 CONTINUOUS SPARSIFICATION ",
1320
+ "text_level": 1,
1321
+ "bbox": [
1322
+ 176,
1323
+ 165,
1324
+ 433,
1325
+ 180
1326
+ ],
1327
+ "page_idx": 11
1328
+ },
1329
+ {
1330
+ "type": "text",
1331
+ "text": "In this section, we study how the hyperparameters of Continuous Sparsification affect its performance in terms of sparsity and performance of the found tickets. More specifically, we consider the following hyperparameters: ",
1332
+ "bbox": [
1333
+ 176,
1334
+ 190,
1335
+ 825,
1336
+ 233
1337
+ ],
1338
+ "page_idx": 11
1339
+ },
1340
+ {
1341
+ "type": "text",
1342
+ "text": "• Final temperature $\\beta _ { T }$ : the final value for $\\beta$ , which controls how smooth the parameterization $m = \\sigma ( \\bar { \\beta } s )$ is. \n• $\\ell _ { 1 }$ penalty $\\lambda$ : the strength of the $\\ell _ { 1 }$ regularization applied to the soft mask $\\sigma ( \\beta s )$ , which promotes sparsity. \n• Mask initial value $s _ { 0 }$ : the value used to initialize all components of the soft mask $m = \\sigma ( \\beta s )$ , where smaller values promote sparsity. ",
1343
+ "bbox": [
1344
+ 214,
1345
+ 244,
1346
+ 825,
1347
+ 337
1348
+ ],
1349
+ "page_idx": 11
1350
+ },
1351
+ {
1352
+ "type": "text",
1353
+ "text": "Our setup is as follows: to analyze how each of the 3 hyperparameters impact the performance of Continuous Sparsification, we train a ResNet 20 on CIFAR-10 (following the same protocol from Section 4.2), varying one hyperparameter while keeping the other two fixed. To capture how hyperparameters interact with each other, we repeat the described experiment with different settings for the fixed hyperparameters. ",
1354
+ "bbox": [
1355
+ 174,
1356
+ 347,
1357
+ 825,
1358
+ 416
1359
+ ],
1360
+ "page_idx": 11
1361
+ },
1362
+ {
1363
+ "type": "text",
1364
+ "text": "Since different hyperparameter settings naturally yield vastly distinct sparsity and performance for the found tickets, we report relative changes in accuracy and in sparsity. ",
1365
+ "bbox": [
1366
+ 174,
1367
+ 424,
1368
+ 823,
1369
+ 452
1370
+ ],
1371
+ "page_idx": 11
1372
+ },
1373
+ {
1374
+ "type": "text",
1375
+ "text": "In Figure 5, we vary $\\lambda$ between 0 and $1 0 ^ { - 8 }$ for three different $( s _ { 0 } , \\beta _ { T } )$ settings: $\\stackrel { \\prime } { s } _ { 0 } = - 0 . 2 , \\beta _ { T } =$ 100), $( s _ { 0 } = 0 . 0 5 , \\mathring { \\beta _ { t } } = 2 0 0 )$ , and $( s _ { 0 } = - 0 . 3 , \\beta _ { T } = 1 0 0 )$ . As we can see, there is little impact on either the performance or the sparsity of the found ticket, except for the case where $s _ { 0 } = 0 . 0 5$ and $\\beta _ { T } = 2 0 0$ , for which $\\lambda = 1 0 ^ { - 8 }$ yields slightly increased sparsity. ",
1376
+ "bbox": [
1377
+ 173,
1378
+ 458,
1379
+ 825,
1380
+ 515
1381
+ ],
1382
+ "page_idx": 11
1383
+ },
1384
+ {
1385
+ "type": "image",
1386
+ "img_path": "images/e56a29401e70aaf2ec3f8cc9a42a882496ee4aa389ac344c91494ade8c1c4d17.jpg",
1387
+ "image_caption": [
1388
+ "Figure 5: Impact on relative test accuracy and sparsity of tickets found in a ResNet 20 trained on CIFAR-10, for different values of $\\lambda$ and fixed settings for $\\beta _ { T }$ and $s _ { 0 }$ . "
1389
+ ],
1390
+ "image_footnote": [],
1391
+ "bbox": [
1392
+ 176,
1393
+ 530,
1394
+ 818,
1395
+ 728
1396
+ ],
1397
+ "page_idx": 11
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Next, we consider the fixed settings $( s _ { 0 } = - 0 . 2 , \\lambda = 1 0 ^ { - 1 0 } ,$ ), $( s _ { 0 } = 0 . 0 5 , \\lambda = 1 0 ^ { - 1 2 } )$ ), $( s _ { 0 } =$ $- 0 . 3 , \\lambda = 1 0 ^ { - 8 } ,$ , and proceed to vary the final temperature $\\beta _ { T }$ between 50 and 200. Figure 6 shows the results: in all cases, a larger temperature of 200 yielded better accuracy. However, it decreased sparsity compared to smaller temperature values for the settings $( s _ { 0 } = - 0 . 2 , \\lambda = 1 0 ^ { - 1 0 }$ ) and $\\stackrel { \\prime } { s } _ { 0 } = \\bar { - } 0 . 3 , \\stackrel { . } { \\lambda } = 1 \\bar { 0 } ^ { - 8 } ,$ ), while at the same time increasing sparsity for $\\begin{array} { r } { { ' s _ { 0 } } = 0 . 0 5 , \\lambda = 1 0 ^ { - 1 2 } . } \\end{array}$ ). While larger temperatures appear beneficial and might suggest that even higher values should be used, note that, the larger $\\beta _ { T }$ is, the earlier in training the gradients of $s$ will vanish, at which point training of the mask will stop. Since the performance for temperatures between 100 and 200 does not change significantly, we recommend values around 150 or 200 when either pruning or performing ticket search. ",
1402
+ "bbox": [
1403
+ 173,
1404
+ 784,
1405
+ 826,
1406
+ 924
1407
+ ],
1408
+ "page_idx": 11
1409
+ },
1410
+ {
1411
+ "type": "image",
1412
+ "img_path": "images/7f92ae1a277e9c86b70bb810e1a1eed680f5ceb6bfb8b3ebe0e80fc52e996fe9.jpg",
1413
+ "image_caption": [
1414
+ "Figure 6: Impact on relative test accuracy and sparsity of tickets found in a ResNet 20 trained on CIFAR-10, for different values of $\\beta _ { T }$ and fixed settings for $\\lambda$ and $s _ { 0 }$ . "
1415
+ ],
1416
+ "image_footnote": [],
1417
+ "bbox": [
1418
+ 178,
1419
+ 103,
1420
+ 816,
1421
+ 300
1422
+ ],
1423
+ "page_idx": 12
1424
+ },
1425
+ {
1426
+ "type": "image",
1427
+ "img_path": "images/f4ad948bda3f8fc2a7596868bdcc729344371972624a4ac99e0c23ab352ca461.jpg",
1428
+ "image_caption": [
1429
+ "Figure 7: Impact on relative test accuracy and sparsity of tickets found in a ResNet 20 trained on CIFAR-10, for different values of $s _ { 0 }$ and fixed settings for $\\beta _ { T }$ and $\\lambda$ . "
1430
+ ],
1431
+ "image_footnote": [],
1432
+ "bbox": [
1433
+ 176,
1434
+ 359,
1435
+ 818,
1436
+ 559
1437
+ ],
1438
+ "page_idx": 12
1439
+ },
1440
+ {
1441
+ "type": "text",
1442
+ "text": "Lastly, we vary the initial mask value $s _ { 0 }$ between $- 0 . 3$ and $+ 0 . 3$ , with hyperpameter settings $( \\beta _ { T } \\doteq 1 0 0 , \\lambda \\doteq 1 0 ^ { - 1 0 } )$ , $( \\beta _ { T } = 2 0 0 , \\lambda = 1 0 ^ { - 1 2 } )$ ), and $\\langle \\beta _ { T } = 1 0 0 , \\lambda = 1 0 ^ { - 8 } \\rangle$ ). Results are given in Figure 7: unlike the exploration on $\\lambda$ and $\\beta _ { T }$ , we can see that $s _ { 0 }$ has a strong and consistent effect on the sparsity of the found tickets. For this reason, we suggest proper tuning of $s _ { 0 }$ when the goal is to achieve a specific sparsity value. Since the percentage of remaining weights is monotonically increasing with $s _ { 0 }$ , we can perform binary search over values for $s _ { 0 }$ to achieve any desired sparsity level. In terms of performance, lower values for $s _ { 0 }$ naturally lead to performance degradation, since sparsity quickly increases as $s _ { 0 }$ becomes more negative. ",
1443
+ "bbox": [
1444
+ 173,
1445
+ 627,
1446
+ 825,
1447
+ 739
1448
+ ],
1449
+ "page_idx": 12
1450
+ },
1451
+ {
1452
+ "type": "image",
1453
+ "img_path": "images/28ffb9049096008e4c9629d6536fd2b0184a9f1c90eb72d731f4af1bb6bdb1df.jpg",
1454
+ "image_caption": [
1455
+ "Figure 8: Performance of tickets found by Iterative Magnitude Pruning in a ResNet 20 trained on CIFAR, for different pruning rates. "
1456
+ ],
1457
+ "image_footnote": [],
1458
+ "bbox": [
1459
+ 308,
1460
+ 104,
1461
+ 684,
1462
+ 310
1463
+ ],
1464
+ "page_idx": 13
1465
+ },
1466
+ {
1467
+ "type": "text",
1468
+ "text": "A.2 ITERATIVE MAGNITUDE PRUNING ",
1469
+ "text_level": 1,
1470
+ "bbox": [
1471
+ 178,
1472
+ 381,
1473
+ 454,
1474
+ 395
1475
+ ],
1476
+ "page_idx": 13
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "Here, we assess whether the running time of Iterative Magnitude Pruning can be improved by increasing the amount of parameters pruned at each iteration. The goal of this experiment is to evaluate if Continuous Sparsification offers faster ticket search only because it prunes the network more aggressively than IMP, or because it is truly more effective in how parameters are chosen to be removed. ",
1481
+ "bbox": [
1482
+ 174,
1483
+ 406,
1484
+ 825,
1485
+ 476
1486
+ ],
1487
+ "page_idx": 13
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "Following the same setup as the previous section, we train a ResNet 20 on CIFAR-10. We run IMP for 30 iterations, performing global pruning with different pruning rates at the end of each iteration. Figure 8 shows that the performance of tickets found by IMP decays when the pruning rate is increased to $4 0 \\%$ . In particular, the final performance of found tickets is mostly monotonically decreasing with the number of remaining parameters, suggesting that, in order to find tickets which outperform the original network, IMP is not compatible with more aggressive pruning rates. ",
1492
+ "bbox": [
1493
+ 174,
1494
+ 483,
1495
+ 825,
1496
+ 568
1497
+ ],
1498
+ "page_idx": 13
1499
+ }
1500
+ ]
parse/train/BJe4oxHYPB/BJe4oxHYPB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJe4oxHYPB/BJe4oxHYPB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJleph4KvS/BJleph4KvS.md ADDED
@@ -0,0 +1,455 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HAARPOOLING: GRAPH POOLING WITH COMPRESSIVE HAAR BASIS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Deep Graph Neural Networks (GNNs) are instrumental in graph classification and graph-based regression tasks. In these tasks, graph pooling is a critical ingredient by which GNNs adapt to input graphs of varying size and structure. We propose a new graph pooling operation based on compressive Haar transforms, called HaarPooling. HaarPooling is computed by following a chain of sequential clusterings of the input graph. The input of each pooling layer is transformed by the compressive Haar basis of the corresponding clustering. HaarPooling operates in the frequency domain by the synthesis of nodes in the same cluster and filters out fine detail information by compressive Haar transforms. Such transforms provide an effective characterization of the data and preserve the structure information of the input graph. By the sparsity of the Haar basis, the computation of HaarPooling is of linear complexity. The GNN with HaarPooling and existing graph convolution layers achieves state-of-the-art performance on diverse graph classification problems.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Graph Neural Networks (GNNs) have demonstrated excellent performance in node classification tasks and are very promising in graph classification and regression (Bronstein et al., 2017; Battaglia et al., 2018; Zhang et al., 2018b; Zhou et al., 2018; Wu et al., 2019). In node classification, the input is a single graph with missing node labels that are to be predicted from the known node labels. In this problem, GNNs with appropriate graph convolutions can be trained based on the single graph that is provided, and achieve state-of-the-art performance (Defferrard et al., 2016; Kipf & Welling, 2017; Ma et al., 2019b). Different from node classification, graph classification is a task where the label of any given graph-structured sample is to be predicted based on a training set of labeled graph-structured samples. This is similar to the image classification task tackled by traditional deep convolutional neural networks. The major difference is that here each input sample may have an arbitrary adjacency structure, instead of the fixed regular grids that are used in images. An example of graph-structured data are the molecules of different sizes shown in Figure 1. This raises two important challenges: 1) How can GNNs exploit the graph structure information of the input data? 2) How can GNNs handle input graphs with varying number of nodes and connectivity structures?
12
+
13
+ Figure 1: Graph-structured data: two molecules with atoms as nodes and bonds as edges. Each molecule has a different number of nodes and molecular structure. In graph classification (and regression), each input datum is an individual graph with features defined on the graph nodes (e.g., indicating the chemical element).
14
+
15
+ These problems have motivated the design of proper graph convolution and graph pooling to allow GNNs to capture the geometric information of each data sample (Zhang et al., 2018a; Ying et al., 2018; Cangea et al., 2018; Gao & Ji, 2019; Knyazev et al., 2019; Ma et al., 2019a; Lee et al., 2019). Graph convolution plays an important role especially in question 1).
16
+
17
+ ![](images/b759d6ca4fb8aa82ce8e4c286194881fb22e760fe87df7bbfedd48213ab3706c.jpg)
18
+ Figure 2: Computational flow of a Graph Neural Network consisting of three blocks of GCN graph convolutional and HaarPooling layers, followed by an MLP. In this example, the output feature of the last pooling layer has dimension 4, which is the number of input units of the MLP.
19
+
20
+ The following graph convolution, as proposed by Kipf & Welling (2017), is a widely accepted example:
21
+
22
+ $$
23
+ X ^ { \mathrm { o u t } } = \widehat { A } X ^ { \mathrm { i n } } W .
24
+ $$
25
+
26
+ Here $\widehat { A } = \widetilde { D } ^ { - 1 / 2 } ( A + I ) \widetilde { D } ^ { - 1 / 2 } \in \mathbb { R } ^ { N \times N }$ is a normalized version of the adjacency matrix $A$ of the input graph, where $I$ is the identity matrix and $\widetilde { D }$ is the degree diagonal matrix for $A + I$ . Further, $X ^ { \mathbf { \bar { i } n } } \in \mathbb { R } ^ { \mathbf { \bar { N } } \times d }$ is the array of $d$ e-dimensional features on the $N$ nodes of the graph, and $W \in \mathbb { R } ^ { d \times m }$ is the filter parameter matrix. The graph convolution in equation 1 captures the structural information of the input in terms of $A$ (or $\widehat { A }$ ), and $W$ transforms the feature dimension from $d$ to $m$ . The filter size $d \times m$ does not depend on the graph size, which allows a fixed network architecture to process input graphs of varying size. However, the GCN convolution preserves the number of nodes and hence the output dimension of the network is not unique. Graph pooling provides an effective way to overcome this obstacle. Among several approaches that have been proposed, only EigenPooling (Ma et al., 2019a) incorporates both features and graph structure. However, this is based on eigenpairs of graph Laplacian and suffers from a high computational cost. We provide an overview of this and other graph pooling methods in Section 2.
27
+
28
+ In this paper, we propose a new graph pooling strategy based on a sparse Haar representation of the data, which we call HaarPooling. This is based on the Haar basis (Li et al., 2019), which incorporates graph structure and features, and is computationally efficient. Suppose we have an input $X ^ { \mathrm { i n } } \in \breve { \mathbb R } ^ { N \times d }$ . HaarPooling is then defined as
29
+
30
+ $$
31
+ X ^ { \mathrm { o u t } } = \Phi ^ { T } X ^ { \mathrm { i n } } ,
32
+ $$
33
+
34
+ where $\Phi \in \mathbb { R } ^ { N \times N _ { 1 } }$ , $N _ { 1 } < N$ . Each column of $\Phi$ is a compressive Haar basis vector. By applying HaarPooling in equation 2, the number of nodes is compressed from $N$ to $N _ { 1 }$ . The Haar basis provides a sparse representation which distills graph structural information. Cascading pooling layers we can obtain an output of a fixed dimension, regardless of the size of the inputs. The sparsity of the Haar basis matrix ensures that the computation of HaarPooling is efficient. Generating the Haar basis and computing the Haar transform has a computational cost $\mathcal { O } ( N )$ (up to a log term of $N$ ) for input graphs with $N$ nodes. Experiments in Section 5 demonstrate that GNNs with HaarPooling achieve state-of-the-art performance on various graph classification tasks.
35
+
36
+ This paper is organized as follows. Section 2 gives an overview of existing work on graph pooling. Section 3 details the components and computational flow for HaarPooling. Section 4 provides the mathematical details on HaarPooling, including the compressive Haar basis, compressive Haar transforms, and efficient implementations. Section 5 reports our experimental results on benchmark graph classification tasks compared with existing graph pooling methods. Section 6 concludes the paper. Proofs and implementation details are deferred to the appendix.
37
+
38
+ Graph pooling is a necessary step when building a GNN model for graph classification, as one needs a unified graph-level rather than node-level representation for graph inputs for which size and topology are changing. The most direct pooling method takes the global mean and sum of node representations obtained by the graph convolutional layer (Duvenaud et al., 2015) as a simple graph-level representation. However, this pooling operation treats all the nodes equally and ignores the global geometry of the graph. ChebNet (Defferrard et al., 2016) uses a graph coarsening procedure to build the pooling module, which requires graph clustering algorithms to obtain subgraphs. One drawback of this topology-based strategy is that it does not incorporate the node features in the pooling. Global pooling methods consider the information of node embeddings to obtain the entire graph representation. As a general framework for graph classification problems, MPNN (Gilmer et al., 2017) uses the Set2Set method (Vinyals et al., 2015) to obtain graph-level representations. Zhang et al. (2018a) proposed a SortPool method that sorts feature representation of nodes before feeding them into traditional 1-D convolutional and dense layers. But these global pooling techniques cannot guarantee hierarchical graph representations that may contain useful information in the graph structure. A prominent recent idea is to build a differentiable and data-dependent pooling layer with learnable operations/parameters, which has brought substantial improvements on graph classification tasks. Ying et al. (2018) proposed a differentiable pooling layer (DiffPool) that learns a cluster assignment matrix over the nodes using the output of a GNN model. One common problem with DiffPool is its huge storage complexity, which results from the computation of the soft clustering assignments. Cangea et al. (2018); Gao & Ji (2019); Knyazev et al. (2019) used a Top-K pooling method that samples a subset of important nodes by employing a trainable projection vector. Lee et al. (2019) introduced Self-Attention Graph Pooling (SAGPool) by replacing the way node scores are computed in Top-K pooling by a GCN module. These hierarchical pooling methods technically still employ mean/max pooling procedures to aggregate the feature representation of super-nodes, which would lead to information loss. Diehl et al. (2019) proposed EdgePool which is a scheme which considers edge contraction and thus takes into account of graph structure in pooling.
39
+
40
+ There are also spectral-based pooling methods that take account of both the graph structure and its node features. Noutahi et al. (2019) proposed the Laplacian Pooling (LaPool) method that dynamically selects centroid nodes and their corresponding follower nodes by an attention mechanism that uses the graph Laplacian. Ma et al. (2019a) introduced EigenPool which uses local graph Fourier transform to extract subgraph information utilizing both node features and structure of the subgraph. Its potential drawback lies in the inherent bottleneck of computing Laplacian-based graph Fourier transform, given the huge cost in the eigendecomposition of the graph Laplacian. This shortcoming partially motivates our present work.
41
+
42
+ # 3 HAARPOOLING
43
+
44
+ In this section we give an overview of the proposed HaarPooling framework. First we define the pooling architecture in terms of a chain, i.e., a sequence of graphs $\left( \mathcal { G } _ { 0 } , \mathcal { G } _ { 1 } , \ldots , \mathcal { G } _ { K } \right)$ , where the nodes of each $\mathcal { G } _ { j + 1 }$ correspond to clusters of nodes of $\mathcal { G } _ { j + 1 }$ , $j = 0 , \ldots , K - 1$ . Each layer in the chain determines which sets of nodes are pooled together. Then we construct the compressive Haar transform, which compresses the dimension of the features.
45
+
46
+ Chain of coarse-grained graphs for pooling Graph pooling amounts to defining a sequence of coarse-grained graphs. In our chain, each graph is an induced graph that arises from grouping (clustering) certain subsets of nodes from the previous graph. We use clustering algorithms to generate the groupings of nodes. There are many good candidates, such as spectral clustering (Shi & Malik, 2000), $k$ -means clustering (Pakhira, 2014), DBSCAN (Ester et al., 1996), OPTICS (Ankerst et al., 1999) and METIS (Karypis & Kumar, 1998). Any of these will work with HaarPooling.
47
+
48
+ Figure 3 shows an example of a chain with 3 levels, for an input graph $\mathcal { G } _ { 0 }$ .
49
+
50
+ Compressive Haar transforms on chain For each layer of the chain, we will have a feature representation. We define these in terms of the Haar basis. Haar basis represents graph-structured data by low and high frequency Haar coefficients in frequency domain. The low frequency coefficients contain the coarse information of the original data while the high frequency coefficients contain the fine details. In the HaarPooing, the data is pooled (or compressed) by discarding fine detail information.
51
+
52
+ ![](images/ebcc57a74cea276f9027d11b9ce8cf8eed8e5f480c7f1cadd80fec3edd65a1b4.jpg)
53
+ Figure 3: A coarse-grained chain of graphs, where the input has 8 nodes, the second level has 3 nodes, and the top level has single node.
54
+
55
+ The Haar basis can be compressed in each layer. Consider a chain where at level $j$ the two subsequent graphs have $N _ { j + 1 }$ and $N _ { j }$ nodes, $N _ { j + 1 } < N _ { j }$ . For each of these graphs, we can create a Haar basis with $N _ { j + 1 }$ and $N _ { j }$ elements, respectively. The elements of the smaller layer are obtained by compressing a subset of the elements from the other layer. These new vectors form the matrix $\Phi _ { j }$ of size $N _ { j + 1 } \times N _ { j }$ . We call $\Phi _ { j }$ compressive Haar basis matrix for this particular $j$ th layer. This then defines the compressive Haar transform $\Phi _ { j } ^ { T } X ^ { \mathrm { i n } }$ for feature $X ^ { \mathrm { i n } }$ with size $N _ { j } \times d$ .
56
+
57
+ Computational strategy of HaarPooling The HaarPooling is then defined as follows.
58
+
59
+ Definition 1 (HaarPooling). The HaarPooling for a graph neural network with $K$ pooling layers is defined as
60
+
61
+ $$
62
+ X _ { j } ^ { \mathrm { o u t } } = \Phi _ { j } ^ { T } X _ { j } ^ { \mathrm { i n } } , \quad j = 0 , 1 , \ldots , K - 1 ,
63
+ $$
64
+
65
+ where $N _ { j } > N _ { j + 1 }$ and $N _ { K } = 1$ , $\Phi _ { j }$ or $\Phi _ { N _ { j } \times N _ { j + 1 } } ^ { ( j ) }$ is the $N _ { j } \times N _ { j + 1 }$ compressive Haar basis matrix for the jth layer, $X _ { j } ^ { \mathrm { i n } } \in \mathbb { R } ^ { N _ { j } \times d _ { j } }$ is the input feature array, and $X _ { j } ^ { \mathrm { o u t } } \in \mathbb { R } ^ { N _ { j + 1 } \times d _ { j } }$ feature array. The corresponding layer is called HaarPooling layer.
66
+
67
+ HaarPooling has following key properties.
68
+
69
+ • The HaarPooling reduces layer by layer the first dimension of input feature. In the last pooling layer, the output feature is compressed as a vector with length $d _ { K - 1 }$ and each original input sample would generate such a vector with the same length. This then makes it possible to deal with input graph-structured data with different size and structure.
70
+ • The HaarPooling uses the sparse Haar representation on chain structure. In each HaarPooling layer, the representation then combines the features of input $X _ { j } ^ { \mathrm { i n } }$ with the geometric information of the graphs of the $j$ th and $( j + 1 )$ th layers of the chain.
71
+ • By the property of Haar basis, the HaarPooling only drops the high frequency (or detailed) information of the input data. The $X _ { j } ^ { \mathrm { o u t } }$ has good approximation to $X _ { j } ^ { \mathrm { i n } }$ . Thus, the major data information (i.e. the low frequency coefficients) is preserved in the pooling, and the loss of the information is small.
72
+ Since the Haar basis matrix is very sparse, HaarPooling can be computed very fast, with near linear computational complexity.
73
+
74
+ Example Figure 4 shows the computational details of the HaarPooling associated with the chain is transformed by the compressvectors of the full Haar basis from Figure 3. There are two HaarPooling layers. In the first layer, the input aar basis matrix in (a), and out $\Phi _ { 8 \times 3 } ^ { ( 0 ) }$ w a nsists ofmatrix $X _ { 1 } ^ { \mathrm { i n } }$ with size rst three column. In the second $8 \times d _ { 1 }$ $\Phi _ { 8 \times 8 } ^ { ( 0 ) }$ $3 \times d _ { 1 }$ $X _ { 1 } ^ { \mathrm { o u t } }$ layer, the input $X _ { 2 } ^ { \mathrm { i n } }$ with size $3 \times d _ { 2 }$ (usually $X _ { 1 } ^ { \mathrm { o u t } }$ followed by convolution) is transformed by the compressive Haar matrix $\Phi _ { 3 \times 1 } ^ { ( 1 ) }$ which is the first column vector of the full Haar basis matrix $\Phi _ { 3 \times 3 } ^ { ( 1 ) }$ in (b). By the construction of the Haar basis in relation to the chain (details in Appendix B), each of the first three column vectors $\phi _ { 1 } ^ { ( 0 ) } , \phi _ { 2 } ^ { ( 0 ) }$ and $\phi _ { 3 } ^ { ( 0 ) }$ of $\Phi _ { 8 \times 3 } ^ { ( 0 ) }$ has only up to three different values. This bound is exactly the number of nodes of $\mathcal { G } _ { 1 }$ . For each column $\phi _ { \ell } ^ { ( 0 ) }$ , all nodes with the same parent take the same value. Similarly, the $3 \times 1$ vector $\phi _ { 1 } ^ { ( 1 ) }$ is constant. This means that the HaarPooling
75
+
76
+ (a) First HaarPooling Layer for $\mathcal { G } _ { 0 } \mathcal { G } _ { 1 }$
77
+
78
+ ![](images/48e28b8ff7510c6076983245f06e8d85fcd8c28a2b3a73ab5e477f9295cd2b28.jpg)
79
+ Figure 4: Computational strategy of HaarPooling. We use the chain in Figure 3 and then there are two HaarPooling layers in the network from $\mathcal { G } _ { 0 } \mathcal { G } _ { 1 }$ and $\mathcal { G } _ { 1 } \mathcal { G } _ { 2 }$ respectively. The input of each layer is pooled by the compressive Haar transform for each layer: in the first layer input $X _ { 1 } ^ { \mathrm { i n } } = ( x _ { i , j } ) \in \mathbb { R } ^ { 8 \times d _ { 1 } }$ is transformed by the compressive Haar basis matrix $\Phi _ { 8 \times 3 } ^ { ( 0 ) }$ with size $8 \times 3$ formed by the first three column vectors, and the output is a feature array with size $3 \times d _ { 1 }$ ; in the second layer $X _ { 2 } ^ { \mathrm { i n } } = ( y _ { i , j } ) \in \mathbb { R } ^ { 3 \times d _ { 2 } }$ is transformed by the first column vector $\Phi _ { 3 \times 1 } ^ { ( 1 ) }$ and the output is a feature vector with size $1 \times d _ { 2 }$ . In the plots of Haar basis matrix, the colors indicate the value of the entries of the Haar basis matrix.
80
+
81
+ synthesizes the node feature by adding the same weight to the nodes that are in the same cluster of the coarser layer, and in this way, pools the feature using the graph clustering information.
82
+
83
+ # 4 MATHEMATICS AND COMPUTATION FOR HAARPOOLING
84
+
85
+ Chain of graphs by clustering For a graph $\mathcal { G } = ( V , E , w )$ , where $V , E , w$ are the vertices, edges, and weights on edges, a graph $\mathcal { G } ^ { \mathrm { c g } } : = ( V ^ { \mathrm { c g } } , E ^ { \mathrm { c g } } , w ^ { \mathrm { c g } } )$ is a coarse-grained graph of $\mathcal { G }$ if $| V ^ { \mathrm { c g } } | \leq | V |$ and each node of $\mathcal { G }$ has only one parent node in ${ \mathcal { G } } ^ { \mathrm { c g } }$ associated with it. Each node of $\mathcal G ^ { \mathrm { c g } }$ is called a cluster of $\mathcal { G }$ . For integers $J > 0$ , a coarse-grained chain for $\mathcal { G }$ is a sequence of graphs $\mathcal { G } _ { 0 J } : =$ $( \mathcal { G } _ { 0 } , \mathcal { G } _ { 1 } , \ldots , \mathcal { G } _ { J } )$ with $\mathcal { G } _ { 0 } = \mathcal { G }$ and such that $\mathcal { G } _ { j + 1 }$ is a coarse-grained graph of $\mathcal { G } _ { j } = ( V _ { j } , E _ { j } , w _ { j } )$ for each $j = 0 , 1 , \ldots , J - 1$ , and $\mathcal { G } _ { J }$ has only one node. Here, we call the graph $\dot { \mathcal { G } } _ { J }$ the top level or the coarsest level and $\mathcal { G } _ { 0 }$ the bottom level or the finest level. The chain $\mathcal { G } _ { 0 J }$ hierarchically coarsens graph $\mathcal { G }$ . We use the notation $J + 1$ for the number of layers of the chain to distinguish the number $K$ of layers for pooling. The chain for graph $\mathcal { G }$ can be created by any clustering method. For details about graphs and chains, we refer the reader to the examples by Chung & Graham (1997); Hammond et al. (2011); Chui et al. (2015; 2018); Wang & Zhuang (2018; 2019).
86
+
87
+ # 4.1 COMPRESSIVE HAAR TRANSFORMS
88
+
89
+ Haar basis The construction of Haar basis is rooted in the theory of Haar wavelet basis which was first introduced by Haar (1910). It is a special example of the more general Daubechies wavelets (Daubechies, 1992). Haar basis is later constructed on graph by Belkin et al. (2006), and also Chui et al. (2015); Wang & Zhuang (2018; 2019). The construction of the Haar basis is based on a chain of the graph. If the topology of the graph is well reflected by the clustering of the chain, then the Haar basis contains the crucial geometric information of the graph. For a chain $\mathcal { G } _ { 0 J }$ , on the $j$ th-layer graph $\mathcal { G } _ { j }$ , $j = 0 , \dots , J$ , there is a basis $\{ \phi _ { \ell } ^ { ( j ) } \} _ { \ell = 0 } ^ { N _ { j } }$ defined on , where is the size of $\mathcal { G } _ { j }$ and $N _ { j + 1 } < N _ { j }$ $j = 0 , \ldots , J - 1$ . Suppose two consecutive layers $j , j + 1$ . The first $N _ { j + 1 }$ members of $\phi _ { \ell } ^ { ( j ) }$ , $\ell = 1 , \ldots , N _ { j + 1 }$ , are defined on the finer layer $j + 1$ , and can be reduced into the $\phi _ { \ell } ^ { ( j + 1 ) }$ , $\ell = 1 , \dots , N _ { j + 1 }$ , as follows. For first $\ell = 1 , \dots , N _ { j + 1 }$ $\phi _ { \ell } ^ { ( j ) } ( v ) = \phi _ { \ell } ^ { ( j + 1 ) } ( P a _ { \mathcal { G } } ( v ) ) / \sqrt { | P a _ { \mathcal { G } } ( v ) | }$ , i.e. the value of the $\phi _ { \ell } ^ { ( j ) } ( v )$ is equal to the scaled $\phi _ { \ell } ^ { ( j + 1 ) }$ at the parent $P a _ { \cal G } ( v )$ of $v$ and the scaled factor is one on square root of the number of nodes in the cluster which $v$ lies in. It means that $\phi _ { \ell } ^ { ( j ) } ( v )$ for $v$ sharing the parent have the same value. This property is critical to pooling as $\phi _ { \ell } ^ { ( j ) } ( v )$ can then be treated as weights for the graph $\mathcal { G } _ { j }$ on which the input feature defined, and the nodes gain the same weight if they are in the same cluster. On the other hand, the remaining Haar basis vectors $\phi _ { \ell } ^ { ( j ) }$ for $\ell = N _ { j + 1 } { + } 1 , \ldots , N _ { j }$ are constructed to reflect the high-frequency information in the Haar wavelet decomposition. This property is exploited by the compressive Haar basis which then pools the input feature into a lower (first) dimension output feature. The construction and its pseudo-codes for algorithmic implementation of the full Haar basis is detailed in Li et al. (2019); Wang & Zhuang (2019), which we also attach in the appendix. Let {φ(j)\` }Nj\`=1, $j = 0 , \dots , J$ , be the sequence of Haar bases associated with the layers of chain $\mathcal { G } _ { 0 J }$ of a graph $\mathcal { G }$ . For $j = 0 , \dots , J$ , we let the matrix $\widetilde { \Phi } _ { j } = ( \phi _ { 1 } ^ { ( j ) } , \dots , \phi _ { N _ { j } } ^ { ( j ) } ) \in \mathbb { R } ^ { N _ { j } \times N _ { j } }$ and call the matrix $\widetilde { \Phi } _ { j }$ Haar transform matrix for layer $j$ .
90
+
91
+ Orthogonality For each level $j = 0 , \dots , J$ , the sequence $\{ \phi _ { \ell } ^ { ( j ) } \} _ { \ell = 1 } ^ { N _ { j } }$ , with $N _ { j } : = | V _ { j } |$ , is an for the sp. For each c, $l _ { 2 } ( \mathcal { G } _ { j } )$ f square-summable sequences on theis the Haar basis system for the chain . $\mathcal { G } _ { j }$ , so that $( \phi _ { \ell } ^ { ( j ) } ) ^ { T } \phi _ { \ell ^ { \prime } } ^ { ( j ) } = \delta _ { \ell , \ell ^ { \prime } }$ $j$ $\{ \phi _ { \ell } ^ { ( j ) } \} _ { \ell = 1 } ^ { N _ { j } }$ $\mathcal { G } _ { j J }$
92
+
93
+ Locality Let $\mathcal { G } _ { 0 J }$ be a coarse-grained chain for $\mathcal { G }$ . If each parent of level $\mathcal { G } _ { j }$ , $j = 1 , \dotsc , J$ , contains at least two children, the number of different scalar values of the components of a Haar basis vector $\phi _ { \ell } ^ { ( j ) }$ , $\ell = 1 , \ldots , N _ { j }$ , is bounded by a constant independent of $j$ .
94
+
95
+ In Figure 4, the Haar basis is created based on the coarse-grained chain $\mathcal { G } _ { 0 \to 2 } : = ( \mathcal { G } _ { 0 } , \mathcal { G } _ { 1 } , \mathcal { G } _ { 2 } )$ , where $\mathcal { G } _ { 0 } , \mathcal { G } _ { 1 } , \mathcal { G } _ { 2 }$ are graphs with $8 , 3 , 1$ nodes. The two colorful matrices show two Haar bases for the layers 0 and 1 in the chain $\mathcal { G } _ { 0 2 }$ . There are in total 8 vectors of the Haar basis for $\mathcal { G } _ { 0 }$ each with length 8, and 3 vectors of the Haar basis for $\mathcal { G } _ { 1 }$ each with length 3. Haar basis matrix for each level of the chain has up to 3 different values in each column as indicated by colors in each matrix. For $j = 0 , 1$ , each node of $\mathcal { G } _ { j }$ is a cluster of nodes in $\mathcal { G } _ { j + 1 }$ . Each column of the matrix is a member of the Haar basis on the individual layer of the chain. The first three column vectors of $\widetilde { \Phi } _ { 1 }$ can be reduced as an orthonormal basis of $\mathcal { G } _ { 1 }$ and the first column vector of $\mathcal { G } _ { 1 }$ can be compressed to the constant basis for $\mathcal { G } _ { 2 }$ . This connection ensures that the compressive Haar transform for HaarPooling is feasible and would allow fast algorithms of HaarPooling (see Section 4.2 below).
96
+
97
+ Adjoint and forward Haar transforms We use adjoint Haar transforms for HaarPooling, which as the sparsity of the Haar basis matrix, the transform is fast implementable. The adjoint Haar transform for the signal $f$ on $\mathcal { G } _ { j }$ is defined as
98
+
99
+ $$
100
+ ( \widetilde { \Phi } _ { j } ) ^ { T } f = \left( \sum _ { v \in V } \phi _ { 1 } ^ { ( j ) } ( v ) f ( v ) , \ldots , \sum _ { v \in V } \phi _ { N _ { j } } ^ { ( j ) } ( v ) f ( v ) \right) \in \mathbb { R } ^ { N _ { j } } ,
101
+ $$
102
+
103
+ and the forward Haar transform for (coefficients) vector $c : = ( c _ { 1 } , \ldots , c _ { N _ { j } } ) \in \mathbb { R } ^ { N _ { j } }$ .
104
+
105
+ $$
106
+ ( \widetilde { \Phi } _ { j } c ) ( v ) = \sum _ { \ell = 1 } ^ { N _ { j } } \phi _ { \ell } ^ { ( j ) } ( v ) c _ { \ell } , \quad v \in V _ { j } .
107
+ $$
108
+
109
+ We call the components of $( \widetilde { \Phi } _ { j } ) ^ { T } f$ the Haar (wavelet) coefficients for $f$ . The adjoint Haar transform represents the signal in Haar wavelet domain by computing the Haar coefficients for graph signal. Here the adjoint and forward Haar transforms can be extended to a feature data with size $N _ { j } \times d _ { j }$ by replacing the column vector $f$ by the feature array.
110
+
111
+ Proposition 2. The adjoint and forward Haar Transforms are invertible in that for $j = 0 , \dots , J$ and vector $f$ on graph $\mathcal { G } _ { j }$ ,
112
+
113
+ $$
114
+ f = \widetilde { \Phi } _ { j } ( \widetilde { \Phi } _ { j } ) ^ { T } f .
115
+ $$
116
+
117
+ Proposition 2 shows that the forward Haar transform can recover the graph signal $f$ from the adjoint Haar transform $( \widetilde { \Phi } _ { j } ) ^ { T } f$ . This means that adjoint and forward Haar transforms have zero-loss in graph signal transmission.
118
+
119
+ Compressive Haar transforms Now for a graph neural network, suppose we want to use $K$ pooling layers. We associate the chain $\mathscr { G } _ { 0 \to K }$ of an input graph with the pooling by linking the $j$ th layer of pooling with the $j$ th layer of the chain. Then, we can use the Haar basis system on the chain to define the pooling operation. By the property of Haar basis, in the Haar transforms for layer $j$ , $0 \leq$ $j \le K - 1$ , of the $N _ { j }$ Haar coefficients, the first $N _ { j + 1 }$ coefficients are low-frequency coefficients, which reflect the approximation to the original data, and the other $\left( N _ { j } - N _ { j + 1 } \right)$ coefficients are in high frequency, which contain fine details of the Haar wavelet decomposition. To define pooling, we remove the high-frequency coefficients in Haar wavelet representation and obtain the compressive Haar transforms for the feature $X _ { j } ^ { \mathrm { i n } }$ at layers $j = 0 , \ldots , K - 1$ , which then gives the HaarPooling in Definition 1.
120
+
121
+ As shown in the following formula, the compressive Haar transform synthesizes the neighbourhood information of the signal $f$ as compared to the full Haar transform. Thus, HaarPooling takes the average information of the data $f$ over nodes in the same cluster.
122
+
123
+ $$
124
+ \big \lVert \Phi _ { j } ^ { T } X _ { j } ^ { \mathrm { i n } } \big \rVert ^ { 2 } = \sum _ { p \in \mathcal { G } _ { j + 1 } } \frac { 1 } { | P a ( v ) | } \Big | \sum _ { p = P a ( v ) } X _ { j } ^ { \mathrm { i n } } ( v ) \Big | ^ { 2 } , \quad \Big \lVert \tilde { \Phi } _ { j } ^ { T } X _ { j } ^ { \mathrm { i n } } \Big \rVert ^ { 2 } = \sum _ { p \in \mathcal { G } _ { j + 1 } } \sum _ { p = P a ( v ) } \Big | X _ { j } ^ { \mathrm { i n } } ( v ) \Big | ^ { 2 } ,
125
+ $$
126
+
127
+ where $\widetilde { \Phi } _ { j }$ is the full Haar basis matrix at the $j$ th layer and $| P a g ( v ) |$ means the number of nodes in the cluster which $v$ lies in. Here, in the first equation, $1 / \sqrt { | P a _ { \mathcal { G } } ( v ) | }$ can be taken out of summation as $P a ( v )$ is in fact a set of nodes. We show the derivation of formula in equation 5 in Appendix D.
128
+
129
+ In HaarPooling, the compression or pooling occurs in the Haar wavelet domain. HaarPooling transforms the features on the nodes to the Haar wavelet domain and discards the high-frequency coefficients in the sparse Haar wavelet representation. Figure 4 shows a two-layer HaarPooling strategy. The first layer pools the input $X _ { 0 } ^ { \mathrm { i n } }$ by the compressive Haar basis matrix $\Phi _ { 8 \times 3 } ^ { ( 0 ) }$ to the output $X _ { 0 } ^ { \mathrm { o u t } }$ with lower first dimension. The second layer pools the input $X _ { 1 } ^ { \mathrm { i n } }$ by the $\Phi _ { 3 \times 1 } ^ { ( 1 ) }$ to the output $X _ { 1 } ^ { \mathrm { o u t } }$ which first dimension drops to one.
130
+
131
+ # 4.2 FAST COMPUTATION OF HAARPOOLING
132
+
133
+ For the HaarPooling introduced in Definition 1, we can develop a fast computational strategy by virtue of fast adjoint Haar transforms. Let $\mathscr { G } _ { 0 \to K }$ be a coarse-grained chain of the graph $\mathcal { G } _ { 0 }$ . For convenience, we label the vertices of the level- $j$ graph $\mathcal { G } _ { j }$ by $V _ { j } : = \{ v _ { 1 } ^ { ( j ) } , \ldots , v _ { N _ { j } } ^ { ( j ) } \}$ .
134
+
135
+ Fast algorithm for HaarPooling The HaarPooling in equation 3 can be computed fast by using the hierarchical structure of the chain, as we introduce as follows. For $j = 1 , \ldots , K$ , let $c _ { k } ^ { ( j ) }$ be the number of children of $v _ { k } ^ { ( j ) }$ , i.e. the number of vertices of $\mathcal { G } _ { j - 1 }$ which belongs to the cluster $v _ { k } ^ { ( j ) }$ for $k = 1 , \ldots , N _ { j }$ . For $j = 0$ , we let $c _ { k } ^ { ( 0 ) } \equiv 1$ for $k = 1 , \ldots , N _ { 0 }$ . Now, for $j = 0 , \ldots , K$ and $k = 1 , \dots , N _ { j }$ , define the weight for the node $v _ { k } ^ { ( j ) }$ of layer $j$ by
136
+
137
+ $$
138
+ w _ { k } ^ { ( j ) } : = \frac { 1 } { \sqrt { c _ { k } ^ { ( j ) } } } .
139
+ $$
140
+
141
+ Let $W _ { 0 \to K } : = \{ w _ { k } ^ { ( j ) } | j = 0 , \dots , K , k = 1 , \dots , N _ { j } \}$ . Then, for $j = 0 , \ldots , K$ , the weighted chain $( \mathscr { G } _ { j \to K } , W _ { j \to K } )$ becomes a filtration if each parent of the chain $\mathscr { G } _ { j K }$ has at least two children. See e.g. (Chui et al., 2015, Definition 2.3).
142
+
143
+ Let $j = 0 , \ldots , K$ . For the $j$ th HaarPooling layer, let $\{ \phi _ { \ell } ^ { ( j ) } \} _ { \ell = 1 } ^ { N _ { j } }$ be the Haar basis for the $j$ th layer, which we also call the Haar basis for the filtration $( \mathscr { G } _ { j \to K } , W _ { j \to K } )$ $k = 1 , \dots , N _ { j }$ we let $X ( v _ { k } ^ { ( j ) } ) = X ( v _ { k } ^ { ( j ) } , \cdot ) \in \mathbb { R } ^ { d _ { j } }$ the feature vector at node $v _ { k } ^ { ( j ) }$ . We define the weighted sum for feature $X \in \mathbb { R } ^ { N _ { j } \times d _ { j } }$ for $d _ { j } \geq 1$ by
144
+
145
+ $$
146
+ \begin{array} { r } { S ^ { ( j ) } \big ( X , v _ { k } ^ { ( j ) } \big ) : = X ( v _ { k } ^ { ( j ) } ) , \quad v _ { k } ^ { ( j ) } \in \mathcal { G } _ { j } , } \end{array}
147
+ $$
148
+
149
+ Input: Input feature $X _ { j } ^ { \mathrm { i n } }$ for the $j$ th pooling layer given $j = 0 , \ldots , K - 1$ in a GNN with total $K$ HaarPooling layers; the chain $\mathscr { G } _ { j K }$ associated with the HaarPooling; numbers $N _ { i }$ of nodes for layers $i = j , \ldots , K$ .
150
+
151
+ Output: $\Phi _ { j } ^ { T } X _ { j } ^ { \mathrm { i n } }$ from Definition 1.
152
+
153
+ Step 1: Evaluate the sums for $i = j , \dots , K$ recursively, using equation 7 and equation 8: $\bar { S } ^ { ( i ) } ( X _ { j } ^ { \mathrm { i n } } , v _ { k } ^ { ( i ) } ) \quad \forall v _ { k } ^ { ( i ) } \in V _ { i }$ .
154
+
155
+ # Step 2:
156
+
157
+ # end for
158
+
159
+ and recursively, for $i = j + 1 , \dots , K$ and $v _ { k } ^ { ( i ) } \in \mathcal G _ { i }$
160
+
161
+ $$
162
+ \mathcal { S } ^ { ( i ) } \big ( X , v _ { k } ^ { ( i ) } \big ) : = \sum _ { v _ { k ^ { \prime } } ^ { ( i - 1 ) } \in v _ { k } ^ { ( i ) } } w _ { k ^ { \prime } } ^ { ( i - 1 ) } \mathcal { S } ^ { ( i - 1 ) } \big ( X , v _ { k ^ { \prime } } ^ { ( i - 1 ) } \big ) .
163
+ $$
164
+
165
+ For each vertex $v _ { k } ^ { ( i ) }$ of $\mathcal { G } _ { i }$ , the $S ^ { ( i ) } \big ( X , v _ { k } ^ { ( i ) } \big )$ is the weighted sum of the $\begin{array} { r l } { { S ^ { ( i - 1 ) } \big ( X , v _ { k ^ { \prime } } ^ { ( i - 1 ) } \big ) } } \end{array}$ at the level $i - 1$ for those vertices $v _ { k ^ { \prime } } ^ { ( i - 1 ) }$ of $\mathcal { G } _ { i - 1 }$ whose parent is $v _ { k } ^ { ( i ) }$ .
166
+
167
+ Theorem 3. For $0 \leq j \leq K - 1 _ { \mathrm { { \cdot } } }$ let $\{ \phi _ { \ell } ^ { ( i ) } \} _ { \ell = 1 } ^ { N _ { i } }$ for $i = j + 1 , . . . , K$ be the Haar bases for the $( \mathscr { G } _ { j \to K } , W _ { j \to K } )$ at layer $i$ . Then, the compressive Haar transform for the jth HaarPooling layer can be computed by, for the feature $X \in \mathbb { R } ^ { N _ { j } \times d _ { j } }$ and $\ell = 1 , \ldots , N _ { j }$ ,
168
+
169
+ $$
170
+ \left( \Phi _ { j } ^ { T } X \right) _ { \ell } = \sum _ { k = 1 } ^ { N _ { i } } \mathcal { S } ^ { ( i ) } \big ( X , v _ { k } ^ { ( i ) } \big ) w _ { k } ^ { ( i ) } \phi _ { \ell } ^ { ( i ) } ( v _ { k } ^ { ( i ) } ) ,
171
+ $$
172
+
173
+ where i is the largest possible number in $\{ j + 1 , \ldots , K \}$ such that $\phi _ { \ell } ^ { ( i ) }$ is the \`th member of the orthonormal basis $\{ { \phi } _ { \ell } ^ { ( i ) } \} _ { \ell = 1 } ^ { N _ { i } } f o r l _ { 2 } ( \mathcal { G } _ { i } ) _ { \ell }$ , $v _ { k } ^ { ( i ) }$ are the vertices of $\mathcal { G } _ { i }$ \`and the weights $w _ { k } ^ { ( i ) }$ are given by
174
+
175
+ We give the algorithmic implementation of Theorem 3 in Algorithm 1, which provides a fast algorithm for HaarPooling at each layer.
176
+
177
+ Computational complexity With increasing graph size, the sparsity of the Haar basis matrix $\widetilde { \Phi } _ { j }$ becomes more pronounced (Li et al., 2019). This sparsity implies fast computation for HaarPooling. The computational complexity of HaarPooling is determined by the adjoint Haar transforms. In the first step of Algorithm 1, the total number of summations for all elements of Step 1 is no more than $\textstyle \sum _ { i = 0 } ^ { j - 1 } { \bar { N } } _ { i + 1 }$ ; In the second step, by the locality of the Haar basis, the total number of multiplication and summation operations is at most $\begin{array} { r } { 2 \sum _ { \ell = 1 } ^ { N _ { j } } C = \mathcal { O } ( N _ { j } ) } \end{array}$ . Here $C$ is the constant which bounds the number of different values of the Haar basis vector. Thus, the computational cost of Algorithm 1 is $\mathcal { O } ( N _ { j } )$ .
178
+
179
+ We run an experiment to evaluate the CPU computational time of HaarPooling by Algorithm 1 against the direct matrix product. We use randomly generated graphs and features with size ranging from 2 to 5000. As shown in Figure 5, the fast HaarPooling has computational cost nearly proportional to the number of nodes $N$ , while the ordinary matrix product incurs a cost close to order $\overset { \cdot } { \mathcal { O } } ( N ^ { 2 } )$ . These results are consistent with the computational complexity analysis given above.
180
+
181
+ ![](images/e73b5b95324181e7c129072fc4b2e2927730608cd35c2da06e5499cc3a0e0a7f.jpg)
182
+ Figure 5: Comparison for fast computation and direct matrix product for HaarPooling for input feature array with up to 5000 nodes. The cost of HaarPooling has near linear computational complexity. The cost of direct matrix product grows at $\mathcal { O } ( N ^ { 2 . 1 } )$ .
183
+
184
+ # 5 EXPERIMENTS
185
+
186
+ Data sets To verify whether the proposed framework can hierarchically learn good graph representations for classification, we evaluate HaarPooling on five widely used benchmark data sets for graph classification (Kersting et al., 2016), including one protein graph data set PROTEINS (Borgwardt et al., 2005; Dobson & Doig, 2003); two mutagen data sets MUTAG (Debnath et al., 1991; Kriege & Mutzel, 2012) and MUTAGEN (Riesen & Bunke, 2008; Kazius et al., 2005) (full name Mutagenicity); and two data sets that consist of chemical compounds screened for activity against non-small cell lung cancer and ovarian cancer cell lines, NCI1 and NCI109 (Wale et al., 2008). We include data sets from different domains, sample and graph sizes to give a comprehensive understanding of how HaarPooling performs with data sets in various scenarios. A summary information of the data sets is given in Table 1, which shows the data sets containing graphs with different sizes and structures: the number of data samples ranges from 188 to 4,337, the average number of nodes is from 17.93 to 39.06 and the average number of edges is from 19.79 to 72.82.
187
+
188
+ Table 1: Summary statistics of the data sets used in our experiments
189
+
190
+ <table><tr><td>Data Set</td><td>MUTAG</td><td>PROTEINS</td><td>NCI1</td><td>NCI109</td><td>MUTAGEN</td></tr><tr><td>max #nodes</td><td>28</td><td>620</td><td>111</td><td>111</td><td>417</td></tr><tr><td>min #nodes</td><td>10</td><td>4</td><td>3</td><td>4</td><td>4</td></tr><tr><td>avg #nodes</td><td>17.93</td><td>39.06</td><td>29.87</td><td>29.68</td><td>30.32</td></tr><tr><td>avg #edges</td><td>19.79</td><td>72.82</td><td>32.30</td><td>32.13</td><td>30.77</td></tr><tr><td>#graphs</td><td>188</td><td>1,113</td><td>4,110</td><td>4,127</td><td>4,337</td></tr><tr><td>#classes</td><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td></tr></table>
191
+
192
+ Baselines and running environment We compare HaarPool with SortPool (Zhang et al., 2018a), DiffPool (Ying et al., 2018), gPool (Gao & Ji, 2019), SAGPool (Lee et al., 2019), EigenPool (Ma et al., 2019a), CSM (Kriege & Mutzel, 2012) and GIN (Xu et al., 2019) on the above data sets. The experiments use PyTorch Geometric1 (Fey & Lenssen, 2019) and were run in Google Cloud using 4 Nvidia Telsa T4 with 2560 CUDA cores, compute 7.5, 16GB GDDR6 VRAM.
193
+
194
+ Training procedures In experiments, we use a GNN with at most 3 GCN (Kipf & Welling, 2017) convolutional layers plus one HaarPooling layer, followed by three fully connected layers. The hyperparameters of the network are adjusted case by case. We use spectral clustering, which exploits the eigenvalues of the graph Laplacian, to generate a chain with the number of layers given. Spectral clustering has shown good performance in coarsening a variety of data patterns and can handle isolated nodes.
195
+
196
+ We use random shuffling of the data set, which we split into training, validation, and test sets with proportions $8 0 \%$ , $1 0 \%$ and $1 0 \%$ respectively. We use the Adam optimizer (Kingma & Ba, 2015), early stopping criterion, patience. The specific values are provided in the appendix. The early stopping criterion was that the validation loss does not improve for 50 epochs, with a maximum of 150 epochs, as suggested by Shchur et al. (2018).
197
+
198
+ Results The classification test accuracy is reported in Table 6. GNNs with HaarPooling have excellent performance on all data sets. In 4 out of 5 datasets, it achieved top accuracy. This shows that HaarPooling with appropriate graph convolution, can achieve top performance on a variety of graph classification tasks, and in some cases improve state of the art by a few percent points.
199
+
200
+ Table 2: Performance comparison for graph classification tasks (test accuracy in percent, showing the standard deviation over 10 repetitions of the experiment).
201
+
202
+ <table><tr><td>Method</td><td>MUTAG</td><td>PROTEINS</td><td>NCI1</td><td>NCI109</td><td>MUTAGEN</td></tr><tr><td>CSM</td><td>85.4</td><td>1</td><td>1</td><td>1</td><td></td></tr><tr><td>GIN</td><td>89.4</td><td>76.2</td><td>82.7</td><td>1</td><td>1 1</td></tr><tr><td>SortPool</td><td>85.8</td><td>75.5</td><td>74.4</td><td>72.3*</td><td>78.8*</td></tr><tr><td>DiffPool</td><td>1</td><td>76.3</td><td>76.0*</td><td>74.1*</td><td>80.6*</td></tr><tr><td>gPool</td><td>1</td><td>77.7</td><td>1</td><td>1</td><td>1</td></tr><tr><td>SAGPool</td><td>1</td><td>72.1</td><td>74.2</td><td>74.1</td><td>1</td></tr><tr><td>EigenPool</td><td>二</td><td>76.6</td><td>77.0</td><td>74.9</td><td>79.5</td></tr><tr><td>HaarPool</td><td>90.0±3.6</td><td>80.4±1.8</td><td>78.6±0.5</td><td>75.6±1.2</td><td>80.9±1.5</td></tr></table>
203
+
204
+ ‘\*’ means that the records are retrieved from EigenPool (Ma et al., 2019a), ‘–’ means that there is no public records for the corresponding method on the data set, and the bold number indicates the best performance in the list.
205
+
206
+ # 6 CONCLUSION
207
+
208
+ We introduced a new graph pooling method called HaarPooling. HaarPooling has a mathematical formalism derived from compressive Haar transforms. Unlike existing graph pooling methods, HaarPooling takes into account both the graph structure and also the features over the nodes of the graph-structured input data, to compute a coarsened representation. As an individual unit, HaarPooling can be applied in conjunction with any type of graph convolution in GNNs. We show in experiments that HaarPooling reaches state of the art in several benchmark graph classification tasks. Moreover, having only linear computational complexity in the size of the inputs, HaarPooling is a very fast pooling method.
209
+
210
+ # REFERENCES
211
+
212
+ Mihael Ankerst, Markus M Breunig, Hans-Peter Kriegel, and Jorg Sander. Optics: ordering points¨ to identify the clustering structure. In ACM Sigmod Record, volume 28, pp. 49–60. ACM, 1999.
213
+
214
+ Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
215
+
216
+ Mikhail Belkin, Partha Niyogi, and Vikas Sindhwani. Manifold regularization: A geometric framework for learning from labeled and unlabeled examples. Journal of Machine Learning Research, 7(Nov):2399–2434, 2006.
217
+
218
+ Karsten M Borgwardt, Cheng Soon Ong, Stefan Schonauer, SVN Vishwanathan, Alex J Smola, and ¨ Hans-Peter Kriegel. Protein function prediction via graph kernels. Bioinformatics, 21(suppl 1): i47–i56, 2005.
219
+
220
+ Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017.
221
+
222
+ Cat˘ alina Cangea, Petar Veli ˘ ckovi ˇ c, Nikola Jovanovi ´ c, Thomas Kipf, and Pietro Li ´ o. Towards sparse \` hierarchical graph classifiers. In Workshop on Relational Representation Learning, NeurIPS, 2018.
223
+
224
+ C. K. Chui, H.N. Mhaskar, and X. Zhuang. Representation of functions on big data associated with directed graphs. Applied and Computational Harmonic Analysis, 44(1):165 – 188, 2018. ISSN 1063-5203. doi: https://doi.org/10.1016/j.acha.2016.12.005.
225
+
226
+ C.K. Chui, F. Filbir, and H.N. Mhaskar. Representation of functions on big data: graphs and trees. Applied and Computational Harmonic Analysis, 38(3):489 – 509, 2015.
227
+
228
+ Fan RK Chung and Fan Chung Graham. Spectral graph theory. American Mathematical Society, 1997.
229
+
230
+ Ingrid Daubechies. Ten lectures on wavelets. SIAM, 1992.
231
+
232
+ Asim Kumar Debnath, Rosa L. Lopez de Compadre, Gargi Debnath, Alan J. Shusterman, and Corwin Hansch. Structure-activity relationship of mutagenic aromatic and heteroaromatic nitro compounds. correlation with molecular orbital energies and hydrophobicity. Journal of Medicinal Chemistry, 34(2):786–797, 1991. doi: 10.1021/jm00106a046.
233
+
234
+ Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on ¨ graphs with fast localized spectral filtering. In NIPS, pp. 3844–3852, 2016.
235
+
236
+ Frederik Diehl, Thomas Brunner, Michael Truong Le, and Alois Knoll. Towards graph pooling by edge contraction. In ICML 2019 Workshop on Learning and Reasoning with Graph-Structured Data, 2019.
237
+
238
+ Paul D Dobson and Andrew J Doig. Distinguishing enzyme structures from non-enzymes without alignments. Journal of Molecular Biology, 330(4):771–783, 2003.
239
+
240
+ David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In NIPS, pp. 2224–2232, 2015.
241
+
242
+ Martin Ester, Hans-Peter Kriegel, Jorg Sander, Xiaowei Xu, et al. A density-based algorithm for ¨ discovering clusters in large spatial databases with noise. In KDD, volume 96, pp. 226–231, 1996.
243
+
244
+ Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric. In Workshop on Representation Learning on Graphs and Manifolds, ICLR, 2019.
245
+
246
+ Hongyang Gao and Shuiwang Ji. Graph U-Nets. ICML, pp. 2083–2092, 2019.
247
+
248
+ Matan Gavish, Boaz Nadler, and Ronald R Coifman. Multiscale wavelets on trees, graphs and high dimensional data: theory and applications to semi supervised learning. In ICML, pp. 367–374, 2010.
249
+
250
+ Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In ICML, pp. 1263–1272, 2017.
251
+
252
+ Alfred Haar. Zur theorie der orthogonalen funktionensysteme. Mathematische Annalen, 69(3): 331–371, 1910.
253
+
254
+ David K Hammond, Pierre Vandergheynst, and Remi Gribonval. Wavelets on graphs via spectral ´ graph theory. Applied and Computational Harmonic Analysis, 30(2):129–150, 2011.
255
+
256
+ George Karypis and Vipin Kumar. A fast and high quality multilevel scheme for partitioning irregular graphs. SIAM Journal on Scientific Computing, 20(1):359–392, 1998.
257
+
258
+ Jeroen Kazius, Ross McGuire, and Roberta Bursi. Derivation and validation of toxicophores for mutagenicity prediction. Journal of Medicinal Chemistry, 48(1):312–320, 2005.
259
+
260
+ Kristian Kersting, Nils M. Kriege, Christopher Morris, Petra Mutzel, and Marion Neumann. Benchmark data sets for graph kernels, 2016. URL http://graphkernels.cs.tu-dortmund. de.
261
+
262
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
263
+
264
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
265
+
266
+ Boris Knyazev, Graham W. Taylor, and Mohamed R. Amer. Understanding attention and generalization in graph neural networks. In NeurIPS, 2019.
267
+
268
+ Nils Kriege and Petra Mutzel. Subgraph matching kernels for attributed graphs. In ICML, pp. 291–298, 2012.
269
+
270
+ Junhyun Lee, Inyeop Lee, and Jaewoo Kang. Self-attention graph pooling. In ICML, pp. 3734–3743, 2019.
271
+
272
+ Ming Li, Zheng Ma, Yu Guang Wang, and Xiaosheng Zhuang. Fast Haar transforms for graph neural networks. arXiv preprint arXiv:1907.04786, 2019.
273
+
274
+ Yao Ma, Suhang Wang, Charu C. Aggarwal, and Jiliang Tang. Graph convolutional networks with EigenPooling. In KDD, pp. 723–731, 2019a.
275
+
276
+ Zheng Ma, Ming Li, and Yu Guang Wang. PAN: Path integral based convolution for deep graph neural networks. In Workshop on Learning and Reasoning with Graph-Structured Representation. ICML, 2019b.
277
+
278
+ Emmanuel Noutahi, Dominique Beani, Julien Horwood, and Prudencio Tossou. Towards interpretable sparse graph representation learning with Laplacian pooling. arXiv preprint arXiv:1905.11577, 2019.
279
+
280
+ M. K. Pakhira. A linear time-complexity k-means algorithm using cluster shifting. In 2014 International Conference on Computational Intelligence and Communication Networks, pp. 1047–1051, 2014. doi: 10.1109/CICN.2014.220.
281
+
282
+ Kaspar Riesen and Horst Bunke. IAM graph database repository for graph based pattern recognition and machine learning. In Joint IAPR International Workshops on Statistical Techniques in Pattern Recognition (SPR) and Structural and Syntactic Pattern Recognition (SSPR), pp. 287–297. Springer, 2008.
283
+
284
+ Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pit- ¨ falls of graph neural network evaluation. In Workshop on Relational Representation Learning, NeurIPS, 2018.
285
+
286
+ Jianbo Shi and Jitendra Malik. Normalized cuts and image segmentation. Departmental Papers (CIS), pp. 107, 2000.
287
+
288
+ Oriol Vinyals, Samy Bengio, and Manjunath Kudlur. Order matters: Sequence to sequence for sets. In ICLR, 2015.
289
+
290
+ Nikil Wale, Ian A Watson, and George Karypis. Comparison of descriptor spaces for chemical compound retrieval and classification. Knowledge and Information Systems, 14(3):347–375, 2008.
291
+
292
+ Yu Guang Wang and Xiaosheng Zhuang. Tight framelets and fast framelet filter bank transforms on manifolds. Applied and Computational Harmonic Analysis, 2018. doi: 10.1016/j.acha.2018.02. 001.
293
+
294
+ Yu Guang Wang and Xiaosheng Zhuang. Tight framelets on graphs for multiscale analysis. In Wavelets and Sparsity XVIII, SPIE Proc., pp. 11138–11, 2019.
295
+
296
+ Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S Yu. A comprehensive survey on graph neural networks. arXiv preprint arXiv:1901.00596, 2019.
297
+ Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In ICLR, 2019.
298
+ Zhitao Ying, Jiaxuan You, Christopher Morris, Xiang Ren, Will Hamilton, and Jure Leskovec. Hierarchical graph representation learning with differentiable pooling. In NeurIPS, pp. 4800–4810, 2018.
299
+ Muhan Zhang, Zhicheng Cui, Marion Neumann, and Yixin Chen. An end-to-end deep learning architecture for graph classification. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018a.
300
+ Ziwei Zhang, Peng Cui, and Wenwu Zhu. Deep learning on graphs: A survey. arXiv preprint arXiv:1812.04202, 2018b.
301
+ Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, and Maosong Sun. Graph neural networks: A review of methods and applications. arXiv preprint arXiv:1812.08434, 2018.
302
+
303
+ # A GRAPH CLASSIFICATION
304
+
305
+ Graph classification This task is to categorize graph-structured data into several classes. The training set consists of $M$ pairs of samples $\mathbf { \bar { \Psi } } ( x _ { i } , \mathcal { G } _ { i } ) , \mathbf { \bar { y } } _ { i } )$ , $i = 1 , \dots , M$ . For the ith sample, $\mathcal { G } _ { i } =$ $( V _ { i } , E _ { i } , W _ { i } )$ is a graph with vertex set $V _ { i }$ of size $| V _ { i } | = N _ { i }$ (also called nodes), and edge set $E _ { i }$ with weights $W _ { i }$ . The feature $x _ { i } \in \mathbb { R } ^ { N _ { i } \times d }$ is an array of $d$ features per vertex, i.e., an $\mathbb { R } ^ { d }$ -valued function over $V _ { i }$ . The label $y _ { i }$ is an integer from a finite set indicating which class the input sample $( x _ { i } , \mathcal { G } _ { i } )$ lies in. The number of nodes $N _ { i }$ and the graph structure $E _ { i } , W _ { i }$ usually vary over the different input samples.
306
+
307
+ Graph neural networks Deep graph neural networks (GNNs) are designed to work with graphstructured inputs of the form $( x _ { i } , \mathcal { G } _ { i } )$ described above. A GNN is typically composed of multiple graph convolution layers, graph pooling layers, and fully connected layers. A (graph) convolutional layer extracts an array of features from the previous array. It changes the dimension $d$ of the feature array but does not change the number of nodes $N _ { i }$ . Since the number of nodes of different inputs is variable, the number of nodes of the corresponding outputs is also variable. This raises new challenges in comparison with traditional image classification tasks, where the local structure connecting pixels is always fixed (even if the number of pixels might be variable).
308
+
309
+ Graph pooling In GNNs, one uses graph pooling to reduce the first dimension $N$ of the feature arrays, and more importantly, to obtain outputs of uniform dimension (commonly followed by fully connected layers). A general architecture uses a cascade of convolutional and pooling layers. Figure 2 illustrates such an architecture with three blocks of graph convolutional and pooling layers, followed by a multi-layer perceptron (MLP) with three fully connected layers. In practice, each block can include several convolutional layers but use only one pooling layer at most. The exact architecture of GNNs with combined convolutional and pooling layers is mainly dependent upon the particular problem and the data set and is designed case by case.
310
+
311
+ # B CONSTRUCTION OF HAAR BASIS
312
+
313
+ Construction of Haar basis. With a chain of the graph, one can generate a Haar basis for $l _ { 2 } ( \mathcal { G } )$ following Chui et al. (2015), see also Gavish et al. (2010). We show the construction of Haar basis on $\mathcal { G }$ , as follows.
314
+
315
+ Step 1. Let $\mathcal { G } ^ { \mathrm { c g } } = ( V ^ { \mathrm { c g } } , E ^ { \mathrm { c g } } , w ^ { \mathrm { c g } } )$ be a coarse-grained graph of $\mathcal { G } = ( V , E , w )$ with $N ^ { \mathrm { c g } } : = | V ^ { \mathrm { c g } } |$ . ∈ degrees of vertices or weights of vertices, as Each vertex $v ^ { \mathrm { c g } } \in V ^ { \mathrm { c g } }$ is a cluster $v ^ { \mathrm { c g } } = \{ v \ \bar { } \in \ V \vert v$ $V ^ { \mathrm { c g } } = \{ v _ { 1 } ^ { \mathrm { c g } } , \ldots , v _ { N ^ { \mathrm { c g } } } ^ { \mathrm { c g } } \}$ has parent $v ^ { \mathrm { c g } } \}$ } G. We define of . Order $N ^ { \mathrm { c g } }$ vectors , e.g., by $\phi _ { \ell } ^ { \mathrm { c g } }$ on ${ \mathcal { G } } ^ { \mathrm { c g } }$ by
316
+
317
+ $$
318
+ \phi _ { 1 } ^ { \mathrm { c g } } ( v ^ { \mathrm { c g } } ) : = \frac { 1 } { \sqrt { N ^ { \mathrm { c g } } } } , \quad v ^ { \mathrm { c g } } \in V ^ { \mathrm { c g } } ,
319
+ $$
320
+
321
+ and for $\ell = 2 , \ldots , N ^ { \mathrm { c g } }$ ,
322
+
323
+ $$
324
+ \phi _ { \ell } ^ { \mathrm { c g } } : = \sqrt { \frac { N ^ { \mathrm { c g } } - \ell + 1 } { N ^ { \mathrm { c g } } - \ell + 2 } } \left( \chi _ { \ell - 1 } ^ { \mathrm { c g } } - \frac { \sum _ { j = \ell } ^ { N ^ { \mathrm { c g } } } \chi _ { j } ^ { \mathrm { c g } } } { N ^ { \mathrm { c g } } - \ell + 1 } \right) ,
325
+ $$
326
+
327
+ where $\chi _ { j } ^ { \mathrm { c g } }$ is the indicator function for the $j$ th vertex $v _ { j } ^ { \mathrm { c g } } \in V ^ { \mathrm { c g } }$ on $\mathcal { G }$ given by
328
+
329
+ $$
330
+ \begin{array} { r } { \chi _ { j } ^ { \mathrm { c g } } ( v ^ { \mathrm { c g } } ) : = \left\{ \begin{array} { l l } { 1 , } & { v ^ { \mathrm { c g } } = v _ { j } ^ { \mathrm { c g } } , } \\ { 0 , } & { v ^ { \mathrm { c g } } \in V ^ { \mathrm { c g } } \backslash \{ v _ { j } ^ { \mathrm { c g } } \} . } \end{array} \right. } \end{array}
331
+ $$
332
+
333
+ Then, one can show that $\{ \phi _ { \ell } ^ { \mathrm { c g } } \} _ { \ell = 1 } ^ { N ^ { \mathrm { c g } } }$ forms an orthonormal basis for $l _ { 2 } ( \mathcal { G } ^ { \mathrm { c g } } )$ .
334
+
335
+ Note that each $v \in V$ belongs to exactly one cluster $v ^ { \mathrm { c g } } \in V ^ { \mathrm { c g } }$ . In view of this, for each $\ell =$ $1 , \ldots , N ^ { \mathrm { c g } }$ , we can extend the vector $\phi _ { \ell } ^ { \mathrm { c g } }$ on ${ \mathcal { G } } ^ { \mathrm { c g } }$ to a vector $\phi _ { \ell , 1 }$ on $\mathcal { G }$ by
336
+
337
+ $$
338
+ \phi _ { \ell , 1 } ( v ) : = \frac { \phi _ { \ell } ^ { \mathrm { c g } } ( v ^ { \mathrm { c g } } ) } { \sqrt { | v ^ { \mathrm { c g } } | } } , \quad v \in v ^ { \mathrm { c g } } ,
339
+ $$
340
+
341
+ here $| v ^ { \mathrm { c g } } | : = k _ { \ell }$ is the size of the cluster $v ^ { \mathrm { c g } }$ , i.e., the number of vertices in $\mathcal { G }$ whose common parent is $v ^ { \mathrm { c g } }$ . We order the cluster $v _ { \ell } ^ { \mathrm { c g } }$ , e.g., by degrees of vertices, as
342
+
343
+ $$
344
+ v _ { \ell } ^ { \mathrm { c g } } = \{ v _ { \ell , 1 } , \ldots , v _ { \ell , k _ { \ell } } \} \subseteq V .
345
+ $$
346
+
347
+ For $k = 2 , \ldots , k _ { \ell }$ , similar to equation 11, define
348
+
349
+ $$
350
+ \phi _ { \ell , k } = \sqrt { \frac { k _ { \ell } - k + 1 } { k _ { \ell } - k + 2 } } \left( \chi _ { \ell , k - 1 } - \frac { \sum _ { j = k } ^ { k _ { \ell } } \chi _ { \ell , j } } { k _ { \ell } - k + 1 } \right) .
351
+ $$
352
+
353
+ where for $j = 1 , \ldots , k _ { \ell } , \chi _ { \ell , j }$ is given by
354
+
355
+ $$
356
+ \chi _ { \ell , j } ( v ) : = \{ \boldsymbol { 1 } , \quad v = v _ { \ell , j } , \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad
357
+ $$
358
+
359
+ One can show that the resulting $\{ \phi _ { \ell , k } : \ell = 1 , \ldots , N ^ { \mathrm { c g } } , k = 1 , \ldots , k _ { \ell } \}$ is an orthonormal basis for $l _ { 2 } ( \mathcal { G } )$ .
360
+
361
+ Step 2. Let $\mathcal { G } _ { 0 J }$ be a coarse-grained chain for the graph $\mathcal { G }$ . An orthonormal basis $\{ \phi _ { \ell } ^ { ( J ) } \} _ { \ell = 1 } ^ { N _ { J } }$ $j = 0 , \dots , J - 1$ rated using equation 10 and equati, we generate an orthonormal basis $\{ \phi _ { \ell } ^ { ( j ) } \} _ { \ell = 1 } ^ { N _ { j } }$ e thefor $l _ { 2 } ( \mathcal { G } _ { j } )$ atedly use Step 1: forfrom the orthonormal basis $\{ { \phi } _ { \ell } ^ { ( j + 1 ) } \} _ { \ell = 1 } ^ { N _ { j + 1 } }$ for the coarse-grained graph $\mathcal { G } _ { j + 1 }$ that was derived in the previous steps. We call the sequence {φ\` := φ(0)\` }N0\`=1 o f vectors at the finest level, the Haar global orthonormal basis or for , s for is ca $\mathcal { G }$ associated with the chain d the associated (orthonor $\mathcal { G } _ { 0 J }$ . The orthonormal basbasis for the Haar basis $\{ \phi _ { \ell } ^ { ( j ) } \} _ { \ell = 1 } ^ { N _ { j } }$ $l _ { 2 } ( \mathcal { G } _ { j } )$ $j = 1 , \dots , J$ $\{ \phi _ { \ell } \} _ { \ell = 1 } ^ { N }$
362
+
363
+ Besides the orthogonality, the Haar basis has the locality which is critical to the fast computation of HaarPooling.
364
+
365
+ Comlayer ssive Haar of the chain Suppose we have constructed the (ful. The compressive Haar basis for layer His $\{ \phi _ { \ell } ^ { ( j ) } \} _ { \ell = 0 } ^ { N _ { j } }$ for each $\mathcal { G } _ { j }$ $\mathscr { G } _ { 0 \to K }$ $j$ $\{ \phi _ { \ell } ^ { ( j ) } \} _ { \ell = 0 } ^ { N _ { j + 1 } }$
366
+
367
+ # C FAST COMPUTATION FOR HAARPOOLING
368
+
369
+ Let $\mathscr { G } _ { 0 \to K }$ be a coarse-grained chain of the graph $\mathcal { G } _ { 0 }$ . For convenience, we label the vertices of the level- $j$ graph $\mathcal { G } _ { j }$ by $V _ { j } : = \{ v _ { 1 } ^ { ( j ) } , \ldots , v _ { N _ { j } } ^ { ( j ) } \}$ .
370
+
371
+ Fast algorithm for HaarPooling The HaarPooling in equation 3 can be computed fast by using the hierarchical structure of the chain, as we introduce as follows. For $j = 1 , \ldots , K$ , let $c _ { k } ^ { ( j ) }$ be the for number of children of $k = 1 , \ldots , N _ { j }$ . For $v _ { k } ^ { ( j ) }$ $j = 0$ , i.e. the number of vertices of , we let $c _ { k } ^ { ( 0 ) } \equiv 1$ for $k = 1 , \ldots , N _ { 0 }$ $\mathcal { G } _ { j - 1 }$ which belongs to the cluster . Now, for $j = 0 , \ldots , K$ $v _ { k } ^ { ( j ) }$ kand , $k = 1 , \dots , N _ { j }$ , define the weight for the node $v _ { k } ^ { ( j ) }$ of layer $j$ by
372
+
373
+ $$
374
+ w _ { k } ^ { ( j ) } : = \frac { 1 } { \sqrt { c _ { k } ^ { ( j ) } } } .
375
+ $$
376
+
377
+ $W _ { 0 \to K } : = \{ w _ { k } ^ { ( j ) } | j = 0 , \ldots , K , k = 1 , \ldots , N _ { j } \}$ . Then, f the chain $j = 0 , \ldots , K$ , the weighted chainast two children. See $( \mathscr { G } _ { j \to K } , W _ { j \to K } )$ $\mathscr { G } _ { j K }$ e.g. (Chui et al., 2015, Definition 2.3).
378
+
379
+ # D PROOFS
380
+
381
+ Proof for equation $5$ . We only need to prove the first formula. The second is obtained by definition. To simplify notation, we let $\bar { \boldsymbol { f } } = { \boldsymbol { X } } _ { j } ^ { \mathrm { i n } }$ . By construction of Haar basis, for some layer $j$ , the first $N _ { j + 1 }$ basis vectors
382
+
383
+ $$
384
+ \phi _ { \ell } ^ { ( j ) } ( v ) = \phi _ { \ell } ^ { ( j + 1 ) } ( p ) / \sqrt { | P a _ { \mathcal { G } } ( v ) | } , \quad \mathrm { f o r } p = P a _ { \mathcal { G } } ( v ) .
385
+ $$
386
+
387
+ Then, the Fourier coefficient of $f$ for the \`th basis vector is the inner product
388
+
389
+ $$
390
+ \begin{array} { l } { \left. f , \phi _ { \ell } ^ { ( j ) } \right. = \displaystyle \sum _ { v \in \mathcal { G } _ { j } } f ( v ) \overline { { \phi _ { \ell } ^ { ( j ) } ( v ) } } } \\ { = \displaystyle \sum _ { p \in \mathcal { G } _ { j + 1 } } \sum _ { p = P a _ { \mathcal { G } } ( v ) } f ( v ) \overline { { \phi _ { \ell } ^ { ( j + 1 ) } ( p ) } } / \sqrt { | P a _ { \mathcal { G } } ( v ) | } } \\ { = \displaystyle \sum _ { p \in \mathcal { G } _ { j + 1 } } \widetilde { f } ( p ) \overline { { \phi _ { \ell } ^ { ( j + 1 ) } ( p ) } } } \\ { = \left. \widetilde { f } , \phi _ { \ell } ^ { ( j + 1 ) } \right. } \end{array}
391
+ $$
392
+
393
+ where we have let
394
+
395
+ $$
396
+ \widetilde { f } ( p ) : = \frac { 1 } { \sqrt { \left| P a _ { \mathcal { G } } ( v ) \right| } } \sum _ { p = P a _ { \mathcal { G } } ( v ) } f ( v ) .
397
+ $$
398
+
399
+ This then gives
400
+
401
+ $$
402
+ \sum _ { \ell = 1 } ^ { N _ { j + 1 } } \left| \left. f , \phi _ { \ell } ^ { ( j ) } \right. \right| ^ { 2 } = \sum _ { \ell = 1 } ^ { N _ { j + 1 } } \left| \left. \widetilde { f } , \phi _ { \ell } ^ { ( j + 1 ) } \right. \right| ^ { 2 } .
403
+ $$
404
+
405
+ Since {φ\`}Nj+1\`=1 forms an orthonormal basis on $\ell _ { 2 } ( \mathcal { G } _ { j + 1 } )$ ,
406
+
407
+ $$
408
+ \begin{array} { l } { \displaystyle \left\| \Phi _ { j } ^ { T } f \right\| ^ { 2 } = \sum _ { \ell = 1 } ^ { N _ { j + 1 } } \left| \left. \widetilde f , \phi _ { \ell } ^ { ( j + 1 ) } \right. \right| ^ { 2 } = \left\| \widetilde f \right\| ^ { 2 } = \sum _ { p \in \mathcal { G } _ { j + 1 } } \left| \widetilde f ( p ) \right| ^ { 2 } } \\ { \displaystyle \qquad = \sum _ { p \in \mathcal { G } _ { j + 1 } } \left| \frac { 1 } { \sqrt { \left| P a _ { \mathcal { G } } ( v ) \right| } } \sum _ { p = P a _ { \mathcal { G } } ( v ) } f ( v ) \right| ^ { 2 } . } \end{array}
409
+ $$
410
+
411
+ This proves the left formula in equation 5.
412
+
413
+ Proof of Theorem 3. By the relation between $\phi _ { \ell } ^ { ( i ) }$ and $\phi _ { \ell } ^ { ( j ) }$ , for $i \ = \ j + 1 , \ldots , K$ and $\ell \ =$ $1 , \ldots , N _ { j + 1 }$ ,
414
+
415
+ $$
416
+ \begin{array} { r l } { \langle \theta ^ { \dagger } \rangle ^ { * } \mathcal { X } _ { i } \rangle _ { i } = } & { \frac { \nu _ { 0 } } { \lambda _ { 0 } } \mathcal { X } _ { i } ^ { ( \nu _ { 0 } ) } \frac { \partial } { \partial \alpha _ { i } } \langle \theta ^ { \dagger } \rangle _ { i \alpha } ^ { * } } \\ & { = \frac { \nu _ { 0 } } { \lambda _ { 0 } } \left( \underbrace { \sum _ { i = 1 } ^ { N } \frac { \partial \left( \theta ^ { \dagger } \right) ^ { * } } { \partial \alpha _ { i } } \sum _ { \alpha = 1 } ^ { N } \lambda _ { 0 } \langle \theta ^ { \dagger } \rangle _ { i \alpha } } _ { \displaystyle \left\{ \begin{array} { l } { 1 , \dots , N } } \\ { \frac { \partial } { \partial \alpha _ { i } } \sum _ { \alpha = 1 } ^ { N } \lambda _ { i } \Big [ \epsilon _ { i } \partial _ { i } ^ { \alpha } \epsilon _ { i } ^ { \alpha } } \end{array} ^ { * } } \right. } \\\right\ & \right]{ = \frac { \nu _ { 0 } } { \lambda _ { 0 } } \left( \underbrace { \sum _ { i = 1 } ^ { N } \frac { \partial \left( \theta ^ { \dagger } \right) ^ { * } } { \partial \alpha _ { i } } \sum _ { \alpha = 1 } ^ { N } \lambda _ { 0 } \left( \frac { \partial \theta ^ { \dagger } } { \partial \alpha _ { i } } \right) ^ { * } } _ { \displaystyle \left\{ \begin{array} { l } { 1 , \dots , N } } \\ { \frac { \partial } { \partial \alpha _ { i } } \sum _ { \alpha = 1 } ^ { N } \lambda _ { i } \Big [ \epsilon _ { i } \partial _ { i } ^ { \alpha } \epsilon _ { i } ^ { \alpha } } \end{array} } \frac { \par\right\tial ^ { 2 } \alpha ^ { 2 } \sigma ^ { 2 } \sigma ^ { 2 } \sigma ^ { 2 } \sigma ^ { 2 } \sigma ^ { 2 } } { \partial \alpha _ { i } ^ { 2 } } \left( \epsilon _ { i } ^ { 2 } \partial _ { i } ^ { \alpha } \epsilon _ { i } ^ { \alpha } \right) } \\ & \right) = \frac { \nu _ { 0 } } { \lambda _ { 0 } ^ { 2 } \sigma ^ { 2 } } \left( \underbrace \sum _ { i = 1 } ^ { N } \frac { \partial \left( \theta ^ { \dagger } \right) ^ { * } } { \partial \alpha _ { i } ^ { 2 } } \partial _ { i } ^ { \alpha } \partial _ { i } ^ { \alpha } \epsilon \end{array}
417
+ $$
418
+
419
+ where $v _ { k ^ { \prime } } ^ { ( j + 1 ) }$ is the parent of $v _ { k } ^ { ( j ) }$ and $v _ { k ^ { \prime \prime } } ^ { ( j + 2 ) }$ is the parent of $v _ { k } ^ { ( j + 1 ) }$ , and we recursively compute the summation to obtain the last equality, thus completing the proof.
420
+
421
+ # E EXPERIMENTAL SETTING
422
+
423
+ The architecture of GNN is identified by the layer type and the number of hidden nodes at each layer. For example, we denote 3GC256-HP-2FC256-FC128 to represent a GNN architecture with 3 GCNConv layers each with 256 hidden nodes plus one HaarPooling layer followed by 2 fully connected layers each with 256 hidden nodes and 1 fully connected layer with 128 hidden nodes. The architecture for each data set is shown by Table 3.
424
+
425
+ The hyperparameters include batch size; learning rate, weight decay rate (these two for optimization); maximum number of epochs; patience for early stopping. The choice of hyperparameters in each data set is shown in Table 4.
426
+
427
+ Table 3: Network architecture
428
+
429
+ <table><tr><td>Data Set</td><td>Layers and #Hidden Nodes</td></tr><tr><td>MUTAG</td><td>GC60-HP-FC60-FC180-FC60</td></tr><tr><td>PROTEINS</td><td>2GC128-HP-2GC128-HP-2GC128-HP-GC128-2FC128-FC64</td></tr><tr><td>NCI1</td><td>2GC256-HP-FC256-FC1024-FC2048</td></tr><tr><td>NCI109</td><td>3GC256-HP-2FC256-FC128</td></tr><tr><td>MUTAGEN</td><td>3GC256-HP-2FC256-FC128</td></tr></table>
430
+
431
+ # F GNN WITH HAARPOOLING ON TRIANGLES
432
+
433
+ We test GNN with HaarPooling on graph data set Triangles (Knyazev et al., 2019). Triangles is a 10 classification problem with 45000 graphs. The average numbers of nodes and edges of graphs are
434
+
435
+ Table 4: Hyperparameter setting
436
+
437
+ <table><tr><td>Data Set</td><td>MUTAG</td><td>PROTEINS</td><td>NCI1</td><td>NCI109</td><td>MUTAGEN</td></tr><tr><td>batch size</td><td>60</td><td>50</td><td>100</td><td>100</td><td>100</td></tr><tr><td>max #epochs</td><td>30</td><td>20</td><td>150</td><td>150</td><td>50</td></tr><tr><td>early stopping</td><td>15</td><td>20</td><td>50</td><td>50</td><td>50</td></tr><tr><td>learning rate</td><td>0.01</td><td>0.001</td><td>0.001</td><td>0.01</td><td>0.01</td></tr><tr><td>weight decay</td><td>0.0005</td><td>0.0005</td><td>0.0005</td><td>0.0001</td><td>0.0005</td></tr></table>
438
+
439
+ 20.85 and 32.74 respectively. In the experiments, the network uses GIN convolution (Xu et al., 2019) as graph convolution and with HaarPooling or SAGPooling (Lee et al., 2019). With SAGPooling, the network architecture uses two combined layers of GIN convolution and SAGPooling followed by combined layers of GIN convolution and global max pooling, denoted by GIN-SP-GIN-SP-GIN-MP, where SP means the SAGPooling and MP means global max pooling. With HaarPooling, we test with two architectures: GIN-HP-GIN-HP-GIN-MP and GIN-HP-GIN-GIN-MP, where HP means HaarPooling. The data for training, validation and test are 35000, 5000 and 10000 respectively. The hidden nodes in convoluational layers is 64, batch size is 60 and learning rate is 0.001.
440
+
441
+ Table 5 shows the test accuracy of the three networks. It illustrates that both networks with HaarPooling outperform that with the SAGPooling.
442
+
443
+ Table 5: Training, validation and test accuracies on Triangles
444
+
445
+ <table><tr><td rowspan="2">Architecture</td><td colspan="3">Accuracy (%)</td></tr><tr><td>Training</td><td>Validation</td><td>Test</td></tr><tr><td>GIN-SP-GIN-SP-GIN-MP</td><td>45.6</td><td>45.3</td><td>44.0</td></tr><tr><td>GIN-HP-GIN-HP-GIN-MP</td><td>47.5</td><td>46.3</td><td>46.1</td></tr><tr><td>GIN-HP-GIN-GIN-MP</td><td>47.3</td><td>45.8</td><td>45.5</td></tr></table>
446
+
447
+ # G PROPERTY COMPARISON OF POOLING METHODS
448
+
449
+ Here we provide a comparison of the properties of HaarPooling with existing pooling methods. The properties in comparison includes time complexity and space complexity, and whether involving the clustering, hierarchical pooling (which is then not a global pooling), spectral-based, node feature or graph structure and sparse representation. We compare HaarPooling (denoted by HaarPool in the table) to other methods (SortPool, DiffPool, gPool, SAGPool and EigenPool). The SortPool (i.e. SortPooling) is a global pooling which uses node signature (i.e. Weisfeiler-Lehman color of vertex) sorts all vertices by the values of the channels of the input data. Thus, the time complexity (worst case) of SortPool is $\mathcal { O } ( | V | ^ { 2 } )$ and space complexity is $\mathcal { O } ( | V | )$ . Other pooling methods are all hierarchical pooling. DiffPool and gPool both use the node feature and have time complexity $\mathcal { O } ( | V | ^ { 2 } )$ The DiffPool learns the assignment matrices in end-to-end manner and has space complexity ${ \dot { \mathcal { O } } } ( k | V | ^ { 2 } )$ for pooling ratio $k$ . The $\mathrm { \ g P o o l }$ projects all nodes to a learnable vector to generate scores for nodes, and then sorts the nodes by the projection scores; the space complexity is $\mathsf { \tilde { O } } ( | V | + | E | )$ . SAGPool uses the graph convolution to calculate the attention scores of nodes and then selects top ranked nodes for pooling. The time complexity of SAGPool is $\mathcal { O } ( | E | )$ and the space complexity is $\mathcal { O } ( \left| V \right| + \left| E \right| )$ due to the sparsity of the pooling matrix. EigenPool, which considers both the node feature and graph structure, uses the eigedecomposition of subgraphs (from clustering) of the input graph, and pools the input data by Fourier transforms of the assembled basis matrix. Due to eigendecomposition, the time complexity of EigenPool is $\mathcal { O } ( | V | ^ { 2 } )$ and space complexity is $\mathcal { O } ( | V | ^ { 2 } )$ . HaarPool which uses the sparse representation of data by compressive Haar basis has linear time complexity $\mathcal { O } ( | V | )$ (up to a $\log | V |$ term), and the space complexity is $\mathcal { O } ( | V | ^ { 2 } \epsilon )$ , where $\epsilon$ is the sparsity of the compressive Haar transform matrix and is usually very small. From the table, we can observe the HaarPool is the only pooling method which has time complexity proportional to the number of nodes, and thus has faster implementation.
450
+
451
+ Table 6: Property comparison for pooling methods.
452
+
453
+ <table><tr><td>Method</td><td>Time Complexity</td><td>Space Complexity</td><td>Clustering- based</td><td>based</td><td>Spectral- Hierarchical Use Node Pooling</td><td>Feature</td><td>Use Graph Structure</td><td>Sparse Repre- :sentation</td></tr><tr><td>SortPool</td><td>0(IV12)</td><td>O(IVI)</td><td></td><td></td><td></td><td>&lt;</td><td></td><td></td></tr><tr><td>DiffPool</td><td>0(ivi2)</td><td>O(k|V|2)</td><td></td><td></td><td>√</td><td></td><td></td><td></td></tr><tr><td>gPool</td><td>0(ivi2)</td><td>O(IV|+|EI)</td><td></td><td></td><td>√</td><td>√</td><td></td><td></td></tr><tr><td>SAGPool</td><td>O(EI)</td><td>O(ivi+jEI)</td><td></td><td></td><td>√</td><td>√</td><td>√</td><td></td></tr><tr><td>EigenPool</td><td>0(iv12)</td><td>0(IV12)</td><td>√</td><td></td><td>√</td><td>√</td><td>√</td><td></td></tr><tr><td>HaarPool</td><td>0(IVI)</td><td>0(IV1²e)</td><td>√</td><td>√</td><td>√</td><td>√</td><td>√</td><td>√</td></tr></table>
454
+
455
+ $| \overline { { V | } } ^ { \star }$ is the number of vertices of the input graph; $\overline { { \cdot | E | } } ^ { | }$ is the number of edges of the input graph; $\overline { { \cdot \epsilon ^ { * } } }$ in HaarPooling is the sparsity of the compressive Haar transform matrix; $\cdot _ { k } ,$ in the DiffPool is the pooling ratio.
parse/train/BJleph4KvS/BJleph4KvS_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJleph4KvS/BJleph4KvS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJleph4KvS/BJleph4KvS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lJws05K7/H1lJws05K7.md ADDED
@@ -0,0 +1,610 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ON THE SELECTION OF INITIALIZATION AND ACTIVATION FUNCTION FOR DEEP NEURAL NETWORKS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ The weight initialization and the activation function of deep neural networks have a crucial impact on the performance of the training procedure. An inappropriate selection can lead to the loss of information of the input during forward propagation and the exponential vanishing/exploding of gradients during back-propagation. Understanding the theoretical properties of untrained random networks is key to identifying which deep networks may be trained successfully as recently demonstrated by Schoenholz et al. (2017) who showed that for deep feedforward neural networks only a specific choice of hyperparameters known as the ‘edge of chaos’ can lead to good performance. We complete this analysis by providing quantitative results showing that, for a class of ReLU-like activation functions, the information propagates indeed deeper for an initialization at the edge of chaos. By further extending this analysis, we identify a class of activation functions that improve the information propagation over ReLU-like functions. This class includes the Swish activation, $\phi _ { s w i s h } ( x ) = x \cdot \mathrm { s i g m o i d } ( x )$ , used in Hendrycks & Gimpel (2016), Elfwing et al. (2017) and Ramachandran et al. (2017). This provides a theoretical grounding for the excellent empirical performance of $\phi _ { s w i s h }$ observed in these contributions. We complement those previous results by illustrating the benefit of using a random initialization on the edge of chaos in this context.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Deep neural networks have become extremely popular as they achieve state-of-the-art performance on a variety of important applications including language processing and computer vision; see, e.g., LeCun et al. (1998). The success of these models has motivated the use of increasingly deep networks and stimulated a large body of work to understand their theoretical properties. It is impossible to provide here a comprehensive summary of the large number of contributions within this field. To cite a few results relevant to our contributions, Montufar et al. (2014) have shown that neural networks have exponential expressive power with respect to the depth while Poole et al. (2016) obtained similar results using a topological measure of expressiveness.
12
+
13
+ We follow here the approach of Poole et al. (2016) and Schoenholz et al. (2017) by investigating the behaviour of random networks in the infinite-width and finite-variance i.i.d. weights context where they can be approximated by a Gaussian process as established by Matthews et al. (2018) and Lee et al. (2018).
14
+
15
+ In this paper, our contribution is two-fold. Firstly, we provide an analysis complementing the results of Poole et al. (2016) and Schoenholz et al. (2017) and show that initializing a network with a specific choice of hyperparameters known as the ‘edge of chaos’ is linked to a deeper propagation of the information through the network. In particular, we establish that for a class of ReLU-like activation functions, the exponential depth scale introduced in Schoenholz et al. (2017) is replaced by a polynomial depth scale. This implies that the information can propagate deeper when the network is initialized on the edge of chaos. Secondly, we outline the limitations of ReLU-like activation functions by showing that, even on the edge of chaos, the limiting Gaussian Process admits a degenerate kernel as the number of layers goes to infinity. Our main result (4) gives sufficient conditions for activation functions to allow a good ‘information flow’ through the network (Proposition 4) (in addition to being non-polynomial and not suffering from the exploding/vanishing gradient problem). These conditions are satisfied by the Swish activation $\phi _ { s w i s h } ( x ) = x$ · sigmoid $( x )$ used in Hendrycks & Gimpel (2016),
16
+
17
+ Elfwing et al. (2017) and Ramachandran et al. (2017). In recent work, Ramachandran et al. (2017) used automated search techniques to identify new activation functions and found experimentally that functions of the form $\phi ( x ) = \overset { \cdot } { x } \cdot \mathrm { s i g m o i d } ( \overset { \cdot } { \beta } x )$ appear to perform indeed better than many alternative functions, including ReLU. Our paper provides a theoretical grounding for these results. We also complement previous empirical results by illustrating the benefits of an initialization on the edge of chaos in this context. All proofs are given in the Supplementary Material.
18
+
19
+ # 2 ON GAUSSIAN PROCESS APPROXIMATIONS OF NEURAL NETWORKS AND THEIR STABILITY
20
+
21
+ # 2.1 SETUP AND NOTATIONS
22
+
23
+ We use similar notations to those of Poole et al. (2016) and Lee et al. (2018). Consider a fully connected random neural network of depth $L$ , widths $( N _ { l } ) _ { 1 \leq l \leq L }$ , weights $\begin{array} { r } { { W _ { i j } ^ { l } } \stackrel { i i d } { \sim } \mathcal { N } ( 0 , \frac { { \sigma _ { w } ^ { 2 } } } { { N _ { l - 1 } } } ) } \end{array}$ and bias $B _ { i } ^ { l } \stackrel { i i d } { \sim } \mathcal { N } ( 0 , \sigma _ { b } ^ { 2 } )$ , where ${ \mathcal { N } } ( \mu , \sigma ^ { 2 } )$ denotes the normal distribution of mean $\mu$ and variance $\sigma ^ { 2 }$ . For some input $a \in \mathbb { R } ^ { d }$ , the propagation of this input through the network is given for an activation function $\phi : \mathbb { R } \mathbb { R }$ by
24
+
25
+ $$
26
+ y _ { i } ^ { 1 } ( a ) = \sum _ { j = 1 } ^ { d } W _ { i j } ^ { 1 } a _ { j } + B _ { i } ^ { 1 } , \quad y _ { i } ^ { l } ( a ) = \sum _ { j = 1 } ^ { N _ { l - 1 } } W _ { i j } ^ { l } \phi ( y _ { j } ^ { l - 1 } ( a ) ) + B _ { i } ^ { l } , \quad \mathrm { f o r } l \ge 2 .
27
+ $$
28
+
29
+ Throughout the paper we assume that for all $l$ the processes $y _ { i } ^ { l } ( . )$ are independent (across $i$ ) centred Gaussian processes with covariance kernels $\kappa ^ { l }$ and write accordingly $y _ { i } ^ { l } \overset { i n d } { \sim } g \mathcal { P } ( 0 , \kappa ^ { l } )$ . This is an idealized version of the true processes corresponding to choosing $N _ { l - 1 } = + \infty$ (which implies, using Central Limit Theorem, that $y _ { i } ^ { l } ( a )$ is a Gaussian variable for any input $a$ ). The approximation of $y _ { i } ^ { l } ( . )$ by a Gaussian process was first proposed by Neal (1995) in the single layer case and has been recently extended to the multiple layer case by Lee et al. (2018) and Matthews et al. (2018). We recall here the expressions of the limiting Gaussian process kernels. For any input $a \in \mathbb { R } ^ { d }$ , $\mathbb { E } [ y _ { i } ^ { l } ( a ) ] = 0$ so that for any inputs $a , b \in \mathbb { R } ^ { d }$
30
+
31
+ $$
32
+ \begin{array} { r l } & { \kappa ^ { l } ( a , b ) = \mathbb { E } [ y _ { i } ^ { l } ( a ) y _ { i } ^ { l } ( b ) ] = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } _ { y _ { i } ^ { l - 1 } \sim G P ( 0 , \kappa ^ { l - 1 } ) } [ \phi ( y _ { i } ^ { l - 1 } ( a ) ) \phi ( y _ { i } ^ { l - 1 } ( b ) ) ] } \\ & { \quad \quad \quad \quad \quad \quad = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } F _ { \phi } ( \kappa ^ { l - 1 } ( a , a ) , \kappa ^ { l - 1 } ( a , b ) , \kappa ^ { l - 1 } ( b , b ) ) , } \end{array}
33
+ $$
34
+
35
+ where $F _ { \phi }$ is a function that depends only on $\phi$ . This gives a recursion to calculate the kernel $\kappa ^ { l }$ ; see, e.g., Lee et al. (2018) for more details. We can also express the kernel $\kappa ^ { l }$ in terms of the correlation $c _ { a b } ^ { l ^ { - } }$ in the ${ l ^ { t h } }$ layer used in the rest of this paper
36
+
37
+ q $\mathbf \Lambda _ { a b } ^ { l } : = \kappa ^ { l } ( a , b ) = \mathbb { E } [ y _ { i } ^ { l } ( a ) y _ { i } ^ { l } ( b ) ] = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( \sqrt { q _ { a } ^ { l - 1 } } Z _ { 1 } ) \phi ( \sqrt { q _ { b } ^ { l - 1 } } ( c _ { a b } ^ { l - 1 } Z _ { 1 } + \sqrt { 1 - ( c _ { a b } ^ { l - 1 } ) ^ { 2 } } Z _ { 2 } ) ) ]$ where $q _ { a } ^ { l - 1 } : = q _ { a a } ^ { l - 1 }$ , resp. $c _ { a b } ^ { l - 1 } : = q _ { a b } ^ { l - 1 } / \sqrt { q _ { a } ^ { l - 1 } q _ { b } ^ { l - 1 } }$ , is the variance, resp. correlation, in the $( l - 1 ) ^ { t h }$ layer and $Z _ { 1 } , Z _ { 2 }$ are independent standard Gaussian random variables. when it propagates through the network. $q _ { a } ^ { l }$ is updated through the layers by the recursive formula $q _ { a } ^ { l } = F ( q _ { a } ^ { l - 1 } )$ , where $F$ is the ‘variance function’ given by
38
+
39
+ $$
40
+ F ( x ) = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( { \sqrt { x } } Z ) ^ { 2 } ] , \quad { \mathrm { w h e r e } } \quad Z \sim { \mathcal { N } } ( 0 , 1 ) .
41
+ $$
42
+
43
+ Throughout the paper, $Z , Z _ { 1 } , Z _ { 2 }$ will always denote independent standard Gaussian variables.
44
+
45
+ # 2.2 LIMITING BEHAVIOUR OF THE VARIANCE AND COVARIANCE OPERATORS
46
+
47
+ We analyze here the limiting behaviour of $q _ { a } ^ { L }$ and $c _ { a , b } ^ { L }$ as the network depth $L$ goes to infinity under the assumption that $\phi$ has a second derivative at least in the distribution sense1. From now onwards, we will also assume without loss of generality that $c _ { a b } ^ { 1 } \geq 0$ (similar results can be obtained straightforwardly when $c _ { a b } ^ { 1 } \leq 0 .$ ). We first need to define the Domains of Convergence associated with an activation function $\phi$ .
48
+
49
+ ![](images/67ba9471ecfa4d946636702278bad8657163cc6c2c83d792308784273a4ce982.jpg)
50
+ Figure 1: Two draws of outputs for ReLU and Tanh networks with $( \sigma _ { b } , \sigma _ { w } ) = ( 1 , 1 ) \in D _ { \phi , v a r } \cap$ $D _ { \phi , c o r r }$ . The output functions are almost constant.
51
+
52
+ Definition 1. Let $\phi$ be an activation function, $( \sigma _ { b } , \sigma _ { w } ) \in ( \mathbb R ^ { + } ) ^ { 2 }$ (i) ${ \mathrm { ~ , ~ } } ( \sigma _ { b } , \sigma _ { w } )$ is in $D _ { \phi , v a r }$ (domain of convergence for the variance) if there exists $K > 0 , q \ge 0$ such that for any input a with $q _ { a } ^ { 1 } \leq K$ , $\begin{array} { r } { \operatorname* { l i m } _ { l \to \infty } q _ { a } ^ { l } = q } \end{array}$ . We denote by $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } )$ the maximal $K$ satisfying this condition.
53
+
54
+ (ii) $\left( \sigma _ { b } , \sigma _ { w } \right)$ is in $D _ { \phi , c o r r }$ (domain of convergence for the correlation) if there exists $K > 0$ such that for any two inputs $a , b$ with $q _ { a } ^ { 1 } , q _ { b } ^ { 1 } \leq K$ , $\begin{array} { r } { \operatorname* { l i m } _ { l \to \infty } c _ { a b } ^ { l } = 1 } \end{array}$ . We denote by $K _ { \phi , c o r r } ( \sigma _ { b } , \sigma _ { w } )$ the maximal $K$ satisfying this condition.
55
+
56
+ Remark : Typically, $q$ in Definition 1 is a fixed point of the variance function defined in equation 2. Therefore, it is easy to see that for any $\left( \sigma _ { b } , \sigma _ { w } \right)$ such that $F$ is increasing and admits at least one fixed point, we have $K _ { \phi , c o r r } ( \sigma _ { b } , \sigma _ { w } ) \ge q$ where $q$ is the minimal fixed point; i.e. $q : = \operatorname* { m i n } \{ x : F ( x ) = x \}$ . Thus, if we re-scale the input data to have $q _ { a } ^ { 1 } \leq q$ , the variance $q _ { a } ^ { l }$ converges to $q$ . We can also re-scale the variance $\sigma _ { w }$ of the first layer (only) to assume that $q _ { a } ^ { 1 } \leq q$ for all inputs $a$ .
57
+
58
+ The next result gives sufficient conditions on $\left( \sigma _ { b } , \sigma _ { w } \right)$ to be in the domains of convergence of $\phi$ .
59
+
60
+ Proposition 1. Let $\begin{array} { r } { M _ { \phi } : = \mathrm { s u p } _ { x \geq 0 } \mathbb { E } [ | \phi ^ { \prime 2 } ( x Z ) + \phi ^ { \prime \prime } ( x Z ) \phi ( x Z ) | ] } \end{array}$ . Assume $M _ { \phi } < \infty$ , then for $\begin{array} { r } { \sigma _ { w } ^ { 2 } < \frac { 1 } { M _ { \phi } } } \end{array}$ and any $\sigma _ { b }$ , we have $( \sigma _ { b } , \sigma _ { w } ) \in D _ { \phi , v a r }$ and $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) = \infty$
61
+
62
+ Let $\begin{array} { r } { C _ { \phi , \delta } : = \operatorname* { s u p } _ { x , y \geq 0 , | x - y | \leq \delta , c \in [ 0 , 1 ] } \mathbb { E } [ | \phi ^ { \prime } ( x Z _ { 1 } ) \phi ^ { \prime } ( y ( c Z _ { 1 } + \sqrt { 1 - c ^ { 2 } } Z _ { 2 } ) | ] } \end{array}$ . Assume $C _ { \phi , \delta } < \infty$ for some $\delta > 0$ , then for $\begin{array} { r } { \sigma _ { w } ^ { 2 } < \operatorname* { m i n } ( \frac { 1 } { M _ { \phi } } , \frac { 1 } { C _ { \phi } } ) } \end{array}$ and any $\sigma _ { b }$ , we have $( \sigma _ { b } , \sigma _ { w } ) \in D _ { \phi , v a r } \cap D _ { \phi , c o r r }$ and $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) = K _ { \phi , c o r r } ( \sigma _ { b } , \sigma _ { w } ) = \infty$ .
63
+
64
+ The proof of Proposition 1 is straightforward. We prove that $\operatorname* { s u p } F ^ { \prime } ( x ) = \sigma _ { w } ^ { 2 } M _ { \phi }$ and then apply the Banach fixed point theorem; similar ideas are used for $C _ { \phi , \delta }$ .
65
+
66
+ Example : For ReLU activation function, we have $M _ { R e L U } = 2$ and $C _ { R e L U , \delta } \leq 1$ for any $\delta > 0$
67
+
68
+ In the domain of convergence $D _ { \phi , v a r } \cap D _ { \phi , c o r r }$ , for all $a , b \in \mathbb { R } ^ { d }$ , $y _ { i } ^ { \infty } ( a ) = y _ { i } ^ { \infty } ( b )$ almost surely and the outputs of the network are constant functions. Figure 1 illustrates this behaviour for $d = 2$ for ReLU and Tanh using a network of depth $L = 1 0$ with $N _ { l } = 1 0 0$ neurons per layer. The draws of outputs of these networks are indeed almost constant.
69
+
70
+ To refine this convergence analysis, Schoenholz et al. (2017) established the existence of $\epsilon _ { q }$ and $\epsilon _ { c }$ such that $| q _ { a } ^ { l } - q | \sim e ^ { - l / \epsilon _ { q } }$ and $| c _ { a b } ^ { l } - 1 | \sim e ^ { - l / \epsilon _ { c } }$ when fixed points exist. The quantities $\epsilon _ { q }$ and $\epsilon _ { c }$ are called ‘depth scales’ since they represent the depth to which the variance and correlation can propagate without being exponentially close to their limits. More precisely, if we write $\chi _ { 1 } = \sigma _ { w } ^ { 2 } \mathbb { E } [ \bar { \phi ^ { \prime } } ( \bar { \sqrt { q } } \bar { Z } ) ^ { 2 } ]$ and $\alpha = \chi _ { 1 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime \prime } ( \sqrt { q } Z ) \phi ( \sqrt { q } Z ) ]$ then the depth scales are given by $\epsilon _ { r } = - \log ( \alpha ) ^ { - 1 }$ and $\epsilon _ { c } = - \log ( \chi _ { 1 } ) ^ { - 1 }$ . The equation $\chi _ { 1 } = 1$ corresponds to an infinite depth scale of the correlation. It is called the edge of chaos as it separates two phases: an ordered phase where the correlation converges to 1 if $\chi _ { 1 } < 1$ and a chaotic phase where $\chi _ { 1 } > 1$ and the correlations do not converge to 1. In this chaotic regime, it has been observed in Schoenholz et al. (2017) that the correlations converge to some random value $c < 1$ when $\phi ( x ) = \mathrm { T a n h } ( x )$ and that $c$ is independent of the correlation between the inputs. This means that very close inputs (in terms of correlation) lead to very different outputs. Therefore, in the chaotic phase, the output function of the neural network is non-continuous everywhere.
71
+
72
+ Definition 2. For $( \sigma _ { b } , \sigma _ { w } ) \in D _ { \phi , v a r }$ , let q be the limiting variance2. The Edge of Chaos, hereafter EOC, is the set of values of $\left( \sigma _ { b } , \sigma _ { w } \right)$ satisfying $\chi _ { 1 } = \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime } ( \sqrt { q } Z ) ^ { 2 } ] = 1$ .
73
+
74
+ To further study the EOC regime, the next lemma introduces a function $f$ called the ‘correlation function’ simplifying the analysis of the correlations. It states that the correlations have the same asymptotic behaviour as the time-homogeneous dynamical system $c _ { a b } ^ { l + 1 } = f ( c _ { a b } ^ { l } )$ .
75
+
76
+ Lemma 1. Let $( \sigma _ { b } , \sigma _ { w } ) \in D _ { \phi , v a r } \cap D _ { \phi , c o r r }$ such that $q > 0$ , $a , b \in \mathbb { R } ^ { d }$ and $\phi$ an activation function such that $\begin{array} { r } { \operatorname* { s u p } _ { x \in S } \mathbb { E } [ \phi ( x Z ) ^ { 2 } ] < \infty } \end{array}$ for all compact sets √ $S$ . Define $f _ { l }$ by $c _ { a b } ^ { l + 1 } = f _ { l } ( c _ { a b } ^ { l } )$ and $f$ by $\begin{array} { r } { f ( x ) = \frac { \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( \sqrt { q } Z _ { 1 } ) \phi ( \sqrt { q } ( x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } ) ) } { q } } \end{array}$ . Then $\begin{array} { r } { \operatorname* { l i m } _ { l \infty } \operatorname* { s u p } _ { x \in [ 0 , 1 ] } | f _ { l } ( x ) - f ( x ) | = 0 . } \end{array}$
77
+
78
+ The condition on $\phi$ in Lemma 1 is violated only by activation functions with exponential growth (which are not used in practice), so from now onwards, we use this approximation in our analysis. Note that being on the EOC is equivalent to $( \sigma _ { b } , \sigma _ { w } )$ satisfying $f ^ { \prime } ( 1 ) = 1$ . In the next section, we analyze this phase transition carefully for a large class of activation functions.
79
+
80
+ # 3 EDGE OF CHAOS
81
+
82
+ To illustrate the effect of the initialization on the EOC, we plot in Figure 2 the output of a ReLU neural network with 20 layers and 100 neurons per layer with parameters $( \sigma _ { b } ^ { 2 } , \sigma _ { w } ^ { 2 } ) = ( \mathsf { \bar { 0 } } , 2 )$ (as we will see later $\mathrm { E O C } = \{ ( 0 , \sqrt { 2 } ) \}$ for ReLU). Unlike the output in Figure 1, this output displays much more variability. However, we will prove here that the correlations still converges to 1 even in the EOC regime, albeit at a slower rate.
83
+
84
+ # 3.1 RELU-LIKE ACTIVATION FUNCTIONS
85
+
86
+ ![](images/227bb801e09b15a5209fdb1053b023bb8f21040bdf297f460a1bf93f25faa361.jpg)
87
+ Figure 2: A draw from the output function of a ReLu network with 20 layers, 100 neurons per layer, $( \sigma _ { b } ^ { 2 } , \bar { \sigma _ { w } ^ { 2 } } ) = ( 0 , 2 )$ (edge of chaos)
88
+
89
+ We consider activation functions $\phi$ of the form: $\phi ( x ) = \lambda x$ if $x > 0$ and $\phi ( x ) = \beta x$ if $x \leq 0$ . ReLU corresponds to $\lambda = 1$ and $\beta = 0$ . For this class of activation functions, we see (Proposition 2) that the variance is unchanged $( q _ { a } ^ { l } = q _ { a } ^ { 1 } )$ on the EOC, so that $q$ does not formally exist in the sense that the limit of $q _ { a } ^ { l }$ depends on $a$ . However, this does not impact the analysis of the correlations.
90
+
91
+ Proposition 2. Let $\phi$ be a ReLU-like function with $\lambda$ and $\beta$ defined above. Then for any $\begin{array} { r } { \sigma _ { w } < \sqrt { \frac { 2 } { \lambda ^ { 2 } + \beta ^ { 2 } } } } \end{array}$ and $\sigma _ { b } \geq 0$ , we have $( \sigma _ { b } , \sigma _ { w } ) \in D _ { \phi , v a r }$ with $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) = \infty$ . Moreover $\begin{array} { r } { E O C = \{ ( 0 , \frac { 1 } { \sqrt { \mathbb { E } [ \phi ^ { \prime } ( Z ) ^ { 2 } ] } } ) \} } \end{array}$ , √ 1E[φ0(Z)2] )} and, on the EOC, F (x) = x for any $x \geq 0$ .
92
+
93
+ This class of activation functions has the interesting property of preserving the variance across layers when the network is initialized on the EOC. However, we show in Proposition 3 below that, even in the EOC regime, the correlations converge to 1 but at a slower rate. We only present the result for ReLU but the generalization to the whole class is straightforward.
94
+
95
+ Example : ReLU: The EOC is reduced to the singleton $( \sigma _ { b } ^ { 2 } , \sigma _ { w } ^ { 2 } ) = ( 0 , 2 )$ , which means we should initialize a ReLU network with the parameters $( \bar { \sigma } _ { b } ^ { 2 } , \sigma _ { w } ^ { 2 } ) = ( \bar { 0 } , 2 )$ . This result coincides with the recommendation of He et al. (2015) whose objective was to make the variance constant as the input propagates but did not analyze the propagation of the correlations. Klambauer et al. (2017) also performed a similar analysis by using the "Scaled Exponential Linear Unit" activation (SELU) that makes it possible to center the mean and normalize the variance of the post-activation $\phi ( y )$ . The propagation of the correlation was not discussed therein either. In the next result, we present the correlation function corresponding to ReLU networks. This was first obtained in Cho & Saul (2009). We present an alternative derivation of this result and further show that the correlations converge to 1 at a polynomial rate of $1 / l ^ { 2 }$ instead of an exponential rate.
96
+
97
+ ![](images/b561b5a725551310ac9febadaa8763a49c33b898c38663d2947bf188813e15c1.jpg)
98
+ Figure 3: Impact of the initialization on the EOC for a ReLU network
99
+
100
+ Proposition 3 (ReLU kernel). Consider a ReLU network with parameters $( \sigma _ { b } ^ { 2 } , \sigma _ { w } ^ { 2 } ) = ( 0 , 2 )$ on the EOC.We have
101
+
102
+ Figure 3 displays the correlation function $f$ with two different sets of parameters $( \sigma _ { b } , \sigma _ { w } )$ . The red graph corresponds to the EOC $( \sigma _ { b } ^ { 2 } , \sigma _ { w } ^ { 2 } ) = ( 0 , 2 )$ , and the blue one corresponds to an ordered phase $( \bar { \sigma } _ { b } , \bar { \sigma } _ { w } ) = ( \bar { 1 } , 1 )$ . In unreported experiments, we observed that numerical convergence towards 1 for $l \geq 5 0$ on the EOC. As the variance $q _ { a } ^ { l }$ is preserved by the network $( q _ { a } ^ { l } = q _ { a } ^ { 1 } = 2 \| a \| ^ { 2 } / d )$ and the correlations $c _ { a b } ^ { l }$ converge to 1 as $l$ increases, the output function is of the form $C \cdot \| a \|$ for a constant $C$ (notice that in Figure 2, we start observing this effect for depth 20).
103
+
104
+ # 3.2 A BETTER CLASS OF ACTIVATION FUNCTIONS
105
+
106
+ We now introduce a set of sufficient conditions for activation functions which ensures that it is then possible to tune $\left( \sigma _ { b } , \sigma _ { w } \right)$ to slow the convergence of the correlations to 1. This is achieved by making the correlation function $f$ sufficiently close to the identity function.
107
+
108
+ Proposition 4 (Main Result). Let $\phi$ be an activation function. Assume that
109
+ (i) $\phi ( 0 ) = 0$ , and $\phi$ has right and left derivatives in zero and $\phi ^ { \prime } ( 0 ^ { + } ) \neq 0$ or $\phi ^ { \prime } ( 0 ^ { - } ) \neq 0$ , and there exists $k > 0$ such that $\big | \frac { \phi ( x ) } { x } \big | \leq k$ .
110
+ (ii) There exists $A > 0$ such that for any $\sigma _ { b } \in [ 0 , A ]$ , there exists $\sigma _ { w } > 0$ such that $( \sigma _ { b } , \sigma _ { w } ) \in E O C$ . (iii) For any $\sigma _ { b } \in [ 0 , A ]$ , the function $F$ with parameters $( \sigma _ { b } , \sigma _ { w } ) \in E O C$ is non-decreasing and $\scriptstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q = 0$ where $q$ is the minimal fixed point of $F$ , $q : = \operatorname* { i n f } \{ x : F ( x ) = x \}$ .
111
+ $( i \nu )$ For any $\sigma _ { b } \in [ 0 , A ]$ , the correlation function $f$ with parameters $( \sigma _ { b } , \sigma _ { w } ) \in E O C$ introduced in Lemma $^ { l }$ is convex.
112
+
113
+ Then, for any $\sigma _ { b } \in [ 0 , A ]$ , we have $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) \ge q$ , and
114
+
115
+ $$
116
+ \operatorname* { l i m } _ { \sigma _ { b } \to 0 } \operatorname* { s u p } _ { x \in [ 0 , 1 ] } | f ( x ) - x | = 0 .
117
+ $$
118
+
119
+ Note that ReLU does not satisfy the condition $( i i )$ since the EOC in this case is the singleton $( \sigma _ { b } ^ { 2 } , \sigma _ { w } ^ { 2 } ) = ( 0 , 2 )$ . The result of Proposition 4 states that we can make $f ( x )$ close to $x$ by considering $\sigma _ { b } \ \ 0$ . However, this is under condition $( i i i )$ which states that $\textstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q \ = \ 0$ . Therefore, practically, we cannot take $\sigma _ { b }$ too small. One might wonder whether condition $( i i i )$ is necessary for this result to hold. The next lemma shows that removing this condition results in a useless class of activation functions.
120
+
121
+ ![](images/2c52e8ca7c9650fb6981180040517400bd14ed471e430e501603d0e81e0fd882.jpg)
122
+
123
+ (a) The correlation function $f$ of a Swish network for different values of $\sigma _ { b }$
124
+
125
+ ![](images/4fddc8b8d1192b827546854ef5e42088eb4844a2a488f6e319586405c4f4307b.jpg)
126
+ (b) A draw from the output function of a Swish network with depth 30 and width 100 on the edge of chaos for
127
+ Figure 4: Correlation function and a draw of the output for a Swish network
128
+
129
+ Lemma 2. Under the conditions of Proposition 4, the only change being $\textstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q > 0$ , the result of Proposition 4 holds if only if the activation function is linear.
130
+
131
+ The next proposition gives sufficient conditions for bounded activation functions to satisfy all the conditions of Proposition 4.
132
+
133
+ Proposition 5. Let $\phi$ be a bounded function such that $\phi ( 0 ) = 0$ , $\phi ^ { \prime } ( 0 ) > 0$ , $\phi ^ { \prime } ( x ) \geq 0$ , $\phi ( - x ) =$ $- \phi ( x )$ , $x \phi ( x ) > 0$ and $x \phi ^ { \prime \prime } ( x ) < 0$ for $x \neq 0$ , and $\phi$ satisfies (ii) in Proposition 4. Then, $\phi$ satisfies all the conditions of Proposition 4.
134
+
135
+ The conditions in Proposition 5 are easy to verify and are, for example, satisfied by Tanh and Arctan. We can also replace the assumption " $" \phi$ satisfies (ii) in Proposition $4 "$ by a sufficient condition (see Proposition 7 in the Supplementary Material). Tanh-like activation functions provide better information flow in deep networks compared to ReLU-like functions. However, these functions suffer from the vanishing gradient problem during back-propagation; see, e.g., Pascanu et al. (2013) and Kolen & Kremer (2001). Thus, an activation function that satisfies the conditions of Proposition 4 (in order to have a good ’information flow’) and does not suffer from the vanishing gradient issue is expected to perform better than ReLU. Swish is a good candidate.
136
+
137
+ Proposition 6. The Swish activation function $\begin{array} { r } { \phi _ { s w i s h } ( x ) = x \cdot s i g m o i d ( x ) = \frac { x } { 1 + e ^ { - x } } } \end{array}$ satisfies all the conditions of Proposition 4.
138
+
139
+ It is clear that Swish does not suffer from the vanishing gradient problem as it has a gradient close to 1 for large inputs like ReLU. Figure 4 (a) displays $f$ for Swish for different values of $\sigma _ { b }$ . We see that $f$ is indeed approaching the identity function when $\sigma _ { b }$ is small, preventing the correlations from converging to 1. Figure 4(b) displays a draw of the output of a neural network of depth 30 and width 100 with Swish activation, and $\sigma _ { b } = 0 . 2$ . The outputs displays much more variability than the ones of the ReLU network with the same architecture. We present in Table 1 some values of $\left( \sigma _ { b } , \sigma _ { w } \right)$ on the EOC as well as the corresponding limiting variance for Swish. As condition $( i i i )$ of Proposition 4 is satisfied, the limiting variance $q$ decreases with $\sigma _ { b }$ .
140
+
141
+ Table 1: Values of $\left( \sigma _ { b } , \sigma _ { w } \right)$ on the EOC and limiting variance $q$ for Swish
142
+
143
+ <table><tr><td>Jb</td><td>0.1</td><td>0.2</td><td>0.3</td><td>0.4</td><td>0.5</td></tr><tr><td>w</td><td>1.845</td><td>1.718</td><td>1.616</td><td>1.537</td><td>1.485</td></tr><tr><td>q</td><td>0.14</td><td>0.44</td><td>0.61</td><td>1.01</td><td>2.13</td></tr></table>
144
+
145
+ Other activation functions that have been shown to outperform empirically ReLU such as ELU (Clevert et al. (2016)), SELU (Klambauer et al. (2017)) and Softplus also satisfy the conditions of Proposition 4 (see Supplementary Material for ELU). The comparison of activation functions satisfying the conditions of Proposition 4 remains an open question.
146
+
147
+ # 4 EXPERIMENTAL RESULTS
148
+
149
+ We demonstrate empirically our results on the MNIST dataset. In all the figures below, we compare the learning speed (test accuracy with respect to the number of epochs/iterations) for different activation functions and initialization parameters. We use the Adam optimizer with learning rate $\mathbf { l r } = 0 . 0 0 1$ . The Python code to reproduce all the experiments will be made available on-line.
150
+
151
+ Initialization on the Edge of Chaos We initialize randomly the deep network by sampling $W _ { i j } ^ { l } \stackrel { i i d } { \sim }$ $\mathcal { N } ( 0 , \sigma _ { w } ^ { 2 } / N _ { l - 1 } )$ and $B _ { i } ^ { l } \overset { i i d } { \sim } \mathcal { N } ( 0 , \sigma _ { b } ^ { 2 } )$ . In Figure 5, we compare the learning speed of a Swish network for different choices of random initialization. Any initialization other than on the edge of chaos results in the optimization algorithm being stuck eventually at a very poor test accuracy of $\sim 0 . 1$ as the depth $L$ increases (equivalent to selecting the output uniformly at random). To understand what is happening in this case, let us recall how the optimization algorithm works. Let $\{ ( X _ { i } , Y _ { i } ) , 1 \leq i \leq N \}$ be the MNIST dataset. The loss we optimize is given by $\begin{array} { r } { \mathcal { L } ( w , b ) = \sum _ { i = 1 } ^ { N } \ell ( y ^ { L } ( X _ { i } ) , Y _ { i } ) / N } \end{array}$ where $y ^ { L } ( x )$ is the output of the network, and $\ell$ is the categorical cross-entropy loss. In the ordered phase, we know that the output converges exponentially to a fixed value (same value for all $X _ { i }$ ), thus a small change in $w$ and $b$ will not change significantly the value of the loss function, therefore the gradient is approximately zero and the gradient descent algorithm will be stuck around the initial value.
152
+
153
+ ![](images/efaa881563f0962ee53a7d2dd5064e0ba71fe98dcd7e8d5cbe738619d65835cc.jpg)
154
+ Figure 5: Impact of the initialization on the edge of chaos for Swish network
155
+
156
+ ReLU versus Tanh We proved in Section 3.2 that the Tanh activation guarantees better information propagation through the network when initialized on the EOC. However, Tanh suffers
157
+
158
+ ![](images/90b381d8088acb02fa69f71a50ef1959e721d6fe23d7e8eb3e19ccb898a5bc83.jpg)
159
+ Figure 6: Comparaison of ReLu and Tanh learning curves for different widths and depths
160
+
161
+ from the vanishing gradient problem. Consequently, we expect Tanh to perform better than ReLU for shallow networks as opposed to deep networks, where the problem of the vanishing gradient is not encountered. Numerical results confirm this fact. Figure 6 shows curves of validation accuracy with confidence interval $9 0 \%$ (30 simulations). For depth 5, the learning algorithm converges faster for Tanh compared to ReLu. However, for deeper networks $L \geq 4 0 ) ,$ ), Tanh is stuck at a very low test accuracy, this is due to the fact that a lot of parameters remain essentially unchanged because the gradient is very small.
162
+
163
+ ReLU versus Swish As established in Section 3.2, Swish, like Tanh, propagates the information better than ReLU and, contrary to Tanh, it does not suffer from the vanishing gradient problem. Hence our results suggest that Swish should perform better than ReLU, especially for deep architectures. Numerical results confirm this fact. Figure 7 shows curves of validation accuracy with confidence interval $9 0 \%$ (30 simulations). Swish performs clearly better than ReLU especially for depth 40. A comparative study of final accuracy is shown in Table 2. We observe a clear advantage for Swish, especially for large depths. Additional simulations results on diverse datasets demonstrating better performance of Swish over many other activation functions can be found in Ramachandran et al. (2017) (Notice that these authors have already implemented Swish in Tensorflow).
164
+
165
+ ![](images/979885afdba59d50b929b7fd51a2d90a3bfd77ad0071b79dd3be779dcf9f0384.jpg)
166
+ Figure 7: Convergence across iterations of the learning algorithm for ReLU and Swish networks
167
+
168
+ Table 2: Accuracy on test set for different values of (width, depth)
169
+
170
+ <table><tr><td></td><td>(10,5)</td><td>(20,10)</td><td>(40,30)</td><td>(60,40)</td></tr><tr><td>ReLU</td><td>94.01</td><td>96.01</td><td>96.51</td><td>91.45</td></tr><tr><td>Swish</td><td>94.46</td><td>96.34</td><td>97.09</td><td>97.14</td></tr></table>
171
+
172
+ # 5 CONCLUSION AND DISCUSSION
173
+
174
+ We have complemented here the analysis of Schoenholz et al. (2017) which shows that initializing networks on the EOC provides a better propagation of information across layers. In the ReLU case, such an initialization corresponds to the popular approach proposed in He et al. (2015). However, even on the EOC, the correlations still converge to 1 at a polynomial rate for ReLU networks. We have obtained a set of sufficient conditions for activation functions which further improve information propagation when the parameters $\left( \sigma _ { b } , \sigma _ { w } \right)$ are on the EOC. The Tanh activation satisfied those conditions but, more interestingly, other functions which do not suffer from the vanishing/exploding gradient problems also verify them. This includes the Swish function used in Hendrycks & Gimpel (2016), Elfwing et al. (2017) and promoted in Ramachandran et al. (2017) but also ELU Clevert et al. (2016).
175
+
176
+ Our results have also interesting implications for Bayesian neural networks which have received renewed attention lately; see, e.g., Hernandez-Lobato $\&$ Adams (2015) and Lee et al. (2018). They show that if one assigns i.i.d. Gaussian prior distributions to the weights and biases, the resulting prior distribution will be concentrated on close to constant functions even on the EOC for ReLU-like activation functions. To obtain much richer priors, our results indicate that we need to select not only parameters $\left( \sigma _ { b } , \sigma _ { w } \right)$ on the EOC but also an activation function satisfying Proposition 4.
177
+
178
+ # REFERENCES
179
+
180
+ Y. Cho and L.K. Saul. Kernel methods for deep learning. Advances in Neural Information Processing Systems, 22:342–350, 2009.
181
+ D.A. Clevert, T. Unterthiner, and S. Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). International Conference on Learning Representations, 2016.
182
+ S. Elfwing, E. Uchibe, and K. Doya. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. arXiv:1702.03118, 2017.
183
+ K. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. ICCV, 2015.
184
+ D.. Hendrycks and K. Gimpel. Bridging nonlinearities and stochastic regularizers with gaussian error linear units. arXiv:1606.08415, 2016.
185
+ J. M. Hernandez-Lobato and R.P. Adams. Probabilistic backpropagation for scalable learning of bayesian neural networks. ICML, 2015.
186
+ G. Klambauer, T. Unterthiner, and A. Mayr. Self-normalizing neural networks. Advances in Neural Information Processing Systems, 30, 2017.
187
+ J.F. Kolen and S.C. Kremer. Gradient flow in recurrent nets: The difficulty of learning longterm dependencies. A Field Guide to Dynamical Recurrent Network, Wiley-IEEE Press, pp. 464–, 2001.
188
+ Y. LeCun, L. Bottou, G. Orr, and K. Muller. Efficient backprop. Neural Networks: Tricks of the trade, Springer, 1998.
189
+ J. Lee, Y. Bahri, R. Novak, S.S. Schoenholz, J. Pennington, and J. Sohl-Dickstein. Deep neural networks as gaussian processes. 6th International Conference on Learning Representations, 2018.
190
+ A.G. Matthews, J. Hron, M. Rowland, R.E. Turner, and Z. Ghahramani. Gaussian process behaviour in wide deep neural networks. 6th International Conference on Learning Representations, 2018.
191
+ G.F. Montufar, R. Pascanu, K. Cho, and Y. Bengio. On the number of linear regions of deep neural networks. Advances in Neural Information Processing Systems, 27:2924–2932, 2014.
192
+ R.M. Neal. Bayesian learning for neural networks. Springer Science & Business Media, 118, 1995.
193
+ R. Pascanu, T. Mikolov, and Y. Bengio. On the difficulty of training recurrent neural networks. Proceedings of the 30th International Conference on Machine Learning, 28:1310–1318, 2013.
194
+ B. Poole, S. Lahiri, M. Raghu, J. Sohl-Dickstein, and S. Ganguli. Exponential expressivity in deep neural networks through transient chaos. 30th Conference on Neural Information Processing Systems, 2016.
195
+ P. Ramachandran, B. Zoph, and Q.V. Le. Searching for activation functions. arXiv e-print 1710.05941, 2017.
196
+ S.S. Schoenholz, J. Gilmer, S. Ganguli, and J. Sohl-Dickstein. Deep information propagation. 5th International Conference on Learning Representations, 2017.
197
+
198
+ # A PROOFS
199
+
200
+ We provide in the supplementary material the proofs of the propositions presented in the main document, and we give additive theoretical and experimental results. For the sake of clarity we recall the propositions before giving their proofs.
201
+
202
+ # A.1 CONVERGENCE TO THE FIXED POINT: PROPOSITION 1
203
+
204
+ Proposition 1. Let $\begin{array} { r } { M _ { \phi } : = \operatorname* { s u p } _ { x \ge 0 } \mathbb { E } [ | \phi ^ { \prime 2 } ( x Z ) + \phi ^ { \prime \prime } ( x Z ) \phi ( x Z ) | ] } \end{array}$ . Suppose $M _ { \phi } < \infty$ , then for $\begin{array} { r } { \sigma _ { w } ^ { 2 } < \frac { 1 } { M _ { \phi } } } \end{array}$ and any $\sigma _ { b }$ , we have $( \sigma _ { b } , \sigma _ { w } ) \in D _ { \phi , v a r }$ and $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) = \infty$
205
+
206
+ Moreover, let $\begin{array} { r l r } { C _ { \phi , \delta } } & { : = } & { \operatorname* { s u p } _ { x , y \geq 0 , | x - y | \leq \delta , c \in [ 0 , 1 ] } \mathbb { E } [ | \phi ^ { \prime } ( x Z _ { 1 } ) \phi ^ { \prime } ( y ( c Z _ { 1 } + \sqrt { 1 - c ^ { 2 } } Z _ { 2 } ) | ] } \end{array}$ ]. Suppose $C _ { \phi , \delta } \ < \ \infty$ for some positive $\delta$ , then for $\begin{array} { r } { \sigma _ { w } ^ { 2 } \ < \ \operatorname* { m i n } ( \frac { 1 } { M _ { \phi } } , \frac { 1 } { C _ { \phi } } ) } \end{array}$ and any $\sigma _ { b }$ , we have $( \sigma _ { b } , \sigma _ { w } ) \in$ $D _ { \phi , v a r } \cap D _ { \phi , c o r r }$ and $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) = K _ { \phi , c o r r } ( \sigma _ { b } , \sigma _ { w } ) = \infty$ .
207
+
208
+ Proof. To abbreviate the notation, we use $\boldsymbol { q } ^ { l } : = \boldsymbol { q } _ { a } ^ { l }$ for some fixed input a.
209
+
210
+ Convergence of the variances: We first consider the asymptotic behaviour of $q ^ { l } = q _ { a } ^ { l }$ . Recall that $q ^ { l } = F \tilde { ( q ^ { l - 1 } ) }$ where,
211
+
212
+ $$
213
+ F ( x ) = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( { \sqrt { x } } Z ) ^ { 2 } ] .
214
+ $$
215
+
216
+ The first derivative of this function is given by:
217
+
218
+ $$
219
+ F ^ { \prime } ( x ) = \sigma _ { w } ^ { 2 } \mathbb { E } [ \frac { Z } { \sqrt { x } } \phi ^ { \prime } ( \sqrt { x } Z ) \phi ( \sqrt { x } Z ) ] = \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime } ( \sqrt { x } Z ) ^ { 2 } + \phi ^ { \prime \prime } ( \sqrt { x } Z ) \phi ( \sqrt { x } Z ) ]
220
+ $$
221
+
222
+ where we used Gaussian integration by parts $\mathbb { E } [ Z G ( Z ) ] = \mathbb { E } [ G ^ { \prime } ( Z ) ]$ , an identify satisfied by any function $G$ such that $\mathbb { E } [ | G ^ { \prime } ( Z ) | ] < \infty$ .
223
+
224
+ Using the condition on $\phi$ , we see that for $\begin{array} { r } { \sigma _ { w } ^ { 2 } \ < \ \frac { 1 } { M _ { \phi } } } \end{array}$ , the function $F$ is a contraction mapping, and the Banach fixed-point theorem guarantees the existence of a unique fixed point $q$ of $F$ , with $\textstyle \operatorname* { l i m } _ { l \to + \infty } q ^ { l } = q$ . Note that this fixed point depends only on $F$ , therefore, this is true for any input $a$ , and $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) = \infty$ .
225
+
226
+ Convergence of the covariances: Since $M _ { \phi } < \infty$ , then for all $a , b \in \mathbb { R } ^ { d }$ there exists $l _ { 0 }$ such that, for all $l > l _ { 0 } , | \sqrt { q _ { a } ^ { l } } - \sqrt { q _ { b } ^ { l } } | < \delta$ . Let $l > l _ { 0 }$ , using Gaussian integration by parts, we have
227
+
228
+ $$
229
+ \frac { d c _ { a b } ^ { l + 1 } } { d c _ { a b } ^ { l } } = \sigma _ { w } ^ { 2 } \mathbb { E } [ | \phi ^ { \prime } ( \sqrt { q _ { a } ^ { l } } Z _ { 1 } ) \phi ^ { \prime } ( \sqrt { q _ { b } ^ { l } } ( c _ { a b } ^ { l } Z _ { 1 } + \sqrt { 1 - ( c _ { a b } ^ { l } ) ^ { 2 } } Z _ { 2 } ) | ] .
230
+ $$
231
+
232
+ We cannot use the Banach fixed point theorem directly because the integrated function here depends on $l$ through $q ^ { l }$ . For ease of notation, we write $c ^ { l } : = \dot { c } _ { a b } ^ { l }$ , we have
233
+
234
+ $$
235
+ | c ^ { l + 1 } - c ^ { l } | = | \int _ { c ^ { l - 1 } } ^ { c ^ { l } } \frac { d c ^ { l + 1 } } { d c ^ { l } } ( x ) d x | \le \sigma _ { w } ^ { 2 } C _ { \phi } | c ^ { l } - c ^ { l - 1 } | .
236
+ $$
237
+
238
+ Therefore, for $\begin{array} { r } { \sigma _ { w } ^ { 2 } < \operatorname* { m i n } \bigl ( \frac { 1 } { M _ { \phi } } , \frac { 1 } { C _ { \phi } } \bigr ) , } \end{array}$ $c ^ { l }$ is a Cauchy sequence and it converges to a limit $c \in [ 0 , 1 ]$ At the limit
239
+
240
+ $$
241
+ c = f ( c ) = \frac { \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( \sqrt { q } z _ { 1 } ) \phi ( \sqrt { q } ( c z _ { 1 } + \sqrt { 1 - c ^ { 2 } } z _ { 2 } ) ) ) ] } { q } ,
242
+ $$
243
+
244
+ The derivative of this function is given by
245
+
246
+ $$
247
+ f ^ { \prime } ( x ) = \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime } ( { \sqrt { q } } Z _ { 1 } ) \phi ^ { \prime } ( { \sqrt { q } } ( x Z _ { 1 } + { \sqrt { 1 - x } } Z _ { 2 } ) ]
248
+ $$
249
+
250
+ By assumption on $\phi$ and the choice of $\sigma _ { w }$ , we have $\begin{array} { r } { \operatorname* { s u p } _ { x } | f ^ { \prime } ( x ) | < 1 } \end{array}$ , so that $f$ is a contraction, and has a unique fixed point. Since $f ( 1 ) = 1$ , $c = 1$ . The above result is true for any $a , b$ , therefore, $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) = \bar { K } _ { \phi , c o r r } ( \sigma _ { b } , \sigma _ { w } ) = \infty$ . □
251
+
252
+ As an illustration we plot in Figure 12 the variance for three different inputs with $( \sigma _ { b } , \sigma _ { w } ) = ( 1 , 1 )$ , as a function of the layer l. In this example, the convergence for Tanh is faster than that of ReLU.
253
+
254
+ ![](images/2a659e3f248b7002f1d1f26a057bc37f97be473666bff9d2326a11970e0e601b.jpg)
255
+ Figure 8: Convergence of the variance for three different inputs with $( \sigma _ { b } , \sigma _ { w } ) = ( 1 , 1 )$
256
+
257
+ Lemma 1. Let $( \sigma _ { b } , \sigma _ { w } ) \in D _ { \phi , v a r } \cap D _ { \phi , c o r r }$ such that $q > 0$ , $a , b \in \mathbb { R } ^ { d }$ and $\phi$ an activation function such that $\begin{array} { r } { \operatorname* { s u p } _ { x \in K } \mathbb { E } [ \phi ( x Z ) ^ { 2 } ] < \infty } \end{array}$ for all compact sets $K$ . Define $f _ { l }$ by $c _ { a , b } ^ { l + 1 } = f _ { l } ( c _ { a , b } ^ { l } )$ and $f$ by $\begin{array} { r } { f ( x ) = \frac { \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( \sqrt { q } Z _ { 1 } ) \phi ( \sqrt { q } ( x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } ) ) } { q } } \end{array}$ . Then $\begin{array} { r } { \operatorname* { l i m } _ { l \infty } \operatorname* { s u p } _ { x \in [ 0 , 1 ] } | f _ { l } ( x ) - f ( x ) | = 0 . } \end{array}$ .
258
+
259
+ Proof. For $x \in [ 0 , 1 ]$ , we have
260
+
261
+ $$
262
+ \begin{array} { l } { \displaystyle f _ { l } ( x ) - f ( x ) = \big ( \frac { 1 } { \sqrt { q _ { a } ^ { l } q _ { b } ^ { l } } } - \frac { 1 } { q } \big ) \big ( \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi \big ( \sqrt { q _ { a } ^ { l } } Z _ { 1 } \big ) \phi \big ( \sqrt { q _ { b } ^ { l } } u _ { 2 } ( x ) \big ) ] \big ) } \\ { \displaystyle \qquad + \frac { \sigma _ { w } ^ { 2 } } { q } \big ( \mathbb { E } [ \phi \big ( \sqrt { q _ { a } ^ { l } } Z _ { 1 } \big ) \phi \big ( \sqrt { q _ { b } ^ { l } } u _ { 2 } ( x ) \big ) ] - \mathbb { E } [ \phi \big ( \sqrt { q } Z _ { 1 } \big ) \phi ( \sqrt { q } u _ { 2 } ( x ) \big ) ] \big ) , } \end{array}
263
+ $$
264
+
265
+ where $u _ { 2 } ( x ) : = x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 }$ . The first term goes to zero uniformly in $x$ using the condition on $\phi$ and Cauchy-Schwartz inequality. As for the second term, it can be written as
266
+
267
+ $$
268
+ \mathbb { E } [ ( \phi ( \sqrt { q _ { a } ^ { l } } Z _ { 1 } ) - \phi ( \sqrt { q } Z _ { 1 } ) ) \phi ( \sqrt { q _ { b } ^ { l } } u _ { 2 } ( x ) ) ] + \mathbb { E } [ \phi ( \sqrt { q } Z _ { 1 } ) ( \phi ( \sqrt { q _ { b } ^ { l } } u _ { 2 } ( x ) ) - \phi ( \sqrt { q } u _ { 2 } ( x ) ) ) ]
269
+ $$
270
+
271
+ again, using Cauchy-Schwartz and the condition on $\phi$ , both terms can be controlled uniformly in $x$ by an integrable upper bound. We conclude using the Dominated convergence. □
272
+
273
+ A.2 RESULTS FOR RELU-LIKE ACTIVATION FUNCTIONS: PROOF OF PROPOSITIONS 2 AND 3
274
+
275
+ Proposition 2. Let $\phi$ be a ReLU-like function with $\lambda$ and $\beta$ defined above. Then for any $\sigma _ { w } \ <$ q 2λ2+β2 and σb ≥ 0, we have (σb, σw) ∈ Dφ,var with Kφ,var(σb, σw) = ∞. Moreover EOC = $\big \{ ( 0 , \frac { 1 } { \sqrt { \mathbb { E } [ \phi ^ { \prime } ( Z ) ^ { 2 } ] } } ) \big \}$ and, on the EOC, $F ( x ) = x$ for any $x \geq 0$ .
276
+
277
+ Proof. We write $q ^ { l } = q _ { a } ^ { l }$ throughout the proof. Note first that the variance satisfies the recursion:
278
+
279
+ $$
280
+ q ^ { l + 1 } = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( Z ) ^ { 2 } ] q ^ { l } = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \frac { \lambda ^ { 2 } + \beta ^ { 2 } } { 2 } q ^ { l } .
281
+ $$
282
+
283
+ For all $\begin{array} { r } { \sigma _ { w } < \sqrt { \frac { 2 } { \lambda ^ { 2 } + \beta ^ { 2 } } } } \end{array}$ , $q = \sigma _ { b } ^ { 2 } \left( 1 - \sigma _ { w } ^ { 2 } ( \lambda ^ { 2 } + \beta ^ { 2 } ) / 2 \right) ^ { - 1 }$ is a fixed point. This is true for any input, therefore $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) = \infty$ and (i) is proved.
284
+
285
+ Now, the EOC equation is given by $\begin{array} { r } { \chi _ { 1 } = \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime } ( Z ) ^ { 2 } ] = \sigma _ { w } ^ { 2 } \frac { \lambda ^ { 2 } + \beta ^ { 2 } } { 2 } } \end{array}$ . Therefore, σ2w $\begin{array} { r } { \sigma _ { w } ^ { 2 } = \frac { 2 } { \lambda ^ { 2 } + \beta ^ { 2 } } } \end{array}$ . Replacing $\sigma _ { w } ^ { 2 }$ by its critical value in equation 4 yields
286
+
287
+ $$
288
+ \begin{array} { r } { q ^ { l + 1 } = \sigma _ { b } ^ { 2 } + q ^ { l } . } \end{array}
289
+ $$
290
+
291
+ Thus $q = \sigma _ { b } ^ { 2 } + q$ if and only if $\sigma _ { b } = 0$ , otherwise $q ^ { l }$ diverges to infinity. So the frontier is reduced to a single point $( \sigma _ { b } ^ { 2 } , \sigma _ { w } ^ { 2 } ) = ( \bar { 0 } , \mathbb { E } [ \phi ^ { \prime } ( Z ) ^ { 2 } ] ^ { - 1 } )$ , and the variance does not depend on $l$ .
292
+
293
+ Proposition 3 (ReLU kernel). Consider a ReLU network with parameters $( \sigma _ { b } ^ { 2 } , \sigma _ { w } ^ { 2 } ) = ( 0 , 2 )$ on the EOC.We have
294
+
295
+ (i) for $x \in [ 0 , 1 ]$ , $\begin{array} { r } { f ( x ) = \frac { 1 } { \pi } x \arcsin ( x ) + \frac { 1 } { \pi } \sqrt { 1 - x ^ { 2 } } + \frac { 1 } { 2 } x , } \end{array}$ , ii) for any $( a , b )$ , $\begin{array} { r } { \operatorname* { l i m } _ { l \to \infty } c _ { a b } ^ { l } = 1 } \end{array}$ and $\begin{array} { r } { 1 - c _ { a b } ^ { l } \sim \frac { 9 \pi ^ { 2 } } { 2 l ^ { 2 } } } \end{array}$ 9π22l2 as l → ∞.
296
+
297
+ Proof. In this case the correlation function $f$ is given by $f ( x ) = 2 \mathbb { E } [ ( Z _ { 1 } ) _ { + } ( x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } ) _ { + } ]$ where $( x ) _ { + } : = x 1 _ { x > 0 }$ .
298
+
299
+ • Let $x \in [ 0 , 1 ]$ , note that $f$ is differentiable and satisfies,
300
+
301
+ $$
302
+ \begin{array} { r } { f ^ { \prime } ( x ) = 2 \mathbb { E } [ 1 _ { Z _ { 1 } > 0 } 1 _ { x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } > 0 } ] , } \end{array}
303
+ $$
304
+
305
+ which is also differentiable. Simple algebra leads to
306
+
307
+ $$
308
+ f ^ { " } \left( x \right) = { \frac { 1 } { \pi { \sqrt { 1 - x ^ { 2 } } } } } .
309
+ $$
310
+
311
+ Since $\begin{array} { r } { \arcsin ^ { \prime } ( x ) = \frac { 1 } { \sqrt { 1 - x ^ { 2 } } } } \end{array}$ and $f ^ { \prime } ( 0 ) = 1 / 2$
312
+
313
+ $$
314
+ f ^ { \prime } ( x ) = { \frac { 1 } { \pi } } \arcsin ( x ) + { \frac { 1 } { 2 } } .
315
+ $$
316
+
317
+ We conclude using the fact that $\textstyle { \int \arcsin } = x \arcsin + { \sqrt { 1 - x ^ { 2 } } }$ and $f ( 1 ) = 1$ .
318
+
319
+ • We first derive a Taylor expansion of $f$ near 1. Consider the change of variable $x = 1 - t ^ { 2 }$ with $t$ close to 0, then
320
+
321
+ $$
322
+ \arcsin ( 1 - t ^ { 2 } ) = { \frac { \pi } { 2 } } - { \sqrt { 2 } } t - { \frac { \sqrt { 2 } } { 1 2 } } t ^ { 3 } + O ( t ^ { 5 } ) ,
323
+ $$
324
+
325
+ so that
326
+
327
+ $$
328
+ \arcsin ( x ) = { \frac { \pi } { 2 } } - { \sqrt { 2 } } ( 1 - x ) ^ { 1 / 2 } - { \frac { \sqrt { 2 } } { 1 2 } } ( 1 - x ) ^ { 3 / 2 } + O ( ( 1 - x ) ^ { 5 / 2 } ) ,
329
+ $$
330
+
331
+ and
332
+
333
+ $$
334
+ x \arcsin ( x ) = { \frac { \pi } { 2 } } - { \sqrt { 2 } } ( 1 - x ) ^ { 1 / 2 } + { \frac { 1 1 { \sqrt { 2 } } } { 1 2 } } ( 1 - x ) ^ { 3 / 2 } + O ( ( 1 - x ) ^ { 5 / 2 } ) .
335
+ $$
336
+
337
+ Since
338
+
339
+ $$
340
+ \sqrt { 1 - x ^ { 2 } } = \sqrt { 2 } ( 1 - x ) ^ { 1 / 2 } - \frac { \sqrt { 2 } } { 4 } ( 1 - x ) ^ { 3 / 2 } + O ( ( 1 - x ) ^ { 5 / 2 } ) ,
341
+ $$
342
+
343
+ we obtain that
344
+
345
+ $$
346
+ f ( x ) \mathop = _ { x \to 1 - } x + \frac { 2 \sqrt { 2 } } { 3 \pi } ( 1 - x ) ^ { 3 / 2 } + O ( ( 1 - x ) ^ { 5 / 2 } ) .
347
+ $$
348
+
349
+ Since $\begin{array} { r } { ( f ( x ) - x ) ^ { \prime } = \frac { 1 } { \pi } ( \arcsin ( x ) - \frac { \pi } { 2 } ) < 0 } \end{array}$ and $f ( 1 ) = 1$ , for all $x \in [ 0 , 1 [ , f ( x ) > x $ If $c ^ { l } < c ^ { l + 1 }$ then by taking the image by $f$ (which is increasing because $f ^ { \prime } \geq 0 .$ ) we have that $c ^ { l + 1 } < c ^ { l + 2 }$ , and we know that $c ^ { 1 } = f ( c ^ { 0 } ) \geq c ^ { 0 }$ , so by induction the sequence $c ^ { l }$ is increasing, and therefore it converges (because it is bounded) to the fixed point of $f$ which is 1.
350
+
351
+ Nowthat $\gamma _ { l } : = 1 - c _ { a b } ^ { l }$ $a , b$ d. We note so that $\begin{array} { r } { s = \frac { 2 \sqrt { 2 } } { 3 \pi } } \end{array}$ , from the series expansion we have $\gamma _ { l + 1 } = \gamma _ { l } - s \gamma _ { l } ^ { 3 / 2 } + O ( \gamma _ { l } ^ { 5 / 2 } )$
352
+
353
+ $$
354
+ \begin{array} { l } { { \gamma _ { l + 1 } ^ { - 1 / 2 } = \gamma _ { l } ^ { - 1 / 2 } ( 1 - s \gamma _ { l } ^ { 1 / 2 } + O ( \gamma _ { l } ^ { 3 / 2 } ) ) ^ { - 1 / 2 } = \gamma _ { l } ^ { - 1 / 2 } ( 1 + \frac { s } { 2 } \gamma _ { l } ^ { 1 / 2 } + O ( \gamma _ { l } ^ { 3 / 2 } ) ) } } \\ { { \nonumber } } \\ { { \qquad = \gamma _ { l } ^ { - 1 / 2 } + \frac { s } { 2 } + O ( \gamma _ { l } ) . } } \end{array}
355
+ $$
356
+
357
+ Thus, as $l$ goes to infinity
358
+
359
+ $$
360
+ \gamma _ { l + 1 } ^ { - 1 / 2 } - \gamma _ { l } ^ { - 1 / 2 } \sim \frac { s } { 2 }
361
+ $$
362
+
363
+ and by summing and equivalence of positive divergent series
364
+
365
+ $$
366
+ \gamma _ { l } ^ { - 1 / 2 } \sim \frac { s } { 2 } l ,
367
+ $$
368
+
369
+ which terminates the proof.
370
+
371
+ A.3 A BETTER CLASS OF ACTIVATION FUNCTIONS: PROOFS OF PROPOSITIONS 4, 5, 6 AND LEMMA 2
372
+
373
+ Proposition 4 (main result). Let √ $\phi$ be an activation function. Recall the definition of the variance function $F ( x ) : = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( { \sqrt { x } } Z ) ^ { 2 } ]$ . Assume that
374
+ (i) $\phi ( 0 ) = 0$ , and $\phi$ has right and left derivatives in zero and at least one of them is different from zero $( \phi ^ { \prime } ( 0 ^ { + } ) \neq 0$ or $\phi ^ { \prime } ( 0 ^ { - } ) \neq 0 ,$ ), and there exists $K > 0$ such that $\textstyle | { \frac { \phi ( x ) } { x } } | \leq K$ .
375
+ (ii) There exists $A > 0$ such that for any $\sigma _ { b } \in [ 0 , A ]$ , there exists $\sigma _ { w , E O C } > 0$ such that $( \sigma _ { b } , \sigma _ { w , E O C } ) \in$ EOC.
376
+ (iii) For any $\sigma _ { b } ~ \in ~ [ 0 , A ]$ , the function $F$ with parameters $( \sigma _ { b } , \sigma _ { w , E O C } )$ is non-decreasing and $\scriptstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q = 0$ where $q$ is the minimal fixed point of $F$ , $q : = \operatorname* { i n f } \{ x : F ( x ) = x \} .$ ).
377
+ $( i \nu )$ For any $\sigma _ { b } \in [ 0 , A ]$ , the correlation function $f$ with parameters $( \sigma _ { b } , \sigma _ { w , E O C } )$ introduced in Lemma $^ { l }$ is convex.
378
+
379
+ Then, for any $\sigma _ { b } \in [ 0 , A ]$ , we have $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) \ge q$ , and
380
+
381
+ $$
382
+ \operatorname* { l i m } _ { \sigma _ { b } \to 0 } \operatorname* { s u p } _ { x \in [ 0 , 1 ] } | f ( x ) - x | = 0 .
383
+ $$
384
+
385
+ Proof. We first prove that $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) \ge q$ . We assume that $\sigma _ { b } > 0$ , the case $\sigma _ { b } = 0$ is trivial since in this case $q = 0$ (the output of the network is zero in this case).
386
+
387
+ Since $F$ is continuous and $F ( 0 ) = \sigma _ { b } ^ { 2 } > 0$ , we have $x \leq F ( x ) \leq q$ for all $x \in [ 0 , q ]$ . Using the fact that $F$ is non-decreasing for any input $a$ such that $q _ { a } ^ { 1 } \leq q$ , we have $q ^ { l }$ is increasing and converges to the fixed point $q$ . Therefore $K _ { \phi , v a r } ( \sigma _ { b } , \sigma _ { w } ) \ge q$ .
388
+
389
+ Now we prove that on the edge of chaos, we have
390
+
391
+ $$
392
+ \operatorname* { l i m } _ { \sigma _ { b } \to 0 } \frac { \sigma _ { b } ^ { 2 } } { q } = 0 .
393
+ $$
394
+
395
+ The EOC equation is given by $\sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime } ( { \sqrt { q } } Z ) ^ { 2 } ] = 1$ . By taking the limit $\sigma _ { b } 0$ on the edge of chaos, and using the fact that $\scriptstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q = 0$ , we have $\begin{array} { r } { \sigma _ { w } ^ { 2 } \frac { \phi ^ { \prime } ( 0 ^ { + } ) ^ { 2 } + \phi ^ { \prime } ( 0 ^ { - } ) ^ { 2 } } { 2 } = 1 . } \end{array}$ . Moreover $q$ verifies
396
+
397
+ $$
398
+ \frac { F ( q ) } { q } = 1 = \frac { \sigma _ { b } ^ { 2 } } { q } + \sigma _ { w } ^ { 2 } \mathbb { E } [ ( \frac { \phi ( \sqrt { q } Z ) } { \sqrt { q } } ) ^ { 2 } ] ,
399
+ $$
400
+
401
+ so that by taking the limit $\sigma _ { b } 0$ , and using the dominated convergence theorem, we have that $\begin{array} { r } { 1 = \operatorname* { l i m } _ { \sigma _ { b } \to 0 } \frac { \sigma _ { b } ^ { 2 } } { q } + \sigma _ { w } ^ { 2 } \frac { \phi ^ { \prime } ( 0 ^ { + } ) ^ { 2 } + \phi ^ { \prime } ( 0 ^ { - } ) ^ { 2 } } { 2 } = \operatorname* { l i m } _ { \sigma _ { b } \to 0 } \frac { \sigma _ { b } ^ { 2 } } { q } + 1 } \end{array}$ and equation 6 holds.
402
+
403
+ Finally since $f$ is strictly convex, for all $x \in [ 0 , 1 ] f ^ { \prime } ( x ) \leq f ^ { \prime } ( 1 ) = 1$ if $( \sigma _ { b } , \sigma _ { w } ) \in E O C$ . Therefore $\begin{array} { r } { 0 \le f ( x ) - x \le f ( 0 ) = \frac { \sigma _ { b } ^ { 2 } } { q } } \end{array}$ σ 2b , we conclude using the fact that limσb→0 $\begin{array} { r } { \operatorname* { l i m } _ { \sigma _ { b } \to 0 } \frac { \sigma _ { b } ^ { 2 } } { q } = 0 } \end{array}$ .
404
+
405
+ Note however that for all $\sigma _ { b } > 0$ , if $( \sigma _ { b } , \sigma _ { w } ) \in E O C$ , for any inputs $a , b$ , we have $\begin{array} { r } { \operatorname* { l i m } _ { l \infty } c _ { a , b } ^ { l } = 1 } \end{array}$ Indeed, since $f$ is usually strictly convex (otherwise, $f$ would be equal to identity on at least a segment of $[ 0 , 1 ] \rangle$ ) and $f ^ { \prime } ( 1 ) = 1$ , we have that $f$ is a contraction (because $f ^ { \prime } \geq 0 \mathrm { \ : \ : }$ ), therefore the correlation converges to the unique fixed point of $f$ which is 1. Therefore, in most of the cases, the result of Proposition 4 should be seen as a way of slowing down the convergence of the correlation to 1.
406
+
407
+ Lemma 2. Under the conditions of Proposition 4, the only change being $\textstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q > 0$ , the result of Proposition 4 holds only if the activation function is linear.
408
+
409
+ Proof. Using the convexity of $f$ and the result of Proposition 4, we have in the limit $\sigma _ { b } 0$ , $f ^ { \prime } ( 0 ) ~ = ~ f ^ { \prime } ( 1 ) ~ = ~ 1$ , which is equivalent to $\mathbb { E } [ \phi ^ { \prime } ( \sqrt { q } \bar { Z } ) ^ { 2 } ] = \mathbb { E } [ \phi ^ { \prime } ( \sqrt { q } Z ) ] ^ { 2 }$ which implies that $\mathrm { v a r } ( \phi ^ { \prime } ( { \sqrt { q } } Z ) ) = 0$ . Therefore there exists a constant $a _ { 1 }$ such that $\phi ^ { \prime } ( { \sqrt { q } } { \dot { Z } } ) = a _ { 1 }$ almost surely. This implies $\phi ^ { \prime } = a _ { 1 }$ almost everywhere. □
410
+
411
+ Proposition 5. Let $\phi$ be a bounded function such that $\phi ( 0 ) = 0$ , $\phi ^ { \prime } ( 0 ) > 0$ , $\phi ^ { \prime } ( x ) \geq 0$ , $\phi ( - x ) =$ $- \phi ( x )$ , $x \phi ( x ) > 0$ and $x \phi ^ { \prime \prime } ( x ) < 0$ for $x \neq 0$ , and $\phi$ satisfies (ii) in Proposition 4. Then, $\phi$ satisfies all the conditions of Proposition 4.
412
+
413
+ Proof. Let $\phi$ be an activation function that satisfies the conditions of Proposition 5.
414
+
415
+ (i) we have $\phi ( 0 ) = 0$ and $\phi ^ { \prime } ( 0 ) > 0$ . Since $\phi$ is bounded and $0 < \phi ^ { \prime } ( 0 ) < \infty$ , then there exists $K$ such that $\textstyle \left| { \frac { \phi ( x ) } { x } } \right| \leq K$ .
416
+
417
+ (ii) The condition (ii) is satisfied by assumption.
418
+
419
+ (iii) Let $\sigma _ { b } > 0$ and $\sigma _ { w } > 0$ . Using equation 3 together with $\phi ^ { \prime } > 0$ , we have $F ^ { \prime } ( x ) \geq 0$ so that F is non-decreasing. Moreover, we have ${ \cal F } ( \mathbb { R } ^ { + } ) \subset \mathbf { \bar { \sigma } } [ B , C ] : = [ \sigma _ { b } ^ { 2 } , \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } M ^ { 2 } ]$ , therefore any fixed point of $F$ should be in $[ B , C ]$ . We have $F ( B ) \geq B$ and $F ( C ) \leq C$ and $\mathrm { F }$ is strictly increasing, therefore, there exists a fixed point $q$ of $F$ in $[ B , C ]$ . Now we prove that $\scriptstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q \ = \ 0$ . Using the EOC equation, q satisfies the equation q = σ2b + E[φ( qZ)2]E[φ0(√qZ)2] . Now let’s prove that the function $\begin{array} { r } { e ( x ) : = x - \frac { \mathbb { E } [ \phi ( \sqrt { x } Z ) ^ { 2 } ] } { \mathbb { E } [ \phi ^ { \prime } ( \sqrt { x } Z ) ^ { 2 } ] } } \end{array}$ is increasing near 0 which means it is an injection near 0, this is sufficient to conclude (because we take $q$ to be the minimal fixed point). After some calculus, we have
420
+
421
+ $$
422
+ \begin{array} { r } { e ^ { \prime } ( x ) = - \frac { \mathbb { E } [ \phi ^ { \prime \prime } ( \sqrt { x } Z ) ( \phi ( \sqrt { x } Z ) \mathbb { E } [ \phi ^ { \prime } ( \sqrt { x } Z ) ^ { 2 } ] - \frac { Z } { \sqrt { x } } \phi ^ { \prime } ( \sqrt { x } Z ) \mathbb { E } [ \phi ( \sqrt { x } Z ) ^ { 2 } ] ) ] } { \mathbb { E } [ \phi ^ { \prime } ( \sqrt { x } Z ) ^ { 2 } ] } } \end{array}
423
+ $$
424
+
425
+ Using Taylor expansion near 0, after a detailed but unenlightening calculation the numerator is equal√ to $- \bar { 2 } \phi ^ { \prime } ( \bar { 0 } ) ^ { 2 } \phi ^ { \prime \prime \prime } \bar { ( 0 ) } ^ { 2 } x \sqrt { x } + O ( x ^ { 2 } )$ , therefore the function $e$ is increasing near 0.
426
+
427
+ (iv) Finally, using the notations $U _ { 1 } : = \sqrt { q } Z _ { 1 }$ and $U _ { 2 } ( x ) = \sqrt { q } ( x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } )$ , the first and second derivatives of the correlation function are given by
428
+
429
+ $$
430
+ f ^ { \prime } ( x ) = \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime } ( U _ { 1 } ) \phi ^ { \prime } ( U _ { 2 } ( x ) ) ] , \quad f ^ { \prime \prime } ( x ) = \sigma _ { w } ^ { 2 } q \mathbb { E } [ \phi ^ { \prime \prime } ( U _ { 1 } ) \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) ]
431
+ $$
432
+
433
+ where we used Gaussian integration by parts. Let $x > 0$ , we have that
434
+
435
+ $$
436
+ \begin{array} { r l } & { \mathbb { E } [ \phi ^ { \prime \prime } ( U _ { 1 } ) \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) ] = \mathbb { E } [ 1 _ { \{ U _ { 1 } \geq 0 \} } \phi ^ { \prime \prime } ( U _ { 1 } ) \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) ] + \mathbb { E } [ 1 _ { \{ U _ { 1 } \leq 0 \} } \phi ^ { \prime \prime } ( U _ { 1 } ) \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) ] } \\ & { \qquad = 2 \mathbb { E } [ 1 _ { \{ U _ { 1 } \geq 0 \} } \phi ^ { \prime \prime } ( U _ { 1 } ) \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) ] } \end{array}
437
+ $$
438
+
439
+ where we used the fact that $\left( Z _ { 1 } , Z _ { 2 } \right) = \left( - Z _ { 1 } , - Z _ { 2 } \right)$ (in distribution) and $\phi ^ { \prime \prime } ( - y ) = - \phi ^ { \prime \prime } ( y )$ for any $y$ .
440
+ Using $x \phi ^ { \prime \prime } ( x ) \leq 0$ , we have $1 _ { \{ u _ { 1 } \geq 0 \} } \phi ^ { \prime \prime } ( u _ { 1 } ) \leq 0$ . We also have for all $y > 0$ , $\mathbb { E } [ \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) | U _ { 1 } =$ $y ] < 0$ , this is a consequence of the fact that $\phi ^ { \prime \prime }$ is an odd function and that for $x > 0$ and $y > 0$ , the mapping $z _ { 2 } x y + \sqrt { 1 - x ^ { 2 } } z _ { 2 }$ moves the center of the Gaussian distribution to a strictly positive number, we conclude that $f ^ { \prime \prime } ( x ) > 0$ almost everywhere and assumption (iii) of Proposition 4 is verified.
441
+
442
+ Proposition 6. The Swish activation function $\begin{array} { r } { \phi _ { s w i s h } ( x ) = x \cdot s i g m o i d ( x ) = \frac { x } { 1 + e ^ { - x } } } \end{array}$ satisfies all the conditions of Proposition 4.
443
+
444
+ ![](images/7cb72ac0c8eeec0a795011e97ce394bfeee00941378fbd8c9788dccdd18301cc.jpg)
445
+ Figure 9: Graphs of ReLU and Swish
446
+
447
+ Proof. To abbreviate notation, we note $\phi : = \phi _ { S w i s h } = x e ^ { x } / ( 1 + e ^ { x } )$ and $h : = e ^ { x } / ( 1 + e ^ { x } )$ is the Sigmoid function. This proof should be seen as a sketch of the ideas and not a rigourous proof.
448
+
449
+ • we have $\phi ( 0 ) = 0$ and $\begin{array} { r } { \phi ^ { \prime } ( 0 ) = \frac { 1 } { 2 } } \end{array}$ and $\begin{array} { r } { | \frac { \phi ( x ) } { x } | \leq 1 } \end{array}$ • As illustrated in Table 1 in the main text, it is easy to see numerically that (ii) is satisfied. Moreover, we observe that $\scriptstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q = 0$ , which proves the second part of the (iii).
450
+
451
+ • Now we prove that $F ^ { \prime } > 0$ , we note $g ( x ) : = x \phi ^ { \prime } ( x ) \phi ( x )$ . We have
452
+
453
+ $$
454
+ g ( x ) = x ^ { 2 } { \frac { ( 1 + e ^ { - x } + x e ^ { - x } ) } { ( 1 + e ^ { - x } ) ^ { 3 } } }
455
+ $$
456
+
457
+ Define $G$ by
458
+
459
+ $$
460
+ G ( x ) = { \left\{ \begin{array} { l l } { g ( x ) } & { { \mathrm { i f ~ } } x \leq 0 } \\ { - g ( - x ) } & { { \mathrm { i f ~ } } x > 0 } \end{array} \right. }
461
+ $$
462
+
463
+ so that $G ( - x ) = - G ( x )$ for all $x \in \mathbb { R }$ and $g ( x ) \geq G ( x )$ for all $x \leq 0$ . Let $x > 0$ , then
464
+
465
+ $$
466
+ g ( x ) > G ( x ) \Longleftrightarrow 1 + e ^ { - x } + x e ^ { - x } \geq e ^ { - 3 x } ( - 1 - e ^ { x } + x e ^ { x } )
467
+ $$
468
+
469
+ which holds true for any positive number $x$ . We thus have $g ( x ) > G ( x )$ for all real numbers $x$ . Therefore $\mathbb { E } [ g ( { \sqrt { x } } { \dot { Z } } ) ] > 0$ almost everywhere and $F ^ { \prime } > 0$ . The second part of (iii) was already proven above.
470
+
471
+ • Let $\sigma _ { b } > 0$ and $\sigma _ { w } > 0$ such that $q$ exists. Recall that
472
+
473
+ $$
474
+ f ^ { \prime \prime } ( x ) = \sigma _ { w } ^ { 2 } q \mathbb { E } [ \phi ^ { \prime \prime } ( U _ { 1 } ) \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) ]
475
+ $$
476
+
477
+ In Figure 10, we show the graph of $\mathbb { E } [ \phi ^ { \prime \prime } ( U _ { 1 } ) \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) ]$ for different values of $q$ (from 0.1 to 10, the darkest line being for $q = 1 0$ ). A rigorous proof can be done but is omitted here.
478
+
479
+ ![](images/50125c94bb1f7692afb5f4c010aa22cd23ce249a6ff6240301bffbeed8c11ec8.jpg)
480
+ Figure 10: graphs of $\mathbb { E } [ \phi ^ { \prime \prime } ( U _ { 1 } ) \phi ^ { \prime \prime } ( U _ { 2 } ( x ) ) ]$ for different values of $q$ $\mathrm { f r o m } 0 . 1$ to 10, the darkest line corresponds to $q = 1 0$ )
481
+
482
+ We observe that $f ^ { \prime \prime }$ has very small values when $q$ is large, this is a result of the fact that $\phi ^ { \prime \prime }$ is concentrated around 0.
483
+
484
+ Remark : On the edge of chaos, we have $\sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime } ( \sqrt { q } Z ) ^ { 2 } ] = 1$ . Recall that $F ^ { \prime }$ can also be expressed
485
+
486
+ as
487
+
488
+ $$
489
+ F ^ { \prime } ( x ) = \sigma _ { w } ^ { 2 } ( \mathbb { E } [ \phi ^ { \prime } ( { \sqrt { x } } Z ) ^ { 2 } ] + \mathbb { E } [ \phi ^ { \prime \prime } ( { \sqrt { x } } Z ) \phi ( { \sqrt { x } } Z ) ] ) ,
490
+ $$
491
+
492
+ this yields
493
+
494
+ $$
495
+ F ^ { \prime } ( q ) = 1 + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ^ { \prime \prime } ( { \sqrt { q } } Z ) \phi ( { \sqrt { q } } Z ) ] .
496
+ $$
497
+
498
+ The term $\mathbb { E } [ \phi ^ { \prime \prime } ( { \sqrt { q } } Z ) \phi ( { \sqrt { q } } Z ) ]$ is very small compared to 1 $( \sim 0 . 0 1 )$ , therefore $F ^ { \prime } ( q ) \approx 1$ .
499
+
500
+ Notice also that the theoretical results corresponds to the equivalent Gaussian process, which is just an approximation of the neural network. Thus, using a value of $\left( \sigma _ { b } , \sigma _ { w } \right)$ close to the $E O C$ should not essentially change the quality of the result. □
501
+
502
+ # B SUPPLEMENTARY THEORETICAL RESULTS
503
+
504
+ # B.1 SUFFICIENT CONDITIONS FOR BOUNDED ACTIVATION FUNCTIONS
505
+
506
+ We can replace the conditions $" \phi$ satisfies (ii)" in Proposition 5 by a sufficient condition. However, this condition is not satisfied by Tanh.
507
+
508
+ Proposition 7. Let $\phi$ be a bounded function such that $\phi ( 0 ) = 0$ , $\phi ^ { \prime } ( 0 ) > 0$ , $\phi ^ { \prime } ( x ) \geq 0$ , $\phi ( - x ) =$ $- \phi ( x )$ , $x \phi ( x ) > 0$ and $x \phi ^ { \prime \prime } ( x ) < \bar { 0 }$ for $x \neq 0$ , and $| \mathbb { E } \phi ^ { \prime } ( x Z ) ^ { 2 } | \gtrsim | x | ^ { - 2 \beta }$ for large $x$ and some $\beta \in ( 0 , 1 )$ . Then, $\phi$ satisfies all the conditions of Proposition 4.
509
+
510
+ Proof. Let $\phi$ be an activation function that satisfies the conditions of Proposition 7. The proof is similar to the one of 5, we only need to show that having $| \mathbb { E } \phi ^ { \prime } ( x Z ) ^ { 2 } | \gtrsim | x | ^ { \frac { \cdot } { - 2 \beta } }$ for large $x$ and some $\beta \in ( 0 , 1 )$ implies that (ii) of 4 is verified.
511
+
512
+ We have that $\sigma _ { w } ^ { 2 } | \mathbb { E } \phi ^ { \prime } ( \sqrt { q } Z ) ^ { 2 } | \gtrsim \sigma _ { w } ^ { 2 } q ^ { - 2 \beta } = \sigma _ { w } ^ { 2 } ( \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( \sqrt { q } Z ) ^ { 2 } ] ) ^ { - \beta }$ , so that we can make the term $\sigma _ { w } ^ { 2 } | \mathbb { E } \phi ^ { \prime } ( { \sqrt { q } } Z ) ^ { 2 } |$ take any value between 0 and $\infty$ . Therefore, there exists $\sigma _ { w }$ such that $( \sigma _ { b } , \sigma _ { w } ) \in E O C$ , and assumption (ii) of Proposition 4 holds.
513
+
514
+ # B.2 IMPACT OF SMOOTHNESS
515
+
516
+ In the proof of Proposition 5, we used the condition on $\phi ^ { \prime \prime }$ (odd function) to prove that $f ^ { \prime \prime } > 0$ however, in some cases when we can explicitly calculate $f$ , we do not need $\phi ^ { \prime \prime }$ to be defined. This is the case for Hard-Tanh, which is a piecewise-linear version of Tanh. We give an explicit calculation
517
+
518
+ of $f ^ { \prime \prime }$ for the Hard-Tanh activation function which we note $H T$ in what follows. We compare the performance of $H T$ and Tanh based on a metric which we will define later.
519
+
520
+ $H T$ is given by
521
+
522
+ $$
523
+ H T ( x ) = { \left\{ \begin{array} { l l } { - 1 } & { { \mathrm { i f ~ } } x < - 1 } \\ { x } & { { \mathrm { i f ~ } } - 1 \leq x \leq 1 } \\ { 1 } & { { \mathrm { i f ~ } } x > 1 } \end{array} \right. }
524
+ $$
525
+
526
+ Recall the propagation of the variance $q ^ { l }$
527
+
528
+ $$
529
+ q ^ { l + 1 } = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } ( H T ( { \sqrt { q ^ { l } } } Z ) ^ { 2 } )
530
+ $$
531
+
532
+ where $H T$ is the Hard-Tanh function. We have
533
+
534
+ $$
535
+ \begin{array} { l } { \displaystyle \mathbb { E } ( H T ( \sqrt { q ^ { l } } Z ) ^ { 2 } ) = \mathbb { E } ( 1 _ { Z < - \frac { 1 } { \sqrt { q ^ { l } } } } ) + \mathbb { E } ( 1 _ { - 1 / \sqrt { q ^ { l } } < Z < 1 / \sqrt { q ^ { l } } } Z ^ { 2 } ) + \mathbb { E } ( 1 _ { Z > 1 / \sqrt { q ^ { l } } } ) } \\ { \displaystyle = 1 - \frac { 2 } { \sqrt { q ^ { l } } } \frac { \exp ( - \frac { 1 } { 2 q ^ { l } } ) } { \sqrt { 2 \pi } } } \end{array}
536
+ $$
537
+
538
+ This yields
539
+
540
+ $$
541
+ q ^ { l + 1 } = g ( q ^ { l } )
542
+ $$
543
+
544
+ where
545
+
546
+ $$
547
+ g ( x ) = \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } ( 1 - \frac { 2 } { \sqrt { x } } \frac { \exp ( - \frac { 1 } { x } ) } { \sqrt { 2 \pi } } )
548
+ $$
549
+
550
+ - EDGE OF CHAOS :
551
+
552
+ To study the correlation behaviour, we will assume that the variance converges to . We have $\begin{array} { r } { \mathbb { E } ( H T ^ { \prime } ( \sqrt { q } Z ) ^ { 2 } ) = \mathbb { E } ( 1 _ { - \frac { 1 } { \sqrt { q } } < Z < \frac { 1 } { \sqrt { q } } } ) = 2 \Psi ( \frac { 1 } { \sqrt { q } } ) - 1 } \end{array}$ (where $\Psi$ is the cumulative distribution function of a standard normal variable). The edge of chaos is then given by the equation $\begin{array} { r } { \sigma _ { w } ^ { 2 } ( 2 \Psi ( \frac { 1 } { \sqrt { q } } ) - 1 ) = 1 } \end{array}$ We fix $\sigma _ { w }$ to its value on the edge.
553
+
554
+ Now let $a$ and $b$ be any two inputs. We have
555
+
556
+ $$
557
+ c ^ { l + 1 } = f ( c ^ { l } )
558
+ $$
559
+
560
+ where
561
+
562
+ $$
563
+ f ( x ) = \frac { \sigma _ { b } ^ { 2 } + \sigma _ { w } ^ { 2 } \mathbb { E } [ \phi ( U _ { 1 } ) \phi ( U _ { 2 } ( x ) ) ] } { q }
564
+ $$
565
+
566
+ with $U _ { 1 } : = \sqrt { q } Z _ { 1 }$ , and $U _ { 2 } ( x ) : = \sqrt { q } ( x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } )$ .
567
+
568
+ Lemma 3. Suppose $q ^ { l }$ converges to a fixed point $q > 0$ . Then,
569
+
570
+ $$
571
+ \forall x \in [ 0 , 1 ] , f ^ { \prime \prime } ( x ) = { \frac { \sigma _ { w } ^ { 2 } } { \pi { \sqrt { 1 - x ^ { 2 } } } } } ( e ^ { - { \frac { 1 } { q ( 1 + x ) } } } - e ^ { - { \frac { 1 } { q ( 1 - x ) } } } )
572
+ $$
573
+
574
+ Proof. We note $\alpha : = 1 / \sqrt { q }$ . For $x \in [ 0 , 1 [$ , we have that :
575
+
576
+ $$
577
+ \begin{array} { r l } & { f ^ { \prime } ( x ) = \sigma _ { w } ^ { 2 } \mathbb { E } [ 1 _ { - \alpha < Z _ { 1 } < \alpha } \times 1 _ { - \alpha < x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } < \alpha } ] } \\ & { \qquad = \sigma _ { w } ^ { 2 } \mathbb { E } [ 1 _ { - \alpha < Z _ { 1 } < \alpha } \times ( 1 _ { - \alpha < x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } } - 1 _ { \alpha < x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } } ) ] } \end{array}
578
+ $$
579
+
580
+ ![](images/9195e7216aa5aee30204de1ad9c55360e68b56e23eef8522af62ddbb65e5d2c6.jpg)
581
+ Figure 11: The correlation function on the edge of order-to-chaos for a Tanh network with small values of $\sigma _ { b }$
582
+
583
+ We deal with the first part $f _ { 1 } ( x ) = \sigma _ { w } ^ { 2 } \mathbb { E } [ 1 _ { - \alpha < Z _ { 1 } < \alpha } \times 1 _ { - \alpha < x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } } ]$ , we have that :
584
+
585
+ $$
586
+ \begin{array} { l } { { f _ { 1 } ^ { \prime } ( x ) = \displaystyle \sigma _ { w } ^ { 2 } \mathbb { E } [ 1 _ { - \alpha < Z _ { 1 } < \alpha } \times \frac { 1 } { \sqrt { 1 - x ^ { 2 } } } ( Z _ { 1 } - \frac { x } { \sqrt { 1 - x ^ { 2 } } } Z _ { 2 } ) \delta _ { - \alpha = x Z _ { 1 } + \sqrt { 1 - x ^ { 2 } } Z _ { 2 } } ] } } \\ { { \displaystyle \quad = \frac { \sigma _ { w } ^ { 2 } } { \sqrt { 2 \pi } } \mathbb { E } [ 1 _ { - \alpha < Z _ { 1 } < \alpha } \times \frac { 1 } { \sqrt { 1 - x ^ { 2 } } } \frac { Z _ { 1 } + x \alpha } { 1 - x ^ { 2 } } \exp ( - \frac { ( x Z _ { 1 } + \alpha ) ^ { 2 } } { 2 ( 1 - x ^ { 2 } ) } ) ] } } \\ { { \displaystyle \quad = \frac { \sigma _ { w } ^ { 2 } } { 2 \pi \sqrt { 1 - x ^ { 2 } } } \int _ { - \alpha } ^ { \alpha } \frac { z _ { 1 } + x \alpha } { 1 - x ^ { 2 } } \exp ( - \frac { z _ { 1 } ^ { 2 } + 2 x \alpha z _ { 1 } + \alpha ^ { 2 } } { 2 ( 1 - x ^ { 2 } ) } ) d z _ { 1 } } } \\ { { \displaystyle \quad = \frac { \sigma _ { w } ^ { 2 } } { 2 \pi \sqrt { 1 - x ^ { 2 } } } ( e ^ { - \frac { \alpha ^ { 2 } } { 1 + x } } - e ^ { - \frac { \alpha ^ { 2 } } { 1 - x } } ) } } \end{array}
587
+ $$
588
+
589
+ we show a similar result for the second part and we conclude.
590
+
591
+ We proved that $f ^ { \prime \prime } > 0$ for Hard-Tanh, all other conditions of proposition 5 (excluding the conditions on $\phi ^ { \prime \prime }$ since those were only used to prove $f ^ { \prime \prime } > 0 _ { , }$ ) are verified, therefore the result of Proposition 4 holds for Hard-Tanh. we want to compare Tanh and Hard-Tanh when $\sigma _ { b }$ is small since this is the important case. The proof of Proposition 4 gives us an idea on how to compare them, the ratio $\frac { \sigma _ { b } ^ { 2 } } { q }$ controls the quality of approximation of f by the identity function, so a smaller ratio means a better approximation. Figure 2 shows that Tanh outperforms Hard-Tanh in this sense. This also means that for the same quality of approximation, we have bigger $q$ (bigger output variance) with Tanh compared to Hard-Tanh. This can particularly be due to the nonsmoothness of Hard-Tanh, which slows down the dominated convergence in the proof of Proposition 4.
592
+
593
+ # C SUPPLEMENTARY EXPERIMENTAL RESULTS
594
+
595
+ # C.1 ELU ACTIVATION
596
+
597
+ We show numerically that the activation function ELU defined by $\phi ( x ) = ( e ^ { x } - 1 ) 1 _ { x < 0 } + x 1 _ { x \geq 0 }$ satisfies the conditions of Proposition 4. We have $\phi ( x ) = 0 , \phi ^ { \prime } ( 0 ^ { + } ) = 1 , \phi ^ { \prime } ( 0 ^ { - } ) = 1$ and $\begin{array} { r } { | \frac { \phi ( x ) } { x } | \leq 1 } \end{array}$ . Other conditions of Proposition 4 are shown numerically in graphs below.
598
+
599
+ ![](images/e8fdfc29a4c81a85c4c20fee31bad891ca54cd1a44f746e1d4086e6d4a8c2bb4.jpg)
600
+ Figure 12: Experimental results for ELU activation
601
+
602
+ Figure 12a shows the EOC curve (condition (ii) is satisfied). Figure 12b shows that is non-decreasing and Figure 12d illustrates the fact that $\scriptstyle \operatorname* { l i m } _ { \sigma _ { b } \to 0 } q = 0$ . Finally, Figure 12c shows that function $f$ is convex. Although the figures of $F$ and $f$ are shown just for one value of $\left( \sigma _ { b } , \sigma _ { w } \right)$ , the results are true for any value of $\left( \sigma _ { b } , \sigma _ { w } \right)$ on the EOC.
603
+
604
+ # C.2 WHAT HAPPENS WHEN THE DEPTH IS LARGER THAN THE WIDTH?
605
+
606
+ Table 2 presents a comparative analysis of the validation accuracy of ReLU and Swish when the depth is larger than the width, in which case the approximation by a Gaussian process is not accurate (notice that in the approximation of a neural network by a Gaussian process, we first let $N _ { l } \to \infty$ , then we consider the limit of large $L$ ). ReLU tends to outperforms Swish when the width is smaller than the depth and both are small, however, we still observe a clear advantage of Swish for deeper architectures.
607
+
608
+ Table 3: Validation accuracy for different values of (width, depth)
609
+
610
+ <table><tr><td></td><td>(5,10)</td><td>(10,20)</td><td>(30,40)</td><td>(40,50)</td></tr><tr><td>ReLU</td><td>86.65</td><td>93.76</td><td>93.59</td><td>90.77</td></tr><tr><td>Swish</td><td>86.56</td><td>93.21</td><td>96.78</td><td>97.08</td></tr></table>
parse/train/H1lJws05K7/H1lJws05K7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lJws05K7/H1lJws05K7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1lJws05K7/H1lJws05K7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1rRWl-Cb/H1rRWl-Cb.md ADDED
@@ -0,0 +1,510 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AN INFORMATION-THEORETIC ANALYSIS OF DEEP LATENT-VARIABLE MODELS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We present an information-theoretic framework for understanding trade-offs in unsupervised learning of deep latent-variables models using variational inference. This framework emphasizes the need to consider latent-variable models along two dimensions: the ability to reconstruct inputs (distortion) and the communication cost (rate). We derive the optimal frontier of generative models in the two-dimensional rate-distortion plane, and show how the standard evidence lower bound objective is insufficient to select between points along this frontier. However, by performing targeted optimization to learn generative models with different rates, we are able to learn many models that can achieve similar generative performance but make vastly different trade-offs in terms of the usage of the latent variable. Through experiments on MNIST and Omniglot with a variety of architectures, we show how our framework sheds light on many recent proposed extensions to the variational autoencoder family.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Deep learning has led to tremendous advances in supervised learning (Szegedy et al., 2017; Huang et al., 2017; Vaswani et al., 2017); however, unsupervised learning remains a challenging area. Recent advances in variational inference (VI) (Kingma & Welling, 2014; Rezende et al., 2014), have led to an explosion of research in the area of deep latent-variable models and breakthroughs in our ability to model natural high-dimensional data. This class of models typically optimize a lower bound on the log-likelihood of the data known as the evidence lower bound (ELBO), and leverage the “reparameterization trick” to make large-scale training feasible.
12
+
13
+ However, a number of papers have observed that VAEs trained with powerful decoders can learn to ignore the latent variables (Chen et al., 2017; Tomczak & Welling, 2017; Bowman et al., 2016). We demonstrate this empirically and explain the issue theoretically by deriving the ELBO in terms of the mutual information between $X$ , the data, and $Z$ , the latent variables. Having done so, we show that the previously-described $\beta$ -VAE objective (Higgins et al., 2017) has a theoretical justification in terms of a Legendre-transformation of a constrained optimization of the mutual information. This leads to the core point of this paper, which is that the optimal rate of information in a model is taskdependent, and optimizing the ELBO directly makes the selection of that rate purely a function of architectural choices, whereas by using $\beta$ -VAE or other constrained optimization objectives, practitioners can learn models with optimal rates for their particular task without having to do extensive architectural search.
14
+
15
+ Mutual information provides a reparameterization-independent measure of dependence between two random variables. Computing mutual information exactly in high dimensions is problematic (Paninski, 2003; Gao et al., 2017), so we turn to recently developed tools in variational inference to approximate it. We find that a natural lower and upper bound on the mutual information between the input and latent variable can be simply related to the ELBO, and understood in terms of two terms: (1) a lower bound that depends on the distortion, or how well an input can be reconstructed through the encoder and decoder, and (2) an upper bound that measures the rate, or how much information is retained about the input. Together these terms provide a unifying perspective on the set of optimal models given a dataset, and show that there exists a continuum of models that make very different trade-offs in terms of rate and distortion.
16
+
17
+ By leveraging additional information about the amount of information contained in the latent variable, we show that we can recover the ground-truth generative model used to create the data in a toy model. We perform extensive experiments on MNIST and Omniglot using a variety of encoder, decoder, and prior architectures and demonstrate how our framework provides a simple and intuitive mechanism for understanding the trade-offs made by these models. We further show that we can control this tradeoff directly by optimizing the $\beta$ -VAE objective, rather than the ELBO. By varying $\beta$ , we can learn many models with the same architecture and comparable generative performance (in terms of marginal data log likelihood), but that exhibit qualitatively different behavior in terms of the usage of the latent variable and variability of the decoder.
18
+
19
+ # 2 FRAMEWORK
20
+
21
+ Unsupervised Representation Learning Depending on the task, there are many desiderata for a good representation. Here we focus on one aspect of a learned representation: the amount of information that the latent variable contains about the input. In the absence of additional knowledge of a “downstream” task, we focus on the ability to recover or reconstruct the input from the representation. Given a set of samples from a true data distribution $p ^ { * } ( x )$ , our goal is to learn a representation that contains a particular amount of information and from which the input can be reconstructed as well as possible.
22
+
23
+ We will convert each observed data vector $x$ into a latent representation $z$ using any stochastic encoder $e ( z | x )$ of our choosing. This then induces the joint distribution $p _ { e } ( x , z ) \bar { } = \bar { p } ^ { * } ( x ) e ( z | x )$ and the corresponding marginal $\begin{array} { r } { p _ { e } ( z ) = \int d x p ^ { * } ( x ) e ( z | \bar { x } ) } \end{array}$ (the “aggregated posterior” in Makhzani et al. (2016); Tomczak $\&$ Welling (2017)) and conditional $p _ { e } ( x | z ) \bar { = } p _ { e } ( x , \bar { z } ) / p _ { e } ( z )$ .
24
+
25
+ A good representation $Z$ must contain information about the input $X$ which we define as follows:
26
+
27
+ $$
28
+ \mathrm { I _ { r e p } } ( X ; Z ) = \iint d x d z p _ { e } ( x , z ) \log \frac { p _ { e } ( x , z ) } { p ^ { * } ( x ) p _ { e } ( z ) } .
29
+ $$
30
+
31
+ We will call this the representational mutual information, to distinguish it from the generative mutual information we discuss in Appendix C. Equation 1 is hard to compute, since we do not have access to the true data density $p ^ { * } ( x )$ , and computing the marginal $\begin{array} { r } { p _ { e } ( \dot { z } ) = \int d x p _ { e } ( x , z ) } \end{array}$ can be challenging. As demonstrated in Barber $\&$ Agakov (2003); Agakov (2006); Alemi et al. (2017) there exist useful, tractable variational bounds on mutual information. The detailed derivation for this case is included in Appendices B.1 and B.2 for completeness. These yield the following lower and upper bounds:
32
+
33
+ $$
34
+ \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \frac { d ( x | z ) } { p ^ { * } ( x ) } \leq \mathrm { I } _ { \mathrm { r e p } } ( X ; Z ) \leq \underbrace { \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \frac { e ( z | x ) } { m ( z ) } } _ { \qquad }
35
+ $$
36
+
37
+ where $d ( x | z )$ (the “decoder”) is a variational approximation to $p _ { e } ( x | z )$ , $m ( z )$ (the “marginal”) i a variational approximation to $p _ { e } ( z )$ , and all the integrals can be approximated using Monte Carl given a finite sample of data from $p ^ { * } ( x )$ , as we discuss below.
38
+
39
+ In connection with rate-distortion theory, we can interpret the upper bound as the rate $R$ of our representation (Tishby & Zaslavsky, 2015). This rate term measures the average number of additional nats necessary to encode samples from the encoder using an entropic code constructed from the marginal, being an average KL divergence. Unlike most rate-distortion work (Cover $\&$ Thomas, 2012), where the marginal is assumed a fixed property of the channel, here the marginal is a completely general distribution, which we assume is learnable. Similarly, we can interpret the lower bound as the data entropy $H$ , which measures the complexity of the dataset (a fixed but unknown constant), minus the distortion $D$ , which measures our ability to accurately reconstruct samples:
40
+
41
+ $$
42
+ \underbrace { \left( - \int d x p ^ { * } ( x ) \log p ^ { * } ( x ) \right) } _ { \mathrm { d a t a } \ : \mathrm { e n t r o p y } ( H ) } - \underbrace { \left( - \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log d ( x | z ) \right) } _ { \mathrm { d i s t o r i o n } ( D ) } \le \mathrm { I } _ { \mathrm { r e p } } \ .
43
+ $$
44
+
45
+ This distortion term is defined in terms of an arbitrary decoding distribution $d ( x | z )$ , which we consider a learnable distribution. This contrasts with most of the compression literature where distortion is typically measured using a fixed perceptual loss (Balle et al., 2017). Combining these equations, ´ we get the “sandwich equation” $H - D \leq \operatorname { I } _ { \mathrm { r e p } } \leq R$ . Notice that $\mathrm { E L B O } = - D - R$ .
46
+
47
+ Phase Diagram From the sandwich equation, we see that $H - D - R \leq 0$ . This is a bound that must hold for any set of four distributions $p ^ { * } ( x ) , e ( z | x ) , d ( x | z ) , m ( z )$ . The inequality places strict limits on which values of rate and distortion are achievable, and allows us to reason about all possible solutions in a two dimensional $R D$ -plane. A sketch of this phase diagram is shown in Figure 1.
48
+
49
+ First, we consider the data entropy term. For discrete data1, all probabilities in $X$ are bounded above by one and both the data entropy and distortion are non-negative $( H \ge 0 , D \ge 0 )$ . The rate is also non-negative $R \geq 0 )$ , because it is an average KL divergence, for either continuous or discrete $Z$ . The positivity constraints and the sandwich equation separate the $R D$ -plane into feasible and infeasible regions, visualized in Figure 1. The boundary between these regions is a convex curve (thick black line). Even given complete freedom in specifying the encoder ${ \dot { \mathbf { \rho } } } _ { e } ( z | x )$ , decoder $d ( x | z )$ and marginal approximation $m ( z )$ , and infinite data, we can never cross this bounding line.
50
+
51
+ ![](images/5039c658b9b008b9d56fd4229a6f4de05493e97dbafa4577a525677e39a59629.jpg)
52
+ Figure 1: Schematic representation of the phase diagram in the $R D$ -plane. The distortion $( D )$ axis measures the reconstruction error of the samples in the training set. The rate $( R )$ axis measures the relative KL divergence between the encoder and our own marginal approximation. The thick black lines denote the feasible boundary in the infinite model capacity limit.
53
+
54
+ We now explain qualitatively what the different areas of this diagram correspond to. For simplicity, we will consider the infinite model family limit, where we have complete freedom in specifying $e ( z | x ) , d ( x | z )$ and $m ( z )$ but consider the data distribution $p ^ { * } ( x )$ fixed.
55
+
56
+ The bottom horizontal line corresponds to the zero distortion setting, which implies that we can perfectly encode and decode our data; we call this the auto-encoding limit. The lowest possible rate is given by $H$ , the entropy of the data. This corresponds to the point $\mathit { \Omega } ^ { \prime } R = H , D = 0 ,$ ). (In this case, our lower bound is tight, and hence $d ( x | z ) = p _ { e } ( x | z )$ .) We can obtain higher rates at fixed distortion by making the marginal approximation $m ( z )$ a weaker approximation to $p _ { e } ( z )$ , since only the rate and not the distortion depends on $m ( z )$ .
57
+
58
+ The left vertical line corresponds to the zero rate setting. Since $R = 0 \implies e ( z | x ) = m ( z )$ , we see that our encoding distribution $e ( z | x )$ must itself be independent of $x$ . Thus the latent representation is not encoding any information about the input and we have failed to create a useful learned representation. However, by using a suitably powerful decoder, $d ( x | z )$ , that is able to capture correlations between the components of $x$ (e.g., an autoregressive model, such as pixelCNN (Salimans et al., 2017), or an acausal MRF model, such as (Dai et al., 2015)), we can still reduce the distortion to the lower bound of $H$ , thus achieving the point $( R = 0 , D = H )$ ; we call this the auto-decoding limit. Hence we see that we can do density estimation without learning a good representation, as we will verify empirically in Section 4. (Note that since $R$ is an upper bound on the mutual information, in the limit that $R = 0$ , the bound must be tight, which guarantees that $m ( z ) = p _ { e } ( z )$ .) We can achieve solutions further up on the $D$ -axis, while keeping the rate fixed, simply by making the decoder worse, since only the distortion and not the rate depends on $d ( x | z )$ .
59
+
60
+ Finally, we discuss solutions along the diagonal line. Such points satisfy $D = H - R$ , and hence both of our bounds are tight, so $m ( z ) = p _ { e } ( z )$ and $d ( x | z ) = p _ { e } ( x | z )$ . (Proofs of these claims are given in Sections B.3 and B.4 respectively.)
61
+
62
+ So far, we have considered the infinite model family limit. If we have only finite parametric families for each of $d ( x | z ) , m ( z ) , e ( z | x )$ , we expect in general that our bounds will not be tight. Any failure of the approximate marginal $m ( z )$ to model the true marginal $p _ { e } ( z )$ , or the decoder $d ( x | z )$ to model the true likelihood $p _ { e } ( x | z )$ , will lead to a gap with respect to the optimal black surface. However, it will still be the case that ${ \dot { H } } - D - R \leq 0$ . This suggests that there will still be a one dimensional optimal surface, $D ( R )$ , or $R ( D )$ where optimality is defined to be the tightest achievable sandwiched bound within the parametric family. We will use the term $R D$ curve to refer to this optimal surface in the rate-distortion $( R D )$ plane. Since the data entropy $H$ is outside our control, this surface can be found by means of constrained optimization, either minimizing the distortion at some fixed rate, or minimizing the rate at some fixed distortion, as we show below. Furthermore, by the same arguments as above, this surface should be monotonic in both $R$ and $D$ , since for any solution, with only very mild assumptions on the form of the parametric families, we should always be able to make $m ( z )$ less accurate in order to increase the rate at fixed distortion (see shift from red curve to blue curve in fig. 1), or make the decoder $d ( x | z )$ less accurate to increase the distortion at fixed rate (see shift from red curve to green curve in fig. 1).
63
+
64
+ Optimization In this section, we discuss how we can find models that target a given point on the $R D$ curve. Recall that the rate $R$ and distortion $D$ are given by
65
+
66
+ $$
67
+ \begin{array} { l } { { R \equiv \displaystyle \int d x p ^ { \ast } ( x ) \int d z e ( z | x ) \log \frac { e ( z | x ) } { m ( z ) } } } \\ { { { \cal D } \equiv \displaystyle - \int d x p ^ { \ast } ( x ) \int d z e ( z | x ) \log d ( x | z ) } } \end{array}
68
+ $$
69
+
70
+ These can both be approximated using a Monte Carlo sample from our training set. We also require that the terms $\log d ( x | z )$ , $\log m ( z )$ and $\log e ( z | x )$ be efficient to compute, and that $e ( z | x )$ be efficient to sample from. In Section 4, we will describe the modeling choices we made for our experiments.
71
+
72
+ In order to explore the qualitatively different optimal solutions along the frontier, we need to explore different rate-distortion trade-offs. One way to do this would be to perform some form of constrained optimization at fixed rate. Alternatively, instead of considering the rate as fixed, and tracing out the optimal distortion as a function of the rate $D ( R )$ , we can perform the Legendre transformation and can find the optimal rate and distortion for a fixed $\begin{array} { r } { \beta = \frac { \partial D } { \partial R } } \end{array}$ , by minimizing $\begin{array} { r l } { \operatorname* { m i n } _ { e ( z | x ) , m ( z ) , d ( x | z ) } D + } \end{array}$ $\beta R$ . Writing this objective out in full, we get
73
+
74
+ $$
75
+ \operatorname* { m i n } _ { e ( z | x ) , m ( z ) , d ( x | z ) } \int d x p ^ { * } ( x ) \int d z e ( z | x ) \left[ - \log d ( x | z ) + \beta \log \frac { e ( z | x ) } { m ( z ) } \right] .
76
+ $$
77
+
78
+ If we set $\beta = 1$ , this matches the ELBO objective used when training a VAE (Kingma & Welling, 2014), with the distortion term matching the reconstruction loss, and the rate term matching the “KL term”. Note, however, that this objective does not distinguish between any of the points along the diagonal of the optimal $R D$ curve, all of which have $\beta = 1$ and the same ELBO. Thus the ELBO objective alone (and the marginal likelihood) cannot distinguish between models that make no use of the latent variable (autodecoders) versus models that make large use of the latent variable and learn useful representations for reconstruction (autoencoders). This is demonstrated experimentally in Section 4.
79
+
80
+ If we allow a general $\beta \geq 0$ , we get the $\beta$ -VAE objective used in (Higgins et al., 2017; Alemi et al., 2017). This allows us to smoothly interpolate between auto-encoding behavior ( $\beta = 0$ ), where the distortion is low but the rate is high, to auto-decoding behavior $\beta = \infty$ ), where the distortion is high but the rate is low, all without having to change the model architecture. However, unlike Higgins et al. (2017); Alemi et al. (2017), we additionally optimize over the marginal $m ( z )$ and compare across a variety of architectures, thus exploring a much larger solution space, which we illustrate empirically in Section 4.
81
+
82
+ # 3 RELATED WORK
83
+
84
+ Here we present an overview of the most closely related work. A more detailed treatment can be found in Appendix D.
85
+
86
+ Model families for unsupervised learning with neural networks. There are two broad areas of active research in deep latent-variable models with neural networks: methods based on the variational autoencoder (VAE), introduced by Kingma & Welling (2014); Rezende et al. (2014), and methods based on generative adversarial networks (GANs), introduced by Goodfellow et al. (2014). In this paper, we focus on the VAE family of models. In particular, we consider recent variants using inverse autoregressive flow (IAF) (Kingma et al., 2016), masked autoregressive flow (MAF) (Papamakarios et al., 2017), PixelCNN $^ { + + }$ (Salimans et al., 2017), and the VampPrior (Tomczak & Welling, 2017), as well as common Conv/Deconv encoders and decoders.
87
+
88
+ Information Theory and machine learning. Barber & Agakov (2003) was the first to introduce tractable variational bounds on mutual information, and made close analogies and comparisons to maximum likelihood learning and variational autoencoders. The information bottleneck framework (Tishby et al., 1999; Shamir et al., 2010; Tishby & Zaslavsky, 2015; Alemi et al., 2017; Achille & Soatto, 2016; 2017) allows a model to smoothly trade off the minimality of the learned representation $( Z )$ from data $( X )$ by minimizing their mutual information, $I ( X ; Z )$ , against the informativeness of the representation for the task at hand $( Y )$ by maximizing their mutual information, $I ( Z ; Y )$ . This constrained optimization problem is rephrased with the Lagrange multiplier, $\beta$ , to the unconstrained optimization of $I ( X ; Z ) - \beta I ( Z ; Y )$ . Tishby & Zaslavsky (2015) plot an RD curve similar to the one in this paper, but they only consider the supervised setting, and they do not consider the information content that is implicit in powerful stochastic decoders. Higgins et al. (2017) proposed the $\beta$ -VAE for unsupervised learning, which is a generalization of the original VAE in which the KL term is scaled by $\beta$ , similar to this paper. However, they only considered $\beta > 1$ . In this paper, we show that when using powerful autoregressive decoders, using $\beta \geq 1$ results in the model ignoring the latent code, so it is necessary to use $\beta < 1$ .
89
+
90
+ Generative Models and Compression. Much recent work has explored the use of latent-variable generative models for image compression. Balle et al. (2017) studies the problem explicitly in terms ´ of the rate/distortion plane, adjusting a Lagrange multiplier on the distortion term to explore the convex hull of a model’s optimal performance. Johnston et al. (2017) uses a recurrent VAE architecture to achieve state-of-the-art image compression rates, posing the loss as minimizing distortion at a fixed rate. Theis et al. (2017) writes the VAE loss as $R + \beta D$ . Rippel & Bourdev (2017) shows that a GAN optimization procedure can also be applied to the problem of compression. All of these efforts focus on rate/distortion tradeoffs for individual models, but don’t explore how the selection of the model itself affects the rate/distortion curve. Because we explore many combinations of modeling choices, we are able to more deeply understand how model selection impacts the rate/distortion curve, and to point out the area where all current models are lacking – the auto-encoding limit. Generative compression models also have to work with both quantized latent spaces and approximately fixed decoder model families trained with perceptual losses such as MS-SSIM (Wang et al., 2003), which constrain the form of the learned distribution. Our work does not assume either of these constraints are present for the tasks of interest.
91
+
92
+ # 4 EXPERIMENTS
93
+
94
+ Toy Model In this section, we empirically show a case where the usual ELBO objective can learn a model which perfectly captures the true data distribution, $p ^ { * } ( x )$ , but which fails to learn a useful latent representation. However, by training the same model such that we minimize the distortion, subject to achieving a desired target rate $R ^ { * }$ , we can recover a latent representation that closely matches the true generative process (up to a reparameterization), while also perfectly capturing the true data distribution.
95
+
96
+ We create a simple data generating process that consists of a true latent variable $Z ^ { * } = \{ z _ { 0 } , z _ { 1 } \} \sim$ $\mathrm { B e r } ( 0 . 7 )$ with added Gaussian noise and discretization. The magnitude of the noise was chosen so that the true generative model had $\operatorname { I } ( x ; z ^ { * } ) = 0 . 5$ nats of mutual information between the observations and the latent. We additionally choose a model family with sufficient power to perfectly autoencode or autodecode. See Appendix $\mathrm { E }$ for more detail on the data generation and model.
97
+
98
+ Figure 2 shows various distributions computed using three models. For the left column, we use a hand-engineered encoder $e ( z | x )$ , decoder $d ( x | z )$ , and marginal $m ( z )$ constructed with knowledge of the true data generating mechanism to illustrate an optimal model. For the middle and right columns, we learn $e ( z | x ) , d ( x | z )$ , and $m ( z )$ using effectively infinite data sampled from $p ^ { * } ( x )$ directly. The middle column is trained with ELBO. The right column is trained by targeting $R = 0 . 5$ while minimizing $D$ .2 In both cases, we see that $p ^ { * } ( x ) \approx g ( x ) \approx d ( x )$ for both trained models, indicating that optimization found the global optimum of the respective objectives. However, the VAE fails to learn a useful representation, only yielding a rate of $R = 0 . 0 0 0 2$ nats,3 while the Target Rate model achieves $R = 0 . 4 9 9 9$ nats. Additionally, it nearly perfectly reproduces the true generative process, as can be seen by comparing the yellow and purple regions in the z-space plots (middle row) – both the optimal model and the Target Rate model have two clusters, one with about $70 \%$ of the probability mass, corresponding to class 0 (purple shaded region), and the other with about $30 \%$ of the mass (yellow shaded region) corresponding to class 1. In contrast, the z-space of the VAE completely mixes the yellow and purple regions, only learning a single cluster. Note that we reproduced essentially identical results with dozens of different random initializations for both the VAE and the Target Rate model – these results are not cherry-picked.
99
+
100
+ ![](images/f8546b332e8ea9663ccea8849802dd75309ce6cd218f4e9336e930d6c8afa282.jpg)
101
+ Figure 2: Toy Model illustrating the difference between fitting a model by maximizing ELBO (middle column) vs minimizing distortion for a fixed rate (right column). Top: Three distributions in data space: the true data distribution, $\boldsymbol { p } ^ { * } ( \boldsymbol { x } )$ , the model’s generative distribution, $\begin{array} { r } { g ( x ) { \stackrel { - } { = } } \sum _ { z } m ( z ) d ( x | z ) } \end{array}$ , and the empirical data reconstruction distribution, $\begin{array} { r } { d ( x ) = \bar { \sum _ { x ^ { \prime } } \sum _ { z } \hat { p } ( x ^ { \prime } ) e ( z | x ^ { \prime } ) \bar { d ( } \hat { x | z } ) } } \end{array}$ . Middle: Four distributions in latent space: the learned (or computed) marginal $m ( z )$ , the empirical induced marginal $\begin{array} { r } { e ( z ) = \sum _ { x } \hat { p } ( x ) e ( z | x ) } \end{array}$ , the empirical distribution over $z$ values for data vectors in the set $\mathcal { X } _ { 0 } = \{ x _ { n } : z _ { n } = 0 \}$ , which we denote by $e ( z _ { 0 } )$ in purple, and the empirical distribution over $z$ values for data vectors in the set $\mathcal { X } _ { 1 } = \{ x _ { n } : z _ { n } = 1 \}$ , which we denote by $e ( z _ { 1 } )$ in yellow. Bottom: Three $K \times K$ distributions: $e ( z | x ) , d ( x | z )$ and $\begin{array} { r } { \dot { p } ( x ^ { \prime } | x ) = \dot { \sum _ { z } } e ( z | x ) d ( x ^ { \prime } | z ) } \end{array}$ .
102
+
103
+ MNIST. In this section, we show how comparing models in terms of rate and distortion separately is more useful than simply observing marginal log likelihoods. We examine several VAE model architectures that have been proposed in the literature. We use the static binary MNIST dataset originally produced for (Larochelle & Murray, 2011)4. In appendix A, we show analogous results for the Omniglot dataset (Lake et al., 2015).
104
+
105
+ We will consider simple and complex variants for the encoder and decoder, and three different types of marginal. The simple encoder is a CNN with a fully factored 64 dimensional Gaussian for $e ( z | x )$ ; the more complex encoder is similar, but followed by 4 steps of mean-only Gaussian inverse autoregressive flow (Kingma et al., 2016), with each step implemented as a 3 hidden layer MADE (Germain et al., 2015) with 640 units in each hidden layer. The simple decoder is a multilayer deconvolutional network; the more powerful decoder is a PixelCNN $^ { + + }$ (Salimans et al., 2017) model. The simple marginal is a fixed isotropic Gaussian, as is commonly used with VAEs; the more complicated version has a 4 step 3 layer MADE (Germain et al., 2015) mean-only Gaussian autoregressive flow (Papamakarios et al., 2017). We also consider the setting in which the marginal uses the VampPrior from (Tomczak & Welling, 2017). We will denote the particular model combination by the tuple $( + / - , + / - , + / - / v )$ , depending on whether we use a simple $( - )$ or complex $( + )$ (or $( v )$ VampPrior) version for the (encoder, decoder, marginal) respectively. In total we consider $2 \times 2 \times 3 = 1 2$ models. We train them all to minimize the objective in Equation 4. Full details can be found in Appendix F. Runs were performed at various values of $\beta$ ranging from 0.1 to 10.0, both with and without KL annealing (Bowman et al., 2016).
106
+
107
+ ![](images/dd93f683b94956de4b50cb0f2ccacebec615e217372eeab7e7477ba522f7c08d.jpg)
108
+ Figure 3: Results on MNIST. (a) The best achieved rate distortion value for each run plotted on the $R D$ - plane. We denote the particular model combination by the tuple $( + / - , + / - , + / - / v )$ , depending on whether we use a simple $( - )$ or complex $( + )$ (or $( v )$ VampPrior) version for the (encoder, decoder, marginal) respectively. (b) The same data, but on the skew axes of $\mathrm { E L B O } = R + D$ versus $R$ .
109
+
110
+ RD curve. Figure 3a show the $R D$ plot for 12 models on the MNIST dataset. Dashed lines represent the best achieved test ELBO of 80.2 nats, which then sets an upper bound on the true data entropy $H$ for the static MNIST dataset. This implies that any $R D$ value above the dashed line is in principle achievable in a powerful enough model. The stepwise black curves show the monotonic Pareto frontier of achieved $R D$ points across all model families. Points participating in this curve are denoted with a $\times$ on the right. The grey solid line shows the corresponding convex hull, which we approach closely across all rates. Strong decoder model families dominate at the lowest and highest rates. Weak decoder models dominate at intermediate rates. Strong marginal models dominate strong encoder models at most rates. Across our model families we appear to be pushing up against an approximately smooth $R D$ curve. The 12 model families we considered here, arguably a representation of the classes of models considered in the VAE literature, in general perform much worse in the auto-encoding limit (bottom right corner) of the $R D$ plane. This is likely due to a lack of power in our current marginal approximations.
111
+
112
+ Figure 3b shows the same raw data, but where we plot $\scriptstyle \mathrm { E L B O } = R + D$ versus $R$ . Here some of the differences between individual model families performances are more easily resolved. Broadly, models with a deconvolutional decoder perform well at intermediate $\sim 2 2$ nat rates, but quickly suffer large distortion penalties as they move away from that point. This is perhaps unsurprising considering we trained on the binary MNIST dataset, for which the measured pixel level sampling entropy on the test set is approximately 22 nats.
113
+
114
+ Models with a powerful autoregressive decoder perform well at low rates, but for values of $\beta \geq 1$ tend to collapse to pure autodecoding models. With the use of the VampPrior and KL annealing however, $\beta = 1$ models can exist at finite rates of around 8 nats. Our framework helps explain the observed difficulties in the literature of training a useful VAE with a powerful decoder, and the observed utility of techniques like “free bits” (Kingma et al., 2016), “soft free bits” (Chen et al., 2017) and $\mathrm { K L }$ annealing (Bowman et al., 2016). Each of these effectively trains at a reduced $\beta$ , moving up along the $R D$ curve. Without any additional modifications, simply training at reduced $\beta$ is a simpler way to achieve nonvanishing rates, without additional architectual adjustments like in the variational lossy autoencoder (Chen et al., 2017).
115
+
116
+ ![](images/82a5e4757a36c88166bea170a5a272fa6a25ffe39c8c1c985da0e45b4d80bcce.jpg)
117
+ Figure 4: We can smoothly move between pure autodecoding and autoencoding behavior in a single model family by tuning $\beta$ . (a) Sampled reconstructions from the $\mathbf { - + v }$ model family trained at given $\beta$ values. Pairs of columns show a single reconstruction and the mean of 5 reconstructions. The first column shows the input samples. (b) Generated images from the same set of models. The pairs of columns are single samples and the mean of 5 samples. See text for discussion.
118
+
119
+ Analyzing model performance using the $R D$ curve gives a much more insightful comparison of relative model performance than simply comparing marginal data log likelihoods. In particular, we managed to achieve models with five-sample IWAE (Burda et al., 2015) estimates below 82 nats (a competitive rate for single layer latent variable models (Tomczak & Welling, 2017)) for rates spanning from $1 0 ^ { - 4 }$ to 30 nats. While all of those models have competitive ELBOs or marginal log likelihood, they differ substantially in the tradeoffs they make between rate and distortion, and those differences result in qualitatively different model behavior, as illustrated in Figure 4.
120
+
121
+ The interaction between latent variables and powerful decoders. Within any particular model family, we can smoothly move between and explore its performance at varying rates. An illustrative example is shown in Fig. 4, where we study the effect of changing $\beta$ (using KL annealing from low to high) on the same $\mathbf { - } + \mathbf { V }$ model, corresponding to a VAE with a simple encoder, a powerful PixelCNN++ decoder, and a powerful VampPrior marginal.
122
+
123
+ In Fig. 4a we assess how well the models do at reconstructing their inputs. We pick an image $x$ at random, encode it using $z \sim e ( z | x )$ , and then reconstruct it using $\hat { x } \sim d ( x \bar { | } z )$ . When $\beta =$ 1.10 (left column), the model obtains $R = 0 . 0 0 0 4 , D = 8 0 . 6 , { \mathrm { E L B O } } = 8 0 . 6$ nats. The tiny rate indicates that the decoder ignores its latent code, and hence the reconstructions are independent of the input $x$ . For example, when the input is $x \ = \ 8$ , the reconstruction is $\hat { x } = 3$ . However, the generated images sampled from the decoder look good (this is an example of an autodecoder). At the other extreme, when $\beta \ : = \ : 0 . 0 5$ (right column), the model obtains $R = 1 5 6 , D = 4 . 8$ , $\mathrm { E L B O } { = } 1 6 1$ nats. Here the model does an excellent job of auto-encoding, generating nearly pixel perfect reconstructions. However, samples from this model’s prior, as shown on the right, are of very poor quality, reflected in the worse ELBO and IWAE values. At intermediate values, such as $\beta = 1 . 0$ , $( R = 6 . 2 , D = 7 4 . 1$ , $\mathrm { E L B O } { = } 8 0 . 3$ ) the model seems to retain semantically meaningful information about the input, such as its class and width of the strokes, but maintains variation in the individual reconstructions. In particular, notice that the individual $" 2 "$ sent in is reconstructed as a similar “2” but with a visible loop at the bottom. This model also has very good generated samples. This intermediate rate encoding arguably typifies what we want to achieve in unsupervised learning: we have learned a highly compressed representation that retains salient features of the data. In the third column, the $\beta \ : = \ : 0 . 1 5$ model $( R = 1 2 0 . 3 , D = 8 . 1$ , $\mathrm { E L B O } { = } 1 2 8$ ) we have very good reconstructions Figure 4b one can visually inspect while still obtaining a good degree of compression. This model arguably typifies the domain most compression work is interested in, where most perceivable variations in the digit are retained in the compression. However, at these higher rates the failures of our current architectures to approach their theoretical performance becomes more apparent, as the corresponding ELBO of 128 nats is much higher than the 81 nats we obtain at low rates. This is also evident in the visual degradation in the generated samples.
124
+
125
+ While it is popular to visualize both the reconstructions and generated samples from VAEs, we suggest researchers visually compare several sampled decodings using the same sample of the latent variable, whether it be from the encoder or the prior, as done here in Figure 4. By using a single sample of the latent variable, but decoding it multiple times, one can visually inspect what features of the input are captured in the observed value for the rate. This is particularly important to do when using powerful decoders, such as autoregressive models.
126
+
127
+ # 5 DISCUSSION AND FURTHER WORK
128
+
129
+ We have motivated the $\beta$ -VAE objective on information theoretic grounds, and demonstrated that comparing model architectures in terms of the rate-distortion plot offers a much better look at their performance and tradeoffs than simply comparing their marginal log likelihoods. Additionally, we have shown a simple way to fix models that ignore the latent space due to the use of a powerful decoder: simply reduce $\beta$ and retrain. This fix is much easier to implement than other solutions that have been proposed in the literature, and comes with a clear theoretical justification. We strongly encourage future work to report rate and distortion values independently, rather than just reporting the log likelihood. If future work proposes new architectural regularization techniques, we suggest the authors train their objective at various rate distortion tradeoffs to demonstrate and quantify the region of the RD plane where their method dominates.
130
+
131
+ Through a large set of experiments we have demonstrated the performance at various rates and distortion tradeoffs for a set of representative architectures currently under study, confirming the power of autoregressive decoders, especially at low rates. We have also shown that current approaches seem to have a hard time achieving high rates at low distortion. This suggests a set of experiments with a simple encoder / decoder pair but a powerful autoregressive marginal posterior approximation, which should in principle be able to reach the autoencoding limit, with vanishing distortion and rates approaching the data entropy.
132
+
133
+ Interpreting the $\beta$ -VAE objective as a constrained optimization problem also hints at the possibility of applying more powerful constrained optimization techniques, which we hope will be able to advance the state of the art in unsupervised representation learning.
134
+
135
+ # REFERENCES
136
+
137
+ A. Achille and S. Soatto. Information Dropout: Learning Optimal Representations Through Noisy Computation. In Information Control and Learning, September 2016. URL http://arxiv. org/abs/1611.01353.
138
+ A. Achille and S. Soatto. Emergence of Invariance and Disentangling in Deep Representations. Proceedings of the ICML Workshop on Principled Approaches to Deep Learning, 2017. URL https://arxiv.org/abs/1706.01350.
139
+ Felix Vsevolodovich Agakov. Variational Information Maximization in Stochastic Environments. PhD thesis, University of Edinburgh, 2006.
140
+ Alexander A Alemi, Ian Fischer, Joshua V Dillon, and Kevin Murphy. Deep Variational Information Bottleneck. In ICLR, 2017. URL http://arxiv.org/abs/1612.00410.
141
+ J. Balle, V. Laparra, and E. P. Simoncelli. End-to-end Optimized Image Compression. In ´ ICLR, 2017. URL http://arxiv.org/abs/1611.01704.
142
+ David Barber and Felix V. Agakov. Information maximization in noisy channels : A variational approach. In S. Thrun, L. K. Saul, and B. Scholkopf (eds.), ¨ Advances in Neural Information Processing Systems 16, pp. 201–208. MIT Press, 2003. URL http://papers.nips.cc/paper/ 2410-information-maximization-in-noisy-channels-a-variational-approach pdf.
143
+
144
+ Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. CoNLL 2016, pp. 10, 2016. URL http://arxiv.org/abs/1511.06349.
145
+
146
+ Yuri Burda, Roger Grosse, and Ruslan Salakhutdinov. Importance weighted autoencoders. In ICLR, 2015. URL http://arxiv.org/abs/1509.00519.
147
+
148
+ X. Chen, D. P. Kingma, T. Salimans, Y. Duan, P. Dhariwal, J. Schulman, I. Sutskever, and P. Abbeel. Variational Lossy Autoencoder. In ICLR, 2017. URL https://arxiv.org/abs/1611. 02731.
149
+
150
+ Thomas M Cover and Joy A Thomas. Elements of information theory. John Wiley & Sons, 2012.
151
+
152
+ Jifeng Dai, Yang Lu, and Ying-Nian Wu. Generative modeling of convolutional neural networks. In ICLR, 2015. URL http://arxiv.org/abs/1412.6296.
153
+
154
+ Yann N. Dauphin, Angela Fan, Michael Auli, and David Grangier. Language modeling with gated convolutional networks. In Doina Precup and Yee Whye Teh (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 933–941, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. URL http://proceedings.mlr.press/v70/dauphin17a.html.
155
+
156
+ Weihao Gao, Sreeram Kannan, Sewoong Oh, and Pramod Viswanath. Estimating mutual information for discrete-continuous mixtures. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 5988–5999. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 7180-estimating-mutual-information-for-discrete-continuous-mixtures. pdf.
157
+
158
+ Mathieu Germain, Karol Gregor, Iain Murray, and Hugo Larochelle. Made: Masked autoencoder for distribution estimation. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 881–889, Lille, France, 07–09 Jul 2015. PMLR. URL http://proceedings. mlr.press/v37/germain15.html.
159
+
160
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 2672–2680. Curran Associates, Inc., 2014. URL http://papers. nips.cc/paper/5423-generative-adversarial-nets.pdf.
161
+
162
+ I. Higgins, L. Matthey, X. Glorot, A. Pal, B. Uria, C. Blundell, S. Mohamed, and A. Lerchner. Early Visual Concept Learning with Unsupervised Deep Learning. ArXiv e-prints, June 2016. URL https://arxiv.org/abs/1606.05579.
163
+
164
+ Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. $\beta$ -VAE: Learning Basic Visual Concepts with a Constrained Variational Framework. In ICLR, 2017. URL https://openreview.net/pdf? id=Sy2fzU9gl.
165
+
166
+ Geoffrey E Hinton and Drew Van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993.
167
+
168
+ Z. Hu, Z. Yang, R. Salakhutdinov, and E. P. Xing. On Unifying Deep Generative Models. ArXiv e-prints, June 2017. URL https://arxiv.org/abs/1706.00550.
169
+
170
+ Jonathan Huang, Vivek Rathod, Chen Sun, Menglong Zhu, Anoop Korattikara, Alireza Fathi, Ian Fischer, Zbigniew Wojna, Yang Song, Sergio Guadarrama, et al. Speed/accuracy trade-offs for modern convolutional object detectors. Conference on Computer Vision and Pattern Recognition, 2017.
171
+
172
+ N. Johnston, D. Vincent, D. Minnen, M. Covell, S. Singh, T. Chinen, S. J. Hwang, J. Shor, and G. Toderici. Improved Lossy Image Compression with Priming and Spatially Adaptive Bit Rates for Recurrent Networks. ArXiv e-prints, March 2017. URL https://arxiv.org/abs/ 1703.10114.
173
+
174
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. URL https://arxiv.org/abs/1412.6980.
175
+
176
+ Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. In ICLR, 2014. URL https://arxiv.org/abs/1312.6114.
177
+
178
+ Diederik P Kingma, Tim Salimans, Rafal Jozefowicz, Xi Chen, Ilya Sutskever, and Max Welling. Improved variational inference with inverse autoregressive flow. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4743–4751. Curran Associates, Inc., 2016. URL http://papers.nips.cc/paper/ 6581-improved-variational-inference-with-inverse-autoregressive-flow. pdf.
179
+
180
+ Brenden M. Lake, Ruslan Salakhutdinov, and Joshua B. Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015. ISSN 0036-8075. doi: 10.1126/science.aab3050. URL http://science.sciencemag.org/content/ 350/6266/1332.
181
+
182
+ Hugo Larochelle and Iain Murray. The neural autoregressive distribution estimator. In Geoffrey Gordon, David Dunson, and Miroslav Dudk (eds.), Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, volume 15 of Proceedings of Machine Learning Research, pp. 29–37, Fort Lauderdale, FL, USA, 11–13 Apr 2011. PMLR. URL http://proceedings.mlr.press/v15/larochelle11a.html.
183
+
184
+ Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, and Ian Goodfellow. Adversarial autoencoders. In ICLR, 2016. URL http://arxiv.org/abs/1511.05644.
185
+
186
+ Aaron Van Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 1747–1756, New York, New York, USA, 20–22 Jun 2016. PMLR. URL http: //proceedings.mlr.press/v48/oord16.html.
187
+
188
+ Liam Paninski. Estimation of entropy and mutual information. Neural Computation, 15(6):1191– 1253, 2003. doi: 10.1162/089976603321780272. URL https://doi.org/10.1162/ 089976603321780272.
189
+
190
+ George Papamakarios, Iain Murray, and Theo Pavlakou. Masked autoregressive flow for density estimation. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 2335–2344. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 6828-masked-autoregressive-flow-for-density-estimation.pdf.
191
+
192
+ Yuchen Pu, Weiyao Wang, Ricardo Henao, Liqun Chen, Zhe Gan, Chunyuan Li, and Lawrence Carin. Adversarial symmetric variational autoencoder. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 4333– 4342. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 7020-adversarial-symmetric-variational-autoencoder.pdf.
193
+
194
+ Danilo Rezende and Shakir Mohamed. Variational inference with normalizing flows. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1530–1538, Lille, France, 07–09 Jul 2015. PMLR. URL http://proceedings.mlr.press/v37/rezende15. html.
195
+
196
+ Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In Eric P. Xing and Tony Jebara (eds.), Proceedings of the 31st International Conference on Machine Learning, volume 32 of Proceedings of Machine Learning Research, pp. 1278–1286, Bejing, China, 22–24 Jun 2014. PMLR. URL http://proceedings.mlr.press/v32/rezende14.html.
197
+
198
+ Oren Rippel and Lubomir Bourdev. Real-time adaptive image compression. In ICML, 2017. URL https://arxiv.org/abs/1705.05823.
199
+
200
+ Tim Salimans, Andrej Karpathy, Xi Chen, and Diederik P Kingma. Pixelcnn $^ { + + }$ : Improving the pixelcnn with discretized logistic mixture likelihood and other modifications. In ICLR, 2017. URL https://arxiv.org/abs/1701.05517.
201
+
202
+ Ohad Shamir, Sivan Sabato, and Naftali Tishby. Learning and generalization with the information bottleneck. Theoretical Computer Science, 411(29):2696 – 2711, 2010. ISSN 0304-3975. doi: https://doi.org/10.1016/j.tcs.2010.04.006. URL http://www.sciencedirect.com/ science/article/pii/S030439751000201X. Algorithmic Learning Theory (ALT 2008).
203
+
204
+ Ravid Shwartz-Ziv and Naftali Tishby. Opening the black box of deep neural networks via information. CoRR, abs/1703.00810, 2017. URL http://arxiv.org/abs/1703.00810.
205
+
206
+ Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15:1929–1958, 2014. URL http://jmlr.org/papers/v15/ srivastava14a.html.
207
+
208
+ Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander Alemi. Inception-v4, inceptionresnet and the impact of residual connections on learning, 2017. URL https://www.aaai. org/ocs/index.php/AAAI/AAAI17/paper/view/14806.
209
+
210
+ Casper Kaae Snderby, Tapani Raiko, Lars Maale, Sren Kaae Snderby, and Ole Winther. How to Train Deep Variational Autoencoders and Probabilistic Ladder Networks. 2016.
211
+
212
+ Lucas Theis, Wenzhe Shi, Andrew Cunningham, and Ferenc Huszar. Lossy image compression with ´ compressive autoencoders. In ICLR, 2017. URL https://arxiv.org/abs/1703.00395.
213
+
214
+ N. Tishby and N. Zaslavsky. Deep learning and the information bottleneck principle. In 2015 IEEE Information Theory Workshop (ITW), pp. 1–5, April 2015. doi: 10.1109/ITW.2015.7133169. URL https://arxiv.org/abs/1503.02406.
215
+
216
+ N. Tishby, F.C. Pereira, and W. Biale. The information bottleneck method. In The 37th annual Allerton Conf. on Communication, Control, and Computing, pp. 368–377, 1999. URL https: //arxiv.org/abs/physics/0004057.
217
+
218
+ J. M. Tomczak and M. Welling. VAE with a VampPrior. ArXiv e-prints, May 2017. URL https: //arxiv.org/abs/1705.07120.
219
+
220
+ Aaron van den Oord, Nal Kalchbrenner, Lasse Espeholt, koray kavukcuoglu, Oriol Vinyals, and Alex Graves. Conditional image generation with pixelcnn decoders. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 4790–4798. Curran Associates, Inc., 2016. URL http://papers.nips.cc/ paper/6527-conditional-image-generation-with-pixelcnn-decoders. pdf.
221
+
222
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 6000–6010. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/7181-attention-is-all-you-need.pdf.
223
+
224
+ Z. Wang, E. P. Simoncelli, and A. C. Bovik. Multiscale structural similarity for image quality assessment. In The Thrity-Seventh Asilomar Conference on Signals, Systems Computers, 2003, volume 2, pp. 1398–1402 Vol.2, Nov 2003. doi: 10.1109/ACSSC.2003.1292216.
225
+
226
+ A. W. Yu, Q. Lin, R. Salakhutdinov, and J. Carbonell. Normalized Gradient with Adaptive Stepsize Method for Deep Neural Network Training. ArXiv e-prints, July 2017. URL https://arxiv. org/abs/1707.04822.
227
+
228
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017. URL https://arxiv.org/ abs/1611.03530.
229
+
230
+ # A RESULTS ON OMNIGLOT
231
+
232
+ Figure 5 plots the RD curve for various models fit to the Omniglot dataset (Lake et al., 2015), in the same form as the MNIST results in Figure 3. Here we explored $\beta \mathbf { s }$ for the powerful decoder models ranging from 1.1 to 0.1, and $\beta \mathfrak { s }$ of 0.9, 1.0, and 1.1 for the weaker decoder models.
233
+
234
+ ![](images/b3735cfb2fe8bbe1656c2e19f674e526f38d99399653966c99b0c017d2b017da.jpg)
235
+ Figure 5: Results on Omniglot. Otherwise same description as Figure 3. (a) Rate-distortion curves. (b) The same data, but on the skew axes of $\mathrm { \therefore } \mathrm { B O } = R + D$ versus $R$ .
236
+
237
+ On Omniglot, the powerful decoder models dominate over the weaker decoder models. The powerful decoder models with their autoregressive form most naturally sit at very low rates. We were able to obtain finite rates by means of KL annealing. Further experiments will help to fill in the details especially as we explore differing $\beta$ values for these architectures on the Omniglot dataset. Our best achieved ELBO was at 90.37 nats, set by the $ { { \begin{array} { l } { { { \begin{array} { l } { \end{array} } } } } } } + { { \begin{array} { l } { { \begin{array} { l } { { \begin{array} { r l } } \end{array} } } } } \end{array} } \end{array} \end{array}$ model with $\beta = 1 . 0$ and KL annealing. This model obtains $R = 0 . 7 7 , D = 8 9 . 6 0 , E L B O = 9 0 . 3 7$ and is nearly auto-decoding. We found 14 models with ELBOs below 91.2 nats ranging in rates from 0.0074 nats to 10.92 nats.
238
+
239
+ Similar to Figure 4 in Figure 6 we show sample reconstruction and generated images from the same ”- $- + \mathbf { V } ^ { \dagger }$ model family trained with KL annealing but at various $\beta \mathbf { s }$ . Just like in the MNIST case, this demonstrates that we can smoothly interpolate between auto-decoding and auto-encoding behavior in a single model family, simply by adjusting the $\beta$ value.
240
+
241
+ # B PROOFS
242
+
243
+ # B.1 LOWER BOUND ON REPRESENTATIONAL MUTUAL INFORMATION
244
+
245
+ Our lower bound is established by the fact that Kullback-Leibler (KL) divergences are positive semidefinite
246
+
247
+ $$
248
+ \mathrm { K L } [ q ( x | z ) | | p ( x | z ) ] = \int d x q ( x | z ) \log \frac { q ( x | z ) } { p ( x | z ) } \geq 0
249
+ $$
250
+
251
+ which implies for any distribution $p ( x | z )$ :
252
+
253
+ $$
254
+ \int d x q ( x | z ) \log q ( x | z ) \geq \int d x q ( x | z ) \log p ( x | z )
255
+ $$
256
+
257
+ ![](images/7de9a2c9c65e4516f7122fd5cd5b81e83169557115d07f926c93b1a622257cf9.jpg)
258
+ (a) Omniglot Reconstructions: $z \sim e ( z | x ) , \hat { x } \sim d ( x | z )$ (b) Omniglot Generations: $z \sim m ( z ) , \hat { x } \sim d ( x | z )$
259
+ Figure 6: We can smoothly move between pure autodecoding and autoencoding behavior in a single model family by tuning $\beta$ . (a) Sampled reconstructions from the $\mathbf { - + v }$ model family trained at given $\beta$ values. Pairs of columns show a single reconstruction and the mean of 5 reconstructions. The first column shows the input samples. (b) Generated images from the same set of models. The pairs of columns are single samples and the mean of 5 samples. See text for discussion.
260
+
261
+ $$
262
+ \begin{array} { r l } & { \mathrm { L } _ { \mathrm { e r f } } = \mathrm { L } _ { \mathrm { e f f } } ( X ; Z ) = \displaystyle { \int } \int d x d z \ y _ { \mathrm { g } } ( z , z ) \log \frac { \rho _ { \mathrm { g } } ( z , z ) } { \rho ^ { \prime } ( x ) | \mathcal { D } _ { \mathrm { g } } ( z ) | \mathcal { D } _ { \mathrm { g } } ( z ) | } } \\ & { \quad = \displaystyle { \int } d x \rho _ { \mathrm { g } } ( z ) \int \ d x \nu _ { \mathrm { g } } ( z | z | ) \log \frac { \rho _ { \mathrm { g } } ( x | z | ) } { \rho ^ { \prime } ( x ) | \mathcal { D } _ { \mathrm { g } } ( z ) | } } \\ & { \quad = \displaystyle { \int } d x \rho _ { \mathrm { g } } ( z ) \left[ \int d x \nu _ { \mathrm { g } } ( z | z | ) \log r _ { \mathrm { g } } ( x | z | ) - \int d x \rho _ { \mathrm { g } } ( x | z | ) \log r ^ { \ast } ( x ) \right] } \\ & { \quad > \displaystyle { \int } d x \rho _ { \mathrm { g } } ( z ) \left[ \int d x \nu _ { \mathrm { g } } ( z | z | ) | \mathrm { g } _ { \mathrm { g } } ( x | z | ) - \int d x \rho _ { \mathrm { g } } ( x | z | ) | \mathrm { g } _ { \mathrm { g } } \rho ^ { \prime \prime } ( x ) \right] } \\ & { \quad = \displaystyle { \int } \int d x d z \nu _ { \mathrm { g } } ( x , z ) \log \frac { \rho _ { \mathrm { g } } ( z | x | ) } { \rho ^ { \prime } ( x ) | \mathcal { D } _ { \mathrm { g } } ( z ) | } } \\ & { \quad = \displaystyle { \int } d x \nu ^ { \ast } ( x ) \int d x \mathrm { e } ( z | \ s | ) \log r ^ { \ast } ( x ) } \\ & { \quad = \displaystyle { \int } \ d x \rho ^ { \ast } ( x | z | ) \log r ^ { \ast } ( x ) \ - \left( - \int d x p ^ { \ast } ( x ) \int d x \mathrm { e } ( z | s | ) \log b ( x | z | ) \right) } \\ & { \quad = \displaystyle { \int } \ d x \rho ^ { \ast } ( x | z | ) \log r ^ { \ast } ( x ) \ . } \end{array}
263
+ $$
264
+
265
+ # B.2 UPPER BOUND ON REPRESENTATIONAL MUTUAL INFORMATION
266
+
267
+ The upper bound is established again by the positive semidefinite quality of KL divergence.
268
+
269
+ $$
270
+ \mathrm { K L } [ q ( z | x ) \mid \mid p ( z ) ] \ge 0 \implies \int d z q ( z | x ) \log q ( z | x ) \ge \int d z q ( z | x ) \log p ( z )
271
+ $$
272
+
273
+ $$
274
+ \begin{array} { r l } { { \| _ { \infty } - \| _ { \infty } ( X _ { + } ; \zeta ) - ( \int \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \mathrm { l e g } \frac { - \beta ( x , z ) } { \beta ^ { 2 } } \mathrm { l e g } ( x , z ) ) } } \\ & { = \int \displaystyle \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \log _ { \frac { \beta ( z ) ( z ) } { \beta ^ { 2 } } } } \\ & { = \int \displaystyle \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \log _ { \frac { \zeta ( z ) ( z ) ( z ) } { \beta ^ { 2 } } } - \int \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \log _ { \beta ( z ) } \mathrm { l e g } _ { \beta ( z ) } } \\ & { = \int \displaystyle \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \log _ { \alpha } \mathrm { e } ^ { \zeta \cdot \zeta } ( z ) - \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z ) \log _ { \beta ( z ) } \mathrm { l e g } _ { \beta ( z ) } } \\ & { \le \displaystyle \int \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \log _ { \alpha } \mathrm { e } ^ { \zeta \cdot \zeta } ( z ) - \int \mathrm { d } z \mathrm { e } ^ { \zeta \cdot \zeta } ( z ) \log _ { \alpha } \mathrm { e } ^ { \zeta \cdot \zeta } ) } \\ & { = \int \displaystyle \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \log _ { \frac { \zeta ( z ) ( z ) ( z ) } { \beta ^ { 2 } } } - \int \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \log _ { \frac { \zeta ( z ) } { \beta ^ { 2 } } } } \\ & { - \displaystyle \int \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( z , z ) \log _ { \frac { \zeta ( z ) ( z ) ( z ) } { \beta ^ { 2 } } } } \\ & { = \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( x , z ) \log _ { \frac { \zeta ( z ) ( z ) } { \beta ^ { 2 } } } } \\ & = \int \mathrm { d } x \mathrm { e } ^ { \zeta \cdot \zeta } ( x , z ) \log _ \frac { \zeta ( z ) ( z ) } \ \end{array}
275
+ $$
276
+
277
+ B.3 OPTIMAL MARGINAL FOR FIXED ENCODER
278
+
279
+ Here we establish that the optimal marginal approximation $p ( z )$ , is precisely the marginal distribution of the encoder.
280
+
281
+ $$
282
+ { \cal R } \equiv \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \frac { e ( z | x ) } { m ( z ) }
283
+ $$
284
+
285
+ Consider the variational derivative of the rate with respect to the marginal approximation:
286
+
287
+ $$
288
+ m ( z ) m ( z ) + \delta m ( z ) \quad \int d z \delta m ( z ) = 0
289
+ $$
290
+
291
+ $$
292
+ \begin{array} { l } { { \delta R = \displaystyle \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \frac { e ( z | x ) } { m ( z ) + \delta m ( z ) } - R } } \\ { { { } ~ = \displaystyle \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \left( 1 + \frac { \delta m ( z ) } { m ( z ) } \right) } } \\ { { { } ~ \sim \displaystyle \int d x p ^ { * } ( x ) \int d z e ( z | x ) \frac { \delta m ( z ) } { m ( z ) } } } \end{array}
293
+ $$
294
+
295
+ Where in the last line we have taken the first order variation, which must vanish if the total variation is to vanish. In particular, in order for this variation to vanish, since we are considering an arbitrary $\delta m ( z )$ , except for the fact that the integral of this variation must vanish, in order for the first order variation in the rate to vanish it must be true that for every value of $x , z$ we have that:
296
+
297
+ $$
298
+ m ( z ) \propto p ^ { * } ( x ) e ( z | x ) ,
299
+ $$
300
+
301
+ which when normalized gives:
302
+
303
+ $$
304
+ m ( z ) = \int d x p ^ { * } ( x ) e ( z | x ) ,
305
+ $$
306
+
307
+ or that the marginal approximation is the true encoder marginal.
308
+
309
+ # B.4 OPTIMAL DECODER FOR FIXED ENCODER
310
+
311
+ Next consider the variation in the distortion in terms of the decoding distribution with a fixed encoding distribution.
312
+
313
+ $$
314
+ d ( x | z ) d ( x | z ) + \delta d ( x | z ) \quad \int d x d ( x | z ) = 0
315
+ $$
316
+
317
+ $$
318
+ \begin{array} { l } { { \displaystyle \delta D = - \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log ( d ( x | z ) + \delta d ( x | z ) ) - D } } \\ { { \displaystyle ~ = - \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \Big ( 1 + \frac { \delta d ( x | z ) } { d ( x | z ) } \Big ) } } \\ { { \displaystyle ~ \sim - \int d x p ^ { * } ( x ) \int d z e ( z | x ) \frac { \delta d ( x | z ) } { d ( x | z ) } } } \end{array}
319
+ $$
320
+
321
+ Similar to the section above, we took only the leading variation into account, which itself must vanish for the full variation to vanish. Since our variation in the decoder must integrate to 0, this term will vanish for every $x , z$ we have that:
322
+
323
+ $$
324
+ d ( x | z ) \propto p ^ { * } ( x ) e ( z | x ) ,
325
+ $$
326
+
327
+ when normalized this gives:
328
+
329
+ $$
330
+ d ( x | z ) = e ( z | x ) \frac { p ^ { * } ( x ) } { \int d x p ^ { * } ( x ) e ( z | x ) }
331
+ $$
332
+
333
+ which ensures that our decoding distribution is the correct posterior induced by our data and encoder.
334
+
335
+ # B.5 LOWER BOUND ON GENERATIVE MUTUAL INFORMATION
336
+
337
+ The lower bound is established as all other bounds have been established, with the positive semidefiniteness of $\mathrm { K L }$ divergences.
338
+
339
+ $$
340
+ \mathrm { K L } [ d ( z | x ) \mid \mid q ( z | x ) ] = \int d z d ( z | x ) \log \frac { d ( z | x ) } { q ( z | x ) } \geq 0
341
+ $$
342
+
343
+ which implies for any distribution $q ( z | x )$
344
+
345
+ $$
346
+ \int d z d ( z | x ) \log d ( z | x ) \geq \int d z d ( z | x ) \log q ( z | x )
347
+ $$
348
+
349
+ $$
350
+ \begin{array} { r l } & { I _ { \mathrm { S t m } } = I _ { \mathrm { S t m } } ( X ; Z ) = \displaystyle \iint \displaystyle d x d z \ y _ { \mathrm { p o t } } ( x , z ) \log \frac { p _ { \mathrm { g o t } } ( x , z ) } { p _ { \mathrm { g o t } } ( x ) p _ { \mathrm { g r o t } } ( z ) } } \\ & { \quad = \displaystyle \iint d x p _ { \mathrm { g a t } } ( x ) \int d z p _ { \mathrm { g a t } } ( z | x ) \log \frac { p _ { \mathrm { g a t } } ( z | x ) } { m ( z ) } } \\ & { \quad = \displaystyle \int d x p _ { \mathrm { p a t } } ( x ) \left[ \int d z p _ { \mathrm { g a t } } ( z | x ) \log p _ { \mathrm { g r o t } } ( z | x ) - \int d z p _ { \mathrm { g a t } } ( z | x ) \log m ( z ) \right] } \\ & { \quad \ge \displaystyle \int d x p _ { \mathrm { g a t } } ( x ) \left[ \int d z p _ { \mathrm { g a t } } ( z | x ) \log e ( z | x ) - \int d z p _ { \mathrm { g a t } } ( z | x ) \log m ( z ) \right] } \\ & { \quad = \displaystyle \iint d x d z p _ { \mathrm { g a t } } ( x , z ) \log \frac { e ( z | x ) } { m ( z ) } } \\ & { \quad = \displaystyle \int d x d z p _ { \mathrm { f o t } } ( x , z ) \log \frac { e ( z | x ) } { m ( z ) } } \\ & { \quad = \displaystyle \int d x \left( z \right) \int d x d ( x | z ) \log \frac { e ( z | x ) } { m ( z ) } } \\ & { \quad = \displaystyle E } \end{array}
351
+ $$
352
+
353
+ B.6 UPPER BOUND ON GENERATIVE MUTUAL INFORMATION
354
+
355
+ The upper bound is establish again by the positive semidefinite quality of KL divergence.
356
+
357
+ $$
358
+ \mathrm { K L } [ p ( x | z ) \mid \mid r ( x ) ] \ge 0 \implies \int d x p ( x | z ) \log p ( x | z ) \ge \int d x p ( x | z ) \log r ( x )
359
+ $$
360
+
361
+ $$
362
+ \begin{array} { r l } & { I _ { \mathcal { G } ^ { \alpha } } = - f _ { \Phi ^ { \alpha } } ( X ; z ) = \displaystyle \int \int d x d z p _ { \Phi ^ { \alpha } } ( x , z ) \mathrm { l o g } \frac { \partial f _ { \Phi ^ { \alpha } } ( x , z ) } { \partial x _ { \Phi ^ { \alpha } } ( x , z ) m _ { \Phi ^ { \alpha } } ( x , z ) m _ { \Phi ^ { \alpha } } ( x , z ) } } \\ & { \quad = \displaystyle \int \int d x d z \mathrm { s p } _ { \Phi ^ { \alpha } ( z , z ) } \mathrm { l o g } \frac { \partial f _ { \Phi ^ { \alpha } } ( x , z ) } { \partial x _ { \Phi ^ { \alpha } } ( x , z ) } } \\ & { \quad - \displaystyle \int \int d x d z \mathrm { s p } _ { \alpha _ { \Phi ^ { \alpha } } ( z , z ) } \mathrm { l o g } \mathrm { l o g } \mathrm { l o g } ( z ) - \displaystyle \int \int d x d z \mathrm { s p } _ { \alpha _ { \Phi ^ { \alpha } } ( x , z ) } \mathrm { l o g } n _ { \Phi ^ { \alpha } } ( x , z ) } \\ & { \quad = \displaystyle \int \int d x d z p _ { \Phi ^ { \alpha } } ( x , z ) \mathrm { l o g } \mathrm { l o g } ( x , z ) - \displaystyle \int d x d z p _ { \Phi ^ { \alpha } } ( x ) \mathrm { l o g } y _ { \Phi ^ { \alpha } } ( x ) } \\ & { \quad \le \displaystyle \int \int d x d z p _ { \Phi ^ { \alpha } } ( z , z ) \mathrm { l o g } \mathrm { d } z ( z ) - \displaystyle \int d x d z p _ { \Phi ^ { \alpha } } ( x ) \mathrm { l o g } \mathrm { q } ( x ) } \\ & { \quad - \displaystyle \iint d x d z p _ { \Phi ^ { \alpha } } ( z , z ) \mathrm { l o g } \mathrm { d } z ( z ) - \displaystyle \int \int d x d z p _ { \Phi ^ { \alpha } } ( x , z ) \mathrm { l o g } ( z ) } \\ & { \quad = \displaystyle \int \int d x d z p _ { \Phi ^ { \alpha } } ( z , z ) \mathrm { l o g } \frac { d ( x , z ) } { \partial x _ { \Phi ^ { \alpha } } ( x , z ) } } \\ & { \quad = \displaystyle \int \int d x d z p _ { \Phi ^ { \alpha } } ( x , z ) \mathrm { l o g } \frac { d ( x , z ) } { \partial x _ { \Phi ^ { \alpha } } ( x , z ) } = \displaystyle \int \int d x d z p _ { \Phi ^ { \alpha } } ( x , z ) \mathrm { l o g } ( z ) } \\ & \quad = \displaystyle \int d x d z p _ { \Phi ^ { \alpha } } ( x , z ) \end{array}
363
+ $$
364
+
365
+ # C GENERATIVE MUTUAL INFORMATION
366
+
367
+ Given any four distributions: $p ^ { * } ( x )$ – a density over some data space $X$ , $e ( z | x ) - \mathbf { a }$ stochastic map from that data to a new representational space $Z$ , $d ( x | z )$ – a stochastic map in the reverse direction from $Z$ to $X$ , and $m ( z )$ – some density in the $Z$ space; we were able to find an inequality relating three functionals of these densities that must always hold. We found this inequality by deriving upper and lower bounds on the mutual information in the joint density defined by the natural representational path through the four distributions, $p _ { e } ( x , z ) \ = \ p ^ { * } ( x ) e ( z | x )$ . Doing so naturally made us consider the existence of two other distributions $d ( x | z )$ and $m ( z )$ . Let’s consider the mutual information along this new generative path.
368
+
369
+ $$
370
+ p _ { \mathrm { g e n } } ( x , z ) = m ( z ) d ( x | z )
371
+ $$
372
+
373
+ $$
374
+ I _ { \mathrm { g e n } } ( X ; Z ) = \iint d x d z p _ { \mathrm { g e n } } ( x , z ) \log \frac { p _ { \mathrm { g e n } } ( x , z ) } { p _ { \mathrm { g e n } } ( x ) p _ { \mathrm { g e n } } ( z ) }
375
+ $$
376
+
377
+ Just as before we can easily establish both a variational lower and upper bound on this mutual information. For the lower bound (proved in Section B.5), we have:
378
+
379
+ $$
380
+ E \equiv \int d z p ( z ) \int d x p ( x | z ) \log \frac { q ( z | x ) } { p ( z ) } \leq { \cal I } _ { \mathrm { g e n } }
381
+ $$
382
+
383
+ Where we need to make a variational approximation to the decoder posterior, itself a distribution mapping $X$ to $Z$ . Since we already have such a distribution from our other considerations, we can certainly use the encoding distribution $q ( z | x )$ for this purpose, and since the bound holds for any choice it will hold with this choice. We will call this bound $E$ since it gives the distortion as measured through the encoder as it attempts to encode the generated samples back to their latent representation.
384
+
385
+ We can also find a variational upper bound on the generative mutual information (proved in Section B.6):
386
+
387
+ $$
388
+ G \equiv \int d z m ( z ) \int d x d ( x | z ) \log \frac { d ( x | z ) } { q ( x ) } \geq I _ { \mathrm { g e n } }
389
+ $$
390
+
391
+ This time we need a variational approximation to the marginal density of our generative model, which we denote as $q ( x )$ . We call this bound $G$ for the rate in the generative model.
392
+
393
+ Together these establish both lower and upper bounds on the generative mutual information:
394
+
395
+ $$
396
+ E \leq I _ { \mathrm { g e n } } \leq G .
397
+ $$
398
+
399
+ In our early experiments, it appears as though additionally constraining or targeting values for these generative mutual information bounds is important to ensure consistency in the underlying joint distributions. In particular, we notice a tendency of models trained with the $\beta$ -VAE objective to have loose bounds on the generative mutual information when $\beta$ varies away from 1.
400
+
401
+ # C.1 REARRANGING THE REPRESENTATIONAL LOWER BOUND
402
+
403
+ In light of the appearance of a new independent density estimate $q ( x )$ in deriving our variational upper bound on the mutual information in the generative model, let’s actually use that to rearrange our variational lower bound on the representational mutual information.
404
+
405
+ $$
406
+ \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \frac { e ( z | x ) } { p ^ { * } ( x ) } = \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \frac { e ( z | x ) } { q ( x ) } - \int d x p ^ { * } ( x ) \log \frac { p ^ { * } ( x ) } { q ( x ) }
407
+ $$
408
+
409
+ Doing this, we can express our lower bound in terms of two reparameterization independent functionals:
410
+
411
+ $$
412
+ \begin{array} { l } { { U \equiv \displaystyle \int d x p ^ { * } ( x ) \int d z e ( z | x ) \log \frac { d ( x | z ) } { q ( x ) } } } \\ { { S \equiv \displaystyle \int d x p ^ { * } ( x ) \log \frac { p ^ { * } ( x ) } { q ( x ) } = - \int d x p ^ { * } ( x ) \log q ( x ) - H } } \end{array}
413
+ $$
414
+
415
+ This new reparameterization couples together the bounds we derived both the representational mutual information and the generative mutual information, using $q ( x )$ in both. The new function $S$ we’ve described is intractable on its own, but when split into the data entropy and a cross entropy term, suggests we set a target cross entropy on our own density estimate $q ( x )$ with respect to the empirical data distribution that might be finite in the case of finite data.
416
+
417
+ Together we have an equivalent way to formulate our original bounds on the representaional mutual information
418
+
419
+ $$
420
+ U - S = H - D \leq I _ { \mathrm { r e p } } \leq R
421
+ $$
422
+
423
+ We believe this reparameterization offers and important and potential way to directly control for overfitting. In particular, given that we compute our objectives using a finite sample from the true data distribution, it will generically be true that $\mathrm { K L } [ \hat { p } ( x ) \bar { | | } p ^ { * } ( x ) ] \geq \bar { 0 }$ . In particular, the usual mode we operate in is one in which we only ever observe each example once in the training set, suggesting that in particular an estimate for this divergence would be:
424
+
425
+ $$
426
+ \operatorname { K L } [ { \hat { p } } ( x ) \mid \mid p ^ { * } ( x ) ] \sim H ( X ) - \log N .
427
+ $$
428
+
429
+ Early experiments suggest this offers a useful target for $S$ in the reparameterized objective that can prevent overfitting, at least in our toy problems.
430
+
431
+ # D DETAILED RELATED WORK
432
+
433
+ Here we expand on the brief related work in Section 3.
434
+
435
+ # D.1 INFORMATION THEORY AND MACHINE LEARNING
436
+
437
+ Much recent work has leveraged information theory to improve our understanding of machine learning in general, and unsupervised learning specifically. In Tishby & Zaslavsky (2015), the authors present theory for the success of supervised deep learning as approximately optimizing the information bottleneck objective, and also theoretically predict a supervised variant of the rate/distortion plane we describe here. Shwartz-Ziv & Tishby (2017) further proposes that training of deep learning models proceeds in two phases: error minimization followed by compression. They suggest that the compression phase diffuses the conditional entropy of the individual layers of the model, and when the model has converged, it lies near the information bottleneck optimal frontier on the proposed rate/distortion plane. In Higgins et al. (2016) the authors motivate the $\beta$ -VAE objective from a combined neuroscience and information theoretic perspective. The Higgins et al. (2017) propose that $\beta$ should be greater than 1 to properly learn disentangled representations in an unsupervised manner.
438
+
439
+ Chen et al. (2017) described the issue of the too-powerful decoder when training standard VAEs, where $\beta = 1$ . They proposed a bits-back (Hinton & Van Camp, 1993) model to understand this phenomenon, as well as a noise-injection technique to combat it. Our approach removes the need for an additional noise source in the decoder, and concisely rephrases the problem as finding the optimal $\beta$ for the chosen model family, which can now be as powerful as we like, without risk of ignoring the latent space and collapsing to an autodecoding model.
440
+
441
+ Bowman et al. (2016) suggested annealing the weight of the KL term of the ELBO $( \mathrm { K L } [ q ( \boldsymbol { z } | \boldsymbol { x } ) \mid | \boldsymbol { p } ( \boldsymbol { z } ) ] )$ from 0 to 1 to make it possible to train an RNN decoder without ignoring the latent space. Snderby et al. (2016) applies the same idea to ladder network decoders. We relate this idea of KL annealing to our optimal rate/distortion curve, and show empirically that KL annealing does not in general attain the performance possible when setting a fixed $\beta$ or a fixed target rate.
442
+
443
+ In Achille & Soatto (2016), the authors proposed an information bottleneck approach to the activations of a network, termed Information Dropout, as a form of regularization that explains and generalizes Dropout (Srivastava et al., 2014). They suggest that, without such a form of regularization, standard SGD training only provides a sufficient statistic, but does not in general provide two other desiderata: minimality and invariance to nuisance factors. Both of these would be provided by a procedure that directly optimized the information bottleneck. They propose that simply injecting noise adaptively into the otherwise deterministic function computed by the deep network is sufficient to cause SGD to optimize toward disentangled and invariant representations. Achille & Soatto (2017) expands on this exploration of sufficiency, minimality, and invariance in deep networks. In particular they propose that architectural bottlenecks and depth both promote invariance directly, and they decompose the standard cross entropy loss used in supervised learning into four terms, including one which they name ‘overfitting’, and which, without other regularization, an optimization procedure can easily increase in order to reduce the total loss.
444
+
445
+ Other recent work explores related theoretical frameworks for unsupervised learning, including Pu et al. (2017); Hu et al. (2017); Zhang et al. (2017).
446
+
447
+ # D.2 MODEL FAMILIES FOR UNSUPERVISED LEARNING WITH NEURAL NETWORKS
448
+
449
+ Burda et al. (2015) presented an importance-weighted variant of the VAE objective. By increasing the number of samples taken from the encoder during training, they are able to tighten the variational lower bound and improve the test log likelihood.
450
+
451
+ Rezende & Mohamed (2015) proposed to use normalizing flows to approximate the true posterior during inference, in order to overcome the problem of the standard mean-field posterior approximation used in VAEs lacking sufficient representational power to model complex posterior distributions. Normalizing flow permits the use of a deep network to compute a differentiable function with a computable determinant of a random variable and have the resulting function be a valid normalized distribution. Kingma et al. (2016) expanded on this idea by introducing inverse autoregressive flow (IAF). IAF takes advantage of properties of current autoregressive models, including their expressive power and particulars of their Jacobians when inverted, and used them to learn expressive, parallelizeable normalizing flows that are efficient to compute when using high dimensional latent spaces for the posterior.
452
+
453
+ Autoregressive models have also been applied successfully to the density estimation problem, as well as high quality sample generation. MADE (Germain et al., 2015) proposed directly masking the parameters of an autoencoder during generation such that a given unit makes its predictions based solely on the first $d$ activations of the layer below. This enforces that the autoencoder maintains the “autoregressive” property. In Oord et al. (2016), the authors presented a recurrent neural network that can autoregressively predict the pixels of an image, as well as provide tractable density estimation. This work was expanded to a convolutional model called PixelCNN (van den Oord et al., 2016), which enforced the autoregressive property by masking the convolutional filters. In Salimans et al. (2017), the authors further improved the performance with $\mathrm { P i x e l C N N + + }$ with a collection of architecture changes that allow for much faster training. Finally, Papamakarios et al. (2017) proposed another unification of normalizing flow models with autoregressive models for density estimation. The authors observe that the conditional ordering constraints required for valid autoregressive modeling enforces a choice which may be arbitrarily incorrect for any particular problem. In their proposal, Masked Autoregressive Flow (MAF), they explicitly model the random number generation process with stacked MADE layers. This particular choice means that MAF is fast at density estimation, whereas the nearly identical IAF architecture is fast at sampling.
454
+
455
+ Tomczak & Welling (2017) proposed a novel method for learning the marginal posterior, $m ( z )$ (written $q ( z )$ in that work): learn $k$ pseudo-inputs that can be mixed to approximate any of the true samples $x \sim p ^ { * } ( x )$ .
456
+
457
+ # E TOY MODEL DETAILS
458
+
459
+ Data generation. The true data generating distribution is as follows. We first sample a latent binary variable, $z \sim \mathrm { B e r } ( 0 . 7 )$ , then sample a latent 1d continuous value from that variable, $h | z \sim$ $\mathcal { N } ( h | \mu _ { z } , \sigma _ { z } )$ , and finally we observe a discretized value, $\boldsymbol { x } = \mathrm { d i s c r e t i z e } ( \boldsymbol { h } ; \boldsymbol { B } )$ , where $\boldsymbol { B }$ is a set of 30 equally spaced bins. We set $\mu _ { z }$ and $\sigma _ { z }$ such that $R ^ { * } \equiv \mathrm { I } ( x ; z ) = 0 . 5$ nats, in the true generative process, representing the ideal rate target for a latent variable model.
460
+
461
+ Model details. We choose to use a discrete latent representation with $K = 3 0$ values, with an encoder of the form $e ( z _ { i } | x _ { j } ) \propto - \exp [ ( w _ { i } ^ { e } x _ { j } - b _ { i } ^ { e } ) ^ { 2 } ]$ , where $z$ is the one-hot encoding of the latent categorical variable, and $x$ is the one-hot encoding of the observed categorical variable. Thus the encoder has $2 K = 6 0$ parameters. We use a decoder of the same form, but with different parameters: $d ( x _ { j } | z _ { i } ) \propto - \exp [ ( w _ { i } ^ { \dot { d } } x _ { j } - b _ { i } ^ { d } ) ^ { 2 } ]$ . Finally, we use a variational marginal, $m ( z _ { i } ) = \pi _ { i }$ . Given this, the true joint distribution has the form $p _ { e } ( x , z ) = p ^ { * } ( x ) e ( z | x )$ , with marginal $\begin{array} { r } { m ( z ) = \sum _ { x } p _ { e } ( x , z ) } \end{array}$ and conditional $p _ { e } ( x | z ) = p _ { e } ( x , z ) / p _ { e } ( z )$ .
462
+
463
+ # F DETAILS FOR MNIST AND OMNIGLOT EXPERIMENTS
464
+
465
+ We used the static binary MNIST dataset originally produced for (Larochelle & Murray, 2011)5, and the Omniglot dataset from Lake et al. (2015); Burda et al. (2015).
466
+
467
+ As stated in the main text, for our experiments we considered twelve different model families corresponding to a simple and complex choice for the encoder and decoder and three different choices for the marginal.
468
+
469
+ Unless otherwise specified, all layers used a linearly gated activation function activation function (Dauphin et al., 2017), $h ( x ) \stackrel { . } { = } ( W _ { 1 } x + b _ { 2 } ) \sigma ( W _ { 2 } \stackrel { . } { x } + b _ { 2 } )$ .
470
+
471
+ # F.1 ENCODER ARCHITECTURES
472
+
473
+ For the encoder, the simple encoder was a convolutional encoder outputting parameters to a diagonal Gaussian distribution. The inputs were first transformed to be between $^ { - 1 }$ and 1. The architecture contained 5 convolutional layers, summarized in the format Conv (depth, kernel size, stride, padding), followed by a linear layer to read out the mean and a linear layer with softplus nonlinearity to read out the variance of the diagonal Gaussiann distribution.
474
+
475
+ • Input (28, 28, 1)
476
+ • Conv (32, 5, 1, same)
477
+ • Conv (32, 5, 2, same)
478
+ • Conv (64, 5, 1, same)
479
+ • Conv (64, 5, 2, same)
480
+ • Conv (256, 7, 1, valid)
481
+ • Gauss (Linear (64), Softplus (Linear (64)))
482
+
483
+ For the more complicated encoder, the same 5 convolutional layer architecture was used, followed by 4 steps of mean-only Gaussian inverse autoregressive flow, with each step’s location parameters computed using a 3 layer MADE style masked network with 640 units in the hidden layers and ReLU activations.
484
+
485
+ # F.2 DECODER ARCHITECTURES
486
+
487
+ The simple decoder was a transposed convolutional network, with 6 layers of transposed convolution, denoted as Deconv (depth, kernel size, stride, padding) followed by a linear convolutional layer parameterizing an independent Bernoulli distribution over all of the pixels:
488
+
489
+ • Input (1, 1, 64)
490
+ • Deconv (64, 7, 1, valid)
491
+ • Deconv (64, 5, 1, same)
492
+ • Deconv (64, 5, 2, same)
493
+ • Deconv (32, 5, 1, same)
494
+ • Deconv (32, 5, 2, same)
495
+ • Deconv (32, 4, 1, same)
496
+ • Bernoulli (Linear Conv (1, 5, 1, same))
497
+
498
+ The complicated decoder was a slightly modified $\mathrm { P i x e l C N N + + }$ style network (Salimans et al., $2 0 1 7 ) ^ { 6 }$ . However in place of the original RELU activation functions we used linearly gated activation functions and used six blocks (with sizes $( 2 8 \times 2 8 ) - ( 1 4 \times 1 4 ) - ( 7 \times 7 ) - ( 7 \times 7 ) - ( 1 4 \times 1 4 )$ $- ( 2 8 \times 2 8 ) ,$ ) of two resnet layers in each block. All internal layers had a feature depth of 64. Shortcut connections were used throughout between matching sized featured maps. The 64-dimensional latent representation was sent through a dense lineary gated layer to produce a 784-dimensional representation that was reshaped to $( 2 8 \times 2 8 \times 1 )$ and concatenated with the target image to produce a $( 2 8 \times 2 8 \times 2 )$ dimensional input. The final output (of size $( 2 8 \times 2 8 \times 6 4 )$ ) was sent through a $( 1 \times 1 )$ convolution down to depth 1. These were interpreted as the logits for a Bernoulli distribution defined on each pixel.
499
+
500
+ # F.3 MARGINAL ARCHITECTURES
501
+
502
+ We used three different types of marginals. The simplest architecture (denoted (-)), was just a fixed isotropic gaussian distribution in 64 dimensions with means fixed at 0 and variance fixed at 1.
503
+
504
+ The complicated marginal $( + )$ was created by transforming the isotropic Gaussian base distribution with 4 layers of mean-only Gaussian autoregressive flow, with each steps location parameters computed using a 3 layer MADE style masked network with 640 units in the hidden layers and relu activations. This network resembles the architecture used in Papamakarios et al. (2017).
505
+
506
+ The last choice of marginal was based on VampPrior and denoted with (v), which uses a mixture of the encoder distributions computed on a set of pseudo-inputs to parameterize the prior (Tomczak & Welling, 2017). We add an additional learned set of weights on the mixture distributions that are constrained to sum to one using a softmax function: $\begin{array} { r } { m ( z ) = \sum _ { i = 1 } ^ { N } w _ { i } e ( z | \phi _ { i } ) } \end{array}$ where $N$ are the number of pseudo-inputs, are the weights, is the encoder, and $\phi$ are the pseudo-inputs that have the same dimensionality as the inputs.
507
+
508
+ # F.4 OPTIMIZATION
509
+
510
+ The models were all trained using the $\beta$ -VAE objective (Higgins et al., 2017) at various values of $\beta$ . No form of explicit regularization was used. The models were trained with Adam (Kingma & Ba, 2015) with normalized gradients (Yu et al., 2017) for 200 epochs to get good convergence on the training set, with a fixed learning rate of $3 \times 1 0 ^ { - 4 }$ for the first 100 epochs and a linearly decreasing learning rate towards 0 at the $2 0 0 \mathrm { { t h } }$ epoch.
parse/train/H1rRWl-Cb/H1rRWl-Cb_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1rRWl-Cb/H1rRWl-Cb_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1rRWl-Cb/H1rRWl-Cb_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkIQH7qel/HkIQH7qel.md ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING RECURRENT SPAN REPRESENTATIONS FOR EXTRACTIVE QUESTION ANSWERING
2
+
3
+ Kenton Lee∗
4
+ University of Washington
5
+ Seattle, WA
6
+ kentonl@cs.washington.edu
7
+ Tom Kwiatkowski Ankur Parikh Dipanjan Das
8
+ Google
9
+ New York, NY
10
+ {tomkwiat, aparikh, dipanjand}@google.com
11
+
12
+ # ABSTRACT
13
+
14
+ The reading comprehension task, that asks questions about a given evidence document, is a central problem in natural language understanding. Recent formulations of this task have typically focused on answer selection from a set of candidates pre-defined manually or through the use of an external NLP pipeline. However, Rajpurkar et al. (2016) recently released the SQUAD dataset in which the answers can be arbitrary strings from the supplied text. In this paper, we focus on this answer extraction task, presenting a novel model architecture that efficiently builds fixed length representations of all spans in the evidence document with a recurrent network. We show that scoring explicit span representations significantly improves performance over other approaches that factor the prediction into separate predictions about words or start and end markers. Our approach improves upon the best published results of Wang & Jiang (2016) by $5 \%$ and decreases the error of Rajpurkar et al.’s baseline by $\bar { > } 5 0 \%$ .
15
+
16
+ # 1 INTRODUCTION
17
+
18
+ A primary goal of natural language processing is to develop systems that can answer questions about the contents of documents. The reading comprehension task is of practical interest – we want computers to be able to read the world’s text and then answer our questions – and, since we believe it requires deep language understanding, it has also become a flagship task in NLP research.
19
+
20
+ A number of reading comprehension datasets have been developed that focus on answer selection from a small set of alternatives defined by annotators (Richardson et al., 2013) or existing NLP pipelines that cannot be trained end-to-end (Hill et al., 2016; Hermann et al., 2015). Subsequently, the models proposed for this task have tended to make use of the limited set of candidates, basing their predictions on mention-level attention weights (Hermann et al., 2015), or centering classifiers (Chen et al., 2016), or network memories (Hill et al., 2016) on candidate locations.
21
+
22
+ Recently, Rajpurkar et al. (2016) released the less restricted SQUAD dataset1 that does not place any constraints on the set of allowed answers, other than that they should be drawn from the evidence document. Rajpurkar et al. proposed a baseline system that chooses answers from the constituents identified by an existing syntactic parser. This allows them to prune the $O ( N ^ { 2 } )$ answer candidates in each document of length $N$ , but it also effectively renders $2 0 . 7 \%$ of all questions unanswerable.
23
+
24
+ Subsequent work by Wang & Jiang (2016) significantly improve upon this baseline by using an endto-end neural network architecture to identify answer spans by labeling either individual words, or the start and end of the answer span. Both of these methods do not make independence assumptions about substructures, but they are susceptible to search errors due to greedy training and decoding.
25
+
26
+ In contrast, here we argue that it is beneficial to simplify the decoding procedure by enumerating all possible answer spans. By explicitly representing each answer span, our model can be globally normalized during training and decoded exactly during evaluation. A naive approach to building the $O ( N ^ { 2 } )$ spans of up to length $N$ would require a network that is cubic in size with respect to the passage length, and such a network would be untrainable. To overcome this, we present a novel neural architecture called RASOR that builds fixed-length span representations, reusing recurrent computations for shared substructures. We demonstrate that directly classifying each of the competing spans, and training with global normalization over all possible spans, leads to a significant increase in performance. In our experiments, we show an increase in performance over Wang & Jiang (2016) of $5 \%$ in terms of exact match to a reference answer, and $3 . 6 \%$ in terms of predicted answer F1 with respect to the reference. On both of these metrics, we close the gap between Rajpurkar et al.’s baseline and the human-performance upper-bound by $> 5 0 \%$ .
27
+
28
+ # 2 EXTRACTIVE QUESTION ANSWERING
29
+
30
+ # 2.1 TASK DEFINITION
31
+
32
+ Extractive question answering systems take as input a question $\mathbf { q } = \{ q _ { 0 } , \dots , q _ { n } \}$ and a passage of text $\mathbf { p } = \{ p _ { 0 } , \dots , p _ { m } \}$ from which they predict a single answer span $\mathbf { a } = \langle a _ { s t a r t } , a _ { e n d } \rangle$ , represented as a pair of indices into p. Machine learned extractive question answering systems, such as the one presented here, learn a predictor function $f ( \mathbf { q } , \mathbf { p } ) \mathbf { a }$ from a training dataset of $\langle \mathbf { q } , \mathbf { p } , \mathbf { a } \rangle$ triples.
33
+
34
+ # 2.2 RELATED WORK
35
+
36
+ For the SQUAD dataset, the original paper from Rajpurkar et al. (2016) implemented a linear model with sparse features based on $n$ -grams and part-of-speech tags present in the question and the candidate answer. Other than lexical features, they also used syntactic information in the form of dependency paths to extract more general features. They set a strong baseline for following work and also presented an in depth analysis, showing that lexical and syntactic features contribute most strongly to their model’s performance. Subsequent work by Wang & Jiang (2016) use an end-to-end neural network method that uses a Match-LSTM to model the question and the passage, and uses pointer networks (Vinyals et al., 2015) to extract the answer span from the passage. This model resorts to greedy decoding and falls short in terms of performance compared to our model (see Section 5 for more detail). While we only compare to published baselines, there are other unpublished competitive systems on the SQUAD leaderboard, as listed in footnote 5.
37
+
38
+ A task that is closely related to extractive question answering is the Cloze task (Taylor, 1953), in which the goal is to predict a concealed span from a declarative sentence given a passage of supporting text. Recently, Hermann et al. (2015) presented a Cloze dataset in which the task is to predict the correct entity in an incomplete sentence given an abstractive summary of a news article. Hermann et al. also present various neural architectures to solve the problem. Although this dataset is large and varied in domain, recent analysis by Chen et al. (2016) shows that simple models can achieve close to the human upper bound. As noted by the authors of the SQUAD paper, the annotated answers in the SQUAD dataset are often spans that include non-entities and can be longer phrases, unlike the Cloze datasets, thus making the task more challenging.
39
+
40
+ Another, more traditional line of work has focused on extractive question answering on sentences, where the task is to extract a sentence from a document, given a question. Relevant datasets include datasets from the annual TREC evaluations (Voorhees & Tice, 2000) and WikiQA (Yang et al., 2015), where the latter dataset specifically focused on Wikipedia passages. There has been a line of interesting recent publications using neural architectures, focused on this variety of extractive question answering (Tymoshenko et al., 2016; Wang et al., 2016, inter alia). These methods model the question and a candidate answer sentence, but do not focus on possible candidate answer spans that may contain the answer to the given question. In this work, we focus on the more challenging problem of extracting the precise answer span.
41
+
42
+ # 3 MODEL
43
+
44
+ We propose a model architecture called RASOR2 illustrated in Figure 1, that explicitly computes embedding representations for candidate answer spans. In most structured prediction problems (e.g. sequence labeling or parsing), the number of possible output structures is exponential in the input length, and computing representations for every candidate is prohibitively expensive. However, we exploit the simplicity of our task, where we can trivially and tractably enumerate all candidates. This facilitates an expressive model that computes joint representations of every answer span, that can be globally normalized during learning.
45
+
46
+ In order to compute these span representations, we must aggregate information from the passage and the question for every answer candidate. For the example in Figure 1, RASOR computes an embedding for the candidate answer spans: fixed to, fixed to the, to the, etc. A naive approach for these aggregations would require a network that is cubic in size with respect to the passage length. Instead, our model reduces this to a quadratic size by reusing recurrent computations for shared substructures (i.e. common passage words) from different spans.
47
+
48
+ Since the choice of answer span depends on the original question, we must incorporate this information into the computation of the span representation. We model this by augmenting the passage word embeddings with additional embedding representations of the question.
49
+
50
+ In this section, we motivate and describe the architecture for RASOR in a top-down manner.
51
+
52
+ # 3.1 SCORING ANSWER SPANS
53
+
54
+ The goal of our extractive question answering system is to predict the single best answer span among all candidates from the passage $\mathbf { p }$ , denoted as $\mathbf { A } ( \mathbf { p } )$ . Therefore, we define a probability distribution over all possible answer spans given the question $\mathbf { q }$ and passage $\mathbf { p }$ , and the predictor function finds the answer span with the maximum likelihood:
55
+
56
+ $$
57
+ f ( \mathbf { q } , \mathbf { p } ) : = \underset { \mathbf { a } \in \mathbf { A } ( \mathbf { p } ) } { \operatorname { a r g m a x } } P ( \mathbf { a } \mid \mathbf { q } , \mathbf { p } )
58
+ $$
59
+
60
+ One might be tempted to introduce independence assumptions that would enable cheaper decoding. For example, this distribution can be modeled as (1) a product of conditionally independent distributions (binary) for every word or (2) a product of conditionally independent distributions (over words) for the start and end indices of the answer span. However, we show in Section 5.2 that such independence assumptions hurt the accuracy of the model, and instead we only assume a fixed-length representation $h _ { \mathbf { a } }$ of each candidate span that is scored and normalized with a softmax layer (Span score and Softmax in Figure 1):
61
+
62
+ $$
63
+ { \begin{array} { r } { s _ { \mathbf { a } } = w _ { a } \cdot { \mathrm { F F N N } } ( h _ { \mathbf { a } } ) \qquad { \mathrm { ~ } } \mathbf { a } \in \mathbf { A } ( \mathbf { p } ) } \\ { P ( \mathbf { a } \mid \mathbf { q } , \mathbf { p } ) = { \frac { \exp \left( s _ { \mathbf { a } } \right) } { \sum _ { \mathbf { a ^ { \prime } } \in \mathbf { A } ( \mathbf { p } ) } \exp \left( s _ { \mathbf { a ^ { \prime } } } \right) } } \qquad \mathbf { a } \in \mathbf { A } ( \mathbf { p } ) } \end{array} }
64
+ $$
65
+
66
+ where $\mathrm { F F N N } ( \cdot )$ denotes a fully connected feed-forward neural network that provides a non-linear mapping of its input embedding, and $w _ { a }$ denotes a learned vector for scoring the last layer of the feed-forward neural network.
67
+
68
+ # 3.2 RASOR: RECURRENT SPAN REPRESENTATION
69
+
70
+ The previously defined probability distribution depends on the answer span representations, $h _ { \mathbf { a } }$ . When computing $h _ { \mathbf { a } }$ , we assume access to representations of individual passage words that have been augmented with a representation of the question. We denote these question-focused passage word embeddings as $\{ p _ { 1 } ^ { * } , \ldots , p _ { m } ^ { * } \}$ and describe their creation in Section 3.3. In order to reuse computation for shared substructures, we use a bidirectional LSTM (Hochreiter & Schmidhuber, 1997) to encode the left and right context of every $p _ { i } ^ { * }$ (Passage-level BiLSTM in Figure 1). This allows us to simply concatenate the bidirectional LSTM (BiLSTM) outputs at the endpoints of a span to jointly encode its inside and outside information (Span embedding in Figure 1):
71
+
72
+ $$
73
+ \begin{array} { r l } { { \{ p _ { 1 } ^ { * { \prime } } , \ldots , p _ { m } ^ { * { \prime } } \} } = \mathrm { { B I L S T M } } ( \{ p _ { 1 } ^ { * } , \ldots , p _ { m } ^ { * } \} ) } \\ { { h _ { \mathbf { a } } } = [ p _ { a _ { s t a r t } } ^ { * { \prime } } , p _ { a _ { e n d } } ^ { * { \prime } } ] ~ } & { { } \qquad \langle a _ { s t a r t } , a _ { e n d } \rangle \in \mathbf { A } ( \mathbf { p } ) } \end{array}
74
+ $$
75
+
76
+ where BILSTM $( \cdot )$ denotes a BiLSTM over its input embedding sequence and $p _ { i } ^ { * \prime }$ is the concatenation of forward and backward outputs at time-step $i$ . While the visualization in Figure 1 shows a single layer BiLSTM for simplicity, we use a multi-layer BiLSTM in our experiments. The concatenated output of each layer is used as input for the subsequent layer, allowing the upper layers to depend on the entire passage.
77
+
78
+ # 3.3 QUESTION-FOCUSED PASSAGE WORD EMBEDDING
79
+
80
+ Computing the question-focused passage word embeddings $\{ p _ { 1 } ^ { * } , \ldots , p _ { m } ^ { * } \}$ requires integrating question information into the passage. The architecture for this integration is flexible and likely depends on the nature of the dataset. For the SQUAD dataset, we find that both passage-aligned and passageindependent question representations are effective at incorporating this contextual information, and experiments will show that their benefits are complementary. To incorporate these question representations, we simply concatenate them with the passage word embeddings (Question-focused passage word embedding in Figure 1).
81
+
82
+ We use fixed pretrained embeddings to represent question and passage words. Therefore, in the following discussion, notation for the words are interchangeable with their embedding representations.
83
+
84
+ Question-independent passage word embedding The first component simply looks up the pretrained word embedding for the passage word, $p _ { i }$ .
85
+
86
+ Passage-aligned question representation In this dataset, the question-passage pairs often contain large lexical overlap or similarity near the correct answer span. To encourage the model to exploit these similarities, we include a fixed-length representation of the question based on soft alignments with the passage word. The alignments are computed via neural attention (Bahdanau et al., 2014), and we use the variant proposed by Parikh et al. (2016), where attention scores are dot products between non-linear mappings of word embeddings.
87
+
88
+ $$
89
+ { \begin{array} { r l r l } & { s _ { i j } = { \mathrm { F F N N } } ( p _ { i } ) \cdot { \mathrm { F F N N } } ( q _ { j } ) } & & { 1 \leq j \leq n } \\ & { a _ { i j } = { \frac { \exp \left( s _ { i j } \right) } { \displaystyle \sum _ { k = 1 } ^ { n } \exp \left( s _ { i k } \right) } } } & & { 1 \leq j \leq n } \\ & { q _ { i } ^ { a l i g n } = { \displaystyle \sum _ { j = 1 } ^ { n } a _ { i j } q _ { j } } } & & { } \end{array} }
90
+ $$
91
+
92
+ Passage-independent question representation We also include a representation of the question that does not depend on the passage and is shared for all passage words.
93
+
94
+ Similar to the previous question representation, an attention score is computed via a dot-product, except the question word is compared to a universal learned embedding rather any particular passage word. Additionally, we incorporate contextual information with a BiLSTM before aggregating the outputs using this attention mechanism.
95
+
96
+ The goal is to generate a coarse-grained summary of the question that depends on word order. Formally, the passage-independent question representation $q ^ { i \bar { n } d e p }$ is computed as follows:
97
+
98
+ $$
99
+ \begin{array} { c } { { \{ q _ { 1 } ^ { \prime } , \dots , q _ { n } ^ { \prime } \} = { \bf B I L S T M ( q ) } } } \\ { { \displaystyle s _ { j } = w _ { q } \cdot \mathrm { F F N N } ( q _ { j } ^ { \prime } ) } } \\ { { \displaystyle a _ { j } = \frac { \exp ( s _ { j } ) } { \sum _ { k = 1 } ^ { n } \exp ( s _ { k } ) } } } \\ { { \displaystyle q ^ { i n d e p } = \sum _ { j = 1 } ^ { n } a _ { j } q _ { j } ^ { \prime } } } \end{array}
100
+ $$
101
+
102
+ $$
103
+ 1 \leq j \leq n
104
+ $$
105
+
106
+ where $w _ { q }$ denotes a learned vector for scoring the last layer of the feed-forward neural network.
107
+
108
+ This representation is a bidirectional generalization of the question representation recently proposed by Li et al. (2016) for a different question-answering task.
109
+
110
+ Given the above three components, the complete question-focused passage word embedding for is their concatenation: $p _ { i } ^ { * } = [ p _ { i } , q _ { i } ^ { a l i g n } , q ^ { i n d e p } ]$ . $p _ { i }$
111
+
112
+ # 3.4 LEARNING
113
+
114
+ Given the above model specification, learning is straightforward. We simply maximize the loglikelihood of the correct answer candidates and backpropagate the errors end-to-end.
115
+
116
+ ![](images/8752e965adc93838cf65228158732801c7ede27e922f8b2cf3250e0840585f5c.jpg)
117
+ Figure 1: A visualization of RASOR, where the question is “What are the stators attached to?” and the passage is “. . . fixed to the turbine . . . ”. The model constructs question-focused passage word embeddings by concatenating (1) the original passage word embedding, (2) a passage-aligned representation of the question, and (3) a passage-independent representation of the question shared across all passage words. We use a BiLSTM over these concatenated embeddings to efficiently recover embedding representations of all possible spans, which are then scored by the final layer of the model.
118
+
119
+ # 4 EXPERIMENTAL SETUP
120
+
121
+ We represent each of the words in the question and document using 300 dimensional GloVe embeddings trained on a corpus of $8 4 0 \mathrm { b n }$ words (Pennington et al., 2014). These embeddings cover $2 0 0 \mathrm { k }$ words and all out of vocabulary (OOV) words are projected onto one of $1 \mathrm { m }$ randomly initialized 300d embeddings. We couple the input and forget gates in our LSTMs, as described in Greff et al. (2016), and we use a single dropout mask to apply dropout across all LSTM time-steps as proposed by Gal & Ghahramani (2016). Hidden layers in the feed-forward neural networks use rectified linear units (Nair & Hinton, 2010). Answer candidates are limited to spans with at most 30 words.
122
+
123
+ To choose the final model configuration, we ran grid searches over: the dimensionality of the LSTM hidden states (25, 50, 100, 200); the number of stacked LSTM layers $( 1 , 2 , 3 )$ ; the width (50, 100, 150, 200) and depth $( 1 , 2 )$ of the feed-forward neural networks; the dropout rate $( 0 , 0 . 1 , \mathrm { { 0 . 2 } ) }$ ; and the decay multiplier $( 0 . 9 , 0 . 9 5 , 1 . 0 )$ with which we multiply the learning rate every 10k steps. The best model uses a single 150d hidden layer in all feed-forward neural networks; 50d LSTM states; two-layer BiLSTMs for the span encoder and the passage-independent question representation; dropout of 0.1 throughout; and a learning rate decay of $5 \%$ every $1 0 \mathrm { k }$ steps.
124
+
125
+ All models are implemented using TensorFlow3 and trained on the SQUAD training set using the ADAM (Kingma & Ba, 2015) optimizer with a mini-batch size of 4 and trained using 10 asynchronous training threads on a single machine.
126
+
127
+ # 5 RESULTS
128
+
129
+ We train on the 80k (question, passage, answer span) triples in the SQUAD training set and report results on the 10k examples in the SQUAD development set. Due to copyright restrictions, we are currently not able to upload our models to Codalab4, which is required to run on the blind SQUAD test set, but we are working with Rajpurkar et al. to remedy this, and this paper will be updated with test numbers as soon as possible.
130
+
131
+ All results are calculated using the official SQUAD evaluation script, which reports exact answer match and F1 overlap of the unigrams between the predicted answer and the closest labeled answer from the 3 reference answers given in the SQUAD development set.
132
+
133
+ # 5.1 COMPARISONS TO OTHER WORK
134
+
135
+ Our model with recurrent span representations (RASOR) is compared to all previously published systems 5. Rajpurkar et al. (2016) published a logistic regression baseline as well as human performance on the SQUAD task. The logistic regression baseline uses the output of an existing syntactic parser both as a constraint on the set of allowed answer spans, and as a method of creating sparse features for an answer-centric scoring model. Despite not having access to any external representation of linguistic structure, RASOR achieves an error reduction of more than $5 \dot { 0 } \%$ over this baseline, both in terms of exact match and F1, relative to the human performance upper bound.
136
+
137
+ <table><tr><td></td><td colspan="2">Dev</td><td colspan="2">Test</td></tr><tr><td>System</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>Logistic regression baseline</td><td>39.8</td><td>51.0</td><td>40.4</td><td>51.0</td></tr><tr><td>Match-LSTM (Sequence)</td><td>54.5</td><td>67.7</td><td>54.8</td><td>68.0</td></tr><tr><td>Match-LSTM (Boundary)</td><td>60.5</td><td>70.7</td><td>59.4</td><td>70.0</td></tr><tr><td>RASOR</td><td>66.4</td><td>74.9</td><td>1</td><td>1</td></tr><tr><td>RASoR (Ensemble)</td><td>68.2</td><td>76.7</td><td>一</td><td>一</td></tr><tr><td>Human</td><td>81.4</td><td>91.0</td><td>82.3</td><td>91.2</td></tr></table>
138
+
139
+ Table 1: Exact match (EM) and span F1 on SQUAD. We are currently unable to evaluate on the blind SQUAD test set due to copyright restrictions. We confirm that we did not overfit the development set via 5-fold cross validation of the hyper-parameters, resulting in $6 6 . 0 \pm 1 . 0$ exact match and $7 4 . 5 \pm \bar { 0 } . 9 \ : \mathrm { F 1 }$ .
140
+
141
+ More closely related to RASOR is the boundary model with Match-LSTMs and Pointer Networks by Wang & Jiang (2016). Their model similarly uses recurrent networks to learn embeddings of each passage word in the context of the question, and it can also capture interactions between endpoints, since the end index probability distribution is conditioned on the start index. However, both training and evaluation are greedy, making their system susceptible to search errors when decoding. In contrast, RASOR can efficiently and explicitly model the quadratic number of possible answers, which leads to a $1 4 \%$ error reduction over the best performing Match-LSTM model.
142
+
143
+ We also ensemble RASOR with a baseline model described in Section 5.2 that independently predicts endpoints rather than spans (Endpoints prediction in Table 2b). By simply computing the product of the output probabilities, this ensemble further increases performance to $6 8 . 2 \%$ exact-match. We examine the causes of this improvement in Section 6.
144
+
145
+ Since we do not have access to the test set, we also present 5-fold cross validation experiments to demonstrate that our dev-set results are not an outcome of overfitting through hyper-parameter selection. In this 5-fold setting, we create 5 pseudo dev/test splits from the SQUAD development set.6 We choose hyper-parameters on the basis of the pseudo dev set, and report performance on the disjoint pseudo test set. Each of the pseudo dev sets led us to choose the same optimal model hyper-parameters from a grid of 59 settings, as well as very similar training stopping points. We compute the mean and standard deviation of both evaluation metrics for these optimal models on the pseudo test set, resulting in a $6 6 . 0 \pm 1 . 0$ exact match and $7 4 . 5 \pm 0 . 9 \operatorname { F } 1$ . These results show that our hyper-parameter selection procedure is not overfitting on the 10k SQUAD development set, and we subsequently expect that our model’s performance will translate to the SQUAD test set.
146
+
147
+ # 5.2 MODEL VARIATIONS
148
+
149
+ We investigate two main questions in the following ablations and comparisons. (1) How important are the two methods of representing the question described in Section 3.3? (2) What is the impact of learning a loss function that accurately reflects the span prediction task?
150
+
151
+ Question representations Table 2a shows the performance of RASOR when either of the two question representations described in Section 3.3 is removed. The passage-aligned question representation is crucial, since lexically similar regions of the passage provide strong signal for relevant answer spans. If the question is only integrated through the inclusion of a passage-independent representation, performance drops drastically. The passage-independent question representation over the BiLSTM is less important, but it still accounts for over $3 \%$ exact match and F1. The input of both of these components is analyzed qualitatively in Section 6.
152
+
153
+ Table 2: Results for variations of the model architecture presented in Section 3.
154
+
155
+ <table><tr><td>Question representation</td><td>EM</td><td>F1</td></tr><tr><td>Only passage-independent</td><td>48.7</td><td>56.6</td></tr><tr><td>Only passage-aligned</td><td>63.1</td><td>71.3</td></tr><tr><td>RASOR</td><td>66.4</td><td>74.9</td></tr></table>
156
+
157
+ (a) Ablation of question representations.
158
+
159
+ <table><tr><td>Learning objective</td><td>EM</td><td>F1</td></tr><tr><td>Membership prediction</td><td>57.9</td><td>69.7</td></tr><tr><td>BIO sequence prediction</td><td>63.9</td><td>73.0</td></tr><tr><td>Endpoints prediction</td><td>65.3</td><td>75.1</td></tr><tr><td>Span prediction w/log loss</td><td>65.2</td><td>73.6</td></tr></table>
160
+
161
+ (b) Comparisons for different learning objectives given the same passage-level BiLSTM.
162
+
163
+ Learning objectives Given a fixed architecture that is capable of encoding the input questionpassage pairs, there are many ways of setting up a learning objective to encourage the model to predict the correct span. In Table 2b, we provide comparisons of some alternatives (learned end-toend) given only the passage-level BiLSTM from RASOR. In order to provide clean comparisons, we restrict the alternatives to objectives that are trained and evaluated with exact decoding.
164
+
165
+ The simplest alternative is to consider this task as binary classification for every word (Membership prediction in Table 2b). In this baseline, we optimize the logistic loss for binary labels indicating whether passage words belong to the correct answer span. At prediction time, a valid span can be recovered in linear time by finding the maximum contiguous sum of scores.
166
+
167
+ Li et al. (2016) proposed a sequence-labeling scheme that is similar to the above baseline (BIO sequence prediction in Table 2b). We follow their proposed model and learn a conditional random field (CRF) layer after the passage-level BiLSTM to model transitions between the different labels. At prediction time, a valid span can be recovered in linear time using Viterbi decoding, with hard transition constraints to enforce a single contiguous output.
168
+
169
+ We also consider a model that independently predicts the two endpoints of the answer span (Endpoints prediction in Table 2b). This model uses the softmax loss over passage words during learning. When decoding, we only need to enforce the constraint that the start index is no greater than the end index. Without the interactions between the endpoints, this can be computed in linear time. Note that this model has the same expressivity as RASOR if the span-level FFNN were removed.
170
+
171
+ Lastly, we compare with a model using the same architecture as RASOR but is trained with a binary logistic loss rather than a softmax loss over spans (Span prediction w/ logistic loss in Table 2b).
172
+
173
+ The trend in Table 2b shows that the model is better at leveraging the supervision as the learning objective more accurately reflects the fundamental task at hand: determining the best answer span.
174
+
175
+ First, we observe general improvements when using labels that closely align with the task. For example, the labels for membership prediction simply happens to provide single contiguous spans in the supervision. The model must consider far more possible answers than it needs to (the power set of all words). The same problem holds for BIO sequence prediction– the model must do additional work to learn the semantics of the BIO tags. On the other hand, in RASOR, the semantics of an answer span is naturally encoded by the set of labels.
176
+
177
+ Second, we observe the importance of allowing interactions between the endpoints using the spanlevel FFNN. RASOR outperforms the endpoint prediction model by 1.1 in exact match, The interaction between endpoints enables RASOR to enforce consistency across its two substructures. While this does not provide improvements for predicting the correct region of the answer (captured by the F1 metric, which drops by 0.2), it is more likely to predict a clean answer span that matches human judgment exactly (captured by the exact-match metric).
178
+
179
+ # 6 ANALYSIS
180
+
181
+ Figure 2 shows how the performances of RASOR and the endpoint predictor introduced in Section 5.2 degrade as the lengths of their predictions increase. The endpoint predictor underpredicts single word answer spans, while overpredicting answer spans with more than 8 words.
182
+
183
+ ![](images/5cc9e80ec83256790dc1bed04fd2c739275e558fb9115223174bd51060be15e5.jpg)
184
+ Figure 2: F1 and Exact Match accuracy of RASOR and the endpoint predictor over different predictions lengths, along with the distribution of both models’ prediction lengths and the gold answer lengths.
185
+
186
+ Since the endpoints predictor does not explicitly model the interaction between the start and end of any given answer span, it is susceptible to choosing the span start and end points from separate answer candidates. For example, consider the following endpoints prediction that is most different in length from a correct span classification. Here, the span classifier correctly answers the question ‘Where did the Meuse flow before the flood?’ with ‘North Sea’ but the endpoints prediction is:
187
+
188
+ ‘south of today’s line Merwede-Oude Maas to the North Sea and formed an archipelago-like estuary with Waal and Lek. This system of numerous bays, estuary-like extended rivers, many islands and constant changes of the coastline, is hard to imagine today. From 1421 to 1904, the Meuse and Waal merged further upstream at Gorinchem to form Merwede. For flood protection reasons, the Meuse was separated from the Waal through a lock and diverted into a new outlet called ”Bergse Maas”, then Amer and then flows into the former bay Hollands Diep
189
+
190
+ In this prediction, we can see that both the start ‘south of . . . ’ and the end ‘. . . Hollands Diep’ have a reasonable answer type. However, the endpoints predictor has failed to model the fact that they cannot resonably be part of the same answer, a common error case. The endpoints predictor predicts 514 answers with $> 2 5$ more words than the gold answer, but the span classifier never does this.
191
+
192
+ ![](images/28e6143ad8d835803865ce062c2a28bee3a4b09ba64682d7797a3baa60c2423b.jpg)
193
+ Figure 3: Attention masks from RASOR. Top predictions are ‘Egyptians’, ‘Egyptians against the British’, and ‘British’ in the first example and ‘unjust laws’, ‘what they deem to be unjust laws’, and ‘laws’ in the second.
194
+
195
+ Table 3: Example questions and their most attended words in the passage-independent question representation (Equation 11). These examples have the greatest attention (normalized by the question length) in the development set. The attention mechanism typically seeks words in the question that indicate the answer type.
196
+
197
+ <table><tr><td rowspan=1 colspan=1>Most attended</td><td rowspan=1 colspan=1>Question</td></tr><tr><td rowspan=1 colspan=1>conditions</td><td rowspan=1 colspan=1>In Gebhard v Consiglio..Milano,the requirements to be registered in Milan beforebeing able to practice law would be allowed under what conditions?</td></tr><tr><td rowspan=1 colspan=1>Were</td><td rowspan=1 colspan=1>Were the restored tapes able to have color added to them to enhance the picture ordid they remain black and white?</td></tr><tr><td rowspan=1 colspan=1>Did</td><td rowspan=1 colspan=1>Did the European Court of Justice rule the defendant in the case of Commission v.Edith Cresson broke any laws?</td></tr><tr><td rowspan=1 colspan=1>whom</td><td rowspan=1 colspan=1>The church holds that they are equally bound to respect the sacredness of the lifeand well-being of whom?</td></tr><tr><td rowspan=1 colspan=1>Whose</td><td rowspan=1 colspan=1>Whose thesis states that the solution to a problem is solvable with reasonable re-sources assuming it allows for a polynomial time algorithm ?</td></tr><tr><td rowspan=1 colspan=1>language</td><td rowspan=1 colspan=1>What language did the Court of Justice accept to be required to teach in a Dublincollege in Groner v Minister for Education?</td></tr><tr><td rowspan=1 colspan=1>term</td><td rowspan=1 colspan=1>Income not from the creation of wealth but by grabbing a larger share of it is knowto economists by what term?</td></tr></table>
198
+
199
+ Figure 3 shows attention masks for both of RASOR’s question representations. The passageindependent question representation pays most attention to the words that could attach to the answer in the passage (‘brought’, ‘against’) or describe the answer category (‘people’). Meanwhile, the passage-aligned question representation pays attention to similar words. The top predictions for both examples are all valid syntactic constituents, and they all have the correct semantic category. However, RASOR assigns almost as much probability mass to it’s incorrect third prediction ‘British’ as it does to the top scoring correct prediction ‘Egyptian’. This showcases a common failure case for RASOR, where it can find an answer of the correct type close to a phrase that overlaps with the question – but it cannot accurately represent the semantic dependency on that phrase.
200
+
201
+ A significant architectural difference from other neural models for the SQUAD dataset, such as Wang & Jiang (2016), is the use of the question-independent passage representation (Equation 12). Table 3 shows examples in the development set where the model paid the most attention to a single word in the question. The attention mechanism tends to seek words in the question that indicate the answer type, e.g. ‘language’ from the question: ‘What language did the Court of Justic accept ...’ This pattern provides insight for the necessity of using both question representations, since the answer type information is orthogonal to passage alignment information.
202
+
203
+ # 7 CONCLUSION
204
+
205
+ We have shown a novel approach for perform extractive question answering on the SQUAD dataset by explicitly representing and scoring answer span candidates. The core of our model relies on a recurrent network that enables shared computation for the shared substructure across span candidates. We explore different methods of encoding the passage and question, showing the benefits of including both passage-independent and passage-aligned question representations. While we show that this encoding method is beneficial for the task, this is orthogonal to the core contribution of efficiently computing span representation. In future work, we plan to explore alternate architectures that provide input to the recurrent span representations.
206
+
207
+ # REFERENCES
208
+
209
+ Dzmitry Bahdanau, KyungHyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
210
+
211
+ Danqi Chen, Jason Bolton, and Christopher D. Manning. A thorough examination of the cnn/daily mail reading comprehension task. In Proceedings of ACL, 2016.
212
+
213
+ Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. Proceedings of NIPS, 2016.
214
+
215
+ Klaus Greff, Rupesh Kumar Srivastava, Jan Koutn´ık, Bas R. Steunebrink, and Jurgen Schmidhuber. ¨ LSTM: A search space odyssey. IEEE Transactions on Neural Networks and Learning Systems, PP:1–11, 2016.
216
+
217
+ Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Proceedings of NIPS, 2015.
218
+
219
+ Felix Hill, Antoine Bordes, Sumit Chopra, and Jason Weston. The goldilocks principle: Reading children’s books with explicit memory representations. In Proceedings of ICLR, 2016.
220
+
221
+ Sepp Hochreiter and Jurgen Schmidhuber. Long Short-term Memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
222
+
223
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. Proceedings of ICLR, 2015.
224
+
225
+ Peng Li, Wei Li, Zhengyan He, Xuguang Wang, Ying Cao, Jie Zhou, and Wei Xu. Dataset and neural recurrent sequence labeling model for open-domain factoid question answering. CoRR, abs/1607.06275, 2016.
226
+
227
+ Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of ICML, 2010.
228
+
229
+ Ankur P Parikh, Oscar Tackstr ¨ om, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention ¨ model for natural language inference. In Proceedings of EMNLP, 2016.
230
+
231
+ Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In Proceedings of EMNLP, 2014.
232
+
233
+ Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: 100, $0 0 0 +$ questions for machine comprehension of text. In Proceedings of EMNLP, 2016.
234
+
235
+ Matthew Richardson, Christopher JC Burges, and Erin Renshaw. Mctest: A challenge dataset for the open-domain machine comprehension of text. In Proceedings of EMNLP, 2013.
236
+
237
+ Wilson Taylor. Cloze procedure: A new tool for measuring readability. Journalism Quarterly, 30: 415–433, 1953.
238
+
239
+ Kateryna Tymoshenko, Daniele Bonadiman, and Alessandro Moschitti. Convolutional neural networks vs. convolution kernels: Feature engineering for answer sentence reranking. In Proceedings of NAACL, 2016.
240
+
241
+ Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Proceedings of NIPS, 2015.
242
+
243
+ Ellen M. Voorhees and Dawn M. Tice. Building a question answering test collection. In Proceedings of SIGIR, 2000.
244
+
245
+ Bingning Wang, Kang Liu, and Jun Zhao. Inner attention based recurrent neural networks for answer selection. In Proceedings of ACL, 2016.
246
+
247
+ Shuohang Wang and Jing Jiang. Machine comprehension using match-lstm and answer pointer. arXiv preprint arXiv:1608.07905, 2016.
248
+
249
+ Yi Yang, Wen-tau Yih, and Christopher Meek. Wikiqa: A challenge dataset for open-domain question answering. In Proceedings of EMNLP, 2015.
parse/train/HkIQH7qel/HkIQH7qel_content_list.json ADDED
@@ -0,0 +1,1318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING RECURRENT SPAN REPRESENTATIONS FOR EXTRACTIVE QUESTION ANSWERING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Kenton Lee∗ \nUniversity of Washington \nSeattle, WA \nkentonl@cs.washington.edu \nTom Kwiatkowski Ankur Parikh Dipanjan Das \nGoogle \nNew York, NY \n{tomkwiat, aparikh, dipanjand}@google.com ",
17
+ "bbox": [
18
+ 184,
19
+ 174,
20
+ 429,
21
+ 229
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "",
28
+ "bbox": [
29
+ 449,
30
+ 172,
31
+ 848,
32
+ 231
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 266,
43
+ 544,
44
+ 281
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "The reading comprehension task, that asks questions about a given evidence document, is a central problem in natural language understanding. Recent formulations of this task have typically focused on answer selection from a set of candidates pre-defined manually or through the use of an external NLP pipeline. However, Rajpurkar et al. (2016) recently released the SQUAD dataset in which the answers can be arbitrary strings from the supplied text. In this paper, we focus on this answer extraction task, presenting a novel model architecture that efficiently builds fixed length representations of all spans in the evidence document with a recurrent network. We show that scoring explicit span representations significantly improves performance over other approaches that factor the prediction into separate predictions about words or start and end markers. Our approach improves upon the best published results of Wang & Jiang (2016) by $5 \\%$ and decreases the error of Rajpurkar et al.’s baseline by $\\bar { > } 5 0 \\%$ . ",
51
+ "bbox": [
52
+ 233,
53
+ 297,
54
+ 764,
55
+ 478
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 506,
66
+ 334,
67
+ 521
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "A primary goal of natural language processing is to develop systems that can answer questions about the contents of documents. The reading comprehension task is of practical interest – we want computers to be able to read the world’s text and then answer our questions – and, since we believe it requires deep language understanding, it has also become a flagship task in NLP research. ",
74
+ "bbox": [
75
+ 176,
76
+ 537,
77
+ 823,
78
+ 593
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "A number of reading comprehension datasets have been developed that focus on answer selection from a small set of alternatives defined by annotators (Richardson et al., 2013) or existing NLP pipelines that cannot be trained end-to-end (Hill et al., 2016; Hermann et al., 2015). Subsequently, the models proposed for this task have tended to make use of the limited set of candidates, basing their predictions on mention-level attention weights (Hermann et al., 2015), or centering classifiers (Chen et al., 2016), or network memories (Hill et al., 2016) on candidate locations. ",
85
+ "bbox": [
86
+ 174,
87
+ 601,
88
+ 823,
89
+ 684
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Recently, Rajpurkar et al. (2016) released the less restricted SQUAD dataset1 that does not place any constraints on the set of allowed answers, other than that they should be drawn from the evidence document. Rajpurkar et al. proposed a baseline system that chooses answers from the constituents identified by an existing syntactic parser. This allows them to prune the $O ( N ^ { 2 } )$ answer candidates in each document of length $N$ , but it also effectively renders $2 0 . 7 \\%$ of all questions unanswerable. ",
96
+ "bbox": [
97
+ 174,
98
+ 690,
99
+ 823,
100
+ 761
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Subsequent work by Wang & Jiang (2016) significantly improve upon this baseline by using an endto-end neural network architecture to identify answer spans by labeling either individual words, or the start and end of the answer span. Both of these methods do not make independence assumptions about substructures, but they are susceptible to search errors due to greedy training and decoding. ",
107
+ "bbox": [
108
+ 174,
109
+ 767,
110
+ 825,
111
+ 824
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In contrast, here we argue that it is beneficial to simplify the decoding procedure by enumerating all possible answer spans. By explicitly representing each answer span, our model can be globally normalized during training and decoded exactly during evaluation. A naive approach to building the $O ( N ^ { 2 } )$ spans of up to length $N$ would require a network that is cubic in size with respect to the passage length, and such a network would be untrainable. To overcome this, we present a novel neural architecture called RASOR that builds fixed-length span representations, reusing recurrent computations for shared substructures. We demonstrate that directly classifying each of the competing spans, and training with global normalization over all possible spans, leads to a significant increase in performance. In our experiments, we show an increase in performance over Wang & Jiang (2016) of $5 \\%$ in terms of exact match to a reference answer, and $3 . 6 \\%$ in terms of predicted answer F1 with respect to the reference. On both of these metrics, we close the gap between Rajpurkar et al.’s baseline and the human-performance upper-bound by $> 5 0 \\%$ . ",
118
+ "bbox": [
119
+ 176,
120
+ 830,
121
+ 823,
122
+ 886
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 174,
131
+ 103,
132
+ 825,
133
+ 215
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 EXTRACTIVE QUESTION ANSWERING ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 234,
144
+ 519,
145
+ 251
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "2.1 TASK DEFINITION ",
152
+ "text_level": 1,
153
+ "bbox": [
154
+ 176,
155
+ 265,
156
+ 341,
157
+ 280
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Extractive question answering systems take as input a question $\\mathbf { q } = \\{ q _ { 0 } , \\dots , q _ { n } \\}$ and a passage of text $\\mathbf { p } = \\{ p _ { 0 } , \\dots , p _ { m } \\}$ from which they predict a single answer span $\\mathbf { a } = \\langle a _ { s t a r t } , a _ { e n d } \\rangle$ , represented as a pair of indices into p. Machine learned extractive question answering systems, such as the one presented here, learn a predictor function $f ( \\mathbf { q } , \\mathbf { p } ) \\mathbf { a }$ from a training dataset of $\\langle \\mathbf { q } , \\mathbf { p } , \\mathbf { a } \\rangle$ triples. ",
164
+ "bbox": [
165
+ 174,
166
+ 291,
167
+ 825,
168
+ 348
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "2.2 RELATED WORK ",
175
+ "text_level": 1,
176
+ "bbox": [
177
+ 176,
178
+ 364,
179
+ 330,
180
+ 378
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "For the SQUAD dataset, the original paper from Rajpurkar et al. (2016) implemented a linear model with sparse features based on $n$ -grams and part-of-speech tags present in the question and the candidate answer. Other than lexical features, they also used syntactic information in the form of dependency paths to extract more general features. They set a strong baseline for following work and also presented an in depth analysis, showing that lexical and syntactic features contribute most strongly to their model’s performance. Subsequent work by Wang & Jiang (2016) use an end-to-end neural network method that uses a Match-LSTM to model the question and the passage, and uses pointer networks (Vinyals et al., 2015) to extract the answer span from the passage. This model resorts to greedy decoding and falls short in terms of performance compared to our model (see Section 5 for more detail). While we only compare to published baselines, there are other unpublished competitive systems on the SQUAD leaderboard, as listed in footnote 5. ",
187
+ "bbox": [
188
+ 174,
189
+ 390,
190
+ 825,
191
+ 542
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "A task that is closely related to extractive question answering is the Cloze task (Taylor, 1953), in which the goal is to predict a concealed span from a declarative sentence given a passage of supporting text. Recently, Hermann et al. (2015) presented a Cloze dataset in which the task is to predict the correct entity in an incomplete sentence given an abstractive summary of a news article. Hermann et al. also present various neural architectures to solve the problem. Although this dataset is large and varied in domain, recent analysis by Chen et al. (2016) shows that simple models can achieve close to the human upper bound. As noted by the authors of the SQUAD paper, the annotated answers in the SQUAD dataset are often spans that include non-entities and can be longer phrases, unlike the Cloze datasets, thus making the task more challenging. ",
198
+ "bbox": [
199
+ 174,
200
+ 550,
201
+ 825,
202
+ 675
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "Another, more traditional line of work has focused on extractive question answering on sentences, where the task is to extract a sentence from a document, given a question. Relevant datasets include datasets from the annual TREC evaluations (Voorhees & Tice, 2000) and WikiQA (Yang et al., 2015), where the latter dataset specifically focused on Wikipedia passages. There has been a line of interesting recent publications using neural architectures, focused on this variety of extractive question answering (Tymoshenko et al., 2016; Wang et al., 2016, inter alia). These methods model the question and a candidate answer sentence, but do not focus on possible candidate answer spans that may contain the answer to the given question. In this work, we focus on the more challenging problem of extracting the precise answer span. ",
209
+ "bbox": [
210
+ 174,
211
+ 683,
212
+ 825,
213
+ 808
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "3 MODEL ",
220
+ "text_level": 1,
221
+ "bbox": [
222
+ 176,
223
+ 827,
224
+ 267,
225
+ 843
226
+ ],
227
+ "page_idx": 1
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "We propose a model architecture called RASOR2 illustrated in Figure 1, that explicitly computes embedding representations for candidate answer spans. In most structured prediction problems (e.g. sequence labeling or parsing), the number of possible output structures is exponential in the input length, and computing representations for every candidate is prohibitively expensive. However, we exploit the simplicity of our task, where we can trivially and tractably enumerate all candidates. This facilitates an expressive model that computes joint representations of every answer span, that can be globally normalized during learning. ",
232
+ "bbox": [
233
+ 176,
234
+ 858,
235
+ 823,
236
+ 901
237
+ ],
238
+ "page_idx": 1
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "",
243
+ "bbox": [
244
+ 174,
245
+ 103,
246
+ 823,
247
+ 160
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "In order to compute these span representations, we must aggregate information from the passage and the question for every answer candidate. For the example in Figure 1, RASOR computes an embedding for the candidate answer spans: fixed to, fixed to the, to the, etc. A naive approach for these aggregations would require a network that is cubic in size with respect to the passage length. Instead, our model reduces this to a quadratic size by reusing recurrent computations for shared substructures (i.e. common passage words) from different spans. ",
254
+ "bbox": [
255
+ 174,
256
+ 166,
257
+ 825,
258
+ 251
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "Since the choice of answer span depends on the original question, we must incorporate this information into the computation of the span representation. We model this by augmenting the passage word embeddings with additional embedding representations of the question. ",
265
+ "bbox": [
266
+ 176,
267
+ 257,
268
+ 825,
269
+ 299
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "In this section, we motivate and describe the architecture for RASOR in a top-down manner. ",
276
+ "bbox": [
277
+ 171,
278
+ 306,
279
+ 774,
280
+ 320
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "3.1 SCORING ANSWER SPANS ",
287
+ "text_level": 1,
288
+ "bbox": [
289
+ 176,
290
+ 337,
291
+ 395,
292
+ 352
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "The goal of our extractive question answering system is to predict the single best answer span among all candidates from the passage $\\mathbf { p }$ , denoted as $\\mathbf { A } ( \\mathbf { p } )$ . Therefore, we define a probability distribution over all possible answer spans given the question $\\mathbf { q }$ and passage $\\mathbf { p }$ , and the predictor function finds the answer span with the maximum likelihood: ",
299
+ "bbox": [
300
+ 174,
301
+ 363,
302
+ 825,
303
+ 417
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "equation",
309
+ "img_path": "images/30292a69ad32b1a085e574334af346db0dc669b9bec2a2895a3c0451339ad87b.jpg",
310
+ "text": "$$\nf ( \\mathbf { q } , \\mathbf { p } ) : = \\underset { \\mathbf { a } \\in \\mathbf { A } ( \\mathbf { p } ) } { \\operatorname { a r g m a x } } P ( \\mathbf { a } \\mid \\mathbf { q } , \\mathbf { p } )\n$$",
311
+ "text_format": "latex",
312
+ "bbox": [
313
+ 392,
314
+ 421,
315
+ 606,
316
+ 450
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "One might be tempted to introduce independence assumptions that would enable cheaper decoding. For example, this distribution can be modeled as (1) a product of conditionally independent distributions (binary) for every word or (2) a product of conditionally independent distributions (over words) for the start and end indices of the answer span. However, we show in Section 5.2 that such independence assumptions hurt the accuracy of the model, and instead we only assume a fixed-length representation $h _ { \\mathbf { a } }$ of each candidate span that is scored and normalized with a softmax layer (Span score and Softmax in Figure 1): ",
323
+ "bbox": [
324
+ 173,
325
+ 452,
326
+ 825,
327
+ 550
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "equation",
333
+ "img_path": "images/573807e0cc393a2c5b1ce9cb141c382ee366848764ca5ac42a10ce087ba5b0b2.jpg",
334
+ "text": "$$\n{ \\begin{array} { r } { s _ { \\mathbf { a } } = w _ { a } \\cdot { \\mathrm { F F N N } } ( h _ { \\mathbf { a } } ) \\qquad { \\mathrm { ~ } } \\mathbf { a } \\in \\mathbf { A } ( \\mathbf { p } ) } \\\\ { P ( \\mathbf { a } \\mid \\mathbf { q } , \\mathbf { p } ) = { \\frac { \\exp \\left( s _ { \\mathbf { a } } \\right) } { \\sum _ { \\mathbf { a ^ { \\prime } } \\in \\mathbf { A } ( \\mathbf { p } ) } \\exp \\left( s _ { \\mathbf { a ^ { \\prime } } } \\right) } } \\qquad \\mathbf { a } \\in \\mathbf { A } ( \\mathbf { p } ) } \\end{array} }\n$$",
335
+ "text_format": "latex",
336
+ "bbox": [
337
+ 289,
338
+ 550,
339
+ 710,
340
+ 609
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "where $\\mathrm { F F N N } ( \\cdot )$ denotes a fully connected feed-forward neural network that provides a non-linear mapping of its input embedding, and $w _ { a }$ denotes a learned vector for scoring the last layer of the feed-forward neural network. ",
347
+ "bbox": [
348
+ 174,
349
+ 612,
350
+ 823,
351
+ 654
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "3.2 RASOR: RECURRENT SPAN REPRESENTATION",
358
+ "text_level": 1,
359
+ "bbox": [
360
+ 174,
361
+ 670,
362
+ 534,
363
+ 685
364
+ ],
365
+ "page_idx": 2
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "The previously defined probability distribution depends on the answer span representations, $h _ { \\mathbf { a } }$ . When computing $h _ { \\mathbf { a } }$ , we assume access to representations of individual passage words that have been augmented with a representation of the question. We denote these question-focused passage word embeddings as $\\{ p _ { 1 } ^ { * } , \\ldots , p _ { m } ^ { * } \\}$ and describe their creation in Section 3.3. In order to reuse computation for shared substructures, we use a bidirectional LSTM (Hochreiter & Schmidhuber, 1997) to encode the left and right context of every $p _ { i } ^ { * }$ (Passage-level BiLSTM in Figure 1). This allows us to simply concatenate the bidirectional LSTM (BiLSTM) outputs at the endpoints of a span to jointly encode its inside and outside information (Span embedding in Figure 1): ",
370
+ "bbox": [
371
+ 173,
372
+ 695,
373
+ 825,
374
+ 808
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "equation",
380
+ "img_path": "images/95a9f46147d030053659ef8d81c74a0cfaa4da9144f3d3fcf00cc8e83005d904.jpg",
381
+ "text": "$$\n\\begin{array} { r l } { { \\{ p _ { 1 } ^ { * { \\prime } } , \\ldots , p _ { m } ^ { * { \\prime } } \\} } = \\mathrm { { B I L S T M } } ( \\{ p _ { 1 } ^ { * } , \\ldots , p _ { m } ^ { * } \\} ) } \\\\ { { h _ { \\mathbf { a } } } = [ p _ { a _ { s t a r t } } ^ { * { \\prime } } , p _ { a _ { e n d } } ^ { * { \\prime } } ] ~ } & { { } \\qquad \\langle a _ { s t a r t } , a _ { e n d } \\rangle \\in \\mathbf { A } ( \\mathbf { p } ) } \\end{array}\n$$",
382
+ "text_format": "latex",
383
+ "bbox": [
384
+ 250,
385
+ 809,
386
+ 748,
387
+ 852
388
+ ],
389
+ "page_idx": 2
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "where BILSTM $( \\cdot )$ denotes a BiLSTM over its input embedding sequence and $p _ { i } ^ { * \\prime }$ is the concatenation of forward and backward outputs at time-step $i$ . While the visualization in Figure 1 shows a single layer BiLSTM for simplicity, we use a multi-layer BiLSTM in our experiments. The concatenated output of each layer is used as input for the subsequent layer, allowing the upper layers to depend on the entire passage. ",
394
+ "bbox": [
395
+ 174,
396
+ 853,
397
+ 825,
398
+ 924
399
+ ],
400
+ "page_idx": 2
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "3.3 QUESTION-FOCUSED PASSAGE WORD EMBEDDING ",
405
+ "text_level": 1,
406
+ "bbox": [
407
+ 173,
408
+ 103,
409
+ 570,
410
+ 118
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "Computing the question-focused passage word embeddings $\\{ p _ { 1 } ^ { * } , \\ldots , p _ { m } ^ { * } \\}$ requires integrating question information into the passage. The architecture for this integration is flexible and likely depends on the nature of the dataset. For the SQUAD dataset, we find that both passage-aligned and passageindependent question representations are effective at incorporating this contextual information, and experiments will show that their benefits are complementary. To incorporate these question representations, we simply concatenate them with the passage word embeddings (Question-focused passage word embedding in Figure 1). ",
417
+ "bbox": [
418
+ 173,
419
+ 128,
420
+ 825,
421
+ 228
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "We use fixed pretrained embeddings to represent question and passage words. Therefore, in the following discussion, notation for the words are interchangeable with their embedding representations. ",
428
+ "bbox": [
429
+ 176,
430
+ 234,
431
+ 823,
432
+ 262
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Question-independent passage word embedding The first component simply looks up the pretrained word embedding for the passage word, $p _ { i }$ . ",
439
+ "bbox": [
440
+ 173,
441
+ 276,
442
+ 820,
443
+ 306
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "Passage-aligned question representation In this dataset, the question-passage pairs often contain large lexical overlap or similarity near the correct answer span. To encourage the model to exploit these similarities, we include a fixed-length representation of the question based on soft alignments with the passage word. The alignments are computed via neural attention (Bahdanau et al., 2014), and we use the variant proposed by Parikh et al. (2016), where attention scores are dot products between non-linear mappings of word embeddings. ",
450
+ "bbox": [
451
+ 173,
452
+ 320,
453
+ 825,
454
+ 404
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "equation",
460
+ "img_path": "images/0d82cccec6fdb85f367acbf93563b9fc0f071e698e58cdfc757325105fcf8b1c.jpg",
461
+ "text": "$$\n{ \\begin{array} { r l r l } & { s _ { i j } = { \\mathrm { F F N N } } ( p _ { i } ) \\cdot { \\mathrm { F F N N } } ( q _ { j } ) } & & { 1 \\leq j \\leq n } \\\\ & { a _ { i j } = { \\frac { \\exp \\left( s _ { i j } \\right) } { \\displaystyle \\sum _ { k = 1 } ^ { n } \\exp \\left( s _ { i k } \\right) } } } & & { 1 \\leq j \\leq n } \\\\ & { q _ { i } ^ { a l i g n } = { \\displaystyle \\sum _ { j = 1 } ^ { n } a _ { i j } q _ { j } } } & & { } \\end{array} }\n$$",
462
+ "text_format": "latex",
463
+ "bbox": [
464
+ 300,
465
+ 406,
466
+ 699,
467
+ 506
468
+ ],
469
+ "page_idx": 3
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "Passage-independent question representation We also include a representation of the question that does not depend on the passage and is shared for all passage words. ",
474
+ "bbox": [
475
+ 171,
476
+ 515,
477
+ 823,
478
+ 545
479
+ ],
480
+ "page_idx": 3
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "Similar to the previous question representation, an attention score is computed via a dot-product, except the question word is compared to a universal learned embedding rather any particular passage word. Additionally, we incorporate contextual information with a BiLSTM before aggregating the outputs using this attention mechanism. ",
485
+ "bbox": [
486
+ 173,
487
+ 551,
488
+ 825,
489
+ 607
490
+ ],
491
+ "page_idx": 3
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "The goal is to generate a coarse-grained summary of the question that depends on word order. Formally, the passage-independent question representation $q ^ { i \\bar { n } d e p }$ is computed as follows: ",
496
+ "bbox": [
497
+ 173,
498
+ 613,
499
+ 821,
500
+ 642
501
+ ],
502
+ "page_idx": 3
503
+ },
504
+ {
505
+ "type": "equation",
506
+ "img_path": "images/6a61aae3c216cc65e4bcb85b13d2af6e45709181da6447b6c5103cb9849be50d.jpg",
507
+ "text": "$$\n\\begin{array} { c } { { \\{ q _ { 1 } ^ { \\prime } , \\dots , q _ { n } ^ { \\prime } \\} = { \\bf B I L S T M ( q ) } } } \\\\ { { \\displaystyle s _ { j } = w _ { q } \\cdot \\mathrm { F F N N } ( q _ { j } ^ { \\prime } ) } } \\\\ { { \\displaystyle a _ { j } = \\frac { \\exp ( s _ { j } ) } { \\sum _ { k = 1 } ^ { n } \\exp ( s _ { k } ) } } } \\\\ { { \\displaystyle q ^ { i n d e p } = \\sum _ { j = 1 } ^ { n } a _ { j } q _ { j } ^ { \\prime } } } \\end{array}\n$$",
508
+ "text_format": "latex",
509
+ "bbox": [
510
+ 297,
511
+ 643,
512
+ 508,
513
+ 763
514
+ ],
515
+ "page_idx": 3
516
+ },
517
+ {
518
+ "type": "equation",
519
+ "img_path": "images/4f31acf49c7b00ef3b236e9279a463c07de49056799d79ae1c0fd6547228109b.jpg",
520
+ "text": "$$\n1 \\leq j \\leq n\n$$",
521
+ "text_format": "latex",
522
+ "bbox": [
523
+ 627,
524
+ 666,
525
+ 700,
526
+ 683
527
+ ],
528
+ "page_idx": 3
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "where $w _ { q }$ denotes a learned vector for scoring the last layer of the feed-forward neural network. ",
533
+ "bbox": [
534
+ 173,
535
+ 765,
536
+ 799,
537
+ 781
538
+ ],
539
+ "page_idx": 3
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "This representation is a bidirectional generalization of the question representation recently proposed by Li et al. (2016) for a different question-answering task. ",
544
+ "bbox": [
545
+ 173,
546
+ 786,
547
+ 820,
548
+ 815
549
+ ],
550
+ "page_idx": 3
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "Given the above three components, the complete question-focused passage word embedding for is their concatenation: $p _ { i } ^ { * } = [ p _ { i } , q _ { i } ^ { a l i g n } , q ^ { i n d e p } ]$ . $p _ { i }$ ",
555
+ "bbox": [
556
+ 173,
557
+ 821,
558
+ 823,
559
+ 854
560
+ ],
561
+ "page_idx": 3
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "3.4 LEARNING ",
566
+ "text_level": 1,
567
+ "bbox": [
568
+ 174,
569
+ 869,
570
+ 290,
571
+ 883
572
+ ],
573
+ "page_idx": 3
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "Given the above model specification, learning is straightforward. We simply maximize the loglikelihood of the correct answer candidates and backpropagate the errors end-to-end. ",
578
+ "bbox": [
579
+ 174,
580
+ 895,
581
+ 823,
582
+ 924
583
+ ],
584
+ "page_idx": 3
585
+ },
586
+ {
587
+ "type": "image",
588
+ "img_path": "images/8752e965adc93838cf65228158732801c7ede27e922f8b2cf3250e0840585f5c.jpg",
589
+ "image_caption": [
590
+ "Figure 1: A visualization of RASOR, where the question is “What are the stators attached to?” and the passage is “. . . fixed to the turbine . . . ”. The model constructs question-focused passage word embeddings by concatenating (1) the original passage word embedding, (2) a passage-aligned representation of the question, and (3) a passage-independent representation of the question shared across all passage words. We use a BiLSTM over these concatenated embeddings to efficiently recover embedding representations of all possible spans, which are then scored by the final layer of the model. "
591
+ ],
592
+ "image_footnote": [],
593
+ "bbox": [
594
+ 205,
595
+ 99,
596
+ 795,
597
+ 489
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "4 EXPERIMENTAL SETUP ",
604
+ "text_level": 1,
605
+ "bbox": [
606
+ 176,
607
+ 614,
608
+ 398,
609
+ 631
610
+ ],
611
+ "page_idx": 4
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "We represent each of the words in the question and document using 300 dimensional GloVe embeddings trained on a corpus of $8 4 0 \\mathrm { b n }$ words (Pennington et al., 2014). These embeddings cover $2 0 0 \\mathrm { k }$ words and all out of vocabulary (OOV) words are projected onto one of $1 \\mathrm { m }$ randomly initialized 300d embeddings. We couple the input and forget gates in our LSTMs, as described in Greff et al. (2016), and we use a single dropout mask to apply dropout across all LSTM time-steps as proposed by Gal & Ghahramani (2016). Hidden layers in the feed-forward neural networks use rectified linear units (Nair & Hinton, 2010). Answer candidates are limited to spans with at most 30 words. ",
616
+ "bbox": [
617
+ 174,
618
+ 646,
619
+ 825,
620
+ 744
621
+ ],
622
+ "page_idx": 4
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "To choose the final model configuration, we ran grid searches over: the dimensionality of the LSTM hidden states (25, 50, 100, 200); the number of stacked LSTM layers $( 1 , 2 , 3 )$ ; the width (50, 100, 150, 200) and depth $( 1 , 2 )$ of the feed-forward neural networks; the dropout rate $( 0 , 0 . 1 , \\mathrm { { 0 . 2 } ) }$ ; and the decay multiplier $( 0 . 9 , 0 . 9 5 , 1 . 0 )$ with which we multiply the learning rate every 10k steps. The best model uses a single 150d hidden layer in all feed-forward neural networks; 50d LSTM states; two-layer BiLSTMs for the span encoder and the passage-independent question representation; dropout of 0.1 throughout; and a learning rate decay of $5 \\%$ every $1 0 \\mathrm { k }$ steps. ",
627
+ "bbox": [
628
+ 174,
629
+ 751,
630
+ 825,
631
+ 849
632
+ ],
633
+ "page_idx": 4
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "All models are implemented using TensorFlow3 and trained on the SQUAD training set using the ADAM (Kingma & Ba, 2015) optimizer with a mini-batch size of 4 and trained using 10 asynchronous training threads on a single machine. ",
638
+ "bbox": [
639
+ 176,
640
+ 856,
641
+ 823,
642
+ 898
643
+ ],
644
+ "page_idx": 4
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "5 RESULTS ",
649
+ "text_level": 1,
650
+ "bbox": [
651
+ 174,
652
+ 102,
653
+ 281,
654
+ 117
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "We train on the 80k (question, passage, answer span) triples in the SQUAD training set and report results on the 10k examples in the SQUAD development set. Due to copyright restrictions, we are currently not able to upload our models to Codalab4, which is required to run on the blind SQUAD test set, but we are working with Rajpurkar et al. to remedy this, and this paper will be updated with test numbers as soon as possible. ",
661
+ "bbox": [
662
+ 174,
663
+ 133,
664
+ 825,
665
+ 204
666
+ ],
667
+ "page_idx": 5
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "All results are calculated using the official SQUAD evaluation script, which reports exact answer match and F1 overlap of the unigrams between the predicted answer and the closest labeled answer from the 3 reference answers given in the SQUAD development set. ",
672
+ "bbox": [
673
+ 176,
674
+ 210,
675
+ 825,
676
+ 252
677
+ ],
678
+ "page_idx": 5
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "5.1 COMPARISONS TO OTHER WORK ",
683
+ "text_level": 1,
684
+ "bbox": [
685
+ 176,
686
+ 270,
687
+ 437,
688
+ 284
689
+ ],
690
+ "page_idx": 5
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "Our model with recurrent span representations (RASOR) is compared to all previously published systems 5. Rajpurkar et al. (2016) published a logistic regression baseline as well as human performance on the SQUAD task. The logistic regression baseline uses the output of an existing syntactic parser both as a constraint on the set of allowed answer spans, and as a method of creating sparse features for an answer-centric scoring model. Despite not having access to any external representation of linguistic structure, RASOR achieves an error reduction of more than $5 \\dot { 0 } \\%$ over this baseline, both in terms of exact match and F1, relative to the human performance upper bound. ",
695
+ "bbox": [
696
+ 174,
697
+ 295,
698
+ 825,
699
+ 393
700
+ ],
701
+ "page_idx": 5
702
+ },
703
+ {
704
+ "type": "table",
705
+ "img_path": "images/bfab282a26a6881ec5f6aa8a2c9dbb95aca79a280a9186e6e8661b573eb0834d.jpg",
706
+ "table_caption": [],
707
+ "table_footnote": [],
708
+ "table_body": "<table><tr><td></td><td colspan=\"2\">Dev</td><td colspan=\"2\">Test</td></tr><tr><td>System</td><td>EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>Logistic regression baseline</td><td>39.8</td><td>51.0</td><td>40.4</td><td>51.0</td></tr><tr><td>Match-LSTM (Sequence)</td><td>54.5</td><td>67.7</td><td>54.8</td><td>68.0</td></tr><tr><td>Match-LSTM (Boundary)</td><td>60.5</td><td>70.7</td><td>59.4</td><td>70.0</td></tr><tr><td>RASOR</td><td>66.4</td><td>74.9</td><td>1</td><td>1</td></tr><tr><td>RASoR (Ensemble)</td><td>68.2</td><td>76.7</td><td>一</td><td>一</td></tr><tr><td>Human</td><td>81.4</td><td>91.0</td><td>82.3</td><td>91.2</td></tr></table>",
709
+ "bbox": [
710
+ 303,
711
+ 405,
712
+ 694,
713
+ 532
714
+ ],
715
+ "page_idx": 5
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "Table 1: Exact match (EM) and span F1 on SQUAD. We are currently unable to evaluate on the blind SQUAD test set due to copyright restrictions. We confirm that we did not overfit the development set via 5-fold cross validation of the hyper-parameters, resulting in $6 6 . 0 \\pm 1 . 0$ exact match and $7 4 . 5 \\pm \\bar { 0 } . 9 \\ : \\mathrm { F 1 }$ . ",
720
+ "bbox": [
721
+ 174,
722
+ 547,
723
+ 823,
724
+ 587
725
+ ],
726
+ "page_idx": 5
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "More closely related to RASOR is the boundary model with Match-LSTMs and Pointer Networks by Wang & Jiang (2016). Their model similarly uses recurrent networks to learn embeddings of each passage word in the context of the question, and it can also capture interactions between endpoints, since the end index probability distribution is conditioned on the start index. However, both training and evaluation are greedy, making their system susceptible to search errors when decoding. In contrast, RASOR can efficiently and explicitly model the quadratic number of possible answers, which leads to a $1 4 \\%$ error reduction over the best performing Match-LSTM model. ",
731
+ "bbox": [
732
+ 174,
733
+ 609,
734
+ 825,
735
+ 708
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "We also ensemble RASOR with a baseline model described in Section 5.2 that independently predicts endpoints rather than spans (Endpoints prediction in Table 2b). By simply computing the product of the output probabilities, this ensemble further increases performance to $6 8 . 2 \\%$ exact-match. We examine the causes of this improvement in Section 6. ",
742
+ "bbox": [
743
+ 176,
744
+ 714,
745
+ 823,
746
+ 770
747
+ ],
748
+ "page_idx": 5
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "Since we do not have access to the test set, we also present 5-fold cross validation experiments to demonstrate that our dev-set results are not an outcome of overfitting through hyper-parameter selection. In this 5-fold setting, we create 5 pseudo dev/test splits from the SQUAD development set.6 We choose hyper-parameters on the basis of the pseudo dev set, and report performance on the disjoint pseudo test set. Each of the pseudo dev sets led us to choose the same optimal model hyper-parameters from a grid of 59 settings, as well as very similar training stopping points. We compute the mean and standard deviation of both evaluation metrics for these optimal models on the pseudo test set, resulting in a $6 6 . 0 \\pm 1 . 0$ exact match and $7 4 . 5 \\pm 0 . 9 \\operatorname { F } 1$ . These results show that our hyper-parameter selection procedure is not overfitting on the 10k SQUAD development set, and we subsequently expect that our model’s performance will translate to the SQUAD test set. ",
753
+ "bbox": [
754
+ 174,
755
+ 777,
756
+ 825,
757
+ 847
758
+ ],
759
+ "page_idx": 5
760
+ },
761
+ {
762
+ "type": "text",
763
+ "text": "",
764
+ "bbox": [
765
+ 174,
766
+ 103,
767
+ 825,
768
+ 174
769
+ ],
770
+ "page_idx": 6
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "5.2 MODEL VARIATIONS ",
775
+ "text_level": 1,
776
+ "bbox": [
777
+ 176,
778
+ 190,
779
+ 357,
780
+ 205
781
+ ],
782
+ "page_idx": 6
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "We investigate two main questions in the following ablations and comparisons. (1) How important are the two methods of representing the question described in Section 3.3? (2) What is the impact of learning a loss function that accurately reflects the span prediction task? ",
787
+ "bbox": [
788
+ 176,
789
+ 215,
790
+ 823,
791
+ 258
792
+ ],
793
+ "page_idx": 6
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "Question representations Table 2a shows the performance of RASOR when either of the two question representations described in Section 3.3 is removed. The passage-aligned question representation is crucial, since lexically similar regions of the passage provide strong signal for relevant answer spans. If the question is only integrated through the inclusion of a passage-independent representation, performance drops drastically. The passage-independent question representation over the BiLSTM is less important, but it still accounts for over $3 \\%$ exact match and F1. The input of both of these components is analyzed qualitatively in Section 6. ",
798
+ "bbox": [
799
+ 174,
800
+ 273,
801
+ 825,
802
+ 372
803
+ ],
804
+ "page_idx": 6
805
+ },
806
+ {
807
+ "type": "table",
808
+ "img_path": "images/90c0677c09c6ac532de1fc90969050593ec802e4cf5c7aca141fc074b49877f1.jpg",
809
+ "table_caption": [
810
+ "Table 2: Results for variations of the model architecture presented in Section 3. "
811
+ ],
812
+ "table_footnote": [
813
+ "(a) Ablation of question representations. "
814
+ ],
815
+ "table_body": "<table><tr><td>Question representation</td><td>EM</td><td>F1</td></tr><tr><td>Only passage-independent</td><td>48.7</td><td>56.6</td></tr><tr><td>Only passage-aligned</td><td>63.1</td><td>71.3</td></tr><tr><td>RASOR</td><td>66.4</td><td>74.9</td></tr></table>",
816
+ "bbox": [
817
+ 187,
818
+ 401,
819
+ 480,
820
+ 468
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "table",
826
+ "img_path": "images/8918f92c83cb8f424774de6c898bbdb89ec9bafb33f32cf385e13d83d9c76093.jpg",
827
+ "table_caption": [],
828
+ "table_footnote": [
829
+ "(b) Comparisons for different learning objectives given the same passage-level BiLSTM. "
830
+ ],
831
+ "table_body": "<table><tr><td>Learning objective</td><td>EM</td><td>F1</td></tr><tr><td>Membership prediction</td><td>57.9</td><td>69.7</td></tr><tr><td>BIO sequence prediction</td><td>63.9</td><td>73.0</td></tr><tr><td>Endpoints prediction</td><td>65.3</td><td>75.1</td></tr><tr><td>Span prediction w/log loss</td><td>65.2</td><td>73.6</td></tr></table>",
832
+ "bbox": [
833
+ 509,
834
+ 396,
835
+ 810,
836
+ 476
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Learning objectives Given a fixed architecture that is capable of encoding the input questionpassage pairs, there are many ways of setting up a learning objective to encourage the model to predict the correct span. In Table 2b, we provide comparisons of some alternatives (learned end-toend) given only the passage-level BiLSTM from RASOR. In order to provide clean comparisons, we restrict the alternatives to objectives that are trained and evaluated with exact decoding. ",
843
+ "bbox": [
844
+ 174,
845
+ 568,
846
+ 825,
847
+ 636
848
+ ],
849
+ "page_idx": 6
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "The simplest alternative is to consider this task as binary classification for every word (Membership prediction in Table 2b). In this baseline, we optimize the logistic loss for binary labels indicating whether passage words belong to the correct answer span. At prediction time, a valid span can be recovered in linear time by finding the maximum contiguous sum of scores. ",
854
+ "bbox": [
855
+ 174,
856
+ 643,
857
+ 825,
858
+ 700
859
+ ],
860
+ "page_idx": 6
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Li et al. (2016) proposed a sequence-labeling scheme that is similar to the above baseline (BIO sequence prediction in Table 2b). We follow their proposed model and learn a conditional random field (CRF) layer after the passage-level BiLSTM to model transitions between the different labels. At prediction time, a valid span can be recovered in linear time using Viterbi decoding, with hard transition constraints to enforce a single contiguous output. ",
865
+ "bbox": [
866
+ 174,
867
+ 707,
868
+ 825,
869
+ 776
870
+ ],
871
+ "page_idx": 6
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "We also consider a model that independently predicts the two endpoints of the answer span (Endpoints prediction in Table 2b). This model uses the softmax loss over passage words during learning. When decoding, we only need to enforce the constraint that the start index is no greater than the end index. Without the interactions between the endpoints, this can be computed in linear time. Note that this model has the same expressivity as RASOR if the span-level FFNN were removed. ",
876
+ "bbox": [
877
+ 174,
878
+ 784,
879
+ 825,
880
+ 853
881
+ ],
882
+ "page_idx": 6
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "Lastly, we compare with a model using the same architecture as RASOR but is trained with a binary logistic loss rather than a softmax loss over spans (Span prediction w/ logistic loss in Table 2b). ",
887
+ "bbox": [
888
+ 176,
889
+ 859,
890
+ 820,
891
+ 888
892
+ ],
893
+ "page_idx": 6
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "The trend in Table 2b shows that the model is better at leveraging the supervision as the learning objective more accurately reflects the fundamental task at hand: determining the best answer span. ",
898
+ "bbox": [
899
+ 174,
900
+ 895,
901
+ 821,
902
+ 924
903
+ ],
904
+ "page_idx": 6
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "First, we observe general improvements when using labels that closely align with the task. For example, the labels for membership prediction simply happens to provide single contiguous spans in the supervision. The model must consider far more possible answers than it needs to (the power set of all words). The same problem holds for BIO sequence prediction– the model must do additional work to learn the semantics of the BIO tags. On the other hand, in RASOR, the semantics of an answer span is naturally encoded by the set of labels. ",
909
+ "bbox": [
910
+ 174,
911
+ 103,
912
+ 825,
913
+ 188
914
+ ],
915
+ "page_idx": 7
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "Second, we observe the importance of allowing interactions between the endpoints using the spanlevel FFNN. RASOR outperforms the endpoint prediction model by 1.1 in exact match, The interaction between endpoints enables RASOR to enforce consistency across its two substructures. While this does not provide improvements for predicting the correct region of the answer (captured by the F1 metric, which drops by 0.2), it is more likely to predict a clean answer span that matches human judgment exactly (captured by the exact-match metric). ",
920
+ "bbox": [
921
+ 174,
922
+ 194,
923
+ 825,
924
+ 279
925
+ ],
926
+ "page_idx": 7
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "6 ANALYSIS ",
931
+ "text_level": 1,
932
+ "bbox": [
933
+ 174,
934
+ 300,
935
+ 290,
936
+ 315
937
+ ],
938
+ "page_idx": 7
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Figure 2 shows how the performances of RASOR and the endpoint predictor introduced in Section 5.2 degrade as the lengths of their predictions increase. The endpoint predictor underpredicts single word answer spans, while overpredicting answer spans with more than 8 words. ",
943
+ "bbox": [
944
+ 174,
945
+ 332,
946
+ 823,
947
+ 376
948
+ ],
949
+ "page_idx": 7
950
+ },
951
+ {
952
+ "type": "image",
953
+ "img_path": "images/5cc9e80ec83256790dc1bed04fd2c739275e558fb9115223174bd51060be15e5.jpg",
954
+ "image_caption": [
955
+ "Figure 2: F1 and Exact Match accuracy of RASOR and the endpoint predictor over different predictions lengths, along with the distribution of both models’ prediction lengths and the gold answer lengths. "
956
+ ],
957
+ "image_footnote": [],
958
+ "bbox": [
959
+ 238,
960
+ 390,
961
+ 759,
962
+ 619
963
+ ],
964
+ "page_idx": 7
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "Since the endpoints predictor does not explicitly model the interaction between the start and end of any given answer span, it is susceptible to choosing the span start and end points from separate answer candidates. For example, consider the following endpoints prediction that is most different in length from a correct span classification. Here, the span classifier correctly answers the question ‘Where did the Meuse flow before the flood?’ with ‘North Sea’ but the endpoints prediction is: ",
969
+ "bbox": [
970
+ 176,
971
+ 683,
972
+ 823,
973
+ 752
974
+ ],
975
+ "page_idx": 7
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "‘south of today’s line Merwede-Oude Maas to the North Sea and formed an archipelago-like estuary with Waal and Lek. This system of numerous bays, estuary-like extended rivers, many islands and constant changes of the coastline, is hard to imagine today. From 1421 to 1904, the Meuse and Waal merged further upstream at Gorinchem to form Merwede. For flood protection reasons, the Meuse was separated from the Waal through a lock and diverted into a new outlet called ”Bergse Maas”, then Amer and then flows into the former bay Hollands Diep ",
980
+ "bbox": [
981
+ 232,
982
+ 766,
983
+ 766,
984
+ 854
985
+ ],
986
+ "page_idx": 7
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "In this prediction, we can see that both the start ‘south of . . . ’ and the end ‘. . . Hollands Diep’ have a reasonable answer type. However, the endpoints predictor has failed to model the fact that they cannot resonably be part of the same answer, a common error case. The endpoints predictor predicts 514 answers with $> 2 5$ more words than the gold answer, but the span classifier never does this. ",
991
+ "bbox": [
992
+ 174,
993
+ 867,
994
+ 825,
995
+ 924
996
+ ],
997
+ "page_idx": 7
998
+ },
999
+ {
1000
+ "type": "image",
1001
+ "img_path": "images/28e6143ad8d835803865ce062c2a28bee3a4b09ba64682d7797a3baa60c2423b.jpg",
1002
+ "image_caption": [
1003
+ "Figure 3: Attention masks from RASOR. Top predictions are ‘Egyptians’, ‘Egyptians against the British’, and ‘British’ in the first example and ‘unjust laws’, ‘what they deem to be unjust laws’, and ‘laws’ in the second. "
1004
+ ],
1005
+ "image_footnote": [],
1006
+ "bbox": [
1007
+ 241,
1008
+ 103,
1009
+ 756,
1010
+ 353
1011
+ ],
1012
+ "page_idx": 8
1013
+ },
1014
+ {
1015
+ "type": "table",
1016
+ "img_path": "images/0776965ff6b7fd2e47f9255ab4f5e029b7cd9169b8fe371123606926baa5db64.jpg",
1017
+ "table_caption": [
1018
+ "Table 3: Example questions and their most attended words in the passage-independent question representation (Equation 11). These examples have the greatest attention (normalized by the question length) in the development set. The attention mechanism typically seeks words in the question that indicate the answer type. "
1019
+ ],
1020
+ "table_footnote": [],
1021
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Most attended</td><td rowspan=1 colspan=1>Question</td></tr><tr><td rowspan=1 colspan=1>conditions</td><td rowspan=1 colspan=1>In Gebhard v Consiglio..Milano,the requirements to be registered in Milan beforebeing able to practice law would be allowed under what conditions?</td></tr><tr><td rowspan=1 colspan=1>Were</td><td rowspan=1 colspan=1>Were the restored tapes able to have color added to them to enhance the picture ordid they remain black and white?</td></tr><tr><td rowspan=1 colspan=1>Did</td><td rowspan=1 colspan=1>Did the European Court of Justice rule the defendant in the case of Commission v.Edith Cresson broke any laws?</td></tr><tr><td rowspan=1 colspan=1>whom</td><td rowspan=1 colspan=1>The church holds that they are equally bound to respect the sacredness of the lifeand well-being of whom?</td></tr><tr><td rowspan=1 colspan=1>Whose</td><td rowspan=1 colspan=1>Whose thesis states that the solution to a problem is solvable with reasonable re-sources assuming it allows for a polynomial time algorithm ?</td></tr><tr><td rowspan=1 colspan=1>language</td><td rowspan=1 colspan=1>What language did the Court of Justice accept to be required to teach in a Dublincollege in Groner v Minister for Education?</td></tr><tr><td rowspan=1 colspan=1>term</td><td rowspan=1 colspan=1>Income not from the creation of wealth but by grabbing a larger share of it is knowto economists by what term?</td></tr></table>",
1022
+ "bbox": [
1023
+ 184,
1024
+ 414,
1025
+ 810,
1026
+ 630
1027
+ ],
1028
+ "page_idx": 8
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Figure 3 shows attention masks for both of RASOR’s question representations. The passageindependent question representation pays most attention to the words that could attach to the answer in the passage (‘brought’, ‘against’) or describe the answer category (‘people’). Meanwhile, the passage-aligned question representation pays attention to similar words. The top predictions for both examples are all valid syntactic constituents, and they all have the correct semantic category. However, RASOR assigns almost as much probability mass to it’s incorrect third prediction ‘British’ as it does to the top scoring correct prediction ‘Egyptian’. This showcases a common failure case for RASOR, where it can find an answer of the correct type close to a phrase that overlaps with the question – but it cannot accurately represent the semantic dependency on that phrase. ",
1033
+ "bbox": [
1034
+ 173,
1035
+ 694,
1036
+ 825,
1037
+ 819
1038
+ ],
1039
+ "page_idx": 8
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "A significant architectural difference from other neural models for the SQUAD dataset, such as Wang & Jiang (2016), is the use of the question-independent passage representation (Equation 12). Table 3 shows examples in the development set where the model paid the most attention to a single word in the question. The attention mechanism tends to seek words in the question that indicate the answer type, e.g. ‘language’ from the question: ‘What language did the Court of Justic accept ...’ This pattern provides insight for the necessity of using both question representations, since the answer type information is orthogonal to passage alignment information. ",
1044
+ "bbox": [
1045
+ 174,
1046
+ 825,
1047
+ 825,
1048
+ 924
1049
+ ],
1050
+ "page_idx": 8
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "7 CONCLUSION ",
1055
+ "text_level": 1,
1056
+ "bbox": [
1057
+ 176,
1058
+ 102,
1059
+ 318,
1060
+ 117
1061
+ ],
1062
+ "page_idx": 9
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "We have shown a novel approach for perform extractive question answering on the SQUAD dataset by explicitly representing and scoring answer span candidates. The core of our model relies on a recurrent network that enables shared computation for the shared substructure across span candidates. We explore different methods of encoding the passage and question, showing the benefits of including both passage-independent and passage-aligned question representations. While we show that this encoding method is beneficial for the task, this is orthogonal to the core contribution of efficiently computing span representation. In future work, we plan to explore alternate architectures that provide input to the recurrent span representations. ",
1067
+ "bbox": [
1068
+ 174,
1069
+ 133,
1070
+ 825,
1071
+ 244
1072
+ ],
1073
+ "page_idx": 9
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "REFERENCES ",
1078
+ "text_level": 1,
1079
+ "bbox": [
1080
+ 174,
1081
+ 265,
1082
+ 285,
1083
+ 280
1084
+ ],
1085
+ "page_idx": 9
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "Dzmitry Bahdanau, KyungHyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
1090
+ "bbox": [
1091
+ 174,
1092
+ 287,
1093
+ 821,
1094
+ 316
1095
+ ],
1096
+ "page_idx": 9
1097
+ },
1098
+ {
1099
+ "type": "text",
1100
+ "text": "Danqi Chen, Jason Bolton, and Christopher D. Manning. A thorough examination of the cnn/daily mail reading comprehension task. In Proceedings of ACL, 2016. ",
1101
+ "bbox": [
1102
+ 174,
1103
+ 324,
1104
+ 820,
1105
+ 353
1106
+ ],
1107
+ "page_idx": 9
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. Proceedings of NIPS, 2016. ",
1112
+ "bbox": [
1113
+ 174,
1114
+ 361,
1115
+ 821,
1116
+ 390
1117
+ ],
1118
+ "page_idx": 9
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Klaus Greff, Rupesh Kumar Srivastava, Jan Koutn´ık, Bas R. Steunebrink, and Jurgen Schmidhuber. ¨ LSTM: A search space odyssey. IEEE Transactions on Neural Networks and Learning Systems, PP:1–11, 2016. ",
1123
+ "bbox": [
1124
+ 176,
1125
+ 397,
1126
+ 823,
1127
+ 440
1128
+ ],
1129
+ "page_idx": 9
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Proceedings of NIPS, 2015. ",
1134
+ "bbox": [
1135
+ 173,
1136
+ 448,
1137
+ 823,
1138
+ 491
1139
+ ],
1140
+ "page_idx": 9
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "Felix Hill, Antoine Bordes, Sumit Chopra, and Jason Weston. The goldilocks principle: Reading children’s books with explicit memory representations. In Proceedings of ICLR, 2016. ",
1145
+ "bbox": [
1146
+ 171,
1147
+ 500,
1148
+ 823,
1149
+ 529
1150
+ ],
1151
+ "page_idx": 9
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long Short-term Memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
1156
+ "bbox": [
1157
+ 173,
1158
+ 535,
1159
+ 823,
1160
+ 564
1161
+ ],
1162
+ "page_idx": 9
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. Proceedings of ICLR, 2015. ",
1167
+ "bbox": [
1168
+ 174,
1169
+ 573,
1170
+ 823,
1171
+ 602
1172
+ ],
1173
+ "page_idx": 9
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "Peng Li, Wei Li, Zhengyan He, Xuguang Wang, Ying Cao, Jie Zhou, and Wei Xu. Dataset and neural recurrent sequence labeling model for open-domain factoid question answering. CoRR, abs/1607.06275, 2016. ",
1178
+ "bbox": [
1179
+ 171,
1180
+ 609,
1181
+ 825,
1182
+ 652
1183
+ ],
1184
+ "page_idx": 9
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of ICML, 2010. ",
1189
+ "bbox": [
1190
+ 173,
1191
+ 660,
1192
+ 823,
1193
+ 689
1194
+ ],
1195
+ "page_idx": 9
1196
+ },
1197
+ {
1198
+ "type": "text",
1199
+ "text": "Ankur P Parikh, Oscar Tackstr ¨ om, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention ¨ model for natural language inference. In Proceedings of EMNLP, 2016. ",
1200
+ "bbox": [
1201
+ 173,
1202
+ 696,
1203
+ 823,
1204
+ 727
1205
+ ],
1206
+ "page_idx": 9
1207
+ },
1208
+ {
1209
+ "type": "text",
1210
+ "text": "Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In Proceedings of EMNLP, 2014. ",
1211
+ "bbox": [
1212
+ 174,
1213
+ 733,
1214
+ 823,
1215
+ 763
1216
+ ],
1217
+ "page_idx": 9
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: 100, $0 0 0 +$ questions for machine comprehension of text. In Proceedings of EMNLP, 2016. ",
1222
+ "bbox": [
1223
+ 173,
1224
+ 771,
1225
+ 823,
1226
+ 800
1227
+ ],
1228
+ "page_idx": 9
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "Matthew Richardson, Christopher JC Burges, and Erin Renshaw. Mctest: A challenge dataset for the open-domain machine comprehension of text. In Proceedings of EMNLP, 2013. ",
1233
+ "bbox": [
1234
+ 173,
1235
+ 808,
1236
+ 821,
1237
+ 837
1238
+ ],
1239
+ "page_idx": 9
1240
+ },
1241
+ {
1242
+ "type": "text",
1243
+ "text": "Wilson Taylor. Cloze procedure: A new tool for measuring readability. Journalism Quarterly, 30: 415–433, 1953. ",
1244
+ "bbox": [
1245
+ 174,
1246
+ 844,
1247
+ 821,
1248
+ 873
1249
+ ],
1250
+ "page_idx": 9
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "Kateryna Tymoshenko, Daniele Bonadiman, and Alessandro Moschitti. Convolutional neural networks vs. convolution kernels: Feature engineering for answer sentence reranking. In Proceedings of NAACL, 2016. ",
1255
+ "bbox": [
1256
+ 176,
1257
+ 882,
1258
+ 823,
1259
+ 922
1260
+ ],
1261
+ "page_idx": 9
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Proceedings of NIPS, 2015. ",
1266
+ "bbox": [
1267
+ 173,
1268
+ 103,
1269
+ 823,
1270
+ 132
1271
+ ],
1272
+ "page_idx": 10
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "Ellen M. Voorhees and Dawn M. Tice. Building a question answering test collection. In Proceedings of SIGIR, 2000. ",
1277
+ "bbox": [
1278
+ 174,
1279
+ 140,
1280
+ 823,
1281
+ 170
1282
+ ],
1283
+ "page_idx": 10
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "Bingning Wang, Kang Liu, and Jun Zhao. Inner attention based recurrent neural networks for answer selection. In Proceedings of ACL, 2016. ",
1288
+ "bbox": [
1289
+ 173,
1290
+ 179,
1291
+ 825,
1292
+ 208
1293
+ ],
1294
+ "page_idx": 10
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "Shuohang Wang and Jing Jiang. Machine comprehension using match-lstm and answer pointer. arXiv preprint arXiv:1608.07905, 2016. ",
1299
+ "bbox": [
1300
+ 171,
1301
+ 215,
1302
+ 821,
1303
+ 246
1304
+ ],
1305
+ "page_idx": 10
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "Yi Yang, Wen-tau Yih, and Christopher Meek. Wikiqa: A challenge dataset for open-domain question answering. In Proceedings of EMNLP, 2015. ",
1310
+ "bbox": [
1311
+ 173,
1312
+ 253,
1313
+ 823,
1314
+ 284
1315
+ ],
1316
+ "page_idx": 10
1317
+ }
1318
+ ]
parse/train/HkIQH7qel/HkIQH7qel_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkIQH7qel/HkIQH7qel_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkxAS6VFDB/HkxAS6VFDB.md ADDED
@@ -0,0 +1,343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PRUNE OR QUANTIZE? STRATEGY FOR PARETOOPTIMALLY LOW-COST AND ACCURATE CNN
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Pruning and quantization are typical approaches to reduce the computational cost of convolutional neural network (CNN) inference. Although the idea of combining both approaches seems natural, it is surprisingly difficult to determine the effects of the combination without measuring performance on the specific hardware that the user will use. This is because the benefits of pruning and quantization strongly depend on the hardware architecture where the model is executed. For example, a CPU-like architecture with no parallelization may fully exploit the reduction of computations by unstructured pruning to improve speed, but a GPUlike massive parallel architecture would not. Further, there have been emerging proposals of novel hardware architectures, such as those supporting variable bitprecision quantization. From an engineering viewpoint, optimization for each hardware architecture is useful and important in practice, but this is in essence a brute-force approach. Therefore, in this paper, we first propose a hardwareagnostic metric for measuring computational costs. Using the proposed metric, we demonstrate that Pareto-optimal performance, where the best accuracy is obtained at a given computational cost, is achieved when a slim model with fewer parameters is moderately quantized rather than a fat model with a huge number of parameters is quantized to extremely low bit precision, such as binary or ternary. Furthermore, we empirically find a possible quantitative relation between the proposed metric and the signal-to-noise ratio during stochastic gradient descent (SGD) training, by which information obtained during SGD training provides an optimal policy for quantization and pruning. We show the Pareto frontier is improved by $4 \times$ in a post-training quantization scenario based on these findings. These findings not only improve the Pareto frontier for accuracy versus computational cost, but also provide new insights into deep neural networks.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Reducing execution cost of deep learning inference is one of the most active research topics for applying superhuman recognition in embedded IoT devices and robots. A typical approach for employing memory- and computation-efficient components is separable convolution, which is a combination of depth-wise and point-wise convolutions (Iandola et al., 2016; Zoph et al., 2018; Zhang et al., 2018; Howard et al., 2017), structured/unstructured pruning of connections and activations, and quantizing activation, weight, and their vectors (Stock et al., 2019; Jegou et al., 2011; Gong et al., 2014). Among these, separable convolution and structured pruning are similar, in that separable convolution can be viewed as convolutions pruned in a handcrafted manner. From a pruning viewpoint, since the separable convolution structure results from applying aggressive pruning to normal convolution, the result is drastic reductions in memory and computational cost at the expense of greatly decreased accuracy (Stock et al., 2019). On the other hand, structured pruning and quantization are seemingly orthogonal approaches that can be naturally combined (Tung & Mori, 2018; Han et al., 2016). However, their interactions are still not well-studied. For instance, the use of a single-bit representation is being actively explored as an extreme quantization. Since a nonnegligible accuracy drop is inevitable in extreme quantization, some papers have proposed increasing the number of channels to compensate for the lack of expressivity (Lin et al., 2017). In other words, a quantization approach can further reduce the number of bits by compromising the increase in number of channels, or the increase in number of computations. This indicates that, conversely, reducing channels by pruning may limit capability for quantization. This discussion raises a controversial question: which is better, a fat model with smaller bit width or a slim model with larger bit width? Answering this question requires a metric that fairly measures the effects of both pruning and quantization. One such metric in the literature is the inference speed when the model is executed on specific hardware. This metric is useful or even ideal when the target hardware is known in advance but strongly depends on features of the hardware architecture. Yang et al. (2018) searched for an optimal architecture using inference time as the optimization objective and found different optimal architectures depending on the target device. For example, if the hardware cannot handle extremely low bit-widths (1 or 2 bits), instead treating them as 8-bit integers with upper bits filled with zeros, we cannot exploit the reduction of bit width to improve inference speed. From a theoretical viewpoint, figuring out the extent to which we can reduce the computational complexity of deep neural networks is another important open question.
12
+
13
+ The discussion so far urges us to develop a hardware-agnostic and theoretically reasonable metric for measuring computational costs of neural network architectures. In this paper, we propose the Frobenius norm of the effective value of weight parameters as one such metric. This metric is proportional to the total energy when the model is executed on ideal hardware, where energy consumption for a single multiply-accumulate (MAC) computation is proportional to the squared effective amplitude of the individual weight parameter used for the MAC computation. The basic idea of the metric is analogous to a highly efficient class-B amplifier circuit whose energy consumption is determined by the instant signal amplitude (Sechi, 1976). This metric successfully reflects the effects of both quantization and structured/unstructured pruning in accordance with intuition.
14
+
15
+ Using the proposed metric, we empirically find that a slimmer model can achieve a far better Pareto frontier in a lower computational cost region than can a fatter model after quantization, while a fat model is advantageous for achieving higher accuracy in a larger computational cost region. Finally, we perform experiments under a post-training quantization scenario (Banner et al., 2018) on ImageNet dataset (Deng et al., 2009) to verify the validity of our claim, namely that prune-then-quantize is superior to quantize-only or prune-only for achieving a better Pareto frontier.
16
+
17
+ Further, since this metric is relevant to the signal-to-noise ratio $( S / N )$ , it is measurable during SGD training, in which the absolute value of weights and the random walk of weight parameters correspond to signal and noise, respectively. We observe that the dependencies of the metric on validation accuracy seem to be correlated between those during training and those applying quantization after training. From this observation, we point out some possibilities for which we could expect robustness of a model for quantization from information obtained during training, we could determine an optimal policy for quantization of that model, and we could develop a novel optimization or regularization scheme.
18
+
19
+ The main contributions of this paper are as follows:
20
+
21
+ • We define a hardware-agnostic metric for measuring the computational cost of pruned and quantized models. We empirically find that models with fewer parameters achieve far better accuracy in a low computational cost region after quantization.
22
+ • We show a potential quantitative relation between quantization noise and perturbation of weight parameters during SGD training.
23
+
24
+ And as implications, we hope to exploit our findings for
25
+
26
+ • thorough comparison of various neural network architectures using the proposed hardwareagnostic metric,
27
+ • development of a method for extracting a quantization policy from information obtained during SGD training, and
28
+ • development of a training algorithm or regularization scheme for producing robust models based on the relation between quantization noise and perturbation of weight parameters during SGD training.
29
+
30
+ ![](images/45c4995af673290a29b96eb483a2dcadbe7d8ee1fa059b636974fe0dbcd95f81.jpg)
31
+ Figure 1: Left/Center: Computational cost strongly depends on the hardware architecture on which the model is executed. Right: Proposed computational cost for analysis or theoretical research, assuming an ideal hardware architecture.
32
+
33
+ # 2 EFFECTIVE SIGNAL NORM
34
+
35
+ We seek a metric that properly reflects the effects of both quantization and pruning. Conventionally, quantization effectiveness is evaluated according to the number of bits required to achieve a given accuracy, or the accuracy achieved by using certain bit numbers for specific network architectures (Stock et al., 2019). We cannot use this to compare efficiencies between different architecture models (e.g., MobileNet versus ResNet-18). The number of MAC computations or parameters can be used to compare different architectures, but the number of MAC computations does not consider quantization and the number of parameters is not directly related to inference time.
36
+
37
+ Recently, the use of actual or estimated inference speeds as a metric for comparing network architectures has been proposed (Yang et al., 2018; Wang et al., 2019a; Cai et al., 2019). This metric is very useful when the target hardware is known in advance, and ideal for those who wish to use the model that performs best on that hardware. However, this metric is strongly hardware dependent. Indeed, Yang et al. (2018); Wang et al. (2019a); Cai et al. (2019) found that optimal architectures for different types of target hardware are totally different. Considering interest in, for example, the simplest realizable deep neural network model while achieving a required accuracy, there is a need for a hardware-agnostic metric.
38
+
39
+ The metric for model evaluation should correlate with energy consumed when the model is executed on ideal hardware. We assume that energy consumption by ideal hardware monotonically decreases when the bit width is reduced by quantization and when the number of nonzeros in weight parameters is reduced by pruning. For example, hardware with an 8-bit integer MAC array cannot be further accelerated even if the bit width is reduced from 8 to 1 or 2 bits. Thus, the energy consumption measured using such hardware does not satisfy the aforementioned requirement and cannot be our metric. Hardware like a CPU, which processes each computation in serial, can naturally exploit the structured or unstructured sparsity of weight parameters by skipping computations with zeroed weights. However, because it is difficult to parallelize computations while maintaining such a strategy, it is generally difficult to benefit from sparsity in GPU-like hardware employing massively parallel MAC units. Hardware dedicated to sparse convolution (Lu et al., 2019) tends to show better performance only when sparsity is sufficiently high, due to relatively large overheads for encoding and decoding sparse weight parameters in a special format.
40
+
41
+ Therefore, the benefit of sparsity from pruning and low bit width from quantization largely depends on the hardware architecture, so long as we consider only existing hardware. Because we require a hardware-agnostic metric, we assume ideal hardware in which energy consumption is linearly proportional to the number of nonzero weight parameters and monotonically depends on the bit width of weight parameters, as shown in Figure 1, setting aside the feasibility of such ideal hardware.
42
+
43
+ # 2.1 DEFINITION OF EFFECTIVE SIGNAL NORM
44
+
45
+ We define a metric called the effective signal norm (ESN) as
46
+
47
+ $$
48
+ \mathrm { E S N } = \sum _ { l } | | c ^ { l } f ( \mathbf { W } _ { \mathrm { i n t } } ^ { l } ) | | _ { F } ^ { 2 } ,
49
+ $$
50
+
51
+ with $\mathbf { \boldsymbol { \mathsf { W } } } _ { \mathrm { i n t } } ^ { l } = \lfloor \mathbf { \boldsymbol { \mathsf { W } } } ^ { l } / \varDelta ^ { l } \rfloor + 0 . 5$ , where $\boldsymbol { \mathsf { W } } ^ { l }$ is the weight tensor and $\varDelta ^ { l }$ is the quantization step size of the th layer; and $\bar { c } ^ { l }$ is a coefficient depending on the layer, in that if $c ^ { l } = 1$ , ESN is related to the number of parameters (cf. memory footprint), and if $c ^ { l }$ is the number of computations per parameter at the lth layer, ESN is related to the number of computations (cf. FLOP). ${ \bar { f } } ( \cdot )$ is an element-wise function that determines how the metric responds to the value of each weight parameter. We propose two functions for $f ( \cdot )$ . The first is $f ( \bar { \mathbf { W } _ { \mathrm { i n t } } ^ { l } } ) = \mathbf { W } _ { \mathrm { i n t } } ^ { l }$ , based on the assumption that energy consumption increases with the square of the value for each weight parameter or for each computation. When $c ^ { l } = 1$ , the definition is
52
+
53
+ $$
54
+ \mathrm { E S N } _ { a } = \sum _ { l } | | \mathbf { W } _ { \mathrm { i n t } } ^ { l } | | _ { F } ^ { 2 } .
55
+ $$
56
+
57
+ This assumption is reasonable when we employ an analog (or in-memory) MAC computation engine (Shafiee et al., 2016; Miyashita et al., 2017), because energy consumption is proportional to the square of the signal amplitude when the signal represents an analog quantity such as voltage or current. Assuming ideal hardware, we adopt a definition where energy consumption varies according to the instant amplitude (cf. class-B amplifier), which is more energy efficient than the case where energy consumption is constant and the value is determined by the maximal amplitude (cf. class-A amplifier) (Sechi, 1976).
58
+
59
+ The second proposed function is $f ( \mathbf { W } _ { \mathrm { i n t } } ^ { l } ) = \lceil \log _ { 2 } ( \mathrm { a b s } ( \mathbf { W } _ { \mathrm { i n t } } ^ { l } ) ) + 1 \rceil$ , where $\log _ { 2 } \left( \cdot \right)$ and $\mathrm { a b s } \left( { \cdot } \right)$ are functions applied to each element of a tensor argument. This is based on the assumption that energy consumption increases with the binary logarithm of the value for each weight parameter. When $c ^ { l } = 1$ , the definition is
60
+
61
+ $$
62
+ \mathrm { E S N } _ { d } = \sum _ { l } \vert \vert \lceil \log _ { 2 } ( \mathrm { a b s } ( \boldsymbol { \mathsf { W } } _ { \mathrm { i n t } } ^ { l } ) ) + 1 \rceil \vert \vert _ { F } ^ { 2 } .
63
+ $$
64
+
65
+ In a digital circuit, a number is represented as a binary digit (bits), so the energy consumption for moving or processing signals is roughly proportional to the number of bits, which is the binary logarithm of the value. It is therefore reasonable to use Equation (3) for a digital circuit.
66
+
67
+ # 2.2 RELATION BETWEEN ESN AND S/N
68
+
69
+ The effective signal norm defined in Equation (2) is related to the signal-to-noise ratio $( S / N )$ when quantization noise is dominant and noise is approximated by a uniform distribution (Gray & Neuhoff, 1998).
70
+
71
+ $$
72
+ \mathrm { E S N } _ { a } = \sum _ { l } \left( \frac { | | \mathbf { W } ^ { l } | | _ { F } ^ { 2 } } { | | \mathbf { W } ^ { l } - \varDelta \cdot \mathbf { W } _ { \mathrm { i n t } } ^ { l } | | _ { F } ^ { 2 } } \cdot \frac { | | \mathbf { W } ^ { l } | | _ { 0 } } { 1 2 } \right) = \sum _ { l } \left( S / N _ { l } \cdot \frac { | | \mathbf { W } ^ { l } | | _ { 0 } } { 1 2 } \right) ,
73
+ $$
74
+
75
+ where $l$ is the layer index, $S / N _ { l }$ is the signal-to-quantization-noise ratio of the lth layer as defined by ||Wl||2FWl ∆ Wl 2 , and ||Wl||0 is the number of nonzero elements in the tensor Wl. Appendix E presents the derivation of Equation (4). This equation allows us to calculate $\mathrm { E S N } _ { a }$ , so long as $S / N$ is defined.
76
+
77
+ # 2.3 $\mathrm { E S N } _ { a }$ DURING TRAINING
78
+
79
+ For example, we can define $S / N$ by regarding perturbation of weight parameters during training as noise. Formally, we define the signal and noise at the $j$ th epoch as
80
+
81
+ $$
82
+ S _ { j } = \sum _ { l } \sum _ { i } | | \mathbf { W } _ { j , i } ^ { l } | | _ { F } ^ { 2 } , ~ N _ { j } = \sum _ { l } \sum _ { i } | | \mathbf { W } _ { j , i } ^ { l } - \mathbf { W } _ { \mathrm { i n i t } _ { j } } ^ { l } | | _ { F } ^ { 2 } ,
83
+ $$
84
+
85
+ where $\boldsymbol { \mathsf { W } } _ { j , i } ^ { l }$ is the weight parameters in the lth layer at the $i$ th iteration in the $j$ th epoch, and $\mathbf { \Delta } \mathbf { W } _ { \mathrm { i n i t } _ { j } } ^ { l }$ is a snapshot of the weight at the beginning of the $j$ th epoch. Then, $N _ { j }$ is the effective value of random walk noise for weight parameters in one epoch.
86
+
87
+ ![](images/235193dd0b15100d4b1b0a0a69dff68a6329561fa43a202e658f39c6adba7cf5.jpg)
88
+ Figure 2: Training curves of $\mathrm { E S N } _ { a }$ (left) and validation accuracy (right) on CIFAR-10. In the right graph, moving average curve between 3-epochs is overlapped on each plot.
89
+
90
+ ![](images/b7e6cb451b3162ad4574bca3208d8c0846905e2a94fdda0c255fe1d5704883d1.jpg)
91
+ Figure 3: Relation between validation accuracy and $\mathrm { E S N } _ { a }$ during training and after quantization. $\mathrm { E S N } _ { a }$ of the former is computed using Equation (5), and that of the latter is computed using Equation (2)
92
+
93
+ The left figure in Figure 2 shows the $\mathrm { E S N } _ { a }$ curve during training, which is calculated by Equation (4), and $S / N$ as defined by Equation (5). In this experiment, we use ResNet-20 (He et al., 2016) on CIFAR-10 dataset (Krizhevsky, 2009). We use SGD with momentum 0.9, and we set the mini-batch size to 100 and the initial learning rate to 0.1, which is shifted by $1 / 1 0$ at epochs 80 and 120. We vary the weight decay factor from $\overline { { 5 } } \times 1 0 ^ { - 4 }$ to $2 \times 1 0 ^ { - 3 }$ , indicated by different colors in Figure 2.
94
+
95
+ Interestingly, the $\mathrm { E S N } _ { a }$ curves look very similar to the validation accuracy curves shown in the right figure in Figure 2. Both $\mathrm { E S N } _ { a }$ and validation accuracy steeply increase at the point where the learning rate is decreased by $1 / 1 0$ , because decreasing the learning rate reduces perturbation (or random walk) of weight values during one epoch, increasing $S / N$ . We can also see that as the weight decay factor increases, $\mathrm { E S N } _ { a }$ tends to decrease. This is also reasonable, because weight decay decreases $| | \pmb { \mathsf { W } } | | _ { F } ^ { 2 }$ or the signal level, reducing $S / N$ . More interestingly, even this trivial tendency appears correlated with validation accuracy; for example, after a steep rise at epoch 80, both $\mathrm { E S N } _ { a } ^ { * }$ and validation accuracy gradually decrease, converging to stable values after overshooting. There is a similar relation between the amount of overshoot and weight decay factor, namely, we observed a larger overshoot with a smaller weight decay factor. These findings might be useful for developing a novel optimization algorithm, but we leave this for future work.
96
+
97
+ The blue plots in Figure 3 show $\mathrm { E S N } _ { a }$ versus validation accuracy. In this experiment, we use VGG7 (Simonyan & Zisserman, 2014) and ResNet-20 on CIFAR-10, and DenseNet-BC with $l =$ 100, $k = 1 2$ (Huang et al., 2017) on CIFAR-100. We employ SGD with momentum 0.9 and set the initial learning rate to 0.1, followed by cosine annealing without restart (Ilya Loshchilov, 2017). The mini-batch size and weight decay factor are respectively set to 125 and $5 \times 1 0 ^ { - 4 }$ .
98
+
99
+ The red curve shows the $\mathrm { E S N } _ { a }$ versus validation accuracy curve when applying quantization to weight parameters trained by the training process where the blue plots are obtained. As the figure shows, the red and blue curves seem to be correlated. This suggests that the model acquires robustness to quantization by having experienced similar perturbations due to a random walk during the training process. If so, the $\mathrm { E S N } _ { a }$ versus validation accuracy curve during training is available as a loose boundary on accuracy degradation due to decrease of $\mathrm { E S N } _ { a }$ by quantization. We discuss this hypothesis in Section 2.7 again.
100
+
101
+ ![](images/65c78a5c209e01a0c9dea837a7e5dc5c3c216284aac3dbcc3761065155f616c6.jpg)
102
+ Figure 4: Accuracy versus $\mathrm { E S N } _ { a }$ (left) and $\mathrm { E S N } _ { d }$ (right) for various network depths and widths.
103
+
104
+ # 2.4 ESN VERSUS ACCURACY FOR VARIOUS MODEL SIZES
105
+
106
+ With our metric defined, we next attempt to investigate which is better, a model that is slim (with the number of weight parameters and computations reduced by pruning) and mildly quantized (e.g., with 4–5 bits), or a model that is fat (with a large number of weight parameters and computations) and radically quantized (e.g., with 1–2 bits). We evaluate six network architectures with different depths and widths: ResNet-8, 14, 20 and VGG7 with different channel widths $( 1 \times , 0 . 5 \times , 0 . 2 5 \times )$ on CIFAR-10 dataset. In this experiment, we employ networks with originally small number of parameters as slim models instead of pruning fat models. The network architecture of ResNet is based on the original one without bottleneck architecture (He et al., 2016). The detailed network architecture of VGG7 is shown in Appendix F.
107
+
108
+ Figure 4 shows validation accuracy versus $\mathrm { E S N } _ { a }$ and $\mathrm { E S N } _ { d }$ . Here, we consider differences in $\mathrm { E S N } _ { a }$ and $\mathrm { E S N } _ { d }$ . For simplicity, we assume that all weight parameters have the same value $v > 1$ , and that the number of weight parameters is $N$ . The definitions of $\mathrm { E S N } _ { a }$ and $\mathrm { E S N } _ { d }$ are expressed as follows,
109
+
110
+ $$
111
+ \mathrm { E S N } _ { a } = v ^ { 2 } \times N , \mathrm { E S N } _ { d } = \left\lceil \log _ { 2 } v + 1 \right\rceil \times N .
112
+ $$
113
+
114
+ Therefore, when we compare $\mathrm { E S N } _ { a }$ and $\mathrm { E S N } _ { d }$ , both are linearly proportional to the number of weight parameters, whereas values of weight parameters affect the metric at squared and logarithmic scales, respectively. This means that $\mathrm { E S N } _ { a }$ is more strongly dependent on the size of the values than on the number of weight parameters, and the opposite is true for $\mathrm { E S N } _ { d }$ . In other words, $\mathrm { E S N } _ { d }$ is more sensitive to pruning than to quantization, and $\mathrm { E S N } _ { a }$ is more sensitive to quantization than to pruning. Figure 4 clearly shows these tendencies. We can see that even when using the $\mathrm { E S N } _ { a }$ metric, which is advantageous for quantization, the slimmer model shows better validation accuracy in lower ESN regions. These experiments indicate that in lower ESN regions, or with lower energy consumption by ideal hardware, especially when employing digital computing, it is an advisable strategy to prune the model to the limit where the desired accuracy is achieved, and then to apply quantization to obtain the highest possible accuracy. In contrast, it is a bad strategy to apply quantization to a fat model, even if it shows much better accuracy than the pruned slim model before quantization. Consequently, to the question posed at the beginning of this subsection—whether a slim and mildly quantized model or a fat and radically quantized model is better—the answer is the former one, which may in a sense raise a question on trends in quantization research. Note that the above discussion also indicates that the importance of quantization will be relatively increased if analog computing become practical in the future.
115
+
116
+ # 2.5 TRAINING UNDER LOW-ESN CONDITIONS
117
+
118
+ We next observe how the weight parameters evolve in the training process. Figure 5 shows from left to right the loss, $\mathrm { E S N } _ { a }$ , and number of pruned filters (output channels). In this experiment, we train ResNet-20 on CIFAR-10 dataset with initial weight parameters of a trained model. We employ SGD with momentum 0.9, weight decay factor $5 \times 1 \bar { 0 } ^ { - 4 }$ , and mini-batch size 200, updating for 20 epochs. The learning rate (LR) is constant, with a value varied from 0.32 to 1.81 for each training. Note that we do not intentionally prune filters in this experiment; rather, filter pruning spontaneously occurs along with sequential updates of weight parameters by SGD. The center graph shows that as the learning rate increases, $\mathrm { E S N } _ { a }$ decreases due to the larger noise. The number of pruned filters after epoch 20 is larger with the larger learning rate, which corresponds to smaller $\mathrm { E S N } _ { a }$ . In the training process, rather than continuing to increase at a constant rate throughout the training process, the number of pruned filters steeply increases within a few epochs and then is maintained without noticeable change.
119
+
120
+ ![](images/65b7e15a1281061dd878ec2ce254f2bac5a00b56db35de70a4d382971aa01894.jpg)
121
+ Figure 5: Training curves for loss, $\mathrm { E S N } _ { a }$ , and number of pruned filters under different learning rate (LR) conditions. $\mathrm { E S N } _ { a }$ is calculated by Equations (4) and (5).
122
+
123
+ ![](images/c89a06ca0d298bf226b318acfebdde96ddcace59998d6234d38565dda598198c.jpg)
124
+ Figure 6: Accuracy versus $\mathrm { E S N } _ { a / d }$ (left/center) and histogram of the maximal bit width for each filter (right) in the pruning only, quantization only, and prune-then-quantize mixed cases.
125
+
126
+ This indicates that under a small $\mathrm { E S N } _ { a }$ condition controlled by the learning rate, the optimizer finds a solution for reducing the number of parameters by pruning filters and prioritizing increases in amplitude of the remaining parameters, rather than letting all parameters survive with small amplitude.
127
+
128
+ # 2.6 PRUNE then QUANTIZE
129
+
130
+ In the previous two subsections, we empirically showed that achieving optimal accuracy in a low ESN region requires preparation of a slim model before applying quantization. A slim model can be generated by pruning a fat model or by designing a slim architecture. Based on the lottery ticket hypothesis (Frankle & Carbin, 2019), where a fat or overparameterized network can have higher potential for finding better optimal parameters by SGD training, we adopt the former method, namely, pruning weight parameters from a pretrained fat model. We apply ADMM regularization for structured pruning (Wang et al., 2019b), since this achieves state-of-the-art performance.
131
+
132
+ In this experiment, we evaluate ResNet-20 on CIFAR-10 dataset. We update pretrained weight parameters through the SGD algorithm with alternating direction method of multipliers (ADMM) regularization (Wang et al., 2019b) for a few additional epochs. We then fine-tune the resulting pruned model over 160 epochs. In this fine tuning, we employ SGD with momentum 0.9 and set the mini-batch size to 100 and the initial learning rate to 0.1, followed by cosine annealing without restart. The weight decay factor is set to $5 \times 1 0 ^ { - 4 }$ . Since the weight parameters are not yet quantized in this phase, we update all parameters, except that we set weights for the filters (output channels) and channels (input channels) pruned in the previous phase to zero. Finally, we apply quantization.
133
+
134
+ As Figure 6 shows, the Pareto frontier significantly improves by applying prune-then-quantize (red), as compared to applying extreme quantization (green). The right graph in Figure 6 shows a histogram of the maximal bit width under each filter (output channel) of the three models indicated by the broken line in the center graph $\mathrm { ( E S N _ { } = 3 9 M ( b i t s ) ) }$ . Since the pretrained model has 800 filters before pruning and quantization, summations of frequencies for each color are 800. In the pruning only (blue) case, the weight parameters in 555 filters, the largest number among the three methods, are pruned (represented as 0 bits). Most of remaining filters are 8 bits. In the quantization only (green) case, the number of pruned filters is a low 77, while the bit width of most remaining filters is 1 bit. In the proposed prune-then-quantize mixed (red) case, the number of pruned filters is 288 and the bit widths of most remaining filters are 3 or 4 bits, so the remaining filters are mildly quantized. As this case shows, while the $\mathrm { E S N } _ { d }$ values are similar, the validation accuracies differ depending on the number and bit width of the weight parameters. The prune-then-quantize mixed method properly produces a pruned and mildly quantized model, which achieves far better validation accuracy, especially in the low ESN region, as compared to the model produced by extremely quantizing a fat model without pruning.
135
+
136
+ ![](images/b8ddd3ff9df3e6ec00d462f05fa87053b7fdaf62fb93f886c6b0fb58b7c2a373.jpg)
137
+ Figure 7: Relation between random walk during SGD and quantization noise. Loss often steeply decreases when LR is shifted by (e.g., $1 / 1 0 \AA$ ). In this situation, loss before shifting LR is possibly governed by random walk noise due to the large LR, as shown in the left figure. When we quantize weight parameters of the trained model, however, the loss or accuracy should be determined by noise induced by quantization, as shown in the right figure. If we can assume that the loss landscapes of the two cases should not diverge too much, the loss (or accuracy) after quantization is possibly predicted by the dependency of loss (or accuracy) on $\mathrm { E S N } _ { a }$ during training.
138
+
139
+ # 2.7 $\mathrm { E S N } _ { a }$ FOR QUANTIZATION
140
+
141
+ As Section 2.3 showed, there is a possible quantitative relation between $\mathrm { E S N } _ { a }$ during model training and $\mathrm { E S N } _ { a }$ of the pruned and quantized version of that model after training. This finding inspires us to exploit $\mathrm { E S N } _ { a }$ information obtained during training to determine the quantization policy, for example, how many bits to allocate for each layer. Figure 7 shows the intuition behind this idea, namely straightforward use of the $\mathrm { E S N } _ { a }$ values for each layer at a certain epoch during training as targets for quantization. Appendix B describes a preliminary experiment for verifying this idea.
142
+
143
+ # 3 EXPERIMENT ON IMAGENET
144
+
145
+ To verify the validity of our claims, we performed experiments under a post-training quantization scenario (Banner et al., 2018) on ImageNet dataset (Deng et al., 2009). Post-training quantization assumes a use-case scenario where a user (e.g., at an edge side) quantizes a given pretrained CNN model with a limited number of unlabeled training samples for obtaining a lightweight model suited to a particular situation. As concluded in Section 2.4, in a low ESN region or with low energy consumption, we can achieve higher accuracy by quantizing a slim model than by quantizing a fat model, even if the latter is more accurate. To provide optimal accuracy in a low computationalcost region, we apply the proposed prune-then-quantize method to the post-training quantization scenario.
146
+
147
+ Figure 8 shows the result of applying our method to ResNet-18 and ResNet-50 on ImageNet dataset. We used pretrained models12 as basic models with $1 \times$ channel width, and prune the models to various channel widths $0 . 2 5 \times$ , $0 . 5 \times$ , and $0 . 7 5 \times \mathrm { _ { \it { \cdot } } }$ ). In this experiment, we determine which filters (output channels) to prune based on the signal norm of weights calculated by Equation (5). We prune filters in order from the smallest signal norm, and tune each model for the pruned structure through the SGD algorithm over 4 epochs. The mini-batch size is set to 64, and the learning rate is initialized to 0.1 and divided by 10 at epochs 2 and 3. We then quantize each model. For quantization, we only fine-tune statistic parameters in BatchNorm layers (called running_mean and running_var in pytorch (Paszke et al., 2017)) with no labeled data (Sasaki et al., 2019), which is the same condition as conventional work (Banner et al., 2018).
148
+
149
+ ![](images/805ac050388734c55a9e403a956c51041e64cb91ba7ed78d2f987bb8a59cdc5c.jpg)
150
+ Figure 8: (Left/center) top-1 accuracy on ImageNet versus $\mathrm { E S N } _ { a / d }$ and (right) estimated $\mathrm { E S N } _ { d } ^ { \prime }$ , applying the prune-then-quantize method to (upper) ResNet-18 and (lower) ResNet-50.
151
+
152
+ In addition to evaluations by $\mathrm { E S N } _ { a }$ and $\mathrm { E S N } _ { d }$ , to compare our method with the conventional work, we estimate its computational cost using Equation (1) with $c ^ { l }$ and $f ( \cdot )$ properly defined, as
153
+
154
+ $$
155
+ \mathrm { E S N } _ { d } ^ { \prime } = \sum _ { l } \sum _ { m } \mathrm { M A C } _ { l , m } \times \lceil \log _ { 2 } ( \operatorname* { m a x } ( \mathrm { a b s } ( \mathbf { W } _ { \mathrm { i n t } } ^ { l , m } ) ) ) + 1 \rceil ,
156
+ $$
157
+
158
+ where applyi $\mathrm { M A C } _ { l , m }$ he number of computation per filter and function, we restrict the number of bits to $\pmb { \mathsf { W } } _ { \mathrm { i n t } } ^ { l , m }$ is the me in e $m$ th filter of h filter. $\pmb { \mathsf { W } } _ { \mathrm { i n t } } ^ { l }$ . By $\operatorname* { m a x } ( { \mathord { \cdot } } )$
159
+
160
+ We apply this metric3 to a recently proposed efficient MAC array architecture capable of handling variable bit precision (Maki et al., 2018).
161
+
162
+ As Figure 8 shows, significantly using slim models after pruning some filters improves the Pareto frontier as compared to Banner et al. (2018). For example, in ResNet-18, $5 7 \ \%$ top-1 accuracy is achieved at $2 \times$ lower computational cost, and in ResNet-50, $6 3 \ \%$ top-1 accuracy is at $4 \times$ lower computational cost. These results suggest that we should adopt a slim model to achieve best accuracy in low computational cost regions, instead of quantizing weight parameters to an extremely low bit precision.
163
+
164
+ # 4 CONCLUSION
165
+
166
+ We proposed a hardware-agnostic metric called the effective signal norm (ESN) to measure computational costs. Using this metric, we demonstrated that a slim model with fewer weight parameters achieves better Pareto frontier performance in low computational cost regions than does an extremely quantized fat model. We also showed a possible quantitative relation between weight perturbation during SGD training and quantization noise or robustness against quantization.
167
+
168
+ By defining this metric, on the hardware architecture side we can aim at realizing hardware whose energy consumption is proportional to the metric. On the algorithmic side, we can reduce the metric. We therefore expect consensus-sharing regarding the metric for computational cost to accelerate research progress for both algorithms and hardware architectures.
169
+
170
+ # 5 RELATED WORKS
171
+
172
+ Quantization Courbariaux & Bengio (2016); Rastegari et al. (2016); Zhu et al. (2017) quantize weight parameters and activations as 1 or 2. Since such extreme quantization deteriorates accuracy to a nonnegligible extent, quantization methods with, for example, 4–8 bits are also actively explored (Banner et al., 2018; Lin et al., 2017) to avoid the accuracy drop. Miyashita et al. (2016) attempts to quantize weight parameters and activations in a logarithmic domain, aiming not only at reducing information loss but also replacing multiplication with bit-shift to simplify computation. To reduce the average bit width as much as possible while maintaining accuracy, and to exploit it to accelerate inference speed, Maki et al. (2018) proposes variable bit-width quantization co-optimized with hardware architecture. Although nonuniform quantization (Tung & Mori, 2018; Han et al., 2016) and vector or product quantization (Gong et al., 2014; Jegou et al., 2011; Stock et al., 2019) are also actively studied, these approaches are effective for reducing the memory footprint but not for directly reducing computational costs. Use cases include quantization-aware training (Courbariaux & Bengio, 2016; Rastegari et al., 2016; Zhu et al., 2017; Lin et al., 2017; Zhang et al., 2018) and post-training quantization (Banner et al., 2018). Quantization-aware training achieves better accuracy with lower bit widths, and is almost inevitable for those with extreme quantization. However, it tends to incur higher training costs in most cases. The post-training quantization scenario, which is executable with less computational resources and a smaller training dataset, has potentially more applications, so we also target this scenario.
173
+
174
+ Pruning Pruning methods include structured pruning, which prunes whole layers, filters, or channels to maintain a regular structure so that computations are easily parallelized, and unstructured pruning, which randomly prunes individual weight parameters. Since it is difficult to benefit from unstructured pruning unless sparsity is sufficiently large, due to its incompatibility with parallelization (Lu et al., 2019), we target structured pruning. Many pruning methods have also been proposed, such as criteria-based approaches (LeCun et al., 1990), regularization-based approaches (Han et al., 2015; Wang et al., 2019b), and methods employing reinforcement learning (Zhong et al., 2018). In this paper, we argue that a pruned slim model performs better after quantization in lower computational cost regions. Any pruning method can be applied to produce a pruned slim model.
175
+
176
+ Metric for measuring cost In most quantization papers, the standard metric is accuracy achieved under a certain bit width. For pruning, the standard metric is the number of parameters or the number of computations (FLOP). Some papers use inference time when the model runs on specific hardware (Cai et al., 2019; Yang et al., 2018), but this metric is strongly hardware-dependent. In this paper, we propose a hardware-agnostic metric.
177
+
178
+ Noise during training Relations between learning rate, batch size, and noise during training are widely discussed (Keskar et al., 2017; Xing et al., 2018). To make the model more robust to quantization, some papers propose intentional addition of noise to gradient or weight parameters (Spallanzani et al., 2019; Baskin et al., 2018a;b).
179
+
180
+ # REFERENCES
181
+
182
+ Ron Banner, Yury Nahshan, Elad Hoffer, and Daniel Soudry. ACIQ: analytical clipping for integer quantization of neural networks. CoRR, abs/1810.05723, 2018. URL http://arxiv.org/ abs/1810.05723.
183
+
184
+ Chaim Baskin, Natan Liss, Yoav Chai, Evgenii Zheltonozhskii, Eli Schwartz, Raja Giryes, Avi Mendelson, and Alexander M. Bronstein. NICE: noise injection and clamping estimation for neural network quantization. CoRR, abs/1810.00162, 2018a. URL http://arxiv.org/ abs/1810.00162.
185
+
186
+ Chaim Baskin, Eli Schwartz, Evgenii Zheltonozhskii, Natan Liss, Raja Giryes, Alexander M. Bronstein, and Avi Mendelson. UNIQ: uniform noise injection for the quantization of neural networks. CoRR, abs/1804.10969, 2018b. URL http://arxiv.org/abs/1804.10969.
187
+
188
+ Han Cai, Chuang Gan, and Song Han. Once for all: Train one network and specialize it for efficient deployment. CoRR, abs/1908.09791, 2019. URL http://arxiv.org/abs/1908.09791.
189
+
190
+ Matthieu Courbariaux and Yoshua Bengio. Binarynet: Training deep neural networks with weights and activations constrained to $+ 1$ or -1. CoRR, abs/1602.02830, 2016. URL http://arxiv. org/abs/1602.02830.
191
+
192
+ J. Deng, W. Dong, R. Socher, L. Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 248–255, June 2009. doi: 10.1109/CVPR.2009.5206848.
193
+
194
+ Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2019. URL https:// openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ rJl-b3RcF7.
195
+
196
+ A. Gersho. Quantization. IEEE Communications Society Magazine, 15(5):16–16, Sep. 1977. doi: 10.1109/MCOM.1977.1089500.
197
+
198
+ Yunchao Gong, Liu Liu, Ming Yang, and Lubomir D. Bourdev. Compressing deep convolutional networks using vector quantization. CoRR, abs/1412.6115, 2014. URL http://arxiv.org/ abs/1412.6115.
199
+
200
+ R. M. Gray and D. L. Neuhoff. Quantization. IEEE Transactions on Information Theory, 44(6): 2325–2383, Oct 1998. doi: 10.1109/18.720541.
201
+
202
+ Song Han, Jeff Pool, John Tran, and William J. Dally. Learning both weights and connections for efficient neural network. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 1135–1143. Curran Associates, Inc., 2015.
203
+
204
+ Song Han, Huizi Mao, and William J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. International Conference on Learning Representations (ICLR), 2016.
205
+
206
+ K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, June 2016. doi: 10.1109/CVPR.2016.90.
207
+
208
+ Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017. URL http://arxiv.org/abs/ 1704.04861.
209
+
210
+ G. Huang, Z. Liu, L. v. d. Maaten, and K. Q. Weinberger. Densely connected convolutional networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2261–2269, July 2017. doi: 10.1109/CVPR.2017.243.
211
+
212
+ Forrest N. Iandola, Matthew W. Moskewicz, Khalid Ashraf, Song Han, William J. Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with $5 0 \mathrm { x }$ fewer parameters and ${ < } 1 \mathrm { m b }$ model size. CoRR, abs/1602.07360, 2016. URL http://arxiv.org/abs/1602.07360.
213
+
214
+ Frank Hutter Ilya Loshchilov. SGDR: stochastic gradient descent with warm restarts. International Conference on Learning Representations (ICLR), 2017.
215
+
216
+ H. Jegou, M. Douze, and C. Schmid. Product quantization for nearest neighbor search. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(1):117–128, Jan 2011. ISSN 0162-8828. doi: 10.1109/TPAMI.2010.57.
217
+
218
+ Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. International Conference on Learning Representations (ICLR), 2017.
219
+
220
+ Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009.
221
+
222
+ Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In D. S. Touretzky (ed.), Advances in Neural Information Processing Systems 2, pp. 598–605. Morgan-Kaufmann, 1990. URL http://papers.nips.cc/paper/250-optimal-brain-damage.pdf.
223
+
224
+ Xiaofan Lin, Cong Zhao, and Wei Pan. Towards accurate binary convolutional neural network. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 345–353. Curran Associates, Inc., 2017.
225
+
226
+ L. Lu, J. Xie, R. Huang, J. Zhang, W. Lin, and Y. Liang. An efficient hardware accelerator for sparse convolutional neural networks on fpgas. In 2019 IEEE 27th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM), pp. 17–25, April 2019. doi: 10.1109/FCCM.2019.00013.
227
+
228
+ A. Maki, D. Miyashita, K. Nakata, F. Tachibana, T. Suzuki, and J. Deguchi. Fpga-based cnn processor with filter-wise-optimized bit precision. In 2018 IEEE Asian Solid-State Circuits Conference (A-SSCC), pp. 47–50, Nov 2018. doi: 10.1109/ASSCC.2018.8579342.
229
+
230
+ D. Miyashita, S. Kousai, T. Suzuki, and J. Deguchi. A neuromorphic chip optimized for deep learning and cmos technology with time-domain analog and digital mixed-signal processing. IEEE Journal of Solid-State Circuits, 52(10):2679–2689, Oct 2017. ISSN 0018-9200. doi: 10.1109/JSSC.2017.2712626.
231
+
232
+ Daisuke Miyashita, Edward H. Lee, and Boris Murmann. Convolutional neural networks using logarithmic data representation. CoRR, abs/1603.01025, 2016. URL http://arxiv.org/ abs/1603.01025.
233
+
234
+ Travis Oliphant. NumPy: A guide to NumPy. USA: Trelgol Publishing, 2006. URL http: //www.numpy.org/.
235
+
236
+ Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in PyTorch. In NIPS Autodiff Workshop, 2017.
237
+
238
+ Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In ECCV, 2016.
239
+
240
+ S. Sasaki, A. Maki, D. Miyashita, and J. Deguchi. Post training weight compression with distribution-based filter-wise quantization step. In 2019 IEEE Symposium in Low-Power and High-Speed Chips (COOL CHIPS), pp. 1–3, April 2019. doi: 10.1109/CoolChips.2019.8721356.
241
+
242
+ F. N. Sechi. Linearised class-b transistor amplifiers. IEEE Journal of Solid-State Circuits, 11(2): 264–270, April 1976. ISSN 0018-9200. doi: 10.1109/JSSC.1976.1050713.
243
+
244
+ A. Shafiee, A. Nag, N. Muralimanohar, R. Balasubramonian, J. P. Strachan, M. Hu, R. S. Williams, and V. Srikumar. Isaac: A convolutional neural network accelerator with in-situ analog arithmetic in crossbars. In 2016 ACM/IEEE 43rd Annual International Symposium on Computer Architecture (ISCA), pp. 14–26, June 2016. doi: 10.1109/ISCA.2016.12.
245
+
246
+ K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014.
247
+
248
+ Matteo Spallanzani, Lukas Cavigelli, Gian Paolo Leonardi, Marko Bertogna, and Luca Benini. Additive noise annealing and approximation properties of quantized neural networks. CoRR, abs/1905.10452, 2019. URL http://arxiv.org/abs/1905.10452.
249
+
250
+ Pierre Stock, Armand Joulin, Remi Gribonval, Benjamin Graham, and Herv ´ e J ´ egou. And the bit ´ goes down: Revisiting the quantization of neural networks. CoRR, abs/1907.05686, 2019. URL http://arxiv.org/abs/1907.05686.
251
+
252
+ F. Tung and G. Mori. Clip-q: Deep network compression learning by in-parallel pruningquantization. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7873–7882, June 2018. doi: 10.1109/CVPR.2018.00821.
253
+
254
+ Kuan Wang, Zhijian Liu, Yujun Lin, Ji Lin, and Song Han. Haq: Hardware-aware automated quantization with mixed precision. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019a.
255
+
256
+ Yanzhi Wang, Shaokai Ye, Zhezhi He, Xiaolong Ma, Linfeng Zhang, Sheng Lin, Geng Yuan, Sia Huat Tan, Zhengang Li, Deliang Fan, Xuehai Qian, Xue Lin, and Kaisheng Ma. Nonstructured DNN weight pruning considered harmful. CoRR, abs/1907.02124, 2019b. URL http://arxiv.org/abs/1907.02124.
257
+
258
+ Chen Xing, Devansh Arpit, Christos Tsirigotis, and Yoshua Bengio. A walk with sgd. CoRR, abs/1802.08770, 2018. URL http://arxiv.org/abs/1802.08770.
259
+
260
+ Tien-Ju Yang, Andrew Howard, Bo Chen, Xiao Zhang, Alec Go, Mark Sandler, Vivienne Sze, and Hartwig Adam. Netadapt: Platform-aware neural network adaptation for mobile applications. In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss (eds.), Computer Vision – ECCV 2018, pp. 289–304, Cham, 2018. Springer International Publishing. ISBN 978-3-030- 01249-6.
261
+
262
+ Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. Lq-nets: Learned quantization for highly accurate and compact deep neural networks. In European Conference on Computer Vision (ECCV), 2018.
263
+
264
+ X. Zhang, X. Zhou, M. Lin, and J. Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6848–6856, June 2018. doi: 10.1109/CVPR.2018.00716.
265
+
266
+ Jing Zhong, Guiguang Ding, Yuchen Guo, Jungong Han, and Bin Wang. Where to prune: Using lstm to guide end-to-end pruning. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, pp. 3205–3211. International Joint Conferences on Artificial Intelligence Organization, 7 2018. doi: 10.24963/ijcai.2018/445. URL https://doi.org/ 10.24963/ijcai.2018/445.
267
+
268
+ Chenzhuo Zhu, Song Han, Huizi Mao, and William J. Dally. Trained ternary quantization. International Conference on Learning Representations (ICLR), 2017.
269
+
270
+ B. Zoph, V. Vasudevan, J. Shlens, and Q. V. Le. Learning transferable architectures for scalable image recognition. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8697–8710, June 2018. doi: 10.1109/CVPR.2018.00907.
271
+
272
+ # A DETAILS OF THE QUANTIZATION PROCESS
273
+
274
+ We basically apply a midrise-type quantization (Gersho, 1977), but modify it as follows. In the quantization phase, we prune filters in which all weight parameters are within $\pm \varDelta / 2$ , as described in the following pseudocode with Numpy (Oliphant, 2006) notation.
275
+
276
+ # Quantize
277
+ # W: (filter(out_ch), channel(in_ch), ky, kx)
278
+ pruned $=$ numpy.all(abs(W) $<$ delta/2, axi $s = ( 1 , 2 , 3 )$ )
279
+ W_int $=$ numpy.floor(W/delta) $+ ~ 0 . 5$
280
+ W_int[pruned, :, :, : $\jmath \ = \ 0$
281
+
282
+ # B $\mathrm { E S N } _ { a }$ FOR OPTIMAL QUANTIZATION POLICY
283
+
284
+ We attempt to exploit the $\mathrm { E S N } _ { a }$ obtained during training to determine a quantization policy using VGG7 where numbers of filters in all convolutional layers are reduced to $0 . 2 5 \times$ on CIFAR-10. The left figure in Figure 9 show the validation accuracy versus $\mathrm { E S N } _ { a }$ during training and after quantization. As an initial policy, we apply the same bit width for all layers. The results shown in gray do not fit the blue plot during training, possibly indicating the policy is suboptimal. We next investigate the $\mathrm { E S N } _ { a }$ of each layer and find that the misfit is caused by the sixth layer, as shown in the right figure. When we consider validation accuracy versus the sixth-layer $\mathrm { E S N } _ { a }$ , shown in green symbols, validation accuracy after quantization deteriorates at a much higher $\mathrm { E S N } _ { a }$ than during training. An interpretation is that since this deterioration is caused by other layers (e.g., the first) rather than the sixth layer, weight parameters in the sixth layer should be more aggressively quantized. Based on this observation, we modify the quantization policy such that the bit width of the sixth layer become smaller than that in other layers, thereby improving performance as shown by the red plot in the left figure. This preliminary experimental result suggests we can use $\mathrm { E S N } _ { a }$ information during training to find an optimal quantization policy.
285
+
286
+ # C RESNET-18 VERSUS RESNET-50
287
+
288
+ The proposed metric allows us to compare different network architectures. In Figure 10, we compare the Pareto frontier of validation accuracy versus $\mathrm { E S N } _ { a / d }$ curves for ResNet-18 and ResNet-50. The plots in Figure 10 are extracted from Figure 8. This result shows that ResNet-50 has a better Pareto frontier than does ResNet-18. One convincing reason is that ResNet-50 employs a parameterefficient bottleneck structure, whereas ResNet-18 does not. In contrast, ResNet-18 shows better performance for $\mathrm { E S N } _ { d } < \mathrm { 2 G }$ , partly due to the higher sensitivity of $\mathrm { E S N } _ { d }$ to the number of parameters. This suggests use of ResNet-18 when employing digital computing in this $\mathrm { E S N } _ { d }$ region. Such comparisons enabled by the proposed metric are useful when searching for or developing efficient structures.
289
+
290
+ ![](images/d5aa136d8e61549ec8fd083414983846373dedea1a67e78d1c0cea7a30e1a771.jpg)
291
+ Figure 9: Relation between validation accuracy versus $\mathrm { E S N } _ { a }$ during training and after quantization.
292
+
293
+ ![](images/2a59b5a8878a8ea8f3d6ad840988ab26269ea2f2967344df1fa765e89eb20929.jpg)
294
+ Figure 10: Comparison of ResNet-18 and ResNet-50 with respect to top-1 accuracy on ImageNet versus $\mathrm { E S N } _ { a / d }$ (left/right).
295
+
296
+ ![](images/a0dce85d6c8c6554c8eb8f943057b2890541a50f8af1f3edac05daeaceff805c.jpg)
297
+ Figure 11: Comparison of other methods with respect to top-1 accuracy on ImageNet versus estimated $\mathrm { E S N } _ { d } ^ { \prime }$ .
298
+
299
+ # D COMPARISON WITH OTHER METHODS
300
+
301
+ In Figure 11, we superimpose results from other works on Figure 8. Lin et al. (2017) and Zhang et al. (2018) show better accuracy in smaller $\mathrm { E S N } _ { d } ^ { \prime }$ regions than ours, but these apply quantization-aware training, whereas our result is obtained by post-training quantization. Although we expect that the findings presented in this paper will also improve performance of quantization-aware training, we leave an explicit demonstration of this to future works.
302
+
303
+ # E DERIVATION OF EQUATION (4)
304
+
305
+ The mean squared noise energy $N$ due to quantization over the all elements in a tensor $\boldsymbol { \mathsf { W } }$ is computed as
306
+
307
+ $$
308
+ \begin{array} { r } { N = | | \mathbf { W } - \varDelta \cdot \mathbf { W } _ { \mathrm { i n t } } | | _ { F } ^ { 2 } / | | \mathbf { W } | | _ { 0 } , } \end{array}
309
+ $$
310
+
311
+ where $\pmb { \mathsf { W } } _ { \mathrm { i n t } } = \pmb { \mathsf { W } } / \Delta \rfloor + 0 . 5$ , $\varDelta$ is the quantization step size and $| | \pmb { \mathsf { W } } | | _ { 0 }$ is the number of nonzero elements in $\pmb { \mathsf { W } }$ . When quantization noise is approximated by a uniform distribution, the mean squared noise energy is (Gray & Neuhoff, 1998)
312
+
313
+ $$
314
+ N = \int _ { - \Delta / 2 } ^ { \Delta / 2 } \frac { 1 } { \varDelta } n ^ { 2 } d n = \frac { { \varDelta } ^ { 2 } } { 1 2 } .
315
+ $$
316
+
317
+ From Equations (8) and (9),
318
+
319
+ $$
320
+ \varDelta ^ { 2 } = | | \boldsymbol { \mathsf { W } } - \varDelta \cdot \boldsymbol { \mathsf { W } } _ { \mathrm { i n t } } | | _ { F } ^ { 2 } \times \frac { 1 2 } { | | \boldsymbol { \mathsf { W } } | | _ { 0 } } .
321
+ $$
322
+
323
+ Then,
324
+
325
+ $$
326
+ | | \mathbf { W } _ { \mathrm { i n t } } | | _ { F } ^ { 2 } \sim | | \mathbf { W } / \varDelta | | _ { F } ^ { 2 } = \frac { | | \mathbf { W } | | _ { F } ^ { 2 } } { \varDelta ^ { 2 } } = \frac { | | \mathbf { W } | | _ { F } ^ { 2 } } { | | \mathbf { W } - \varDelta \cdot \mathbf { W } _ { \mathrm { i n t } } | | _ { F } ^ { 2 } } \cdot \frac { | | \mathbf { W } | | _ { 0 } } { 1 2 } .
327
+ $$
328
+
329
+ Here we again assume that quantization noise is uniformly distributed. In this equation, since $| | \pmb { \mathsf { W } } | |$ and $| | \boldsymbol { \mathsf { W } } - \varDelta \cdot \boldsymbol { \mathsf { W } } | | _ { F } ^ { 2 }$ are respectively the signal and noise norm, the term $\frac { | | \mathbf { W } | | _ { F } ^ { 2 } } { | | \mathbf { W } - \varDelta \cdot \mathbf { W _ { \mathrm { i n t } } } | | _ { F } ^ { 2 } }$ is considered to be $S / N$ , and thus,
330
+
331
+ $$
332
+ | | \mathbf { W _ { \mathrm { i n t } } } | | _ { F } ^ { 2 } = \frac { | | \mathbf { W } | | _ { F } ^ { 2 } } { | | \mathbf { W } - \varDelta \cdot \mathbf { W _ { \mathrm { i n t } } } | | _ { F } ^ { 2 } } \cdot \frac { | | \mathbf { W } | | _ { 0 } } { 1 2 } = S / N \cdot \frac { | | \mathbf { W } | | _ { 0 } } { 1 2 } .
333
+ $$
334
+
335
+ We obtain Equation (4) by summing this value over all layers.
336
+
337
+ # F DETAILS OF NETWORK ARCHITECTURES
338
+
339
+ The network architecures of VGG7 ( $1 \times , 0 . 5 \times , 0 . 2 5 \times )$ which we use in section 2.4 are shown in table 1. These architectures are based on the original model of VGG (Simonyan & Zisserman, 2014).
340
+
341
+ Table 1: Detailed network architecture of VGG7 for CIFAR-10. $C _ { I }$ and $C _ { O }$ represent the number of input and output channels, respectively in conv-layer. In fc-layer, they represent the number of input and output neurons
342
+
343
+ <table><tr><td rowspan=2 colspan=1>Layer name</td><td rowspan=1 colspan=2>VGG(1x)</td><td rowspan=1 colspan=2>VGG (0.5x)</td><td rowspan=1 colspan=2>VGG (0.25×)</td><td rowspan=2 colspan=1>kernel size</td><td rowspan=2 colspan=1> padding</td><td rowspan=2 colspan=1>stride</td></tr><tr><td rowspan=1 colspan=1>C1</td><td rowspan=1 colspan=1>Co</td><td rowspan=1 colspan=1>C1</td><td rowspan=1 colspan=1>Co</td><td rowspan=1 colspan=1>C1</td><td rowspan=1 colspan=1>Co</td></tr><tr><td rowspan=1 colspan=1>conv1</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>conv2</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>maxpool</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>2×2</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>conv3</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>conv4</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>maxpool</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>2×2</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>conv5</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>conv6</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>maxpool</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>2×2</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>fc</td><td rowspan=1 colspan=1>8192</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>4096</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>-</td></tr></table>
parse/train/HkxAS6VFDB/HkxAS6VFDB_content_list.json ADDED
@@ -0,0 +1,1801 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PRUNE OR QUANTIZE? STRATEGY FOR PARETOOPTIMALLY LOW-COST AND ACCURATE CNN ",
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": "Pruning and quantization are typical approaches to reduce the computational cost of convolutional neural network (CNN) inference. Although the idea of combining both approaches seems natural, it is surprisingly difficult to determine the effects of the combination without measuring performance on the specific hardware that the user will use. This is because the benefits of pruning and quantization strongly depend on the hardware architecture where the model is executed. For example, a CPU-like architecture with no parallelization may fully exploit the reduction of computations by unstructured pruning to improve speed, but a GPUlike massive parallel architecture would not. Further, there have been emerging proposals of novel hardware architectures, such as those supporting variable bitprecision quantization. From an engineering viewpoint, optimization for each hardware architecture is useful and important in practice, but this is in essence a brute-force approach. Therefore, in this paper, we first propose a hardwareagnostic metric for measuring computational costs. Using the proposed metric, we demonstrate that Pareto-optimal performance, where the best accuracy is obtained at a given computational cost, is achieved when a slim model with fewer parameters is moderately quantized rather than a fat model with a huge number of parameters is quantized to extremely low bit precision, such as binary or ternary. Furthermore, we empirically find a possible quantitative relation between the proposed metric and the signal-to-noise ratio during stochastic gradient descent (SGD) training, by which information obtained during SGD training provides an optimal policy for quantization and pruning. We show the Pareto frontier is improved by $4 \\times$ in a post-training quantization scenario based on these findings. These findings not only improve the Pareto frontier for accuracy versus computational cost, but also provide new insights into deep neural networks. ",
40
+ "bbox": [
41
+ 233,
42
+ 268,
43
+ 764,
44
+ 613
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 642,
55
+ 336,
56
+ 657
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Reducing execution cost of deep learning inference is one of the most active research topics for applying superhuman recognition in embedded IoT devices and robots. A typical approach for employing memory- and computation-efficient components is separable convolution, which is a combination of depth-wise and point-wise convolutions (Iandola et al., 2016; Zoph et al., 2018; Zhang et al., 2018; Howard et al., 2017), structured/unstructured pruning of connections and activations, and quantizing activation, weight, and their vectors (Stock et al., 2019; Jegou et al., 2011; Gong et al., 2014). Among these, separable convolution and structured pruning are similar, in that separable convolution can be viewed as convolutions pruned in a handcrafted manner. From a pruning viewpoint, since the separable convolution structure results from applying aggressive pruning to normal convolution, the result is drastic reductions in memory and computational cost at the expense of greatly decreased accuracy (Stock et al., 2019). On the other hand, structured pruning and quantization are seemingly orthogonal approaches that can be naturally combined (Tung & Mori, 2018; Han et al., 2016). However, their interactions are still not well-studied. For instance, the use of a single-bit representation is being actively explored as an extreme quantization. Since a nonnegligible accuracy drop is inevitable in extreme quantization, some papers have proposed increasing the number of channels to compensate for the lack of expressivity (Lin et al., 2017). In other words, a quantization approach can further reduce the number of bits by compromising the increase in number of channels, or the increase in number of computations. This indicates that, conversely, reducing channels by pruning may limit capability for quantization. This discussion raises a controversial question: which is better, a fat model with smaller bit width or a slim model with larger bit width? Answering this question requires a metric that fairly measures the effects of both pruning and quantization. One such metric in the literature is the inference speed when the model is executed on specific hardware. This metric is useful or even ideal when the target hardware is known in advance but strongly depends on features of the hardware architecture. Yang et al. (2018) searched for an optimal architecture using inference time as the optimization objective and found different optimal architectures depending on the target device. For example, if the hardware cannot handle extremely low bit-widths (1 or 2 bits), instead treating them as 8-bit integers with upper bits filled with zeros, we cannot exploit the reduction of bit width to improve inference speed. From a theoretical viewpoint, figuring out the extent to which we can reduce the computational complexity of deep neural networks is another important open question. ",
63
+ "bbox": [
64
+ 174,
65
+ 674,
66
+ 825,
67
+ 924
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 174,
76
+ 103,
77
+ 825,
78
+ 270
79
+ ],
80
+ "page_idx": 1
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The discussion so far urges us to develop a hardware-agnostic and theoretically reasonable metric for measuring computational costs of neural network architectures. In this paper, we propose the Frobenius norm of the effective value of weight parameters as one such metric. This metric is proportional to the total energy when the model is executed on ideal hardware, where energy consumption for a single multiply-accumulate (MAC) computation is proportional to the squared effective amplitude of the individual weight parameter used for the MAC computation. The basic idea of the metric is analogous to a highly efficient class-B amplifier circuit whose energy consumption is determined by the instant signal amplitude (Sechi, 1976). This metric successfully reflects the effects of both quantization and structured/unstructured pruning in accordance with intuition. ",
85
+ "bbox": [
86
+ 174,
87
+ 277,
88
+ 825,
89
+ 402
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Using the proposed metric, we empirically find that a slimmer model can achieve a far better Pareto frontier in a lower computational cost region than can a fatter model after quantization, while a fat model is advantageous for achieving higher accuracy in a larger computational cost region. Finally, we perform experiments under a post-training quantization scenario (Banner et al., 2018) on ImageNet dataset (Deng et al., 2009) to verify the validity of our claim, namely that prune-then-quantize is superior to quantize-only or prune-only for achieving a better Pareto frontier. ",
96
+ "bbox": [
97
+ 174,
98
+ 410,
99
+ 823,
100
+ 493
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Further, since this metric is relevant to the signal-to-noise ratio $( S / N )$ , it is measurable during SGD training, in which the absolute value of weights and the random walk of weight parameters correspond to signal and noise, respectively. We observe that the dependencies of the metric on validation accuracy seem to be correlated between those during training and those applying quantization after training. From this observation, we point out some possibilities for which we could expect robustness of a model for quantization from information obtained during training, we could determine an optimal policy for quantization of that model, and we could develop a novel optimization or regularization scheme. ",
107
+ "bbox": [
108
+ 174,
109
+ 500,
110
+ 825,
111
+ 611
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The main contributions of this paper are as follows: ",
118
+ "bbox": [
119
+ 174,
120
+ 618,
121
+ 511,
122
+ 632
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "• We define a hardware-agnostic metric for measuring the computational cost of pruned and quantized models. We empirically find that models with fewer parameters achieve far better accuracy in a low computational cost region after quantization. \n• We show a potential quantitative relation between quantization noise and perturbation of weight parameters during SGD training. ",
129
+ "bbox": [
130
+ 215,
131
+ 650,
132
+ 825,
133
+ 757
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "And as implications, we hope to exploit our findings for ",
140
+ "bbox": [
141
+ 174,
142
+ 775,
143
+ 540,
144
+ 789
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "• thorough comparison of various neural network architectures using the proposed hardwareagnostic metric, \n• development of a method for extracting a quantization policy from information obtained during SGD training, and \n• development of a training algorithm or regularization scheme for producing robust models based on the relation between quantization noise and perturbation of weight parameters during SGD training. ",
151
+ "bbox": [
152
+ 215,
153
+ 804,
154
+ 825,
155
+ 924
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "image",
161
+ "img_path": "images/45c4995af673290a29b96eb483a2dcadbe7d8ee1fa059b636974fe0dbcd95f81.jpg",
162
+ "image_caption": [
163
+ "Figure 1: Left/Center: Computational cost strongly depends on the hardware architecture on which the model is executed. Right: Proposed computational cost for analysis or theoretical research, assuming an ideal hardware architecture. "
164
+ ],
165
+ "image_footnote": [],
166
+ "bbox": [
167
+ 241,
168
+ 102,
169
+ 756,
170
+ 198
171
+ ],
172
+ "page_idx": 2
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2 EFFECTIVE SIGNAL NORM ",
177
+ "text_level": 1,
178
+ "bbox": [
179
+ 178,
180
+ 291,
181
+ 426,
182
+ 308
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "We seek a metric that properly reflects the effects of both quantization and pruning. Conventionally, quantization effectiveness is evaluated according to the number of bits required to achieve a given accuracy, or the accuracy achieved by using certain bit numbers for specific network architectures (Stock et al., 2019). We cannot use this to compare efficiencies between different architecture models (e.g., MobileNet versus ResNet-18). The number of MAC computations or parameters can be used to compare different architectures, but the number of MAC computations does not consider quantization and the number of parameters is not directly related to inference time. ",
189
+ "bbox": [
190
+ 174,
191
+ 327,
192
+ 825,
193
+ 424
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Recently, the use of actual or estimated inference speeds as a metric for comparing network architectures has been proposed (Yang et al., 2018; Wang et al., 2019a; Cai et al., 2019). This metric is very useful when the target hardware is known in advance, and ideal for those who wish to use the model that performs best on that hardware. However, this metric is strongly hardware dependent. Indeed, Yang et al. (2018); Wang et al. (2019a); Cai et al. (2019) found that optimal architectures for different types of target hardware are totally different. Considering interest in, for example, the simplest realizable deep neural network model while achieving a required accuracy, there is a need for a hardware-agnostic metric. ",
200
+ "bbox": [
201
+ 174,
202
+ 431,
203
+ 825,
204
+ 542
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "The metric for model evaluation should correlate with energy consumed when the model is executed on ideal hardware. We assume that energy consumption by ideal hardware monotonically decreases when the bit width is reduced by quantization and when the number of nonzeros in weight parameters is reduced by pruning. For example, hardware with an 8-bit integer MAC array cannot be further accelerated even if the bit width is reduced from 8 to 1 or 2 bits. Thus, the energy consumption measured using such hardware does not satisfy the aforementioned requirement and cannot be our metric. Hardware like a CPU, which processes each computation in serial, can naturally exploit the structured or unstructured sparsity of weight parameters by skipping computations with zeroed weights. However, because it is difficult to parallelize computations while maintaining such a strategy, it is generally difficult to benefit from sparsity in GPU-like hardware employing massively parallel MAC units. Hardware dedicated to sparse convolution (Lu et al., 2019) tends to show better performance only when sparsity is sufficiently high, due to relatively large overheads for encoding and decoding sparse weight parameters in a special format. ",
211
+ "bbox": [
212
+ 174,
213
+ 549,
214
+ 825,
215
+ 731
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Therefore, the benefit of sparsity from pruning and low bit width from quantization largely depends on the hardware architecture, so long as we consider only existing hardware. Because we require a hardware-agnostic metric, we assume ideal hardware in which energy consumption is linearly proportional to the number of nonzero weight parameters and monotonically depends on the bit width of weight parameters, as shown in Figure 1, setting aside the feasibility of such ideal hardware. ",
222
+ "bbox": [
223
+ 174,
224
+ 737,
225
+ 823,
226
+ 808
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "2.1 DEFINITION OF EFFECTIVE SIGNAL NORM ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 176,
236
+ 829,
237
+ 501,
238
+ 843
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "We define a metric called the effective signal norm (ESN) as ",
245
+ "bbox": [
246
+ 174,
247
+ 857,
248
+ 571,
249
+ 872
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "equation",
255
+ "img_path": "images/36a3afc0bd7c3150cc7f7d5558ac5e9d318e164a042173754f562d46a905a2ae.jpg",
256
+ "text": "$$\n\\mathrm { E S N } = \\sum _ { l } | | c ^ { l } f ( \\mathbf { W } _ { \\mathrm { i n t } } ^ { l } ) | | _ { F } ^ { 2 } ,\n$$",
257
+ "text_format": "latex",
258
+ "bbox": [
259
+ 406,
260
+ 893,
261
+ 589,
262
+ 928
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "with $\\mathbf { \\boldsymbol { \\mathsf { W } } } _ { \\mathrm { i n t } } ^ { l } = \\lfloor \\mathbf { \\boldsymbol { \\mathsf { W } } } ^ { l } / \\varDelta ^ { l } \\rfloor + 0 . 5$ , where $\\boldsymbol { \\mathsf { W } } ^ { l }$ is the weight tensor and $\\varDelta ^ { l }$ is the quantization step size of the th layer; and $\\bar { c } ^ { l }$ is a coefficient depending on the layer, in that if $c ^ { l } = 1$ , ESN is related to the number of parameters (cf. memory footprint), and if $c ^ { l }$ is the number of computations per parameter at the lth layer, ESN is related to the number of computations (cf. FLOP). ${ \\bar { f } } ( \\cdot )$ is an element-wise function that determines how the metric responds to the value of each weight parameter. We propose two functions for $f ( \\cdot )$ . The first is $f ( \\bar { \\mathbf { W } _ { \\mathrm { i n t } } ^ { l } } ) = \\mathbf { W } _ { \\mathrm { i n t } } ^ { l }$ , based on the assumption that energy consumption increases with the square of the value for each weight parameter or for each computation. When $c ^ { l } = 1$ , the definition is ",
269
+ "bbox": [
270
+ 173,
271
+ 101,
272
+ 825,
273
+ 217
274
+ ],
275
+ "page_idx": 3
276
+ },
277
+ {
278
+ "type": "equation",
279
+ "img_path": "images/946495dc28d92062ab1d83fea9d660a648e658416554b4213b0866bf5144c74e.jpg",
280
+ "text": "$$\n\\mathrm { E S N } _ { a } = \\sum _ { l } | | \\mathbf { W } _ { \\mathrm { i n t } } ^ { l } | | _ { F } ^ { 2 } .\n$$",
281
+ "text_format": "latex",
282
+ "bbox": [
283
+ 419,
284
+ 233,
285
+ 578,
286
+ 267
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "This assumption is reasonable when we employ an analog (or in-memory) MAC computation engine (Shafiee et al., 2016; Miyashita et al., 2017), because energy consumption is proportional to the square of the signal amplitude when the signal represents an analog quantity such as voltage or current. Assuming ideal hardware, we adopt a definition where energy consumption varies according to the instant amplitude (cf. class-B amplifier), which is more energy efficient than the case where energy consumption is constant and the value is determined by the maximal amplitude (cf. class-A amplifier) (Sechi, 1976). ",
293
+ "bbox": [
294
+ 173,
295
+ 272,
296
+ 825,
297
+ 371
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "The second proposed function is $f ( \\mathbf { W } _ { \\mathrm { i n t } } ^ { l } ) = \\lceil \\log _ { 2 } ( \\mathrm { a b s } ( \\mathbf { W } _ { \\mathrm { i n t } } ^ { l } ) ) + 1 \\rceil$ , where $\\log _ { 2 } \\left( \\cdot \\right)$ and $\\mathrm { a b s } \\left( { \\cdot } \\right)$ are functions applied to each element of a tensor argument. This is based on the assumption that energy consumption increases with the binary logarithm of the value for each weight parameter. When $c ^ { l } = 1$ , the definition is ",
304
+ "bbox": [
305
+ 173,
306
+ 377,
307
+ 825,
308
+ 435
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "equation",
314
+ "img_path": "images/068bde2045368092a861b516f98ae5b17fe5935983c31815af7fe7595a981a78.jpg",
315
+ "text": "$$\n\\mathrm { E S N } _ { d } = \\sum _ { l } \\vert \\vert \\lceil \\log _ { 2 } ( \\mathrm { a b s } ( \\boldsymbol { \\mathsf { W } } _ { \\mathrm { i n t } } ^ { l } ) ) + 1 \\rceil \\vert \\vert _ { F } ^ { 2 } .\n$$",
316
+ "text_format": "latex",
317
+ "bbox": [
318
+ 359,
319
+ 452,
320
+ 637,
321
+ 486
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "In a digital circuit, a number is represented as a binary digit (bits), so the energy consumption for moving or processing signals is roughly proportional to the number of bits, which is the binary logarithm of the value. It is therefore reasonable to use Equation (3) for a digital circuit. ",
328
+ "bbox": [
329
+ 173,
330
+ 491,
331
+ 825,
332
+ 535
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "2.2 RELATION BETWEEN ESN AND S/N ",
339
+ "text_level": 1,
340
+ "bbox": [
341
+ 176,
342
+ 549,
343
+ 462,
344
+ 564
345
+ ],
346
+ "page_idx": 3
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "The effective signal norm defined in Equation (2) is related to the signal-to-noise ratio $( S / N )$ when quantization noise is dominant and noise is approximated by a uniform distribution (Gray & Neuhoff, 1998). ",
351
+ "bbox": [
352
+ 174,
353
+ 575,
354
+ 826,
355
+ 618
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "equation",
361
+ "img_path": "images/ee161bb5b891cfb029f5e7936a055380c0f57a81cce1b305c14caec47f2eb301.jpg",
362
+ "text": "$$\n\\mathrm { E S N } _ { a } = \\sum _ { l } \\left( \\frac { | | \\mathbf { W } ^ { l } | | _ { F } ^ { 2 } } { | | \\mathbf { W } ^ { l } - \\varDelta \\cdot \\mathbf { W } _ { \\mathrm { i n t } } ^ { l } | | _ { F } ^ { 2 } } \\cdot \\frac { | | \\mathbf { W } ^ { l } | | _ { 0 } } { 1 2 } \\right) = \\sum _ { l } \\left( S / N _ { l } \\cdot \\frac { | | \\mathbf { W } ^ { l } | | _ { 0 } } { 1 2 } \\right) ,\n$$",
363
+ "text_format": "latex",
364
+ "bbox": [
365
+ 254,
366
+ 633,
367
+ 740,
368
+ 676
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "where $l$ is the layer index, $S / N _ { l }$ is the signal-to-quantization-noise ratio of the lth layer as defined by ||Wl||2FWl ∆ Wl 2 , and ||Wl||0 is the number of nonzero elements in the tensor Wl. Appendix E presents the derivation of Equation (4). This equation allows us to calculate $\\mathrm { E S N } _ { a }$ , so long as $S / N$ is defined. ",
375
+ "bbox": [
376
+ 173,
377
+ 683,
378
+ 825,
379
+ 751
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "2.3 $\\mathrm { E S N } _ { a }$ DURING TRAINING ",
386
+ "text_level": 1,
387
+ "bbox": [
388
+ 174,
389
+ 766,
390
+ 390,
391
+ 781
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "For example, we can define $S / N$ by regarding perturbation of weight parameters during training as noise. Formally, we define the signal and noise at the $j$ th epoch as ",
398
+ "bbox": [
399
+ 171,
400
+ 791,
401
+ 825,
402
+ 821
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "equation",
408
+ "img_path": "images/c56985fea52cd6c59d0125021d677f1c2636c6570e552f9a00f6dbca02e859f3.jpg",
409
+ "text": "$$\nS _ { j } = \\sum _ { l } \\sum _ { i } | | \\mathbf { W } _ { j , i } ^ { l } | | _ { F } ^ { 2 } , ~ N _ { j } = \\sum _ { l } \\sum _ { i } | | \\mathbf { W } _ { j , i } ^ { l } - \\mathbf { W } _ { \\mathrm { i n i t } _ { j } } ^ { l } | | _ { F } ^ { 2 } ,\n$$",
410
+ "text_format": "latex",
411
+ "bbox": [
412
+ 302,
413
+ 835,
414
+ 696,
415
+ 871
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "where $\\boldsymbol { \\mathsf { W } } _ { j , i } ^ { l }$ is the weight parameters in the lth layer at the $i$ th iteration in the $j$ th epoch, and $\\mathbf { \\Delta } \\mathbf { W } _ { \\mathrm { i n i t } _ { j } } ^ { l }$ is a snapshot of the weight at the beginning of the $j$ th epoch. Then, $N _ { j }$ is the effective value of random walk noise for weight parameters in one epoch. ",
422
+ "bbox": [
423
+ 174,
424
+ 878,
425
+ 825,
426
+ 924
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "image",
432
+ "img_path": "images/235193dd0b15100d4b1b0a0a69dff68a6329561fa43a202e658f39c6adba7cf5.jpg",
433
+ "image_caption": [
434
+ "Figure 2: Training curves of $\\mathrm { E S N } _ { a }$ (left) and validation accuracy (right) on CIFAR-10. In the right graph, moving average curve between 3-epochs is overlapped on each plot. "
435
+ ],
436
+ "image_footnote": [],
437
+ "bbox": [
438
+ 245,
439
+ 101,
440
+ 754,
441
+ 251
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "image",
447
+ "img_path": "images/b7e6cb451b3162ad4574bca3208d8c0846905e2a94fdda0c255fe1d5704883d1.jpg",
448
+ "image_caption": [
449
+ "Figure 3: Relation between validation accuracy and $\\mathrm { E S N } _ { a }$ during training and after quantization. $\\mathrm { E S N } _ { a }$ of the former is computed using Equation (5), and that of the latter is computed using Equation (2) "
450
+ ],
451
+ "image_footnote": [],
452
+ "bbox": [
453
+ 179,
454
+ 316,
455
+ 813,
456
+ 444
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "The left figure in Figure 2 shows the $\\mathrm { E S N } _ { a }$ curve during training, which is calculated by Equation (4), and $S / N$ as defined by Equation (5). In this experiment, we use ResNet-20 (He et al., 2016) on CIFAR-10 dataset (Krizhevsky, 2009). We use SGD with momentum 0.9, and we set the mini-batch size to 100 and the initial learning rate to 0.1, which is shifted by $1 / 1 0$ at epochs 80 and 120. We vary the weight decay factor from $\\overline { { 5 } } \\times 1 0 ^ { - 4 }$ to $2 \\times 1 0 ^ { - 3 }$ , indicated by different colors in Figure 2. ",
463
+ "bbox": [
464
+ 174,
465
+ 540,
466
+ 825,
467
+ 625
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "Interestingly, the $\\mathrm { E S N } _ { a }$ curves look very similar to the validation accuracy curves shown in the right figure in Figure 2. Both $\\mathrm { E S N } _ { a }$ and validation accuracy steeply increase at the point where the learning rate is decreased by $1 / 1 0$ , because decreasing the learning rate reduces perturbation (or random walk) of weight values during one epoch, increasing $S / N$ . We can also see that as the weight decay factor increases, $\\mathrm { E S N } _ { a }$ tends to decrease. This is also reasonable, because weight decay decreases $| | \\pmb { \\mathsf { W } } | | _ { F } ^ { 2 }$ or the signal level, reducing $S / N$ . More interestingly, even this trivial tendency appears correlated with validation accuracy; for example, after a steep rise at epoch 80, both $\\mathrm { E S N } _ { a } ^ { * }$ and validation accuracy gradually decrease, converging to stable values after overshooting. There is a similar relation between the amount of overshoot and weight decay factor, namely, we observed a larger overshoot with a smaller weight decay factor. These findings might be useful for developing a novel optimization algorithm, but we leave this for future work. ",
474
+ "bbox": [
475
+ 174,
476
+ 632,
477
+ 825,
478
+ 784
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "The blue plots in Figure 3 show $\\mathrm { E S N } _ { a }$ versus validation accuracy. In this experiment, we use VGG7 (Simonyan & Zisserman, 2014) and ResNet-20 on CIFAR-10, and DenseNet-BC with $l =$ 100, $k = 1 2$ (Huang et al., 2017) on CIFAR-100. We employ SGD with momentum 0.9 and set the initial learning rate to 0.1, followed by cosine annealing without restart (Ilya Loshchilov, 2017). The mini-batch size and weight decay factor are respectively set to 125 and $5 \\times 1 0 ^ { - 4 }$ . ",
485
+ "bbox": [
486
+ 174,
487
+ 791,
488
+ 825,
489
+ 861
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "The red curve shows the $\\mathrm { E S N } _ { a }$ versus validation accuracy curve when applying quantization to weight parameters trained by the training process where the blue plots are obtained. As the figure shows, the red and blue curves seem to be correlated. This suggests that the model acquires robustness to quantization by having experienced similar perturbations due to a random walk during the training process. If so, the $\\mathrm { E S N } _ { a }$ versus validation accuracy curve during training is available as a loose boundary on accuracy degradation due to decrease of $\\mathrm { E S N } _ { a }$ by quantization. We discuss this hypothesis in Section 2.7 again. ",
496
+ "bbox": [
497
+ 174,
498
+ 867,
499
+ 823,
500
+ 924
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "image",
506
+ "img_path": "images/65c78a5c209e01a0c9dea837a7e5dc5c3c216284aac3dbcc3761065155f616c6.jpg",
507
+ "image_caption": [
508
+ "Figure 4: Accuracy versus $\\mathrm { E S N } _ { a }$ (left) and $\\mathrm { E S N } _ { d }$ (right) for various network depths and widths. "
509
+ ],
510
+ "image_footnote": [],
511
+ "bbox": [
512
+ 178,
513
+ 99,
514
+ 820,
515
+ 193
516
+ ],
517
+ "page_idx": 5
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "",
522
+ "bbox": [
523
+ 176,
524
+ 255,
525
+ 825,
526
+ 297
527
+ ],
528
+ "page_idx": 5
529
+ },
530
+ {
531
+ "type": "text",
532
+ "text": "2.4 ESN VERSUS ACCURACY FOR VARIOUS MODEL SIZES ",
533
+ "text_level": 1,
534
+ "bbox": [
535
+ 174,
536
+ 315,
537
+ 583,
538
+ 329
539
+ ],
540
+ "page_idx": 5
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "With our metric defined, we next attempt to investigate which is better, a model that is slim (with the number of weight parameters and computations reduced by pruning) and mildly quantized (e.g., with 4–5 bits), or a model that is fat (with a large number of weight parameters and computations) and radically quantized (e.g., with 1–2 bits). We evaluate six network architectures with different depths and widths: ResNet-8, 14, 20 and VGG7 with different channel widths $( 1 \\times , 0 . 5 \\times , 0 . 2 5 \\times )$ on CIFAR-10 dataset. In this experiment, we employ networks with originally small number of parameters as slim models instead of pruning fat models. The network architecture of ResNet is based on the original one without bottleneck architecture (He et al., 2016). The detailed network architecture of VGG7 is shown in Appendix F. ",
545
+ "bbox": [
546
+ 173,
547
+ 340,
548
+ 825,
549
+ 465
550
+ ],
551
+ "page_idx": 5
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "Figure 4 shows validation accuracy versus $\\mathrm { E S N } _ { a }$ and $\\mathrm { E S N } _ { d }$ . Here, we consider differences in $\\mathrm { E S N } _ { a }$ and $\\mathrm { E S N } _ { d }$ . For simplicity, we assume that all weight parameters have the same value $v > 1$ , and that the number of weight parameters is $N$ . The definitions of $\\mathrm { E S N } _ { a }$ and $\\mathrm { E S N } _ { d }$ are expressed as follows, ",
556
+ "bbox": [
557
+ 173,
558
+ 472,
559
+ 825,
560
+ 527
561
+ ],
562
+ "page_idx": 5
563
+ },
564
+ {
565
+ "type": "equation",
566
+ "img_path": "images/e44e2fb3299aa4e2ad0c630e7352dc2c665c9bb9739a591a98bd679946bfe3fb.jpg",
567
+ "text": "$$\n\\mathrm { E S N } _ { a } = v ^ { 2 } \\times N , \\mathrm { E S N } _ { d } = \\left\\lceil \\log _ { 2 } v + 1 \\right\\rceil \\times N .\n$$",
568
+ "text_format": "latex",
569
+ "bbox": [
570
+ 341,
571
+ 526,
572
+ 655,
573
+ 544
574
+ ],
575
+ "page_idx": 5
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "Therefore, when we compare $\\mathrm { E S N } _ { a }$ and $\\mathrm { E S N } _ { d }$ , both are linearly proportional to the number of weight parameters, whereas values of weight parameters affect the metric at squared and logarithmic scales, respectively. This means that $\\mathrm { E S N } _ { a }$ is more strongly dependent on the size of the values than on the number of weight parameters, and the opposite is true for $\\mathrm { E S N } _ { d }$ . In other words, $\\mathrm { E S N } _ { d }$ is more sensitive to pruning than to quantization, and $\\mathrm { E S N } _ { a }$ is more sensitive to quantization than to pruning. Figure 4 clearly shows these tendencies. We can see that even when using the $\\mathrm { E S N } _ { a }$ metric, which is advantageous for quantization, the slimmer model shows better validation accuracy in lower ESN regions. These experiments indicate that in lower ESN regions, or with lower energy consumption by ideal hardware, especially when employing digital computing, it is an advisable strategy to prune the model to the limit where the desired accuracy is achieved, and then to apply quantization to obtain the highest possible accuracy. In contrast, it is a bad strategy to apply quantization to a fat model, even if it shows much better accuracy than the pruned slim model before quantization. Consequently, to the question posed at the beginning of this subsection—whether a slim and mildly quantized model or a fat and radically quantized model is better—the answer is the former one, which may in a sense raise a question on trends in quantization research. Note that the above discussion also indicates that the importance of quantization will be relatively increased if analog computing become practical in the future. ",
580
+ "bbox": [
581
+ 173,
582
+ 546,
583
+ 825,
584
+ 782
585
+ ],
586
+ "page_idx": 5
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "2.5 TRAINING UNDER LOW-ESN CONDITIONS ",
591
+ "text_level": 1,
592
+ "bbox": [
593
+ 174,
594
+ 800,
595
+ 504,
596
+ 814
597
+ ],
598
+ "page_idx": 5
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "We next observe how the weight parameters evolve in the training process. Figure 5 shows from left to right the loss, $\\mathrm { E S N } _ { a }$ , and number of pruned filters (output channels). In this experiment, we train ResNet-20 on CIFAR-10 dataset with initial weight parameters of a trained model. We employ SGD with momentum 0.9, weight decay factor $5 \\times 1 \\bar { 0 } ^ { - 4 }$ , and mini-batch size 200, updating for 20 epochs. The learning rate (LR) is constant, with a value varied from 0.32 to 1.81 for each training. Note that we do not intentionally prune filters in this experiment; rather, filter pruning spontaneously occurs along with sequential updates of weight parameters by SGD. The center graph shows that as the learning rate increases, $\\mathrm { E S N } _ { a }$ decreases due to the larger noise. The number of pruned filters after epoch 20 is larger with the larger learning rate, which corresponds to smaller $\\mathrm { E S N } _ { a }$ . In the training process, rather than continuing to increase at a constant rate throughout the training process, the number of pruned filters steeply increases within a few epochs and then is maintained without noticeable change. ",
603
+ "bbox": [
604
+ 174,
605
+ 825,
606
+ 825,
607
+ 924
608
+ ],
609
+ "page_idx": 5
610
+ },
611
+ {
612
+ "type": "image",
613
+ "img_path": "images/65b7e15a1281061dd878ec2ce254f2bac5a00b56db35de70a4d382971aa01894.jpg",
614
+ "image_caption": [
615
+ "Figure 5: Training curves for loss, $\\mathrm { E S N } _ { a }$ , and number of pruned filters under different learning rate (LR) conditions. $\\mathrm { E S N } _ { a }$ is calculated by Equations (4) and (5). "
616
+ ],
617
+ "image_footnote": [],
618
+ "bbox": [
619
+ 240,
620
+ 101,
621
+ 758,
622
+ 210
623
+ ],
624
+ "page_idx": 6
625
+ },
626
+ {
627
+ "type": "image",
628
+ "img_path": "images/c89a06ca0d298bf226b318acfebdde96ddcace59998d6234d38565dda598198c.jpg",
629
+ "image_caption": [
630
+ "Figure 6: Accuracy versus $\\mathrm { E S N } _ { a / d }$ (left/center) and histogram of the maximal bit width for each filter (right) in the pruning only, quantization only, and prune-then-quantize mixed cases. "
631
+ ],
632
+ "image_footnote": [],
633
+ "bbox": [
634
+ 241,
635
+ 279,
636
+ 756,
637
+ 372
638
+ ],
639
+ "page_idx": 6
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "",
644
+ "bbox": [
645
+ 174,
646
+ 452,
647
+ 825,
648
+ 522
649
+ ],
650
+ "page_idx": 6
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "This indicates that under a small $\\mathrm { E S N } _ { a }$ condition controlled by the learning rate, the optimizer finds a solution for reducing the number of parameters by pruning filters and prioritizing increases in amplitude of the remaining parameters, rather than letting all parameters survive with small amplitude. ",
655
+ "bbox": [
656
+ 176,
657
+ 529,
658
+ 823,
659
+ 571
660
+ ],
661
+ "page_idx": 6
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "2.6 PRUNE then QUANTIZE",
666
+ "text_level": 1,
667
+ "bbox": [
668
+ 176,
669
+ 590,
670
+ 370,
671
+ 604
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "In the previous two subsections, we empirically showed that achieving optimal accuracy in a low ESN region requires preparation of a slim model before applying quantization. A slim model can be generated by pruning a fat model or by designing a slim architecture. Based on the lottery ticket hypothesis (Frankle & Carbin, 2019), where a fat or overparameterized network can have higher potential for finding better optimal parameters by SGD training, we adopt the former method, namely, pruning weight parameters from a pretrained fat model. We apply ADMM regularization for structured pruning (Wang et al., 2019b), since this achieves state-of-the-art performance. ",
678
+ "bbox": [
679
+ 174,
680
+ 617,
681
+ 825,
682
+ 715
683
+ ],
684
+ "page_idx": 6
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "In this experiment, we evaluate ResNet-20 on CIFAR-10 dataset. We update pretrained weight parameters through the SGD algorithm with alternating direction method of multipliers (ADMM) regularization (Wang et al., 2019b) for a few additional epochs. We then fine-tune the resulting pruned model over 160 epochs. In this fine tuning, we employ SGD with momentum 0.9 and set the mini-batch size to 100 and the initial learning rate to 0.1, followed by cosine annealing without restart. The weight decay factor is set to $5 \\times 1 0 ^ { - 4 }$ . Since the weight parameters are not yet quantized in this phase, we update all parameters, except that we set weights for the filters (output channels) and channels (input channels) pruned in the previous phase to zero. Finally, we apply quantization. ",
689
+ "bbox": [
690
+ 174,
691
+ 722,
692
+ 825,
693
+ 833
694
+ ],
695
+ "page_idx": 6
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "As Figure 6 shows, the Pareto frontier significantly improves by applying prune-then-quantize (red), as compared to applying extreme quantization (green). The right graph in Figure 6 shows a histogram of the maximal bit width under each filter (output channel) of the three models indicated by the broken line in the center graph $\\mathrm { ( E S N _ { } = 3 9 M ( b i t s ) ) }$ . Since the pretrained model has 800 filters before pruning and quantization, summations of frequencies for each color are 800. In the pruning only (blue) case, the weight parameters in 555 filters, the largest number among the three methods, are pruned (represented as 0 bits). Most of remaining filters are 8 bits. In the quantization only (green) case, the number of pruned filters is a low 77, while the bit width of most remaining filters is 1 bit. In the proposed prune-then-quantize mixed (red) case, the number of pruned filters is 288 and the bit widths of most remaining filters are 3 or 4 bits, so the remaining filters are mildly quantized. As this case shows, while the $\\mathrm { E S N } _ { d }$ values are similar, the validation accuracies differ depending on the number and bit width of the weight parameters. The prune-then-quantize mixed method properly produces a pruned and mildly quantized model, which achieves far better validation accuracy, especially in the low ESN region, as compared to the model produced by extremely quantizing a fat model without pruning. ",
700
+ "bbox": [
701
+ 174,
702
+ 840,
703
+ 823,
704
+ 924
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "image",
710
+ "img_path": "images/b8ddd3ff9df3e6ec00d462f05fa87053b7fdaf62fb93f886c6b0fb58b7c2a373.jpg",
711
+ "image_caption": [
712
+ "Figure 7: Relation between random walk during SGD and quantization noise. Loss often steeply decreases when LR is shifted by (e.g., $1 / 1 0 \\AA$ ). In this situation, loss before shifting LR is possibly governed by random walk noise due to the large LR, as shown in the left figure. When we quantize weight parameters of the trained model, however, the loss or accuracy should be determined by noise induced by quantization, as shown in the right figure. If we can assume that the loss landscapes of the two cases should not diverge too much, the loss (or accuracy) after quantization is possibly predicted by the dependency of loss (or accuracy) on $\\mathrm { E S N } _ { a }$ during training. "
713
+ ],
714
+ "image_footnote": [],
715
+ "bbox": [
716
+ 238,
717
+ 104,
718
+ 754,
719
+ 218
720
+ ],
721
+ "page_idx": 7
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "",
726
+ "bbox": [
727
+ 173,
728
+ 367,
729
+ 825,
730
+ 492
731
+ ],
732
+ "page_idx": 7
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "2.7 $\\mathrm { E S N } _ { a }$ FOR QUANTIZATION ",
737
+ "text_level": 1,
738
+ "bbox": [
739
+ 176,
740
+ 510,
741
+ 397,
742
+ 523
743
+ ],
744
+ "page_idx": 7
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "As Section 2.3 showed, there is a possible quantitative relation between $\\mathrm { E S N } _ { a }$ during model training and $\\mathrm { E S N } _ { a }$ of the pruned and quantized version of that model after training. This finding inspires us to exploit $\\mathrm { E S N } _ { a }$ information obtained during training to determine the quantization policy, for example, how many bits to allocate for each layer. Figure 7 shows the intuition behind this idea, namely straightforward use of the $\\mathrm { E S N } _ { a }$ values for each layer at a certain epoch during training as targets for quantization. Appendix B describes a preliminary experiment for verifying this idea. ",
749
+ "bbox": [
750
+ 174,
751
+ 535,
752
+ 825,
753
+ 619
754
+ ],
755
+ "page_idx": 7
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "3 EXPERIMENT ON IMAGENET ",
760
+ "text_level": 1,
761
+ "bbox": [
762
+ 178,
763
+ 638,
764
+ 442,
765
+ 655
766
+ ],
767
+ "page_idx": 7
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "To verify the validity of our claims, we performed experiments under a post-training quantization scenario (Banner et al., 2018) on ImageNet dataset (Deng et al., 2009). Post-training quantization assumes a use-case scenario where a user (e.g., at an edge side) quantizes a given pretrained CNN model with a limited number of unlabeled training samples for obtaining a lightweight model suited to a particular situation. As concluded in Section 2.4, in a low ESN region or with low energy consumption, we can achieve higher accuracy by quantizing a slim model than by quantizing a fat model, even if the latter is more accurate. To provide optimal accuracy in a low computationalcost region, we apply the proposed prune-then-quantize method to the post-training quantization scenario. ",
772
+ "bbox": [
773
+ 174,
774
+ 670,
775
+ 825,
776
+ 795
777
+ ],
778
+ "page_idx": 7
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Figure 8 shows the result of applying our method to ResNet-18 and ResNet-50 on ImageNet dataset. We used pretrained models12 as basic models with $1 \\times$ channel width, and prune the models to various channel widths $0 . 2 5 \\times$ , $0 . 5 \\times$ , and $0 . 7 5 \\times \\mathrm { _ { \\it { \\cdot } } }$ ). In this experiment, we determine which filters (output channels) to prune based on the signal norm of weights calculated by Equation (5). We prune filters in order from the smallest signal norm, and tune each model for the pruned structure through the SGD algorithm over 4 epochs. The mini-batch size is set to 64, and the learning rate is initialized to 0.1 and divided by 10 at epochs 2 and 3. We then quantize each model. For quantization, we only fine-tune statistic parameters in BatchNorm layers (called running_mean and running_var in pytorch (Paszke et al., 2017)) with no labeled data (Sasaki et al., 2019), which is the same condition as conventional work (Banner et al., 2018). ",
783
+ "bbox": [
784
+ 174,
785
+ 803,
786
+ 825,
787
+ 886
788
+ ],
789
+ "page_idx": 7
790
+ },
791
+ {
792
+ "type": "image",
793
+ "img_path": "images/805ac050388734c55a9e403a956c51041e64cb91ba7ed78d2f987bb8a59cdc5c.jpg",
794
+ "image_caption": [
795
+ "Figure 8: (Left/center) top-1 accuracy on ImageNet versus $\\mathrm { E S N } _ { a / d }$ and (right) estimated $\\mathrm { E S N } _ { d } ^ { \\prime }$ , applying the prune-then-quantize method to (upper) ResNet-18 and (lower) ResNet-50. "
796
+ ],
797
+ "image_footnote": [],
798
+ "bbox": [
799
+ 245,
800
+ 108,
801
+ 741,
802
+ 310
803
+ ],
804
+ "page_idx": 8
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "",
809
+ "bbox": [
810
+ 174,
811
+ 391,
812
+ 825,
813
+ 448
814
+ ],
815
+ "page_idx": 8
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "In addition to evaluations by $\\mathrm { E S N } _ { a }$ and $\\mathrm { E S N } _ { d }$ , to compare our method with the conventional work, we estimate its computational cost using Equation (1) with $c ^ { l }$ and $f ( \\cdot )$ properly defined, as ",
820
+ "bbox": [
821
+ 169,
822
+ 454,
823
+ 823,
824
+ 484
825
+ ],
826
+ "page_idx": 8
827
+ },
828
+ {
829
+ "type": "equation",
830
+ "img_path": "images/c0fcda5635dd8eb1a8bbc7395d47924ec3f296eac53b5de4e909b90839255e03.jpg",
831
+ "text": "$$\n\\mathrm { E S N } _ { d } ^ { \\prime } = \\sum _ { l } \\sum _ { m } \\mathrm { M A C } _ { l , m } \\times \\lceil \\log _ { 2 } ( \\operatorname* { m a x } ( \\mathrm { a b s } ( \\mathbf { W } _ { \\mathrm { i n t } } ^ { l , m } ) ) ) + 1 \\rceil ,\n$$",
832
+ "text_format": "latex",
833
+ "bbox": [
834
+ 297,
835
+ 501,
836
+ 697,
837
+ 536
838
+ ],
839
+ "page_idx": 8
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "where applyi $\\mathrm { M A C } _ { l , m }$ he number of computation per filter and function, we restrict the number of bits to $\\pmb { \\mathsf { W } } _ { \\mathrm { i n t } } ^ { l , m }$ is the me in e $m$ th filter of h filter. $\\pmb { \\mathsf { W } } _ { \\mathrm { i n t } } ^ { l }$ . By $\\operatorname* { m a x } ( { \\mathord { \\cdot } } )$ ",
844
+ "bbox": [
845
+ 173,
846
+ 551,
847
+ 825,
848
+ 580
849
+ ],
850
+ "page_idx": 8
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "We apply this metric3 to a recently proposed efficient MAC array architecture capable of handling variable bit precision (Maki et al., 2018). ",
855
+ "bbox": [
856
+ 173,
857
+ 587,
858
+ 823,
859
+ 616
860
+ ],
861
+ "page_idx": 8
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "As Figure 8 shows, significantly using slim models after pruning some filters improves the Pareto frontier as compared to Banner et al. (2018). For example, in ResNet-18, $5 7 \\ \\%$ top-1 accuracy is achieved at $2 \\times$ lower computational cost, and in ResNet-50, $6 3 \\ \\%$ top-1 accuracy is at $4 \\times$ lower computational cost. These results suggest that we should adopt a slim model to achieve best accuracy in low computational cost regions, instead of quantizing weight parameters to an extremely low bit precision. ",
866
+ "bbox": [
867
+ 173,
868
+ 622,
869
+ 825,
870
+ 707
871
+ ],
872
+ "page_idx": 8
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "4 CONCLUSION ",
877
+ "text_level": 1,
878
+ "bbox": [
879
+ 176,
880
+ 729,
881
+ 318,
882
+ 746
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "We proposed a hardware-agnostic metric called the effective signal norm (ESN) to measure computational costs. Using this metric, we demonstrated that a slim model with fewer weight parameters achieves better Pareto frontier performance in low computational cost regions than does an extremely quantized fat model. We also showed a possible quantitative relation between weight perturbation during SGD training and quantization noise or robustness against quantization. ",
889
+ "bbox": [
890
+ 174,
891
+ 762,
892
+ 825,
893
+ 833
894
+ ],
895
+ "page_idx": 8
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "By defining this metric, on the hardware architecture side we can aim at realizing hardware whose energy consumption is proportional to the metric. On the algorithmic side, we can reduce the metric. We therefore expect consensus-sharing regarding the metric for computational cost to accelerate research progress for both algorithms and hardware architectures. ",
900
+ "bbox": [
901
+ 174,
902
+ 839,
903
+ 825,
904
+ 895
905
+ ],
906
+ "page_idx": 8
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "5 RELATED WORKS ",
911
+ "text_level": 1,
912
+ "bbox": [
913
+ 176,
914
+ 102,
915
+ 354,
916
+ 117
917
+ ],
918
+ "page_idx": 9
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "Quantization Courbariaux & Bengio (2016); Rastegari et al. (2016); Zhu et al. (2017) quantize weight parameters and activations as 1 or 2. Since such extreme quantization deteriorates accuracy to a nonnegligible extent, quantization methods with, for example, 4–8 bits are also actively explored (Banner et al., 2018; Lin et al., 2017) to avoid the accuracy drop. Miyashita et al. (2016) attempts to quantize weight parameters and activations in a logarithmic domain, aiming not only at reducing information loss but also replacing multiplication with bit-shift to simplify computation. To reduce the average bit width as much as possible while maintaining accuracy, and to exploit it to accelerate inference speed, Maki et al. (2018) proposes variable bit-width quantization co-optimized with hardware architecture. Although nonuniform quantization (Tung & Mori, 2018; Han et al., 2016) and vector or product quantization (Gong et al., 2014; Jegou et al., 2011; Stock et al., 2019) are also actively studied, these approaches are effective for reducing the memory footprint but not for directly reducing computational costs. Use cases include quantization-aware training (Courbariaux & Bengio, 2016; Rastegari et al., 2016; Zhu et al., 2017; Lin et al., 2017; Zhang et al., 2018) and post-training quantization (Banner et al., 2018). Quantization-aware training achieves better accuracy with lower bit widths, and is almost inevitable for those with extreme quantization. However, it tends to incur higher training costs in most cases. The post-training quantization scenario, which is executable with less computational resources and a smaller training dataset, has potentially more applications, so we also target this scenario. ",
923
+ "bbox": [
924
+ 174,
925
+ 135,
926
+ 825,
927
+ 385
928
+ ],
929
+ "page_idx": 9
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "Pruning Pruning methods include structured pruning, which prunes whole layers, filters, or channels to maintain a regular structure so that computations are easily parallelized, and unstructured pruning, which randomly prunes individual weight parameters. Since it is difficult to benefit from unstructured pruning unless sparsity is sufficiently large, due to its incompatibility with parallelization (Lu et al., 2019), we target structured pruning. Many pruning methods have also been proposed, such as criteria-based approaches (LeCun et al., 1990), regularization-based approaches (Han et al., 2015; Wang et al., 2019b), and methods employing reinforcement learning (Zhong et al., 2018). In this paper, we argue that a pruned slim model performs better after quantization in lower computational cost regions. Any pruning method can be applied to produce a pruned slim model. ",
934
+ "bbox": [
935
+ 173,
936
+ 392,
937
+ 825,
938
+ 518
939
+ ],
940
+ "page_idx": 9
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Metric for measuring cost In most quantization papers, the standard metric is accuracy achieved under a certain bit width. For pruning, the standard metric is the number of parameters or the number of computations (FLOP). Some papers use inference time when the model runs on specific hardware (Cai et al., 2019; Yang et al., 2018), but this metric is strongly hardware-dependent. In this paper, we propose a hardware-agnostic metric. ",
945
+ "bbox": [
946
+ 174,
947
+ 525,
948
+ 823,
949
+ 594
950
+ ],
951
+ "page_idx": 9
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Noise during training Relations between learning rate, batch size, and noise during training are widely discussed (Keskar et al., 2017; Xing et al., 2018). To make the model more robust to quantization, some papers propose intentional addition of noise to gradient or weight parameters (Spallanzani et al., 2019; Baskin et al., 2018a;b). ",
956
+ "bbox": [
957
+ 174,
958
+ 602,
959
+ 823,
960
+ 657
961
+ ],
962
+ "page_idx": 9
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "REFERENCES ",
967
+ "text_level": 1,
968
+ "bbox": [
969
+ 174,
970
+ 681,
971
+ 285,
972
+ 696
973
+ ],
974
+ "page_idx": 9
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "Ron Banner, Yury Nahshan, Elad Hoffer, and Daniel Soudry. ACIQ: analytical clipping for integer quantization of neural networks. CoRR, abs/1810.05723, 2018. URL http://arxiv.org/ abs/1810.05723. ",
979
+ "bbox": [
980
+ 174,
981
+ 707,
982
+ 825,
983
+ 750
984
+ ],
985
+ "page_idx": 9
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Chaim Baskin, Natan Liss, Yoav Chai, Evgenii Zheltonozhskii, Eli Schwartz, Raja Giryes, Avi Mendelson, and Alexander M. Bronstein. NICE: noise injection and clamping estimation for neural network quantization. CoRR, abs/1810.00162, 2018a. URL http://arxiv.org/ abs/1810.00162. ",
990
+ "bbox": [
991
+ 174,
992
+ 765,
993
+ 825,
994
+ 820
995
+ ],
996
+ "page_idx": 9
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Chaim Baskin, Eli Schwartz, Evgenii Zheltonozhskii, Natan Liss, Raja Giryes, Alexander M. Bronstein, and Avi Mendelson. UNIQ: uniform noise injection for the quantization of neural networks. CoRR, abs/1804.10969, 2018b. URL http://arxiv.org/abs/1804.10969. ",
1001
+ "bbox": [
1002
+ 174,
1003
+ 837,
1004
+ 823,
1005
+ 880
1006
+ ],
1007
+ "page_idx": 9
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "Han Cai, Chuang Gan, and Song Han. Once for all: Train one network and specialize it for efficient deployment. CoRR, abs/1908.09791, 2019. URL http://arxiv.org/abs/1908.09791. ",
1012
+ "bbox": [
1013
+ 173,
1014
+ 895,
1015
+ 823,
1016
+ 924
1017
+ ],
1018
+ "page_idx": 9
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Matthieu Courbariaux and Yoshua Bengio. Binarynet: Training deep neural networks with weights and activations constrained to $+ 1$ or -1. CoRR, abs/1602.02830, 2016. URL http://arxiv. org/abs/1602.02830. ",
1023
+ "bbox": [
1024
+ 173,
1025
+ 103,
1026
+ 821,
1027
+ 146
1028
+ ],
1029
+ "page_idx": 10
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "J. Deng, W. Dong, R. Socher, L. Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pp. 248–255, June 2009. doi: 10.1109/CVPR.2009.5206848. ",
1034
+ "bbox": [
1035
+ 176,
1036
+ 154,
1037
+ 820,
1038
+ 196
1039
+ ],
1040
+ "page_idx": 10
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2019. URL https:// openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ rJl-b3RcF7. ",
1045
+ "bbox": [
1046
+ 174,
1047
+ 205,
1048
+ 821,
1049
+ 248
1050
+ ],
1051
+ "page_idx": 10
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "A. Gersho. Quantization. IEEE Communications Society Magazine, 15(5):16–16, Sep. 1977. doi: 10.1109/MCOM.1977.1089500. ",
1056
+ "bbox": [
1057
+ 173,
1058
+ 256,
1059
+ 823,
1060
+ 286
1061
+ ],
1062
+ "page_idx": 10
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Yunchao Gong, Liu Liu, Ming Yang, and Lubomir D. Bourdev. Compressing deep convolutional networks using vector quantization. CoRR, abs/1412.6115, 2014. URL http://arxiv.org/ abs/1412.6115. ",
1067
+ "bbox": [
1068
+ 173,
1069
+ 294,
1070
+ 825,
1071
+ 337
1072
+ ],
1073
+ "page_idx": 10
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "R. M. Gray and D. L. Neuhoff. Quantization. IEEE Transactions on Information Theory, 44(6): 2325–2383, Oct 1998. doi: 10.1109/18.720541. ",
1078
+ "bbox": [
1079
+ 173,
1080
+ 344,
1081
+ 820,
1082
+ 375
1083
+ ],
1084
+ "page_idx": 10
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Song Han, Jeff Pool, John Tran, and William J. Dally. Learning both weights and connections for efficient neural network. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 1135–1143. Curran Associates, Inc., 2015. ",
1089
+ "bbox": [
1090
+ 173,
1091
+ 382,
1092
+ 825,
1093
+ 439
1094
+ ],
1095
+ "page_idx": 10
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Song Han, Huizi Mao, and William J. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. International Conference on Learning Representations (ICLR), 2016. ",
1100
+ "bbox": [
1101
+ 173,
1102
+ 446,
1103
+ 823,
1104
+ 491
1105
+ ],
1106
+ "page_idx": 10
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, June 2016. doi: 10.1109/CVPR.2016.90. ",
1111
+ "bbox": [
1112
+ 173,
1113
+ 498,
1114
+ 823,
1115
+ 541
1116
+ ],
1117
+ "page_idx": 10
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017. URL http://arxiv.org/abs/ 1704.04861. ",
1122
+ "bbox": [
1123
+ 173,
1124
+ 550,
1125
+ 825,
1126
+ 607
1127
+ ],
1128
+ "page_idx": 10
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "G. Huang, Z. Liu, L. v. d. Maaten, and K. Q. Weinberger. Densely connected convolutional networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2261–2269, July 2017. doi: 10.1109/CVPR.2017.243. ",
1133
+ "bbox": [
1134
+ 176,
1135
+ 614,
1136
+ 823,
1137
+ 659
1138
+ ],
1139
+ "page_idx": 10
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "Forrest N. Iandola, Matthew W. Moskewicz, Khalid Ashraf, Song Han, William J. Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with $5 0 \\mathrm { x }$ fewer parameters and ${ < } 1 \\mathrm { m b }$ model size. CoRR, abs/1602.07360, 2016. URL http://arxiv.org/abs/1602.07360. ",
1144
+ "bbox": [
1145
+ 176,
1146
+ 666,
1147
+ 823,
1148
+ 710
1149
+ ],
1150
+ "page_idx": 10
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Frank Hutter Ilya Loshchilov. SGDR: stochastic gradient descent with warm restarts. International Conference on Learning Representations (ICLR), 2017. ",
1155
+ "bbox": [
1156
+ 169,
1157
+ 718,
1158
+ 825,
1159
+ 747
1160
+ ],
1161
+ "page_idx": 10
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "H. Jegou, M. Douze, and C. Schmid. Product quantization for nearest neighbor search. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(1):117–128, Jan 2011. ISSN 0162-8828. doi: 10.1109/TPAMI.2010.57. ",
1166
+ "bbox": [
1167
+ 176,
1168
+ 755,
1169
+ 823,
1170
+ 797
1171
+ ],
1172
+ "page_idx": 10
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. International Conference on Learning Representations (ICLR), 2017. ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 806,
1180
+ 821,
1181
+ 849
1182
+ ],
1183
+ "page_idx": 10
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. ",
1188
+ "bbox": [
1189
+ 171,
1190
+ 858,
1191
+ 803,
1192
+ 873
1193
+ ],
1194
+ "page_idx": 10
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In D. S. Touretzky (ed.), Advances in Neural Information Processing Systems 2, pp. 598–605. Morgan-Kaufmann, 1990. URL http://papers.nips.cc/paper/250-optimal-brain-damage.pdf. ",
1199
+ "bbox": [
1200
+ 176,
1201
+ 882,
1202
+ 823,
1203
+ 924
1204
+ ],
1205
+ "page_idx": 10
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Xiaofan Lin, Cong Zhao, and Wei Pan. Towards accurate binary convolutional neural network. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 345–353. Curran Associates, Inc., 2017. ",
1210
+ "bbox": [
1211
+ 174,
1212
+ 103,
1213
+ 825,
1214
+ 160
1215
+ ],
1216
+ "page_idx": 11
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "L. Lu, J. Xie, R. Huang, J. Zhang, W. Lin, and Y. Liang. An efficient hardware accelerator for sparse convolutional neural networks on fpgas. In 2019 IEEE 27th Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM), pp. 17–25, April 2019. doi: 10.1109/FCCM.2019.00013. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 169,
1224
+ 825,
1225
+ 226
1226
+ ],
1227
+ "page_idx": 11
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "A. Maki, D. Miyashita, K. Nakata, F. Tachibana, T. Suzuki, and J. Deguchi. Fpga-based cnn processor with filter-wise-optimized bit precision. In 2018 IEEE Asian Solid-State Circuits Conference (A-SSCC), pp. 47–50, Nov 2018. doi: 10.1109/ASSCC.2018.8579342. ",
1232
+ "bbox": [
1233
+ 174,
1234
+ 234,
1235
+ 825,
1236
+ 277
1237
+ ],
1238
+ "page_idx": 11
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "D. Miyashita, S. Kousai, T. Suzuki, and J. Deguchi. A neuromorphic chip optimized for deep learning and cmos technology with time-domain analog and digital mixed-signal processing. IEEE Journal of Solid-State Circuits, 52(10):2679–2689, Oct 2017. ISSN 0018-9200. doi: 10.1109/JSSC.2017.2712626. ",
1243
+ "bbox": [
1244
+ 174,
1245
+ 286,
1246
+ 825,
1247
+ 343
1248
+ ],
1249
+ "page_idx": 11
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Daisuke Miyashita, Edward H. Lee, and Boris Murmann. Convolutional neural networks using logarithmic data representation. CoRR, abs/1603.01025, 2016. URL http://arxiv.org/ abs/1603.01025. ",
1254
+ "bbox": [
1255
+ 173,
1256
+ 352,
1257
+ 821,
1258
+ 395
1259
+ ],
1260
+ "page_idx": 11
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Travis Oliphant. NumPy: A guide to NumPy. USA: Trelgol Publishing, 2006. URL http: //www.numpy.org/. ",
1265
+ "bbox": [
1266
+ 169,
1267
+ 404,
1268
+ 821,
1269
+ 434
1270
+ ],
1271
+ "page_idx": 11
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in PyTorch. In NIPS Autodiff Workshop, 2017. ",
1276
+ "bbox": [
1277
+ 176,
1278
+ 441,
1279
+ 823,
1280
+ 484
1281
+ ],
1282
+ "page_idx": 11
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In ECCV, 2016. ",
1287
+ "bbox": [
1288
+ 171,
1289
+ 494,
1290
+ 823,
1291
+ 523
1292
+ ],
1293
+ "page_idx": 11
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "S. Sasaki, A. Maki, D. Miyashita, and J. Deguchi. Post training weight compression with distribution-based filter-wise quantization step. In 2019 IEEE Symposium in Low-Power and High-Speed Chips (COOL CHIPS), pp. 1–3, April 2019. doi: 10.1109/CoolChips.2019.8721356. ",
1298
+ "bbox": [
1299
+ 174,
1300
+ 531,
1301
+ 825,
1302
+ 575
1303
+ ],
1304
+ "page_idx": 11
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "F. N. Sechi. Linearised class-b transistor amplifiers. IEEE Journal of Solid-State Circuits, 11(2): 264–270, April 1976. ISSN 0018-9200. doi: 10.1109/JSSC.1976.1050713. ",
1309
+ "bbox": [
1310
+ 174,
1311
+ 583,
1312
+ 823,
1313
+ 613
1314
+ ],
1315
+ "page_idx": 11
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "A. Shafiee, A. Nag, N. Muralimanohar, R. Balasubramonian, J. P. Strachan, M. Hu, R. S. Williams, and V. Srikumar. Isaac: A convolutional neural network accelerator with in-situ analog arithmetic in crossbars. In 2016 ACM/IEEE 43rd Annual International Symposium on Computer Architecture (ISCA), pp. 14–26, June 2016. doi: 10.1109/ISCA.2016.12. ",
1320
+ "bbox": [
1321
+ 173,
1322
+ 622,
1323
+ 825,
1324
+ 679
1325
+ ],
1326
+ "page_idx": 11
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. ",
1331
+ "bbox": [
1332
+ 173,
1333
+ 688,
1334
+ 823,
1335
+ 717
1336
+ ],
1337
+ "page_idx": 11
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Matteo Spallanzani, Lukas Cavigelli, Gian Paolo Leonardi, Marko Bertogna, and Luca Benini. Additive noise annealing and approximation properties of quantized neural networks. CoRR, abs/1905.10452, 2019. URL http://arxiv.org/abs/1905.10452. ",
1342
+ "bbox": [
1343
+ 173,
1344
+ 726,
1345
+ 823,
1346
+ 768
1347
+ ],
1348
+ "page_idx": 11
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "Pierre Stock, Armand Joulin, Remi Gribonval, Benjamin Graham, and Herv ´ e J ´ egou. And the bit ´ goes down: Revisiting the quantization of neural networks. CoRR, abs/1907.05686, 2019. URL http://arxiv.org/abs/1907.05686. ",
1353
+ "bbox": [
1354
+ 176,
1355
+ 777,
1356
+ 823,
1357
+ 820
1358
+ ],
1359
+ "page_idx": 11
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "F. Tung and G. Mori. Clip-q: Deep network compression learning by in-parallel pruningquantization. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7873–7882, June 2018. doi: 10.1109/CVPR.2018.00821. ",
1364
+ "bbox": [
1365
+ 174,
1366
+ 829,
1367
+ 823,
1368
+ 872
1369
+ ],
1370
+ "page_idx": 11
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "Kuan Wang, Zhijian Liu, Yujun Lin, Ji Lin, and Song Han. Haq: Hardware-aware automated quantization with mixed precision. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019a. ",
1375
+ "bbox": [
1376
+ 174,
1377
+ 881,
1378
+ 823,
1379
+ 924
1380
+ ],
1381
+ "page_idx": 11
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "Yanzhi Wang, Shaokai Ye, Zhezhi He, Xiaolong Ma, Linfeng Zhang, Sheng Lin, Geng Yuan, Sia Huat Tan, Zhengang Li, Deliang Fan, Xuehai Qian, Xue Lin, and Kaisheng Ma. Nonstructured DNN weight pruning considered harmful. CoRR, abs/1907.02124, 2019b. URL http://arxiv.org/abs/1907.02124. ",
1386
+ "bbox": [
1387
+ 174,
1388
+ 103,
1389
+ 825,
1390
+ 160
1391
+ ],
1392
+ "page_idx": 12
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "Chen Xing, Devansh Arpit, Christos Tsirigotis, and Yoshua Bengio. A walk with sgd. CoRR, abs/1802.08770, 2018. URL http://arxiv.org/abs/1802.08770. ",
1397
+ "bbox": [
1398
+ 171,
1399
+ 169,
1400
+ 823,
1401
+ 196
1402
+ ],
1403
+ "page_idx": 12
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "Tien-Ju Yang, Andrew Howard, Bo Chen, Xiao Zhang, Alec Go, Mark Sandler, Vivienne Sze, and Hartwig Adam. Netadapt: Platform-aware neural network adaptation for mobile applications. In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss (eds.), Computer Vision – ECCV 2018, pp. 289–304, Cham, 2018. Springer International Publishing. ISBN 978-3-030- 01249-6. ",
1408
+ "bbox": [
1409
+ 174,
1410
+ 207,
1411
+ 826,
1412
+ 276
1413
+ ],
1414
+ "page_idx": 12
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. Lq-nets: Learned quantization for highly accurate and compact deep neural networks. In European Conference on Computer Vision (ECCV), 2018. ",
1419
+ "bbox": [
1420
+ 173,
1421
+ 285,
1422
+ 825,
1423
+ 328
1424
+ ],
1425
+ "page_idx": 12
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "X. Zhang, X. Zhou, M. Lin, and J. Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6848–6856, June 2018. doi: 10.1109/CVPR.2018.00716. ",
1430
+ "bbox": [
1431
+ 173,
1432
+ 337,
1433
+ 825,
1434
+ 380
1435
+ ],
1436
+ "page_idx": 12
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Jing Zhong, Guiguang Ding, Yuchen Guo, Jungong Han, and Bin Wang. Where to prune: Using lstm to guide end-to-end pruning. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, pp. 3205–3211. International Joint Conferences on Artificial Intelligence Organization, 7 2018. doi: 10.24963/ijcai.2018/445. URL https://doi.org/ 10.24963/ijcai.2018/445. ",
1441
+ "bbox": [
1442
+ 173,
1443
+ 388,
1444
+ 825,
1445
+ 459
1446
+ ],
1447
+ "page_idx": 12
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "Chenzhuo Zhu, Song Han, Huizi Mao, and William J. Dally. Trained ternary quantization. International Conference on Learning Representations (ICLR), 2017. ",
1452
+ "bbox": [
1453
+ 171,
1454
+ 468,
1455
+ 823,
1456
+ 497
1457
+ ],
1458
+ "page_idx": 12
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "B. Zoph, V. Vasudevan, J. Shlens, and Q. V. Le. Learning transferable architectures for scalable image recognition. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8697–8710, June 2018. doi: 10.1109/CVPR.2018.00907. ",
1463
+ "bbox": [
1464
+ 176,
1465
+ 506,
1466
+ 821,
1467
+ 549
1468
+ ],
1469
+ "page_idx": 12
1470
+ },
1471
+ {
1472
+ "type": "text",
1473
+ "text": "A DETAILS OF THE QUANTIZATION PROCESS ",
1474
+ "text_level": 1,
1475
+ "bbox": [
1476
+ 174,
1477
+ 102,
1478
+ 565,
1479
+ 118
1480
+ ],
1481
+ "page_idx": 13
1482
+ },
1483
+ {
1484
+ "type": "text",
1485
+ "text": "We basically apply a midrise-type quantization (Gersho, 1977), but modify it as follows. In the quantization phase, we prune filters in which all weight parameters are within $\\pm \\varDelta / 2$ , as described in the following pseudocode with Numpy (Oliphant, 2006) notation. ",
1486
+ "bbox": [
1487
+ 173,
1488
+ 137,
1489
+ 823,
1490
+ 180
1491
+ ],
1492
+ "page_idx": 13
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "# Quantize \n# W: (filter(out_ch), channel(in_ch), ky, kx) \npruned $=$ numpy.all(abs(W) $<$ delta/2, axi $s = ( 1 , 2 , 3 )$ ) \nW_int $=$ numpy.floor(W/delta) $+ ~ 0 . 5$ \nW_int[pruned, :, :, : $\\jmath \\ = \\ 0$ ",
1497
+ "bbox": [
1498
+ 174,
1499
+ 200,
1500
+ 661,
1501
+ 268
1502
+ ],
1503
+ "page_idx": 13
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "B $\\mathrm { E S N } _ { a }$ FOR OPTIMAL QUANTIZATION POLICY ",
1508
+ "text_level": 1,
1509
+ "bbox": [
1510
+ 174,
1511
+ 296,
1512
+ 580,
1513
+ 313
1514
+ ],
1515
+ "page_idx": 13
1516
+ },
1517
+ {
1518
+ "type": "text",
1519
+ "text": "We attempt to exploit the $\\mathrm { E S N } _ { a }$ obtained during training to determine a quantization policy using VGG7 where numbers of filters in all convolutional layers are reduced to $0 . 2 5 \\times$ on CIFAR-10. The left figure in Figure 9 show the validation accuracy versus $\\mathrm { E S N } _ { a }$ during training and after quantization. As an initial policy, we apply the same bit width for all layers. The results shown in gray do not fit the blue plot during training, possibly indicating the policy is suboptimal. We next investigate the $\\mathrm { E S N } _ { a }$ of each layer and find that the misfit is caused by the sixth layer, as shown in the right figure. When we consider validation accuracy versus the sixth-layer $\\mathrm { E S N } _ { a }$ , shown in green symbols, validation accuracy after quantization deteriorates at a much higher $\\mathrm { E S N } _ { a }$ than during training. An interpretation is that since this deterioration is caused by other layers (e.g., the first) rather than the sixth layer, weight parameters in the sixth layer should be more aggressively quantized. Based on this observation, we modify the quantization policy such that the bit width of the sixth layer become smaller than that in other layers, thereby improving performance as shown by the red plot in the left figure. This preliminary experimental result suggests we can use $\\mathrm { E S N } _ { a }$ information during training to find an optimal quantization policy. ",
1520
+ "bbox": [
1521
+ 173,
1522
+ 333,
1523
+ 825,
1524
+ 527
1525
+ ],
1526
+ "page_idx": 13
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "C RESNET-18 VERSUS RESNET-50 ",
1531
+ "text_level": 1,
1532
+ "bbox": [
1533
+ 174,
1534
+ 555,
1535
+ 480,
1536
+ 571
1537
+ ],
1538
+ "page_idx": 13
1539
+ },
1540
+ {
1541
+ "type": "text",
1542
+ "text": "The proposed metric allows us to compare different network architectures. In Figure 10, we compare the Pareto frontier of validation accuracy versus $\\mathrm { E S N } _ { a / d }$ curves for ResNet-18 and ResNet-50. The plots in Figure 10 are extracted from Figure 8. This result shows that ResNet-50 has a better Pareto frontier than does ResNet-18. One convincing reason is that ResNet-50 employs a parameterefficient bottleneck structure, whereas ResNet-18 does not. In contrast, ResNet-18 shows better performance for $\\mathrm { E S N } _ { d } < \\mathrm { 2 G }$ , partly due to the higher sensitivity of $\\mathrm { E S N } _ { d }$ to the number of parameters. This suggests use of ResNet-18 when employing digital computing in this $\\mathrm { E S N } _ { d }$ region. Such comparisons enabled by the proposed metric are useful when searching for or developing efficient structures. ",
1543
+ "bbox": [
1544
+ 173,
1545
+ 592,
1546
+ 825,
1547
+ 717
1548
+ ],
1549
+ "page_idx": 13
1550
+ },
1551
+ {
1552
+ "type": "image",
1553
+ "img_path": "images/d5aa136d8e61549ec8fd083414983846373dedea1a67e78d1c0cea7a30e1a771.jpg",
1554
+ "image_caption": [
1555
+ "Figure 9: Relation between validation accuracy versus $\\mathrm { E S N } _ { a }$ during training and after quantization. "
1556
+ ],
1557
+ "image_footnote": [],
1558
+ "bbox": [
1559
+ 240,
1560
+ 748,
1561
+ 736,
1562
+ 885
1563
+ ],
1564
+ "page_idx": 13
1565
+ },
1566
+ {
1567
+ "type": "image",
1568
+ "img_path": "images/2a59b5a8878a8ea8f3d6ad840988ab26269ea2f2967344df1fa765e89eb20929.jpg",
1569
+ "image_caption": [
1570
+ "Figure 10: Comparison of ResNet-18 and ResNet-50 with respect to top-1 accuracy on ImageNet versus $\\mathrm { E S N } _ { a / d }$ (left/right). "
1571
+ ],
1572
+ "image_footnote": [],
1573
+ "bbox": [
1574
+ 248,
1575
+ 103,
1576
+ 746,
1577
+ 262
1578
+ ],
1579
+ "page_idx": 14
1580
+ },
1581
+ {
1582
+ "type": "image",
1583
+ "img_path": "images/a0dce85d6c8c6554c8eb8f943057b2890541a50f8af1f3edac05daeaceff805c.jpg",
1584
+ "image_caption": [
1585
+ "Figure 11: Comparison of other methods with respect to top-1 accuracy on ImageNet versus estimated $\\mathrm { E S N } _ { d } ^ { \\prime }$ . "
1586
+ ],
1587
+ "image_footnote": [],
1588
+ "bbox": [
1589
+ 245,
1590
+ 343,
1591
+ 745,
1592
+ 525
1593
+ ],
1594
+ "page_idx": 14
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "D COMPARISON WITH OTHER METHODS ",
1599
+ "text_level": 1,
1600
+ "bbox": [
1601
+ 174,
1602
+ 603,
1603
+ 529,
1604
+ 621
1605
+ ],
1606
+ "page_idx": 14
1607
+ },
1608
+ {
1609
+ "type": "text",
1610
+ "text": "In Figure 11, we superimpose results from other works on Figure 8. Lin et al. (2017) and Zhang et al. (2018) show better accuracy in smaller $\\mathrm { E S N } _ { d } ^ { \\prime }$ regions than ours, but these apply quantization-aware training, whereas our result is obtained by post-training quantization. Although we expect that the findings presented in this paper will also improve performance of quantization-aware training, we leave an explicit demonstration of this to future works. ",
1611
+ "bbox": [
1612
+ 173,
1613
+ 635,
1614
+ 825,
1615
+ 705
1616
+ ],
1617
+ "page_idx": 14
1618
+ },
1619
+ {
1620
+ "type": "text",
1621
+ "text": "E DERIVATION OF EQUATION (4) ",
1622
+ "text_level": 1,
1623
+ "bbox": [
1624
+ 176,
1625
+ 724,
1626
+ 464,
1627
+ 741
1628
+ ],
1629
+ "page_idx": 14
1630
+ },
1631
+ {
1632
+ "type": "text",
1633
+ "text": "The mean squared noise energy $N$ due to quantization over the all elements in a tensor $\\boldsymbol { \\mathsf { W } }$ is computed as ",
1634
+ "bbox": [
1635
+ 173,
1636
+ 756,
1637
+ 821,
1638
+ 785
1639
+ ],
1640
+ "page_idx": 14
1641
+ },
1642
+ {
1643
+ "type": "equation",
1644
+ "img_path": "images/f6fa8b5270850c0f46483806f4d821a18739ac6e43d2cab9458180832dd1f70a.jpg",
1645
+ "text": "$$\n\\begin{array} { r } { N = | | \\mathbf { W } - \\varDelta \\cdot \\mathbf { W } _ { \\mathrm { i n t } } | | _ { F } ^ { 2 } / | | \\mathbf { W } | | _ { 0 } , } \\end{array}\n$$",
1646
+ "text_format": "latex",
1647
+ "bbox": [
1648
+ 390,
1649
+ 803,
1650
+ 606,
1651
+ 821
1652
+ ],
1653
+ "page_idx": 14
1654
+ },
1655
+ {
1656
+ "type": "text",
1657
+ "text": "where $\\pmb { \\mathsf { W } } _ { \\mathrm { i n t } } = \\pmb { \\mathsf { W } } / \\Delta \\rfloor + 0 . 5$ , $\\varDelta$ is the quantization step size and $| | \\pmb { \\mathsf { W } } | | _ { 0 }$ is the number of nonzero elements in $\\pmb { \\mathsf { W } }$ . When quantization noise is approximated by a uniform distribution, the mean squared noise energy is (Gray & Neuhoff, 1998) ",
1658
+ "bbox": [
1659
+ 174,
1660
+ 830,
1661
+ 825,
1662
+ 873
1663
+ ],
1664
+ "page_idx": 14
1665
+ },
1666
+ {
1667
+ "type": "equation",
1668
+ "img_path": "images/fcd6d0f87a7f402a7814b41c76d7a3c08d417d04e08a162375bfe74553452b3c.jpg",
1669
+ "text": "$$\nN = \\int _ { - \\Delta / 2 } ^ { \\Delta / 2 } \\frac { 1 } { \\varDelta } n ^ { 2 } d n = \\frac { { \\varDelta } ^ { 2 } } { 1 2 } .\n$$",
1670
+ "text_format": "latex",
1671
+ "bbox": [
1672
+ 401,
1673
+ 888,
1674
+ 594,
1675
+ 928
1676
+ ],
1677
+ "page_idx": 14
1678
+ },
1679
+ {
1680
+ "type": "text",
1681
+ "text": "From Equations (8) and (9), ",
1682
+ "bbox": [
1683
+ 173,
1684
+ 103,
1685
+ 359,
1686
+ 118
1687
+ ],
1688
+ "page_idx": 15
1689
+ },
1690
+ {
1691
+ "type": "equation",
1692
+ "img_path": "images/8454b2d15ed6f91bd9b59c01956ac5200ef7ed1ff1f3a582e9895d18685b0058.jpg",
1693
+ "text": "$$\n\\varDelta ^ { 2 } = | | \\boldsymbol { \\mathsf { W } } - \\varDelta \\cdot \\boldsymbol { \\mathsf { W } } _ { \\mathrm { i n t } } | | _ { F } ^ { 2 } \\times \\frac { 1 2 } { | | \\boldsymbol { \\mathsf { W } } | | _ { 0 } } .\n$$",
1694
+ "text_format": "latex",
1695
+ "bbox": [
1696
+ 379,
1697
+ 135,
1698
+ 617,
1699
+ 167
1700
+ ],
1701
+ "page_idx": 15
1702
+ },
1703
+ {
1704
+ "type": "text",
1705
+ "text": "Then, ",
1706
+ "bbox": [
1707
+ 173,
1708
+ 178,
1709
+ 215,
1710
+ 191
1711
+ ],
1712
+ "page_idx": 15
1713
+ },
1714
+ {
1715
+ "type": "equation",
1716
+ "img_path": "images/3157b6e9a39830ca995aa770798eefb7287bf4b8f0ccc1389893f7e801ce8c55.jpg",
1717
+ "text": "$$\n| | \\mathbf { W } _ { \\mathrm { i n t } } | | _ { F } ^ { 2 } \\sim | | \\mathbf { W } / \\varDelta | | _ { F } ^ { 2 } = \\frac { | | \\mathbf { W } | | _ { F } ^ { 2 } } { \\varDelta ^ { 2 } } = \\frac { | | \\mathbf { W } | | _ { F } ^ { 2 } } { | | \\mathbf { W } - \\varDelta \\cdot \\mathbf { W } _ { \\mathrm { i n t } } | | _ { F } ^ { 2 } } \\cdot \\frac { | | \\mathbf { W } | | _ { 0 } } { 1 2 } .\n$$",
1718
+ "text_format": "latex",
1719
+ "bbox": [
1720
+ 282,
1721
+ 208,
1722
+ 715,
1723
+ 243
1724
+ ],
1725
+ "page_idx": 15
1726
+ },
1727
+ {
1728
+ "type": "text",
1729
+ "text": "Here we again assume that quantization noise is uniformly distributed. In this equation, since $| | \\pmb { \\mathsf { W } } | |$ and $| | \\boldsymbol { \\mathsf { W } } - \\varDelta \\cdot \\boldsymbol { \\mathsf { W } } | | _ { F } ^ { 2 }$ are respectively the signal and noise norm, the term $\\frac { | | \\mathbf { W } | | _ { F } ^ { 2 } } { | | \\mathbf { W } - \\varDelta \\cdot \\mathbf { W _ { \\mathrm { i n t } } } | | _ { F } ^ { 2 } }$ is considered to be $S / N$ , and thus, ",
1730
+ "bbox": [
1731
+ 173,
1732
+ 253,
1733
+ 825,
1734
+ 306
1735
+ ],
1736
+ "page_idx": 15
1737
+ },
1738
+ {
1739
+ "type": "equation",
1740
+ "img_path": "images/96cb7237ac4599d852497cbd8b506550c63e8c8ef7fff637ad9d5e9d4ef285ff.jpg",
1741
+ "text": "$$\n| | \\mathbf { W _ { \\mathrm { i n t } } } | | _ { F } ^ { 2 } = \\frac { | | \\mathbf { W } | | _ { F } ^ { 2 } } { | | \\mathbf { W } - \\varDelta \\cdot \\mathbf { W _ { \\mathrm { i n t } } } | | _ { F } ^ { 2 } } \\cdot \\frac { | | \\mathbf { W } | | _ { 0 } } { 1 2 } = S / N \\cdot \\frac { | | \\mathbf { W } | | _ { 0 } } { 1 2 } .\n$$",
1742
+ "text_format": "latex",
1743
+ "bbox": [
1744
+ 307,
1745
+ 321,
1746
+ 691,
1747
+ 358
1748
+ ],
1749
+ "page_idx": 15
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "We obtain Equation (4) by summing this value over all layers. ",
1754
+ "bbox": [
1755
+ 173,
1756
+ 367,
1757
+ 581,
1758
+ 383
1759
+ ],
1760
+ "page_idx": 15
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "text": "F DETAILS OF NETWORK ARCHITECTURES ",
1765
+ "text_level": 1,
1766
+ "bbox": [
1767
+ 173,
1768
+ 401,
1769
+ 544,
1770
+ 419
1771
+ ],
1772
+ "page_idx": 15
1773
+ },
1774
+ {
1775
+ "type": "text",
1776
+ "text": "The network architecures of VGG7 ( $1 \\times , 0 . 5 \\times , 0 . 2 5 \\times )$ which we use in section 2.4 are shown in table 1. These architectures are based on the original model of VGG (Simonyan & Zisserman, 2014). ",
1777
+ "bbox": [
1778
+ 174,
1779
+ 433,
1780
+ 823,
1781
+ 463
1782
+ ],
1783
+ "page_idx": 15
1784
+ },
1785
+ {
1786
+ "type": "table",
1787
+ "img_path": "images/23a37116bfc282e598df13941a03ec5bc882e3e3630a38691cf499f03ae12323.jpg",
1788
+ "table_caption": [
1789
+ "Table 1: Detailed network architecture of VGG7 for CIFAR-10. $C _ { I }$ and $C _ { O }$ represent the number of input and output channels, respectively in conv-layer. In fc-layer, they represent the number of input and output neurons "
1790
+ ],
1791
+ "table_footnote": [],
1792
+ "table_body": "<table><tr><td rowspan=2 colspan=1>Layer name</td><td rowspan=1 colspan=2>VGG(1x)</td><td rowspan=1 colspan=2>VGG (0.5x)</td><td rowspan=1 colspan=2>VGG (0.25×)</td><td rowspan=2 colspan=1>kernel size</td><td rowspan=2 colspan=1> padding</td><td rowspan=2 colspan=1>stride</td></tr><tr><td rowspan=1 colspan=1>C1</td><td rowspan=1 colspan=1>Co</td><td rowspan=1 colspan=1>C1</td><td rowspan=1 colspan=1>Co</td><td rowspan=1 colspan=1>C1</td><td rowspan=1 colspan=1>Co</td></tr><tr><td rowspan=1 colspan=1>conv1</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>conv2</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>maxpool</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>2×2</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>conv3</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>conv4</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>maxpool</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>64</td><td rowspan=1 colspan=1>2×2</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>conv5</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>conv6</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>3×3</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td></tr><tr><td rowspan=1 colspan=1>maxpool</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>512</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>256</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>128</td><td rowspan=1 colspan=1>2×2</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>2</td></tr><tr><td rowspan=1 colspan=1>fc</td><td rowspan=1 colspan=1>8192</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>4096</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>2048</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>-</td></tr></table>",
1793
+ "bbox": [
1794
+ 184,
1795
+ 534,
1796
+ 812,
1797
+ 712
1798
+ ],
1799
+ "page_idx": 15
1800
+ }
1801
+ ]
parse/train/HkxAS6VFDB/HkxAS6VFDB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkxAS6VFDB/HkxAS6VFDB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyfHgI6aW/HyfHgI6aW.md ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MEMORY AUGMENTED CONTROL NETWORKS
2
+
3
+ Arbaaz Khan, Clark Zhang, Nikolay Atanasov, Konstantinos Karydis, Vijay Kumar, Daniel D. Lee
4
+
5
+ GRASP Laboratory, University of Pennsylvania
6
+
7
+ # ABSTRACT
8
+
9
+ Planning problems in partially observable environments cannot be solved directly with convolutional networks and require some form of memory. But, even memory networks with sophisticated addressing schemes are unable to learn intelligent reasoning satisfactorily due to the complexity of simultaneously learning to access memory and plan. To mitigate these challenges we propose the Memory Augmented Control Network (MACN). The network splits planning into a hierarchical process. At a lower level, it learns to plan in a locally observed space. At a higher level, it uses a collection of policies computed on locally observed spaces to learn an optimal plan in the global environment it is operating in. The performance of the network is evaluated on path planning tasks in environments in the presence of simple and complex obstacles and in addition, is tested for its ability to generalize to new environments not seen in the training set.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ A planning task in a partially observable environment involves two steps: inferring the environment structure from local observation and acting based on the current environment estimate. In the past, such perception-action loops have been learned using supervised learning with deep networks as well as deep reinforcement learning (Daftry et al., 2016), (Chebotar et al., 2016), (Lee et al., 2017). Popular approaches in this spirit are often end-to-end (i.e. mapping sensor readings directly to motion commands) and manage to solve problems in which the underlying dynamics of the environment or the agent are too complex to model. Approaches to learn end-to-end perception-action loops have been extended to complex reinforcement learning tasks such as learning how to play Atari games (Mnih et al., 2013a), as well as to imitation learning tasks like controlling a robot arm (Levine et al., 2015).
14
+
15
+ Purely convolutional architectures (CNNs) perform poorly when applied to planning problems due to the reactive nature of the policies learned by them (Zhang et al., 2016b), (Giusti et al., 2016). The complexity of this problem is compounded when the environment is only partially observable as is the case with most real world tasks. In planning problems, when using a function approximator such as a convolutional neural network, the optimal actions are dependent on an internal state. If one wishes to use a state-less network (such as a CNN) to obtain the optimal action, the input for the network should be the whole history of observations and actions. Since this does not scale well, we need a network that has an internal state such as a recurrent neural network or a memory network. (Zhang et al., 2016a) showed that when learning how to plan in partially observable environments, it becomes necessary to use memory to retain information about states visited in the past. Using recurrent networks to store past information and learn optimal control has been explored before in (Levine, 2013). While (Siegelmann & Sontag, 1995) have shown that recurrent networks are Turing complete and are hence capable of generating any arbitrary sequence in theory, this does not always translate into practice. Recent advances in memory augmented networks have shown that it is beneficial to use external memory with read and write operators that can be learned by a neural network over recurrent neural networks (Graves et al., 2014), (Graves et al., 2016). Specifically, we are interested in the Differentiable Neural Computer (DNC) (Graves et al., 2016) which uses an external memory and a network controller to learn how to read, write and access locations in the external memory. The DNC is structured such that computation and memory operations are separated from each other. Such a memory network can in principle be plugged into the convolutional architectures described above, and be trained end to end since the read and write operations are differentiable. However, as we show in our work, directly using such a memory scheme with CNNs performs poorly for partially observable planning problems and also does not generalize well to new environments.
16
+
17
+ To address the aforementioned challenges we propose the Memory Augmented Control Network (MACN), a novel architecture specifically designed to learn how to plan in partially observable environments under sparse rewards.1 Environments with sparse rewards are harder to navigate since there is no immediate feedback. The intuition behind this architecture is that planning problem can be split into two levels of hierarchy. At a lower level, a planning module computes optimal policies using a feature rich representation of the locally observed environment. This local policy along with a sparse feature representation of the partially observed environment is part of the optimal solution in the global environment. Thus, the key to our approach is using a planning module to output a local policy which is used to augment the neural memory to produce an optimal policy for the global environment. Our work builds on the idea of introducing options for planning and knowledge representation while learning control policies in MDPs (Sutton et al., 1999). The ability of the proposed model is evaluated by its ability to learn policies (continuous and discrete) when trained in environments with the presence of simple and complex obstacles. Further, the model is evaluated on its ability to generalize to environments and situations not seen in the training set.
18
+
19
+ The key contributions of this paper are:
20
+
21
+ 1. A new network architecture that uses a differentiable memory scheme to maintain an estimate of the environment geometry and a hierarchical planning scheme to learn how to plan paths to the goal.
22
+ 2. Experimentation to analyze the ability of the architecture to learn how to plan and generalize in environments with high dimensional state and action spaces.
23
+
24
+ # 2 METHODOLOGY
25
+
26
+ Section 2.1 outlines notation and formally states the problem considered in this paper. Section 2.2 and 2.3 briefly cover the theory behind value iteration networks and memory augmented networks. Finally, in section 2.4 the intuition and the computation graph is explained for the practical implementation of the model.
27
+
28
+ # 2.1 PRELIMINARIES
29
+
30
+ Consider an agent with state $s _ { t } \in S$ at discrete time $t$ . Let the states $s$ be a discrete set $\left[ s _ { 1 } , s _ { 2 } , \ldots , s _ { n } \right]$ For a given action $a _ { t } \in { \mathcal { A } }$ , the agent evolves according to known deterministic dynamics: $s _ { t + 1 } =$ $f ( s _ { t } , \bar { a } _ { t } )$ . The agent operates in an unknown environment and must remain safe by avoiding collisions. Let $m \in \{ - 1 , 0 \} ^ { n }$ be a hidden labeling of the states into free (0) and occupied $( - 1 )$ . The agent has access to a sensor that reveals the labeling of nearby states through an observations $z _ { t } = H ( s _ { t } ) m \in$ $\{ - 1 , 0 \} ^ { n }$ , where $H ( s ) \in \mathbb { R } ^ { n \times n }$ captures the local field of view of the agent at state $s$ . The local observation consists of ones for observable states and zeros for unobservable states. The observation $z _ { t }$ contains zeros for unobservable states. Note that $m$ and $z _ { t }$ are $n \times 1$ vectors and can be indexed by the state $s _ { t }$ . The agent’s task is to reach a goal region ${ \mathcal { S } } ^ { \mathrm { g o a l } } \subset { \mathcal { S } }$ , which is assumed obstacle-free, i.e., $m [ s ] = 0$ for all $\bar { s } \in S ^ { \mathrm { g o a l } }$ . The information available to the agent at time $t$ to compute its action $a _ { t }$ is $h _ { t } : = \left( s _ { 0 : t } , z _ { 0 : t } , a _ { 0 : t - 1 } , S ^ { \mathrm { g o a l } } \right) \in \mathcal { H }$ , where $\mathcal { H }$ is the set of possible sequences of observations, states, and actions. Our problem can then be stated as follows :
31
+
32
+ Problem 1. Given an initial state $s _ { 0 } \in S$ with $m [ s _ { 0 } ] = 0$ (obstacle-free) and a goal region $S ^ { g o a l }$ find a function $\mu : { \mathcal { S } } A$ such that applying the actions $a _ { t } : = \mu ( s _ { t } )$ results in a sequence of states $s _ { 0 } , s _ { 1 } , \ldots , s _ { T }$ satisfying $s _ { T } \in S ^ { g o a l }$ and $m [ s _ { t } ] = 0$ for all $t = 0 , \ldots , T$ .
33
+
34
+ Instead of trying to estimate the hidden labeling $m$ using a mapping approach, our goal is to learn a policy $\mu$ that maps the sequence of sensor observations $z _ { 0 } , z _ { 1 } , \dots z _ { T }$ directly to actions for the agent. The partial observability requires an explicit consideration of memory in order to learn $\mu$ successfully. A partially observable problem can be represented via a Markov Decision Process (MDP) over the history space $\mathcal { H }$ . More precisely, we consider a finite-horizon discounted MDP defined by $\mathcal { M } ( \mathcal { H } , \mathcal { A } , \mathcal { T } , r , \gamma )$ , where $\gamma \in ( 0 , 1 ]$ is a discount factor, $\mathcal { T } : \mathcal { H } \times \mathcal { A } \mathcal { H }$ is a deterministic transition function, and $r : \mathcal { H } \to \mathbb { R }$ is the reward function, defined as follows:
35
+
36
+ $$
37
+ \begin{array} { r l } & { \mathcal { T } ( h _ { t } , a _ { t } ) = ( h _ { t } , s _ { t + 1 } = f ( s _ { t } , a _ { t } ) , z _ { t + 1 } = H ( s _ { t + 1 } ) m , a _ { t } ) } \\ & { ~ r ( h _ { t } , a _ { t } ) = z _ { t } [ s _ { t } ] } \end{array}
38
+ $$
39
+
40
+ The reward function definition stipulates that the reward of a state $s$ can be measured only after its occupancy state has been observed.
41
+
42
+ Given observations $z _ { 0 : t }$ , we can obtain an estimate $\begin{array} { r } { \hat { m } = \operatorname* { m a x } \{ \sum _ { \tau } z _ { \tau } , - 1 \} } \end{array}$ of the map of the environment and use it to formulate a locally valid, fully-observable problem as the MDP $\mathcal { M } _ { t } ( S , \mathcal { A } , f , r , \gamma )$ with transition function given by the agent dynamics $f$ and reward $r ( s _ { t } ) : = \hat { m } [ s _ { t } ]$ given by the map estimate $\hat { m }$ .
43
+
44
+ # 2.2 VALUE ITERATION NETWORKS
45
+
46
+ The typical algorithm to solve an MDP is Value Iteration (VI) (Sutton $\&$ Barto, 1998). The value of a state (i.e. the expected reward over the time horizon if an optimal policy is followed) is computed iteratively by calculating an action value function $Q ( s , a )$ for each state. The value for state $s$ can then be calculated by $\bar { V } ( s ) : = \operatorname* { m a x } _ { a } Q ( s , a )$ . By iterating multiple times over all states and all actions possible in each state, we can get a policy $\pi = \arg \operatorname* { m a x } _ { a } Q ( s , a )$ . Given a transition function $\bar { \mathcal { T } _ { r } } ( s ^ { \prime } | s , \bar { a } )$ , the update rule for value iteration is given by (1)
47
+
48
+ $$
49
+ V _ { k + 1 } ( s ) = \operatorname* { m a x } _ { a } [ r ( s , a ) + \gamma \sum _ { s ^ { \prime } } \mathcal { T } _ { r } ( s ^ { \prime } | s , a ) V _ { k } ( s ) ] \enspace .
50
+ $$
51
+
52
+ A key aspect of our network is the inclusion of this network component that can approximate this Value Iteration algorithm. To this end we use the VI module in Value Iteration Networks (VIN) (Tamar et al., 2016). Their insight is that value iteration can be approximated by a convolutional network with max pooling. The standard form for windowed convolution is
53
+
54
+ $$
55
+ V ( x ) = \sum _ { k = x - w } ^ { x + w } V ( k ) u ( k ) .
56
+ $$
57
+
58
+ (Tamar et al., 2016) show that the summation in (2) is analogous to $\begin{array} { r } { \sum _ { s ^ { \prime } } \mathcal { T } ( s ^ { \prime } | s , a ) V _ { k } ( s ) } \end{array}$ in (1). When (2) is stacked with reward, max pooled and repeated $\mathbf { K }$ times, the convolutional architecture can be used to represent an approximation of the value iteration algorithm over $\mathrm { K }$ iterations.
59
+
60
+ # 2.3 EXTERNAL MEMORY NETWORKS
61
+
62
+ Recent works on deep learning employ neural networks with external memory (Graves et al., 2014), (Graves et al., 2016), (Kurach et al., 2015), (Parisotto & Salakhutdinov, 2017). Contrary to earlier works that explored the idea of the network learning how to read and access externally fixed memories, these recent works focus on learning to read and write to external memories, and thus forgo the task of designing what to store in the external memory. We are specifically interested in the DNC (Graves et al., 2016) architecture. This is similar to the work introduced by (Oh et al., 2016) and (Chen et al., 2017). The external memory uses differentiable attention mechanisms to determine the degree to which each location in the external memory $M$ is involved in a read or write operation. The DNC makes use of a controller (a recurrent neural network such as LSTM) to learn to read and write to the memory matrix. A brief overview of the read and write operations follows.2
63
+
64
+ # 2.3.1 READ AND WRITE OPERATION
65
+
66
+ The read operation is defined as a weighted average over the contents of the locations in the memory. This produces a set of vectors defined as the read vectors. $R$ read weightings $\{ w _ { t } ^ { r e a d , 1 } , \ldots , w _ { t } ^ r e a d , \bar { R _ { \} } } \}$ are used to compute weighted averages of the contents of the locations in the memory. At time $t$ the read vectors $\{ r \dot { e } _ { t } ^ { 1 } , \ldots , r \check { e } _ { t } ^ { R } \}$ are defined as :
67
+
68
+ $$
69
+ r e _ { t } ^ { i } = M _ { t } ^ { \top } w _ { t } ^ { r e a d , i }
70
+ $$
71
+
72
+ where $w _ { t } ^ { r e a d , i }$ are the read weightings, $r e _ { t }$ is the read vector, and $M _ { t }$ is the state of the memory at time $t$ . These read vectors are appended to the controller input at the next time step which provides it access to the memory. The write operation consists of a write weight $w _ { t } ^ { W }$ , an erase vector $e _ { t }$ and a write vector $v _ { t }$ . The write vector and the erase vector are emitted by the controller. These three components modify the memory at time $t$ as :
73
+
74
+ $$
75
+ M _ { t } = M _ { t - 1 } ( 1 - w _ { t } ^ { W } e _ { t } ^ { \top } ) + w _ { t } ^ { W } v _ { t } ^ { \top } .
76
+ $$
77
+
78
+ Memory addressing is defined separately for writing and reading. A combination of content-based addressing and dynamic memory allocation determines memory write locations, while a combination of content-based addressing and temporal memory linkage is used to determine read locations.
79
+
80
+ # 2.4 MEMORY AUGMENTED CONTROL MODEL
81
+
82
+ ![](images/807a18b731de9006de4670460028b904a32ce1d310cfd68d534829208fc8e3b1.jpg)
83
+ Figure 1: 2D Environment a) Let the agent (blue square) operate in a 2D environment. The goal region is represented by the red square and the orange square represents the agents observation b) Agents observation. The gray area is not observable. c) It is possible to plan on this locally observed space since it is a MDP.
84
+
85
+ Consider the 2D grid world in Fig 1a. The agent is spawned randomly in this world and is represented by the blue square. The goal of the agent is to learn how to navigate to the red goal region. Let this environment in Fig 1a be represented by a MDP $\mathcal { M }$ . The key intuition behind designing this architecture is that planning in $\mathcal { M }$ can be decomposed into two levels. At a lower level, planning is done in a local space within the boundaries of our locally observed environment space. Let this locally observed space be $z ^ { \prime }$ . Fig 1b represents this locally observed space. As stated before in Section 2.1, this observation can be formulated as a fully observable problem $\mathcal { M } _ { t } ( S , \mathcal { A } , f , r , \gamma )$ . It is possible to plan in $\mathcal { M } _ { t }$ and calculate the optimal policy for this local space, $\pi _ { l } ^ { * }$ independent of previous observations (Fig 1c). It is then possible to use any planning algorithm to calculate the optimal value function $V _ { l } ^ { * }$ from the optimal policy $\pi _ { l } ^ { * }$ in $z ^ { \prime }$ . Let $\mathrm { \dot { I } } = [ \pi _ { l } ^ { \mathrm { \scriptsize { 1 } } } , \pi _ { l } ^ { \mathrm { \scriptsize { 2 } } } , \pi _ { l } ^ { 3 } , \pi _ { l } ^ { 4 } , \dots , \pi _ { l } ^ { n } ]$ be the list of optimal policies calculated from such consecutive observation spaces $[ z _ { 0 } , z _ { 1 } , \dots z _ { T } ]$ . Given these two lists, it is possible to train a convolutional neural network with supervised learning.The network could then be used to compute a policy $\pi _ { l } ^ { n e w }$ when a new observation $z ^ { n e w }$ is recorded.
86
+
87
+ This policy learned by the convolutional network is purely reactive as it is computed for the $z ^ { n e w }$ observation independent of the previous observations. Such an approach fails when there are local minima in the environment. In a 2D/3D world, these local minima could be long narrow tunnels culminating in dead ends (see Fig 2). In the scenario where the environment is populated with tunnels, (Fig 2) the environment is only partially observable and the agent has no prior knowledge about the structure of this tunnel forcing it to explore the tunnel all the way to the end. Further, when entering and exiting such a structure, the agent’s observations are the same, i.e $z _ { 1 } = z _ { 2 }$ , but the optimal actions under the policies $\pi _ { l } ^ { 1 }$ and $\pi _ { l } ^ { 2 }$ (computed by the convolutional network) at these time steps are not the same, i.e $a _ { \pi ^ { 1 } } \neq a _ { \pi ^ { 2 } }$ . To backtrack successfully from these tunnels/nodes, information about previously visited states is required, necessitating memory.
88
+
89
+ To solve this problem, we propose using a differentiable memory to estimate the map of the environment $\hat { m }$ . The controller in the memory network learns to selectively read and write information to the memory bank. When such a differentiable memory scheme is trained it is seen that it keeps track of important events/landmarks (in the case of tunnel, this is the observation that the dead end has been reached) in its memory state and discards redundant information. In theory one can use a CNN to extract features from the observation $z ^ { \prime }$ and pass these features to the differentiable memory. Instead, we propose the use of a VI module (Tamar et al., 2016) that approximates the value iteration algorithm within the framework of a neural network to learn value maps from the local information. We hypothesize that using these value maps in the differential memory scheme provides us with better planning as compared to when only using features extracted from a CNN. This architecture is shown in Figure 3.
90
+
91
+ ![](images/a0c63b60f38470c2b081aa2fa37fcc9a2efa52f7afee027307c51db2d47e5c67.jpg)
92
+ Figure 2: Environment with local minima. The agents observation when entering the tunnel to explore it and when backtracking after seeing the dead end are the same. Using a reactive policy for such environments leads to the agent getting stuck near the dead end .
93
+
94
+ The VI module is setup to learn how to plan on the local observations $z$ . The local value maps (which can be used to calculate local policies) are concatenated with a low level feature representation of the environment and sent to a controller network. The controller network interfaces with the memory through an access module (another network layer) and emits read heads, write heads and access heads. In addition, the controller network also performs its own computation for planning. The output from the controller network and the access module are concatenated and sent through a linear layer to produce an action. This entire architecture is then trained end to end. Thus, to summarize, the planning problem is solved by decomposing it into a two level problem. At a lower level a feature rich representation of the environment (obtained from the current observation) is used to generate local policies. At the next level, a representation of the histories that is learned and stored in the memory, and a sparse feature representation of the currently observed environment is used to generate a policy optimal in the global environment.
95
+
96
+ Computation Graph: To explain the computation graph, consider the case of a 2D grid world with randomly placed obstacles, a start region and a goal region as shown in Fig 1a. The actions for this grid world are considered to be discrete. The 2D grid world is presented in the form of an image $I$ of size $m \times n$ to the network. Let the goal region be $[ m _ { g o a l } , n _ { g o a l } ]$ and the start position be $[ m _ { s t a r t } , n _ { s t a r t } ]$ . At any given instant, only a small part of $I$ is observed by the network and the rest of the image $I$ is blacked out. This corresponds to the agent only observing what is visible within the range of its sensor. In addition to this the image is stacked with a reward map $R _ { m }$ as explained in (Tamar et al., 2016). The reward map consists of an array of size $m \times n$ where all elements of the array except the one corresponding to index $[ m _ { g o a l } , n _ { g o a l } ]$ are zero. Array element corresponding to $[ m _ { g o a l } , n _ { g o a l } ]$ is set to a high value(in our experiments it is set to 1) denoting reward. The input image of dimension $[ m \times n \times 2 ]$ is first convolved with a kernel of size $\left( 3 \times 3 \right)$ , 150 channels and stride of 1 everywhere. This is then convolved again with a kernel of size (1,1), 4 channels and stride of 1. Let this be the reward layer $R$ . $R$ is convolved with another filter of size (3,3) with 4 channels. This is the initial estimate of the action value function or $Q ( s , a )$ . The initial value of the state $V ( s )$ is also calculated by taking max over $Q ( s , a )$ . The operations up to this point are summarized by the "Conv" block in Figure 3. Once these initial values have been computed, the model executes a for loop k times (the value of $\mathbf { k }$ ranges based on the task). Inside the for loop at every iteration, the R and $\mathrm { v }$ are first concatenated. This is then convolved with another filter of size (3,3) and 4 channels to get the updated action value of the state, $Q ( s , a )$ . We find the value of the state $\mathrm { V } ( { \mathrm { s } } )$ by taking the max of the action value function. The values of the kernel sizes are constant across all three experiments. The updated value maps are then fed into a DNC controller. The DNC controller is a LSTM (hidden units vary according to task) that has access to an external memory. The external memory has 32 slots with word size 8 and we use 4 read heads and 1 write head. This varies from task to task since some of the more complex environments need more memory. The output from the DNC controller and the memory is concatenated through a linear layer to get prediction for the action that the agent should execute. The optimizer used is the RMSProp and we use a learning rate of 0.0001 for our experiments.
97
+
98
+ ![](images/99d427c3ce99c73186eca0c7305f1d3337fd410b47391b7965662fee348c77cd.jpg)
99
+ Figure 3: MACN Architecture. The architecture proposed uses convolutional layers to extract features from the environment. The value maps are generated with these features. The controller network uses the value maps and low level features to emit read and write heads in addition to doing its own planning computation.
100
+
101
+ This formulation is easy enough to be extended to environments where the state space is larger than two dimensions and the action space is larger. We demonstrate this in our experiments.
102
+
103
+ # 3 EXPERIMENTS
104
+
105
+ To investigate the performance of MACN, we design our experiments to answer three key questions:
106
+
107
+ • Can it learn how to plan in partially observable environments with sparse rewards?
108
+ • How well does it generalize to new unknown environments?
109
+ • Can it be extended to other domains?
110
+
111
+ We first demonstrate that MACN can learn how to plan in a 2D grid world environment. Without loss of generality, we set the probability of all actions equal. The action space is discrete, $\mathcal { A } : =$ $\{ d o w n , \bar { r } i g h t , u \bar { p } , l e f t \}$ . This can be easily extended to continuous domains since our networks output is a probability over actions. We show this in experiment 3.4. We then demonstrate that our network can learn how to plan even when the states are not constrained to a two dimensional space and the action space is larger than four actions.
112
+
113
+ # 3.1 NAVIGATION IN PRESENCE OF SIMPLE OBSTACLES
114
+
115
+ We first evaluate the ability of our network to successfully navigate a 2D grid world populated with obstacles at random positions. We make the task harder by having random start and goal positions. The full map shown in Fig. 4 is the top down view of the entire environment. The input to the network is the sensor map, where the area that lies outside the agents sensing abilities is grayed out as explained before. VIN: With just the VI module and no memory in place, we test the performance of the value iteration network on this 2D partially observable environment. $\mathbf { C N N + }$ Memory: We setup a CNN architecture where the sensor image with the reward map is forward propagated through four convolutional layers to extract features. We test if these features alone are enough for the memory to navigate the 2D grid world. A natural question to ask at this point is can we achieve planning in partially observable environments with just a planning module and a simple recurrent neural network such as a LSTM. To answer this we also test MACN with a LSTM in place of the memory scheme. We present our results in Table 1. These results are obtained from testing on a held out test-set consisting of maps with random start, goal and obstacle positions.
116
+
117
+ ![](images/87b22140e9954f7e0c84f4d540a7cb6f697a40bff09609a7ba26fa644a1ca407.jpg)
118
+ Figure 4: Performance on grid world environment . In the map the blue square represents the start position while the red square represents the goal. The red dotted line is the ground truth and the blue dash line represents the agents path. The maps shown here are from the test set and have not been seen before by the agent during training.
119
+ Table 1: Performance on 2D grid world with simple obstacles: All models are tested on maps generated via the same random process, and were not present in the training set. Episodes over 40 (for a $1 6 \times 1 6$ wide map), 60 (for $3 2 \times 3 2$ ) and 80 (for $6 4 \times 6 4$ ) time steps were terminated and counted as a failure. Episodes where the agent collided with an obstacle were also counted as failures.
120
+
121
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Performance</td><td rowspan=1 colspan=1>16 × 16</td><td rowspan=1 colspan=1>32 × 32</td><td rowspan=1 colspan=1>64 × 64</td></tr><tr><td rowspan=2 colspan=1>VIN</td><td rowspan=1 colspan=1>Success(%)</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td></tr><tr><td rowspan=1 colspan=1>Test Error</td><td rowspan=1 colspan=1>0.63</td><td rowspan=1 colspan=1>0.78</td><td rowspan=1 colspan=1>0.81</td></tr><tr><td rowspan=2 colspan=1>CNN + Memory</td><td rowspan=1 colspan=1>Success(%)</td><td rowspan=1 colspan=1>0.12</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td></tr><tr><td rowspan=1 colspan=1>TestError</td><td rowspan=1 colspan=1>0.43</td><td rowspan=1 colspan=1>0.618</td><td rowspan=1 colspan=1>0.73</td></tr><tr><td rowspan=2 colspan=1>MACN (LSTM)</td><td rowspan=1 colspan=1>Success (%)</td><td rowspan=1 colspan=1>88.12</td><td rowspan=1 colspan=1>73.4</td><td rowspan=1 colspan=1>64</td></tr><tr><td rowspan=1 colspan=1>Test Error</td><td rowspan=1 colspan=1>0.077</td><td rowspan=1 colspan=1>0.12</td><td rowspan=1 colspan=1>0.21</td></tr><tr><td rowspan=2 colspan=1>MACN</td><td rowspan=1 colspan=1>Success(%)</td><td rowspan=1 colspan=1>96.3</td><td rowspan=1 colspan=1>85.91</td><td rowspan=1 colspan=1>78.44</td></tr><tr><td rowspan=1 colspan=1>TestError</td><td rowspan=1 colspan=1>0.02</td><td rowspan=1 colspan=1>0.08</td><td rowspan=1 colspan=1>0.13</td></tr></table>
122
+
123
+ Our results show that MACN can learn how to navigate partially observable 2D unknown environments. Note that the VIN does not work by itself since it has no memory to help it remember past actions. We would also like to point out that while the $\mathrm { C N N + I }$ Memory architecture is similar to (Oh et al., 2016), its performance in our experiments is very poor due to the sparse rewards structure. MACN significantly outperforms all other architectures. Furthermore, MACN’s drop in testing accuracy as the grid world scales up is not as large compared to the other architectures. While these results seem promising, in the next section we extend the experiment to determine whether MACN actually learns how to plan or it is overfitting.
124
+
125
+ # 3.2 NAVIGATION IN PRESENCE OF LOCAL MINIMA
126
+
127
+ The previous experiment shows that MACN can learn to plan in 2D partially observable environments. While the claim that the network can plan on environments it has not seen before stands, this is weak evidence in support of the generalizability of the network. In our previous experiment the test environments have the same dimensions as in the training set, the number of combinations of random obstacles especially in the smaller environments is not very high and during testing some of the wrong actions can still carry the agent to the goal. Thus, our network could be overfitting and may not generalize to new environments. In the following experiment we test our proposed network’s capacity to generalize.
128
+
129
+ ![](images/bff5f799acad0b662efd955487804006695439a733cc16fa1881bfd614b1bd5c.jpg)
130
+ Figure 5: Grid world environment with local minima. Left: In the full map the blue square represents the current position while the red square represents the goal. Center-left: The partial map represents a stitched together version of all states explored by the agent. Since the agent does not know if the tunnel culminates in a dead end, it must explore it all the way to the end. Center-right: The sensor input is the information available to the agent. Right: The full map that we test our agent on after being trained on smaller maps. The dimensions of the map as well as the tunnel are larger.
131
+ Table 2: Performance on grid world with local minima: All models are trained on tunnels of length 20 units. The success percentages represent the number of times the robot reaches the goal position in the test set after exploring the tunnel all the way to the end. Maximum generalization length is the length of the longest tunnel that the robot is able to successfully navigate after being trained on tunnels of length 20 units.
132
+
133
+ The environment is setup with tunnels. The agent starts off at random positions inside the tunnel. While the orientation of the tunnel is fixed, its position is not. To comment on the the ability of our network to generalize to new environments with the same task, we look to answer the following question: When trained to reach the goal on tunnels of a fixed length, can the network generalize to longer tunnels in bigger maps not seen in the training set?
134
+
135
+ The network is set up the same way as before. The task here highlights the significance of using memory in a planning network. The agent’s observations when exploring the tunnel and exiting the tunnel are the same but the actions mapped to these observations are different. The memory in our network remembers past information and previously executed policies in those states, to output the right action. We report our results in Table 2. To show that traditional deep reinforcement learning performs poorly on this task, we implement the DQN architecture as introduced in (Mnih et al., 2013b). We observe that even after one million iterations, the DQN does not converge to the optimal policy on the training set. This can be attributed to the sparse reward structure of the environment. We report similar findings when tested with A3C as introduced in (Mnih et al., 2016). We also observe that the $\mathrm { C N N + }$ memory scheme learns to turn around at a fixed length and does not explore the longer tunnels in the test set all the way to the end.
136
+
137
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Success (%)</td><td rowspan=1 colspan=1>Maximum generalization length</td></tr><tr><td rowspan=1 colspan=1>DQN</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td></tr><tr><td rowspan=1 colspan=1>A3C</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td></tr><tr><td rowspan=1 colspan=1>CNN + Memory</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>20</td></tr><tr><td rowspan=1 colspan=1>VIN</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td></tr><tr><td rowspan=1 colspan=1>MACN</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>330</td></tr></table>
138
+
139
+ These results offer insight into the ability of MACN to generalize to new environments. Our network is found capable of planning in environments it has not seen in the training set at all. On visualizing the memory (see supplemental material), we observe that there is a big shift in the memory states only when the agent sees the end of the wall and when the agent exits the tunnel. A t-sne (Maaten & Hinton, 2008) visualization over the action spaces (see Fig. 6) clearly shows that the output of our network is separable. We can conclude from this that the network has learned the spatial structure of the tunnel, and it is now able to generalize to tunnels of longer length in larger maps.
140
+
141
+ Thus, we can claim that our proposed model is generalizable to new environments that are structurally similar to the environments seen in the training set but have not been trained on. In addition to this in all our experiments are state and action spaces have been constrained to a small number of dimensions. In our next experiment we show that MACN can learn how to plan even when the state space and action space are scaled up.
142
+
143
+ ![](images/ee5fb9944af9662ead41ef6d73dd1663dcfb760c3b3ecdfc1b3c8261b8cb1d63.jpg)
144
+ Figure 6: T-sne visualization on 2D grid worlds with tunnels. a) T-sne visualization of the raw images fed into the network. Most of the input images for going into the tunnel and exiting the tunnel are the same but have different action labels. b) T-sne visualization from the outputs of the pre planning module. While it has done some separation, it is still not completely separable. c) Final output from the MACN. The actions are now clearly separable.
145
+
146
+ # 3.3 GENERAL GRAPH SEARCH
147
+
148
+ In our earlier experiments, the state space was constrained in two dimensions, and only four actions were available. It is nearly impossible to constrain every real world task to a two dimensional space with only four actions. However, it is easier to formulate a lot of partially observable planning problems as a graph.We define our environment as an undirected graph $G = ( V , E )$ where the connections between the nodes are generated randomly (see Fig. 7). In Fig 7 the blue node is the start state and the red node is the goal state. Each node represents a possible state the agent could be in. The agent can only observe all edges connected to the node it currently is in thus making it partially observable. The action space for this state is then any of the possible nodes that the agent can visit next. As before, the agent only gets a reward when it reaches the goal. We also add in random start and goal positions. In addition, we add a transition probability of 0.8. (For training details and generation of graph see Appendix.) We present our results in Table 3. On graphs with small number of nodes, the reinforcement learning with DQN and A3C sometimes converge to the optimal goal due to the small state size and random actions leading to the goal node in some of the cases. However, as before the MACN outperforms all other models. On map sizes larger than 36 nodes, performance of our network starts to degrade. Further, we observe that even though the agent outputs a wrong action at some times, it still manages to get to the goal in a reasonably small number of attempts. From these results, we can conclude that MACN can learn to plan in more general problems where the state space is not limited to two dimensions and the action space is not limited to four actions.
149
+
150
+ ![](images/1ea8afe17d0beebb2e804bd2078be3c08060e936a6c29f3087867893a2186dc2.jpg)
151
+ Figure 7: 9 Node Graph Search. Blue is start and Red is goal.
152
+
153
+ # 3.4 CONTINUOUS CONTROL DOMAIN
154
+
155
+ Learning how to navigate in unknown environments, where only some part of the environment is observable is a problem highly relevant in robotics. Traditional robotics solve this problem by creating and storing a representation of the entire environment. However, this can quickly get memory intensive. In this experiment we extend MACN to a SE2 robot. The SE2 notation implies that the robot is capable of translating in the x-y plane and has orientation. The robot has a differential drive controller that outputs continuous control values. The robot is spawned in the environment shown in Fig (8a). As before, the robot only sees a small part of the environment at any given time. In this case the robot has a laser scanner that is used to perceive the environment.
156
+
157
+ Table 3: Performance on General Graph Search. Test error is not applicable for the reinforcement learning models A3C and DQN
158
+
159
+ <table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=1 colspan=4>Test Error, Success(%)</td></tr><tr><td rowspan=1 colspan=1>9 Nodes</td><td rowspan=1 colspan=1>16 Nodes</td><td rowspan=1 colspan=1>25 Nodes</td><td rowspan=1 colspan=1>36 Nodes</td></tr><tr><td rowspan=1 colspan=1>VIN</td><td rowspan=1 colspan=1>0.57,23.39</td><td rowspan=1 colspan=1>0.61,14</td><td rowspan=1 colspan=1>0.68,0</td><td rowspan=1 colspan=1>0.71,0</td></tr><tr><td rowspan=1 colspan=1>A3C</td><td rowspan=1 colspan=1>NA,10</td><td rowspan=1 colspan=1>NA,7</td><td rowspan=1 colspan=1>NA,0</td><td rowspan=1 colspan=1>NA,0</td></tr><tr><td rowspan=1 colspan=1>DQN</td><td rowspan=1 colspan=1>NA,12</td><td rowspan=1 colspan=1>NA, 5.2</td><td rowspan=1 colspan=1>NA,0</td><td rowspan=1 colspan=1>NA,0</td></tr><tr><td rowspan=1 colspan=1>CNN + Memory</td><td rowspan=1 colspan=1>0.25, 81.5</td><td rowspan=1 colspan=1>0.32,63</td><td rowspan=1 colspan=1>0.56,19</td><td rowspan=1 colspan=1>0.68,9.7</td></tr><tr><td rowspan=1 colspan=1>MACN (LSTM)</td><td rowspan=1 colspan=1>0.14,98</td><td rowspan=1 colspan=1>0.19, 96.27</td><td rowspan=1 colspan=1>0.26, 84.33</td><td rowspan=1 colspan=1>0.29,78</td></tr><tr><td rowspan=1 colspan=1>MACN</td><td rowspan=1 colspan=1>0.1,100</td><td rowspan=1 colspan=1>0.18,100</td><td rowspan=1 colspan=1>0.22, 95.5</td><td rowspan=1 colspan=1>0.28, 89.4</td></tr></table>
160
+
161
+ ![](images/4ad0fe162f199d01c8c57ca698bdca67156078f239cd1a9496f6575f2e6a0103.jpg)
162
+ Figure 8: Navigation in a 3D environment on a continuous control robot. a) The robot is spawned in a 3d simulated environment. b) Only a small portion of the entire map is visible at any given point to the robot c) The green line denotes ground truth and red line indicates the output of MACN.
163
+
164
+ It is easy to convert this environment to a 2D framework that the MACN needs. We fix the size of the environment to a $m \times n$ grid. This translates to a $m \times n$ matrix that is fed into the MACN. The parts of the map that lie within the range of the laser scanner are converted to obstacle free and obstacle occupied regions and added to the matrix. Lastly, an additional reward map denoting a high value for the goal location and zero elsewhere as explained before is appended to the matrix and fed into the MACN. The network output is used to generate way points that are sent to the underlying controller. The training set is generated by randomizing the spawn and goal locations and using a suitable heuristic. The performance is tested on a held out test set of start and goal locations. More experimental details are outlined in the appendix.
165
+
166
+ Table 4: Performance on robot world
167
+
168
+ <table><tr><td rowspan=1 colspan=1>Model</td><td rowspan=1 colspan=1>Success (%)</td></tr><tr><td rowspan=1 colspan=1>DQN,A3C</td><td rowspan=1 colspan=1>0</td></tr><tr><td rowspan=1 colspan=1>VIN</td><td rowspan=1 colspan=1>57.60</td></tr><tr><td rowspan=1 colspan=1>CNN +Memory</td><td rowspan=1 colspan=1>59.74</td></tr><tr><td rowspan=1 colspan=1>MACN</td><td rowspan=1 colspan=1>71.3</td></tr></table>
169
+
170
+ We observe in Table 4 that the proposed architecture is able to find its way to the goal a large number of times and its trajectory is close to the ground truth. This task is more complex than the grid world navigation due to the addition of orientation. The lack of explicit planning in the $\mathrm { C N N + 1 }$ Memory architecture hampers its ability to get to the goal in this task. In addition to this, as observed before deep reinforcement learning is unable to converge to the goal. We also report some additional results in Fig 9. In Fig 9a we show that MACN converges faster to the goal than other baselines.
171
+
172
+ In addition to rate of convergence, one of the biggest advantages of MACN over other architectures, for a fixed memory size is its ability to scale up when the size of the environment increases. We show that MACN is able to beat other baselines when scaling up the environment. In this scenario, scaling up refers to placing the goal further away from the start position. While the success percentage gradually drops to a low value, it is observed that when the memory is increased accordingly, the success percentage increases again. Lastly, in Fig 10 we observe that in the robot world, the performance of MACN scales up to goal positions further away by adjusting the size of the external memory in the differentiable block accordingly.
173
+
174
+ ![](images/6bc2678923dc2e2dcb2688ff3f00c4b5d6b7152b8384204d77d458165f2d1c6d.jpg)
175
+ Figure 9: Performance on simulated environment. a) We report a plot of the number of steps left to the goal as the agent executes the learned policy in the environment (Lower is better). In this plot, the agent always starts at a position 40 steps away from the goal. b) The biggest advantage of MACN over other architectures is its ability to scale. We observe that as the distance to the goal increases, MACN still beats other baselines at computing a trajectory to the goal.(Higher success $\%$ is better)
176
+
177
+ ![](images/11ca49f3462a87d6fbce6fdd641e5efdd9ddc143c28071b47d81d42d72555a47.jpg)
178
+ Figure 10: Effect of Memory in Robot World MACN scales well to larger environments in the robot world when memory is increased suitably.
179
+
180
+ In this section, we analyze the performance of the proposed network against traditional motion planning baselines. As stated before, for the grid world environments and the tunnel task, we obtain expert trajectories by running $A ^ { * }$ on the environment. In the case of the continuous control domain, we use the the Human Friendly Navigation (HFN) paradigm Guzzi et al. (2013) which uses a variant of $A ^ { * }$ along with a constraint for safe distances from obstacles to plan paths from start location to goal location. For the grid worlds (both with simple obstacles and local minima), we compute the ratio of path length predicted by network architecture to the path length computed by $A ^ { * }$ . Our results are presented in Table 5.
181
+
182
+ The VIN alone is unable to reach the goal in a fixed number of steps. This behavior is consistent across all grid worlds. In the case of the tunnels, the VIN gets stuck inside the local minima and is unable to navigate to the goal. Thus, the ratio of path length produced by VIN to the path length produced by $A ^ { * }$ is infinite. In the case of the CNN+Memory, the network is able to navigate to the goal only when the grid world is small enough. In the case of the tunnels, the CNN+Memory learns to turn around at a fixed distance instead of exploring the tunnel all the way to the end. For example, when trained on tunnels of length 20 units and tested on tunnels of length 32 and 64 units, the CNN+Memory turns around after it has traversed 20 units in the tunnel. For this task, to demonstrate the ineffectiveness of the $\mathrm { C N N + N }$ Memory model, we placed the goal just inside the tunnel at the dead end. Thus, the ratio of path length produced by CNN+Memory to $A ^ { * }$ is $\infty$ since the agent never explored the tunnel all the way to the end. For the case of the MACN, we observe performance close to $A ^ { * }$ for the small worlds. The performance gets worse when the size of the grid world is increased. However, the dropoff for MACN with the DNC is lesser than that of the MACN with LSTM. For the tunnel world environment, both network architectures are successfully able to emulate the performance of $A ^ { * }$ and explore the tunnel all the way to the end.
183
+
184
+ It is important to note here that $A ^ { * }$ is a model based approach and requires complete knowledge of the cost and other parameters such as the dynamics of the agent (transition probabilities). In addition, planners like $A ^ { * }$ require the user to explicitly construct a map as input, while MACN learns to construct a map to plan on which leads to more compact representations that only includes vital parts of the map (like the end of the tunnel in the grid world case). Our proposed method is a model free approach that learns
185
+
186
+ 1. A dynamics model of the agent,
187
+ 2. A compact map representation,
188
+ 3. How to plan on the learned model and map.
189
+
190
+ This model free paradigm also allows us to move to different environments with a previously trained policy and be able to perform well by fine-tuning it to learn new features.
191
+
192
+ <table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=1 colspan=5>A* Ratio</td></tr><tr><td rowspan=1 colspan=1>G(16 ×16)</td><td rowspan=1 colspan=1>G(32 × 32)</td><td rowspan=1 colspan=1>G(64 × 64)</td><td rowspan=1 colspan=1>T(L =32)</td><td rowspan=1 colspan=1>T(L = 64)</td></tr><tr><td rowspan=1 colspan=1>VIN</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>8</td></tr><tr><td rowspan=1 colspan=1>CNN +Memory</td><td rowspan=1 colspan=1>1.43</td><td rowspan=1 colspan=1>2.86</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>8</td></tr><tr><td rowspan=1 colspan=1>MACN (LSTM)</td><td rowspan=1 colspan=1>1.2</td><td rowspan=1 colspan=1>1.4</td><td rowspan=1 colspan=1>1.62</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>MACN</td><td rowspan=1 colspan=1>1.07</td><td rowspan=1 colspan=1>1.11</td><td rowspan=1 colspan=1>1.47</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>1.0</td></tr></table>
193
+
194
+ Table 5: Comparison to $A ^ { * }$ . G corresponds to grid world with simple obstacles with the size of the world specified inside the parenthesis. L corresponds to grid worlds with local minima/tunnels with the length of the tunnel specified inside the parenthesis. All ratios are computed during testing. For the worlds with tunnels, the network is trained on tunnels of length 20 units.
195
+
196
+ # 4 RELATED WORK
197
+
198
+ Using value iteration networks augmented with memory has been explored before in (Gupta et al., 2017). In their work a planning module together with a map representation of a robot’s free space is used for navigation in a partially observable environment using image scans. The image scans are projected into a 2D grid world by approximating all possible robot poses. This projection is also learned by the model. This is in contrast to our work here in which we design a general memory based network that can be used for any partially observed planning problem. An additional difference between our work and that of (Gupta et al., 2017) is that we do not attempt to build a 2D map of the environment as this hampers the ability of the network to be applied to environments that cannot be projected into such a 2D environment. We instead focusing on learning a belief over the environment and storing this belief in the differentiable memory. Another similar work is that of (Oh et al., 2016) where a network is designed to play Minecraft. The game environment is projected into a 2D grid world and the agent is trained by RL to navigate to the goal. That network architecture uses a CNN to extract high level features followed by a differentiable memory scheme. This is in contrast to our paper where we approach this planning by splitting the problem into local and global planning. Using differential network schemes with CNNs for feature extraction has also been explored in (Chen et al., 2017). Lastly, a recently released paper Neural SLAM (Zhang et al., 2017) uses the soft attention based addressing in DNC to mimic subroutines of simultaneous localization and mapping. This approach helps in exploring the environment robustly when compared to other traditional methods. A possible extension of our work presented here, is to use this modified memory scheme with the differentiable planner to learn optimal paths in addition to efficient exploration. We leave this for future work.
199
+
200
+ # 5 CONCLUSION
201
+
202
+ Planning in environments that are partially observable and have sparse rewards with deep learning has not received a lot of attention. Also, the ability of policies learned with deep RL to generalize to new environments is often not investigated. In this work we take a step toward designing architectures that compute optimal policies even when the rewards are sparse, and thoroughly investigate the generalization power of the learned policy. In addition we show our network is able to scale well to large dimensional spaces.
203
+
204
+ The grid world experiments offer conclusive evidence about the ability of our network to learn how to plan in such environments. We address the concern of oversimplifying our environment to a 2D grid world by experimenting with planning in a graph with no constraint on the state space or the action space. We also show our model is capable of learning how to plan under continuous control. In the future, we intend to extend our policies trained in simulation to a real world platform such as a robot learning to plan in partially observable environments. Additionally, in our work we use simple perfect sensors and do not take into account sensor effects such as occlusion, noise which could aversely affect performance of the agent. This need for perfect labeling is currently a limitation of our work and as such cannot be applied directly to a scenario where a sensor cannot provide direct information about nearby states such as a RGB camera. We intend to explore this problem space in the future, where one might have to learn sensor models in addition to learning how to plan.
205
+
206
+ # ACKNOWLEDGEMENT
207
+
208
+ We gratefully acknowledge the support of ARL grants W911NF-08-2-0004 and W911NF-10-2-0016, ARO grant W911NF-13-1-0350, ONR grants N00014-07-1-0829, N00014-14-1-0510, DARPA grant HR001151626/HR0011516850 and DARPA HR0011-15-C-0100, USDA grant 2015-67021-23857 NSF grants IIS-1138847, IIS-1426840, CNS-1446592, CNS-1521617, and IIS-1328805. Clark Zhang is supported by the National Science Foundation Graduate Research Fellowship Program under Grant No. DGE-1321851. The authors would like to thank Anand Rajaraman, Steven Chen, Jnaneswar Das, Ekaterina Tolstoya and others at the GRASP lab for interesting discussions related to this paper.
209
+
210
+ # REFERENCES
211
+
212
+ Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pp. 41–48. ACM, 2009.
213
+
214
+ Yevgen Chebotar, Karol Hausman, Zhe Su, Gaurav S Sukhatme, and Stefan Schaal. Self-supervised regrasping using spatio-temporal tactile features and reinforcement learning. In Intelligent Robots and Systems (IROS), 2016 IEEE/RSJ International Conference on, pp. 1960–1966. IEEE, 2016.
215
+
216
+ Steven W Chen, Nikolay Atanasov, Arbaaz Khan, Konstantinos Karydis, Daniel D Lee, and Vijay Kumar. Neural network memory architectures for autonomous robot navigation. arXiv preprint arXiv:1705.08049, 2017.
217
+
218
+ Shreyansh Daftry, J Andrew Bagnell, and Martial Hebert. Learning transferable policies for monocular reactive mav control. In International Symposium on Experimental Robotics, pp. 3–11. Springer, 2016.
219
+
220
+ Alessandro Giusti, Jérôme Guzzi, Dan C Cire¸san, Fang-Lin He, Juan P Rodríguez, Flavio Fontana, Matthias Faessler, Christian Forster, Jürgen Schmidhuber, Gianni Di Caro, et al. A machine learning approach to visual perception of forest trails for mobile robots. IEEE Robotics and Automation Letters, 1(2):661–667, 2016.
221
+
222
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
223
+
224
+ Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, et al. ´ Hybrid computing using a neural network with dynamic external memory. Nature, 538(7626): 471–476, 2016.
225
+
226
+ Saurabh Gupta, James Davidson, Sergey Levine, Rahul Sukthankar, and Jitendra Malik. Cognitive mapping and planning for visual navigation. arXiv preprint arXiv:1702.03920, 2017.
227
+
228
+ Jérôme Guzzi, Alessandro Giusti, Luca M Gambardella, Guy Theraulaz, and Gianni A Di Caro. Human-friendly robot navigation in dynamic environments. In Robotics and Automation (ICRA), 2013 IEEE International Conference on, pp. 423–430. IEEE, 2013.
229
+
230
+ Karol Kurach, Marcin Andrychowicz, and Ilya Sutskever. Neural random-access machines. arXiv preprint arXiv:1511.06392, 2015.
231
+
232
+ Alex X Lee, Sergey Levine, and Pieter Abbeel. Learning visual servoing with deep features and fitted q-iteration. arXiv preprint arXiv:1703.11000, 2017.
233
+
234
+ Sergey Levine. Exploring deep and recurrent architectures for optimal control. arXiv preprint arXiv:1311.1761, 2013.
235
+
236
+ Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. arXiv preprint arXiv:1504.00702, 2015.
237
+
238
+ Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008.
239
+
240
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013a.
241
+
242
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013b.
243
+
244
+ Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning, pp. 1928–1937, 2016.
245
+
246
+ Junhyuk Oh, Valliappa Chockalingam, Satinder Singh, and Honglak Lee. Control of memory, active perception, and action in minecraft. arXiv preprint arXiv:1605.09128, 2016.
247
+
248
+ Emilio Parisotto and Ruslan Salakhutdinov. Neural map: Structured memory for deep reinforcement learning. arXiv preprint arXiv:1702.08360, 2017.
249
+
250
+ Stuart J. Russell and Peter Norvig. Artificial Intelligence: A Modern Approach. Pearson Education, 2 edition, 2003. ISBN 0137903952.
251
+ Hava T Siegelmann and Eduardo D Sontag. On the computational power of neural nets. Journal of computer and system sciences, 50(1):132–150, 1995.
252
+ Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction, volume 1. MIT press Cambridge, 1998.
253
+ Richard S Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial intelligence, 112(1-2):181–211, 1999.
254
+ Aviv Tamar, Yi Wu, Garrett Thomas, Sergey Levine, and Pieter Abbeel. Value iteration networks. In Advances in Neural Information Processing Systems, pp. 2154–2162, 2016.
255
+ Sebastian Thrun and John J Leonard. Simultaneous localization and mapping. In Springer handbook of robotics, pp. 871–889. Springer, 2008.
256
+ Jingwei Zhang, Lei Tai, Joschka Boedecker, Wolfram Burgard, and Ming Liu. Neural slam. arXiv preprint arXiv:1706.09520, 2017.
257
+ Marvin Zhang, Zoe McCarthy, Chelsea Finn, Sergey Levine, and Pieter Abbeel. Learning deep neural network policies with continuous memory states. In Robotics and Automation (ICRA), 2016 IEEE International Conference on, pp. 520–527. IEEE, 2016a.
258
+ Tianhao Zhang, Gregory Kahn, Sergey Levine, and Pieter Abbeel. Learning deep control policies for autonomous aerial vehicles with mpc-guided policy search. In Robotics and Automation (ICRA), 2016 IEEE International Conference on, pp. 528–535. IEEE, 2016b.
259
+
260
+ # APPENDIX
261
+
262
+ # A GRID WORLD EXPERIMENTS
263
+
264
+ For the grid world we define our sensor to be a $7 \times 7$ patch with the agent at the center of this patch. Our input image $I$ to the VI module is $[ m \times n \times 2 ]$ image where $^ { m , n }$ are the height and width of the image. $I [ : , : , 0 ]$ is the sensor input. Since we set our rewards to be sparse, $I [ : , : , 1 ]$ is the reward map and is zero everywhere except at the goal position $( m _ { g o a l } , n _ { g o a l } )$ . $I$ is first convolved to obtain a reward image $R$ of dimension $[ n \times m \times u ]$ where $u$ is the number of hidden units (vary between 100-150). This reward image is sent to the VI module. The value maps from the VI module after K iterations are fed into the memory network controller. The output from the network controller (here a LSTM with 256 hidden units) and the access module is concatenated and sent through a linear layer followed by a soft max to get a probability distribution over $\mathcal { A }$ .
265
+
266
+ During training and testing we roll out our sequence state by state based on the ground truth or the networks output respectively. Further, the set of transitions from start to goal to are considered to be an episode. During training at the end of each episode the internal state of the controller and the memory is cleared. The size of the external memory is $3 2 \times 8$ the grid world task. An additional hyperparameter is the number of read heads and write heads. This parameter controls the frequency of reads vs frequency of writes. For the the grid world task, we fix the number of read heads to 4 and the number of write heads to 1. For the grid world with simple obstacles, we observe that the MACN performs better when trained with curriculum (Bengio et al., 2009). This is expected since both the original VIN paper and the DNC paper show that better results are achieved when trained with curriculum. For establishing baselines, the VIN and the $\mathrm { C N N + I }$ Memory models are also trained with curriculum learning. In the grid world environment it is easy to define tasks that are harder than other tasks to aid with curriculum training. For a grid world with size $( m , n )$ we increase the difficulty of the task by increasing the number of obstacles and the maximum size of the obstacles. Thus, for a $3 2 \times 3 2$ grid, we start with a maximum of 2 obstacles and the maximum size being $2 \times 2$ Both parameters are then increased gradually. The optimal action in the grid world experiments is generated by A star (Russell & Norvig, 2003). We use the Manhattan distance between our current position and the goal as a heuristic. Our error curves on the test set for the MACN with the LSTM and the addressable memory scheme are shown in Figure 11.
267
+
268
+ ![](images/4472d4c40800bc1539cdbc988708bd0a24bbebf8b2d30640731ae2181ed01676.jpg)
269
+ Figure 11: Testing Error on grid world $( 3 2 \mathbf { x } 3 2 )$
270
+
271
+ # B ENVIRONMENTS WITH TUNNELS
272
+
273
+ We setup the network the same way as we did for the grid world experiments with blob shaped obstacles. Due to the relatively simple structure of the environment, we observe that we do not really need to train our networks with curriculum. Additionally, the read and write heads are both set to 1 for this experiment.
274
+
275
+ # B.1 VI MODULE $^ +$ PARTIAL MAPS
276
+
277
+ We observe that for the tunnel shaped obstacle when just the VI module is fed the partial map (stitched together version of states explored) as opposed to the sensor input, it performs extremely well and is able to generalize to new maps with longer tunnels without needing any memory. This is interesting because it proves our intuition about the planning task needing memory. Ideally we would like the network to learn this partial map on its own instead of providing it with a hand engineered version of it. The partial map represents an account of all states visited in the past. We argue that not all information from the past is necessary and the non redundant information that is required for planning in the global environment can be learned by the network. This can be seen in the memory ablation.
278
+
279
+ # B.2 DQN
280
+
281
+ As stated in the main paper, we observe that the DQN performs very poorly since the rewards are very sparse. The network is setup exactly as described in (Mnih et al., 2013a). We observe that even after 1 million iterations, the agent never reaches the goal and instead converges to a bad policy. This can be seen in Figure 12. It is clear that under the random initial policy the agent is unable to reach the goal and converged to a bad policy. Similar results are observed for A3C. Further, it is observed that even when the partial map instead of the sensor input is fed in to DQN, the agent does not converge.
282
+
283
+ ![](images/17585b51eac20c6796da9b58476bea037f3c707bcfb6e1863874c123fbaf2418.jpg)
284
+ Figure 12: Learning optimal policy with Deep Q networks. In this case the input to the DQN is the sensor input. State after 1 million iterations. The agent gets stuck along the wall (left wall between 40 and 50)
285
+
286
+ # B.3 VISUALIZING THE MEMORY STATE
287
+
288
+ For the tunnel task, we use an external memory with 32 rows $N = 3 2$ ) and a word size of 8 $( W = 8 )$ ). We observe that when testing the network, the memory registers a change in its states only when important events are observed. In Figure 11, the left hand image represents the activations from the memory when the agent is going into the tunnel. We observe that the activations from the memory remain constant until the agent observes the end of the tunnel. The memory states change when the agent observes the end of the tunnel, when it exits the tunnel and when it turns towards its goal (Figure 13). Another key observation for this task is that the MACN is prone to over fitting for this task. This is expected because ideally, only three states need to be stored in the memory; entered the tunnel, observe end of tunnel and exit tunnel. To avoid overfitting we add L2 regularization to our memory access weights.
289
+
290
+ ![](images/ce787799f0116462d8eec9c8007626739a51ed290ac608625b29ef8337ad9cd8.jpg)
291
+ Figure 13: Shift in memory states just before and after the end of the tunnel is observed. Once the agent has turned around, the memory state stays constant till it reaches the end of the tunnel.
292
+
293
+ # C GRAPH EXPERIMENTS
294
+
295
+ For the graph experiment, we generate a random connected undirected graph with $N$ nodes. We will call this graph $G = ( V , E )$ , with nodes $V = \{ V _ { 1 } , V _ { 2 } , \dots , V _ { N } \}$ and edges, $E$ . The agent, at any point in the simulation, is located at a specific node $V _ { i }$ and travels between nodes via the edges. The agent can take actions from a set $U = \{ u _ { 1 } , u _ { 2 } , \dots , u _ { N } \}$ where choosing action $u _ { i }$ will attempt to move to node $V _ { i }$ . We have transition probabilities
296
+
297
+ $$
298
+ p ( V _ { j } | V _ { i } , u _ { k } ) = { \left\{ \begin{array} { l l } { 0 , { \mathrm { i f ~ } } k \neq j { \mathrm { ~ o r ~ } } ( V _ { i } , V _ { j } ) \notin E } \\ { 1 , { \mathrm { i f ~ } } k = j { \mathrm { ~ a n d ~ } } ( V _ { i } , V _ { j } ) \in E } \end{array} \right. }
299
+ $$
300
+
301
+ At each node, the agent has access to the unique node number (all nodes are labeled with a unique ID), as well as the $( A ) _ { i }$ , the $i ^ { t h }$ row of the adjacency matrix $A$ . It also has access to the unique node number of the goal (but no additional information about the goal).
302
+
303
+ ![](images/4852689c17c701cc752a3ef96e0c9bcbf35bd339e488d01056872adbeb5f6544.jpg)
304
+ Figure 14: a) A random connected undirected graph with a the goal given by the star-shaped node, and the current state given by the blue node b) Shows the corresponding adjacency matrix where white indicates a connection and black indicates no connection. The goal is given by the row shaded in green, and the current state is given by the row shaded in blue.
305
+
306
+ To train the network to navigate this graph, we used supervised training with an expert demonstrating an intended behavior (breadth first search). Training samples were generated by running breadth first search (and connecting nodes that are explored by traveling previously explored nodes of the graph). Thus, for each state of the node and goal, we obtain a desired action. To fit this into the framework of our network and 2D convolutions, we reshaped the row vector of the matrix into a matrix that could use the same convolution operation. The reward prior is also a row vector with a 1 at the index of the goal node and zero everywhere else. This row vector is reshaped and stacked with the observation. We train the graph by giving example paths between pairs of nodes. We then test on pairs of nodes not shown during training. The training network is setup as before in the grid world navigation task. Due to the increased action space and state space, this task is significantly more complex than the grid world navigation task. We train MACN and the baselines with curriculum training. In the graph task it is easy to define a measure of increasing complexity by changing the number of hops between the start state and the goal state. Additionally, for the graph task the number of read heads and write heads are set to 1 and 4 respectively.
307
+
308
+ # D CONTINUOUS CONTROL
309
+
310
+ Navigating an unknown environment is a highly relevant problem in robotics. The traditional methodology localizes the position of the robot in the unknown world and tries to estimate a map. This approach is called Simultaneous Localization and Mapping (SLAM) and has been explored in depth in robotics (Thrun & Leonard, 2008). For the continuous control experiment, we use a differential drive robot (Figure 15). The robot is equipped with a head mounted LIDAR and also has a ASUS Xtion Pro that can provide the depth as well as the image from the front facing camera. In this work, we only use the information from the LIDAR and leave the idea of using data from the camera for future work. The ground truth maps are generated by using
311
+
312
+ ![](images/d51604872fa573f316ed92fe67acdc770f43ebc00ae156998464931fed943a99.jpg)
313
+ Figure 15: Simulated ground robot
314
+
315
+ Human Friendly Navigation (HFN) (Guzzi et al., 2013) which generates reactive collision avoidance paths to the goal. Given a start and goal position, the HFN algorithm generates way points that are sent to the controller. For our experiment, we generate a tuple of $( x , y , \theta )$ associated with every observation. To train the network, a $m \times n$ matrix (environment matrix) corresponding to the $m \times n$ environment is initialized. A corresponding reward array (reward matrix) also of size $m \times n$ with a 1 at the goal position and zero elsewhere is concatenated with the environment matrix. The observations corresponding to the laser scan are converted to a $j \times k$ matrix (observation matrix) where $j < m$ and $k < n$ . The values at the indices in the environment array corresponding to the local observation are updated with the values from the observation matrix. At every iteration, the environment matrix is reset to zero to ensure that the MACN only has access to the partially observable environment.
316
+
317
+ For the continuous world we define our observation to be a $1 0 \times 1 0$ matrix with the agent at the bottom of this patch. We change our formulation in the previous cases where our agent was at the center since the LIDAR only has a 270 degree field of view and the environment behind the robot is not observed. Our input image $I$ to the VI module is $[ m \times n \times 2 ]$ image where $m = 2 0 0 , n = 2 0 0$ are the height and width of the environment. $I [ : , : , 0 ]$ is the sensor input. $I$ is first convolved to obtain a reward image $R$ of dimension $[ n \times m \times u ]$ where $u$ is the number of hidden units (200 in this case). The K (parameter corresponding to number of iterations of value iteration) here is 40. The network controller is a LSTM with 512 hidden units and the external memory has 1024 rows and a word size of 512. We use 16 write heads and 4 read heads in the access module. The output from the access module is concatenated with the output from the LSTM controller and sent through a linear layer followed by a soft max to get probability distributions for $( x , y , \theta )$ . We sample from these distributions to get the next waypoint. These way points are then sent to the controller. The waypoints are clipped to ensure that the robot takes incremental steps.
318
+
319
+ For this task, we find that the performance increases when trained by curriculum training. MACN in addition to the baselines is first trained on maps where the goal is close and later trained on maps where the goal is further away. An additional point here, is that due to the complexity of the task, we train and test on the same map. Maps in the train set and test set differ by having random start and goal regions.
parse/train/HyfHgI6aW/HyfHgI6aW_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyfHgI6aW/HyfHgI6aW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyfHgI6aW/HyfHgI6aW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/JiYq3eqTKY/JiYq3eqTKY.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/JiYq3eqTKY/JiYq3eqTKY_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/JiYq3eqTKY/JiYq3eqTKY_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/JiYq3eqTKY/JiYq3eqTKY_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/KCd-3Pz8VjM/KCd-3Pz8VjM.md ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Automatic Unsupervised Outlier Model Selection
2
+
3
+ Yue Zhao Carnegie Mellon University zhaoy@cmu.edu
4
+
5
+ Ryan A. Rossi Adobe Research ryrossi@adobe.com
6
+
7
+ Leman Akoglu Carnegie Mellon University lakoglu@andrew.cmu.edu
8
+
9
+ # Abstract
10
+
11
+ Given an unsupervised outlier detection task on a new dataset, how can we automatically select a good outlier detection algorithm and its hyperparameter(s) (collectively called a model)? In this work, we tackle the unsupervised outlier model selection (UOMS) problem, and propose METAOD, a principled, data-driven approach to UOMS based on meta-learning. The UOMS problem is notoriously challenging, as compared to model selection for classification and clustering, since (i) model evaluation is infeasible due to the lack of hold-out data with labels, and $( i i )$ model comparison is infeasible due to the lack of a universal objective function. METAOD capitalizes on the performances of a large body of detection models on historical outlier detection benchmark datasets, and carries over this prior experience to automatically select an effective model to be employed on a new dataset without any labels, model evaluations or model comparisons. To capture task similarity within our meta-learning framework, we introduce specialized metafeatures that quantify outlying characteristics of a dataset. Extensive experiments show that selecting a model by METAOD significantly outperforms no model selection (e.g. always using the same popular model or the ensemble of many) as well as other meta-learning techniques that we tailored for UOMS. Moreover upon (meta-)training, METAOD is extremely efficient at test time; selecting from a large pool of $3 0 0 +$ models takes less than 1 second for a new task. We open-source1 METAOD and our meta-learning database for practical use and to foster further research on the UOMS problem.
12
+
13
+ # 1 Introduction
14
+
15
+ The lack of a universal learning model that performs well on all problem instances is well recognized [53]. Therefore, effort has been directed toward building a toolbox of various models and algorithms, which has given rise to the problem of algorithm selection and hyperparameter tuning (i.e., model selection). The same problem applies to outlier detection (OD); a long list of detectors has been developed in the last decades [2], with no universal “winners” [8].
16
+
17
+ In supervised learning, model selection can be done via performance evaluation of each trained model on labeled hold-out data. In contrast, unsupervised OD does not have access to any labels, nor is there a universal objective function that could guide model selection (cf. clustering where a loss function enables model comparison). Unsupervised model selection for OD is challenging exactly because both model evaluation and comparison are not feasible—which renders any trial-and-error techniques like grid search or iterative strategies like Bayesian hyperparameter optimization [57] inapplicable. Consequently, there has been no principled work on unsupervised outlier model selection—rather, the choice of a model for a new task (or dataset) remains “a black art”. A typical approach is to use popular OD algorithms, like LOF [6] and iForest [31] (often with default hyperparameters) which are shown to be competitive on average on many benchmark datasets. However, as noted earlier, none of these methods can universally outperform others on all tasks [8]. We argue that model selection is exactly how one can “break the performance ceiling” for OD.
18
+
19
+ In this work, we tackle the unsupervised outlier model selection (UOMS) problem systematically. To that end, we introduce (to the best of our knowledge) the first UOMS approach that selects an effective model to be employed on a new detection task without any model evaluation (using labels) or model comparison (via loss criteria). Our proposed method, called METAOD, is based on meta-learning, and stands on the prior performances of a large collection of existing detection models on an extensive corpora of historical outlier detection benchmark datasets. In a nutshell, the idea is to estimate a candidate model’s performance on the new task (with no labels) based on its prior performance on similar historical tasks. We remark that METAOD is strictly a model selection technique – that picks one model (a detector and its associated hyperparameter(s)) from a pool of (existing) candidate models – and not yet-another outlier detection algorithm itself.
20
+
21
+ In leveraging meta-learning, we establish a connection between the UOMS problem and the cold-start problem in collaborative filtering (CF), where the new task in UOMS is akin to a new user in CF (with no available evaluations, hence cold-start) and the model space is analogous to the item-set. Differently, OD necessitates the identification of a single best model (i.e., top-1 rank), whereas CF typically operates in a top- $k$ setting. In CF, future recommendations can be improved based on user feedback which is not applicable to OD. Moreover, METAOD requires the effective learning of task similarities based on characteristic dataset features (namely, meta-features) that capture the outlying properties within a dataset, whereas user features (location, age, etc.) in CF may be readily available.
22
+
23
+ In summary, the key contributions of this work include the following:
24
+
25
+ • First Approach to Unsupervised Outlier Model Selection: We propose METAOD, (to our knowledge) the first effort on unsupervised model selection for OD tasks. Notably, given a new dataset (i.e., at test time), it does not rely on any ground-truth labels for model evaluation or any loss or heuristic criterion for model comparison. METAOD stands on meta-learning in principle, and historical collections of outlier models and benchmark datasets in practice.
26
+
27
+ • Problem Formulation: We establish a correspondence between UOMS and CF under cold-start, where the new task “better likes” a model that performs better on similar historical tasks.
28
+
29
+ • Specialized Meta-features: We design novel meta-features to capture the outlying characteristics in a dataset toward effectively quantifying task similarity specifically among OD tasks.
30
+
31
+ • Effectiveness and Efficiency: Through extensive experiments on two benchmark testbeds that we have constructed, we show that selecting a model by METAOD for each given task significantly outperforms always using a popular model like iForest, as well as other possible meta-learning approaches that we tailored for UOMS. Moreover, METAOD incurs negligible run-time overhead ( $\cdot < 1$ second) at test time.
32
+
33
+ • Open-source Platform: We open-source1 METAOD and our meta-learning database for the community to use it for UOMS in practice, and to extend it with new datasets and models. We expect the growth of the database would make meta-learning based approaches, like METAOD, more powerful and also help foster further research on this new direction to an important problem.
34
+
35
+ # 2 Related Work
36
+
37
+ # 2.1 Model Selection for Outlier Detection (OD)
38
+
39
+ Most outlier mining work have focused on developing new, better methods for detection on different types of data [2]. In comparison, there are only a few work on the outlier model selection problem –which detector and hyperparameter(s) to use on a new task– all of which require some labeled data. Recent work include AutoOD [29] that focuses on automatic neural architecture search, however, it is limited to deep autoencoder based detection, and more importantly it relies on hold-out labeled data for evaluation. Similarly, PyODDS [30] and TODS [25] both require ground truth labels.
40
+
41
+ To our knowledge, there is no existing work on the general unsupervised outlier model selection (UOMS) problem, which is considerably more challenging, as (1) model evaluation is infeasible due to the lack of any ground truth labels, and (2) model comparison of different heterogeneous detectors is infeasible due to the lack of a universal OD loss function.
42
+
43
+ We note that some OD methods do have a loss function; e.g. auto-encoders [9, 63] aim to minimize reconstruction error for modeling the inliers, and one-class classification (OCSVM [38], SVDD [46], etc.) aims to maximize margin to the origin or minimize the radius of a data-enclosing hyperball. There is also work on model selection for one-class models [7, 54], however, those are limited to this specific family of methods and do not apply in the general case. Our proposed METAOD is not limited to one specific model family, but can select among any (heterogeneous) set of detectors.
44
+
45
+ # 2.2 Model Selection in ML, AutoML, Meta-Learning
46
+
47
+ Model selection refers to the process of algorithm selection and/or hyperparameter optimization (HO). With the advent of complex (e.g. deep) models, HO in high dimensions has become impractical to be human-powered [59]. As such, automating ML pipelines has seen a surge of attention [18]. Meta-learning has been a key contributor to the AutoML effort [41, 49, 58].
48
+
49
+ Supervised Model Selection: Most existing work focus on the supervised setting, and use hold-out data with labels. Randomized [3], bandit-based [27], and Bayesian optimization (BO) techniques [40] are various state-of-the-art (SOTA) approaches to HO. Specifically sequential model-based BO [19, 22] evaluates hold-out performance at various initial hyperparameter configurations (HC), where a (smooth) surrogate function is fit to the resulting $\langle \mathrm { H C }$ , performancei pairs, which is then used to strategically query other HCs, e.g., via hyper-gradient based search [15]. Meta-learning has also been employed [13, 52], e.g., to find promising initialization for (i.e. warm-starting) BO [14, 51].
50
+
51
+ Note that all of these approaches rely on multiple model evaluations (i.e., performance queries) for various HCs, and hence cannot be applied to the unsupervised outlier model selection problem.
52
+
53
+ Unsupervised Model Selection: Unsupervised ML tasks (e.g., clustering) poses additional challenges for model selection [12, 47]. Nonetheless, those exhibit established objective criteria that enable model comparison, unlike OD. For example, BO methods still apply where the surrogate can be trained on hHC, objective valuei pairs, for which meta-learning can provide favorable priors.
54
+
55
+ Task-independent meta-learning [1], that simply identifies the globally best model on historical tasks, applies to the unsupervised setting and hence OD. This can be refined by identifying the best model on not all, but similar tasks, where task similarity is measured in the meta-feature space via clustering [23] or nearest neighbors [33]. This type of similarity-based recommendations points to a connection between algorithm selection and collaborative filtering (CF), first recognized by Stern et al. [44]. The most related to UOMS is CF under cold start, where evaluations are not-available (in our case, infeasible) for a new user (in our case, task). There have been a number of work using meta-learning for the cold-start recommendation problem [4, 26, 50], and vice versa, using CF solutions for ML algorithm selection [32, 56]. We tailor these to UOMS and compare to METAOD in the experiments.
56
+
57
+ # 3 Unsupervised Outlier Model Selection via Meta-learning
58
+
59
+ # 3.1 Problem Statement
60
+
61
+ We consider the model selection problem for unsupervised outlier detection, which we refer to as UOMS (unsupervised outlier model selection) hereafter. Given a new dataset, without any labels, the problem is to select both (i) a detector/algorithm and $( i i )$ its associated hyperparameter(s) (HP). The former is a discrete choice, given the finite set of existing detection algorithms. The latter is continuous, and hence induces infinitely many candidate models.
62
+
63
+ Under certain assumptions, such as performance changing smoothly in the HP space, a HP configuration can be selected iteratively based on evaluations on several other carefully-chosen configurations. Importantly however, OD is not amenable for such iterative search over models—evaluations are not possible due to the lack of labels and absence of a universal objective criterion. The selection of a model, therefore, is to be done without building or evaluating any model on the new dataset. Given this constraint, we discretize the HP space for each candidate detector to make the search space tractable, which induces a finite pool of models denoted $\pmb { \mathcal { M } } = \{ M _ { 1 } , \dots , M _ { m } \}$ . Each model $M \in \mathcal { M }$ can be seen as a $\{$ {detector, configuration $\}$ pair, where the configuration depicts a specific set of values for the detector’s HP(s). (See Appendix A for details.) Then, the UOMS problem is stated as follows:
64
+
65
+ Problem 1 (Unsupervised Outlier Model Selection (UOMS)) Given a new input dataset (i.e., detection task) $\mathbf { D } _ { t e s t } \bar { = } \left( \mathbf { X } _ { t e s t } \right)$ without any labels, Select a model $M \in \mathcal { M }$ to employ on $\mathbf { X } _ { t e s t }$ .
66
+
67
+ # 3.2 Proposed METAOD
68
+
69
+ In this work we consider the UOMS problem and propose a meta-learning based solution, leveraging past experience on historical detection tasks. As such, our METAOD relies on
70
+
71
+ • a collection of historical outlier detection datasets $\mathbf { \mathcal { D } } _ { \mathrm { t r a i n } } = \{ \mathbf { D } _ { 1 } , \dots , \mathbf { D } _ { n } \}$ , namely, a meta-train
72
+ database with ground truth labels, i.e., $\{ \mathbf { D } _ { i } = ( \mathbf { X } _ { i } , \mathbf { y } _ { i } ) \} _ { i = 1 } ^ { n }$ , and
73
+ • the historical performances of the pool of candidate models, $\mathbf { \mathcal { M } }$ , on the meta-train datasets. We denote by $\mathbf { P } \in \mathbb { R } ^ { n \times m }$ the performance matrix, where $\mathbf { P } _ { i j }$ corresponds to the $j$ -th model $M _ { j }$ ’s performance2 on the $i$ -th meta-train dataset $\mathbf { D } _ { i }$ .
74
+
75
+ Note that model performance can be evaluated on the historical meta-train datasets as they contain ground truth labels, which however is not the case for any newcoming task at test time.
76
+
77
+ Our METAOD consists of two-phases: offline (meta-)training of the meta-learner on $\pmb { \mathcal { D } } _ { \mathrm { t r a i n } }$ , and online prediction that enables unsupervised model selection at test time for $\mathbf { D _ { \mathrm { t e s t } } }$ . Arguably, the running time of the offline phase is not critical. In contrast, model selection for a newcoming task should incur small run-time overhead, as it precedes the actual building of the selected OD model. Fig. 1 summarizes the process and the major components of METAOD, where we highlight the components transferred from offline (meta-learning) to online stage (model selection) in blue. We also provide the detailed steps of METAOD in pseudo-code, for both meta-training (offline) and model selection (online), in Appendix D Algo. 1.
78
+
79
+ # 3.2.1 (Meta-)Training (Offline)
80
+
81
+ In principle, meta-learning carries over prior experience on a set of historical tasks to “do better” on a new task. Such improvement can be unlocked only if the new task resembles and thus can build on at least some of the historical tasks (such as learning ice-skating given prior experience with roller-blading), rather than representing completely unrelated phenomena. This entails defining an effective way to capture task similarity between an input task and the historical tasks at hand.
82
+
83
+ In machine learning, similarity between meta-train and test datasets are quantified through characteristic features of a dataset, also known as meta-features. Those typically capture statistical properties of the data distributions. (See survey [49] for various types of meta-features.)
84
+
85
+ To capture prior experience, METAOD first constructs the performance matrix $\mathbf { P }$ by running/building and evaluating all the $m$ models in our defined model space $\mathbf { \mathcal { M } }$ on all the $n$ meta-train datasets $\mathcal { D } _ { \mathrm { t r a i n } }$ .3 To capture task similarity, it then extracts a set of $d$ meta-features from each meta-train dataset, denoted by $\mathbf { M } = \psi ( \{ \mathbf { X } _ { 1 } ^ { \cdot } , \dots , \mathbf { X } _ { n } \} ) \in \mathbb { R } ^ { n \times d }$ where $\psi ( \cdot )$ depicts the feature extraction module. We defer the details on the meta-feature specifics to $\ S 3 . 3$ .
86
+
87
+ At this stage, it is easy to recognize the connection between the UOMS and the collaborative filtering (CF) under cold start problems. Simply put, meta-train datasets are akin to existing users in CF that have prior evaluations on a set of models that are akin to the item-set in CF. The test task is akin to a newcoming user with no prior evaluations (and in our case, no possible future evaluation either), which however exhibits some pre-defined features.
88
+
89
+ Capitalizing on this connection, we take a matrix factorization based approach where $\mathbf { P }$ is approximated by the dot product of what-we-call dataset matrix $\mathbf { U } \in \mathbb { R } ^ { n \times k }$ and model matrix $\mathbf { V } \in \mathbf { \hat { \mathbb { R } } } ^ { m \times k }$ The intent is to capture the inherent dataset-to-model affinity via the dot product similarity in the $k$ -dimensional latent space, such that $\mathbf { P } _ { i j } \approx \mathbf { U } _ { i } \mathbf { V } _ { j } ^ { \ T }$ where matrix subscript denotes the row.
90
+
91
+ What loss criterion is suitable for the factorization? In CF the typical goal is top- $k$ item recommendation. In METAOD, we aim to select the model with the best performance on a task which demands top-1 optimization. Therefore, we discard least squares and instead optimize the rank-based (row- or dataset-wise) discounted cumulative gain (DCG) [21],
92
+
93
+ $$
94
+ \operatorname* { m a x } _ { { \bf U } , { \bf V } } \ \sum _ { i = 1 } ^ { n } \mathrm { D C G } _ { i } ( { \bf P } _ { i } , { \bf U } _ { i } { \bf V } ^ { T } ) \ .
95
+ $$
96
+
97
+ The factorization is solved via alternating optimization, where initialization plays an important role for such non-convex problems. We find that initializing $\mathbf { U }$ , denoted $\mathbf { U } ^ { ( 0 ) }$ , based on meta-features facilitates stable training, potentially by hinting at inherent similarities among datasets as compared to random initialization. Specifically, an embedding function $\phi ( \cdot )$ is used to set $\mathbf { U } ^ { ( 0 ) } : = \phi ( \mathbf { M } )$ for $\phi : \mathbb { R } ^ { d } \mapsto \mathbb { R } ^ { k }$ , $k < d$ . Details on objective criteria and optimization are deferred to $\ S 3 . 4$ .
98
+
99
+ By construction, matrix factorization is transductive. On the other hand, we would need $\mathbf { U } _ { \mathrm { t e s t } }$ to be able to estimate performances of the model set $\mathbf { \mathcal { M } }$ on a new dataset $\mathbf { X } _ { \mathrm { t e s t } }$ . To this end, one can learn an (inductive) multi-output regression model that maps the meta-features onto the latent features. We simplify by learning a regression function $f : \mathbb { R } ^ { \dot { k } } \mapsto \mathbb { R } ^ { k }$ that maps the (lower dimensional) embedding features $\phi ( \mathbf { M } )$ (which are also used to initialize U) onto the final optimized U. Note that this requires an inductive embedding function $\phi ( \cdot )$ to be applicable to newcoming datasets. In implementation, we use PCA for $\phi ( \cdot )$ and a random forest regressor for $f ( \cdot )$ although METAOD is flexible to accommodate any others provided they are inductive.
100
+
101
+ Remark: METAOD improves over the existing methods that use CF in machine learning model selection (see $\ S 2 . 2 )$ in two aspects. First, METAOD builds specialized landmarker features tailored for capturing outlying characteristics of a dataset, while the existing ML model selection mainly uses generic statistical features (see $\ S 3 . 3 )$ . Second, METAOD uses a customized (backpropagatable/smooth) rank-based loss in CF for more effective top-1 optimization (see $\ S 3 . 4$ ), while existing approaches mainly leverage mean squared loss (MSE).
102
+
103
+ # 3.2.2 Prediction for Unsupervised Model Selection (Online)
104
+
105
+ Meta-training stage yields the estimated functions $\psi ( \cdot ) , \phi ( \cdot )$ , and $f ( \cdot )$ as well as the model matrix $\mathbf { V } \in \mathbb { R } ^ { m \times k }$ , which we save for test time (See Fig. 1). Given a new dataset $\mathbf { X } _ { \mathrm { t e s t } }$ for OD, METAOD first computes the corresponding meta-features as $\mathbf { \bar { M } } _ { \mathrm { t e s t } } : = \psi ( \mathbf { X } _ { \mathrm { t e s t } } ) \in \mathbb { R } ^ { d }$ . Those are then embedded via $\phi ( \mathbf { M } _ { \mathrm { t e s t } } ) \in \mathbb { R } ^ { k }$ , which are regressed to obtain the latent features, i.e., $\mathbf { U } _ { \mathrm { t e s t } } : = f ( \phi ( \mathbf { M } _ { \mathrm { t e s t } } ) ) \in \mathbb { R } ^ { k }$ Model set performances are predicted as $\mathbf { P } _ { \mathrm { t e s t } } : = \mathbf { U } _ { \mathrm { t e s t } } \mathbf { V } ^ { T } \in \mathbb { R } ^ { m }$ . Finally, the model with the largest predicted performance is outputted as the selected model, that is,
106
+
107
+ $$
108
+ \arg \operatorname* { m a x } _ { j } ~ \langle ~ f ( \phi ( \psi ( { \bf X } _ { \mathrm { t e s t } } ) ) ) , { \bf V } _ { j } ~ \rangle ~ .
109
+ $$
110
+
111
+ Remark: Notice that model selection by Eq. (2) for a newcoming dataset is solely based on its meta-features and other pre-trained components from meta-learning. It does not rely on ground-truth labels or any OD model evaluations, therefore, METAOD provides unsupervised outlier model selection. Further, it does not require choosing or tuning any values at test time, and hence is fully automatic. In terms of computation, test-time embedding by $\phi$ (PCA) and regression by $f$ (regression trees) take near-constant time given the small number of meta-features, embedding dimensions, and trees of fixed depth. Moreover, we use meta-features with computational complexity linear in the dataset size as we describe next.
112
+
113
+ # 3.3 Meta-Features for Outlier Detection
114
+
115
+ A key part of METAOD is the extraction of meta-features that capture the important characteristics of an arbitrary dataset. Existing outlier detection models have different methodological designs (e.g., density, distance, angle, etc. based) and different assumptions around the topology of outliers (e.g., global, local, clustered). As a result, we expect different models to perform differently depending on the input dataset and the nature of outliers it exhibits—hence no “winner”. In our meta-learning approach, the goal is to identify the datasets in the meta-train database that exhibit similar characteristics to a given test dataset, and focus on models that do well on those similar datasets. This is akin to recommending to a new user those items liked by similar users.
116
+
117
+ To this end, we extract meta-features that can be organized into two categories: (1) statistical features, and (2) landmarker features. Broadly speaking, the former captures statistical properties of the underlying data distributions; e.g., min, max, variance, skewness, covariance, etc. of the features and feature combinations. (See Appendix B Table 3 for the complete list.) These kinds of meta-features have been commonly used in the AutoML literature [5].
118
+
119
+ ![](images/152c22b7a74d39034f73788d645e1522e6cccaac9328075bb76f524cbba57196.jpg)
120
+ Figure 1: METAOD overview; components that transfer from offline (meta-learning) to online (model selection) phase shown in blue; namely, meta-feature extractors $( \psi )$ , embedding model $( \phi )$ , regressor $f$ , dataset matrix $\mathbf { U }$ , and model matrix $\mathbf { V }$ . For the online phase, the input dataset $\mathbf { X } _ { \mathrm { t e s t } }$ and the predicted model performance $\mathbf { P _ { \mathrm { t e s t } } }$ are denoted in yellow.
121
+
122
+ The optimal set of meta-features has been shown to be application-dependent [49]. Therefore, perhaps more important are the landmarker features, which are problem-specific, and aim to capture the outlying characteristics of a dataset. The idea is to apply a few of the fast, easy-to-construct OD models on a dataset and extract features from (i) the structure of the estimated OD model, and (ii) its output outlier scores. For the OD-specific landmarkers, we use four OD algorithms: iForest [31], HBOS [17], LODA [34], and PCA [20] (reconstruction error as outlier score). We choose the four OD algorithms due to their efficiency and diversity (as a group). First, they are all fast algorithms and able to handle large, high-dimensional datasets [2]. This makes the meta-feature generation efficient and practical in the real world. Second, these four OD algorithms as a group show decent diversity (i.e., internal detection mechanism) to capture rich outlying characteristics. Consider iForest as an example. It creates a set of what-is-called extremely randomized trees that define the model structure, from which we extract structural features such as average horizontal and vertical tree imbalance. As another example, LODA builds on random-projection histograms from which we extract features such as entropy. In addition, based on the list of outlier scores from these models, we compute features such as dispersion, max consecutive gap in the sorted order, etc. We elaborate on the details of the landmarker features in Appendix B.2.
123
+
124
+ # 3.4 Meta-Learning Objective and Training
125
+
126
+ # 3.4.1 Rank-based Criterion
127
+
128
+ A typical loss criterion for matrix factorization is the mean squared error (MSE), a.k.a. the Frobenius norm of the error matrix $\mathbf { P } - \mathbf { U } \mathbf { V } ^ { T }$ . While having nice properties from an optimization perspective, MSE does not (at least directly) concern with the ranking quality. In contrast, our goal is to rank the models for each dataset row-wise, as model selection concerns with picking the best possible model to employ. Therefore, we use a rank-based criterion called DCG from the information retrieval literature [21]. For a given ranking, DCG is given as
129
+
130
+ $$
131
+ \mathrm { D C G } = \sum _ { r } { \frac { b ^ { r e l } - 1 } { \log _ { 2 } ( r + 1 ) } }
132
+ $$
133
+
134
+ where rel_ $\cdot ^ { r }$ depicts the true relevance of the item ranked at the $r$ -th position and $b$ is a scalar (typically set to 2). In our setting, we use the performance of a model to reflect its true relevance to a dataset. As such, DCG for dataset $i$ is re-written as
135
+
136
+ $$
137
+ \mathrm { D C G } _ { i } = \sum _ { j = 1 } ^ { m } { \frac { b ^ { \mathbf { P } _ { i j } } - 1 } { \log _ { 2 } ( 1 + \sum _ { k = 1 } ^ { m } \mathbb { 1 } [ { \widehat { \mathbf { P } } } _ { i j } \leq { \widehat { \mathbf { P } } } _ { i k } ] ) } }
138
+ $$
139
+
140
+ where $\widehat { \mathbf { P } } _ { i j } = \langle \mathbf { U } _ { i } , \mathbf { V } _ { j } \rangle$ is the predicted performance that dictates the ranking order. Intuitively, ranking high-performing models at the top leads to higher DCG, and a larger $b$ increases the emphasis on the quality of models at the higher rank positions.
141
+
142
+ A challenge with DCG is that it is not differentiable, unlike MSE, as it involves ranking/sorting. Specifically, the sum term in the denominator of Eq. (4) uses the (nonsmooth) indicator function to obtain the position of model $j$ as ranked by the estimated performances. We circumvent this challenge by replacing the indicator function by the (smooth) sigmoid approximation [16] as follows.
143
+
144
+ $$
145
+ \mathrm { D C G } _ { i } \approx \mathrm { s D C G } _ { i } = \sum _ { j = 1 } ^ { m } \frac { b ^ { \mathbf { P } _ { i j } } - 1 } { \log _ { 2 } ( 1 + \sum _ { k = 1 } ^ { m } \sigma ( \widehat { \mathbf { P } } _ { i k } - \widehat { \mathbf { P } } _ { i j } ) ) }
146
+ $$
147
+
148
+ # 3.4.2 Initialization & Alternating Optimization
149
+
150
+ Overall we optimize the smoothed criterion, sDCG, over all meta-train datasets $\mathbf { \mathcal { D } } _ { \operatorname { t r a i n } } = \{ \mathbf { D } _ { i } \} _ { i = 1 } ^ { n }$ as
151
+
152
+ $$
153
+ \operatorname* { m i n } _ { \mathbf { U } , \mathbf { V } } L = - \sum _ { i = 1 } ^ { n } \mathrm { s D C G } _ { i } ( \mathbf { P } _ { i } , \mathbf { U } _ { i } \mathbf { V } ^ { T } ) \ ,
154
+ $$
155
+
156
+ by alternatingly solving for $\mathbf { U }$ as we fix $\mathbf { V }$ (and vice versa) by gradient descent. We initialize $\mathbf { U }$ by leveraging the meta-features, which are embedded to a space with the same size as U. By capturing the latent similarities among the datasets, such an initialization not only accelerates convergence [62] but also facilitates convergence to a better local optimum. $\mathbf { V }$ is initialized from a unit Normal.
157
+
158
+ As we aim to maximize the total dataset-wise DCG, we make a pass over meta-train datasets one by one at each epoch. For brevity, we give the gradients for $\mathbf { U } _ { i }$ and $\mathbf { V } _ { j }$ in Eq.s (7) and (8), respectively.
159
+
160
+ $$
161
+ { \frac { \partial L } { \partial \mathbf { U } _ { i } } } = \ln { ( 2 ) } \sum _ { j = 1 } ^ { m } \left[ { \frac { b ^ { \mathbf { P } _ { i j } } - 1 } { \beta _ { j } ^ { i } \ln ^ { 2 } { ( \beta _ { j } ^ { i } ) } } } \sum _ { k \neq j } \sigma ( w _ { j k } ^ { i } ) { ( 1 - \sigma ( w _ { j k } ^ { i } ) ) } ( \mathbf { V } _ { k } - \mathbf { V } _ { j } ) \right]
162
+ $$
163
+
164
+ $$
165
+ \frac { \partial L } { \partial \mathbf { V } _ { j } } = - \ln { ( 2 ) } \sum _ { j = 1 } ^ { m } \left[ \frac { b ^ { \mathbf { P } _ { i j } } - 1 } { \beta _ { j } ^ { i } \ln ^ { 2 } { ( \beta _ { j } ^ { i } ) } } { \sum _ { k \neq j } { \sigma } ( w _ { j k } ^ { i } ) } ( 1 - \sigma ( w _ { j k } ^ { i } ) ) \mathbf { U } _ { i } \right]
166
+ $$
167
+
168
+ where $w _ { j k } ^ { i } = \langle \mathbf { U } _ { i } , ( \mathbf { V } _ { k } - \mathbf { V } _ { j } ) \rangle$ and $\begin{array} { r } { \beta _ { j } ^ { i } = \frac { 3 } { 2 } + \sum _ { k \neq j } \sigma ( w _ { j k } ^ { i } ) } \end{array}$ ; see derivations in Appendix C.
169
+
170
+ # 4 Experiments
171
+
172
+ # 4.1 Experiment Setting
173
+
174
+ Model Set and Evaluation. We pair 8 SOTA OD algorithms and their corresponding hyperparameters to compose a model set $\mathbf { \mathcal { M } }$ with 302 unique models. (See Appendix A Table 2 for the complete list.) We evaluate METAOD and the baselines on 2 testbeds introduced below, resp. with 100 and 62 datasets, via cross-validation where datasets are split into meta-train/test in each fold. For each testbed, we first generate the performance matrix $\mathbf { P }$ , by evaluating the models from $\mathbf { \mathcal { M } }$ against the benchmark datasets in the testbed. For randomized detectors (random-split trees/random projections/etc.), we run five independent trials and record the average performance. For consistency, all models are built using the PyOD library [61] on an Intel i7-9700 $@ 3 . 0 0$ GHz, 64GB RAM, 8-core workstation. We compare two methods statistically, using the pairwise Wilcoxon signed rank test on performances across datasets (significance level $p < 0 . 0 5$ ).
175
+
176
+ Testbed Setup. Meta-learning works well if a new task can leverage prior knowledge; e.g., mastering motorcycle can benefit from bike riding experience. As such, METAOD relies on the assumption that a newcoming test dataset shares similarity with some meta-train datasets. We create two testbeds with different train/test dataset similarity, to systematically study the effect of task similarity.
177
+
178
+ 1. Proof-of-Concept (POC) testbed contains 100 datasets that form clusters of similar datasets, where 5 different detection tasks (“siblings”) are created from each one of 20 “mothersets”. 2. Stress Testing (ST) testbed consists of 62 independent datasets from 3 different public-domain OD dataset repositories , which exhibit relatively lower similarity to one another.
179
+
180
+ We refer to Appendix E for the complete list of datasets and details on testbed generation. Fig. 2 illustrates the differences between POC and ST testbeds, where the meta-features of their constituting datasets are embedded to 2-D by t-SNE [48]. By construction, POC consists of clusters and hence exhibits higher task/dataset similarity as compared to ST.
181
+
182
+ ![](images/187806346b4a18b8a40e7703cb4981866a220c736e383e1d0c277715f175d301.jpg)
183
+ Figure 2: 2-D embedding of datasets in (left) POC and (right) ST. POC exhibits higher task similarity, wherein “siblings” (marked by same color) form clusters. ST contains independent datasets with no apparent clusters.
184
+
185
+ Baselines. Being the first work for UOMS, METAOD does not have immediate competing baselines. Therefore we employ simple ideas and tailor some existing methods for comparison. We also create 2 variations of METAOD (marked with $\dagger .$ ) for ablation analysis.
186
+
187
+ In Appendix F we give detailed descriptions of all 10 baselines. Briefly, they are organized as follows: (i) no model selection always employs the same popular model, namely (1) LOF [6] or (2) iForest [31], or the ensemble of all the models called (3) Mega Ensemble (ME); (ii) simple metalearners include (4) Global Best (GB) that selects the model with the largest avg. performance across meta-train datasets, (5) ISAC [23] and (6) ARGOSMART (AS) [33]; and (iii) optimization-based meta-learners include (7) Supervised Surrogates (SS) [55] and (8) ALORS [32].
188
+
189
+ Variants of METAOD are (9) $\mathbf { \dagger M E T A O D \_ C }$ where performance and meta-feature matrices are concatenated as $\mathbf { C } = [ \mathbf { P } , \mathbf { M } ] \in \mathbb { R } ^ { n \times ( m + d ) }$ , before factorization, $\mathbf { C } \approx \mathbf { U } \mathbf { V } ^ { T }$ . Given a test dataset, zeroconcatenated meta-features are projected and reconstructed as $[ \widehat { \mathbf { P } } _ { \mathrm { t e s t } } ; \widehat { \mathbf { M } } _ { \mathrm { t e s t } } ] : = [ 0 \ldots 0 ; \mathbf { M } _ { \mathrm { n e w } } ] \mathbf { V } \mathbf { V } ^ { T }$ ; and (10) $\mathbf { \dagger M E T A O D \_ F }$ where $\mathbf { U }$ is fixed at $\phi ( \mathbf { M } )$ after the embedding step and only $\mathbf { V }$ is optimized.
190
+
191
+ Additionally, we report Empirical Upper Bound (EUB) (only) for POC, as the performance of the best model on a dataset’s 4 “siblings”; this (valuable) information is not available in practice–hence “upper bound”. For ST with lower task similarity, we include Random Selection (RS) as baseline.
192
+
193
+ # 4.2 POC Testbed Results
194
+
195
+ Testbed Setting. POC testbed is built to simulate the scenario where there are similar meta-train tasks to a given test task. We use the benchmark datasets4 by Emmott et al. [11], who created “childsets” from 20 independent “mothersets” by sampling. Consequently, the childsets generated from the same motherset using the same generation properties (e.g., the frequency of anomalies) can be deemed as “siblings” with large similarity. We build the POC testbed by using 5 siblings from each motherset, resulting in 100 datasets. We split them into 5 folds for cross-validation, each test fold containing 20 independent childsets without siblings.
196
+
197
+ ![](images/8c692434cc48d91fe3db1887282b8347589eea80e647c27d770a69a1f7751713.jpg)
198
+ Figure 3: Comparison of avg. rank (lower is better) of methods w.r.t. performance across datasets in POC. Mean AP across datasets (higher is better) shown on lines. METAOD is the topperforming meta-learner, and comparable to EUB.
199
+
200
+ Results. In Fig. 3, we observe that METAOD is superior to all baseline methods w.r.t. the average rank and mean average precision (MAP), and performs comparably to the Empirical Upper Bound (EUB). Table 1 (left) shows that METAOD is the only meta-learner that is not significantly different from both EUB $( \mathbf { M A P = } 0 . 2 0 5 1 )$ ) and the $_ { 4 - t h }$ best model (0.2185). Moreover, METAOD is significantly better than the baselines that do not employ any model selection (LOF (0.1282), iForest (0.1536), and ME (0.1382)), as well as all the other meta-learners including GB (0.1524), ISAC (0.1658) and ALORS (0.1728). For the full POC evaluation, see Appendix G.1.
201
+
202
+ Averaging all models (ME) does not lead to good performance as one may expect. As shown in Fig. 3, ME is the worst baseline by average rank in the POC testbed. Using a single detector, e.g., iForest, is significantly better. This is mainly because some models perform poorly on any given dataset, and ensembling all the models indiscriminately draws overall performance down. Using selective ensembles [36] could be beneficial, however, ensembles of many models are expensive to build in practice. In contrast, METAOD is fast at test time and selects without building any models.
203
+
204
+ <table><tr><td>Ours</td><td>Baseline</td><td>p-value</td><td>Ours</td><td>Baseline</td><td>p-value</td></tr><tr><td>MetaOD MetaOD</td><td>EUB 4-th Best</td><td>0.0522 0.0929</td><td>MetaOD MetaOD</td><td>58-th Best RS</td><td>0.0517 0.0001</td></tr><tr><td>MetaOD</td><td>LOF</td><td>0.0013</td><td>MetaOD</td><td>LOF</td><td>0.0001</td></tr><tr><td>MetaOD</td><td>iForest</td><td>0.0090</td><td>MetaOD</td><td>iForest</td><td>0.1129</td></tr><tr><td>MetaOD</td><td></td><td>0.0004</td><td>MetaOD</td><td></td><td>0.0001</td></tr><tr><td></td><td>ME</td><td></td><td></td><td>ME</td><td></td></tr><tr><td>MetaOD</td><td>GB</td><td>0.0051</td><td>MetaOD</td><td>GB</td><td>0.0030</td></tr><tr><td>MetaOD</td><td>ISAC</td><td>0.0019</td><td>MetaOD</td><td>ISAC</td><td>0.0006</td></tr><tr><td>MetaOD</td><td>AS</td><td>0.2959</td><td>MetaOD</td><td>AS</td><td>0.0009</td></tr><tr><td>MetaOD</td><td>SS</td><td>0.7938</td><td>MetaOD</td><td>SS</td><td>0.0190</td></tr><tr><td>MetaOD</td><td>ALORS</td><td>0.0025</td><td>MetaOD</td><td>ALORS</td><td>0.0001</td></tr><tr><td>MetaOD</td><td>MetaOD_C</td><td>0.6874</td><td>MetaOD</td><td>MetaOD_C</td><td>0.0001</td></tr><tr><td>MetaOD</td><td>MetaOD_F</td><td>0.1165</td><td>MetaOD</td><td>MetaOD_F</td><td>0.0001</td></tr></table>
205
+
206
+ Meta-learners perform significantly better than methods without model selection. In particular, four meta-learners (METAOD, SS, METAOD_C, METAOD_F) significantly outperform single outlier detection methods (LOF and iForest) as well as the Mega Ensemble (ME) that averages all the models. METAOD respectively has $5 8 . 7 4 \%$ , $3 2 . 4 8 \%$ , and $4 7 . 2 5 \%$ higher MAP over LOF, iForest, and ME. These results signify the benefits of model selection.
207
+
208
+ Optimization-based meta learners generally perform better than simple meta learners. Top-3 meta learners by average rank (METAOD, SS, and METAOD_C) are all optimization-based and significantly outperform simple meta-learners like ISAC as shown in Fig. 3. Simple meta-learners weigh meta-features equally for task similarity, whereas others learn which meta-features matter (e.g., regression on meta-features), leading to better results. We find that METAOD respectively achieves $3 3 . 5 3 \%$ , $2 2 . 7 4 \%$ , and $4 . 7 3 \%$ higher MAP than simple meta-learners including GB, ISAC, and AS.
209
+
210
+ # 4.3 ST Testbed Results
211
+
212
+ Testbed Setting. When meta-train datasets lack similarity to the test dataset, it is hard to capitalize on prior experience. In the extreme case, meta-learning may not perform better than no-model-selection baselines, e.g., a single detector. To investigate the impact of the train/test similarity on meta-learning performance, we build the ST testbed that consists of 62 public-domain datasets from 3 different repositories (See Appendix E Table 4) with relatively low similarity as shown in Fig. 2. For evaluation on ST, we use leave-one-out cross validation; each time using 61 datasets as meta-train.
213
+
214
+ ![](images/cea78d2a5ca86db9c2179a749d4c94eb12b3952736319ec3d367f8d281767d81.jpg)
215
+ Table 1: Pairwise statistical test results between METAOD and baselines by Wilcoxon signed rank test. Statistically better method shown in bold (both marked bold if no significance). In (left) POC, METAOD is the only meta-learner with no diff. from both EUB and the 4- th best model. In (right) ST, METAOD is the only meta-learner with no statistical diff. from the $5 8 – t h$ best model. It is statistically better than all except iForest.
216
+ Figure 4: Comparison of avg. rank (lower is better) of methods w.r.t. performance across datasets in ST. Mean AP (higher is better) shown on lines. METAOD outperforms all baselines.
217
+
218
+ Results. For the ST testbed, METAOD still outperforms all baseline methods w.r.t. average rank and MAP as shown in Fig. 4. Table 1 (right) shows that METAOD (0.3382) could select, from a pool of 302, the model that is as good as the $5 8 – t h$ best model (top $20 \%$ ) per dataset (0.3513) in this challenging testbed. The comparable model changes from the $4 { - } t h$ best per dataset in POC to $5 8 – t h$ best in ST, which is expected due to the lower task similarity to leverage in ST. Notably, all other baselines are worse than the $8 0 { - } t h$ best model with statistical significance. Moreover, METAOD is significantly better than all baselines except iForest. Note that METAOD also significantly outperforms RS, showing that it is able to exploit the meta-train database despite limited task similarity and not simply resorting to random picking. These results suggest that METAOD is a good choice under various extent of similarity among train/test datasets. We refer to Appendix G.2 for detailed ST results on individual ST datasets.
219
+
220
+ Training stability affects performance for optimization-based methods. Notably, several optimization-based meta-learners, such as ALORS and METAOD_C, do not perform well for ST. We find that the training process of matrix factorization is not stable when latent similarities are weak. In METAOD, we employ two strategies that help stabilize the training. First, we leverage meta-feature based (rather than random) initialization. Second, we use cyclical learning rates that help escape saddle points for better local optima [43]. Consequently, METAOD (0.3382) significantly outperforms ALORS (0.2981) and METAOD_C (0.1946) with $1 3 . 4 5 \%$ and $7 3 . 7 9 \%$ higher MAP.
221
+
222
+ Global methods outperform local methods under limited task similarity. In ST, datasets are less similar and simple meta-learners that leverage task similarity locally often perform poorly. For example, AS selects the model based on the 1-NN, and is likely to fail if the most similar meta-train task is still quite dissimilar to the current task. Notably, the global meta-learner GB outperforms AS and ISAC. Note the opposite ordering among these methods in POC as shown in Fig. 3. In short, effectiveness of simple meta-learners tends to be sensitive to the train/test dataset similarity, which makes them hard to use in general. In contrast, METAOD performs well in both settings.
223
+
224
+ # 4.4 Runtime Analysis
225
+
226
+ Empowered by meta-training, METAOD (meta-feature generation and model selection) takes less than 1 second on most test datasets, as shown in Fig. 5, where it incurs negligible overhead relative to building/training the selected outlier model ${ \approx } 1 0 \%$ on avg.). Fig. 6 corroborates the statement by showing the comparison on the 10 largest datasets in POC.
227
+
228
+ ![](images/08e711edb6192c86913d387d4db9bc55fff133351b793d7d96be8cf9d2ae443d.jpg)
229
+ Figure 5: METAOD running time at test time in sec.s (left), and percentage of time relative to building the selected model (right). Notice that it is fast, and incurs negligible computational overhead.
230
+
231
+ ![](images/3977eaf46a3db5377566f002678a0687980b13583178d8bce5583d3ad9f4761a.jpg)
232
+ Figure 6: Time for METAOD vs. training of the selected model (on 10 largest datasets in POC). METAOD incurs only negligible overhead (diff. shown w/ black arrows).
233
+
234
+ Notably, meta-feature extraction may be trivially parallelized whereas the model selection is even faster, e.g., using SUOD [60], effectively taking constant time (See $\ S 3 . 2 . 2 )$ .
235
+
236
+ # 5 Conclusion
237
+
238
+ We addressed the unsupervised outlier model selection (UOMS) problem without relying on any labels, model evaluations or comparisons for the first time. Our proposed METAOD is a meta-learner, and builds on an extensive pool of historical outlier detection datasets and models. Given a new task, it selects a model based on the past performances of models on similar historical tasks. To effectively capture task similarity, we designed novel problem-specific meta-features. Importantly, METAOD is $( i )$ fully automatic, requiring no supervision at test time, and $( i i )$ lightweight, incurring relatively small selection time overhead prior to outlier model building. Extensive experiments on two large testbeds showed that METAOD significantly improves detection performance over always using some of the most popular outlier models as well as several other meta-learners tailored for UOMS.
239
+
240
+ We open-source1 METAOD and our meta-learning database for use in practice. We expect metalearning to become more powerful as the meta-train database grows. Therefore, we also share all our code and testbeds with the community to stimulate further advances in automating UOMS. Future work can address UOMS in the continuous hyperparameter space, leverage self-aware learning [28] and conformal prediction [39] to estimate the confidence in selection, and explore the potential bias and fairness issues in OD model selection [10, 42].
241
+
242
+ References
243
+ [1] S. M. Abdulrahman, P. Brazdil, J. N. van Rijn, and J. Vanschoren. Speeding up algorithm selection using average ranking and active testing by introducing runtime. Mach. Learn., 107(1):79–108, 2018.
244
+ [2] C. C. Aggarwal. Outlier Analysis. Springer, 2013.
245
+ [3] J. Bergstra and Y. Bengio. Random search for hyper-parameter optimization. J. Mach. Learn. Res., 13:281–305, 2012.
246
+ [4] H. Bharadhwaj. Meta-learning for user cold-start recommendation. In IJCNN, pages 1–8. IEEE, 2019.
247
+ [5] B. Bilalli, A. Abelló Gamazo, and T. Aluja Banet. On the predictive power of meta-features in OpenML. International Journal of Applied Mathematics and Computer Science, 27(4):697–712, 2017.
248
+ [6] M. M. Breunig, H.-P. Kriegel, R. T. Ng, and J. Sander. LOF: Identifying density-based local outliers. In SIGMOD Conference, pages 93–104. ACM, 2000. SIGMOD Record 29(2), June 2000.
249
+ [7] E. Burnaev, P. Erofeev, and D. Smolyakov. Model selection for anomaly detection. In ICMV, volume 9875 of SPIE Proceedings, page 987525. SPIE, 2015.
250
+ [8] G. O. Campos, A. Zimek, J. Sander, R. J. G. B. Campello, B. Micenková, E. Schubert, I. Assent, and M. E. Houle. On the evaluation of unsupervised outlier detection: measures, datasets, and an empirical study. Data Min. Knowl. Discov., 30(4):891–927, 2016.
251
+ [9] J. Chen, S. Sathe, C. C. Aggarwal, and D. S. Turaga. Outlier detection with autoencoder ensembles. In SDM, pages 90–98. SIAM, 2017.
252
+ [10] I. Davidson and S. S. Ravi. A framework for determining the fairness of outlier detection. In G. D. Giacomo, A. Catalá, B. Dilkina, M. Milano, S. Barro, A. Bugarín, and J. Lang, editors, ECAI 2020 - 24th European Conference on Artificial Intelligence, 29 August-8 September 2020, Santiago de Compostela, Spain, August 29 - September 8, 2020 - Including 10th Conference on Prestigious Applications of Artificial Intelligence (PAIS 2020), volume 325 of Frontiers in Artificial Intelligence and Applications, pages 2465–2472. IOS Press, 2020.
253
+ [11] A. Emmott, S. Das, T. G. Dietterich, A. Fern, and W.-K. Wong. Anomaly detection meta-analysis benchmarks. 2016.
254
+ [12] X. Fan, Y. Yue, P. Sarkar, and Y. X. R. Wang. A unified framework for tuning hyperparameters in clustering problems. CoRR, abs/1910.08018, 2019.
255
+ [13] M. Feurer, B. Letham, and E. Bakshy. Scalable meta-learning for bayesian optimization. CoRR, abs/1802.02219, 2018.
256
+ [14] M. Feurer, J. T. Springenberg, and F. Hutter. Initializing bayesian hyperparameter optimization via meta-learning. In AAAI, pages 1128–1135. AAAI Press, 2015.
257
+ [15] L. Franceschi, M. Donini, P. Frasconi, and M. Pontil. Forward and reverse gradient-based hyperparameter optimization. In ICML, volume 70 of Proceedings of Machine Learning Research, pages 1165–1173. PMLR, 2017.
258
+ [16] J. Fréry, A. Habrard, M. Sebban, O. Caelen, and L. He-Guelton. Efficient top rank optimization with gradient boosting for supervised anomaly detection. In ECML/PKDD, volume 10534, pages 20–35, 2017.
259
+ [17] M. Goldstein and A. Dengel. Histogram-based outlier score (hbos): A fast unsupervised anomaly detection algorithm. KI-2012: Poster and Demo Track, pages 59–63, 2012.
260
+ [18] X. He, K. Zhao, and X. Chu. Automl: A survey of the state-of-the-art. Knowl. Based Syst., 212:106622, 2021.
261
+ [19] F. Hutter, H. H. Hoos, and K. Leyton-Brown. Sequential model-based optimization for general algorithm configuration. In C. A. C. Coello, editor, LION, volume 6683 of Lecture Notes in Computer Science, pages 507–523. Springer, 2011.
262
+ [20] T. Idé and H. Kashima. Eigenspace-based anomaly detection in computer systems. In W. Kim, R. Kohavi, J. Gehrke, and W. DuMouchel, editors, KDD, pages 440–449. ACM, 2004.
263
+ [21] K. Järvelin and J. Kekäläinen. Cumulated gain-based evaluation of IR techniques. ACM Transactions on Information Systems (TOIS), 20(4):422–446, 2002.
264
+ [22] D. R. Jones, M. Schonlau, and W. J. Welch. Efficient global optimization of expensive black-box functions. J. Global Optimization, 13(4):455–492, 1998.
265
+ [23] S. Kadioglu, Y. Malitsky, M. Sellmann, and K. Tierney. Isac - instance-specific algorithm configuration. In ECAI, volume 215 of Frontiers in Artificial Intelligence and Applications, pages 751–756. IOS Press, 2010.
266
+ [24] H.-P. Kriegel, M. Schubert, and A. Zimek. Angle-based outlier detection in high-dimensional data. In Y. Li, B. Liu, and S. Sarawagi, editors, KDD, pages 444–452. ACM, 2008.
267
+ [25] K. Lai, D. Zha, G. Wang, J. Xu, Y. Zhao, D. Kumar, Y. Chen, P. Zumkhawaka, M. Wan, D. Martinez, and X. Hu. TODS: an automated time series outlier detection system. In Thirty-Fifth AAAI Conference on Artificial Intelligence, AAAI 2021, Thirty-Third Conference on Innovative Applications of Artificial Intelligence, IAAI 2021, The Eleventh Symposium on Educational Advances in Artificial Intelligence, EAAI 2021, Virtual Event, February 2-9, 2021, pages 16060–16062. AAAI Press, 2021.
268
+ [26] H. Lee, J. Im, S. Jang, H. Cho, and S. Chung. MeLU: Meta-learned user preference estimator for cold-start recommendation. In KDD, pages 1073–1082. ACM, 2019.
269
+ [27] L. Li, K. G. Jamieson, G. DeSalvo, A. Rostamizadeh, and A. Talwalkar. Hyperband: A novel bandit-based approach to hyperparameter optimization. J. Mach. Learn. Res., 18:185:1–185:52, 2017.
270
+ [28] L. Li, M. L. Littman, T. J. Walsh, and A. L. Strehl. Knows what it knows: a framework for self-aware learning. Mach. Learn., 82(3):399–443, 2011.
271
+ [29] Y. Li, Z. Chen, D. Zha, K. Zhou, H. Jin, H. Chen, and X. Hu. Autood: Neural architecture search for outlier detection. In 37th IEEE International Conference on Data Engineering, ICDE 2021, Chania, Greece, April 19-22, 2021, pages 2117–2122. IEEE, 2021.
272
+ [30] Y. Li, D. Zha, P. K. Venugopal, N. Zou, and X. Hu. Pyodds: An end-to-end outlier detection system with automated machine learning. In A. E. F. Seghrouchni, G. Sukthankar, T. Liu, and M. van Steen, editors, Companion of The 2020 Web Conference 2020, Taipei, Taiwan, April 20-24, 2020, pages 153–157. ACM / IW3C2, 2020.
273
+ [31] F. T. Liu, K. M. Ting, and Z.-H. Zhou. Isolation forest. In ICDM, pages 413–422. IEEE Computer Society, 2008.
274
+ [32] M. Misir and M. Sebag. Alors: An algorithm recommender system. Artif. Intell., 244:291–314, 2017.
275
+ [33] M. Nikolic, F. Maric, and P. Janicic. Simple algorithm portfolio for sat. Artif. Intell. Rev., 40(4):457–465, 2013.
276
+ [34] T. Pevný. Loda: Lightweight on-line detector of anomalies. Mach. Learn., 102(2):275–304, 2016.
277
+ [35] S. Ramaswamy, R. Rastogi, and K. Shim. Efficient algorithms for mining outliers from large data sets. In W. Chen, J. F. Naughton, and P. A. Bernstein, editors, SIGMOD Conference, pages 427–438. ACM, 2000. SIGMOD Record 29(2), June 2000.
278
+ [36] S. Rayana and L. Akoglu. Less is more: Building selective anomaly ensembles. ACM Trans. Knowl. Discov. Data, 10(4):42:1–42:33, 2016.
279
+ [37] B. Schölkopf, J. C. Platt, J. Shawe-Taylor, A. J. Smola, and R. C. Williamson. Estimating the support of a high-dimensional distribution. Neural Computation, 13(7):1443–1471, July 2001.
280
+ [38] B. Schölkopf, R. C. Williamson, A. J. Smola, J. Shawe-Taylor, and J. C. Platt. Support vector method for novelty detection. In NIPS, pages 582–588. The MIT Press, 1999.
281
+ [39] G. Shafer and V. Vovk. A tutorial on conformal prediction. J. Mach. Learn. Res., 9:371–421, 2008.
282
+ [40] B. Shahriari, K. Swersky, Z. Wang, R. P. Adams, and N. de Freitas. Taking the human out of the loop: A review of bayesian optimization. Proc. IEEE, 104(1):148–175, 2016.
283
+ [41] R. E. Shawi, M. Maher, and S. Sakr. Automated machine learning: State-of-the-art and open challenges. CoRR, abs/1906.02287, 2019.
284
+ [42] S. Shekhar, N. Shah, and L. Akoglu. Fairod: Fairness-aware outlier detection. In M. Fourcade, B. Kuipers, S. Lazar, and D. K. Mulligan, editors, AIES ’21: AAAI/ACM Conference on AI, Ethics, and Society, Virtual Event, USA, May 19-21, 2021, pages 210–220. ACM, 2021.
285
+ [43] L. N. Smith. Cyclical learning rates for training neural networks. In WACV, pages 464–472. IEEE Computer Society, 2017.
286
+ [44] D. H. Stern, H. Samulowitz, R. Herbrich, T. Graepel, L. Pulina, and A. Tacchella. Collaborative expert portfolio management. In AAAI. AAAI Press, 2010.
287
+ [45] J. Tang, Z. Chen, A. W. Fu, and D. W. Cheung. Enhancing effectiveness of outlier detections for low density patterns. In PAKDD, volume 2336 of Lecture Notes in Computer Science, pages 535–548, 2002.
288
+ [46] D. M. J. Tax and R. P. W. Duin. Support vector data description. Mach. Learn., 54(1):45–66, 2004.
289
+ [47] S. Vaithyanathan and B. Dom. Generalized model selection for unsupervised learning in high dimensions. In NIPS, pages 970–976. The MIT Press, 1999.
290
+ [48] L. van der Maaten and G. Hinton. Visualizing high-dimensional data using t-sne. J. of Mach. Lear. Res., 9:2579–2605, 2008.
291
+ [49] J. Vanschoren. Meta-learning. In Automated Machine Learning, pages 35–61. Springer, 2019.
292
+ [50] M. Vartak, A. Thiagarajan, C. Miranda, J. Bratman, and H. Larochelle. A meta-learning perspective on cold-start recommendations for items. In NeurIPS, pages 6904–6914, 2017.
293
+ [51] M. Wistuba, N. Schilling, and L. Schmidt-Thieme. Learning hyperparameter optimization initializations. In DSAA, pages 1–10. IEEE, 2015.
294
+ [52] M. Wistuba, N. Schilling, and L. Schmidt-Thieme. Scalable gaussian process-based transfer surrogates for hyperparameter optimization. Mach. Learn., 107(1):43–78, 2018.
295
+ [53] D. H. Wolpert and W. G. Macready. No free lunch theorems for optimization. IEEE Trans. Evolutionary Computation, 1(1):67–82, 1997.
296
+ [54] Y. Xiao, H. Wang, L. Zhang, and W. Xu. Two methods of selecting gaussian kernel parameters for one-class SVM and their application to fault detection. Knowl. Based Syst., 59:75–84, 2014.
297
+ [55] L. Xu, F. Hutter, J. Shen, H. H. Hoos, and K. Leyton-Brown. Satzilla2012: Improved algorithm selection based on cost-sensitive classification models. Proceedings of SAT Challenge, pages 57–58, 2012.
298
+ [56] C. Yang, Y. Akimoto, D. W. Kim, and M. Udell. OBOE: collaborative filtering for AutoML model selection. In KDD, pages 1173–1183. ACM, 2019.
299
+ [57] L. Yang and A. Shami. On hyperparameter optimization of machine learning algorithms: Theory and practice. Neurocomputing, 415:295–316, 2020.
300
+ [58] Q. Yao, M. Wang, H. J. Escalante, I. Guyon, Y. Hu, Y. Li, W. Tu, Q. Yang, and Y. Yu. Taking human out of learning applications: A survey on automated machine learning. CoRR, abs/1810.13306, 2018.
301
+ [59] T. Yu and H. Zhu. Hyper-parameter optimization: A review of algorithms and applications. CoRR, abs/2003.05689, 2020.
302
+ [60] Y. Zhao, X. Hu, C. Cheng, C. Wang, C. Wan, W. Wang, J. Yang, H. Bai, Z. Li, C. Xiao, Y. Wang, Z. Qiao, J. Sun, and L. Akoglu. SUOD: Accelerating large-scale unsupervised heterogeneous outlier detection. Proceedings of Machine Learning and Systems, 2021.
303
+ [61] Y. Zhao, Z. Nasrullah, and Z. Li. PyOD: A python toolbox for scalable outlier detection. J. Mach. Learn. Res., 20:96:1–96:7, 2019.
304
+ [62] Z. Zheng, J. Yang, and Y. Zhu. Initialization enhancer for non-negative matrix factorization. Eng. Appl. Artif. Intell., 20(1):101–110, 2007.
305
+ [63] C. Zhou and R. C. Paffenroth. Anomaly detection with robust deep autoencoders. In KDD, pages 665–674. ACM, 2017.
parse/train/KCd-3Pz8VjM/KCd-3Pz8VjM_content_list.json ADDED
@@ -0,0 +1,1365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Automatic Unsupervised Outlier Model Selection ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 200,
8
+ 122,
9
+ 795,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yue Zhao Carnegie Mellon University zhaoy@cmu.edu ",
17
+ "bbox": [
18
+ 202,
19
+ 200,
20
+ 385,
21
+ 242
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Ryan A. Rossi Adobe Research ryrossi@adobe.com ",
28
+ "bbox": [
29
+ 421,
30
+ 200,
31
+ 570,
32
+ 242
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Leman Akoglu Carnegie Mellon University lakoglu@andrew.cmu.edu ",
39
+ "bbox": [
40
+ 606,
41
+ 202,
42
+ 795,
43
+ 243
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 279,
54
+ 535,
55
+ 295
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Given an unsupervised outlier detection task on a new dataset, how can we automatically select a good outlier detection algorithm and its hyperparameter(s) (collectively called a model)? In this work, we tackle the unsupervised outlier model selection (UOMS) problem, and propose METAOD, a principled, data-driven approach to UOMS based on meta-learning. The UOMS problem is notoriously challenging, as compared to model selection for classification and clustering, since (i) model evaluation is infeasible due to the lack of hold-out data with labels, and $( i i )$ model comparison is infeasible due to the lack of a universal objective function. METAOD capitalizes on the performances of a large body of detection models on historical outlier detection benchmark datasets, and carries over this prior experience to automatically select an effective model to be employed on a new dataset without any labels, model evaluations or model comparisons. To capture task similarity within our meta-learning framework, we introduce specialized metafeatures that quantify outlying characteristics of a dataset. Extensive experiments show that selecting a model by METAOD significantly outperforms no model selection (e.g. always using the same popular model or the ensemble of many) as well as other meta-learning techniques that we tailored for UOMS. Moreover upon (meta-)training, METAOD is extremely efficient at test time; selecting from a large pool of $3 0 0 +$ models takes less than 1 second for a new task. We open-source1 METAOD and our meta-learning database for practical use and to foster further research on the UOMS problem. ",
62
+ "bbox": [
63
+ 232,
64
+ 310,
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
+ 174,
76
+ 627,
77
+ 310,
78
+ 645
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The lack of a universal learning model that performs well on all problem instances is well recognized [53]. Therefore, effort has been directed toward building a toolbox of various models and algorithms, which has given rise to the problem of algorithm selection and hyperparameter tuning (i.e., model selection). The same problem applies to outlier detection (OD); a long list of detectors has been developed in the last decades [2], with no universal “winners” [8]. ",
85
+ "bbox": [
86
+ 174,
87
+ 660,
88
+ 825,
89
+ 728
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In supervised learning, model selection can be done via performance evaluation of each trained model on labeled hold-out data. In contrast, unsupervised OD does not have access to any labels, nor is there a universal objective function that could guide model selection (cf. clustering where a loss function enables model comparison). Unsupervised model selection for OD is challenging exactly because both model evaluation and comparison are not feasible—which renders any trial-and-error techniques like grid search or iterative strategies like Bayesian hyperparameter optimization [57] inapplicable. Consequently, there has been no principled work on unsupervised outlier model selection—rather, the choice of a model for a new task (or dataset) remains “a black art”. A typical approach is to use popular OD algorithms, like LOF [6] and iForest [31] (often with default hyperparameters) which are shown to be competitive on average on many benchmark datasets. However, as noted earlier, none of these methods can universally outperform others on all tasks [8]. We argue that model selection is exactly how one can “break the performance ceiling” for OD. ",
96
+ "bbox": [
97
+ 174,
98
+ 734,
99
+ 825,
100
+ 873
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 173,
109
+ 92,
110
+ 823,
111
+ 119
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "In this work, we tackle the unsupervised outlier model selection (UOMS) problem systematically. To that end, we introduce (to the best of our knowledge) the first UOMS approach that selects an effective model to be employed on a new detection task without any model evaluation (using labels) or model comparison (via loss criteria). Our proposed method, called METAOD, is based on meta-learning, and stands on the prior performances of a large collection of existing detection models on an extensive corpora of historical outlier detection benchmark datasets. In a nutshell, the idea is to estimate a candidate model’s performance on the new task (with no labels) based on its prior performance on similar historical tasks. We remark that METAOD is strictly a model selection technique – that picks one model (a detector and its associated hyperparameter(s)) from a pool of (existing) candidate models – and not yet-another outlier detection algorithm itself. ",
118
+ "bbox": [
119
+ 174,
120
+ 126,
121
+ 825,
122
+ 263
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "In leveraging meta-learning, we establish a connection between the UOMS problem and the cold-start problem in collaborative filtering (CF), where the new task in UOMS is akin to a new user in CF (with no available evaluations, hence cold-start) and the model space is analogous to the item-set. Differently, OD necessitates the identification of a single best model (i.e., top-1 rank), whereas CF typically operates in a top- $k$ setting. In CF, future recommendations can be improved based on user feedback which is not applicable to OD. Moreover, METAOD requires the effective learning of task similarities based on characteristic dataset features (namely, meta-features) that capture the outlying properties within a dataset, whereas user features (location, age, etc.) in CF may be readily available. ",
129
+ "bbox": [
130
+ 173,
131
+ 270,
132
+ 825,
133
+ 381
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "In summary, the key contributions of this work include the following: ",
140
+ "bbox": [
141
+ 174,
142
+ 387,
143
+ 629,
144
+ 401
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "• First Approach to Unsupervised Outlier Model Selection: We propose METAOD, (to our knowledge) the first effort on unsupervised model selection for OD tasks. Notably, given a new dataset (i.e., at test time), it does not rely on any ground-truth labels for model evaluation or any loss or heuristic criterion for model comparison. METAOD stands on meta-learning in principle, and historical collections of outlier models and benchmark datasets in practice. ",
151
+ "bbox": [
152
+ 174,
153
+ 409,
154
+ 825,
155
+ 478
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "• Problem Formulation: We establish a correspondence between UOMS and CF under cold-start, where the new task “better likes” a model that performs better on similar historical tasks. ",
162
+ "bbox": [
163
+ 174,
164
+ 479,
165
+ 825,
166
+ 507
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "• Specialized Meta-features: We design novel meta-features to capture the outlying characteristics in a dataset toward effectively quantifying task similarity specifically among OD tasks. ",
173
+ "bbox": [
174
+ 174,
175
+ 510,
176
+ 821,
177
+ 537
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "• Effectiveness and Efficiency: Through extensive experiments on two benchmark testbeds that we have constructed, we show that selecting a model by METAOD for each given task significantly outperforms always using a popular model like iForest, as well as other possible meta-learning approaches that we tailored for UOMS. Moreover, METAOD incurs negligible run-time overhead ( $\\cdot < 1$ second) at test time. ",
184
+ "bbox": [
185
+ 174,
186
+ 540,
187
+ 825,
188
+ 608
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "• Open-source Platform: We open-source1 METAOD and our meta-learning database for the community to use it for UOMS in practice, and to extend it with new datasets and models. We expect the growth of the database would make meta-learning based approaches, like METAOD, more powerful and also help foster further research on this new direction to an important problem. ",
195
+ "bbox": [
196
+ 174,
197
+ 609,
198
+ 825,
199
+ 666
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "2 Related Work ",
206
+ "text_level": 1,
207
+ "bbox": [
208
+ 174,
209
+ 696,
210
+ 321,
211
+ 714
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "2.1 Model Selection for Outlier Detection (OD) ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 174,
221
+ 736,
222
+ 513,
223
+ 751
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "Most outlier mining work have focused on developing new, better methods for detection on different types of data [2]. In comparison, there are only a few work on the outlier model selection problem –which detector and hyperparameter(s) to use on a new task– all of which require some labeled data. Recent work include AutoOD [29] that focuses on automatic neural architecture search, however, it is limited to deep autoencoder based detection, and more importantly it relies on hold-out labeled data for evaluation. Similarly, PyODDS [30] and TODS [25] both require ground truth labels. ",
230
+ "bbox": [
231
+ 173,
232
+ 766,
233
+ 825,
234
+ 849
235
+ ],
236
+ "page_idx": 1
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "To our knowledge, there is no existing work on the general unsupervised outlier model selection (UOMS) problem, which is considerably more challenging, as (1) model evaluation is infeasible due to the lack of any ground truth labels, and (2) model comparison of different heterogeneous detectors is infeasible due to the lack of a universal OD loss function. ",
241
+ "bbox": [
242
+ 174,
243
+ 856,
244
+ 823,
245
+ 911
246
+ ],
247
+ "page_idx": 1
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "We note that some OD methods do have a loss function; e.g. auto-encoders [9, 63] aim to minimize reconstruction error for modeling the inliers, and one-class classification (OCSVM [38], SVDD [46], etc.) aims to maximize margin to the origin or minimize the radius of a data-enclosing hyperball. There is also work on model selection for one-class models [7, 54], however, those are limited to this specific family of methods and do not apply in the general case. Our proposed METAOD is not limited to one specific model family, but can select among any (heterogeneous) set of detectors. ",
252
+ "bbox": [
253
+ 174,
254
+ 92,
255
+ 825,
256
+ 174
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "2.2 Model Selection in ML, AutoML, Meta-Learning ",
263
+ "text_level": 1,
264
+ "bbox": [
265
+ 174,
266
+ 195,
267
+ 553,
268
+ 210
269
+ ],
270
+ "page_idx": 2
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "Model selection refers to the process of algorithm selection and/or hyperparameter optimization (HO). With the advent of complex (e.g. deep) models, HO in high dimensions has become impractical to be human-powered [59]. As such, automating ML pipelines has seen a surge of attention [18]. Meta-learning has been a key contributor to the AutoML effort [41, 49, 58]. ",
275
+ "bbox": [
276
+ 174,
277
+ 223,
278
+ 825,
279
+ 279
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "Supervised Model Selection: Most existing work focus on the supervised setting, and use hold-out data with labels. Randomized [3], bandit-based [27], and Bayesian optimization (BO) techniques [40] are various state-of-the-art (SOTA) approaches to HO. Specifically sequential model-based BO [19, 22] evaluates hold-out performance at various initial hyperparameter configurations (HC), where a (smooth) surrogate function is fit to the resulting $\\langle \\mathrm { H C }$ , performancei pairs, which is then used to strategically query other HCs, e.g., via hyper-gradient based search [15]. Meta-learning has also been employed [13, 52], e.g., to find promising initialization for (i.e. warm-starting) BO [14, 51]. ",
286
+ "bbox": [
287
+ 174,
288
+ 286,
289
+ 825,
290
+ 383
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "Note that all of these approaches rely on multiple model evaluations (i.e., performance queries) for various HCs, and hence cannot be applied to the unsupervised outlier model selection problem. ",
297
+ "bbox": [
298
+ 173,
299
+ 388,
300
+ 821,
301
+ 417
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "Unsupervised Model Selection: Unsupervised ML tasks (e.g., clustering) poses additional challenges for model selection [12, 47]. Nonetheless, those exhibit established objective criteria that enable model comparison, unlike OD. For example, BO methods still apply where the surrogate can be trained on hHC, objective valuei pairs, for which meta-learning can provide favorable priors. ",
308
+ "bbox": [
309
+ 174,
310
+ 424,
311
+ 825,
312
+ 479
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "Task-independent meta-learning [1], that simply identifies the globally best model on historical tasks, applies to the unsupervised setting and hence OD. This can be refined by identifying the best model on not all, but similar tasks, where task similarity is measured in the meta-feature space via clustering [23] or nearest neighbors [33]. This type of similarity-based recommendations points to a connection between algorithm selection and collaborative filtering (CF), first recognized by Stern et al. [44]. The most related to UOMS is CF under cold start, where evaluations are not-available (in our case, infeasible) for a new user (in our case, task). There have been a number of work using meta-learning for the cold-start recommendation problem [4, 26, 50], and vice versa, using CF solutions for ML algorithm selection [32, 56]. We tailor these to UOMS and compare to METAOD in the experiments. ",
319
+ "bbox": [
320
+ 174,
321
+ 484,
322
+ 826,
323
+ 611
324
+ ],
325
+ "page_idx": 2
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "3 Unsupervised Outlier Model Selection via Meta-learning ",
330
+ "text_level": 1,
331
+ "bbox": [
332
+ 176,
333
+ 635,
334
+ 676,
335
+ 652
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "3.1 Problem Statement ",
342
+ "text_level": 1,
343
+ "bbox": [
344
+ 174,
345
+ 669,
346
+ 346,
347
+ 684
348
+ ],
349
+ "page_idx": 2
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "We consider the model selection problem for unsupervised outlier detection, which we refer to as UOMS (unsupervised outlier model selection) hereafter. Given a new dataset, without any labels, the problem is to select both (i) a detector/algorithm and $( i i )$ its associated hyperparameter(s) (HP). The former is a discrete choice, given the finite set of existing detection algorithms. The latter is continuous, and hence induces infinitely many candidate models. ",
354
+ "bbox": [
355
+ 174,
356
+ 696,
357
+ 825,
358
+ 766
359
+ ],
360
+ "page_idx": 2
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "Under certain assumptions, such as performance changing smoothly in the HP space, a HP configuration can be selected iteratively based on evaluations on several other carefully-chosen configurations. Importantly however, OD is not amenable for such iterative search over models—evaluations are not possible due to the lack of labels and absence of a universal objective criterion. The selection of a model, therefore, is to be done without building or evaluating any model on the new dataset. Given this constraint, we discretize the HP space for each candidate detector to make the search space tractable, which induces a finite pool of models denoted $\\pmb { \\mathcal { M } } = \\{ M _ { 1 } , \\dots , M _ { m } \\}$ . Each model $M \\in \\mathcal { M }$ can be seen as a $\\{$ {detector, configuration $\\}$ pair, where the configuration depicts a specific set of values for the detector’s HP(s). (See Appendix A for details.) Then, the UOMS problem is stated as follows: ",
365
+ "bbox": [
366
+ 174,
367
+ 772,
368
+ 825,
369
+ 911
370
+ ],
371
+ "page_idx": 2
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "Problem 1 (Unsupervised Outlier Model Selection (UOMS)) Given a new input dataset (i.e., detection task) $\\mathbf { D } _ { t e s t } \\bar { = } \\left( \\mathbf { X } _ { t e s t } \\right)$ without any labels, Select a model $M \\in \\mathcal { M }$ to employ on $\\mathbf { X } _ { t e s t }$ . ",
376
+ "bbox": [
377
+ 171,
378
+ 90,
379
+ 825,
380
+ 119
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "3.2 Proposed METAOD ",
387
+ "text_level": 1,
388
+ "bbox": [
389
+ 174,
390
+ 140,
391
+ 348,
392
+ 155
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "In this work we consider the UOMS problem and propose a meta-learning based solution, leveraging past experience on historical detection tasks. As such, our METAOD relies on ",
399
+ "bbox": [
400
+ 171,
401
+ 167,
402
+ 825,
403
+ 195
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "• a collection of historical outlier detection datasets $\\mathbf { \\mathcal { D } } _ { \\mathrm { t r a i n } } = \\{ \\mathbf { D } _ { 1 } , \\dots , \\mathbf { D } _ { n } \\}$ , namely, a meta-train \ndatabase with ground truth labels, i.e., $\\{ \\mathbf { D } _ { i } = ( \\mathbf { X } _ { i } , \\mathbf { y } _ { i } ) \\} _ { i = 1 } ^ { n }$ , and \n• the historical performances of the pool of candidate models, $\\mathbf { \\mathcal { M } }$ , on the meta-train datasets. We denote by $\\mathbf { P } \\in \\mathbb { R } ^ { n \\times m }$ the performance matrix, where $\\mathbf { P } _ { i j }$ corresponds to the $j$ -th model $M _ { j }$ ’s performance2 on the $i$ -th meta-train dataset $\\mathbf { D } _ { i }$ . ",
410
+ "bbox": [
411
+ 173,
412
+ 202,
413
+ 826,
414
+ 273
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "Note that model performance can be evaluated on the historical meta-train datasets as they contain ground truth labels, which however is not the case for any newcoming task at test time. ",
421
+ "bbox": [
422
+ 173,
423
+ 280,
424
+ 823,
425
+ 308
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "Our METAOD consists of two-phases: offline (meta-)training of the meta-learner on $\\pmb { \\mathcal { D } } _ { \\mathrm { t r a i n } }$ , and online prediction that enables unsupervised model selection at test time for $\\mathbf { D _ { \\mathrm { t e s t } } }$ . Arguably, the running time of the offline phase is not critical. In contrast, model selection for a newcoming task should incur small run-time overhead, as it precedes the actual building of the selected OD model. Fig. 1 summarizes the process and the major components of METAOD, where we highlight the components transferred from offline (meta-learning) to online stage (model selection) in blue. We also provide the detailed steps of METAOD in pseudo-code, for both meta-training (offline) and model selection (online), in Appendix D Algo. 1. ",
432
+ "bbox": [
433
+ 173,
434
+ 314,
435
+ 825,
436
+ 426
437
+ ],
438
+ "page_idx": 3
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "3.2.1 (Meta-)Training (Offline) ",
443
+ "text_level": 1,
444
+ "bbox": [
445
+ 174,
446
+ 444,
447
+ 400,
448
+ 459
449
+ ],
450
+ "page_idx": 3
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "In principle, meta-learning carries over prior experience on a set of historical tasks to “do better” on a new task. Such improvement can be unlocked only if the new task resembles and thus can build on at least some of the historical tasks (such as learning ice-skating given prior experience with roller-blading), rather than representing completely unrelated phenomena. This entails defining an effective way to capture task similarity between an input task and the historical tasks at hand. ",
455
+ "bbox": [
456
+ 174,
457
+ 470,
458
+ 825,
459
+ 540
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "In machine learning, similarity between meta-train and test datasets are quantified through characteristic features of a dataset, also known as meta-features. Those typically capture statistical properties of the data distributions. (See survey [49] for various types of meta-features.) ",
466
+ "bbox": [
467
+ 174,
468
+ 546,
469
+ 825,
470
+ 588
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "To capture prior experience, METAOD first constructs the performance matrix $\\mathbf { P }$ by running/building and evaluating all the $m$ models in our defined model space $\\mathbf { \\mathcal { M } }$ on all the $n$ meta-train datasets $\\mathcal { D } _ { \\mathrm { t r a i n } }$ .3 To capture task similarity, it then extracts a set of $d$ meta-features from each meta-train dataset, denoted by $\\mathbf { M } = \\psi ( \\{ \\mathbf { X } _ { 1 } ^ { \\cdot } , \\dots , \\mathbf { X } _ { n } \\} ) \\in \\mathbb { R } ^ { n \\times d }$ where $\\psi ( \\cdot )$ depicts the feature extraction module. We defer the details on the meta-feature specifics to $\\ S 3 . 3$ . ",
477
+ "bbox": [
478
+ 174,
479
+ 594,
480
+ 825,
481
+ 665
482
+ ],
483
+ "page_idx": 3
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "At this stage, it is easy to recognize the connection between the UOMS and the collaborative filtering (CF) under cold start problems. Simply put, meta-train datasets are akin to existing users in CF that have prior evaluations on a set of models that are akin to the item-set in CF. The test task is akin to a newcoming user with no prior evaluations (and in our case, no possible future evaluation either), which however exhibits some pre-defined features. ",
488
+ "bbox": [
489
+ 173,
490
+ 670,
491
+ 825,
492
+ 739
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "Capitalizing on this connection, we take a matrix factorization based approach where $\\mathbf { P }$ is approximated by the dot product of what-we-call dataset matrix $\\mathbf { U } \\in \\mathbb { R } ^ { n \\times k }$ and model matrix $\\mathbf { V } \\in \\mathbf { \\hat { \\mathbb { R } } } ^ { m \\times k }$ The intent is to capture the inherent dataset-to-model affinity via the dot product similarity in the $k$ -dimensional latent space, such that $\\mathbf { P } _ { i j } \\approx \\mathbf { U } _ { i } \\mathbf { V } _ { j } ^ { \\ T }$ where matrix subscript denotes the row. ",
499
+ "bbox": [
500
+ 174,
501
+ 746,
502
+ 825,
503
+ 805
504
+ ],
505
+ "page_idx": 3
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "What loss criterion is suitable for the factorization? In CF the typical goal is top- $k$ item recommendation. In METAOD, we aim to select the model with the best performance on a task which demands top-1 optimization. Therefore, we discard least squares and instead optimize the rank-based (row- or dataset-wise) discounted cumulative gain (DCG) [21], ",
510
+ "bbox": [
511
+ 174,
512
+ 809,
513
+ 825,
514
+ 852
515
+ ],
516
+ "page_idx": 3
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "",
521
+ "bbox": [
522
+ 176,
523
+ 90,
524
+ 529,
525
+ 106
526
+ ],
527
+ "page_idx": 4
528
+ },
529
+ {
530
+ "type": "equation",
531
+ "img_path": "images/10116d30d96eb1ff36aa231668064a121b06b2b146aaf3a5c8be8d39ad034f6d.jpg",
532
+ "text": "$$\n\\operatorname* { m a x } _ { { \\bf U } , { \\bf V } } \\ \\sum _ { i = 1 } ^ { n } \\mathrm { D C G } _ { i } ( { \\bf P } _ { i } , { \\bf U } _ { i } { \\bf V } ^ { T } ) \\ .\n$$",
533
+ "text_format": "latex",
534
+ "bbox": [
535
+ 397,
536
+ 111,
537
+ 601,
538
+ 154
539
+ ],
540
+ "page_idx": 4
541
+ },
542
+ {
543
+ "type": "text",
544
+ "text": "The factorization is solved via alternating optimization, where initialization plays an important role for such non-convex problems. We find that initializing $\\mathbf { U }$ , denoted $\\mathbf { U } ^ { ( 0 ) }$ , based on meta-features facilitates stable training, potentially by hinting at inherent similarities among datasets as compared to random initialization. Specifically, an embedding function $\\phi ( \\cdot )$ is used to set $\\mathbf { U } ^ { ( 0 ) } : = \\phi ( \\mathbf { M } )$ for $\\phi : \\mathbb { R } ^ { d } \\mapsto \\mathbb { R } ^ { k }$ , $k < d$ . Details on objective criteria and optimization are deferred to $\\ S 3 . 4$ . ",
545
+ "bbox": [
546
+ 173,
547
+ 159,
548
+ 825,
549
+ 233
550
+ ],
551
+ "page_idx": 4
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "By construction, matrix factorization is transductive. On the other hand, we would need $\\mathbf { U } _ { \\mathrm { t e s t } }$ to be able to estimate performances of the model set $\\mathbf { \\mathcal { M } }$ on a new dataset $\\mathbf { X } _ { \\mathrm { t e s t } }$ . To this end, one can learn an (inductive) multi-output regression model that maps the meta-features onto the latent features. We simplify by learning a regression function $f : \\mathbb { R } ^ { \\dot { k } } \\mapsto \\mathbb { R } ^ { k }$ that maps the (lower dimensional) embedding features $\\phi ( \\mathbf { M } )$ (which are also used to initialize U) onto the final optimized U. Note that this requires an inductive embedding function $\\phi ( \\cdot )$ to be applicable to newcoming datasets. In implementation, we use PCA for $\\phi ( \\cdot )$ and a random forest regressor for $f ( \\cdot )$ although METAOD is flexible to accommodate any others provided they are inductive. ",
556
+ "bbox": [
557
+ 173,
558
+ 237,
559
+ 825,
560
+ 349
561
+ ],
562
+ "page_idx": 4
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "Remark: METAOD improves over the existing methods that use CF in machine learning model selection (see $\\ S 2 . 2 )$ in two aspects. First, METAOD builds specialized landmarker features tailored for capturing outlying characteristics of a dataset, while the existing ML model selection mainly uses generic statistical features (see $\\ S 3 . 3 )$ . Second, METAOD uses a customized (backpropagatable/smooth) rank-based loss in CF for more effective top-1 optimization (see $\\ S 3 . 4$ ), while existing approaches mainly leverage mean squared loss (MSE). ",
567
+ "bbox": [
568
+ 174,
569
+ 354,
570
+ 825,
571
+ 439
572
+ ],
573
+ "page_idx": 4
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "3.2.2 Prediction for Unsupervised Model Selection (Online) ",
578
+ "text_level": 1,
579
+ "bbox": [
580
+ 174,
581
+ 453,
582
+ 598,
583
+ 468
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "Meta-training stage yields the estimated functions $\\psi ( \\cdot ) , \\phi ( \\cdot )$ , and $f ( \\cdot )$ as well as the model matrix $\\mathbf { V } \\in \\mathbb { R } ^ { m \\times k }$ , which we save for test time (See Fig. 1). Given a new dataset $\\mathbf { X } _ { \\mathrm { t e s t } }$ for OD, METAOD first computes the corresponding meta-features as $\\mathbf { \\bar { M } } _ { \\mathrm { t e s t } } : = \\psi ( \\mathbf { X } _ { \\mathrm { t e s t } } ) \\in \\mathbb { R } ^ { d }$ . Those are then embedded via $\\phi ( \\mathbf { M } _ { \\mathrm { t e s t } } ) \\in \\mathbb { R } ^ { k }$ , which are regressed to obtain the latent features, i.e., $\\mathbf { U } _ { \\mathrm { t e s t } } : = f ( \\phi ( \\mathbf { M } _ { \\mathrm { t e s t } } ) ) \\in \\mathbb { R } ^ { k }$ Model set performances are predicted as $\\mathbf { P } _ { \\mathrm { t e s t } } : = \\mathbf { U } _ { \\mathrm { t e s t } } \\mathbf { V } ^ { T } \\in \\mathbb { R } ^ { m }$ . Finally, the model with the largest predicted performance is outputted as the selected model, that is, ",
590
+ "bbox": [
591
+ 173,
592
+ 476,
593
+ 825,
594
+ 564
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "equation",
600
+ "img_path": "images/83c2c4a3ed830bcee36d746cbb8894f310009588a229b153d06c393ad2e09b2c.jpg",
601
+ "text": "$$\n\\arg \\operatorname* { m a x } _ { j } ~ \\langle ~ f ( \\phi ( \\psi ( { \\bf X } _ { \\mathrm { t e s t } } ) ) ) , { \\bf V } _ { j } ~ \\rangle ~ .\n$$",
602
+ "text_format": "latex",
603
+ "bbox": [
604
+ 383,
605
+ 569,
606
+ 612,
607
+ 593
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "Remark: Notice that model selection by Eq. (2) for a newcoming dataset is solely based on its meta-features and other pre-trained components from meta-learning. It does not rely on ground-truth labels or any OD model evaluations, therefore, METAOD provides unsupervised outlier model selection. Further, it does not require choosing or tuning any values at test time, and hence is fully automatic. In terms of computation, test-time embedding by $\\phi$ (PCA) and regression by $f$ (regression trees) take near-constant time given the small number of meta-features, embedding dimensions, and trees of fixed depth. Moreover, we use meta-features with computational complexity linear in the dataset size as we describe next. ",
614
+ "bbox": [
615
+ 173,
616
+ 598,
617
+ 825,
618
+ 710
619
+ ],
620
+ "page_idx": 4
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "3.3 Meta-Features for Outlier Detection ",
625
+ "text_level": 1,
626
+ "bbox": [
627
+ 174,
628
+ 727,
629
+ 464,
630
+ 741
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "A key part of METAOD is the extraction of meta-features that capture the important characteristics of an arbitrary dataset. Existing outlier detection models have different methodological designs (e.g., density, distance, angle, etc. based) and different assumptions around the topology of outliers (e.g., global, local, clustered). As a result, we expect different models to perform differently depending on the input dataset and the nature of outliers it exhibits—hence no “winner”. In our meta-learning approach, the goal is to identify the datasets in the meta-train database that exhibit similar characteristics to a given test dataset, and focus on models that do well on those similar datasets. This is akin to recommending to a new user those items liked by similar users. ",
637
+ "bbox": [
638
+ 173,
639
+ 752,
640
+ 825,
641
+ 863
642
+ ],
643
+ "page_idx": 4
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "To this end, we extract meta-features that can be organized into two categories: (1) statistical features, and (2) landmarker features. Broadly speaking, the former captures statistical properties of the underlying data distributions; e.g., min, max, variance, skewness, covariance, etc. of the features and feature combinations. (See Appendix B Table 3 for the complete list.) These kinds of meta-features have been commonly used in the AutoML literature [5]. ",
648
+ "bbox": [
649
+ 174,
650
+ 869,
651
+ 825,
652
+ 911
653
+ ],
654
+ "page_idx": 4
655
+ },
656
+ {
657
+ "type": "image",
658
+ "img_path": "images/152c22b7a74d39034f73788d645e1522e6cccaac9328075bb76f524cbba57196.jpg",
659
+ "image_caption": [
660
+ "Figure 1: METAOD overview; components that transfer from offline (meta-learning) to online (model selection) phase shown in blue; namely, meta-feature extractors $( \\psi )$ , embedding model $( \\phi )$ , regressor $f$ , dataset matrix $\\mathbf { U }$ , and model matrix $\\mathbf { V }$ . For the online phase, the input dataset $\\mathbf { X } _ { \\mathrm { t e s t } }$ and the predicted model performance $\\mathbf { P _ { \\mathrm { t e s t } } }$ are denoted in yellow. "
661
+ ],
662
+ "image_footnote": [],
663
+ "bbox": [
664
+ 174,
665
+ 97,
666
+ 640,
667
+ 297
668
+ ],
669
+ "page_idx": 5
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "",
674
+ "bbox": [
675
+ 173,
676
+ 328,
677
+ 823,
678
+ 357
679
+ ],
680
+ "page_idx": 5
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "The optimal set of meta-features has been shown to be application-dependent [49]. Therefore, perhaps more important are the landmarker features, which are problem-specific, and aim to capture the outlying characteristics of a dataset. The idea is to apply a few of the fast, easy-to-construct OD models on a dataset and extract features from (i) the structure of the estimated OD model, and (ii) its output outlier scores. For the OD-specific landmarkers, we use four OD algorithms: iForest [31], HBOS [17], LODA [34], and PCA [20] (reconstruction error as outlier score). We choose the four OD algorithms due to their efficiency and diversity (as a group). First, they are all fast algorithms and able to handle large, high-dimensional datasets [2]. This makes the meta-feature generation efficient and practical in the real world. Second, these four OD algorithms as a group show decent diversity (i.e., internal detection mechanism) to capture rich outlying characteristics. Consider iForest as an example. It creates a set of what-is-called extremely randomized trees that define the model structure, from which we extract structural features such as average horizontal and vertical tree imbalance. As another example, LODA builds on random-projection histograms from which we extract features such as entropy. In addition, based on the list of outlier scores from these models, we compute features such as dispersion, max consecutive gap in the sorted order, etc. We elaborate on the details of the landmarker features in Appendix B.2. ",
685
+ "bbox": [
686
+ 173,
687
+ 363,
688
+ 826,
689
+ 584
690
+ ],
691
+ "page_idx": 5
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "3.4 Meta-Learning Objective and Training ",
696
+ "text_level": 1,
697
+ "bbox": [
698
+ 176,
699
+ 599,
700
+ 483,
701
+ 614
702
+ ],
703
+ "page_idx": 5
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "3.4.1 Rank-based Criterion ",
708
+ "text_level": 1,
709
+ "bbox": [
710
+ 174,
711
+ 625,
712
+ 379,
713
+ 640
714
+ ],
715
+ "page_idx": 5
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "A typical loss criterion for matrix factorization is the mean squared error (MSE), a.k.a. the Frobenius norm of the error matrix $\\mathbf { P } - \\mathbf { U } \\mathbf { V } ^ { T }$ . While having nice properties from an optimization perspective, MSE does not (at least directly) concern with the ranking quality. In contrast, our goal is to rank the models for each dataset row-wise, as model selection concerns with picking the best possible model to employ. Therefore, we use a rank-based criterion called DCG from the information retrieval literature [21]. For a given ranking, DCG is given as ",
720
+ "bbox": [
721
+ 173,
722
+ 648,
723
+ 825,
724
+ 733
725
+ ],
726
+ "page_idx": 5
727
+ },
728
+ {
729
+ "type": "equation",
730
+ "img_path": "images/9a445326ec0da36692c68f4b8c7ad7aebd4b7791fccddb8cd834b81cd30fca1c.jpg",
731
+ "text": "$$\n\\mathrm { D C G } = \\sum _ { r } { \\frac { b ^ { r e l } - 1 } { \\log _ { 2 } ( r + 1 ) } }\n$$",
732
+ "text_format": "latex",
733
+ "bbox": [
734
+ 413,
735
+ 734,
736
+ 583,
737
+ 773
738
+ ],
739
+ "page_idx": 5
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "where rel_ $\\cdot ^ { r }$ depicts the true relevance of the item ranked at the $r$ -th position and $b$ is a scalar (typically set to 2). In our setting, we use the performance of a model to reflect its true relevance to a dataset. As such, DCG for dataset $i$ is re-written as ",
744
+ "bbox": [
745
+ 174,
746
+ 776,
747
+ 826,
748
+ 818
749
+ ],
750
+ "page_idx": 5
751
+ },
752
+ {
753
+ "type": "equation",
754
+ "img_path": "images/f120662b3179486409dc2c82640362b5d6d22e108f50eaaa828f91593cd1d240.jpg",
755
+ "text": "$$\n\\mathrm { D C G } _ { i } = \\sum _ { j = 1 } ^ { m } { \\frac { b ^ { \\mathbf { P } _ { i j } } - 1 } { \\log _ { 2 } ( 1 + \\sum _ { k = 1 } ^ { m } \\mathbb { 1 } [ { \\widehat { \\mathbf { P } } } _ { i j } \\leq { \\widehat { \\mathbf { P } } } _ { i k } ] ) } }\n$$",
756
+ "text_format": "latex",
757
+ "bbox": [
758
+ 348,
759
+ 820,
760
+ 648,
761
+ 863
762
+ ],
763
+ "page_idx": 5
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "where $\\widehat { \\mathbf { P } } _ { i j } = \\langle \\mathbf { U } _ { i } , \\mathbf { V } _ { j } \\rangle$ is the predicted performance that dictates the ranking order. Intuitively, ranking high-performing models at the top leads to higher DCG, and a larger $b$ increases the emphasis on the quality of models at the higher rank positions. ",
768
+ "bbox": [
769
+ 174,
770
+ 868,
771
+ 825,
772
+ 911
773
+ ],
774
+ "page_idx": 5
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "A challenge with DCG is that it is not differentiable, unlike MSE, as it involves ranking/sorting. Specifically, the sum term in the denominator of Eq. (4) uses the (nonsmooth) indicator function to obtain the position of model $j$ as ranked by the estimated performances. We circumvent this challenge by replacing the indicator function by the (smooth) sigmoid approximation [16] as follows. ",
779
+ "bbox": [
780
+ 173,
781
+ 90,
782
+ 825,
783
+ 147
784
+ ],
785
+ "page_idx": 6
786
+ },
787
+ {
788
+ "type": "equation",
789
+ "img_path": "images/d18038f6c773cb994ff53513f5c0b40dfb1b166263fd5f2af64ef7aada393987.jpg",
790
+ "text": "$$\n\\mathrm { D C G } _ { i } \\approx \\mathrm { s D C G } _ { i } = \\sum _ { j = 1 } ^ { m } \\frac { b ^ { \\mathbf { P } _ { i j } } - 1 } { \\log _ { 2 } ( 1 + \\sum _ { k = 1 } ^ { m } \\sigma ( \\widehat { \\mathbf { P } } _ { i k } - \\widehat { \\mathbf { P } } _ { i j } ) ) }\n$$",
791
+ "text_format": "latex",
792
+ "bbox": [
793
+ 313,
794
+ 154,
795
+ 683,
796
+ 196
797
+ ],
798
+ "page_idx": 6
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "3.4.2 Initialization & Alternating Optimization ",
803
+ "text_level": 1,
804
+ "bbox": [
805
+ 173,
806
+ 222,
807
+ 514,
808
+ 238
809
+ ],
810
+ "page_idx": 6
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "Overall we optimize the smoothed criterion, sDCG, over all meta-train datasets $\\mathbf { \\mathcal { D } } _ { \\operatorname { t r a i n } } = \\{ \\mathbf { D } _ { i } \\} _ { i = 1 } ^ { n }$ as ",
815
+ "bbox": [
816
+ 176,
817
+ 244,
818
+ 820,
819
+ 262
820
+ ],
821
+ "page_idx": 6
822
+ },
823
+ {
824
+ "type": "equation",
825
+ "img_path": "images/6447f320bcdde39e0729288d6851afa1eef05e8372624d8ed63af952ad211d38.jpg",
826
+ "text": "$$\n\\operatorname* { m i n } _ { \\mathbf { U } , \\mathbf { V } } L = - \\sum _ { i = 1 } ^ { n } \\mathrm { s D C G } _ { i } ( \\mathbf { P } _ { i } , \\mathbf { U } _ { i } \\mathbf { V } ^ { T } ) \\ ,\n$$",
827
+ "text_format": "latex",
828
+ "bbox": [
829
+ 369,
830
+ 267,
831
+ 625,
832
+ 309
833
+ ],
834
+ "page_idx": 6
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "by alternatingly solving for $\\mathbf { U }$ as we fix $\\mathbf { V }$ (and vice versa) by gradient descent. We initialize $\\mathbf { U }$ by leveraging the meta-features, which are embedded to a space with the same size as U. By capturing the latent similarities among the datasets, such an initialization not only accelerates convergence [62] but also facilitates convergence to a better local optimum. $\\mathbf { V }$ is initialized from a unit Normal. ",
839
+ "bbox": [
840
+ 174,
841
+ 314,
842
+ 825,
843
+ 371
844
+ ],
845
+ "page_idx": 6
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "As we aim to maximize the total dataset-wise DCG, we make a pass over meta-train datasets one by one at each epoch. For brevity, we give the gradients for $\\mathbf { U } _ { i }$ and $\\mathbf { V } _ { j }$ in Eq.s (7) and (8), respectively. ",
850
+ "bbox": [
851
+ 169,
852
+ 376,
853
+ 823,
854
+ 406
855
+ ],
856
+ "page_idx": 6
857
+ },
858
+ {
859
+ "type": "equation",
860
+ "img_path": "images/ad8f469472050f81fc3c73b29757e208f063477138aaa5dde874905d6d7d6cd9.jpg",
861
+ "text": "$$\n{ \\frac { \\partial L } { \\partial \\mathbf { U } _ { i } } } = \\ln { ( 2 ) } \\sum _ { j = 1 } ^ { m } \\left[ { \\frac { b ^ { \\mathbf { P } _ { i j } } - 1 } { \\beta _ { j } ^ { i } \\ln ^ { 2 } { ( \\beta _ { j } ^ { i } ) } } } \\sum _ { k \\neq j } \\sigma ( w _ { j k } ^ { i } ) { ( 1 - \\sigma ( w _ { j k } ^ { i } ) ) } ( \\mathbf { V } _ { k } - \\mathbf { V } _ { j } ) \\right]\n$$",
862
+ "text_format": "latex",
863
+ "bbox": [
864
+ 266,
865
+ 411,
866
+ 728,
867
+ 462
868
+ ],
869
+ "page_idx": 6
870
+ },
871
+ {
872
+ "type": "equation",
873
+ "img_path": "images/3f9cd13756fb894714d6cece14623419ae232aead59871a7a8756a7d4703db71.jpg",
874
+ "text": "$$\n\\frac { \\partial L } { \\partial \\mathbf { V } _ { j } } = - \\ln { ( 2 ) } \\sum _ { j = 1 } ^ { m } \\left[ \\frac { b ^ { \\mathbf { P } _ { i j } } - 1 } { \\beta _ { j } ^ { i } \\ln ^ { 2 } { ( \\beta _ { j } ^ { i } ) } } { \\sum _ { k \\neq j } { \\sigma } ( w _ { j k } ^ { i } ) } ( 1 - \\sigma ( w _ { j k } ^ { i } ) ) \\mathbf { U } _ { i } \\right]\n$$",
875
+ "text_format": "latex",
876
+ "bbox": [
877
+ 287,
878
+ 468,
879
+ 710,
880
+ 518
881
+ ],
882
+ "page_idx": 6
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "where $w _ { j k } ^ { i } = \\langle \\mathbf { U } _ { i } , ( \\mathbf { V } _ { k } - \\mathbf { V } _ { j } ) \\rangle$ and $\\begin{array} { r } { \\beta _ { j } ^ { i } = \\frac { 3 } { 2 } + \\sum _ { k \\neq j } \\sigma ( w _ { j k } ^ { i } ) } \\end{array}$ ; see derivations in Appendix C. ",
887
+ "bbox": [
888
+ 173,
889
+ 522,
890
+ 784,
891
+ 542
892
+ ],
893
+ "page_idx": 6
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "4 Experiments ",
898
+ "text_level": 1,
899
+ "bbox": [
900
+ 173,
901
+ 558,
902
+ 312,
903
+ 575
904
+ ],
905
+ "page_idx": 6
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "4.1 Experiment Setting ",
910
+ "text_level": 1,
911
+ "bbox": [
912
+ 174,
913
+ 588,
914
+ 348,
915
+ 604
916
+ ],
917
+ "page_idx": 6
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Model Set and Evaluation. We pair 8 SOTA OD algorithms and their corresponding hyperparameters to compose a model set $\\mathbf { \\mathcal { M } }$ with 302 unique models. (See Appendix A Table 2 for the complete list.) We evaluate METAOD and the baselines on 2 testbeds introduced below, resp. with 100 and 62 datasets, via cross-validation where datasets are split into meta-train/test in each fold. For each testbed, we first generate the performance matrix $\\mathbf { P }$ , by evaluating the models from $\\mathbf { \\mathcal { M } }$ against the benchmark datasets in the testbed. For randomized detectors (random-split trees/random projections/etc.), we run five independent trials and record the average performance. For consistency, all models are built using the PyOD library [61] on an Intel i7-9700 $@ 3 . 0 0$ GHz, 64GB RAM, 8-core workstation. We compare two methods statistically, using the pairwise Wilcoxon signed rank test on performances across datasets (significance level $p < 0 . 0 5$ ). ",
922
+ "bbox": [
923
+ 173,
924
+ 613,
925
+ 825,
926
+ 753
927
+ ],
928
+ "page_idx": 6
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "Testbed Setup. Meta-learning works well if a new task can leverage prior knowledge; e.g., mastering motorcycle can benefit from bike riding experience. As such, METAOD relies on the assumption that a newcoming test dataset shares similarity with some meta-train datasets. We create two testbeds with different train/test dataset similarity, to systematically study the effect of task similarity. ",
933
+ "bbox": [
934
+ 173,
935
+ 758,
936
+ 825,
937
+ 815
938
+ ],
939
+ "page_idx": 6
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "1. Proof-of-Concept (POC) testbed contains 100 datasets that form clusters of similar datasets, where 5 different detection tasks (“siblings”) are created from each one of 20 “mothersets”. 2. Stress Testing (ST) testbed consists of 62 independent datasets from 3 different public-domain OD dataset repositories , which exhibit relatively lower similarity to one another. ",
944
+ "bbox": [
945
+ 173,
946
+ 820,
947
+ 826,
948
+ 877
949
+ ],
950
+ "page_idx": 6
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "We refer to Appendix E for the complete list of datasets and details on testbed generation. Fig. 2 illustrates the differences between POC and ST testbeds, where the meta-features of their constituting datasets are embedded to 2-D by t-SNE [48]. By construction, POC consists of clusters and hence exhibits higher task/dataset similarity as compared to ST. ",
955
+ "bbox": [
956
+ 173,
957
+ 882,
958
+ 821,
959
+ 911
960
+ ],
961
+ "page_idx": 6
962
+ },
963
+ {
964
+ "type": "image",
965
+ "img_path": "images/187806346b4a18b8a40e7703cb4981866a220c736e383e1d0c277715f175d301.jpg",
966
+ "image_caption": [
967
+ "Figure 2: 2-D embedding of datasets in (left) POC and (right) ST. POC exhibits higher task similarity, wherein “siblings” (marked by same color) form clusters. ST contains independent datasets with no apparent clusters. "
968
+ ],
969
+ "image_footnote": [],
970
+ "bbox": [
971
+ 179,
972
+ 92,
973
+ 411,
974
+ 176
975
+ ],
976
+ "page_idx": 7
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "",
981
+ "bbox": [
982
+ 173,
983
+ 204,
984
+ 823,
985
+ 233
986
+ ],
987
+ "page_idx": 7
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Baselines. Being the first work for UOMS, METAOD does not have immediate competing baselines. Therefore we employ simple ideas and tailor some existing methods for comparison. We also create 2 variations of METAOD (marked with $\\dagger .$ ) for ablation analysis. ",
992
+ "bbox": [
993
+ 176,
994
+ 239,
995
+ 823,
996
+ 281
997
+ ],
998
+ "page_idx": 7
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "In Appendix F we give detailed descriptions of all 10 baselines. Briefly, they are organized as follows: (i) no model selection always employs the same popular model, namely (1) LOF [6] or (2) iForest [31], or the ensemble of all the models called (3) Mega Ensemble (ME); (ii) simple metalearners include (4) Global Best (GB) that selects the model with the largest avg. performance across meta-train datasets, (5) ISAC [23] and (6) ARGOSMART (AS) [33]; and (iii) optimization-based meta-learners include (7) Supervised Surrogates (SS) [55] and (8) ALORS [32]. ",
1003
+ "bbox": [
1004
+ 173,
1005
+ 287,
1006
+ 825,
1007
+ 371
1008
+ ],
1009
+ "page_idx": 7
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "Variants of METAOD are (9) $\\mathbf { \\dagger M E T A O D \\_ C }$ where performance and meta-feature matrices are concatenated as $\\mathbf { C } = [ \\mathbf { P } , \\mathbf { M } ] \\in \\mathbb { R } ^ { n \\times ( m + d ) }$ , before factorization, $\\mathbf { C } \\approx \\mathbf { U } \\mathbf { V } ^ { T }$ . Given a test dataset, zeroconcatenated meta-features are projected and reconstructed as $[ \\widehat { \\mathbf { P } } _ { \\mathrm { t e s t } } ; \\widehat { \\mathbf { M } } _ { \\mathrm { t e s t } } ] : = [ 0 \\ldots 0 ; \\mathbf { M } _ { \\mathrm { n e w } } ] \\mathbf { V } \\mathbf { V } ^ { T }$ ; and (10) $\\mathbf { \\dagger M E T A O D \\_ F }$ where $\\mathbf { U }$ is fixed at $\\phi ( \\mathbf { M } )$ after the embedding step and only $\\mathbf { V }$ is optimized. ",
1014
+ "bbox": [
1015
+ 174,
1016
+ 377,
1017
+ 826,
1018
+ 438
1019
+ ],
1020
+ "page_idx": 7
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Additionally, we report Empirical Upper Bound (EUB) (only) for POC, as the performance of the best model on a dataset’s 4 “siblings”; this (valuable) information is not available in practice–hence “upper bound”. For ST with lower task similarity, we include Random Selection (RS) as baseline. ",
1025
+ "bbox": [
1026
+ 174,
1027
+ 443,
1028
+ 825,
1029
+ 486
1030
+ ],
1031
+ "page_idx": 7
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "4.2 POC Testbed Results ",
1036
+ "text_level": 1,
1037
+ "bbox": [
1038
+ 174,
1039
+ 501,
1040
+ 361,
1041
+ 516
1042
+ ],
1043
+ "page_idx": 7
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Testbed Setting. POC testbed is built to simulate the scenario where there are similar meta-train tasks to a given test task. We use the benchmark datasets4 by Emmott et al. [11], who created “childsets” from 20 independent “mothersets” by sampling. Consequently, the childsets generated from the same motherset using the same generation properties (e.g., the frequency of anomalies) can be deemed as “siblings” with large similarity. We build the POC testbed by using 5 siblings from each motherset, resulting in 100 datasets. We split them into 5 folds for cross-validation, each test fold containing 20 independent childsets without siblings. ",
1048
+ "bbox": [
1049
+ 173,
1050
+ 526,
1051
+ 825,
1052
+ 625
1053
+ ],
1054
+ "page_idx": 7
1055
+ },
1056
+ {
1057
+ "type": "image",
1058
+ "img_path": "images/8c692434cc48d91fe3db1887282b8347589eea80e647c27d770a69a1f7751713.jpg",
1059
+ "image_caption": [
1060
+ "Figure 3: Comparison of avg. rank (lower is better) of methods w.r.t. performance across datasets in POC. Mean AP across datasets (higher is better) shown on lines. METAOD is the topperforming meta-learner, and comparable to EUB. "
1061
+ ],
1062
+ "image_footnote": [],
1063
+ "bbox": [
1064
+ 173,
1065
+ 648,
1066
+ 545,
1067
+ 728
1068
+ ],
1069
+ "page_idx": 7
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Results. In Fig. 3, we observe that METAOD is superior to all baseline methods w.r.t. the average rank and mean average precision (MAP), and performs comparably to the Empirical Upper Bound (EUB). Table 1 (left) shows that METAOD is the only meta-learner that is not significantly different from both EUB $( \\mathbf { M A P = } 0 . 2 0 5 1 )$ ) and the $_ { 4 - t h }$ best model (0.2185). Moreover, METAOD is significantly better than the baselines that do not employ any model selection (LOF (0.1282), iForest (0.1536), and ME (0.1382)), as well as all the other meta-learners including GB (0.1524), ISAC (0.1658) and ALORS (0.1728). For the full POC evaluation, see Appendix G.1. ",
1074
+ "bbox": [
1075
+ 173,
1076
+ 756,
1077
+ 825,
1078
+ 854
1079
+ ],
1080
+ "page_idx": 7
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "Averaging all models (ME) does not lead to good performance as one may expect. As shown in Fig. 3, ME is the worst baseline by average rank in the POC testbed. Using a single detector, e.g., iForest, is significantly better. This is mainly because some models perform poorly on any given dataset, and ensembling all the models indiscriminately draws overall performance down. Using selective ensembles [36] could be beneficial, however, ensembles of many models are expensive to build in practice. In contrast, METAOD is fast at test time and selects without building any models. ",
1085
+ "bbox": [
1086
+ 173,
1087
+ 859,
1088
+ 823,
1089
+ 888
1090
+ ],
1091
+ "page_idx": 7
1092
+ },
1093
+ {
1094
+ "type": "table",
1095
+ "img_path": "images/3624836da7717a2e3f08013452f17b4ca3c11ce4c4124a8df034d06629bf1f9f.jpg",
1096
+ "table_caption": [],
1097
+ "table_footnote": [],
1098
+ "table_body": "<table><tr><td>Ours</td><td>Baseline</td><td>p-value</td><td>Ours</td><td>Baseline</td><td>p-value</td></tr><tr><td>MetaOD MetaOD</td><td>EUB 4-th Best</td><td>0.0522 0.0929</td><td>MetaOD MetaOD</td><td>58-th Best RS</td><td>0.0517 0.0001</td></tr><tr><td>MetaOD</td><td>LOF</td><td>0.0013</td><td>MetaOD</td><td>LOF</td><td>0.0001</td></tr><tr><td>MetaOD</td><td>iForest</td><td>0.0090</td><td>MetaOD</td><td>iForest</td><td>0.1129</td></tr><tr><td>MetaOD</td><td></td><td>0.0004</td><td>MetaOD</td><td></td><td>0.0001</td></tr><tr><td></td><td>ME</td><td></td><td></td><td>ME</td><td></td></tr><tr><td>MetaOD</td><td>GB</td><td>0.0051</td><td>MetaOD</td><td>GB</td><td>0.0030</td></tr><tr><td>MetaOD</td><td>ISAC</td><td>0.0019</td><td>MetaOD</td><td>ISAC</td><td>0.0006</td></tr><tr><td>MetaOD</td><td>AS</td><td>0.2959</td><td>MetaOD</td><td>AS</td><td>0.0009</td></tr><tr><td>MetaOD</td><td>SS</td><td>0.7938</td><td>MetaOD</td><td>SS</td><td>0.0190</td></tr><tr><td>MetaOD</td><td>ALORS</td><td>0.0025</td><td>MetaOD</td><td>ALORS</td><td>0.0001</td></tr><tr><td>MetaOD</td><td>MetaOD_C</td><td>0.6874</td><td>MetaOD</td><td>MetaOD_C</td><td>0.0001</td></tr><tr><td>MetaOD</td><td>MetaOD_F</td><td>0.1165</td><td>MetaOD</td><td>MetaOD_F</td><td>0.0001</td></tr></table>",
1099
+ "bbox": [
1100
+ 156,
1101
+ 88,
1102
+ 537,
1103
+ 234
1104
+ ],
1105
+ "page_idx": 8
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "",
1110
+ "bbox": [
1111
+ 174,
1112
+ 255,
1113
+ 825,
1114
+ 310
1115
+ ],
1116
+ "page_idx": 8
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Meta-learners perform significantly better than methods without model selection. In particular, four meta-learners (METAOD, SS, METAOD_C, METAOD_F) significantly outperform single outlier detection methods (LOF and iForest) as well as the Mega Ensemble (ME) that averages all the models. METAOD respectively has $5 8 . 7 4 \\%$ , $3 2 . 4 8 \\%$ , and $4 7 . 2 5 \\%$ higher MAP over LOF, iForest, and ME. These results signify the benefits of model selection. ",
1121
+ "bbox": [
1122
+ 173,
1123
+ 318,
1124
+ 825,
1125
+ 387
1126
+ ],
1127
+ "page_idx": 8
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Optimization-based meta learners generally perform better than simple meta learners. Top-3 meta learners by average rank (METAOD, SS, and METAOD_C) are all optimization-based and significantly outperform simple meta-learners like ISAC as shown in Fig. 3. Simple meta-learners weigh meta-features equally for task similarity, whereas others learn which meta-features matter (e.g., regression on meta-features), leading to better results. We find that METAOD respectively achieves $3 3 . 5 3 \\%$ , $2 2 . 7 4 \\%$ , and $4 . 7 3 \\%$ higher MAP than simple meta-learners including GB, ISAC, and AS. ",
1132
+ "bbox": [
1133
+ 173,
1134
+ 392,
1135
+ 825,
1136
+ 477
1137
+ ],
1138
+ "page_idx": 8
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "4.3 ST Testbed Results ",
1143
+ "text_level": 1,
1144
+ "bbox": [
1145
+ 174,
1146
+ 493,
1147
+ 346,
1148
+ 507
1149
+ ],
1150
+ "page_idx": 8
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Testbed Setting. When meta-train datasets lack similarity to the test dataset, it is hard to capitalize on prior experience. In the extreme case, meta-learning may not perform better than no-model-selection baselines, e.g., a single detector. To investigate the impact of the train/test similarity on meta-learning performance, we build the ST testbed that consists of 62 public-domain datasets from 3 different repositories (See Appendix E Table 4) with relatively low similarity as shown in Fig. 2. For evaluation on ST, we use leave-one-out cross validation; each time using 61 datasets as meta-train. ",
1155
+ "bbox": [
1156
+ 173,
1157
+ 518,
1158
+ 825,
1159
+ 602
1160
+ ],
1161
+ "page_idx": 8
1162
+ },
1163
+ {
1164
+ "type": "image",
1165
+ "img_path": "images/cea78d2a5ca86db9c2179a749d4c94eb12b3952736319ec3d367f8d281767d81.jpg",
1166
+ "image_caption": [
1167
+ "Table 1: Pairwise statistical test results between METAOD and baselines by Wilcoxon signed rank test. Statistically better method shown in bold (both marked bold if no significance). In (left) POC, METAOD is the only meta-learner with no diff. from both EUB and the 4- th best model. In (right) ST, METAOD is the only meta-learner with no statistical diff. from the $5 8 – t h$ best model. It is statistically better than all except iForest. ",
1168
+ "Figure 4: Comparison of avg. rank (lower is better) of methods w.r.t. performance across datasets in ST. Mean AP (higher is better) shown on lines. METAOD outperforms all baselines. "
1169
+ ],
1170
+ "image_footnote": [],
1171
+ "bbox": [
1172
+ 173,
1173
+ 614,
1174
+ 547,
1175
+ 696
1176
+ ],
1177
+ "page_idx": 8
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Results. For the ST testbed, METAOD still outperforms all baseline methods w.r.t. average rank and MAP as shown in Fig. 4. Table 1 (right) shows that METAOD (0.3382) could select, from a pool of 302, the model that is as good as the $5 8 – t h$ best model (top $20 \\%$ ) per dataset (0.3513) in this challenging testbed. The comparable model changes from the $4 { - } t h$ best per dataset in POC to $5 8 – t h$ best in ST, which is expected due to the lower task similarity to leverage in ST. Notably, all other baselines are worse than the $8 0 { - } t h$ best model with statistical significance. Moreover, METAOD is significantly better than all baselines except iForest. Note that METAOD also significantly outperforms RS, showing that it is able to exploit the meta-train database despite limited task similarity and not simply resorting to random picking. These results suggest that METAOD is a good choice under various extent of similarity among train/test datasets. We refer to Appendix G.2 for detailed ST results on individual ST datasets. ",
1182
+ "bbox": [
1183
+ 173,
1184
+ 710,
1185
+ 825,
1186
+ 863
1187
+ ],
1188
+ "page_idx": 8
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "Training stability affects performance for optimization-based methods. Notably, several optimization-based meta-learners, such as ALORS and METAOD_C, do not perform well for ST. We find that the training process of matrix factorization is not stable when latent similarities are weak. In METAOD, we employ two strategies that help stabilize the training. First, we leverage meta-feature based (rather than random) initialization. Second, we use cyclical learning rates that help escape saddle points for better local optima [43]. Consequently, METAOD (0.3382) significantly outperforms ALORS (0.2981) and METAOD_C (0.1946) with $1 3 . 4 5 \\%$ and $7 3 . 7 9 \\%$ higher MAP. ",
1193
+ "bbox": [
1194
+ 174,
1195
+ 869,
1196
+ 825,
1197
+ 911
1198
+ ],
1199
+ "page_idx": 8
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "",
1204
+ "bbox": [
1205
+ 174,
1206
+ 90,
1207
+ 825,
1208
+ 147
1209
+ ],
1210
+ "page_idx": 9
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Global methods outperform local methods under limited task similarity. In ST, datasets are less similar and simple meta-learners that leverage task similarity locally often perform poorly. For example, AS selects the model based on the 1-NN, and is likely to fail if the most similar meta-train task is still quite dissimilar to the current task. Notably, the global meta-learner GB outperforms AS and ISAC. Note the opposite ordering among these methods in POC as shown in Fig. 3. In short, effectiveness of simple meta-learners tends to be sensitive to the train/test dataset similarity, which makes them hard to use in general. In contrast, METAOD performs well in both settings. ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 154,
1218
+ 825,
1219
+ 251
1220
+ ],
1221
+ "page_idx": 9
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "4.4 Runtime Analysis ",
1226
+ "text_level": 1,
1227
+ "bbox": [
1228
+ 174,
1229
+ 273,
1230
+ 336,
1231
+ 287
1232
+ ],
1233
+ "page_idx": 9
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Empowered by meta-training, METAOD (meta-feature generation and model selection) takes less than 1 second on most test datasets, as shown in Fig. 5, where it incurs negligible overhead relative to building/training the selected outlier model ${ \\approx } 1 0 \\%$ on avg.). Fig. 6 corroborates the statement by showing the comparison on the 10 largest datasets in POC. ",
1238
+ "bbox": [
1239
+ 174,
1240
+ 301,
1241
+ 825,
1242
+ 357
1243
+ ],
1244
+ "page_idx": 9
1245
+ },
1246
+ {
1247
+ "type": "image",
1248
+ "img_path": "images/08e711edb6192c86913d387d4db9bc55fff133351b793d7d96be8cf9d2ae443d.jpg",
1249
+ "image_caption": [
1250
+ "Figure 5: METAOD running time at test time in sec.s (left), and percentage of time relative to building the selected model (right). Notice that it is fast, and incurs negligible computational overhead. "
1251
+ ],
1252
+ "image_footnote": [],
1253
+ "bbox": [
1254
+ 183,
1255
+ 375,
1256
+ 813,
1257
+ 415
1258
+ ],
1259
+ "page_idx": 9
1260
+ },
1261
+ {
1262
+ "type": "image",
1263
+ "img_path": "images/3977eaf46a3db5377566f002678a0687980b13583178d8bce5583d3ad9f4761a.jpg",
1264
+ "image_caption": [
1265
+ "Figure 6: Time for METAOD vs. training of the selected model (on 10 largest datasets in POC). METAOD incurs only negligible overhead (diff. shown w/ black arrows). "
1266
+ ],
1267
+ "image_footnote": [],
1268
+ "bbox": [
1269
+ 173,
1270
+ 486,
1271
+ 532,
1272
+ 588
1273
+ ],
1274
+ "page_idx": 9
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "Notably, meta-feature extraction may be trivially parallelized whereas the model selection is even faster, e.g., using SUOD [60], effectively taking constant time (See $\\ S 3 . 2 . 2 )$ . ",
1279
+ "bbox": [
1280
+ 173,
1281
+ 607,
1282
+ 823,
1283
+ 636
1284
+ ],
1285
+ "page_idx": 9
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "5 Conclusion ",
1290
+ "text_level": 1,
1291
+ "bbox": [
1292
+ 174,
1293
+ 661,
1294
+ 299,
1295
+ 678
1296
+ ],
1297
+ "page_idx": 9
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "We addressed the unsupervised outlier model selection (UOMS) problem without relying on any labels, model evaluations or comparisons for the first time. Our proposed METAOD is a meta-learner, and builds on an extensive pool of historical outlier detection datasets and models. Given a new task, it selects a model based on the past performances of models on similar historical tasks. To effectively capture task similarity, we designed novel problem-specific meta-features. Importantly, METAOD is $( i )$ fully automatic, requiring no supervision at test time, and $( i i )$ lightweight, incurring relatively small selection time overhead prior to outlier model building. Extensive experiments on two large testbeds showed that METAOD significantly improves detection performance over always using some of the most popular outlier models as well as several other meta-learners tailored for UOMS. ",
1302
+ "bbox": [
1303
+ 173,
1304
+ 696,
1305
+ 825,
1306
+ 821
1307
+ ],
1308
+ "page_idx": 9
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "We open-source1 METAOD and our meta-learning database for use in practice. We expect metalearning to become more powerful as the meta-train database grows. Therefore, we also share all our code and testbeds with the community to stimulate further advances in automating UOMS. Future work can address UOMS in the continuous hyperparameter space, leverage self-aware learning [28] and conformal prediction [39] to estimate the confidence in selection, and explore the potential bias and fairness issues in OD model selection [10, 42]. ",
1313
+ "bbox": [
1314
+ 174,
1315
+ 828,
1316
+ 825,
1317
+ 911
1318
+ ],
1319
+ "page_idx": 9
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "References \n[1] S. M. Abdulrahman, P. Brazdil, J. N. van Rijn, and J. Vanschoren. Speeding up algorithm selection using average ranking and active testing by introducing runtime. Mach. Learn., 107(1):79–108, 2018. \n[2] C. C. Aggarwal. Outlier Analysis. Springer, 2013. \n[3] J. Bergstra and Y. Bengio. Random search for hyper-parameter optimization. J. Mach. Learn. Res., 13:281–305, 2012. \n[4] H. Bharadhwaj. Meta-learning for user cold-start recommendation. In IJCNN, pages 1–8. IEEE, 2019. \n[5] B. Bilalli, A. Abelló Gamazo, and T. Aluja Banet. On the predictive power of meta-features in OpenML. International Journal of Applied Mathematics and Computer Science, 27(4):697–712, 2017. \n[6] M. M. Breunig, H.-P. Kriegel, R. T. Ng, and J. Sander. LOF: Identifying density-based local outliers. In SIGMOD Conference, pages 93–104. ACM, 2000. SIGMOD Record 29(2), June 2000. \n[7] E. Burnaev, P. Erofeev, and D. Smolyakov. Model selection for anomaly detection. In ICMV, volume 9875 of SPIE Proceedings, page 987525. SPIE, 2015. \n[8] G. O. Campos, A. Zimek, J. Sander, R. J. G. B. Campello, B. Micenková, E. Schubert, I. Assent, and M. E. Houle. On the evaluation of unsupervised outlier detection: measures, datasets, and an empirical study. Data Min. Knowl. Discov., 30(4):891–927, 2016. \n[9] J. Chen, S. Sathe, C. C. Aggarwal, and D. S. Turaga. Outlier detection with autoencoder ensembles. In SDM, pages 90–98. SIAM, 2017. \n[10] I. Davidson and S. S. Ravi. A framework for determining the fairness of outlier detection. In G. D. Giacomo, A. Catalá, B. Dilkina, M. Milano, S. Barro, A. Bugarín, and J. Lang, editors, ECAI 2020 - 24th European Conference on Artificial Intelligence, 29 August-8 September 2020, Santiago de Compostela, Spain, August 29 - September 8, 2020 - Including 10th Conference on Prestigious Applications of Artificial Intelligence (PAIS 2020), volume 325 of Frontiers in Artificial Intelligence and Applications, pages 2465–2472. IOS Press, 2020. \n[11] A. Emmott, S. Das, T. G. Dietterich, A. Fern, and W.-K. Wong. Anomaly detection meta-analysis benchmarks. 2016. \n[12] X. Fan, Y. Yue, P. Sarkar, and Y. X. R. Wang. A unified framework for tuning hyperparameters in clustering problems. CoRR, abs/1910.08018, 2019. \n[13] M. Feurer, B. Letham, and E. Bakshy. Scalable meta-learning for bayesian optimization. CoRR, abs/1802.02219, 2018. \n[14] M. Feurer, J. T. Springenberg, and F. Hutter. Initializing bayesian hyperparameter optimization via meta-learning. In AAAI, pages 1128–1135. AAAI Press, 2015. \n[15] L. Franceschi, M. Donini, P. Frasconi, and M. Pontil. Forward and reverse gradient-based hyperparameter optimization. In ICML, volume 70 of Proceedings of Machine Learning Research, pages 1165–1173. PMLR, 2017. \n[16] J. Fréry, A. Habrard, M. Sebban, O. Caelen, and L. He-Guelton. Efficient top rank optimization with gradient boosting for supervised anomaly detection. In ECML/PKDD, volume 10534, pages 20–35, 2017. \n[17] M. Goldstein and A. Dengel. Histogram-based outlier score (hbos): A fast unsupervised anomaly detection algorithm. KI-2012: Poster and Demo Track, pages 59–63, 2012. \n[18] X. He, K. Zhao, and X. Chu. Automl: A survey of the state-of-the-art. Knowl. Based Syst., 212:106622, 2021. \n[19] F. Hutter, H. H. Hoos, and K. Leyton-Brown. Sequential model-based optimization for general algorithm configuration. In C. A. C. Coello, editor, LION, volume 6683 of Lecture Notes in Computer Science, pages 507–523. Springer, 2011. \n[20] T. Idé and H. Kashima. Eigenspace-based anomaly detection in computer systems. In W. Kim, R. Kohavi, J. Gehrke, and W. DuMouchel, editors, KDD, pages 440–449. ACM, 2004. \n[21] K. Järvelin and J. Kekäläinen. Cumulated gain-based evaluation of IR techniques. ACM Transactions on Information Systems (TOIS), 20(4):422–446, 2002. \n[22] D. R. Jones, M. Schonlau, and W. J. Welch. Efficient global optimization of expensive black-box functions. J. Global Optimization, 13(4):455–492, 1998. \n[23] S. Kadioglu, Y. Malitsky, M. Sellmann, and K. Tierney. Isac - instance-specific algorithm configuration. In ECAI, volume 215 of Frontiers in Artificial Intelligence and Applications, pages 751–756. IOS Press, 2010. \n[24] H.-P. Kriegel, M. Schubert, and A. Zimek. Angle-based outlier detection in high-dimensional data. In Y. Li, B. Liu, and S. Sarawagi, editors, KDD, pages 444–452. ACM, 2008. \n[25] K. Lai, D. Zha, G. Wang, J. Xu, Y. Zhao, D. Kumar, Y. Chen, P. Zumkhawaka, M. Wan, D. Martinez, and X. Hu. TODS: an automated time series outlier detection system. In Thirty-Fifth AAAI Conference on Artificial Intelligence, AAAI 2021, Thirty-Third Conference on Innovative Applications of Artificial Intelligence, IAAI 2021, The Eleventh Symposium on Educational Advances in Artificial Intelligence, EAAI 2021, Virtual Event, February 2-9, 2021, pages 16060–16062. AAAI Press, 2021. \n[26] H. Lee, J. Im, S. Jang, H. Cho, and S. Chung. MeLU: Meta-learned user preference estimator for cold-start recommendation. In KDD, pages 1073–1082. ACM, 2019. \n[27] L. Li, K. G. Jamieson, G. DeSalvo, A. Rostamizadeh, and A. Talwalkar. Hyperband: A novel bandit-based approach to hyperparameter optimization. J. Mach. Learn. Res., 18:185:1–185:52, 2017. \n[28] L. Li, M. L. Littman, T. J. Walsh, and A. L. Strehl. Knows what it knows: a framework for self-aware learning. Mach. Learn., 82(3):399–443, 2011. \n[29] Y. Li, Z. Chen, D. Zha, K. Zhou, H. Jin, H. Chen, and X. Hu. Autood: Neural architecture search for outlier detection. In 37th IEEE International Conference on Data Engineering, ICDE 2021, Chania, Greece, April 19-22, 2021, pages 2117–2122. IEEE, 2021. \n[30] Y. Li, D. Zha, P. K. Venugopal, N. Zou, and X. Hu. Pyodds: An end-to-end outlier detection system with automated machine learning. In A. E. F. Seghrouchni, G. Sukthankar, T. Liu, and M. van Steen, editors, Companion of The 2020 Web Conference 2020, Taipei, Taiwan, April 20-24, 2020, pages 153–157. ACM / IW3C2, 2020. \n[31] F. T. Liu, K. M. Ting, and Z.-H. Zhou. Isolation forest. In ICDM, pages 413–422. IEEE Computer Society, 2008. \n[32] M. Misir and M. Sebag. Alors: An algorithm recommender system. Artif. Intell., 244:291–314, 2017. \n[33] M. Nikolic, F. Maric, and P. Janicic. Simple algorithm portfolio for sat. Artif. Intell. Rev., 40(4):457–465, 2013. \n[34] T. Pevný. Loda: Lightweight on-line detector of anomalies. Mach. Learn., 102(2):275–304, 2016. \n[35] S. Ramaswamy, R. Rastogi, and K. Shim. Efficient algorithms for mining outliers from large data sets. In W. Chen, J. F. Naughton, and P. A. Bernstein, editors, SIGMOD Conference, pages 427–438. ACM, 2000. SIGMOD Record 29(2), June 2000. \n[36] S. Rayana and L. Akoglu. Less is more: Building selective anomaly ensembles. ACM Trans. Knowl. Discov. Data, 10(4):42:1–42:33, 2016. \n[37] B. Schölkopf, J. C. Platt, J. Shawe-Taylor, A. J. Smola, and R. C. Williamson. Estimating the support of a high-dimensional distribution. Neural Computation, 13(7):1443–1471, July 2001. \n[38] B. Schölkopf, R. C. Williamson, A. J. Smola, J. Shawe-Taylor, and J. C. Platt. Support vector method for novelty detection. In NIPS, pages 582–588. The MIT Press, 1999. \n[39] G. Shafer and V. Vovk. A tutorial on conformal prediction. J. Mach. Learn. Res., 9:371–421, 2008. \n[40] B. Shahriari, K. Swersky, Z. Wang, R. P. Adams, and N. de Freitas. Taking the human out of the loop: A review of bayesian optimization. Proc. IEEE, 104(1):148–175, 2016. \n[41] R. E. Shawi, M. Maher, and S. Sakr. Automated machine learning: State-of-the-art and open challenges. CoRR, abs/1906.02287, 2019. \n[42] S. Shekhar, N. Shah, and L. Akoglu. Fairod: Fairness-aware outlier detection. In M. Fourcade, B. Kuipers, S. Lazar, and D. K. Mulligan, editors, AIES ’21: AAAI/ACM Conference on AI, Ethics, and Society, Virtual Event, USA, May 19-21, 2021, pages 210–220. ACM, 2021. \n[43] L. N. Smith. Cyclical learning rates for training neural networks. In WACV, pages 464–472. IEEE Computer Society, 2017. \n[44] D. H. Stern, H. Samulowitz, R. Herbrich, T. Graepel, L. Pulina, and A. Tacchella. Collaborative expert portfolio management. In AAAI. AAAI Press, 2010. \n[45] J. Tang, Z. Chen, A. W. Fu, and D. W. Cheung. Enhancing effectiveness of outlier detections for low density patterns. In PAKDD, volume 2336 of Lecture Notes in Computer Science, pages 535–548, 2002. \n[46] D. M. J. Tax and R. P. W. Duin. Support vector data description. Mach. Learn., 54(1):45–66, 2004. \n[47] S. Vaithyanathan and B. Dom. Generalized model selection for unsupervised learning in high dimensions. In NIPS, pages 970–976. The MIT Press, 1999. \n[48] L. van der Maaten and G. Hinton. Visualizing high-dimensional data using t-sne. J. of Mach. Lear. Res., 9:2579–2605, 2008. \n[49] J. Vanschoren. Meta-learning. In Automated Machine Learning, pages 35–61. Springer, 2019. \n[50] M. Vartak, A. Thiagarajan, C. Miranda, J. Bratman, and H. Larochelle. A meta-learning perspective on cold-start recommendations for items. In NeurIPS, pages 6904–6914, 2017. \n[51] M. Wistuba, N. Schilling, and L. Schmidt-Thieme. Learning hyperparameter optimization initializations. In DSAA, pages 1–10. IEEE, 2015. \n[52] M. Wistuba, N. Schilling, and L. Schmidt-Thieme. Scalable gaussian process-based transfer surrogates for hyperparameter optimization. Mach. Learn., 107(1):43–78, 2018. \n[53] D. H. Wolpert and W. G. Macready. No free lunch theorems for optimization. IEEE Trans. Evolutionary Computation, 1(1):67–82, 1997. \n[54] Y. Xiao, H. Wang, L. Zhang, and W. Xu. Two methods of selecting gaussian kernel parameters for one-class SVM and their application to fault detection. Knowl. Based Syst., 59:75–84, 2014. \n[55] L. Xu, F. Hutter, J. Shen, H. H. Hoos, and K. Leyton-Brown. Satzilla2012: Improved algorithm selection based on cost-sensitive classification models. Proceedings of SAT Challenge, pages 57–58, 2012. \n[56] C. Yang, Y. Akimoto, D. W. Kim, and M. Udell. OBOE: collaborative filtering for AutoML model selection. In KDD, pages 1173–1183. ACM, 2019. \n[57] L. Yang and A. Shami. On hyperparameter optimization of machine learning algorithms: Theory and practice. Neurocomputing, 415:295–316, 2020. \n[58] Q. Yao, M. Wang, H. J. Escalante, I. Guyon, Y. Hu, Y. Li, W. Tu, Q. Yang, and Y. Yu. Taking human out of learning applications: A survey on automated machine learning. CoRR, abs/1810.13306, 2018. \n[59] T. Yu and H. Zhu. Hyper-parameter optimization: A review of algorithms and applications. CoRR, abs/2003.05689, 2020. \n[60] Y. Zhao, X. Hu, C. Cheng, C. Wang, C. Wan, W. Wang, J. Yang, H. Bai, Z. Li, C. Xiao, Y. Wang, Z. Qiao, J. Sun, and L. Akoglu. SUOD: Accelerating large-scale unsupervised heterogeneous outlier detection. Proceedings of Machine Learning and Systems, 2021. \n[61] Y. Zhao, Z. Nasrullah, and Z. Li. PyOD: A python toolbox for scalable outlier detection. J. Mach. Learn. Res., 20:96:1–96:7, 2019. \n[62] Z. Zheng, J. Yang, and Y. Zhu. Initialization enhancer for non-negative matrix factorization. Eng. Appl. Artif. Intell., 20(1):101–110, 2007. \n[63] C. Zhou and R. C. Paffenroth. Anomaly detection with robust deep autoencoders. In KDD, pages 665–674. ACM, 2017. ",
1324
+ "bbox": [
1325
+ 171,
1326
+ 79,
1327
+ 828,
1328
+ 921
1329
+ ],
1330
+ "page_idx": 10
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "",
1335
+ "bbox": [
1336
+ 171,
1337
+ 75,
1338
+ 828,
1339
+ 911
1340
+ ],
1341
+ "page_idx": 11
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "",
1346
+ "bbox": [
1347
+ 171,
1348
+ 54,
1349
+ 828,
1350
+ 919
1351
+ ],
1352
+ "page_idx": 12
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "",
1357
+ "bbox": [
1358
+ 171,
1359
+ 88,
1360
+ 828,
1361
+ 337
1362
+ ],
1363
+ "page_idx": 13
1364
+ }
1365
+ ]
parse/train/KCd-3Pz8VjM/KCd-3Pz8VjM_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/KCd-3Pz8VjM/KCd-3Pz8VjM_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/LXMSvPmsm0g/LXMSvPmsm0g.md ADDED
@@ -0,0 +1,407 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LONG LIVE THE LOTTERY: THE EXISTENCE OF WINNING TICKETS IN LIFELONG LEARNING
2
+
3
+ Tianlong $\mathbf { C h e n ^ { 1 ^ { * } } }$ , Zhenyu Zhang2\*, Sijia $\mathbf { L i u } ^ { 3 , 4 }$ , Shiyu Chang4, Zhangyang Wang1 1University of Texas at Austin,2University of Science and Technology of China 3Michigan State University, 4MIT-IBM Watson AI Lab, IBM Research {tianlong.chen,atlaswang}@utexas.edu, zzy19969@mail.ustc.edu.cn liusiji5@msu.edu, shiyu.chang@ibm.com
4
+
5
+ # ABSTRACT
6
+
7
+ The lottery ticket hypothesis states that a highly sparsified sub-network can be trained in isolation, given the appropriate weight initialization. This paper extends that hypothesis from one-shot task learning, and demonstrates for the first time that such extremely compact and independently trainable sub-networks can be also identified in the lifelong learning scenario, which we call lifelong tickets. We show that the resulting lifelong ticket can further be leveraged to improve the performance of learning over continual tasks. However, it is highly non-trivial to conduct network pruning in the lifelong setting. Two critical roadblocks arise: i) As many tasks now arrive sequentially, finding tickets in a greedy weight pruning fashion will inevitably suffer from the intrinsic bias, that the earlier emerging tasks impact more; ii) As lifelong learning is consistently challenged by catastrophic forgetting, the compact network capacity of tickets might amplify the risk of forgetting. In view of those, we introduce two pruning options, e.g., top-down and bottom-up, for finding lifelong tickets. Compared to the top-down pruning that extends vanilla (iterative) pruning over sequential tasks, we show that the bottomup one, which can dynamically shrink and (re-)expand model capacity, effectively avoids the undesirable excessive pruning in the early stage. We additionally introduce lottery teaching that further overcomes forgetting via knowledge distillation aided by external unlabeled data. Unifying those ingredients, we demonstrate the existence of very competitive lifelong tickets, e.g., achieving $3 - 8 \%$ of the dense model size with even higher accuracy, compared to strong class-incremental learning baselines on CIFAR-10/CIFAR-100/Tiny-ImageNet datasets. Codes available at https://github.com/VITA-Group/Lifelong-Learning-LTH.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The lottery ticket hypothesis (LTH) (Frankle & Carbin, 2019) suggests the existence of an extremely sparse sub-network, within an overparameterized dense neural network, that can reach similar performance as the dense network when trained in isolation with proper initialization. Such a subnetwork together with the used initialization is called a winning ticket (Frankle & Carbin, 2019). The original LTH studies the sparse pattern of neural networks with a single task (classification), leaving the question of generalization across multiple tasks open. Following that, a few works (Morcos et al., 2019; Mehta, 2019) have explored LTH in transfer learning. They study the transferability of a winning ticket found in a source task to another target task. This provides insights on one-shot transferability of LTH. In parallel, lifelong learning not only suffers from notorious catastrophic forgetting over sequentially arriving tasks but also often comes at the price of increasing model capacity. With those in mind, we ask a much more ambitious question:
12
+
13
+ Does LTH hold in the setting of lifelong learning when different tasks arrive sequentially?
14
+
15
+ Intuitively, a desirable “ticket” sub-network in lifelong learning (McCloskey & Cohen, 1989; Parisi et al., 2019) needs to be: 1) independently trainable, same as the original LTH; 2) trained to perform competitively to the dense lifelong model, including both maintaining the performance of previous tasks, and quickly achieving good generalization at newly added tasks; 3) found online, as the tasks sequentially arrive without any pre-assumed order. We define such a sub-network with its initialization as a lifelong lottery ticket.
16
+
17
+ This paper seeks to locate the lifelong ticket in class-incremental learning (CIL) (Wang et al., 2017; Rosenfeld & Tsotsos, 2018; Kemker & Kanan, 2017; Li & Hoiem, 2017; Belouadah & Popescu, 2019; 2020), a popular, realistic and challenging setting of lifelong learning. A natural idea to extend the original LTH is to introduce sequential pruning: we continually prune the dense network until the desired sparsity level, as new tasks are incrementally added. However, we show that the direct application of the iterative magnitude pruning (IMP) used in LTH fails in the scenario of CIL since the pruning schedule becomes critical when tasks arrive sequentially. To circumvent this challenge, we generalize IMP to incorporate a curriculum pruning schedule. We term this technique top-down lifelong pruning. When the total number of tasks is pre-known and small, then with some “lottery” initialization (achieved by rewinding (Frankle et al., 2019) or similar), we find that the pruned sparse ticket can be re-trained to similar performance as the dense network. However, if the number of tasks keeps increasing, the above ticket will soon witness performance collapse as its limited capacity cannot afford the over-pruning.
18
+
19
+ The limitation of top-down lifelong pruning reminds us of two unique dilemmas that might challenge the validity of lifelong tickets. i) Greedy weight pruning v.s. all tasks’ performance: While the sequential pruning has to be performed online, its greedy nature inevitably biases against later arriving tasks, as earlier tasks apparently will contribute to shaping the ticket more (and might even use up the sparsity budget). ii) Catastrophic forgetting v.s. small ticket size: To overcome the notorious catastrophic forgetting (McCloskey & Cohen, 1989; Tishby & Zaslavsky, 2015), many lifelong learning models have to frequently consolidate weights to carefully re-assign the model capacity (Zhang et al., 2020) or even grow model size as tasks come in (Wang et al., 2017). Those seem to contradict our goal of pruning by seeing more tasks.
20
+
21
+ To address the above two limitations, we propose a novel bottom-up lifelong pruning approach, which allows for re-growing the model capacity to compensate for any excessive pruning. It therefore flexibly calibrates between increasing and decreasing tickets throughout the entire learning process, alleviating the intrinsic greedy bias caused by the top-down pruning. We additionally introduce lottery teaching to overcome forgetting, which regularizes previous task models’ soft logit outputs by using free unlabeled data. That is inspired by lifelong knowledge preservation techniques (Castro et al., 2018; He et al., 2018; Javed & Shafait, 2018; Rebuffi et al., 2017).
22
+
23
+ For validating our proposal, we conduct extensive experiments on CIFAR-10, CIFAR-100, and TinyImageNet datasets for class-incremental learning (Rebuffi et al., 2017). The results demonstrate the existence and the high competitiveness of lifelong tickets. Our best lifelong tickets (found by bottom-up pruning and lottery teaching) achieve comparable or better performance across all sequential tasks, with as few as $3 . 6 4 \%$ parameters, compared to state-of-the-art dense models. Our contributions can be summarized as:
24
+
25
+ • The problem of lottery tickets is formulated and studied in lifelong learning (class incremental learning) for the first time.
26
+ • Top-down pruning: a generalization of iterative weight magnitude pruning used in the original LTH over continual learning tasks.
27
+ • Bottom-up pruning: a novel pruning method, which is unique to allow for re-growing model capacity, throughout the lifelong process.
28
+ • Extensive experiments and analyses demonstrating the promise of lifelong tickets, in achieving superior yet extremely light-weight lifelong learners.
29
+
30
+ # 2 RELATED WORK
31
+
32
+ Lifelong Learning A lifelong learning system aims to continually learn sequential tasks and accommodate new information while maintaining previously learned knowledge (Thrun & Mitchell, 1995). One of its major challenges is called catastrophic forgetting (McCloskey & Cohen, 1989; Kirkpatrick et al., 2017; Hayes & Kanan, 2020), i.e., the network cannot maintain expertise on tasks that they have not experienced for a long time.
33
+
34
+ This paper’s study subject is class-incremental learning (CIL) (Rebuffi et al., 2017; Elhoseiny et al., 2018): a popular, realistic, albeit challenging setting of lifelong learning. CIL requires the model to recognize new classes emerging over time while maintaining recognizing ability over old classes without access to the previous data. Typical solutions are based on regularization (Li & Hoiem, 2017; Kirkpatrick et al., 2017; Zenke et al., 2017; Aljundi et al., 2018a; Ebrahimi et al., 2019), for example, knowledge distillation (Hinton et al., 2015) is a common regularizer to inherit previous knowledge through preserving soft logits of those samples (Li & Hoiem, 2017) while learning new tasks. Besides, several approaches are learning with memorized data (Castro et al., 2018; Javed & Shafait, 2018; Rebuffi et al., 2017; Belouadah & Popescu, 2019; 2020; Lopez-Paz & Ranzato, 2017; Chaudhry et al., 2018). And some generative lifelong learning methods (Liu et al., 2020; Shin et al., 2017) mitigate catastrophic forgetting by generating simulated data of previous tasks. There also exist a few architecture-manipulation-based lifelong learning methods (Rajasegaran et al., 2019; Aljundi et al., 2018b; Hung et al., 2019; Abati et al., 2020; Rusu et al., 2016; Kemker & Kanan, 2017), while their target is dividing a dense model into task-specific parts for lifelong learning, rather than localizing sparse networks and the lottery tickets.
35
+
36
+ Pruning and Lottery Ticket Hypothesis It is well-known that deep networks could be pruned of excess capacity (LeCun et al., 1990b). Pruning algorithms can be categorized into unstructured (Han et al., 2015b; LeCun et al., 1990a; Han et al., 2015a) and structured pruning (Liu et al., 2017; He et al., 2017; Zhou et al., 2016). The former sparsifies weight elements based on magnitudes, while the latter removes network sub-structures such as channels for more hardware friendliness.
37
+
38
+ LTH (Frankle & Carbin, 2019) advocates the existence of an independently trainable sparse subnetwork from a dense network. In addition to image classification (Frankle & Carbin, 2019; Liu et al., 2019; Wang et al., 2020; Evci et al., 2019; Frankle et al., 2020; Savarese et al., 2020; You et al., 2020; Ma et al., 2021; Chen et al., 2020a), LTH has been explored widely in numerous contexts, such as natural language processing (Gale et al., 2019; Chen et al., 2020b), reinforcement learning (Yu et al., 2019), generative adversarial networks (Chen et al., 2021b), graph neural networks (Chen et al., 2021a), and adversarial robustness (Cosentino et al., 2019). Most of them adopt unstructured weight magnitude pruning (Han et al., 2015a; Frankle & Carbin, 2019) to obtain the ticket, which we also follow in this work. (Frankle et al., 2019) analyzes large models and datasets, and presents a rewinding technique that re-initializes ticket training from the early training stage rather than from scratch. (Renda et al., 2020) further compares different retraining techniques and endorses the effectiveness of rewinding. (Mehta, 2019; Morcos et al., 2019; Desai et al., 2019) pioneer to study the transferability of the ticket identified on one source task to another target task, which delivers insights on one-shot transferability of LTH.
39
+
40
+ One latest work (Golkar et al., 2019) aimed at lifelong learning in fixed-capacity models based on pruning neurons of low activity. The authors observed that a controlled way of “graceful forgetting” after training each task can regain network capacity for new tasks, meanwhile not suffering from forgetting. Sokar et al. (2020) further compresses the sparse connections of each task during training, which reduces the interference between tasks and alleviates forgetting.
41
+
42
+ # 3 LOTTERY TICKET FROM SINGLE-TASK LEARNING TO CIL
43
+
44
+ # 3.1 PROBLEM SETUP
45
+
46
+ In CIL, a model continuously learns from a sequential data stream in which new tasks (namely, classification tasks with new classes) are added over time, as shown in Figure 1. At the inference stage, the model can operate without having access to the information of task IDs. Following (Castro et al., 2018; He et al., 2018; Rebuffi et al., 2017), a handful of samples from previous classes are stored in a fixed memory buffer.
47
+
48
+ ![](images/d9cf46adc494e3cda7d85097c2c1e58dce4a092f28f887e850ecc2bee9097a4b.jpg)
49
+ Figure 1: Basic CIL Setting.
50
+
51
+ More formally, let $\mathcal { T } _ { 1 } , \mathcal { T } _ { 2 } , \cdots$ represent a sequence of tasks, and the ith task $\mathcal { T } _ { i }$ contains data that fall into $\left( k _ { i } - k _ { i - 1 } \right)$ classes $\mathcal { C } _ { i } = \{ c _ { k _ { i - 1 } + 1 } , c _ { k _ { i - 1 } + 2 } , \cdot \cdot \cdot , c _ { k _ { i } } \}$ , where $k _ { 0 } = 0$ by convention. Let $\Theta ^ { ( i ) } = \{ \pmb { \theta } ^ { ( i ) } , \pmb { \theta } _ { \mathrm { c } } ^ { ( i ) } \}$ denote the model of the learner used at task $i$ , where $\pmb \theta ^ { ( i ) }$ corresponds to the base model cross all tasks from $\mathcal { T } _ { 1 }$ to $\mathcal { T } _ { i }$ , and $\pmb { \theta } _ { \mathrm { c } } ^ { ( i ) }$ denotes the task-specific classification head at $\mathcal { T } _ { i }$ .
52
+
53
+ Thus, the size of $\pmb \theta ^ { ( i ) }$ is fixed, but the dimension of $\theta _ { \mathrm { c } } ^ { ( i ) }$ aligns with the number of classes, which have been seen at $\mathcal { T } _ { i }$ . In general, the learner has access to two types of information at task $i$ : the current training data $\mathcal { D } ^ { ( i ) }$ , and certain previous information $\mathscr { P } ^ { ( i ) }$ . The latter includes a small amount of data from previous tasks $\{ \mathcal T _ { j } \} _ { 1 } ^ { i - 1 }$ stored in the memory buffer, and the previous model $\Theta ^ { ( i - 1 ) }$ at task $\mathcal { T } _ { i - 1 }$ . This is commonly used to overcome the catastrophic forgetting issue of the current task $i$ against the previous tasks. Based on the aforementioned setting, we state the CIL problem as below.
54
+
55
+ Problem of CIL. At the current task $i$ , we aim to learn a full model $\Theta ^ { ( i ) } = \{ \pmb { \theta } ^ { ( i ) } , \pmb { \theta } _ { \mathrm { c } } ^ { ( i ) } \}$ based on the information $( \mathcal { D } ^ { ( i ) } , \mathcal { P } ^ { ( i ) } )$ such that $\Theta ^ { ( i ) }$ not only $( I )$ yields the generalization ability to the newly added data at task $\mathcal { T } _ { i }$ but also $( I I )$ does not lose its power to the previous tasks $\{ \mathcal { T } _ { j } \} _ { 1 } ^ { i - 1 }$ .
56
+
57
+ We note that the aforementioned problem statement applies to CIL with any fixed-length learning period. That is, for $n$ time stamps (one task per time), the validity of the entire trajectory $\{ \Theta ^ { ( i ) } \} _ { 1 } ^ { n }$ is justified by each $\Theta ^ { ( i ) }$ from the CIL criteria $( I )$ and $( I I )$ stated in ‘Problem of CIL’.
58
+
59
+ # 3.2 LIFELONG LOTTERY TICKETS
60
+
61
+ It was shown by LTH (Frankle & Carbin, 2019) that a standard (unstructured) pruning technique can uncover the so-called winning ticket, namely, a sparse sub-network together with proper initialization that can be trained in isolation and reach similar performance as the dense network. In this paper, we aim to prune the base model $\pmb \theta ^ { ( i ) }$ over time. And we ask: Do there exist winning tickets in lifelong learning? If yes, how to obtain them? To answer these questions, a prerequisite is to define the notion of lottery tickets in lifelong learning, which we call lifelong lottery tickets.
62
+
63
+ Following LTH (Frankle & Carbin, 2019), a lottery ticket consists of two parts: 1) a binary mask $\mathbf { m } \in \{ 0 , 1 \} ^ { \| \pmb { \theta } ^ { ( i ) } \| _ { 0 } }$ obtained from a one-shot or iterative pruning algorithm, and 2) initial weights or rewinding weights $\theta _ { 0 }$ . The ticket $( \mathbf { m } , \theta _ { 0 } )$ is a winning ticket if training the subnetwork $\mathbf { m } \odot \pmb { \theta } _ { 0 }$ ( $\odot$ denotes element-wise product), identified by the sparse pattern m with initialization $\pmb { \theta } _ { 0 }$ , wins the initialization lottery to match the performance of the original (fully trained) network. In CIL, at the presence of sequential tasks $\{ \mathcal { T } ^ { ( i ) } \} _ { i = 1 , 2 , \dots }$ , we define lifelong lottery tickets $( \mathbf { m } ^ { ( i ) } , \pmb { \theta } _ { 0 } ^ { ( i ) } )$ recursively from the perspective of dynamical system:
64
+
65
+ $$
66
+ \begin{array} { r } { \mathbf { m } ^ { ( i ) } = \mathbf { m } ^ { ( i - 1 ) } + A ( \mathcal { D } ^ { ( i ) } , \mathcal { P } ^ { ( i ) } , \mathbf { m } ^ { ( i - 1 ) } ) , \quad \mathrm { a n d } \quad \pmb { \theta } _ { 0 } ^ { ( i ) } \in \{ \pmb { \theta } ^ { ( 0 ) } , \pmb { \theta } _ { \mathrm { r w } } ^ { ( i ) } \} , } \end{array}
67
+ $$
68
+
69
+ where $\mathcal { A }$ denotes a pruning algorithm used at the current task $\mathscr { T } ^ { ( i ) }$ based on the information $\mathcal { D } ^ { ( i ) }$ , $\mathscr { P } ^ { ( i ) }$ and $\mathbf { m } ^ { ( i - 1 ) }$ , $\pmb { \theta } ^ { ( 0 ) }$ denotes the initialization prior to training the model at $\tau ^ { ( 1 ) }$ , and $\theta _ { \mathrm { r w } } ^ { ( i ) }$ denotes a rewinding point at $\mathscr { T } ^ { ( i ) }$ . In Eq. (1), we interpret the (non-trivial) pruning operation $\mathcal { A }$ by weight perturbations, with values drawn from $\{ - 1 , 0 , 1 \}$ , to the previous binary mask. Here $- 1$ denotes the removal of a weight, 0 signifies to keep a weight intact, and 1 represents the addition of a weight. Moreover, the introduction of weight rewinding is spurred by the so-called rewinding ticket (Renda et al., 2020; Frankle et al., 2020). For example, if $\begin{array} { r } { \bar { \pmb { \theta } } _ { \mathrm { r w } } ^ { ( i ) } = \bar { \pmb { \theta } } ^ { ( i - 1 ) } } \end{array}$ , then we pick the model weights learnt at the previous task $\mathcal { T } ^ { ( i - 1 ) }$ to initialize the training at $\mathscr { T } ^ { ( i ) }$ . We also note that $\pmb { \theta } ^ { ( 0 ) }$ can be regarded as the point rewound to the earliest stage of the lifelong learning. Based on Eq. (1), we then state the definition of winning tickets in CIL.
70
+
71
+ Lifelong winning tickets. Given a sequence of tasks $\{ \mathcal { T } _ { i } \} _ { 1 } ^ { n }$ , the lifelong lottery tickets $\{ ( \mathbf { m } ^ { ( i ) } , \pmb { \theta } _ { 0 } ^ { ( i ) } ) \} _ { 1 } ^ { n }$ given by $( l )$ are winning tickets if they can be trained in isolation to match the CIL performance (i.e., criteria I and II) of the corresponding full model $\{ \pmb { \theta } ^ { ( i ) } \} _ { 1 } ^ { n }$ , where $n \in \mathbb { N } ^ { + }$ .
72
+
73
+ In the next section, we will design the lifelong pruning algorithm $\mathcal { A }$ , together with ticket initialization schemes formulated in Eq. (1)
74
+
75
+ # 4 PROPOSED PRUNING METHOD TO FIND LIFELONG WINNING TICKETS
76
+
77
+ 4.1 REVISITING IMP OVER SEQUENTIAL TASKS: TOP-DOWN (TD) PRUNING
78
+
79
+ In order to find the potential tickets at the current task $\mathscr { T } ^ { ( i ) }$ , it is natural to specify $\mathcal { A }$ in Eq. (1) as the iterative magnitude pruning (IMP) algorithm (Han et al., 2015a) to prune the model from $\mathbf { m } ^ { ( i - 1 ) } \odot \pmb \theta ^ { ( i - 1 ) }$ . Following (Frankle & Carbin, 2019; Renda et al., 2020), IMP iteratively prunes $p ^ { \frac { 1 } { n ^ { ( i ) } } }$ $( \% )$ non-zero weights of $\mathbf { m } ^ { ( i - 1 ) } \odot \pmb \theta ^ { ( i - 1 ) }$ over $\boldsymbol { n } ^ { ( i ) }$ rounds at $\mathscr { T } ^ { ( i ) }$ . Thus, the number of nonzero weights in the obtained mask $\mathbf { m } ^ { ( i ) }$ is given by $( ( 1 - p ^ { \frac { 1 } { n ^ { ( i ) } } } ) ^ { n ^ { ( i ) } } \cdot \| \mathbf { m } ^ { ( i - 1 ) } \| _ { 0 } )$ . However, in the application of IMP to the sequential tasks $\{ \mathcal T ^ { ( i ) } \}$ , we find that the schedule of IMP over sequential tasks, in terms of $\{ n ^ { ( i ) } \}$ , is critical to make pruning successful in lifelong learning. We refer readers to Appendix A2.1 for detailed justifications.
80
+
81
+ Curriculum schedule of TD pruning is a key to success The conventional method is to set $\{ n ^ { ( i ) } \}$ as a uniform schedule, namely, IMP prunes a fixed portion of non-zeros at each task. However, this direct application fails quickly as the number of incremental tasks increases, implying that “not all tasks are created equal” in the learning/pruning schedule. Inspired by the recent observation that training with more classes helps consolidate a more robust sparse model (Morcos et al., 2019), we propose a curriculum pruning schedule, in which IMP is conducted more aggressively for new tasks arriving later, with $n ^ { ( \bar { i } ) } \geq n ^ { ( i - 1 ) }$ , until reaching the desired sparsity. For example, if there are 12 times of pruning on five sequentially arrived tasks, we arrange them in a linearly increasing way, i.e., $( { T _ { 1 } } \colon 1 , { T _ { 2 } } \colon 1 , { T _ { 3 } } \colon 2 , { T _ { 4 } } \colon 3 , { T _ { 5 } } \colon 5 )$ . Note that TD pruning relies on the heuristic curriculum schedule, and thus inevitably greedy and suboptimal over continual learning tasks. In what follows, we propose a more advanced pruning scheme, bottom-up (BU) pruning, that obeys a different principle of design.
82
+
83
+ # 4.2 BOTTOM-UP (BU) LIFELONG PRUNING: AN ADVANCED SCHEME
84
+
85
+ ![](images/c6ec4317eb1e436f789b4037ab8f44024c168c66b9879914363d6730646509fe.jpg)
86
+ Figure 2: Framework of our proposed bottom-up (BU) lifelong pruning which is based on sparse model consolidation. Tickets founded by BU pruning keep expanding for each newly added task.
87
+
88
+ Why we need more than top-down pruning? TD pruning is inevitably greedy and suboptimal. Earlier added tasks contribute more to shaping the final mask, due to the nested dependency between intermediate masks. In the later training stage, we often observe the network is already too heavily pruned to learn more tasks. Inspired by the recently proposed model consolidation (Zhang et al., 2020), we propose the BU alternative of lifelong pruning, to dynamically compensate for the excessive pruning by re-growing previously reduced networks.
89
+
90
+ Full reference model & rewinding point For BU lifelong pruning, we maintain a full (unpruned) model $\theta _ { \mathrm { r e f } } ^ { ( i ) }$ as a reference throughout lifelong learning. First, $\theta _ { \mathrm { r e f } } ^ { ( i ) }$ provides a reference performance $\mathcal { R } _ { \mathrm { r e f } } ^ { ( i ) }$ obtained at $\mathscr { T } ^ { ( i ) }$ . Once the validation accuracy of the current sparse model is no worse than the reference performance, the sparse model is considered to still have sufficient capacity and can be further pruned. Otherwise, capacity expansion is needed. On the other hand, the reference model offers a rewinding point for network parameters, which preserves knowledge of all previous tasks prior to $\mathscr { T } ^ { ( i ) }$ . It naturally extends the rewinding concept (Frankle et al., 2019) to lifelong learning.
91
+
92
+ BU pruning method BU lifelong pruning expands the previous mask $\mathbf { \delta } _ { m } ( i - 1 )$ to $\mathbf { m } ^ { ( i ) }$ . Different from TD pruning, the model size grows along the task sequence, namely, $\| \mathbf { m } ^ { ( i ) } \| _ { 0 } \geq \| \mathbf { m } ^ { ( i - 1 ) } \| _ { 0 }$ . Thus, BU pruning enforces $\mathcal { A }$ in Eq. (1) to draw non-negative perturbations. As illustrated in Figure 2, for each newly added $\tau _ { i }$ , we first re-train the previous sparse model $\mathbf { m } ^ { ( i - 1 ) } \odot \pmb \theta ^ { ( i - 1 ) }$ under the current information $( \mathcal { D } ^ { ( i ) } , \mathcal { P } ^ { ( i ) } )$ and calculate the validation accuracy $\mathcal { R } ^ { ( i ) }$ . If $\mathcal { R } ^ { ( i ) }$ is above than the reference performance $\mathcal { R } _ { \mathrm { r e f } } ^ { ( i ) }$ , we proceed to keep the sparse mask $\mathbf { m } ^ { ( i ) } = \mathbf { m } ^ { ( i - 1 ) }$ intact and use re-trained $\pmb \theta ^ { ( i - 1 ) }$ as $\pmb \theta ^ { ( i ) }$ at $\mathcal { T } _ { i }$ . Otherwise, an expansion from $\mathbf { m } ^ { ( i - 1 ) }$ is required to ensure sufficient learning capacity. To do so, we restart from the full reference model $\theta _ { \mathrm { r e f } } ^ { ( i ) }$ and iteratively prune its weights using IMP until the performance gets just below $\mathcal { R } _ { \mathrm { r e f } } ^ { ( i ) }$ . Here the previous non-zero weights localized by $\mathbf { m } ^ { ( i - 1 ) }$ are excluded from the pruning scope of IMP but the values of those non-zero weights could be re-trained. As a result, IMP will yield the updated mask $\mathbf { m } ^ { ( i ) }$ with a larger size than $\mathbf { m } ^ { ( i - 1 ) }$ . We repeat the aforementioned BU pruning method when a new task arrives.
93
+
94
+ Although never observed in our CIL experiments, a potential corner case of expansion is that the ticket size may hit the size of the full model. We consider this as an artifact of limited model capacity and suggest future work of combining lifelong tickets with (full) model growing (Wang et al., 2017).
95
+
96
+ Ticket initialization Given the pruning mask found by the BU (or TD) pruning method, we next determine the initialization scheme of a lifelong ticket. We consider three specifications of $\pmb { \theta } _ { 0 } ^ { ( i ) }$ in Eq. (1) to initialize the sparse model $\mathbf { m } ^ { ( i ) }$ for re-training the found tickets. They include: (I) $\pmb { \theta } _ { 0 } ^ { ( i ) } = \pmb { \theta } ^ { ( 0 ) }$ , i.e., the original “from the same random” initialization (Frankle & Carbin, 2019), (II) a random re-initialization $\theta _ { \mathrm { r e i n i t } }$ which is independent of $\pmb { \theta } ^ { ( 0 ) }$ , and (III) previous-task rewinding, i.e., $\pmb { \theta } _ { 0 } ^ { ( i ) } = \pmb { \theta } ^ { ( i - 1 ) }$ . The initialization schemes I-III together with $\mathbf { m } ^ { ( i ) }$ yield the following tickets $\mathbf { m } ^ { ( i ) }$ at $\mathscr { T } ^ { ( i ) }$ : (1) BU (or TD) tickets, namely, $\mathbf { m } ^ { ( i ) }$ found by BU (or TD) pruning with initialization I; (2) random BU (or TD) tickets, namely, $\mathbf { m } ^ { ( i ) }$ with initialization II; (3) task-rewinding BU (or TD) tickets, namely, $\mathbf { m } ^ { ( i ) }$ with initialization III. In experiments, we will show that both $B U \left( o r T D \right)$ tickets and their task-rewinding $( T R )$ counterparts are winning tickets, which outperform unpruned full CIL models. Compared BU with TD pruning, TR-BU tickets surpass the best $T D$ tickets.
97
+
98
+ # 4.3 LOTTERY TEACHING: A PLUG-IN REGULARIZATION
99
+
100
+ Catastrophic forgetting poses a severe challenge to class-incremental learning, especially for compact models. (Castro et al., 2018; He et al., 2018; Javed & Shafait, 2018; Rebuffi et al., 2017) are early attempts for undertaking the forgetting dilemma by introducing knowledge distillation regularization (Hinton et al., 2015), which employs a handful of stored previous data in addition to new task data. (Zhang et al., 2020) takes advantage of unlabeled data to handle the forgetting quandary.
101
+
102
+ We adapt their philosophy (Li & Hoiem, 2017; Hinton et al., 2015; Zhang et al., 2020) to presenting lottery teaching, enforcing previous information into the new tickets via a knowledge distillation term on external unlabeled data. Lottery teaching consists of two steps: i) we query more similar unlabeled data “for free” from a public source, by utilizing a small number of prototype samples from previous tasks’ training data. In this way, the storage required for previous tasks could be minimal, while the queried surrogate data functions similarly for our purpose; ii) we then enforce the output soft logits of the current subnetwork $\{ \mathbf { m } ^ { ( i ) } { \odot } \pmb { \theta } ^ { ( i ) } , \pmb { \theta } _ { \mathrm { c } } ^ { ( i ) } \}$ on each queried unlabeled sample $\mathbf { x }$ to be close to the logits from previously trained subnetwork $\{ \mathbf { m } ^ { ( i - 1 ) } \odot \pmb \theta ^ { ( i - 1 ) } , \pmb \theta _ { \mathrm { c } } ^ { ( i - 1 ) } \}$ , via knowledge distillation (KD) regularization based on the ${ \mathrm { K } } { \mathrm { - } } { \mathrm { L } }$ divergence. For all experiments of our methods hereinafter, we by default append the lottery teaching as it is widely beneficial. An ablation study will also follow in Section 5.3.
103
+
104
+ # 5 EXPERIMENTS
105
+
106
+ Experimental Setup We briefly discuss the key facts used in our experiments and refer readers to Appendix A2.3 for more implementation details. We evaluate our proposed lifelong tickets on three datasets: CIFAR-10, CIFAR-100, and Tiny-ImageNet. We adopt ResNet18 (He et al., 2016) as our backbone. We evaluate the model performance by standard testing accuracy (SA) averaged over three independent runs.
107
+
108
+ CIL baseline: We consider a strong baseline framework derived from (Zhang et al., 2019), a recent state-of-the-art (SOTA) method introduced for imbalanced data training (see more illustrations in Appendix A1.1). We implement (Zhang et al., 2019) for CIL, and compare with two latest CIL
109
+
110
+ SOTAs: iCaRL (Rebuffi et al., 2017) and IL2M (Belouadah & Popescu, 2019)1. Our results demonstrate the adapted CIL method from (Zhang et al., 2019) outperforms the others significantly, $( 1 . 6 5 \%$ SA better than IL2M and $4 . 8 8 \%$ SA better than iCaRL on CIFAR-10)2, establishing a new SOTA bar. The proposed lottery teaching further improves the performance of the baseline adapted from Zhang et al. (2019), given by $4 . 4 \%$ SA improvements on CIFAR-10. Thus, we use (Zhang et al., 2019), combined with/without lottery teaching, to train the original (unpruned) CIL model.
111
+
112
+ CIL pruning: To the best of our knowledge, we are not aware of any effective CIL pruning baseline comparable to ours. Thus, we focus on the comparison among different variants of our methods. We also compare the proposal with the ordinary IMP, showing its incapability in CIL pruning. Furthermore, we demonstrate that given our proposed pruning frameworks, standard pruning methods such as IMP and $\ell _ { 1 }$ pruning (by imposing $\ell _ { 1 }$ sparsity regularization) then turn to be successful.
113
+
114
+ Results on TD tickets We begin by showing that TD pruning is non-trivial in CIL. We find that the ordinary IMP (Han et al., 2015a) fails: It leads to $1 0 . 2 1 \%$ SA degradation (from $7 2 . 7 9 \%$ to $6 2 . 5 8 \%$ for SA) with $4 . 4 0 \%$ parameters left. By contrast, our proposed lifelong tickets yield substantially better performance which even surpasses the full dense model, with fewer parameters left than the ordinary IMP (Han et al., 2015a).
115
+
116
+ In what follows, We evaluate TD lifelong pruning using different weight rewindings, namely, i) $T D$ tickets; ii) random TD tickets; iii) task-rewinding TD tickets; iv) late-rewinding $T D$ tickets; and v) Fine-tuning. The late-rewinding tickets is a strong baseline claimed in Mehta (2019).
117
+
118
+ Figure 3 and Table A4 demonstrate the high competitiveness of our proposed TD ticket (blue lines). It matches and most of the time outperforms the full model3 (black dash lines). Even with only $6 . 8 7 \%$ model parameters left, the TD ticket still surpasses the dense model by $0 . 4 9 \%$ SA. The task-rewinding tickets, in second place, exceeds the dense model until reaching the extreme sparsity of $4 . 4 0 \%$ . Moreover, we see late-rewinding TD tickets dominate over other rewinding/fine-tuning options, echoing the finding in single-task learning (Frankle et al., 2019).
119
+
120
+ ![](images/3f6d94fed7b2352c8af1c35f8bf439e1373ad7eb94a94845c8beb96e781a8135.jpg)
121
+ Figure 3: Evaluation performance (standard accuracy) of top-down lifelong tickets on CIFAR-10.
122
+
123
+ However, TD pruning cannot afford a lot more incremental tasks due to its greedy weight (over)pruning. Our results show that $T D$ tickets pruned from only tasks $\mathcal { T } _ { 1 }$ and $\mathcal { T } _ { 2 }$ clearly overfit the first two tasks, even after incrementally learning the remaining three tasks. In this inappropriate pruning schedule (in contrast to $\mathcal { T } _ { 1 } \sim \mathcal { T } _ { 5 }$ scheme), the resultant ticket drops to $5 9 . 2 8 \%$ SA which is $1 3 . 5 1 \%$ lower than the dense model, as shown in Table A3. More results can be found in the appendix. Therefore, bottom-up lifelong pruning is proposed, as a remedy for relieving laborious tuning of pruning schedules.
124
+
125
+ Results on BU lifelong tickets The bottom-up lifelong pruning allows the sparse network to regret if they could not deal with the newly added tasks, which compensates for the excessive pruning and reaches a substantially better trade-off between sparsity and generalization ability. Compared to TD pruning, it does not require any heuristic pruning schedules.
126
+
127
+ In Table 1, we first present the performance of $B U$ tickets, random BU tickets, and task-rewinding BU (TR-BU) tickets, as mentioned in Section 4.2. As we can see, TR-BU tickets obtain the supreme performance. A possible explanation is that task-rewinding (i.e., $\pmb { \theta } _ { 0 } ^ { ( i ) } = \pmb { \theta } ^ { ( i - 1 ) } )$ maintains full information of learned tasks which mitigates the catastrophic forgetting, while other weight rewinding points lack sufficient task information to prevent compact models from forgetting. Next, we observe that TR-BU tickets significantly outperform the full dense model by $0 . 5 \hat { 2 } \%$ SA with only $3 . 6 4 \%$ parameters left and $\ell _ { 1 }$ BU tickets obtain matched performance to the full dense model with $5 . 1 6 \%$ remaining parameters. It suggests that IMP, $\ell _ { 1 }$ and even other adequate pruning algorithms can be plugged into our proposed BU pruning framework to identify the lifelong tickets.
128
+
129
+ Table 1: Comparison results across full dense model, BU Tickets with different ticket initialization, and $\ell _ { 1 } \ : B U$ Tickets when training incrementally on CIFAR-10. $\mathcal { T } _ { 1 \sim i }$ denotes the learned sequential tasks $\mathcal { T } _ { 1 } \sim \mathcal { T } _ { i }$ .
130
+
131
+ <table><tr><td>Dataset Settings</td><td colspan="5">CIFAR-10 (Standard Accuracy /Remaining Weights </td></tr><tr><td></td><td>Ti (%)/100%</td><td>Ti~2 (%)/100%</td><td>Ti~3 (%)/100%</td><td>T1~4 (%)/100%</td><td>Ti~5 (%)/100%</td></tr><tr><td>Full Dense Model</td><td>97.75</td><td>89.10</td><td>82.83</td><td>76.99</td><td>72.79</td></tr><tr><td></td><td>Ti (%) / 2.81%</td><td>T1~2 (%)/3.11%</td><td>T1~3 (%)/3.40%</td><td>T1~4 (%)/3.64%</td><td>T1~5 (%)/3.64%</td></tr><tr><td rowspan="3">BU tickets random BU tickets TR-BU tickets</td><td>98.05</td><td>86.77</td><td>75.87</td><td>70.81</td><td>68.77</td></tr><tr><td>96.55</td><td>82.08</td><td>77.97</td><td>72.84</td><td>71.17</td></tr><tr><td>98.05</td><td>88.90</td><td>81.37</td><td>74.66</td><td>73.31</td></tr><tr><td></td><td>T1 (%)/1.80%</td><td>T1~2 (%)/2.93%</td><td>T1~3 (%) / 2.93%</td><td>T1~4 (%)/4.05%</td><td>T1~5 (%)/5.16%</td></tr><tr><td>lBU tickets</td><td>96.80</td><td>87.05</td><td>77.58</td><td>74.53</td><td>72.88</td></tr></table>
132
+
133
+ ![](images/39849fa0ef64a304f33b29374e876717a62ec85988db50e4cb18091f46a8f135.jpg)
134
+ Figure 4: Performance and sparsity comparison between TR-BU tickets and $T D$ tickets when training models incrementally. Left: CIFAR-10. Right: CIFAR-100. Upper: Comparison of SA. Bottom: Comparison of remaining weights in tickets. Above all, tickets located by TD pruning continue to shrink with the growth of incremental tasks. On the contrary, tickets founded by BU pruning keep expanding for each newly added task.
135
+
136
+ In Figure 4, we present the performance comparison between TR-BU tickets (the best subnetworks in Table 1) and TD tickets. TR-BU tickets are identified through bottom-up lifelong pruning, whose sparse masks continue to subtly grow along with the incremental tasks, from sparsity $2 . 8 \mathrm { i } \%$ at the first task to sparsity $3 . 6 4 \%$ at the last task. As we can see, at any incremental learning stage, TR-BU tickets attain a superior performance with significantly fewer parameters. Particularly, after learning all tasks, TR-BU tickets surpass $T D$ tickets by $1 . 0 1 \%$ SA with $0 . 7 6 \%$ fewer weights on CIFAR-10; $3 . 0 7 \%$ with $2 . 4 6 \%$ fewer weights on CIFAR-100. Results demonstrate TR-BU tickets have a better generalization ability and parameter-efficiency compared with $T D$ tickets. In addition, on TinyImageNet in Table A7, TR-BU tickets outperform full model with only $1 2 . 0 8 \%$ remaining weights. It is worth to mention that both TR-BU tickets and TD tickets have a superior performance than full dense model. We refer readers to Table A5 and A6 in the appendix for more detailed results.
137
+
138
+ From the above results, we further observe that TR-BU tickets achieve comparable accuracy to full models which have more than $\mathbf { 3 0 } \times$ times in network capacity, implying that bottom-up lifelong pruning successfully discovers extremely sparse sub-networks, and yet they are powerful enough to inherit previous knowledge and generalize well on newly added tasks. Furthermore, our proposed lifelong pruning schemes can be directly plugged into other CIL models to identify the lifelong ticket, as shown in Appendix A1.
139
+
140
+ Ablation studies In what follows, we summarize our results on ablation studies and refer readers to the appendix A1.2.1 for more details. In Figure 5, we show the essential role of the curriculum schedule in TD pruning compared to the uniform pruning schedule. We notice that the curriculum pruning scheme generates stronger $T D$ tickets than the uniform pruning in terms of accuracy, which confirms our motivation that pruning heavier in the late stage of lifelong learning with more classes is beneficial. In Table A8, we demonstrate the effectiveness of our proposals against different numbers of incremental tasks. In the Figure 5, we show that lottery teaching injects previous knowledge through applying knowledge distillation on external unlabeled data, and greatly alleviates the catastrophic forgetting issue in lifelong pruning (i.e., after learning all tasks, utilizing lottery teaching obtains a $\bar { 4 . 3 4 \% }$ SA improvement on CIFAR-10). It is worth mentioning that we set a buffer of fixed storage capacity to store 128 unlabeled images queried from public sources at each training iteration. We find that leveraging newly queried unlabeled data offers a better generalization-ability than storing historical data in past tasks. The latter only reaches $7 0 . 6 0 \%$ SA on CIFAR-10, which is $2 . 1 9 \%$ worse than the use of unlabeled data.
141
+
142
+ ![](images/b2f3e6f0534ecd30183a29f36ad23b0afbbf316203408bfe3dda3871043353e7.jpg)
143
+ Figure 5: Left: the results of $T D$ Tickets with/without lottery teaching. Right: the comparison of $T D$ tickets $( 1 0 . 7 4 \% )$ obtained from uniform and curriculum pruning schedule. Experiments are conducted on CIFAR-10.
144
+
145
+ # 6 CONCLUSION
146
+
147
+ We extend the Lottery Ticket Hypothesis to lifelong learning, in which networks incrementally learn from sequential tasks. We pose top-down and bottom-up lifelong pruning algorithms to identify lifelong tickets. Systematical experiments are conducted to validate that located tickets obtain strong(er) generalization ability across all incremental learned tasks, compared with unpruned models. Our future work aims to explore lifelong tickets with the (full) model growing approach.
148
+
149
+ # REFERENCES
150
+
151
+ Davide Abati, Jakub Tomczak, Tijmen Blankevoort, Simone Calderara, Rita Cucchiara, and Babak Ehteshami Bejnordi. Conditional channel gated networks for task-aware continual learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3931–3940, 2020.
152
+ Rahaf Aljundi, Francesca Babiloni, Mohamed Elhoseiny, Marcus Rohrbach, and Tinne Tuytelaars. Memory aware synapses: Learning what (not) to forget. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 139–154, 2018a.
153
+ Rahaf Aljundi, Marcus Rohrbach, and Tinne Tuytelaars. Selfless sequential learning. arXiv preprint arXiv:1806.05421, 2018b.
154
+ Anonymous. Why lottery ticket wins? a theoretical perspective of sample complexity on sparse neural networks. In Submitted to International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id $=$ 8pz6GXZ3YT. under review.
155
+ Eden Belouadah and Adrian Popescu. Il2m: Class incremental learning with dual memory. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
156
+ Eden Belouadah and Adrian Popescu. Scail: Classifier weights scaling for class incremental learning. In The IEEE Winter Conference on Applications of Computer Vision, pp. 1266–1275, 2020.
157
+ Francisco M Castro, Manuel J Mar´ın-Jimenez, Nicol ´ as Guil, Cordelia Schmid, and Karteek Alahari. ´ End-to-end incremental learning. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 233–248, 2018.
158
+
159
+ Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. arXiv preprint arXiv:1812.00420, 2018.
160
+
161
+ Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Michael Carbin, and Zhangyang Wang. The lottery tickets hypothesis for supervised and self-supervised pre-training in computer vision models. arXiv preprint arXiv:2012.06908, 2020a.
162
+
163
+ Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Zhangyang Wang, and Michael Carbin. The lottery ticket hypothesis for pre-trained bert networks. arXiv preprint arXiv:2007.12223, 2020b.
164
+
165
+ Tianlong Chen, Yongduo Sui, Xuxi Chen, Aston Zhang, and Zhangyang Wang. A unified lottery ticket hypothesis for graph neural networks, 2021a.
166
+
167
+ Xuxi Chen, Zhenyu Zhang, Yongduo Sui, and Tianlong Chen. $\{ \mathrm { G A N } \} \mathrm { s }$ can play lottery tickets too. In International Conference on Learning Representations, 2021b. URL https: //openreview.net/forum?id $=$ 1AoMhc_9jER.
168
+
169
+ Justin Cosentino, Federico Zaiter, Dan Pei, and Jun Zhu. The search for sparse, robust neural networks. arXiv preprint arXiv:1912.02386, 2019.
170
+
171
+ Shrey Desai, Hongyuan Zhan, and Ahmed Aly. Evaluating lottery tickets under distributional shifts. arXiv preprint arXiv:1910.12708, 2019.
172
+
173
+ Sayna Ebrahimi, Mohamed Elhoseiny, Trevor Darrell, and Marcus Rohrbach. Uncertainty-guided continual learning with bayesian neural networks. arXiv preprint arXiv:1906.02425, 2019.
174
+
175
+ Mohamed Elhoseiny, Francesca Babiloni, Rahaf Aljundi, Marcus Rohrbach, Manohar Paluri, and Tinne Tuytelaars. Exploring the challenges towards lifelong fact learning. In Asian Conference on Computer Vision, pp. 66–84. Springer, 2018.
176
+
177
+ Utku Evci, Fabian Pedregosa, Aidan Gomez, and Erich Elsen. The difficulty of training sparse neural networks. arXiv preprint arXiv:1906.10732, 2019.
178
+
179
+ Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. 2019. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } }$ rJl-b3RcF7.
180
+
181
+ Jonathan Frankle, Gintare Karolina Dziugaite, Daniel M Roy, and Michael Carbin. The lottery ticket hypothesis at scale. arXiv preprint arXiv:1903.01611, 2019.
182
+
183
+ Jonathan Frankle, David J. Schwab, and Ari S. Morcos. The early phase of neural network training. In International Conference on Learning Representations, 2020. URL https: //openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } = \underline { { \underline { { \mathbf { \delta \pi } } } } } .$ Hkl1iRNFwS.
184
+
185
+ Trevor Gale, Erich Elsen, and Sara Hooker. The state of sparsity in deep neural networks. arXiv preprint arXiv:1902.09574, 2019.
186
+
187
+ Siavash Golkar, Michael Kagan, and Kyunghyun Cho. Continual learning via neural pruning. arXiv preprint arXiv:1903.04476, 2019.
188
+
189
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015a.
190
+
191
+ Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 1135–1143. Curran Associates, Inc., 2015b.
192
+
193
+ Tyler L Hayes and Christopher Kanan. Lifelong machine learning with deep streaming linear discriminant analysis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 220–221, 2020.
194
+
195
+ Chen He, Ruiping Wang, Shiguang Shan, and Xilin Chen. Exemplar-supported generative reproduction for class incremental learning. In British Machine Vision Conference, 2018.
196
+
197
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
198
+
199
+ Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1389–1397, 2017.
200
+
201
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
202
+
203
+ Ching-Yi Hung, Cheng-Hao Tu, Cheng-En Wu, Chien-Hung Chen, Yi-Ming Chan, and Chu-Song Chen. Compacting, picking and growing for unforgetting continual learning. In Advances in Neural Information Processing Systems, pp. 13669–13679, 2019.
204
+
205
+ Khurram Javed and Faisal Shafait. Revisiting distillation and incremental classifier learning. In Asian Conference on Computer Vision, pp. 3–17. Springer, 2018.
206
+
207
+ Ronald Kemker and Christopher Kanan. Fearnet: Brain-inspired model for incremental learning. arXiv preprint arXiv:1711.10563, 2017.
208
+
209
+ James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, 114(13):3521–3526, 2017.
210
+
211
+ A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Master’s thesis, Department of Computer Science, University of Toronto, 2009.
212
+
213
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
214
+
215
+ Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In D. S. Touretzky (ed.), Advances in Neural Information Processing Systems 2, pp. 598–605. Morgan-Kaufmann, 1990a. URL http://papers.nips.cc/paper/250-optimal-brain-damage.pdf.
216
+
217
+ Yann LeCun, John S Denker, and Sara A Solla. Optimal brain damage. In Advances in neural information processing systems, pp. 598–605, 1990b.
218
+
219
+ Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE transactions on pattern analysis and machine intelligence, 40(12):2935–2947, 2017.
220
+
221
+ Xialei Liu, Chenshen Wu, Mikel Menta, Luis Herranz, Bogdan Raducanu, Andrew D Bagdanov, Shangling Jui, and Joost van de Weijer. Generative feature replay for class-incremental learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 226–227, 2020.
222
+
223
+ Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2736–2744, 2017.
224
+
225
+ Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In International Conference on Learning Representations, 2019. URL https: //openreview.net/forum?id $=$ rJlnB3C5Ym.
226
+
227
+ David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. In Advances in neural information processing systems, pp. 6467–6476, 2017.
228
+
229
+ Haoyu Ma, Tianlong Chen, Ting-Kuei Hu, Chenyu You, Xiaohui Xie, and Zhangyang Wang. Good students play big lottery better. arXiv preprint arXiv:2101.03255, 2021.
230
+
231
+ Michael McCloskey and Neal J Cohen. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation, volume 24, pp. 109–165. Elsevier, 1989.
232
+
233
+ Rahul Mehta. Sparse transfer learning via winning lottery tickets. arXiv preprint arXiv:1905.07785, 2019.
234
+
235
+ Ari Morcos, Haonan Yu, Michela Paganini, and Yuandong Tian. One ticket to win them all: generalizing lottery ticket initializations across datasets and optimizers. In Advances in Neural Information Processing Systems, pp. 4933–4943, 2019.
236
+
237
+ German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 2019.
238
+
239
+ Jathushan Rajasegaran, Munawar Hayat, Salman H Khan, Fahad Shahbaz Khan, and Ling Shao. Random path selection for continual learning. In Advances in Neural Information Processing Systems, pp. 12669–12679, 2019.
240
+
241
+ Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 2001–2010, 2017.
242
+
243
+ Alex Renda, Jonathan Frankle, and Michael Carbin. Comparing rewinding and fine-tuning in neural network pruning. In International Conference on Learning Representations, 2020. URL https: //openreview.net/forum?id ${ . } = { }$ S1gSj0NKvB.
244
+
245
+ Amir Rosenfeld and John K Tsotsos. Incremental learning through deep adaptation. IEEE transactions on pattern analysis and machine intelligence, 2018.
246
+
247
+ Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.
248
+
249
+ Pedro Savarese, Hugo Silva, and Michael Maire. Winning the lottery with continuous sparsification, 2020. URL https://openreview.net/forum?id ${ . } = { }$ BJe4oxHYPB.
250
+
251
+ Hanul Shin, Jung Kwon Lee, Jaehong Kim, and Jiwon Kim. Continual learning with deep generative replay. In Advances in Neural Information Processing Systems, pp. 2990–2999, 2017.
252
+
253
+ Ghada Sokar, Decebal Constantin Mocanu, and Mykola Pechenizkiy. Spacenet: Make free space for continual learning. arXiv preprint arXiv:2007.07617, 2020.
254
+
255
+ Sebastian Thrun and Tom M Mitchell. Lifelong robot learning. Robotics and autonomous systems, 15(1-2):25–46, 1995.
256
+
257
+ Naftali Tishby and Noga Zaslavsky. Deep learning and the information bottleneck principle. In 2015 IEEE Information Theory Workshop (ITW), pp. 1–5. IEEE, 2015.
258
+
259
+ Antonio Torralba, Rob Fergus, and William T Freeman. 80 million tiny images: A large data set for nonparametric object and scene recognition. IEEE transactions on pattern analysis and machine intelligence, 30(11):1958–1970, 2008.
260
+
261
+ Chaoqi Wang, Guodong Zhang, and Roger Grosse. Picking winning tickets before training by preserving gradient flow. arXiv preprint arXiv:2002.07376, 2020.
262
+
263
+ Yu-Xiong Wang, Deva Ramanan, and Martial Hebert. Growing a brain: Fine-tuning by increasing model capacity. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2471–2480, 2017.
264
+
265
+ Haoran You, Chaojian Li, Pengfei Xu, Yonggan Fu, Yue Wang, Xiaohan Chen, Richard G. Baraniuk, Zhangyang Wang, and Yingyan Lin. Drawing early-bird tickets: Toward more efficient training of deep networks. In International Conference on Learning Representations, 2020. URL https: //openreview.net/forum?id $=$ BJxsrgStvr.
266
+
267
+ Haonan Yu, Sergey Edunov, Yuandong Tian, and Ari S Morcos. Playing the lottery with rewards and multiple languages: lottery tickets in rl and nlp. arXiv preprint arXiv:1906.02768, 2019.
268
+
269
+ Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. Proceedings of machine learning research, 70:3987, 2017.
270
+
271
+ Junjie Zhang, Lingqiao Liu, Peng Wang, and Chunhua Shen. To balance or not to balance: A simple-yet-effective approach for learning with long-tailed distributions. arXiv, pp. arXiv–1912, 2019.
272
+
273
+ Junting Zhang, Jie Zhang, Shalini Ghosh, Dawei Li, Serafettin Tasci, Larry Heck, Heming Zhang, and C-C Jay Kuo. Class-incremental learning via deep model consolidation. In The IEEE Winter Conference on Applications of Computer Vision, pp. 1131–1140, 2020.
274
+
275
+ Hao Zhou, Jose M Alvarez, and Fatih Porikli. Less is more: Towards compact cnns. In European Conference on Computer Vision, pp. 662–677. Springer, 2016.
276
+
277
+ # A1 MORE EXPERIMENT RESULTS
278
+
279
+ # A1.1 MORE BASELINE RESULTS
280
+
281
+ Comparison with the Latest CIL SOTAs We find (Zhang et al., 2019) can be naturally introduced to class-incremental learning, which tackles the intrinsic training bias between a handful of previously stored data and a large amount of newly added data. It adopts random and class-balanced sampling strategies, combined with an auxiliary classifier, to alleviate the negative impact from imbalanced classes. Extensive results, shown in Table A2, demonstrates that adopting (Zhang et al., 2019) as the simple baseline surpasses previous SOTAs iCaRL (Rebuffi et al., 2017) and IL2M (Belouadah & Popescu, 2019) by a significant performance margin $( 1 . 6 5 \% / 0 . 5 7 \%$ SA better than IL2M and $4 . 8 8 \% / 7 . 6 0 \%$ SA better than iCaRL on CIFAR-10/CIFAR-100, respectively)4, establishing a new SOTA bar. With the assistance of lottery teaching, (Zhang et al., 2019) obtains an extra performance boost, $4 . 4 \%$ SA on CIFAR-10 and $7 . 3 4 \%$ SA on CIFAR-100.
282
+
283
+ It is worth mentioning that a lifelong ticket also exists in other CIL models. Take IL2M on CIFAR-10 as an example, bottom-up (BU) ticket achieves accuracy $6 8 . 9 2 \%$ with $1 1 . 9 7 \%$ parameters vs. the dense unpruned model with an accuracy of $6 6 . 7 4 \%$ .
284
+
285
+ Table A2: Comparison between our dense model and two previous SOTA CIL methods on CIFAR10 and CIFAR-100. Reported performance it the final accuracy for each task $\tau$ . Simple baseline donates the dense CIL model (Zhang et al., 2019). Full model represents our proposed framework which combines lottery teaching technique with the simple baseline.
286
+
287
+ <table><tr><td colspan="3">Methods</td><td>T1 (%)</td><td>T2 (%)</td><td>T(%)</td><td></td><td>T4 (%)</td><td>T5 (%)</td><td>Average (%)</td><td></td></tr><tr><td colspan="3"></td><td>76.45 78.20</td><td>79.00 64.05</td><td>75.70 60.40</td><td></td><td>50.85 38.95</td><td>35.55 92.10</td><td>63.51 66.74</td><td></td></tr><tr><td colspan="3">Simple Baseline Full Model</td><td>75.05</td><td>71.50</td><td>54.25</td><td></td><td>52.05</td><td>89.10</td><td>68.39</td><td></td></tr><tr><td colspan="3">CIFAR-100</td><td>79.70</td><td>79.12</td><td></td><td>68.23</td><td>63.45</td><td>73.43</td><td>72.79</td><td></td></tr><tr><td colspan="2">Methods iCaRL</td><td>T1(%) T(%)</td><td>T (%)</td><td>T4(%)</td><td>T5(%)</td><td>T6(%)</td><td>T7(%)</td><td>T8 (%)</td><td>Tg(%) T10 (%)</td><td>Average (%)</td></tr><tr><td colspan="2">IL2M</td><td>5.90 7.50 19.90</td><td>4.50</td><td>2.80</td><td>9.00</td><td>8.00</td><td>28.20</td><td>38.50</td><td>59.60 80.20 40.30</td><td>24.42 31.45</td></tr><tr><td colspan="2">Simple Baseline</td><td>24.10</td><td>19.80</td><td>12.90</td><td>21.30</td><td>21.70</td><td>29.90</td><td>34.80</td><td>89.80</td><td></td></tr><tr><td colspan="2">Full Model</td><td>21.20 32.10 29.04</td><td>23.00</td><td>22.70</td><td>21.70</td><td>31.70</td><td>39.60</td><td>33.80</td><td>54.30</td><td>32.02</td></tr><tr><td colspan="2"></td><td></td><td></td><td></td><td></td><td></td><td></td><td>40.20</td><td></td><td></td></tr><tr><td colspan="2"></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td colspan="2"></td><td></td><td></td><td></td><td>32.74</td><td>29.64</td><td></td><td></td><td></td><td></td></tr><tr><td colspan="2"></td><td>33.94</td><td>32.54</td><td>27.94</td><td></td><td></td><td>47.94</td><td>45.34 47.24</td><td>67.24</td><td>39.36</td></tr></table>
288
+
289
+ Pruning Schedule is Important As shown in Table A3, an inappropriate pruning schedule across $\mathcal { T } _ { 1 } \sim \mathcal { T } _ { 2 }$ , the resultant ticket drops to $5 9 . 2 8 \%$ accuracy which is $1 3 . 5 1 \%$ lower than the dense model. On the contrary, the adequate scheme across $\mathcal { T } _ { 1 } \sim \mathcal { T } _ { 5 }$ in Table A3, generates a TD winning ticket with a higher test accuracy $( + 0 . 4 9 \%$ SA) and extreme fewer parameters $( 6 . 8 7 \% )$ , compared with the dense CIL model.
290
+
291
+ Table A3: Evaluation performance of TD tickets $( 6 . 8 7 \% )$ ) pruned from different task ranges.
292
+
293
+ <table><tr><td rowspan="2">Pruning Schedule</td><td colspan="6">TD Tickets (6.87%) on CIFAR-10</td></tr><tr><td>T1(%)</td><td>T(%)</td><td>T(%)</td><td>T4(%)</td><td>T5(%)</td><td>Average (%)</td></tr><tr><td>Prune acrossT1 ~ T2</td><td>74.05</td><td>88.80</td><td>78.25</td><td>28.40</td><td>26.90</td><td>59.28</td></tr><tr><td>Prune acrossT1 ~ T5</td><td>78.90</td><td>82.15</td><td>71.55</td><td>63.80</td><td>70.00</td><td>73.28</td></tr></table>
294
+
295
+ # A1.2 MORE LIFELONG TICKETS RESULTS
296
+
297
+ Top-down Lifelong Tickets We also report several performance reference baselines: (a) Full model, denoting the achievable performance of the dense CIL model (Zhang et al., 2019) combined with lottery teaching. (b) $\mathrm { C I L } _ { \mathrm { l o w e r } }$ denoting a vanilla CIL model without using lottery teaching nor storing/utilizing previous data in any form; (c) $\mathbf { M T } _ { \mathrm { u p p e r } }$ training a dense model using full data from all tasks simultaneously in a multi-task learning scheme. While it is not CIL (and much easier to learn), we consider $\mathbf { M T } _ { \mathrm { u p p e r } }$ as an accuracy “upper bound” for (dense) CIL ; (d) $\mathbf { M T } _ { \mathrm { L T } }$ by directly pruning $\mathbf { M T } _ { \mathrm { u p p e r } }$ to obtain its lottery ticket (Frankle & Carbin, 2019). The detailed evaluation performance of $T D$ tickets at different sparsity levels on CIFAR-10 are collected in Table A4.
298
+
299
+ ![](images/758d9ce1988f728c5714ac7574846153a66bc7c07159187cff47a34b8abd6ef3.jpg)
300
+ Figure A6: Evaluation performance (standard accuracy) of top-down lifelong tickets. The right figure zooms in the red dash-line box in the left figure.
301
+
302
+ Table A4: Evaluation performance of $T D$ tickets at different sparsity levels on CIFAR-10. Reported performance is the final accuracy for each task $\tau$ . Differences $( + / - )$ are calculated w.r.t. the full/dense model performance.
303
+
304
+ <table><tr><td rowspan="2">Remaining Weights</td><td colspan="6">TD Tickets on CIFAR-10</td></tr><tr><td>T1 (%)</td><td>T2 (%)</td><td>T (%)</td><td>T4 (%)</td><td>T5 (%)</td><td>Average (%)</td></tr><tr><td>MTupper : (100.00%)</td><td>97.48</td><td>97.48</td><td>93.33</td><td>90.83</td><td>94.03</td><td>94.63</td></tr><tr><td>CILlower (100.00%)</td><td>0.00</td><td>0.00</td><td>0.00</td><td>0.00</td><td>93.70</td><td>18.74</td></tr><tr><td>100.00%</td><td>79.70</td><td>79.12</td><td>68.23</td><td>63.45</td><td>73.43</td><td>72.79</td></tr><tr><td>32.77%</td><td>84.30</td><td>80.05</td><td>70.70</td><td>67.75</td><td>69.55</td><td>74.47 + 1.68</td></tr><tr><td>10.74%</td><td>78.90</td><td>77.75</td><td>76.30</td><td>63.55</td><td>71.05</td><td>73.51 + 0.72</td></tr><tr><td>6.87%</td><td>78.90</td><td>82.15</td><td>71.55</td><td>63.80</td><td>70.00</td><td>73.28 + 0.49</td></tr><tr><td>4.40%</td><td>82.25</td><td>78.55</td><td>65.10</td><td>65.38</td><td>70.23</td><td>72.30 - 0.49</td></tr><tr><td>2.25%</td><td>78.20</td><td>78.30</td><td>69.50</td><td>58.20</td><td>65.00</td><td>69.84 - 2.45</td></tr></table>
305
+
306
+ Bottom-up Lifelong Tickets As shown in Table A5 and Table A6, even compared with the best TD tickets in terms of the trade-off between sparsity and accuracy, TR-BU tickets consistently remain prominent on both CIFAR-10 (a slightly higher accuracy and ${ \mathrm { { \bar { 3 } . 2 3 \% } } }$ fewer weights) and CIFAR100 $( 2 . 3 7 \%$ higher accuracy and $4 . { \bar { 8 } } 8 \%$ fewer weights). From the results, we further observe that TR-BU tickets achieve comparable accuracy to full models which have more than $\mathbf { 3 0 } \times$ times in network capacity, implying that bottom-up lifelong pruning successfully discovers extremely sparse sub-networks, and yet they are powerful enough to inherit previous knowledge and generalize well on newly added tasks.
307
+
308
+ # A1.2.1 MORE ABLATION RESULTS
309
+
310
+ Uniform v.s. Curriculum Lifelong Pruning We discuss different pruning schedules of top-down lifelong pruning, which play an essential role in the performance of $T D$ tickets. From the right figure in Figure A7, we notice that the curriculum pruning scheme generates stronger $T D$ tickets than the uniform pruning in terms of accuracy, which confirms our motivation that pruning heavier in the late stage of lifelong learning with more classes is beneficial.
311
+
312
+ The Number of Incremental Tasks Here we study the influence of increment times in our lifelong learning settings. Table A8 shows the results of $T R \mathrm { - } B U _ { \mathrm { 2 0 } }$ tickets incrementally learn from 20 tasks (5 classes per task); Table A6 presents the results of $T R \mathrm { - } B U _ { 1 0 }$ tickets incrementally learn from 10 tasks (10 classes per task). Comparing between two tickets, $T R \mathrm { - } B U _ { 1 0 }$ tickets reach $6 . 5 5 \%$ higher accuracy at the expense of $1 . 7 7 \%$ more parameters. Possible reasons behind it are that: i) the increasing of incremental learning times aggravates the forgetting issue, which causes $T R \mathrm { - } B U _ { 2 0 }$ tickets fall in a
313
+
314
+ Table A5: Evaluation performance of TR-BU/TD tickets on CIFAR-10. $\mathcal { T } _ { 1 \sim i }$ , $i \in \{ 1 , 2 , 3 , 4 , 5 \}$ donates that models have learned from $\tau _ { 1 } , \cdots , \tau _ { i }$ incrementally. $\frac { | | { \pmb m } | | _ { 0 } } { | | { \pmb \theta } | | _ { 0 } }$ represents the current network sparsity.
315
+
316
+ <table><tr><td rowspan="2">Compact Weights</td><td colspan="10">CIFAR-10</td></tr><tr><td>T1(%)</td><td>mlle Tllo</td><td>T1~2(%)</td><td>mlle Tllo</td><td>T1~3(%)</td><td>mllo T0llo</td><td>T1~4 (%)</td><td>mllo Tllo</td><td>T1~5 (%)</td><td>Umllo T0ll</td></tr><tr><td>MTupper</td><td>=</td><td>-</td><td>=</td><td>-</td><td>=</td><td>-</td><td>-</td><td>-</td><td>94.63</td><td>100.00%</td></tr><tr><td>CILlower</td><td>97.60</td><td>100.00%</td><td>49.80</td><td>100.00%</td><td>32.57</td><td>100.00%</td><td>23.23</td><td>100.00%</td><td>18.74</td><td>100.00%</td></tr><tr><td>Full Model</td><td>97.75</td><td>100.00%</td><td>89.10</td><td>100.00%</td><td>82.83</td><td>100.00%</td><td>76.99</td><td>100.00%</td><td>72.79</td><td>100.00%</td></tr><tr><td>TD tickets (6.87%)</td><td>98.05</td><td>80.00%</td><td>87.55</td><td>64.00%</td><td>80.20</td><td>40.96%</td><td>73.21</td><td>16.78%</td><td>73.28</td><td>6.87%</td></tr><tr><td>TD tickets (4.40%)</td><td>98.10</td><td>80.00%</td><td>87.83</td><td>64.00%</td><td>79.30</td><td>32.77%</td><td>72.34</td><td>13.42%</td><td>72.30</td><td>4.40%</td></tr><tr><td>TR-BU tickets (3.64%)</td><td>96.80</td><td>2.81%</td><td>88.90</td><td>3.11%</td><td>81.37</td><td>3.40%</td><td>74.66</td><td>3.64%</td><td>73.31</td><td>3.64%</td></tr></table>
317
+
318
+ Table A6: Evaluation performance of TR-BU/TD tickets when training incrementally on CIFAR-100.
319
+
320
+ <table><tr><td rowspan="2">Compact Weights</td><td colspan="9">CIFAR-100</td></tr><tr><td>T1 (%)</td><td>mllo Tl</td><td>T1~2 (%)</td><td>mlle Tl</td><td>T1~3 (%)</td><td>mlle T101l</td><td>T1~4 (%)</td><td>mlle Tl</td><td>T1~5 (%) mll T0ll</td></tr><tr><td>MTupper</td><td>-</td><td>-</td><td>=</td><td>=</td><td>=</td><td></td><td>- =</td><td></td><td></td></tr><tr><td>CILlower</td><td>87.40</td><td>100.00%</td><td>44.65</td><td>100.00%</td><td>28.67 100.00%</td><td>20.08</td><td>100.00%</td><td>17.44</td><td>100.00%</td></tr><tr><td>Full Model</td><td>88.30</td><td>100.00%</td><td>74.90</td><td>100.00%</td><td>63.70</td><td>100.00% 53.58</td><td>100.00%</td><td>48.52</td><td>100.00%</td></tr><tr><td>TD Tickets (12.08%)</td><td>88.34</td><td>80.00%</td><td>71.60</td><td>64.00%</td><td>58.80</td><td>51.2% 48.88</td><td>40.96%</td><td>43.60</td><td>32.77%</td></tr><tr><td>TD Tickets (9.66%)</td><td>88.20</td><td>80.00%</td><td>71.50</td><td>64.00%</td><td>58.73</td><td>51.2%</td><td>48.45 40.96%</td><td>44.08</td><td>32.77%</td></tr><tr><td>BU Tickets (7.20%)</td><td>85.70</td><td>5.50%</td><td>74.75</td><td>5.78%</td><td>65.93</td><td>6.07%</td><td>53.15 6.07%</td><td>48.18</td><td>6.07%</td></tr><tr><td>Compact Weights</td><td>T1~6 (%)</td><td></td><td>T~7(%)</td><td>事</td><td>T1~8(%)</td><td>喜 T~9(%)</td><td>事</td><td>T1~10 (%)</td><td></td></tr><tr><td>MTupper</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>74.11</td><td>100.00%</td></tr><tr><td>CILlower</td><td>14.07</td><td>100.00%</td><td>12.64</td><td>100.00%</td><td>10.91</td><td>- 100.00% 9.66</td><td>100.00%</td><td>8.64</td><td>100.00%</td></tr><tr><td>Full Model</td><td>45.82</td><td>100.00%</td><td>44.07</td><td>100.00%</td><td>42.35</td><td>100.00% 40.93</td><td>100.00%</td><td>39.36</td><td>100.00%</td></tr><tr><td>TD Tickets (12.08%)</td><td>41.50</td><td>26.21%</td><td>38.19</td><td>20.97%</td><td>37.28</td><td>16.78% 37.63</td><td>13.42%</td><td>37.42</td><td>12.08%</td></tr><tr><td>TD Tickets (9.66%)</td><td>41.18</td><td>26.21%</td><td>39.37</td><td>20.97%</td><td>38.06</td><td>16.78%</td><td>37.30 13.42%</td><td>36.72</td><td>9.66%</td></tr><tr><td>BU Tickets (7.20%)</td><td>47.58</td><td>6.35%</td><td>43.59</td><td>6.63%</td><td>41.35</td><td>6.63%</td><td>39.80</td><td>6.92%</td><td>39.79 7.20%</td></tr></table>
321
+
322
+ Table A7: Evaluation performance of TR-BU/TD tickets when training incrementally on TinyImageNet.
323
+
324
+ <table><tr><td rowspan="2">Compact Weights</td><td colspan="10">CIFAR-100</td></tr><tr><td>T1 (%)</td><td>喜</td><td>T1~2(%)</td><td>d</td><td>T1~3(%)</td><td></td><td>T1~4 (%)</td><td>事</td><td>T1~5 (%)</td><td></td></tr><tr><td>Full Model</td><td>73.70</td><td>100.00%</td><td>59.60</td><td>100.00%</td><td>52.07</td><td>100.00%</td><td>43.85</td><td>100.00%</td><td>41.32</td><td>100.00%</td></tr><tr><td>BU Tickets (12.08%)</td><td>75.00</td><td>10.74%</td><td>58.60</td><td>11.01%</td><td>54.93</td><td>11.28%</td><td>47.23</td><td>11.28%</td><td>43.36</td><td>11.28%</td></tr><tr><td>Compact Weights</td><td>T1~6(%)</td><td>mlle T0lo</td><td>T1~7 (%)</td><td></td><td>T1~8(%)</td><td></td><td>T1~9 (%)</td><td></td><td>T1~10 (%)</td><td>ml </td></tr><tr><td>Full Model</td><td>37.32</td><td>100.00%</td><td>34.69</td><td>100.00%</td><td>30.23</td><td>100.00%</td><td>29.94</td><td>100.00%</td><td>28.29</td><td>100.00%</td></tr><tr><td>BU Tickets (12.08%)</td><td>36.93</td><td>11.28%</td><td>36.43</td><td>11.54%</td><td>32.41</td><td>11.54%</td><td>29.16</td><td>11.81%</td><td>28.33</td><td>12.08%</td></tr></table>
325
+
326
+ ![](images/744281757d994928d90ae5e3ee90096255c6094a423b39d4dc1c75f2c43c5418.jpg)
327
+ Figure A7: Left: the results of $T D$ Tickets with/without lottery teaching. Right: the comparison of $T D$ tickets $( 1 0 . 7 4 \% )$ obtained from uniform and curriculum pruning schedule. Experiments are conducted on CIFAR-10.
328
+
329
+ Table A8: Evaluation performance of TR-BU Tickets when models incrementally learn 20 tasks on CIFAR-100.
330
+
331
+ <table><tr><td rowspan="2">Compact Weights</td><td colspan="10">CIFAR-100</td></tr><tr><td>Ti (%)</td><td>mllo T</td><td>T1~2(%)</td><td>Imlle Tl。</td><td>T1~3(%)</td><td>Imlle Tlo</td><td>T1~4 (%)</td><td>lmllo Tl</td><td>T1~5 (%)</td><td>mlle T10ll</td></tr><tr><td>Full Model</td><td>89.20</td><td>100.00%</td><td>73.60</td><td>100.00%</td><td>67.33</td><td>100.00%</td><td>59.40</td><td>100.00%</td><td>52.16</td><td>100.00%</td></tr><tr><td>TR-BU Tickets (5.43%)</td><td>86.80</td><td>2.81%</td><td>75.20</td><td>3.11%</td><td>66.47</td><td>3.40%</td><td>60.75</td><td>3.40%</td><td>53.68</td><td>3.40%</td></tr><tr><td>Compact Weights</td><td>T1~6 (%)</td><td>事</td><td>T1~7(%)</td><td></td><td>T~8(%)</td><td>喜</td><td>T1~9(%)</td><td></td><td>T1~10(%)</td><td></td></tr><tr><td>Full Model TR-BU Tickets (5.43%)</td><td>50.10 50.40</td><td>100.00%</td><td>46.80</td><td>100.00%</td><td>43.35</td><td>100.00%</td><td>41.71</td><td>100.00%</td><td>38.62</td><td>100.00%</td></tr><tr><td></td><td></td><td>3.40%</td><td>47.11</td><td>3.69%</td><td>44.10</td><td>3.98%</td><td>43.29</td><td>4.27%</td><td>38.70</td><td>4.27% mlle</td></tr><tr><td>Compact Weights</td><td>T1~11 (%)</td><td></td><td>T1~12 (%)</td><td>Lmlle 1101l</td><td>T1~13 (%)</td><td></td><td>T1~14 (%)</td><td>mlle 10lo</td><td>T~15(%)</td><td>10</td></tr><tr><td>FullModel TR-BU Tickets (5.43%)</td><td>36.38</td><td>100.00%</td><td>35.77</td><td>100.00%</td><td>35.14</td><td>100.00%</td><td>34.66</td><td>100.00%</td><td>35.41</td><td>100.00%</td></tr><tr><td></td><td>37.35</td><td>4.27%</td><td>35.88</td><td>4.27%</td><td>34.62</td><td>4.27%</td><td>33.87</td><td>4.27%</td><td>35.48</td><td>4.56%</td></tr><tr><td>Compact Weights</td><td>T1~16 (%)</td><td>lmllo T101l</td><td>T1~17 (%)</td><td>mll T0</td><td>T1~18 (%)</td><td>mle 1101l0</td><td>T1~19 (%)</td><td>mllo T10l</td><td>T1~20 (%)</td><td>mllo 10l</td></tr><tr><td>Full Model TR-BU Tickets (5.43%)</td><td>34.43 34.64</td><td>100.00% 4.56%</td><td>33.98 34.13</td><td>100.00% 4.85%</td><td>34.14 33.69</td><td>100.00% 5.14%</td><td>32.65 31.84</td><td>100.00% 5.14%</td><td>33.13 33.24</td><td>100.00% 5.43%</td></tr></table>
332
+
333
+ worse accuracy decay; ii) at each incremental stage, $T R \mathrm { - } B U _ { 1 0 }$ tickets learn more knowledge (10 v.s.
334
+ 5 classes per task), which requires a large network capacity.
335
+
336
+ With v.s. Without Lottery Teaching Comparison results between $T D$ tickets with lottery teaching and the ones without lottery teaching are collected in this section. As shown in Figure A7 (left figure), the performance of $T D$ tickets without lottery teaching (black dash curves), quickly falls into a worse decay along with the times of incremental learning increase. After learning all tasks, utilizing lottery teaching obtains a $4 . 3 4 \%$ accuracy improvement on CIFAR-10. It suggests that our proposed lottery teaching injects previous knowledge through applying knowledge distillation on external unlabeled data, and greatly alleviates the catastrophic forgetting issue.
337
+
338
+ # A2 MORE METHODOLOGY AND IMPLEMENTATION DETAILS
339
+
340
+ # A2.1 MORE LIFELONG PRUNING DETAILS
341
+
342
+ ![](images/edbf98c405193b3d28322a824338ef390b6e252bb7c52d743cf43f6a199c2aef.jpg)
343
+ Figure A8: Framework of our proposed top-down lifelong pruning algorithms. The top-down (TD) lifelong pruning performs like iterative magnitude pruning (IMP) by unrolling the sequential tasks. Tickets located by TD pruning continue to shrink with the growth of incremental tasks.
344
+
345
+ More Technical Details of Top-down Pruning In our implementation, we set $p ^ { \frac { 1 } { n ^ { ( i ) } } } = 2 0 \%$ as (Frankle & Carbin, 2019; Renda et al., 2020) and adjust $\bar { \{ n ^ { ( i ) } \} }$ to control the pruning schedule of IMP over sequential tasks. The aforementioned lifelong pruning method is illustrated in Figure A8, and we call it top-down lifelong pruning since the model size is sequentially reduced, namely, $\| \mathbf { m } ^ { ( i ) } \| _ { 0 } \leq \| \mathbf { m } ^ { ( i - 1 ) } \| _ { 0 }$ .
346
+
347
+ Pruning Algorithms We summarize the workflow of the top-down pruning and bottom-up pruning in Algorithm 1 and 2, respectively. For pruning hyperparameters, we follow the original LTH’s setting (Frankle & Carbin, 2019), i.e. $\Delta p \overset { \cdot } { = } 2 0 \%$ . If we change $\Delta p$ to $4 0 \%$ , it will drop $2 . 0 4 \%$ accuracy at the same sparsity level on CIFAR-10.
348
+
349
+ # A2.2 MORE CLASS-INCREMENTAL LEARNING DETAILS
350
+
351
+ Lottery teaching regularization In order to mitigate the catastrophic forgetting effect, we apply knowledge distillation (Hinton et al., 2015) ${ \mathcal { R } } _ { \mathrm { K D } }$ to enforce the similarity between previous $\hat { \pmb { y } }$ and
352
+
353
+ current $\textbf { { y } }$ soft logits on unlabeled data. We state ${ \mathcal { R } } _ { \mathrm { K D } }$ as follows:
354
+
355
+ $$
356
+ \begin{array} { r l } { \mathcal { R } _ { \mathrm { K D } } ( { \pmb y } , \hat { \pmb y } ) = - \mathcal { H } ( t ( \pmb { y } ) , t ( \hat { \pmb y } ) ) } & { { } } \\ { = - \displaystyle \sum _ { j } t ( \pmb { y } ) _ { j } \log t ( \hat { \pmb y } ) _ { j } } \end{array}
357
+ $$
358
+
359
+ where $\begin{array} { r } { t ( \pmb { y } ) _ { i } = \frac { ( \pmb { y } _ { i } ) ^ { 1 / \operatorname { T } } } { \sum _ { j } ( \pmb { y } _ { j } ) ^ { 1 / \operatorname { T } } } } \end{array}$ = (yi)1/TPj (yj )1/T , T = 2 in our case, following the standard setting in (Hinton et al., 2015;
360
+ Li & Hoiem, 2017).
361
+
362
+ # Algorithm 1: Top-Down Pruning
363
+
364
+ Input: Full dense model $f ( \pmb { \theta } _ { 0 } , \pmb { \theta } _ { \mathrm { c } } ^ { ( 0 ) } ; { \bf x } )$ , a desired sparsity $P _ { m }$ , samples $\mathbf { x }$ from a storage $s$ and sequential tasks $\mathcal { T } _ { 1 \sim n }$ , soft logits from previous model on queried unlabeled data, pruning ratio $\Delta p$ Output: An updated sparse model $f ( \pmb \theta \odot m , \pmb \theta _ { \mathrm { c } } ^ { ( n ) } ; \mathbf x )$
365
+ 1 Set $i = 1$ and mask $m = \mathbf { 1 } \in \mathbb { R } ^ { | | \pmb \theta | | _ { 0 } }$
366
+ 2 Train $f ( \pmb { \theta } _ { 0 } \odot \pmb { m } , \pmb { \theta } _ { \mathrm { c } } ^ { ( 0 ) } ; \mathbf { x } )$ with data from $s$ and $\mathcal { T } _ { 1 }$ .
367
+ 3 while $\begin{array} { r } { 1 - \frac { | | { \boldsymbol m } | | _ { 0 } } { | | { \boldsymbol \theta } | | _ { 0 } } \leq P _ { m } } \end{array}$ and $i \leq n$ do
368
+ 4 Iterative weight magnitude (IMP) pruning $\Delta p$ and obtaining new mask $\tilde { m }$ , where $| | \tilde { m } | | _ { 0 } < | | m | | _ { 0 }$
369
+ 5 Rewind weight to $\pmb { \theta } _ { 0 }$
370
+ 6 $\scriptstyle { m = m }$
371
+ 7 Retrain $f ( \pmb { \theta } _ { 0 } \odot \pmb { m } , \pmb { \theta } _ { \mathrm { c } } ^ { ( i ) } ; \mathbf { x } )$ on the current task $\mathcal { T } _ { i }$ and $s$ . Lottery teaching is applied (A knowledge distillation constrain with soft logits)
372
+ 8 Set $i = i + 1$
373
+ 9 end
374
+
375
+ # Algorithm 2: Bottom-Up Pruning
376
+
377
+ Input: $f ( \pmb { \theta } _ { 0 } , \pmb { \theta } _ { \mathrm { c } } ^ { ( 0 ) } ; { \bf x } )$ , $P _ { m }$ , x, soft logits and $\Delta p$ defined in Algorithm 1, $f ( \pmb \theta _ { i } , \pmb \theta _ { \mathrm { c } } ^ { ( i ) } ; { \bf x } )$ has learned $\mathcal { T } _ { 1 \sim i }$ and has performance $\mathcal { R } _ { i } ^ { * }$ , $i \in \{ 1 , \cdots , n \}$ Output: An updated sparse model $f ( \pmb \theta \odot \tilde { m } , \pmb \theta _ { \mathrm { c } } ^ { ( \bar { n } ) } ; { \bf x } )$ 1 Set i = 1 and mask m˜ = 0 ∈ R||θ||0 2 Train $f ( \pmb { \theta } _ { 0 } \odot \tilde { m } , \pmb { \theta } _ { \mathrm { c } } ^ { ( 0 ) } ; \mathbf { x } )$ with data from $s$ and $\mathcal { T } _ { 1 }$ . Calculate accuracy $\mathcal { R } _ { 1 }$ . 3 while $i \leq n$ and $| | \tilde { m } | | _ { 0 } < | | \pmb { \theta } | | _ { 0 } \ \mathbf { d o }$ 4 if $\mathcal { R } _ { i } \geq \mathcal { R } _ { i } ^ { * }$ or $| | \tilde { m } | | _ { 0 } = | | \pmb { \theta } | | _ { 0 }$ then 5 Continue 6 else 7 Start from $f ( \pmb { \theta } _ { i } , \pmb { \theta } _ { \mathrm { c } } ^ { ( i ) } ; \mathbf { x } ) , \pmb { m } = 1$ 8 repeat 9 pruning $\Delta p$ of $\pmb { \theta } _ { i } \odot ( \pmb { m } - \tilde { \pmb { m } } )$ , obtain new mask $m ^ { * }$ , where $| | m ^ { * } | | _ { 0 } \geq | | \tilde { m } | | _ { 0 }$ and $\tilde { \pmb { m } } \in \ b { m } ^ { * }$ 10 Retrain $f ( \pmb { \theta } _ { i - 1 } \odot \pmb { m } ^ { * } , \pmb { \theta } _ { \mathrm { c } } ^ { ( i ) } ; \mathbf { x } )$ and calculate accuracy $\mathcal { R } _ { i }$ 11 m = m∗ 12 until $\mathcal { R } _ { i } \sim \mathcal { R } _ { i } ^ { * }$ and set $\tilde { m } = m ^ { * }$ ; 13 end 14 Set $i = i + 1$ 15 end
378
+
379
+ Our Dense Full CIL Model We consider a strong baseline framework derived from (Zhang et al., 2019) with our proposed lottery teaching as our dense full CIL model. It adopts random and classbalanced sampling strategies, an auxiliary classifier, and the knowledge distillation regularizer ${ \mathcal { R } } _ { \mathrm { K D } }$ . For incrementally learning task $\mathcal { T } _ { i }$ , the training objective is depicted as:
380
+
381
+ $$
382
+ \mathcal { L } _ { \mathrm { C I L } } ( \pmb { \theta } , \pmb { \theta } _ { c } ^ { ( i ) } , \pmb { \theta } _ { a } ^ { ( i ) } ) = \gamma _ { 2 } \times \mathcal { L } ( \pmb { \theta } , \pmb { \theta } _ { c } ^ { ( i ) } ) + \mathcal { L } ( \pmb { \theta } , \pmb { \theta } _ { a } ^ { ( i ) } )
383
+ $$
384
+
385
+ $$
386
+ \begin{array} { r l } & { \mathcal { L } ( \pmb { \theta } , \pmb { \theta } _ { c } ^ { ( i ) } ) = \mathbb { E } _ { ( \mathbf { x } , \mathbf { y } ) \in \mathcal { D } _ { b } } \left[ \mathcal { L } _ { \mathrm { X E } } ( f ( \pmb { \theta } , \pmb { \theta } _ { c } ^ { ( i ) } , \mathbf { x } ) , \mathbf { y } ) \right] } \\ & { \quad \quad \quad \quad + \gamma _ { 1 } \times \mathbb { E } _ { \mathbf { x } \in \mathcal { D } _ { u } } \left[ \mathcal { R } _ { \mathrm { K D } } ( f ( \pmb { \theta } , \pmb { \theta } _ { c } ^ { ( i ) } , \mathbf { x } ) , \hat { \pmb { y } } _ { c } ) \right] , } \end{array}
387
+ $$
388
+
389
+ $$
390
+ \begin{array} { r l } & { \mathcal { L } ( \pmb { \theta } , \pmb { \theta } _ { a } ^ { ( i ) } ) = \mathbb { E } _ { ( \mathbf { x } , \mathbf { y } ) \in \mathcal { D } _ { r } } \left[ \mathcal { L } _ { \mathrm { X E } } ( f ( \pmb { \theta } , \pmb { \theta } _ { a } ^ { ( i ) } , \mathbf { x } ) , \mathbf { y } ) \right] } \\ & { ~ + ~ \gamma _ { 1 } \times \mathbb { E } _ { \mathbf { x } \in \mathcal { D } _ { u } } \left[ \mathcal { R } _ { \mathrm { K D } } ( f ( \pmb { \theta } , \pmb { \theta } _ { a } ^ { ( i ) } , \mathbf { x } ) , \hat { \pmb { y } } _ { a } ) \right] , } \end{array}
391
+ $$
392
+
393
+ where $\mathcal { D } _ { b }$ is the class-balanced sampled dataset, $\mathcal { D } _ { r }$ represents the randomly sampled dataset, and $\mathcal { D } _ { u }$ stands for the queried unlabeled dataset. $\theta _ { c } ^ { ( i ) }$ ) and θ(i)a are the main and auxiliary classifiers. $\hat { y } _ { c }$ and $\hat { { \bf y } } _ { a }$ are soft logits on previous tasks of the main and auxiliary classifiers. We adopt $\gamma _ { 1 } = 1 , \gamma _ { 2 } =$ 0.5 in our experiment according to grid search.
394
+
395
+ # A2.3 MORE OTHER IMPLEMENTATION DETAILS
396
+
397
+ Datasets and Task Splittings We evaluate our proposed lifelong tickets on CIFAR-10, CIFAR100, and Tiny-ImageNet datasets, all being standard and state-of-the-art benchmarks for CIL (Krizhevsky & Hinton, 2009). For all three datasets, we randomly split the original training dataset into training and validation with a ratio of $9 : 1$ . On CIFAR-10, we divide the 10 classes into splits of 2 classes with a random order $( 1 0 / 2 = 5$ tasks); On CIFAR-100, we divide the 100 classes into splits of 10 classes with a random order $( 1 0 0 / 1 0 = 1 0 $ tasks); On Tiny-Imagenet, we divide the 200 classes into splits of 20 classes with a random order $( 2 0 0 / 2 0 = 1 0 $ tasks). In this way, when models learn a new incoming task, the dimension of classifiers will increase by 2 for CIFAR-10, 10 for CIFAR-100, and 20 for Tiny-ImageNet. Additionally, 100 images, 10 images, and 5 images per class of learned tasks will be stored for CIFAR-10, CIFAR-100, and Tiny-ImageNet respectively.
398
+
399
+ Unlabeled Dataset All queried unlabeled data for CIFAR-10/CIFAR-100 are from 80 Million Tiny Image dataset (Torralba et al., 2008), and for Tiny-ImageNet are from ImageNet dataset (Krizhevsky et al., 2012). At each incremental learning stage, 4, 500, 450 and 450 images per class of learned tasks will be queried, based on the feature similarity with stored prototypes $\{ \mathbf { m } ^ { ( i - 1 ) } \odot { \pmb \theta } ^ { ( i - 1 ) } , { \pmb \theta } _ { \mathrm { c } } ^ { ( i - 1 ) } \}$ in top-down Pruning and $\{ \pmb \theta ^ { ( i - 1 ) } , \pmb \theta _ { \mathrm { c } } ^ { ( i - 1 ) } \}$ in bottom-up Pruning at the $i ^ { \mathrm { t h } }$ CIL stage for CIFAR-10, CIFAR-100, and Tiny-ImageNet respectively. The feature similarity is defined by $\ell _ { 2 }$ norm distance.
400
+
401
+ Training and Evaluation Models are trained using Stochastic Gradient Descent (SGD) with 0.9 momentum and $5 \times 1 0 ^ { - 4 }$ weight decay. For 100 epochs training, a multi-step learning rate schedule is conducted, starting from 0.01, then decayed by 10 times at epochs 60 and 80. During the iterative pruning, we retrain the model for 30 epochs using a fixed learning rate of $1 0 ^ { - 4 }$ . The batch size for both labeled and unlabeled data is 128. We pick the trained model of the highest validation accuracy and report their performance on the hold-out testing set.
402
+
403
+ Other Training Details (i) CIFAR-10 and CIFAR-100 can be download at https://www.cs. toronto.edu/˜kriz/cifar.html. (ii) 80 Million Tiny Image dataset is referred to http: //horatio.cs.nyu.edu/mit/tiny/data/index.html. (iii) All of our experiments are conducted on NVIDIA GTX 1080-Ti GPUs.
404
+
405
+ # A3 DISCUSSION
406
+
407
+ Challenges of Theoretical Analysis and Future Work The theoretical justification of the lottery ticket hypothesis is very limited, except for very shallow networks (Anonymous, 2021). In the meantime, class-incremental learning makes the theoretical analysis more difficult. It is a challenging lifelong learning problem, and the current progress lies in the empirical side rather than the theoretical side. The theoretical analysis is out of scope for this paper and we would like to explore it in the future.
parse/train/LXMSvPmsm0g/LXMSvPmsm0g_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/LXMSvPmsm0g/LXMSvPmsm0g_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/LXMSvPmsm0g/LXMSvPmsm0g_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/RUQ1zwZR8_/RUQ1zwZR8_.md ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Differentially Private Learning with Adaptive Clipping
2
+
3
+ Galen Andrew galenandrew@google.com
4
+
5
+ Om Thakkar omthkkr@google.com
6
+
7
+ H. Brendan McMahan mcmahan@google.com
8
+
9
+ Swaroop Ramaswamy swaroopram@google.com
10
+
11
+ # Abstract
12
+
13
+ Existing approaches for training neural networks with user-level differential privacy (e.g., DP Federated Averaging) in federated learning (FL) settings involve bounding the contribution of each user’s model update by clipping it to some constant value. However there is no good a priori setting of the clipping norm across tasks and learning settings: the update norm distribution depends on the model architecture and loss, the amount of data on each device, the client learning rate, and possibly various other parameters. We propose a method wherein instead of a fixed clipping norm, one clips to a value at a specified quantile of the update norm distribution, where the value at the quantile is itself estimated online, with differential privacy. The method tracks the quantile closely, uses a negligible amount of privacy budget, is compatible with other federated learning technologies such as compression and secure aggregation, and has a straightforward joint DP analysis with DP-FedAvg. Experiments demonstrate that adaptive clipping to the median update norm works well across a range of realistic federated learning tasks, sometimes outperforming even the best fixed clip chosen in hindsight, and without the need to tune any clipping hyperparameter.
14
+
15
+ # 1 Introduction
16
+
17
+ Deep learning has become ubiquitous, with applications as diverse as image processing, natural language translation, and music generation [27, 13, 28, 7]. Deep models are able to perform well in part due to their ability to utilize vast amounts of data for training. However, recent work has shown that it is possible to extract information about individual training examples using only the parameters of a trained model [12, 30, 26, 8, 19]. When the training data potentially contains privacy-sensitive user information, it becomes imperative to use learning techniques that limit such memorization.
18
+
19
+ Differential privacy (DP) [10, 11] is widely considered a gold standard for bounding and quantifying the privacy leakage of sensitive data when performing learning tasks. Intuitively, DP prevents an adversary from confidently making any conclusions about whether some user’s data was used in training a model, even given access to arbitrary side information. The formal definition of DP depends on the notion of neighboring datasets: we will refer to a pair of datasets $D , D ^ { \prime } \in \mathcal { D }$ as neighbors if $D ^ { \prime }$ can be obtained from $D$ by adding or removing one element.
20
+
21
+ Definition 1.1 (Differential Privacy). A (randomized) algorithm $M : { \mathcal { D } } { \mathcal { R } }$ with input domain $\mathcal { D }$ and output range $\mathcal { R }$ is $( \varepsilon , \delta )$ -differentially private if for all pairs of neighboring datasets $D , D ^ { \prime } \in \mathcal { D }$ , and every measurable $S \subseteq \mathcal { R }$ , we have $\operatorname* { P r } \left( M ( D ) \in S \right) \leq e ^ { \varepsilon } \cdot \operatorname* { P r } \left( M ( D ^ { \prime } ) \in S \right) + \delta$ , where probabilities are with respect to the coin flips of $M$ .
22
+
23
+ Following McMahan et al. [18], we define two common settings of privacy corresponding to two different definitions of neighboring datasets. In example-level DP, datasets are considered neighbors when they differ by the addition or removal of a single example [9, 4, 2, 22, 31, 23, 15]. In user-level DP, neighboring datasets differ by the addition or removal of all of the data of one user [18]. Userlevel DP is the stronger form, and is preferred when one user may contribute many training examples to the learning task, as privacy is protected even if the same privacy-sensitive information occurs in all the examples from one user. In this paper, we will describe the technique and perform experiments in terms of the stronger user-level form, but we note that example-level DP can be achieved by simply giving each user a single example.
24
+
25
+ To achieve user-level DP, we employ the Federated Averaging algorithm [17], introduced as a decentralized approach to model training in which the training data is left distributed on user devices, and each training round aggregates updates that are computed locally. On each round, a sample of devices are selected for training, and then each selected device performs potentially many steps of local SGD over minibatches of its own data, sending back the model delta as its update.
26
+
27
+ Bounding the influence of any user in Federated Averaging is both necessary for privacy and often desirable for stability. One popular way to do this to cap the $L _ { 2 }$ norm of its model update by projecting larger updates back to the ball of norm $C$ . Since such clipping also effectively bounds the $L _ { 2 }$ sensitivity of the aggregate with respect to the addition or removal of any user’s data, adding Gaussian noise to the aggregate is sufficient to obtain a central differential privacy guarantee for the update [9, 4, 2]. Standard composition techniques can then be used to extend the per-update guarantee to the final model [20].
28
+
29
+ Setting an appropriate value for the clipping threshold $C$ is crucial for the utility of the private training mechanism. Setting it too low can result in high bias since we discard information contained in the magnitude of the gradient. However setting it too high entails the addition of more noise, because the amount of Gaussian noise necessary for a given level of privacy must be proportional to the norm bound (the $L _ { 2 }$ sensitivity), and this will eventually destroy model utility. The clipping bias-variance trade-off was observed empirically by McMahan et al. [18], and was theoretically analyzed and shown to be an inherent property of differentially private learning by Amin et al. [3].
30
+
31
+ Learning large models using the Federated Averaging/SGD algorithm [17, 18] can take thousands of rounds of interaction between the central server and the clients. The norms of the updates can vary as the rounds progress. Prior work [18] has shown that decreasing the value of the clipping threshold after training a language model for some initial number of rounds can improve model accuracy. However, the behavior of the norms can be difficult to predict without prior knowledge about the system, and if it is difficult to choose a fixed clipping norm for a given learning task, it is even more difficult to choose a parameterized clipping norm schedule.
32
+
33
+ While there has been substantial work on DP techniques for learning, almost every technique has hyperparameters which need to be set appropriately for obtaining good utility. Besides the clipping norm, learning techniques have other hyperparameters which might interact with privacy hyperparameters. For example, the server learning rate in DP SGD might need to be set to a high value if the clipping threshold is very low, and vice-versa. Such tuning for large networks can have an exorbitant cost in computation and efficiency, which can be a bottleneck for real-world systems that involve communicating with millions of samples for training a single network. Tuning may also incur an additional cost for privacy, which needs to be accounted for when providing a privacy guarantee for the released model with tuned hyperparameters (though in some cases, hyperparameters can be tuned using the same model and algorithm on a sufficiently-similar public proxy dataset).
34
+
35
+ Related Work The heuristic of clipping to the median update norm was suggested by Abadi et al. [1], but no method for doing so privately was proposed, nor was the heuristic empirically tested. One possibility would be to estimate the median unclipped update norm at each round privately by adding noise calibrated to the smooth sensitivity as defined by Nissim et al. [21]. However this approach has several drawbacks compared to the algorithm we will present. It would require the clients to send their unclipped updates to the server at each round,1 which is incompatible with the foundational principle of federated learning to transmit only focused, minimal updates, and precluding the use of secure aggregation [5] and certain forms of compression [16, 6]. Also, by incorporating information across multiple rounds, our method is able to track the underlying quantile closely, with less jitter associated with sampling at each round, and using only a negligible fraction of the privacy budget.
36
+
37
+ ![](images/57b22a692fa6898eae5a74218e1b3d2cc146c07e465d86897df33e1e2eafc421.jpg)
38
+ Figure 1: Loss functions to estimate the 0.01-, 0.5-, 0.75-, and 0.99-quantiles for a random variable $X$ that uniformly takes values in $\{ 1 5 , 2 5 , 2 8 , 4 0 , 4 5 , 4 8 \}$ . The loss function is the average of convex piecewise-linear functions, one for each value. For instance, for the median $( \gamma = 0 . 5 )$ , this is just $\begin{array} { r } { \dot { \ell } _ { \gamma } ( C ; X ) = \frac { 1 } { 2 } | X - C | } \end{array}$ , where $X$ is the random value, and $C$ is the estimate. When we average these functions, we arrive at the yellow function in the plot showing the average loss, which indeed is minimized by any value between the central two elements, i.e., in the interval [28, 40]. The function for $\gamma = 0 . 7 5$ is minimized at $C = 4 5$ because $\operatorname* { P r } ( X \leq C ) < 0 . 7 5$ for values $C$ in [40, 45), while $\operatorname* { P r } ( X \leq C ) > 0 . 7 5$ for values $C$ in (45, 48].
39
+
40
+ Contributions In this paper, we describe a method for adaptively and privately tuning the clipping threshold to track a given quantile of the update norm distribution during training. The method uses a negligible amount of privacy budget, and is compatible with other FL technologies such as compression and secure aggregation [5, 6]. We perform a careful empirical comparison of our adaptive clipping method to a highly optimized fixed-clip baseline on a suite of realistic and publicly available FL tasks to demonstrate that high-utility and high-privacy models—sometimes exceeding any fixed clipping norm in utility—can be trained using our method without the need to tune any clipping hyperparameter.
41
+
42
+ # 2 Private adaptive quantile clipping
43
+
44
+ In this section, we will describe the adaptive strategy that can be used for adjusting the clipping threshold so that it comes to approximate the value at a specified quantile.
45
+
46
+ Let $X \in \mathbb { R }$ be a random variable, let $\gamma \in [ 0 , 1 ]$ be a quantile to be matched. For any $C$ , define
47
+
48
+ $$
49
+ \ell _ { \gamma } ( C ; X ) = { \left\{ \begin{array} { l l } { ( 1 - \gamma ) ( C - X ) } & { { \mathrm { i f ~ } } X \leq C , } \\ { \gamma ( X - C ) } & { { \mathrm { o t h e r w i s e , } } } \end{array} \right. }
50
+ $$
51
+
52
+ so
53
+
54
+ $$
55
+ \ell _ { \gamma } ^ { \prime } ( C ; X ) = { \left\{ \begin{array} { l l } { ( 1 - \gamma ) } & { { \mathrm { i f ~ } } X \leq C , } \\ { - \gamma } & { { \mathrm { o t h e r w i s e . } } } \end{array} \right. }
56
+ $$
57
+
58
+ Hence, $\begin{array} { r } { \mathbb { E } [ \ell _ { \gamma } ^ { \prime } ( C ; X ) ] = ( 1 - \gamma ) \operatorname* { P r } [ X \leq C ] - \gamma \operatorname* { P r } [ X > C ] = \operatorname* { P r } [ X \leq C ] - \gamma } \end{array}$ . For $C ^ { * }$ such that $\mathbb { E } [ \ell _ { \gamma } ^ { \prime } ( C ^ { * } ; X ) ] = 0$ , we have $\operatorname* { P r } ( X \leq C ^ { * } ) = \gamma$ . Thus, $C ^ { * }$ is the $\gamma ^ { \mathrm { t h } }$ quantile of $X$ . Because the loss is convex and has gradients bounded by 1, we can get an online estimate of $C$ that converges to the $\gamma ^ { \mathrm { t h } }$ quantile of $X$ using online gradient descent (see, e.g., Shalev-Shwartz [25]). See Figure 1 for a plot of the loss for a random variable that takes six values with equal probability.
59
+
60
+ Suppose at some round we have $m$ samples of $X$ , with values $( x _ { 1 } , \ldots , x _ { m } )$ . The average derivative of the loss for that round is
61
+
62
+ $$
63
+ \begin{array} { r l } & { \bar { \ell } _ { \gamma } ^ { \prime } ( C ; X ) = \displaystyle \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \{ \displaystyle { ( 1 - \gamma ) \quad \mathrm { i f } \ x _ { i } \le C } , } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad = \displaystyle \frac { 1 } { m } \bigg ( ( 1 - \gamma ) \sum _ { i \in [ m ] } \mathbb { I } _ { x _ { i } \le C } - \gamma \sum _ { i \in [ m ] } \mathbb { I } _ { x _ { i } > C } \bigg ) = \bar { b } - \gamma , } \end{array}
64
+ $$
65
+
66
+ where $\begin{array} { r } { \bar { b } \triangleq \frac { 1 } { m } \sum _ { i \in [ m ] } \mathbb { I } _ { x _ { i } \leq C } } \end{array}$ is the empirical fraction of samples with value at most $C$ . For a given learning rate $\eta _ { C }$ , we can perform the update: $C \gets C - \eta _ { C } ( \bar { b } - \gamma )$ .
67
+
68
+ Geometric updates. Since $\bar { b }$ and $\gamma$ take values in $[ 0 , 1 ]$ , the linear update rule above changes $C$ by a maximum of $\eta _ { C }$ at each step. This can be slow if $C$ is on the wrong order of magnitude. At the other extreme, if the optimal value of $C$ is orders of magnitude smaller than $\eta _ { C }$ , the update can be very coarse, and may overshoot to become negative. To remedy such issues, we propose the following geometric update rule: $C \gets C \cdot \exp ( - \eta _ { C } ( \bar { b } - \gamma ) )$ . This update rule converges quickly to the true quantile even if the initial estimate is off by orders of magnitude. It also has the attractive property that the variance of the estimate around the true quantile at convergence is proportional to the value at that quantile. In our experiments, we use the geometric update rule with $\eta _ { C } = 0 . 2$ .
69
+
70
+ # 2.1 DP-FedAvg with adaptive quantile clipping
71
+
72
+ Let $m$ be the number of users in a round and let $\gamma \in [ 0 , 1 ]$ denote the target quantile of the norm distribution at which we want to clip. For iteration $t \in [ T ]$ , let $C ^ { t }$ be the clipping threshold, and $\eta _ { C }$ be the learning rate. Let $\mathcal { Q } ^ { t }$ be set of users sampled in round $t$ . Each user $i \in \mathcal { Q } ^ { t }$ will send the bit $b _ { i } ^ { t }$ along with the usual model delta update $\Delta _ { i } ^ { t }$ , where $b _ { i } ^ { t } = \mathbb { I } _ { | | \Delta _ { i } ^ { t } | | _ { 2 } \leq C ^ { t } }$ . Defining $\begin{array} { r } { \bar { b } ^ { t } = \frac { 1 } { m } \sum _ { i \in \mathcal { Q } ^ { t } } b _ { i } ^ { t } } \end{array}$ we would like to apply the update $C \gets C \cdot \exp ( - \eta _ { C } ( \bar { b } - \gamma ) )$ . However, we can’t use ${ \bar { b } } ^ { t }$ directly, since it may reveal private information about the magnitude of users’ updates. To remedy this, we add Gaussian noise to the sum: $\begin{array} { r } { \tilde { b } ^ { t } = \frac { 1 } { m } \left( \sum _ { i \in \mathcal { Q } ^ { t } } \bar { b } _ { i } ^ { t } + \mathcal { N } ( O , \sigma _ { b } ^ { 2 } ) \right) } \end{array}$ . The DPFedAvg algorithm with adaptive clipping is shown in Algorithm 1. We augment basic federated averaging with server momentum, which improves convergence [14, 24].2
73
+
74
+ # Algorithm 1 DPFedAvg-M with adaptive clipping
75
+
76
+ function $\mathrm { T r a i n } ( m , \gamma , \eta _ { c } , \eta _ { s } , \eta _ { C } , z , \sigma _ { b } , \beta )$ Initialize model $\theta ^ { 0 }$ , clipping bound $C ^ { 0 }$ z∆ ← z−2 − (2σb)−2−1/2 for each round $t = 0 , 1 , 2 , \ldots { \dot { \mathbf { c } } }$ o ${ \mathcal { Q } } ^ { t } \gets$ (sample $m$ users uniformly) for each user $i \in \mathcal { Q } ^ { t }$ in parallel do $\begin{array} { r l } & { \quad ( \Delta _ { i } ^ { t } , b _ { i } ^ { t } ) \gets \mathrm { ~ F e d A v g } ( i , \theta ^ { t } , \eta _ { c } , C ^ { t } ) } \\ & { \sigma _ { \Delta } \gets z _ { \Delta } C ^ { t } } \\ & { \tilde { \Delta } ^ { t } = \frac { 1 } { m } \left( \sum _ { i \in \mathcal { Q } ^ { t } } \Delta _ { i } ^ { t } + \mathcal { N } ( 0 , I \sigma _ { \Delta } ^ { 2 } ) \right) } \\ & { \bar { \Delta } ^ { t } = \beta \bar { \Delta } ^ { t - 1 } + ( 1 - \beta ) \tilde { \Delta } ^ { t } } \\ & { \theta ^ { t + 1 } \gets \theta ^ { t } + \eta _ { s } \bar { \Delta } ^ { t } } \\ & { \tilde { b } ^ { t } = \frac { 1 } { m } \left( \sum _ { i \in \mathcal { Q } ^ { t } } b _ { i } ^ { t } + \mathcal { N } ( O , \sigma _ { b } ^ { 2 } ) \right) } \end{array}$
77
+
78
+ $C ^ { t + 1 } \gets C ^ { t } \cdot \exp \left( - \eta _ { C } ( \tilde { b } ^ { t } - \gamma ) \right)$ function FedAvg(i, θ0, η, C) θ ← θ0 $\mathcal { G } $ (user i’s local data split into batches) for batch $g \in { \mathcal { G } }$ do $\begin{array} { r l } & { \quad \theta \gets \theta - \eta \nabla \ell ( \theta ; g ) } \\ & { \Delta \gets \theta - \theta ^ { 0 } } \\ & { b \gets \mathbb { I } _ { | | \Delta | | \leq C } } \\ & { \Delta ^ { \prime } \gets \Delta \cdot \operatorname* { m i n } \left( 1 , \frac { C } { | | \Delta | | } \right) } \\ & { \mathrm { ~ r e t u r n } \left( \Delta ^ { \prime } , b \right) } \end{array}$
79
+
80
+ ![](images/d1f5d3ef5dfde7726538c717f8da8f80339ce3990f0c0907a44973a4dd5dbc83.jpg)
81
+ Figure 2: Evolution of the quantile estimate on data drawn from log-normal distributions. The three plots use data drawn from the exponential of $\mathcal { N } ( 0 . 0 , 1 . 0 )$ , $\mathcal { N } ( \bar { 0 . 0 } , 0 . 1 )$ , and $\mathcal { N } ( \log { 1 0 } , 1 . 0 )$ , respectively. Curves are shown for each of five quantiles: (0.1, 0.3, 0.5, 0.7, 0.9), and the dashed lines show the true value at each quantile. Hyperparameters are as discussed in the text and used in the experiments of Section 3: $\eta _ { C } = 0 . 2 , C ^ { 0 } \stackrel { \sim } { = } 0 . \dot { 1 } , m = 1 0 0 , \sigma _ { b } = m / 2 0$ . After an initial phase of exponential growth, the true quantile is fairly closely tracked. A smaller value of $\eta _ { C }$ would allow more accurate tracking at the cost of slower convergence, but since the quantile value is only used as a heuristic for clipping, a small amount of noise is tolerable. The entire sequence of values estimated for each target quantile satisfy $( 0 . 0 3 4 , n ^ { - 1 . 1 } )$ -differential privacy using RDP composition across the 200 rounds assuming fixed-size samples of $m = 1 0 0$ out of a total population of $\bar { n } = 1 0 ^ { 6 }$ [29].
82
+
83
+ Theorem 1. One step of $D P$ -FedAvg with adaptive clipping using $\sigma _ { b }$ noise standard deviation on the clipped counts $\sum b _ { i } ^ { t }$ and $z _ { \Delta }$ noise multiplier on the vector sums $\sum \Delta _ { i } ^ { t }$ is equivalent (so far as privacy accounting is concerned) to one step of non-adaptive $D P$ -FedAvg with noise multiplier $z$ if we set z∆ = z−2 − (2σb)−2−1/2.
84
+
85
+ Proof. We make a conceptual change to the algorithm that does not change the behavior or privacy properties but allows us to analyze each step as if it were a single private Gaussian sum. Instead of sending $( \Delta _ { i } ^ { t } , b _ { i } ^ { t } )$ , each user sends $( \hat { \Delta } _ { i } ^ { t } , \hat { b } _ { i } ^ { t } ) \triangleq \big ( \Delta _ { i } ^ { t } / \sigma _ { \Delta } , ( b _ { i } ^ { t } - \scriptscriptstyle 1 / 2 ) / \sigma _ { b } \big )$ . The server adds noise with covariance $I$ and averages, then reverses the transformation so $\begin{array} { r } { \tilde { \Delta } ^ { t } = \frac { \sigma _ { \Delta } } { m } \biggl ( \sum _ { i \in \mathcal { Q } ^ { t } } \hat { \Delta } _ { i } ^ { t } + \mathcal { N } ( 0 , I ) \biggr ) } \end{array}$ and $\begin{array} { r } { \tilde { b } ^ { t } = \frac { \sigma _ { b } } { m } \left( \sum _ { i \in \mathcal { Q } ^ { t } } \hat { b } _ { i } ^ { t } + \mathcal { N } ( 0 , 1 ) \right) + 1 / 2 } \end{array}$ . Noting that $\vert \vert ( \hat { \Delta } _ { i } ^ { t } , \hat { b } _ { i } ^ { t } ) \vert \vert \leq S \triangleq \left( ( C ^ { t } / \sigma _ { \Delta } ) ^ { 2 } + \left( 1 / 2 \sigma _ { b } \right) ^ { 2 } \right) ^ { 1 / 2 }$ , it is clear that the two Gaussian sum queries of Algorithm 1 are equivalent to pre- and post-processing of a single query with sensitivity $S$ and covariance $I$ , or noise multiplier $z = { \overset { \cdot } { 1 } } / s = \overset { \cdot } { \left( z _ { \Delta } ^ { - 2 } + ( 2 \sigma _ { b } ) ^ { - 2 } \right) ^ { - 1 / 2 } }$ Rearranging yields the result.
86
+
87
+ In practice, we recommend using a value of $\sigma _ { b } = m / 2 0$ . Since the noise is Gaussian, this implies that the error $| \tilde { b } ^ { t } - \bar { b } ^ { t } |$ will be less than 0.1 with $9 5 . 4 \%$ probability, and will be no more than 0.15 with $9 9 . 7 \%$ probability. Even in this unlikely case, assuming a geometric update and a learning rate of $\eta _ { C } = 0 . 2$ , the error on the update would be a factor of $\exp ( 0 . 2 \times 0 . 1 5 ) = 1 . 0 3$ , a small deviation. So this default gives high privacy for an acceptable amount of noise in the quantile estimation process. Using Thm. 1, we can compute that to achieve an effective combined noise multiplier of $z = 1$ , with $m = 1 0 0$ clients per round, the noise multiplier $z _ { \Delta }$ is approximately 1.005. So we are paying only a factor of $0 . 5 \%$ more noise on the updates for adaptive clipping with the same privacy guarantee (a quantity which only gets smaller with increasing $m$ ). These constants $\zeta \sigma _ { b } = m / 2 0$ and $\eta _ { C } = 0 . 2 $ ) are what we use in the experiments of Section 3.
88
+
89
+ The clipping norm can be initialized to any value $C ^ { 0 }$ that is safely on the low end of the expected norm distribution. If it is too high and needs to adapt downward, a lot of noise may be added at the beginning of model training, which may swamp the model. However there is little danger in setting it quite low, since the geometric update will make it grow exponentially until it matches the true quantile. In our experiments we use an initial clip of 0.1 for all tasks. It is easy to compute that with a learning rate of $\eta _ { C } = 0 . 2$ and a target quantile of $\gamma = 0 . 5$ , if every update is clipped, the quantile estimate will increase by a factor of ten every 23 iterations. In order to show the effectiveness of the algorithm at tracking a known quantile, we ran it on simulated data for which we can compute the true quantile exactly. Figure 2 shows the result of this experiment.
90
+
91
+ <table><tr><td>Task</td><td>model</td><td>N</td><td>n</td><td>T</td><td>2</td><td>m</td><td>nc</td><td>ns</td><td>Cmin</td><td>Cmax</td></tr><tr><td>CIFAR-100</td><td>ResNet</td><td>11M</td><td>500</td><td>4000</td><td>0.669</td><td>2231</td><td>0.1</td><td>0.32</td><td>0.75</td><td>2.2</td></tr><tr><td>EMNIST-CR</td><td>CNN</td><td>1.2M</td><td>3400</td><td>1500</td><td>0.513</td><td>513</td><td>0.032</td><td>1.0</td><td>0.28</td><td>0.85</td></tr><tr><td>EMNIST-AE</td><td>Deep AE</td><td>2.8M</td><td>3400</td><td>3000</td><td>0.659</td><td>2197</td><td>3.2</td><td>1.78</td><td>0.22</td><td>0.95</td></tr><tr><td>SHAKESPEARE</td><td>C-LSTM</td><td>820k</td><td>715</td><td>1200</td><td>0.510</td><td>510</td><td>1.0</td><td>0.32</td><td>0.25</td><td>3.6</td></tr><tr><td>SO-NWP</td><td>W-LSTM</td><td>4.1M</td><td>342k</td><td>1500</td><td>1.396</td><td>13958</td><td>0.18</td><td>1.78</td><td>0.30</td><td>1.6</td></tr><tr><td>SO-LR</td><td>Multi-LR</td><td>5M</td><td>342k</td><td>1500</td><td>1.396</td><td>13958</td><td>320.0</td><td>1.78</td><td>16.0</td><td>135.0</td></tr></table>
92
+
93
+ Table 1: Dataset statistics and chosen hyperparameters. Left: model type, number of trainable parameters $N$ , number of training clients $n$ , and the number of training rounds $T$ used (following Reddi et al. [24]). Middle: the noise multiplier $z$ and number of clients per round $m$ necessary to achieve $( 5 , n ^ { - 1 . 1 } )$ -DP with less than $5 \%$ model performance loss if each task had a population of $n = 1 0 ^ { 6 }$ [29]. Right: the optimal unclipped baseline client and server learning rates (Sec. 3.1) for each task and chosen values of minimum and maximum fixed clips (Sec. 3.2).
94
+
95
+ # 3 Experiments
96
+
97
+ To empirically validate the approach, we examine the behavior of our algorithm on six of the public benchmark federated learning tasks defined by Reddi et al. [24], which are to our knowledge the most realistic and representative publicly available federated learning tasks that exist to date. All six tasks are non-i.i.d. with respect to user partitioning: indeed with the exception of CIFAR-100, the data is partitioned according to the actual human user who generated the data, for example the writer of the EMNIST characters or the Stack Overflow user who asked or answered a question. Table 1 (left) lists the characteristics of the datasets.
98
+
99
+ Two of the tasks derived from Stack Overflow data (SO-NWP and SO-LR) are ideal for DP research due to the very high number of users (342k) making it possible to train models with good user-level privacy without sacrificing accuracy. The other four tasks (CIFAR-100, EMNIST-AE, EMNISTCR, SHAKESPEARE) are representative learning tasks, but not representative population sizes for real world cross-device FL applications. Therefore we focus on establishing that adaptive clipping works well with 100 clients per round on these tasks in the regime where the noise is at a level such that utility is just beginning to degrade. Under the assumption that a larger population were available, one could increase $m$ , $\sigma _ { \Delta }$ , and $\sigma _ { b }$ proportionally to achieve comparable utility with high privacy. This should not significantly affect convergence (indeed, it might be beneficial) since the only effect is to increase the number of users in the average $\tilde { \Delta } ^ { t }$ , reducing the variance. Table 1 (middle) shows the number of clients per round with which our experiments indicate we could achieve $( 5 , n ^ { - 1 . 1 } )$ -DP for each dataset with acceptable model performance loss (less than $5 \%$ relative to non-private training, as discussed later) if each dataset had $n = 1 0 ^ { 6 }$ clients, using RDP composition with fixed-size subsampling [29].3
100
+
101
+ # 3.1 Baseline client and server learning rates
102
+
103
+ Reddi et al. [24] provide optimized client and server learning rates for federated averaging with momentum that serve as a starting point for our experimental setup. For almost all hyperparameters (model configuration, evaluation metrics, client batch size, total rounds, etc.) we replicate their experiments, but with two changes. First, we increase the number of clients per round to 100 for all tasks. This reduces the variance in the updates to a level where we can reasonably assume that adding more clients is unlikely to significantly change convergence properties [18]. Second, as shown in Algorithm 1 we use unweighted federated averaging, thus eliminating the need to set yet another difficult-to-fit hyperparameter: the expected total weight of clients in a round. Since these changes might require different settings, we reoptimize the client and server learning rates for our baseline with no clipping or noise. We ran a small grid of 25 configurations for each task jointly exploring client and server learning rates whose logarithm (base-10) differs from the values in Table 10 of Reddi et al. [24] by $\{ \ - \% , - \% , 0 , \% , \% \}$ . The optimal baseline client and server learning rates for our experimental setup are shown in Table 1 (right).
104
+
105
+ ![](images/2ec1b01a4de94b8799a7e8fb558e4a9eaaff48f80e1394d63db50c5946bcdebb.jpg)
106
+ Figure 3: Impact of clipping without noise. Performance of the unclipped baseline compared to five settings of $\gamma$ , from $\gamma = 0 . 1$ (aggressive clipping) to $\gamma = 0 . 9$ (mild clipping). The values shown are the evaluation metrics on the validation set averaged over the last 100 rounds. Note that the $y$ -axes have been compressed to show small differences, and that for EMNIST-AE lower values are better.
107
+
108
+ Because clipping (whether fixed or adaptive) reduces the average norm of the client updates, it may be necessary to use a higher server learning rate to compensate. Therefore, for all approaches with clipping—fixed or adaptive—we search over a small grid of five server learning rates, scaling the values in Table 1 by $\{ 1 , \bar { 1 0 } ^ { 1 / 4 } , 1 0 ^ { 1 / 2 } , 1 0 ^ { 3 / 4 } , 1 0 \}$ . For all configurations, we report the best performing model whose server learning rate was chosen from this small grid on the validation set.4
109
+
110
+ We first examine the impact of adaptive clipping without noise to see how it affects model performance. Figure 3 compares baseline performance without clipping to adaptive clipping with five different quantiles. For each quantile, we show the best model after tuning over the five server learning rates mentioned above on the validation set. On three tasks (CIFAR-100, EMNIST-AE, SO-NWP), clipping improves performance relative to the unclipped baseline. On SHAKESPEARE and SO-LR performance is slightly worse, but we can conclude that adaptive clipping to the median generally fares well compared to not using clipping across tasks. Note that for our primary goal of training with DP, it is essential to limit the sensitivity one way or another, so the modest decrease in performance observed from clipping on some tasks may be part of the inevitable tension between privacy and utility.
111
+
112
+ # 3.2 Fixed-clip baselines
113
+
114
+ We would like to compare our adaptive clipping approach to a fixed clipping baseline, but comparing to just one fixed-clip baseline may not be enough to demonstrate that adaptive clipping consistently performs well. Instead, our strategy will be to show that quantile-based adaptive clipping performs as well or nearly as well as any fixed clip chosen in hindsight. If we can first identify clipping norms that span the range of normal values during training on each problem/configuration, we can compare adaptive clipping to fixed clipping with those norms.
115
+
116
+ To that end, we first use adaptive clipping without noise to discover the value of the update norm distribution at the following five quantiles: $\{ 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 , 0 . 9 \}$ . Then we choose as the minimum of our fixed clipping range the smallest value at the 0.1 quantile over the course of training, and as the maximum the largest value at the 0.9 quantile. Plots of the update norms during training on each of the tasks are shown in Figure 4.
117
+
118
+ On each task there is a ramp up period where the clipping norm, initialized to 0.1 for all tasks, catches up to the correct norm distribution. Thus we disregard norm values collected until the actual fraction of clipped counts ${ \bar { b } } ^ { t }$ on some round is within 0.05 of the target quantile $\gamma$ . The chosen values for the minimum and maximum fixed clips for each task are shown in Table 1 (right). Our fixed-clipping baseline uses five fixed clipping norms logarithmically spaced in that range. Here we are taking advantage of having already run adaptive clipping to minimize the number of fixed clip settings we need to explore for each task. If we had to explore over the entire range knowing only the endpoints across all tasks (0.22, 135.0) at the same resolution, we would need nearly four times as many clip values per task.
119
+
120
+ ![](images/9e360036a130b659110b98cc143adc5ef96360edab933f3e124db82ccad6d299.jpg)
121
+ 0.10.3 0.10.3 0.10.3Figure 4: Evolution of the adaptive clipping norm at five different quantiles (0.1, 0.3, 0.5, 0.7, 0.9) 0.50.70.9 0.50.70.9 0.70.9on each task with no noise. The norms are estimated using geometric updates with $\eta _ { C } = 0 . 2$ and an initial value $C ^ { 0 } = 0 . 1$ . With the possible exception of SO-LR, the estimated quantiles appear to closely track an evolving update norm distribution. Note that each task has a unique shape to its update norm evolution, which further motivates an adaptive approach.
122
+
123
+ For each value of noise multiplier $z \in \{ 0 , 0 . 0 1 , 0 . 0 3 , 0 . 1 \}$ we trained using the five fixed clipping norms and compare to adaptive clipping with the five quantiles (0.1, 0.3, 0.5, 0.7, 0.9). Note that for the fixed clipping runs $z _ { \Delta } = z$ ; that is, for fixed clip $C$ , the noise applied to the the updates has standard deviation $z C$ . As discussed in section 2.1, on the adaptive clipping runs $z _ { \Delta }$ is slightly higher due to the need to account for privacy when estimating the clipped counts.
124
+
125
+ # 3.3 Comparison of fixed and adaptive clipping
126
+
127
+ Validation set results with adaptive clipping are shown in Figure 5 and with fixed clipping in Figure 6. These charts show that we have identified the noise regime in which performance is beginning to degrade. There is always a tension between privacy and utility: as the amount of noise increases, eventually performance will go down. For the purpose of this study we consider more than a $5 \%$ relative reduction in evaluation metric to be unacceptable. Therefore for each task, we look at the level of noise $z ^ { * }$ at which the evaluation metric on the validation set is still within $5 \%$ of the value with no noise, but adding more noise would degrade performance beyond $5 \%$ . Given $z ^ { * }$ for each task, we then choose $C ^ { * }$ to be the fixed clip value that gives best performance on the validation set. The values of $z ^ { * }$ and $C ^ { * }$ are shown in Figure 7 (left).
128
+
129
+ For our final test set evaluation, we compare adaptive clipping to the median to fixed clipping at $C ^ { * }$ . The results are in Figure 7 (right). We show the average test set performance and bootstrapped $9 5 \%$ confidence interval over 20 runs varying the random seed used for client selection and DP noise. On three of the tasks (CIFAR-100, EMNIST-AE, SHAKESPEARE), clipping to the median actually outperforms fixed clipping to the best fixed clip chosen in hindsight, and on two more (EMNIST-CR, SO-NWP), the performance is comparable. Only on SO-LR the best fixed clip does perform somewhat better. This task seems to be unusual in that best performance comes from aggressive clipping, so a small fixed clip fares better than adaptive clipping to the median. However, looking at Figure 6 (and noting the scale of the $y$ axis), on this task more than the others, getting the exact right fixed clip is important. The development set recall $\textcircled { \alpha } 5$ value of 55.1 corresponds to the optimal fixed clip of 16.0. The next larger fixed clip of 27.3 gave a recall of only 51.8, and larger clips fared even worse. So an expensive hyperparameter search may be necessary to even get close to this high-performing fixed clip value.
130
+
131
+ ![](images/53e99813dd6e47f2ef8cdf8e52ff20869a841ff40598f9094b77d1d1af5cf8f4.jpg)
132
+ Figure 5: Evaluation metric performance of adaptive clipping with five settings of $\gamma$ for each of four effective noise multipliers $z$ . Note that the $y$ -axes have been compressed to show small differences, and that for EMNIST-AE lower values are better.
133
+
134
+ ![](images/66d05bcbf3595cea6fcd34c16e335ce974eff59db6a7ecca7d82b928cda32070.jpg)
135
+ Figure 6: Evaluation metric performance of fixed clipping with five settings of $C$ for each of four noise multipliers $z$ . Note that the $y \cdot$ -axes have been compressed to show small differences, and that for EMNIST-AE lower values are better.
136
+
137
+ # 4 Conclusions and implications for practice
138
+
139
+ In our experiments, we started with a high-performing non-private baseline with optimized client and server learning rates. We then searched over a small grid of larger server learning rates for our experiments with clipping (adaptive or fixed). This is one way to proceed in practice, if such non-private baseline results are available. More often, such baseline learning rates are not available, which will necessitate a search over client learning rates as well. In that case, it would be beneficial to enable adaptive clipping to the median during that hyperparameter search. The advantage of clipping relative to the unclipped baseline observed on some tasks could only increase if the other hyperparameters such as client learning rate were also chosen conditioned on the presence of clipping.
140
+
141
+ Although the experiments indicate that adaptive clipping to the median yields generally good results, on some problems (like SO-LR in our study) there may be gains from tuning the target quantile. It would require adding another dimension to the hyperparameter grid, exponentially increasing the tuning effort, but even this would be preferable to tuning the fixed clipping norm from scratch, since the grid can be smaller: we obtained good results on all problems by exploring only five quantiles, but the update norms in the experiments range over four orders of magnitude, from 0.22 to 135.
142
+
143
+ ![](images/68088de0535ad1d84284f11c49d90e30f5aa861d6f22bb4a98037e279246bd40.jpg)
144
+ Figure 7: Left: for each task, the maximum noise possible before performance begins to significantly degrade $( z ^ { * } )$ , and the best fixed clip $( C ^ { * } )$ chosen on the development set. Right: average test set performance and bootstrapped $9 5 \%$ confidence interval over 20 runs. In practice, finding the best fixed clipping norm would require substantial additional hyperparameter tuning.
145
+
146
+ Combining our results with the lessons taken from [18] and [24], the following strategy emerges for training a high-performing model with user-level differential privacy. We assume some non-private proxy data is available that may have comparatively few users $n ^ { \prime }$ , as well as that the true private data has enough users $n$ that the desired level of privacy is achievable.
147
+
148
+ 1. With adaptive clipping to the median enabled, using a relatively small number of clients per round $m \approx 1 0 0 ^ { \circ } ,$ ), and a small amount of noise $z = 0 . 0 1$ ), search over client and server learning rates on non-private proxy data.
149
+ 2. Fix the client and server learning rates. Using the non-private data and low value of $m$ , train several models increasing the level of noise $z$ until model performance at convergence begins to degrade.
150
+ 3. To train the final model on private data, if $( m , z )$ is too small for the desired level of privacy even given $n$ , set $( m , z ) \alpha \cdot ( m , z )$ for some $\alpha > 1$ such that the privacy target $( \epsilon , \delta )$ is achieved.5 Finally, train the private model using that value of $m$ and $z$ .
151
+
152
+ By eliminating the need to tune the fixed clipping norm hyperparameter which interacts significantly with the client and server learning rates, the adaptive clipping method proposed in this work exponentially reduces the work necessary to perform the expensive first step of this procedure.
153
+
154
+ # References
155
+
156
+ [1] Martin Abadi, Andy Chu, Ian Goodfellow, Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In 23rd ACM Conference on Computer and Communications Security (ACM CCS), 2016.
157
+ [2] Martin Abadi, Andy Chu, Ian Goodfellow, H. Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, CCS ’16, pages 308–318, New York, NY, USA, 2016. ACM. ISBN 978-1-4503-4139-4. doi: 10.1145/2976749.2978318.
158
+ [3] Kareem Amin, Alex Kulesza, Andres Munoz, and Sergei Vassilvtiskii. Bounding user contributions: A bias-variance trade-off in differential privacy. In International Conference on Machine Learning, pages 263–271. PMLR, 2019.
159
+ [4] Raef Bassily, Adam Smith, and Abhradeep Thakurta. Private empirical risk minimization: Efficient algorithms and tight error bounds. In Foundations of Computer Science (FOCS), 2014 IEEE 55th Annual Symposium on, pages 464–473. IEEE, 2014.
160
+ [5] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for federated learning on user-held data. arXiv preprint arXiv:1611.04482, 2016. [6] Keith Bonawitz, Fariborz Salehi, Jakub Konecnˇ y, Brendan McMahan, and Marco Gruteser. \` Federated learning with autotuned communication-efficient secure aggregation. In 2019 53rd Asilomar Conference on Signals, Systems, and Computers, pages 1222–1226. IEEE, 2019.
161
+ [7] Jean-Pierre Briot, Gaëtan Hadjeres, and François-David Pachet. Deep Learning Techniques for Music Generation - A Survey. arXiv e-prints, art. arXiv:1709.01620, Sep 2017.
162
+ [8] Nicholas Carlini, Chang Liu, Jernej Kos, Úlfar Erlingsson, and Dawn Song. The secret sharer: Measuring unintended neural network memorization & extracting secrets. CoRR, abs/1802.08232, 2018. URL http://arxiv.org/abs/1802.08232.
163
+ [9] Kamalika Chaudhuri, Claire Monteleoni, and Anand D Sarwate. Differentially private empirical risk minimization. Journal of Machine Learning Research, 12(Mar):1069–1109, 2011.
164
+ [10] Cynthia Dwork, Krishnaram Kenthapadi, Frank McSherry, Ilya Mironov, and Moni Naor. Our data, ourselves: Privacy via distributed noise generation. In EUROCRYPT, 2006.
165
+ [11] Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography Conference, pages 265–284. Springer, 2006.
166
+ [12] Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22Nd ACM SIGSAC Conference on Computer and Communications Security, CCS ’15, pages 1322–1333, New York, NY, USA, 2015. ACM. ISBN 978-1-4503-3832-5. doi: 10.1145/2810103.2813677.
167
+ [13] K. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In 2015 IEEE International Conference on Computer Vision (ICCV), pages 1026–1034, Dec 2015. doi: 10.1109/ICCV.2015.123.
168
+ [14] Tzu-Ming Harry Hsu, Hang Qi, and Matthew Brown. Measuring the effects of non-identical data distribution for federated visual classification, 2019.
169
+ [15] Roger Iyengar, Joseph P. Near, Dawn Song, Om Thakkar, Abhradeep Thakurta, and Lun Wang. Towards practical differentially private convex optimization. In S&P 2019, 2019.
170
+ [16] Jakub Konecnˇ y, H Brendan McMahan, Felix X Yu, Peter Richtárik, Ananda Theertha Suresh, \` and Dave Bacon. Federated learning: Strategies for improving communication efficiency. arXiv preprint arXiv:1610.05492, 2016.
171
+
172
+ [17] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Agüera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, AISTATS 2017, 20-22 April 2017, Fort Lauderdale, FL, USA, pages 1273–1282, 2017. URL http://proceedings.mlr. press/v54/mcmahan17a.html.
173
+
174
+ [18] H. Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. Learning differentially private recurrent language models. In ICLR 2018, 2018.
175
+
176
+ [19] Luca Melis, Congzheng Song, Emiliano De Cristofaro, and Vitaly Shmatikov. Exploiting Unintended Feature Leakage in Collaborative Learning. arXiv e-prints, art. arXiv:1805.04049, May 2018.
177
+
178
+ [20] Ilya Mironov. Rényi differential privacy. In 2017 IEEE 30th Computer Security Foundations Symposium (CSF), pages 263–275. IEEE, 2017.
179
+
180
+ [21] Kobbi Nissim, Sofya Raskhodnikova, and Adam Smith. Smooth sensitivity and sampling in private data analysis. In Proceedings of the thirty-ninth annual ACM symposium on Theory of computing, pages 75–84, 2007.
181
+
182
+ [22] Nicolas Papernot, Martın Abadi, Úlfar Erlingsson, Ian Goodfellow, and Kunal Talwar. Semisupervised knowledge transfer for deep learning from private training data. stat, 1050, 2017.
183
+
184
+ [23] Nicolas Papernot, Shuang Song, Ilya Mironov, Ananth Raghunathan, Kunal Talwar, and Úlfar Erlingsson. Scalable private learning with pate. arXiv preprint arXiv:1802.08908, 2018.
185
+
186
+ [24] Sashank Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konecný, ˇ Sanjiv Kumar, and H. Brendan McMahan. Adaptive federated optimization, 2020.
187
+
188
+ [25] Shai Shalev-Shwartz. Online learning and online convex optimization. Foundations and Trends in Machine Learning, 2012.
189
+
190
+ [26] R. Shokri, M. Stronati, C. Song, and V. Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pages 3–18, May 2017. doi: 10.1109/SP.2017.41.
191
+
192
+ [27] C. Szegedy, , , P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–9, June 2015. doi: 10.1109/CVPR.2015.7298594.
193
+
194
+ [28] Oriol Vinyals, Lukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever, and Geoffrey Hinton. Grammar as a foreign language. In Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 2, NIPS’15, pages 2773–2781, Cambridge, MA, USA, 2015. MIT Press. URL http://dl.acm.org/citation.cfm?id=2969442.2969550.
195
+
196
+ [29] Yu-Xiang Wang, Borja Balle, and Shiva Prasad Kasiviswanathan. Subsampled rényi differential privacy and analytical moments accountant. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 1226–1235. PMLR, 2019.
197
+
198
+ [30] X. Wu, M. Fredrikson, S. Jha, and J. F. Naughton. A methodology for formalizing modelinversion attacks. In 2016 IEEE 29th Computer Security Foundations Symposium (CSF), pages 355–370, June 2016. doi: 10.1109/CSF.2016.32.
199
+
200
+ [31] Xi Wu, Fengan Li, Arun Kumar, Kamalika Chaudhuri, Somesh Jha, and Jeffrey Naughton. Bolton differential privacy for scalable stochastic gradient descent-based analytics. In Proceedings of the 2017 ACM International Conference on Management of Data, SIGMOD ’17, pages 1307–1322, New York, NY, USA, 2017. ACM. ISBN 978-1-4503-4197-4. doi: 10.1145/ 3035918.3064047.
parse/train/RUQ1zwZR8_/RUQ1zwZR8__content_list.json ADDED
@@ -0,0 +1,1041 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Differentially Private Learning with Adaptive Clipping ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 223,
8
+ 122,
9
+ 776,
10
+ 174
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Galen Andrew galenandrew@google.com ",
17
+ "bbox": [
18
+ 207,
19
+ 226,
20
+ 397,
21
+ 255
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Om Thakkar omthkkr@google.com ",
28
+ "bbox": [
29
+ 436,
30
+ 226,
31
+ 593,
32
+ 255
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "H. Brendan McMahan mcmahan@google.com ",
39
+ "bbox": [
40
+ 632,
41
+ 226,
42
+ 790,
43
+ 255
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Swaroop Ramaswamy swaroopram@google.com ",
50
+ "bbox": [
51
+ 408,
52
+ 275,
53
+ 589,
54
+ 304
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 339,
65
+ 535,
66
+ 356
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Existing approaches for training neural networks with user-level differential privacy (e.g., DP Federated Averaging) in federated learning (FL) settings involve bounding the contribution of each user’s model update by clipping it to some constant value. However there is no good a priori setting of the clipping norm across tasks and learning settings: the update norm distribution depends on the model architecture and loss, the amount of data on each device, the client learning rate, and possibly various other parameters. We propose a method wherein instead of a fixed clipping norm, one clips to a value at a specified quantile of the update norm distribution, where the value at the quantile is itself estimated online, with differential privacy. The method tracks the quantile closely, uses a negligible amount of privacy budget, is compatible with other federated learning technologies such as compression and secure aggregation, and has a straightforward joint DP analysis with DP-FedAvg. Experiments demonstrate that adaptive clipping to the median update norm works well across a range of realistic federated learning tasks, sometimes outperforming even the best fixed clip chosen in hindsight, and without the need to tune any clipping hyperparameter. ",
73
+ "bbox": [
74
+ 232,
75
+ 375,
76
+ 766,
77
+ 594
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 174,
87
+ 627,
88
+ 310,
89
+ 645
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Deep learning has become ubiquitous, with applications as diverse as image processing, natural language translation, and music generation [27, 13, 28, 7]. Deep models are able to perform well in part due to their ability to utilize vast amounts of data for training. However, recent work has shown that it is possible to extract information about individual training examples using only the parameters of a trained model [12, 30, 26, 8, 19]. When the training data potentially contains privacy-sensitive user information, it becomes imperative to use learning techniques that limit such memorization. ",
96
+ "bbox": [
97
+ 174,
98
+ 661,
99
+ 825,
100
+ 746
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Differential privacy (DP) [10, 11] is widely considered a gold standard for bounding and quantifying the privacy leakage of sensitive data when performing learning tasks. Intuitively, DP prevents an adversary from confidently making any conclusions about whether some user’s data was used in training a model, even given access to arbitrary side information. The formal definition of DP depends on the notion of neighboring datasets: we will refer to a pair of datasets $D , D ^ { \\prime } \\in \\mathcal { D }$ as neighbors if $D ^ { \\prime }$ can be obtained from $D$ by adding or removing one element. ",
107
+ "bbox": [
108
+ 174,
109
+ 751,
110
+ 825,
111
+ 835
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Definition 1.1 (Differential Privacy). A (randomized) algorithm $M : { \\mathcal { D } } { \\mathcal { R } }$ with input domain $\\mathcal { D }$ and output range $\\mathcal { R }$ is $( \\varepsilon , \\delta )$ -differentially private if for all pairs of neighboring datasets $D , D ^ { \\prime } \\in \\mathcal { D }$ , and every measurable $S \\subseteq \\mathcal { R }$ , we have $\\operatorname* { P r } \\left( M ( D ) \\in S \\right) \\leq e ^ { \\varepsilon } \\cdot \\operatorname* { P r } \\left( M ( D ^ { \\prime } ) \\in S \\right) + \\delta$ , where probabilities are with respect to the coin flips of $M$ . ",
118
+ "bbox": [
119
+ 174,
120
+ 840,
121
+ 825,
122
+ 897
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Following McMahan et al. [18], we define two common settings of privacy corresponding to two different definitions of neighboring datasets. In example-level DP, datasets are considered neighbors when they differ by the addition or removal of a single example [9, 4, 2, 22, 31, 23, 15]. In user-level DP, neighboring datasets differ by the addition or removal of all of the data of one user [18]. Userlevel DP is the stronger form, and is preferred when one user may contribute many training examples to the learning task, as privacy is protected even if the same privacy-sensitive information occurs in all the examples from one user. In this paper, we will describe the technique and perform experiments in terms of the stronger user-level form, but we note that example-level DP can be achieved by simply giving each user a single example. ",
129
+ "bbox": [
130
+ 173,
131
+ 90,
132
+ 825,
133
+ 215
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "To achieve user-level DP, we employ the Federated Averaging algorithm [17], introduced as a decentralized approach to model training in which the training data is left distributed on user devices, and each training round aggregates updates that are computed locally. On each round, a sample of devices are selected for training, and then each selected device performs potentially many steps of local SGD over minibatches of its own data, sending back the model delta as its update. ",
140
+ "bbox": [
141
+ 174,
142
+ 222,
143
+ 825,
144
+ 291
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Bounding the influence of any user in Federated Averaging is both necessary for privacy and often desirable for stability. One popular way to do this to cap the $L _ { 2 }$ norm of its model update by projecting larger updates back to the ball of norm $C$ . Since such clipping also effectively bounds the $L _ { 2 }$ sensitivity of the aggregate with respect to the addition or removal of any user’s data, adding Gaussian noise to the aggregate is sufficient to obtain a central differential privacy guarantee for the update [9, 4, 2]. Standard composition techniques can then be used to extend the per-update guarantee to the final model [20]. ",
151
+ "bbox": [
152
+ 174,
153
+ 297,
154
+ 825,
155
+ 395
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "Setting an appropriate value for the clipping threshold $C$ is crucial for the utility of the private training mechanism. Setting it too low can result in high bias since we discard information contained in the magnitude of the gradient. However setting it too high entails the addition of more noise, because the amount of Gaussian noise necessary for a given level of privacy must be proportional to the norm bound (the $L _ { 2 }$ sensitivity), and this will eventually destroy model utility. The clipping bias-variance trade-off was observed empirically by McMahan et al. [18], and was theoretically analyzed and shown to be an inherent property of differentially private learning by Amin et al. [3]. ",
162
+ "bbox": [
163
+ 174,
164
+ 401,
165
+ 825,
166
+ 500
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Learning large models using the Federated Averaging/SGD algorithm [17, 18] can take thousands of rounds of interaction between the central server and the clients. The norms of the updates can vary as the rounds progress. Prior work [18] has shown that decreasing the value of the clipping threshold after training a language model for some initial number of rounds can improve model accuracy. However, the behavior of the norms can be difficult to predict without prior knowledge about the system, and if it is difficult to choose a fixed clipping norm for a given learning task, it is even more difficult to choose a parameterized clipping norm schedule. ",
173
+ "bbox": [
174
+ 174,
175
+ 505,
176
+ 825,
177
+ 602
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "While there has been substantial work on DP techniques for learning, almost every technique has hyperparameters which need to be set appropriately for obtaining good utility. Besides the clipping norm, learning techniques have other hyperparameters which might interact with privacy hyperparameters. For example, the server learning rate in DP SGD might need to be set to a high value if the clipping threshold is very low, and vice-versa. Such tuning for large networks can have an exorbitant cost in computation and efficiency, which can be a bottleneck for real-world systems that involve communicating with millions of samples for training a single network. Tuning may also incur an additional cost for privacy, which needs to be accounted for when providing a privacy guarantee for the released model with tuned hyperparameters (though in some cases, hyperparameters can be tuned using the same model and algorithm on a sufficiently-similar public proxy dataset). ",
184
+ "bbox": [
185
+ 174,
186
+ 608,
187
+ 825,
188
+ 746
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "Related Work The heuristic of clipping to the median update norm was suggested by Abadi et al. [1], but no method for doing so privately was proposed, nor was the heuristic empirically tested. One possibility would be to estimate the median unclipped update norm at each round privately by adding noise calibrated to the smooth sensitivity as defined by Nissim et al. [21]. However this approach has several drawbacks compared to the algorithm we will present. It would require the clients to send their unclipped updates to the server at each round,1 which is incompatible with the foundational principle of federated learning to transmit only focused, minimal updates, and precluding the use of secure aggregation [5] and certain forms of compression [16, 6]. Also, by incorporating information across multiple rounds, our method is able to track the underlying quantile closely, with less jitter associated with sampling at each round, and using only a negligible fraction of the privacy budget. ",
195
+ "bbox": [
196
+ 174,
197
+ 762,
198
+ 825,
199
+ 847
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "image",
205
+ "img_path": "images/57b22a692fa6898eae5a74218e1b3d2cc146c07e465d86897df33e1e2eafc421.jpg",
206
+ "image_caption": [
207
+ "Figure 1: Loss functions to estimate the 0.01-, 0.5-, 0.75-, and 0.99-quantiles for a random variable $X$ that uniformly takes values in $\\{ 1 5 , 2 5 , 2 8 , 4 0 , 4 5 , 4 8 \\}$ . The loss function is the average of convex piecewise-linear functions, one for each value. For instance, for the median $( \\gamma = 0 . 5 )$ , this is just $\\begin{array} { r } { \\dot { \\ell } _ { \\gamma } ( C ; X ) = \\frac { 1 } { 2 } | X - C | } \\end{array}$ , where $X$ is the random value, and $C$ is the estimate. When we average these functions, we arrive at the yellow function in the plot showing the average loss, which indeed is minimized by any value between the central two elements, i.e., in the interval [28, 40]. The function for $\\gamma = 0 . 7 5$ is minimized at $C = 4 5$ because $\\operatorname* { P r } ( X \\leq C ) < 0 . 7 5$ for values $C$ in [40, 45), while $\\operatorname* { P r } ( X \\leq C ) > 0 . 7 5$ for values $C$ in (45, 48]. "
208
+ ],
209
+ "image_footnote": [],
210
+ "bbox": [
211
+ 176,
212
+ 92,
213
+ 821,
214
+ 250
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "",
221
+ "bbox": [
222
+ 174,
223
+ 400,
224
+ 825,
225
+ 457
226
+ ],
227
+ "page_idx": 2
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "Contributions In this paper, we describe a method for adaptively and privately tuning the clipping threshold to track a given quantile of the update norm distribution during training. The method uses a negligible amount of privacy budget, and is compatible with other FL technologies such as compression and secure aggregation [5, 6]. We perform a careful empirical comparison of our adaptive clipping method to a highly optimized fixed-clip baseline on a suite of realistic and publicly available FL tasks to demonstrate that high-utility and high-privacy models—sometimes exceeding any fixed clipping norm in utility—can be trained using our method without the need to tune any clipping hyperparameter. ",
232
+ "bbox": [
233
+ 173,
234
+ 473,
235
+ 825,
236
+ 585
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "2 Private adaptive quantile clipping ",
243
+ "text_level": 1,
244
+ "bbox": [
245
+ 173,
246
+ 606,
247
+ 488,
248
+ 625
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "In this section, we will describe the adaptive strategy that can be used for adjusting the clipping threshold so that it comes to approximate the value at a specified quantile. ",
255
+ "bbox": [
256
+ 171,
257
+ 638,
258
+ 823,
259
+ 667
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "Let $X \\in \\mathbb { R }$ be a random variable, let $\\gamma \\in [ 0 , 1 ]$ be a quantile to be matched. For any $C$ , define ",
266
+ "bbox": [
267
+ 171,
268
+ 672,
269
+ 787,
270
+ 689
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "equation",
276
+ "img_path": "images/64d625ebc93f26e68c7e3ced5a440d61531e0b81d0d418fcd590344fed09570f.jpg",
277
+ "text": "$$\n\\ell _ { \\gamma } ( C ; X ) = { \\left\\{ \\begin{array} { l l } { ( 1 - \\gamma ) ( C - X ) } & { { \\mathrm { i f ~ } } X \\leq C , } \\\\ { \\gamma ( X - C ) } & { { \\mathrm { o t h e r w i s e , } } } \\end{array} \\right. }\n$$",
278
+ "text_format": "latex",
279
+ "bbox": [
280
+ 349,
281
+ 715,
282
+ 647,
283
+ 751
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "so ",
290
+ "bbox": [
291
+ 173,
292
+ 763,
293
+ 192,
294
+ 775
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "equation",
300
+ "img_path": "images/c8530c23ebe8eff4610d31c5ab501e152dadd24fbd7152806729c31446aef044.jpg",
301
+ "text": "$$\n\\ell _ { \\gamma } ^ { \\prime } ( C ; X ) = { \\left\\{ \\begin{array} { l l } { ( 1 - \\gamma ) } & { { \\mathrm { i f ~ } } X \\leq C , } \\\\ { - \\gamma } & { { \\mathrm { o t h e r w i s e . } } } \\end{array} \\right. }\n$$",
302
+ "text_format": "latex",
303
+ "bbox": [
304
+ 349,
305
+ 786,
306
+ 586,
307
+ 821
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "Hence, $\\begin{array} { r } { \\mathbb { E } [ \\ell _ { \\gamma } ^ { \\prime } ( C ; X ) ] = ( 1 - \\gamma ) \\operatorname* { P r } [ X \\leq C ] - \\gamma \\operatorname* { P r } [ X > C ] = \\operatorname* { P r } [ X \\leq C ] - \\gamma } \\end{array}$ . For $C ^ { * }$ such that $\\mathbb { E } [ \\ell _ { \\gamma } ^ { \\prime } ( C ^ { * } ; X ) ] = 0$ , we have $\\operatorname* { P r } ( X \\leq C ^ { * } ) = \\gamma$ . Thus, $C ^ { * }$ is the $\\gamma ^ { \\mathrm { t h } }$ quantile of $X$ . Because the loss is convex and has gradients bounded by 1, we can get an online estimate of $C$ that converges to the $\\gamma ^ { \\mathrm { t h } }$ quantile of $X$ using online gradient descent (see, e.g., Shalev-Shwartz [25]). See Figure 1 for a plot of the loss for a random variable that takes six values with equal probability. ",
314
+ "bbox": [
315
+ 173,
316
+ 837,
317
+ 825,
318
+ 911
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "Suppose at some round we have $m$ samples of $X$ , with values $( x _ { 1 } , \\ldots , x _ { m } )$ . The average derivative of the loss for that round is ",
325
+ "bbox": [
326
+ 171,
327
+ 90,
328
+ 823,
329
+ 119
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "equation",
335
+ "img_path": "images/7c2369a027f13b7afd028cd41523897d3d7d4d668d9db4649ff3b7da4056c0eb.jpg",
336
+ "text": "$$\n\\begin{array} { r l } & { \\bar { \\ell } _ { \\gamma } ^ { \\prime } ( C ; X ) = \\displaystyle \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\{ \\displaystyle { ( 1 - \\gamma ) \\quad \\mathrm { i f } \\ x _ { i } \\le C } , } \\\\ & { \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad \\quad = \\displaystyle \\frac { 1 } { m } \\bigg ( ( 1 - \\gamma ) \\sum _ { i \\in [ m ] } \\mathbb { I } _ { x _ { i } \\le C } - \\gamma \\sum _ { i \\in [ m ] } \\mathbb { I } _ { x _ { i } > C } \\bigg ) = \\bar { b } - \\gamma , } \\end{array}\n$$",
337
+ "text_format": "latex",
338
+ "bbox": [
339
+ 282,
340
+ 123,
341
+ 714,
342
+ 208
343
+ ],
344
+ "page_idx": 3
345
+ },
346
+ {
347
+ "type": "text",
348
+ "text": "where $\\begin{array} { r } { \\bar { b } \\triangleq \\frac { 1 } { m } \\sum _ { i \\in [ m ] } \\mathbb { I } _ { x _ { i } \\leq C } } \\end{array}$ is the empirical fraction of samples with value at most $C$ . For a given learning rate $\\eta _ { C }$ , we can perform the update: $C \\gets C - \\eta _ { C } ( \\bar { b } - \\gamma )$ . ",
349
+ "bbox": [
350
+ 176,
351
+ 214,
352
+ 823,
353
+ 250
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "Geometric updates. Since $\\bar { b }$ and $\\gamma$ take values in $[ 0 , 1 ]$ , the linear update rule above changes $C$ by a maximum of $\\eta _ { C }$ at each step. This can be slow if $C$ is on the wrong order of magnitude. At the other extreme, if the optimal value of $C$ is orders of magnitude smaller than $\\eta _ { C }$ , the update can be very coarse, and may overshoot to become negative. To remedy such issues, we propose the following geometric update rule: $C \\gets C \\cdot \\exp ( - \\eta _ { C } ( \\bar { b } - \\gamma ) )$ . This update rule converges quickly to the true quantile even if the initial estimate is off by orders of magnitude. It also has the attractive property that the variance of the estimate around the true quantile at convergence is proportional to the value at that quantile. In our experiments, we use the geometric update rule with $\\eta _ { C } = 0 . 2$ . ",
360
+ "bbox": [
361
+ 173,
362
+ 261,
363
+ 825,
364
+ 375
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "2.1 DP-FedAvg with adaptive quantile clipping ",
371
+ "text_level": 1,
372
+ "bbox": [
373
+ 173,
374
+ 390,
375
+ 513,
376
+ 405
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "Let $m$ be the number of users in a round and let $\\gamma \\in [ 0 , 1 ]$ denote the target quantile of the norm distribution at which we want to clip. For iteration $t \\in [ T ]$ , let $C ^ { t }$ be the clipping threshold, and $\\eta _ { C }$ be the learning rate. Let $\\mathcal { Q } ^ { t }$ be set of users sampled in round $t$ . Each user $i \\in \\mathcal { Q } ^ { t }$ will send the bit $b _ { i } ^ { t }$ along with the usual model delta update $\\Delta _ { i } ^ { t }$ , where $b _ { i } ^ { t } = \\mathbb { I } _ { | | \\Delta _ { i } ^ { t } | | _ { 2 } \\leq C ^ { t } }$ . Defining $\\begin{array} { r } { \\bar { b } ^ { t } = \\frac { 1 } { m } \\sum _ { i \\in \\mathcal { Q } ^ { t } } b _ { i } ^ { t } } \\end{array}$ we would like to apply the update $C \\gets C \\cdot \\exp ( - \\eta _ { C } ( \\bar { b } - \\gamma ) )$ . However, we can’t use ${ \\bar { b } } ^ { t }$ directly, since it may reveal private information about the magnitude of users’ updates. To remedy this, we add Gaussian noise to the sum: $\\begin{array} { r } { \\tilde { b } ^ { t } = \\frac { 1 } { m } \\left( \\sum _ { i \\in \\mathcal { Q } ^ { t } } \\bar { b } _ { i } ^ { t } + \\mathcal { N } ( O , \\sigma _ { b } ^ { 2 } ) \\right) } \\end{array}$ . The DPFedAvg algorithm with adaptive clipping is shown in Algorithm 1. We augment basic federated averaging with server momentum, which improves convergence [14, 24].2 ",
383
+ "bbox": [
384
+ 173,
385
+ 415,
386
+ 826,
387
+ 546
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "Algorithm 1 DPFedAvg-M with adaptive clipping ",
394
+ "text_level": 1,
395
+ "bbox": [
396
+ 173,
397
+ 560,
398
+ 504,
399
+ 577
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "function $\\mathrm { T r a i n } ( m , \\gamma , \\eta _ { c } , \\eta _ { s } , \\eta _ { C } , z , \\sigma _ { b } , \\beta )$ Initialize model $\\theta ^ { 0 }$ , clipping bound $C ^ { 0 }$ z∆ ← \u0000z−2 − (2σb)−2\u0001−1/2 for each round $t = 0 , 1 , 2 , \\ldots { \\dot { \\mathbf { c } } }$ o ${ \\mathcal { Q } } ^ { t } \\gets$ (sample $m$ users uniformly) for each user $i \\in \\mathcal { Q } ^ { t }$ in parallel do $\\begin{array} { r l } & { \\quad ( \\Delta _ { i } ^ { t } , b _ { i } ^ { t } ) \\gets \\mathrm { ~ F e d A v g } ( i , \\theta ^ { t } , \\eta _ { c } , C ^ { t } ) } \\\\ & { \\sigma _ { \\Delta } \\gets z _ { \\Delta } C ^ { t } } \\\\ & { \\tilde { \\Delta } ^ { t } = \\frac { 1 } { m } \\left( \\sum _ { i \\in \\mathcal { Q } ^ { t } } \\Delta _ { i } ^ { t } + \\mathcal { N } ( 0 , I \\sigma _ { \\Delta } ^ { 2 } ) \\right) } \\\\ & { \\bar { \\Delta } ^ { t } = \\beta \\bar { \\Delta } ^ { t - 1 } + ( 1 - \\beta ) \\tilde { \\Delta } ^ { t } } \\\\ & { \\theta ^ { t + 1 } \\gets \\theta ^ { t } + \\eta _ { s } \\bar { \\Delta } ^ { t } } \\\\ & { \\tilde { b } ^ { t } = \\frac { 1 } { m } \\left( \\sum _ { i \\in \\mathcal { Q } ^ { t } } b _ { i } ^ { t } + \\mathcal { N } ( O , \\sigma _ { b } ^ { 2 } ) \\right) } \\end{array}$ ",
406
+ "bbox": [
407
+ 184,
408
+ 597,
409
+ 464,
410
+ 777
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "$C ^ { t + 1 } \\gets C ^ { t } \\cdot \\exp \\left( - \\eta _ { C } ( \\tilde { b } ^ { t } - \\gamma ) \\right)$ function FedAvg(i, θ0, η, C) θ ← θ0 $\\mathcal { G } $ (user i’s local data split into batches) for batch $g \\in { \\mathcal { G } }$ do $\\begin{array} { r l } & { \\quad \\theta \\gets \\theta - \\eta \\nabla \\ell ( \\theta ; g ) } \\\\ & { \\Delta \\gets \\theta - \\theta ^ { 0 } } \\\\ & { b \\gets \\mathbb { I } _ { | | \\Delta | | \\leq C } } \\\\ & { \\Delta ^ { \\prime } \\gets \\Delta \\cdot \\operatorname* { m i n } \\left( 1 , \\frac { C } { | | \\Delta | | } \\right) } \\\\ & { \\mathrm { ~ r e t u r n } \\left( \\Delta ^ { \\prime } , b \\right) } \\end{array}$ ",
417
+ "bbox": [
418
+ 519,
419
+ 592,
420
+ 816,
421
+ 766
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "image",
427
+ "img_path": "images/d1f5d3ef5dfde7726538c717f8da8f80339ce3990f0c0907a44973a4dd5dbc83.jpg",
428
+ "image_caption": [
429
+ "Figure 2: Evolution of the quantile estimate on data drawn from log-normal distributions. The three plots use data drawn from the exponential of $\\mathcal { N } ( 0 . 0 , 1 . 0 )$ , $\\mathcal { N } ( \\bar { 0 . 0 } , 0 . 1 )$ , and $\\mathcal { N } ( \\log { 1 0 } , 1 . 0 )$ , respectively. Curves are shown for each of five quantiles: (0.1, 0.3, 0.5, 0.7, 0.9), and the dashed lines show the true value at each quantile. Hyperparameters are as discussed in the text and used in the experiments of Section 3: $\\eta _ { C } = 0 . 2 , C ^ { 0 } \\stackrel { \\sim } { = } 0 . \\dot { 1 } , m = 1 0 0 , \\sigma _ { b } = m / 2 0$ . After an initial phase of exponential growth, the true quantile is fairly closely tracked. A smaller value of $\\eta _ { C }$ would allow more accurate tracking at the cost of slower convergence, but since the quantile value is only used as a heuristic for clipping, a small amount of noise is tolerable. The entire sequence of values estimated for each target quantile satisfy $( 0 . 0 3 4 , n ^ { - 1 . 1 } )$ -differential privacy using RDP composition across the 200 rounds assuming fixed-size samples of $m = 1 0 0$ out of a total population of $\\bar { n } = 1 0 ^ { 6 }$ [29]. "
430
+ ],
431
+ "image_footnote": [],
432
+ "bbox": [
433
+ 176,
434
+ 90,
435
+ 823,
436
+ 217
437
+ ],
438
+ "page_idx": 4
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "Theorem 1. One step of $D P$ -FedAvg with adaptive clipping using $\\sigma _ { b }$ noise standard deviation on the clipped counts $\\sum b _ { i } ^ { t }$ and $z _ { \\Delta }$ noise multiplier on the vector sums $\\sum \\Delta _ { i } ^ { t }$ is equivalent (so far as privacy accounting is concerned) to one step of non-adaptive $D P$ -FedAvg with noise multiplier $z$ if we set z∆ = \u0000z−2 − (2σb)−2\u0001−1/2. ",
443
+ "bbox": [
444
+ 173,
445
+ 391,
446
+ 826,
447
+ 454
448
+ ],
449
+ "page_idx": 4
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "Proof. We make a conceptual change to the algorithm that does not change the behavior or privacy properties but allows us to analyze each step as if it were a single private Gaussian sum. Instead of sending $( \\Delta _ { i } ^ { t } , b _ { i } ^ { t } )$ , each user sends $( \\hat { \\Delta } _ { i } ^ { t } , \\hat { b } _ { i } ^ { t } ) \\triangleq \\big ( \\Delta _ { i } ^ { t } / \\sigma _ { \\Delta } , ( b _ { i } ^ { t } - \\scriptscriptstyle 1 / 2 ) / \\sigma _ { b } \\big )$ . The server adds noise with covariance $I$ and averages, then reverses the transformation so $\\begin{array} { r } { \\tilde { \\Delta } ^ { t } = \\frac { \\sigma _ { \\Delta } } { m } \\biggl ( \\sum _ { i \\in \\mathcal { Q } ^ { t } } \\hat { \\Delta } _ { i } ^ { t } + \\mathcal { N } ( 0 , I ) \\biggr ) } \\end{array}$ and $\\begin{array} { r } { \\tilde { b } ^ { t } = \\frac { \\sigma _ { b } } { m } \\left( \\sum _ { i \\in \\mathcal { Q } ^ { t } } \\hat { b } _ { i } ^ { t } + \\mathcal { N } ( 0 , 1 ) \\right) + 1 / 2 } \\end{array}$ . Noting that $\\vert \\vert ( \\hat { \\Delta } _ { i } ^ { t } , \\hat { b } _ { i } ^ { t } ) \\vert \\vert \\leq S \\triangleq \\left( ( C ^ { t } / \\sigma _ { \\Delta } ) ^ { 2 } + \\left( 1 / 2 \\sigma _ { b } \\right) ^ { 2 } \\right) ^ { 1 / 2 }$ , it is clear that the two Gaussian sum queries of Algorithm 1 are equivalent to pre- and post-processing of a single query with sensitivity $S$ and covariance $I$ , or noise multiplier $z = { \\overset { \\cdot } { 1 } } / s = \\overset { \\cdot } { \\left( z _ { \\Delta } ^ { - 2 } + ( 2 \\sigma _ { b } ) ^ { - 2 } \\right) ^ { - 1 / 2 } }$ Rearranging yields the result. ",
454
+ "bbox": [
455
+ 173,
456
+ 469,
457
+ 826,
458
+ 621
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "In practice, we recommend using a value of $\\sigma _ { b } = m / 2 0$ . Since the noise is Gaussian, this implies that the error $| \\tilde { b } ^ { t } - \\bar { b } ^ { t } |$ will be less than 0.1 with $9 5 . 4 \\%$ probability, and will be no more than 0.15 with $9 9 . 7 \\%$ probability. Even in this unlikely case, assuming a geometric update and a learning rate of $\\eta _ { C } = 0 . 2$ , the error on the update would be a factor of $\\exp ( 0 . 2 \\times 0 . 1 5 ) = 1 . 0 3$ , a small deviation. So this default gives high privacy for an acceptable amount of noise in the quantile estimation process. Using Thm. 1, we can compute that to achieve an effective combined noise multiplier of $z = 1$ , with $m = 1 0 0$ clients per round, the noise multiplier $z _ { \\Delta }$ is approximately 1.005. So we are paying only a factor of $0 . 5 \\%$ more noise on the updates for adaptive clipping with the same privacy guarantee (a quantity which only gets smaller with increasing $m$ ). These constants $\\zeta \\sigma _ { b } = m / 2 0$ and $\\eta _ { C } = 0 . 2 $ ) are what we use in the experiments of Section 3. ",
465
+ "bbox": [
466
+ 173,
467
+ 638,
468
+ 826,
469
+ 780
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "The clipping norm can be initialized to any value $C ^ { 0 }$ that is safely on the low end of the expected norm distribution. If it is too high and needs to adapt downward, a lot of noise may be added at the beginning of model training, which may swamp the model. However there is little danger in setting it quite low, since the geometric update will make it grow exponentially until it matches the true quantile. In our experiments we use an initial clip of 0.1 for all tasks. It is easy to compute that with a learning rate of $\\eta _ { C } = 0 . 2$ and a target quantile of $\\gamma = 0 . 5$ , if every update is clipped, the quantile estimate will increase by a factor of ten every 23 iterations. In order to show the effectiveness of the algorithm at tracking a known quantile, we ran it on simulated data for which we can compute the true quantile exactly. Figure 2 shows the result of this experiment. ",
476
+ "bbox": [
477
+ 173,
478
+ 786,
479
+ 825,
480
+ 911
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "table",
486
+ "img_path": "images/fd577b28e1ccdec052af3fb9803ea5c992696e0c9c7f517012f4ae8110b31c19.jpg",
487
+ "table_caption": [],
488
+ "table_footnote": [],
489
+ "table_body": "<table><tr><td>Task</td><td>model</td><td>N</td><td>n</td><td>T</td><td>2</td><td>m</td><td>nc</td><td>ns</td><td>Cmin</td><td>Cmax</td></tr><tr><td>CIFAR-100</td><td>ResNet</td><td>11M</td><td>500</td><td>4000</td><td>0.669</td><td>2231</td><td>0.1</td><td>0.32</td><td>0.75</td><td>2.2</td></tr><tr><td>EMNIST-CR</td><td>CNN</td><td>1.2M</td><td>3400</td><td>1500</td><td>0.513</td><td>513</td><td>0.032</td><td>1.0</td><td>0.28</td><td>0.85</td></tr><tr><td>EMNIST-AE</td><td>Deep AE</td><td>2.8M</td><td>3400</td><td>3000</td><td>0.659</td><td>2197</td><td>3.2</td><td>1.78</td><td>0.22</td><td>0.95</td></tr><tr><td>SHAKESPEARE</td><td>C-LSTM</td><td>820k</td><td>715</td><td>1200</td><td>0.510</td><td>510</td><td>1.0</td><td>0.32</td><td>0.25</td><td>3.6</td></tr><tr><td>SO-NWP</td><td>W-LSTM</td><td>4.1M</td><td>342k</td><td>1500</td><td>1.396</td><td>13958</td><td>0.18</td><td>1.78</td><td>0.30</td><td>1.6</td></tr><tr><td>SO-LR</td><td>Multi-LR</td><td>5M</td><td>342k</td><td>1500</td><td>1.396</td><td>13958</td><td>320.0</td><td>1.78</td><td>16.0</td><td>135.0</td></tr></table>",
490
+ "bbox": [
491
+ 174,
492
+ 88,
493
+ 823,
494
+ 179
495
+ ],
496
+ "page_idx": 5
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "Table 1: Dataset statistics and chosen hyperparameters. Left: model type, number of trainable parameters $N$ , number of training clients $n$ , and the number of training rounds $T$ used (following Reddi et al. [24]). Middle: the noise multiplier $z$ and number of clients per round $m$ necessary to achieve $( 5 , n ^ { - 1 . 1 } )$ -DP with less than $5 \\%$ model performance loss if each task had a population of $n = 1 0 ^ { 6 }$ [29]. Right: the optimal unclipped baseline client and server learning rates (Sec. 3.1) for each task and chosen values of minimum and maximum fixed clips (Sec. 3.2). ",
501
+ "bbox": [
502
+ 174,
503
+ 179,
504
+ 825,
505
+ 261
506
+ ],
507
+ "page_idx": 5
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "3 Experiments ",
512
+ "text_level": 1,
513
+ "bbox": [
514
+ 174,
515
+ 300,
516
+ 312,
517
+ 318
518
+ ],
519
+ "page_idx": 5
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "To empirically validate the approach, we examine the behavior of our algorithm on six of the public benchmark federated learning tasks defined by Reddi et al. [24], which are to our knowledge the most realistic and representative publicly available federated learning tasks that exist to date. All six tasks are non-i.i.d. with respect to user partitioning: indeed with the exception of CIFAR-100, the data is partitioned according to the actual human user who generated the data, for example the writer of the EMNIST characters or the Stack Overflow user who asked or answered a question. Table 1 (left) lists the characteristics of the datasets. ",
524
+ "bbox": [
525
+ 174,
526
+ 335,
527
+ 825,
528
+ 433
529
+ ],
530
+ "page_idx": 5
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "Two of the tasks derived from Stack Overflow data (SO-NWP and SO-LR) are ideal for DP research due to the very high number of users (342k) making it possible to train models with good user-level privacy without sacrificing accuracy. The other four tasks (CIFAR-100, EMNIST-AE, EMNISTCR, SHAKESPEARE) are representative learning tasks, but not representative population sizes for real world cross-device FL applications. Therefore we focus on establishing that adaptive clipping works well with 100 clients per round on these tasks in the regime where the noise is at a level such that utility is just beginning to degrade. Under the assumption that a larger population were available, one could increase $m$ , $\\sigma _ { \\Delta }$ , and $\\sigma _ { b }$ proportionally to achieve comparable utility with high privacy. This should not significantly affect convergence (indeed, it might be beneficial) since the only effect is to increase the number of users in the average $\\tilde { \\Delta } ^ { t }$ , reducing the variance. Table 1 (middle) shows the number of clients per round with which our experiments indicate we could achieve $( 5 , n ^ { - 1 . 1 } )$ -DP for each dataset with acceptable model performance loss (less than $5 \\%$ relative to non-private training, as discussed later) if each dataset had $n = 1 0 ^ { 6 }$ clients, using RDP composition with fixed-size subsampling [29].3 ",
535
+ "bbox": [
536
+ 173,
537
+ 439,
538
+ 825,
539
+ 633
540
+ ],
541
+ "page_idx": 5
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "3.1 Baseline client and server learning rates ",
546
+ "text_level": 1,
547
+ "bbox": [
548
+ 174,
549
+ 656,
550
+ 490,
551
+ 671
552
+ ],
553
+ "page_idx": 5
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Reddi et al. [24] provide optimized client and server learning rates for federated averaging with momentum that serve as a starting point for our experimental setup. For almost all hyperparameters (model configuration, evaluation metrics, client batch size, total rounds, etc.) we replicate their experiments, but with two changes. First, we increase the number of clients per round to 100 for all tasks. This reduces the variance in the updates to a level where we can reasonably assume that adding more clients is unlikely to significantly change convergence properties [18]. Second, as shown in Algorithm 1 we use unweighted federated averaging, thus eliminating the need to set yet another difficult-to-fit hyperparameter: the expected total weight of clients in a round. Since these changes might require different settings, we reoptimize the client and server learning rates for our baseline with no clipping or noise. We ran a small grid of 25 configurations for each task jointly exploring client and server learning rates whose logarithm (base-10) differs from the values in Table 10 of Reddi et al. [24] by $\\{ \\ - \\% , - \\% , 0 , \\% , \\% \\}$ . The optimal baseline client and server learning rates for our experimental setup are shown in Table 1 (right). ",
558
+ "bbox": [
559
+ 174,
560
+ 684,
561
+ 825,
562
+ 864
563
+ ],
564
+ "page_idx": 5
565
+ },
566
+ {
567
+ "type": "image",
568
+ "img_path": "images/2ec1b01a4de94b8799a7e8fb558e4a9eaaff48f80e1394d63db50c5946bcdebb.jpg",
569
+ "image_caption": [
570
+ "Figure 3: Impact of clipping without noise. Performance of the unclipped baseline compared to five settings of $\\gamma$ , from $\\gamma = 0 . 1$ (aggressive clipping) to $\\gamma = 0 . 9$ (mild clipping). The values shown are the evaluation metrics on the validation set averaged over the last 100 rounds. Note that the $y$ -axes have been compressed to show small differences, and that for EMNIST-AE lower values are better. "
571
+ ],
572
+ "image_footnote": [],
573
+ "bbox": [
574
+ 176,
575
+ 92,
576
+ 823,
577
+ 286
578
+ ],
579
+ "page_idx": 6
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "Because clipping (whether fixed or adaptive) reduces the average norm of the client updates, it may be necessary to use a higher server learning rate to compensate. Therefore, for all approaches with clipping—fixed or adaptive—we search over a small grid of five server learning rates, scaling the values in Table 1 by $\\{ 1 , \\bar { 1 0 } ^ { 1 / 4 } , 1 0 ^ { 1 / 2 } , 1 0 ^ { 3 / 4 } , 1 0 \\}$ . For all configurations, we report the best performing model whose server learning rate was chosen from this small grid on the validation set.4 ",
584
+ "bbox": [
585
+ 174,
586
+ 381,
587
+ 825,
588
+ 452
589
+ ],
590
+ "page_idx": 6
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "We first examine the impact of adaptive clipping without noise to see how it affects model performance. Figure 3 compares baseline performance without clipping to adaptive clipping with five different quantiles. For each quantile, we show the best model after tuning over the five server learning rates mentioned above on the validation set. On three tasks (CIFAR-100, EMNIST-AE, SO-NWP), clipping improves performance relative to the unclipped baseline. On SHAKESPEARE and SO-LR performance is slightly worse, but we can conclude that adaptive clipping to the median generally fares well compared to not using clipping across tasks. Note that for our primary goal of training with DP, it is essential to limit the sensitivity one way or another, so the modest decrease in performance observed from clipping on some tasks may be part of the inevitable tension between privacy and utility. ",
595
+ "bbox": [
596
+ 173,
597
+ 458,
598
+ 825,
599
+ 597
600
+ ],
601
+ "page_idx": 6
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "3.2 Fixed-clip baselines ",
606
+ "text_level": 1,
607
+ "bbox": [
608
+ 174,
609
+ 614,
610
+ 348,
611
+ 628
612
+ ],
613
+ "page_idx": 6
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "We would like to compare our adaptive clipping approach to a fixed clipping baseline, but comparing to just one fixed-clip baseline may not be enough to demonstrate that adaptive clipping consistently performs well. Instead, our strategy will be to show that quantile-based adaptive clipping performs as well or nearly as well as any fixed clip chosen in hindsight. If we can first identify clipping norms that span the range of normal values during training on each problem/configuration, we can compare adaptive clipping to fixed clipping with those norms. ",
618
+ "bbox": [
619
+ 174,
620
+ 640,
621
+ 825,
622
+ 723
623
+ ],
624
+ "page_idx": 6
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "To that end, we first use adaptive clipping without noise to discover the value of the update norm distribution at the following five quantiles: $\\{ 0 . 1 , 0 . 3 , 0 . 5 , 0 . 7 , 0 . 9 \\}$ . Then we choose as the minimum of our fixed clipping range the smallest value at the 0.1 quantile over the course of training, and as the maximum the largest value at the 0.9 quantile. Plots of the update norms during training on each of the tasks are shown in Figure 4. ",
629
+ "bbox": [
630
+ 174,
631
+ 729,
632
+ 825,
633
+ 799
634
+ ],
635
+ "page_idx": 6
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "On each task there is a ramp up period where the clipping norm, initialized to 0.1 for all tasks, catches up to the correct norm distribution. Thus we disregard norm values collected until the actual fraction of clipped counts ${ \\bar { b } } ^ { t }$ on some round is within 0.05 of the target quantile $\\gamma$ . The chosen values for the minimum and maximum fixed clips for each task are shown in Table 1 (right). Our fixed-clipping baseline uses five fixed clipping norms logarithmically spaced in that range. Here we are taking advantage of having already run adaptive clipping to minimize the number of fixed clip settings we need to explore for each task. If we had to explore over the entire range knowing only the endpoints across all tasks (0.22, 135.0) at the same resolution, we would need nearly four times as many clip values per task. ",
640
+ "bbox": [
641
+ 176,
642
+ 805,
643
+ 820,
644
+ 847
645
+ ],
646
+ "page_idx": 6
647
+ },
648
+ {
649
+ "type": "image",
650
+ "img_path": "images/9e360036a130b659110b98cc143adc5ef96360edab933f3e124db82ccad6d299.jpg",
651
+ "image_caption": [
652
+ "0.10.3 0.10.3 0.10.3Figure 4: Evolution of the adaptive clipping norm at five different quantiles (0.1, 0.3, 0.5, 0.7, 0.9) 0.50.70.9 0.50.70.9 0.70.9on each task with no noise. The norms are estimated using geometric updates with $\\eta _ { C } = 0 . 2$ and an initial value $C ^ { 0 } = 0 . 1$ . With the possible exception of SO-LR, the estimated quantiles appear to closely track an evolving update norm distribution. Note that each task has a unique shape to its update norm evolution, which further motivates an adaptive approach. "
653
+ ],
654
+ "image_footnote": [],
655
+ "bbox": [
656
+ 176,
657
+ 87,
658
+ 823,
659
+ 354
660
+ ],
661
+ "page_idx": 7
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "",
666
+ "bbox": [
667
+ 174,
668
+ 463,
669
+ 825,
670
+ 546
671
+ ],
672
+ "page_idx": 7
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "For each value of noise multiplier $z \\in \\{ 0 , 0 . 0 1 , 0 . 0 3 , 0 . 1 \\}$ we trained using the five fixed clipping norms and compare to adaptive clipping with the five quantiles (0.1, 0.3, 0.5, 0.7, 0.9). Note that for the fixed clipping runs $z _ { \\Delta } = z$ ; that is, for fixed clip $C$ , the noise applied to the the updates has standard deviation $z C$ . As discussed in section 2.1, on the adaptive clipping runs $z _ { \\Delta }$ is slightly higher due to the need to account for privacy when estimating the clipped counts. ",
677
+ "bbox": [
678
+ 174,
679
+ 551,
680
+ 825,
681
+ 622
682
+ ],
683
+ "page_idx": 7
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "3.3 Comparison of fixed and adaptive clipping ",
688
+ "text_level": 1,
689
+ "bbox": [
690
+ 174,
691
+ 642,
692
+ 509,
693
+ 657
694
+ ],
695
+ "page_idx": 7
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "Validation set results with adaptive clipping are shown in Figure 5 and with fixed clipping in Figure 6. These charts show that we have identified the noise regime in which performance is beginning to degrade. There is always a tension between privacy and utility: as the amount of noise increases, eventually performance will go down. For the purpose of this study we consider more than a $5 \\%$ relative reduction in evaluation metric to be unacceptable. Therefore for each task, we look at the level of noise $z ^ { * }$ at which the evaluation metric on the validation set is still within $5 \\%$ of the value with no noise, but adding more noise would degrade performance beyond $5 \\%$ . Given $z ^ { * }$ for each task, we then choose $C ^ { * }$ to be the fixed clip value that gives best performance on the validation set. The values of $z ^ { * }$ and $C ^ { * }$ are shown in Figure 7 (left). ",
700
+ "bbox": [
701
+ 173,
702
+ 669,
703
+ 826,
704
+ 794
705
+ ],
706
+ "page_idx": 7
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "For our final test set evaluation, we compare adaptive clipping to the median to fixed clipping at $C ^ { * }$ . The results are in Figure 7 (right). We show the average test set performance and bootstrapped $9 5 \\%$ confidence interval over 20 runs varying the random seed used for client selection and DP noise. On three of the tasks (CIFAR-100, EMNIST-AE, SHAKESPEARE), clipping to the median actually outperforms fixed clipping to the best fixed clip chosen in hindsight, and on two more (EMNIST-CR, SO-NWP), the performance is comparable. Only on SO-LR the best fixed clip does perform somewhat better. This task seems to be unusual in that best performance comes from aggressive clipping, so a small fixed clip fares better than adaptive clipping to the median. However, looking at Figure 6 (and noting the scale of the $y$ axis), on this task more than the others, getting the exact right fixed clip is important. The development set recall $\\textcircled { \\alpha } 5$ value of 55.1 corresponds to the optimal fixed clip of 16.0. The next larger fixed clip of 27.3 gave a recall of only 51.8, and larger clips fared even worse. So an expensive hyperparameter search may be necessary to even get close to this high-performing fixed clip value. ",
711
+ "bbox": [
712
+ 174,
713
+ 800,
714
+ 825,
715
+ 911
716
+ ],
717
+ "page_idx": 7
718
+ },
719
+ {
720
+ "type": "image",
721
+ "img_path": "images/53e99813dd6e47f2ef8cdf8e52ff20869a841ff40598f9094b77d1d1af5cf8f4.jpg",
722
+ "image_caption": [
723
+ "Figure 5: Evaluation metric performance of adaptive clipping with five settings of $\\gamma$ for each of four effective noise multipliers $z$ . Note that the $y$ -axes have been compressed to show small differences, and that for EMNIST-AE lower values are better. "
724
+ ],
725
+ "image_footnote": [],
726
+ "bbox": [
727
+ 178,
728
+ 93,
729
+ 821,
730
+ 287
731
+ ],
732
+ "page_idx": 8
733
+ },
734
+ {
735
+ "type": "image",
736
+ "img_path": "images/66d05bcbf3595cea6fcd34c16e335ce974eff59db6a7ecca7d82b928cda32070.jpg",
737
+ "image_caption": [
738
+ "Figure 6: Evaluation metric performance of fixed clipping with five settings of $C$ for each of four noise multipliers $z$ . Note that the $y \\cdot$ -axes have been compressed to show small differences, and that for EMNIST-AE lower values are better. "
739
+ ],
740
+ "image_footnote": [],
741
+ "bbox": [
742
+ 178,
743
+ 362,
744
+ 821,
745
+ 558
746
+ ],
747
+ "page_idx": 8
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "",
752
+ "bbox": [
753
+ 174,
754
+ 641,
755
+ 825,
756
+ 710
757
+ ],
758
+ "page_idx": 8
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "4 Conclusions and implications for practice ",
763
+ "text_level": 1,
764
+ "bbox": [
765
+ 174,
766
+ 733,
767
+ 550,
768
+ 751
769
+ ],
770
+ "page_idx": 8
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "In our experiments, we started with a high-performing non-private baseline with optimized client and server learning rates. We then searched over a small grid of larger server learning rates for our experiments with clipping (adaptive or fixed). This is one way to proceed in practice, if such non-private baseline results are available. More often, such baseline learning rates are not available, which will necessitate a search over client learning rates as well. In that case, it would be beneficial to enable adaptive clipping to the median during that hyperparameter search. The advantage of clipping relative to the unclipped baseline observed on some tasks could only increase if the other hyperparameters such as client learning rate were also chosen conditioned on the presence of clipping. ",
775
+ "bbox": [
776
+ 174,
777
+ 765,
778
+ 825,
779
+ 877
780
+ ],
781
+ "page_idx": 8
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "Although the experiments indicate that adaptive clipping to the median yields generally good results, on some problems (like SO-LR in our study) there may be gains from tuning the target quantile. It would require adding another dimension to the hyperparameter grid, exponentially increasing the tuning effort, but even this would be preferable to tuning the fixed clipping norm from scratch, since the grid can be smaller: we obtained good results on all problems by exploring only five quantiles, but the update norms in the experiments range over four orders of magnitude, from 0.22 to 135. ",
786
+ "bbox": [
787
+ 174,
788
+ 883,
789
+ 823,
790
+ 911
791
+ ],
792
+ "page_idx": 8
793
+ },
794
+ {
795
+ "type": "image",
796
+ "img_path": "images/68088de0535ad1d84284f11c49d90e30f5aa861d6f22bb4a98037e279246bd40.jpg",
797
+ "image_caption": [
798
+ "Figure 7: Left: for each task, the maximum noise possible before performance begins to significantly degrade $( z ^ { * } )$ , and the best fixed clip $( C ^ { * } )$ chosen on the development set. Right: average test set performance and bootstrapped $9 5 \\%$ confidence interval over 20 runs. In practice, finding the best fixed clipping norm would require substantial additional hyperparameter tuning. "
799
+ ],
800
+ "image_footnote": [],
801
+ "bbox": [
802
+ 181,
803
+ 89,
804
+ 826,
805
+ 215
806
+ ],
807
+ "page_idx": 9
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "",
812
+ "bbox": [
813
+ 173,
814
+ 304,
815
+ 825,
816
+ 359
817
+ ],
818
+ "page_idx": 9
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "Combining our results with the lessons taken from [18] and [24], the following strategy emerges for training a high-performing model with user-level differential privacy. We assume some non-private proxy data is available that may have comparatively few users $n ^ { \\prime }$ , as well as that the true private data has enough users $n$ that the desired level of privacy is achievable. ",
823
+ "bbox": [
824
+ 174,
825
+ 366,
826
+ 825,
827
+ 421
828
+ ],
829
+ "page_idx": 9
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "1. With adaptive clipping to the median enabled, using a relatively small number of clients per round $m \\approx 1 0 0 ^ { \\circ } ,$ ), and a small amount of noise $z = 0 . 0 1$ ), search over client and server learning rates on non-private proxy data. \n2. Fix the client and server learning rates. Using the non-private data and low value of $m$ , train several models increasing the level of noise $z$ until model performance at convergence begins to degrade. \n3. To train the final model on private data, if $( m , z )$ is too small for the desired level of privacy even given $n$ , set $( m , z ) \\alpha \\cdot ( m , z )$ for some $\\alpha > 1$ such that the privacy target $( \\epsilon , \\delta )$ is achieved.5 Finally, train the private model using that value of $m$ and $z$ . ",
834
+ "bbox": [
835
+ 210,
836
+ 433,
837
+ 825,
838
+ 568
839
+ ],
840
+ "page_idx": 9
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "By eliminating the need to tune the fixed clipping norm hyperparameter which interacts significantly with the client and server learning rates, the adaptive clipping method proposed in this work exponentially reduces the work necessary to perform the expensive first step of this procedure. ",
845
+ "bbox": [
846
+ 174,
847
+ 579,
848
+ 823,
849
+ 621
850
+ ],
851
+ "page_idx": 9
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "References ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 174,
859
+ 90,
860
+ 266,
861
+ 106
862
+ ],
863
+ "page_idx": 10
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "[1] Martin Abadi, Andy Chu, Ian Goodfellow, Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In 23rd ACM Conference on Computer and Communications Security (ACM CCS), 2016. \n[2] Martin Abadi, Andy Chu, Ian Goodfellow, H. Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, CCS ’16, pages 308–318, New York, NY, USA, 2016. ACM. ISBN 978-1-4503-4139-4. doi: 10.1145/2976749.2978318. \n[3] Kareem Amin, Alex Kulesza, Andres Munoz, and Sergei Vassilvtiskii. Bounding user contributions: A bias-variance trade-off in differential privacy. In International Conference on Machine Learning, pages 263–271. PMLR, 2019. \n[4] Raef Bassily, Adam Smith, and Abhradeep Thakurta. Private empirical risk minimization: Efficient algorithms and tight error bounds. In Foundations of Computer Science (FOCS), 2014 IEEE 55th Annual Symposium on, pages 464–473. IEEE, 2014. \n[5] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for federated learning on user-held data. arXiv preprint arXiv:1611.04482, 2016. [6] Keith Bonawitz, Fariborz Salehi, Jakub Konecnˇ y, Brendan McMahan, and Marco Gruteser. \\` Federated learning with autotuned communication-efficient secure aggregation. In 2019 53rd Asilomar Conference on Signals, Systems, and Computers, pages 1222–1226. IEEE, 2019. \n[7] Jean-Pierre Briot, Gaëtan Hadjeres, and François-David Pachet. Deep Learning Techniques for Music Generation - A Survey. arXiv e-prints, art. arXiv:1709.01620, Sep 2017. \n[8] Nicholas Carlini, Chang Liu, Jernej Kos, Úlfar Erlingsson, and Dawn Song. The secret sharer: Measuring unintended neural network memorization & extracting secrets. CoRR, abs/1802.08232, 2018. URL http://arxiv.org/abs/1802.08232. \n[9] Kamalika Chaudhuri, Claire Monteleoni, and Anand D Sarwate. Differentially private empirical risk minimization. Journal of Machine Learning Research, 12(Mar):1069–1109, 2011. \n[10] Cynthia Dwork, Krishnaram Kenthapadi, Frank McSherry, Ilya Mironov, and Moni Naor. Our data, ourselves: Privacy via distributed noise generation. In EUROCRYPT, 2006. \n[11] Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography Conference, pages 265–284. Springer, 2006. \n[12] Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22Nd ACM SIGSAC Conference on Computer and Communications Security, CCS ’15, pages 1322–1333, New York, NY, USA, 2015. ACM. ISBN 978-1-4503-3832-5. doi: 10.1145/2810103.2813677. \n[13] K. He, X. Zhang, S. Ren, and J. Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In 2015 IEEE International Conference on Computer Vision (ICCV), pages 1026–1034, Dec 2015. doi: 10.1109/ICCV.2015.123. \n[14] Tzu-Ming Harry Hsu, Hang Qi, and Matthew Brown. Measuring the effects of non-identical data distribution for federated visual classification, 2019. \n[15] Roger Iyengar, Joseph P. Near, Dawn Song, Om Thakkar, Abhradeep Thakurta, and Lun Wang. Towards practical differentially private convex optimization. In S&P 2019, 2019. \n[16] Jakub Konecnˇ y, H Brendan McMahan, Felix X Yu, Peter Richtárik, Ananda Theertha Suresh, \\` and Dave Bacon. Federated learning: Strategies for improving communication efficiency. arXiv preprint arXiv:1610.05492, 2016. ",
868
+ "bbox": [
869
+ 171,
870
+ 94,
871
+ 828,
872
+ 911
873
+ ],
874
+ "page_idx": 10
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "[17] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Agüera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, AISTATS 2017, 20-22 April 2017, Fort Lauderdale, FL, USA, pages 1273–1282, 2017. URL http://proceedings.mlr. press/v54/mcmahan17a.html. ",
879
+ "bbox": [
880
+ 173,
881
+ 90,
882
+ 828,
883
+ 161
884
+ ],
885
+ "page_idx": 11
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "[18] H. Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. Learning differentially private recurrent language models. In ICLR 2018, 2018. ",
890
+ "bbox": [
891
+ 171,
892
+ 169,
893
+ 821,
894
+ 199
895
+ ],
896
+ "page_idx": 11
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "[19] Luca Melis, Congzheng Song, Emiliano De Cristofaro, and Vitaly Shmatikov. Exploiting Unintended Feature Leakage in Collaborative Learning. arXiv e-prints, art. arXiv:1805.04049, May 2018. ",
901
+ "bbox": [
902
+ 174,
903
+ 207,
904
+ 823,
905
+ 250
906
+ ],
907
+ "page_idx": 11
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "[20] Ilya Mironov. Rényi differential privacy. In 2017 IEEE 30th Computer Security Foundations Symposium (CSF), pages 263–275. IEEE, 2017. ",
912
+ "bbox": [
913
+ 173,
914
+ 258,
915
+ 823,
916
+ 287
917
+ ],
918
+ "page_idx": 11
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "[21] Kobbi Nissim, Sofya Raskhodnikova, and Adam Smith. Smooth sensitivity and sampling in private data analysis. In Proceedings of the thirty-ninth annual ACM symposium on Theory of computing, pages 75–84, 2007. ",
923
+ "bbox": [
924
+ 173,
925
+ 296,
926
+ 823,
927
+ 339
928
+ ],
929
+ "page_idx": 11
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "[22] Nicolas Papernot, Martın Abadi, Úlfar Erlingsson, Ian Goodfellow, and Kunal Talwar. Semisupervised knowledge transfer for deep learning from private training data. stat, 1050, 2017. ",
934
+ "bbox": [
935
+ 174,
936
+ 348,
937
+ 825,
938
+ 378
939
+ ],
940
+ "page_idx": 11
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "[23] Nicolas Papernot, Shuang Song, Ilya Mironov, Ananth Raghunathan, Kunal Talwar, and Úlfar Erlingsson. Scalable private learning with pate. arXiv preprint arXiv:1802.08908, 2018. ",
945
+ "bbox": [
946
+ 174,
947
+ 388,
948
+ 826,
949
+ 417
950
+ ],
951
+ "page_idx": 11
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "[24] Sashank Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konecný, ˇ Sanjiv Kumar, and H. Brendan McMahan. Adaptive federated optimization, 2020. ",
956
+ "bbox": [
957
+ 173,
958
+ 426,
959
+ 825,
960
+ 455
961
+ ],
962
+ "page_idx": 11
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "[25] Shai Shalev-Shwartz. Online learning and online convex optimization. Foundations and Trends in Machine Learning, 2012. ",
967
+ "bbox": [
968
+ 171,
969
+ 463,
970
+ 825,
971
+ 492
972
+ ],
973
+ "page_idx": 11
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "[26] R. Shokri, M. Stronati, C. Song, and V. Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pages 3–18, May 2017. doi: 10.1109/SP.2017.41. ",
978
+ "bbox": [
979
+ 174,
980
+ 501,
981
+ 823,
982
+ 544
983
+ ],
984
+ "page_idx": 11
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "[27] C. Szegedy, , , P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–9, June 2015. doi: 10.1109/CVPR.2015.7298594. ",
989
+ "bbox": [
990
+ 173,
991
+ 553,
992
+ 823,
993
+ 595
994
+ ],
995
+ "page_idx": 11
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "[28] Oriol Vinyals, Lukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever, and Geoffrey Hinton. Grammar as a foreign language. In Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 2, NIPS’15, pages 2773–2781, Cambridge, MA, USA, 2015. MIT Press. URL http://dl.acm.org/citation.cfm?id=2969442.2969550. ",
1000
+ "bbox": [
1001
+ 176,
1002
+ 604,
1003
+ 823,
1004
+ 661
1005
+ ],
1006
+ "page_idx": 11
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "[29] Yu-Xiang Wang, Borja Balle, and Shiva Prasad Kasiviswanathan. Subsampled rényi differential privacy and analytical moments accountant. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 1226–1235. PMLR, 2019. ",
1011
+ "bbox": [
1012
+ 171,
1013
+ 669,
1014
+ 821,
1015
+ 712
1016
+ ],
1017
+ "page_idx": 11
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "[30] X. Wu, M. Fredrikson, S. Jha, and J. F. Naughton. A methodology for formalizing modelinversion attacks. In 2016 IEEE 29th Computer Security Foundations Symposium (CSF), pages 355–370, June 2016. doi: 10.1109/CSF.2016.32. ",
1022
+ "bbox": [
1023
+ 171,
1024
+ 720,
1025
+ 821,
1026
+ 763
1027
+ ],
1028
+ "page_idx": 11
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "[31] Xi Wu, Fengan Li, Arun Kumar, Kamalika Chaudhuri, Somesh Jha, and Jeffrey Naughton. Bolton differential privacy for scalable stochastic gradient descent-based analytics. In Proceedings of the 2017 ACM International Conference on Management of Data, SIGMOD ’17, pages 1307–1322, New York, NY, USA, 2017. ACM. ISBN 978-1-4503-4197-4. doi: 10.1145/ 3035918.3064047. ",
1033
+ "bbox": [
1034
+ 173,
1035
+ 772,
1036
+ 826,
1037
+ 842
1038
+ ],
1039
+ "page_idx": 11
1040
+ }
1041
+ ]
parse/train/RUQ1zwZR8_/RUQ1zwZR8__middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/RUQ1zwZR8_/RUQ1zwZR8__model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJeHwJSYvH/SJeHwJSYvH.md ADDED
@@ -0,0 +1,372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING DE-BIASED REPRESENTATIONS WITH BIASED REPRESENTATIONS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Many machine learning algorithms are trained and evaluated by splitting data from a single source into training and test sets. While such focus on in-distribution learning scenarios has led interesting advances, it has not been able to tell if models are relying on dataset biases as shortcuts for successful prediction (e.g., using snow cues for recognising snowmobiles). Such biased models fail to generalise when the bias shifts to a different class. The cross-bias generalisation problem has been addressed by de-biasing training data through augmentation or re-sampling, which are often prohibitive due to the data collection cost (e.g., collecting images of a snowmobile on a desert) and the difficulty of quantifying or expressing biases in the first place. In this work, we propose a novel framework to train a de-biased representation by encouraging it to be different from a set of representations that are biased by design. This tactic is feasible in many scenarios where it is much easier to define a set of biased representations than to define and quantify bias. Our experiments and analyses show that our method discourages models from taking bias shortcuts, resulting in improved performances on de-biased test data.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Most machine learning algorithms are trained and evaluated by randomly splitting a single source of data into training and test sets. Although this is a standard protocol, it is blind to a critical problem: the existence of dataset bias (Torralba & Efros, 2011). For instance, many frog images are taken in swamp scenes, but swamp itself is not a frog. Nonetheless, a neural network will exploit this bias (i.e., take “shortcuts”) if it yields correct predictions for the majority of training examples. If bias is sufficient to achieve high accuracy, there is little motivation for models to learn the complexity of the intended task, despite its full capacity to do so. Consequently, a model that relies on bias will achieve high in-distribution accuracy, yet fail to generalise when the bias shifts.
12
+
13
+ We tackle this “cross-bias generalisation” problem where a model does not exploit its full capacity due to the “sufficiency” of bias cues for prediction of the target label in training data. For example, language models make predictions based on the presence of certain words (e.g., “not” for “contradiction”) (Gururangan et al., 2018) without much reasoning on the actual meaning of sentences, even if they are in principle capable of sophisticated reasoning. Similarly, convolutional neural networks (CNNs) achieve high accuracies on image classification by using local texture cues as shortcut, as opposed to more reliable global shape cues (Geirhos et al., 2019; Brendel & Bethge, 2019).
14
+
15
+ Existing methods attempt to remove a model’s dependency on bias by de-biasing the training data through data augmentation (Geirhos et al., 2019) or re-sampling tactics (Li & Vasconcelos, 2019). Others have introduced a pre-defined set of biases that a model is trained to be independent against (Wang et al., 2019). These prior works assume that bias can easily be defined or quantified, but real-world biases often do not (e.g., texture bias above).
16
+
17
+ To address this limitation, we propose a novel framework to train a de-biased representation by encouraging it to be “different” from a set of representations that are biased by design. Our insight is that biased representations can easily be obtained by utilising models of smaller capacity (e.g., bag of words for word bias and CNNs of small receptive fields for texture bias). Experiments show that our method is effective in reducing a model’s dependency on “shortcuts” in training data, as evidenced by improved accuracies in test data where the bias is either shifted or removed.
18
+
19
+ ![](images/8375729b067b4a597293f825730a5eed14703c3a1ca1e8f5c1f3af18e153d79b.jpg)
20
+ Figure 1: Learning scenarios. Different distributional gaps may take place between training and test distributions. Our work is addressing the cross-bias generalisation problem. Background colours on the right three figures indicate the decision boundaries of models trained on given training data.
21
+
22
+ # 2 PROBLEM DEFINITION
23
+
24
+ We provide a rigorous definition of our over-arching goal: overcoming the bias in models trained on biased data. We show that the problem we tackle is novel and realistic.
25
+
26
+ # 2.1 CROSS-BIAS GENERALISATION
27
+
28
+ We first define random variables, signal $S$ and bias $B$ as cues for the recognition of an input $X$ as certain target variable $Y$ . Signals $S$ are the cues essential for the recognition of $X$ as $Y$ ; examples include the shape and skin patterns of frogs for frog image classification. Biases $B$ ’s, on the other hand, are cues not essential for the recognition but correlated with the target $Y$ ; many frog images are taken in swamp scenes, so swamp scenes can be considered as $B$ . A key property of $B$ is that intervening on $B$ should not change $Y$ ; moving a frog from swamp to a dessert scene does not change the “frogness”. We assume that the true predictive distribution $p ( Y | X )$ factorises as $\hat { \int _ { } p ( Y | S , B ) p ( S , B | \bar { X } ) }$ , signifying the sufficiency of $p ( S , B | X )$ for recognition.
29
+
30
+ Under this framework, three learning scenarios are identified depending on the change of relationship $p ( S , B , Y )$ across training and test distributions, $p ( S ^ { \mathrm { t r } } , B ^ { \mathrm { t r } } , Y ^ { \mathrm { t r } } )$ and $p ( S ^ { \mathrm { t e } } , B ^ { \mathrm { t e } } , Y ^ { \mathrm { t e } } )$ , respectively: in-distribution, cross-domain, and cross-bias generalisation. See Figure 1 for a summary.
31
+
32
+ In-distribution. $p ( S ^ { \mathrm { t r } } , B ^ { \mathrm { t r } } , Y ^ { \mathrm { t r } } ) = p ( S ^ { \mathrm { t e } } , B ^ { \mathrm { t e } } , Y ^ { \mathrm { t e } } )$ . This is the standard learning setup utilised in many benchmarks by splitting data from a single source into training and test data at random.
33
+
34
+ Cross-domain. $p ( S ^ { \mathrm { t r } } , B ^ { \mathrm { t r } } , Y ^ { \mathrm { t r } } ) \neq p ( S ^ { \mathrm { t e } } , B ^ { \mathrm { t e } } , Y ^ { \mathrm { t e } } )$ and furthermore $p ( B ^ { \mathrm { t r } } ) \neq p ( B ^ { \mathrm { t e } } )$ . $B$ in this case is often referred to as “domain”. For example, training data consist of images with $Y ^ { \mathrm { t r } } { = } \mathrm { f r o g }$ , $B ^ { \mathrm { t r } } =$ wilderness) and $Y ^ { \mathrm { t r } } { = } \mathrm { b i r d }$ , $B ^ { \mathrm { t r } } =$ wilderness), while test data contain $Y ^ { \mathrm { t e } } =$ frog, $B ^ { \mathrm { t e } }$ =indoors) and $Y ^ { \mathrm { t e } } { = }$ bird, $B ^ { \mathrm { t e } }$ =indoors). This scenario is typically simulated by training and testing on different datasets (Ben-David et al., 2007).
35
+
36
+ Cross-bias. $p ( B ^ { \mathrm { t r } } ) \not \equiv p ( Y ^ { \mathrm { t r } } ) ^ { 1 }$ and the dependency changes across training and test distributions: $p ( B ^ { \mathrm { t r } } , Y ^ { \mathrm { t r } } ) \ \ne \ p ( B ^ { \mathrm { t e } } , Y ^ { \mathrm { t e } } )$ . We further assume that $p ( B ^ { \mathrm { { \bar { t } } } } ) ~ = ~ p ( B ^ { \mathrm { { t e } } } )$ , to clearly distinguish the scenario from the cross-domain generalisation. For example, training data only contain images of two types $Y ^ { \mathrm { t r } } { = } \mathrm { f r o g }$ , $B ^ { \mathrm { t r } } { = } \mathrm { s w a m p }$ ) and $Y ^ { \mathrm { t r } } { = } \mathrm { b i r d }$ , $B ^ { \mathrm { t r } } { = } \mathrm { s k y } ,$ ), but test data contain unusual class-bias combinations $Y ^ { \mathrm { t e } } =$ frog, $B ^ { \mathrm { t e } } { = } \mathrm { s k y }$ ) and ( $Y ^ { \mathrm { t e } } { = }$ bird, $B ^ { \mathrm { t e } } { = } \mathrm { s w a m p }$ ). Our work addresses this scenario.
37
+
38
+ # 2.2 EXISTING CROSS-BIAS GENERALISATION METHODS AND THEIR ASSUMPTIONS
39
+
40
+ Under cross-bias generalisation scenarios, the dependency $p ( B ^ { \mathrm { t r } } )$ 6⊥⊥ $p ( Y ^ { \mathrm { t r } } )$ makes bias $B$ a viable cue for recognition. The model trained on such data becomes susceptible to interventions on $B$ , limiting its generalisabililty when the bias is changed or removed in the test data. There exist prior approaches to this problem, but with different types and amounts of assumptions on $B$ . We briefly recap the approaches based on the assumptions they require. In the next part $\ S 2 . 3$ , we will define our novel problem setting that requires an assumption distinct from the ones in prior approaches.
41
+
42
+ When an algorithm to disentangle bias $B$ and signal $S$ exists. Being able to disentangle $B$ and $S$ lets one collapse the feature space corresponding to $B$ in both training and test data. A model trained on such normalised data then becomes free of biases. As ideal as it is, building a model to perfectly disentangle $B$ and $S$ is often unrealistic.
43
+
44
+ When a generative algorithm or data collection procedure for $p ( X | B )$ exists. When additional examples can be supplied through $p ( X | B )$ , the training dataset itself can be de-biased, i.e., $B \perp \perp Y$ . For example, one can either collect or synthesise unusual images like frogs in sky and birds in swamp to balance out the bias. Such a data augmentation strategy is indeed a valid solution adopted by many prior studies (Panda et al., 2018; Geirhos et al., 2019; Shetty et al., 2019). However, collecting unusual inputs can be expensive (Peyre et al., 2017), and building a generative model with pre-defined bias types (Geirhos et al., 2019) may suffer from bias mis-specification and the lack of realism.
45
+
46
+ When a predictive algorithm or ground truth for $p ( B | X )$ exists. Conversely, when one can tell the bias $B$ for every input $X$ , two approaches are feasible. (1) The first is a data re-weighting solution: we give greater weights on frogs in sky than frogs in swamps to even out the correlation in $p ( B , Y )$ (Li et al., 2018; Li & Vasconcelos, 2019). (2) The second approach removes the dependency between the model predictions $f ( X )$ and the bias $B$ . Many existing approaches for fairness in machine learning have proposed independence-based regularisers to encourage $f ( X ) \ \bot \bot B$ (Zemel et al., 2013) or the conditional independence $f ( X ) \ \bot \bot \ B \mid Y$ (called the “separation” constraint, Hardt et al. (2016)). Other approaches have proposed to remove predictability of $p ( B | X )$ based on $f ( X )$ through domain adversarial losses (Li & Vasconcelos, 2019; Wang et al., 2019) or projection (Wang et al., 2019; Quadrianto et al., 2019).
47
+
48
+ The knowledge on $p ( B | X )$ is provided in many realistic scenarios. For example, when the aim is to remove gender biases $B$ in a job application process $p ( Y | X )$ , applicants’ genders $p ( B | X )$ are supplied as ground truths. However, there exist cases when $B$ is difficult to even be defined or quantified but can only be indirectly specified. We tackle such a scenario in the next part.
49
+
50
+ # 2.3 OUR SCENARIO: CAPTURING BIAS WITH A PARTICULAR SET OF MODELS
51
+
52
+ Under the cross-bias generalisation scenario, certain types of biases are not easily addressed by the above methods. Take texture bias as an example (§1, Geirhos et al. (2019)): (1) texture $B$ and shape $S$ cannot easily be disentangled, (2) building a generative model $p ( X | B )$ or collecting unusual images is expensive, (3) building the predictive model $p ( B | X )$ for texture requires enumeration (classifier) or embedding (regression) of all possible textures, which is not feasible.
53
+
54
+ However, slightly modifying the third assumption results in a problem setting that allows interesting application scenarios. Instead of assuming explicit knowledge on $p ( B | X )$ , we approximate $B$ by defining a set of models $G$ that are biased towards $B$ by design. For texture biases, for example, we define $G$ to be the set of convolutional neural network (CNN) architectures with $\leq 5 \times 5$ overall receptive fields. Then, any learned model $g \in G$ can by design make predictions $g ( x )$ based on the patterns that can only be captured with small receptive fields (i.e., textures).
55
+
56
+ More precisely, we define $G$ to be a bias-characterising model class for the bias-signal pair $( B , S )$ if for every possible joint distribution $p ( B , X )$ there exists a $g \in G$ such that $p ( B | X ) \approx g ( X )$ (recall condition) and every $g \in G$ satisfies $g ( X ) \perp \perp S \mid B$ (precision condition). In practice, $G$ may not necessarily include all biases and may also capture important signals (i.e., imperfect recall and precision). With this in mind, our framework is formulated so that $f ( X )$ does not ignore signals captured by $G - \mathrm { w e }$ do not require $\mathbf { G }$ to be perfect. Further detail is provided in $\ S 2 . 3$ .
57
+
58
+ There exist many scenarios when such $G$ can be defined, as we are given several evidence for the type of bias. For instance, action recognition models have been reported to rely heavily on static cues without learning temporal cues (Li et al., 2018; Li & Vasconcelos, 2019); though the actual bias may not precisely be any static cue, we can still regularise the 3D convolutional networks towards better generalisation across static cue biases by defining $\mathbf { G }$ to be the set of 2D convolutional architectures. It has been argued that visual question answering (VQA) models, too, rely overly on language biases rather than the visual cues (e.g. without looking at the image, one knows the answer to what colour is the banana is yellow) (Agrawal et al., 2018). We can define G as the set of models looking at the language modality only. Entailment models are biased towards the presence of certain words (e.g. when there are many nots, the sentence is contradictory), rather than really understanding the underlying meaning of sentences (McCoy et al., 2019; Niven & Kao, 2019). We can design G to be the set of bag-of-words classifiers (He et al., 2019; Clark et al., 2019). Generally, these scenarios exemplify situations when the added architectural capacity is not fully utilised due to the sufficiency of simpler cues for solving the task in the given training set.
59
+
60
+ # 3 PROPOSED METHOD
61
+
62
+ We present a solution for the cross-bias generalisation when the bias-characterising model class $G$ is known (see $\ S 2 . 3 )$ ; the method is referred to as $\mathrm { R E B I ^ { \prime } } \mathrm { S } ^ { 2 }$ . The solution consists of training a model $f$ for the task $p ( Y | X )$ with a regularisation term encouraging the independence between the prediction $f ( X )$ and the set of all possible biased predictions $\{ g ( X ) \mid g \in G \}$ . We will introduce the precise definition of the regularisation term and discuss why and how it leads to the unbiased model.
63
+
64
+ # 3.1 REBI’S: REMOVING BIAS WITH BIAS
65
+
66
+ If $p ( B | X )$ is fully known, we can directly encourage $f ( X ) \ \bot \bot B$ . Since we only have access to the set of biased models $G$ (§2.3), we seek to promote $f ( X ) \perp \perp g ( X )$ for every $g \in G$ . Simply put, we de-bias a representation $f \in F$ by designing a set of biased models $G$ and letting $f$ run away from $G$ . This leads to the independence from bias cues $B$ while leaving signal cues $S$ as valid recognition cues; see $\ S 2 . 3$ . We will specify REBI $^ \prime \mathrm { ~ S ~ }$ learning objective after introducing our independence criterion, HSIC.
67
+
68
+ Hilbert-Schmidt Independence Criterion (HSIC). Since we need to measure degree of independence between continuous random variables $f ( X )$ and $g ( X )$ in high dimensional spaces, it is infeasrando o resoiables $U$ to hiand $V$ gram-basedand kernels $k$ easuand $l$ es; we use HSIC (G, HSIC is defined as $\mathrm { H S I C } ^ { k , l } ( U , V ) : = | | C _ { U V } ^ { k , l } | | _ { \mathrm { H S } } ^ { 2 }$ $C ^ { k , l }$ $k$ and $l$ (Gretton et al., 2005), an RKHS analogue of covariance matrices. $| | \cdot | | _ { \mathrm { H S } }$ is the HilbertSchmidt norm, a Hilbert-space analogue of the Frobenius norm. It is known that for two random variables $U$ and $V$ and radial basis function (RBF) kernels $k$ and $l$ , $\mathrm { H S I C } ^ { k , l } ( U , V ) = 0$ if and only if $U \perp \perp V$ . A finite-sample estimate $\mathrm { H S I C } _ { 0 } ^ { k , l } ( U , V )$ has been used in practice for statistical testing (Gretton et al., 2005; 2008), feature similarity measurement (Kornblith et al., 2019), and model regularisation (Quadrianto et al., 2019; Zhang et al., 2018). $\mathrm { H S I C } _ { 0 } ^ { k , l } ( U , V )$ with $m$ samples is defined as $( m - 1 ) ^ { - 2 } \mathrm { t r } ( \widetilde { U } \widetilde { V } ^ { T } )$ where $\widetilde { U }$ is a mean-subtracted matrix of pairwise kernel similarities $\begin{array} { r } { \widetilde { U } _ { i j } = k ( u _ { i } , u _ { j } ) - m ^ { - 1 } \sum _ { j ^ { \prime } } k ( u _ { i } , u _ { j ^ { \prime } } ) } \end{array}$ among samples $\{ u _ { i } \} \sim U$ . $\widetilde { V }$ is defined similarly.
69
+
70
+ Minimax optimisation for bias removal. In our case, we compute
71
+
72
+ $$
73
+ \mathrm { H S I C } _ { 0 } ^ { k } ( f ( X ) , G ( X ) ) : = \operatorname* { m a x } _ { g \in G } \mathrm { H S I C } _ { 0 } ^ { k } ( f ( X ) , g ( X ) )
74
+ $$
75
+
76
+ with an RBF kernel $k$ for the degree of independence between representation $f \in F$ and the biased representations $G$ . We write $\mathrm { H S I C } _ { 0 } ( f , \mathbf { \bar { G } } )$ and $\mathrm { H S I C } _ { 0 } ( f , g )$ as shorthands. Since the problem $\operatorname* { m i n } _ { f }$ $\mathrm { H S I C } _ { 0 } ( f , G )$ allows trivial solutions $f =$ const, we use the canonical kernel alignment (CKA) (Shawe-Taylor $\&$ Cristianini, 2004; Kornblith et al., 2019) criterion defined by $\Gamma \mathrm { K A } _ { 0 } ( f , g ) = \mathrm { H S I C } _ { 0 } ( f , g ) / ( \mathrm { H S I C } _ { 0 } ( f , f ) ^ { \frac { 1 } { 2 } } \mathrm { H S I C } _ { 0 } ( g , g ) ^ { \frac { 1 } { 2 } } )$ . The learning objective for $f$ is then defined as
77
+
78
+ $$
79
+ \operatorname* { m i n } _ { f \in F } \left\{ { \mathcal { L } } ( f , X , Y ) + \lambda \operatorname* { m a x } _ { g \in G } { \bf C } { \bf K } { \bf A } _ { 0 } ( f , g ) \right\} ,
80
+ $$
81
+
82
+ where $\mathcal { L } ( f , X , Y )$ is the loss for the main task $p ( Y | X )$ and $\lambda > 0$ . We consider replacing the inner optimisation with $L _ { 2 }$ minimisation $\textstyle \operatorname* { m i n } _ { g \in G } ~ | | f - g | | _ { 2 }$ , while retaining the CKA regularisation for the outer optimisation for $f$ . Intuitively, $L _ { 2 }$ minimisation poses a stronger similarity condition between $f$ and $g$ (in fact identity) than does $C K A$ , leading to better de-biasing performances (§4.2.3).
83
+
84
+ Independence versus separation. The CKA regularisation in equation 2 encourages $f ( X ) ~ \bot$ $\perp \ g ( X )$ . This may lead to less stable optimisation as removing bias often increases the main task loss $\mathcal { L }$ . Furthermore, $g ( X )$ may also capture signals along with bias (imperfect precision), and suppressing important signals is not desirable. To avoid such cases, we formulate our objective as conditional independence $f ( X ) \perp \perp g ( X ) \mid Y$ by computing the separation CKA, $\begin{array} { r } { \mathrm { S C K A } _ { 0 } ( f , g ) \ : = \ : | \mathcal { V } | ^ { - 1 } \sum _ { y \in \mathcal { V } } \mathrm { \ C K A } _ { 0 } ( f ( X | Y = y ) , g ( X | Y = y ) ) } \end{array}$ , where the term “separation” (or “equalised odds”) comes from the fairness literature (Hardt et al., 2016). Unlike independence that requires $f ( X )$ to ignore $g ( X )$ altogether, conditional independence allows $f ( X )$ to utilise cues captured by $g ( X )$ (i.e., whether it is bias or signal) if it highly correlates with ${ \mathrm { Y } } .$ In other words, $\mathbb { R E B I ^ { \prime } S }$ encourages $f ( X )$ to learn features beyond those already captured by $g ( X )$ , so that it can generalise well to test sets with different biases (i.e., cross-bias generalisation).
85
+
86
+ The final learning objective for REBI $^ \prime \mathrm { ~ S ~ }$ is then
87
+
88
+ $$
89
+ \operatorname* { m i n } _ { f \in { \cal F } } \left\{ { \mathcal { L } } ( f , X , Y ) + \lambda \operatorname* { m a x } _ { g \in { \cal G } } { \mathrm { S C K A } } _ { 0 } ( f , g ) \right\} .
90
+ $$
91
+
92
+ # 3.2 WHY AND HOW DOES IT WORK?
93
+
94
+ Independence describes relationships between random variables, but we use it for function pairs. Which functional relationship does statistical independence translate to? In this part, we argue with proofs and observations that the answer to the above question is the dissimilarity of invariance types learned by a pair of models.
95
+
96
+ Linear case: Equivalence between independence and orthogonality. We study the set of function pairs $( f , g )$ satisfying $f ( X ) \perp \perp g ( { \bar { X } } )$ for suitable random variable $X \sim p ( X )$ . Assuming linearity of involved functions and the normality of $X$ , we obtain the equivalence between statistical independence and functional orthogonality.
97
+
98
+ Lemma 1. Assume that $f$ and $g$ are affine mappings $f ( x ) = A x + a$ and $g ( x ) = B x + b$ where $A \in \mathbb { R } ^ { m \times n }$ and $B \in \mathbb { R } ^ { l \times n }$ . Assume further that $X$ is a normal distribution with mean $\mu$ and covariance matrix $\Sigma$ . Then, $f ( X )$ ⊥⊥ $g ( X )$ if and only if $\ker ( A ) ^ { \perp } \perp _ { \Sigma } \ker ( B ) ^ { \perp }$ . For a positive semi-definite matrix $\Sigma$ , we define $\langle r , s \rangle _ { \Sigma } = \langle r , { \Sigma } s \rangle$ , and the set orthogonality $\perp _ { \Sigma }$ likewise. Proof in $\ S \mathbf { A }$ .
99
+
100
+ In particular, when $f$ and $g$ have 1-dimensional outputs, the independence condition is translated to the orthogonality of their weight vectors and decision boundaries. From a machine learning point of view, $f$ and $g$ are models with orthogonal invariance types.
101
+
102
+ Non-linear case: HSIC as a metric learning objective. We lack theories to fully characterise general, possibly non-linear, function pairs $( f , g )$ achieving $f ( X ) \perp \perp g ( X )$ ; it is an interesting open question. For now, we make a set of observations in this general case, using the finite-sample independence criterion $\mathrm { H S I C } _ { 0 } ( f , g ) : = ( m - 1 ) ^ { - 2 } \mathrm { t r } ( \widetilde { f } \widetilde { g } ^ { T } ) \stackrel { } { = } 0$ , where $\widetilde { f }$ is the mean-subtracted kernel matrix $\begin{array} { r } { \widetilde { f } _ { i j } = k ( f ( x _ { i } ) , f ( x _ { j } ) ) - m ^ { - 1 } \sum _ { k } k ( f ( x _ { i } ) , f ( x _ { k } ) ) } \end{array}$ and likewise for $\widetilde g$ (see $\ S 3 . 1 \rrangle$ .
103
+
104
+ Note that $\operatorname { t r } ( \widetilde { f } \ \widetilde { g } ^ { T } )$ is an inner product between flattened matrices $\widetilde { f }$ and $\widetilde g$ . We consider the inner eproduct minimising solution for $f$ on an input pair $x _ { 0 } \neq x _ { 1 }$ egiven a fixed $g$ . The problem can be written as $\begin{array} { r } { \operatorname* { m i n } _ { f ( x _ { 0 } ) , f ( x _ { 1 } ) } \ \mathrm { t r } ( \widetilde { f } \widetilde { g } ^ { T } ) } \end{array}$ , which is equivalent to $\begin{array} { r } { \operatorname* { m i n } _ { f ( x _ { 0 } ) , f ( x _ { 1 } ) } \ \widetilde { f } _ { 0 1 } \cdot \widetilde { g } _ { 1 0 } } \end{array}$ .
105
+
106
+ Suppose $\widetilde { g } _ { 1 0 } ~ > ~ 0$ . It indicates a relative invariance of $g$ on $( x _ { 1 } , x _ { 0 } )$ , since $k ( g ( x _ { 1 } ) , g ( x _ { 0 } ) ) \ >$ $\begin{array} { r } { m ^ { - 1 } \sum _ { i } k ( g ( x _ { 1 } ) , g ( x _ { i } ) ) } \end{array}$ . Then, the above problem boils down to $\mathrm { m i n } _ { f ( x _ { 0 } ) , f ( x _ { 1 } ) } \stackrel { \triangledown } { f _ { 0 1 } }$ , signifying the relative variance of $f$ on $( x _ { 0 } , x _ { 1 } )$ . Following a similar argument, we obtain the converse statement: if $g$ is relatively variant on a pair of inputs, invariance of $f$ on the pair minimises the objective.
107
+
108
+ We conclude that $\operatorname* { m i n } _ { f }$ $\mathrm { H S I C } _ { 0 } ( f , g )$ against a fixed $g$ is a metric-learning objective for the embedding $f$ , where ground truth pairwise matches and mismatches are relative mismatches and matches for $g$ , respectively. As a result, $f$ and $g$ learn different sorts of invariances.
109
+
110
+ Effect of HSIC regularisation on toy data. We have established that HSIC regularisation encourages the difference in model invariances. To see how it helps to de-bias a model, we have prepared synthetic two-dimensional training data following the cross-domain generalisation case in Figure 1: $\dot { \boldsymbol X } = ( B , S ) \in \mathbb { R } ^ { 2 }$ and $Y \in$ {red, yellow, green}. Since the training data is perfectly biased, a multi-layer perceptron (MLP) trained on the data only shows $5 5 \%$ accuracy on de-biased test data (see decision boundary figure in Appendix $\ S \mathbf { B }$ ). To overcome the bias, we have trained another MLP with equation 3 where the bias-characterising class $G$ is defined as the set of MLPs that take only the bias dimension as input. This model exhibits de-biased decision boundaries (Appendix $\ S \mathbf { B }$ ) with improved accuracy of $89 \%$ on the de-biased test data.
111
+
112
+ # 4 EXPERIMENTS
113
+
114
+ In the previous section, REBI $^ \prime \mathrm { ~ S ~ }$ has been introduced and theoretically justified. In this section, we present experimental results of REBI’S. We first introduce the setup, including the biases tackled in the experiments, difficulties inherent to the cross-bias evaluation, and the implementation details (§4.1). Results on Biased MNIST (§4.2) and ImageNet (§4.3) are shown afterwards.
115
+
116
+ # 4.1 EXPERIMENTAL SETUP
117
+
118
+ Which biases do we tackle? There is a broad spectrum of bias types to be addressed under the cross-bias generalisation setting. Our work is targeting the biases that arise due to the existence of shortcut cues that are sufficient for recognition in training data. In the experiments, we tackle a representative bias of such type: “local pattern” biases for image classification. Even if a CNN image classifier has wide receptive fields, empirical evidence indicates that they heavily rely on local patterns (i.e., color and texture) as opposed to global shape cues (Geirhos et al., 2019).
119
+
120
+ While it is difficult to precisely define and quantify all local pattern biases, it is easy to capture it through a class of CNN architectures: those with smaller receptive fields. This is precisely the setting where we benefit from REBI’S.
121
+
122
+ Evaluating cross-bias generalisation is difficult. To measure the performance of a model across real-world biases, one requires an unbiased dataset or one where the types and degrees of biases can be controlled. Unfortunately, data in real world arise with biases. To de-bias a frog and bird image dataset with swamp and sky backgrounds (see $\ S 2 . 1 )$ , either rare data samples must be collected (search for photos of a frog on sky) or one must intervene with the data generation process (throw a frog into the sky and take a photo). Either way, it is an expensive procedure (Peyre et al., 2017).
123
+
124
+ Preparing an unbiased data is feasible in some cases when the bias type is simple (e.g., collecting natural language corpus of unbiased gender pronouns, Webster et al. (2018)). However, we are addressing biases that are expressed in terms of a class of representations but perhaps are difficult to precisely express in language, such as texture bias of image classifiers (§2.3).
125
+
126
+ We thus evaluate our method along two axes: (1) Biased MNIST and (2) ImageNet. Biased MNIST contains synthetic biases (colour and texture) which we freely control in training and test data for indepth analysis of REBI’S. In particular, we can measure its performance on perfectly unbiased test data. On ImageNet, we evaluate our method against realistic biases. Due to the difficulty of defining and obtaining bias labels on real images, we use proxy ground truths for the local pattern bias to measure the cross-bias generalisability. MNIST and ImageNet experiments complement each other in terms of experimental control and realism.
127
+
128
+ Implementation of REBI’S. We describe the specific design choices in REBI’S implementation (equation 3) in our experiments. We will open source the code and data.
129
+
130
+ To train a model that overcomes local pattern biases, we first define biased model architecture families $G$ such that they precisely and sufficiently encode biased representations: CNNs with relatively small receptive fields (RFs). The biased models in $G$ will by design learn to predict the target class of an image through only local cues. On the other hand, we define a larger search space $F$ with larger RFs for our unbiased representations.
131
+
132
+ In our work, all networks $f$ and $g$ are fully convolutional networks. $f ( x )$ and $g ( x )$ denote the final convolutional layer outputs (feature maps), on which we compute the independence measures like
133
+
134
+ HSIC, CKA, and SCKA (§3.1). We perform global average pooling and a learnable linear classifier on $f ( x )$ , trained along with the outer optimisation, to compute the cross-entropy loss in equation 3.
135
+
136
+ For Biased MNIST, $F$ is the LeNet $F$ (LeCun et al., 1998) architecture with RF 28. It has two 5- convs3, after each of which max-pooling layers of $2 \times 2$ kernels are applied, followed by three linear layers. $G$ has the same number of layers but either with all convolutional layers of $1 \times 1$ kernels and without max-pooling operations, called BlindNet1, or with one 3-conv and one 1-conv, called BlindNet3, each with a RFs of 1 and 3, respectively. On ImageNet, we use ResNet (He et al., 2016) architecture for $F$ (either ResNet18 with RF of 435 or ResNet50 with RF of 427). $G$ is defined as BagNet (Brendel & Bethge, 2019) architectures with the same depth as ResNet’s (either BagNet18 with RF of 43 or BagNet50 with RF of 91). More implementation details are provided in $\mathrm { \ S C }$ .
137
+
138
+ # 4.2 BIASED MNIST
139
+
140
+ We first verify our model on a dataset where we have full control over the type and amount of bias during training and evaluation. We describe the dataset and present the experimental results.
141
+
142
+ # 4.2.1 DATASET AND EVALUATION
143
+
144
+ We construct a new dataset called Biased MNIST designed to measure the extent to which models generalise to bias shift. We modify MNIST (LeCun et al., 1998) by introducing two types of bias $B$ – colour and texture – that highly correlate with the label $Y$ during training. With $B$ alone, a CNN can achieve high accuracy without
145
+
146
+ ![](images/90c62aee8b79de2af1881e480cd150832dbcec2ca705144ec6452c844ec95e19.jpg)
147
+ Figure 2: Biased MNIST. We construct a synthetic dataset with two types of biases – colour and texture – which highly correlate with the label during training. Upper row: colour bias. Lower row: colour and texture biases.
148
+
149
+ having to learn inherent signals for digit recognition $S$ , such as shape, providing little motivation for the model to learn beyond these superficial cues.
150
+
151
+ We inject colour and texture biases by adding colour or texture patterns on training image backgrounds (see Figure 2). We pre-select 10 distinct colour or $3 \times 3$ texture patterns $b ( y )$ for each digit $\bar { y } \in \{ 0 , \cdots , 9 \}$ . Then, for each image of digit $y$ , we assign the pre-defined pattern $b ( y )$ with probability $\rho \in [ 0 , 1 ]$ and any other pattern (pre-defined for other digits) with probability $( 1 - \rho )$ . $\rho$ then controls the bias-target correlation in the training data: $\rho = 1 . 0$ leads to complete bias and $\rho = 0 . 1$ leads to an unbiased dataset. We consider two datasets: Single-bias MNIST with only colour bias and Multi-bias MNIST with both colour and texture biases ${ \bf \zeta } _ { \rho } = 0 . 9 9$ in all the experiments).
152
+
153
+ We evaluate the models generalisability to bias shift by evaluating under the following criterion:
154
+
155
+ Biased. $p ( S ^ { \mathrm { t e } } , B ^ { \mathrm { t e } } , Y ^ { \mathrm { t e } } ) \ = \ p ( S ^ { \mathrm { t r } } , B ^ { \mathrm { t r } } , Y ^ { \mathrm { t r } } )$ (an in-distribution case in $\ S 2 . 1 \ r ,$ ). Whatever bias the training set contains, it is replicated in the test set. This measures the ability of de-biased models to maintain high in-distribution performance while generalising to unbiased settings.
156
+
157
+ Unbiased. $B ^ { \mathrm { t e } } ~ \bot \bot ~ Y ^ { \mathrm { t e } }$ . We assign biases on test images independently of the labels. Bias is no longer predictive of $Y$ and a model needs to utilise actual signals $S$ to yield correct predictions.
158
+
159
+ We have additional fine-grained measures on Multi-bias MNIST: removed colour bias (colour; texture bias remains) and removed texture bias (texture; colour bias remains) cases. Colour and texture biases are marginalised out in the test set, respectively, to factorise generalisability across different types of bias.
160
+
161
+ # 4.2.2 RESULTS
162
+
163
+ Results on Single- and Multi-bias MNIST are shown in Table 1.
164
+
165
+ REBI’S lets a model overcome bias. We observe that vanilla LeNet $F$ achieves $100 \%$ accuracy under the “biased” metric (the same bias between training and test data) in Single- and Multi-bias MNIST. This is how most machine learning tasks are evaluated, yet this does not show the extent to which the model depends on bias for prediction. When the bias cues are randomly assigned to the label at evaluation, vanilla LeNet accuracy collapses to $2 7 . 5 \%$ and $2 9 . 6 \%$ under the “unbiased” metric on Single- and Multi-bias MNIST, respectively. The intentionally biased BlindNet models $G$ result in an even lower accuracy of $1 0 . 8 \%$ on Single-bias MNIST, close to the random chance $10 \%$ . This reveals that the seemingly high-performing model has in fact overfitted to bias and has not learned beyond this fallible strategy.
166
+
167
+ <table><tr><td rowspan="2">Model</td><td rowspan="2">Description</td><td colspan="2">Single-bias MNIST</td><td colspan="4">Multi-bias MNIST</td></tr><tr><td>biased</td><td>unbiased</td><td>biased</td><td>colour</td><td>texture</td><td>unbiased</td></tr><tr><td>F</td><td>Vanilla</td><td>100.</td><td>27.5</td><td>100.</td><td>45.1</td><td>85.8</td><td>29.6</td></tr><tr><td>G</td><td>Biased</td><td>100.</td><td>10.8</td><td>100.</td><td>10.0</td><td>58.5</td><td>4.7</td></tr><tr><td>FHEX</td><td>Wang et al. (2019)</td><td>97.2</td><td>14.7</td><td>95.0</td><td>31.1</td><td>91.1</td><td>18.1</td></tr><tr><td>FIG</td><td>REBI&#x27;S (ours)</td><td>96.1</td><td>74.9</td><td>94.7</td><td>91.9</td><td>90.9</td><td>88.6</td></tr></table>
168
+
169
+ Table 1: Biased MNIST results. Architecture families are set as $\begin{array} { r } { F = \mathrm { L e N e t } } \end{array}$ and $G =$ BlindNet1 for Single-bias and BlindNet3 for Multi-bias MNIST. Accuracy results are shown.
170
+
171
+ REBI $^ \prime \mathrm { ~ S ~ }$ , on the other hand, achieves robust generalisation across all settings by learning to be different from BlindNet representations $G$ . REBI $^ \prime \mathrm { ~ S ~ }$ achieves a $+ 4 7 . 4$ pp (Single) and $+ 5 9 . 0$ pp (Multi) higher performances than the vanilla model under the cross-bias generalisation setup (the unbiased metric), with a slight degradation in original accuracies $( - 3 . 9 \mathrm { p p }$ and $- 5 . 3 \mathrm { p p }$ , respectively).
172
+
173
+ Comparison against HEX. Previously, HEX (Wang et al., 2019) has attempted to reduce the dependency of a model on “superficial statistics”, or high-frequency textural information. HEX measures texture via neural grey-level co-occurrence matrices (NGLCM) and projects out the NGLCM feature from the output of the model of interest. We observe that $F _ { \mathrm { H E X } }$ , where HEX is applied on $F$ , is effective in removing texture biases $( 8 5 . 8 \%$ to $9 1 . 1 \%$ cross-texture accuracy), but still vulnerable to colour biases (accuracy drops from $4 5 . 1 \%$ to $3 1 . 1 \%$ ). Hand-crafting texture features as done by HEX has resulted in its limited applicability beyond the hand-crafted bias type. By designing the model family architecture, instead of a specific feature extractor, REBI’S achieved a representation free of broader types of biases.
174
+
175
+ # 4.2.3 FACTOR ANALYSIS
176
+
177
+ Some design choices exist, leading to our final model (§3.1). We examine how the factors contribute to the final performance. See Table 2 for ablative studies on the Single-bias MNIST.
178
+
179
+ Impact of the independence criterion. Three independence measures, HSIC, CKA, and SCKA, have been considered. SCKA, the separation CKA, used in $\mathrm { R E B I ^ { \prime } } \mathrm { S }$ , shows a superior de-biasing performance $( 7 4 . 9 \% )$ against baseline choices. It improves upon HSIC by avoiding the trivial solution (a constant function), and upon CKA via more stable optimisation due to the milder conditional independence $f ( X ) \ { \stackrel { \cdot \cdot } { \bot } } \ B \mid Y$ that does not contradict the classification objective.
180
+
181
+ Impact of the $L _ { 2 }$ objective in the inner optimisation. We then study the effect of our choice to replace the inner SCKA optimisation with the $L _ { 2 }$ objective. $L _ { 2 }$ is considered, as it poses a stronger convergence condition than SCKA does. We confirm indeed that the $L _ { 2 }$ objective results in a better de-biasing performance.
182
+
183
+ Table 2: Factor analysis. Default REBI’S parameters: last rows.
184
+
185
+ <table><tr><td>Indep.</td><td colspan="2">biased unbiased</td></tr><tr><td>HSIC</td><td>83.5</td><td>51.1</td></tr><tr><td>CKA</td><td>97.4</td><td>22.0</td></tr><tr><td>SCKA</td><td>96.1</td><td>74.9</td></tr><tr><td>Inner opt.</td><td>biased</td><td>unbiased</td></tr><tr><td>SCKA</td><td>95.8</td><td>62.4</td></tr><tr><td>L2</td><td>96.1</td><td>74.9</td></tr><tr><td>Updating g</td><td>biased</td><td>unbiased</td></tr><tr><td>Fixed g</td><td>94.6</td><td>44.7</td></tr><tr><td>Multiple g</td><td>95.9</td><td>58.1</td></tr><tr><td>Updated g</td><td>96.1</td><td>74.9</td></tr></table>
186
+
187
+ Impact of updating $g \in G$ . The advantage of specifying a class of models $G$ instead of a single, fixed model $g _ { 0 }$ is that $\operatorname { H S I C } ( f , G )$ can be computed more precisely (§3.1). We quantify this benefit. Fixing the biased representation to $g _ { 0 }$ results in sub-optimal de-biasing performance, $4 4 . 7 \%$ . By including multiple fixed biased models $\{ g _ { 0 } , \cdot \cdot \cdot , g _ { 7 } \} \subset { \overline { { G } } }$ , de-biasing improves to $5 8 . 1 \%$ , but is not as good as the updated $g$ case, $7 4 . 9 \%$ . It is thus important to precisely compute the representationto-set independence. More detailed analysis around the receptive field sizes of models in $G$ is in Appendix $\mathrm { \ S E }$ .
188
+
189
+ <table><tr><td>Model</td><td>Description</td><td>Biased</td><td>Unbiased</td><td>IN-A</td></tr><tr><td>F</td><td>ResNet18</td><td>93.3</td><td>85.8</td><td>30.5</td></tr><tr><td>G</td><td>BagNet18</td><td>72.4</td><td>58.6</td><td>19.5</td></tr><tr><td>FIG</td><td>REBI&#x27;S</td><td>93.7</td><td>88.4</td><td>31.7</td></tr><tr><td>F</td><td>Geirhos et al.</td><td>92.5</td><td>87.6</td><td>29.7</td></tr><tr><td>F</td><td>ResNet50</td><td>91.7</td><td>78.3</td><td>29.5</td></tr><tr><td>G</td><td>BagNet50</td><td>73.0</td><td>60.9</td><td>21.4</td></tr><tr><td>FIG</td><td>REBI&#x27;S</td><td>88.7</td><td>89.2</td><td>31.3</td></tr></table>
190
+
191
+ Table 3: ImageNet results. We show results with $F$ and $F _ { \bot \bot G }$ corresponding to $F$ is ResNet18 and $G$ is BagNet18) and ( $F$ is ResNet50 and $G$ is BagNet50). IN-A indicates ImageNet-A.
192
+
193
+ # 4.3 IMAGENET
194
+
195
+ In ImageNet experiments, we further validate the applicability of $\mathbb { R E B I ^ { \prime } S }$ on the local pattern bias in realistic images (i.e,, objects in natural scenes). The local pattern bias often lets a model achieve good in-distribution performances by exploiting the local cue shortcuts (e.g, determining a turtle class by not seeing its shape but the background texture).
196
+
197
+ # 4.3.1 DATASET AND EVALUATION
198
+
199
+ We construct 9-Class ImageNet, a subset of ImageNet (Russakovsky et al., 2015) containing 9 super-classes as done in Ilyas et al. (2019), since full-scale analysis on ImageNet is not scalable. We additionally balance the ratios of sub-class images for each super-class to solely focus on the effect of the local pattern bias.
200
+
201
+ Since it is difficult to evaluate cross-bias generalisability on realistic unbiased data ( 4.1), we settle for alternative evaluations:
202
+
203
+ Biased. $p ( S ^ { \mathrm { t e } } , B ^ { \mathrm { t e } } , Y ^ { \mathrm { t e } } ) = p ( S ^ { \mathrm { t r } } , B ^ { \mathrm { t r } } , Y ^ { \mathrm { t r } } )$ Accuracy is measured on the in-distribution validation set. Though widely-used, this metric is blind to a model’s generalisability to unseen bias-target combinations.
204
+
205
+ Unbiased. $B ^ { \mathrm { t e } } \perp \perp Y ^ { \mathrm { t e } }$ As a proxy to the perfectly de-biased test data, which is difficult to collect ( 4.1), we use texture clusters IDs $\dot { c } \in \{ 1 , \dot { \cdot } \cdot \cdot , K \} \dot $ as the ground truth labels for local pattern bias. For full details of texture clustering algorithm, see Appendix $\mathrm { \ S F }$ . For an unbiased accuracy measurement, we compute accuracies for every set of images corresponding to a target-texture combination $( c , y )$ . The combination-wise accuracy $A _ { c , y }$ is computed by $\mathrm { C o r r } ( c , y ) / \mathrm { P o p } ( c , y )$ , where $\operatorname { C o r r } ( c , y )$ is the number of correctly predicted samples in $( c , y )$ and $\mathrm { P o p } ( c , y )$ is the total number of samples in $( c , y )$ , called the population at $( c , y )$ . The unbiased accuracy is then the mean accuracy over all $A _ { c , y }$ where the population is non-zero $\dot { \operatorname { P o p } } ( c , y ) \neq 0$ . This measure gives more weights on samples of unusual texture-class combinations (smaller $\mathrm { P o p } ( c , y ) )$ that are less represented in the usual biased accuracies. Under this unbiased metric, a biased model basing its recognition on textures is likely to show sub-optimal results on unusual combinations, leading to a drop in the unbiased accuracy.
206
+
207
+ ImageNet-A. ImageNet-A (Hendrycks et al., 2019) contains failure cases of ImageNet pre-trained ResNet50 among web images. The images consist of many failure modes of networks when “frequently appearing background elements” become erroneous cues for recognition (e.g. a bee image feeding on hummingbird feeder is recognised as a hummingbird). Improved performance on ImageNet-A is an indirect signal that the model learns beyond the bias shortcuts.
208
+
209
+ # 4.3.2 RESULTS
210
+
211
+ We measure performances of ResNet18 and ResNet50, each trained to be different from BagNet18 and BagNet50 respectively using REBI’S, under the metrics in the previous part. Results are shown in Table 3.
212
+
213
+ Vanilla models are biased. Both ResNet18 and ResNet50 show good performances on the biased accuracy $( 9 3 . 3 \%$ and $9 1 . 7 \%$ , respectively), but dropped performances on the texture-unbiased accuracies $8 5 . 8 \%$ and $78 . 3 \%$ , respectively). BagNet18 and BagNet50 perform worse than the vanilla ResNets as they are heavily biased towards texture by design (i.e., small receptive field size). The drop signifies the biases of vanilla models towards texture cues; by basing their predictions on texture cues they obtain generally better accuracies on texture-class pairs $( c , y )$ that are represented more. The drop also shows the limitation of current evaluation schemes where cross-bias generalisation is not measured.
214
+
215
+ REBI’S leads to less biased models. When REBI $^ \prime \mathrm { ~ S ~ }$ is applied on ResNet18 and ResNet50 to encourage them to unlearn cues learnable by BagNet18 and BagNet50, respectively, we observe general boost in unbiased accuracies. ResNet18 improves from $8 5 . 8 \%$ to $8 8 . 4 \%$ ; ResNet50 from $7 8 . 3 \%$ to $8 9 . 2 \%$ . Our method thus robustly generalises to less represented texturetarget combinations at test time. We observe that our method also shows improvement on the challenging ImageNet-A subset (e.g. from $2 9 . 5 \%$ to $3 1 . 3 \%$ for ResNet50), which further shows our superiority on generalisability to unusual texture-class combinations. Similarly, data augmentation via Stylised ImageNet (Geirhos et al., 2019) attempts to reduce a model’s dependency on texture by augmenting data with texturised images. While it shows improvements in reducing texture bias $( 8 7 . 6 \%$ for unbiased accuracy), it does not increase the generalisability to the challenging natural adversarial examples $( 2 9 . 7 \%$ for ImageNet-A). More detailed analysis on per-texture and per-class accuracies are included in Appendix $\ S \mathbf G$ ; learning curves for the baseline and $\mathrm { R E B I ^ { \prime } } \mathrm { S }$ are in Appendix $\mathrm { \ S H }$ .
216
+
217
+ Qualitative analysis. We qualitatively present the cases where our method successfully de-biases a texture-target dependency. Figure 3 shows examples of common and uncommon texture-target combinations for “grass” and “close-up” texture clusters. The shown uncommon instances are the ones ResNet18 has incorrectly predicted the class. For example, crab in the grass has been predicted as turtle, presumably because turtles co-occur a lot with grass backgrounds in training data. On the other hand, REBI’S (ours) robustly generalises to unusual texture-class combinations.
218
+
219
+ # 5 CONCLUSION
220
+
221
+ We have identified a practical problem faced by many machine learning algorithms that the learned models exploit bias shortcuts to recognise the target (cross-bias generalisation problem in $\ S 2$ ). In particular, models tend to under-utilise its capacity to extract non-bias signals (e.g. global shapes for object recognition) when bias shortcuts provide sufficient cues for recognition in the training data (e.g. local patterns and background cues for object recognition) (Geirhos et al., 2019). We have addressed this problem with the $\mathrm { R E B I ^ { \prime } } \mathrm { S }$ framework, which does not rely on expensive, if not infeasible, training data debiasing schemes. Given an identified set of models $G$ that encodes the bias to be removed, REBI’S encourages a model $f$ to be statistically independent of $G$ (§3). We have provided theoretical justifications for the use of statistical independence in $\ S 3 . 2$ , and have validated the superiority of REBI’S in removing biases from models through experiments on modified MNIST and ImageNet (§4).
222
+
223
+ ![](images/47a9cb8557fc014ad500bcef9c17c282fcc67255b46820a0e3861d6d9d66b902.jpg)
224
+ Figure 3: Qualitative results. Common and uncommon images are shown according to class-texture relationship. Predictions of ResNet18 and REBI’S are shown as well.
225
+
226
+ # REFERENCES
227
+
228
+ Aishwarya Agrawal, Dhruv Batra, Devi Parikh, and Aniruddha Kembhavi. Don’t just assume; look and answer: Overcoming priors for visual question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4971–4980, 2018.
229
+ Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. In Advances in neural information processing systems, pp. 137–144, 2007.
230
+ Wieland Brendel and Matthias Bethge. Approximating CNNs with bag-of-local-features models works surprisingly well on imagenet. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=SkfMWhAqYQ.
231
+
232
+ Christopher Clark, Mark Yatskar, and Luke Zettlemoyer. Don’t take the easy way out: Ensemble based methods for avoiding known dataset biases. EMNLP, 2019.
233
+
234
+ Leon Gatys, Alexander S Ecker, and Matthias Bethge. Texture synthesis using convolutional neural networks. In Advances in neural information processing systems, pp. 262–270, 2015.
235
+
236
+ 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. In International Conference on Learning Representations, 2019. URL https://openreview. net/forum?id $_ { \cdot } =$ Bygh9j09KX.
237
+
238
+ Arthur Gretton, Olivier Bousquet, Alex Smola, and Bernhard Scholkopf. Measuring statistical dependence with ¨ hilbert-schmidt norms. In International conference on algorithmic learning theory, pp. 63–77. Springer, 2005.
239
+
240
+ Arthur Gretton, Kenji Fukumizu, Choon H Teo, Le Song, Bernhard Scholkopf, and Alex J Smola. A kernel ¨ statistical test of independence. In Advances in neural information processing systems, pp. 585–592, 2008.
241
+
242
+ Suchin Gururangan, Swabha Swayamdipta, Omer Levy, Roy Schwartz, Samuel Bowman, and Noah A. Smith. Annotation artifacts in natural language inference data. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics, pp. 107–112, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. URL https://www.aclweb.org/ anthology/N18-2017.
243
+
244
+ Moritz Hardt, Eric Price, Nati Srebro, et al. Equality of opportunity in supervised learning. In Advances in neural information processing systems, pp. 3315–3323, 2016.
245
+
246
+ He He, Sheng Zha, and Haohan Wang. Unlearn dataset bias in natural language inference by fitting the residual. EMNLP, 2019.
247
+
248
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
249
+
250
+ Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019.
251
+
252
+ Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. arXiv preprint arXiv:1905.02175, 2019.
253
+
254
+ Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and superresolution. In European conference on computer vision, pp. 694–711. Springer, 2016.
255
+
256
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
257
+
258
+ Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton. Similarity of neural network representations revisited. In International Conference on Machine Learning, 2019.
259
+
260
+ Yann LeCun, Leon Bottou, Yoshua Bengio, Patrick Haffner, et al. Gradient-based learning applied to document ´ recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
261
+
262
+ Yi Li and Nuno Vasconcelos. Repair: Removing representation bias by dataset resampling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9572–9581, 2019.
263
+
264
+ Yingwei Li, Yi Li, and Nuno Vasconcelos. Resound: Towards action recognition without representation bias. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 513–528, 2018.
265
+
266
+ R Thomas McCoy, Ellie Pavlick, and Tal Linzen. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. ACL, 2019.
267
+
268
+ Timothy Niven and Hung-Yu Kao. Probing neural network comprehension of natural language arguments. ACL, 2019.
269
+
270
+ Rameswar Panda, Jianming Zhang, Haoxiang Li, Joon-Young Lee, Xin Lu, and Amit K Roy-Chowdhury. Contemplating visual emotions: Understanding and overcoming dataset bias. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 579–595, 2018.
271
+
272
+ Julia Peyre, Josef Sivic, Ivan Laptev, and Cordelia Schmid. Weakly-supervised learning of visual relations. In Proceedings of the IEEE International Conference on Computer Vision, pp. 5179–5188, 2017.
273
+
274
+ Novi Quadrianto, Viktoriia Sharmanska, and Oliver Thomas. Discovering fair representations in the data domain. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8227–8236, 2019.
275
+
276
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015.
277
+
278
+ John Shawe-Taylor and Nello Cristianini. Kernel methods for pattern analysis. Cambridge university press, 2004.
279
+
280
+ Rakshith Shetty, Bernt Schiele, and Mario Fritz. Not using the car to see the sidewalk–quantifying and controlling the effects of context in classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8218–8226, 2019.
281
+
282
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
283
+
284
+ A. Torralba and A. A. Efros. Unbiased look at dataset bias. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1521–1528, June 2011.
285
+
286
+ Haohan Wang, Zexue He, and Eric P. Xing. Learning robust representations by projecting superficial statistics out. In International Conference on Learning Representations, 2019. URL https://openreview. net/forum?id ${ } = 1$ rJEjjoR9K7.
287
+
288
+ Kellie Webster, Marta Recasens, Vera Axelrod, and Jason Baldridge. Mind the gap: A balanced corpus of gendered ambiguous pronouns. Transactions of the Association for Computational Linguistics, 6:605–617, 2018.
289
+
290
+ Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, and Cynthia Dwork. Learning fair representations. In International Conference on Machine Learning, pp. 325–333, 2013.
291
+
292
+ Changqing Zhang, Yeqinq Liu, Yue Liu, Qinghua Hu, Xinwang Liu, and Pengfei Zhu. Fish-mml: Fisher-hsic multi-view metric learning. In IJCAI, pp. 3054–3060, 2018.
293
+
294
+ # A STATISTICAL INDEPENDENCE IS EQUIVALENT TO FUNCTIONAL ORTHOGONALITY FOR LINEAR MAPS.
295
+
296
+ We provide a proof for the following lemma in $\ S 3 . 2$ .
297
+
298
+ Lemma 1. Assume that $f$ and $g$ are affine mappings $f ( x ) = A x + a$ and $g ( x ) = B x + b$ where $A \in \mathbb { R } ^ { m \times n }$ and $B \in \mathbb { R } ^ { \tilde { l } \times n }$ . Assume further that $X$ is a normal distribution with mean $\mu$ and covariance matrix $\Sigma$ . Then, $f ( X ) \ \bot \bot \ g ( X )$ if and only if $\ker ( A ) ^ { \perp } \perp _ { \Sigma } \ker ( B ) ^ { \perp }$ . For a positive semi-definite matrix $\Sigma$ , we define $\langle r , s \rangle _ { \Sigma } = \langle r , { \Sigma } s \rangle$ , and the set orthogonality $\perp _ { \Sigma }$ likewise.
299
+
300
+ Proof. Due to linearity and normality, the independence $f ( X ) \ \bot \bot g ( X )$ is equivalent to the covariance condition $\operatorname { C o v } ( f ( X ) , g ( X ) ) = 0$ . Covariance is computed as:
301
+
302
+ $$
303
+ \operatorname { C o v } ( f ( X ) , g ( X ) ) = \operatorname { \mathbb { E } } _ { X } A ( X - x ^ { 0 } ) ( X - x ^ { 0 } ) ^ { T } B ^ { T } = A \Sigma B ^ { T }
304
+ $$
305
+
306
+ Note that
307
+
308
+ $$
309
+ \begin{array} { r l } & { A \Sigma B ^ { T } = 0 \iff \langle v , A \Sigma B ^ { T } w \rangle = 0 \forall v , w \iff \langle A ^ { T } v , B ^ { T } w \rangle _ { \Sigma } = 0 \forall v , w } \\ & { \qquad \iff \mathrm { i m } ( A ^ { T } ) \perp _ { \Sigma } \mathrm { i m } ( B ^ { T } ) \iff \mathrm { k e r } ( A ) ^ { \perp } \perp _ { \Sigma } \mathrm { k e r } ( B ) ^ { \perp } \sqsupset \sqcap } \end{array}
310
+ $$
311
+
312
+ # B DECISION BOUNDARY VISUALISATION FOR TOY EXPERIMENT
313
+
314
+ We show the decision boundaries of the toy experiment in $\ S 3 . 2$ . See Figure 4. GIF animations of decision boundary changes over training can be found at anonymous link.
315
+
316
+ ![](images/1ec2ff46074b4cc758b51dc6e06169e40a666aa68a879ecc7d5a839a5998fbdf.jpg)
317
+ Figure 4: Decision boundaries. Left to right: training data, baseline model, and our model.
318
+
319
+ # C IMPLEMENTATION DETAILS
320
+
321
+ We solve the minimax problem in equation 3 through alternating stochastic gradient descents (ADAM Kingma & Ba (2014)), where we alternate between 5 epochs for the outer problem and 5 epochs for the inner one. The regularisation parameter $\lambda$ is set to 7, 000 for CKA and 100 for $L _ { 2 }$ minimisation on MNIST and 0.05 for ImageNet. Note that we use a large $\lambda$ for MNIST as the degree of synthetic bias is excessively large (bias-target correlation set to $\rho = 0 . 9 9 ,$ ) compared to the degree of bias in realistic settings. We have used batch sizes 256 (32 for ResNet50) and learning rates 0.001 with linear decay. We train all models for 80 epochs for Biased MNIST. For 9-class ImageNet, we train ResNet18 for 200 epochs and ResNet50 for 100 epochs.
322
+
323
+ BagNet18 and BagNet50 have 18 and 50 convolutional layers which are the same structure (Basic or Bottleneck blocks) as ResNet18 and ResNet50, respectively. The internal kernel sizes of BagNets are set to $1 \times 1$ following the original paper’s philosophy (Brendel & Bethge (2019)).
324
+
325
+ # D PERFORMANCE BY BIAS AND LABEL ON BIASED MNIST.
326
+
327
+ In the Biased MNIST experiments (§4.2), we have shown either biased or unbiased set statistics. In this section, we provide more detailed results where model accuracies are computed per bias class
328
+
329
+ $B = b$ and per target label $Y = y$ . We visualise the case-wise accuracies of the baseline LeNet and the $\mathrm { R E B I ^ { \prime } S }$ trained LeNet⊥⊥BlindNet in Figure 5. The diagonals in each matrix indicate the pre-defined bias-target pair $( \ S 4 . 2 . 1 )$ . Thus, the biased accuracies can be computed by taking the mean of diagonal entries in each matrix and the unbiased accuracies through the mean of all entries in each matrix.
330
+
331
+ The vanilla LeNet’s tendency to have higher accuracies on diagonal entries and near-zero performances on many other off-diagonal entries indicate the fact that $\mathtt { I } { \in } \mathtt { N } { \in } \mathtt { t }$ is relying a lot on the colour (bias) cues. REBI’S successfully resolves this tendency in the vanilla model, exhibiting more uniform performances across all bias-target pairs $( b , y )$ . Note that accuracies below the main diagonal are relatively high as they are the classes that pre-defined patterns are assigned to at probability $( 1 - \rho )$ . Figure 6 demonstrates that our method is successful across different degrees of bias in a given training data.
332
+
333
+ ![](images/3b5b7e31ba88d42c82f21a5bd9d09be62e3c1ad02ded8d2340452b54ed8c1d83.jpg)
334
+ Figure 5: Bias-target-wise accuracies. We show accuracies for each bias $B = b$ and target $Y = y$ pair in Single-bias MNIST.
335
+
336
+ ![](images/62ac71da57a171f7c55096911422fa3d7929338d332af9d7ae3fd01ce63ec454.jpg)
337
+ Figure 6: Impact of $\rho .$ . REBI $^ \prime \mathrm { ~ S ~ }$ is effective in de-biasing across different degree of bias in data.
338
+
339
+ # E IMPACT OF RECEPTIVE FIELDS OF $G$ FOR BIASED MNIST
340
+
341
+ It is conceptually important to design a the set of biased models $G$ that encode the bias $B$ as precisely as possible. See precision and recall conditional for $G$ in $\ S 2 . 3 )$ . To see if this is empirically true, we have measured the performance of $\mathrm { R E B I ^ { \prime } } \mathrm { S }$ with $\boldsymbol { F } = \mathrm { L e N e t }$ and $G = \mathtt { B } \bot$ indNet, where the BlindNet receptive fields are controlled by replacing convolutional layers with $1 \times 1$ convolutions, resulting in receptive fields $\{ 1 , 5 , 7 , 2 8 \}$ . The $2 8 \times 2 8$ receptive field indicate the case when LeNet is used as $G$ . We measure the biased and unbiased set performances on Single-bias MNIST $( \ S 4 . 2 . 1 )$ .
342
+
343
+ ![](images/dd7a45c278afcafd8eed2954f9751defbf4927f338d5195cb9d7ab15647e44d8.jpg)
344
+ Figure 7: Receptive fields of $G$ . Biased and unbiased accuracies of REBI $^ \prime \mathrm { ~ S ~ }$ with $F = \tt L e N e t$ and $G =$ BlindNet with varying receptive fields.
345
+
346
+ ![](images/7c763e6c90309ee611b7e8615b1019304c10137f7968bd6f20ab0307958963a5.jpg)
347
+ Figure 8: Texture-class correlation. We show samples from each texture cluster. For each cluster, we visualise its top-3 correlated classes in rows.
348
+
349
+ Results are shown in Figure 7. We observe relatively stable biased set performances and decreasing unbiased set performances. The decrease in de-biasing ability is attributed to the violation of the precision condition for $G$ $( \ S 2 . 3 )$ : $1 \times 1$ receptive fields are sufficient to capture any colour bias variations, and de-biasing against models of larger receptive fields will further make $f$ not see the meaningful signal $S$ (cues beyond $1 \times 1$ -expressible colours). In the extreme case, when $F =$ LeNet is trained to be independent against itself $G = { \mathrm { L e N e t } }$ , the de-biasing performance drops significantly.
350
+
351
+ # F TEXTURE CLUSTERING
352
+
353
+ In our ImageNet experiments (§4.3), we obtained proxy ground truths for the local pattern bias using texture clustering. We extract texture information from images by clustering the gram matrices of low-layer feature maps as done in standard texturisation methods (Gatys et al., 2015; Johnson et al., 2016); we use feature maps from layer relu1 2 of a pre-trained VGG16 (Simonyan & Zisserman, 2014). As we intend to evaluate whether a given model is biased towards local pattern cues, we only utilise features from the lower layer encoding lower layer features like edges and colours rather than high-level semantics. Figure 8 shows that each cluster effectively captures similar local patterns across different classes. For each cluster, we visualise its top-3 correlated classes. We can see that certain classes share a common texture: cat, monkey, and dog share a “face”-like texture. If a certain class is biased towards a particular texture during training, a model can take the shortcut to utilise texture cues for recognising the target class, leading to a sub-optimal cross-bias generalisation to unusual class-texture combinations (e.g. crab on grass).
354
+
355
+ ![](images/d46a5210a6dddc3658752aa4ad2ed572cfc97adb397589beee30601a8509134f.jpg)
356
+ Figure 9: More clustering samples. Extended version of Figure 8.
357
+
358
+ ![](images/d4986fddef32f57f8f6a36d5c611662b5270e0fa5a319a6c134a925ae7ac4e8f.jpg)
359
+ Figure 10: Data and model bias. Rows correspond to image labels and columns correspond to texture clusters. Cells are colour-coded according to the population of samples of corresponding texture-class pair. In each cell, ResNet18 and REBI $^ \prime \mathrm { ~ S ~ }$ accuracies are shown in pairs.
360
+
361
+ ![](images/e3eb49053c2d4ae1b7cce23ea668afdb3234a11899236ba3f6ddf0b7d76dc8aa.jpg)
362
+ Figure 11: Learning curve. De-biased ImageNet accuracies of vanilla $\mathtt { R e s N e t } 5 0$ and REBI’S trained against BagNet50.
363
+
364
+ # G BIAS IN DATA AND MODELS
365
+
366
+ We study the bias in the 9-class ImageNet data and the models trained on them (§4.3). Figure 10 shows the statistics of texture biases in data and the model biases that result from them. To measure the dataset bias, we empirically observe correlations between texture and target classes by counting the number of samples for each texture-class pair $( c , y )$ (denoted “population” $\mathrm { P o p } ( c , y )$ in the main paper). We observe indeed that there does exist a strong correlation between texture clusters and class labels. We say that a class has a dominant texture cluster if the largest cluster for the class contains more than half of the class samples. 6 out of 9 classes considered has the dominant texture cluster: (“Dog”, “Dog”), (“Cat”, “Face”), (“Monkey”, “Mammal”), (“Frog”, “Spotted”), (“Crab”, “Shell”) and (“Insect”, “Close-up”).
367
+
368
+ Figure 10 further shows the accuracies of the baseline ResNet18 and $\mathrm { R E B I ^ { \prime } } \mathrm { S }$ to indicate the presence of bias in the models, and how REBI’S overcomes the bias despite the bias in data itself. We measure the average of accuracies in classes with dominant texture clusters (biased classes) and the average in less biased classes. We observe that ResNet18 shows higher accuracy on biased classes $( \bar { 8 9 } . 4 \% )$ than on less biased classes (83.9), signifying its bias towards texture. On the other hand, REBI’S achieves similar accuracies $8 8 . 7 \%$ (biased classes) and $8 8 . 2 \%$ (unbiased classes). We stress that REBI $^ \prime \mathrm { ~ S ~ }$ overcomes the bias even if the training data itself is biased.
369
+
370
+ # H LEARNING CURVES ON IMAGENET
371
+
372
+ We visualise the learning curves for the baseline vanilla ResNet50 and REBI’S trained ResNet50 against BagNet50 in Figure 11. We observe that REBI’S gradually de-biases a representation beyond the baseline model.
parse/train/SJeHwJSYvH/SJeHwJSYvH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJeHwJSYvH/SJeHwJSYvH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJeHwJSYvH/SJeHwJSYvH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJfWKsC5K7/SJfWKsC5K7.md ADDED
@@ -0,0 +1,341 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EXPLAINING NEURAL NETWORKS SEMANTICALLY AND QUANTITATIVELY
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ This paper presents a method to explain the knowledge encoded in a convolutional neural network (CNN) quantitatively and semantically. The analysis of the specific rationale of each prediction made by the CNN presents a key issue of understanding neural networks, but it is also of significant practical values in certain applications. In this study, we propose to distill knowledge from the CNN into an explainable additive model, so that we can use the explainable model to provide a quantitative explanation for the CNN prediction. We analyze the typical bias-interpreting problem of the explainable model and develop prior losses to guide the learning of the explainable additive model. Experimental results have demonstrated the effectiveness of our method.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Convolutional neural networks (CNNs) (LeCun et al., 1998; Krizhevsky et al., 2012; He et al., 2016) have achieved superior performance in various tasks, such as object classification and detection. Besides the discrimination power of neural networks, the interpretability of neural networks has received an increasing attention in recent years.
12
+
13
+ In this paper, we focus on a new problem, i.e. explaining the specific rationale of each network prediction semantically and quantitatively. “Semantic explanations” and “quantitative explanations” are two core issues of understanding neural networks.
14
+
15
+ 1. Semantic explanations: We hope to explain the logic of each network prediction using clear visual concepts, instead of using middle-layer features without clear meanings or simply extracting pixel-level correlations between network inputs and outputs. We believe that semantic explanations may satisfy specific demands in real applications.
16
+
17
+ 2. Quantitative explanations: In contrast to traditional qualitative explanations for neural networks, quantitative explanations enable people to diagnose feature representations inside neural networks and help neural networks earn trust from people. We expect the neural network to provide the quantitative rationale of the prediction, i.e. clarifying which visual concepts activate the neural network and how much they contribute to the prediction score.
18
+
19
+ Above two requirements present significant challenges to state-of-the-art algorithms. To the best of our knowledge, no previous studies simultaneously explained network predictions using clear visual concepts and quantitatively decomposed the prediction score into value components of these visual concepts.
20
+
21
+ Task: Therefore, in this study, we propose to learn another neural network, namely an explainer network, to explain CNN predictions. Accordingly, we can call the target CNN a performer network. Besides the performer, we also require a set of models that are pre-trained to detect different visual concepts. These visual concepts will be used to explain the logic of the performer’s prediction. We are also given input images of the performer, but we do not need any additional annotations on the images. Then, the explainer is learned to mimic the logic inside the performer, i.e. the explainer receives the same features as the performer and is expected to generate similar prediction scores.
22
+
23
+ As shown in Fig. 1, the explainer uses pre-trained visual concepts to explain each prediction. The explainer is designed as an additive model, which decomposes the prediction score into the sum of multiple value components. Each value component is computed based on a specific visual concept. In this way, we can roughly consider these value components as quantitative contributions of the visual concepts to the final prediction score.
24
+
25
+ ![](images/ae6d0295f173a176cd50c2415980375f8f15a79643f284f03f4d855df9324649.jpg)
26
+ Figure 1: Explainer. We distill knowledge of a performer into an explainer as a paraphrase of the performer’s representations. The explainer decomposes the prediction score into value components of semantic concepts, thereby obtaining quantitative semantic explanations for the performer.
27
+
28
+ More specifically, we learn the explainer via knowledge distillation. Note that we do not use any ground-truth annotations on input images to supervise the explainer. It is because the task of the explainer is not to achieve a high prediction accuracy, but to mimic the performer’s logic in prediction, no matter whether the performer’s prediction is correct or not.
29
+
30
+ Thus, the explainer can be regarded as a semantic paraphrase of feature representations inside the performer, and we can use the explainer to understand the logic of the performer’s prediction. Theoretically, the explainer usually cannot recover the exact prediction score of the performer, owing to the limit of the representation capacity of visual concepts. The difference of the prediction score between the performer and the explainer corresponds to the information that cannot be explained by the visual concepts.
31
+
32
+ Challenges: Distilling knowledge from a pre-trained neural network into an additive model usually suffers from the problem of bias-interpreting. When we use a large number of visual concepts to explain the logic inside the performer, the explainer may biasedly select very few visual concepts, instead of all visual concepts, as the rationale of the prediction (Fig. 4 in the appendix visualizes the bias-interpreting problem). Just like the typical over-fitting problem, theoretically, the bias interpreting is an ill-defined problem. To overcome this problem, we propose two types of losses for prior weights of visual concepts to guide the learning process. The prior weights push the explainer to compute a similar Jacobian of the prediction score w.r.t. visual concepts as the performer in early epochs, in order to avoid bias-interpreting.
33
+
34
+ Originality: Our “semantic-level” explanation for CNN predictions has essential differences from traditional studies of “pixel-level” interpreting neural networks, such as the visualization of features in neural networks (Zeiler & Fergus, 2014; Mahendran & Vedaldi, 2015; Simonyan et al., 2013; Dosovitskiy & Brox, 2016; Fong & Vedaldi, 2017; Selvaraju et al., 2017), the extraction of pixellevel correlations between network inputs and outputs (Koh & Liang, 2017; Ribeiro et al., 2016; Lundberg & Lee, 2017), and the learning of neural networks with interpretable middle-layer features (Zhang et al., 2018b; Sabour et al., 2017).
35
+
36
+ In particular, the explainer explains the performer without affecting the original discrimination power of the performer. As discussed in (Bau et al., 2017), the interpretability of features is not equivalent to, and usually even conflicts with the discrimination power of features. Compared to forcing the performer to learn interpretable features, our strategy of explaining the performer solves the dilemma between the interpretability and the discriminability. In addition, our quantitative explanation has special values beyond the qualitative analysis of CNN predictions (Zhang et al., 2018c).
37
+
38
+ Potential values of the explainer: Quantitatively and semantically explaining a performer is of considerable practical values when the performer needs to earn trust from people in critical applications. As mentioned in (Zhang et al., 2018a), owing to the potential bias in datasets and feature representations, a high testing accuracy still cannot fully ensure correct feature representations in neural networks. Thus, semantically and quantitatively clarifying the logic of each network prediction is a direct way to diagnose feature representations of neural networks. Fig. 3 shows example explanations for the performer’s predictions. Predictions whose explanations conflict people’s common sense may reflect problematic feature representations inside the performer.
39
+
40
+ Contributions of this study are summarized as follows. (i) In this study, we focus on a new task, i.e. semantically and quantitatively explaining CNN predictions. (ii) We propose a new method to explain neural networks, i.e. distilling knowledge from a pre-trained performer into an interpretable additive explainer. Our strategy of using the explainer to explain the performer avoids hurting the discrimination power of the performer. (iii) We develop novel losses to overcome the typical biasinterpreting problem. Preliminary experimental results have demonstrated the effectiveness of the proposed method. (iv) Theoretically, the proposed method is a generic solution to the problem of interpreting neural networks. We have applied our method to different benchmark CNNs for different applications, which has proved the broad applicability of our method.
41
+
42
+ # 2 RELATED WORK
43
+
44
+ In this paper, we limit our discussion within the scope of understanding feature representations of neural networks.
45
+
46
+ Network visualization: The visualization of feature representations inside a neural network is the most direct way of opening the black-box of the neural network. Related techniques include gradient-based visualization (Zeiler & Fergus, 2014; Mahendran & Vedaldi, 2015; Simonyan et al., 2013; Yosinski et al., 2015) and up-convolutional nets (Dosovitskiy & Brox, 2016) to invert feature maps of conv-layers into images. However, recent visualization results with clear semantic meanings were usually generated with strict constraints. These constraints made visualization results biased towards people’s preferences. Subjectively visualizing all information of a filter usually produced chaotic results. Thus, there is still a considerable gap between network visualization and semantic explanations for neural networks.
47
+
48
+ Network diagnosis: Some studies diagnose feature representations inside a neural network. (Yosinski et al., 2014) measured features transferability in intermediate layers of a neural network. (Aubry & Russell, 2015) visualized feature distributions of different categories in the feature space. (Ribeiro et al., 2016; Lundberg & Lee, 2017; Kindermans et al., 2018; Fong & Vedaldi, 2017; Selvaraju et al., 2017) extracted rough pixel-level correlations between network inputs and outputs, i.e. estimating image regions that directly contribute the network output. Network-attack methods (Koh & Liang, 2017; Szegedy et al., 2014) computed adversarial samples to diagnose a CNN. (Lakkaraju et al., 2017) discovered knowledge blind spots of a CNN in a weakly-supervised manner. (Zhang et al., 2018a) examined representations of conv-layers and automatically discover biased representations of a CNN due to the dataset bias. However, above methods usually analyzed a neural network at the pixel level and did not summarize the network knowledge into clear visual concepts.
49
+
50
+ (Bau et al., 2017) defined six types of semantics for CNN filters, i.e. objects, parts, scenes, textures, materials, and colors. Then, (Zhou et al., 2015) proposed a method to compute the image-resolution receptive field of neural activations in a feature map. Other studies retrieved middle-layer features from CNNs representing clear concepts. (Simon & Rodner, 2015) retrieved features to describe objects from feature maps, respectively. (Zhou et al., 2015; 2016) selected neural units to describe scenes. Note that strictly speaking, each CNN filter usually represents a mixture of multiple semantic concepts. Unlike previous studies, we are more interested in analyzing the quantitative contribution of each semantic concept to each prediction, which was not discussed in previous studies.
51
+
52
+ Learning interpretable representations: A new trend in the scope of network interpretability is to learn interpretable feature representations in neural networks (Hu et al., 2016; Stone et al., 2017; Liao et al., 2016) in an un-/weakly-supervised manner. Capsule nets (Sabour et al., 2017) and interpretable RCNN (Wu et al., 2017b) learned interpretable features in intermediate layers. InfoGAN (Chen et al., 2016) and $\beta$ -VAE (Higgins et al., 2017) learned well-disentangled codes for generative networks. Interpretable CNNs (Zhang et al., 2018b) learned filters in intermediate layers to represent object parts without given part annotations. However, as mentioned in (Bau et al., 2017; Zhang et al., 2018c), interpretable features usually do not have a high discrimination power. Therefore, we use the explainer to interpret the pre-trained performer without hurting the discriminability of the performer.
53
+
54
+ Explaining neural networks via knowledge distillation: Distilling knowledge from a black-box model into an explainable model is an emerging direction in recent years. (Zhang et al., 2018d) used a tree structure to summarize the inaccurate1 rationale of each CNN prediction into generic decision-making models for a number of samples. In contrast, we pursue the explicitly quantitative explanation for each CNN prediction. (Choi et al., 2017) learned an explainable additive model, and (Vaughan et al., 2018) distilled knowledge of a network into an additive model. (Frosst & Hinton, 2017; Tan et al., 2018; Che et al., 2016; Wu et al., 2017a) distilled representations of neural networks into tree structures. These methods did not explain the network knowledge using humaninterpretable semantic concepts. More crucially, compared to previous additive models (Vaughan et al., 2018), our research successfully overcomes the bias-interpreting problem, which is the core challenge when there are lots of visual concepts for explanation.
55
+
56
+ # 3 ALGORITHM
57
+
58
+ In this section, we distill knowledge from a pre-trained performer $f$ to an explainable additive model. We are given a performer $f$ and $n$ neural networks $\{ f _ { i } | i = 1 , 2 , \dots , n \}$ that are pre-trained to detect $n$ different visual concepts. We learn the $n$ neural networks along with the performer, and the $n$ neural networks are expected to share low-layer features with the performer. Our method also requires a set of training samples for the performer $f$ . The goal of the explainer is to use inference values of the $n$ visual concepts to explain prediction scores of the performer. Note that we do not need any annotations on training samples w.r.t. the task, because additional supervision will push the explainer towards a good performance of the task, instead of objectively reflecting the knowledge in the performer.
59
+
60
+ Given an input image $I$ , let ${ \hat { y } } = f ( I )$ denote the output of the performer. Without loss of generality, we assume that $\hat { y }$ is a scalar. If the performer has multiple outputs (e.g. a neural network for multicategory classification), we can learn an explainer to interpret each scalar output of the performer. In particular, when the performer takes a softmax layer as the last layer, we use the feature score before the softmax layer as $\hat { y }$ , so that $\hat { y }$ ’s neighboring scores will not affect the value of $\hat { y }$ .
61
+
62
+ We design the following additive explainer model, which uses a mixture of visual concepts to approximate the function of the performer. The explainer decomposes the prediction score $\hat { y }$ into value components of pre-defined visual concepts.
63
+
64
+ $$
65
+ \begin{array} { r l } { \hat { y } \approx \ } & { { } \underset { \mathcal { S } } { \underbrace { \alpha _ { 1 } ( I ) \cdot y _ { 1 } } } + \alpha _ { 2 } ( I ) \cdot y _ { 2 } + \ldots + \alpha _ { n } ( I ) \cdot y _ { n } + b , \quad y _ { i } = f _ { i } ( I ) , \quad i = 1 , 2 , \ldots , n } \end{array}
66
+ $$
67
+
68
+ | {z }Quantitative contribution from the first visual concept
69
+
70
+ where $y _ { i }$ and $\alpha _ { i } ( I )$ denote the scalar value and the weight for the $i$ -th visual concept, respectively. $b$ is a bias term. $y _ { i }$ is given as the strength or confidence of the detection of the $i$ -th visual concept. We can regard the value of $\alpha _ { i } ( I ) \cdot y _ { i }$ as the quantitative contribution of the $i$ -th visual concept to the final prediction. In most cases, the explainer cannot recover all information of the performer. The prediction difference between the explainer and the performer reflects the limit of the representation capacity of visual concepts.
71
+
72
+ According to the above equation, the core task of the explainer is to estimate a set of weights $_ { \alpha } =$ $[ \alpha _ { 1 } , \alpha _ { 2 } , \ldots , \alpha _ { n } ]$ , which minimizes the difference of the prediction score between the performer and the explainer. Different input images may obtain different weights $_ { \pmb { \alpha } }$ , which correspond to different decision-making modes of the performer. For example, a performer may mainly use head patterns to classify a standing bird, while it may increase the weight for the wing concept to classify a flying bird. Therefore, we design another neural network $g$ with parameters $\theta _ { g }$ (i.e. the explainer), which uses the input image $I$ to estimate the $n$ weights. We learn the explainer with the following knowledge-distillation loss.
73
+
74
+ $$
75
+ \pmb { \alpha } = g ( I ) , \qquad L = \| \hat { \boldsymbol y } - \sum _ { i = 1 } ^ { n } \boldsymbol { \alpha } _ { i } \cdot \boldsymbol { y } _ { i } - b \| ^ { 2 }
76
+ $$
77
+
78
+ However, without any prior knowledge about the distribution of the weight $\alpha _ { i }$ , the learning of $g$ usually suffers from the problem of bias-interpreting. The neural network $g$ may biasedly select very few visual concepts to approximate the performer as a shortcut solution, instead of sophisticatedly learning relationships between the performer output and all visual concepts.
79
+
80
+ Thus, to overcome the bias-interpreting problem, we use a loss $\mathcal { L }$ for priors of $_ { \pmb { \alpha } }$ to guide the learning process in early epochs.
81
+
82
+ $$
83
+ \operatorname* { m i n } _ { \theta _ { g } , b } L o s s , \quad \quad L o s s = L + \lambda ( t ) \cdot \mathcal { L } ( \alpha , \mathbf { w } ) , \quad \quad \mathrm { s . t . } \operatorname* { l i m } _ { t \to \infty } \lambda ( t ) = 0
84
+ $$
85
+
86
+ ![](images/e5b5085d1094ee9474a45ab266fffddd73d8fc08f80cb155ab1b9697bbd68db9.jpg)
87
+ Figure 2: Two typical types of neural networks. (left) A performer models interpretable visual concepts in its intermediate layers. For example, each filter in a certain conv-layer represents a specific visual concept. (right) The performer and visual concepts are jointly learned, and they share features in intermediate layers.
88
+
89
+ where w denotes prior weights, which represent a rough relationship between the performer’s prediction value and $n$ visual concepts. Just like $_ { \pmb { \alpha } }$ , different input images also have different prior weights w. The loss $\mathcal { L } ( \alpha , \mathbf { w } )$ penalizes the dissimilarity between $_ { \pmb { \alpha } }$ and w.
90
+
91
+ Note that the prior weights w are approximated with strong assumptions (we will introduce two different ways of computing w later). We use inaccurate w to avoid significant bias-interpreting, rather than pursue a high accuracy. Thus, we set a decreasing weight for $\mathcal { L }$ , i.e. $\begin{array} { r } { \lambda ( t ) = \frac { \beta } { \sqrt { t } } } \end{array}$ , where $\beta$ is a scalar constant, and $t$ denotes the epoch number. In this way, we mainly apply the prior loss $\mathcal { L }$ in early epochs. Then, in late epochs, the influence of $\mathcal { L }$ gradually decreases, and our method gradually shifts its attention to the distillation loss for a high distillation accuracy.
92
+
93
+ We design two types of losses for prior weights, as follows.
94
+
95
+ $$
96
+ \mathcal { L } ( \alpha , \mathbf { w } ) = \left\{ \begin{array} { l l } { c r o s s { E n t r o p y } \big ( \frac { \alpha } { \lVert \alpha \rVert _ { 1 } } , \frac { \mathbf { w } } { \lVert \mathbf { w } \rVert _ { 1 } } \big ) , } & { \forall i , \alpha _ { i } , w _ { i } \ge 0 } \\ { \lVert \frac { \alpha } { \lVert \alpha \rVert _ { 2 } } - \frac { \mathbf { w } } { \lVert \mathbf { w } \rVert _ { 2 } } \lVert _ { 2 } ^ { 2 } , } & { \mathrm { o t h e r w i s e } } \end{array} \right.
97
+ $$
98
+
99
+ Some applications require a positive relationship between the prediction of the performer and each visual concept, i.e. each weight $\alpha _ { i }$ must be a positive scalar. In this case, we use the cross-entropy between $_ { \pmb { \alpha } }$ and $\mathbf { w }$ as the prior loss. In other cases, the MSE loss between $_ { \pmb { \alpha } }$ and $\mathbf { w }$ is used as the loss. $\| \cdot \| _ { 1 }$ and $\| \cdot \| _ { 2 }$ denote the L-1 norm and L-2 norm, respectively.
100
+
101
+ In particular, in order to ensure $\alpha _ { i } \geq 0$ in certain applications, we add a non-linear activation layer as the last layer of $g$ , i.e. $\alpha = \log [ 1 + \exp ( x ) ]$ , where $x$ is the output of the last conv-layer.
102
+
103
+ # 3.1 COMPUTATION OF PRIOR WEIGHTS w
104
+
105
+ In this subsection, we will introduce two techniques to efficiently compute rough prior weights w, which are oriented to the following two cases in application.
106
+
107
+ Case 1, filters in intermediate conv-layers of the performer are interpretable: As shown in Fig. 2(left), learning a neural network with interpretable filters is an emerging research direction in recent years. For example, (Zhang et al., 2018b) proposed a method to learn CNNs for object classification, where each filter in a high conv-layer is exclusively triggered by the appearance of a specific object part (see Fig. 10 in the appendix for the visualization of filters). Thus, we can interpret the classification score of an object as a linear combination of elementary scores for the detection of object parts. Because such interpretable filters are automatically learned without part annotations, the quantitative explanation for the CNN (i.e. the performer) can be divided into the following two tasks: (i) annotating the name of the object part that is represented by each filter, and (ii) learning an explainer to disentangle the exact additive contribution of each filter (or each object part) to the performer output.
108
+
109
+ In this way, each $f _ { i }$ , $i = 1 , 2 , \ldots , n$ , is given as an interpretable filter of the performer. According to (Zhang et al., 2018a), we can roughly represent the network prediction as
110
+
111
+ $$
112
+ { \hat { y } } \approx \sum _ { i } w _ { i } y _ { i } + b , \qquad { \mathrm { s . t . } } \quad { \left\{ \begin{array} { l l } { y _ { i } } & { = \sum _ { h , w } x _ { h w i } } \\ { w _ { i } } & { = { \frac { 1 } { Z } } \sum _ { h , w } { \frac { \partial { \hat { y } } } { \partial x _ { h w i } } } } \end{array} \right. }
113
+ $$
114
+
115
+ where $\boldsymbol { x } \in \mathbb { R } ^ { H \times W \times n }$ denotes a feature map of the interpretable conv-layer, and $x _ { h w i }$ is referred to as the activation unit in the location $( h , w )$ of the $i$ -th channel. $y _ { i }$ measures the confidence of detecting the object part corresponding to the $i$ -th filter. Here, we can roughly use the Jacobian of the network output w.r.t. the filter to approximate the weight $w _ { i }$ of the filter. $Z$ is for normalization. Considering that the normalization operation in Equation (4) eliminates Z, we can directly use Ph,w ∂yˆ∂xhwi as prior weights w in Equation (4) without a need to compute the exact value of .
116
+
117
+ Case 2, neural networks for visual concepts share features in intermediate layers with the performer: As shown in Fig. 2(right), given a neural network for the detection of multiple visual concepts, using certain visual concepts to explain a new visual concept is a generic way to interpret network predictions with broad applicability. Let us take the detection of a certain visual concept as the target $\hat { y }$ and use other visual concepts as $\{ y _ { i } \}$ to explain $\hat { y }$ . All visual concepts share features in intermediate layers.
118
+
119
+ Then, we estimate a rough numerical relationship between $\hat { y }$ and the score of each visual concept $y _ { i }$ . Let $x$ be a middle-layer feature shared by both the target and the $i$ -th visual concept. When we modify the feature $x$ , we can represent the value change of $y _ { i }$ using a Taylor series, $\Delta y _ { i } =$ $\begin{array} { r } { \frac { \partial y _ { i } } { \partial x } \otimes \Delta x + O ( \Delta ^ { 2 } x ) } \end{array}$ , where $\otimes$ denotes the convolution operation. Thus, when we push the feature ∂x towards the direction of boosting $y _ { i }$ , i.e. $\Delta x = \epsilon \frac { \partial y _ { i } } { \partial x }$ $\epsilon$ is a small constant), the change of the $i$ -th visual concept can be approximated as $\Delta y _ { i } = \epsilon \| \frac { \partial y _ { i } } { \partial x } \| _ { F } ^ { 2 }$ , where $\| \cdot \| _ { F }$ denotes the Frobenius norm. Meanwhile, ∆x also affects the target concept by ∆ˆy =  ∂yˆ∂x ∂yi∂x . Thus, we can roughly estimate the weight as wi = ∆ˆy∆yi .
120
+
121
+ # 4 EXPERIMENTS
122
+
123
+ We designed two experiments to use our explainers to interpret different benchmark CNNs oriented to two different applications, in order to demonstrate the broad applicability of our method. In the first experiment, we used the detection of object parts to explain the detection of the entire object. In the second experiment, we used various face attributes to explain the prediction of another face attribute. We evaluated explanations obtained by our method qualitatively and quantitatively.
124
+
125
+ # 4.1 EXPERIMENT 1: USING OBJECT PARTS TO EXPLAIN OBJECT CLASSIFICATION
126
+
127
+ In this experiment, we used the method proposed in (Zhang et al., 2018b) to learn a CNN, where each filter in the top conv-layer represents a specific object part. We followed exact experimental settings in (Zhang et al., 2018b), which used the Pascal-Part dataset (Chen et al., 2014) to learn six CNNs for the six animal2 categories in the dataset. Each CNN was learned to classify the target animal from random images. We considered each CNN as a performer and regarded its interpretable filters in the top conv-layer as visual concepts to interpret the classification score.
128
+
129
+ Four types of CNNs as performers: Following experimental settings in (Zhang et al., 2018b), we applied our method to four types of CNNs, including the AlexNet (Krizhevsky et al., 2012), the VGG-M, VGG-S, and VGG-16 networks (Simonyan & Zisserman, 2015), i.e. we learned CNNs for six categories based on each network structure. Note that as discussed in (Zhang et al., 2018b), skip connections in residual networks (He et al., 2016) increased the difficulty of learning part features, so they did not learn interpretable filters in residual networks.
130
+
131
+ Learning the explainer: The AlexNet/VGG-M/VGG-S/VGG-16 performer had 256/512/512/512 filters in its top conv-layer, so we set $n = 2 5 6$ , 512, 512, 512 for these networks. We used the masked output of the top conv-layer as $x$ and plugged $x$ to Equation (5) to compute $\{ y _ { i } \} ^ { 1 }$ . We used the 152- layer ResNet (He et al., $2 0 1 6 ) ^ { 3 }$ as $g$ to estimate weights of visual concepts4. We set $\beta = 1 0$ for the learning of all explainers. Note that all interpretable filters in the performer represented object parts of the target category on positive images, instead of describing random (negative) images.
132
+
133
+ Table 1: Entropy of contribution distributions estimated by the explainer. A lower entropy of contribution distributions reflects more significant bias-interpreting. Our method suffered much less from the bias-interpreting problem than the baseline. Please see the appendix for more results.
134
+
135
+ <table><tr><td rowspan="2"></td><td colspan="4">Experiment1</td><td colspan="5">Experiment 2</td></tr><tr><td>AlexNet</td><td>VGG-M</td><td>VGG-S</td><td>VGG-16</td><td>attractive</td><td>makeup</td><td>male</td><td>young</td><td>Avg.</td></tr><tr><td>Baseline</td><td>3.636</td><td>4.957</td><td>3.962</td><td>4.218</td><td>3.185</td><td>3.120</td><td>3.139</td><td>3.100</td><td>3.136</td></tr><tr><td>Ours</td><td>5.199</td><td>5.908</td><td>5.913</td><td>6.054</td><td>3.216</td><td>3.134</td><td>3.139</td><td>3.160</td><td>3.162</td></tr></table>
136
+
137
+ <table><tr><td rowspan="2" colspan="2"></td><td colspan="4">Experiment 1</td><td colspan="5">Experiment 2</td></tr><tr><td>AlexNet</td><td>VGG-M</td><td>VGG-S</td><td>VGG-16</td><td>attractive</td><td>makeup</td><td>male</td><td>young</td><td>Avg.</td></tr><tr><td>Classification</td><td>Performer</td><td>93.9</td><td>94.2</td><td>95.5</td><td>95.4</td><td>81.5</td><td>92.3</td><td>98.7</td><td>88.3</td><td>90.2</td></tr><tr><td>accuracy</td><td>Explainer</td><td>93.6</td><td>94.0</td><td>94.9</td><td>96.6</td><td>76.0</td><td>88.8</td><td>97.6</td><td>82.8</td><td>87.1</td></tr><tr><td>Relative</td><td>Performer</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>deviation</td><td>Explainer</td><td>0.045</td><td>0.040</td><td>0.041</td><td>0.038</td><td>0.163</td><td>0.100</td><td>0.067</td><td>0.139</td><td>0.117</td></tr></table>
138
+
139
+ Table 2: Classification accuracy and relative deviations of the explainer and the performer. We used relative deviations and the decrease of the classification accuracy to measure the information that could not be explained by pre-defined visual concepts. Please see the appendix for more results.
140
+
141
+ Intuitively, we needed to ensure a positive relationship between $\hat { y }$ and $y _ { i }$ . Thus, we filtered out negative prior weights $w _ { i } \gets \operatorname* { m a x } \{ w _ { i } , 0 \}$ and applied the cross-entropy loss in Equation (4) to learn the explainer.
142
+
143
+ Evaluation metric: The evaluation has two aspects. Firstly, we evaluated the correctness of the estimated explanation for the performer prediction. In fact, there is no ground truth about exact reasons for each prediction. We showed example explanations of for a qualitative evaluation of explanations. We also used grad-CAM visualization (Selvaraju et al., 2017) of feature maps to prove the correctness of our explanations (see the appendix). In addition, we normalized the absolute contribution from each visual concept as a distribution of contributions $c _ { i } = | \alpha _ { i } y _ { i } | / \sum _ { j } | \alpha _ { j } y _ { j } |$ . We used the entropy of contribution distribution $H ( \mathbf { c } )$ as an indirect evaluation metric for biasinterpreting. A biased explainer usually used very few visual concepts, instead of using most visual concepts, to approximate the performer, which led to a low entropy $H ( \mathbf { c } )$ .
144
+
145
+ Secondly, we also measured the performer information that could not be represented by the visual concepts, which was unavoidable. We proposed two metrics for evaluation. The first metric is the prediction accuracy. We compared the prediction accuracy of the performer with the prediction accuracy of using the explainer’s output $\sum _ { i } ^ { - } \alpha _ { i } y _ { i } + b$ . Another metric is the relative deviation, which measures a normalized output difference between the performer and the explainer. The relative deviation of the image $I$ is normalized as $\begin{array} { r } { \vert \hat { y } _ { I } - \sum _ { i } \bar { \alpha _ { I , i } } y _ { I , i } - b \vert / \big ( \mathrm { { m a x } } _ { I ^ { \prime } \in \mathbf { I } } \hat { y } _ { I ^ { \prime } } - \mathrm { { m i n } } _ { I ^ { \prime } \in \mathbf { I } } \hat { y } _ { I ^ { \prime } } \big ) } \end{array}$ , where $\hat { y } _ { I ^ { \prime } }$ denotes the performer’s output for the image $I ^ { \prime }$ .
146
+
147
+ Considering the limited representation power of visual concepts, the relative deviation on an image reflected inference patterns, which were not modeled by the explainer. The average relative deviation over all images was reported to evaluate the overall representation power of visual concepts. Note that our objective was not to pursue an extremely low relative deviation, because the limit of the representation power is an objective existence.
148
+
149
+ # 4.2 EXPERIMENT 2: EXPLAINING FACE ATTRIBUTES BASED ON FACE ATTRIBUTES
150
+
151
+ In this experiment, we learned a CNN based on the VGG-16 structure to estimate face attributes. We used the Large-scale CelebFaces Attributes (CelebA) dataset (Liu et al., 2015) to train a CNN to estimate 40 face attributes. We selected a certain attribute as the target and used its prediction score as $\hat { y }$ . Other 39 attributes were taken as visual concepts to explain the score of $\hat { y }$ $\left( n = 3 9 \right.$ ). The target attribute was selected from those representing global features of the face, i.e. attractive, heavy makeup, male, and young. It is because global features can usually be described by local visual concepts, but the inverse is not. We learned an explainer for each target attribute. We used the same 152-layer ResNet structure as in Experiment 1 (expect for $n = 3 9$ ) as $g$ to estimate weights. We followed the Case-2 implementation in Section 3.1 to compute prior weights $\mathbf { w }$ , in which we used the 4096-dimensional output of the first fully-connected layer as the shared feature $x$ . We set $\beta = 0 . 2$ and used the L-2 norm loss in Equation (4) to learn all explainers. We used the same evaluation metric as in Experiment 1.
152
+
153
+ ![](images/b961339d6b26f9c459eec8f0c4ff38eb80ba0ef4d7451bf8a9bf4659fe095da6.jpg)
154
+ Figure 3: Quantitative explanations for the object classification (top) and the face-attribution prediction (bottom) made by performers. For performers oriented to object classification, we annotated the part that was represented by each interpretable filter in the performer, and we assigned contributions of filters $\alpha _ { i } y _ { i }$ to object parts (see the appendix). Thus, this figure illustrates contributions of different object parts. All object parts made positive contributions to the classification score. Note that in the bottom, bars indicate elementary contributions $\alpha _ { i } y _ { i }$ from features of different face attributes, rather than prediction values $y _ { i }$ of these attributes. For example, the network predicts a negative goatee attribute $y _ { \mathrm { g o a t e e } } < 0$ , and this information makes a positive contribution to the target attractive attribute, $\alpha _ { i } y _ { i } > 0$ . Please see the appendix for more results.
155
+
156
+ # 4.3 EXPERIMENTAL RESULTS AND ANALYSIS
157
+
158
+ We compared our method with the traditional baseline of only using the distillation loss to learn the explainer. Table 1 evaluates bias-interpreting of explainers that were learned using our method and the baseline. In addition, Table 2 uses the classification accuracy and relative deviations of the explainer to measure the representation capacity of visual concepts. Our method suffered much less from the bias-interpreting problem than the baseline.
159
+
160
+ Fig. 3 shows examples of quantitative explanations for the prediction made by the performer. We also used the grad-CAM visualization (Selvaraju et al., 2017) of feature maps of the performer to demonstrate the correctness of our explanations in Fig. 9 in the appendix. In particular, Fig. 4 in the appendix illustrates the distribution of contributions of visual concepts $\left\{ c _ { i } \right\}$ when we learned the explainer using different methods. Compared to our method, the distillation baseline usually used very few visual concepts for explanation and ignored most strongly activated interpretable filters, which could be considered as bias-interpreting.
161
+
162
+ # 5 CONCLUSION AND DISCUSSIONS
163
+
164
+ In this paper, we focus on a new task, i.e. explaining the logic of each CNN prediction semantically and quantitatively, which presents considerable challenges in the scope of understanding neural networks. We propose to distill knowledge from a pre-trained performer into an interpretable additive explainer. We can consider that the performer and the explainer encode similar knowledge. The additive explainer decomposes the prediction score of the performer into value components from semantic visual concepts, in order to compute quantitative contributions of different concepts. The strategy of using an explainer for explanation avoids decreasing the discrimination power of the performer. In preliminary experiments, we have applied our method to different benchmark CNN performers to prove the broad applicability.
165
+
166
+ Note that our objective is not to use pre-trained visual concepts to achieve super accuracy in classification/prediction. Instead, the explainer uses these visual concepts to mimic the logic of the performer and produces similar prediction scores as the performer.
167
+
168
+ In particular, over-interpreting is the biggest challenge of using an additive explainer to interpret another neural network. In this study, we design two losses to overcome the bias-interpreting problems. Besides, in experiments, we also measure the amount of the performer knowledge that could not be represented by visual concepts in the explainer.
169
+
170
+ # REFERENCES
171
+
172
+ Mathieu Aubry and Bryan C. Russell. Understanding deep features with computer-generated imagery. In ICCV, 2015.
173
+
174
+ David Bau, Bolei Zhou, Aditya Khosla, Aude Oliva, and Antonio Torralba. Network dissection: Quantifying interpretability of deep visual representations. In CVPR, 2017.
175
+
176
+ Zhengping Che, Sanjay Purushotham, Robinder Khemani, and Yan Liu. Interpretable deep models for icu outcome prediction. In American Medical Informatics Association (AMIA) Annual Symposium, 2016.
177
+
178
+ X. Chen, R. Mottaghi, X. Liu, S. Fidler, R. Urtasun, and A. Yuille. Detect what you can: Detecting and representing objects using holistic models and body parts. In CVPR, 2014.
179
+
180
+ Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In NIPS, 2016.
181
+
182
+ Edward Choi, Mohammad Taha Bahadori, Joshua A. Kulas, Andy Schuetz, Walter F. Stewart, and Jimeng Sun. Retain: an interpretable predictive model for healthcare using reverse time attention mechansim. in arXiv:1608.05745v4, 2017.
183
+
184
+ Alexey Dosovitskiy and Thomas Brox. Inverting visual representations with convolutional networks. In CVPR, 2016.
185
+
186
+ Ruth C. Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. In arXiv:1704.03296v1, 2017.
187
+
188
+ Nicholas Frosst and Geoffrey Hinton. Distilling a neural network into a soft decision tree. In arXiv:1711.09784, 2017.
189
+
190
+ Tommaso Furlanello, Zachary C. Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. In arXiv:1805.04770, 2018.
191
+
192
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
193
+
194
+ Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. $\beta$ -vae: learning basic visual concepts with a constrained variational framework. In ICLR, 2017.
195
+
196
+ Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric P. Xing. Harnessing deep neural networks with logic rules. In arXiv:1603.06318v2, 2016.
197
+
198
+ Pieter-Jan Kindermans, Kristof T. Schutt, Maximilian Alber, Klaus-Robert M ¨ uller, Dumitru Erhan, Been Kim,¨ and Sven Dahne. Learning how to explain neural networks: Patternnet and patternattribution. ¨ In ICLR, 2018.
199
+
200
+ PangWei Koh and Percy Liang. Understanding black-box predictions via influence functions. In ICML, 2017.
201
+
202
+ A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.
203
+
204
+ Himabindu Lakkaraju, Ece Kamar, Rich Caruana, and Eric Horvitz. Identifying unknown unknowns in the open world: Representations and policies for guided exploration. In AAAI, 2017.
205
+
206
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document \` recognition. In Proceedings of the IEEE, 1998.
207
+
208
+ Renjie Liao, Alex Schwing, Richard Zemel, and Raquel Urtasun. Learning deep parsimonious representations. In NIPS, 2016.
209
+
210
+ Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In ICCV, 2015.
211
+
212
+ Scott M. Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In NIPS, 2017.
213
+
214
+ Aravindh Mahendran and Andrea Vedaldi. Understanding deep image representations by inverting them. In CVPR, 2015.
215
+
216
+ Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. “why should i trust you?” explaining the predictions of any classifier. In KDD, 2016.
217
+
218
+ Sara Sabour, Nicholas Frosst, and Geoffrey E. Hinton. Dynamic routing between capsules. In NIPS, 2017.
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 ICCV, 2017.
220
+ Marcel Simon and Erik Rodner. Neural activation constellations: Unsupervised part model discovery with convolutional networks. In ICCV, 2015.
221
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
222
+ Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: visualising image classification models and saliency maps. In arXiv:1312.6034, 2013.
223
+ Austin Stone, Huayan Wang, Yi Liu, D. Scott Phoenix, and Dileep George. Teaching compositionality to cnns. In CVPR, 2017.
224
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In arXiv:1312.6199v4, 2014.
225
+ Sarah Tan, Rich Caruana, Giles Hooker, and Albert Gordo. Transparent model distillation. In arXiv:1801.08640, 2018.
226
+ Joel Vaughan, Agus Sudjianto, Erind Brahimi, Jie Chen, and Vijayan N. Nair. Explainable neural networks based on additive index models. in arXiv:1806.01933, 2018.
227
+ Mike Wu, Michael C. Hughes, Sonali Parbhoo, Maurizio Zazzi, Volker Roth, and Finale Doshi-Velez. Beyond sparsity: Tree regularization of deep models for interpretability. In NIPS TIML Workshop, 2017a.
228
+ Tianfu Wu, Xilai Li, Xi Song, Wei Sun, Liang Dong, and Bo Li. Interpretable r-cnn. In arXiv:1711.05226, 2017b.
229
+ Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In NIPS, 2014.
230
+ Jason Yosinski, Jeff Clune, Anh Nguyen, Thomas Fuchs, and Hod Lipson. Understanding neural networks through deep visualization. In ICML Deep Learning Workshop, 2015.
231
+ Matthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, 2014.
232
+ Q. Zhang, W. Wang, and S.-C. Zhu. Examining cnn representations with respect to dataset bias. In AAAI, 2018a.
233
+ Quanshi Zhang, Ying Nian Wu, and Song-Chun Zhu. Interpretable convolutional neural networks. In CVPR, 2018b.
234
+ Quanshi Zhang, Yu Yang, Yuchen Liu, Ying Nian Wu, and Song-Chun Zhu. Unsupervised learning of neural networks to explain neural networks. in arXiv:1805.07468, 2018c.
235
+ Quanshi Zhang, Yu Yang, Ying Nian Wu, and Song-Chun Zhu. Interpreting cnns via decision trees. In arXiv:1802.00121, 2018d.
236
+ Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in deep scene cnns. In ICRL, 2015.
237
+ Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016.
238
+
239
+ # DETAILED RESULTS
240
+
241
+ Table 3: Entropy of contribution distributions. The entropy of contribution distributions reflects the level of bias-interpreting. The lower entropy indicates a larger bias. Our method suffered much less from the bias-interpreting problem than the baseline.
242
+
243
+ <table><tr><td></td><td colspan="2">AlexNet</td><td colspan="2">VGG-M</td><td colspan="2">VGG-S</td><td colspan="2">VGG-16</td></tr><tr><td>bird</td><td>Baseline 3.681</td><td>Ours 5.201</td><td>Baseline 4.543</td><td>Ours 5.885</td><td>Baseline 3.988</td><td>Ours 5.870</td><td>Baseline</td><td>Ours</td></tr><tr><td></td><td>3.294</td><td>5.103</td><td>5.604</td><td></td><td>3.954</td><td>5.913</td><td>4.165</td><td>6.040</td></tr><tr><td>cat</td><td></td><td></td><td></td><td>5.902</td><td></td><td></td><td>4.894</td><td>6.056</td></tr><tr><td>Cow</td><td>3.607</td><td>5.236</td><td>4.616</td><td>5.941</td><td>3.786</td><td>5.901</td><td>3.763</td><td>6.084</td></tr><tr><td>dog</td><td>3.774</td><td>5.243</td><td>5.510</td><td>6.023</td><td>4.087</td><td>5.954</td><td>4.570</td><td>6.061</td></tr><tr><td>horse</td><td>3.745 3.716</td><td>5.278 5.135</td><td>4.722 4.747</td><td>5.921 5.773</td><td>3.802</td><td>5.973 5.869</td><td>4.064</td><td>6.060</td></tr><tr><td>sheep</td><td></td><td></td><td></td><td></td><td>4.152</td><td></td><td>3.850</td><td>6.022</td></tr><tr><td>Avg.</td><td>3.636</td><td>5.199</td><td>4.957</td><td>5.908</td><td>3.962</td><td>5.913</td><td>4.218</td><td>6.054</td></tr></table>
244
+
245
+ <table><tr><td rowspan="2"></td><td colspan="3">AlexNet</td><td colspan="3">VGG-M</td><td colspan="3">VGG-S</td><td colspan="3">VGG-16</td></tr><tr><td>Performer</td><td>Baseline</td><td>Ours</td><td>Performer</td><td>Baseline</td><td>Ours</td><td>Performer</td><td>Baseline</td><td>Ours</td><td>PerformerI</td><td>Baseline</td><td>Ours</td></tr><tr><td>bird</td><td>92.8</td><td>92.8</td><td>93.8</td><td>96.8</td><td>97.3</td><td>97.8</td><td>96.5</td><td>97.0</td><td>96.0</td><td>97.3</td><td>98.5</td><td>98.8</td></tr><tr><td>cat</td><td>96.3</td><td>95.7</td><td>95.2</td><td>94.3</td><td>95.7</td><td>95.5</td><td>95.3</td><td>95.5</td><td>96.0</td><td>94.3</td><td>97.0</td><td>97.0</td></tr><tr><td>cow</td><td>93.4</td><td>92.6</td><td>93.4</td><td>95.2</td><td>94.2</td><td>94.7</td><td>94.4</td><td>94.2</td><td>93.7</td><td>91.1</td><td>97.0</td><td>95.4</td></tr><tr><td>dog</td><td>92.5</td><td>92.5</td><td>92.0</td><td>93.8</td><td>94.7</td><td>94.5</td><td>95.3</td><td>95.5</td><td>93.0</td><td>94.5</td><td>95.0</td><td>94.5</td></tr><tr><td>horse</td><td>91.4</td><td>89.1</td><td>88.1</td><td>92.9</td><td>88.9</td><td>88.9</td><td>92.9</td><td>91.7</td><td>92.7</td><td>99.2</td><td>96.5</td><td>97.7</td></tr><tr><td>sheep</td><td>97.2</td><td>97.2</td><td>99.2</td><td>92.2</td><td>92.7</td><td>92.5</td><td>98.5</td><td>97.0</td><td>98.2</td><td>96.0</td><td>95.7</td><td>96.0</td></tr><tr><td>Average</td><td>93.9</td><td>93.3</td><td>93.6</td><td>94.2</td><td>93.9</td><td>94.0</td><td>95.5</td><td>95.2</td><td>94.9</td><td>95.4</td><td>96.6</td><td>96.6</td></tr></table>
246
+
247
+ <table><tr><td></td><td>Attractive</td><td>Makeup</td><td>Male</td><td>Young</td><td>Avg.</td></tr><tr><td>Performer</td><td>81.5</td><td>92.3</td><td>98.7</td><td>88.3</td><td>90.2</td></tr><tr><td>Explainer, baseline</td><td>73.2</td><td>89.0</td><td>97.6</td><td>81.8</td><td>85.4</td></tr><tr><td>Explainer, ours</td><td>76.0</td><td>88.8</td><td>97.6</td><td>82.8</td><td>86.3</td></tr></table>
248
+
249
+ Table 4: Classification accuracy of the explainer and the performer. We use the the classification accuracy to measure the information loss when using an explainer to interpret the performer. Note that the additional loss for bias-interpreting successfully overcame the bias-interpreting problem, but did not decrease the classification accuracy of the explainer. Another interesting finding of this research is that sometimes, the explainer even outperformed the performer in classification. A similar phenomenon has been reported in (Furlanello et al., 2018). A possible explanation for this phenomenon is given as follows. When the student network in knowledge distillation had sufficient representation power, the student network might learn better representations than the teacher network, because the distillation process removed abnormal middle-layer features corresponding to irregular samples and maintained common features, so as to boost the robustness of the student network.
250
+
251
+ Table 5: Relative deviations of the explainer. The additional loss for bias-interpreting successfully overcame the bias-interpreting problem and just increased a bit (ignorable) relative deviation of the explainer.
252
+
253
+ <table><tr><td rowspan="2"></td><td colspan="2">AlexNet</td><td colspan="2">VGG-M</td><td colspan="2">VGG-S</td><td colspan="2">VGG-16</td></tr><tr><td>Baseline</td><td>Ours</td><td>Baseline</td><td>Ours</td><td>Baseline</td><td>Ours</td><td>Baseline</td><td>Ours</td></tr><tr><td>bird</td><td>0.050</td><td>0.045</td><td>0.033</td><td>0.035</td><td>0.030</td><td>0.031</td><td>0.040</td><td>0.034</td></tr><tr><td>cat</td><td>0.041</td><td>0.040</td><td>0.029</td><td>0.030</td><td>0.036</td><td>0.039</td><td>0.027</td><td>0.030</td></tr><tr><td>cow</td><td>0.047</td><td>0.048</td><td>0.058</td><td>0.062</td><td>0.041</td><td>0.047</td><td>0.051</td><td>0.061</td></tr><tr><td>dog</td><td>0.041</td><td>0.047</td><td>0.025</td><td>0.026</td><td>0.041</td><td>0.047</td><td>0.028</td><td>0.026</td></tr><tr><td>horse</td><td>0.044</td><td>0.043</td><td>0.051</td><td>0.049</td><td>0.045</td><td>0.043</td><td>0.036</td><td>0.034</td></tr><tr><td>sheep</td><td>0.045</td><td>0.049</td><td>0.036</td><td>0.038</td><td>0.035</td><td>0.037</td><td>0.032</td><td>0.041</td></tr><tr><td>Average</td><td>0.045</td><td>0.045</td><td>0.039</td><td>0.040</td><td>0.038</td><td>0.041</td><td>0.036</td><td>0.038</td></tr></table>
254
+
255
+ # IMAGE-SPECIFIC EXPLANATIONS V.S. GENERIC EXPLANATIONS
256
+
257
+ (Zhang et al., 2018d) used a tree structure to summarize the inaccurate rationale of each CNN prediction into generic decision-making models for a number of samples. This method assumed the significance of a feature to be proportional to the Jacobian w.r.t. the feature, which is quite problematic. This assumption is acceptable for (Zhang et al., 2018d), because the objective of (Zhang et al.,
258
+
259
+ 2018d) is to learn a generic explanation for a group of samples, and the inaccuracy in the explanation for each specific sample does not significantly affect the accuracy of the generic explanation. In comparisons, our method focuses on the quantitative explanation for each specific sample, so we design an additive model to obtain more convincing explanations.
260
+
261
+ # VISUALIZATION OF BIAS-INTERPRETING
262
+
263
+ ![](images/5f92c5fadc46d18ef61699cae864d1f0926144a359dc405ed0fd83242c265ee8.jpg)
264
+ Figure 4: We compared the contribution distribution of different visual concepts (filters) that was estimated by our method and the distribution that was estimated by the baseline. The baseline usually used very few visual concepts to make predictions, which was a typical case of bias-interpreting. In comparisons, our method provided a much more reasonable contribution distribution of visual concepts.
265
+
266
+ # Most important reasons
267
+
268
+ No heavy makeup
269
+
270
+ ![](images/c933a728bd7bb68ce814d29ddf0eb4fa98e1ed3e1f23ec0e5506e2bcf97eec4c.jpg)
271
+ Figure 5: Quantitative explanations for the attractive attribute. Bars indicate elementary contributions $\alpha _ { i } y _ { i }$ from features of different face attributes, rather than the prediction of these attributes. For example, the network predicts a negative goatee attribute $y _ { \mathrm { g o a t e e } } < 0$ , and this information makes a positive contribution to the target attractive attribute, $\alpha _ { i } y _ { i } > 0$ .
272
+
273
+ No heavy makeup
274
+
275
+ # Most important reasons
276
+
277
+ 5‐o’clock shadow No bald No heavy makeup No earrings Not wearing lipstick Not wearing necktie
278
+
279
+ No heavy makeup Not wearing earrings Not wearing lipstick Not wearing necktie
280
+
281
+ No 5‐o’clock shadow
282
+ No goatee
283
+ No receding
284
+ hairline
285
+ No sideburns
286
+ Not wearing earrings
287
+ Not wearing necktie
288
+
289
+ ![](images/1049960310c0c07afbfa5c859e1ab50ec576d14d6136c657d28f9eb83145b140.jpg)
290
+ Figure 6: Quantitative explanations $\alpha _ { i } y _ { i }$ for the male attribute.
291
+
292
+ No heavy makeup Not wearing earrings Not wearing lipstick Not wearing necklace
293
+
294
+ No heavy makeup Not wearing earrings Not wearing lipstick
295
+
296
+ # Most important reasons
297
+
298
+ No goatee Not male Wearing lipstick
299
+
300
+ No eyeglasses Not male No rosy cheeks Wear lipstick
301
+
302
+ Not attractive High cheekbones No mustache No pointy nose No rosy cheeks Not wearing lipstick Not wearing necklace
303
+
304
+ ![](images/b5ffd643e2435ed49b2c437cd69e8699dac07deaba7b5b6036d3710353deb73e.jpg)
305
+ Figure 7: Quantitative explanations $\alpha _ { i } y _ { i }$ for the heavy makeup attribute.
306
+
307
+ No eyeglasses
308
+ No gray hear
309
+ Male
310
+ Not wearing lipstick
311
+ Not wearing necklace
312
+ Young
313
+ No bangs
314
+ Not blurry
315
+ No eyeglasses
316
+ Male
317
+ No rosy cheeks
318
+ Wearing hat
319
+ Not wearing lipstick
320
+
321
+ ![](images/2b1fd2ce7bdbba8790a5aaf980ff839eb44add1cd860b5b1433e755fe83d18ac.jpg)
322
+ Figure 8: Quantitative explanations $\alpha _ { i } y _ { i }$ for the young attribute.
323
+
324
+ ![](images/12a2c71fa03a6de7ad7911f8a27cec5fe713a7916fdfa7939ff2d6b4026659ba.jpg)
325
+ Figure 9: Quantitative explanations for object classification. We assigned contributions of filters to their corresponding object parts, so that we obtained contributions of different object parts. According to top figures, we found that different images had similar explanations, i.e. the CNN used similar object parts to classify objects. Therefore, we showed the grad-CAM visualization of feature maps (Selvaraju et al., 2017) on the bottom, which proved this finding.
326
+
327
+ ![](images/2eabdeec6a8b771edc0406ac50d89724c8579a95359e7b610935cf93378f65ba.jpg)
328
+ Figure 10: We visualized interpretable filters in the top conv-layer of a CNN, which were learned based on (Zhang et al., 2018b). We projected activation regions on the feature map of the filter onto the image plane for visualization. Each filter represented a specific object part through different images.
329
+
330
+ # ANNOTATIONS OF PART NAMES OF INTERPRETABLE FILTERS
331
+
332
+ (Zhang et al., 2018b) learned a CNN, where each filter in the top conv-layer represented a specific object part. Thus, we annotated the name of the object part that corresponded to each filter based on visualization results (see Fig. 10 for examples). We simply annotate each filter of the top conv-layer in a performer once, so the total annotation cost was $O \bar { ( } N )$ , where $N$ is the filter number.
333
+
334
+ Then, we assigned the contribution of a filter to its corresponding part, i.e. $C o n t r i _ { p a r t } ~ =$
335
+ $\textstyle \sum _ { i : 1 }$ -th filter represents the part $\alpha _ { i } y _ { i }$ .
336
+
337
+ # DETAILS IN EXPERIMENT 1
338
+
339
+ We changed the order of the ReLU layer and the mask layer after the top conv-layer, i.e. placing the mask layer between the ReLU layer and the top conv-layer. According to (Zhang et al., 2018b), this operation did not affect the performance of the pre-trained performer. We used the output of the mask layer as $x$ and plugged $x$ to Equation (5) to compute $\{ y _ { i } \}$ .
340
+
341
+ Because the distillation process did not use any ground-truth class labels, the explainer’s output $\textstyle \sum _ { i } { \alpha _ { i } y _ { i } + b }$ was not sophisticatedly learned for classification. Thus, we used a threshold $\sum _ { i } \alpha _ { i } y _ { i } +$ $b \ > \ \tau \ ( \tau \ \approx \ 0 )$ , instead of 0, as the decision boundary for classification. $\tau$ was selected as the one that maximized the accuracy. Such experimental settings made a fairer comparison between the performer and the explainer.
parse/train/SJfWKsC5K7/SJfWKsC5K7_content_list.json ADDED
@@ -0,0 +1,1737 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "EXPLAINING NEURAL NETWORKS SEMANTICALLY AND QUANTITATIVELY ",
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
+ 174,
20
+ 398,
21
+ 202
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 239,
32
+ 544,
33
+ 253
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "This paper presents a method to explain the knowledge encoded in a convolutional neural network (CNN) quantitatively and semantically. The analysis of the specific rationale of each prediction made by the CNN presents a key issue of understanding neural networks, but it is also of significant practical values in certain applications. In this study, we propose to distill knowledge from the CNN into an explainable additive model, so that we can use the explainable model to provide a quantitative explanation for the CNN prediction. We analyze the typical bias-interpreting problem of the explainable model and develop prior losses to guide the learning of the explainable additive model. Experimental results have demonstrated the effectiveness of our method. ",
40
+ "bbox": [
41
+ 233,
42
+ 270,
43
+ 764,
44
+ 409
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 436,
55
+ 336,
56
+ 452
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Convolutional neural networks (CNNs) (LeCun et al., 1998; Krizhevsky et al., 2012; He et al., 2016) have achieved superior performance in various tasks, such as object classification and detection. Besides the discrimination power of neural networks, the interpretability of neural networks has received an increasing attention in recent years. ",
63
+ "bbox": [
64
+ 174,
65
+ 468,
66
+ 825,
67
+ 525
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this paper, we focus on a new problem, i.e. explaining the specific rationale of each network prediction semantically and quantitatively. “Semantic explanations” and “quantitative explanations” are two core issues of understanding neural networks. ",
74
+ "bbox": [
75
+ 176,
76
+ 531,
77
+ 825,
78
+ 573
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "1. Semantic explanations: We hope to explain the logic of each network prediction using clear visual concepts, instead of using middle-layer features without clear meanings or simply extracting pixel-level correlations between network inputs and outputs. We believe that semantic explanations may satisfy specific demands in real applications. ",
85
+ "bbox": [
86
+ 212,
87
+ 585,
88
+ 823,
89
+ 641
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "2. Quantitative explanations: In contrast to traditional qualitative explanations for neural networks, quantitative explanations enable people to diagnose feature representations inside neural networks and help neural networks earn trust from people. We expect the neural network to provide the quantitative rationale of the prediction, i.e. clarifying which visual concepts activate the neural network and how much they contribute to the prediction score. ",
96
+ "bbox": [
97
+ 212,
98
+ 647,
99
+ 825,
100
+ 715
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Above two requirements present significant challenges to state-of-the-art algorithms. To the best of our knowledge, no previous studies simultaneously explained network predictions using clear visual concepts and quantitatively decomposed the prediction score into value components of these visual concepts. ",
107
+ "bbox": [
108
+ 176,
109
+ 728,
110
+ 825,
111
+ 784
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Task: Therefore, in this study, we propose to learn another neural network, namely an explainer network, to explain CNN predictions. Accordingly, we can call the target CNN a performer network. Besides the performer, we also require a set of models that are pre-trained to detect different visual concepts. These visual concepts will be used to explain the logic of the performer’s prediction. We are also given input images of the performer, but we do not need any additional annotations on the images. Then, the explainer is learned to mimic the logic inside the performer, i.e. the explainer receives the same features as the performer and is expected to generate similar prediction scores. ",
118
+ "bbox": [
119
+ 174,
120
+ 791,
121
+ 825,
122
+ 888
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "As shown in Fig. 1, the explainer uses pre-trained visual concepts to explain each prediction. The explainer is designed as an additive model, which decomposes the prediction score into the sum of multiple value components. Each value component is computed based on a specific visual concept. In this way, we can roughly consider these value components as quantitative contributions of the visual concepts to the final prediction score. ",
129
+ "bbox": [
130
+ 173,
131
+ 895,
132
+ 823,
133
+ 924
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "image",
139
+ "img_path": "images/ae6d0295f173a176cd50c2415980375f8f15a79643f284f03f4d855df9324649.jpg",
140
+ "image_caption": [
141
+ "Figure 1: Explainer. We distill knowledge of a performer into an explainer as a paraphrase of the performer’s representations. The explainer decomposes the prediction score into value components of semantic concepts, thereby obtaining quantitative semantic explanations for the performer. "
142
+ ],
143
+ "image_footnote": [],
144
+ "bbox": [
145
+ 189,
146
+ 103,
147
+ 802,
148
+ 185
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "",
155
+ "bbox": [
156
+ 174,
157
+ 247,
158
+ 825,
159
+ 290
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "More specifically, we learn the explainer via knowledge distillation. Note that we do not use any ground-truth annotations on input images to supervise the explainer. It is because the task of the explainer is not to achieve a high prediction accuracy, but to mimic the performer’s logic in prediction, no matter whether the performer’s prediction is correct or not. ",
166
+ "bbox": [
167
+ 174,
168
+ 296,
169
+ 825,
170
+ 352
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "Thus, the explainer can be regarded as a semantic paraphrase of feature representations inside the performer, and we can use the explainer to understand the logic of the performer’s prediction. Theoretically, the explainer usually cannot recover the exact prediction score of the performer, owing to the limit of the representation capacity of visual concepts. The difference of the prediction score between the performer and the explainer corresponds to the information that cannot be explained by the visual concepts. ",
177
+ "bbox": [
178
+ 174,
179
+ 359,
180
+ 825,
181
+ 443
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "Challenges: Distilling knowledge from a pre-trained neural network into an additive model usually suffers from the problem of bias-interpreting. When we use a large number of visual concepts to explain the logic inside the performer, the explainer may biasedly select very few visual concepts, instead of all visual concepts, as the rationale of the prediction (Fig. 4 in the appendix visualizes the bias-interpreting problem). Just like the typical over-fitting problem, theoretically, the bias interpreting is an ill-defined problem. To overcome this problem, we propose two types of losses for prior weights of visual concepts to guide the learning process. The prior weights push the explainer to compute a similar Jacobian of the prediction score w.r.t. visual concepts as the performer in early epochs, in order to avoid bias-interpreting. ",
188
+ "bbox": [
189
+ 173,
190
+ 449,
191
+ 825,
192
+ 575
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "Originality: Our “semantic-level” explanation for CNN predictions has essential differences from traditional studies of “pixel-level” interpreting neural networks, such as the visualization of features in neural networks (Zeiler & Fergus, 2014; Mahendran & Vedaldi, 2015; Simonyan et al., 2013; Dosovitskiy & Brox, 2016; Fong & Vedaldi, 2017; Selvaraju et al., 2017), the extraction of pixellevel correlations between network inputs and outputs (Koh & Liang, 2017; Ribeiro et al., 2016; Lundberg & Lee, 2017), and the learning of neural networks with interpretable middle-layer features (Zhang et al., 2018b; Sabour et al., 2017). ",
199
+ "bbox": [
200
+ 173,
201
+ 582,
202
+ 825,
203
+ 680
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "In particular, the explainer explains the performer without affecting the original discrimination power of the performer. As discussed in (Bau et al., 2017), the interpretability of features is not equivalent to, and usually even conflicts with the discrimination power of features. Compared to forcing the performer to learn interpretable features, our strategy of explaining the performer solves the dilemma between the interpretability and the discriminability. In addition, our quantitative explanation has special values beyond the qualitative analysis of CNN predictions (Zhang et al., 2018c). ",
210
+ "bbox": [
211
+ 174,
212
+ 686,
213
+ 823,
214
+ 770
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "Potential values of the explainer: Quantitatively and semantically explaining a performer is of considerable practical values when the performer needs to earn trust from people in critical applications. As mentioned in (Zhang et al., 2018a), owing to the potential bias in datasets and feature representations, a high testing accuracy still cannot fully ensure correct feature representations in neural networks. Thus, semantically and quantitatively clarifying the logic of each network prediction is a direct way to diagnose feature representations of neural networks. Fig. 3 shows example explanations for the performer’s predictions. Predictions whose explanations conflict people’s common sense may reflect problematic feature representations inside the performer. ",
221
+ "bbox": [
222
+ 174,
223
+ 776,
224
+ 825,
225
+ 888
226
+ ],
227
+ "page_idx": 1
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "Contributions of this study are summarized as follows. (i) In this study, we focus on a new task, i.e. semantically and quantitatively explaining CNN predictions. (ii) We propose a new method to explain neural networks, i.e. distilling knowledge from a pre-trained performer into an interpretable additive explainer. Our strategy of using the explainer to explain the performer avoids hurting the discrimination power of the performer. (iii) We develop novel losses to overcome the typical biasinterpreting problem. Preliminary experimental results have demonstrated the effectiveness of the proposed method. (iv) Theoretically, the proposed method is a generic solution to the problem of interpreting neural networks. We have applied our method to different benchmark CNNs for different applications, which has proved the broad applicability of our method. ",
232
+ "bbox": [
233
+ 173,
234
+ 895,
235
+ 823,
236
+ 924
237
+ ],
238
+ "page_idx": 1
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "",
243
+ "bbox": [
244
+ 174,
245
+ 103,
246
+ 825,
247
+ 202
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "2 RELATED WORK ",
254
+ "text_level": 1,
255
+ "bbox": [
256
+ 176,
257
+ 222,
258
+ 341,
259
+ 237
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "In this paper, we limit our discussion within the scope of understanding feature representations of neural networks. ",
266
+ "bbox": [
267
+ 173,
268
+ 252,
269
+ 823,
270
+ 281
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Network visualization: The visualization of feature representations inside a neural network is the most direct way of opening the black-box of the neural network. Related techniques include gradient-based visualization (Zeiler & Fergus, 2014; Mahendran & Vedaldi, 2015; Simonyan et al., 2013; Yosinski et al., 2015) and up-convolutional nets (Dosovitskiy & Brox, 2016) to invert feature maps of conv-layers into images. However, recent visualization results with clear semantic meanings were usually generated with strict constraints. These constraints made visualization results biased towards people’s preferences. Subjectively visualizing all information of a filter usually produced chaotic results. Thus, there is still a considerable gap between network visualization and semantic explanations for neural networks. ",
277
+ "bbox": [
278
+ 174,
279
+ 287,
280
+ 825,
281
+ 412
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "Network diagnosis: Some studies diagnose feature representations inside a neural network. (Yosinski et al., 2014) measured features transferability in intermediate layers of a neural network. (Aubry & Russell, 2015) visualized feature distributions of different categories in the feature space. (Ribeiro et al., 2016; Lundberg & Lee, 2017; Kindermans et al., 2018; Fong & Vedaldi, 2017; Selvaraju et al., 2017) extracted rough pixel-level correlations between network inputs and outputs, i.e. estimating image regions that directly contribute the network output. Network-attack methods (Koh & Liang, 2017; Szegedy et al., 2014) computed adversarial samples to diagnose a CNN. (Lakkaraju et al., 2017) discovered knowledge blind spots of a CNN in a weakly-supervised manner. (Zhang et al., 2018a) examined representations of conv-layers and automatically discover biased representations of a CNN due to the dataset bias. However, above methods usually analyzed a neural network at the pixel level and did not summarize the network knowledge into clear visual concepts. ",
288
+ "bbox": [
289
+ 174,
290
+ 420,
291
+ 825,
292
+ 573
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "(Bau et al., 2017) defined six types of semantics for CNN filters, i.e. objects, parts, scenes, textures, materials, and colors. Then, (Zhou et al., 2015) proposed a method to compute the image-resolution receptive field of neural activations in a feature map. Other studies retrieved middle-layer features from CNNs representing clear concepts. (Simon & Rodner, 2015) retrieved features to describe objects from feature maps, respectively. (Zhou et al., 2015; 2016) selected neural units to describe scenes. Note that strictly speaking, each CNN filter usually represents a mixture of multiple semantic concepts. Unlike previous studies, we are more interested in analyzing the quantitative contribution of each semantic concept to each prediction, which was not discussed in previous studies. ",
299
+ "bbox": [
300
+ 174,
301
+ 579,
302
+ 825,
303
+ 690
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "Learning interpretable representations: A new trend in the scope of network interpretability is to learn interpretable feature representations in neural networks (Hu et al., 2016; Stone et al., 2017; Liao et al., 2016) in an un-/weakly-supervised manner. Capsule nets (Sabour et al., 2017) and interpretable RCNN (Wu et al., 2017b) learned interpretable features in intermediate layers. InfoGAN (Chen et al., 2016) and $\\beta$ -VAE (Higgins et al., 2017) learned well-disentangled codes for generative networks. Interpretable CNNs (Zhang et al., 2018b) learned filters in intermediate layers to represent object parts without given part annotations. However, as mentioned in (Bau et al., 2017; Zhang et al., 2018c), interpretable features usually do not have a high discrimination power. Therefore, we use the explainer to interpret the pre-trained performer without hurting the discriminability of the performer. ",
310
+ "bbox": [
311
+ 174,
312
+ 698,
313
+ 825,
314
+ 837
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "Explaining neural networks via knowledge distillation: Distilling knowledge from a black-box model into an explainable model is an emerging direction in recent years. (Zhang et al., 2018d) used a tree structure to summarize the inaccurate1 rationale of each CNN prediction into generic decision-making models for a number of samples. In contrast, we pursue the explicitly quantitative explanation for each CNN prediction. (Choi et al., 2017) learned an explainable additive model, and (Vaughan et al., 2018) distilled knowledge of a network into an additive model. (Frosst & Hinton, 2017; Tan et al., 2018; Che et al., 2016; Wu et al., 2017a) distilled representations of neural networks into tree structures. These methods did not explain the network knowledge using humaninterpretable semantic concepts. More crucially, compared to previous additive models (Vaughan et al., 2018), our research successfully overcomes the bias-interpreting problem, which is the core challenge when there are lots of visual concepts for explanation. ",
321
+ "bbox": [
322
+ 174,
323
+ 844,
324
+ 823,
325
+ 900
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "",
332
+ "bbox": [
333
+ 173,
334
+ 103,
335
+ 825,
336
+ 202
337
+ ],
338
+ "page_idx": 3
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "3 ALGORITHM ",
343
+ "text_level": 1,
344
+ "bbox": [
345
+ 176,
346
+ 220,
347
+ 312,
348
+ 237
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "In this section, we distill knowledge from a pre-trained performer $f$ to an explainable additive model. We are given a performer $f$ and $n$ neural networks $\\{ f _ { i } | i = 1 , 2 , \\dots , n \\}$ that are pre-trained to detect $n$ different visual concepts. We learn the $n$ neural networks along with the performer, and the $n$ neural networks are expected to share low-layer features with the performer. Our method also requires a set of training samples for the performer $f$ . The goal of the explainer is to use inference values of the $n$ visual concepts to explain prediction scores of the performer. Note that we do not need any annotations on training samples w.r.t. the task, because additional supervision will push the explainer towards a good performance of the task, instead of objectively reflecting the knowledge in the performer. ",
355
+ "bbox": [
356
+ 173,
357
+ 252,
358
+ 825,
359
+ 378
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "Given an input image $I$ , let ${ \\hat { y } } = f ( I )$ denote the output of the performer. Without loss of generality, we assume that $\\hat { y }$ is a scalar. If the performer has multiple outputs (e.g. a neural network for multicategory classification), we can learn an explainer to interpret each scalar output of the performer. In particular, when the performer takes a softmax layer as the last layer, we use the feature score before the softmax layer as $\\hat { y }$ , so that $\\hat { y }$ ’s neighboring scores will not affect the value of $\\hat { y }$ . ",
366
+ "bbox": [
367
+ 174,
368
+ 383,
369
+ 825,
370
+ 455
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "We design the following additive explainer model, which uses a mixture of visual concepts to approximate the function of the performer. The explainer decomposes the prediction score $\\hat { y }$ into value components of pre-defined visual concepts. ",
377
+ "bbox": [
378
+ 174,
379
+ 460,
380
+ 825,
381
+ 503
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "equation",
387
+ "img_path": "images/5f080c60179a6da10740b2bc472bd3310628fb0c7ef710b3c10cd55899da3895.jpg",
388
+ "text": "$$\n\\begin{array} { r l } { \\hat { y } \\approx \\ } & { { } \\underset { \\mathcal { S } } { \\underbrace { \\alpha _ { 1 } ( I ) \\cdot y _ { 1 } } } + \\alpha _ { 2 } ( I ) \\cdot y _ { 2 } + \\ldots + \\alpha _ { n } ( I ) \\cdot y _ { n } + b , \\quad y _ { i } = f _ { i } ( I ) , \\quad i = 1 , 2 , \\ldots , n } \\end{array}\n$$",
389
+ "text_format": "latex",
390
+ "bbox": [
391
+ 209,
392
+ 508,
393
+ 792,
394
+ 531
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "| {z }Quantitative contribution from the first visual concept ",
401
+ "bbox": [
402
+ 179,
403
+ 534,
404
+ 426,
405
+ 545
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "where $y _ { i }$ and $\\alpha _ { i } ( I )$ denote the scalar value and the weight for the $i$ -th visual concept, respectively. $b$ is a bias term. $y _ { i }$ is given as the strength or confidence of the detection of the $i$ -th visual concept. We can regard the value of $\\alpha _ { i } ( I ) \\cdot y _ { i }$ as the quantitative contribution of the $i$ -th visual concept to the final prediction. In most cases, the explainer cannot recover all information of the performer. The prediction difference between the explainer and the performer reflects the limit of the representation capacity of visual concepts. ",
412
+ "bbox": [
413
+ 174,
414
+ 551,
415
+ 825,
416
+ 636
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "According to the above equation, the core task of the explainer is to estimate a set of weights $_ { \\alpha } =$ $[ \\alpha _ { 1 } , \\alpha _ { 2 } , \\ldots , \\alpha _ { n } ]$ , which minimizes the difference of the prediction score between the performer and the explainer. Different input images may obtain different weights $_ { \\pmb { \\alpha } }$ , which correspond to different decision-making modes of the performer. For example, a performer may mainly use head patterns to classify a standing bird, while it may increase the weight for the wing concept to classify a flying bird. Therefore, we design another neural network $g$ with parameters $\\theta _ { g }$ (i.e. the explainer), which uses the input image $I$ to estimate the $n$ weights. We learn the explainer with the following knowledge-distillation loss. ",
423
+ "bbox": [
424
+ 173,
425
+ 642,
426
+ 825,
427
+ 755
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "equation",
433
+ "img_path": "images/b198913a667c346572f07d2841816ff16b32ccd475ec7f4e8d94f8e8efba78e9.jpg",
434
+ "text": "$$\n\\pmb { \\alpha } = g ( I ) , \\qquad L = \\| \\hat { \\boldsymbol y } - \\sum _ { i = 1 } ^ { n } \\boldsymbol { \\alpha } _ { i } \\cdot \\boldsymbol { y } _ { i } - b \\| ^ { 2 }\n$$",
435
+ "text_format": "latex",
436
+ "bbox": [
437
+ 354,
438
+ 760,
439
+ 642,
440
+ 801
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "However, without any prior knowledge about the distribution of the weight $\\alpha _ { i }$ , the learning of $g$ usually suffers from the problem of bias-interpreting. The neural network $g$ may biasedly select very few visual concepts to approximate the performer as a shortcut solution, instead of sophisticatedly learning relationships between the performer output and all visual concepts. ",
447
+ "bbox": [
448
+ 174,
449
+ 805,
450
+ 825,
451
+ 862
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "Thus, to overcome the bias-interpreting problem, we use a loss $\\mathcal { L }$ for priors of $_ { \\pmb { \\alpha } }$ to guide the learning process in early epochs. ",
458
+ "bbox": [
459
+ 171,
460
+ 867,
461
+ 823,
462
+ 897
463
+ ],
464
+ "page_idx": 3
465
+ },
466
+ {
467
+ "type": "equation",
468
+ "img_path": "images/3fdc17510e3e40157868099f1aa306061f63c259d9987219ddb68696b34784cd.jpg",
469
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta _ { g } , b } L o s s , \\quad \\quad L o s s = L + \\lambda ( t ) \\cdot \\mathcal { L } ( \\alpha , \\mathbf { w } ) , \\quad \\quad \\mathrm { s . t . } \\operatorname* { l i m } _ { t \\to \\infty } \\lambda ( t ) = 0\n$$",
470
+ "text_format": "latex",
471
+ "bbox": [
472
+ 276,
473
+ 901,
474
+ 723,
475
+ 928
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "image",
481
+ "img_path": "images/e5b5085d1094ee9474a45ab266fffddd73d8fc08f80cb155ab1b9697bbd68db9.jpg",
482
+ "image_caption": [
483
+ "Figure 2: Two typical types of neural networks. (left) A performer models interpretable visual concepts in its intermediate layers. For example, each filter in a certain conv-layer represents a specific visual concept. (right) The performer and visual concepts are jointly learned, and they share features in intermediate layers. "
484
+ ],
485
+ "image_footnote": [],
486
+ "bbox": [
487
+ 189,
488
+ 101,
489
+ 807,
490
+ 203
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "where w denotes prior weights, which represent a rough relationship between the performer’s prediction value and $n$ visual concepts. Just like $_ { \\pmb { \\alpha } }$ , different input images also have different prior weights w. The loss $\\mathcal { L } ( \\alpha , \\mathbf { w } )$ penalizes the dissimilarity between $_ { \\pmb { \\alpha } }$ and w. ",
497
+ "bbox": [
498
+ 174,
499
+ 276,
500
+ 826,
501
+ 319
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "Note that the prior weights w are approximated with strong assumptions (we will introduce two different ways of computing w later). We use inaccurate w to avoid significant bias-interpreting, rather than pursue a high accuracy. Thus, we set a decreasing weight for $\\mathcal { L }$ , i.e. $\\begin{array} { r } { \\lambda ( t ) = \\frac { \\beta } { \\sqrt { t } } } \\end{array}$ , where $\\beta$ is a scalar constant, and $t$ denotes the epoch number. In this way, we mainly apply the prior loss $\\mathcal { L }$ in early epochs. Then, in late epochs, the influence of $\\mathcal { L }$ gradually decreases, and our method gradually shifts its attention to the distillation loss for a high distillation accuracy. ",
508
+ "bbox": [
509
+ 173,
510
+ 325,
511
+ 825,
512
+ 415
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "We design two types of losses for prior weights, as follows. ",
519
+ "bbox": [
520
+ 176,
521
+ 420,
522
+ 563,
523
+ 435
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "equation",
529
+ "img_path": "images/2fb2aea1a8d7cba91599953cf5cffd356a550dca6a9dc2d243f5d726b8177926.jpg",
530
+ "text": "$$\n\\mathcal { L } ( \\alpha , \\mathbf { w } ) = \\left\\{ \\begin{array} { l l } { c r o s s { E n t r o p y } \\big ( \\frac { \\alpha } { \\lVert \\alpha \\rVert _ { 1 } } , \\frac { \\mathbf { w } } { \\lVert \\mathbf { w } \\rVert _ { 1 } } \\big ) , } & { \\forall i , \\alpha _ { i } , w _ { i } \\ge 0 } \\\\ { \\lVert \\frac { \\alpha } { \\lVert \\alpha \\rVert _ { 2 } } - \\frac { \\mathbf { w } } { \\lVert \\mathbf { w } \\rVert _ { 2 } } \\lVert _ { 2 } ^ { 2 } , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right.\n$$",
531
+ "text_format": "latex",
532
+ "bbox": [
533
+ 292,
534
+ 441,
535
+ 696,
536
+ 479
537
+ ],
538
+ "page_idx": 4
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "Some applications require a positive relationship between the prediction of the performer and each visual concept, i.e. each weight $\\alpha _ { i }$ must be a positive scalar. In this case, we use the cross-entropy between $_ { \\pmb { \\alpha } }$ and $\\mathbf { w }$ as the prior loss. In other cases, the MSE loss between $_ { \\pmb { \\alpha } }$ and $\\mathbf { w }$ is used as the loss. $\\| \\cdot \\| _ { 1 }$ and $\\| \\cdot \\| _ { 2 }$ denote the L-1 norm and L-2 norm, respectively. ",
543
+ "bbox": [
544
+ 174,
545
+ 484,
546
+ 825,
547
+ 541
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "In particular, in order to ensure $\\alpha _ { i } \\geq 0$ in certain applications, we add a non-linear activation layer as the last layer of $g$ , i.e. $\\alpha = \\log [ 1 + \\exp ( x ) ]$ , where $x$ is the output of the last conv-layer. ",
554
+ "bbox": [
555
+ 174,
556
+ 546,
557
+ 823,
558
+ 577
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "3.1 COMPUTATION OF PRIOR WEIGHTS w",
565
+ "text_level": 1,
566
+ "bbox": [
567
+ 176,
568
+ 593,
569
+ 473,
570
+ 607
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "In this subsection, we will introduce two techniques to efficiently compute rough prior weights w, which are oriented to the following two cases in application. ",
577
+ "bbox": [
578
+ 173,
579
+ 618,
580
+ 823,
581
+ 647
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "Case 1, filters in intermediate conv-layers of the performer are interpretable: As shown in Fig. 2(left), learning a neural network with interpretable filters is an emerging research direction in recent years. For example, (Zhang et al., 2018b) proposed a method to learn CNNs for object classification, where each filter in a high conv-layer is exclusively triggered by the appearance of a specific object part (see Fig. 10 in the appendix for the visualization of filters). Thus, we can interpret the classification score of an object as a linear combination of elementary scores for the detection of object parts. Because such interpretable filters are automatically learned without part annotations, the quantitative explanation for the CNN (i.e. the performer) can be divided into the following two tasks: (i) annotating the name of the object part that is represented by each filter, and (ii) learning an explainer to disentangle the exact additive contribution of each filter (or each object part) to the performer output. ",
588
+ "bbox": [
589
+ 173,
590
+ 654,
591
+ 825,
592
+ 808
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "In this way, each $f _ { i }$ , $i = 1 , 2 , \\ldots , n$ , is given as an interpretable filter of the performer. According to (Zhang et al., 2018a), we can roughly represent the network prediction as ",
599
+ "bbox": [
600
+ 171,
601
+ 813,
602
+ 823,
603
+ 842
604
+ ],
605
+ "page_idx": 4
606
+ },
607
+ {
608
+ "type": "equation",
609
+ "img_path": "images/237afb77d36ca5fcfc58c393392d854e526384e6ddd465d668fc01b8f60867b2.jpg",
610
+ "text": "$$\n{ \\hat { y } } \\approx \\sum _ { i } w _ { i } y _ { i } + b , \\qquad { \\mathrm { s . t . } } \\quad { \\left\\{ \\begin{array} { l l } { y _ { i } } & { = \\sum _ { h , w } x _ { h w i } } \\\\ { w _ { i } } & { = { \\frac { 1 } { Z } } \\sum _ { h , w } { \\frac { \\partial { \\hat { y } } } { \\partial x _ { h w i } } } } \\end{array} \\right. }\n$$",
611
+ "text_format": "latex",
612
+ "bbox": [
613
+ 313,
614
+ 847,
615
+ 673,
616
+ 887
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "where $\\boldsymbol { x } \\in \\mathbb { R } ^ { H \\times W \\times n }$ denotes a feature map of the interpretable conv-layer, and $x _ { h w i }$ is referred to as the activation unit in the location $( h , w )$ of the $i$ -th channel. $y _ { i }$ measures the confidence of detecting the object part corresponding to the $i$ -th filter. Here, we can roughly use the Jacobian of the network output w.r.t. the filter to approximate the weight $w _ { i }$ of the filter. $Z$ is for normalization. Considering that the normalization operation in Equation (4) eliminates Z, we can directly use Ph,w ∂yˆ∂xhwi as prior weights w in Equation (4) without a need to compute the exact value of . ",
623
+ "bbox": [
624
+ 173,
625
+ 895,
626
+ 823,
627
+ 924
628
+ ],
629
+ "page_idx": 4
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "",
634
+ "bbox": [
635
+ 174,
636
+ 103,
637
+ 823,
638
+ 162
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "Case 2, neural networks for visual concepts share features in intermediate layers with the performer: As shown in Fig. 2(right), given a neural network for the detection of multiple visual concepts, using certain visual concepts to explain a new visual concept is a generic way to interpret network predictions with broad applicability. Let us take the detection of a certain visual concept as the target $\\hat { y }$ and use other visual concepts as $\\{ y _ { i } \\}$ to explain $\\hat { y }$ . All visual concepts share features in intermediate layers. ",
645
+ "bbox": [
646
+ 174,
647
+ 170,
648
+ 825,
649
+ 253
650
+ ],
651
+ "page_idx": 5
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "Then, we estimate a rough numerical relationship between $\\hat { y }$ and the score of each visual concept $y _ { i }$ . Let $x$ be a middle-layer feature shared by both the target and the $i$ -th visual concept. When we modify the feature $x$ , we can represent the value change of $y _ { i }$ using a Taylor series, $\\Delta y _ { i } =$ $\\begin{array} { r } { \\frac { \\partial y _ { i } } { \\partial x } \\otimes \\Delta x + O ( \\Delta ^ { 2 } x ) } \\end{array}$ , where $\\otimes$ denotes the convolution operation. Thus, when we push the feature ∂x towards the direction of boosting $y _ { i }$ , i.e. $\\Delta x = \\epsilon \\frac { \\partial y _ { i } } { \\partial x }$ $\\epsilon$ is a small constant), the change of the $i$ -th visual concept can be approximated as $\\Delta y _ { i } = \\epsilon \\| \\frac { \\partial y _ { i } } { \\partial x } \\| _ { F } ^ { 2 }$ , where $\\| \\cdot \\| _ { F }$ denotes the Frobenius norm. Meanwhile, ∆x also affects the target concept by ∆ˆy = \u000f ∂yˆ∂x ∂yi∂x . Thus, we can roughly estimate the weight as wi = ∆ˆy∆yi . ",
656
+ "bbox": [
657
+ 174,
658
+ 261,
659
+ 825,
660
+ 392
661
+ ],
662
+ "page_idx": 5
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "4 EXPERIMENTS ",
667
+ "text_level": 1,
668
+ "bbox": [
669
+ 176,
670
+ 409,
671
+ 326,
672
+ 425
673
+ ],
674
+ "page_idx": 5
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "We designed two experiments to use our explainers to interpret different benchmark CNNs oriented to two different applications, in order to demonstrate the broad applicability of our method. In the first experiment, we used the detection of object parts to explain the detection of the entire object. In the second experiment, we used various face attributes to explain the prediction of another face attribute. We evaluated explanations obtained by our method qualitatively and quantitatively. ",
679
+ "bbox": [
680
+ 174,
681
+ 441,
682
+ 825,
683
+ 511
684
+ ],
685
+ "page_idx": 5
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "4.1 EXPERIMENT 1: USING OBJECT PARTS TO EXPLAIN OBJECT CLASSIFICATION ",
690
+ "text_level": 1,
691
+ "bbox": [
692
+ 176,
693
+ 529,
694
+ 741,
695
+ 542
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "In this experiment, we used the method proposed in (Zhang et al., 2018b) to learn a CNN, where each filter in the top conv-layer represents a specific object part. We followed exact experimental settings in (Zhang et al., 2018b), which used the Pascal-Part dataset (Chen et al., 2014) to learn six CNNs for the six animal2 categories in the dataset. Each CNN was learned to classify the target animal from random images. We considered each CNN as a performer and regarded its interpretable filters in the top conv-layer as visual concepts to interpret the classification score. ",
702
+ "bbox": [
703
+ 174,
704
+ 555,
705
+ 825,
706
+ 638
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "Four types of CNNs as performers: Following experimental settings in (Zhang et al., 2018b), we applied our method to four types of CNNs, including the AlexNet (Krizhevsky et al., 2012), the VGG-M, VGG-S, and VGG-16 networks (Simonyan & Zisserman, 2015), i.e. we learned CNNs for six categories based on each network structure. Note that as discussed in (Zhang et al., 2018b), skip connections in residual networks (He et al., 2016) increased the difficulty of learning part features, so they did not learn interpretable filters in residual networks. ",
713
+ "bbox": [
714
+ 174,
715
+ 645,
716
+ 825,
717
+ 729
718
+ ],
719
+ "page_idx": 5
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "Learning the explainer: The AlexNet/VGG-M/VGG-S/VGG-16 performer had 256/512/512/512 filters in its top conv-layer, so we set $n = 2 5 6$ , 512, 512, 512 for these networks. We used the masked output of the top conv-layer as $x$ and plugged $x$ to Equation (5) to compute $\\{ y _ { i } \\} ^ { 1 }$ . We used the 152- layer ResNet (He et al., $2 0 1 6 ) ^ { 3 }$ as $g$ to estimate weights of visual concepts4. We set $\\beta = 1 0$ for the learning of all explainers. Note that all interpretable filters in the performer represented object parts of the target category on positive images, instead of describing random (negative) images. ",
724
+ "bbox": [
725
+ 174,
726
+ 736,
727
+ 825,
728
+ 820
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "table",
734
+ "img_path": "images/2da1dda9cb738f744b0e161cd4efad98ab2d7a6a7fa681523292a2acd4e8393b.jpg",
735
+ "table_caption": [
736
+ "Table 1: Entropy of contribution distributions estimated by the explainer. A lower entropy of contribution distributions reflects more significant bias-interpreting. Our method suffered much less from the bias-interpreting problem than the baseline. Please see the appendix for more results. "
737
+ ],
738
+ "table_footnote": [],
739
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"4\">Experiment1</td><td colspan=\"5\">Experiment 2</td></tr><tr><td>AlexNet</td><td>VGG-M</td><td>VGG-S</td><td>VGG-16</td><td>attractive</td><td>makeup</td><td>male</td><td>young</td><td>Avg.</td></tr><tr><td>Baseline</td><td>3.636</td><td>4.957</td><td>3.962</td><td>4.218</td><td>3.185</td><td>3.120</td><td>3.139</td><td>3.100</td><td>3.136</td></tr><tr><td>Ours</td><td>5.199</td><td>5.908</td><td>5.913</td><td>6.054</td><td>3.216</td><td>3.134</td><td>3.139</td><td>3.160</td><td>3.162</td></tr></table>",
740
+ "bbox": [
741
+ 189,
742
+ 101,
743
+ 808,
744
+ 152
745
+ ],
746
+ "page_idx": 6
747
+ },
748
+ {
749
+ "type": "table",
750
+ "img_path": "images/fa819dd999ffe0b11653972b9f2b6a4ee0331306b32e3fefc95027fb957161a9.jpg",
751
+ "table_caption": [],
752
+ "table_footnote": [
753
+ "Table 2: Classification accuracy and relative deviations of the explainer and the performer. We used relative deviations and the decrease of the classification accuracy to measure the information that could not be explained by pre-defined visual concepts. Please see the appendix for more results. "
754
+ ],
755
+ "table_body": "<table><tr><td rowspan=\"2\" colspan=\"2\"></td><td colspan=\"4\">Experiment 1</td><td colspan=\"5\">Experiment 2</td></tr><tr><td>AlexNet</td><td>VGG-M</td><td>VGG-S</td><td>VGG-16</td><td>attractive</td><td>makeup</td><td>male</td><td>young</td><td>Avg.</td></tr><tr><td>Classification</td><td>Performer</td><td>93.9</td><td>94.2</td><td>95.5</td><td>95.4</td><td>81.5</td><td>92.3</td><td>98.7</td><td>88.3</td><td>90.2</td></tr><tr><td>accuracy</td><td>Explainer</td><td>93.6</td><td>94.0</td><td>94.9</td><td>96.6</td><td>76.0</td><td>88.8</td><td>97.6</td><td>82.8</td><td>87.1</td></tr><tr><td>Relative</td><td>Performer</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>deviation</td><td>Explainer</td><td>0.045</td><td>0.040</td><td>0.041</td><td>0.038</td><td>0.163</td><td>0.100</td><td>0.067</td><td>0.139</td><td>0.117</td></tr></table>",
756
+ "bbox": [
757
+ 207,
758
+ 209,
759
+ 792,
760
+ 272
761
+ ],
762
+ "page_idx": 6
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "Intuitively, we needed to ensure a positive relationship between $\\hat { y }$ and $y _ { i }$ . Thus, we filtered out negative prior weights $w _ { i } \\gets \\operatorname* { m a x } \\{ w _ { i } , 0 \\}$ and applied the cross-entropy loss in Equation (4) to learn the explainer. ",
767
+ "bbox": [
768
+ 176,
769
+ 340,
770
+ 823,
771
+ 383
772
+ ],
773
+ "page_idx": 6
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "Evaluation metric: The evaluation has two aspects. Firstly, we evaluated the correctness of the estimated explanation for the performer prediction. In fact, there is no ground truth about exact reasons for each prediction. We showed example explanations of for a qualitative evaluation of explanations. We also used grad-CAM visualization (Selvaraju et al., 2017) of feature maps to prove the correctness of our explanations (see the appendix). In addition, we normalized the absolute contribution from each visual concept as a distribution of contributions $c _ { i } = | \\alpha _ { i } y _ { i } | / \\sum _ { j } | \\alpha _ { j } y _ { j } |$ . We used the entropy of contribution distribution $H ( \\mathbf { c } )$ as an indirect evaluation metric for biasinterpreting. A biased explainer usually used very few visual concepts, instead of using most visual concepts, to approximate the performer, which led to a low entropy $H ( \\mathbf { c } )$ . ",
778
+ "bbox": [
779
+ 173,
780
+ 390,
781
+ 825,
782
+ 518
783
+ ],
784
+ "page_idx": 6
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "Secondly, we also measured the performer information that could not be represented by the visual concepts, which was unavoidable. We proposed two metrics for evaluation. The first metric is the prediction accuracy. We compared the prediction accuracy of the performer with the prediction accuracy of using the explainer’s output $\\sum _ { i } ^ { - } \\alpha _ { i } y _ { i } + b$ . Another metric is the relative deviation, which measures a normalized output difference between the performer and the explainer. The relative deviation of the image $I$ is normalized as $\\begin{array} { r } { \\vert \\hat { y } _ { I } - \\sum _ { i } \\bar { \\alpha _ { I , i } } y _ { I , i } - b \\vert / \\big ( \\mathrm { { m a x } } _ { I ^ { \\prime } \\in \\mathbf { I } } \\hat { y } _ { I ^ { \\prime } } - \\mathrm { { m i n } } _ { I ^ { \\prime } \\in \\mathbf { I } } \\hat { y } _ { I ^ { \\prime } } \\big ) } \\end{array}$ , where $\\hat { y } _ { I ^ { \\prime } }$ denotes the performer’s output for the image $I ^ { \\prime }$ . ",
789
+ "bbox": [
790
+ 174,
791
+ 525,
792
+ 825,
793
+ 622
794
+ ],
795
+ "page_idx": 6
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "Considering the limited representation power of visual concepts, the relative deviation on an image reflected inference patterns, which were not modeled by the explainer. The average relative deviation over all images was reported to evaluate the overall representation power of visual concepts. Note that our objective was not to pursue an extremely low relative deviation, because the limit of the representation power is an objective existence. ",
800
+ "bbox": [
801
+ 174,
802
+ 628,
803
+ 825,
804
+ 699
805
+ ],
806
+ "page_idx": 6
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "4.2 EXPERIMENT 2: EXPLAINING FACE ATTRIBUTES BASED ON FACE ATTRIBUTES ",
811
+ "text_level": 1,
812
+ "bbox": [
813
+ 174,
814
+ 727,
815
+ 751,
816
+ 741
817
+ ],
818
+ "page_idx": 6
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "In this experiment, we learned a CNN based on the VGG-16 structure to estimate face attributes. We used the Large-scale CelebFaces Attributes (CelebA) dataset (Liu et al., 2015) to train a CNN to estimate 40 face attributes. We selected a certain attribute as the target and used its prediction score as $\\hat { y }$ . Other 39 attributes were taken as visual concepts to explain the score of $\\hat { y }$ $\\left( n = 3 9 \\right.$ ). The target attribute was selected from those representing global features of the face, i.e. attractive, heavy makeup, male, and young. It is because global features can usually be described by local visual concepts, but the inverse is not. We learned an explainer for each target attribute. We used the same 152-layer ResNet structure as in Experiment 1 (expect for $n = 3 9$ ) as $g$ to estimate weights. We followed the Case-2 implementation in Section 3.1 to compute prior weights $\\mathbf { w }$ , in which we used the 4096-dimensional output of the first fully-connected layer as the shared feature $x$ . We set $\\beta = 0 . 2$ and used the L-2 norm loss in Equation (4) to learn all explainers. We used the same evaluation metric as in Experiment 1. ",
823
+ "bbox": [
824
+ 173,
825
+ 757,
826
+ 825,
827
+ 924
828
+ ],
829
+ "page_idx": 6
830
+ },
831
+ {
832
+ "type": "image",
833
+ "img_path": "images/b961339d6b26f9c459eec8f0c4ff38eb80ba0ef4d7451bf8a9bf4659fe095da6.jpg",
834
+ "image_caption": [
835
+ "Figure 3: Quantitative explanations for the object classification (top) and the face-attribution prediction (bottom) made by performers. For performers oriented to object classification, we annotated the part that was represented by each interpretable filter in the performer, and we assigned contributions of filters $\\alpha _ { i } y _ { i }$ to object parts (see the appendix). Thus, this figure illustrates contributions of different object parts. All object parts made positive contributions to the classification score. Note that in the bottom, bars indicate elementary contributions $\\alpha _ { i } y _ { i }$ from features of different face attributes, rather than prediction values $y _ { i }$ of these attributes. For example, the network predicts a negative goatee attribute $y _ { \\mathrm { g o a t e e } } < 0$ , and this information makes a positive contribution to the target attractive attribute, $\\alpha _ { i } y _ { i } > 0$ . Please see the appendix for more results. "
836
+ ],
837
+ "image_footnote": [],
838
+ "bbox": [
839
+ 187,
840
+ 101,
841
+ 805,
842
+ 284
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "4.3 EXPERIMENTAL RESULTS AND ANALYSIS ",
849
+ "text_level": 1,
850
+ "bbox": [
851
+ 176,
852
+ 429,
853
+ 496,
854
+ 443
855
+ ],
856
+ "page_idx": 7
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "We compared our method with the traditional baseline of only using the distillation loss to learn the explainer. Table 1 evaluates bias-interpreting of explainers that were learned using our method and the baseline. In addition, Table 2 uses the classification accuracy and relative deviations of the explainer to measure the representation capacity of visual concepts. Our method suffered much less from the bias-interpreting problem than the baseline. ",
861
+ "bbox": [
862
+ 174,
863
+ 455,
864
+ 825,
865
+ 526
866
+ ],
867
+ "page_idx": 7
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "Fig. 3 shows examples of quantitative explanations for the prediction made by the performer. We also used the grad-CAM visualization (Selvaraju et al., 2017) of feature maps of the performer to demonstrate the correctness of our explanations in Fig. 9 in the appendix. In particular, Fig. 4 in the appendix illustrates the distribution of contributions of visual concepts $\\left\\{ c _ { i } \\right\\}$ when we learned the explainer using different methods. Compared to our method, the distillation baseline usually used very few visual concepts for explanation and ignored most strongly activated interpretable filters, which could be considered as bias-interpreting. ",
872
+ "bbox": [
873
+ 173,
874
+ 532,
875
+ 825,
876
+ 631
877
+ ],
878
+ "page_idx": 7
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "5 CONCLUSION AND DISCUSSIONS ",
883
+ "text_level": 1,
884
+ "bbox": [
885
+ 176,
886
+ 654,
887
+ 475,
888
+ 669
889
+ ],
890
+ "page_idx": 7
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "In this paper, we focus on a new task, i.e. explaining the logic of each CNN prediction semantically and quantitatively, which presents considerable challenges in the scope of understanding neural networks. We propose to distill knowledge from a pre-trained performer into an interpretable additive explainer. We can consider that the performer and the explainer encode similar knowledge. The additive explainer decomposes the prediction score of the performer into value components from semantic visual concepts, in order to compute quantitative contributions of different concepts. The strategy of using an explainer for explanation avoids decreasing the discrimination power of the performer. In preliminary experiments, we have applied our method to different benchmark CNN performers to prove the broad applicability. ",
895
+ "bbox": [
896
+ 174,
897
+ 686,
898
+ 825,
899
+ 813
900
+ ],
901
+ "page_idx": 7
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "Note that our objective is not to use pre-trained visual concepts to achieve super accuracy in classification/prediction. Instead, the explainer uses these visual concepts to mimic the logic of the performer and produces similar prediction scores as the performer. ",
906
+ "bbox": [
907
+ 174,
908
+ 819,
909
+ 825,
910
+ 861
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "In particular, over-interpreting is the biggest challenge of using an additive explainer to interpret another neural network. In this study, we design two losses to overcome the bias-interpreting problems. Besides, in experiments, we also measure the amount of the performer knowledge that could not be represented by visual concepts in the explainer. ",
917
+ "bbox": [
918
+ 174,
919
+ 867,
920
+ 823,
921
+ 924
922
+ ],
923
+ "page_idx": 7
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "REFERENCES ",
928
+ "text_level": 1,
929
+ "bbox": [
930
+ 174,
931
+ 103,
932
+ 287,
933
+ 117
934
+ ],
935
+ "page_idx": 8
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "Mathieu Aubry and Bryan C. Russell. Understanding deep features with computer-generated imagery. In ICCV, 2015. ",
940
+ "bbox": [
941
+ 174,
942
+ 125,
943
+ 823,
944
+ 151
945
+ ],
946
+ "page_idx": 8
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "David Bau, Bolei Zhou, Aditya Khosla, Aude Oliva, and Antonio Torralba. Network dissection: Quantifying interpretability of deep visual representations. In CVPR, 2017. ",
951
+ "bbox": [
952
+ 174,
953
+ 159,
954
+ 820,
955
+ 186
956
+ ],
957
+ "page_idx": 8
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "Zhengping Che, Sanjay Purushotham, Robinder Khemani, and Yan Liu. Interpretable deep models for icu outcome prediction. In American Medical Informatics Association (AMIA) Annual Symposium, 2016. ",
962
+ "bbox": [
963
+ 173,
964
+ 194,
965
+ 823,
966
+ 222
967
+ ],
968
+ "page_idx": 8
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "X. Chen, R. Mottaghi, X. Liu, S. Fidler, R. Urtasun, and A. Yuille. Detect what you can: Detecting and representing objects using holistic models and body parts. In CVPR, 2014. ",
973
+ "bbox": [
974
+ 173,
975
+ 229,
976
+ 823,
977
+ 257
978
+ ],
979
+ "page_idx": 8
980
+ },
981
+ {
982
+ "type": "text",
983
+ "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 NIPS, 2016. ",
984
+ "bbox": [
985
+ 173,
986
+ 265,
987
+ 823,
988
+ 292
989
+ ],
990
+ "page_idx": 8
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "Edward Choi, Mohammad Taha Bahadori, Joshua A. Kulas, Andy Schuetz, Walter F. Stewart, and Jimeng Sun. Retain: an interpretable predictive model for healthcare using reverse time attention mechansim. in arXiv:1608.05745v4, 2017. ",
995
+ "bbox": [
996
+ 173,
997
+ 300,
998
+ 823,
999
+ 339
1000
+ ],
1001
+ "page_idx": 8
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "Alexey Dosovitskiy and Thomas Brox. Inverting visual representations with convolutional networks. In CVPR, 2016. ",
1006
+ "bbox": [
1007
+ 173,
1008
+ 347,
1009
+ 823,
1010
+ 375
1011
+ ],
1012
+ "page_idx": 8
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Ruth C. Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. In arXiv:1704.03296v1, 2017. ",
1017
+ "bbox": [
1018
+ 171,
1019
+ 382,
1020
+ 823,
1021
+ 410
1022
+ ],
1023
+ "page_idx": 8
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Nicholas Frosst and Geoffrey Hinton. Distilling a neural network into a soft decision tree. In arXiv:1711.09784, 2017. ",
1028
+ "bbox": [
1029
+ 173,
1030
+ 417,
1031
+ 823,
1032
+ 445
1033
+ ],
1034
+ "page_idx": 8
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Tommaso Furlanello, Zachary C. Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. In arXiv:1805.04770, 2018. ",
1039
+ "bbox": [
1040
+ 174,
1041
+ 453,
1042
+ 823,
1043
+ 479
1044
+ ],
1045
+ "page_idx": 8
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
1050
+ "bbox": [
1051
+ 174,
1052
+ 488,
1053
+ 823,
1054
+ 515
1055
+ ],
1056
+ "page_idx": 8
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. $\\beta$ -vae: learning basic visual concepts with a constrained variational framework. In ICLR, 2017. ",
1061
+ "bbox": [
1062
+ 174,
1063
+ 522,
1064
+ 823,
1065
+ 563
1066
+ ],
1067
+ "page_idx": 8
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric P. Xing. Harnessing deep neural networks with logic rules. In arXiv:1603.06318v2, 2016. ",
1072
+ "bbox": [
1073
+ 173,
1074
+ 570,
1075
+ 821,
1076
+ 598
1077
+ ],
1078
+ "page_idx": 8
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Pieter-Jan Kindermans, Kristof T. Schutt, Maximilian Alber, Klaus-Robert M ¨ uller, Dumitru Erhan, Been Kim,¨ and Sven Dahne. Learning how to explain neural networks: Patternnet and patternattribution. ¨ In ICLR, 2018. ",
1083
+ "bbox": [
1084
+ 173,
1085
+ 606,
1086
+ 823,
1087
+ 633
1088
+ ],
1089
+ "page_idx": 8
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "PangWei Koh and Percy Liang. Understanding black-box predictions via influence functions. In ICML, 2017. ",
1094
+ "bbox": [
1095
+ 173,
1096
+ 641,
1097
+ 823,
1098
+ 656
1099
+ ],
1100
+ "page_idx": 8
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. ",
1105
+ "bbox": [
1106
+ 176,
1107
+ 664,
1108
+ 820,
1109
+ 690
1110
+ ],
1111
+ "page_idx": 8
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Himabindu Lakkaraju, Ece Kamar, Rich Caruana, and Eric Horvitz. Identifying unknown unknowns in the open world: Representations and policies for guided exploration. In AAAI, 2017. ",
1116
+ "bbox": [
1117
+ 174,
1118
+ 699,
1119
+ 823,
1120
+ 726
1121
+ ],
1122
+ "page_idx": 8
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document \\` recognition. In Proceedings of the IEEE, 1998. ",
1127
+ "bbox": [
1128
+ 176,
1129
+ 734,
1130
+ 821,
1131
+ 761
1132
+ ],
1133
+ "page_idx": 8
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Renjie Liao, Alex Schwing, Richard Zemel, and Raquel Urtasun. Learning deep parsimonious representations. In NIPS, 2016. ",
1138
+ "bbox": [
1139
+ 173,
1140
+ 768,
1141
+ 821,
1142
+ 796
1143
+ ],
1144
+ "page_idx": 8
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In ICCV, 2015. ",
1149
+ "bbox": [
1150
+ 173,
1151
+ 804,
1152
+ 823,
1153
+ 833
1154
+ ],
1155
+ "page_idx": 8
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Scott M. Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In NIPS, 2017. ",
1160
+ "bbox": [
1161
+ 174,
1162
+ 839,
1163
+ 790,
1164
+ 854
1165
+ ],
1166
+ "page_idx": 8
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Aravindh Mahendran and Andrea Vedaldi. Understanding deep image representations by inverting them. In CVPR, 2015. ",
1171
+ "bbox": [
1172
+ 176,
1173
+ 862,
1174
+ 821,
1175
+ 888
1176
+ ],
1177
+ "page_idx": 8
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. “why should i trust you?” explaining the predictions of any classifier. In KDD, 2016. ",
1182
+ "bbox": [
1183
+ 173,
1184
+ 897,
1185
+ 825,
1186
+ 924
1187
+ ],
1188
+ "page_idx": 8
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "Sara Sabour, Nicholas Frosst, and Geoffrey E. Hinton. Dynamic routing between capsules. In NIPS, 2017. \nRamprasaath 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 ICCV, 2017. \nMarcel Simon and Erik Rodner. Neural activation constellations: Unsupervised part model discovery with convolutional networks. In ICCV, 2015. \nKaren Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. \nKaren Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: visualising image classification models and saliency maps. In arXiv:1312.6034, 2013. \nAustin Stone, Huayan Wang, Yi Liu, D. Scott Phoenix, and Dileep George. Teaching compositionality to cnns. In CVPR, 2017. \nChristian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In arXiv:1312.6199v4, 2014. \nSarah Tan, Rich Caruana, Giles Hooker, and Albert Gordo. Transparent model distillation. In arXiv:1801.08640, 2018. \nJoel Vaughan, Agus Sudjianto, Erind Brahimi, Jie Chen, and Vijayan N. Nair. Explainable neural networks based on additive index models. in arXiv:1806.01933, 2018. \nMike Wu, Michael C. Hughes, Sonali Parbhoo, Maurizio Zazzi, Volker Roth, and Finale Doshi-Velez. Beyond sparsity: Tree regularization of deep models for interpretability. In NIPS TIML Workshop, 2017a. \nTianfu Wu, Xilai Li, Xi Song, Wei Sun, Liang Dong, and Bo Li. Interpretable r-cnn. In arXiv:1711.05226, 2017b. \nJason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In NIPS, 2014. \nJason Yosinski, Jeff Clune, Anh Nguyen, Thomas Fuchs, and Hod Lipson. Understanding neural networks through deep visualization. In ICML Deep Learning Workshop, 2015. \nMatthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, 2014. \nQ. Zhang, W. Wang, and S.-C. Zhu. Examining cnn representations with respect to dataset bias. In AAAI, 2018a. \nQuanshi Zhang, Ying Nian Wu, and Song-Chun Zhu. Interpretable convolutional neural networks. In CVPR, 2018b. \nQuanshi Zhang, Yu Yang, Yuchen Liu, Ying Nian Wu, and Song-Chun Zhu. Unsupervised learning of neural networks to explain neural networks. in arXiv:1805.07468, 2018c. \nQuanshi Zhang, Yu Yang, Ying Nian Wu, and Song-Chun Zhu. Interpreting cnns via decision trees. In arXiv:1802.00121, 2018d. \nBolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Object detectors emerge in deep scene cnns. In ICRL, 2015. \nBolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016. ",
1193
+ "bbox": [
1194
+ 171,
1195
+ 97,
1196
+ 828,
1197
+ 779
1198
+ ],
1199
+ "page_idx": 9
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "DETAILED RESULTS ",
1204
+ "text_level": 1,
1205
+ "bbox": [
1206
+ 174,
1207
+ 103,
1208
+ 339,
1209
+ 118
1210
+ ],
1211
+ "page_idx": 10
1212
+ },
1213
+ {
1214
+ "type": "table",
1215
+ "img_path": "images/100a8223f7fb22dd0143055d86bd15979a64e853650e930ed1d082c310136504.jpg",
1216
+ "table_caption": [
1217
+ "Table 3: Entropy of contribution distributions. The entropy of contribution distributions reflects the level of bias-interpreting. The lower entropy indicates a larger bias. Our method suffered much less from the bias-interpreting problem than the baseline. "
1218
+ ],
1219
+ "table_footnote": [],
1220
+ "table_body": "<table><tr><td></td><td colspan=\"2\">AlexNet</td><td colspan=\"2\">VGG-M</td><td colspan=\"2\">VGG-S</td><td colspan=\"2\">VGG-16</td></tr><tr><td>bird</td><td>Baseline 3.681</td><td>Ours 5.201</td><td>Baseline 4.543</td><td>Ours 5.885</td><td>Baseline 3.988</td><td>Ours 5.870</td><td>Baseline</td><td>Ours</td></tr><tr><td></td><td>3.294</td><td>5.103</td><td>5.604</td><td></td><td>3.954</td><td>5.913</td><td>4.165</td><td>6.040</td></tr><tr><td>cat</td><td></td><td></td><td></td><td>5.902</td><td></td><td></td><td>4.894</td><td>6.056</td></tr><tr><td>Cow</td><td>3.607</td><td>5.236</td><td>4.616</td><td>5.941</td><td>3.786</td><td>5.901</td><td>3.763</td><td>6.084</td></tr><tr><td>dog</td><td>3.774</td><td>5.243</td><td>5.510</td><td>6.023</td><td>4.087</td><td>5.954</td><td>4.570</td><td>6.061</td></tr><tr><td>horse</td><td>3.745 3.716</td><td>5.278 5.135</td><td>4.722 4.747</td><td>5.921 5.773</td><td>3.802</td><td>5.973 5.869</td><td>4.064</td><td>6.060</td></tr><tr><td>sheep</td><td></td><td></td><td></td><td></td><td>4.152</td><td></td><td>3.850</td><td>6.022</td></tr><tr><td>Avg.</td><td>3.636</td><td>5.199</td><td>4.957</td><td>5.908</td><td>3.962</td><td>5.913</td><td>4.218</td><td>6.054</td></tr></table>",
1221
+ "bbox": [
1222
+ 241,
1223
+ 148,
1224
+ 759,
1225
+ 275
1226
+ ],
1227
+ "page_idx": 10
1228
+ },
1229
+ {
1230
+ "type": "table",
1231
+ "img_path": "images/ea2ce1ce274be90b0a010b5ac67923adf89ec39c9bf677d38ad0e7a18b4d1d0d.jpg",
1232
+ "table_caption": [],
1233
+ "table_footnote": [],
1234
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">AlexNet</td><td colspan=\"3\">VGG-M</td><td colspan=\"3\">VGG-S</td><td colspan=\"3\">VGG-16</td></tr><tr><td>Performer</td><td>Baseline</td><td>Ours</td><td>Performer</td><td>Baseline</td><td>Ours</td><td>Performer</td><td>Baseline</td><td>Ours</td><td>PerformerI</td><td>Baseline</td><td>Ours</td></tr><tr><td>bird</td><td>92.8</td><td>92.8</td><td>93.8</td><td>96.8</td><td>97.3</td><td>97.8</td><td>96.5</td><td>97.0</td><td>96.0</td><td>97.3</td><td>98.5</td><td>98.8</td></tr><tr><td>cat</td><td>96.3</td><td>95.7</td><td>95.2</td><td>94.3</td><td>95.7</td><td>95.5</td><td>95.3</td><td>95.5</td><td>96.0</td><td>94.3</td><td>97.0</td><td>97.0</td></tr><tr><td>cow</td><td>93.4</td><td>92.6</td><td>93.4</td><td>95.2</td><td>94.2</td><td>94.7</td><td>94.4</td><td>94.2</td><td>93.7</td><td>91.1</td><td>97.0</td><td>95.4</td></tr><tr><td>dog</td><td>92.5</td><td>92.5</td><td>92.0</td><td>93.8</td><td>94.7</td><td>94.5</td><td>95.3</td><td>95.5</td><td>93.0</td><td>94.5</td><td>95.0</td><td>94.5</td></tr><tr><td>horse</td><td>91.4</td><td>89.1</td><td>88.1</td><td>92.9</td><td>88.9</td><td>88.9</td><td>92.9</td><td>91.7</td><td>92.7</td><td>99.2</td><td>96.5</td><td>97.7</td></tr><tr><td>sheep</td><td>97.2</td><td>97.2</td><td>99.2</td><td>92.2</td><td>92.7</td><td>92.5</td><td>98.5</td><td>97.0</td><td>98.2</td><td>96.0</td><td>95.7</td><td>96.0</td></tr><tr><td>Average</td><td>93.9</td><td>93.3</td><td>93.6</td><td>94.2</td><td>93.9</td><td>94.0</td><td>95.5</td><td>95.2</td><td>94.9</td><td>95.4</td><td>96.6</td><td>96.6</td></tr></table>",
1235
+ "bbox": [
1236
+ 176,
1237
+ 330,
1238
+ 825,
1239
+ 434
1240
+ ],
1241
+ "page_idx": 10
1242
+ },
1243
+ {
1244
+ "type": "table",
1245
+ "img_path": "images/a445fc9a667c1b82046aaa540dfa9a4b9035304e7be5885d61ac1743ea24aa9e.jpg",
1246
+ "table_caption": [],
1247
+ "table_footnote": [],
1248
+ "table_body": "<table><tr><td></td><td>Attractive</td><td>Makeup</td><td>Male</td><td>Young</td><td>Avg.</td></tr><tr><td>Performer</td><td>81.5</td><td>92.3</td><td>98.7</td><td>88.3</td><td>90.2</td></tr><tr><td>Explainer, baseline</td><td>73.2</td><td>89.0</td><td>97.6</td><td>81.8</td><td>85.4</td></tr><tr><td>Explainer, ours</td><td>76.0</td><td>88.8</td><td>97.6</td><td>82.8</td><td>86.3</td></tr></table>",
1249
+ "bbox": [
1250
+ 272,
1251
+ 446,
1252
+ 727,
1253
+ 505
1254
+ ],
1255
+ "page_idx": 10
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Table 4: Classification accuracy of the explainer and the performer. We use the the classification accuracy to measure the information loss when using an explainer to interpret the performer. Note that the additional loss for bias-interpreting successfully overcame the bias-interpreting problem, but did not decrease the classification accuracy of the explainer. Another interesting finding of this research is that sometimes, the explainer even outperformed the performer in classification. A similar phenomenon has been reported in (Furlanello et al., 2018). A possible explanation for this phenomenon is given as follows. When the student network in knowledge distillation had sufficient representation power, the student network might learn better representations than the teacher network, because the distillation process removed abnormal middle-layer features corresponding to irregular samples and maintained common features, so as to boost the robustness of the student network. ",
1260
+ "bbox": [
1261
+ 173,
1262
+ 513,
1263
+ 825,
1264
+ 654
1265
+ ],
1266
+ "page_idx": 10
1267
+ },
1268
+ {
1269
+ "type": "table",
1270
+ "img_path": "images/f1275ba17dd0f37654e350d997389a7fccbd81e6ae040793ce8a5578777cff8a.jpg",
1271
+ "table_caption": [
1272
+ "Table 5: Relative deviations of the explainer. The additional loss for bias-interpreting successfully overcame the bias-interpreting problem and just increased a bit (ignorable) relative deviation of the explainer. "
1273
+ ],
1274
+ "table_footnote": [],
1275
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">AlexNet</td><td colspan=\"2\">VGG-M</td><td colspan=\"2\">VGG-S</td><td colspan=\"2\">VGG-16</td></tr><tr><td>Baseline</td><td>Ours</td><td>Baseline</td><td>Ours</td><td>Baseline</td><td>Ours</td><td>Baseline</td><td>Ours</td></tr><tr><td>bird</td><td>0.050</td><td>0.045</td><td>0.033</td><td>0.035</td><td>0.030</td><td>0.031</td><td>0.040</td><td>0.034</td></tr><tr><td>cat</td><td>0.041</td><td>0.040</td><td>0.029</td><td>0.030</td><td>0.036</td><td>0.039</td><td>0.027</td><td>0.030</td></tr><tr><td>cow</td><td>0.047</td><td>0.048</td><td>0.058</td><td>0.062</td><td>0.041</td><td>0.047</td><td>0.051</td><td>0.061</td></tr><tr><td>dog</td><td>0.041</td><td>0.047</td><td>0.025</td><td>0.026</td><td>0.041</td><td>0.047</td><td>0.028</td><td>0.026</td></tr><tr><td>horse</td><td>0.044</td><td>0.043</td><td>0.051</td><td>0.049</td><td>0.045</td><td>0.043</td><td>0.036</td><td>0.034</td></tr><tr><td>sheep</td><td>0.045</td><td>0.049</td><td>0.036</td><td>0.038</td><td>0.035</td><td>0.037</td><td>0.032</td><td>0.041</td></tr><tr><td>Average</td><td>0.045</td><td>0.045</td><td>0.039</td><td>0.040</td><td>0.038</td><td>0.041</td><td>0.036</td><td>0.038</td></tr></table>",
1276
+ "bbox": [
1277
+ 241,
1278
+ 659,
1279
+ 761,
1280
+ 781
1281
+ ],
1282
+ "page_idx": 10
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "IMAGE-SPECIFIC EXPLANATIONS V.S. GENERIC EXPLANATIONS ",
1287
+ "text_level": 1,
1288
+ "bbox": [
1289
+ 174,
1290
+ 838,
1291
+ 697,
1292
+ 853
1293
+ ],
1294
+ "page_idx": 10
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "(Zhang et al., 2018d) used a tree structure to summarize the inaccurate rationale of each CNN prediction into generic decision-making models for a number of samples. This method assumed the significance of a feature to be proportional to the Jacobian w.r.t. the feature, which is quite problematic. This assumption is acceptable for (Zhang et al., 2018d), because the objective of (Zhang et al., ",
1299
+ "bbox": [
1300
+ 174,
1301
+ 867,
1302
+ 825,
1303
+ 924
1304
+ ],
1305
+ "page_idx": 10
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "2018d) is to learn a generic explanation for a group of samples, and the inaccuracy in the explanation for each specific sample does not significantly affect the accuracy of the generic explanation. In comparisons, our method focuses on the quantitative explanation for each specific sample, so we design an additive model to obtain more convincing explanations. ",
1310
+ "bbox": [
1311
+ 174,
1312
+ 103,
1313
+ 825,
1314
+ 160
1315
+ ],
1316
+ "page_idx": 11
1317
+ },
1318
+ {
1319
+ "type": "text",
1320
+ "text": "VISUALIZATION OF BIAS-INTERPRETING ",
1321
+ "text_level": 1,
1322
+ "bbox": [
1323
+ 174,
1324
+ 181,
1325
+ 513,
1326
+ 195
1327
+ ],
1328
+ "page_idx": 11
1329
+ },
1330
+ {
1331
+ "type": "image",
1332
+ "img_path": "images/5f92c5fadc46d18ef61699cae864d1f0926144a359dc405ed0fd83242c265ee8.jpg",
1333
+ "image_caption": [
1334
+ "Figure 4: We compared the contribution distribution of different visual concepts (filters) that was estimated by our method and the distribution that was estimated by the baseline. The baseline usually used very few visual concepts to make predictions, which was a typical case of bias-interpreting. In comparisons, our method provided a much more reasonable contribution distribution of visual concepts. "
1335
+ ],
1336
+ "image_footnote": [],
1337
+ "bbox": [
1338
+ 210,
1339
+ 210,
1340
+ 785,
1341
+ 747
1342
+ ],
1343
+ "page_idx": 11
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "Most important reasons ",
1348
+ "text_level": 1,
1349
+ "bbox": [
1350
+ 704,
1351
+ 141,
1352
+ 781,
1353
+ 161
1354
+ ],
1355
+ "page_idx": 12
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "",
1360
+ "bbox": [
1361
+ 696,
1362
+ 180,
1363
+ 774,
1364
+ 276
1365
+ ],
1366
+ "page_idx": 12
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "",
1371
+ "bbox": [
1372
+ 697,
1373
+ 325,
1374
+ 769,
1375
+ 377
1376
+ ],
1377
+ "page_idx": 12
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "No heavy makeup ",
1382
+ "bbox": [
1383
+ 697,
1384
+ 431,
1385
+ 781,
1386
+ 515
1387
+ ],
1388
+ "page_idx": 12
1389
+ },
1390
+ {
1391
+ "type": "image",
1392
+ "img_path": "images/c933a728bd7bb68ce814d29ddf0eb4fa98e1ed3e1f23ec0e5506e2bcf97eec4c.jpg",
1393
+ "image_caption": [
1394
+ "Figure 5: Quantitative explanations for the attractive attribute. Bars indicate elementary contributions $\\alpha _ { i } y _ { i }$ from features of different face attributes, rather than the prediction of these attributes. For example, the network predicts a negative goatee attribute $y _ { \\mathrm { g o a t e e } } < 0$ , and this information makes a positive contribution to the target attractive attribute, $\\alpha _ { i } y _ { i } > 0$ . "
1395
+ ],
1396
+ "image_footnote": [],
1397
+ "bbox": [
1398
+ 209,
1399
+ 154,
1400
+ 753,
1401
+ 787
1402
+ ],
1403
+ "page_idx": 12
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "No heavy makeup ",
1408
+ "bbox": [
1409
+ 697,
1410
+ 550,
1411
+ 782,
1412
+ 642
1413
+ ],
1414
+ "page_idx": 12
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "",
1419
+ "bbox": [
1420
+ 697,
1421
+ 666,
1422
+ 767,
1423
+ 776
1424
+ ],
1425
+ "page_idx": 12
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "Most important reasons ",
1430
+ "text_level": 1,
1431
+ "bbox": [
1432
+ 709,
1433
+ 103,
1434
+ 785,
1435
+ 123
1436
+ ],
1437
+ "page_idx": 13
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "5‐o’clock shadow No bald No heavy makeup No earrings Not wearing lipstick Not wearing necktie ",
1442
+ "bbox": [
1443
+ 702,
1444
+ 160,
1445
+ 787,
1446
+ 220
1447
+ ],
1448
+ "page_idx": 13
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "No heavy makeup Not wearing earrings Not wearing lipstick Not wearing necktie ",
1453
+ "bbox": [
1454
+ 702,
1455
+ 295,
1456
+ 789,
1457
+ 333
1458
+ ],
1459
+ "page_idx": 13
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "No 5‐o’clock shadow \nNo goatee \nNo receding \nhairline \nNo sideburns \nNot wearing earrings \nNot wearing necktie ",
1464
+ "bbox": [
1465
+ 700,
1466
+ 401,
1467
+ 789,
1468
+ 473
1469
+ ],
1470
+ "page_idx": 13
1471
+ },
1472
+ {
1473
+ "type": "image",
1474
+ "img_path": "images/1049960310c0c07afbfa5c859e1ab50ec576d14d6136c657d28f9eb83145b140.jpg",
1475
+ "image_caption": [
1476
+ "Figure 6: Quantitative explanations $\\alpha _ { i } y _ { i }$ for the male attribute. "
1477
+ ],
1478
+ "image_footnote": [],
1479
+ "bbox": [
1480
+ 209,
1481
+ 116,
1482
+ 692,
1483
+ 750
1484
+ ],
1485
+ "page_idx": 13
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "No heavy makeup Not wearing earrings Not wearing lipstick Not wearing necklace ",
1490
+ "bbox": [
1491
+ 702,
1492
+ 541,
1493
+ 790,
1494
+ 580
1495
+ ],
1496
+ "page_idx": 13
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "No heavy makeup Not wearing earrings Not wearing lipstick ",
1501
+ "bbox": [
1502
+ 700,
1503
+ 670,
1504
+ 789,
1505
+ 699
1506
+ ],
1507
+ "page_idx": 13
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "Most important reasons ",
1512
+ "text_level": 1,
1513
+ "bbox": [
1514
+ 705,
1515
+ 103,
1516
+ 782,
1517
+ 123
1518
+ ],
1519
+ "page_idx": 14
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "No goatee Not male Wearing lipstick ",
1524
+ "bbox": [
1525
+ 699,
1526
+ 174,
1527
+ 774,
1528
+ 205
1529
+ ],
1530
+ "page_idx": 14
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "No eyeglasses Not male No rosy cheeks Wear lipstick ",
1535
+ "bbox": [
1536
+ 699,
1537
+ 291,
1538
+ 771,
1539
+ 333
1540
+ ],
1541
+ "page_idx": 14
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "text": "Not attractive High cheekbones No mustache No pointy nose No rosy cheeks Not wearing lipstick Not wearing necklace ",
1546
+ "bbox": [
1547
+ 699,
1548
+ 398,
1549
+ 789,
1550
+ 470
1551
+ ],
1552
+ "page_idx": 14
1553
+ },
1554
+ {
1555
+ "type": "image",
1556
+ "img_path": "images/b5ffd643e2435ed49b2c437cd69e8699dac07deaba7b5b6036d3710353deb73e.jpg",
1557
+ "image_caption": [
1558
+ "Figure 7: Quantitative explanations $\\alpha _ { i } y _ { i }$ for the heavy makeup attribute. "
1559
+ ],
1560
+ "image_footnote": [],
1561
+ "bbox": [
1562
+ 210,
1563
+ 119,
1564
+ 689,
1565
+ 746
1566
+ ],
1567
+ "page_idx": 14
1568
+ },
1569
+ {
1570
+ "type": "text",
1571
+ "text": "No eyeglasses \nNo gray hear \nMale \nNot wearing lipstick \nNot wearing necklace \nYoung \nNo bangs \nNot blurry \nNo eyeglasses \nMale \nNo rosy cheeks \nWearing hat \nNot wearing lipstick ",
1572
+ "bbox": [
1573
+ 699,
1574
+ 527,
1575
+ 789,
1576
+ 587
1577
+ ],
1578
+ "page_idx": 14
1579
+ },
1580
+ {
1581
+ "type": "text",
1582
+ "text": "",
1583
+ "bbox": [
1584
+ 699,
1585
+ 643,
1586
+ 781,
1587
+ 718
1588
+ ],
1589
+ "page_idx": 14
1590
+ },
1591
+ {
1592
+ "type": "text",
1593
+ "text": "",
1594
+ "bbox": [
1595
+ 704,
1596
+ 169,
1597
+ 781,
1598
+ 210
1599
+ ],
1600
+ "page_idx": 15
1601
+ },
1602
+ {
1603
+ "type": "text",
1604
+ "text": "",
1605
+ "bbox": [
1606
+ 704,
1607
+ 292,
1608
+ 781,
1609
+ 335
1610
+ ],
1611
+ "page_idx": 15
1612
+ },
1613
+ {
1614
+ "type": "image",
1615
+ "img_path": "images/2b1fd2ce7bdbba8790a5aaf980ff839eb44add1cd860b5b1433e755fe83d18ac.jpg",
1616
+ "image_caption": [
1617
+ "Figure 8: Quantitative explanations $\\alpha _ { i } y _ { i }$ for the young attribute. "
1618
+ ],
1619
+ "image_footnote": [],
1620
+ "bbox": [
1621
+ 210,
1622
+ 116,
1623
+ 763,
1624
+ 751
1625
+ ],
1626
+ "page_idx": 15
1627
+ },
1628
+ {
1629
+ "type": "text",
1630
+ "text": "",
1631
+ "bbox": [
1632
+ 702,
1633
+ 637,
1634
+ 789,
1635
+ 734
1636
+ ],
1637
+ "page_idx": 15
1638
+ },
1639
+ {
1640
+ "type": "image",
1641
+ "img_path": "images/12a2c71fa03a6de7ad7911f8a27cec5fe713a7916fdfa7939ff2d6b4026659ba.jpg",
1642
+ "image_caption": [
1643
+ "Figure 9: Quantitative explanations for object classification. We assigned contributions of filters to their corresponding object parts, so that we obtained contributions of different object parts. According to top figures, we found that different images had similar explanations, i.e. the CNN used similar object parts to classify objects. Therefore, we showed the grad-CAM visualization of feature maps (Selvaraju et al., 2017) on the bottom, which proved this finding. "
1644
+ ],
1645
+ "image_footnote": [],
1646
+ "bbox": [
1647
+ 174,
1648
+ 98,
1649
+ 821,
1650
+ 570
1651
+ ],
1652
+ "page_idx": 16
1653
+ },
1654
+ {
1655
+ "type": "image",
1656
+ "img_path": "images/2eabdeec6a8b771edc0406ac50d89724c8579a95359e7b610935cf93378f65ba.jpg",
1657
+ "image_caption": [
1658
+ "Figure 10: We visualized interpretable filters in the top conv-layer of a CNN, which were learned based on (Zhang et al., 2018b). We projected activation regions on the feature map of the filter onto the image plane for visualization. Each filter represented a specific object part through different images. "
1659
+ ],
1660
+ "image_footnote": [],
1661
+ "bbox": [
1662
+ 209,
1663
+ 155,
1664
+ 787,
1665
+ 837
1666
+ ],
1667
+ "page_idx": 17
1668
+ },
1669
+ {
1670
+ "type": "text",
1671
+ "text": "ANNOTATIONS OF PART NAMES OF INTERPRETABLE FILTERS ",
1672
+ "text_level": 1,
1673
+ "bbox": [
1674
+ 174,
1675
+ 103,
1676
+ 673,
1677
+ 118
1678
+ ],
1679
+ "page_idx": 18
1680
+ },
1681
+ {
1682
+ "type": "text",
1683
+ "text": "(Zhang et al., 2018b) learned a CNN, where each filter in the top conv-layer represented a specific object part. Thus, we annotated the name of the object part that corresponded to each filter based on visualization results (see Fig. 10 for examples). We simply annotate each filter of the top conv-layer in a performer once, so the total annotation cost was $O \\bar { ( } N )$ , where $N$ is the filter number. ",
1684
+ "bbox": [
1685
+ 174,
1686
+ 132,
1687
+ 825,
1688
+ 189
1689
+ ],
1690
+ "page_idx": 18
1691
+ },
1692
+ {
1693
+ "type": "text",
1694
+ "text": "Then, we assigned the contribution of a filter to its corresponding part, i.e. $C o n t r i _ { p a r t } ~ =$ \n$\\textstyle \\sum _ { i : 1 }$ -th filter represents the part $\\alpha _ { i } y _ { i }$ . ",
1695
+ "bbox": [
1696
+ 176,
1697
+ 195,
1698
+ 823,
1699
+ 227
1700
+ ],
1701
+ "page_idx": 18
1702
+ },
1703
+ {
1704
+ "type": "text",
1705
+ "text": "DETAILS IN EXPERIMENT 1 ",
1706
+ "text_level": 1,
1707
+ "bbox": [
1708
+ 176,
1709
+ 246,
1710
+ 403,
1711
+ 261
1712
+ ],
1713
+ "page_idx": 18
1714
+ },
1715
+ {
1716
+ "type": "text",
1717
+ "text": "We changed the order of the ReLU layer and the mask layer after the top conv-layer, i.e. placing the mask layer between the ReLU layer and the top conv-layer. According to (Zhang et al., 2018b), this operation did not affect the performance of the pre-trained performer. We used the output of the mask layer as $x$ and plugged $x$ to Equation (5) to compute $\\{ y _ { i } \\}$ . ",
1718
+ "bbox": [
1719
+ 173,
1720
+ 276,
1721
+ 825,
1722
+ 333
1723
+ ],
1724
+ "page_idx": 18
1725
+ },
1726
+ {
1727
+ "type": "text",
1728
+ "text": "Because the distillation process did not use any ground-truth class labels, the explainer’s output $\\textstyle \\sum _ { i } { \\alpha _ { i } y _ { i } + b }$ was not sophisticatedly learned for classification. Thus, we used a threshold $\\sum _ { i } \\alpha _ { i } y _ { i } +$ $b \\ > \\ \\tau \\ ( \\tau \\ \\approx \\ 0 )$ , instead of 0, as the decision boundary for classification. $\\tau$ was selected as the one that maximized the accuracy. Such experimental settings made a fairer comparison between the performer and the explainer. ",
1729
+ "bbox": [
1730
+ 173,
1731
+ 339,
1732
+ 825,
1733
+ 410
1734
+ ],
1735
+ "page_idx": 18
1736
+ }
1737
+ ]