ZHANGYUXUAN-zR commited on
Commit
99573f2
·
verified ·
1 Parent(s): 478a93b

Add files using upload-large-folder tool

Browse files
parse/train/HJSA_e1AW/HJSA_e1AW.md ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NORMALIZED DIRECTION-PRESERVING ADAM
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Optimization algorithms for training deep models not only affects the convergence rate and stability of the training process, but are also highly related to the generalization performance of trained models. While adaptive algorithms, such as Adam and RMSprop, have shown better optimization performance than stochastic gradient descent (SGD) in many scenarios, they often lead to worse generalization performance than SGD, when used for training deep neural networks (DNNs). In this work, we identify two problems regarding the direction and step size for updating the weight vectors of hidden units, which may degrade the generalization performance of Adam. As a solution, we propose the normalized direction-preserving Adam (ND-Adam) algorithm, which controls the update direction and step size more precisely, and thus bridges the generalization gap between Adam and SGD. Following a similar rationale, we further improve the generalization performance in classification tasks by regularizing the softmax logits. By bridging the gap between SGD and Adam, we also shed some light on why certain optimization algorithms generalize better than others.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ In contrast with the growing complexity of neural network architectures (Szegedy et al., 2015; He et al., 2016; Hu et al., 2017), the training methods remain relatively simple. Most practical optimization methods for deep neural networks (DNNs) are based on the stochastic gradient descent (SGD) algorithm. However, the learning rate of SGD, as a hyperparameter, is often difficult to tune, since the magnitudes of different parameters can vary widely, and adjustment is required throughout the training process.
12
+
13
+ To tackle this problem, several adaptive variants of SGD have been developed, including Adagrad (Duchi et al., 2011), Adadelta (Zeiler, 2012), RMSprop (Tieleman & Hinton, 2012), Adam (Kingma & Ba, 2014), etc. These algorithms aim to adapt the learning rate to different parameters automatically, based on the statistics of gradient. Although they usually simplify learning rate settings, and lead to faster convergence, it is observed that their generalization performance tend to be significantly worse than that of SGD in some scenarios (Wilson et al., 2017). This intriguing phenomenon may explain why SGD (possibly with momentum) is still prevalent in training state-of-the-art deep models, especially feedforward DNNs (Szegedy et al., 2015; He et al., 2016; Hu et al., 2017). Furthermore, recent work has shown that DNNs are capable of fitting noise data (Zhang et al., 2017), suggesting that their generalization capabilities are not the mere result of DNNs themselves, but are entwined with optimization (Arpit et al., 2017).
14
+
15
+ This work aims to bridge the gap between SGD and Adam in terms of the generalization performance. To this end, we identify two problems that may degrade the generalization performance of Adam, and show how these problems are (partially) avoided by using SGD with L2 weight decay. First, the updates of SGD lie in the span of historical gradients, whereas it is not the case for Adam. This difference has been discussed in rather recent literature (Wilson et al., 2017), where the authors show that adaptive methods can find drastically different but worse solutions than SGD. Second, while the magnitudes of Adam parameter updates are invariant to rescaling of the gradient, the effect of the updates on the same overall network function still varies with the magnitudes of parameters. As a result, the effective learning rates of weight vectors tend to decrease during training, which leads to sharp local minima that do not generalize well (Hochreiter & Schmidhuber, 1997).
16
+
17
+ To fix the two problems for Adam, we propose the normalized direction-preserving Adam (NDAdam) algorithm, which controls the update direction and step size more precisely. We show that
18
+
19
+ ND-Adam is able to achieve significantly better generalization performance than vanilla Adam, and matches that of SGD in image classification tasks.
20
+
21
+ We summarize our contributions as follows:
22
+
23
+ • We observe that the directions of Adam parameter updates are different from that of SGD, i.e., Adam does not preserve the directions of gradients as SGD does. We fix the problem by adapting the learning rate to each weight vector, instead of each individual weight, such that the direction of the gradient is preserved.
24
+ For both Adam and SGD without L2 weight decay, we observe that the magnitude of each vector’s direction change depends on its L2-norm. We show that, using SGD with L2 weight decay implicitly normalizes the weight vectors, and thus remove the dependence in an approximate manner. We fix the problem for Adam by explicitly normalizing each weight vector, and by optimizing only its direction, such that the effective learning rate can be precisely controlled.
25
+ We further show that, without proper regularization, the learning signal backpropagated from the softmax layer may vary with the overall magnitude of the logits in an undesirable way. Based on the observation, we apply batch normalization or L2-regularization to the logits, which further improves the generalization performance in classification tasks.
26
+
27
+ In essence, our proposed methods, ND-Adam and regularized softmax, improve the generalization performance of Adam by enabling more precise control over the directions of parameter updates, the learning rates, and the learning signals.
28
+
29
+ # 2 BACKGROUND AND MOTIVATION
30
+
31
+ # 2.1 ADAPTIVE MOMENT ESTIMATION (ADAM)
32
+
33
+ Adaptive moment estimation (Adam) (Kingma & Ba, 2014) is a stochastic optimization method that applies individual adaptive learning rates to different parameters, based on the estimates of the first and second moments of the gradients. Specifically, for $n$ trainable parameters, $\boldsymbol \theta \in \mathbb { R } ^ { n }$ , Adam maintains a running average of the first and second moments of the gradient w.r.t. each parameter as
34
+
35
+ $$
36
+ m _ { t } = \beta _ { 1 } m _ { t - 1 } + \left( 1 - \beta _ { 1 } \right) g _ { t } ,
37
+ $$
38
+
39
+ $$
40
+ v _ { t } = \beta _ { 2 } v _ { t - 1 } + \left( 1 - \beta _ { 2 } \right) g _ { t } ^ { 2 } .
41
+ $$
42
+
43
+ Here, $t$ denotes the time step, $m _ { t } \in \mathbb { R } ^ { n }$ and $\boldsymbol { v } _ { t } ~ \in ~ \mathbb { R } ^ { n }$ denote respectively the first and second moments, and $\beta _ { 1 } \in \mathbb { R }$ and $\beta _ { 2 } \in \mathbb { R }$ are the corresponding decay factors. Kingma & Ba (2014) further notice that, since $m _ { 0 }$ and $v _ { 0 }$ are initialized to $0 \mathrm { { s } }$ , they are biased towards zero during the initial time steps, especially when the decay factors are large (i.e., close to 1). Thus, for computing the next update, they need to be corrected as
44
+
45
+ $$
46
+ \hat { m } _ { t } = \frac { m _ { t } } { 1 - \beta _ { 1 } ^ { t } } , \hat { v } _ { t } = \frac { v _ { t } } { 1 - \beta _ { 2 } ^ { t } } ,
47
+ $$
48
+
49
+ where $\beta _ { 1 } ^ { t } , \beta _ { 2 } ^ { t }$ are the $t$ -th powers of $\beta _ { 1 } , \beta _ { 2 }$ respectively. Then, we can update each parameter as
50
+
51
+ $$
52
+ \theta _ { t } = \theta _ { t - 1 } - \frac { \alpha _ { t } } { \sqrt { \hat { v } _ { t } } + \epsilon } \hat { m } _ { t } ,
53
+ $$
54
+
55
+ where $\alpha _ { t }$ is the global learning rate, and $\epsilon$ is a small constant to avoid division by zero. Note the above computations between vectors are element-wise.
56
+
57
+ A distinguishing merit of Adam is that the magnitudes of parameter updates are invariant to rescaling of the gradient, as shown by the adaptive learning rate term, $\frac { \alpha _ { t } } { \sqrt { \hat { v } _ { t } } + \epsilon }$ . However, there are two potential problems when applying Adam to DNNs.
58
+
59
+ First, in some scenarios, DNNs trained with Adam generalize worse than that trained with stochastic gradient descent (SGD) (Wilson et al., 2017). Zhang et al. (2017) demonstrate that overparameterized DNNs are capable of memorizing the entire dataset, no matter if it is natural data or meaningless noise data, and thus suggest much of the generalization power of DNNs comes from the training algorithm, e.g., SGD and its variants. It coincides with another recent work (Wilson et al., 2017), which shows that simple SGD often yields better generalization performance than adaptive gradient methods, such as Adam. As pointed out by the latter, the difference in the generalization performance may result from the different directions of updates. Specifically, for each hidden unit, the SGD update of its input weight vector can only lie in the span of all possible input vectors, which, however, is not the case for Adam due to the individually adapted learning rates. We refer to this problem as the direction missing problem.
60
+
61
+ Second, while batch normalization (Ioffe & Szegedy, 2015) can significantly accelerate the convergence of DNNs, the input weights and the scaling factor of each hidden unit can be scaled in infinitely many (but consistent) ways, without changing the function implemented by the hidden unit. Thus, for different magnitudes of an input weight vector, the updates given by Adam can have different effects on the overall network function, which is undesirable. Furthermore, even when batch normalization is not used, a network using linear rectifiers (e.g., ReLU, leaky ReLU) as activation functions, is still subject to ill-conditioning of the parameterization (Glorot et al., 2011), and hence the same problem. We refer to this problem as the ill-conditioning problem.
62
+
63
+ # 2.2 L2 WEIGHT DECAY
64
+
65
+ L2 weight decay is a regularization technique frequently used with SGD. It often has a significant effect on the generalization performance of DNNs. Despite the simplicity and crucial role of L2 weight decay in the training process, it remains to be explained how it works in DNNs. A common justification for L2 weight decay is that it can be introduced by placing a Gaussian prior upon the weights, when the objective is to find the maximum a posteriori (MAP) weights (Blundell et al., 2015). However, as discussed in Sec. 2.1, the magnitudes of input weight vectors are irrelevant in terms of the overall network function, in some common scenarios, rendering the variance of the Gaussian prior meaningless.
66
+
67
+ We propose to view L2 weight decay in neural networks as a form of weight normalization, which may better explain its effect on the generalization performance. Consider a neural network trained with the following loss function:
68
+
69
+ $$
70
+ \widetilde { L } \left( \boldsymbol { \theta } ; \mathcal { D } \right) = L \left( \boldsymbol { \theta } ; \mathcal { D } \right) + \frac { \lambda } { 2 } \sum _ { i \in \mathcal { N } } \left. w _ { i } \right. _ { 2 } ^ { 2 } ,
71
+ $$
72
+
73
+ where $L \left( \theta ; \mathcal { D } \right)$ is the original loss function specified by the task, $\mathcal { D }$ is a batch of training data, $\mathcal { N }$ is the set of all hidden units, and $w _ { i }$ denotes the input weights of hidden unit $i$ , which is included in the trainable parameters, $\theta$ . For simplicity, we consider SGD updates without momentum. Therefore, the update of $w _ { i }$ at each time step is
74
+
75
+ $$
76
+ \Delta w _ { i } = - \alpha \frac { \partial \widetilde { L } } { \partial w _ { i } } = - \alpha \left( \frac { \partial L } { \partial w _ { i } } + \lambda w _ { i } \right) ,
77
+ $$
78
+
79
+ where $\alpha$ is the learning rate. As we can see from Eq. (5), the gradient magnitude of the L2 penalty is proportional to $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ , thus forms a negative feedback loop that stabilizes $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ to an equilibrium value. Empirically, we find that $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ tends to increase or decrease dramatically at the beginning of the training, and then varies mildly within a small range, which indicates $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 } \approx \lVert \boldsymbol { w } _ { i } + \Delta \boldsymbol { w } _ { i } \rVert _ { 2 }$ . In practice, we usually have $\left\| \Delta w _ { i } \right\| _ { 2 } / \left\| w _ { i } \right\| _ { 2 } \ll 1$ , thus $\Delta w _ { i }$ is approximately orthogonal to $w _ { i }$ , i.e. $w _ { i } \cdot \Delta w _ { i } \approx 0$ .
80
+
81
+ Let $l _ { \parallel w _ { i } }$ and $l \_ w _ { i }$ be the vector projection and rejection of $\frac { \partial L } { \partial w _ { i } }$ on $w _ { i }$ , which are defined as
82
+
83
+ $$
84
+ l _ { \parallel w _ { i } } = \left( \frac { \partial L } { \partial w _ { i } } \cdot \frac { w _ { i } } { \parallel w _ { i } \parallel _ { 2 } } \right) \frac { w _ { i } } { \parallel w _ { i } \parallel _ { 2 } } , l _ { \perp w _ { i } } = \frac { \partial L } { \partial w _ { i } } - l _ { \parallel w _ { i } } .
85
+ $$
86
+
87
+ From Eq. (5) and (6), it is easy to show
88
+
89
+ $$
90
+ \frac { \left. \Delta w _ { i } \right. _ { 2 } } { \left. w _ { i } \right. _ { 2 } } \approx \frac { \left. l _ { \perp w _ { i } } \right. _ { 2 } } { \left. l _ { \parallel w _ { i } } \right. _ { 2 } } \alpha \lambda .
91
+ $$
92
+
93
+ As discussed in Sec. 2.1, when batch normalization is used, or when linear rectifiers are used as activation functions, the magnitude of $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ is irrelevant. Thus, it is the direction of $w _ { i }$ that actually makes a difference in the overall network function. If L2 weight decay is not applied, the magnitude of $w _ { i }$ ’s direction change will decrease as $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ increases during the training process, which can potentially lead to overfitting (discussed in detail in Sec. 3.2). On the other hand, Eq. (7) shows that L2 weight decay implicitly normalizes the weights, such that the magnitude of $w _ { i }$ ’s direction change does not depend on $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ , and can be tuned by the product of $\alpha$ and $\lambda$ . In the following, we refer to $\| \Delta w _ { i } \| _ { 2 } | \| w _ { i } \| _ { 2 }$ as the effective learning rate of $w _ { i }$ .
94
+
95
+ While L2 weight decay produces the normalization effect in an implicit and approximate way, we will show that explicitly doing so enables more precise control of the effective learning rate.
96
+
97
+ # 3 NORMALIZED DIRECTION-PRESERVING ADAM
98
+
99
+ We first present the normalized direction-preserving Adam (ND-Adam) algorithm, which essentially improves the optimization of the input weights of hidden units, while employing the vanilla Adam algorithm to update other parameters. Specifically, we divide the trainable parameters, $\theta$ , into two sets, $\theta ^ { v }$ and $\theta ^ { s }$ , such that $\mathcal { \tilde { \theta } } ^ { v } = \{ w _ { i } | i \in \bar { \mathcal { N } } \}$ , and $\theta ^ { s } = \{ \theta \setminus \theta ^ { v } \}$ . Then we update $\theta ^ { v }$ and $\theta ^ { s }$ by different rules, as described by Alg. 1. The learning rates for the two sets of parameters are denoted respectively by $\alpha _ { t } ^ { v }$ and $\alpha _ { t } ^ { s }$ .
100
+
101
+ # Algorithm 1: Normalized direction-preserving Adam
102
+
103
+ $/ \star$ Initialization \*/
104
+ $t \gets 0$ ;
105
+ for $i \in \mathcal N$ do $w _ { i , 0 } w _ { i , 0 } / \parallel w _ { i , 0 } \parallel _ { 2 } ;$ $m _ { 0 } \left( w _ { i } \right) \gets 0$ ; $v _ { 0 } ( w _ { i } ) 0$ ;
106
+ $/ \star$ Perform $T$ iterations of training \*/
107
+ while $t < T$ do $t \gets t + 1$ ; $/ \star$ Update $\theta ^ { v }$ \*/ for $i \in \mathcal N$ do $\bar { g } _ { t } ( w _ { i } ) \partial L / \partial w _ { i }$ ; $g _ { t } \left( w _ { i } \right) \gets \bar { g } _ { t } \left( w _ { i } \right) - \left( \bar { g } _ { t } \left( w _ { i } \right) \cdot w _ { i , t - 1 } \right) w _ { i , t - 1 } ;$ $m _ { t } \left( w _ { i } \right) \gets \beta _ { 1 } m _ { t - 1 } \left( w _ { i } \right) + \left( 1 - \beta _ { 1 } \right) g _ { t } \left( w _ { i } \right) ;$ $v _ { t } ( w _ { i } ) \beta _ { 2 } v _ { t - 1 } ( w _ { i } ) + ( 1 - \beta _ { 2 } ) \| g _ { t } ( w _ { i } ) \| _ { 2 } ^ { 2 } ;$ $\hat { m } _ { t } \left( w _ { i } \right) \gets m _ { t } \left( w _ { i } \right) / \left( 1 - \beta _ { 1 } ^ { t } \right)$ ; $\hat { v } _ { t } ( w _ { i } ) v _ { t } ( w _ { i } ) / ( 1 - \beta _ { 2 } ^ { t } )$ ; $\bar { w } _ { i , t } w _ { i , t - 1 } - \alpha _ { t } ^ { v } \hat { m } _ { t } ( w _ { i } ) / ( \sqrt { \hat { v } _ { t } ( w _ { i } ) } + \epsilon ) ;$ ; $w _ { i , t } \gets \bar { w } _ { i , t } / \left. \bar { w } _ { i , t } \right. _ { 2 }$ ; /\* Update $\theta ^ { s }$ using Adam \*/ $\theta _ { t } ^ { s } \gets$ AdamUpdate $\left( \theta _ { t - 1 } ^ { s } ; \alpha _ { t } ^ { s } , \beta _ { 1 } , \beta _ { 2 } \right)$ ;
108
+
109
+ return $\theta _ { T }$
110
+
111
+ In Alg. 1, the iteration over $\mathcal { N }$ can be performed in parallel, and thus introduces no extra computational complexity. Compared to Adam, computing $g _ { t } \left( w _ { i } \right)$ and $w _ { i , t }$ may take slightly more time, which, however, is negligible in practice. On the other hand, to estimate the second order moment of each $w _ { i } \in \mathbb { R } ^ { n }$ , Adam maintains $n$ scalars, whereas ND-Adam requires only one scalar, $v _ { t } \left( w _ { i } \right)$ . Thus, ND-Adam has smaller memory overhead than Adam.
112
+
113
+ In the following, we address the direction missing problem and the ill-conditioning problem discussed in Sec. 2.1, and explain Alg. 1 in detail. We show how the proposed algorithm jointly solves the two problems, as well as its relation to other normalization schemes.
114
+
115
+ # 3.1 PRESERVING GRADIENT DIRECTIONS
116
+
117
+ Assuming the stationarity of a hidden unit’s input distribution, the SGD update (possibly with momentum) of the input weight vector is a linear combination of historical gradients, and thus can only lie in the span of the input vectors. As a result, the input weight vector itself will eventually converge to the same subspace.
118
+
119
+ On the contrary, the Adam algorithm adapts the global learning rate to each scalar parameter independently, such that the gradient of each parameter is normalized by a running average of its magnitudes, which changes the direction of the gradient. To preserve the direction of the gradient w.r.t. each input weight vector, we generalize the learning rate adaptation scheme from scalars to vectors.
120
+
121
+ Let $g _ { t } ( w _ { i } ) , m _ { t } ( w _ { i } ) , v _ { t } ( w _ { i } )$ be the counterparts of $g _ { t }$ , $m _ { t }$ , $v _ { t }$ for vector $w _ { i }$ . Since Eq. (1a) is a linear combination of historical gradients, it can be extended to vectors without any change; or equivalently, we can rewrite it for each vector as
122
+
123
+ $$
124
+ m _ { t } \left( w _ { i } \right) = \beta _ { 1 } m _ { t - 1 } \left( w _ { i } \right) + \left( 1 - \beta _ { 1 } \right) g _ { t } \left( w _ { i } \right) .
125
+ $$
126
+
127
+ We then extend Eq. (1b) as
128
+
129
+ $$
130
+ v _ { t } \left( w _ { i } \right) = \beta _ { 2 } v _ { t - 1 } \left( w _ { i } \right) + \left( 1 - \beta _ { 2 } \right) \left. g _ { t } \left( w _ { i } \right) \right. _ { 2 } ^ { 2 } ,
131
+ $$
132
+
133
+ i.e., instead of estimating the average gradient magnitude for each individual parameter, we estimate the average of $\| g _ { t } \left( w _ { i } \right) \| _ { 2 } ^ { 2 }$ for each vector $w _ { i }$ . In addition, we modify Eq. (2) and (3) accordingly as
134
+
135
+ $$
136
+ \hat { m } _ { t } \left( w _ { i } \right) = \frac { m _ { t } \left( w _ { i } \right) } { 1 - \beta _ { 1 } ^ { t } } , \hat { v } _ { t } \left( w _ { i } \right) = \frac { v _ { t } \left( w _ { i } \right) } { 1 - \beta _ { 2 } ^ { t } } ,
137
+ $$
138
+
139
+ and
140
+
141
+ $$
142
+ w _ { i , t } = w _ { i , t - 1 } - \frac { \alpha _ { t } ^ { v } } { \sqrt { { \hat { v } } _ { t } \left( w _ { i } \right) } + \epsilon } { \hat { m } } _ { t } \left( w _ { i } \right) .
143
+ $$
144
+
145
+ Here, $\hat { m } _ { t } \left( \boldsymbol { w } _ { i } \right)$ is a vector with the same dimension as $w _ { i }$ , whereas $\hat { v } _ { t } \left( w _ { i } \right)$ is a scalar. Therefore, when applying Eq. (11), the direction of the update is the negative direction of $\hat { m } _ { t } \left( \boldsymbol { w } _ { i } \right)$ , and thus is in the span of the historical gradients of $w _ { i }$ .
146
+
147
+ It is worth noting that only the input to the first layer (i.e., the training data) is stationary throughout training. Thus, for the weights of an upper layer to converge to the span of its input vectors, it is necessary for the lower layers to converge first. Interestingly, this predicted phenomenon may have been observed in practice (Brock et al., 2017).
148
+
149
+ Despite the empirical success of SGD, a question remains as to why it is desirable to constrain the input weights in the span of the input vectors. A possible explanation is related to the manifold hypothesis, which suggests that real-world data presented in high dimensional spaces (images, audios, text, etc) concentrates on manifolds of much lower dimensionality (Cayton, 2005; Narayanan & Mitter, 2010). In fact, commonly used activation functions, such as (leaky) ReLU, sigmoid, tanh, can only be activated (not saturating or having small gradients) by a portion of the input vectors, in whose span the input weights lie upon convergence. Assuming the local linearity of the manifolds of data or hidden-layer representations, constraining the input weights in the subspace that contains some of the input vectors, encourages the hidden units to form local coordinate systems on the corresponding manifold, which can lead to good representations (Rifai et al., 2011).
150
+
151
+ # 3.2 SPHERICAL WEIGHT OPTIMIZATION
152
+
153
+ The ill-conditioning problem occurs when the magnitude change of an input weight vector can be compensated by other parameters, such as the scaling factor of batch normalization, or the output weight vector, without affecting the overall network function. Consequently, suppose we have two DNNs that parameterize the same function, but with some of the input weight vectors having different magnitudes, applying the same SGD or Adam update rule will, in general, change the network functions in different ways. Thus, the ill-conditioning problem makes the training process inconsistent and difficult to control.
154
+
155
+ More importantly, when the weights are not properly regularized (e.g., without using L2 weight decay), the magnitude of $w _ { i }$ ’s direction change will decrease as $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ increases during the training process. As a result, the effective learning rate for $w _ { i }$ tends to decrease faster than expected, making the network converge to sharp minima. It is well known that sharp minima generalize worse than flat minima (Hochreiter & Schmidhuber, 1997; Keskar et al., 2017).
156
+
157
+ As shown in Sec. 2.2, L2 weight decay can alleviate the ill-conditioning problem by implicitly and approximately normalizing the weights. However, we still do not have a precise control over the effective learning rate, since $\| \bar { l _ { \perp w _ { i } } } \| _ { 2 } / | \bar { \| l _ { \parallel w _ { i } } } | | _ { 2 }$ is unknown and not necessarily stable. Moreover, the approximation fails when $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ is far from the equilibrium due to improper initialization, or drastic changes in the magnitudes of the weight vectors. This problem is also addressed by (Neyshabur et al., 2015), by employing a geometry invariant to rescaling of weights. However, their proposed methods do not preserve the direction of gradient.
158
+
159
+ To address the ill-conditioning problem in a more principled way, we restrict the L2-norm of each $w _ { i }$ to 1, and only optimize its direction. In other words, instead of optimizing $w _ { i }$ in a $n$ -dimensional space, we optimize $w _ { i }$ on a $( n - 1 )$ -dimensional unit sphere. Specifically, we first obtain the raw gradient w.r.t. $w _ { i } , \bar { g } _ { t } \left( w _ { i } \right) = \partial L / \partial w _ { i }$ , and project the gradient onto the unit sphere as
160
+
161
+ $$
162
+ g _ { t } \left( w _ { i } \right) = \bar { g } _ { t } \left( w _ { i } \right) - \left( \bar { g } _ { t } \left( w _ { i } \right) \cdot w _ { i , t - 1 } \right) w _ { i , t - 1 } .
163
+ $$
164
+
165
+ Here, $\| w _ { i , t - 1 } \| _ { 2 } = 1$ . Then we follow Eq. (8)-(10), and replace (11) with
166
+
167
+ and
168
+
169
+ $$
170
+ \begin{array} { c } { \displaystyle \bar { w } _ { i , t } = w _ { i , t - 1 } - \frac { \alpha _ { t } ^ { v } } { \sqrt { \hat { v } _ { t } \left( w _ { i } \right) } + \epsilon } \hat { m } _ { t } \left( w _ { i } \right) , } \\ { \displaystyle w _ { i , t } = \frac { \bar { w } _ { i , t } } { \| \bar { w } _ { i , t } \| _ { 2 } } . } \end{array}
171
+ $$
172
+
173
+ In Eq. (12), we keep only the component that is orthogonal to $w _ { i , t - 1 }$ . However, $\hat { m } _ { t } \left( \boldsymbol { w } _ { i } \right)$ is not necessarily orthogonal as well. In addition, even when $\hat { m } _ { t } \left( \boldsymbol { w } _ { i } \right)$ is orthogonal to $w _ { i , t - 1 }$ , Eq. (13a) can still increase $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ , according to the Pythagorean theorem. Therefore, we explicitly normalize $w _ { i , t }$ in Eq. (13b), to ensure $\| w _ { i , t } \| _ { 2 } = 1$ after each update. Also note that, since $w _ { i , t - 1 }$ is a linear combination of its historical gradients, $g _ { t } \left( w _ { i } \right)$ still lies in the span of the historical gradients after the projection in Eq. (12).
174
+
175
+ Compared to SGD with L2 weight decay, spherical weight optimization explicitly normalizes the weight vectors, such that each update to the weight vectors only changes their directions, and strictly keeps the magnitudes constant. As a result, the effective learning rate of a weight vector is
176
+
177
+ $$
178
+ \frac { \left. \Delta w _ { i , t } \right. _ { 2 } } { \left. w _ { i , t - 1 } \right. _ { 2 } } \approx \frac { \left. \hat { m } _ { t } \left( w _ { i } \right) \right. _ { 2 } } { \sqrt { \hat { v } _ { t } \left( w _ { i } \right) } } \alpha _ { t } ^ { v } ,
179
+ $$
180
+
181
+ which enables precise control over the learning rate of $w _ { i }$ through a single hyperparameter, $\alpha _ { t } ^ { v }$ rather than two as required by Eq. (7). Note that it is possible to control the effective learning rate more precisely, by normalizing $\hat { m } _ { t } \left( \boldsymbol { w } _ { i } \right)$ with $\| \hat { m } _ { t } \left( w _ { i } \right) \| _ { 2 }$ , instead of by $\sqrt { \hat { v } _ { t } \left( w _ { i } \right) }$ . However, by doing so, we lose the information provided by $\| \hat { m } _ { t } \left( \boldsymbol { w } _ { i } \right) \| _ { 2 }$ at different time steps. In addition, since $\hat { m } _ { t } \left( \boldsymbol { w } _ { i } \right)$ is less noisy than $g _ { t } \left( w _ { i } \right)$ , $\Vert \hat { m } _ { t } \left( w _ { i } \right) \Vert _ { 2 } / \sqrt { \hat { v } _ { t } \left( w _ { i } \right) }$ becomes small near convergence, which is considered a desirable property of Adam (Kingma $\&$ Ba, 2014). Thus, we keep the gradient normalization scheme intact.
182
+
183
+ We note the difference between various gradient normalization schemes and the normalization scheme employed by spherical weight optimization. As shown in Eq. 11, ND-Adam generalizes the gradient normalization scheme of Adam, and thus both Adam and ND-Adam normalize the gradient by a running average of its magnitude. This, and other similar schemes (Hazan et al., 2015; Yu et al., 2017) make the optimization less susceptible to vanishing and exploding gradients. On the other hand, the proposed spherical weight optimization serves a different purpose. It normalizes each weight vector and projects the gradient onto a unit sphere, such that the effective learning rate can be controlled more precisely. Moreover, it provides robustness to improper weight initialization, since the magnitude of each weight vector is kept constant.
184
+
185
+ For nonlinear activation functions, such as sigmoid and tanh, an extra scaling factor is needed for each hidden unit to express functions that require unnormalized weight vectors. For instance, given an input vector $x \in \mathbb { R } ^ { n }$ , and a nonlinearity $\phi \left( \cdot \right)$ , the activation of hidden unit $i$ is then given by
186
+
187
+ $$
188
+ y _ { i } = \phi \left( \gamma _ { i } w _ { i } \cdot x + b _ { i } \right) ,
189
+ $$
190
+
191
+ where $\gamma _ { i }$ is the scaling factor, and $b _ { i }$ is the bias.
192
+
193
+ # 3.3 RELATION TO WEIGHT NORMALIZATION AND BATCH NORMALIZATION
194
+
195
+ A related normalization and reparameterization scheme, weight normalization (Salimans & Kingma, 2016), has been developed as an alternative to batch normalization, aiming to accelerate the convergence of SGD optimization. We note the difference between spherical weight optimization and weight normalization. First, the weight vector of each hidden unit is not directly normalized in weight normalization, i.e, $\| w _ { i } \| _ { 2 } \neq 1$ in general. At training time, the activation of hidden unit $i$ is
196
+
197
+ $$
198
+ y _ { i } = \phi \left( \frac { \gamma _ { i } } { \left\| w _ { i } \right\| _ { 2 } } w _ { i } \cdot x + b _ { i } \right) ,
199
+ $$
200
+
201
+ which is equivalent to Eq. (15) for the forward pass. For the backward pass, the effective learning rate still depends on $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ in weight normalization, hence it does not solve the ill-conditioning problem. At inference time, both of these two schemes can combine $w _ { i }$ and $\gamma _ { i }$ into a single equivalent weight vector, $w _ { i } ^ { \prime } = \gamma _ { i } w _ { i }$ , o r $\begin{array} { r } { w _ { i } ^ { \prime } = \frac { \gamma _ { i } } { \Vert w _ { i } \Vert _ { 2 } } w _ { i } } \end{array}$ .
202
+
203
+ While spherical weight optimization naturally encompasses weight normalization, it can further benefit from batch normalization. When combined with batch normalization, Eq. (15) evolves into
204
+
205
+ $$
206
+ y _ { i } = \phi \left( \gamma _ { i } \operatorname { B N } \left( w _ { i } \cdot x \right) + b _ { i } \right) ,
207
+ $$
208
+
209
+ where $\mathrm { B N } \left( { \cdot } \right)$ represents the transformation done by batch normalization without scaling and shifting. Here, $\gamma _ { i }$ serves as the scaling factor for both the normalized weight vector and batch normalization. At training time, the distribution of the input vector, $x$ , changes over time, slowing down the training of the sub-network composed by the upper layers. Salimans & Kingma (2016) observe that, such problem cannot be eliminated by normalizing the weight vectors alone, but can be substantially mitigated by combining weight normalization and mean-only batch normalization.
210
+
211
+ Additionally, in linear rectifier networks, the scaling factors, $\gamma _ { i }$ , can be removed (or set to 1), without changing the overall network function. Since $w _ { i } \cdot x$ is standardized by batch normalization, we have
212
+
213
+ $$
214
+ \mathbb { E } _ { x } \left[ \mathrm { B N } \left( \boldsymbol { w } _ { i } \cdot \boldsymbol { x } \right) ^ { 2 } \right] \approx 1 ,
215
+ $$
216
+
217
+ and hence
218
+
219
+ $$
220
+ \operatorname { V a r } _ { \boldsymbol { x } } \left[ \operatorname { B N } \left( \boldsymbol { w } _ { i } \cdot \boldsymbol { x } \right) + b _ { i } \right] \approx 1 .
221
+ $$
222
+
223
+ Therefore, $y _ { i }$ ’s that belong to the same layer, or different dimensions of $x$ that fed to the upper layer, will also have comparable variances, which potentially makes the weight updates of the upper layer more stable. For these reasons, we combine the use of spherical weight optimization and batch normalization, as shown in Eq. (17).
224
+
225
+ # 4 REGULARIZED SOFTMAX
226
+
227
+ For multi-class classification tasks, the softmax function is the de facto activation function for the output layer. Despite its simplicity and intuitive probabilistic interpretation, we observe a related problem to the ill-conditioning problem we have addressed. Similar to how different magnitudes of weight vectors result in different updates to the same network function, the learning signal backpropagated from the softmax layer varies with the overall magnitude of the logits.
228
+
229
+ Specifically, when using cross entropy as the surrogate loss with one-hot target vectors, the prediction is considered correct as long as arg $\mathrm { m a x } _ { c \in \mathcal { C } } \left( z _ { c } \right)$ is the target class, where $z _ { c }$ is the logit before the softmax activation, corresponding to category $c \in { \mathcal { C } }$ . Thus, the logits can be positively scaled together without changing the predictions, whereas the cross entropy and its derivatives will vary with the scaling factor. Concretely, denoting the scaling factor by $\eta$ , the gradient w.r.t. each logit is
230
+
231
+ $$
232
+ \frac { \partial L } { \partial z _ { \hat { c } } } = \eta \left[ \frac { \exp \left( \eta z _ { \hat { c } } \right) } { \sum _ { c \in \mathcal { C } } \exp \left( \eta z _ { c } \right) } - 1 \right] ,
233
+ $$
234
+
235
+ and
236
+
237
+ $$
238
+ \frac { \partial L } { \partial z _ { \bar { c } } } = \frac { \eta \exp \left( \eta z _ { \bar { c } } \right) } { \sum _ { c \in \mathcal { C } } \exp \left( \eta z _ { c } \right) } .
239
+ $$
240
+
241
+ where $\hat { c }$ is the target class, and ${ \bar { c } } \in { \mathcal { C } } \backslash \{ { \hat { c } } \}$ .
242
+
243
+ For Adam and ND-Adam, since the gradient w.r.t. each scalar or vector are normalized, the absolute magnitudes of Eq. (20a) and (20b) are irrelevant. Instead, the relative magnitudes make a difference here. When $\eta$ is small, we have
244
+
245
+ $$
246
+ \operatorname* { l i m } _ { \eta \to 0 } \left| \frac { \partial L / \partial z _ { \bar { c } } } { \partial L / \partial z _ { \hat { c } } } \right| = \frac { 1 } { | \mathcal { C } | - 1 } ,
247
+ $$
248
+
249
+ which indicates that, when the magnitude of the logits is small, softmax encourages the logit of the target class to increase, while equally penalizing that of the other classes. On the other end of the spectrum, assuming no two digits are the same, we have
250
+
251
+ $$
252
+ \operatorname* { l i m } _ { \eta \infty } | \frac { \partial L / \partial z _ { \bar { c } ^ { \prime } } } { \partial L / \partial z _ { \hat { c } } } | = 1 , \operatorname* { l i m } _ { \eta \infty } | \frac { \partial L / \partial z _ { \bar { c } ^ { \prime \prime } } } { \partial L / \partial z _ { \hat { c } } } | = 0 ,
253
+ $$
254
+
255
+ where $\bar { c } ^ { \prime } = \arg \operatorname* { m a x } _ { c \in \mathcal { C } \backslash \{ \hat { c } \} } \left( z _ { c } \right)$ , and $\bar { c } ^ { \prime \prime } \in \mathcal { C } \backslash \{ \hat { c } , \bar { c } ^ { \prime } \}$ . Eq. (22) indicates that, when the magnitude of the logits is large, softmax penalizes only the largest logit of the non-target classes. The latter case is related to the saturation problem of softmax discussed in Oland et al. (2017). However, they focus on the problem of small absolute gradient magnitude, which does not affect Adam and ND-Adam.
256
+
257
+ It is worth noting that both of these two cases can happen without the scaling factor. For instance, varying the norm of the weights of the softmax layer is equivalent to varying the value of $\eta$ , in terms of the relative magnitude of the gradient. In the case of small $\eta$ , the logits of all non-target classes are penalized equally, regardless of the difference in $\hat { z } - \bar { z }$ for different $\bar { z } \in \mathcal { C } \backslash \{ \hat { z } \}$ . However, it is more reasonable to penalize more the logits that are closer to $\hat { z }$ , which are more likely to cause misclassification. In the case of large $\eta$ , although the logit that is most likely to cause misclassification is strongly penalized, the logits of other non-target classes are ignored. As a result, the logits of the non-target classes tend to be similar at convergence, ignoring the fact that some classes are closer to each other than the others.
258
+
259
+ We propose two methods to exploit the prior knowledge that the magnitude of the logits should not be too small or too large. First, we can apply batch normalization to the logits. But instead of setting $\gamma _ { c }$ ’s as trainable variables, we consider them as a single hyperparameter, $\gamma _ { \mathcal { C } }$ , such that $\gamma _ { c } = \gamma _ { c } , \forall c \in \mathcal { C }$ . Tuning the value of $\gamma _ { \mathcal { C } }$ can lead to a better trade-off between the two extremes described by Eq. (21) and (22). The optimal value of $\gamma _ { \mathcal { C } }$ tends to remain the same for different optimizers or different network widths, but varies with dataset and network depth. We refer to this method as batch-normalized softmax (BN-Softmax).
260
+
261
+ Alternatively, since the magnitude of the logits tends to grow larger than expected (in order to minimize the cross entropy), we can apply L2-regularization to the logits by adding the following penalty to the loss function:
262
+
263
+ $$
264
+ L _ { \mathcal { C } } = \frac { \lambda _ { \mathcal { C } } } { 2 } \sum _ { c \in \mathcal { C } } z _ { c } ^ { 2 } ,
265
+ $$
266
+
267
+ where $\lambda _ { \mathcal { C } }$ is a hyperparameter to be tuned. Different from BN-Softmax, $\lambda _ { C }$ can be shared by different datasets and networks of different depths.
268
+
269
+ # 5 EXPERIMENTS
270
+
271
+ In this section, we provide empirical evidence for the analysis in Sec. 2.2, and evaluate the performance of ND-Adam and regularized softmax on CIFAR-10 and CIFAR-100.
272
+
273
+ # 5.1 THE EFFECT OF L2 WEIGHT DECAY
274
+
275
+ To empirically examine the effect of L2 weight decay, we train a wide residual network (WRN) (Zagoruyko & Komodakis, 2016b) of 22 layers, with a width of 7.5 times that of a vanilla ResNet. Using the notation in Zagoruyko & Komodakis (2016b), we refer to this network as WRN-22-7.5. We train the network on the CIFAR-10 dataset (Krizhevsky & Hinton, 2009), with a small modification to the original WRN architecture, and with a different learning rate annealing schedule. Specifically, for simplicity and slightly better performance, we replace the last fully connected layer with a convolutional layer with 10 output feature maps. I.e., we change the layers after the last residual block from BN-ReLU-GlobalAvgPool-FC-Softmax to
276
+
277
+ BN-ReLU-Conv-GlobalAvgPool-Softmax. In addition, for clearer comparisons, the learning rate is annealed according to a cosine function without restart (Loshchilov & Hutter, 2016; Gastaldi, 2017). We train the model for 80k iterations with a batch size of 128, similar to the settings in Zagoruyko & Komodakis (2016b). The experiments are based on a TensorFlow implementation of WRN (Wu, 2016).
278
+
279
+ As a common practice, we use SGD with a momentum of 0.9, the analysis for which is similar to that in Sec. 2.2. Due to the linearity of derivatives and momentum, $\Delta w _ { i }$ can be decomposed as $\Delta w _ { i } = \Delta w _ { i } ^ { l } + \Delta w _ { i } ^ { p }$ , where $\Delta w _ { i } ^ { l }$ and $\Delta w _ { i } ^ { p }$ are the components corresponding to the original loss function, $L \left( \cdot \right)$ , and the L2 penalty term (see Eq. (4)), respectively. Fig. 1a shows the ratio between the scalar projection of $\Delta \bar { w } _ { i } ^ { l }$ on $\bar { \Delta } w _ { i } ^ { p }$ and $\left. \Delta w _ { i } ^ { p } \right. _ { 2 }$ , which indicates how the tendency of $\Delta w _ { i } ^ { l }$ to increase $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ is compensated by $\Delta w _ { i } ^ { p }$ . Note that $\Delta w _ { i } ^ { p }$ points to the negative direction of $w _ { i }$ , even when momentum is used, since the direction change of $w _ { i }$ is slow. As shown in Fig. 1a, at the beginning of the training, $\Delta w _ { i } ^ { p }$ dominants and quickly adjusts $\lVert \boldsymbol { w } _ { i } \rVert _ { 2 }$ to its equilibrium value. During the middle stage of the training, the projection of $\Delta w _ { i } ^ { l }$ on $\Delta w _ { i } ^ { p }$ , and $\Delta w _ { i } ^ { p }$ almost cancel each other out. Then, near the end of the training, the gradient of $w _ { i }$ diminishes rapidly to near zero, making $\Delta w _ { i } ^ { p }$ dominant again. Therefore, Eq. (7) holds more accurately during the middle stage of the training.
280
+
281
+ In Fig. 1b, we show how the effective learning rate varies in different hyperparameter settings. By Eq. (7), $\left\| \Delta w _ { i } \right\| _ { 2 } / \left\| w _ { i } \right\| _ { 2 }$ is expected to remain the same as long as $\alpha \lambda$ stays constant, which is confirmed by the fact that the curve for $\alpha _ { 0 } = 0 . 1 , \lambda = 0 . 0 0 1$ overlaps with that for $\alpha _ { 0 } = 0 . 0 5 , \lambda =$ 0.002. However, comparing the curve for $\alpha _ { 0 } = 0 . 1 , \lambda = 0 . 0 0 1$ , with that for $\alpha _ { 0 } = 0 . 1 , \lambda =$ 0.0005, we can see that the value of $\| \Delta w _ { i } \| _ { 2 } / \| w _ { i } \| _ { 2 }$ does not change proportionally to $\alpha \lambda$ . On the other hand, by using ND-Adam, we can control the value of $\lVert \Delta w _ { i } \rVert _ { 2 } \dot { / } \lVert \dot { w } _ { i } \rVert _ { 2 }$ more precisely by adjusting the learning rate for weight vectors, $\alpha ^ { v }$ . For the same training step, changes in $\alpha ^ { v }$ lead to approximately proportional changes in $\| \Delta w _ { i } \| _ { 2 } / \| w _ { i } \| _ { 2 }$ , as shown by the two curves corresponding to ND-Adam in Fig. 1b.
282
+
283
+ ![](images/dcf5f1c901e84b092b98192aad1de61f46fb687abe7413362a2285ff99d328ee.jpg)
284
+ (a) The scalar projection of $\Delta w _ { i } ^ { l }$ on $\Delta w _ { i } ^ { p }$ normalized by(b) The relative magnitude of the weight updates, or the $\left. \Delta w _ { i } ^ { p } \right. _ { 2 }$ . effective learning rate.
285
+ Figure 1: An illustration of how L2 weight decay and ND-Adam control the effective learning rate. The results are obtained from the 5th layer of the network, and other layers show similar results.
286
+
287
+ # 5.2 PERFORMANCE EVALUATION
288
+
289
+ To compare the generalization performance of SGD, Adam, and ND-Adam, we train the same WRN22-7.5 network on the CIFAR-10 and CIFAR-100 datasets. For SGD and ND-Adam, we first tune the hyperparameters for SGD $( \alpha _ { 0 } = 0 . 1 , \lambda = 0 . 0 0 1$ , momentum 0.9), then tune the initial learning rate of ND-Adam for weight vectors to match the effective learning rate to that of SGD $\alpha _ { 0 } ^ { v } = 0 . 0 5 )$ , as shown in Fig. 1b. While L2 weight decay can greatly affect the performance of SGD, it does not noticeably benefit Adam in our experiments. For Adam and ND-Adam, $\beta _ { 1 }$ and $\beta _ { 2 }$ are set to the default values of Adam, i.e., $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ . Although the learning rate of Adam is usually set to a constant value, we observe better performance with the cosine learning rate schedule. The initial learning rate of Adam $( \alpha _ { 0 } )$ , and that of ND-Adam for scalar parameters $( \alpha _ { 0 } ^ { s } )$ are both tuned to 0.001. We use the same data augmentation scheme as used in Zagoruyko & Komodakis (2016b), including horizontal flips and random crops, but no dropout is used.
290
+
291
+ We first experiment with the use of trainable scaling parameters $( \gamma _ { i } )$ of batch normalization. As shown in Fig. 2b, at convergence, the test accuracies of ND-Adam are significantly improved upon that of vanilla Adam, and matches that of SGD. Note that at the early stage of training, the training losses of Adam drop dramatically as shown in Fig. 2a, and the test accuracies also increase more rapidly than that of ND-Adam and SGD. However, the test accuracies remain at a high level afterwards, which indicates that Adam tends to quickly find and get stuck in bad local minima that do not generalize well.
292
+
293
+ The average results of 3 runs are summarized in the first part of Table 1. Interestingly, compared to SGD, ND-Adam shows slightly better performance on CIFAR-10, but worse performance on CIFAR-100. This inconsistency may be related to the problem of softmax discussed in Sec. 4, that there is a lack of proper control over the magnitude of the logits. But overall, given comparable effective learning rates, ND-Adam and SGD show similar generalization performance. In this sense, the effective learning rate is a more natural learning rate measure than the learning rate hyperparameters.
294
+
295
+ ![](images/2258af99304275cba3dda8e135ac5499ddd95a8b02f54c25a7f467886f8ef9b4.jpg)
296
+ Figure 2: The training losses and test accuracies of the same network trained with SGD, Adam, and ND-Adam. Batch normalization with scaling factors is used.
297
+
298
+ Next, we repeat the experiments with the use of BN-Softmax. As discussed in Sec. 3.2, $\gamma _ { i }$ ’s can be removed from a linear rectifier network, without changing the overall network function. Although this property does not strictly hold for residual networks due to the skip connections, we find that simply removing the scaling factors results in slightly improved generalization performance when using ND-Adam. However, the improvement is not consistent as it degrades performance of SGD. Interestingly, when BN-Softmax is further used, we observe consistent improvement over all three algorithms. Thus, we only report results for this setting. The scaling factor of the logits, $\gamma _ { \mathcal { C } }$ , is set to 2.5 for CIFAR-10, and 1 for CIFAR-100. As shown in the second part of Table 1, BN-Softmax significantly improves the performance of Adam and ND-Adam. Moreover, in this setting, we obtain the best generalization performance with ND-Adam, outperforming SGD and Adam on both CIFAR-10 and CIFAR-100.
299
+
300
+ While the TensorFlow implementation we use already provides an adequate test bed, we notice that it is different from the original implementation of WRN in several aspects. For instance, they use different nonlinearities (leaky ReLU vs. ReLU), and use different skip connections for downsampling (average pooling vs. strided convolution). A seemingly subtle but important difference is that, L2-regularization is applied not only to weight vectors, but also to the scales and biases of batch normalization in the original implementation, which leads to better generalization performance. For further comparison between SGD and ND-Adam, we reimplement ND-Adam and test its performance on a PyTorch version of the original implementation (Zagoruyko & Komodakis, 2016a).
301
+
302
+ Due to the aforementioned differences, we use a slightly different hyperparameter setting in this experiment. Specifically, for SGD $\lambda$ is set to 5e 4, while for ND-Adam $\lambda$ is set to 5e 6 (L2- regularization for biases), and both $\alpha _ { 0 } ^ { s }$ and $\alpha _ { 0 } ^ { v }$ are set to 0.04. In this case, regularizing softmax does not yield improved performance for SGD, since the L2-regularization applied to $\gamma _ { i }$ ’s and the last layer weights can serve a similar purpose. Thus, we only apply L2-regularized softmax for ND-Adam with $\lambda _ { C } = 0 . 0 0 1$ . The average results of 3 runs are summarized in Table 2. Note that the performance of SGD for WRN-28-10 is slightly better than that reported with the original implementation (i.e., 4.00 and 19.25), due to the modifications described in Sec. 5.1. In this experiment, SGD and ND-Adam show almost identical generalization performance.
303
+
304
+ ![](images/6b18d8319a01a5b33527c5568d4d8a9daa311ed6b273f8af12a0ff24dd7216e8.jpg)
305
+ Figure 3: The training losses and test accuracies of the same network trained with SGD, Adam, and ND-Adam. Batch normalization without scaling factors, and BN-Softmax are used.
306
+ Table 2: Test error rates of WRN-22-7.5 and WRN-28-10 networks on CIFAR-10 and CIFAR-100. Based on the original implementation of WRN.
307
+
308
+ Table 1: Test error rates of WRN-22-7.5 networks on CIFAR-10 and CIFAR-100. Based on a TensorFlow implementation of WRN.
309
+
310
+ <table><tr><td>CIFAR-10 Method Error (%)</td><td>CIFAR-100 Error (%)</td></tr><tr><td>BN w/ scaling factors</td></tr><tr><td>SGD 4.61 20.60</td></tr><tr><td>Adam 6.14 25.51</td></tr><tr><td>ND-Adam 4.53 21.45</td></tr><tr><td colspan="2">BN w/o scaling factors,BN-Softmax</td></tr><tr><td>SGD 4.49</td><td>20.18</td></tr><tr><td>Adam 5.43</td><td>22.48</td></tr><tr><td>ND-Adam 4.14</td><td>19.90</td></tr></table>
311
+
312
+ <table><tr><td>Method</td><td>CIFAR-10 Error (%)</td><td>CIFAR-100 Error (%)</td></tr><tr><td></td><td>WRN-22-7.5</td><td></td></tr><tr><td>SGD</td><td>3.84</td><td>19.24</td></tr><tr><td>ND-Adam</td><td>3.70</td><td>19.30</td></tr><tr><td>WRN-28-10</td><td></td><td></td></tr><tr><td>SGD</td><td>3.80</td><td>18.48</td></tr><tr><td>ND-Adam</td><td>3.70</td><td>18.42</td></tr></table>
313
+
314
+ # 6 CONCLUSION
315
+
316
+ In this paper, we have introduced ND-Adam, a tailored version of Adam for training DNNs, to bridge the generalization gap between Adam and SGD. ND-Adam is designed to preserve the direction of gradient for each weight vector, and produce the regularization effect of L2 weight decay in a more precise and principled way. Moreover, we have introduced regularized softmax, which limits the magnitude of softmax logits to provide better learning signals. By combining ND-Adam and regularized softmax, our experiments have shown significantly improved generalization performance, eliminating the gap between Adam and SGD. From a high-level view, our analysis and empirical results suggest the need for more precise control over the training process of DNNs.
317
+
318
+ # REFERENCES
319
+
320
+ Devansh Arpit, Stanisław Jastrz˛ebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. A closer look at memorization in deep networks. arXiv preprint arXiv:1706.05394, 2017.
321
+
322
+ Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. In ICML 2015, 2015.
323
+
324
+ Andrew Brock, Theodore Lim, JM Ritchie, and Nick Weston. Freezeout: Accelerate training by progressively freezing layers. arXiv preprint arXiv:1706.04983, 2017.
325
+
326
+ Lawrence Cayton. Algorithms for manifold learning. Univ. of California at San Diego Tech. Rep, pp. 1–17, 2005.
327
+
328
+ John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12(Jul):2121–2159, 2011.
329
+
330
+ Xavier Gastaldi. Shake-shake regularization of 3-branch residual networks. In ICLR 2017 Workshop, 2017.
331
+
332
+ Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 315–323, 2011.
333
+
334
+ Elad Hazan, Kfir Levy, and Shai Shalev-Shwartz. Beyond convexity: Stochastic quasi-convex optimization. In Advances in Neural Information Processing Systems, pp. 1594–1602, 2015.
335
+
336
+ 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.
337
+
338
+ Sepp Hochreiter and Jürgen Schmidhuber. Flat minima. Neural Computation, 9(1):1–42, 1997.
339
+
340
+ Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. arXiv preprint arXiv:1709.01507, 2017.
341
+
342
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015.
343
+
344
+ 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. ICLR 2017, 2017.
345
+
346
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
347
+
348
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
349
+
350
+ Ilya Loshchilov and Frank Hutter. Sgdr: stochastic gradient descent with restarts. arXiv preprint arXiv:1608.03983, 2016.
351
+
352
+ Hariharan Narayanan and Sanjoy Mitter. Sample complexity of testing the manifold hypothesis. In Advances in Neural Information Processing Systems, pp. 1786–1794, 2010.
353
+
354
+ Behnam Neyshabur, Ruslan R Salakhutdinov, and Nati Srebro. Path-sgd: Path-normalized optimization in deep neural networks. In Advances in Neural Information Processing Systems, pp. 2422–2430, 2015.
355
+
356
+ Anders Oland, Aayush Bansal, Roger B Dannenberg, and Bhiksha Raj. Be careful what you backpropagate: A case for linear output activations & gradient boosting. arXiv preprint arXiv:1707.04199, 2017.
357
+
358
+ Salah Rifai, Yann N Dauphin, Pascal Vincent, Yoshua Bengio, and Xavier Muller. The manifold tangent classifier. In Advances in Neural Information Processing Systems, pp. 2294–2302, 2011.
359
+
360
+ Tim Salimans and Diederik P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016.
361
+
362
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015.
363
+
364
+ Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012.
365
+
366
+ Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nathan Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In Advances in Neural Information Processing Systems, 2017.
367
+
368
+ Neal Wu. A tensorflow implementation of wide residual networks, 2016. URL https:// github.com/tensorflow/models/tree/master/research/resnet.
369
+
370
+ Adams Wei Yu, Qihang Lin, Ruslan Salakhutdinov, and Jaime Carbonell. Normalized gradient with adaptive stepsize method for deep neural network training. arXiv preprint arXiv:1707.04822, 2017.
371
+
372
+ Sergey Zagoruyko and Nikos Komodakis. A pytorch implementation of wide residual networks, 2016a. URL https://github.com/szagoruyko/wide-residual-networks.
373
+
374
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016b.
375
+
376
+ Matthew D Zeiler. Adadelta: an adaptive learning rate method. arXiv preprint arXiv:1212.5701, 2012.
377
+
378
+ Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In ICLR 2017, 2017.
parse/train/HJSA_e1AW/HJSA_e1AW_content_list.json ADDED
@@ -0,0 +1,1884 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "NORMALIZED DIRECTION-PRESERVING ADAM",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 178,
8
+ 99,
9
+ 733,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 400,
21
+ 172
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 210,
32
+ 544,
33
+ 226
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Optimization algorithms for training deep models not only affects the convergence rate and stability of the training process, but are also highly related to the generalization performance of trained models. While adaptive algorithms, such as Adam and RMSprop, have shown better optimization performance than stochastic gradient descent (SGD) in many scenarios, they often lead to worse generalization performance than SGD, when used for training deep neural networks (DNNs). In this work, we identify two problems regarding the direction and step size for updating the weight vectors of hidden units, which may degrade the generalization performance of Adam. As a solution, we propose the normalized direction-preserving Adam (ND-Adam) algorithm, which controls the update direction and step size more precisely, and thus bridges the generalization gap between Adam and SGD. Following a similar rationale, we further improve the generalization performance in classification tasks by regularizing the softmax logits. By bridging the gap between SGD and Adam, we also shed some light on why certain optimization algorithms generalize better than others. ",
40
+ "bbox": [
41
+ 233,
42
+ 238,
43
+ 764,
44
+ 445
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 468,
55
+ 336,
56
+ 484
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "In contrast with the growing complexity of neural network architectures (Szegedy et al., 2015; He et al., 2016; Hu et al., 2017), the training methods remain relatively simple. Most practical optimization methods for deep neural networks (DNNs) are based on the stochastic gradient descent (SGD) algorithm. However, the learning rate of SGD, as a hyperparameter, is often difficult to tune, since the magnitudes of different parameters can vary widely, and adjustment is required throughout the training process. ",
63
+ "bbox": [
64
+ 174,
65
+ 500,
66
+ 825,
67
+ 582
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "To tackle this problem, several adaptive variants of SGD have been developed, including Adagrad (Duchi et al., 2011), Adadelta (Zeiler, 2012), RMSprop (Tieleman & Hinton, 2012), Adam (Kingma & Ba, 2014), etc. These algorithms aim to adapt the learning rate to different parameters automatically, based on the statistics of gradient. Although they usually simplify learning rate settings, and lead to faster convergence, it is observed that their generalization performance tend to be significantly worse than that of SGD in some scenarios (Wilson et al., 2017). This intriguing phenomenon may explain why SGD (possibly with momentum) is still prevalent in training state-of-the-art deep models, especially feedforward DNNs (Szegedy et al., 2015; He et al., 2016; Hu et al., 2017). Furthermore, recent work has shown that DNNs are capable of fitting noise data (Zhang et al., 2017), suggesting that their generalization capabilities are not the mere result of DNNs themselves, but are entwined with optimization (Arpit et al., 2017). ",
74
+ "bbox": [
75
+ 174,
76
+ 589,
77
+ 825,
78
+ 742
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "This work aims to bridge the gap between SGD and Adam in terms of the generalization performance. To this end, we identify two problems that may degrade the generalization performance of Adam, and show how these problems are (partially) avoided by using SGD with L2 weight decay. First, the updates of SGD lie in the span of historical gradients, whereas it is not the case for Adam. This difference has been discussed in rather recent literature (Wilson et al., 2017), where the authors show that adaptive methods can find drastically different but worse solutions than SGD. Second, while the magnitudes of Adam parameter updates are invariant to rescaling of the gradient, the effect of the updates on the same overall network function still varies with the magnitudes of parameters. As a result, the effective learning rates of weight vectors tend to decrease during training, which leads to sharp local minima that do not generalize well (Hochreiter & Schmidhuber, 1997). ",
85
+ "bbox": [
86
+ 174,
87
+ 750,
88
+ 823,
89
+ 888
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "To fix the two problems for Adam, we propose the normalized direction-preserving Adam (NDAdam) algorithm, which controls the update direction and step size more precisely. We show that ",
96
+ "bbox": [
97
+ 176,
98
+ 895,
99
+ 821,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "ND-Adam is able to achieve significantly better generalization performance than vanilla Adam, and matches that of SGD in image classification tasks. ",
107
+ "bbox": [
108
+ 173,
109
+ 103,
110
+ 825,
111
+ 132
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We summarize our contributions as follows: ",
118
+ "bbox": [
119
+ 174,
120
+ 138,
121
+ 464,
122
+ 154
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "• We observe that the directions of Adam parameter updates are different from that of SGD, i.e., Adam does not preserve the directions of gradients as SGD does. We fix the problem by adapting the learning rate to each weight vector, instead of each individual weight, such that the direction of the gradient is preserved. \nFor both Adam and SGD without L2 weight decay, we observe that the magnitude of each vector’s direction change depends on its L2-norm. We show that, using SGD with L2 weight decay implicitly normalizes the weight vectors, and thus remove the dependence in an approximate manner. We fix the problem for Adam by explicitly normalizing each weight vector, and by optimizing only its direction, such that the effective learning rate can be precisely controlled. \nWe further show that, without proper regularization, the learning signal backpropagated from the softmax layer may vary with the overall magnitude of the logits in an undesirable way. Based on the observation, we apply batch normalization or L2-regularization to the logits, which further improves the generalization performance in classification tasks. ",
129
+ "bbox": [
130
+ 215,
131
+ 165,
132
+ 825,
133
+ 369
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "In essence, our proposed methods, ND-Adam and regularized softmax, improve the generalization performance of Adam by enabling more precise control over the directions of parameter updates, the learning rates, and the learning signals. ",
140
+ "bbox": [
141
+ 176,
142
+ 382,
143
+ 825,
144
+ 424
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 BACKGROUND AND MOTIVATION",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 174,
154
+ 444,
155
+ 482,
156
+ 460
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "2.1 ADAPTIVE MOMENT ESTIMATION (ADAM) ",
163
+ "text_level": 1,
164
+ "bbox": [
165
+ 174,
166
+ 476,
167
+ 513,
168
+ 491
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "Adaptive moment estimation (Adam) (Kingma & Ba, 2014) is a stochastic optimization method that applies individual adaptive learning rates to different parameters, based on the estimates of the first and second moments of the gradients. Specifically, for $n$ trainable parameters, $\\boldsymbol \\theta \\in \\mathbb { R } ^ { n }$ , Adam maintains a running average of the first and second moments of the gradient w.r.t. each parameter as ",
175
+ "bbox": [
176
+ 174,
177
+ 501,
178
+ 825,
179
+ 558
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "equation",
185
+ "img_path": "images/d066a88fd2391e616d9689ffc9c1a5c86ba8bad600484402c8cb2b76a594531f.jpg",
186
+ "text": "$$\nm _ { t } = \\beta _ { 1 } m _ { t - 1 } + \\left( 1 - \\beta _ { 1 } \\right) g _ { t } ,\n$$",
187
+ "text_format": "latex",
188
+ "bbox": [
189
+ 398,
190
+ 569,
191
+ 596,
192
+ 587
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "equation",
198
+ "img_path": "images/839550e0c703e603eb6a7edf962d08f7e02d3b0a06ed0e5e048d8aa201584c1f.jpg",
199
+ "text": "$$\nv _ { t } = \\beta _ { 2 } v _ { t - 1 } + \\left( 1 - \\beta _ { 2 } \\right) g _ { t } ^ { 2 } .\n$$",
200
+ "text_format": "latex",
201
+ "bbox": [
202
+ 405,
203
+ 601,
204
+ 591,
205
+ 619
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Here, $t$ denotes the time step, $m _ { t } \\in \\mathbb { R } ^ { n }$ and $\\boldsymbol { v } _ { t } ~ \\in ~ \\mathbb { R } ^ { n }$ denote respectively the first and second moments, and $\\beta _ { 1 } \\in \\mathbb { R }$ and $\\beta _ { 2 } \\in \\mathbb { R }$ are the corresponding decay factors. Kingma & Ba (2014) further notice that, since $m _ { 0 }$ and $v _ { 0 }$ are initialized to $0 \\mathrm { { s } }$ , they are biased towards zero during the initial time steps, especially when the decay factors are large (i.e., close to 1). Thus, for computing the next update, they need to be corrected as ",
212
+ "bbox": [
213
+ 174,
214
+ 622,
215
+ 825,
216
+ 693
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "equation",
222
+ "img_path": "images/74c2e5a56267d5a374a15354c2a8e2202ac47c104b721106a947d5fbe4b834d4.jpg",
223
+ "text": "$$\n\\hat { m } _ { t } = \\frac { m _ { t } } { 1 - \\beta _ { 1 } ^ { t } } , \\hat { v } _ { t } = \\frac { v _ { t } } { 1 - \\beta _ { 2 } ^ { t } } ,\n$$",
224
+ "text_format": "latex",
225
+ "bbox": [
226
+ 403,
227
+ 699,
228
+ 593,
229
+ 729
230
+ ],
231
+ "page_idx": 1
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "where $\\beta _ { 1 } ^ { t } , \\beta _ { 2 } ^ { t }$ are the $t$ -th powers of $\\beta _ { 1 } , \\beta _ { 2 }$ respectively. Then, we can update each parameter as ",
236
+ "bbox": [
237
+ 173,
238
+ 736,
239
+ 797,
240
+ 752
241
+ ],
242
+ "page_idx": 1
243
+ },
244
+ {
245
+ "type": "equation",
246
+ "img_path": "images/1366a0f037db401a5cb28dd8678761e3d387befbae8bd331573d5a228b1f359f.jpg",
247
+ "text": "$$\n\\theta _ { t } = \\theta _ { t - 1 } - \\frac { \\alpha _ { t } } { \\sqrt { \\hat { v } _ { t } } + \\epsilon } \\hat { m } _ { t } ,\n$$",
248
+ "text_format": "latex",
249
+ "bbox": [
250
+ 413,
251
+ 758,
252
+ 583,
253
+ 789
254
+ ],
255
+ "page_idx": 1
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "where $\\alpha _ { t }$ is the global learning rate, and $\\epsilon$ is a small constant to avoid division by zero. Note the above computations between vectors are element-wise. ",
260
+ "bbox": [
261
+ 173,
262
+ 794,
263
+ 823,
264
+ 823
265
+ ],
266
+ "page_idx": 1
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "A distinguishing merit of Adam is that the magnitudes of parameter updates are invariant to rescaling of the gradient, as shown by the adaptive learning rate term, $\\frac { \\alpha _ { t } } { \\sqrt { \\hat { v } _ { t } } + \\epsilon }$ . However, there are two potential problems when applying Adam to DNNs. ",
271
+ "bbox": [
272
+ 174,
273
+ 829,
274
+ 825,
275
+ 875
276
+ ],
277
+ "page_idx": 1
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "First, in some scenarios, DNNs trained with Adam generalize worse than that trained with stochastic gradient descent (SGD) (Wilson et al., 2017). Zhang et al. (2017) demonstrate that overparameterized DNNs are capable of memorizing the entire dataset, no matter if it is natural data or meaningless noise data, and thus suggest much of the generalization power of DNNs comes from the training algorithm, e.g., SGD and its variants. It coincides with another recent work (Wilson et al., 2017), which shows that simple SGD often yields better generalization performance than adaptive gradient methods, such as Adam. As pointed out by the latter, the difference in the generalization performance may result from the different directions of updates. Specifically, for each hidden unit, the SGD update of its input weight vector can only lie in the span of all possible input vectors, which, however, is not the case for Adam due to the individually adapted learning rates. We refer to this problem as the direction missing problem. ",
282
+ "bbox": [
283
+ 174,
284
+ 881,
285
+ 823,
286
+ 924
287
+ ],
288
+ "page_idx": 1
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "",
293
+ "bbox": [
294
+ 173,
295
+ 103,
296
+ 825,
297
+ 215
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Second, while batch normalization (Ioffe & Szegedy, 2015) can significantly accelerate the convergence of DNNs, the input weights and the scaling factor of each hidden unit can be scaled in infinitely many (but consistent) ways, without changing the function implemented by the hidden unit. Thus, for different magnitudes of an input weight vector, the updates given by Adam can have different effects on the overall network function, which is undesirable. Furthermore, even when batch normalization is not used, a network using linear rectifiers (e.g., ReLU, leaky ReLU) as activation functions, is still subject to ill-conditioning of the parameterization (Glorot et al., 2011), and hence the same problem. We refer to this problem as the ill-conditioning problem. ",
304
+ "bbox": [
305
+ 174,
306
+ 220,
307
+ 825,
308
+ 333
309
+ ],
310
+ "page_idx": 2
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "2.2 L2 WEIGHT DECAY",
315
+ "text_level": 1,
316
+ "bbox": [
317
+ 176,
318
+ 349,
319
+ 351,
320
+ 364
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "L2 weight decay is a regularization technique frequently used with SGD. It often has a significant effect on the generalization performance of DNNs. Despite the simplicity and crucial role of L2 weight decay in the training process, it remains to be explained how it works in DNNs. A common justification for L2 weight decay is that it can be introduced by placing a Gaussian prior upon the weights, when the objective is to find the maximum a posteriori (MAP) weights (Blundell et al., 2015). However, as discussed in Sec. 2.1, the magnitudes of input weight vectors are irrelevant in terms of the overall network function, in some common scenarios, rendering the variance of the Gaussian prior meaningless. ",
327
+ "bbox": [
328
+ 173,
329
+ 375,
330
+ 825,
331
+ 488
332
+ ],
333
+ "page_idx": 2
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "We propose to view L2 weight decay in neural networks as a form of weight normalization, which may better explain its effect on the generalization performance. Consider a neural network trained with the following loss function: ",
338
+ "bbox": [
339
+ 174,
340
+ 493,
341
+ 825,
342
+ 536
343
+ ],
344
+ "page_idx": 2
345
+ },
346
+ {
347
+ "type": "equation",
348
+ "img_path": "images/199cadd218f127868776a23855a6c6dee49ddebf109997468345d5459f58b8c9.jpg",
349
+ "text": "$$\n\\widetilde { L } \\left( \\boldsymbol { \\theta } ; \\mathcal { D } \\right) = L \\left( \\boldsymbol { \\theta } ; \\mathcal { D } \\right) + \\frac { \\lambda } { 2 } \\sum _ { i \\in \\mathcal { N } } \\left. w _ { i } \\right. _ { 2 } ^ { 2 } ,\n$$",
350
+ "text_format": "latex",
351
+ "bbox": [
352
+ 375,
353
+ 539,
354
+ 622,
355
+ 578
356
+ ],
357
+ "page_idx": 2
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "where $L \\left( \\theta ; \\mathcal { D } \\right)$ is the original loss function specified by the task, $\\mathcal { D }$ is a batch of training data, $\\mathcal { N }$ is the set of all hidden units, and $w _ { i }$ denotes the input weights of hidden unit $i$ , which is included in the trainable parameters, $\\theta$ . For simplicity, we consider SGD updates without momentum. Therefore, the update of $w _ { i }$ at each time step is ",
362
+ "bbox": [
363
+ 174,
364
+ 580,
365
+ 825,
366
+ 637
367
+ ],
368
+ "page_idx": 2
369
+ },
370
+ {
371
+ "type": "equation",
372
+ "img_path": "images/f0eb9a5e9fdec8f644572172d916aff056fa85fb95bd68b7529632fd3eeda5b3.jpg",
373
+ "text": "$$\n\\Delta w _ { i } = - \\alpha \\frac { \\partial \\widetilde { L } } { \\partial w _ { i } } = - \\alpha \\left( \\frac { \\partial L } { \\partial w _ { i } } + \\lambda w _ { i } \\right) ,\n$$",
374
+ "text_format": "latex",
375
+ "bbox": [
376
+ 366,
377
+ 641,
378
+ 630,
379
+ 679
380
+ ],
381
+ "page_idx": 2
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "where $\\alpha$ is the learning rate. As we can see from Eq. (5), the gradient magnitude of the L2 penalty is proportional to $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ , thus forms a negative feedback loop that stabilizes $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ to an equilibrium value. Empirically, we find that $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ tends to increase or decrease dramatically at the beginning of the training, and then varies mildly within a small range, which indicates $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 } \\approx \\lVert \\boldsymbol { w } _ { i } + \\Delta \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ . In practice, we usually have $\\left\\| \\Delta w _ { i } \\right\\| _ { 2 } / \\left\\| w _ { i } \\right\\| _ { 2 } \\ll 1$ , thus $\\Delta w _ { i }$ is approximately orthogonal to $w _ { i }$ , i.e. $w _ { i } \\cdot \\Delta w _ { i } \\approx 0$ . ",
386
+ "bbox": [
387
+ 174,
388
+ 680,
389
+ 825,
390
+ 765
391
+ ],
392
+ "page_idx": 2
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "Let $l _ { \\parallel w _ { i } }$ and $l \\_ w _ { i }$ be the vector projection and rejection of $\\frac { \\partial L } { \\partial w _ { i } }$ on $w _ { i }$ , which are defined as ",
397
+ "bbox": [
398
+ 169,
399
+ 770,
400
+ 767,
401
+ 789
402
+ ],
403
+ "page_idx": 2
404
+ },
405
+ {
406
+ "type": "equation",
407
+ "img_path": "images/eff39026f922ef46d55a8a8ec5caf84caf35fdfd5a1088fb602313966a2d1446.jpg",
408
+ "text": "$$\nl _ { \\parallel w _ { i } } = \\left( \\frac { \\partial L } { \\partial w _ { i } } \\cdot \\frac { w _ { i } } { \\parallel w _ { i } \\parallel _ { 2 } } \\right) \\frac { w _ { i } } { \\parallel w _ { i } \\parallel _ { 2 } } , l _ { \\perp w _ { i } } = \\frac { \\partial L } { \\partial w _ { i } } - l _ { \\parallel w _ { i } } .\n$$",
409
+ "text_format": "latex",
410
+ "bbox": [
411
+ 323,
412
+ 792,
413
+ 674,
414
+ 828
415
+ ],
416
+ "page_idx": 2
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "From Eq. (5) and (6), it is easy to show ",
421
+ "bbox": [
422
+ 173,
423
+ 830,
424
+ 431,
425
+ 844
426
+ ],
427
+ "page_idx": 2
428
+ },
429
+ {
430
+ "type": "equation",
431
+ "img_path": "images/f786ae1687da585518710cefeef28f49118d5eb37864ae119a4f390dbfd55037.jpg",
432
+ "text": "$$\n\\frac { \\left. \\Delta w _ { i } \\right. _ { 2 } } { \\left. w _ { i } \\right. _ { 2 } } \\approx \\frac { \\left. l _ { \\perp w _ { i } } \\right. _ { 2 } } { \\left. l _ { \\parallel w _ { i } } \\right. _ { 2 } } \\alpha \\lambda .\n$$",
433
+ "text_format": "latex",
434
+ "bbox": [
435
+ 416,
436
+ 848,
437
+ 581,
438
+ 885
439
+ ],
440
+ "page_idx": 2
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "As discussed in Sec. 2.1, when batch normalization is used, or when linear rectifiers are used as activation functions, the magnitude of $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ is irrelevant. Thus, it is the direction of $w _ { i }$ that actually makes a difference in the overall network function. If L2 weight decay is not applied, the magnitude of $w _ { i }$ ’s direction change will decrease as $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ increases during the training process, which can potentially lead to overfitting (discussed in detail in Sec. 3.2). On the other hand, Eq. (7) shows that L2 weight decay implicitly normalizes the weights, such that the magnitude of $w _ { i }$ ’s direction change does not depend on $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ , and can be tuned by the product of $\\alpha$ and $\\lambda$ . In the following, we refer to $\\| \\Delta w _ { i } \\| _ { 2 } | \\| w _ { i } \\| _ { 2 }$ as the effective learning rate of $w _ { i }$ . ",
445
+ "bbox": [
446
+ 174,
447
+ 895,
448
+ 825,
449
+ 925
450
+ ],
451
+ "page_idx": 2
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "",
456
+ "bbox": [
457
+ 174,
458
+ 103,
459
+ 825,
460
+ 188
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "While L2 weight decay produces the normalization effect in an implicit and approximate way, we will show that explicitly doing so enables more precise control of the effective learning rate. ",
467
+ "bbox": [
468
+ 173,
469
+ 194,
470
+ 823,
471
+ 223
472
+ ],
473
+ "page_idx": 3
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "3 NORMALIZED DIRECTION-PRESERVING ADAM",
478
+ "text_level": 1,
479
+ "bbox": [
480
+ 174,
481
+ 256,
482
+ 593,
483
+ 272
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "We first present the normalized direction-preserving Adam (ND-Adam) algorithm, which essentially improves the optimization of the input weights of hidden units, while employing the vanilla Adam algorithm to update other parameters. Specifically, we divide the trainable parameters, $\\theta$ , into two sets, $\\theta ^ { v }$ and $\\theta ^ { s }$ , such that $\\mathcal { \\tilde { \\theta } } ^ { v } = \\{ w _ { i } | i \\in \\bar { \\mathcal { N } } \\}$ , and $\\theta ^ { s } = \\{ \\theta \\setminus \\theta ^ { v } \\}$ . Then we update $\\theta ^ { v }$ and $\\theta ^ { s }$ by different rules, as described by Alg. 1. The learning rates for the two sets of parameters are denoted respectively by $\\alpha _ { t } ^ { v }$ and $\\alpha _ { t } ^ { s }$ . ",
490
+ "bbox": [
491
+ 173,
492
+ 295,
493
+ 825,
494
+ 380
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "Algorithm 1: Normalized direction-preserving Adam ",
501
+ "text_level": 1,
502
+ "bbox": [
503
+ 174,
504
+ 410,
505
+ 527,
506
+ 425
507
+ ],
508
+ "page_idx": 3
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "$/ \\star$ Initialization \\*/ \n$t \\gets 0$ ; \nfor $i \\in \\mathcal N$ do $w _ { i , 0 } w _ { i , 0 } / \\parallel w _ { i , 0 } \\parallel _ { 2 } ;$ $m _ { 0 } \\left( w _ { i } \\right) \\gets 0$ ; $v _ { 0 } ( w _ { i } ) 0$ ; \n$/ \\star$ Perform $T$ iterations of training \\*/ \nwhile $t < T$ do $t \\gets t + 1$ ; $/ \\star$ Update $\\theta ^ { v }$ \\*/ for $i \\in \\mathcal N$ do $\\bar { g } _ { t } ( w _ { i } ) \\partial L / \\partial w _ { i }$ ; $g _ { t } \\left( w _ { i } \\right) \\gets \\bar { g } _ { t } \\left( w _ { i } \\right) - \\left( \\bar { g } _ { t } \\left( w _ { i } \\right) \\cdot w _ { i , t - 1 } \\right) w _ { i , t - 1 } ;$ $m _ { t } \\left( w _ { i } \\right) \\gets \\beta _ { 1 } m _ { t - 1 } \\left( w _ { i } \\right) + \\left( 1 - \\beta _ { 1 } \\right) g _ { t } \\left( w _ { i } \\right) ;$ $v _ { t } ( w _ { i } ) \\beta _ { 2 } v _ { t - 1 } ( w _ { i } ) + ( 1 - \\beta _ { 2 } ) \\| g _ { t } ( w _ { i } ) \\| _ { 2 } ^ { 2 } ;$ $\\hat { m } _ { t } \\left( w _ { i } \\right) \\gets m _ { t } \\left( w _ { i } \\right) / \\left( 1 - \\beta _ { 1 } ^ { t } \\right)$ ; $\\hat { v } _ { t } ( w _ { i } ) v _ { t } ( w _ { i } ) / ( 1 - \\beta _ { 2 } ^ { t } )$ ; $\\bar { w } _ { i , t } w _ { i , t - 1 } - \\alpha _ { t } ^ { v } \\hat { m } _ { t } ( w _ { i } ) / ( \\sqrt { \\hat { v } _ { t } ( w _ { i } ) } + \\epsilon ) ;$ ; $w _ { i , t } \\gets \\bar { w } _ { i , t } / \\left. \\bar { w } _ { i , t } \\right. _ { 2 }$ ; /\\* Update $\\theta ^ { s }$ using Adam \\*/ $\\theta _ { t } ^ { s } \\gets$ AdamUpdate $\\left( \\theta _ { t - 1 } ^ { s } ; \\alpha _ { t } ^ { s } , \\beta _ { 1 } , \\beta _ { 2 } \\right)$ ; ",
513
+ "bbox": [
514
+ 171,
515
+ 428,
516
+ 826,
517
+ 756
518
+ ],
519
+ "page_idx": 3
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "return $\\theta _ { T }$ ",
524
+ "bbox": [
525
+ 173,
526
+ 757,
527
+ 248,
528
+ 770
529
+ ],
530
+ "page_idx": 3
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "In Alg. 1, the iteration over $\\mathcal { N }$ can be performed in parallel, and thus introduces no extra computational complexity. Compared to Adam, computing $g _ { t } \\left( w _ { i } \\right)$ and $w _ { i , t }$ may take slightly more time, which, however, is negligible in practice. On the other hand, to estimate the second order moment of each $w _ { i } \\in \\mathbb { R } ^ { n }$ , Adam maintains $n$ scalars, whereas ND-Adam requires only one scalar, $v _ { t } \\left( w _ { i } \\right)$ . Thus, ND-Adam has smaller memory overhead than Adam. ",
535
+ "bbox": [
536
+ 174,
537
+ 804,
538
+ 825,
539
+ 875
540
+ ],
541
+ "page_idx": 3
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "In the following, we address the direction missing problem and the ill-conditioning problem discussed in Sec. 2.1, and explain Alg. 1 in detail. We show how the proposed algorithm jointly solves the two problems, as well as its relation to other normalization schemes. ",
546
+ "bbox": [
547
+ 174,
548
+ 881,
549
+ 823,
550
+ 924
551
+ ],
552
+ "page_idx": 3
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "3.1 PRESERVING GRADIENT DIRECTIONS ",
557
+ "text_level": 1,
558
+ "bbox": [
559
+ 176,
560
+ 103,
561
+ 475,
562
+ 117
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "Assuming the stationarity of a hidden unit’s input distribution, the SGD update (possibly with momentum) of the input weight vector is a linear combination of historical gradients, and thus can only lie in the span of the input vectors. As a result, the input weight vector itself will eventually converge to the same subspace. ",
569
+ "bbox": [
570
+ 174,
571
+ 128,
572
+ 823,
573
+ 185
574
+ ],
575
+ "page_idx": 4
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "On the contrary, the Adam algorithm adapts the global learning rate to each scalar parameter independently, such that the gradient of each parameter is normalized by a running average of its magnitudes, which changes the direction of the gradient. To preserve the direction of the gradient w.r.t. each input weight vector, we generalize the learning rate adaptation scheme from scalars to vectors. ",
580
+ "bbox": [
581
+ 174,
582
+ 191,
583
+ 825,
584
+ 262
585
+ ],
586
+ "page_idx": 4
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "Let $g _ { t } ( w _ { i } ) , m _ { t } ( w _ { i } ) , v _ { t } ( w _ { i } )$ be the counterparts of $g _ { t }$ , $m _ { t }$ , $v _ { t }$ for vector $w _ { i }$ . Since Eq. (1a) is a linear combination of historical gradients, it can be extended to vectors without any change; or equivalently, we can rewrite it for each vector as ",
591
+ "bbox": [
592
+ 174,
593
+ 268,
594
+ 825,
595
+ 310
596
+ ],
597
+ "page_idx": 4
598
+ },
599
+ {
600
+ "type": "equation",
601
+ "img_path": "images/972d98e23fec4951fdd8638a19cb4a46338313d22c5c0a0ef816d5392138c074.jpg",
602
+ "text": "$$\nm _ { t } \\left( w _ { i } \\right) = \\beta _ { 1 } m _ { t - 1 } \\left( w _ { i } \\right) + \\left( 1 - \\beta _ { 1 } \\right) g _ { t } \\left( w _ { i } \\right) .\n$$",
603
+ "text_format": "latex",
604
+ "bbox": [
605
+ 349,
606
+ 315,
607
+ 647,
608
+ 333
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "We then extend Eq. (1b) as ",
615
+ "bbox": [
616
+ 174,
617
+ 337,
618
+ 352,
619
+ 351
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "equation",
625
+ "img_path": "images/6c80be923cf85056fccd3d973e258df7bddf39ad48c17bc12bca5e71077a1e21.jpg",
626
+ "text": "$$\nv _ { t } \\left( w _ { i } \\right) = \\beta _ { 2 } v _ { t - 1 } \\left( w _ { i } \\right) + \\left( 1 - \\beta _ { 2 } \\right) \\left. g _ { t } \\left( w _ { i } \\right) \\right. _ { 2 } ^ { 2 } ,\n$$",
627
+ "text_format": "latex",
628
+ "bbox": [
629
+ 343,
630
+ 354,
631
+ 651,
632
+ 375
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "i.e., instead of estimating the average gradient magnitude for each individual parameter, we estimate the average of $\\| g _ { t } \\left( w _ { i } \\right) \\| _ { 2 } ^ { 2 }$ for each vector $w _ { i }$ . In addition, we modify Eq. (2) and (3) accordingly as ",
639
+ "bbox": [
640
+ 171,
641
+ 378,
642
+ 820,
643
+ 410
644
+ ],
645
+ "page_idx": 4
646
+ },
647
+ {
648
+ "type": "equation",
649
+ "img_path": "images/cb3b557468764b89874c4cdf6c903279289a1624df832689dcb9fcb27e568601.jpg",
650
+ "text": "$$\n\\hat { m } _ { t } \\left( w _ { i } \\right) = \\frac { m _ { t } \\left( w _ { i } \\right) } { 1 - \\beta _ { 1 } ^ { t } } , \\hat { v } _ { t } \\left( w _ { i } \\right) = \\frac { v _ { t } \\left( w _ { i } \\right) } { 1 - \\beta _ { 2 } ^ { t } } ,\n$$",
651
+ "text_format": "latex",
652
+ "bbox": [
653
+ 366,
654
+ 414,
655
+ 630,
656
+ 448
657
+ ],
658
+ "page_idx": 4
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "and ",
663
+ "bbox": [
664
+ 173,
665
+ 452,
666
+ 200,
667
+ 464
668
+ ],
669
+ "page_idx": 4
670
+ },
671
+ {
672
+ "type": "equation",
673
+ "img_path": "images/ccef22a11094bd082be936af6a911edfaff206aed71f1816ac2c73a30cd1295e.jpg",
674
+ "text": "$$\nw _ { i , t } = w _ { i , t - 1 } - \\frac { \\alpha _ { t } ^ { v } } { \\sqrt { { \\hat { v } } _ { t } \\left( w _ { i } \\right) } + \\epsilon } { \\hat { m } } _ { t } \\left( w _ { i } \\right) .\n$$",
675
+ "text_format": "latex",
676
+ "bbox": [
677
+ 364,
678
+ 460,
679
+ 632,
680
+ 496
681
+ ],
682
+ "page_idx": 4
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "Here, $\\hat { m } _ { t } \\left( \\boldsymbol { w } _ { i } \\right)$ is a vector with the same dimension as $w _ { i }$ , whereas $\\hat { v } _ { t } \\left( w _ { i } \\right)$ is a scalar. Therefore, when applying Eq. (11), the direction of the update is the negative direction of $\\hat { m } _ { t } \\left( \\boldsymbol { w } _ { i } \\right)$ , and thus is in the span of the historical gradients of $w _ { i }$ . ",
687
+ "bbox": [
688
+ 174,
689
+ 497,
690
+ 825,
691
+ 540
692
+ ],
693
+ "page_idx": 4
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "It is worth noting that only the input to the first layer (i.e., the training data) is stationary throughout training. Thus, for the weights of an upper layer to converge to the span of its input vectors, it is necessary for the lower layers to converge first. Interestingly, this predicted phenomenon may have been observed in practice (Brock et al., 2017). ",
698
+ "bbox": [
699
+ 174,
700
+ 546,
701
+ 825,
702
+ 603
703
+ ],
704
+ "page_idx": 4
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "Despite the empirical success of SGD, a question remains as to why it is desirable to constrain the input weights in the span of the input vectors. A possible explanation is related to the manifold hypothesis, which suggests that real-world data presented in high dimensional spaces (images, audios, text, etc) concentrates on manifolds of much lower dimensionality (Cayton, 2005; Narayanan & Mitter, 2010). In fact, commonly used activation functions, such as (leaky) ReLU, sigmoid, tanh, can only be activated (not saturating or having small gradients) by a portion of the input vectors, in whose span the input weights lie upon convergence. Assuming the local linearity of the manifolds of data or hidden-layer representations, constraining the input weights in the subspace that contains some of the input vectors, encourages the hidden units to form local coordinate systems on the corresponding manifold, which can lead to good representations (Rifai et al., 2011). ",
709
+ "bbox": [
710
+ 173,
711
+ 609,
712
+ 825,
713
+ 748
714
+ ],
715
+ "page_idx": 4
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "3.2 SPHERICAL WEIGHT OPTIMIZATION",
720
+ "text_level": 1,
721
+ "bbox": [
722
+ 176,
723
+ 765,
724
+ 465,
725
+ 779
726
+ ],
727
+ "page_idx": 4
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "The ill-conditioning problem occurs when the magnitude change of an input weight vector can be compensated by other parameters, such as the scaling factor of batch normalization, or the output weight vector, without affecting the overall network function. Consequently, suppose we have two DNNs that parameterize the same function, but with some of the input weight vectors having different magnitudes, applying the same SGD or Adam update rule will, in general, change the network functions in different ways. Thus, the ill-conditioning problem makes the training process inconsistent and difficult to control. ",
732
+ "bbox": [
733
+ 174,
734
+ 790,
735
+ 825,
736
+ 888
737
+ ],
738
+ "page_idx": 4
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "More importantly, when the weights are not properly regularized (e.g., without using L2 weight decay), the magnitude of $w _ { i }$ ’s direction change will decrease as $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ increases during the training process. As a result, the effective learning rate for $w _ { i }$ tends to decrease faster than expected, making the network converge to sharp minima. It is well known that sharp minima generalize worse than flat minima (Hochreiter & Schmidhuber, 1997; Keskar et al., 2017). ",
743
+ "bbox": [
744
+ 174,
745
+ 895,
746
+ 823,
747
+ 924
748
+ ],
749
+ "page_idx": 4
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "",
754
+ "bbox": [
755
+ 174,
756
+ 103,
757
+ 823,
758
+ 146
759
+ ],
760
+ "page_idx": 5
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "As shown in Sec. 2.2, L2 weight decay can alleviate the ill-conditioning problem by implicitly and approximately normalizing the weights. However, we still do not have a precise control over the effective learning rate, since $\\| \\bar { l _ { \\perp w _ { i } } } \\| _ { 2 } / | \\bar { \\| l _ { \\parallel w _ { i } } } | | _ { 2 }$ is unknown and not necessarily stable. Moreover, the approximation fails when $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ is far from the equilibrium due to improper initialization, or drastic changes in the magnitudes of the weight vectors. This problem is also addressed by (Neyshabur et al., 2015), by employing a geometry invariant to rescaling of weights. However, their proposed methods do not preserve the direction of gradient. ",
765
+ "bbox": [
766
+ 173,
767
+ 151,
768
+ 825,
769
+ 252
770
+ ],
771
+ "page_idx": 5
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "To address the ill-conditioning problem in a more principled way, we restrict the L2-norm of each $w _ { i }$ to 1, and only optimize its direction. In other words, instead of optimizing $w _ { i }$ in a $n$ -dimensional space, we optimize $w _ { i }$ on a $( n - 1 )$ -dimensional unit sphere. Specifically, we first obtain the raw gradient w.r.t. $w _ { i } , \\bar { g } _ { t } \\left( w _ { i } \\right) = \\partial L / \\partial w _ { i }$ , and project the gradient onto the unit sphere as ",
776
+ "bbox": [
777
+ 174,
778
+ 258,
779
+ 825,
780
+ 315
781
+ ],
782
+ "page_idx": 5
783
+ },
784
+ {
785
+ "type": "equation",
786
+ "img_path": "images/38849e355dd943b7878adb32311da37a7373aac601c7d2ee107a629dd3f5b2ed.jpg",
787
+ "text": "$$\ng _ { t } \\left( w _ { i } \\right) = \\bar { g } _ { t } \\left( w _ { i } \\right) - \\left( \\bar { g } _ { t } \\left( w _ { i } \\right) \\cdot w _ { i , t - 1 } \\right) w _ { i , t - 1 } .\n$$",
788
+ "text_format": "latex",
789
+ "bbox": [
790
+ 348,
791
+ 316,
792
+ 647,
793
+ 333
794
+ ],
795
+ "page_idx": 5
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "Here, $\\| w _ { i , t - 1 } \\| _ { 2 } = 1$ . Then we follow Eq. (8)-(10), and replace (11) with ",
800
+ "bbox": [
801
+ 173,
802
+ 334,
803
+ 651,
804
+ 349
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "and ",
811
+ "bbox": [
812
+ 173,
813
+ 387,
814
+ 200,
815
+ 400
816
+ ],
817
+ "page_idx": 5
818
+ },
819
+ {
820
+ "type": "equation",
821
+ "img_path": "images/08ed47d73e311f516a568ce9de22e3f3a4fa4d33ad17cd6824482bf404463426.jpg",
822
+ "text": "$$\n\\begin{array} { c } { \\displaystyle \\bar { w } _ { i , t } = w _ { i , t - 1 } - \\frac { \\alpha _ { t } ^ { v } } { \\sqrt { \\hat { v } _ { t } \\left( w _ { i } \\right) } + \\epsilon } \\hat { m } _ { t } \\left( w _ { i } \\right) , } \\\\ { \\displaystyle w _ { i , t } = \\frac { \\bar { w } _ { i , t } } { \\| \\bar { w } _ { i , t } \\| _ { 2 } } . } \\end{array}\n$$",
823
+ "text_format": "latex",
824
+ "bbox": [
825
+ 364,
826
+ 351,
827
+ 633,
828
+ 430
829
+ ],
830
+ "page_idx": 5
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "In Eq. (12), we keep only the component that is orthogonal to $w _ { i , t - 1 }$ . However, $\\hat { m } _ { t } \\left( \\boldsymbol { w } _ { i } \\right)$ is not necessarily orthogonal as well. In addition, even when $\\hat { m } _ { t } \\left( \\boldsymbol { w } _ { i } \\right)$ is orthogonal to $w _ { i , t - 1 }$ , Eq. (13a) can still increase $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ , according to the Pythagorean theorem. Therefore, we explicitly normalize $w _ { i , t }$ in Eq. (13b), to ensure $\\| w _ { i , t } \\| _ { 2 } = 1$ after each update. Also note that, since $w _ { i , t - 1 }$ is a linear combination of its historical gradients, $g _ { t } \\left( w _ { i } \\right)$ still lies in the span of the historical gradients after the projection in Eq. (12). ",
835
+ "bbox": [
836
+ 173,
837
+ 435,
838
+ 825,
839
+ 520
840
+ ],
841
+ "page_idx": 5
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "Compared to SGD with L2 weight decay, spherical weight optimization explicitly normalizes the weight vectors, such that each update to the weight vectors only changes their directions, and strictly keeps the magnitudes constant. As a result, the effective learning rate of a weight vector is ",
846
+ "bbox": [
847
+ 174,
848
+ 526,
849
+ 825,
850
+ 569
851
+ ],
852
+ "page_idx": 5
853
+ },
854
+ {
855
+ "type": "equation",
856
+ "img_path": "images/2256c2ee16ef8aa463ca069cf8303f2024a1418301825a0377e76502fdeecfcc.jpg",
857
+ "text": "$$\n\\frac { \\left. \\Delta w _ { i , t } \\right. _ { 2 } } { \\left. w _ { i , t - 1 } \\right. _ { 2 } } \\approx \\frac { \\left. \\hat { m } _ { t } \\left( w _ { i } \\right) \\right. _ { 2 } } { \\sqrt { \\hat { v } _ { t } \\left( w _ { i } \\right) } } \\alpha _ { t } ^ { v } ,\n$$",
858
+ "text_format": "latex",
859
+ "bbox": [
860
+ 400,
861
+ 569,
862
+ 598,
863
+ 607
864
+ ],
865
+ "page_idx": 5
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "which enables precise control over the learning rate of $w _ { i }$ through a single hyperparameter, $\\alpha _ { t } ^ { v }$ rather than two as required by Eq. (7). Note that it is possible to control the effective learning rate more precisely, by normalizing $\\hat { m } _ { t } \\left( \\boldsymbol { w } _ { i } \\right)$ with $\\| \\hat { m } _ { t } \\left( w _ { i } \\right) \\| _ { 2 }$ , instead of by $\\sqrt { \\hat { v } _ { t } \\left( w _ { i } \\right) }$ . However, by doing so, we lose the information provided by $\\| \\hat { m } _ { t } \\left( \\boldsymbol { w } _ { i } \\right) \\| _ { 2 }$ at different time steps. In addition, since $\\hat { m } _ { t } \\left( \\boldsymbol { w } _ { i } \\right)$ is less noisy than $g _ { t } \\left( w _ { i } \\right)$ , $\\Vert \\hat { m } _ { t } \\left( w _ { i } \\right) \\Vert _ { 2 } / \\sqrt { \\hat { v } _ { t } \\left( w _ { i } \\right) }$ becomes small near convergence, which is considered a desirable property of Adam (Kingma $\\&$ Ba, 2014). Thus, we keep the gradient normalization scheme intact. ",
870
+ "bbox": [
871
+ 173,
872
+ 607,
873
+ 825,
874
+ 709
875
+ ],
876
+ "page_idx": 5
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "We note the difference between various gradient normalization schemes and the normalization scheme employed by spherical weight optimization. As shown in Eq. 11, ND-Adam generalizes the gradient normalization scheme of Adam, and thus both Adam and ND-Adam normalize the gradient by a running average of its magnitude. This, and other similar schemes (Hazan et al., 2015; Yu et al., 2017) make the optimization less susceptible to vanishing and exploding gradients. On the other hand, the proposed spherical weight optimization serves a different purpose. It normalizes each weight vector and projects the gradient onto a unit sphere, such that the effective learning rate can be controlled more precisely. Moreover, it provides robustness to improper weight initialization, since the magnitude of each weight vector is kept constant. ",
881
+ "bbox": [
882
+ 173,
883
+ 715,
884
+ 825,
885
+ 842
886
+ ],
887
+ "page_idx": 5
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "For nonlinear activation functions, such as sigmoid and tanh, an extra scaling factor is needed for each hidden unit to express functions that require unnormalized weight vectors. For instance, given an input vector $x \\in \\mathbb { R } ^ { n }$ , and a nonlinearity $\\phi \\left( \\cdot \\right)$ , the activation of hidden unit $i$ is then given by ",
892
+ "bbox": [
893
+ 174,
894
+ 848,
895
+ 825,
896
+ 890
897
+ ],
898
+ "page_idx": 5
899
+ },
900
+ {
901
+ "type": "equation",
902
+ "img_path": "images/838a9898e495283fd18af1de5cf0d118754eb9cc2d17626cce34dd0830bb71da.jpg",
903
+ "text": "$$\ny _ { i } = \\phi \\left( \\gamma _ { i } w _ { i } \\cdot x + b _ { i } \\right) ,\n$$",
904
+ "text_format": "latex",
905
+ "bbox": [
906
+ 421,
907
+ 892,
908
+ 575,
909
+ 909
910
+ ],
911
+ "page_idx": 5
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "where $\\gamma _ { i }$ is the scaling factor, and $b _ { i }$ is the bias. ",
916
+ "bbox": [
917
+ 173,
918
+ 910,
919
+ 485,
920
+ 924
921
+ ],
922
+ "page_idx": 5
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "3.3 RELATION TO WEIGHT NORMALIZATION AND BATCH NORMALIZATION",
927
+ "text_level": 1,
928
+ "bbox": [
929
+ 173,
930
+ 103,
931
+ 710,
932
+ 118
933
+ ],
934
+ "page_idx": 6
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "A related normalization and reparameterization scheme, weight normalization (Salimans & Kingma, 2016), has been developed as an alternative to batch normalization, aiming to accelerate the convergence of SGD optimization. We note the difference between spherical weight optimization and weight normalization. First, the weight vector of each hidden unit is not directly normalized in weight normalization, i.e, $\\| w _ { i } \\| _ { 2 } \\neq 1$ in general. At training time, the activation of hidden unit $i$ is ",
939
+ "bbox": [
940
+ 173,
941
+ 128,
942
+ 825,
943
+ 200
944
+ ],
945
+ "page_idx": 6
946
+ },
947
+ {
948
+ "type": "equation",
949
+ "img_path": "images/387abd8b42c22cfc8f73bb657f988fa2fd36976a184d2165245c2d9c9cbc9ab3.jpg",
950
+ "text": "$$\ny _ { i } = \\phi \\left( \\frac { \\gamma _ { i } } { \\left\\| w _ { i } \\right\\| _ { 2 } } w _ { i } \\cdot x + b _ { i } \\right) ,\n$$",
951
+ "text_format": "latex",
952
+ "bbox": [
953
+ 400,
954
+ 207,
955
+ 596,
956
+ 242
957
+ ],
958
+ "page_idx": 6
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "which is equivalent to Eq. (15) for the forward pass. For the backward pass, the effective learning rate still depends on $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ in weight normalization, hence it does not solve the ill-conditioning problem. At inference time, both of these two schemes can combine $w _ { i }$ and $\\gamma _ { i }$ into a single equivalent weight vector, $w _ { i } ^ { \\prime } = \\gamma _ { i } w _ { i }$ , o r $\\begin{array} { r } { w _ { i } ^ { \\prime } = \\frac { \\gamma _ { i } } { \\Vert w _ { i } \\Vert _ { 2 } } w _ { i } } \\end{array}$ . ",
963
+ "bbox": [
964
+ 173,
965
+ 246,
966
+ 825,
967
+ 308
968
+ ],
969
+ "page_idx": 6
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "While spherical weight optimization naturally encompasses weight normalization, it can further benefit from batch normalization. When combined with batch normalization, Eq. (15) evolves into ",
974
+ "bbox": [
975
+ 173,
976
+ 313,
977
+ 823,
978
+ 342
979
+ ],
980
+ "page_idx": 6
981
+ },
982
+ {
983
+ "type": "equation",
984
+ "img_path": "images/876e2628a0b4d7cf0c541d0356778044420918d6b4d5e9f002ef8b8f48db501c.jpg",
985
+ "text": "$$\ny _ { i } = \\phi \\left( \\gamma _ { i } \\operatorname { B N } \\left( w _ { i } \\cdot x \\right) + b _ { i } \\right) ,\n$$",
986
+ "text_format": "latex",
987
+ "bbox": [
988
+ 400,
989
+ 348,
990
+ 596,
991
+ 364
992
+ ],
993
+ "page_idx": 6
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "where $\\mathrm { B N } \\left( { \\cdot } \\right)$ represents the transformation done by batch normalization without scaling and shifting. Here, $\\gamma _ { i }$ serves as the scaling factor for both the normalized weight vector and batch normalization. At training time, the distribution of the input vector, $x$ , changes over time, slowing down the training of the sub-network composed by the upper layers. Salimans & Kingma (2016) observe that, such problem cannot be eliminated by normalizing the weight vectors alone, but can be substantially mitigated by combining weight normalization and mean-only batch normalization. ",
998
+ "bbox": [
999
+ 173,
1000
+ 371,
1001
+ 825,
1002
+ 455
1003
+ ],
1004
+ "page_idx": 6
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Additionally, in linear rectifier networks, the scaling factors, $\\gamma _ { i }$ , can be removed (or set to 1), without changing the overall network function. Since $w _ { i } \\cdot x$ is standardized by batch normalization, we have ",
1009
+ "bbox": [
1010
+ 174,
1011
+ 462,
1012
+ 823,
1013
+ 489
1014
+ ],
1015
+ "page_idx": 6
1016
+ },
1017
+ {
1018
+ "type": "equation",
1019
+ "img_path": "images/333759d1d76fe6f95d2b4f270ecd4a56ce336a767c1862b8777d47d3a2f58d9c.jpg",
1020
+ "text": "$$\n\\mathbb { E } _ { x } \\left[ \\mathrm { B N } \\left( \\boldsymbol { w } _ { i } \\cdot \\boldsymbol { x } \\right) ^ { 2 } \\right] \\approx 1 ,\n$$",
1021
+ "text_format": "latex",
1022
+ "bbox": [
1023
+ 416,
1024
+ 498,
1025
+ 578,
1026
+ 526
1027
+ ],
1028
+ "page_idx": 6
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "and hence ",
1033
+ "bbox": [
1034
+ 173,
1035
+ 529,
1036
+ 241,
1037
+ 541
1038
+ ],
1039
+ "page_idx": 6
1040
+ },
1041
+ {
1042
+ "type": "equation",
1043
+ "img_path": "images/b6f7e4e9b6d543659accf216ee0f471959944d6de8edc1a049162c191339f7c4.jpg",
1044
+ "text": "$$\n\\operatorname { V a r } _ { \\boldsymbol { x } } \\left[ \\operatorname { B N } \\left( \\boldsymbol { w } _ { i } \\cdot \\boldsymbol { x } \\right) + b _ { i } \\right] \\approx 1 .\n$$",
1045
+ "text_format": "latex",
1046
+ "bbox": [
1047
+ 401,
1048
+ 540,
1049
+ 596,
1050
+ 558
1051
+ ],
1052
+ "page_idx": 6
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Therefore, $y _ { i }$ ’s that belong to the same layer, or different dimensions of $x$ that fed to the upper layer, will also have comparable variances, which potentially makes the weight updates of the upper layer more stable. For these reasons, we combine the use of spherical weight optimization and batch normalization, as shown in Eq. (17). ",
1057
+ "bbox": [
1058
+ 174,
1059
+ 560,
1060
+ 825,
1061
+ 616
1062
+ ],
1063
+ "page_idx": 6
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "4 REGULARIZED SOFTMAX ",
1068
+ "text_level": 1,
1069
+ "bbox": [
1070
+ 176,
1071
+ 636,
1072
+ 416,
1073
+ 652
1074
+ ],
1075
+ "page_idx": 6
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "For multi-class classification tasks, the softmax function is the de facto activation function for the output layer. Despite its simplicity and intuitive probabilistic interpretation, we observe a related problem to the ill-conditioning problem we have addressed. Similar to how different magnitudes of weight vectors result in different updates to the same network function, the learning signal backpropagated from the softmax layer varies with the overall magnitude of the logits. ",
1080
+ "bbox": [
1081
+ 173,
1082
+ 667,
1083
+ 825,
1084
+ 738
1085
+ ],
1086
+ "page_idx": 6
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Specifically, when using cross entropy as the surrogate loss with one-hot target vectors, the prediction is considered correct as long as arg $\\mathrm { m a x } _ { c \\in \\mathcal { C } } \\left( z _ { c } \\right)$ is the target class, where $z _ { c }$ is the logit before the softmax activation, corresponding to category $c \\in { \\mathcal { C } }$ . Thus, the logits can be positively scaled together without changing the predictions, whereas the cross entropy and its derivatives will vary with the scaling factor. Concretely, denoting the scaling factor by $\\eta$ , the gradient w.r.t. each logit is ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 744,
1094
+ 825,
1095
+ 815
1096
+ ],
1097
+ "page_idx": 6
1098
+ },
1099
+ {
1100
+ "type": "equation",
1101
+ "img_path": "images/0126191743148ed7396068995b526e4199bcb3288face644160cd5fb06f476ae.jpg",
1102
+ "text": "$$\n\\frac { \\partial L } { \\partial z _ { \\hat { c } } } = \\eta \\left[ \\frac { \\exp \\left( \\eta z _ { \\hat { c } } \\right) } { \\sum _ { c \\in \\mathcal { C } } \\exp \\left( \\eta z _ { c } \\right) } - 1 \\right] ,\n$$",
1103
+ "text_format": "latex",
1104
+ "bbox": [
1105
+ 385,
1106
+ 820,
1107
+ 611,
1108
+ 856
1109
+ ],
1110
+ "page_idx": 6
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "and ",
1115
+ "bbox": [
1116
+ 173,
1117
+ 862,
1118
+ 200,
1119
+ 876
1120
+ ],
1121
+ "page_idx": 6
1122
+ },
1123
+ {
1124
+ "type": "equation",
1125
+ "img_path": "images/e8bf98516ae3672499c76e3a87fe53c2ed55f67c693fe2cc18dc185c868f8233.jpg",
1126
+ "text": "$$\n\\frac { \\partial L } { \\partial z _ { \\bar { c } } } = \\frac { \\eta \\exp \\left( \\eta z _ { \\bar { c } } \\right) } { \\sum _ { c \\in \\mathcal { C } } \\exp \\left( \\eta z _ { c } \\right) } .\n$$",
1127
+ "text_format": "latex",
1128
+ "bbox": [
1129
+ 415,
1130
+ 871,
1131
+ 583,
1132
+ 906
1133
+ ],
1134
+ "page_idx": 6
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "where $\\hat { c }$ is the target class, and ${ \\bar { c } } \\in { \\mathcal { C } } \\backslash \\{ { \\hat { c } } \\}$ . ",
1139
+ "bbox": [
1140
+ 176,
1141
+ 909,
1142
+ 452,
1143
+ 924
1144
+ ],
1145
+ "page_idx": 6
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "For Adam and ND-Adam, since the gradient w.r.t. each scalar or vector are normalized, the absolute magnitudes of Eq. (20a) and (20b) are irrelevant. Instead, the relative magnitudes make a difference here. When $\\eta$ is small, we have ",
1150
+ "bbox": [
1151
+ 173,
1152
+ 103,
1153
+ 823,
1154
+ 146
1155
+ ],
1156
+ "page_idx": 7
1157
+ },
1158
+ {
1159
+ "type": "equation",
1160
+ "img_path": "images/91a3d10efa55517d5444044095814cc90799e6868097bf18aaa44a9b33d71ec8.jpg",
1161
+ "text": "$$\n\\operatorname* { l i m } _ { \\eta \\to 0 } \\left| \\frac { \\partial L / \\partial z _ { \\bar { c } } } { \\partial L / \\partial z _ { \\hat { c } } } \\right| = \\frac { 1 } { | \\mathcal { C } | - 1 } ,\n$$",
1162
+ "text_format": "latex",
1163
+ "bbox": [
1164
+ 410,
1165
+ 151,
1166
+ 586,
1167
+ 188
1168
+ ],
1169
+ "page_idx": 7
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "which indicates that, when the magnitude of the logits is small, softmax encourages the logit of the target class to increase, while equally penalizing that of the other classes. On the other end of the spectrum, assuming no two digits are the same, we have ",
1174
+ "bbox": [
1175
+ 174,
1176
+ 193,
1177
+ 825,
1178
+ 234
1179
+ ],
1180
+ "page_idx": 7
1181
+ },
1182
+ {
1183
+ "type": "equation",
1184
+ "img_path": "images/7227d3afd07a17d83bb88e900197a8d0a50caeafa46e7b66011c53905750e8e0.jpg",
1185
+ "text": "$$\n\\operatorname* { l i m } _ { \\eta \\infty } | \\frac { \\partial L / \\partial z _ { \\bar { c } ^ { \\prime } } } { \\partial L / \\partial z _ { \\hat { c } } } | = 1 , \\operatorname* { l i m } _ { \\eta \\infty } | \\frac { \\partial L / \\partial z _ { \\bar { c } ^ { \\prime \\prime } } } { \\partial L / \\partial z _ { \\hat { c } } } | = 0 ,\n$$",
1186
+ "text_format": "latex",
1187
+ "bbox": [
1188
+ 349,
1189
+ 241,
1190
+ 645,
1191
+ 276
1192
+ ],
1193
+ "page_idx": 7
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "where $\\bar { c } ^ { \\prime } = \\arg \\operatorname* { m a x } _ { c \\in \\mathcal { C } \\backslash \\{ \\hat { c } \\} } \\left( z _ { c } \\right)$ , and $\\bar { c } ^ { \\prime \\prime } \\in \\mathcal { C } \\backslash \\{ \\hat { c } , \\bar { c } ^ { \\prime } \\}$ . Eq. (22) indicates that, when the magnitude of the logits is large, softmax penalizes only the largest logit of the non-target classes. The latter case is related to the saturation problem of softmax discussed in Oland et al. (2017). However, they focus on the problem of small absolute gradient magnitude, which does not affect Adam and ND-Adam. ",
1198
+ "bbox": [
1199
+ 174,
1200
+ 281,
1201
+ 825,
1202
+ 339
1203
+ ],
1204
+ "page_idx": 7
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "It is worth noting that both of these two cases can happen without the scaling factor. For instance, varying the norm of the weights of the softmax layer is equivalent to varying the value of $\\eta$ , in terms of the relative magnitude of the gradient. In the case of small $\\eta$ , the logits of all non-target classes are penalized equally, regardless of the difference in $\\hat { z } - \\bar { z }$ for different $\\bar { z } \\in \\mathcal { C } \\backslash \\{ \\hat { z } \\}$ . However, it is more reasonable to penalize more the logits that are closer to $\\hat { z }$ , which are more likely to cause misclassification. In the case of large $\\eta$ , although the logit that is most likely to cause misclassification is strongly penalized, the logits of other non-target classes are ignored. As a result, the logits of the non-target classes tend to be similar at convergence, ignoring the fact that some classes are closer to each other than the others. ",
1209
+ "bbox": [
1210
+ 173,
1211
+ 344,
1212
+ 825,
1213
+ 470
1214
+ ],
1215
+ "page_idx": 7
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "We propose two methods to exploit the prior knowledge that the magnitude of the logits should not be too small or too large. First, we can apply batch normalization to the logits. But instead of setting $\\gamma _ { c }$ ’s as trainable variables, we consider them as a single hyperparameter, $\\gamma _ { \\mathcal { C } }$ , such that $\\gamma _ { c } = \\gamma _ { c } , \\forall c \\in \\mathcal { C }$ . Tuning the value of $\\gamma _ { \\mathcal { C } }$ can lead to a better trade-off between the two extremes described by Eq. (21) and (22). The optimal value of $\\gamma _ { \\mathcal { C } }$ tends to remain the same for different optimizers or different network widths, but varies with dataset and network depth. We refer to this method as batch-normalized softmax (BN-Softmax). ",
1220
+ "bbox": [
1221
+ 173,
1222
+ 477,
1223
+ 825,
1224
+ 575
1225
+ ],
1226
+ "page_idx": 7
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Alternatively, since the magnitude of the logits tends to grow larger than expected (in order to minimize the cross entropy), we can apply L2-regularization to the logits by adding the following penalty to the loss function: ",
1231
+ "bbox": [
1232
+ 176,
1233
+ 582,
1234
+ 821,
1235
+ 623
1236
+ ],
1237
+ "page_idx": 7
1238
+ },
1239
+ {
1240
+ "type": "equation",
1241
+ "img_path": "images/21930570e6ad5d25f580ad3cae5530791f026b7f99e3c12cf55cb99901245ace.jpg",
1242
+ "text": "$$\nL _ { \\mathcal { C } } = \\frac { \\lambda _ { \\mathcal { C } } } { 2 } \\sum _ { c \\in \\mathcal { C } } z _ { c } ^ { 2 } ,\n$$",
1243
+ "text_format": "latex",
1244
+ "bbox": [
1245
+ 441,
1246
+ 618,
1247
+ 555,
1248
+ 657
1249
+ ],
1250
+ "page_idx": 7
1251
+ },
1252
+ {
1253
+ "type": "text",
1254
+ "text": "where $\\lambda _ { \\mathcal { C } }$ is a hyperparameter to be tuned. Different from BN-Softmax, $\\lambda _ { C }$ can be shared by different datasets and networks of different depths. ",
1255
+ "bbox": [
1256
+ 173,
1257
+ 660,
1258
+ 825,
1259
+ 689
1260
+ ],
1261
+ "page_idx": 7
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "5 EXPERIMENTS ",
1266
+ "text_level": 1,
1267
+ "bbox": [
1268
+ 176,
1269
+ 709,
1270
+ 326,
1271
+ 726
1272
+ ],
1273
+ "page_idx": 7
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "In this section, we provide empirical evidence for the analysis in Sec. 2.2, and evaluate the performance of ND-Adam and regularized softmax on CIFAR-10 and CIFAR-100. ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 741,
1281
+ 821,
1282
+ 770
1283
+ ],
1284
+ "page_idx": 7
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "5.1 THE EFFECT OF L2 WEIGHT DECAY",
1289
+ "text_level": 1,
1290
+ "bbox": [
1291
+ 176,
1292
+ 785,
1293
+ 465,
1294
+ 800
1295
+ ],
1296
+ "page_idx": 7
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "To empirically examine the effect of L2 weight decay, we train a wide residual network (WRN) (Zagoruyko & Komodakis, 2016b) of 22 layers, with a width of 7.5 times that of a vanilla ResNet. Using the notation in Zagoruyko & Komodakis (2016b), we refer to this network as WRN-22-7.5. We train the network on the CIFAR-10 dataset (Krizhevsky & Hinton, 2009), with a small modification to the original WRN architecture, and with a different learning rate annealing schedule. Specifically, for simplicity and slightly better performance, we replace the last fully connected layer with a convolutional layer with 10 output feature maps. I.e., we change the layers after the last residual block from BN-ReLU-GlobalAvgPool-FC-Softmax to ",
1301
+ "bbox": [
1302
+ 174,
1303
+ 811,
1304
+ 825,
1305
+ 924
1306
+ ],
1307
+ "page_idx": 7
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "BN-ReLU-Conv-GlobalAvgPool-Softmax. In addition, for clearer comparisons, the learning rate is annealed according to a cosine function without restart (Loshchilov & Hutter, 2016; Gastaldi, 2017). We train the model for 80k iterations with a batch size of 128, similar to the settings in Zagoruyko & Komodakis (2016b). The experiments are based on a TensorFlow implementation of WRN (Wu, 2016). ",
1312
+ "bbox": [
1313
+ 174,
1314
+ 103,
1315
+ 825,
1316
+ 172
1317
+ ],
1318
+ "page_idx": 8
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "As a common practice, we use SGD with a momentum of 0.9, the analysis for which is similar to that in Sec. 2.2. Due to the linearity of derivatives and momentum, $\\Delta w _ { i }$ can be decomposed as $\\Delta w _ { i } = \\Delta w _ { i } ^ { l } + \\Delta w _ { i } ^ { p }$ , where $\\Delta w _ { i } ^ { l }$ and $\\Delta w _ { i } ^ { p }$ are the components corresponding to the original loss function, $L \\left( \\cdot \\right)$ , and the L2 penalty term (see Eq. (4)), respectively. Fig. 1a shows the ratio between the scalar projection of $\\Delta \\bar { w } _ { i } ^ { l }$ on $\\bar { \\Delta } w _ { i } ^ { p }$ and $\\left. \\Delta w _ { i } ^ { p } \\right. _ { 2 }$ , which indicates how the tendency of $\\Delta w _ { i } ^ { l }$ to increase $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ is compensated by $\\Delta w _ { i } ^ { p }$ . Note that $\\Delta w _ { i } ^ { p }$ points to the negative direction of $w _ { i }$ , even when momentum is used, since the direction change of $w _ { i }$ is slow. As shown in Fig. 1a, at the beginning of the training, $\\Delta w _ { i } ^ { p }$ dominants and quickly adjusts $\\lVert \\boldsymbol { w } _ { i } \\rVert _ { 2 }$ to its equilibrium value. During the middle stage of the training, the projection of $\\Delta w _ { i } ^ { l }$ on $\\Delta w _ { i } ^ { p }$ , and $\\Delta w _ { i } ^ { p }$ almost cancel each other out. Then, near the end of the training, the gradient of $w _ { i }$ diminishes rapidly to near zero, making $\\Delta w _ { i } ^ { p }$ dominant again. Therefore, Eq. (7) holds more accurately during the middle stage of the training. ",
1323
+ "bbox": [
1324
+ 173,
1325
+ 180,
1326
+ 825,
1327
+ 349
1328
+ ],
1329
+ "page_idx": 8
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "In Fig. 1b, we show how the effective learning rate varies in different hyperparameter settings. By Eq. (7), $\\left\\| \\Delta w _ { i } \\right\\| _ { 2 } / \\left\\| w _ { i } \\right\\| _ { 2 }$ is expected to remain the same as long as $\\alpha \\lambda$ stays constant, which is confirmed by the fact that the curve for $\\alpha _ { 0 } = 0 . 1 , \\lambda = 0 . 0 0 1$ overlaps with that for $\\alpha _ { 0 } = 0 . 0 5 , \\lambda =$ 0.002. However, comparing the curve for $\\alpha _ { 0 } = 0 . 1 , \\lambda = 0 . 0 0 1$ , with that for $\\alpha _ { 0 } = 0 . 1 , \\lambda =$ 0.0005, we can see that the value of $\\| \\Delta w _ { i } \\| _ { 2 } / \\| w _ { i } \\| _ { 2 }$ does not change proportionally to $\\alpha \\lambda$ . On the other hand, by using ND-Adam, we can control the value of $\\lVert \\Delta w _ { i } \\rVert _ { 2 } \\dot { / } \\lVert \\dot { w } _ { i } \\rVert _ { 2 }$ more precisely by adjusting the learning rate for weight vectors, $\\alpha ^ { v }$ . For the same training step, changes in $\\alpha ^ { v }$ lead to approximately proportional changes in $\\| \\Delta w _ { i } \\| _ { 2 } / \\| w _ { i } \\| _ { 2 }$ , as shown by the two curves corresponding to ND-Adam in Fig. 1b. ",
1334
+ "bbox": [
1335
+ 173,
1336
+ 357,
1337
+ 825,
1338
+ 483
1339
+ ],
1340
+ "page_idx": 8
1341
+ },
1342
+ {
1343
+ "type": "image",
1344
+ "img_path": "images/dcf5f1c901e84b092b98192aad1de61f46fb687abe7413362a2285ff99d328ee.jpg",
1345
+ "image_caption": [
1346
+ "(a) The scalar projection of $\\Delta w _ { i } ^ { l }$ on $\\Delta w _ { i } ^ { p }$ normalized by(b) The relative magnitude of the weight updates, or the $\\left. \\Delta w _ { i } ^ { p } \\right. _ { 2 }$ . effective learning rate. ",
1347
+ "Figure 1: An illustration of how L2 weight decay and ND-Adam control the effective learning rate. The results are obtained from the 5th layer of the network, and other layers show similar results. "
1348
+ ],
1349
+ "image_footnote": [],
1350
+ "bbox": [
1351
+ 183,
1352
+ 525,
1353
+ 812,
1354
+ 666
1355
+ ],
1356
+ "page_idx": 8
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "5.2 PERFORMANCE EVALUATION ",
1361
+ "text_level": 1,
1362
+ "bbox": [
1363
+ 176,
1364
+ 772,
1365
+ 416,
1366
+ 786
1367
+ ],
1368
+ "page_idx": 8
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "To compare the generalization performance of SGD, Adam, and ND-Adam, we train the same WRN22-7.5 network on the CIFAR-10 and CIFAR-100 datasets. For SGD and ND-Adam, we first tune the hyperparameters for SGD $( \\alpha _ { 0 } = 0 . 1 , \\lambda = 0 . 0 0 1$ , momentum 0.9), then tune the initial learning rate of ND-Adam for weight vectors to match the effective learning rate to that of SGD $\\alpha _ { 0 } ^ { v } = 0 . 0 5 )$ , as shown in Fig. 1b. While L2 weight decay can greatly affect the performance of SGD, it does not noticeably benefit Adam in our experiments. For Adam and ND-Adam, $\\beta _ { 1 }$ and $\\beta _ { 2 }$ are set to the default values of Adam, i.e., $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 9 9$ . Although the learning rate of Adam is usually set to a constant value, we observe better performance with the cosine learning rate schedule. The initial learning rate of Adam $( \\alpha _ { 0 } )$ , and that of ND-Adam for scalar parameters $( \\alpha _ { 0 } ^ { s } )$ are both tuned to 0.001. We use the same data augmentation scheme as used in Zagoruyko & Komodakis (2016b), including horizontal flips and random crops, but no dropout is used. ",
1373
+ "bbox": [
1374
+ 173,
1375
+ 797,
1376
+ 825,
1377
+ 924
1378
+ ],
1379
+ "page_idx": 8
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "",
1384
+ "bbox": [
1385
+ 171,
1386
+ 103,
1387
+ 823,
1388
+ 132
1389
+ ],
1390
+ "page_idx": 9
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "We first experiment with the use of trainable scaling parameters $( \\gamma _ { i } )$ of batch normalization. As shown in Fig. 2b, at convergence, the test accuracies of ND-Adam are significantly improved upon that of vanilla Adam, and matches that of SGD. Note that at the early stage of training, the training losses of Adam drop dramatically as shown in Fig. 2a, and the test accuracies also increase more rapidly than that of ND-Adam and SGD. However, the test accuracies remain at a high level afterwards, which indicates that Adam tends to quickly find and get stuck in bad local minima that do not generalize well. ",
1395
+ "bbox": [
1396
+ 174,
1397
+ 138,
1398
+ 825,
1399
+ 236
1400
+ ],
1401
+ "page_idx": 9
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "The average results of 3 runs are summarized in the first part of Table 1. Interestingly, compared to SGD, ND-Adam shows slightly better performance on CIFAR-10, but worse performance on CIFAR-100. This inconsistency may be related to the problem of softmax discussed in Sec. 4, that there is a lack of proper control over the magnitude of the logits. But overall, given comparable effective learning rates, ND-Adam and SGD show similar generalization performance. In this sense, the effective learning rate is a more natural learning rate measure than the learning rate hyperparameters. ",
1406
+ "bbox": [
1407
+ 173,
1408
+ 243,
1409
+ 825,
1410
+ 340
1411
+ ],
1412
+ "page_idx": 9
1413
+ },
1414
+ {
1415
+ "type": "image",
1416
+ "img_path": "images/2258af99304275cba3dda8e135ac5499ddd95a8b02f54c25a7f467886f8ef9b4.jpg",
1417
+ "image_caption": [
1418
+ "Figure 2: The training losses and test accuracies of the same network trained with SGD, Adam, and ND-Adam. Batch normalization with scaling factors is used. "
1419
+ ],
1420
+ "image_footnote": [],
1421
+ "bbox": [
1422
+ 186,
1423
+ 378,
1424
+ 810,
1425
+ 537
1426
+ ],
1427
+ "page_idx": 9
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "Next, we repeat the experiments with the use of BN-Softmax. As discussed in Sec. 3.2, $\\gamma _ { i }$ ’s can be removed from a linear rectifier network, without changing the overall network function. Although this property does not strictly hold for residual networks due to the skip connections, we find that simply removing the scaling factors results in slightly improved generalization performance when using ND-Adam. However, the improvement is not consistent as it degrades performance of SGD. Interestingly, when BN-Softmax is further used, we observe consistent improvement over all three algorithms. Thus, we only report results for this setting. The scaling factor of the logits, $\\gamma _ { \\mathcal { C } }$ , is set to 2.5 for CIFAR-10, and 1 for CIFAR-100. As shown in the second part of Table 1, BN-Softmax significantly improves the performance of Adam and ND-Adam. Moreover, in this setting, we obtain the best generalization performance with ND-Adam, outperforming SGD and Adam on both CIFAR-10 and CIFAR-100. ",
1432
+ "bbox": [
1433
+ 174,
1434
+ 603,
1435
+ 825,
1436
+ 756
1437
+ ],
1438
+ "page_idx": 9
1439
+ },
1440
+ {
1441
+ "type": "text",
1442
+ "text": "While the TensorFlow implementation we use already provides an adequate test bed, we notice that it is different from the original implementation of WRN in several aspects. For instance, they use different nonlinearities (leaky ReLU vs. ReLU), and use different skip connections for downsampling (average pooling vs. strided convolution). A seemingly subtle but important difference is that, L2-regularization is applied not only to weight vectors, but also to the scales and biases of batch normalization in the original implementation, which leads to better generalization performance. For further comparison between SGD and ND-Adam, we reimplement ND-Adam and test its performance on a PyTorch version of the original implementation (Zagoruyko & Komodakis, 2016a). ",
1443
+ "bbox": [
1444
+ 173,
1445
+ 762,
1446
+ 825,
1447
+ 875
1448
+ ],
1449
+ "page_idx": 9
1450
+ },
1451
+ {
1452
+ "type": "text",
1453
+ "text": "Due to the aforementioned differences, we use a slightly different hyperparameter setting in this experiment. Specifically, for SGD $\\lambda$ is set to 5e 4, while for ND-Adam $\\lambda$ is set to 5e 6 (L2- regularization for biases), and both $\\alpha _ { 0 } ^ { s }$ and $\\alpha _ { 0 } ^ { v }$ are set to 0.04. In this case, regularizing softmax does not yield improved performance for SGD, since the L2-regularization applied to $\\gamma _ { i }$ ’s and the last layer weights can serve a similar purpose. Thus, we only apply L2-regularized softmax for ND-Adam with $\\lambda _ { C } = 0 . 0 0 1$ . The average results of 3 runs are summarized in Table 2. Note that the performance of SGD for WRN-28-10 is slightly better than that reported with the original implementation (i.e., 4.00 and 19.25), due to the modifications described in Sec. 5.1. In this experiment, SGD and ND-Adam show almost identical generalization performance. ",
1454
+ "bbox": [
1455
+ 176,
1456
+ 882,
1457
+ 823,
1458
+ 924
1459
+ ],
1460
+ "page_idx": 9
1461
+ },
1462
+ {
1463
+ "type": "image",
1464
+ "img_path": "images/6b18d8319a01a5b33527c5568d4d8a9daa311ed6b273f8af12a0ff24dd7216e8.jpg",
1465
+ "image_caption": [
1466
+ "Figure 3: The training losses and test accuracies of the same network trained with SGD, Adam, and ND-Adam. Batch normalization without scaling factors, and BN-Softmax are used. ",
1467
+ "Table 2: Test error rates of WRN-22-7.5 and WRN-28-10 networks on CIFAR-10 and CIFAR-100. Based on the original implementation of WRN. "
1468
+ ],
1469
+ "image_footnote": [],
1470
+ "bbox": [
1471
+ 187,
1472
+ 128,
1473
+ 812,
1474
+ 287
1475
+ ],
1476
+ "page_idx": 10
1477
+ },
1478
+ {
1479
+ "type": "table",
1480
+ "img_path": "images/ba0ff15ffa568869d208909ab34172633c428cbdada2f7bac7c01cd95fc9da28.jpg",
1481
+ "table_caption": [
1482
+ "Table 1: Test error rates of WRN-22-7.5 networks on CIFAR-10 and CIFAR-100. Based on a TensorFlow implementation of WRN. "
1483
+ ],
1484
+ "table_footnote": [],
1485
+ "table_body": "<table><tr><td>CIFAR-10 Method Error (%)</td><td>CIFAR-100 Error (%)</td></tr><tr><td>BN w/ scaling factors</td></tr><tr><td>SGD 4.61 20.60</td></tr><tr><td>Adam 6.14 25.51</td></tr><tr><td>ND-Adam 4.53 21.45</td></tr><tr><td colspan=\"2\">BN w/o scaling factors,BN-Softmax</td></tr><tr><td>SGD 4.49</td><td>20.18</td></tr><tr><td>Adam 5.43</td><td>22.48</td></tr><tr><td>ND-Adam 4.14</td><td>19.90</td></tr></table>",
1486
+ "bbox": [
1487
+ 302,
1488
+ 351,
1489
+ 696,
1490
+ 527
1491
+ ],
1492
+ "page_idx": 10
1493
+ },
1494
+ {
1495
+ "type": "text",
1496
+ "text": "",
1497
+ "bbox": [
1498
+ 173,
1499
+ 602,
1500
+ 825,
1501
+ 688
1502
+ ],
1503
+ "page_idx": 10
1504
+ },
1505
+ {
1506
+ "type": "table",
1507
+ "img_path": "images/5c5dc574638d1e9f111ffeede72952d7d27d8eb25a6a282d6a2a16879ed9dcb1.jpg",
1508
+ "table_caption": [],
1509
+ "table_footnote": [],
1510
+ "table_body": "<table><tr><td>Method</td><td>CIFAR-10 Error (%)</td><td>CIFAR-100 Error (%)</td></tr><tr><td></td><td>WRN-22-7.5</td><td></td></tr><tr><td>SGD</td><td>3.84</td><td>19.24</td></tr><tr><td>ND-Adam</td><td>3.70</td><td>19.30</td></tr><tr><td>WRN-28-10</td><td></td><td></td></tr><tr><td>SGD</td><td>3.80</td><td>18.48</td></tr><tr><td>ND-Adam</td><td>3.70</td><td>18.42</td></tr></table>",
1511
+ "bbox": [
1512
+ 302,
1513
+ 708,
1514
+ 696,
1515
+ 857
1516
+ ],
1517
+ "page_idx": 10
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "6 CONCLUSION ",
1522
+ "text_level": 1,
1523
+ "bbox": [
1524
+ 174,
1525
+ 102,
1526
+ 318,
1527
+ 117
1528
+ ],
1529
+ "page_idx": 11
1530
+ },
1531
+ {
1532
+ "type": "text",
1533
+ "text": "In this paper, we have introduced ND-Adam, a tailored version of Adam for training DNNs, to bridge the generalization gap between Adam and SGD. ND-Adam is designed to preserve the direction of gradient for each weight vector, and produce the regularization effect of L2 weight decay in a more precise and principled way. Moreover, we have introduced regularized softmax, which limits the magnitude of softmax logits to provide better learning signals. By combining ND-Adam and regularized softmax, our experiments have shown significantly improved generalization performance, eliminating the gap between Adam and SGD. From a high-level view, our analysis and empirical results suggest the need for more precise control over the training process of DNNs. ",
1534
+ "bbox": [
1535
+ 174,
1536
+ 133,
1537
+ 825,
1538
+ 246
1539
+ ],
1540
+ "page_idx": 11
1541
+ },
1542
+ {
1543
+ "type": "text",
1544
+ "text": "REFERENCES ",
1545
+ "text_level": 1,
1546
+ "bbox": [
1547
+ 174,
1548
+ 266,
1549
+ 285,
1550
+ 281
1551
+ ],
1552
+ "page_idx": 11
1553
+ },
1554
+ {
1555
+ "type": "text",
1556
+ "text": "Devansh Arpit, Stanisław Jastrz˛ebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. A closer look at memorization in deep networks. arXiv preprint arXiv:1706.05394, 2017. ",
1557
+ "bbox": [
1558
+ 176,
1559
+ 289,
1560
+ 821,
1561
+ 332
1562
+ ],
1563
+ "page_idx": 11
1564
+ },
1565
+ {
1566
+ "type": "text",
1567
+ "text": "Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural networks. In ICML 2015, 2015. ",
1568
+ "bbox": [
1569
+ 173,
1570
+ 339,
1571
+ 823,
1572
+ 369
1573
+ ],
1574
+ "page_idx": 11
1575
+ },
1576
+ {
1577
+ "type": "text",
1578
+ "text": "Andrew Brock, Theodore Lim, JM Ritchie, and Nick Weston. Freezeout: Accelerate training by progressively freezing layers. arXiv preprint arXiv:1706.04983, 2017. ",
1579
+ "bbox": [
1580
+ 171,
1581
+ 377,
1582
+ 823,
1583
+ 407
1584
+ ],
1585
+ "page_idx": 11
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "text": "Lawrence Cayton. Algorithms for manifold learning. Univ. of California at San Diego Tech. Rep, pp. 1–17, 2005. ",
1590
+ "bbox": [
1591
+ 173,
1592
+ 415,
1593
+ 823,
1594
+ 445
1595
+ ],
1596
+ "page_idx": 11
1597
+ },
1598
+ {
1599
+ "type": "text",
1600
+ "text": "John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12(Jul):2121–2159, 2011. ",
1601
+ "bbox": [
1602
+ 173,
1603
+ 453,
1604
+ 823,
1605
+ 483
1606
+ ],
1607
+ "page_idx": 11
1608
+ },
1609
+ {
1610
+ "type": "text",
1611
+ "text": "Xavier Gastaldi. Shake-shake regularization of 3-branch residual networks. In ICLR 2017 Workshop, 2017. ",
1612
+ "bbox": [
1613
+ 171,
1614
+ 491,
1615
+ 823,
1616
+ 520
1617
+ ],
1618
+ "page_idx": 11
1619
+ },
1620
+ {
1621
+ "type": "text",
1622
+ "text": "Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Deep sparse rectifier neural networks. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pp. 315–323, 2011. ",
1623
+ "bbox": [
1624
+ 176,
1625
+ 527,
1626
+ 823,
1627
+ 570
1628
+ ],
1629
+ "page_idx": 11
1630
+ },
1631
+ {
1632
+ "type": "text",
1633
+ "text": "Elad Hazan, Kfir Levy, and Shai Shalev-Shwartz. Beyond convexity: Stochastic quasi-convex optimization. In Advances in Neural Information Processing Systems, pp. 1594–1602, 2015. ",
1634
+ "bbox": [
1635
+ 174,
1636
+ 579,
1637
+ 821,
1638
+ 609
1639
+ ],
1640
+ "page_idx": 11
1641
+ },
1642
+ {
1643
+ "type": "text",
1644
+ "text": "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. ",
1645
+ "bbox": [
1646
+ 176,
1647
+ 617,
1648
+ 821,
1649
+ 660
1650
+ ],
1651
+ "page_idx": 11
1652
+ },
1653
+ {
1654
+ "type": "text",
1655
+ "text": "Sepp Hochreiter and Jürgen Schmidhuber. Flat minima. Neural Computation, 9(1):1–42, 1997. ",
1656
+ "bbox": [
1657
+ 174,
1658
+ 669,
1659
+ 797,
1660
+ 684
1661
+ ],
1662
+ "page_idx": 11
1663
+ },
1664
+ {
1665
+ "type": "text",
1666
+ "text": "Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. arXiv preprint arXiv:1709.01507, 2017. ",
1667
+ "bbox": [
1668
+ 173,
1669
+ 693,
1670
+ 823,
1671
+ 722
1672
+ ],
1673
+ "page_idx": 11
1674
+ },
1675
+ {
1676
+ "type": "text",
1677
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015. ",
1678
+ "bbox": [
1679
+ 174,
1680
+ 731,
1681
+ 823,
1682
+ 773
1683
+ ],
1684
+ "page_idx": 11
1685
+ },
1686
+ {
1687
+ "type": "text",
1688
+ "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. ICLR 2017, 2017. ",
1689
+ "bbox": [
1690
+ 173,
1691
+ 781,
1692
+ 825,
1693
+ 825
1694
+ ],
1695
+ "page_idx": 11
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1700
+ "bbox": [
1701
+ 173,
1702
+ 833,
1703
+ 821,
1704
+ 862
1705
+ ],
1706
+ "page_idx": 11
1707
+ },
1708
+ {
1709
+ "type": "text",
1710
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. ",
1711
+ "bbox": [
1712
+ 171,
1713
+ 871,
1714
+ 821,
1715
+ 887
1716
+ ],
1717
+ "page_idx": 11
1718
+ },
1719
+ {
1720
+ "type": "text",
1721
+ "text": "Ilya Loshchilov and Frank Hutter. Sgdr: stochastic gradient descent with restarts. arXiv preprint arXiv:1608.03983, 2016. ",
1722
+ "bbox": [
1723
+ 173,
1724
+ 895,
1725
+ 823,
1726
+ 924
1727
+ ],
1728
+ "page_idx": 11
1729
+ },
1730
+ {
1731
+ "type": "text",
1732
+ "text": "Hariharan Narayanan and Sanjoy Mitter. Sample complexity of testing the manifold hypothesis. In Advances in Neural Information Processing Systems, pp. 1786–1794, 2010. ",
1733
+ "bbox": [
1734
+ 171,
1735
+ 103,
1736
+ 823,
1737
+ 132
1738
+ ],
1739
+ "page_idx": 12
1740
+ },
1741
+ {
1742
+ "type": "text",
1743
+ "text": "Behnam Neyshabur, Ruslan R Salakhutdinov, and Nati Srebro. Path-sgd: Path-normalized optimization in deep neural networks. In Advances in Neural Information Processing Systems, pp. 2422–2430, 2015. ",
1744
+ "bbox": [
1745
+ 173,
1746
+ 140,
1747
+ 823,
1748
+ 184
1749
+ ],
1750
+ "page_idx": 12
1751
+ },
1752
+ {
1753
+ "type": "text",
1754
+ "text": "Anders Oland, Aayush Bansal, Roger B Dannenberg, and Bhiksha Raj. Be careful what you backpropagate: A case for linear output activations & gradient boosting. arXiv preprint arXiv:1707.04199, 2017. ",
1755
+ "bbox": [
1756
+ 173,
1757
+ 193,
1758
+ 823,
1759
+ 234
1760
+ ],
1761
+ "page_idx": 12
1762
+ },
1763
+ {
1764
+ "type": "text",
1765
+ "text": "Salah Rifai, Yann N Dauphin, Pascal Vincent, Yoshua Bengio, and Xavier Muller. The manifold tangent classifier. In Advances in Neural Information Processing Systems, pp. 2294–2302, 2011. ",
1766
+ "bbox": [
1767
+ 173,
1768
+ 243,
1769
+ 821,
1770
+ 273
1771
+ ],
1772
+ "page_idx": 12
1773
+ },
1774
+ {
1775
+ "type": "text",
1776
+ "text": "Tim Salimans and Diederik P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016. ",
1777
+ "bbox": [
1778
+ 176,
1779
+ 281,
1780
+ 823,
1781
+ 324
1782
+ ],
1783
+ "page_idx": 12
1784
+ },
1785
+ {
1786
+ "type": "text",
1787
+ "text": "Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015. ",
1788
+ "bbox": [
1789
+ 173,
1790
+ 333,
1791
+ 825,
1792
+ 376
1793
+ ],
1794
+ "page_idx": 12
1795
+ },
1796
+ {
1797
+ "type": "text",
1798
+ "text": "Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012. ",
1799
+ "bbox": [
1800
+ 173,
1801
+ 385,
1802
+ 823,
1803
+ 414
1804
+ ],
1805
+ "page_idx": 12
1806
+ },
1807
+ {
1808
+ "type": "text",
1809
+ "text": "Ashia C Wilson, Rebecca Roelofs, Mitchell Stern, Nathan Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In Advances in Neural Information Processing Systems, 2017. ",
1810
+ "bbox": [
1811
+ 173,
1812
+ 422,
1813
+ 826,
1814
+ 465
1815
+ ],
1816
+ "page_idx": 12
1817
+ },
1818
+ {
1819
+ "type": "text",
1820
+ "text": "Neal Wu. A tensorflow implementation of wide residual networks, 2016. URL https:// github.com/tensorflow/models/tree/master/research/resnet. ",
1821
+ "bbox": [
1822
+ 173,
1823
+ 474,
1824
+ 823,
1825
+ 503
1826
+ ],
1827
+ "page_idx": 12
1828
+ },
1829
+ {
1830
+ "type": "text",
1831
+ "text": "Adams Wei Yu, Qihang Lin, Ruslan Salakhutdinov, and Jaime Carbonell. Normalized gradient with adaptive stepsize method for deep neural network training. arXiv preprint arXiv:1707.04822, 2017. ",
1832
+ "bbox": [
1833
+ 173,
1834
+ 511,
1835
+ 825,
1836
+ 554
1837
+ ],
1838
+ "page_idx": 12
1839
+ },
1840
+ {
1841
+ "type": "text",
1842
+ "text": "Sergey Zagoruyko and Nikos Komodakis. A pytorch implementation of wide residual networks, 2016a. URL https://github.com/szagoruyko/wide-residual-networks. ",
1843
+ "bbox": [
1844
+ 174,
1845
+ 564,
1846
+ 825,
1847
+ 593
1848
+ ],
1849
+ "page_idx": 12
1850
+ },
1851
+ {
1852
+ "type": "text",
1853
+ "text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016b. ",
1854
+ "bbox": [
1855
+ 173,
1856
+ 601,
1857
+ 825,
1858
+ 630
1859
+ ],
1860
+ "page_idx": 12
1861
+ },
1862
+ {
1863
+ "type": "text",
1864
+ "text": "Matthew D Zeiler. Adadelta: an adaptive learning rate method. arXiv preprint arXiv:1212.5701, 2012. ",
1865
+ "bbox": [
1866
+ 173,
1867
+ 638,
1868
+ 823,
1869
+ 669
1870
+ ],
1871
+ "page_idx": 12
1872
+ },
1873
+ {
1874
+ "type": "text",
1875
+ "text": "Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In ICLR 2017, 2017. ",
1876
+ "bbox": [
1877
+ 173,
1878
+ 676,
1879
+ 825,
1880
+ 707
1881
+ ],
1882
+ "page_idx": 12
1883
+ }
1884
+ ]
parse/train/HJSA_e1AW/HJSA_e1AW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJSA_e1AW/HJSA_e1AW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Tsp2PL7-GQ/Tsp2PL7-GQ.md ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networks
2
+
3
+ # Avi Schwarzschild
4
+
5
+ Department of Mathematics University of Maryland College Park, MD, USA avi1@umd.edu
6
+
7
+ Eitan Borgnia Department of Computer Science University of Maryland College Park, MD, USA
8
+
9
+ Arjun Gupta Department of Robotics University of Maryland College Park, MD, USA
10
+
11
+ Furong Huang Department of Computer Science University of Maryland College Park, MD, USA
12
+
13
+ Uzi Vishkin Department of Electrical and Computer Engineering University of Maryland College Park, MD, USA
14
+
15
+ Micah Goldblum Department of Computer Science University of Maryland College Park, MD, USA
16
+
17
+ Tom Goldstein Department of Computer Science University of Maryland College Park, MD, USA
18
+
19
+ # Abstract
20
+
21
+ Deep neural networks are powerful machines for visual pattern recognition, but reasoning tasks that are easy for humans may still be difficult for neural models. Humans possess the ability to extrapolate reasoning strategies learned on simple problems to solve harder examples, often by thinking for longer. For example, a person who has learned to solve small mazes can easily extend the very same search techniques to solve much larger mazes by spending more time. In computers, this behavior is often achieved through the use of algorithms, which scale to arbitrarily hard problem instances at the cost of more computation. In contrast, the sequential computing budget of feed-forward neural networks is limited by their depth, and networks trained on simple problems have no way of extending their reasoning to accommodate harder problems. In this work, we show that recurrent networks trained to solve simple problems with few recurrent steps can indeed solve much more complex problems simply by performing additional recurrences during inference. We demonstrate this algorithmic behavior of recurrent networks on prefix sum computation, mazes, and chess. In all three domains, networks trained on simple problem instances are able to extend their reasoning abilities at test time simply by “thinking for longer.”
22
+
23
+ # 1 Introduction
24
+
25
+ In computational theories of mind, an analytical problem is tackled by embedding it in “working memory” and then iteratively applying transformations to the representation until the problem is solved [Baddeley, 2012, Baddeley and Hitch, 1974]. Iterative processes underlie the human ability to solve sequential reasoning problems, such as complex question answering, proof writing, and even object classification $\lVert \underline { { \tilde { \mathrm { L i a o ~ a n d ~ P o g g i o } } } } \rVert \underline { { 2 0 1 6 } } \rVert \underline { { \tilde { \mathrm { K a r ~ e t ~ a l l } } } } \rVert \underline { { 2 0 1 9 } } \rVert$ . They also enable humans to extrapolate their knowledge to solve problems of potentially unbounded complexity, including harder problems than they have seen before, by thinking for longer.
26
+
27
+ This work examines whether recurrent neural networks trained on easy problems can extrapolate their knowledge to solve hard problems. We find that recurrent networks can indeed generalize to harder problems simply by increasing their test time iteration budget (i.e., thinking for longer than they did at train time). Moreover, we find that the performance of recurrent models improves as they recur for more iterations, even without adding parameters or re-training in the new, more challenging problem domain. This ability is specific to recurrent networks, as standard feed-forward networks rely on layer-specific behaviors that cannot be repeated to extend their reasoning power.
28
+
29
+ The behavior we observe in recurrent networks falls outside the classical notions of generalization in which models are trained and tested on the same distribution. Because we train and test on problems of different sizes/difficulties, our training and test distributions are disjoint, and systems must extrapolate to solve problems from the test distribution. Outside the field of machine learning, computers achieve a functionally similar extrapolation ability through the use of algorithms, which encode the process required to solve a class of problems, and can therefore scale to problems of arbitrary size, albeit with longer runtime.
30
+
31
+ By training networks to solve problems iteratively, we hope to find models that encode a scalable method for solving problems rather than memorizing a mapping between input features and outputs. In short, the goal is to create recurrent architectures that are capable of learning an algorithm.
32
+
33
+ Our focus is on three reasoning problems that are classically solved using hand-crafted algorithms: computing prefix sums, solving mazes, and playing chess. Sequential reasoning tasks like these are ideal for our study because one can directly quantify the difficulty of a problem instance. In the case of mazes, for example, we can easily swap to a more challenging domain by increasing the size of the search space.
34
+
35
+ For each class of problems, recurrent networks are trained on a set of “easy” problems using a fixed number of iterations of the recurrent module on the forward pass. After training is complete, we assess whether our models exhibit logical extrapolation behaviors by testing them on “hard” problems, with varying numbers of additional iterations. Remarkably, models trained on easy examples exhibit little extrapolative behavior until their iteration budget is increased — generalizing to harder problems requires thinking deeper. Moreover, we find recurrent models tested with a sufficient number of extra iterations outperform the inflexible feed-forward models of comparable depth, often by a wide margin. Finally, we visualize the iterative behavior of the recurrent module to gain insights into the problem solving process they discover.
36
+
37
+ # 1.1 Related works
38
+
39
+ Our investigation into generalizing from easy to hard examples builds on several bodies of work. Logical extrapolation encompasses a special kind of distributional shift. A number of existing works on domain generalization instead explore shifts, such as re-stylization and image corruptions, which do not represent an increase in scale or computational complexity [Arjovsky et al., 2019, Shu et al., $\boxed { 2 0 2 0 }$ . Also, the basic neural architectures we use are not new and build upon prior studies of weight sharing and recurrence [Pinheiro and Collobert, 2014, Liang and Hu, 2015, Alom et al., 2018, Bai et al., 2018, 2019, Lan et al., 2020, Jaegle et al., 2021]. Networks with variable numbers of test time iterations/layers have also been studied, including variable depth networks [Graves, 2016, Huang et al., 2016, Kaya et al., 2019, Eyzaguirre and Soto, 2020].
40
+
41
+ Existing work on algorithm learning involves recurrent neural network (RNN) based approaches. For example, neural turing machines and neural GPUs can learn simple algorithms for tasks such as binary addition and multiplication [Graves et al., 2014, Kaiser and Sutskever, 2015]. Like most RNNs, the compute budget for these methods is inextricably tied to input length. Motivated by the fact that input sequence length is not necessarily correlated with the computational burden required to solve a problem, $\boxed { \mathrm { G r a v e s } } \boxed { \sqrt { 2 0 1 6 } }$ develops a method for RNNs to adaptively select a compute time limit. This work considers only sequence inputs and shows the benefits of decoupling compute budget from input length. A differentiable extension of the technique can also be applied to visual question answering [Eyzaguirre and Soto, 2020]
42
+
43
+ The above works leverage neural networks with adaptive computation budgets to speed up and strengthen inference when learning on stationary distributions. In contrast, our work studies the logical extrapolation behaviors that recurrent networks possess when both computation budgets and problem difficulties are extended beyond the train-time regime. In the domain of constraint satisfiability problems (CSPs), Selsam et al. [2018] show message passing neural networks trained on small CSPs can generalize to larger problems if more messages are passed at test-time – a similar type of extrapolation to our methods, but for a very specific problem formulation.
44
+
45
+ The particular problems we use to study this type of extrapolation include prefix sum computation and maze solving, two problems analyzed in the classical algorithms literature. For example, there are many ways to solve mazes, both classical (e.g. breadth first search) and learned (e.g. value iteration networks), but our goal is not to develop the best solver, rather to use mazes as a test bed for logical extrapolation $\overline { { \| \mathrm { T a m a r ~ e t ~ a l . } \| 2 0 1 6 } } $ . Our third case study is the game of chess, which has also been the focus of much artificial intelligence work [Romstad et al., Biswas and Regan, 2015, Silver et al., 2017, McIlroy-Young et al., 2020]. However, those efforts to play chess rely heavily on hand-crafted search algorithms, often paired with neural networks or opening books, and aim to play games from start to finish, both methods and goals that diverge from ours. As opposed to hard-coded algorithms, which scale by design, we are interested in studying whether learned processes can generalize from the data on which they are trained to even harder problems.
46
+
47
+ # 2 Dataset descriptions
48
+
49
+ We conduct experiments in three problem domains that are classically solved using hand-crafted algorithms. For each, we define datasets that have quantifiable notions of difficulty. This makes it possible to train models on easy/small examples and test them on harder/larger ones. We consider the task of computing prefix sums modulo two of binary bit strings, solving two-dimensional mazes, and finding the best move in chess puzzles.
50
+
51
+ Prefix sums This problem is inspired by a similar dataset used by $\widetilde { | \mathrm { G r a v e s } | } \widetilde { | 2 0 1 6 | }$ . Each training sample is a binary string. The goal is to output a binary string of equal length, where each bit represents the cumulative sum of input bits modulo two. Our models accept input strings of any size, and we consider longer strings to be more difficult to process than shorter ones. Each dataset contains 10,000 uniform random binary strings without duplicates. We use datasets with input lengths of 32, 44, and 48 bits. See Figure 1 for an example input and the corresponding target output.
52
+
53
+ ![](images/6ba61e4f9b86e5d33e531134408964e5005e6400214a8bab8fd281a08da84600.jpg)
54
+ Figure 1: Prefix sum input and target example.
55
+
56
+ Mazes We consider mazes generated using a depth-first search algorithm $\underline { { \ [ \mathrm { H i l l } ] [ 2 0 1 7 ] } }$ We train on 50,000 small $( 9 \times 9 )$ mazes, and we test on 10,000 larger $( 1 3 \times 1 3 )$ mazes. Our models are convolutional, and receive a maze as a $N \times N$ three-channel image, where the maze walls are black, and the start and goal locations are red and green, respectively. The label for each maze is a binary two-dimensional mask containing the locations of positions along the shortest path solution. Our models output a two logits per pixel which are then thresholded to a binary mask of the whole input, and we consider a candidate solution correct only if it exactly predicts the labeled path. See Figure 10 for an example. More examples are available in Appendix A.1.2.
57
+
58
+ ![](images/e5ba65125ced5cf1141b5ee0c6da55ddc261fc1b2ba859072452d3c52ff88eaf.jpg)
59
+ Figure 2: An example maze input and target. The target is a binary classification label for each pixel indicating on/off the optimal path.
60
+
61
+ ![](images/56a9178f21277f4cadccd2e520a77dcb1ec66c0fc4777b76af98727662a224af.jpg)
62
+ Figure 3: An example of a chess puzzle input (left) and target (right). In the target, white represents one and black is zero.
63
+
64
+ Chess puzzles The third dataset we use is a corpus of chess puzzles. The data is furnished by Lichess, an online open-source chess server [Lichess, 2021]. From billions of games, Lichess compiles “puzzles” – mid-game boards for which a sequence of unique best moves is determinable (e.g. sequences of moves leading to a forced checkmate). From this database, we compiled labeled data where the inputs are $8 \times 8 \times 1 2$ arrays indicating the position of each piece on the board (one channel per piece type and color) and the outputs are $8 \times 8$ binary masks showing the origin and destination positions for the optimal move. See the example in Figure 3, where it is white to move and the solution to the puzzle is to move the queen from F3 to F7.
65
+
66
+ The puzzles each have a difficulty rating determined by an Elo-like system (a standard system for rating players using tournament play) $\boxed { \boxed { \mathrm { E l o } } \boxed { 1 9 7 8 } }$ . When Lichess users, each with an Elo rating, attempt to solve the puzzle, the rating of the player and puzzle is updated as if they “played” against each other. After enough players encounter the puzzle, the rating of the puzzle reaches an equilibrium which gets recorded in the database. We use these ratings to distinguish between easy and hard; 600,000 puzzles of difficulty rating less than 1,385 are used for training, and testing is performed on 100,000 examples with ratings greater than 1,385.
67
+
68
+ Our models output a confidence score between zero and one for each square on the board. We take the two highest scores and compare their locations to the target to measure correctness – only exact matches are considered correct.
69
+
70
+ # 3 Model architectures & training
71
+
72
+ In all of the experiments in this work, we employ network architectures based on ResNets [He et al., $\bigstar$ . Our feed-forward networks are slight deviations from the most commonly used ResNets, in that the width does not change except at the first layer and after the last residual block, and we do not use batch normalization. This is done so that the recurrent models, whose internal recurrent module has the same input and output dimensions, can be as similar as possible to the feed-forward ResNets. In fact, the only difference during training between a feed-forward and recurrent model of the same effective depth is that the weights are shared between the residual blocks in the recurrent models. We refer to the recurrent portion of the network as the recurrent module. Also, our models are fully convolutional with no fully connected heads. For solving prefix sums, which involves onedimensional strings, we further deviate from classical ResNets by using one-dimensional convolutions. For complete architectural details, see Appendix A.2.
73
+
74
+ We measure recurrent models in terms of iterations and effective depth. An iteration is a repetition of the recurrent residual block, which contains four layers in all of our models. Therefore, the effective depth is equal to four times the number of iterations, plus non-recurrent encoder and head layers that sandwich the recurrent module. For example, the models used for computing prefix sums have one convolutional encoder layer, followed by the recurrent block and then by a three layer convolutional head. In this case, a 10-iteration model has effective depth $1 + 1 0 \times 4 + 3 = 4 4$ layers.
75
+
76
+ For each training sample we consider, the label is an array of binary classification variables, one per input pixel. The training loss is simply the mean cross-entropy loss across output values. In general, hyperparameters were determined with the goal of finding convergent models. The specific batch sizes, learning rate and decay schedules, and other hyperparameter values are all available in Appendix A.3. 1
77
+
78
+ # 4 Recurrent networks can generalize from easy to hard problems
79
+
80
+ We explore the ability of recurrent neural networks to generalize to more difficult problems simply by thinking deeper. To this end, we train models of varying effective depth on easy training examples and test them on harder problems. We find that recurrent models are even better at generalizing from easy to hard than their feed-forward counterparts. While there is only one way to test the feed-forward models, we take a closer look at what happens when the recurrent models are allowed to think deeper about the harder problems. Formally, we use more iterations of the recurrent module within the recurrent models when performing inference on test data. Across all three problem types, we find that the confidence of the model is a good surrogate for correctness. Therefore, when evaluating recurrent models, we use the output from the iteration to which the network assigns the highest confidence.
81
+
82
+ # 4.1 Prefix sums
83
+
84
+ The first task on which we demonstrate the ability of recurrent neural networks to learn an algorithm is one from the classical algorithms literature, namely computing prefix sums. Specifically, we study the problem of computing the prefix sums modulo two of binary input strings.
85
+
86
+ When computing prefix sums, we employ models with effective depths from 40 to 68 layers. We train models on easy data consisting of 32-bit input strings and test on harder 40-bit and 44-bit strings. In Table 1, it is clear that even when holding the depth constant at test time, recurrent models generalize from easy to hard better than feed-forward networks.
87
+
88
+ Table 1: Extrapolating to longer input strings. Shown here are the average accuracies of models trained on 32-bit inputs and tested on 40-bit inputs. The effective depths listed below correspond to 9, 10, and 11 iterations in recurrent models. We report average accuracy $\pm$ one standard error.
89
+
90
+ <table><tr><td></td><td colspan="3">Effective Depth (Layers)</td></tr><tr><td></td><td>40</td><td>44</td><td>48</td></tr><tr><td>Recurrent</td><td>24.96± 2.96</td><td>31.02 ± 2.56</td><td>35.22 ± 3.34</td></tr><tr><td>Feed-forward</td><td>22.17 ± 0.85</td><td>24.78 ± 1.65</td><td>22.79 ± 1.32</td></tr></table>
91
+
92
+ ![](images/75d8a02adf1abd4ebc2e7a971fff383ea86cc068b4c7fe5762cfe8e2d8696123.jpg)
93
+ Figure 4: Generalizing from easy to hard prefix sums. The ability of networks to compute prefix sums on two test sets with longer input strings than were used for training (accuracy on 40-bit inputs in purple and on 44-bit inputs in red). We compare recurrent models to the best feed-forward models of comparable effective depth. The markers are at average values from several trials and the shaded regions indicate $\pm$ one standard error.
94
+
95
+ When the thought budget, or number of iterations, is increased, we see that recurrent models can get upwards of $90 \%$ of the harder testing examples correct. In Figure 4, we observe this large boost in the recurrent models’ performance and a vast difference in the accuracy of recurrent models (with added iterations at test time) and feed-forward networks. Note that the dotted lines represent the average accuracy of the deepest feed-forward networks considered. That depth is 68 layers, or the effective depth of recurrent models with 16 iterations, and we use this baseline in the plot specifically because in the range of depths corresponding to the numbers of iterations shown, these feed-forward models achieve the highest accuracy. In other words, recurrent models trained with relatively few iterations generalize well to harder data while similar and even much larger feed-forward networks fail to generalize in the same scenario.
96
+
97
+ The generalization we see in Figure 4 indicates that these recurrent models learn processes that can be extended to harder problems by running for more iterations. In particular, the recurrence is both the machinery that allows for varying the depth at test time, as well as a force at training to push the model to find parameters that make progress toward a solution with each reuse.
98
+
99
+ When these results are viewed through the lens of algorithm design, one might wonder how the receptive field, or the number of entries in the input that determine a single entry in the output, affects these models. The feed-forward models, whose accuracies are shown in Figure 4, have the same receptive field as the recurrent models when tested with 16 iterations. This makes it clear that the increase in accuracy of recurrent models does not simply occur because the receptive field grows with added iterations, rather it occurs because they have learned a process that can extrapolate beyond the training distribution. Further discussion on receptive field is presented in Appendix B.
100
+
101
+ # 4.1.1 Iterative outputs
102
+
103
+ One way to dissect the learned process and compare it to known algorithms is to plot the confidence of the model at each iteration. In Figure $\boxed { 5 }$ we show a representative example of a network’s confidence that each bit in the output is a one. Two striking observations can be made from this figure. The first is that the model is progressing to the solution with each iteration. The second observation is that it is resolving the prefix sum in the earlier bits first and moving down the string, settling on the final bits only in the last iteration. This is remarkably similar to a naive algorithm one might implement for this task that marches from the first index until the end of the string computing prefix sums in order.
104
+
105
+ ![](images/cc860366995e3816ca17493ef6b4efdd036066e61f58f70f16f7e4200cdcc8b7.jpg)
106
+ Figure 5: A recurrent model’s output from each of 11 iterations on a 40-bit input string. Shown here is the confidence that there is a 1 at each index of the output. The first index is at the top for all vectors, the input is in the left-most column and the target is in the right-most column. The model used to produce this plot was trained with fewer iterations (10) on shorter input strings (32-bit).
107
+
108
+ # 4.2 Mazes
109
+
110
+ For maze solving, we train models on a training set composed of the easier small mazes, and we investigate the ability of networks to make the leap to larger, or harder, mazes at test time. In line with the findings above, we show two important behaviors. First, the recurrent models make the leap from small to large mazes better than feed-forward models. Second, when allowed to think deeper, the recurrent models exhibit even higher performance.
111
+
112
+ The networks employed here are fully convolutional and have 512 channels in the internal layers. In assessing the confidence of a given output, we average each pixel’s classification confidence.
113
+
114
+ Table 2 shows that for a fixed effective depth, recurrent models always generalize to the hard mazes better than their feed-forward counterparts. Inspired by the upward trend in Table 2, we shift focus to deeper models. In Figure $_ { . . } ^ { 6 , }$ we show that recurrent models can extrapolate to harder problems better than feed forward models. When trained on small mazes with 20 iterations (effective depth of 84 layers), these networks can solve about half of large mazes. However, when allowed to think for longer, the recurrent models can correctly solve an even higher proportion of large mazes. In fact, models trained with 20 iterations can achieve upward of $70 \%$ accuracy on large mazes using 5 additional iterations at test time.
115
+
116
+ Table 2: The average accuracy $( \% )$ of models trained on small mazes and tested on large ones. Over a range of effective depths, we see that recurrent models generalize to the harder mazes better than their feed-forward counterparts. Figures reflect averages over several trials $\pm$ one standard error.
117
+
118
+ <table><tr><td></td><td colspan="5">Effective Depth</td></tr><tr><td></td><td>20</td><td>24</td><td>28</td><td>36</td><td>44</td></tr><tr><td>Recurrent</td><td>12.66 ± 0.44</td><td>14.02 ± 0.39</td><td>19.95 ± 0.31</td><td>22.96 ± 1.03</td><td>29.72 ± 1.22</td></tr><tr><td>Feed-forward</td><td>7.94 ± 0.36</td><td>12.43 ± 0.50</td><td>14.67 ± 0.54</td><td>17.71 ± 0.36</td><td>22.53 ± 1.14</td></tr></table>
119
+
120
+ ![](images/e38418ead266361297b87df3bbe4d5a138e8de0facc71a6608896165cdd862cd.jpg)
121
+ Figure 6: Generalizing from easy to hard mazes. We compare recurrent models to the best feedforward models. The markers are at average values from several trials and the shaded regions indicate $\pm$ one standard error.
122
+
123
+ Maze solving is another task for which global information is needed. We investigate how dilated filters affect model performance. Dilation is a way of changing the receptive field without adding new parameters or more depth. Table $\textcircled { 3 }$ shows that dilations lead to slight improvements, however, the benefits of recurrence are still abundantly clear. Indeed, the difference in performance is even larger.
124
+
125
+ Table 3: The average accuracy $( \% )$ of models with dilated filters trained on small mazes and tested on large ones. Figures reflect averages over several trials $\pm$ one standard deviation.
126
+
127
+ <table><tr><td></td><td colspan="5">Effective Depth</td></tr><tr><td></td><td>20</td><td>24</td><td>28</td><td>32</td><td>36</td></tr><tr><td>Recurrent</td><td>33.60±1.06</td><td>40.49 ± 1.63</td><td>33.91 ± 1.99</td><td>40.56± 4.34</td><td>50.50± 7.97</td></tr><tr><td>Feed-forward</td><td>19.73 ± 0.72</td><td>21.59 ± 0.22</td><td>24.18 ± 1.33</td><td>25.82 ± 0.10</td><td>26.54 ± 2.13</td></tr></table>
128
+
129
+ # 4.2.1 Iterative outputs
130
+
131
+ The recurrent maze solving networks also produce output at every iteration. Examining this output again leads to a remarkable conclusion: these recurrent models are narrowing in on the answer with each successive iteration. In Figure $\bigstar$ it is clear from the output on iteration four that the network has found two routes emanating from the red square. Moving through the iterations, the model refines the output, increasing the confidence for pixels on the path and decreasing the others until finally at Iteration $\# 7$ , the output matches the target. It is also interesting to observe here that the output is consistently correct for two iterations, after which a few pixels flip (Iteration #9).
132
+
133
+ ![](images/c45db6e9d1e5bb3e1aa89809a44a26336f5a0254f1d218ee8c475568d7efeae9.jpg)
134
+ Figure 7: Input, target, and outputs from different iterations are shown to highlight the model’s ability to think sequentially about mazes. We plot the model’s confidence that each pixel belongs to the optimal path. This is a representative example from a model trained to solve small mazes in six iterations.
135
+
136
+ # 4.3 Chess puzzles
137
+
138
+ The third dataset comprises chess puzzles, or mid-game chess boards for which we seek the best next move. Unlike the other two datasets, the state of the art for chess playing algorithms is complex and has components that use algorithms like Monte Carlo tree search as well as neural network based elements for evaluating positions $\mathbf { \underline { { \{ R o m s t a d e t ~ a l . \} } } \mathbf { \underline { { \{ S i l v e r ~ e t ~ a l . \} } } } \mathbf { \underline { { \{ 2 0 1 7 \} } } } }$ . The complicated nature of these systems provides some context for how difficult these puzzles are. What makes these puzzles particularly useful for us is that there is a predetermined best next move. A move is defined as an origin square, or the current location of the piece to be moved, and a destination square $\bigstar \bigstar \mathrm { I n }$ order to generate target outputs for our models, we define a move as an $8 \times 8$ array with zeros everywhere except at the entries corresponding to the origin and destination squares which are ones.
139
+
140
+ We compare recurrent and feed-forward networks of effective depths from 84 layers to 100 layers that take $8 \times 8 \times 1 2$ arrays as input. These fully convolutional networks have 512 channels in the internal layers, and the output is $8 \times 8 \times 2$ , corresponding to binary classification at each input pixel. During training, we use an average of cross-entropy losses at every pixel. When evaluating these models, however, we define the predicted move by the locations of the two highest confidence scores.
141
+
142
+ ![](images/6f9d9a1acf162443b4d148f5bae2d9a42780222acadcdfd89f24871d2bf11b31.jpg)
143
+ Figure 8: Generalizing from easy to hard chess puzzles. The ability of networks to solve harder puzzles than were used for training. We compare recurrent models to the best feed-forward models of comparable effective depth. The markers are at average values from several trials and the shaded region indicate $\pm$ one standard error.
144
+
145
+ Once again, we see that recurrent models can solve more chess puzzles than their feed forward counterparts. Furthermore, by thinking deeper at test time, recurrent models can perform even better. While the gains shown in Figure 8 are modest in comparison to the other two problem settings, the trend is clear – recurrent models can solve more puzzles with more iterations.
146
+
147
+ # 4.3.1 Iterative outputs
148
+
149
+ ![](images/017703ea05676fb6338275cc07cc4ce4a8e731b4907e2dc7c7820afd6e096b4a.jpg)
150
+ Figure 9: Input, target, and outputs form different iterations are shown to highlight the model’s ability to think about the next move. We plot the model’s confidence that each pixel is one of the two that define a move. In this example, black is to move next. For space consideration, iterations 2-14, which look like the first iteration, are left out of this plot. More examples are available in Appendix C.
151
+
152
+ While the outputs from the other two datasets show the similarity between the learned iterative process and known sum and search algorithms, extracting that insight on chess puzzles is much more difficult. Partly, this is because exploiting known search algorithms on such a large search space is hard to visualize. Nonetheless, the network’s output, shown in Figure 9, tells a fascinating story. First, the Iteration #1 plot shows that after one iteration, we observe equal confidence at every location on the board. In the next frame, Iteration $\# 1 5$ , it is clear that the model is considering moving the D8 rook to multiple squares, and it also considers the intuitive idea of using the E5 queen to place the white king in check on H2. With each successive iteration, the network becomes more confident – first that the rook is the correct piece to move, and then where to move it to.
153
+
154
+ # 5 Discussion
155
+
156
+ More than an answer, the results and conclusions in this paper are posing a question: Can learned models behave like classical algorithms in the way they generalize to harder or larger problems?
157
+
158
+ Our discussion of this question and our observations begins with delineating the limitations of our work. The first major limitation is that we do not propose a definitive answer. Rather, using representative cases, we demonstrate that recurrence can help neural models make the leap from easy training data to hard testing examples. A more subtle limitation of our work lies in how we split the data by difficulty. For prefix sum computation and for mazes, the classical algorithms approach to measuring problem complexity is tied to problem size, so in those settings we make intuitive easy/hard splits. With chess however, the issue is much more complex. Should puzzles with higher ratings require more memory or more computation? We carry out our work assuming the answer is yes, but we remain open minded to the possibility that the ratings assigned by Lichess may be weak surrogates for algorithmic complexity of each puzzle. In short, chess is an extremely difficult domain to analyze.
159
+
160
+ The observations above indicate that iterative models can learn processes that generalize beyond the training distribution with more iterations. One exciting use case is when the testing distribution is inaccessible, a setting where training on the harder distribution itself would be impossible. Many real life scenarios demand exactly this type of problem solving, from robots deployed in the real world after training in simulation to humans who spend a lot of time practicing on easy math problems only to spend years on difficult unsolved questions.
161
+
162
+ On a conceptual level, the recurrent model behavior we show is analogous to the human behavior of manipulating representations in working memory; in this analogy, the recurrent block performs the transformations and the activations it generates are the memory. It is not the goal of the experiments here to suggest that iterative models use mechanisms similar to those in a human brain. Nonetheless, it is exciting to see, even in a proof of concept setting, neural models that appear to deliberate on a problem until it is solved and can extend their abilities by thinking for longer.
163
+
164
+ This raises a questions that motivates future work. Can we build neural networks that can think for even longer? Is it feasible to have models whose performance only increases with added compute time? Humans who are given more than enough time to solve a maze, will not suddenly get it wrong after arriving at the right answer, perhaps this awareness of when to stop thinking can be built into networks like the ones we study here.
165
+
166
+ # 6 Conclusion
167
+
168
+ In this work, we demonstrate that neural networks are capable of solving sequential reasoning tasks and then extrapolating this knowledge to solve problems of greater complexity than they were trained on. These recurrent models are largely inspired by the classical theory of mind, in which the brain iteratively applies primitive strategies to solve complex problems over time [Baddeley, 2012] Our models are recurrent versions of popular architectures and we acknowledge that variations to the model may be helpful. Thus, we leave an in depth investigation into other neural network designs for future work.
169
+
170
+ Interestingly, the resulting models excel at solving problems that are classically solved by handcrafted algorithms; prefix sums are computed using reduction trees, mazes are classically solved by depth/breadth first search, and chess is solved by Monte-Carlo tree search. Even with the advances in machine learning that we have today, hand-crafted algorithms still play a role in state-of-the-art reasoning systems. A prominent example is AlphaZero, which plays board games using Monte-Carlo tree search algorithms assisted by a learned pruning function [Silver et al., 2017]. While moving away from this paradigm that includes hand-crafted elements is highly ambitious, this work suggests that it may be possible to train gameplay systems without building them on top of a hand-crafted tree search engine. In other words, it may be possible to machine-learn these algorithmic behaviors end-to-end.
171
+
172
+ # Acknowledgements
173
+
174
+ This project was supported by the ONR MURI program, AFOSR MURI program, the DARPA Young Faculty Award, and the National Science Foundation Division of Mathematical Sciences. Additional support was provided by Capital One Bank and JP Morgan Chase. Additionally, we thank Avrim Blum for thought-provoking and insightful conversations.
175
+
176
+ # References
177
+
178
+ Md Zahangir Alom, Mahmudul Hasan, Chris Yakopcic, Tarek M Taha, and Vijayan K Asari. Recurrent residual convolutional neural network based on u-net (r2u-net) for medical image segmentation. arXiv preprint arXiv:1802.06955, 2018.
179
+ Martin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019.
180
+ Alan Baddeley. Working memory: theories, models, and controversies. Annual review of psychology, 63:1–29, 2012.
181
+ Alan D Baddeley and Graham Hitch. Working memory. In Psychology of learning and motivation, volume 8, pages 47–89. Elsevier, 1974.
182
+ Shaojie Bai, J Zico Kolter, and Vladlen Koltun. Trellis networks for sequence modeling. In International Conference on Learning Representations, 2018.
183
+ Shaojie Bai, J Zico Kolter, and Vladlen Koltun. Deep equilibrium models. Advances in Neural Information Processing Systems, 32:690–701, 2019.
184
+
185
+ Tamal Biswas and Kenneth Regan. Measuring level-k reasoning, satisficing, and human error in gameplay data. In 2015 IEEE 14th International Conference on Machine Learning and Applications (ICMLA), pages 941–947. IEEE, 2015.
186
+
187
+ Arpad E Elo. The rating of chessplayers, past and present. Arco Pub., 1978.
188
+
189
+ Cristobal Eyzaguirre and Alvaro Soto. Differentiable adaptive computation time for visual reasoning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12817–12825, 2020.
190
+
191
+ Alex Graves. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016.
192
+
193
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
194
+
195
+ 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), pages 770–778, 2016.
196
+
197
+ Christian Hill. Making a maze, Apr 2017. URL https://scipython.com/blog/ making-a-maze/.
198
+
199
+ Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q Weinberger. Deep networks with stochastic depth. In European conference on computer vision, pages 646–661. Springer, 2016.
200
+
201
+ Andrew Jaegle, Felix Gimeno, Andrew Brock, Andrew Zisserman, Oriol Vinyals, and Joao Carreira. Perceiver: General perception with iterative attention. arXiv preprint arXiv:2103.03206, 2021.
202
+
203
+ Łukasz Kaiser and Ilya Sutskever. Neural gpus learn algorithms. arXiv preprint arXiv:1511.08228, 2015.
204
+
205
+ Kohitij Kar, Jonas Kubilius, Kailyn Schmidt, Elias B Issa, and James J DiCarlo. Evidence that recurrent circuits are critical to the ventral stream’s execution of core object recognition behavior. Nature neuroscience, 22(6):974–983, 2019.
206
+
207
+ Yigitcan Kaya, Sanghyun Hong, and Tudor Dumitras. Shallow-deep networks: Understanding and mitigating network overthinking. In International Conference on Machine Learning, pages 3301–3310. PMLR, 2019.
208
+
209
+ Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations, 2020.
210
+
211
+ Ming Liang and Xiaolin Hu. Recurrent convolutional neural network for object recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3367–3375, 2015.
212
+
213
+ Qianli Liao and Tomaso Poggio. Bridging the gaps between residual learning, recurrent neural networks and visual cortex. arXiv preprint arXiv:1604.03640, 2016.
214
+
215
+ Lichess. Lichess open puzzles database. https://database.lichess.org/#puzzles, 2021. Accessed: 2021-04-01.
216
+
217
+ Reid McIlroy-Young, Siddhartha Sen, Jon Kleinberg, and Ashton Anderson. Aligning superhuman ai with human behavior: Chess as a model system. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1677–1687, 2020.
218
+
219
+ Pedro Pinheiro and Ronan Collobert. Recurrent convolutional neural networks for scene labeling. In International conference on machine learning, pages 82–90. PMLR, 2014.
220
+
221
+ Tord Romstad, Marco Costalba, and et al. Kiiski, Joona. Stockfish: A strong open source chess engine. URL https://stockfishchess.org/.
222
+
223
+ Avi Schwarzschild, Eitan Borgnia, Arjun Gupta, Arpit Bansal, Zeyad Emam, Furong Huang, Micah Goldblum, and Tom Goldstein. Datasets for studying generalization from easy to hard examples. arXiv preprint arXiv:2108.06011, 2021.
224
+
225
+ Daniel Selsam, Matthew Lamm, Benedikt Bünz, Percy Liang, Leonardo de Moura, and David L Dill. Learning a sat solver from single-bit supervision. arXiv preprint arXiv:1802.03685, 2018.
226
+
227
+ Manli Shu, Zuxuan Wu, Micah Goldblum, and Tom Goldstein. Preparing for the worst: Making networks less brittle with adversarial batch normalization. arXiv preprint arXiv:2009.08965, 2020.
228
+
229
+ David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, et al. Mastering chess and shogi by self-play with a general reinforcement learning algorithm. arXiv preprint arXiv:1712.01815, 2017.
230
+
231
+ Aviv Tamar, Yi Wu, Garrett Thomas, Sergey Levine, and Pieter Abbeel. Value iteration networks. arXiv preprint arXiv:1602.02867, 2016.
parse/train/Tsp2PL7-GQ/Tsp2PL7-GQ_content_list.json ADDED
@@ -0,0 +1,1281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networks ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 199,
8
+ 122,
9
+ 799,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Avi Schwarzschild ",
17
+ "text_level": 1,
18
+ "bbox": [
19
+ 222,
20
+ 227,
21
+ 349,
22
+ 239
23
+ ],
24
+ "page_idx": 0
25
+ },
26
+ {
27
+ "type": "text",
28
+ "text": "Department of Mathematics University of Maryland College Park, MD, USA avi1@umd.edu ",
29
+ "bbox": [
30
+ 191,
31
+ 241,
32
+ 375,
33
+ 295
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Eitan Borgnia Department of Computer Science University of Maryland College Park, MD, USA ",
40
+ "bbox": [
41
+ 400,
42
+ 226,
43
+ 620,
44
+ 281
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Arjun Gupta Department of Robotics University of Maryland College Park, MD, USA ",
51
+ "bbox": [
52
+ 645,
53
+ 227,
54
+ 807,
55
+ 281
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Furong Huang Department of Computer Science University of Maryland College Park, MD, USA ",
62
+ "bbox": [
63
+ 199,
64
+ 318,
65
+ 421,
66
+ 373
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Uzi Vishkin Department of Electrical and Computer Engineering University of Maryland College Park, MD, USA ",
73
+ "bbox": [
74
+ 452,
75
+ 316,
76
+ 797,
77
+ 373
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Micah Goldblum Department of Computer Science University of Maryland College Park, MD, USA ",
84
+ "bbox": [
85
+ 240,
86
+ 393,
87
+ 462,
88
+ 450
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "Tom Goldstein Department of Computer Science University of Maryland College Park, MD, USA ",
95
+ "bbox": [
96
+ 534,
97
+ 393,
98
+ 758,
99
+ 450
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "Abstract ",
106
+ "text_level": 1,
107
+ "bbox": [
108
+ 462,
109
+ 484,
110
+ 535,
111
+ 501
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Deep neural networks are powerful machines for visual pattern recognition, but reasoning tasks that are easy for humans may still be difficult for neural models. Humans possess the ability to extrapolate reasoning strategies learned on simple problems to solve harder examples, often by thinking for longer. For example, a person who has learned to solve small mazes can easily extend the very same search techniques to solve much larger mazes by spending more time. In computers, this behavior is often achieved through the use of algorithms, which scale to arbitrarily hard problem instances at the cost of more computation. In contrast, the sequential computing budget of feed-forward neural networks is limited by their depth, and networks trained on simple problems have no way of extending their reasoning to accommodate harder problems. In this work, we show that recurrent networks trained to solve simple problems with few recurrent steps can indeed solve much more complex problems simply by performing additional recurrences during inference. We demonstrate this algorithmic behavior of recurrent networks on prefix sum computation, mazes, and chess. In all three domains, networks trained on simple problem instances are able to extend their reasoning abilities at test time simply by “thinking for longer.” ",
118
+ "bbox": [
119
+ 232,
120
+ 515,
121
+ 766,
122
+ 751
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "1 Introduction ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 174,
132
+ 775,
133
+ 312,
134
+ 791
135
+ ],
136
+ "page_idx": 0
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "In computational theories of mind, an analytical problem is tackled by embedding it in “working memory” and then iteratively applying transformations to the representation until the problem is solved [Baddeley, 2012, Baddeley and Hitch, 1974]. Iterative processes underlie the human ability to solve sequential reasoning problems, such as complex question answering, proof writing, and even object classification $\\lVert \\underline { { \\tilde { \\mathrm { L i a o ~ a n d ~ P o g g i o } } } } \\rVert \\underline { { 2 0 1 6 } } \\rVert \\underline { { \\tilde { \\mathrm { K a r ~ e t ~ a l l } } } } \\rVert \\underline { { 2 0 1 9 } } \\rVert$ . They also enable humans to extrapolate their knowledge to solve problems of potentially unbounded complexity, including harder problems than they have seen before, by thinking for longer. ",
141
+ "bbox": [
142
+ 174,
143
+ 805,
144
+ 825,
145
+ 902
146
+ ],
147
+ "page_idx": 0
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "This work examines whether recurrent neural networks trained on easy problems can extrapolate their knowledge to solve hard problems. We find that recurrent networks can indeed generalize to harder problems simply by increasing their test time iteration budget (i.e., thinking for longer than they did at train time). Moreover, we find that the performance of recurrent models improves as they recur for more iterations, even without adding parameters or re-training in the new, more challenging problem domain. This ability is specific to recurrent networks, as standard feed-forward networks rely on layer-specific behaviors that cannot be repeated to extend their reasoning power. ",
152
+ "bbox": [
153
+ 174,
154
+ 92,
155
+ 825,
156
+ 188
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "The behavior we observe in recurrent networks falls outside the classical notions of generalization in which models are trained and tested on the same distribution. Because we train and test on problems of different sizes/difficulties, our training and test distributions are disjoint, and systems must extrapolate to solve problems from the test distribution. Outside the field of machine learning, computers achieve a functionally similar extrapolation ability through the use of algorithms, which encode the process required to solve a class of problems, and can therefore scale to problems of arbitrary size, albeit with longer runtime. ",
163
+ "bbox": [
164
+ 174,
165
+ 194,
166
+ 825,
167
+ 291
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "By training networks to solve problems iteratively, we hope to find models that encode a scalable method for solving problems rather than memorizing a mapping between input features and outputs. In short, the goal is to create recurrent architectures that are capable of learning an algorithm. ",
174
+ "bbox": [
175
+ 174,
176
+ 297,
177
+ 825,
178
+ 340
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Our focus is on three reasoning problems that are classically solved using hand-crafted algorithms: computing prefix sums, solving mazes, and playing chess. Sequential reasoning tasks like these are ideal for our study because one can directly quantify the difficulty of a problem instance. In the case of mazes, for example, we can easily swap to a more challenging domain by increasing the size of the search space. ",
185
+ "bbox": [
186
+ 174,
187
+ 345,
188
+ 825,
189
+ 416
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "For each class of problems, recurrent networks are trained on a set of “easy” problems using a fixed number of iterations of the recurrent module on the forward pass. After training is complete, we assess whether our models exhibit logical extrapolation behaviors by testing them on “hard” problems, with varying numbers of additional iterations. Remarkably, models trained on easy examples exhibit little extrapolative behavior until their iteration budget is increased — generalizing to harder problems requires thinking deeper. Moreover, we find recurrent models tested with a sufficient number of extra iterations outperform the inflexible feed-forward models of comparable depth, often by a wide margin. Finally, we visualize the iterative behavior of the recurrent module to gain insights into the problem solving process they discover. ",
196
+ "bbox": [
197
+ 173,
198
+ 421,
199
+ 825,
200
+ 546
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "1.1 Related works ",
207
+ "text_level": 1,
208
+ "bbox": [
209
+ 174,
210
+ 566,
211
+ 312,
212
+ 580
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "Our investigation into generalizing from easy to hard examples builds on several bodies of work. Logical extrapolation encompasses a special kind of distributional shift. A number of existing works on domain generalization instead explore shifts, such as re-stylization and image corruptions, which do not represent an increase in scale or computational complexity [Arjovsky et al., 2019, Shu et al., $\\boxed { 2 0 2 0 }$ . Also, the basic neural architectures we use are not new and build upon prior studies of weight sharing and recurrence [Pinheiro and Collobert, 2014, Liang and Hu, 2015, Alom et al., 2018, Bai et al., 2018, 2019, Lan et al., 2020, Jaegle et al., 2021]. Networks with variable numbers of test time iterations/layers have also been studied, including variable depth networks [Graves, 2016, Huang et al., 2016, Kaya et al., 2019, Eyzaguirre and Soto, 2020]. ",
219
+ "bbox": [
220
+ 173,
221
+ 593,
222
+ 825,
223
+ 720
224
+ ],
225
+ "page_idx": 1
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "Existing work on algorithm learning involves recurrent neural network (RNN) based approaches. For example, neural turing machines and neural GPUs can learn simple algorithms for tasks such as binary addition and multiplication [Graves et al., 2014, Kaiser and Sutskever, 2015]. Like most RNNs, the compute budget for these methods is inextricably tied to input length. Motivated by the fact that input sequence length is not necessarily correlated with the computational burden required to solve a problem, $\\boxed { \\mathrm { G r a v e s } } \\boxed { \\sqrt { 2 0 1 6 } }$ develops a method for RNNs to adaptively select a compute time limit. This work considers only sequence inputs and shows the benefits of decoupling compute budget from input length. A differentiable extension of the technique can also be applied to visual question answering [Eyzaguirre and Soto, 2020] ",
230
+ "bbox": [
231
+ 173,
232
+ 724,
233
+ 825,
234
+ 852
235
+ ],
236
+ "page_idx": 1
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "The above works leverage neural networks with adaptive computation budgets to speed up and strengthen inference when learning on stationary distributions. In contrast, our work studies the logical extrapolation behaviors that recurrent networks possess when both computation budgets and problem difficulties are extended beyond the train-time regime. In the domain of constraint satisfiability problems (CSPs), Selsam et al. [2018] show message passing neural networks trained on small CSPs can generalize to larger problems if more messages are passed at test-time – a similar type of extrapolation to our methods, but for a very specific problem formulation. ",
241
+ "bbox": [
242
+ 176,
243
+ 856,
244
+ 823,
245
+ 911
246
+ ],
247
+ "page_idx": 1
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "",
252
+ "bbox": [
253
+ 174,
254
+ 90,
255
+ 823,
256
+ 133
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "The particular problems we use to study this type of extrapolation include prefix sum computation and maze solving, two problems analyzed in the classical algorithms literature. For example, there are many ways to solve mazes, both classical (e.g. breadth first search) and learned (e.g. value iteration networks), but our goal is not to develop the best solver, rather to use mazes as a test bed for logical extrapolation $\\overline { { \\| \\mathrm { T a m a r ~ e t ~ a l . } \\| 2 0 1 6 } } $ . Our third case study is the game of chess, which has also been the focus of much artificial intelligence work [Romstad et al., Biswas and Regan, 2015, Silver et al., 2017, McIlroy-Young et al., 2020]. However, those efforts to play chess rely heavily on hand-crafted search algorithms, often paired with neural networks or opening books, and aim to play games from start to finish, both methods and goals that diverge from ours. As opposed to hard-coded algorithms, which scale by design, we are interested in studying whether learned processes can generalize from the data on which they are trained to even harder problems. ",
263
+ "bbox": [
264
+ 173,
265
+ 140,
266
+ 825,
267
+ 291
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "2 Dataset descriptions ",
274
+ "text_level": 1,
275
+ "bbox": [
276
+ 174,
277
+ 315,
278
+ 374,
279
+ 333
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "We conduct experiments in three problem domains that are classically solved using hand-crafted algorithms. For each, we define datasets that have quantifiable notions of difficulty. This makes it possible to train models on easy/small examples and test them on harder/larger ones. We consider the task of computing prefix sums modulo two of binary bit strings, solving two-dimensional mazes, and finding the best move in chess puzzles. ",
286
+ "bbox": [
287
+ 173,
288
+ 349,
289
+ 825,
290
+ 420
291
+ ],
292
+ "page_idx": 2
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "Prefix sums This problem is inspired by a similar dataset used by $\\widetilde { | \\mathrm { G r a v e s } | } \\widetilde { | 2 0 1 6 | }$ . Each training sample is a binary string. The goal is to output a binary string of equal length, where each bit represents the cumulative sum of input bits modulo two. Our models accept input strings of any size, and we consider longer strings to be more difficult to process than shorter ones. Each dataset contains 10,000 uniform random binary strings without duplicates. We use datasets with input lengths of 32, 44, and 48 bits. See Figure 1 for an example input and the corresponding target output. ",
297
+ "bbox": [
298
+ 173,
299
+ 438,
300
+ 826,
301
+ 523
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "image",
307
+ "img_path": "images/6ba61e4f9b86e5d33e531134408964e5005e6400214a8bab8fd281a08da84600.jpg",
308
+ "image_caption": [
309
+ "Figure 1: Prefix sum input and target example. "
310
+ ],
311
+ "image_footnote": [],
312
+ "bbox": [
313
+ 326,
314
+ 539,
315
+ 674,
316
+ 570
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "Mazes We consider mazes generated using a depth-first search algorithm $\\underline { { \\ [ \\mathrm { H i l l } ] [ 2 0 1 7 ] } }$ We train on 50,000 small $( 9 \\times 9 )$ mazes, and we test on 10,000 larger $( 1 3 \\times 1 3 )$ mazes. Our models are convolutional, and receive a maze as a $N \\times N$ three-channel image, where the maze walls are black, and the start and goal locations are red and green, respectively. The label for each maze is a binary two-dimensional mask containing the locations of positions along the shortest path solution. Our models output a two logits per pixel which are then thresholded to a binary mask of the whole input, and we consider a candidate solution correct only if it exactly predicts the labeled path. See Figure 10 for an example. More examples are available in Appendix A.1.2. ",
323
+ "bbox": [
324
+ 173,
325
+ 622,
326
+ 826,
327
+ 736
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "image",
333
+ "img_path": "images/e5ba65125ced5cf1141b5ee0c6da55ddc261fc1b2ba859072452d3c52ff88eaf.jpg",
334
+ "image_caption": [
335
+ "Figure 2: An example maze input and target. The target is a binary classification label for each pixel indicating on/off the optimal path. "
336
+ ],
337
+ "image_footnote": [],
338
+ "bbox": [
339
+ 202,
340
+ 752,
341
+ 475,
342
+ 853
343
+ ],
344
+ "page_idx": 2
345
+ },
346
+ {
347
+ "type": "image",
348
+ "img_path": "images/56a9178f21277f4cadccd2e520a77dcb1ec66c0fc4777b76af98727662a224af.jpg",
349
+ "image_caption": [
350
+ "Figure 3: An example of a chess puzzle input (left) and target (right). In the target, white represents one and black is zero. "
351
+ ],
352
+ "image_footnote": [],
353
+ "bbox": [
354
+ 519,
355
+ 751,
356
+ 795,
357
+ 856
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Chess puzzles The third dataset we use is a corpus of chess puzzles. The data is furnished by Lichess, an online open-source chess server [Lichess, 2021]. From billions of games, Lichess compiles “puzzles” – mid-game boards for which a sequence of unique best moves is determinable (e.g. sequences of moves leading to a forced checkmate). From this database, we compiled labeled data where the inputs are $8 \\times 8 \\times 1 2$ arrays indicating the position of each piece on the board (one channel per piece type and color) and the outputs are $8 \\times 8$ binary masks showing the origin and destination positions for the optimal move. See the example in Figure 3, where it is white to move and the solution to the puzzle is to move the queen from F3 to F7. ",
364
+ "bbox": [
365
+ 173,
366
+ 90,
367
+ 825,
368
+ 202
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "The puzzles each have a difficulty rating determined by an Elo-like system (a standard system for rating players using tournament play) $\\boxed { \\boxed { \\mathrm { E l o } } \\boxed { 1 9 7 8 } }$ . When Lichess users, each with an Elo rating, attempt to solve the puzzle, the rating of the player and puzzle is updated as if they “played” against each other. After enough players encounter the puzzle, the rating of the puzzle reaches an equilibrium which gets recorded in the database. We use these ratings to distinguish between easy and hard; 600,000 puzzles of difficulty rating less than 1,385 are used for training, and testing is performed on 100,000 examples with ratings greater than 1,385. ",
375
+ "bbox": [
376
+ 174,
377
+ 208,
378
+ 825,
379
+ 306
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "Our models output a confidence score between zero and one for each square on the board. We take the two highest scores and compare their locations to the target to measure correctness – only exact matches are considered correct. ",
386
+ "bbox": [
387
+ 176,
388
+ 311,
389
+ 825,
390
+ 353
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "3 Model architectures & training ",
397
+ "text_level": 1,
398
+ "bbox": [
399
+ 176,
400
+ 373,
401
+ 465,
402
+ 391
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "In all of the experiments in this work, we employ network architectures based on ResNets [He et al., $\\bigstar$ . Our feed-forward networks are slight deviations from the most commonly used ResNets, in that the width does not change except at the first layer and after the last residual block, and we do not use batch normalization. This is done so that the recurrent models, whose internal recurrent module has the same input and output dimensions, can be as similar as possible to the feed-forward ResNets. In fact, the only difference during training between a feed-forward and recurrent model of the same effective depth is that the weights are shared between the residual blocks in the recurrent models. We refer to the recurrent portion of the network as the recurrent module. Also, our models are fully convolutional with no fully connected heads. For solving prefix sums, which involves onedimensional strings, we further deviate from classical ResNets by using one-dimensional convolutions. For complete architectural details, see Appendix A.2. ",
409
+ "bbox": [
410
+ 173,
411
+ 405,
412
+ 826,
413
+ 559
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "We measure recurrent models in terms of iterations and effective depth. An iteration is a repetition of the recurrent residual block, which contains four layers in all of our models. Therefore, the effective depth is equal to four times the number of iterations, plus non-recurrent encoder and head layers that sandwich the recurrent module. For example, the models used for computing prefix sums have one convolutional encoder layer, followed by the recurrent block and then by a three layer convolutional head. In this case, a 10-iteration model has effective depth $1 + 1 0 \\times 4 + 3 = 4 4$ layers. ",
420
+ "bbox": [
421
+ 174,
422
+ 564,
423
+ 825,
424
+ 647
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "For each training sample we consider, the label is an array of binary classification variables, one per input pixel. The training loss is simply the mean cross-entropy loss across output values. In general, hyperparameters were determined with the goal of finding convergent models. The specific batch sizes, learning rate and decay schedules, and other hyperparameter values are all available in Appendix A.3. 1 ",
431
+ "bbox": [
432
+ 174,
433
+ 654,
434
+ 825,
435
+ 727
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "4 Recurrent networks can generalize from easy to hard problems ",
442
+ "text_level": 1,
443
+ "bbox": [
444
+ 174,
445
+ 743,
446
+ 732,
447
+ 761
448
+ ],
449
+ "page_idx": 3
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "We explore the ability of recurrent neural networks to generalize to more difficult problems simply by thinking deeper. To this end, we train models of varying effective depth on easy training examples and test them on harder problems. We find that recurrent models are even better at generalizing from easy to hard than their feed-forward counterparts. While there is only one way to test the feed-forward models, we take a closer look at what happens when the recurrent models are allowed to think deeper about the harder problems. Formally, we use more iterations of the recurrent module within the recurrent models when performing inference on test data. Across all three problem types, we find that the confidence of the model is a good surrogate for correctness. Therefore, when evaluating recurrent models, we use the output from the iteration to which the network assigns the highest confidence. ",
454
+ "bbox": [
455
+ 173,
456
+ 775,
457
+ 825,
458
+ 872
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "",
465
+ "bbox": [
466
+ 173,
467
+ 92,
468
+ 825,
469
+ 119
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "4.1 Prefix sums ",
476
+ "text_level": 1,
477
+ "bbox": [
478
+ 174,
479
+ 137,
480
+ 294,
481
+ 151
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "The first task on which we demonstrate the ability of recurrent neural networks to learn an algorithm is one from the classical algorithms literature, namely computing prefix sums. Specifically, we study the problem of computing the prefix sums modulo two of binary input strings. ",
488
+ "bbox": [
489
+ 174,
490
+ 162,
491
+ 825,
492
+ 205
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "When computing prefix sums, we employ models with effective depths from 40 to 68 layers. We train models on easy data consisting of 32-bit input strings and test on harder 40-bit and 44-bit strings. In Table 1, it is clear that even when holding the depth constant at test time, recurrent models generalize from easy to hard better than feed-forward networks. ",
499
+ "bbox": [
500
+ 174,
501
+ 210,
502
+ 825,
503
+ 267
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "table",
509
+ "img_path": "images/dd397a515513652d3248480fee02d23e512d7a8b6b9d822538b58f48e2f52657.jpg",
510
+ "table_caption": [
511
+ "Table 1: Extrapolating to longer input strings. Shown here are the average accuracies of models trained on 32-bit inputs and tested on 40-bit inputs. The effective depths listed below correspond to 9, 10, and 11 iterations in recurrent models. We report average accuracy $\\pm$ one standard error. "
512
+ ],
513
+ "table_footnote": [],
514
+ "table_body": "<table><tr><td></td><td colspan=\"3\">Effective Depth (Layers)</td></tr><tr><td></td><td>40</td><td>44</td><td>48</td></tr><tr><td>Recurrent</td><td>24.96± 2.96</td><td>31.02 ± 2.56</td><td>35.22 ± 3.34</td></tr><tr><td>Feed-forward</td><td>22.17 ± 0.85</td><td>24.78 ± 1.65</td><td>22.79 ± 1.32</td></tr></table>",
515
+ "bbox": [
516
+ 299,
517
+ 330,
518
+ 699,
519
+ 392
520
+ ],
521
+ "page_idx": 4
522
+ },
523
+ {
524
+ "type": "image",
525
+ "img_path": "images/75d8a02adf1abd4ebc2e7a971fff383ea86cc068b4c7fe5762cfe8e2d8696123.jpg",
526
+ "image_caption": [
527
+ "Figure 4: Generalizing from easy to hard prefix sums. The ability of networks to compute prefix sums on two test sets with longer input strings than were used for training (accuracy on 40-bit inputs in purple and on 44-bit inputs in red). We compare recurrent models to the best feed-forward models of comparable effective depth. The markers are at average values from several trials and the shaded regions indicate $\\pm$ one standard error. "
528
+ ],
529
+ "image_footnote": [],
530
+ "bbox": [
531
+ 240,
532
+ 417,
533
+ 736,
534
+ 638
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "When the thought budget, or number of iterations, is increased, we see that recurrent models can get upwards of $90 \\%$ of the harder testing examples correct. In Figure 4, we observe this large boost in the recurrent models’ performance and a vast difference in the accuracy of recurrent models (with added iterations at test time) and feed-forward networks. Note that the dotted lines represent the average accuracy of the deepest feed-forward networks considered. That depth is 68 layers, or the effective depth of recurrent models with 16 iterations, and we use this baseline in the plot specifically because in the range of depths corresponding to the numbers of iterations shown, these feed-forward models achieve the highest accuracy. In other words, recurrent models trained with relatively few iterations generalize well to harder data while similar and even much larger feed-forward networks fail to generalize in the same scenario. ",
541
+ "bbox": [
542
+ 173,
543
+ 738,
544
+ 825,
545
+ 876
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "The generalization we see in Figure 4 indicates that these recurrent models learn processes that can be extended to harder problems by running for more iterations. In particular, the recurrence is both the machinery that allows for varying the depth at test time, as well as a force at training to push the model to find parameters that make progress toward a solution with each reuse. ",
552
+ "bbox": [
553
+ 173,
554
+ 882,
555
+ 825,
556
+ 911
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "",
563
+ "bbox": [
564
+ 173,
565
+ 92,
566
+ 823,
567
+ 119
568
+ ],
569
+ "page_idx": 5
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "When these results are viewed through the lens of algorithm design, one might wonder how the receptive field, or the number of entries in the input that determine a single entry in the output, affects these models. The feed-forward models, whose accuracies are shown in Figure 4, have the same receptive field as the recurrent models when tested with 16 iterations. This makes it clear that the increase in accuracy of recurrent models does not simply occur because the receptive field grows with added iterations, rather it occurs because they have learned a process that can extrapolate beyond the training distribution. Further discussion on receptive field is presented in Appendix B. ",
574
+ "bbox": [
575
+ 173,
576
+ 126,
577
+ 825,
578
+ 223
579
+ ],
580
+ "page_idx": 5
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "4.1.1 Iterative outputs ",
585
+ "text_level": 1,
586
+ "bbox": [
587
+ 174,
588
+ 237,
589
+ 341,
590
+ 252
591
+ ],
592
+ "page_idx": 5
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "One way to dissect the learned process and compare it to known algorithms is to plot the confidence of the model at each iteration. In Figure $\\boxed { 5 }$ we show a representative example of a network’s confidence that each bit in the output is a one. Two striking observations can be made from this figure. The first is that the model is progressing to the solution with each iteration. The second observation is that it is resolving the prefix sum in the earlier bits first and moving down the string, settling on the final bits only in the last iteration. This is remarkably similar to a naive algorithm one might implement for this task that marches from the first index until the end of the string computing prefix sums in order. ",
597
+ "bbox": [
598
+ 173,
599
+ 261,
600
+ 826,
601
+ 358
602
+ ],
603
+ "page_idx": 5
604
+ },
605
+ {
606
+ "type": "image",
607
+ "img_path": "images/cc860366995e3816ca17493ef6b4efdd036066e61f58f70f16f7e4200cdcc8b7.jpg",
608
+ "image_caption": [
609
+ "Figure 5: A recurrent model’s output from each of 11 iterations on a 40-bit input string. Shown here is the confidence that there is a 1 at each index of the output. The first index is at the top for all vectors, the input is in the left-most column and the target is in the right-most column. The model used to produce this plot was trained with fewer iterations (10) on shorter input strings (32-bit). "
610
+ ],
611
+ "image_footnote": [],
612
+ "bbox": [
613
+ 274,
614
+ 375,
615
+ 723,
616
+ 625
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "4.2 Mazes ",
623
+ "text_level": 1,
624
+ "bbox": [
625
+ 173,
626
+ 719,
627
+ 258,
628
+ 734
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "For maze solving, we train models on a training set composed of the easier small mazes, and we investigate the ability of networks to make the leap to larger, or harder, mazes at test time. In line with the findings above, we show two important behaviors. First, the recurrent models make the leap from small to large mazes better than feed-forward models. Second, when allowed to think deeper, the recurrent models exhibit even higher performance. ",
635
+ "bbox": [
636
+ 174,
637
+ 746,
638
+ 825,
639
+ 815
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "The networks employed here are fully convolutional and have 512 channels in the internal layers. In assessing the confidence of a given output, we average each pixel’s classification confidence. ",
646
+ "bbox": [
647
+ 176,
648
+ 820,
649
+ 823,
650
+ 849
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "Table 2 shows that for a fixed effective depth, recurrent models always generalize to the hard mazes better than their feed-forward counterparts. Inspired by the upward trend in Table 2, we shift focus to deeper models. In Figure $_ { . . } ^ { 6 , }$ we show that recurrent models can extrapolate to harder problems better than feed forward models. When trained on small mazes with 20 iterations (effective depth of 84 layers), these networks can solve about half of large mazes. However, when allowed to think for longer, the recurrent models can correctly solve an even higher proportion of large mazes. In fact, models trained with 20 iterations can achieve upward of $70 \\%$ accuracy on large mazes using 5 additional iterations at test time. ",
657
+ "bbox": [
658
+ 174,
659
+ 854,
660
+ 825,
661
+ 911
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "table",
667
+ "img_path": "images/77f4cf2c0f52617ab733304fab73549686aeef6a0db83fbd7875cc95d9a5ce9f.jpg",
668
+ "table_caption": [
669
+ "Table 2: The average accuracy $( \\% )$ of models trained on small mazes and tested on large ones. Over a range of effective depths, we see that recurrent models generalize to the harder mazes better than their feed-forward counterparts. Figures reflect averages over several trials $\\pm$ one standard error. "
670
+ ],
671
+ "table_footnote": [],
672
+ "table_body": "<table><tr><td></td><td colspan=\"5\">Effective Depth</td></tr><tr><td></td><td>20</td><td>24</td><td>28</td><td>36</td><td>44</td></tr><tr><td>Recurrent</td><td>12.66 ± 0.44</td><td>14.02 ± 0.39</td><td>19.95 ± 0.31</td><td>22.96 ± 1.03</td><td>29.72 ± 1.22</td></tr><tr><td>Feed-forward</td><td>7.94 ± 0.36</td><td>12.43 ± 0.50</td><td>14.67 ± 0.54</td><td>17.71 ± 0.36</td><td>22.53 ± 1.14</td></tr></table>",
673
+ "bbox": [
674
+ 199,
675
+ 137,
676
+ 797,
677
+ 199
678
+ ],
679
+ "page_idx": 6
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "",
684
+ "bbox": [
685
+ 174,
686
+ 227,
687
+ 826,
688
+ 282
689
+ ],
690
+ "page_idx": 6
691
+ },
692
+ {
693
+ "type": "image",
694
+ "img_path": "images/e38418ead266361297b87df3bbe4d5a138e8de0facc71a6608896165cdd862cd.jpg",
695
+ "image_caption": [
696
+ "Figure 6: Generalizing from easy to hard mazes. We compare recurrent models to the best feedforward models. The markers are at average values from several trials and the shaded regions indicate $\\pm$ one standard error. "
697
+ ],
698
+ "image_footnote": [],
699
+ "bbox": [
700
+ 240,
701
+ 297,
702
+ 754,
703
+ 518
704
+ ],
705
+ "page_idx": 6
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Maze solving is another task for which global information is needed. We investigate how dilated filters affect model performance. Dilation is a way of changing the receptive field without adding new parameters or more depth. Table $\\textcircled { 3 }$ shows that dilations lead to slight improvements, however, the benefits of recurrence are still abundantly clear. Indeed, the difference in performance is even larger. ",
710
+ "bbox": [
711
+ 174,
712
+ 593,
713
+ 825,
714
+ 650
715
+ ],
716
+ "page_idx": 6
717
+ },
718
+ {
719
+ "type": "table",
720
+ "img_path": "images/704a3e27cbae86d83e07c02e127a071127557ee587d0e88ce24967d00c1a63d3.jpg",
721
+ "table_caption": [
722
+ "Table 3: The average accuracy $( \\% )$ of models with dilated filters trained on small mazes and tested on large ones. Figures reflect averages over several trials $\\pm$ one standard deviation. "
723
+ ],
724
+ "table_footnote": [],
725
+ "table_body": "<table><tr><td></td><td colspan=\"5\">Effective Depth</td></tr><tr><td></td><td>20</td><td>24</td><td>28</td><td>32</td><td>36</td></tr><tr><td>Recurrent</td><td>33.60±1.06</td><td>40.49 ± 1.63</td><td>33.91 ± 1.99</td><td>40.56± 4.34</td><td>50.50± 7.97</td></tr><tr><td>Feed-forward</td><td>19.73 ± 0.72</td><td>21.59 ± 0.22</td><td>24.18 ± 1.33</td><td>25.82 ± 0.10</td><td>26.54 ± 2.13</td></tr></table>",
726
+ "bbox": [
727
+ 199,
728
+ 700,
729
+ 797,
730
+ 761
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "4.2.1 Iterative outputs ",
737
+ "text_level": 1,
738
+ "bbox": [
739
+ 174,
740
+ 790,
741
+ 341,
742
+ 804
743
+ ],
744
+ "page_idx": 6
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "The recurrent maze solving networks also produce output at every iteration. Examining this output again leads to a remarkable conclusion: these recurrent models are narrowing in on the answer with each successive iteration. In Figure $\\bigstar$ it is clear from the output on iteration four that the network has found two routes emanating from the red square. Moving through the iterations, the model refines the output, increasing the confidence for pixels on the path and decreasing the others until finally at Iteration $\\# 7$ , the output matches the target. It is also interesting to observe here that the output is consistently correct for two iterations, after which a few pixels flip (Iteration #9). ",
749
+ "bbox": [
750
+ 173,
751
+ 814,
752
+ 825,
753
+ 911
754
+ ],
755
+ "page_idx": 6
756
+ },
757
+ {
758
+ "type": "image",
759
+ "img_path": "images/c45db6e9d1e5bb3e1aa89809a44a26336f5a0254f1d218ee8c475568d7efeae9.jpg",
760
+ "image_caption": [
761
+ "Figure 7: Input, target, and outputs from different iterations are shown to highlight the model’s ability to think sequentially about mazes. We plot the model’s confidence that each pixel belongs to the optimal path. This is a representative example from a model trained to solve small mazes in six iterations. "
762
+ ],
763
+ "image_footnote": [],
764
+ "bbox": [
765
+ 209,
766
+ 90,
767
+ 794,
768
+ 229
769
+ ],
770
+ "page_idx": 7
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "4.3 Chess puzzles ",
775
+ "text_level": 1,
776
+ "bbox": [
777
+ 174,
778
+ 324,
779
+ 308,
780
+ 339
781
+ ],
782
+ "page_idx": 7
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "The third dataset comprises chess puzzles, or mid-game chess boards for which we seek the best next move. Unlike the other two datasets, the state of the art for chess playing algorithms is complex and has components that use algorithms like Monte Carlo tree search as well as neural network based elements for evaluating positions $\\mathbf { \\underline { { \\{ R o m s t a d e t ~ a l . \\} } } \\mathbf { \\underline { { \\{ S i l v e r ~ e t ~ a l . \\} } } } \\mathbf { \\underline { { \\{ 2 0 1 7 \\} } } } }$ . The complicated nature of these systems provides some context for how difficult these puzzles are. What makes these puzzles particularly useful for us is that there is a predetermined best next move. A move is defined as an origin square, or the current location of the piece to be moved, and a destination square $\\bigstar \\bigstar \\mathrm { I n }$ order to generate target outputs for our models, we define a move as an $8 \\times 8$ array with zeros everywhere except at the entries corresponding to the origin and destination squares which are ones. ",
787
+ "bbox": [
788
+ 173,
789
+ 352,
790
+ 825,
791
+ 477
792
+ ],
793
+ "page_idx": 7
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "We compare recurrent and feed-forward networks of effective depths from 84 layers to 100 layers that take $8 \\times 8 \\times 1 2$ arrays as input. These fully convolutional networks have 512 channels in the internal layers, and the output is $8 \\times 8 \\times 2$ , corresponding to binary classification at each input pixel. During training, we use an average of cross-entropy losses at every pixel. When evaluating these models, however, we define the predicted move by the locations of the two highest confidence scores. ",
798
+ "bbox": [
799
+ 174,
800
+ 483,
801
+ 826,
802
+ 553
803
+ ],
804
+ "page_idx": 7
805
+ },
806
+ {
807
+ "type": "image",
808
+ "img_path": "images/6f9d9a1acf162443b4d148f5bae2d9a42780222acadcdfd89f24871d2bf11b31.jpg",
809
+ "image_caption": [
810
+ "Figure 8: Generalizing from easy to hard chess puzzles. The ability of networks to solve harder puzzles than were used for training. We compare recurrent models to the best feed-forward models of comparable effective depth. The markers are at average values from several trials and the shaded region indicate $\\pm$ one standard error. "
811
+ ],
812
+ "image_footnote": [],
813
+ "bbox": [
814
+ 248,
815
+ 585,
816
+ 753,
817
+ 797
818
+ ],
819
+ "page_idx": 7
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Once again, we see that recurrent models can solve more chess puzzles than their feed forward counterparts. Furthermore, by thinking deeper at test time, recurrent models can perform even better. While the gains shown in Figure 8 are modest in comparison to the other two problem settings, the trend is clear – recurrent models can solve more puzzles with more iterations. ",
824
+ "bbox": [
825
+ 174,
826
+ 92,
827
+ 825,
828
+ 147
829
+ ],
830
+ "page_idx": 8
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "4.3.1 Iterative outputs ",
835
+ "text_level": 1,
836
+ "bbox": [
837
+ 174,
838
+ 165,
839
+ 341,
840
+ 180
841
+ ],
842
+ "page_idx": 8
843
+ },
844
+ {
845
+ "type": "image",
846
+ "img_path": "images/017703ea05676fb6338275cc07cc4ce4a8e731b4907e2dc7c7820afd6e096b4a.jpg",
847
+ "image_caption": [
848
+ "Figure 9: Input, target, and outputs form different iterations are shown to highlight the model’s ability to think about the next move. We plot the model’s confidence that each pixel is one of the two that define a move. In this example, black is to move next. For space consideration, iterations 2-14, which look like the first iteration, are left out of this plot. More examples are available in Appendix C. "
849
+ ],
850
+ "image_footnote": [],
851
+ "bbox": [
852
+ 204,
853
+ 207,
854
+ 790,
855
+ 369
856
+ ],
857
+ "page_idx": 8
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "While the outputs from the other two datasets show the similarity between the learned iterative process and known sum and search algorithms, extracting that insight on chess puzzles is much more difficult. Partly, this is because exploiting known search algorithms on such a large search space is hard to visualize. Nonetheless, the network’s output, shown in Figure 9, tells a fascinating story. First, the Iteration #1 plot shows that after one iteration, we observe equal confidence at every location on the board. In the next frame, Iteration $\\# 1 5$ , it is clear that the model is considering moving the D8 rook to multiple squares, and it also considers the intuitive idea of using the E5 queen to place the white king in check on H2. With each successive iteration, the network becomes more confident – first that the rook is the correct piece to move, and then where to move it to. ",
862
+ "bbox": [
863
+ 174,
864
+ 453,
865
+ 825,
866
+ 579
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "5 Discussion ",
873
+ "text_level": 1,
874
+ "bbox": [
875
+ 174,
876
+ 601,
877
+ 292,
878
+ 618
879
+ ],
880
+ "page_idx": 8
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "More than an answer, the results and conclusions in this paper are posing a question: Can learned models behave like classical algorithms in the way they generalize to harder or larger problems? ",
885
+ "bbox": [
886
+ 176,
887
+ 635,
888
+ 825,
889
+ 662
890
+ ],
891
+ "page_idx": 8
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "Our discussion of this question and our observations begins with delineating the limitations of our work. The first major limitation is that we do not propose a definitive answer. Rather, using representative cases, we demonstrate that recurrence can help neural models make the leap from easy training data to hard testing examples. A more subtle limitation of our work lies in how we split the data by difficulty. For prefix sum computation and for mazes, the classical algorithms approach to measuring problem complexity is tied to problem size, so in those settings we make intuitive easy/hard splits. With chess however, the issue is much more complex. Should puzzles with higher ratings require more memory or more computation? We carry out our work assuming the answer is yes, but we remain open minded to the possibility that the ratings assigned by Lichess may be weak surrogates for algorithmic complexity of each puzzle. In short, chess is an extremely difficult domain to analyze. ",
896
+ "bbox": [
897
+ 173,
898
+ 670,
899
+ 825,
900
+ 821
901
+ ],
902
+ "page_idx": 8
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "The observations above indicate that iterative models can learn processes that generalize beyond the training distribution with more iterations. One exciting use case is when the testing distribution is inaccessible, a setting where training on the harder distribution itself would be impossible. Many real life scenarios demand exactly this type of problem solving, from robots deployed in the real world after training in simulation to humans who spend a lot of time practicing on easy math problems only to spend years on difficult unsolved questions. ",
907
+ "bbox": [
908
+ 174,
909
+ 828,
910
+ 823,
911
+ 911
912
+ ],
913
+ "page_idx": 8
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "On a conceptual level, the recurrent model behavior we show is analogous to the human behavior of manipulating representations in working memory; in this analogy, the recurrent block performs the transformations and the activations it generates are the memory. It is not the goal of the experiments here to suggest that iterative models use mechanisms similar to those in a human brain. Nonetheless, it is exciting to see, even in a proof of concept setting, neural models that appear to deliberate on a problem until it is solved and can extend their abilities by thinking for longer. ",
918
+ "bbox": [
919
+ 174,
920
+ 92,
921
+ 825,
922
+ 174
923
+ ],
924
+ "page_idx": 9
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "This raises a questions that motivates future work. Can we build neural networks that can think for even longer? Is it feasible to have models whose performance only increases with added compute time? Humans who are given more than enough time to solve a maze, will not suddenly get it wrong after arriving at the right answer, perhaps this awareness of when to stop thinking can be built into networks like the ones we study here. ",
929
+ "bbox": [
930
+ 174,
931
+ 181,
932
+ 825,
933
+ 251
934
+ ],
935
+ "page_idx": 9
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "6 Conclusion ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 174,
943
+ 268,
944
+ 299,
945
+ 286
946
+ ],
947
+ "page_idx": 9
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "In this work, we demonstrate that neural networks are capable of solving sequential reasoning tasks and then extrapolating this knowledge to solve problems of greater complexity than they were trained on. These recurrent models are largely inspired by the classical theory of mind, in which the brain iteratively applies primitive strategies to solve complex problems over time [Baddeley, 2012] Our models are recurrent versions of popular architectures and we acknowledge that variations to the model may be helpful. Thus, we leave an in depth investigation into other neural network designs for future work. ",
952
+ "bbox": [
953
+ 174,
954
+ 299,
955
+ 825,
956
+ 396
957
+ ],
958
+ "page_idx": 9
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Interestingly, the resulting models excel at solving problems that are classically solved by handcrafted algorithms; prefix sums are computed using reduction trees, mazes are classically solved by depth/breadth first search, and chess is solved by Monte-Carlo tree search. Even with the advances in machine learning that we have today, hand-crafted algorithms still play a role in state-of-the-art reasoning systems. A prominent example is AlphaZero, which plays board games using Monte-Carlo tree search algorithms assisted by a learned pruning function [Silver et al., 2017]. While moving away from this paradigm that includes hand-crafted elements is highly ambitious, this work suggests that it may be possible to train gameplay systems without building them on top of a hand-crafted tree search engine. In other words, it may be possible to machine-learn these algorithmic behaviors end-to-end. ",
963
+ "bbox": [
964
+ 174,
965
+ 404,
966
+ 825,
967
+ 541
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Acknowledgements ",
974
+ "text_level": 1,
975
+ "bbox": [
976
+ 176,
977
+ 560,
978
+ 338,
979
+ 577
980
+ ],
981
+ "page_idx": 9
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "This project was supported by the ONR MURI program, AFOSR MURI program, the DARPA Young Faculty Award, and the National Science Foundation Division of Mathematical Sciences. Additional support was provided by Capital One Bank and JP Morgan Chase. Additionally, we thank Avrim Blum for thought-provoking and insightful conversations. ",
986
+ "bbox": [
987
+ 174,
988
+ 590,
989
+ 825,
990
+ 646
991
+ ],
992
+ "page_idx": 9
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "References ",
997
+ "text_level": 1,
998
+ "bbox": [
999
+ 174,
1000
+ 665,
1001
+ 266,
1002
+ 681
1003
+ ],
1004
+ "page_idx": 9
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Md Zahangir Alom, Mahmudul Hasan, Chris Yakopcic, Tarek M Taha, and Vijayan K Asari. Recurrent residual convolutional neural network based on u-net (r2u-net) for medical image segmentation. arXiv preprint arXiv:1802.06955, 2018. \nMartin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019. \nAlan Baddeley. Working memory: theories, models, and controversies. Annual review of psychology, 63:1–29, 2012. \nAlan D Baddeley and Graham Hitch. Working memory. In Psychology of learning and motivation, volume 8, pages 47–89. Elsevier, 1974. \nShaojie Bai, J Zico Kolter, and Vladlen Koltun. Trellis networks for sequence modeling. In International Conference on Learning Representations, 2018. \nShaojie Bai, J Zico Kolter, and Vladlen Koltun. Deep equilibrium models. Advances in Neural Information Processing Systems, 32:690–701, 2019. ",
1009
+ "bbox": [
1010
+ 171,
1011
+ 689,
1012
+ 828,
1013
+ 911
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Tamal Biswas and Kenneth Regan. Measuring level-k reasoning, satisficing, and human error in gameplay data. In 2015 IEEE 14th International Conference on Machine Learning and Applications (ICMLA), pages 941–947. IEEE, 2015. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 90,
1023
+ 825,
1024
+ 133
1025
+ ],
1026
+ "page_idx": 10
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Arpad E Elo. The rating of chessplayers, past and present. Arco Pub., 1978. ",
1031
+ "bbox": [
1032
+ 173,
1033
+ 143,
1034
+ 676,
1035
+ 160
1036
+ ],
1037
+ "page_idx": 10
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Cristobal Eyzaguirre and Alvaro Soto. Differentiable adaptive computation time for visual reasoning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12817–12825, 2020. ",
1042
+ "bbox": [
1043
+ 173,
1044
+ 169,
1045
+ 825,
1046
+ 213
1047
+ ],
1048
+ "page_idx": 10
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Alex Graves. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016. ",
1053
+ "bbox": [
1054
+ 171,
1055
+ 223,
1056
+ 825,
1057
+ 252
1058
+ ],
1059
+ "page_idx": 10
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. ",
1064
+ "bbox": [
1065
+ 173,
1066
+ 262,
1067
+ 825,
1068
+ 291
1069
+ ],
1070
+ "page_idx": 10
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "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), pages 770–778, 2016. ",
1075
+ "bbox": [
1076
+ 173,
1077
+ 301,
1078
+ 825,
1079
+ 332
1080
+ ],
1081
+ "page_idx": 10
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Christian Hill. Making a maze, Apr 2017. URL https://scipython.com/blog/ making-a-maze/. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 339,
1089
+ 823,
1090
+ 372
1091
+ ],
1092
+ "page_idx": 10
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q Weinberger. Deep networks with stochastic depth. In European conference on computer vision, pages 646–661. Springer, 2016. ",
1097
+ "bbox": [
1098
+ 174,
1099
+ 380,
1100
+ 823,
1101
+ 410
1102
+ ],
1103
+ "page_idx": 10
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Andrew Jaegle, Felix Gimeno, Andrew Brock, Andrew Zisserman, Oriol Vinyals, and Joao Carreira. Perceiver: General perception with iterative attention. arXiv preprint arXiv:2103.03206, 2021. ",
1108
+ "bbox": [
1109
+ 174,
1110
+ 419,
1111
+ 823,
1112
+ 449
1113
+ ],
1114
+ "page_idx": 10
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Łukasz Kaiser and Ilya Sutskever. Neural gpus learn algorithms. arXiv preprint arXiv:1511.08228, 2015. ",
1119
+ "bbox": [
1120
+ 173,
1121
+ 458,
1122
+ 825,
1123
+ 488
1124
+ ],
1125
+ "page_idx": 10
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Kohitij Kar, Jonas Kubilius, Kailyn Schmidt, Elias B Issa, and James J DiCarlo. Evidence that recurrent circuits are critical to the ventral stream’s execution of core object recognition behavior. Nature neuroscience, 22(6):974–983, 2019. ",
1130
+ "bbox": [
1131
+ 173,
1132
+ 497,
1133
+ 828,
1134
+ 541
1135
+ ],
1136
+ "page_idx": 10
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Yigitcan Kaya, Sanghyun Hong, and Tudor Dumitras. Shallow-deep networks: Understanding and mitigating network overthinking. In International Conference on Machine Learning, pages 3301–3310. PMLR, 2019. ",
1141
+ "bbox": [
1142
+ 176,
1143
+ 551,
1144
+ 823,
1145
+ 594
1146
+ ],
1147
+ "page_idx": 10
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations, 2020. ",
1152
+ "bbox": [
1153
+ 178,
1154
+ 604,
1155
+ 825,
1156
+ 648
1157
+ ],
1158
+ "page_idx": 10
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Ming Liang and Xiaolin Hu. Recurrent convolutional neural network for object recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3367–3375, 2015. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 657,
1166
+ 826,
1167
+ 700
1168
+ ],
1169
+ "page_idx": 10
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Qianli Liao and Tomaso Poggio. Bridging the gaps between residual learning, recurrent neural networks and visual cortex. arXiv preprint arXiv:1604.03640, 2016. ",
1174
+ "bbox": [
1175
+ 173,
1176
+ 712,
1177
+ 821,
1178
+ 741
1179
+ ],
1180
+ "page_idx": 10
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Lichess. Lichess open puzzles database. https://database.lichess.org/#puzzles, 2021. Accessed: 2021-04-01. ",
1185
+ "bbox": [
1186
+ 173,
1187
+ 750,
1188
+ 821,
1189
+ 780
1190
+ ],
1191
+ "page_idx": 10
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Reid McIlroy-Young, Siddhartha Sen, Jon Kleinberg, and Ashton Anderson. Aligning superhuman ai with human behavior: Chess as a model system. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1677–1687, 2020. ",
1196
+ "bbox": [
1197
+ 173,
1198
+ 790,
1199
+ 825,
1200
+ 834
1201
+ ],
1202
+ "page_idx": 10
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Pedro Pinheiro and Ronan Collobert. Recurrent convolutional neural networks for scene labeling. In International conference on machine learning, pages 82–90. PMLR, 2014. ",
1207
+ "bbox": [
1208
+ 169,
1209
+ 843,
1210
+ 825,
1211
+ 872
1212
+ ],
1213
+ "page_idx": 10
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Tord Romstad, Marco Costalba, and et al. Kiiski, Joona. Stockfish: A strong open source chess engine. URL https://stockfishchess.org/. ",
1218
+ "bbox": [
1219
+ 171,
1220
+ 882,
1221
+ 825,
1222
+ 914
1223
+ ],
1224
+ "page_idx": 10
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "Avi Schwarzschild, Eitan Borgnia, Arjun Gupta, Arpit Bansal, Zeyad Emam, Furong Huang, Micah Goldblum, and Tom Goldstein. Datasets for studying generalization from easy to hard examples. arXiv preprint arXiv:2108.06011, 2021. ",
1229
+ "bbox": [
1230
+ 176,
1231
+ 90,
1232
+ 826,
1233
+ 133
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Daniel Selsam, Matthew Lamm, Benedikt Bünz, Percy Liang, Leonardo de Moura, and David L Dill. Learning a sat solver from single-bit supervision. arXiv preprint arXiv:1802.03685, 2018. ",
1240
+ "bbox": [
1241
+ 171,
1242
+ 142,
1243
+ 825,
1244
+ 171
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Manli Shu, Zuxuan Wu, Micah Goldblum, and Tom Goldstein. Preparing for the worst: Making networks less brittle with adversarial batch normalization. arXiv preprint arXiv:2009.08965, 2020. ",
1251
+ "bbox": [
1252
+ 171,
1253
+ 179,
1254
+ 825,
1255
+ 208
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, et al. Mastering chess and shogi by self-play with a general reinforcement learning algorithm. arXiv preprint arXiv:1712.01815, 2017. ",
1262
+ "bbox": [
1263
+ 174,
1264
+ 217,
1265
+ 826,
1266
+ 272
1267
+ ],
1268
+ "page_idx": 11
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Aviv Tamar, Yi Wu, Garrett Thomas, Sergey Levine, and Pieter Abbeel. Value iteration networks. arXiv preprint arXiv:1602.02867, 2016. ",
1273
+ "bbox": [
1274
+ 174,
1275
+ 284,
1276
+ 825,
1277
+ 311
1278
+ ],
1279
+ "page_idx": 11
1280
+ }
1281
+ ]
parse/train/Tsp2PL7-GQ/Tsp2PL7-GQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Tsp2PL7-GQ/Tsp2PL7-GQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/gjBz22V93a/gjBz22V93a.md ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text Classification
2
+
3
+ Jiong Zhang
4
+ Amazon
5
+ jiongz@amazon.com
6
+
7
+ Wei-cheng Chang Amazon chanweic@amazon.com
8
+
9
+ Hsiang-fu Yu
10
+ Amazon
11
+ rofu.yu@gmail.com
12
+
13
+ Inderjit S. Dhillon UT Austin & Amazon inderjit@cs.utexas.edu
14
+
15
+ # Abstract
16
+
17
+ Extreme multi-label text classification (XMC) seeks to find relevant labels from an extreme large label collection for a given text input. Many real-world applications can be formulated as XMC problems, such as recommendation systems, document tagging and semantic search. Recently, transformer based XMC methods, such as XTransformer and LightXML, have shown significant improvement over other XMC methods. Despite leveraging pre-trained transformer models for text representation, the fine-tuning procedure of transformer models on large label space still has lengthy computational time even with powerful GPUs. In this paper, we propose a novel recursive approach, XR-Transformer to accelerate the procedure through recursively fine-tuning transformer models on a series of multi-resolution objectives related to the original XMC objective function. Empirical results show that XRTransformer takes significantly less training time compared to other transformerbased XMC models while yielding better state-of-the-art results. In particular, on the public Amazon-3M dataset with 3 million labels, XR-Transformer is not only 20x faster than X-Transformer but also improves the Precision $@ 1$ from $5 1 \%$ to $5 4 \%$ . Our code is publicly available at https://github.com/amzn/pecos.
18
+
19
+ # 1 Introduction
20
+
21
+ Many real-world applications such as open-domain question answering [1, 2], e-commerce dynamic search advertising [3, 4], and semantic matching [5], can be formulated as an extreme multi-label text classification (XMC) problem: given a text input, predict relevant labels from an enormous label collection of size $L$ . In these applications, $L$ ranges from tens of thousands to millions, which makes it very challenging to design XMC models that are both accurate and efficient to train. Recent works such as Parabel [3], Bonsai [6], XR-Linear [7] and AttentionXML [8], exploit the correlations among the labels to generate label partitions or hierarchical label trees (HLTs) which can be used to shortlist candidate labels to be considered during training and inference. While these methods are scalable in terms of the size of the label collection, most of them rely only on statistical representations (such as bag-of-words) or pooling from pre-generated token embeddings (such as word2vec) to vectorize text inputs.
22
+
23
+ In light of the recent success of deep pretrained transformers models such as BERT [9], XLNet [10] and RoBerta [11] in various NLP applications, X-Transformer [12] and LightXML [13] propose to fine-tune pre-trained transformer models on XMC tasks to obtain new state-of-the-art results over the aforementioned approaches. Although transformers are able to better capture semantic meaning of textual inputs than statistical representations, text truncation is often needed in practice to reduce GPU memory footprint and maintain model efficiency. For example, X-Transformer truncates input texts to contain the first 128 tokens before feeding it into transformer models. Efficiency of transformer fine-tuning poses another challenge for XMC applications. Directly fine-tuning transformer models on the original XMC task with a very large label collection is infeasible as both the training time and the memory consumption are linear in $L$ . In order to alleviate this, both $\mathbf { X }$ -Transformer and LightXML adopt a similar approach to group $L$ labels into $K$ clusters of roughly equal size denoted by $B$ and fine-tune transformers on the task to identify relevant label clusters (instead of labels themselves). If $B \approx { \sqrt { L } }$ and $K \approx { \sqrt { L } }$ , then both the training time and the memory requirement of the fine-tuning can be reduced to $O ( \sqrt { L } )$ from $O ( L )$ . However, as pointed out in [8], the model performance would deteriorate due to the information loss from label aggregation. Thus, both XTransformer and LightXML still choose a small constant $B$ $( \leq 1 0 0 )$ as the size of the label clusters. As a result, transformers are still fine-tuned on a task with around $L / 1 0 0$ clusters, which leads to a much longer training time compared with non-transformer based models. For example, it takes X-Transformer 23 and 25 days respectively to train on Amazon-3M and Wiki- $5 0 0 \mathsf { K }$ even with 8 Nvidia V100 GPUs.
24
+
25
+ To address these issues, we propose XR-Transformer, an XMC architecture that leverages pre-trained transformer models and has much smaller training cost compared to other transformer-based XMC methods. Motivated by the multi-resolution learning in image generation [14–16] and curriculum learning [17], we formulate the XMC problem as a series of sub-problems with multi-resolution label signals and recursively fine-tune the pre-trained transformer on the coarse-to-fine objectives. In this paper, our contributions are as follows:
26
+
27
+ • We propose XR-Transformer, a transformer based framework for extreme multi-label text classification where the pre-trained transformer is recursively fine-tuned on a series of easyto-hard training objectives defined by a hierarchical label tree. This allows the transformers to be quickly fine-tuned for a XMC problem with a very large number label collection progressively. To get better text representation and mitigate the information loss in text truncation for transformers, we take into account statistical text features in addition to the transformer text embeddings in our model. Also, a cost sensitive learning scheme by label aggregation is proposed to introduce richer information on the coarsified labels.
28
+ We conduct experiments on 6 public XMC benchmarking datasets and our model takes significantly lower training time compared to other transformer-based XMC models to yield better state-of-the-art results. For example, we improve the state-of-the-art Prec $@ 1$ result on Amazon-3M established by X-Transformer from $5 1 . 2 0 \%$ to $5 4 . 0 4 \%$ while reducing the required training time from 23 days to 29 hours using the same hardware.
29
+
30
+ # 2 Related Works
31
+
32
+ Sparse Linear Models with Partitioning Techniques. Conventional XMC methods consider fixed input representations such as sparse TF-IDF features and study different partitioning techniques or surrogate loss functions on the large output spaces to reduce complexity. For example, sparse linear one-versus-all (OVA) methods such as DiSMEC [18], PPD-Sparse [19, 20], ProXML [21] explore parallelism to solve OVA losses and reduce the model size by weight truncations.
33
+
34
+ The inference time complexity of OVA models is linear in the output space, which can be greatly improved by partitioning methods or approximate nearest neighbor (ANN) indexing on the label spaces. Initial works on tree-based methods [22, 23] reduce the OVA problem to one-versus-some (OVS) with logarithmic depth trees. Down that path, recent works on sparse linear models including Parabel [3], eXtremeText [24], Bonsai [6], XReg [25], NAPKINXC [26, 27] and XR-Linear [7] partition labels with $B$ -array hierarchical label trees (HLT), leading to inference time complexity that is logarithmic in the output space. On the other hand, low-dimensional embedding-based models often leverage ANN methods to speed up the inference procedure. For example, AnnexML [28] and SLICE [29] consider graph-based methods such as HNSW [30] while GLaS [31] considers product quantization variants such as ScaNN [32].
35
+
36
+ Shallow Embedding-based Methods. Neural-based XMC models employ various network architectures to learn semantic embeddings of the input text. XML-CNN [33] applies one-dimensional CNN on the input sequence and use the BCE loss without sampling, which is not scalable to XMC problems. AttentionXML [8] employs BiLSTMs and label-aware attention as scoring functions. For better scalability to large output spaces, only a small number of positive and hard negative labels are used in model GPU training. Shallow embedding-based methods [34–38] use word embedding lookup followed by shallow MLP layers to obtain input embeddings. For instance, MACH [34] learns MLP layers on several smaller XMC sub-problems induced by hashing tricks on the large label space. Similarly, DeepXML [35] and its variant (i.e., DECAF [36], GalaXC [37], ECLARE [38]) pre-train MLP encoders on XMC sub-problems induced by label clusters. They freeze the pre-trained word embedding and learn another MLP layer followed by a linear ranker with sampled hard negative labels from HNSW [30]. Importantly, shallow embedding-based methods only show competitive performance on short-text XMC problems where the number of input tokens is small [34, 35].
37
+
38
+ Deep Transformer Models. Recently, pre-trained Transformer models [9–11] have been applied to XMC problems with promising results [12, 13, 39]. X-Transformer [12] considers a two-stage approach where the first stage transformer-based encoders are learned on XMC sub-problems induced by balanced label clusters, and the second stage sparse TF-IDF is combined with the learned neural embeddings as the input to linear OVA models. APLC-XLNet [39] fine-tunes XLNet encoder on adaptive imbalanced label clusters based on label frequency similar to Adaptive Softmax [40]. LightXML [13] fine-tunes Transformer encoders with the OVA loss function end-to-end via dynamic negative sampling from the matching network trained on label cluster signals. Nonetheless, Transformer-based XMC models have larger model size and require longer training time, which hinders its practical usage on different downstream XMC problems.
39
+
40
+ # 3 Background Material
41
+
42
+ We assume we are given a training set $\{ \mathbf { x } _ { i } , \mathbf { y } _ { i } \} _ { i = 1 } ^ { N }$ where $\mathbf { x } _ { i } \in \mathcal { D }$ is the ith input document and $\mathbf { y } _ { i } \in \{ 0 , 1 \} ^ { L }$ is the one hot label vector with $y _ { i , \ell } = 1$ indicating that label $\ell$ is relevant to instance $i$ The goal of eXtreme Multi-label Text Classification (XMC) is to learn a function $f : \mathcal { D } \times \left[ L \right] \mapsto \mathbb { R }$ , such that $f ( \mathbf { x } , \boldsymbol { \ell } )$ denotes the relevance between the input $\mathbf { x }$ and the label $\ell$ . In practice, labels with the largest $k$ values are retrieved as the predicted relevant labels for a given input $\mathbf { x }$ . The most straightforward model is one-versus-all (OVA) model:
43
+
44
+ $$
45
+ f ( \mathbf { x } , \boldsymbol { \ell } ) = \mathbf { w } _ { \boldsymbol { \ell } } ^ { \top } \boldsymbol { \Phi } ( \mathbf { x } ) ; \boldsymbol { \ell } \in [ L ] ,
46
+ $$
47
+
48
+ where $\mathbf { W } = [ \mathbf { w } _ { 1 } , \hdots , \mathbf { w } _ { L } ] \in \mathbb { R } ^ { d \times L }$ are the weight vectors and $\Phi : \mathcal { D } \mapsto \mathbb { R } ^ { d }$ is the text vectorizer that maps $\mathbf { x }$ to $d$ -dimensional feature vector. $\Phi ( \cdot )$ could be a deterministic text vectorizer, such as the bag-of-words (BOW) model or Term Frequency-Inverse Document Frequency (TFIDF) model, or a vectorizer with learnable parameters. With the recent development in deep learning, using pre-trained transformer as the text vectorizer has shown promising results in many XMC applications [12, 13, 39]. When $L$ is large, however, training and inference of OVA model without sampling would be prohibitive due to the $O ( L )$ time complexity.
49
+
50
+ To handle the extremely large output space, recent approaches partition the label space to shortlist the labels considered during training and inference. In particular, [7, 12, 13, 34, 35, 39] follow a three stage framework: partitioning, shortlisting, and ranking. First, label features are constructed to group labels into $K$ clusters $\mathbf { C } \in \overline { { \{ 0 , 1 \} } } ^ { L \times K }$ where $C _ { \ell , k } = 1$ denotes that label $\ell$ is included in the $k$ -th cluster. Then a shortlisting model is learned to match input $\mathbf { x }$ to relevant clusters in an OVA setting:
51
+
52
+ $$
53
+ g ( \mathbf { x } , k ) = \hat { \mathbf { w } } _ { k } ^ { \top } \Phi _ { g } ( \mathbf { x } ) ; k \in [ K ] .
54
+ $$
55
+
56
+ Finally, a classification model with output size $L$ is trained on the shortlisted labels:
57
+
58
+ $$
59
+ f ( \mathbf { x } , \boldsymbol { \ell } ) = \mathbf { w } _ { \boldsymbol { \ell } } ^ { \top } \boldsymbol { \Phi } ( \mathbf { x } ) ; \boldsymbol { \ell } \in S _ { g } ( \mathbf { x } ) ,
60
+ $$
61
+
62
+ where $S _ { g } ( \mathbf { x } ) \subset [ L ]$ is the label set shortlisted by $g ( \mathbf { x } , \cdot )$ . In the extreme case where only one label cluster is determined to be relevant to a input $\mathbf { x }$ , the training and inference cost on √ √ $\mathbf { x }$ would be $\begin{array} { r } { O ( K + \frac { L } { K } ) } \end{array}$ , which in the best case scenario is $O ( \sqrt { L } )$ when $\bar { K } = \sqrt { L }$ .
63
+
64
+ For transformer based methods, the dominant time is the evaluation of $\Phi ( \mathbf { x } )$ . But $K$ being too big or too small could still be problematic. Empirical results show that the model performance deteriorates when clusters are too big [8]. This is because that the signals coming from $B$ labels within the same cluster will be aggregated and not distinguishable, where $B$ is the cluster size. Therefore, $B$ cannot be too big to ensure a reasonable label resolution for fine-tuning. Also, as pointed out in [12], fine-tuning transformer models on large output spaces can be prohibitive. As a result, the label clusters need to be constructed in a way to balance the model performance and fine-tuning efficiency. In practice, both the transformer-based XMC models, such as X-Transformer and LightXML, adopt a small fixed constant as the cluster size $B$ $3 ( \leq 1 0 0 )$ , which means that training the shortlisting model $g ( \mathbf { x } , k )$ is still very time consuming as the number of clusters $K \approx L / B$ .
65
+
66
+ ![](images/46f66c6210a2f96597b951ec90d598f4c129d57734107b7a3ab7444b5fdc94a5.jpg)
67
+ Figure 1: Illustration of fine-tuning on XMC tasks of different label resolutions. For an XMC task with a low label resolution, fine-tuning can be fast but model performance might deteriorate due to large deviation from the original XMC task. In practice, X-Transformer and LightXML adopt a XMC task with a relatively higher label resolution to ensure reasonable model performance at the cost of longer training time. The proposed XR-Transformer leverages multi-resolution learning and model bootstrapping that achieves both fast fine-tuning and good model performance.
68
+
69
+ # 4 Proposed Method: XR-Transformer
70
+
71
+ As noted above, the shortlisting problem (2) is itself an XMC problem with slightly smaller output size $\frac { L } { B }$ where $B$ is the cluster size. In XR-Transformer, we apply the same three stage framework recursively on the shortlisting problem until a reasonably small output size is reached $\frac { L } { B _ { - } ^ { D } }$ We can therefore follow the curriculum learning scheme and fine-tune the pre-trained transformers progressively on the sub-XMC problems with increasing output space $\Big \{ \frac { \dot { \bf \Phi } _ { L } } { B ^ { D } } , \frac { L } { B ^ { D - 1 } } , \ldots \Big \}$ . At each fine-tuning task, the candidate label set is shortlisted by the final model at the previous task. The recursive shortlisting ensures that for any input, the number of candidate labels to include in training and inference is $O ( B )$ and therefore the total number of considered labels is $O ( B \log _ { B } ( L ) )$ . Also, we leverage the multi-step fine-tuning and use the embedding generated at the previous task to bootstrap the non pre-trained part for the current task. We now describe the model design in detail.
72
+
73
+ Hierarchical Label Tree (HLT). Recursively generating label clusters $D$ times is equivalent to building a HLT [41] of depth $D$ . We first construct label features $\mathbf { Z } \in \mathbb { R } ^ { L \times \hat { d } }$ . This could be done by applying text vectorizers on label text or from Positive Instance Feature Aggregation (PIFA):
74
+
75
+ $$
76
+ \mathbf { Z } _ { \ell } = { \frac { \mathbf { v } _ { \ell } } { \| \mathbf { v } _ { \ell } \| } } ; { \mathrm { w h e r e ~ } } \mathbf { v } _ { \ell } = \sum _ { i : y _ { i , \ell } = 1 } \Phi ( \mathbf { x } _ { i } ) , \forall \ell \in [ L ] ,
77
+ $$
78
+
79
+ where $\Phi : \mathcal { D } \mapsto \mathbb { R } ^ { d }$ it the text vectorizer. Then we follow similar procedures as [8] and [13] and use balanced $\mathbf { k }$ -means ( $k = B ,$ ) to recursively partition label sets and generate the HLT in a top-down fashion. The HLT is represented with a series of indexing matrices $\{ \mathbf { C } ^ { ( t ) } \} _ { t = 1 } ^ { D }$ )}Dt=1, such that $\mathbf { C } ^ { ( t ) } \in \{ 0 , 1 \} ^ { K _ { t } \times K _ { t - 1 } }$ where $K _ { 0 } = 1$ and $K _ { D } = L$ . Equivalently, once $\mathbf { C } ^ { ( D ) }$ is constructed, the HLT can be built from bottom up through joining $B$ adjacent clusters together.
80
+
81
+ Multi-resolution Output Space. Multi-resolution learning has been explored in different contexts such as computer vision [14, 42]. For instance, using an output scheme with coarse-to-fine resolutions results in better image quality for generative adversarial networks [15, 16]. As an another example in meta learning, [43] learns multiclass models via auxiliary meta classes by collapsing existing classes. Nevertheless, multi-resolution learning has not been well-explored in the XMC literature. In XR-Transformer, we leverage the label hierarchy defined by the HLT and train the transformer model on multi-resolution objectives.
82
+
83
+ The XMC task can be viewed as generating an 1-D image $\mathbf { y } \in \{ 0 , 1 \} ^ { L }$ with binary values based on input text x. Just like a coarsified image could be obtained by a max or mean pooling of nearby pixels, the coarse label vector can be obtained by max-pooling of labels which are nearby in the label feature space. Once the HLT is constructed using label features, the true labels at layer $\mathbf { \bar { Y } } ^ { ( t ) } \in \{ 0 , 1 \} ^ { N \times K _ { t } }$ can be determined by the true labels of the child clusters at $t + 1$ through a max-pooling like operation:
84
+
85
+ $$
86
+ \mathbf { Y } ^ { ( t ) } = \mathrm { b i n a r i z e } ( \mathbf { Y } ^ { ( t + 1 ) } \mathbf { C } ^ { ( t + 1 ) } ) ,
87
+ $$
88
+
89
+ and Y (D)i,\` $Y _ { i , \ell } ^ { ( D ) } = y _ { i , \ell }$ is the original label matrix. This forms a series of learning signals with coarse-to-fine resolution and can be used to generate learning tasks with easy-to-hard objectives.
90
+
91
+ Direct use of the binarized $\mathbf { Y } ^ { ( t ) } \in \{ 0 , 1 \} ^ { N \times K _ { t } }$ in Eq (5) results in information loss when merging several positive labels into one cluster. Ideally, a cluster containing several positive children is more relevant than a cluster with only one positive child. To add this lower level information to higher level learning objectives, we introduce the relevance matrix ${ \bf R } ^ { ( t ) } \in \mathbb { R } _ { \pm } ^ { N \times K _ { t } }$ for layer $t$ of the XMC sub-problem where $R _ { i , \ell }$ defines the non-negative important weight for ith instance to \`th cluster. Different from cost-sensitive learning [44] for MLC (CSMLC) setting [45–47] where there is only one cost matrix explicitly derived by evaluation metrics such as F1 score, in XR-Transformer, we consider the usage of cost-sensitive learning where the relevance matrices are recursively induced by the HLT structure. Specifically, given an HLT, we recursively construct relevance matrices for $t = 1 , \ldots , D$ :
92
+
93
+ $$
94
+ \mathbf { R } ^ { ( t ) } = \mathbf { R } ^ { ( t + 1 ) } \mathbf { C } ^ { ( t + 1 ) } ,
95
+ $$
96
+
97
+ and $\mathbf { R } ^ { ( D ) } = \mathbf { Y } ^ { ( D ) }$ . Motivated by [48], we adopts the row-wise $\ell _ { 1 }$ normalized relevance matrix:
98
+
99
+ $$
100
+ \begin{array} { r } { \hat { R } _ { i , j } ^ { ( t ) } = \left\{ \begin{array} { l l } { \frac { R _ { i , j } ^ { ( t ) } } { \| \mathbf { R } _ { i } ^ { ( t ) } \| _ { 1 } } } & { \mathrm { ~ i f ~ } Y _ { i , j } ^ { ( t ) } = 1 , } \\ { \alpha } & { \mathrm { o t h e r w i s e } , } \end{array} \right. } \end{array}
101
+ $$
102
+
103
+ where $\alpha$ is the hyper parameter to balance positive and negative weights.
104
+
105
+ Label Shortlisting. During training, XR-Transformer only focuses on discriminating the labels or clusters that have high chance of being positive. A necessary condition for a label at layer $t$ to be positive is that its parent label at level $t - 1$ is positive. Therefore, an intuitive approach would be to only train on the output space shortlisted by positive clusters of the parent layer. However, in practice we found this approach sometimes leads to sub-optimal result during inference with beam search. As an effort to balance explore and exploit, we further include the top- $k$ relevant clusters determined by the model learned on the parent layer to mimic the beam search during inference. Thus at layer $t$ , the labels considered during training are shortlisted by the parent layer $t - 1$ :
106
+
107
+ $$
108
+ \begin{array} { r } { \begin{array} { r l } & { \mathbf { P } ^ { ( t - 1 ) } = \mathrm { T o p } ( \mathbf { W } ^ { ( t - 1 ) \top } \Phi ( \mathbf { X } , \Theta ^ { ( t - 1 ) } ) , k ) , } \\ & { \mathbf { M } ^ { ( t ) } = \mathrm { b i n a r i z e } ( \mathbf { P } ^ { ( t - 1 ) } \mathbf { C } ^ { ( t ) \top } ) + \mathrm { b i n a r i z e } ( \mathbf { Y } ^ { ( t - 1 ) } \mathbf { C } ^ { ( t ) \top } ) , } \end{array} } \end{array}
109
+ $$
110
+
111
+ where the $\mathrm { T o p } ( \cdot , k )$ operator zeros out elements in a matrix except the top- $k$ largest values in each row. For each instance $\mathbf { x } _ { i }$ , only non-zero indices of $\mathbf { M } _ { i }$ will be included into the training objective. We can therefore define a series of learning objectives for level $t \in \{ 1 , 2 , \dots , D \}$ as:
112
+
113
+ $$
114
+ \operatorname* { m i n } _ { \mathbf { W } ^ { ( t ) } , \Theta } \sum _ { i = 1 } ^ { N } \sum _ { \ell : \mathbf { M } _ { i , \ell } ^ { ( t ) } \neq 0 } \hat { R } _ { i , \ell } ^ { ( t ) } \mathcal { L } ( Y _ { i , \ell } ^ { ( t ) } , \mathbf { W } _ { \ell } ^ { ( t ) \top } \Phi ( \mathbf { x } _ { i } , \Theta ) ) + \lambda \| \mathbf { W } ^ { ( t ) } \| ^ { 2 } ,
115
+ $$
116
+
117
+ where $\mathcal { L }$ is a point-wise loss such as hinge loss, squared hinge loss or BCE loss, $\mathbf { W } ^ { ( t ) }$ , $\Theta$ are the model weights to be learned.
118
+
119
+ Text Representation. Most previous works on XMC construct text feature representation in one of two ways: statistical feature representations and semantic feature representations. Although the latter, in particular transformer models, have shown promising results on various NLP benchmarks, the self-attention mechanism makes transformers unscalable w.r.t. sequence length. To ensure efficiency, input texts are usually truncated [12, 13] which result in loss of information. On the other hand, the statistical features, such as TFIDF, are fast to construct with the whole input taken into consideration. In XR-Transformer, we use a combination of these two feature representations and each component is a complement of lost information for the other one:
120
+
121
+ $$
122
+ \Phi _ { c a t } ( \mathbf { x } , \Theta ) : = \Big [ \frac { \Phi _ { t f i d f } ( \mathbf { x } ) } { \lVert \Phi _ { t f i d f } ( \mathbf { x } ) \rVert } , \frac { \Phi _ { d n n } ( \mathbf { x } , \Theta ) } { \lVert \Phi _ { d n n } ( \mathbf { x } , \Theta ) \rVert } \Big ] ,
123
+ $$
124
+
125
+ $$
126
+ \perp \theta ^ { * } \theta
127
+ $$
128
+
129
+ $$
130
+ \begin{array} { r l } & { \quad \lfloor \mathbf { \delta v } ^ { \star } \gets \boldsymbol { \sigma } } \\ & { \mathbf { W } ^ { * } \gets \operatorname * { a r g m i n } _ { \mathbf { W } } \sum _ { i = 1 } ^ { N } \sum _ { \ell = 1 } ^ { m } \hat { R } _ { i , \ell } ^ { ( t ) } \mathcal { L } ( Y _ { i , \ell } , \mathbf { W } _ { \ell } ^ { \top } \Phi _ { c a t } ( \mathbf { x } _ { i } , \boldsymbol { \Theta } ) ) + \lambda \| \mathbf { W } \| ^ { 2 } } \end{array}
131
+ $$
132
+
133
+ $$
134
+ \begin{array} { r l } & { \quad \bigcup \mathbf { \phi } \in \mathbf { \phi } \theta } \\ & { \mathbf { W } ^ { * } \operatorname { a r g m i n } _ { \mathbf { W } } \sum _ { i = 1 } ^ { N } \sum _ { \ell : \mathbf { M } _ { i , \ell } \neq 0 } \hat { R } _ { i , \ell } ^ { ( t ) } \mathcal { L } ( Y _ { i , \ell } , \mathbf { W } _ { \ell } ^ { \top } \Phi _ { c a t } ( \mathbf { x } _ { i } , \theta ^ { * } ) ) + \lambda \Vert \mathbf { W } \Vert ^ { 2 } } \end{array}
135
+ $$
136
+
137
+ # Algorithm 2: XR-Transformer training
138
+
139
+ Input :X, $\mathbf { Y }$ , pre-trained transformer $\Phi _ { d n n } ( \cdot , \pmb { \theta } _ { 0 } )$
140
+ $\hat { \mathbf { Z } } _ { \ell } = \mathbf { v } _ { \ell } / \| \mathbf { v } _ { \ell } \|$ ; where $\begin{array} { r } { \mathbf { v } _ { \ell } = \sum _ { i : y _ { i , \ell } = 1 } \Phi _ { t f i d f } ( \mathbf { x } _ { i } ) , \forall \ell \in [ L ] } \end{array}$
141
+ $\{ \hat { \mathbf { C } } ^ { ( t ) } \} _ { t = 1 } ^ { \hat { D } } \mathbf { k }$ -means-clustering $( \hat { \mathbf { Z } } )$
142
+ Generate label hierarchy {Yˆ (t)}Dˆt= using 5
143
+ ${ \pmb \theta } ^ { * } = { \pmb \theta } _ { 0 }$ , ${ \bf P } = N o n e$
144
+ for $t$ in $1 , 2 , 3 , \cdots , \hat { D } $ do $\hat { \mathbf { W } } , \pmb { \theta } ^ { * } \gets$ Iterative_Learn(X, Yˆ (t), Cˆ (t), θ∗, P) $\mathbf { P } \gets \mathrm { T o p } ( \hat { \mathbf { W } } ^ { \top } \Phi _ { c a t } ( \mathbf { X } , \pmb { \theta } ^ { * } ) , k )$
145
+ $\mathbf { Z } _ { \ell } = \mathbf { v } _ { \ell } / \| \mathbf { v } _ { \ell } \|$ ; where $\begin{array} { r } { \mathbf { v } _ { \ell } = \sum _ { i : y _ { i , \ell } = 1 } \Phi _ { c a t } ( \mathbf { x } _ { i } ) , \forall \ell \in [ L ] } \end{array}$
146
+ $\{ \mathbf { C } ^ { ( t ) } \} _ { t = 1 } ^ { D } \mathbf { k }$ -means-clustering $( \mathbf { Z } )$
147
+ Generate label hierarchy $\{ \mathbf { Y } ^ { ( t ) } \} _ { t = 1 } ^ { \hat { D } }$ using 5
148
+ Fix $\pmb { \theta } ^ { * }$ , ${ \bf P } = N o n e$
149
+ for $t$ in $1 , 2 , 3 , \cdots , D$ do
150
+ R $\begin{array} { r l } & { \mathbf { W } ^ { ( t ) } , \ldots \mathrm { I t e r a t i v e \_ L e a r n } ( \mathbf { X } , \mathbf { Y } ^ { ( t ) } , \mathbf { C } ^ { ( t ) } , \pmb { \theta } ^ { * } , \mathbf { P } ) } \\ & { \mathbf { P } \mathrm { T o p } ( \mathbf { W } ^ { ( t ) \top } \Phi _ { c a t } ( \mathbf { X } , \pmb { \theta } ^ { * } ) , k ) } \\ & { \mathbf { e t u r n } : \Phi _ { c a t } ( \cdot , \pmb { \theta } ^ { * } ) , \{ \mathbf { C } ^ { ( t ) } \} _ { t = 1 } ^ { D } , \{ \mathbf { W } ^ { ( t ) } \} _ { t = 1 } ^ { D } } \end{array}$
151
+
152
+ where $\Phi _ { d n n } ( \cdot , \Theta )$ is the transformer parametrized by $\Theta$ . Once the text representation is constructed, predictions can be made by simply applying a linear projection on top of the text representation through (1).
153
+
154
+ Training with bootstrapping. The training of XR-Transformer consists of three steps. At first, a preliminary HLT is constructed using raw statistical features. Then a pre-trained transformer model is fine-tuned recursively from low resolution output to high resolution. At each layer $t$ , fine-tuning objective (9) is optimized with initialization $\Theta = \pmb \theta ^ { ( t - 1 ) * }$ the best transformer weights of layer $t - 1$ ${ \pmb \theta } ^ { ( 0 ) * }$ denotes the pre-trained transformer weights.
155
+
156
+ Unlike the transformer warmed-up with pre-trained weights, the projection weights $\mathbf { W } ^ { ( t ) }$ is trained from scratch without good initialization. At the beginning of fine-tuning, gradient flow through these cold-start (usually randomly initialized) weights will usually worsen the pre-trained components.
157
+
158
+ We leverage the recursive learning structure to tackle this issue by model bootstrapping. Concretely, $\mathbf { W } ^ { ( t ) }$ is initialized as:
159
+
160
+ $$
161
+ \mathbf { W } _ { i n i t } ^ { ( t ) } : = \underset { \mathbf { W } ^ { ( t ) } } { \operatorname { a r g m i n } } \sum _ { i = 1 } ^ { N } \sum _ { \ell : \mathbf { M } _ { i , \ell } ^ { ( t ) } \neq 0 } \hat { R } _ { i , \ell } ^ { ( t ) } \mathcal { L } ( Y _ { i , \ell } ^ { ( t ) } , \mathbf { W } _ { \ell } ^ { ( t ) \top } \Phi _ { d n n } ( \mathbf { x } _ { i } , \pmb { \theta } ^ { ( t - 1 ) * } ) ) + \lambda \| \mathbf { W } ^ { ( t ) } \| ^ { 2 } ,
162
+ $$
163
+
164
+ In practice, (11) is fast to compute since the semantic text feature for the previous layer $\Phi _ { c a t } ( \mathbf { X } , \pmb { \theta } ^ { ( t - 1 ) * } )$ is already computed and thus (11) can be solved very quickly on CPUs with a variety of parallel linear solvers, such as LIBLINEAR [49].
165
+
166
+ Once the fine-tuning is complete, the refined HLT is constructed with the text representation that combines statistical text feature and fine-tuned semantic text embeddings. Then the ranking models are trained on top of the combined text features for the final prediction. The detailed training procedure is described in Algorithm 1 and 2.
167
+
168
+ Inference. The inference cost of XR-Transformer consists mainly of two parts: cost to compute transformer embedding and to retrieve relevant labels through beam search. Therefore, the inference time complexity is $O ( T _ { d n n } + k d \log ( L ) )$ , where $k$ is the beam size, $d$ is the concatenated feature dimension and $T _ { d n n }$ is the time to compute $\Phi _ { d n n } ( \mathbf { x } )$ for a given input. Note that even the inference is done with beam search through the refined HLT, the transformer text embedding only need to be computed once per instance.
169
+
170
+ Connections with other tree based methods. Although methods such as AttentionXML [8] also train on supervisions induced by label trees, the final model is a chain of sub-models which each on is learned on single-resolution. In particular, given a hierarchical label tree with depth $D$ , AttentionXML will train $D$ different text encoders on each layer of the tree where as XR-Transformer trains the same transformer encoder progressively on all layers of the tree. This difference leads to a longer inference time for AttentionXML than XR-Transformer since multiple text encoders need to be queried during inference, as shown in the comparison in the inference time in Appendix A.4.2.
171
+
172
+ # 5 Experimental Results
173
+
174
+ We evaluate XR-Transformer on 6 public XMC benchmarking datasets: Eurlex-4K, Wiki10-31K, AmazonCat-13K, Wiki-500K, Amazon-670K, Amazon-3M. Data statistics are given in Table 1. For fair comparison, we use the same raw text input, sparse feature representations and same train-test split as AttentionXML [8] and other latest works [12, 13]. The evaluation metric is Precision $@ \mathbf { k }$ $( \mathrm { P } @ \mathrm { k } )$ , which is widely-used in XMC literature [3, 8, 12, 13, 18, 28]. The results of Propensity-score Precision $@ \mathbf { k }$ $( { \mathrm { P S P } } @ \mathbf { k } )$ are defer to Appendix A.4.3, which focus more on tail labels’ performance.
175
+
176
+ Table 1: Data statistics. $N _ { t r a i n } , N _ { t e s t }$ refer to the number of instances in the training and test sets, respectively. $L$ : the number of labels. $\bar { L }$ : the average number of positive labels per instance. $\bar { n }$ : average number of instances per label. $d _ { t f i d f }$ : the sparse feature dimension of $\bar { \Phi } _ { t f i d f } ( \cdot )$ . These six publicly available benchmark datasets, including the sparse TF-IDF features are downloaded from https://github.com/yourh/AttentionXML which are the same as AttentionXML [8] XTransformer [12] and LightXML [13] for fair comparison.
177
+
178
+ <table><tr><td>Dataset</td><td>Ntrain</td><td>Ntest</td><td>L</td><td>L</td><td>n</td><td>dtfidf</td></tr><tr><td>Eurlex-4K</td><td>15,449</td><td>3,865</td><td>3,956</td><td>5.30</td><td>20.79</td><td>186,104</td></tr><tr><td>Wiki10-31K</td><td>14,146</td><td>6,616</td><td>30.938</td><td>18.64</td><td>8.52</td><td>101,938</td></tr><tr><td>AmazonCat-13K</td><td>1,186,239</td><td>306,782</td><td>13,330</td><td>5.04</td><td>448.57</td><td>203,882</td></tr><tr><td>Wiki-500K</td><td>1,779,881</td><td>769,421</td><td>501,070</td><td>4.75</td><td>16.86</td><td>2,381,304</td></tr><tr><td>Amazon-670K</td><td>490,449</td><td>153,025</td><td>670.091</td><td>5.45</td><td>3.99</td><td>135,909</td></tr><tr><td>Amazon-3M</td><td>1,717,899</td><td>742,507</td><td>2,812,281</td><td>36.04</td><td>22.02</td><td>337,067</td></tr></table>
179
+
180
+ Baseline Methods. We compare XR-Transformer with state-of-the-art (SOTA) XMC methods: AnnexML [28], DiSMEC [18], PfastreXML [41], Parabel [3], eXtremeText [24], Bonsai [50], XMLCNN [33], XR-Linear [7], AttentionXML [8], X-Transformer [12] and LightXML [13]. We obtain most baseline results from [8, Table 3] and [7, Table 3] except for the latest deep learning based algorithms [8, 12, 13]. To have fair comparison on training time, we use the same hardware (i.e., AWS p3.16xlarge) and the same inputs (i.e., raw text, vectorized features, data split) to obtain the results of AttentionXML, X-Transformer and LightXML. The hyper-parameter of XR-Transformer and more empirical results are included in Appendix A.3.
181
+
182
+ Table 2: Comparison of XR-Transformer with recent XMC methods on six public datasets. Results with a trailing reference are taken from [8, Table 3] and [7, Table 3]. We obtain the results of AttentionXML∗, LightXML∗, X-Transformer∗ and XR-Transformer∗ on the same vectorized feature matrix provided in [8]. Due to GPU memory constraint, LightXML is not able to run on Amazon-3M. The $\mathrm { P S P } @ \mathrm { k }$ results are available in Appendix A.4.3.
183
+
184
+ <table><tr><td>Methods</td><td>P@1 P@3</td><td>P@5</td><td>P@1</td><td>P@3</td><td>P@5</td><td>P@1</td><td>P@3</td><td>P@5</td></tr><tr><td></td><td colspan="6">Eurlex-4K Wiki10-31K</td><td>AmazonCat-13K</td><td></td></tr><tr><td>AnnexML [28] DiSMEC[18]</td><td>79.66 83.21</td><td>64.94 70.39</td><td>53.52 58.73</td><td>86.46 84.13 83.57</td><td>74.28 74.72 68.61</td><td>64.20 65.94 59.10</td><td>93.54 78.36 93.81 79.08</td><td>63.30 64.06</td></tr><tr><td>PfastreXML [41] Parabel [3]</td><td>73.14 82.12</td><td>60.16 68.91</td><td>50.54 57.89</td><td>84.19</td><td>72.46 63.37</td><td>91.75 93.02</td><td>77.97 79.14</td><td>63.68 64.51</td></tr><tr><td>eXtremeText [24]</td><td>79.17</td><td>66.80</td><td>56.09</td><td>83.66 73.28</td><td>64.51</td><td>92.50</td><td>78.12</td><td>63.51</td></tr><tr><td>Bonsai [50]</td><td>82.30</td><td>69.55</td><td>58.35</td><td>84.52 73.76</td><td>64.69</td><td>92.98</td><td></td><td>64.46</td></tr><tr><td>XML-CNN [33]</td><td>75.32</td><td>60.14</td><td>49.21</td><td>81.41 66.23</td><td>56.11</td><td></td><td>79.13</td><td></td></tr><tr><td>XR-Linear [7]</td><td>84.14</td><td>72.05 60.67</td><td>85.75</td><td>75.79</td><td>66.69</td><td>93.26</td><td>77.06</td><td>61.40</td></tr><tr><td>AttentionXML*</td><td></td><td></td><td></td><td></td><td></td><td>94.64</td><td>79.98</td><td>64.79</td></tr><tr><td>X-Transformer*</td><td>86.93</td><td>74.12</td><td>62.16</td><td>87.34</td><td>78.18</td><td>69.07 95.84</td><td>82.39</td><td>67.32</td></tr><tr><td></td><td>87.61</td><td>75.39 75.95</td><td>63.05 63.45</td><td>88.26</td><td>78.51</td><td>69.68 96.48</td><td>83.41</td><td>68.19</td></tr><tr><td>LightXML*</td><td>87.15</td><td></td><td></td><td>89.67 79.06</td><td>69.87</td><td>96.77</td><td>83.98</td><td>68.63</td></tr><tr><td>XR-Transformer*</td><td>88.41 75.97</td><td>63.18</td><td>88.69</td><td>80.17</td><td>70.91</td><td>96.79</td><td>83.66</td><td>68.04</td></tr><tr><td>AnnexML [28]</td><td>Wiki-500K</td><td></td><td></td><td></td><td>Amazon-670K</td><td></td><td>Amazon-3M</td><td></td></tr><tr><td>DiSMEC[18]</td><td>64.22 70.21</td><td>43.15 50.57</td><td>32.79 39.68</td><td>42.09 44.78 36.84</td><td>36.61 39.72</td><td>32.75 36.17</td><td>49.30 45.55 47.34 44.96</td><td>43.11 42.80</td></tr><tr><td>PfastreXML [41] Parabel [3]</td><td>56.25</td><td>37.32 49.57</td><td>28.16</td><td>34.23</td><td>32.09</td><td>43.83</td><td>41.81</td><td>40.09</td></tr><tr><td>eXtremeText [24]</td><td>68.70</td><td></td><td>38.64</td><td>44.91 39.77</td><td>35.98</td><td>47.42</td><td>44.66</td><td>42.55</td></tr><tr><td></td><td>65.17</td><td>46.32</td><td>36.15</td><td>42.54 37.93</td><td>34.63</td><td>42.20</td><td>39.28</td><td>37.24</td></tr><tr><td>Bonsai [50]</td><td>69.26</td><td>49.80</td><td>38.83</td><td>45.58 40.39</td><td>36.60</td><td>48.45</td><td>45.65</td><td>43.49</td></tr><tr><td>XML-CNN [33]</td><td>1</td><td>1</td><td>1</td><td>33.41</td><td>30.00 27.42</td><td>1</td><td>-</td><td>1</td></tr><tr><td>XR-Linear [7]</td><td>65.59</td><td>46.72</td><td>36.46</td><td>43.38</td><td>38.40 34.77</td><td>47.40</td><td>44.15</td><td>41.87</td></tr><tr><td>AttentionXML*</td><td>76.74</td><td>58.18</td><td>45.95</td><td>47.68</td><td></td><td>50.86</td><td></td><td></td></tr><tr><td>X-Transformer*</td><td>77.09</td><td>57.51</td><td>45.28</td><td>48.07</td><td>42.70</td><td>38.99</td><td>48.00</td><td>45.82</td></tr><tr><td></td><td></td><td></td><td></td><td>42.96</td><td>39.12</td><td>51.20</td><td>47.81</td><td>45.07</td></tr><tr><td>LightXML* XR-Transformer*</td><td>77.89 79.40</td><td>58.98 59.02</td><td>45.71 46.25</td><td>49.32 44.17 50.11 44.56</td><td>40.25 40.64</td><td>= 54.20</td><td>= 50.81</td><td>48.26</td></tr></table>
185
+
186
+ Table 3: Comparing training time (in hours) of DNN-based methods that produce the SOTA results in Table 2. The number following the model indicates the number of ensemble models used.
187
+
188
+ <table><tr><td>Dataset</td><td>AttentionXML-3</td><td>X-Transformer-9</td><td>LightXML-3</td><td>XR-Transformer-3</td></tr><tr><td>Eurlex-4K</td><td>0.9</td><td>7.5</td><td>16.9</td><td>0.8</td></tr><tr><td>Wiki10-31K</td><td>1.5</td><td>14.1</td><td>26.9</td><td>1.5</td></tr><tr><td>AmazonCat-13K</td><td>24.3</td><td>147.6</td><td>310.6</td><td>13.2</td></tr><tr><td>Wiki-500K</td><td>37.6</td><td>557.1</td><td>271.3</td><td>38.0</td></tr><tr><td>Amazon-670K</td><td>24.2</td><td>514.8</td><td>159.0</td><td>10.5</td></tr><tr><td>Amazon-3M</td><td>54.8</td><td>542.0</td><td>1</td><td>29.3</td></tr></table>
189
+
190
+ Model Performance. The comparisons of Precision $@ \mathbf { k }$ $( \mathrm { P } @ \mathrm { k } )$ and training time are shown in Table 2 and Table 8, respectively. The proposed XR-Transformer follows AttentionXML and LightXML to use an ensemble of 3 models, while X-Transformer uses an ensemble of 9 models [12]. More details about the ensemble setting can be found in Appendix A.3. The proposed XR-Transformer framework achieves new SOTA results in 14 out of 18 evaluation columns (combination of datasets and $\mathrm { P } @ \mathrm { k } ,$ ), and outperforms competitive methods on the large datasets. Next, we show the training time of XR-Transformer is significantly less than other DNN-based models.
191
+
192
+ Table 4: Single model comparison of DNN based XMC models. Training time on p3.16xlarge with 8 Nvidia V100 GPUs whereas time on singl $T _ { t r a i n } ^ { 8 }$ are reported ia V100 GPU entionXML, X-Transformer and XR-Transformer,is reported for LightXML and XR-Transformer. $T _ { t r a i n } ^ { 1 }$
193
+
194
+ <table><tr><td>Dataset</td><td>Method</td><td>P@1</td><td>P@3</td><td>P@5</td><td></td><td></td></tr><tr><td rowspan="4">Wiki10-31K</td><td>AttentionXML-1</td><td>87.1</td><td>77.8</td><td>68.8</td><td>1</td><td>0.5</td></tr><tr><td>X-Transformer-1</td><td>87.5</td><td>77.2</td><td>67.1</td><td>-</td><td>3.5</td></tr><tr><td>LightXML-1</td><td>87.8</td><td>77.3</td><td>68.0</td><td>6.7</td><td>-</td></tr><tr><td>XR-Transformer-1</td><td>88.0</td><td>78.7</td><td>69.1</td><td>1.3</td><td>0.5</td></tr><tr><td rowspan="4">Wiki-500K</td><td>AttentionXML-1</td><td>75.1</td><td>56.5</td><td>44.4</td><td>-</td><td>12.5</td></tr><tr><td>X-Transformer-1</td><td>44.8</td><td>40.1</td><td>34.6</td><td>-</td><td>56.0</td></tr><tr><td>LightXML-1</td><td>76.3</td><td>57.3</td><td>44.2</td><td>89.6</td><td>1</td></tr><tr><td>XR-Transformer-1</td><td>78.1</td><td>57.6</td><td>45.0</td><td>29.2</td><td>12.5</td></tr><tr><td rowspan="4">Amazon-670K</td><td>AttentionXML-1</td><td>45.7</td><td>40.7</td><td>36.9</td><td>-</td><td>8.1</td></tr><tr><td>X-Transformer-1</td><td>44.8</td><td>40.1</td><td>34.6</td><td>、</td><td>56.0</td></tr><tr><td>LightXML-1</td><td>47.3</td><td>42.2</td><td>38.5</td><td>53.0</td><td>-</td></tr><tr><td>XR-Transformer-1</td><td>49.1</td><td>43.8</td><td>40.0</td><td>8.1</td><td>3.4</td></tr></table>
195
+
196
+ Training Cost. Table 8 shows the training time for these DNN-based models. To have fair comparison, all the experiments are conducted with float32 precision on AWS p3.16xlarge instance with 8 Nvidia V100 GPUs except for LightXML, which was run on single V100 GPU since multi-GPU training is not implemented. XR-Transformer consumes significantly less training time compared with other transformer based models and the shallow BiLSTM model AttentionXML. On Amazon3M, XR-Transformer has $2 0 x$ speedup over X-Transformer while achieving even better $\mathrm { P @ { k } }$ . Finally, in table 4, we compare XR-Transformer with LightXML under the single model setup (no ensemble), where XR-Transformer still consistently outperforms LightXML in $\mathbf { P } @ \mathbf { k }$ and training time.
197
+
198
+ Table 5: Comparing XR-Transformer with Pre-Trained and word2vec embeddings concatenated with TF-IDF features.
199
+
200
+ <table><tr><td>Methods</td><td>P@1 P@3</td><td>P@5</td><td>P@1</td><td>P@3</td><td>P@5</td><td>P@1</td><td>P@3</td><td>P@5</td></tr><tr><td></td><td colspan="6">Eurlex-4K</td><td>AmazonCat-13K</td><td></td></tr><tr><td>TF-IDF</td><td>84.14 72.05</td><td>60.97</td><td>85.75</td><td>75.79</td><td>66.69</td><td>94.64</td><td>79.98</td><td>64.79</td></tr><tr><td>word2vec +TF-IDF</td><td>84.35 71.27</td><td>59.10</td><td>86.11</td><td>76.92</td><td>66.45</td><td>94.53</td><td>79.44</td><td>63.94</td></tr><tr><td>Pre-Trained +TF-IDF</td><td>84.92 71.40</td><td>59.36</td><td>85.78</td><td>78.30</td><td>68.33</td><td>95.05</td><td>80.12</td><td>64.53</td></tr><tr><td>XR-Transformer</td><td>88.41 75.97</td><td>63.18</td><td>88.69</td><td>80.17</td><td>70.91</td><td>96.79</td><td>83.66</td><td>68.04</td></tr><tr><td></td><td colspan="6">Wiki-500K Amazon-670K</td><td>Amazon-3M</td><td></td></tr><tr><td>TF-IDF</td><td>65.59</td><td>46.72 36.46</td><td>43.38</td><td>38.40</td><td>34.77</td><td>47.40</td><td>44.15</td><td>41.87</td></tr><tr><td>word2vec +TF-IDF</td><td>68.21</td><td>48.16 37.54</td><td>44.04</td><td>39.07</td><td>35.35</td><td>47.51</td><td>44.49</td><td>42.19</td></tr><tr><td>Pre-Trained +TF-IDF</td><td>70.18</td><td>49.82 38.75</td><td>44.55</td><td>38.91</td><td>34.77</td><td>49.66</td><td>46.41</td><td>43.96</td></tr><tr><td>XR-Transformer</td><td>79.40</td><td>59.02 46.25</td><td>50.11</td><td>44.56</td><td>40.64</td><td>54.20</td><td>50.81</td><td>48.26</td></tr></table>
201
+
202
+ Comparison of Different Semantic Embeddings. To provide more empirical justifications, that the improvement in performance comes from better semantic embedding rather than the introducing of TF-IDF features, we further tested models using Pre-Trained Transformer and word2vec embeddings concatenated with the same TF-IDF features.
203
+
204
+ Table 5 summarizes the performance of these models on all 6 datasets. In particular, word2vec is using token embedding from word2vec-google-news-300 and for Pre-Trained we use the same setting as XR-Transformer (3-model ensemble). On large datasets such as Wiki-500K/Amazon670K/Amazon-3M, Pre-Trained $+ \mathrm { T F }$ -IDF has marginal improvement compared to the baseline TF-IDF features. Nevertheless, our proposed XR-Transformer still enjoy significant gain compared to Pre-Trained $+ \mathrm { T F }$ -IDF. This suggests the major improvement is from learning more powerful neural semantic embeddings, rather than the use of TF-IDF.
205
+
206
+ Effect of Cost-Sensitive Learning. In Table 6, we analyze the effect of cost sensitive learning on four XMC datasets with the largest output spaces. On most datasets, cost sensitive learning via aggregated labels yields better performance than those without. We also show that cost-sensitive learning is not only beneficial to XR-Transformer, but also useful to its linear counterpart XRLinear [7]. See Appendix A.4.1 for more results.
207
+
208
+ Table 6: Ablation of cost-sensitive learning on the single XR-Transformer model with or without Cost Sensitive (CS). Precision $\boldsymbol { \ @ 1 , 3 , 5 } \ : \mathrm { P } ( \boldsymbol { \ @ } \mathrm { k } )$ and Recall $^ { ( a ) 1 , 3 , 5 }$ $( \mathbb { R } ^ { \circledcirc \mathrm { k } ) }$ are reported.
209
+
210
+ <table><tr><td>Dataset</td><td>Method</td><td>P@1</td><td>P@3</td><td>P@5</td><td>R@1</td><td>R@3</td><td>R@5</td></tr><tr><td>Wiki10-31K</td><td>XR-Transformer-1(w/o CS) XR-Transformer-1</td><td>86.8 88.0</td><td>77.6 78.7</td><td>68.8 69.1</td><td>5.2 5.3</td><td>13.6 13.8</td><td>19.8 19.9</td></tr><tr><td>Wiki-500K</td><td>XR-Transformer-1(w/o CS) XR-Transformer-1</td><td>77.6 78.1</td><td>57.4 57.6</td><td>44.9 45.0</td><td>25.8 26.1</td><td>48.1 48.5</td><td>57.8 58.1</td></tr><tr><td>Amazon-670K</td><td>XR-Transformer-1(w/o CS) XR-Transformer-1</td><td>49.1 49.0</td><td>43.8 43.7</td><td>40.0 39.9</td><td>10.3 10.4</td><td>25.6 25.7</td><td>37.7 37.7</td></tr><tr><td>Amazon-3M</td><td>XR-Transformer-1(w/o CS) XR-Transformer-1</td><td>50.2 52.6</td><td>47.6 49.4</td><td>45.4 46.9</td><td>3.4 3.8</td><td>8.4 9.3</td><td>12.4 13.6</td></tr></table>
211
+
212
+ Effect of Label Resolution and Text Representation. Next, we compare the effect of label resolution on the quality of the finetuned transformer embeddings. We finetune transformer models in a non-recursive manner on a two layer HLT with different leaf cluster size. Then the fine-tuned transformer embeddings are used along or in combination with TF-IDF features to produce the predictions with refined HLT. From Figure 2 we can observe that a larger cluster size will result in worse semantic features. Figure 2 also shows that combining semantic features $\Phi _ { d n n }$ with statistical features $\Phi _ { t f i d f }$ could in general improve the model performance.
213
+
214
+ ![](images/03c79d8c35fdaa79ddede59d237f8e3c9058ea90641c96c6335f1749f2615180.jpg)
215
+ Figure 2: Comparison of BERT model fine-tuned with different label resolution. Larger cluster size means lower label resolution. Note that $\Phi _ { c a t }$ is the normalized concatenation of $\Phi _ { t f i d f }$ and $\Phi _ { d n n }$ .
216
+
217
+ # 6 Conclusion and Future work
218
+
219
+ In this paper, we have presented XR-Transformer approach, which is an XMC architecture that leverages multi-resolution objectives and cost sensitive learning to accelerate the fine-tuning of pre-trained transformer models. Experiments show that the proposed method establishes new stateof-the-art results on public XMC datasets while taking significantly less training time compared with earlier transformer based methods. Although the proposed architecture is designed for XMC, the ideas can be applied to other areas such as information retrieval or other DNN models such as CNNs/ResNets. Also, more extensive study is required to understand why the coarse-to-fine scheme would lead to not only faster training but better overall quality. A hypothesis is that the problem is being solved at multiple scales hence leading to more robust learning of deep transformer models.
220
+
221
+ References
222
+ [1] Wei-Cheng Chang, Felix X. Yu, Yin-Wen Chang, Yiming Yang, and Sanjiv Kumar. Pre-training tasks for embedding-based large-scale retrieval. In International Conference on Learning Representations, 2020.
223
+ [2] Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL), 2019.
224
+ [3] Yashoteja Prabhu, Anil Kag, Shrutendra Harsola, Rahul Agrawal, and Manik Varma. Parabel: Partitioned label trees for extreme classification with application to dynamic search advertising. In WWW, 2018.
225
+ [4] Yashoteja Prabhu and Manik Varma. Fastxml: A fast, accurate and stable tree-classifier for extreme multi-label learning. In KDD, 2014.
226
+ [5] Wei-Cheng Chang, Daniel Jiang, Hsiang-Fu Yu, Choon-Hui Teo, Jiong Zhang, Kai Zhong, Kedarnath Kolluri, Qie Hu, Nikhil Shandilya, Vyacheslav Ievgrafov, Japinder Singh, and Inderjit S Dhillon. Extreme multi-label learning for semantic matching in product search. In KDD. ACM, 2021.
227
+ [6] Sujay Khandagale, Han Xiao, and Rohit Babbar. Bonsai: diverse and shallow trees for extreme multi-label classification. Machine Learning, 109(11):2099–2119, 2020.
228
+ [7] Hsiang-Fu Yu, Kai Zhong, and Inderjit S Dhillon. PECOS: Prediction for enormous and correlated output spaces. arXiv preprint arXiv:2010.05878, 2020.
229
+ [8] Ronghui You, Zihan Zhang, Ziye Wang, Suyang Dai, Hiroshi Mamitsuka, and Shanfeng Zhu. AttentionXML: Label tree-based attention-aware deep model for high-performance extreme multi-label text classification. In Advances in Neural Information Processing Systems, pages 5812–5822, 2019.
230
+ [9] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), 2019.
231
+ [10] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. XLNet: Generalized autoregressive pretraining for language understanding. In NIPS, 2019.
232
+ [11] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
233
+ [12] Wei-Cheng Chang, Hsiang-Fu Yu, Kai Zhong, Yiming Yang, and Inderjit S Dhillon. Taming pretrained transformers for extreme multi-label text classification. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3163–3171, 2020.
234
+ [13] Ting Jiang, Deqing Wang, Leilei Sun, Huayi Yang, Zhengyang Zhao, and Fuzhen Zhuang. LightXML: Transformer with dynamic negative sampling for high-performance extreme multilabel text classification. In AAAI, 2021.
235
+ [14] Wei-Sheng Lai, Jia-Bin Huang, Narendra Ahuja, and Ming-Hsuan Yang. Deep laplacian pyramid networks for fast and accurate super-resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
236
+ [15] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. In ICLR, 2018.
237
+ [16] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4401–4410, 2019.
238
+
239
+ [17] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pages 41–48, 2009.
240
+
241
+ [18] Rohit Babbar and Bernhard Schölkopf. DiSMEC: distributed sparse machines for extreme multi-label classification. In WSDM, 2017.
242
+
243
+ [19] Ian EH Yen, Xiangru Huang, Kai Zhong, Pradeep Ravikumar, and Inderjit S Dhillon. PDSparse: A primal and dual sparse approach to extreme multiclass and multilabel classification. In International Conference on Machine Learning (ICML), 2016.
244
+
245
+ [20] Ian EH Yen, Xiangru Huang, Wei Dai, Pradeep Ravikumar, Inderjit Dhillon, and Eric Xing. PPDsparse: A parallel primal-dual sparse method for extreme classification. In KDD. ACM, 2017.
246
+
247
+ [21] Rohit Babbar and Bernhard Schölkopf. Data scarcity, robustness and extreme multi-label classification. Machine Learning, pages 1–23, 2019.
248
+
249
+ [22] Anna E Choromanska and John Langford. Logarithmic time online multiclass prediction. Advances in Neural Information Processing Systems, 28:55–63, 2015.
250
+
251
+ [23] Hal Daumé III, Nikos Karampatziakis, John Langford, and Paul Mineiro. Logarithmic time one-against-some. In International Conference on Machine Learning, pages 923–932. PMLR, 2017.
252
+
253
+ [24] Marek Wydmuch, Kalina Jasinska, Mikhail Kuznetsov, Róbert Busa-Fekete, and Krzysztof Dembczynski. A no-regret generalization of hierarchical softmax to extreme multi-label classification. In NIPS, 2018.
254
+
255
+ [25] Yashoteja Prabhu, Aditya Kusupati, Nilesh Gupta, and Manik Varma. Extreme regression for dynamic search advertising. In Proceedings of the 13th International Conference on Web Search and Data Mining, pages 456–464, 2020.
256
+
257
+ [26] Kalina Jasinska-Kobus, Marek Wydmuch, Krzysztof Dembczynski, Mikhail Kuznetsov, and Robert Busa-Fekete. Probabilistic label trees for extreme multi-label classification. arXiv preprint arXiv:2009.11218, 2020.
258
+
259
+ [27] Kalina Jasinska-Kobus, Marek Wydmuch, Devanathan Thiruvenkatachari, and Krzysztof Dembczynski. Online probabilistic label trees. In International Conference on Artificial Intelligence and Statistics, pages 1801–1809. PMLR, 2021.
260
+
261
+ [28] Yukihiro Tagami. AnnexML: Approximate nearest neighbor search for extreme multi-label classification. In Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, pages 455–464, 2017.
262
+
263
+ [29] Himanshu Jain, Venkatesh Balasubramanian, Bhanu Chunduri, and Manik Varma. SLICE: Scalable linear extreme classifiers trained on 100 million labels for related searches. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, pages 528–536. ACM, 2019.
264
+
265
+ [30] Y. A. Malkov and D. A. Yashunin. Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(4):824–836, 2020.
266
+
267
+ [31] Chuan Guo, Ali Mousavi, Xiang Wu, Daniel N Holtmann-Rice, Satyen Kale, Sashank Reddi, and Sanjiv Kumar. Breaking the glass ceiling for embedding-based classifiers for large output spaces. In Advances in Neural Information Processing Systems, pages 4944–4954, 2019.
268
+
269
+ [32] Ruiqi Guo, Philip Sun, Erik Lindgren, Quan Geng, David Simcha, Felix Chern, and Sanjiv Kumar. Accelerating large-scale inference with anisotropic vector quantization. In International Conference on Machine Learning, pages 3887–3896. PMLR, 2020.
270
+
271
+ [33] Jingzhou Liu, Wei-Cheng Chang, Yuexin Wu, and Yiming Yang. Deep learning for extreme multi-label text classification. In Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 115–124. ACM, 2017.
272
+
273
+ [34] Tharun Kumar Reddy Medini, Qixuan Huang, Yiqiu Wang, Vijai Mohan, and Anshumali Shrivastava. Extreme classification in log memory using count-min sketch: A case study of amazon search with $5 0 \mathrm { m }$ products. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché- Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
274
+ [35] Kunal Dahiya, Deepak Saini, Anshul Mittal, Ankush Shaw, Kushal Dave, Akshay Soni, Himanshu Jain, Sumeet Agarwal, and Manik Varma. DeepXML: A deep extreme multi-label learning framework applied to short text documents. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining, pages 31–39, 2021.
275
+ [36] Anshul Mittal, Kunal Dahiya, Sheshansh Agrawal, Deepak Saini, Sumeet Agarwal, Purushottam Kar, and Manik Varma. DECAF: Deep extreme classification with label features. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining, pages 49–57, 2021.
276
+ [37] D. Saini, A.K. Jain, K. Dave, J. Jiao, A. Singh, R. Zhang, and M. Varma. GalaXC: Graph neural networks with labelwise attention for extreme classification. In Proceedings of The Web Conference, April 2021.
277
+ [38] A. Mittal, N. Sachdeva, S. Agrawal, S. Agarwal, P. Kar, and M. Varma. ECLARE: Extreme classification with label graph correlations. In Proceedings of The ACM International World Wide Web Conference, April 2021.
278
+ [39] Hui Ye, Zhiyu Chen, Da-Han Wang, and Brian Davison. Pretrained generalized autoregressive model with adaptive probabilistic label clusters for extreme multi-label text classification. In International Conference on Machine Learning, pages 10809–10819. PMLR, 2020.
279
+ [40] Armand Joulin, Moustapha Cissé, David Grangier, Hervé Jégou, et al. Efficient softmax approximation for gpus. In International Conference on Machine Learning, pages 1302–1310. PMLR, 2017.
280
+ [41] Himanshu Jain, Yashoteja Prabhu, and Manik Varma. Extreme multi-label loss functions for recommendation, tagging, ranking & other missing label applications. In KDD, 2016.
281
+ [42] Marco Pedersoli, Andrea Vedaldi, Jordi Gonzalez, and Xavier Roca. A coarse-to-fine approach for fast deformable object detection. Pattern Recognition, 48(5):1844–1853, 2015.
282
+ [43] Shikun Liu, Andrew J Davison, and Edward Johns. Self-Supervised generalisation with meta auxiliary learning. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
283
+ [44] Charles Elkan. The foundations of cost-sensitive learning. In International joint conference on artificial intelligence, volume 17, pages 973–978. Lawrence Erlbaum Associates Ltd, 2001.
284
+ [45] Chun-Liang Li and Hsuan-Tien Lin. Condensed filter tree for cost-sensitive multi-label classification. In International Conference on Machine Learning, pages 423–431. PMLR, 2014.
285
+ [46] Kuan-Hao Huang and Hsuan-Tien Lin. Cost-sensitive label embedding for multi-label classification. Machine Learning, 106(9):1725–1746, 2017.
286
+ [47] Hsuan-Tien Lin. Advances in cost-sensitive multiclass and multilabel classification. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3187–3188, 2019.
287
+ [48] Aditya K Menon, Ankit Singh Rawat, Sashank Reddi, and Sanjiv Kumar. Multilabel reductions: what is my loss optimising? In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
288
+ [49] Rong-En Fan, Kai-Wei Chang, Cho-Jui Hsieh, Xiang-Rui Wang, and Chih-Jen Lin. LIBLINEAR: a library for large linear classification. Journal of machine learning research, 9(Aug):1871–1874, 2008.
parse/train/gjBz22V93a/gjBz22V93a_content_list.json ADDED
@@ -0,0 +1,1243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Fast Multi-Resolution Transformer Fine-tuning for Extreme Multi-label Text Classification ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 191,
8
+ 122,
9
+ 808,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Jiong Zhang \nAmazon \njiongz@amazon.com ",
17
+ "bbox": [
18
+ 230,
19
+ 222,
20
+ 362,
21
+ 263
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Wei-cheng Chang Amazon chanweic@amazon.com ",
28
+ "bbox": [
29
+ 424,
30
+ 222,
31
+ 575,
32
+ 263
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Hsiang-fu Yu \nAmazon \nrofu.yu@gmail.com ",
39
+ "bbox": [
40
+ 635,
41
+ 222,
42
+ 769,
43
+ 263
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Inderjit S. Dhillon UT Austin & Amazon inderjit@cs.utexas.edu ",
50
+ "bbox": [
51
+ 413,
52
+ 285,
53
+ 584,
54
+ 327
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 363,
65
+ 535,
66
+ 378
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Extreme multi-label text classification (XMC) seeks to find relevant labels from an extreme large label collection for a given text input. Many real-world applications can be formulated as XMC problems, such as recommendation systems, document tagging and semantic search. Recently, transformer based XMC methods, such as XTransformer and LightXML, have shown significant improvement over other XMC methods. Despite leveraging pre-trained transformer models for text representation, the fine-tuning procedure of transformer models on large label space still has lengthy computational time even with powerful GPUs. In this paper, we propose a novel recursive approach, XR-Transformer to accelerate the procedure through recursively fine-tuning transformer models on a series of multi-resolution objectives related to the original XMC objective function. Empirical results show that XRTransformer takes significantly less training time compared to other transformerbased XMC models while yielding better state-of-the-art results. In particular, on the public Amazon-3M dataset with 3 million labels, XR-Transformer is not only 20x faster than X-Transformer but also improves the Precision $@ 1$ from $5 1 \\%$ to $5 4 \\%$ . Our code is publicly available at https://github.com/amzn/pecos. ",
73
+ "bbox": [
74
+ 233,
75
+ 392,
76
+ 766,
77
+ 614
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 174,
87
+ 637,
88
+ 312,
89
+ 654
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Many real-world applications such as open-domain question answering [1, 2], e-commerce dynamic search advertising [3, 4], and semantic matching [5], can be formulated as an extreme multi-label text classification (XMC) problem: given a text input, predict relevant labels from an enormous label collection of size $L$ . In these applications, $L$ ranges from tens of thousands to millions, which makes it very challenging to design XMC models that are both accurate and efficient to train. Recent works such as Parabel [3], Bonsai [6], XR-Linear [7] and AttentionXML [8], exploit the correlations among the labels to generate label partitions or hierarchical label trees (HLTs) which can be used to shortlist candidate labels to be considered during training and inference. While these methods are scalable in terms of the size of the label collection, most of them rely only on statistical representations (such as bag-of-words) or pooling from pre-generated token embeddings (such as word2vec) to vectorize text inputs. ",
96
+ "bbox": [
97
+ 174,
98
+ 661,
99
+ 825,
100
+ 813
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In light of the recent success of deep pretrained transformers models such as BERT [9], XLNet [10] and RoBerta [11] in various NLP applications, X-Transformer [12] and LightXML [13] propose to fine-tune pre-trained transformer models on XMC tasks to obtain new state-of-the-art results over the aforementioned approaches. Although transformers are able to better capture semantic meaning of textual inputs than statistical representations, text truncation is often needed in practice to reduce GPU memory footprint and maintain model efficiency. For example, X-Transformer truncates input texts to contain the first 128 tokens before feeding it into transformer models. Efficiency of transformer fine-tuning poses another challenge for XMC applications. Directly fine-tuning transformer models on the original XMC task with a very large label collection is infeasible as both the training time and the memory consumption are linear in $L$ . In order to alleviate this, both $\\mathbf { X }$ -Transformer and LightXML adopt a similar approach to group $L$ labels into $K$ clusters of roughly equal size denoted by $B$ and fine-tune transformers on the task to identify relevant label clusters (instead of labels themselves). If $B \\approx { \\sqrt { L } }$ and $K \\approx { \\sqrt { L } }$ , then both the training time and the memory requirement of the fine-tuning can be reduced to $O ( \\sqrt { L } )$ from $O ( L )$ . However, as pointed out in [8], the model performance would deteriorate due to the information loss from label aggregation. Thus, both XTransformer and LightXML still choose a small constant $B$ $( \\leq 1 0 0 )$ as the size of the label clusters. As a result, transformers are still fine-tuned on a task with around $L / 1 0 0$ clusters, which leads to a much longer training time compared with non-transformer based models. For example, it takes X-Transformer 23 and 25 days respectively to train on Amazon-3M and Wiki- $5 0 0 \\mathsf { K }$ even with 8 Nvidia V100 GPUs. ",
107
+ "bbox": [
108
+ 174,
109
+ 820,
110
+ 825,
111
+ 902
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 173,
120
+ 90,
121
+ 825,
122
+ 287
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "To address these issues, we propose XR-Transformer, an XMC architecture that leverages pre-trained transformer models and has much smaller training cost compared to other transformer-based XMC methods. Motivated by the multi-resolution learning in image generation [14–16] and curriculum learning [17], we formulate the XMC problem as a series of sub-problems with multi-resolution label signals and recursively fine-tune the pre-trained transformer on the coarse-to-fine objectives. In this paper, our contributions are as follows: ",
129
+ "bbox": [
130
+ 174,
131
+ 295,
132
+ 825,
133
+ 377
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "• We propose XR-Transformer, a transformer based framework for extreme multi-label text classification where the pre-trained transformer is recursively fine-tuned on a series of easyto-hard training objectives defined by a hierarchical label tree. This allows the transformers to be quickly fine-tuned for a XMC problem with a very large number label collection progressively. To get better text representation and mitigate the information loss in text truncation for transformers, we take into account statistical text features in addition to the transformer text embeddings in our model. Also, a cost sensitive learning scheme by label aggregation is proposed to introduce richer information on the coarsified labels. \nWe conduct experiments on 6 public XMC benchmarking datasets and our model takes significantly lower training time compared to other transformer-based XMC models to yield better state-of-the-art results. For example, we improve the state-of-the-art Prec $@ 1$ result on Amazon-3M established by X-Transformer from $5 1 . 2 0 \\%$ to $5 4 . 0 4 \\%$ while reducing the required training time from 23 days to 29 hours using the same hardware. ",
140
+ "bbox": [
141
+ 217,
142
+ 385,
143
+ 825,
144
+ 578
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 Related Works ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 174,
154
+ 589,
155
+ 330,
156
+ 606
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Sparse Linear Models with Partitioning Techniques. Conventional XMC methods consider fixed input representations such as sparse TF-IDF features and study different partitioning techniques or surrogate loss functions on the large output spaces to reduce complexity. For example, sparse linear one-versus-all (OVA) methods such as DiSMEC [18], PPD-Sparse [19, 20], ProXML [21] explore parallelism to solve OVA losses and reduce the model size by weight truncations. ",
163
+ "bbox": [
164
+ 174,
165
+ 613,
166
+ 825,
167
+ 683
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "The inference time complexity of OVA models is linear in the output space, which can be greatly improved by partitioning methods or approximate nearest neighbor (ANN) indexing on the label spaces. Initial works on tree-based methods [22, 23] reduce the OVA problem to one-versus-some (OVS) with logarithmic depth trees. Down that path, recent works on sparse linear models including Parabel [3], eXtremeText [24], Bonsai [6], XReg [25], NAPKINXC [26, 27] and XR-Linear [7] partition labels with $B$ -array hierarchical label trees (HLT), leading to inference time complexity that is logarithmic in the output space. On the other hand, low-dimensional embedding-based models often leverage ANN methods to speed up the inference procedure. For example, AnnexML [28] and SLICE [29] consider graph-based methods such as HNSW [30] while GLaS [31] considers product quantization variants such as ScaNN [32]. ",
174
+ "bbox": [
175
+ 174,
176
+ 689,
177
+ 825,
178
+ 828
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Shallow Embedding-based Methods. Neural-based XMC models employ various network architectures to learn semantic embeddings of the input text. XML-CNN [33] applies one-dimensional CNN on the input sequence and use the BCE loss without sampling, which is not scalable to XMC problems. AttentionXML [8] employs BiLSTMs and label-aware attention as scoring functions. For better scalability to large output spaces, only a small number of positive and hard negative labels are used in model GPU training. Shallow embedding-based methods [34–38] use word embedding lookup followed by shallow MLP layers to obtain input embeddings. For instance, MACH [34] learns MLP layers on several smaller XMC sub-problems induced by hashing tricks on the large label space. Similarly, DeepXML [35] and its variant (i.e., DECAF [36], GalaXC [37], ECLARE [38]) pre-train MLP encoders on XMC sub-problems induced by label clusters. They freeze the pre-trained word embedding and learn another MLP layer followed by a linear ranker with sampled hard negative labels from HNSW [30]. Importantly, shallow embedding-based methods only show competitive performance on short-text XMC problems where the number of input tokens is small [34, 35]. ",
185
+ "bbox": [
186
+ 174,
187
+ 842,
188
+ 825,
189
+ 911
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "",
196
+ "bbox": [
197
+ 173,
198
+ 90,
199
+ 825,
200
+ 203
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "Deep Transformer Models. Recently, pre-trained Transformer models [9–11] have been applied to XMC problems with promising results [12, 13, 39]. X-Transformer [12] considers a two-stage approach where the first stage transformer-based encoders are learned on XMC sub-problems induced by balanced label clusters, and the second stage sparse TF-IDF is combined with the learned neural embeddings as the input to linear OVA models. APLC-XLNet [39] fine-tunes XLNet encoder on adaptive imbalanced label clusters based on label frequency similar to Adaptive Softmax [40]. LightXML [13] fine-tunes Transformer encoders with the OVA loss function end-to-end via dynamic negative sampling from the matching network trained on label cluster signals. Nonetheless, Transformer-based XMC models have larger model size and require longer training time, which hinders its practical usage on different downstream XMC problems. ",
207
+ "bbox": [
208
+ 173,
209
+ 215,
210
+ 826,
211
+ 356
212
+ ],
213
+ "page_idx": 2
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "3 Background Material ",
218
+ "text_level": 1,
219
+ "bbox": [
220
+ 176,
221
+ 375,
222
+ 387,
223
+ 392
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "We assume we are given a training set $\\{ \\mathbf { x } _ { i } , \\mathbf { y } _ { i } \\} _ { i = 1 } ^ { N }$ where $\\mathbf { x } _ { i } \\in \\mathcal { D }$ is the ith input document and $\\mathbf { y } _ { i } \\in \\{ 0 , 1 \\} ^ { L }$ is the one hot label vector with $y _ { i , \\ell } = 1$ indicating that label $\\ell$ is relevant to instance $i$ The goal of eXtreme Multi-label Text Classification (XMC) is to learn a function $f : \\mathcal { D } \\times \\left[ L \\right] \\mapsto \\mathbb { R }$ , such that $f ( \\mathbf { x } , \\boldsymbol { \\ell } )$ denotes the relevance between the input $\\mathbf { x }$ and the label $\\ell$ . In practice, labels with the largest $k$ values are retrieved as the predicted relevant labels for a given input $\\mathbf { x }$ . The most straightforward model is one-versus-all (OVA) model: ",
230
+ "bbox": [
231
+ 173,
232
+ 405,
233
+ 825,
234
+ 491
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "equation",
240
+ "img_path": "images/7ec3198af767bb5a54515f08126101587d3acd12c0d266b0c495a5b5977c3db0.jpg",
241
+ "text": "$$\nf ( \\mathbf { x } , \\boldsymbol { \\ell } ) = \\mathbf { w } _ { \\boldsymbol { \\ell } } ^ { \\top } \\boldsymbol { \\Phi } ( \\mathbf { x } ) ; \\boldsymbol { \\ell } \\in [ L ] ,\n$$",
242
+ "text_format": "latex",
243
+ "bbox": [
244
+ 401,
245
+ 497,
246
+ 594,
247
+ 516
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "where $\\mathbf { W } = [ \\mathbf { w } _ { 1 } , \\hdots , \\mathbf { w } _ { L } ] \\in \\mathbb { R } ^ { d \\times L }$ are the weight vectors and $\\Phi : \\mathcal { D } \\mapsto \\mathbb { R } ^ { d }$ is the text vectorizer that maps $\\mathbf { x }$ to $d$ -dimensional feature vector. $\\Phi ( \\cdot )$ could be a deterministic text vectorizer, such as the bag-of-words (BOW) model or Term Frequency-Inverse Document Frequency (TFIDF) model, or a vectorizer with learnable parameters. With the recent development in deep learning, using pre-trained transformer as the text vectorizer has shown promising results in many XMC applications [12, 13, 39]. When $L$ is large, however, training and inference of OVA model without sampling would be prohibitive due to the $O ( L )$ time complexity. ",
254
+ "bbox": [
255
+ 173,
256
+ 523,
257
+ 825,
258
+ 623
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "To handle the extremely large output space, recent approaches partition the label space to shortlist the labels considered during training and inference. In particular, [7, 12, 13, 34, 35, 39] follow a three stage framework: partitioning, shortlisting, and ranking. First, label features are constructed to group labels into $K$ clusters $\\mathbf { C } \\in \\overline { { \\{ 0 , 1 \\} } } ^ { L \\times K }$ where $C _ { \\ell , k } = 1$ denotes that label $\\ell$ is included in the $k$ -th cluster. Then a shortlisting model is learned to match input $\\mathbf { x }$ to relevant clusters in an OVA setting: ",
265
+ "bbox": [
266
+ 173,
267
+ 628,
268
+ 825,
269
+ 699
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "equation",
275
+ "img_path": "images/1087d2dff4123e4b8a14bc5321b422e54152659042d195dc70dc2b539d9f6fee.jpg",
276
+ "text": "$$\ng ( \\mathbf { x } , k ) = \\hat { \\mathbf { w } } _ { k } ^ { \\top } \\Phi _ { g } ( \\mathbf { x } ) ; k \\in [ K ] .\n$$",
277
+ "text_format": "latex",
278
+ "bbox": [
279
+ 395,
280
+ 705,
281
+ 604,
282
+ 724
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Finally, a classification model with output size $L$ is trained on the shortlisted labels: ",
289
+ "bbox": [
290
+ 174,
291
+ 731,
292
+ 722,
293
+ 746
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "equation",
299
+ "img_path": "images/b4fb324596ee247b85e54c35d0d014802e0040a627fa54a57a065e8d700a132d.jpg",
300
+ "text": "$$\nf ( \\mathbf { x } , \\boldsymbol { \\ell } ) = \\mathbf { w } _ { \\boldsymbol { \\ell } } ^ { \\top } \\boldsymbol { \\Phi } ( \\mathbf { x } ) ; \\boldsymbol { \\ell } \\in S _ { g } ( \\mathbf { x } ) ,\n$$",
301
+ "text_format": "latex",
302
+ "bbox": [
303
+ 392,
304
+ 752,
305
+ 604,
306
+ 771
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "where $S _ { g } ( \\mathbf { x } ) \\subset [ L ]$ is the label set shortlisted by $g ( \\mathbf { x } , \\cdot )$ . In the extreme case where only one label cluster is determined to be relevant to a input $\\mathbf { x }$ , the training and inference cost on √ √ $\\mathbf { x }$ would be $\\begin{array} { r } { O ( K + \\frac { L } { K } ) } \\end{array}$ , which in the best case scenario is $O ( \\sqrt { L } )$ when $\\bar { K } = \\sqrt { L }$ . ",
313
+ "bbox": [
314
+ 174,
315
+ 777,
316
+ 825,
317
+ 823
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "For transformer based methods, the dominant time is the evaluation of $\\Phi ( \\mathbf { x } )$ . But $K$ being too big or too small could still be problematic. Empirical results show that the model performance deteriorates when clusters are too big [8]. This is because that the signals coming from $B$ labels within the same cluster will be aggregated and not distinguishable, where $B$ is the cluster size. Therefore, $B$ cannot be too big to ensure a reasonable label resolution for fine-tuning. Also, as pointed out in [12], fine-tuning transformer models on large output spaces can be prohibitive. As a result, the label clusters need to be constructed in a way to balance the model performance and fine-tuning efficiency. In practice, both the transformer-based XMC models, such as X-Transformer and LightXML, adopt a small fixed constant as the cluster size $B$ $3 ( \\leq 1 0 0 )$ , which means that training the shortlisting model $g ( \\mathbf { x } , k )$ is still very time consuming as the number of clusters $K \\approx L / B$ . ",
324
+ "bbox": [
325
+ 174,
326
+ 827,
327
+ 825,
328
+ 911
329
+ ],
330
+ "page_idx": 2
331
+ },
332
+ {
333
+ "type": "image",
334
+ "img_path": "images/46f66c6210a2f96597b951ec90d598f4c129d57734107b7a3ab7444b5fdc94a5.jpg",
335
+ "image_caption": [
336
+ "Figure 1: Illustration of fine-tuning on XMC tasks of different label resolutions. For an XMC task with a low label resolution, fine-tuning can be fast but model performance might deteriorate due to large deviation from the original XMC task. In practice, X-Transformer and LightXML adopt a XMC task with a relatively higher label resolution to ensure reasonable model performance at the cost of longer training time. The proposed XR-Transformer leverages multi-resolution learning and model bootstrapping that achieves both fast fine-tuning and good model performance. "
337
+ ],
338
+ "image_footnote": [],
339
+ "bbox": [
340
+ 196,
341
+ 92,
342
+ 815,
343
+ 223
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "",
350
+ "bbox": [
351
+ 174,
352
+ 342,
353
+ 825,
354
+ 398
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "4 Proposed Method: XR-Transformer ",
361
+ "text_level": 1,
362
+ "bbox": [
363
+ 174,
364
+ 416,
365
+ 508,
366
+ 434
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "As noted above, the shortlisting problem (2) is itself an XMC problem with slightly smaller output size $\\frac { L } { B }$ where $B$ is the cluster size. In XR-Transformer, we apply the same three stage framework recursively on the shortlisting problem until a reasonably small output size is reached $\\frac { L } { B _ { - } ^ { D } }$ We can therefore follow the curriculum learning scheme and fine-tune the pre-trained transformers progressively on the sub-XMC problems with increasing output space $\\Big \\{ \\frac { \\dot { \\bf \\Phi } _ { L } } { B ^ { D } } , \\frac { L } { B ^ { D - 1 } } , \\ldots \\Big \\}$ . At each fine-tuning task, the candidate label set is shortlisted by the final model at the previous task. The recursive shortlisting ensures that for any input, the number of candidate labels to include in training and inference is $O ( B )$ and therefore the total number of considered labels is $O ( B \\log _ { B } ( L ) )$ . Also, we leverage the multi-step fine-tuning and use the embedding generated at the previous task to bootstrap the non pre-trained part for the current task. We now describe the model design in detail. ",
373
+ "bbox": [
374
+ 174,
375
+ 446,
376
+ 825,
377
+ 589
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "Hierarchical Label Tree (HLT). Recursively generating label clusters $D$ times is equivalent to building a HLT [41] of depth $D$ . We first construct label features $\\mathbf { Z } \\in \\mathbb { R } ^ { L \\times \\hat { d } }$ . This could be done by applying text vectorizers on label text or from Positive Instance Feature Aggregation (PIFA): ",
384
+ "bbox": [
385
+ 173,
386
+ 602,
387
+ 825,
388
+ 648
389
+ ],
390
+ "page_idx": 3
391
+ },
392
+ {
393
+ "type": "equation",
394
+ "img_path": "images/793d0704d8770faf4c2d6912beb60080a75cc092355e5f42573af6bd887c556b.jpg",
395
+ "text": "$$\n\\mathbf { Z } _ { \\ell } = { \\frac { \\mathbf { v } _ { \\ell } } { \\| \\mathbf { v } _ { \\ell } \\| } } ; { \\mathrm { w h e r e ~ } } \\mathbf { v } _ { \\ell } = \\sum _ { i : y _ { i , \\ell } = 1 } \\Phi ( \\mathbf { x } _ { i } ) , \\forall \\ell \\in [ L ] ,\n$$",
396
+ "text_format": "latex",
397
+ "bbox": [
398
+ 334,
399
+ 651,
400
+ 661,
401
+ 688
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "where $\\Phi : \\mathcal { D } \\mapsto \\mathbb { R } ^ { d }$ it the text vectorizer. Then we follow similar procedures as [8] and [13] and use balanced $\\mathbf { k }$ -means ( $k = B ,$ ) to recursively partition label sets and generate the HLT in a top-down fashion. The HLT is represented with a series of indexing matrices $\\{ \\mathbf { C } ^ { ( t ) } \\} _ { t = 1 } ^ { D }$ )}Dt=1, such that $\\mathbf { C } ^ { ( t ) } \\in \\{ 0 , 1 \\} ^ { K _ { t } \\times K _ { t - 1 } }$ where $K _ { 0 } = 1$ and $K _ { D } = L$ . Equivalently, once $\\mathbf { C } ^ { ( D ) }$ is constructed, the HLT can be built from bottom up through joining $B$ adjacent clusters together. ",
408
+ "bbox": [
409
+ 174,
410
+ 691,
411
+ 825,
412
+ 766
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "Multi-resolution Output Space. Multi-resolution learning has been explored in different contexts such as computer vision [14, 42]. For instance, using an output scheme with coarse-to-fine resolutions results in better image quality for generative adversarial networks [15, 16]. As an another example in meta learning, [43] learns multiclass models via auxiliary meta classes by collapsing existing classes. Nevertheless, multi-resolution learning has not been well-explored in the XMC literature. In XR-Transformer, we leverage the label hierarchy defined by the HLT and train the transformer model on multi-resolution objectives. ",
419
+ "bbox": [
420
+ 173,
421
+ 779,
422
+ 825,
423
+ 877
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "The XMC task can be viewed as generating an 1-D image $\\mathbf { y } \\in \\{ 0 , 1 \\} ^ { L }$ with binary values based on input text x. Just like a coarsified image could be obtained by a max or mean pooling of nearby pixels, the coarse label vector can be obtained by max-pooling of labels which are nearby in the label feature space. Once the HLT is constructed using label features, the true labels at layer $\\mathbf { \\bar { Y } } ^ { ( t ) } \\in \\{ 0 , 1 \\} ^ { N \\times K _ { t } }$ can be determined by the true labels of the child clusters at $t + 1$ through a max-pooling like operation: ",
430
+ "bbox": [
431
+ 173,
432
+ 882,
433
+ 821,
434
+ 911
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "",
441
+ "bbox": [
442
+ 174,
443
+ 90,
444
+ 825,
445
+ 135
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "equation",
451
+ "img_path": "images/c0a2ffa103a53651fbc50486bf9aa594e067c9227c3816fec363a06616ce659b.jpg",
452
+ "text": "$$\n\\mathbf { Y } ^ { ( t ) } = \\mathrm { b i n a r i z e } ( \\mathbf { Y } ^ { ( t + 1 ) } \\mathbf { C } ^ { ( t + 1 ) } ) ,\n$$",
453
+ "text_format": "latex",
454
+ "bbox": [
455
+ 388,
456
+ 137,
457
+ 607,
458
+ 156
459
+ ],
460
+ "page_idx": 4
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "and Y (D)i,\\` $Y _ { i , \\ell } ^ { ( D ) } = y _ { i , \\ell }$ is the original label matrix. This forms a series of learning signals with coarse-to-fine resolution and can be used to generate learning tasks with easy-to-hard objectives. ",
465
+ "bbox": [
466
+ 171,
467
+ 164,
468
+ 823,
469
+ 194
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "Direct use of the binarized $\\mathbf { Y } ^ { ( t ) } \\in \\{ 0 , 1 \\} ^ { N \\times K _ { t } }$ in Eq (5) results in information loss when merging several positive labels into one cluster. Ideally, a cluster containing several positive children is more relevant than a cluster with only one positive child. To add this lower level information to higher level learning objectives, we introduce the relevance matrix ${ \\bf R } ^ { ( t ) } \\in \\mathbb { R } _ { \\pm } ^ { N \\times K _ { t } }$ for layer $t$ of the XMC sub-problem where $R _ { i , \\ell }$ defines the non-negative important weight for ith instance to \\`th cluster. Different from cost-sensitive learning [44] for MLC (CSMLC) setting [45–47] where there is only one cost matrix explicitly derived by evaluation metrics such as F1 score, in XR-Transformer, we consider the usage of cost-sensitive learning where the relevance matrices are recursively induced by the HLT structure. Specifically, given an HLT, we recursively construct relevance matrices for $t = 1 , \\ldots , D$ : ",
476
+ "bbox": [
477
+ 173,
478
+ 199,
479
+ 826,
480
+ 342
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "equation",
486
+ "img_path": "images/fc071d9b3c5838055558c9f063021a0b3d7b6f31b1ddd6d0da5cbb2d1fbbd50a.jpg",
487
+ "text": "$$\n\\mathbf { R } ^ { ( t ) } = \\mathbf { R } ^ { ( t + 1 ) } \\mathbf { C } ^ { ( t + 1 ) } ,\n$$",
488
+ "text_format": "latex",
489
+ "bbox": [
490
+ 423,
491
+ 343,
492
+ 575,
493
+ 363
494
+ ],
495
+ "page_idx": 4
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "and $\\mathbf { R } ^ { ( D ) } = \\mathbf { Y } ^ { ( D ) }$ . Motivated by [48], we adopts the row-wise $\\ell _ { 1 }$ normalized relevance matrix: ",
500
+ "bbox": [
501
+ 171,
502
+ 368,
503
+ 799,
504
+ 383
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "equation",
510
+ "img_path": "images/6eb0b3cbcbb14a256454777e3d919411d7783a239b15d68239dbb2c8942b5886.jpg",
511
+ "text": "$$\n\\begin{array} { r } { \\hat { R } _ { i , j } ^ { ( t ) } = \\left\\{ \\begin{array} { l l } { \\frac { R _ { i , j } ^ { ( t ) } } { \\| \\mathbf { R } _ { i } ^ { ( t ) } \\| _ { 1 } } } & { \\mathrm { ~ i f ~ } Y _ { i , j } ^ { ( t ) } = 1 , } \\\\ { \\alpha } & { \\mathrm { o t h e r w i s e } , } \\end{array} \\right. } \\end{array}\n$$",
512
+ "text_format": "latex",
513
+ "bbox": [
514
+ 382,
515
+ 386,
516
+ 604,
517
+ 430
518
+ ],
519
+ "page_idx": 4
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "where $\\alpha$ is the hyper parameter to balance positive and negative weights. ",
524
+ "bbox": [
525
+ 174,
526
+ 433,
527
+ 648,
528
+ 448
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "Label Shortlisting. During training, XR-Transformer only focuses on discriminating the labels or clusters that have high chance of being positive. A necessary condition for a label at layer $t$ to be positive is that its parent label at level $t - 1$ is positive. Therefore, an intuitive approach would be to only train on the output space shortlisted by positive clusters of the parent layer. However, in practice we found this approach sometimes leads to sub-optimal result during inference with beam search. As an effort to balance explore and exploit, we further include the top- $k$ relevant clusters determined by the model learned on the parent layer to mimic the beam search during inference. Thus at layer $t$ , the labels considered during training are shortlisted by the parent layer $t - 1$ : ",
535
+ "bbox": [
536
+ 173,
537
+ 460,
538
+ 826,
539
+ 573
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "equation",
545
+ "img_path": "images/a624c5a38a9d7b0ec381a0071e3f6f991bbe18f93f93895567a4766055f9cf84.jpg",
546
+ "text": "$$\n\\begin{array} { r } { \\begin{array} { r l } & { \\mathbf { P } ^ { ( t - 1 ) } = \\mathrm { T o p } ( \\mathbf { W } ^ { ( t - 1 ) \\top } \\Phi ( \\mathbf { X } , \\Theta ^ { ( t - 1 ) } ) , k ) , } \\\\ & { \\mathbf { M } ^ { ( t ) } = \\mathrm { b i n a r i z e } ( \\mathbf { P } ^ { ( t - 1 ) } \\mathbf { C } ^ { ( t ) \\top } ) + \\mathrm { b i n a r i z e } ( \\mathbf { Y } ^ { ( t - 1 ) } \\mathbf { C } ^ { ( t ) \\top } ) , } \\end{array} } \\end{array}\n$$",
547
+ "text_format": "latex",
548
+ "bbox": [
549
+ 299,
550
+ 574,
551
+ 696,
552
+ 617
553
+ ],
554
+ "page_idx": 4
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "where the $\\mathrm { T o p } ( \\cdot , k )$ operator zeros out elements in a matrix except the top- $k$ largest values in each row. For each instance $\\mathbf { x } _ { i }$ , only non-zero indices of $\\mathbf { M } _ { i }$ will be included into the training objective. We can therefore define a series of learning objectives for level $t \\in \\{ 1 , 2 , \\dots , D \\}$ as: ",
559
+ "bbox": [
560
+ 176,
561
+ 618,
562
+ 826,
563
+ 661
564
+ ],
565
+ "page_idx": 4
566
+ },
567
+ {
568
+ "type": "equation",
569
+ "img_path": "images/d7908ec90c0db1ac7d7c837fae6b9c8a5d62468ee9e32c967edcf82738b29263.jpg",
570
+ "text": "$$\n\\operatorname* { m i n } _ { \\mathbf { W } ^ { ( t ) } , \\Theta } \\sum _ { i = 1 } ^ { N } \\sum _ { \\ell : \\mathbf { M } _ { i , \\ell } ^ { ( t ) } \\neq 0 } \\hat { R } _ { i , \\ell } ^ { ( t ) } \\mathcal { L } ( Y _ { i , \\ell } ^ { ( t ) } , \\mathbf { W } _ { \\ell } ^ { ( t ) \\top } \\Phi ( \\mathbf { x } _ { i } , \\Theta ) ) + \\lambda \\| \\mathbf { W } ^ { ( t ) } \\| ^ { 2 } ,\n$$",
571
+ "text_format": "latex",
572
+ "bbox": [
573
+ 285,
574
+ 662,
575
+ 707,
576
+ 714
577
+ ],
578
+ "page_idx": 4
579
+ },
580
+ {
581
+ "type": "text",
582
+ "text": "where $\\mathcal { L }$ is a point-wise loss such as hinge loss, squared hinge loss or BCE loss, $\\mathbf { W } ^ { ( t ) }$ , $\\Theta$ are the model weights to be learned. ",
583
+ "bbox": [
584
+ 174,
585
+ 718,
586
+ 823,
587
+ 747
588
+ ],
589
+ "page_idx": 4
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "Text Representation. Most previous works on XMC construct text feature representation in one of two ways: statistical feature representations and semantic feature representations. Although the latter, in particular transformer models, have shown promising results on various NLP benchmarks, the self-attention mechanism makes transformers unscalable w.r.t. sequence length. To ensure efficiency, input texts are usually truncated [12, 13] which result in loss of information. On the other hand, the statistical features, such as TFIDF, are fast to construct with the whole input taken into consideration. In XR-Transformer, we use a combination of these two feature representations and each component is a complement of lost information for the other one: ",
594
+ "bbox": [
595
+ 173,
596
+ 760,
597
+ 826,
598
+ 872
599
+ ],
600
+ "page_idx": 4
601
+ },
602
+ {
603
+ "type": "equation",
604
+ "img_path": "images/05ac6034ddd335c50ae5f16399b0065b6d503325440b34d2ab3000af2f12f74f.jpg",
605
+ "text": "$$\n\\Phi _ { c a t } ( \\mathbf { x } , \\Theta ) : = \\Big [ \\frac { \\Phi _ { t f i d f } ( \\mathbf { x } ) } { \\lVert \\Phi _ { t f i d f } ( \\mathbf { x } ) \\rVert } , \\frac { \\Phi _ { d n n } ( \\mathbf { x } , \\Theta ) } { \\lVert \\Phi _ { d n n } ( \\mathbf { x } , \\Theta ) \\rVert } \\Big ] ,\n$$",
606
+ "text_format": "latex",
607
+ "bbox": [
608
+ 343,
609
+ 876,
610
+ 653,
611
+ 910
612
+ ],
613
+ "page_idx": 4
614
+ },
615
+ {
616
+ "type": "equation",
617
+ "img_path": "images/dddbd9097119a796c1bdf883385a003dacba4f9c20aa8bd6390fd617231c9b94.jpg",
618
+ "text": "$$\n\\perp \\theta ^ { * } \\theta\n$$",
619
+ "text_format": "latex",
620
+ "bbox": [
621
+ 205,
622
+ 208,
623
+ 279,
624
+ 224
625
+ ],
626
+ "page_idx": 5
627
+ },
628
+ {
629
+ "type": "equation",
630
+ "img_path": "images/0759b5c554a6a5a134f4dc0e1ad2705de7a164662e7e9d611850801776f923a3.jpg",
631
+ "text": "$$\n\\begin{array} { r l } & { \\quad \\lfloor \\mathbf { \\delta v } ^ { \\star } \\gets \\boldsymbol { \\sigma } } \\\\ & { \\mathbf { W } ^ { * } \\gets \\operatorname * { a r g m i n } _ { \\mathbf { W } } \\sum _ { i = 1 } ^ { N } \\sum _ { \\ell = 1 } ^ { m } \\hat { R } _ { i , \\ell } ^ { ( t ) } \\mathcal { L } ( Y _ { i , \\ell } , \\mathbf { W } _ { \\ell } ^ { \\top } \\Phi _ { c a t } ( \\mathbf { x } _ { i } , \\boldsymbol { \\Theta } ) ) + \\lambda \\| \\mathbf { W } \\| ^ { 2 } } \\end{array}\n$$",
632
+ "text_format": "latex",
633
+ "bbox": [
634
+ 194,
635
+ 217,
636
+ 673,
637
+ 246
638
+ ],
639
+ "page_idx": 5
640
+ },
641
+ {
642
+ "type": "equation",
643
+ "img_path": "images/2d36239b9437014d8da9642e0ec81e8d502ef03319011c4fc6ce3a8bab7e2e8f.jpg",
644
+ "text": "$$\n\\begin{array} { r l } & { \\quad \\bigcup \\mathbf { \\phi } \\in \\mathbf { \\phi } \\theta } \\\\ & { \\mathbf { W } ^ { * } \\operatorname { a r g m i n } _ { \\mathbf { W } } \\sum _ { i = 1 } ^ { N } \\sum _ { \\ell : \\mathbf { M } _ { i , \\ell } \\neq 0 } \\hat { R } _ { i , \\ell } ^ { ( t ) } \\mathcal { L } ( Y _ { i , \\ell } , \\mathbf { W } _ { \\ell } ^ { \\top } \\Phi _ { c a t } ( \\mathbf { x } _ { i } , \\theta ^ { * } ) ) + \\lambda \\Vert \\mathbf { W } \\Vert ^ { 2 } } \\end{array}\n$$",
645
+ "text_format": "latex",
646
+ "bbox": [
647
+ 192,
648
+ 328,
649
+ 705,
650
+ 366
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "Algorithm 2: XR-Transformer training ",
657
+ "text_level": 1,
658
+ "bbox": [
659
+ 174,
660
+ 411,
661
+ 433,
662
+ 426
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "Input :X, $\\mathbf { Y }$ , pre-trained transformer $\\Phi _ { d n n } ( \\cdot , \\pmb { \\theta } _ { 0 } )$ \n$\\hat { \\mathbf { Z } } _ { \\ell } = \\mathbf { v } _ { \\ell } / \\| \\mathbf { v } _ { \\ell } \\|$ ; where $\\begin{array} { r } { \\mathbf { v } _ { \\ell } = \\sum _ { i : y _ { i , \\ell } = 1 } \\Phi _ { t f i d f } ( \\mathbf { x } _ { i } ) , \\forall \\ell \\in [ L ] } \\end{array}$ \n$\\{ \\hat { \\mathbf { C } } ^ { ( t ) } \\} _ { t = 1 } ^ { \\hat { D } } \\mathbf { k }$ -means-clustering $( \\hat { \\mathbf { Z } } )$ \nGenerate label hierarchy {Yˆ (t)}Dˆt= using 5 \n${ \\pmb \\theta } ^ { * } = { \\pmb \\theta } _ { 0 }$ , ${ \\bf P } = N o n e$ \nfor $t$ in $1 , 2 , 3 , \\cdots , \\hat { D } $ do $\\hat { \\mathbf { W } } , \\pmb { \\theta } ^ { * } \\gets$ Iterative_Learn(X, Yˆ (t), Cˆ (t), θ∗, P) $\\mathbf { P } \\gets \\mathrm { T o p } ( \\hat { \\mathbf { W } } ^ { \\top } \\Phi _ { c a t } ( \\mathbf { X } , \\pmb { \\theta } ^ { * } ) , k )$ \n$\\mathbf { Z } _ { \\ell } = \\mathbf { v } _ { \\ell } / \\| \\mathbf { v } _ { \\ell } \\|$ ; where $\\begin{array} { r } { \\mathbf { v } _ { \\ell } = \\sum _ { i : y _ { i , \\ell } = 1 } \\Phi _ { c a t } ( \\mathbf { x } _ { i } ) , \\forall \\ell \\in [ L ] } \\end{array}$ \n$\\{ \\mathbf { C } ^ { ( t ) } \\} _ { t = 1 } ^ { D } \\mathbf { k }$ -means-clustering $( \\mathbf { Z } )$ \nGenerate label hierarchy $\\{ \\mathbf { Y } ^ { ( t ) } \\} _ { t = 1 } ^ { \\hat { D } }$ using 5 \nFix $\\pmb { \\theta } ^ { * }$ , ${ \\bf P } = N o n e$ \nfor $t$ in $1 , 2 , 3 , \\cdots , D$ do \nR $\\begin{array} { r l } & { \\mathbf { W } ^ { ( t ) } , \\ldots \\mathrm { I t e r a t i v e \\_ L e a r n } ( \\mathbf { X } , \\mathbf { Y } ^ { ( t ) } , \\mathbf { C } ^ { ( t ) } , \\pmb { \\theta } ^ { * } , \\mathbf { P } ) } \\\\ & { \\mathbf { P } \\mathrm { T o p } ( \\mathbf { W } ^ { ( t ) \\top } \\Phi _ { c a t } ( \\mathbf { X } , \\pmb { \\theta } ^ { * } ) , k ) } \\\\ & { \\mathbf { e t u r n } : \\Phi _ { c a t } ( \\cdot , \\pmb { \\theta } ^ { * } ) , \\{ \\mathbf { C } ^ { ( t ) } \\} _ { t = 1 } ^ { D } , \\{ \\mathbf { W } ^ { ( t ) } \\} _ { t = 1 } ^ { D } } \\end{array}$ ",
669
+ "bbox": [
670
+ 173,
671
+ 429,
672
+ 565,
673
+ 694
674
+ ],
675
+ "page_idx": 5
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "where $\\Phi _ { d n n } ( \\cdot , \\Theta )$ is the transformer parametrized by $\\Theta$ . Once the text representation is constructed, predictions can be made by simply applying a linear projection on top of the text representation through (1). ",
680
+ "bbox": [
681
+ 176,
682
+ 727,
683
+ 823,
684
+ 770
685
+ ],
686
+ "page_idx": 5
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "Training with bootstrapping. The training of XR-Transformer consists of three steps. At first, a preliminary HLT is constructed using raw statistical features. Then a pre-trained transformer model is fine-tuned recursively from low resolution output to high resolution. At each layer $t$ , fine-tuning objective (9) is optimized with initialization $\\Theta = \\pmb \\theta ^ { ( t - 1 ) * }$ the best transformer weights of layer $t - 1$ ${ \\pmb \\theta } ^ { ( 0 ) * }$ denotes the pre-trained transformer weights. ",
691
+ "bbox": [
692
+ 174,
693
+ 786,
694
+ 825,
695
+ 862
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "Unlike the transformer warmed-up with pre-trained weights, the projection weights $\\mathbf { W } ^ { ( t ) }$ is trained from scratch without good initialization. At the beginning of fine-tuning, gradient flow through these cold-start (usually randomly initialized) weights will usually worsen the pre-trained components. ",
702
+ "bbox": [
703
+ 176,
704
+ 869,
705
+ 825,
706
+ 911
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "We leverage the recursive learning structure to tackle this issue by model bootstrapping. Concretely, $\\mathbf { W } ^ { ( t ) }$ is initialized as: ",
713
+ "bbox": [
714
+ 171,
715
+ 90,
716
+ 825,
717
+ 121
718
+ ],
719
+ "page_idx": 6
720
+ },
721
+ {
722
+ "type": "equation",
723
+ "img_path": "images/7766ae7b1871b0d6d494fe0e44767e9c15a8e55536f98597301597eb46a87368.jpg",
724
+ "text": "$$\n\\mathbf { W } _ { i n i t } ^ { ( t ) } : = \\underset { \\mathbf { W } ^ { ( t ) } } { \\operatorname { a r g m i n } } \\sum _ { i = 1 } ^ { N } \\sum _ { \\ell : \\mathbf { M } _ { i , \\ell } ^ { ( t ) } \\neq 0 } \\hat { R } _ { i , \\ell } ^ { ( t ) } \\mathcal { L } ( Y _ { i , \\ell } ^ { ( t ) } , \\mathbf { W } _ { \\ell } ^ { ( t ) \\top } \\Phi _ { d n n } ( \\mathbf { x } _ { i } , \\pmb { \\theta } ^ { ( t - 1 ) * } ) ) + \\lambda \\| \\mathbf { W } ^ { ( t ) } \\| ^ { 2 } ,\n$$",
725
+ "text_format": "latex",
726
+ "bbox": [
727
+ 207,
728
+ 121,
729
+ 761,
730
+ 171
731
+ ],
732
+ "page_idx": 6
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "In practice, (11) is fast to compute since the semantic text feature for the previous layer $\\Phi _ { c a t } ( \\mathbf { X } , \\pmb { \\theta } ^ { ( t - 1 ) * } )$ is already computed and thus (11) can be solved very quickly on CPUs with a variety of parallel linear solvers, such as LIBLINEAR [49]. ",
737
+ "bbox": [
738
+ 174,
739
+ 175,
740
+ 823,
741
+ 219
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "Once the fine-tuning is complete, the refined HLT is constructed with the text representation that combines statistical text feature and fine-tuned semantic text embeddings. Then the ranking models are trained on top of the combined text features for the final prediction. The detailed training procedure is described in Algorithm 1 and 2. ",
748
+ "bbox": [
749
+ 174,
750
+ 226,
751
+ 825,
752
+ 281
753
+ ],
754
+ "page_idx": 6
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "Inference. The inference cost of XR-Transformer consists mainly of two parts: cost to compute transformer embedding and to retrieve relevant labels through beam search. Therefore, the inference time complexity is $O ( T _ { d n n } + k d \\log ( L ) )$ , where $k$ is the beam size, $d$ is the concatenated feature dimension and $T _ { d n n }$ is the time to compute $\\Phi _ { d n n } ( \\mathbf { x } )$ for a given input. Note that even the inference is done with beam search through the refined HLT, the transformer text embedding only need to be computed once per instance. ",
759
+ "bbox": [
760
+ 173,
761
+ 295,
762
+ 825,
763
+ 378
764
+ ],
765
+ "page_idx": 6
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "Connections with other tree based methods. Although methods such as AttentionXML [8] also train on supervisions induced by label trees, the final model is a chain of sub-models which each on is learned on single-resolution. In particular, given a hierarchical label tree with depth $D$ , AttentionXML will train $D$ different text encoders on each layer of the tree where as XR-Transformer trains the same transformer encoder progressively on all layers of the tree. This difference leads to a longer inference time for AttentionXML than XR-Transformer since multiple text encoders need to be queried during inference, as shown in the comparison in the inference time in Appendix A.4.2. ",
770
+ "bbox": [
771
+ 173,
772
+ 392,
773
+ 825,
774
+ 491
775
+ ],
776
+ "page_idx": 6
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "5 Experimental Results ",
781
+ "text_level": 1,
782
+ "bbox": [
783
+ 174,
784
+ 508,
785
+ 385,
786
+ 526
787
+ ],
788
+ "page_idx": 6
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "We evaluate XR-Transformer on 6 public XMC benchmarking datasets: Eurlex-4K, Wiki10-31K, AmazonCat-13K, Wiki-500K, Amazon-670K, Amazon-3M. Data statistics are given in Table 1. For fair comparison, we use the same raw text input, sparse feature representations and same train-test split as AttentionXML [8] and other latest works [12, 13]. The evaluation metric is Precision $@ \\mathbf { k }$ $( \\mathrm { P } @ \\mathrm { k } )$ , which is widely-used in XMC literature [3, 8, 12, 13, 18, 28]. The results of Propensity-score Precision $@ \\mathbf { k }$ $( { \\mathrm { P S P } } @ \\mathbf { k } )$ are defer to Appendix A.4.3, which focus more on tail labels’ performance. ",
793
+ "bbox": [
794
+ 173,
795
+ 539,
796
+ 826,
797
+ 623
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "table",
803
+ "img_path": "images/0772d7a7a39801db959dbcad4c5945786d23b4f91b4062fc61cf4476df412aa0.jpg",
804
+ "table_caption": [
805
+ "Table 1: Data statistics. $N _ { t r a i n } , N _ { t e s t }$ refer to the number of instances in the training and test sets, respectively. $L$ : the number of labels. $\\bar { L }$ : the average number of positive labels per instance. $\\bar { n }$ : average number of instances per label. $d _ { t f i d f }$ : the sparse feature dimension of $\\bar { \\Phi } _ { t f i d f } ( \\cdot )$ . These six publicly available benchmark datasets, including the sparse TF-IDF features are downloaded from https://github.com/yourh/AttentionXML which are the same as AttentionXML [8] XTransformer [12] and LightXML [13] for fair comparison. "
806
+ ],
807
+ "table_footnote": [],
808
+ "table_body": "<table><tr><td>Dataset</td><td>Ntrain</td><td>Ntest</td><td>L</td><td>L</td><td>n</td><td>dtfidf</td></tr><tr><td>Eurlex-4K</td><td>15,449</td><td>3,865</td><td>3,956</td><td>5.30</td><td>20.79</td><td>186,104</td></tr><tr><td>Wiki10-31K</td><td>14,146</td><td>6,616</td><td>30.938</td><td>18.64</td><td>8.52</td><td>101,938</td></tr><tr><td>AmazonCat-13K</td><td>1,186,239</td><td>306,782</td><td>13,330</td><td>5.04</td><td>448.57</td><td>203,882</td></tr><tr><td>Wiki-500K</td><td>1,779,881</td><td>769,421</td><td>501,070</td><td>4.75</td><td>16.86</td><td>2,381,304</td></tr><tr><td>Amazon-670K</td><td>490,449</td><td>153,025</td><td>670.091</td><td>5.45</td><td>3.99</td><td>135,909</td></tr><tr><td>Amazon-3M</td><td>1,717,899</td><td>742,507</td><td>2,812,281</td><td>36.04</td><td>22.02</td><td>337,067</td></tr></table>",
809
+ "bbox": [
810
+ 176,
811
+ 726,
812
+ 821,
813
+ 848
814
+ ],
815
+ "page_idx": 6
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "Baseline Methods. We compare XR-Transformer with state-of-the-art (SOTA) XMC methods: AnnexML [28], DiSMEC [18], PfastreXML [41], Parabel [3], eXtremeText [24], Bonsai [50], XMLCNN [33], XR-Linear [7], AttentionXML [8], X-Transformer [12] and LightXML [13]. We obtain most baseline results from [8, Table 3] and [7, Table 3] except for the latest deep learning based algorithms [8, 12, 13]. To have fair comparison on training time, we use the same hardware (i.e., AWS p3.16xlarge) and the same inputs (i.e., raw text, vectorized features, data split) to obtain the results of AttentionXML, X-Transformer and LightXML. The hyper-parameter of XR-Transformer and more empirical results are included in Appendix A.3. ",
820
+ "bbox": [
821
+ 173,
822
+ 869,
823
+ 826,
824
+ 912
825
+ ],
826
+ "page_idx": 6
827
+ },
828
+ {
829
+ "type": "table",
830
+ "img_path": "images/2795a38d1ddfe1301c5e182e240ce1fa292a865a8ed9fa203546f2db14c1d9ac.jpg",
831
+ "table_caption": [
832
+ "Table 2: Comparison of XR-Transformer with recent XMC methods on six public datasets. Results with a trailing reference are taken from [8, Table 3] and [7, Table 3]. We obtain the results of AttentionXML∗, LightXML∗, X-Transformer∗ and XR-Transformer∗ on the same vectorized feature matrix provided in [8]. Due to GPU memory constraint, LightXML is not able to run on Amazon-3M. The $\\mathrm { P S P } @ \\mathrm { k }$ results are available in Appendix A.4.3. "
833
+ ],
834
+ "table_footnote": [],
835
+ "table_body": "<table><tr><td>Methods</td><td>P@1 P@3</td><td>P@5</td><td>P@1</td><td>P@3</td><td>P@5</td><td>P@1</td><td>P@3</td><td>P@5</td></tr><tr><td></td><td colspan=\"6\">Eurlex-4K Wiki10-31K</td><td>AmazonCat-13K</td><td></td></tr><tr><td>AnnexML [28] DiSMEC[18]</td><td>79.66 83.21</td><td>64.94 70.39</td><td>53.52 58.73</td><td>86.46 84.13 83.57</td><td>74.28 74.72 68.61</td><td>64.20 65.94 59.10</td><td>93.54 78.36 93.81 79.08</td><td>63.30 64.06</td></tr><tr><td>PfastreXML [41] Parabel [3]</td><td>73.14 82.12</td><td>60.16 68.91</td><td>50.54 57.89</td><td>84.19</td><td>72.46 63.37</td><td>91.75 93.02</td><td>77.97 79.14</td><td>63.68 64.51</td></tr><tr><td>eXtremeText [24]</td><td>79.17</td><td>66.80</td><td>56.09</td><td>83.66 73.28</td><td>64.51</td><td>92.50</td><td>78.12</td><td>63.51</td></tr><tr><td>Bonsai [50]</td><td>82.30</td><td>69.55</td><td>58.35</td><td>84.52 73.76</td><td>64.69</td><td>92.98</td><td></td><td>64.46</td></tr><tr><td>XML-CNN [33]</td><td>75.32</td><td>60.14</td><td>49.21</td><td>81.41 66.23</td><td>56.11</td><td></td><td>79.13</td><td></td></tr><tr><td>XR-Linear [7]</td><td>84.14</td><td>72.05 60.67</td><td>85.75</td><td>75.79</td><td>66.69</td><td>93.26</td><td>77.06</td><td>61.40</td></tr><tr><td>AttentionXML*</td><td></td><td></td><td></td><td></td><td></td><td>94.64</td><td>79.98</td><td>64.79</td></tr><tr><td>X-Transformer*</td><td>86.93</td><td>74.12</td><td>62.16</td><td>87.34</td><td>78.18</td><td>69.07 95.84</td><td>82.39</td><td>67.32</td></tr><tr><td></td><td>87.61</td><td>75.39 75.95</td><td>63.05 63.45</td><td>88.26</td><td>78.51</td><td>69.68 96.48</td><td>83.41</td><td>68.19</td></tr><tr><td>LightXML*</td><td>87.15</td><td></td><td></td><td>89.67 79.06</td><td>69.87</td><td>96.77</td><td>83.98</td><td>68.63</td></tr><tr><td>XR-Transformer*</td><td>88.41 75.97</td><td>63.18</td><td>88.69</td><td>80.17</td><td>70.91</td><td>96.79</td><td>83.66</td><td>68.04</td></tr><tr><td>AnnexML [28]</td><td>Wiki-500K</td><td></td><td></td><td></td><td>Amazon-670K</td><td></td><td>Amazon-3M</td><td></td></tr><tr><td>DiSMEC[18]</td><td>64.22 70.21</td><td>43.15 50.57</td><td>32.79 39.68</td><td>42.09 44.78 36.84</td><td>36.61 39.72</td><td>32.75 36.17</td><td>49.30 45.55 47.34 44.96</td><td>43.11 42.80</td></tr><tr><td>PfastreXML [41] Parabel [3]</td><td>56.25</td><td>37.32 49.57</td><td>28.16</td><td>34.23</td><td>32.09</td><td>43.83</td><td>41.81</td><td>40.09</td></tr><tr><td>eXtremeText [24]</td><td>68.70</td><td></td><td>38.64</td><td>44.91 39.77</td><td>35.98</td><td>47.42</td><td>44.66</td><td>42.55</td></tr><tr><td></td><td>65.17</td><td>46.32</td><td>36.15</td><td>42.54 37.93</td><td>34.63</td><td>42.20</td><td>39.28</td><td>37.24</td></tr><tr><td>Bonsai [50]</td><td>69.26</td><td>49.80</td><td>38.83</td><td>45.58 40.39</td><td>36.60</td><td>48.45</td><td>45.65</td><td>43.49</td></tr><tr><td>XML-CNN [33]</td><td>1</td><td>1</td><td>1</td><td>33.41</td><td>30.00 27.42</td><td>1</td><td>-</td><td>1</td></tr><tr><td>XR-Linear [7]</td><td>65.59</td><td>46.72</td><td>36.46</td><td>43.38</td><td>38.40 34.77</td><td>47.40</td><td>44.15</td><td>41.87</td></tr><tr><td>AttentionXML*</td><td>76.74</td><td>58.18</td><td>45.95</td><td>47.68</td><td></td><td>50.86</td><td></td><td></td></tr><tr><td>X-Transformer*</td><td>77.09</td><td>57.51</td><td>45.28</td><td>48.07</td><td>42.70</td><td>38.99</td><td>48.00</td><td>45.82</td></tr><tr><td></td><td></td><td></td><td></td><td>42.96</td><td>39.12</td><td>51.20</td><td>47.81</td><td>45.07</td></tr><tr><td>LightXML* XR-Transformer*</td><td>77.89 79.40</td><td>58.98 59.02</td><td>45.71 46.25</td><td>49.32 44.17 50.11 44.56</td><td>40.25 40.64</td><td>= 54.20</td><td>= 50.81</td><td>48.26</td></tr></table>",
836
+ "bbox": [
837
+ 176,
838
+ 166,
839
+ 823,
840
+ 578
841
+ ],
842
+ "page_idx": 7
843
+ },
844
+ {
845
+ "type": "table",
846
+ "img_path": "images/0b60d47264d16986f79138a29c1cb39f639dbef44d81775aa15dab1e782ecec5.jpg",
847
+ "table_caption": [
848
+ "Table 3: Comparing training time (in hours) of DNN-based methods that produce the SOTA results in Table 2. The number following the model indicates the number of ensemble models used. "
849
+ ],
850
+ "table_footnote": [],
851
+ "table_body": "<table><tr><td>Dataset</td><td>AttentionXML-3</td><td>X-Transformer-9</td><td>LightXML-3</td><td>XR-Transformer-3</td></tr><tr><td>Eurlex-4K</td><td>0.9</td><td>7.5</td><td>16.9</td><td>0.8</td></tr><tr><td>Wiki10-31K</td><td>1.5</td><td>14.1</td><td>26.9</td><td>1.5</td></tr><tr><td>AmazonCat-13K</td><td>24.3</td><td>147.6</td><td>310.6</td><td>13.2</td></tr><tr><td>Wiki-500K</td><td>37.6</td><td>557.1</td><td>271.3</td><td>38.0</td></tr><tr><td>Amazon-670K</td><td>24.2</td><td>514.8</td><td>159.0</td><td>10.5</td></tr><tr><td>Amazon-3M</td><td>54.8</td><td>542.0</td><td>1</td><td>29.3</td></tr></table>",
852
+ "bbox": [
853
+ 176,
854
+ 632,
855
+ 821,
856
+ 737
857
+ ],
858
+ "page_idx": 7
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "",
863
+ "bbox": [
864
+ 174,
865
+ 767,
866
+ 825,
867
+ 837
868
+ ],
869
+ "page_idx": 7
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "Model Performance. The comparisons of Precision $@ \\mathbf { k }$ $( \\mathrm { P } @ \\mathrm { k } )$ and training time are shown in Table 2 and Table 8, respectively. The proposed XR-Transformer follows AttentionXML and LightXML to use an ensemble of 3 models, while X-Transformer uses an ensemble of 9 models [12]. More details about the ensemble setting can be found in Appendix A.3. The proposed XR-Transformer framework achieves new SOTA results in 14 out of 18 evaluation columns (combination of datasets and $\\mathrm { P } @ \\mathrm { k } ,$ ), and outperforms competitive methods on the large datasets. Next, we show the training time of XR-Transformer is significantly less than other DNN-based models. ",
874
+ "bbox": [
875
+ 174,
876
+ 854,
877
+ 825,
878
+ 911
879
+ ],
880
+ "page_idx": 7
881
+ },
882
+ {
883
+ "type": "table",
884
+ "img_path": "images/d595bdb193ef1fad339bfd123d22816ab0553f72b8dc824894f4d161c6730334.jpg",
885
+ "table_caption": [
886
+ "Table 4: Single model comparison of DNN based XMC models. Training time on p3.16xlarge with 8 Nvidia V100 GPUs whereas time on singl $T _ { t r a i n } ^ { 8 }$ are reported ia V100 GPU entionXML, X-Transformer and XR-Transformer,is reported for LightXML and XR-Transformer. $T _ { t r a i n } ^ { 1 }$ "
887
+ ],
888
+ "table_footnote": [],
889
+ "table_body": "<table><tr><td>Dataset</td><td>Method</td><td>P@1</td><td>P@3</td><td>P@5</td><td></td><td></td></tr><tr><td rowspan=\"4\">Wiki10-31K</td><td>AttentionXML-1</td><td>87.1</td><td>77.8</td><td>68.8</td><td>1</td><td>0.5</td></tr><tr><td>X-Transformer-1</td><td>87.5</td><td>77.2</td><td>67.1</td><td>-</td><td>3.5</td></tr><tr><td>LightXML-1</td><td>87.8</td><td>77.3</td><td>68.0</td><td>6.7</td><td>-</td></tr><tr><td>XR-Transformer-1</td><td>88.0</td><td>78.7</td><td>69.1</td><td>1.3</td><td>0.5</td></tr><tr><td rowspan=\"4\">Wiki-500K</td><td>AttentionXML-1</td><td>75.1</td><td>56.5</td><td>44.4</td><td>-</td><td>12.5</td></tr><tr><td>X-Transformer-1</td><td>44.8</td><td>40.1</td><td>34.6</td><td>-</td><td>56.0</td></tr><tr><td>LightXML-1</td><td>76.3</td><td>57.3</td><td>44.2</td><td>89.6</td><td>1</td></tr><tr><td>XR-Transformer-1</td><td>78.1</td><td>57.6</td><td>45.0</td><td>29.2</td><td>12.5</td></tr><tr><td rowspan=\"4\">Amazon-670K</td><td>AttentionXML-1</td><td>45.7</td><td>40.7</td><td>36.9</td><td>-</td><td>8.1</td></tr><tr><td>X-Transformer-1</td><td>44.8</td><td>40.1</td><td>34.6</td><td>、</td><td>56.0</td></tr><tr><td>LightXML-1</td><td>47.3</td><td>42.2</td><td>38.5</td><td>53.0</td><td>-</td></tr><tr><td>XR-Transformer-1</td><td>49.1</td><td>43.8</td><td>40.0</td><td>8.1</td><td>3.4</td></tr></table>",
890
+ "bbox": [
891
+ 254,
892
+ 138,
893
+ 738,
894
+ 316
895
+ ],
896
+ "page_idx": 8
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "",
901
+ "bbox": [
902
+ 176,
903
+ 345,
904
+ 823,
905
+ 387
906
+ ],
907
+ "page_idx": 8
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "Training Cost. Table 8 shows the training time for these DNN-based models. To have fair comparison, all the experiments are conducted with float32 precision on AWS p3.16xlarge instance with 8 Nvidia V100 GPUs except for LightXML, which was run on single V100 GPU since multi-GPU training is not implemented. XR-Transformer consumes significantly less training time compared with other transformer based models and the shallow BiLSTM model AttentionXML. On Amazon3M, XR-Transformer has $2 0 x$ speedup over X-Transformer while achieving even better $\\mathrm { P @ { k } }$ . Finally, in table 4, we compare XR-Transformer with LightXML under the single model setup (no ensemble), where XR-Transformer still consistently outperforms LightXML in $\\mathbf { P } @ \\mathbf { k }$ and training time. ",
912
+ "bbox": [
913
+ 173,
914
+ 405,
915
+ 826,
916
+ 517
917
+ ],
918
+ "page_idx": 8
919
+ },
920
+ {
921
+ "type": "table",
922
+ "img_path": "images/858a53d365f0bdf078ae194e7e819d64eb47489e4a776e30f1688906827aa0e7.jpg",
923
+ "table_caption": [
924
+ "Table 5: Comparing XR-Transformer with Pre-Trained and word2vec embeddings concatenated with TF-IDF features. "
925
+ ],
926
+ "table_footnote": [],
927
+ "table_body": "<table><tr><td>Methods</td><td>P@1 P@3</td><td>P@5</td><td>P@1</td><td>P@3</td><td>P@5</td><td>P@1</td><td>P@3</td><td>P@5</td></tr><tr><td></td><td colspan=\"6\">Eurlex-4K</td><td>AmazonCat-13K</td><td></td></tr><tr><td>TF-IDF</td><td>84.14 72.05</td><td>60.97</td><td>85.75</td><td>75.79</td><td>66.69</td><td>94.64</td><td>79.98</td><td>64.79</td></tr><tr><td>word2vec +TF-IDF</td><td>84.35 71.27</td><td>59.10</td><td>86.11</td><td>76.92</td><td>66.45</td><td>94.53</td><td>79.44</td><td>63.94</td></tr><tr><td>Pre-Trained +TF-IDF</td><td>84.92 71.40</td><td>59.36</td><td>85.78</td><td>78.30</td><td>68.33</td><td>95.05</td><td>80.12</td><td>64.53</td></tr><tr><td>XR-Transformer</td><td>88.41 75.97</td><td>63.18</td><td>88.69</td><td>80.17</td><td>70.91</td><td>96.79</td><td>83.66</td><td>68.04</td></tr><tr><td></td><td colspan=\"6\">Wiki-500K Amazon-670K</td><td>Amazon-3M</td><td></td></tr><tr><td>TF-IDF</td><td>65.59</td><td>46.72 36.46</td><td>43.38</td><td>38.40</td><td>34.77</td><td>47.40</td><td>44.15</td><td>41.87</td></tr><tr><td>word2vec +TF-IDF</td><td>68.21</td><td>48.16 37.54</td><td>44.04</td><td>39.07</td><td>35.35</td><td>47.51</td><td>44.49</td><td>42.19</td></tr><tr><td>Pre-Trained +TF-IDF</td><td>70.18</td><td>49.82 38.75</td><td>44.55</td><td>38.91</td><td>34.77</td><td>49.66</td><td>46.41</td><td>43.96</td></tr><tr><td>XR-Transformer</td><td>79.40</td><td>59.02 46.25</td><td>50.11</td><td>44.56</td><td>40.64</td><td>54.20</td><td>50.81</td><td>48.26</td></tr></table>",
928
+ "bbox": [
929
+ 207,
930
+ 568,
931
+ 787,
932
+ 723
933
+ ],
934
+ "page_idx": 8
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "Comparison of Different Semantic Embeddings. To provide more empirical justifications, that the improvement in performance comes from better semantic embedding rather than the introducing of TF-IDF features, we further tested models using Pre-Trained Transformer and word2vec embeddings concatenated with the same TF-IDF features. ",
939
+ "bbox": [
940
+ 173,
941
+ 752,
942
+ 825,
943
+ 808
944
+ ],
945
+ "page_idx": 8
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "Table 5 summarizes the performance of these models on all 6 datasets. In particular, word2vec is using token embedding from word2vec-google-news-300 and for Pre-Trained we use the same setting as XR-Transformer (3-model ensemble). On large datasets such as Wiki-500K/Amazon670K/Amazon-3M, Pre-Trained $+ \\mathrm { T F }$ -IDF has marginal improvement compared to the baseline TF-IDF features. Nevertheless, our proposed XR-Transformer still enjoy significant gain compared to Pre-Trained $+ \\mathrm { T F }$ -IDF. This suggests the major improvement is from learning more powerful neural semantic embeddings, rather than the use of TF-IDF. ",
950
+ "bbox": [
951
+ 173,
952
+ 814,
953
+ 825,
954
+ 911
955
+ ],
956
+ "page_idx": 8
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "Effect of Cost-Sensitive Learning. In Table 6, we analyze the effect of cost sensitive learning on four XMC datasets with the largest output spaces. On most datasets, cost sensitive learning via aggregated labels yields better performance than those without. We also show that cost-sensitive learning is not only beneficial to XR-Transformer, but also useful to its linear counterpart XRLinear [7]. See Appendix A.4.1 for more results. ",
961
+ "bbox": [
962
+ 173,
963
+ 90,
964
+ 825,
965
+ 161
966
+ ],
967
+ "page_idx": 9
968
+ },
969
+ {
970
+ "type": "table",
971
+ "img_path": "images/e9f29c7df33ad81e9aabae342361c3a0ab104fddb72155d78c9fc074d04a64e7.jpg",
972
+ "table_caption": [
973
+ "Table 6: Ablation of cost-sensitive learning on the single XR-Transformer model with or without Cost Sensitive (CS). Precision $\\boldsymbol { \\ @ 1 , 3 , 5 } \\ : \\mathrm { P } ( \\boldsymbol { \\ @ } \\mathrm { k } )$ and Recall $^ { ( a ) 1 , 3 , 5 }$ $( \\mathbb { R } ^ { \\circledcirc \\mathrm { k } ) }$ are reported. "
974
+ ],
975
+ "table_footnote": [],
976
+ "table_body": "<table><tr><td>Dataset</td><td>Method</td><td>P@1</td><td>P@3</td><td>P@5</td><td>R@1</td><td>R@3</td><td>R@5</td></tr><tr><td>Wiki10-31K</td><td>XR-Transformer-1(w/o CS) XR-Transformer-1</td><td>86.8 88.0</td><td>77.6 78.7</td><td>68.8 69.1</td><td>5.2 5.3</td><td>13.6 13.8</td><td>19.8 19.9</td></tr><tr><td>Wiki-500K</td><td>XR-Transformer-1(w/o CS) XR-Transformer-1</td><td>77.6 78.1</td><td>57.4 57.6</td><td>44.9 45.0</td><td>25.8 26.1</td><td>48.1 48.5</td><td>57.8 58.1</td></tr><tr><td>Amazon-670K</td><td>XR-Transformer-1(w/o CS) XR-Transformer-1</td><td>49.1 49.0</td><td>43.8 43.7</td><td>40.0 39.9</td><td>10.3 10.4</td><td>25.6 25.7</td><td>37.7 37.7</td></tr><tr><td>Amazon-3M</td><td>XR-Transformer-1(w/o CS) XR-Transformer-1</td><td>50.2 52.6</td><td>47.6 49.4</td><td>45.4 46.9</td><td>3.4 3.8</td><td>8.4 9.3</td><td>12.4 13.6</td></tr></table>",
977
+ "bbox": [
978
+ 207,
979
+ 209,
980
+ 787,
981
+ 347
982
+ ],
983
+ "page_idx": 9
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Effect of Label Resolution and Text Representation. Next, we compare the effect of label resolution on the quality of the finetuned transformer embeddings. We finetune transformer models in a non-recursive manner on a two layer HLT with different leaf cluster size. Then the fine-tuned transformer embeddings are used along or in combination with TF-IDF features to produce the predictions with refined HLT. From Figure 2 we can observe that a larger cluster size will result in worse semantic features. Figure 2 also shows that combining semantic features $\\Phi _ { d n n }$ with statistical features $\\Phi _ { t f i d f }$ could in general improve the model performance. ",
988
+ "bbox": [
989
+ 173,
990
+ 377,
991
+ 452,
992
+ 598
993
+ ],
994
+ "page_idx": 9
995
+ },
996
+ {
997
+ "type": "image",
998
+ "img_path": "images/03c79d8c35fdaa79ddede59d237f8e3c9058ea90641c96c6335f1749f2615180.jpg",
999
+ "image_caption": [
1000
+ "Figure 2: Comparison of BERT model fine-tuned with different label resolution. Larger cluster size means lower label resolution. Note that $\\Phi _ { c a t }$ is the normalized concatenation of $\\Phi _ { t f i d f }$ and $\\Phi _ { d n n }$ . "
1001
+ ],
1002
+ "image_footnote": [],
1003
+ "bbox": [
1004
+ 467,
1005
+ 393,
1006
+ 821,
1007
+ 526
1008
+ ],
1009
+ "page_idx": 9
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "6 Conclusion and Future work ",
1014
+ "text_level": 1,
1015
+ "bbox": [
1016
+ 176,
1017
+ 617,
1018
+ 446,
1019
+ 633
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "In this paper, we have presented XR-Transformer approach, which is an XMC architecture that leverages multi-resolution objectives and cost sensitive learning to accelerate the fine-tuning of pre-trained transformer models. Experiments show that the proposed method establishes new stateof-the-art results on public XMC datasets while taking significantly less training time compared with earlier transformer based methods. Although the proposed architecture is designed for XMC, the ideas can be applied to other areas such as information retrieval or other DNN models such as CNNs/ResNets. Also, more extensive study is required to understand why the coarse-to-fine scheme would lead to not only faster training but better overall quality. A hypothesis is that the problem is being solved at multiple scales hence leading to more robust learning of deep transformer models. ",
1026
+ "bbox": [
1027
+ 173,
1028
+ 648,
1029
+ 826,
1030
+ 773
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "References \n[1] Wei-Cheng Chang, Felix X. Yu, Yin-Wen Chang, Yiming Yang, and Sanjiv Kumar. Pre-training tasks for embedding-based large-scale retrieval. In International Conference on Learning Representations, 2020. \n[2] Kenton Lee, Ming-Wei Chang, and Kristina Toutanova. Latent retrieval for weakly supervised open domain question answering. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL), 2019. \n[3] Yashoteja Prabhu, Anil Kag, Shrutendra Harsola, Rahul Agrawal, and Manik Varma. Parabel: Partitioned label trees for extreme classification with application to dynamic search advertising. In WWW, 2018. \n[4] Yashoteja Prabhu and Manik Varma. Fastxml: A fast, accurate and stable tree-classifier for extreme multi-label learning. In KDD, 2014. \n[5] Wei-Cheng Chang, Daniel Jiang, Hsiang-Fu Yu, Choon-Hui Teo, Jiong Zhang, Kai Zhong, Kedarnath Kolluri, Qie Hu, Nikhil Shandilya, Vyacheslav Ievgrafov, Japinder Singh, and Inderjit S Dhillon. Extreme multi-label learning for semantic matching in product search. In KDD. ACM, 2021. \n[6] Sujay Khandagale, Han Xiao, and Rohit Babbar. Bonsai: diverse and shallow trees for extreme multi-label classification. Machine Learning, 109(11):2099–2119, 2020. \n[7] Hsiang-Fu Yu, Kai Zhong, and Inderjit S Dhillon. PECOS: Prediction for enormous and correlated output spaces. arXiv preprint arXiv:2010.05878, 2020. \n[8] Ronghui You, Zihan Zhang, Ziye Wang, Suyang Dai, Hiroshi Mamitsuka, and Shanfeng Zhu. AttentionXML: Label tree-based attention-aware deep model for high-performance extreme multi-label text classification. In Advances in Neural Information Processing Systems, pages 5812–5822, 2019. \n[9] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), 2019. \n[10] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. XLNet: Generalized autoregressive pretraining for language understanding. In NIPS, 2019. \n[11] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692, 2019. \n[12] Wei-Cheng Chang, Hsiang-Fu Yu, Kai Zhong, Yiming Yang, and Inderjit S Dhillon. Taming pretrained transformers for extreme multi-label text classification. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3163–3171, 2020. \n[13] Ting Jiang, Deqing Wang, Leilei Sun, Huayi Yang, Zhengyang Zhao, and Fuzhen Zhuang. LightXML: Transformer with dynamic negative sampling for high-performance extreme multilabel text classification. In AAAI, 2021. \n[14] Wei-Sheng Lai, Jia-Bin Huang, Narendra Ahuja, and Ming-Hsuan Yang. Deep laplacian pyramid networks for fast and accurate super-resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. \n[15] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. In ICLR, 2018. \n[16] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4401–4410, 2019. ",
1037
+ "bbox": [
1038
+ 173,
1039
+ 39,
1040
+ 828,
1041
+ 914
1042
+ ],
1043
+ "page_idx": 10
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "[17] Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pages 41–48, 2009. ",
1048
+ "bbox": [
1049
+ 171,
1050
+ 90,
1051
+ 825,
1052
+ 132
1053
+ ],
1054
+ "page_idx": 11
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "[18] Rohit Babbar and Bernhard Schölkopf. DiSMEC: distributed sparse machines for extreme multi-label classification. In WSDM, 2017. ",
1059
+ "bbox": [
1060
+ 171,
1061
+ 140,
1062
+ 823,
1063
+ 170
1064
+ ],
1065
+ "page_idx": 11
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "[19] Ian EH Yen, Xiangru Huang, Kai Zhong, Pradeep Ravikumar, and Inderjit S Dhillon. PDSparse: A primal and dual sparse approach to extreme multiclass and multilabel classification. In International Conference on Machine Learning (ICML), 2016. ",
1070
+ "bbox": [
1071
+ 174,
1072
+ 178,
1073
+ 823,
1074
+ 222
1075
+ ],
1076
+ "page_idx": 11
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "[20] Ian EH Yen, Xiangru Huang, Wei Dai, Pradeep Ravikumar, Inderjit Dhillon, and Eric Xing. PPDsparse: A parallel primal-dual sparse method for extreme classification. In KDD. ACM, 2017. ",
1081
+ "bbox": [
1082
+ 174,
1083
+ 228,
1084
+ 825,
1085
+ 270
1086
+ ],
1087
+ "page_idx": 11
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "[21] Rohit Babbar and Bernhard Schölkopf. Data scarcity, robustness and extreme multi-label classification. Machine Learning, pages 1–23, 2019. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 279,
1095
+ 823,
1096
+ 308
1097
+ ],
1098
+ "page_idx": 11
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "[22] Anna E Choromanska and John Langford. Logarithmic time online multiclass prediction. Advances in Neural Information Processing Systems, 28:55–63, 2015. ",
1103
+ "bbox": [
1104
+ 173,
1105
+ 315,
1106
+ 825,
1107
+ 344
1108
+ ],
1109
+ "page_idx": 11
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "[23] Hal Daumé III, Nikos Karampatziakis, John Langford, and Paul Mineiro. Logarithmic time one-against-some. In International Conference on Machine Learning, pages 923–932. PMLR, 2017. ",
1114
+ "bbox": [
1115
+ 176,
1116
+ 352,
1117
+ 825,
1118
+ 393
1119
+ ],
1120
+ "page_idx": 11
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "[24] Marek Wydmuch, Kalina Jasinska, Mikhail Kuznetsov, Róbert Busa-Fekete, and Krzysztof Dembczynski. A no-regret generalization of hierarchical softmax to extreme multi-label classification. In NIPS, 2018. ",
1125
+ "bbox": [
1126
+ 173,
1127
+ 401,
1128
+ 823,
1129
+ 444
1130
+ ],
1131
+ "page_idx": 11
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "[25] Yashoteja Prabhu, Aditya Kusupati, Nilesh Gupta, and Manik Varma. Extreme regression for dynamic search advertising. In Proceedings of the 13th International Conference on Web Search and Data Mining, pages 456–464, 2020. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 452,
1139
+ 823,
1140
+ 496
1141
+ ],
1142
+ "page_idx": 11
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "[26] Kalina Jasinska-Kobus, Marek Wydmuch, Krzysztof Dembczynski, Mikhail Kuznetsov, and Robert Busa-Fekete. Probabilistic label trees for extreme multi-label classification. arXiv preprint arXiv:2009.11218, 2020. ",
1147
+ "bbox": [
1148
+ 174,
1149
+ 502,
1150
+ 823,
1151
+ 545
1152
+ ],
1153
+ "page_idx": 11
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "[27] Kalina Jasinska-Kobus, Marek Wydmuch, Devanathan Thiruvenkatachari, and Krzysztof Dembczynski. Online probabilistic label trees. In International Conference on Artificial Intelligence and Statistics, pages 1801–1809. PMLR, 2021. ",
1158
+ "bbox": [
1159
+ 174,
1160
+ 553,
1161
+ 823,
1162
+ 597
1163
+ ],
1164
+ "page_idx": 11
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "[28] Yukihiro Tagami. AnnexML: Approximate nearest neighbor search for extreme multi-label classification. In Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, pages 455–464, 2017. ",
1169
+ "bbox": [
1170
+ 174,
1171
+ 603,
1172
+ 821,
1173
+ 647
1174
+ ],
1175
+ "page_idx": 11
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "[29] Himanshu Jain, Venkatesh Balasubramanian, Bhanu Chunduri, and Manik Varma. SLICE: Scalable linear extreme classifiers trained on 100 million labels for related searches. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, pages 528–536. ACM, 2019. ",
1180
+ "bbox": [
1181
+ 176,
1182
+ 654,
1183
+ 825,
1184
+ 710
1185
+ ],
1186
+ "page_idx": 11
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "[30] Y. A. Malkov and D. A. Yashunin. Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(4):824–836, 2020. ",
1191
+ "bbox": [
1192
+ 171,
1193
+ 718,
1194
+ 823,
1195
+ 761
1196
+ ],
1197
+ "page_idx": 11
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "[31] Chuan Guo, Ali Mousavi, Xiang Wu, Daniel N Holtmann-Rice, Satyen Kale, Sashank Reddi, and Sanjiv Kumar. Breaking the glass ceiling for embedding-based classifiers for large output spaces. In Advances in Neural Information Processing Systems, pages 4944–4954, 2019. ",
1202
+ "bbox": [
1203
+ 171,
1204
+ 767,
1205
+ 823,
1206
+ 811
1207
+ ],
1208
+ "page_idx": 11
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "[32] Ruiqi Guo, Philip Sun, Erik Lindgren, Quan Geng, David Simcha, Felix Chern, and Sanjiv Kumar. Accelerating large-scale inference with anisotropic vector quantization. In International Conference on Machine Learning, pages 3887–3896. PMLR, 2020. ",
1213
+ "bbox": [
1214
+ 171,
1215
+ 818,
1216
+ 823,
1217
+ 862
1218
+ ],
1219
+ "page_idx": 11
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "[33] Jingzhou Liu, Wei-Cheng Chang, Yuexin Wu, and Yiming Yang. Deep learning for extreme multi-label text classification. In Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 115–124. ACM, 2017. ",
1224
+ "bbox": [
1225
+ 174,
1226
+ 868,
1227
+ 826,
1228
+ 912
1229
+ ],
1230
+ "page_idx": 11
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "[34] Tharun Kumar Reddy Medini, Qixuan Huang, Yiqiu Wang, Vijai Mohan, and Anshumali Shrivastava. Extreme classification in log memory using count-min sketch: A case study of amazon search with $5 0 \\mathrm { m }$ products. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché- Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. \n[35] Kunal Dahiya, Deepak Saini, Anshul Mittal, Ankush Shaw, Kushal Dave, Akshay Soni, Himanshu Jain, Sumeet Agarwal, and Manik Varma. DeepXML: A deep extreme multi-label learning framework applied to short text documents. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining, pages 31–39, 2021. \n[36] Anshul Mittal, Kunal Dahiya, Sheshansh Agrawal, Deepak Saini, Sumeet Agarwal, Purushottam Kar, and Manik Varma. DECAF: Deep extreme classification with label features. In Proceedings of the 14th ACM International Conference on Web Search and Data Mining, pages 49–57, 2021. \n[37] D. Saini, A.K. Jain, K. Dave, J. Jiao, A. Singh, R. Zhang, and M. Varma. GalaXC: Graph neural networks with labelwise attention for extreme classification. In Proceedings of The Web Conference, April 2021. \n[38] A. Mittal, N. Sachdeva, S. Agrawal, S. Agarwal, P. Kar, and M. Varma. ECLARE: Extreme classification with label graph correlations. In Proceedings of The ACM International World Wide Web Conference, April 2021. \n[39] Hui Ye, Zhiyu Chen, Da-Han Wang, and Brian Davison. Pretrained generalized autoregressive model with adaptive probabilistic label clusters for extreme multi-label text classification. In International Conference on Machine Learning, pages 10809–10819. PMLR, 2020. \n[40] Armand Joulin, Moustapha Cissé, David Grangier, Hervé Jégou, et al. Efficient softmax approximation for gpus. In International Conference on Machine Learning, pages 1302–1310. PMLR, 2017. \n[41] Himanshu Jain, Yashoteja Prabhu, and Manik Varma. Extreme multi-label loss functions for recommendation, tagging, ranking & other missing label applications. In KDD, 2016. \n[42] Marco Pedersoli, Andrea Vedaldi, Jordi Gonzalez, and Xavier Roca. A coarse-to-fine approach for fast deformable object detection. Pattern Recognition, 48(5):1844–1853, 2015. \n[43] Shikun Liu, Andrew J Davison, and Edward Johns. Self-Supervised generalisation with meta auxiliary learning. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. \n[44] Charles Elkan. The foundations of cost-sensitive learning. In International joint conference on artificial intelligence, volume 17, pages 973–978. Lawrence Erlbaum Associates Ltd, 2001. \n[45] Chun-Liang Li and Hsuan-Tien Lin. Condensed filter tree for cost-sensitive multi-label classification. In International Conference on Machine Learning, pages 423–431. PMLR, 2014. \n[46] Kuan-Hao Huang and Hsuan-Tien Lin. Cost-sensitive label embedding for multi-label classification. Machine Learning, 106(9):1725–1746, 2017. \n[47] Hsuan-Tien Lin. Advances in cost-sensitive multiclass and multilabel classification. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3187–3188, 2019. \n[48] Aditya K Menon, Ankit Singh Rawat, Sashank Reddi, and Sanjiv Kumar. Multilabel reductions: what is my loss optimising? In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. \n[49] Rong-En Fan, Kai-Wei Chang, Cho-Jui Hsieh, Xiang-Rui Wang, and Chih-Jen Lin. LIBLINEAR: a library for large linear classification. Journal of machine learning research, 9(Aug):1871–1874, 2008. ",
1235
+ "bbox": [
1236
+ 171,
1237
+ 49,
1238
+ 828,
1239
+ 920
1240
+ ],
1241
+ "page_idx": 12
1242
+ }
1243
+ ]
parse/train/gjBz22V93a/gjBz22V93a_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/gjBz22V93a/gjBz22V93a_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1rhWnZkg/r1rhWnZkg.md ADDED
@@ -0,0 +1,424 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HADAMARD PRODUCT FOR LOW-RANK BILINEAR POOLING
2
+
3
+ Jin-Hwa Kim
4
+ Interdisciplinary Program in Cognitive Science
5
+ Seoul National University
6
+ Seoul 08826, Republic of Korea
7
+ jhkim@bi.snu.ac.kr
8
+ Kyoung-Woon On
9
+ School of Computer Science and Engineering
10
+ Seoul National University
11
+ Seoul 08826, Republic of Korea
12
+ kwon@bi.snu.ac.kr
13
+
14
+ Woosang Lim School of Computing, KAIST Daejeon 34141, Republic of Korea quasar17@kaist.ac.kr
15
+
16
+ Jeonghee Kim & Jung-Woo Ha NAVER LABS Corp. & NAVER Corp. Gyeonggi-do 13561, Republic of Korea {jeonghee.kim,jungwoo.ha}@navercorp.com
17
+
18
+ Byoung-Tak Zhang
19
+ School of Computer Science and Engineering & Interdisciplinary Program in Cognitive Science
20
+ Seoul National University & Surromind Robotics
21
+ Seoul 08826, Republic of Korea
22
+ btzhang@bi.snu.ac.kr
23
+
24
+ # ABSTRACT
25
+
26
+ Bilinear models provide rich representations compared with linear models. They have been applied in various visual tasks, such as object recognition, segmentation, and visual question-answering, to get state-of-the-art performances taking advantage of the expanded representations. However, bilinear representations tend to be high-dimensional, limiting the applicability to computationally complex tasks. We propose low-rank bilinear pooling using Hadamard product for an efficient attention mechanism of multimodal learning. We show that our model outperforms compact bilinear pooling in visual question-answering tasks with the state-of-the-art results on the VQA dataset, having a better parsimonious property.
27
+
28
+ # 1 INTRODUCTION
29
+
30
+ Bilinear models (Tenenbaum & Freeman, 2000) provide richer representations than linear models. To exploit this advantage, fully-connected layers in neural networks can be replaced with bilinear pooling. The outer product of two vectors (or Kroneker product for matrices) is involved in bilinear pooling, as a result of this, all pairwise interactions among given features are considered. Recently, a successful application of this technique is used for fine-grained visual recognition (Lin et al., 2015).
31
+
32
+ However, bilinear pooling produces a high-dimensional feature of quadratic expansion, which may constrain a model structure and computational resources. For example, an outer product of two feature vectors, both of which have 1K-dimensionality, produces a million-dimensional feature vector. Therefore, for classification problems, the choice of the number of target classes is severely constrained, because the number of parameters for a standard linear classifier is determined by multiplication of the size of the high-dimensional feature vector and the number of target classes.
33
+
34
+ Compact bilinear pooling (Gao et al., 2016) reduces the quadratic expansion of dimensionality by two orders of magnitude, retaining the performance of the full bilinear pooling. This approximation uses sampling-based computation, Tensor Sketch Projection (Charikar et al., 2002; Pham & Pagh, 2013), which utilizes an useful property that $\Psi ( x \otimes y , h , s ) = \Psi ( x , h , s ) * \Psi ( y , h , s )$ , which means the projection of outer product of two vectors is the convolution of two projected vectors. Here, $\Psi$ is the proposed projection function, and, $h$ and $s$ are randomly sampled parameters by the algorithm.
35
+
36
+ Nevertheless, compact bilinear pooling embraces two shortcomings. One comes from the sampling approach. Compact bilinear pooling relies on a favorable property, $E [ \langle \Psi ( x , h , s ) , \Psi ( y , h , s ) \rangle ] \stackrel { - } { = }$ $\langle { \bar { x } } , y \rangle$ , which provides a basis to use projected features instead of original features. Yet, calculating the exact expectation is computationally intractable, so, the random parameters, $h$ and $s$ are fixed during training and evaluation. This practical choice leads to the second. The projected dimension of compact bilinear pooling should be large enough to minimize the bias from the fixed parameters. Practical choices are 10K and 16K for 512 and 4096-dimensional inputs, respectively (Gao et al., 2016; Fukui et al., 2016). Though, these compacted dimensions are reduced ones by two orders of magnitude compared with full bilinear pooling, such high-dimensional features could be a bottleneck for computationally complex models.
37
+
38
+ We propose low-rank bilinear pooling using Hadamard product (element-wise multiplication), which is commonly used in various scientific computing frameworks as one of tensor operations. The proposed method factors a three-dimensional weight tensor for bilinear pooling into three twodimensional weight matrices, which enforces the rank of the weight tensor to be low-rank. As a result, two input feature vectors linearly projected by two weight matrices, respectively, are computed by Hadamard product, then, followed by a linear projection using the third weight matrix. For example, the projected vector $\mathbf { z }$ is represented by $\mathbf { W } _ { z } ^ { T } ( \mathbf { \bar { W } } _ { \mathbf { x } } ^ { T } \mathbf { x } \circ \mathbf { W } _ { \mathbf { y } } ^ { T } \mathbf { y } )$ , where $\circ$ denotes Hadamard product.
39
+
40
+ We also explore to add non-linearity using non-linear activation functions into the low-rank bilinear pooling, and shortcut connections inspired by deep residual learning (He et al., 2016). Then, we show that it becomes a simple baseline model (Antol et al., 2015) or one-learning block of Multimodal Residual Networks (Kim et al., 2016b) as a low-rank bilinear model, yet, this interpretation has not be done.
41
+
42
+ Our contributions are as follows: First, we propose low-rank bilinear pooling to approximate full bilinear pooling to substitute compact bilinear pooling. Second, Multimodal Low-rank Bilinear Attention Networks (MLB) having an efficient attention mechanism using low-rank bilinear pooling is proposed for visual question-answering tasks. MLB achieves a new state-of-the-art performance, and has a better parsimonious property. Finally, ablation studies to explore alternative choices, e.g. network depth, non-linear functions, and shortcut connections, are conducted.
43
+
44
+ # 2 LOW-RANK BILINEAR MODEL
45
+
46
+ Bilinear models use a quadratic expansion of linear transformation considering every pair of features.
47
+
48
+ $$
49
+ f _ { i } = \sum _ { j = 1 } ^ { N } \sum _ { k = 1 } ^ { M } w _ { i j k } x _ { j } y _ { k } + b _ { i } = \mathbf { x } ^ { T } \mathbf { W } _ { i } \mathbf { y } + b _ { i }
50
+ $$
51
+
52
+ where $\mathbf { x }$ and $\mathbf { y }$ are input vectors, ${ \bf W } _ { i } \in \mathbb { R } ^ { N \times M }$ is a weight matrix for the output $f _ { i }$ , and $b _ { i }$ is a bias for the output $f _ { i }$ . Notice that the number of parameters is $L \times ( N \times M + 1 )$ including a bias vector b, where $L$ is the number of output features.
53
+
54
+ Pirsiavash et al. (2009) suggest a low-rank bilinear method to reduce the rank of the weight matrix $\mathbf { W } _ { i }$ to have less number of parameters for regularization. They rewrite the weight matrix as $\mathbf { W } _ { i } =$ $\mathbf { U } _ { i } \mathbf { V } _ { i } ^ { T }$ where $\mathbf { U } _ { i } \in \mathbb { R } ^ { N \times d }$ and $\mathbf { V } _ { i } \in \mathbb { R } ^ { M \times d }$ , which imposes a restriction on the rank of $\mathbf { W } _ { i }$ to be at most $d \leq \operatorname* { m i n } ( N , M )$ .
55
+
56
+ Based on this idea, $f _ { i }$ can be rewritten as follows:
57
+
58
+ $$
59
+ f _ { i } = \mathbf { x } ^ { T } \mathbf { W } _ { i } \mathbf { y } + b _ { i } = \mathbf { x } ^ { T } \mathbf { U } _ { i } \mathbf { V } _ { i } ^ { T } \mathbf { y } + b _ { i } = \mathbb { 1 } ^ { T } ( \mathbf { U } _ { i } ^ { T } \mathbf { x } \circ \mathbf { V } _ { i } ^ { T } \mathbf { y } ) + b _ { i }
60
+ $$
61
+
62
+ where $\mathbb { 1 } \in \mathbb { R } ^ { d }$ denotes a column vector of ones, and $\circ$ denotes Hadamard product. Still, we need two third-order tensors, $\mathbf { U }$ and $\mathbf { V }$ , for a feature vector f , whose elements are $\{ f _ { i } \}$ . To reduce the order of the weight tensors by one, we replace $\mathbb { 1 }$ with $\mathbf { P } \in \mathbb { R } ^ { d \times c }$ and $b _ { i }$ with $\mathbf { b } \in \mathbb { R } ^ { c }$ , then, redefine as ${ \bf U } \in \mathbb { R } ^ { N \times d }$ and $\mathbf { V } \in \mathbb { R } ^ { M \times d }$ to get a projected feature vector $\mathbf { f } \in \mathbb { R } ^ { c }$ . Then, we get:
63
+
64
+ $$
65
+ \mathbf { f } = \mathbf { P } ^ { T } ( \mathbf { U } ^ { T } \mathbf { x } \circ \mathbf { V } ^ { T } \mathbf { y } ) + \mathbf { b }
66
+ $$
67
+
68
+ where $d$ and $c$ are hyperparameters to decide the dimension of joint embeddings and the output dimension of low-rank bilinear models, respectively.
69
+
70
+ # 3 LOW-RANK BILINEAR POOLING
71
+
72
+ A low-rank bilinear model in Equation 3 can be implemented using two linear mappings without biases for embedding two input vectors, Hadamard product to learn joint representations in a multiplicative way, and a linear mapping with a bias to project the joint representations into an output vector for a given output dimension. Then, we use this structure as a pooling method for deep neural networks. Now, we discuss possible variations of low-rank bilinear pooling based on this model inspired by studies of neural networks.
73
+
74
+ # 3.1 FULL MODEL
75
+
76
+ In Equation 3, linear projections, $U$ and $V$ , can have their own bias vectors. As a result, linear models for each input vectors, $\mathbf { x }$ and $\mathbf { y }$ , are integrated in an additive form, called as full model for linear regression in statistics:
77
+
78
+ $$
79
+ \begin{array} { r } { \begin{array} { c } { \mathbf { f } = \mathbf { P } ^ { T } \big ( ( \mathbf { U } ^ { T } \mathbf { x } + \mathbf { b } _ { x } \big ) \circ ( \mathbf { V } ^ { T } \mathbf { y } + \mathbf { b } _ { y } ) \big ) + \mathbf { b } } \\ { = \mathbf { P } ^ { T } ( \mathbf { U } ^ { T } \mathbf { x } \circ \mathbf { V } ^ { T } \mathbf { y } + \mathbf { U } ^ { T } \mathbf { x } + \mathbf { V } ^ { \prime T } \mathbf { y } ) + \mathbf { b } ^ { \prime } . } \\ { \mathbf { J } ^ { \prime T } = \mathrm { d i a g } ( \mathbf { b } _ { y } ) \cdot \mathbf { U } ^ { T } , \mathbf { V } ^ { \prime T } = \mathrm { d i a g } ( \mathbf { b } _ { x } ) \cdot \mathbf { V } ^ { T } , \mathrm { a n d } \ \mathbf { b } ^ { \prime } = \mathbf { b } + \mathbf { P } ^ { T } ( \mathbf { b } _ { x } \circ \mathbf { b } _ { y } ) . } \end{array} } \end{array}
80
+ $$
81
+
82
+ # 3.2 NONLINEAR ACTIVATION
83
+
84
+ Applying non-linear activation functions may help to increase representative capacity of model. The first candidate is to apply non-linear activation functions right after linear mappings for input vectors.
85
+
86
+ $$
87
+ \mathbf { f } = \mathbf { P } ^ { T } \big ( \sigma ( \mathbf { U } ^ { T } \mathbf { x } ) \circ \sigma ( \mathbf { V } ^ { T } \mathbf { y } ) \big ) + \mathbf { b }
88
+ $$
89
+
90
+ where $\sigma$ denotes an arbitrary non-linear activation function, which maps any real values into a finite interval, e.g. sigmoid or tanh. If two inputs come from different modalities, statistics of two inputs may be quite different from each other, which may result an interference. Since the gradient with respect to each input is directly dependent on the other input in Hadamard product of two inputs.
91
+
92
+ Additional applying an activation function after the Hadamard product is not appropriate, since activation functions doubly appear in calculating gradients. However, applying the activation function only after the Hadamard product would be alternative choice (We explore this option in Section 5) as follows:
93
+
94
+ $$
95
+ \mathbf { f } = \mathbf { P } ^ { T } \sigma \big ( \mathbf { U } ^ { T } \mathbf { x } \circ \mathbf { V } ^ { T } \mathbf { y } \big ) + \mathbf { b } .
96
+ $$
97
+
98
+ Note that using the activation function in low-rank bilinear pooling can be found in an implementation of simple baseline for the VQA dataset (Antol et al., 2015) without an interpretation of low-rank bilinear pooling. However, notably, Wu et al. (2016c) studied learning behavior of multiplicative integration in RNNs with discussions and empirical evidences.
99
+
100
+ # 3.3 SHORTCUT CONNECTION
101
+
102
+ When we apply two previous techniques, full model and non-linear activation, linear models of two inputs are nested by the non-linear activation functions. To avoid this unfortunate situation, we add shortcut connections as explored in residual learning (He et al., 2016).
103
+
104
+ $$
105
+ \mathbf { f } = \mathbf { P } ^ { T } \big ( \sigma ( \mathbf { U } ^ { T } \mathbf { x } ) \circ \sigma ( \mathbf { V } ^ { T } \mathbf { y } ) \big ) + h _ { x } ( \mathbf { x } ) + h _ { y } ( \mathbf { y } ) + \mathbf { b }
106
+ $$
107
+
108
+ where $h _ { x }$ and $h _ { y }$ are shortcut mappings. For linear projection, the shortcut mappings are linear mappings. Notice that this formulation is a generalized form of the one-block layered MRN (Kim et al., 2016b). Though, the shortcut connections are not used in our proposed model, as explained in Section 6.
109
+
110
+ # 4 MULTIMODAL LOW-RANK BILINEAR ATTENTION NETWORKS
111
+
112
+ In this section, we apply low-rank bilinear pooling to propose an efficient attention mechanism for visual question-answering tasks, based on the interpretation of previous section. We assumed that inputs are a question embedding vector $\mathbf { q }$ and a set of visual feature vectors $\mathbf { F }$ over $S \times S$ lattice space.
113
+
114
+ # 4.1 LOW-RANK BILINEAR POOLING IN ATTENTION MECHANISM
115
+
116
+ Attention mechanism uses an attention probability distribution $\alpha$ over $S \times S$ lattice space. Here, using low-rank bilinear pooling, $\alpha$ is defined as
117
+
118
+ $$
119
+ \alpha = \mathrm { s o f t m a x } \Big ( \mathbf { P } _ { \alpha } ^ { T } \big ( \sigma ( \mathbf { U } _ { \mathbf { q } } ^ { T } \mathbf { q } \cdot \mathbb { 1 } ^ { T } ) \circ \sigma ( \mathbf { V } _ { \mathbf { F } } ^ { T } \mathbf { F } ^ { T } ) \big ) \Big )
120
+ $$
121
+
122
+ where $\alpha \in \mathbb { R } ^ { G \times S ^ { 2 } }$ , $\mathbf { P } _ { \alpha } \in \mathbb { R } ^ { d \times G }$ , $\sigma$ is a hyperbolic tangent function, ${ \bf U _ { q } } \in \mathbb { R } ^ { N \times d }$ , ${ \bf q } \in \mathbb { R } ^ { N }$ , $\mathbb { 1 } \in \mathbb { R } ^ { S ^ { 2 } }$ , ${ \bf V _ { F } } \in \mathbb { R } ^ { M \times d }$ , and $\mathbf { F } \in \mathbb { R } ^ { S ^ { 2 } \times M }$ . If $G > 1$ , multiple glimpses are explicitly expressed as in Fukui et al. (2016), conceptually similar to Jaderberg et al. (2015). And, the softmax function applies to each row vector of $\alpha$ . The bias terms are omitted for simplicity.
123
+
124
+ # 4.2 MULTIMODAL LOW-RANK BILINEAR ATTENTION NETWORKS
125
+
126
+ Attended visual feature $\hat { \mathbf { v } }$ is a linear combination of $\mathbf { F } _ { i }$ with coefficients $\alpha _ { g , i }$ . Each attention probability distribution $\alpha _ { g }$ is for a glimpse $g$ . For $G > 1$ , $\hat { \mathbf { v } }$ is the concatenation of resulting vectors $\hat { \mathbf { v } } _ { g }$ as
127
+
128
+ $$
129
+ \hat { \mathbf { v } } = \prod _ { g = 1 } ^ { G } \sum _ { s = 1 } ^ { S ^ { 2 } } \alpha _ { g , s } \mathbf { F } _ { s }
130
+ $$
131
+
132
+ where $| |$ denotes concatenation of vectors. The posterior probability distribution is an output of a softmax function, whose input is the result of another low-rank bilinear pooling of $\mathbf { q }$ and $\hat { \mathbf { v } }$ as
133
+
134
+ $$
135
+ \begin{array} { r } { p ( a | \mathbf { q } , \mathbf { F } ; \Theta ) = \underset { a \in \Omega } { \mathrm { s o f t m a x } } \left( \mathbf { P } _ { o } ^ { T } \big ( \sigma ( \mathbf { W } _ { \mathbf { q } } ^ { T } \mathbf { q } ) \circ \sigma ( \mathbf { V } _ { \hat { \mathbf { v } } } ^ { T } \hat { \mathbf { v } } ) \big ) \right) } \\ { \hat { a } = \underset { a \in \Omega } { \mathrm { a r g m a x } } p ( a | \mathbf { q } , \mathbf { F } ; \Theta ) \quad } \end{array}
136
+ $$
137
+
138
+ where $\hat { a }$ denotes a predicted answer, $\Omega$ is a set of candidate answers and $\Theta$ is an aggregation of entire model parameters.
139
+
140
+ # 5 EXPERIMENTS
141
+
142
+ In this section, we conduct six experiments to select the proposed model, Multimodal Low-rank Bilinear Attention Networks (MLB). Each experiment controls other factors except one factor to assess the effect on accuracies. Based on MRN (Kim et al., 2016b), we start our assessments with an initial option of $G = 1$ and shortcut connections of MRN, called as Multimodal Attention Residual Networks (MARN). Notice that we use one embeddings for each visual feature for better performance, based on our preliminary experiment (not shown). We attribute this choice to the attention mechanism for visual features, which provides more capacity to learn visual features. We use the same hyper-parameters of MRN (Kim et al., 2016b), without any explicit mention of this.
143
+
144
+ The VQA dataset (Antol et al., 2015) is used as a primary dataset, and, for data augmentation, question-answering annotations of Visual Genome (Krishna et al., 2016) are used. Validation is performed on the VQA test-dev split, and model comparison is based on the results of the VQA test-standard split. For the comprehensive reviews of VQA tasks, please refer to Wu et al. (2016a) and Kafle & Kanan (2016a). The details about preprocessing, question and vision embedding, and hyperparameters used in our experiments are described in Appendix A. The source code for the experiments is available in Github repository1.
145
+
146
+ Number of Learning Blocks Kim et al. (2016b) argue that three-block layered MRN shows the best performance among one to four-block layered models, taking advantage of residual learning. However, we speculate that an introduction of attention mechanism makes deep networks hard to optimize. Therefore, we explore the number of learning blocks of MARN, which have an attention mechanism using low-rank bilinear pooling.
147
+
148
+ Number of Glimpses Fukui et al. (2016) show that the attention mechanism of two glimpses was an optimal choice. In a similar way, we assess one, two, and four-glimpse models.
149
+
150
+ Table 1: The accuracies of our experimental model, Multimodal Attention Residual Networks (MARN), with respect to the number of learning blocks (L#), the number of glimpse (G#), the position of activation functions (tanh), answer sampling, shortcut connections, and data augmentation using Visual Genome dataset, for VQA test-dev split and Open-Ended task. Note that our proposed model, Multimodal Low-rank Bilinear Attention Networks (MLB) have no shortcut connections, compared with MARN. MODEL: model name, SIZE: number of parameters, ALL: overall accuracy in percentage, Y/N: yes/no, NUM: numbers, and ETC: others. Since Fukui et al. (2016) only report the accuracy of the ensemble model on the test-standard, the test-dev results of their single models are included in the last sector. Some figures have different precisions which are rounded. $^ *$ indicates the selected model for each experiment.
151
+
152
+ <table><tr><td>MODEL</td><td>SIZE</td><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td></tr><tr><td>MRN-L3</td><td>65.0M</td><td>61.68</td><td>82.28</td><td></td><td></td></tr><tr><td>MARN-L3</td><td>65.5M</td><td></td><td>82.31</td><td>38.82</td><td>49.25 50.83</td></tr><tr><td></td><td></td><td>62.37</td><td></td><td>38.06</td><td></td></tr><tr><td>MARN-L2</td><td>56.3M</td><td>63.92</td><td>82.88</td><td>37.98</td><td>53.59</td></tr><tr><td>* MARN-L1</td><td>47.0M</td><td>63.79</td><td>82.73</td><td>37.92</td><td>53.46</td></tr><tr><td>MARN-L1-G1</td><td>47.0M</td><td>63.79</td><td>82.73</td><td>37.92</td><td>53.46</td></tr><tr><td>* MARN-L1-G2</td><td>57.7M</td><td>64.53</td><td>83.41</td><td>37.82</td><td>54.43</td></tr><tr><td>MARN-L1-G4</td><td>78.9M</td><td>64.61</td><td>83.72</td><td>37.86</td><td>54.33</td></tr><tr><td>No Tanh</td><td>57.7M</td><td>63.58</td><td>83.18</td><td>37.23</td><td>52.79</td></tr><tr><td>* Before-Product</td><td>57.7M</td><td>64.53</td><td>83.41</td><td>37.82</td><td>54.43</td></tr><tr><td>After-Product</td><td>57.7M</td><td>64.53</td><td>83.53</td><td>37.06</td><td>54.50</td></tr><tr><td>Mode Answer</td><td>57.7M</td><td>64.53</td><td>83.41</td><td>37.82</td><td>54.43</td></tr><tr><td> * Sampled Answer</td><td>57.7M</td><td>64.80</td><td>83.59</td><td>38.38</td><td>54.73</td></tr><tr><td>Shortcut * No Shortcut</td><td>57.7M 51.9M</td><td>64.80</td><td>83.59</td><td>38.38</td><td>54.73</td></tr><tr><td>MLB</td><td>51.9M</td><td>65.08</td><td>84.14</td><td>38.21</td><td>54.87</td></tr><tr><td>MLB+VG</td><td>51.9M</td><td>65.08 65.84</td><td>84.14 83.87</td><td>38.21 37.87</td><td>54.87</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>56.76</td></tr><tr><td>MCB+Att (Fukui et al., 2016)</td><td>69.2M</td><td>64.2</td><td>82.2</td><td>37.7</td><td>54.8</td></tr><tr><td>MCB+Att+GloVe (Fukui et al., 2016) MCB+Att+Glove+VG (Fukui et al., 2016)</td><td>70.5M 70.5M</td><td>64.7 65.4</td><td>82.5 82.3</td><td>37.6 37.2</td><td>55.6 57.4</td></tr></table>
153
+
154
+ Non-Linearity We assess three options applying non-linearity on low-rank bilinear pooling, vanilla, before Hadamard product as in Equation 5, and after Hadamard product as in Equation 6.
155
+
156
+ Answer Sampling VQA (Antol et al., 2015) dataset has ten answers from unique persons for each question, while Visual Genome (Krishna et al., 2016) dataset has a single answer for each question. Since difficult or ambiguous questions may have divided answers, the probabilistic sampling from the distribution of answers can be utilized to optimize for the multiple answers. An instance 2 can be found in Fukui et al. (2016). We simplify the procedure as follows:
157
+
158
+ $$
159
+ \begin{array} { r } { p ( a _ { 1 } ) = \left\{ \begin{array} { l l } { | a _ { 1 } | / { \Sigma _ { i } } | a _ { i } | , } & { \mathrm { i f ~ } | a _ { 1 } | \geq 3 } \\ { 0 , } & { \mathrm { o t h e r w i s e } } \end{array} \right. } \\ { p ( a _ { 0 } ) = 1 - p ( a _ { 1 } ) } \end{array}
160
+ $$
161
+
162
+ where $\left| a _ { i } \right|$ denotes the number of unique answer $a _ { i }$ in a set of multiple answers, $a _ { 0 }$ denotes a mode, which is the most frequent answer, and $a _ { 1 }$ denotes the secondly most frequent answer. We define the divided answers as having at least three answers which are the secondly frequent one, for the evaluation metric of VQA (Antol et al., 2015),
163
+
164
+ $$
165
+ \begin{array} { r } { \mathrm { a c c u r a c y } ( a _ { k } ) = \operatorname* { m i n } \left( | a _ { k } | / 3 , 1 \right) . } \end{array}
166
+ $$
167
+
168
+ Table 2: The VQA test-standard results to compare with state-of-the-art. Notice that these results are trained by provided VQA train and validation splits, without any data augmentation.
169
+
170
+ <table><tr><td rowspan="2">MODEL</td><td colspan="3">Open-Ended</td><td colspan="2">MC</td></tr><tr><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td><td>ALL</td></tr><tr><td>iBOWIMG (Zhou et al., 2015)</td><td>55.89</td><td></td><td>34.98</td><td>42.62</td><td></td></tr><tr><td>DPPnet (Noh et al., 2016)</td><td>57.36</td><td>76.76 80.28</td><td>36.92</td><td>42.24</td><td>61.97 62.69</td></tr><tr><td>Deeper LSTM+Normalized CNN (Antol et al., 2015)</td><td>58.16</td><td>80.56</td><td>36.53</td><td>43.73</td><td>63.09</td></tr><tr><td>SMem (Xu&amp; Saenko,2016)</td><td>58.24</td><td>80.80</td><td>37.53</td><td>43.48</td><td>1</td></tr><tr><td>Ask Your Neurons (Malinowski et al., 2016)</td><td>58.43</td><td>78.24</td><td>36.27</td><td>46.32</td><td></td></tr><tr><td>SAN (Yang et al., 2016)</td><td>58.85</td><td>79.11</td><td>36.41</td><td>46.42</td><td>=</td></tr><tr><td>D-NMN (Andreas et al., 2016)</td><td>59.44</td><td>80.98</td><td>37.48</td><td>45.81</td><td>=</td></tr><tr><td>ACK (Wu et al., 2016b)</td><td>59.44</td><td>81.07</td><td>37.12</td><td>45.83</td><td>=</td></tr><tr><td>FDA (Ilievski et al., 2016)</td><td>59.54</td><td>81.34</td><td></td><td></td><td>=</td></tr><tr><td>HYBRID (Kafle &amp; Kanan,2016b)</td><td>60.06</td><td>80.34</td><td>35.67 37.82</td><td>46.10</td><td>64.18</td></tr><tr><td>DMN+ (Xiong et al., 2016)</td><td>60.36</td><td></td><td></td><td>47.56</td><td>1</td></tr><tr><td></td><td></td><td>80.43</td><td>36.82</td><td>48.33</td><td>1</td></tr><tr><td>MRN (Kim et al., 2016b)</td><td>61.84</td><td>82.39</td><td>38.23</td><td>49.41</td><td>66.33</td></tr><tr><td>HieCoAtt (Lu et al., 2016)</td><td>62.06</td><td>79.95</td><td>38.22</td><td>51.95</td><td>66.07</td></tr><tr><td>RAU (Noh &amp; Han,2016)</td><td>63.2</td><td>81.7</td><td>38.2</td><td>52.8</td><td>67.3</td></tr><tr><td>MLB (ours)</td><td>65.07</td><td>84.02</td><td>37.90</td><td>54.77</td><td>68.89</td></tr></table>
171
+
172
+ The rate of the divided answers is approximately $1 6 . 4 0 \%$ , and only $0 . 2 3 \%$ of questions have more than two divided answers in VQA dataset. We assume that it eases the difficulty of convergence without severe degradation of performance.
173
+
174
+ Shortcut Connection The contribution of shortcut connections for residual learning is explored based on the observation of the competitive performance of single-block layered model. Since the usefulness of shortcut connections is linked to the network depth (He et al., 2016).
175
+
176
+ Data Augmentation The data augmentation with Visual Genome (Krishna et al., 2016) question answer annotations is explored. Visual Genome (Krishna et al., 2016) originally provides 1.7 Million visual question answer annotations. After aligning to VQA, the valid number of question-answering pairs for training is 837,298, which is for distinct 99,280 images.
177
+
178
+ # 6 RESULTS
179
+
180
+ The six experiments are conducted sequentially. Each experiment determines experimental variables one by one. Refer to Table 1, which has six sectors divided by mid-rules.
181
+
182
+ # 6.1 SIX EXPERIMENT RESULTS
183
+
184
+ Number of Learning Blocks Though, MRN (Kim et al., 2016b) has the three-block layered architecture, MARN shows the best performance with two-block layered models $( 6 3 . 9 2 \% )$ . For the multiple glimpse models in the next experiment, we choose one-block layered model for its simplicity to extend, and competitive performance $( 6 3 . 7 9 \% )$ ).
185
+
186
+ Number of Glimpses Compared with the results of Fukui et al. (2016), four-glimpse MARN $( 6 4 . 6 1 \% )$ is better than other comparative models. However, for a parsimonious choice, two-glimpse MARN $( 6 4 . 5 3 \% )$ is chosen for later experiments. We speculate that multiple glimpses are one of key factors for the competitive performance of MCB (Fukui et al., 2016), based on a large margin in accuracy, compared with one-glimpse MARN $( 6 3 . 7 9 \%$ ).
187
+
188
+ Non-Linearity The results confirm that activation functions are useful to improve performances. Surprisingly, there is no empirical difference between two options, before-Hadamard product and after-Hadamard product. This result may build a bridge to relate with studies on multiplicative integration with recurrent neural networks (Wu et al., 2016c).
189
+
190
+ Answer Sampling Sampled answers $( 6 4 . 8 0 \% )$ result better performance than mode answers $( 6 4 . 5 3 \% )$ . It confirms that the distribution of answers from annotators can be used to improve the performance. However, the number of multiple answers is usually limited due to the cost of data collection.
191
+
192
+ Shortcut Connection Though, MRN (Kim et al., 2016b) effectively uses shortcut connections to improve model performance, one-block layered MARN shows better performance without the shortcut connection. In other words, the residual learning is not used in our proposed model, MLB. It seems that there is a trade-off between introducing attention mechanism and residual learning. We leave a careful study on this trade-off for future work.
193
+
194
+ Data Augmentation Data augmentation using Visual Genome (Krishna et al., 2016) question answer annotations significantly improves the performance by $0 . 7 6 \%$ in accuracy for VQA test-dev split. Especially, the accuracy of others (ETC)-type answers is notably improved from the data augmentation.
195
+
196
+ # 6.2 COMPARISON WITH STATE-OF-THE-ART
197
+
198
+ The comparison with other single models on VQA test-standard is shown in Table 2. The overall accuracy of our model is approximately $1 . 9 \%$ above the next best model (Noh & Han, 2016) on the Open-Ended task of VQA. The major improvements are from yes-or-no (Y/N) and others (ETC)- type answers. In Table 3, we also report the accuracy of our ensemble model to compare with other ensemble models on VQA test-standard, which won 1st to 5th places in VQA Challenge $2 0 1 6 ^ { 3 }$ . We beat the previous state-of-the-art with a margin of $0 . 4 2 \%$ .
199
+
200
+ Table 3: The VQA test-standard results for ensemble models to compare with state-of-the-art. For unpublished entries, their team names are used instead of their model names. Some of their figures are updated after the challenge.
201
+
202
+ <table><tr><td rowspan="2">MODEL</td><td colspan="4">Open-Ended</td><td>MC</td></tr><tr><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td><td>ALL</td></tr><tr><td>RAU (Noh &amp; Han,2016)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>64.12</td><td>83.33</td><td>38.02</td><td>53.37</td><td>67.34</td></tr><tr><td>MRN (Kim et al., 2016b)</td><td>63.18</td><td>83.16</td><td>39.14</td><td>51.33</td><td>67.54</td></tr><tr><td>DLAIT (not published)</td><td>64.83</td><td>83.23</td><td>40.80</td><td>54.32</td><td>68.30</td></tr><tr><td>Naver Labs (not published)</td><td>64.79</td><td>83.31</td><td>38.70</td><td>54.79</td><td>69.26</td></tr><tr><td>MCB (Fukui et al., 2016)</td><td>66.47</td><td>83.24</td><td>39.47</td><td>58.00</td><td>70.10</td></tr><tr><td>MLB (ours)</td><td>66.89</td><td>84.61</td><td>39.07</td><td>57.79</td><td>70.29</td></tr><tr><td>Human (Antol et al., 2015)</td><td>83.30</td><td>95.77</td><td>83.39</td><td>72.67</td><td>91.54</td></tr></table>
203
+
204
+ # 7 RELATED WORKS
205
+
206
+ MRN (Kim et al., 2016b) proposes multimodal residual learning with Hadamard product of low-rank bilinear pooling. However, their utilization of low-rank bilinear pooling is limited to joint residual mapping function for multimodal residual learning. Higher-order Boltzmann Machines (Memisevic & Hinton, 2007; 2010) use Hadamard product to capture the interactions of input, output, and hidden representations for energy function. Wu et al. (2016c) propose the recurrent neural networks using Hadamard product to integrate multiplicative interactions among hidden representations in the model. For details of these related works, please refer to Appendix D.
207
+
208
+ Yet, compact bilinear pooling or multimodal compact bilinear pooling (Gao et al., 2016; Fukui et al., 2016) is worth to discuss and carefully compare with our method.
209
+
210
+ # 7.1 COMPACT BILINEAR POOLING
211
+
212
+ Compact bilinear pooling (Gao et al., 2016) approximates full bilinear pooling using a samplingbased computation, Tensor Sketch Projection (Charikar et al., 2002; Pham & Pagh, 2013):
213
+
214
+ $$
215
+ \begin{array} { r l } & { \Psi ( x \otimes y , h , s ) = \Psi ( x , h , s ) * \Psi ( y , h , s ) } \\ & { \qquad = \mathrm { F F T } ^ { - 1 } ( \mathrm { F F T } ( \Psi ( x , h , s ) \circ \mathrm { F F T } ( \Psi ( y , h , s ) ) } \end{array}
216
+ $$
217
+
218
+ where $\otimes$ denotes outer product, $^ *$ denotes convolution, $\begin{array} { r } { \Psi ( v , h , s ) _ { i } : = \sum _ { j : h _ { j } = i } s _ { j } \cdot v _ { j } } \end{array}$ , FFT denotes Fast Fourier Transform, $d$ denotes an output dimension, $x , y , h , s \in \mathbb { R } ^ { n }$ , $x$ and $y$ are inputs, and $h$ and $s$ are random variables. $h _ { i }$ is sampled from $\{ 1 , . . . , d \}$ , and $s _ { i }$ is sampled from $\{ - 1 , 1 \}$ , then, both random variables are fixed for further usage. Even if the dimensions of $x$ and $y$ are different from each other, it can be used for multimodal learning (Fukui et al., 2016).
219
+
220
+ Similarly to Equation 1, compact bilinear pooling can be described as follows:
221
+
222
+ $$
223
+ f _ { i } = \mathbf { x } ^ { T } \mathcal { W } _ { i } \mathbf { y }
224
+ $$
225
+
226
+ where $\mathcal { W } _ { i j k } = s _ { i j k } w _ { i j k }$ if $s _ { i j k }$ is sampled from $\{ - 1 , 1 \}$ , $w _ { i j k }$ is sampled from $\{ \mathbf { P } _ { i 1 } , \mathbf { P } _ { i 2 } , \dots , \mathbf { P } _ { i d } \}$ , and the compact bilinear pooling is followed by a fully connected layer $\mathbf { P } \in \mathbb { R } ^ { | \Omega | \times d }$ . Then, this method can be formulated as a hashing trick (Weinberger et al., 2009; Chen et al., 2015) to share randomly chosen bilinear weights using $d$ parameters for a output value, in a way that a single parameter is shared by $N M / d$ bilinear terms in expectation, with the variance of $\dot { N } M ( d - 1 ) \big / { d ^ { 2 } }$ (See Appendix B).
227
+
228
+ In comparison with our method, their method approximates a three-dimensional weight tensor in bilinear pooling with a two-dimensional matrix $\mathbf { P }$ , which is larger than the concatenation of three two-dimensional matrices for low-rank bilinear pooling. The ratio of the number of parameters for a single output to the total number of parameters for $| \Omega |$ outputs is $d / d | \Omega | = 1 / | \Omega |$ (Fukui et al., 2016), vs. $d ( N + M + 1 ) / d ( N + M + | \Omega | ) = ( N + M + 1 ) / ( N + M + | \Omega | ) \approx 2 / 3$ (ours), since our method uses a three-way factorization. Hence, more parameters are allocated to each bilinear approximation than compact bilinear pooling does, effectively managing overall parameters guided by back-propagation algorithm.
229
+
230
+ MCB (Fukui et al., 2016), which uses compact bilinear pooling for multimodal tasks, needs to set the dimension of output $d$ to 16K, to reduce the bias induced by the fixed random variables $h$ and $s$ . As a result, the majority of model parameters $( 1 6 \mathsf { K } \times 3 \mathsf { K } = 4 8 \mathsf { M } )$ are concentrated on the last fully connected layer, which makes a fan-out structure. So, the total number of parameters of MCB is highly sensitive to the number of classes, which is approximately $6 9 . 2 \mathbf { M }$ for $M C B + a t t$ , and $7 0 . 5 \mathbf { M }$ for $M C B + a t t + G l o V e$ . Yet, the total number of parameters of our proposed model (MLB) is 51.9M, which is more robust to the number of classes having $d = 1 . 2 \mathrm { K }$ , which has a similar role in model architecture.
231
+
232
+ # 8 CONCLUSIONS
233
+
234
+ We suggest a low-rank bilinear pooling method to replace compact bilinear pooling, which has a fan-out structure, and needs complex computations. Low-rank bilinear pooling has a flexible structure using linear mapping and Hadamard product, and a better parsimonious property, compared with compact bilinear pooling. We achieve new state-of-the-art results on the VQA dataset using a similar architecture of Fukui et al. (2016), replacing compact bilinear pooling with low-rank bilinear pooling. We believe our method could be applicable to other bilinear learning tasks.
235
+
236
+ # ACKNOWLEDGMENTS
237
+
238
+ The authors would like to thank Patrick Emaase for helpful comments and editing. Also, we are thankful to anonymous reviewers who provided comments to improve this paper. This work was supported by NAVER LABS Corp. & NAVER Corp. and partly by the Korea government (IITP-R0126-16-1072-SW.StarLab, KEIT10044009-HRI.MESSI, KEIT-10060086-RISF, ADD-UD130070ID-BMRR). The part of computing resources used in this study was generously shared by Standigm Inc.
239
+
240
+ # REFERENCES
241
+
242
+ Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Learning to Compose Neural Networks for Question Answering. arXiv preprint arXiv:1601.01705, 2016.
243
+
244
+ Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. VQA: Visual Question Answering. IEEE International Conference on Computer Vision, 2015.
245
+
246
+ Moses Charikar, Kevin Chen, and Martin Farach-Colton. Finding frequent items in data streams. In International Colloquium on Automata, Languages, and Programming, pp. 693–703. Springer, 2002.
247
+
248
+ Wenlin Chen, James T. Wilson, Stephen Tyree, Kilian Q. Weinberger, and Yixin Chen. Compressing Neural Networks with the Hashing Trick. In 32nd International Conference on Machine Learning, pp. 2285–2294, 2015.
249
+
250
+ Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger ¨ Schwenk, and Yoshua Bengio. Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation. In 2014 Conference on Empirical Methods in Natural Language Processing, pp. 1724–1734, 2014.
251
+
252
+ Akira Fukui, Dong Huk Park, Daylen Yang, Anna Rohrbach, Trevor Darrell, and Marcus Rohrbach. Multimodal Compact Bilinear Pooling for Visual Question Answering and Visual Grounding. arXiv preprint arXiv:1606.01847, 2016.
253
+
254
+ Yarin Gal. A Theoretically Grounded Application of Dropout in Recurrent Neural Networks. arXiv preprint arXiv:1512.05287, 2015.
255
+
256
+ Yang Gao, Oscar Beijbom, Ning Zhang, and Trevor Darrell. Compact Bilinear Pooling. In IEEE Conference on Computer Vision and Pattern Recognition, 2016.
257
+
258
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In IEEE Conference on Computer Vision and Pattern Recognition, 2016.
259
+
260
+ Sepp Hochreiter and Jurgen Schmidhuber. Long Short-Term Memory. ¨ Neural computation, 9(8):1735–1780, 1997.
261
+
262
+ Ilija Ilievski, Shuicheng Yan, and Jiashi Feng. A Focused Dynamic Attention Model for Visual Question Answering. arXiv preprint arXiv:1604.01485, 2016.
263
+
264
+ Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial Transformer Networks. In Advances in Neural Information Processing Systems 28, pp. 2008–2016, 2015.
265
+
266
+ Kushal Kafle and Christopher Kanan. Visual Question Answering: Datasets, Algorithms, and Future Challenges. arXiv preprint arXiv:1610.01465, 2016a.
267
+
268
+ Kushal Kafle and Christopher Kanan. Answer-Type Prediction for Visual Question Answering. IEEE Conference on Computer Vision and Pattern Recognition, pp. 4976–4984, 2016b.
269
+
270
+ Jin-Hwa Kim, Jeonghee Kim, Jung-Woo Ha, and Byoung-Tak Zhang. TrimZero: A Torch Recurrent Module for Efficient Natural Language Processing. In KIIS Spring Conference, volume 26, pp. 165–166, 2016a.
271
+
272
+ Jin-Hwa Kim, Sang-Woo Lee, Dong-Hyun Kwak, Min-Oh Heo, Jeonghee Kim, Jung-Woo Ha, and Byoung-Tak Zhang. Multimodal Residual Learning for Visual QA. arXiv preprint arXiv:1606.01455, 2016b.
273
+
274
+ Ryan Kiros, Yukun Zhu, Ruslan Salakhutdinov, Richard S. Zemel, Antonio Torralba, Raquel Urtasun, and Sanja Fidler. Skip-Thought Vectors. In Advances in Neural Information Processing Systems 28, pp. 3294–3302, 2015.
275
+
276
+ Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, Michael Bernstein, and Li Fei-Fei. Visual genome: Connecting language and vision using crowdsourced dense image annotations. arXiv preprint arXiv:1602.07332, 2016.
277
+
278
+ Nicholas Leonard, Sagar Waghmare, Yang Wang, and Jin-Hwa Kim. rnn´ $:$ Recurrent Library for Torch. arXiv preprint arXiv:1511.07889, 2015.
279
+
280
+ Tsung-Yu Lin, Aruni RoyChowdhury, and Subhransu Maji. Bilinear CNN Models for Fine-grained Visual Recognition. In IEEE International Conference on Computer Vision, pp. 1449–1457, 2015.
281
+
282
+ Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Hierarchical Question-Image Co-Attention for Visual Question Answering. arXiv preprint arXiv:1606.00061, 2016.
283
+
284
+ Mateusz Malinowski, Marcus Rohrbach, and Mario Fritz. Ask Your Neurons: A Deep Learning Approach to Visual Question Answering. arXiv preprint arXiv:1605.02697, 2016.
285
+ Roland Memisevic and Geoffrey E Hinton. Unsupervised learning of image transformations. In IEEE Conference on Computer Vision and Pattern Recognition, 2007.
286
+ Roland Memisevic and Geoffrey E Hinton. Learning to represent spatial transformations with factored higherorder Boltzmann machines. Neural computation, 22(6):1473–1492, 2010.
287
+ Hyeonwoo Noh and Bohyung Han. Training Recurrent Answering Units with Joint Loss Minimization for VQA. arXiv preprint arXiv:1606.03647, 2016.
288
+ Hyeonwoo Noh, Paul Hongsuck Seo, and Bohyung Han. Image Question Answering using Convolutional Neural Network with Dynamic Parameter Prediction. In IEEE Conference on Computer Vision and Pattern Recognition, 2016.
289
+ Ninh Pham and Rasmus Pagh. Fast and scalable polynomial kernels via explicit feature maps. In 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 239–247. ACM, 2013.
290
+ Hamed Pirsiavash, Deva Ramanan, and Charless C. Fowlkes. Bilinear classifiers for visual recognition. In Advances in Neural Information Processing Systems 22, pp. 1482–1490, 2009.
291
+ Joshua B Tenenbaum and William T Freeman. Separating style and content with bilinear models. Neural computation, 12(6):1247–1283, 2000.
292
+ Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 4, 2012.
293
+ Kilian Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. Feature hashing for large scale multitask learning. In 26th International Conference on Machine Learning, pp. 1113–1120, 2009.
294
+ Qi Wu, Damien Teney, Peng Wang, Chunhua Shen, Anthony Dick, and Anton van den Hengel. Visual Question Answering: A Survey of Methods and Datasets. arXiv preprint arXiv:1607.05910, 2016a.
295
+ Qi Wu, Peng Wang, Chunhua Shen, Anthony Dick, and Anton van den Hengel. Ask Me Anything: Free-form Visual Question Answering Based on Knowledge from External Sources. In IEEE Conference on Computer Vision and Pattern Recognition, 2016b.
296
+ Yuhuai Wu, Saizheng Zhang, Ying Zhang, Yoshua Bengio, and Ruslan Salakhutdinov. On Multiplicative Integration with Recurrent Neural Networks. arXiv preprint arXiv:1606.06630, 2016c.
297
+ Caiming Xiong, Stephen Merity, and Richard Socher. Dynamic Memory Networks for Visual and Textual Question Answering. In 33rd International Conference on Machine Learning, 2016.
298
+ Huijuan Xu and Kate Saenko. Ask, Attend and Answer: Exploring Question-Guided Spatial Attention for Visual Question Answering. In European Conference on Computer Vision, 2016.
299
+ Zichao Yang, Xiaodong He, Jianfeng Gao, Li Deng, and Alex Smola. Stacked Attention Networks for Image Question Answering. In IEEE Conference on Computer Vision and Pattern Recognition, 2016.
300
+ Bolei Zhou, Yuandong Tian, Sainbayar Sukhbaatar, Arthur Szlam, and Rob Fergus. Simple Baseline for Visual Question Answering. arXiv preprint arXiv:1512.02167, 2015.
301
+
302
+ # Appendix
303
+
304
+ A EXPERIMENT DETAILS
305
+
306
+ A.1 PREPROCESSING
307
+
308
+ We follow the preprocessing procedure of Kim et al. (2016b). Here, we remark some details of it, and changes.
309
+
310
+ # A.1.1 QUESTION EMBEDDING
311
+
312
+ The $9 0 . 4 5 \%$ of questions for the 2K-most frequent answers are used. The vocabulary size of questions is 15,031. GRU (Cho et al., 2014) is used for question embedding. Based on earlier studies (Noh et al., 2016; Kim et al., 2016b), a word embedding matrix and a GRU are initialized with Skip-thought Vector pre-trained model (Kiros et al., 2015). As a result, question vectors have 2,400 dimensions.
313
+
314
+ For efficient computation of variable-length questions, Kim et al. (2016a) is used for the GRU. Moreover, for regularization, Bayesian Dropout (Gal, 2015) which is implemented in Leonard et al. (2015) is applied while ´ training.
315
+
316
+ # A.2 VISION EMBEDDING
317
+
318
+ ResNet-152 networks (He et al., 2016) are used for feature extraction. The dimensionality of an input image is $3 \times 4 4 8 \times 4 4 8$ . The outputs of the last convolution layer is used, which have $2 , 0 4 8 \times 1 4 \times 1 4$ dimensions.
319
+
320
+ # A.3 HYPERPARAMETERS
321
+
322
+ The hyperparameters used in MLB of Table 2 are described in Table 4. The batch size is 100, and the number of iterations is fixed to 250K. For data augmented models, a simplified early stopping is used, starting from 250K to 350K-iteration for every 25K iterations (250K, 275K, 300K, 325K, and 350K; at most five points) to avoid exhaustive submissions to VQA test-dev evaluation server. RMSProp (Tieleman & Hinton, 2012) is used for optimization.
323
+
324
+ Though, the size of joint embedding size $d$ is borrowed from Kim et al. (2016b), a grid search on $d$ confirms this choice in our model as shown in Table 5.
325
+
326
+ Table 4: Hyperparameters used in MLB (single model in Table 2).
327
+
328
+ <table><tr><td>SYMBOL</td><td>VALUE</td><td>DESCRIPTION</td></tr><tr><td>S</td><td>14</td><td></td></tr><tr><td>N</td><td>2,400</td><td>attention lattice size</td></tr><tr><td>M</td><td>2.048</td><td>question embedding size channel size of extracted visual features</td></tr><tr><td>d</td><td>1,200</td><td>joint embedding size</td></tr><tr><td>G</td><td>2</td><td>number of glimpses</td></tr><tr><td>||</td><td>2,000</td><td>number of candidate answers</td></tr><tr><td>n</td><td>3e-4</td><td>learning rate</td></tr><tr><td>入</td><td>0.99997592083</td><td>learning rate decay factor at every iteration</td></tr><tr><td>p</td><td>0.5</td><td>dropout rate</td></tr><tr><td>0</td><td>±10</td><td>gradient clipping threshold</td></tr></table>
329
+
330
+ # A.4 MODEL SCHEMA
331
+
332
+ Figure 1 shows a schematic diagram of MLB, where ◦ denotes Hadamard product, and $\Sigma$ denotes a linear combination of visual feature vectors using coefficients, which is the output of softmax function. If $G > 1$ , the softmax function is applied to each row vectors of an output matrix (Equation 8), and we concatenate the resulting vectors of the $G$ linear combinations (Equation 9).
333
+
334
+ # A.5 ENSEMBLE OF SEVEN MODELS
335
+
336
+ The test-dev results for individual models consisting of our ensemble model is presented in Table 6.
337
+
338
+ Table 5: The effect of joint embedding size $d$
339
+
340
+ <table><tr><td colspan="6">Open-Ended</td></tr><tr><td>d</td><td>SIZE</td><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td></tr><tr><td>800</td><td>45.0M</td><td>64.89</td><td>84.08</td><td>38.15</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>54.55</td></tr><tr><td>1000</td><td>48.4M</td><td>65.06</td><td>84.18</td><td>38.01</td><td>54.85</td></tr><tr><td>1200</td><td>51.9M</td><td>65.08</td><td>84.14</td><td>38.21</td><td>54.87</td></tr><tr><td>1400</td><td>55.4M</td><td>64.94</td><td>84.13</td><td>38.00</td><td>54.64</td></tr><tr><td>1600</td><td>58.8M</td><td>65.02</td><td>84.15</td><td>37.79</td><td>54.85</td></tr></table>
341
+
342
+ ![](images/02dfd00cc4bb19b3dfb924b4f29abc92eecf2d16eabbc678aa69dd6173ad0cbb.jpg)
343
+ Figure 1: A schematic diagram of MLB. Replicate module copies an question embedding vector to match with $S ^ { 2 }$ visual feature vectors. Conv modules indicate $1 \times 1$ convolution to transform a given channel space, which is computationally equivalent to linear projection for channels.
344
+
345
+ Table 6: The individual models used in our ensemble model in Table 3.
346
+
347
+ <table><tr><td colspan="2"></td><td colspan="4">Open-Ended</td></tr><tr><td>MODEL</td><td>GLIMPSE</td><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>MLB MLB</td><td>22</td><td>64.89 65.08</td><td>84.13 84.14</td><td>37.85 38.21</td><td>54.57 54.87</td></tr><tr><td>MLB</td><td>4</td><td>65.01</td><td>84.09</td><td>37.66</td><td>54.88</td></tr><tr><td>MLB-VG</td><td>2</td><td>65.76</td><td>83.64</td><td>37.57</td><td>56.86</td></tr><tr><td>MLB-VG</td><td>2</td><td>65.84</td><td>83.87</td><td>37.87</td><td>56.76</td></tr><tr><td>MLB-VG</td><td>3</td><td>66.05</td><td>83.88</td><td>38.13</td><td>57.13</td></tr><tr><td>MLB-VG</td><td>4</td><td>66.09</td><td>83.59</td><td>38.32</td><td>57.42</td></tr><tr><td>Ensemble</td><td></td><td>66.77</td><td>84.54</td><td>39.21</td><td>57.81</td></tr></table>
348
+
349
+ # B UNDERSTANDING OF MULTIMODAL COMPACT BILINEAR POOLING
350
+
351
+ In this section, the algorithm of multimodal compact bilinear pooling (MCB) (Gao et al., 2016; Fukui et al., 2016) is described as a kind of hashing tick (Chen et al., 2015).
352
+
353
+ $\mathbf { x } \in \mathbb { R } ^ { n _ { x } }$ and $\mathbf { y } \in \mathbb { R } ^ { n _ { y } }$ are the given inputs, $\Phi ( \mathbf { x } , \mathbf { y } ) \in \mathbb { R } ^ { d }$ is the output. Random variables $\mathbf { h } _ { x } \in \mathbb { N } ^ { n _ { x } }$ and $\mathbf { h } _ { y } \in \mathbb { N } ^ { n _ { y } }$ are uniformly sampled from $\{ 1 , \ldots , d \}$ , and $\mathbf { s } _ { x } \in \mathbb { Z } ^ { n _ { x } }$ and $\mathbf { s } _ { y } \in \mathbb { Z } ^ { n _ { y } }$ are uniformly sampled from $\{ - 1 , 1 \}$ . Then, Count Sketch projection function $\Psi$ (Charikar et al., 2002) projects $\mathbf { x }$ and $\mathbf { y }$ to intermediate representations $\Psi ( \mathbf { x } , \mathbf { h } _ { \boldsymbol { x } } , \mathbf { s } _ { \boldsymbol { x } } ) \in \mathbb { R } ^ { d }$ and $\boldsymbol { \Psi } ( \mathbf { y } , \mathbf { h } _ { y } , \mathbf { s } _ { y } ) \in \mathbb { R } ^ { d }$ , which is defined as:
354
+
355
+ $$
356
+ \Psi ( \mathbf { v } , \mathbf { h } , \mathbf { s } ) _ { i } : = \sum _ { j : h _ { j } = i } s _ { j } \cdot v _ { j }
357
+ $$
358
+
359
+ Notice that both $\mathbf { h }$ and s remain as constants after initialization (Fukui et al., 2016).
360
+
361
+ The probability of $h _ { x j } = i$ and $h _ { y j } = i$ for the given $j$ is $1 / d ^ { 2 }$ . Hence, the expected number of bilinear terms in $\Psi ( \mathbf { x } , \mathbf { h } _ { x } , \mathbf { s } _ { x } ) _ { i } \Psi ( \mathbf { y } , \mathbf { h } _ { y } , \mathbf { s } _ { y } ) _ { i }$ is $\dot { ( } n _ { x } n _ { y } ) / d ^ { 2 }$ . Since, the output $\Phi ( \mathbf { x } , \mathbf { y } )$ is a result of circular convolution of $\Psi ( \mathbf { x } , \mathbf { h } _ { x } , \mathbf { s } _ { x } )$ and $\Psi ( \mathbf { y } , \mathbf { h } _ { y } , \mathbf { s } _ { y } )$ , the expected number of bilinear terms in $\Phi ( \mathbf { x } , \mathbf { y } ) _ { i }$ is $( n _ { x } n _ { y } ) / d$ . Likewise, the probability of that a bilinear term is allocated in $\Phi ( \mathbf { x } , \mathbf { y } ) _ { i }$ is $1 / d$ . The probability distribution of the number of bilinear terms in $\Phi ( \mathbf { x } , \mathbf { y } ) _ { i }$ follows a multinomial distribution, whose mean is $( n _ { x } n _ { y } ) / d$ and variance is $( n _ { x } n _ { y } ) ( d - 1 ) / d ^ { 2 }$ .
362
+
363
+ Linear projection after the multimodal compact bilinear pooling provides weights on the bilinear terms, in a way that a shared weight is assigned to $\Phi ( \bar { \mathbf { x } } , \mathbf { y } ) _ { i }$ , which has $( n _ { x } n _ { y } ) / d$ bilinear terms in expectation, though each bilinear term can have a different sign induced by both ${ \bf s } _ { x }$ and $\mathbf { s } _ { y }$ .
364
+
365
+ HashedNets (Chen et al., 2015) propose a method to compress neural networks using a low-cost hashing function (Weinberger et al., 2009), which is the same function of $\Psi ( \mathbf { v } , \mathbf { h } , \mathbf { s } )$ . They randomly group a portion of connections in neural networks to share a single weight. We speculate that multimodal compact bilinear pooling uses the hashing tick to reduce the number of full bilinear weights with the rate of $d / ( n _ { x } n _ { y } )$ . However, this approximation is limited to two-way interaction, compared with three-way factorization in our method.
366
+
367
+ # C REPLACEMENT OF LOW-RANK BILINEAR POOLING
368
+
369
+ For the explicit comparison with compact bilinear pooling, we explicitly substitute compact bilinear pooling for low-rank bilinear pooling to control everything else, which means that the rest of the model architecture is exactly the same.
370
+
371
+ According to Fukui et al. (2016), we use MCB followed by Signed Square Root, L2-Normalization, Dropout $( p { = } 0 . 1 )$ , and linear projection from 16,000-dimension to the target dimension. Also, Dropout $\scriptstyle ( p = 0 . 3 )$ for a question embedding vector. Note that an overall architecture for multimodal learning of both is the same. Experimental details are referenced from the implementation 4 of Fukui et al. (2016).
372
+
373
+ For test-dev split, our version of MCB gets $6 1 . 4 8 \%$ for overall accuracy (yes/no: $8 2 . 4 8 \%$ , number: $3 7 . 0 6 \%$ , and other: $4 9 . 0 7 \%$ ) vs. $6 5 . 0 8 \%$ (ours, MLB in Table 1). Additionally, if the nonlinearity in getting attention distributions is increased as the original MCB does using ReLU, we get $6 2 . 1 1 \%$ for overall accuracy (yes/no: $8 2 . 5 5 \%$ , number: $3 7 . 1 8 \%$ , and other: $5 0 . 3 0 \%$ ), which is still the below of our performance 5.
374
+
375
+ We do not see it as a decisive evidence of the better performance of MLB, but as a reference (the comparison of test-dev results may be also unfair.), since an optimal architecture and hyperparameters may be required for each method.
376
+
377
+ # D RELATED WORKS
378
+
379
+ D.1 MULTIMODAL RESIDUAL NETWORKS
380
+
381
+ MRN (Kim et al., 2016b) is an implicit attentional model using multimodal residual learning with Hadamard product which does not have any explicit attention mechanism.
382
+
383
+ $$
384
+ \begin{array} { r l } & { \mathcal { F } ^ { ( k ) } ( \mathbf { q } , \mathbf { v } ) = \sigma ( \mathbf { W } _ { \mathbf { q } } ^ { ( k ) } \mathbf { q } ) \circ \sigma ( \mathbf { W } _ { 2 } ^ { ( k ) } \sigma ( \mathbf { W } _ { 1 } ^ { ( k ) } \mathbf { v } ) ) } \\ & { \quad H _ { L } ( \mathbf { q } , \mathbf { v } ) = \mathbf { W } _ { \mathbf { q } ^ { \prime } } \mathbf { q } + \displaystyle \sum _ { l = 1 } ^ { L } \mathbf { W } _ { \mathcal { F } ^ { ( l ) } } \mathcal { F } ^ { ( l ) } ( H _ { l - 1 } , \mathbf { v } ) } \end{array}
385
+ $$
386
+
387
+ where $\mathbf { W } _ { * }$ are parameter matrices, $L$ is the number of learning blocks, $H _ { 0 } = \mathbf { q }$ , $\mathbf { W _ { q ^ { \prime } } } = \Pi _ { l = 1 } ^ { L } \mathbf { W } _ { \mathbf { q ^ { \prime } } } ^ { ( l ) }$ , an d $\mathbf { W } _ { \mathcal { F } ^ { ( l ) } } = \Pi _ { m = l + 1 } ^ { L } \mathbf { W } _ { \mathbf { q } ^ { \prime } } ^ { ( m ) }$ . Notice that these equations can be generalized by Equation 7.
388
+
389
+ However, an explicit attention mechanism allows the use of lower-level visual features than fully-connected layers, and, more importantly, spatially selective learning. Recent state-of-the-art methods use a variant of an explicit attention mechanism in their models (Lu et al., 2016; Noh & Han, 2016; Fukui et al., 2016). Note that shortcut connections of MRN are not used in the proposed Multimodal Low-rank Bilinear (MLB) model. Since, it does not have any performance gain due to not stacking multiple layers in MLB. We leave the study of residual learning for MLB for future work, which may leverage the excellency of bilinear models as suggested in Wu et al. (2016a).
390
+
391
+ # D.2 HIGHER-ORDER BOLTZMANN MACHINES
392
+
393
+ A similar model can be found in a study of Higher-Order Boltzmann Machines (Memisevic & Hinton, 2007; 2010). They suggest a factoring method for the three-way energy function to capture correlations among input, output, and hidden representations.
394
+
395
+ $$
396
+ \begin{array} { l } { { \displaystyle - E ( { \bf y } , { \bf h } ; { \bf x } ) = \sum _ { f } \big ( \sum _ { i } x _ { i } w _ { i f } ^ { x } \big ) \big ( \sum _ { j } y _ { j } w _ { j f } ^ { y } \big ) \big ( \sum _ { k } h _ { k } w _ { k f } ^ { h } \big ) + \sum _ { k } w _ { k } ^ { h } h _ { k } + \sum _ { j } w _ { j } ^ { y } y _ { j } } \ ~ } \\ { { \displaystyle = \big ( { \bf x } ^ { T } { \bf W } ^ { x } \circ { \bf y } ^ { T } { \bf W } ^ { y } \circ { \bf h } ^ { T } { \bf W } ^ { h } \big ) \mathbb { 1 } + { \bf h } ^ { T } { \bf w } ^ { h } + { \bf y } ^ { T } { \bf w } ^ { y } } } \end{array}
397
+ $$
398
+
399
+ Setting aside of bias terms, the $I \times J \times K$ parameter tensor of unfactored Higher-Order Boltzmann Machines is replaced with three matrices, $\mathbf { W } ^ { x } \in \mathbb { R } ^ { I \times F }$ , $\mathbf { W } ^ { y } \in \mathbb { R } ^ { J \times F }$ , and $\mathbf { W } ^ { h } \in \mathbb { R } ^ { K \times F }$ .
400
+
401
+ # D.3 MULTIPLICATIVE INTEGRATION WITH RECURRENT NEURAL NETWORKS
402
+
403
+ Most of recurrent neural networks, including vanilla RNNs, Long Short Term Memory networks (Hochreiter & Schmidhuber, 1997) and Gated Recurrent Units (Cho et al., 2014), share a common expression as follows:
404
+
405
+ $$
406
+ \phi ( \mathbf { W _ { X } } + \mathbf { U _ { h } } + \mathbf { b } )
407
+ $$
408
+
409
+ where $\phi$ is a non-linear function, $\mathbf { W } \in \mathbb { R } ^ { d \times n }$ , $\mathbf { x } \in \mathbb { R } ^ { n }$ , $\mathbf { U } \in \mathbb { R } ^ { d \times m }$ , $\mathbf { h } \in \mathbb { R } ^ { m }$ , and $\mathbf { b } \in \mathbb { R } ^ { d }$ is a bias vector.
410
+ Note that, usually, $\mathbf { x }$ is an input state vector and $\mathbf { h }$ is an hidden state vector in recurrent neural networks.
411
+
412
+ Wu et al. (2016c) propose a new design to replace the additive expression with a multiplicative expression using Hadamard product as
413
+
414
+ $$
415
+ \phi ( \mathbf { W } \mathbf { x } \circ \mathbf { U } \mathbf { h } + \mathbf { b } ) .
416
+ $$
417
+
418
+ Moreover, a general formulation of this multiplicative integration can be described as
419
+
420
+ $$
421
+ \phi ( \pmb { \alpha } \circ \mathbf { W } \mathbf { x } \circ \mathbf { U } \mathbf { h } + \mathbf { W } \mathbf { x } \circ \pmb { \beta } _ { 1 } + \mathbf { U } \mathbf { h } \circ \pmb { \beta } _ { 2 } + \mathbf { b } )
422
+ $$
423
+
424
+ which is reminiscent of full model in Section 3.1.
parse/train/r1rhWnZkg/r1rhWnZkg_content_list.json ADDED
@@ -0,0 +1,2019 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "HADAMARD PRODUCT FOR LOW-RANK BILINEAR POOLING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 612,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Jin-Hwa Kim \nInterdisciplinary Program in Cognitive Science \nSeoul National University \nSeoul 08826, Republic of Korea \njhkim@bi.snu.ac.kr \nKyoung-Woon On \nSchool of Computer Science and Engineering \nSeoul National University \nSeoul 08826, Republic of Korea \nkwon@bi.snu.ac.kr ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 491,
21
+ 239
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "",
28
+ "bbox": [
29
+ 513,
30
+ 170,
31
+ 813,
32
+ 239
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Woosang Lim School of Computing, KAIST Daejeon 34141, Republic of Korea quasar17@kaist.ac.kr ",
39
+ "bbox": [
40
+ 184,
41
+ 261,
42
+ 413,
43
+ 316
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Jeonghee Kim & Jung-Woo Ha NAVER LABS Corp. & NAVER Corp. Gyeonggi-do 13561, Republic of Korea {jeonghee.kim,jungwoo.ha}@navercorp.com ",
50
+ "bbox": [
51
+ 433,
52
+ 261,
53
+ 813,
54
+ 318
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Byoung-Tak Zhang \nSchool of Computer Science and Engineering & Interdisciplinary Program in Cognitive Science \nSeoul National University & Surromind Robotics \nSeoul 08826, Republic of Korea \nbtzhang@bi.snu.ac.kr ",
61
+ "bbox": [
62
+ 184,
63
+ 338,
64
+ 812,
65
+ 407
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "ABSTRACT ",
72
+ "text_level": 1,
73
+ "bbox": [
74
+ 454,
75
+ 444,
76
+ 544,
77
+ 459
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "Bilinear models provide rich representations compared with linear models. They have been applied in various visual tasks, such as object recognition, segmentation, and visual question-answering, to get state-of-the-art performances taking advantage of the expanded representations. However, bilinear representations tend to be high-dimensional, limiting the applicability to computationally complex tasks. We propose low-rank bilinear pooling using Hadamard product for an efficient attention mechanism of multimodal learning. We show that our model outperforms compact bilinear pooling in visual question-answering tasks with the state-of-the-art results on the VQA dataset, having a better parsimonious property. ",
84
+ "bbox": [
85
+ 233,
86
+ 479,
87
+ 764,
88
+ 604
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "1 INTRODUCTION ",
95
+ "text_level": 1,
96
+ "bbox": [
97
+ 176,
98
+ 638,
99
+ 336,
100
+ 654
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Bilinear models (Tenenbaum & Freeman, 2000) provide richer representations than linear models. To exploit this advantage, fully-connected layers in neural networks can be replaced with bilinear pooling. The outer product of two vectors (or Kroneker product for matrices) is involved in bilinear pooling, as a result of this, all pairwise interactions among given features are considered. Recently, a successful application of this technique is used for fine-grained visual recognition (Lin et al., 2015). ",
107
+ "bbox": [
108
+ 174,
109
+ 672,
110
+ 825,
111
+ 742
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "However, bilinear pooling produces a high-dimensional feature of quadratic expansion, which may constrain a model structure and computational resources. For example, an outer product of two feature vectors, both of which have 1K-dimensionality, produces a million-dimensional feature vector. Therefore, for classification problems, the choice of the number of target classes is severely constrained, because the number of parameters for a standard linear classifier is determined by multiplication of the size of the high-dimensional feature vector and the number of target classes. ",
118
+ "bbox": [
119
+ 173,
120
+ 750,
121
+ 823,
122
+ 833
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Compact bilinear pooling (Gao et al., 2016) reduces the quadratic expansion of dimensionality by two orders of magnitude, retaining the performance of the full bilinear pooling. This approximation uses sampling-based computation, Tensor Sketch Projection (Charikar et al., 2002; Pham & Pagh, 2013), which utilizes an useful property that $\\Psi ( x \\otimes y , h , s ) = \\Psi ( x , h , s ) * \\Psi ( y , h , s )$ , which means the projection of outer product of two vectors is the convolution of two projected vectors. Here, $\\Psi$ is the proposed projection function, and, $h$ and $s$ are randomly sampled parameters by the algorithm. ",
129
+ "bbox": [
130
+ 174,
131
+ 840,
132
+ 825,
133
+ 924
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Nevertheless, compact bilinear pooling embraces two shortcomings. One comes from the sampling approach. Compact bilinear pooling relies on a favorable property, $E [ \\langle \\Psi ( x , h , s ) , \\Psi ( y , h , s ) \\rangle ] \\stackrel { - } { = }$ $\\langle { \\bar { x } } , y \\rangle$ , which provides a basis to use projected features instead of original features. Yet, calculating the exact expectation is computationally intractable, so, the random parameters, $h$ and $s$ are fixed during training and evaluation. This practical choice leads to the second. The projected dimension of compact bilinear pooling should be large enough to minimize the bias from the fixed parameters. Practical choices are 10K and 16K for 512 and 4096-dimensional inputs, respectively (Gao et al., 2016; Fukui et al., 2016). Though, these compacted dimensions are reduced ones by two orders of magnitude compared with full bilinear pooling, such high-dimensional features could be a bottleneck for computationally complex models. ",
140
+ "bbox": [
141
+ 173,
142
+ 103,
143
+ 825,
144
+ 242
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "We propose low-rank bilinear pooling using Hadamard product (element-wise multiplication), which is commonly used in various scientific computing frameworks as one of tensor operations. The proposed method factors a three-dimensional weight tensor for bilinear pooling into three twodimensional weight matrices, which enforces the rank of the weight tensor to be low-rank. As a result, two input feature vectors linearly projected by two weight matrices, respectively, are computed by Hadamard product, then, followed by a linear projection using the third weight matrix. For example, the projected vector $\\mathbf { z }$ is represented by $\\mathbf { W } _ { z } ^ { T } ( \\mathbf { \\bar { W } } _ { \\mathbf { x } } ^ { T } \\mathbf { x } \\circ \\mathbf { W } _ { \\mathbf { y } } ^ { T } \\mathbf { y } )$ , where $\\circ$ denotes Hadamard product. ",
151
+ "bbox": [
152
+ 174,
153
+ 250,
154
+ 825,
155
+ 361
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "We also explore to add non-linearity using non-linear activation functions into the low-rank bilinear pooling, and shortcut connections inspired by deep residual learning (He et al., 2016). Then, we show that it becomes a simple baseline model (Antol et al., 2015) or one-learning block of Multimodal Residual Networks (Kim et al., 2016b) as a low-rank bilinear model, yet, this interpretation has not be done. ",
162
+ "bbox": [
163
+ 174,
164
+ 367,
165
+ 825,
166
+ 438
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "Our contributions are as follows: First, we propose low-rank bilinear pooling to approximate full bilinear pooling to substitute compact bilinear pooling. Second, Multimodal Low-rank Bilinear Attention Networks (MLB) having an efficient attention mechanism using low-rank bilinear pooling is proposed for visual question-answering tasks. MLB achieves a new state-of-the-art performance, and has a better parsimonious property. Finally, ablation studies to explore alternative choices, e.g. network depth, non-linear functions, and shortcut connections, are conducted. ",
173
+ "bbox": [
174
+ 173,
175
+ 444,
176
+ 825,
177
+ 529
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "2 LOW-RANK BILINEAR MODEL ",
184
+ "text_level": 1,
185
+ "bbox": [
186
+ 176,
187
+ 547,
188
+ 457,
189
+ 564
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Bilinear models use a quadratic expansion of linear transformation considering every pair of features. ",
196
+ "bbox": [
197
+ 174,
198
+ 579,
199
+ 820,
200
+ 608
201
+ ],
202
+ "page_idx": 1
203
+ },
204
+ {
205
+ "type": "equation",
206
+ "img_path": "images/b2d37c1aa53127ee64092ac63a94e7823e9aca19d7706f5a4c637af482aed212.jpg",
207
+ "text": "$$\nf _ { i } = \\sum _ { j = 1 } ^ { N } \\sum _ { k = 1 } ^ { M } w _ { i j k } x _ { j } y _ { k } + b _ { i } = \\mathbf { x } ^ { T } \\mathbf { W } _ { i } \\mathbf { y } + b _ { i }\n$$",
208
+ "text_format": "latex",
209
+ "bbox": [
210
+ 349,
211
+ 608,
212
+ 647,
213
+ 654
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "where $\\mathbf { x }$ and $\\mathbf { y }$ are input vectors, ${ \\bf W } _ { i } \\in \\mathbb { R } ^ { N \\times M }$ is a weight matrix for the output $f _ { i }$ , and $b _ { i }$ is a bias for the output $f _ { i }$ . Notice that the number of parameters is $L \\times ( N \\times M + 1 )$ including a bias vector b, where $L$ is the number of output features. ",
220
+ "bbox": [
221
+ 174,
222
+ 657,
223
+ 825,
224
+ 702
225
+ ],
226
+ "page_idx": 1
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "Pirsiavash et al. (2009) suggest a low-rank bilinear method to reduce the rank of the weight matrix $\\mathbf { W } _ { i }$ to have less number of parameters for regularization. They rewrite the weight matrix as $\\mathbf { W } _ { i } =$ $\\mathbf { U } _ { i } \\mathbf { V } _ { i } ^ { T }$ where $\\mathbf { U } _ { i } \\in \\mathbb { R } ^ { N \\times d }$ and $\\mathbf { V } _ { i } \\in \\mathbb { R } ^ { M \\times d }$ , which imposes a restriction on the rank of $\\mathbf { W } _ { i }$ to be at most $d \\leq \\operatorname* { m i n } ( N , M )$ . ",
231
+ "bbox": [
232
+ 174,
233
+ 707,
234
+ 825,
235
+ 765
236
+ ],
237
+ "page_idx": 1
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "Based on this idea, $f _ { i }$ can be rewritten as follows: ",
242
+ "bbox": [
243
+ 174,
244
+ 770,
245
+ 500,
246
+ 785
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "equation",
252
+ "img_path": "images/c8ba30439def76dbdaae3686d1e9ce0183a81d8ca50e2570334a474435dd4529.jpg",
253
+ "text": "$$\nf _ { i } = \\mathbf { x } ^ { T } \\mathbf { W } _ { i } \\mathbf { y } + b _ { i } = \\mathbf { x } ^ { T } \\mathbf { U } _ { i } \\mathbf { V } _ { i } ^ { T } \\mathbf { y } + b _ { i } = \\mathbb { 1 } ^ { T } ( \\mathbf { U } _ { i } ^ { T } \\mathbf { x } \\circ \\mathbf { V } _ { i } ^ { T } \\mathbf { y } ) + b _ { i }\n$$",
254
+ "text_format": "latex",
255
+ "bbox": [
256
+ 284,
257
+ 787,
258
+ 714,
259
+ 806
260
+ ],
261
+ "page_idx": 1
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "where $\\mathbb { 1 } \\in \\mathbb { R } ^ { d }$ denotes a column vector of ones, and $\\circ$ denotes Hadamard product. Still, we need two third-order tensors, $\\mathbf { U }$ and $\\mathbf { V }$ , for a feature vector f , whose elements are $\\{ f _ { i } \\}$ . To reduce the order of the weight tensors by one, we replace $\\mathbb { 1 }$ with $\\mathbf { P } \\in \\mathbb { R } ^ { d \\times c }$ and $b _ { i }$ with $\\mathbf { b } \\in \\mathbb { R } ^ { c }$ , then, redefine as ${ \\bf U } \\in \\mathbb { R } ^ { N \\times d }$ and $\\mathbf { V } \\in \\mathbb { R } ^ { M \\times d }$ to get a projected feature vector $\\mathbf { f } \\in \\mathbb { R } ^ { c }$ . Then, we get: ",
266
+ "bbox": [
267
+ 173,
268
+ 813,
269
+ 825,
270
+ 869
271
+ ],
272
+ "page_idx": 1
273
+ },
274
+ {
275
+ "type": "equation",
276
+ "img_path": "images/3b35d4f381a8613802c6e7a8eaa32ece584c94a7fdc512375af705b620af8fc5.jpg",
277
+ "text": "$$\n\\mathbf { f } = \\mathbf { P } ^ { T } ( \\mathbf { U } ^ { T } \\mathbf { x } \\circ \\mathbf { V } ^ { T } \\mathbf { y } ) + \\mathbf { b }\n$$",
278
+ "text_format": "latex",
279
+ "bbox": [
280
+ 406,
281
+ 872,
282
+ 591,
283
+ 891
284
+ ],
285
+ "page_idx": 1
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "where $d$ and $c$ are hyperparameters to decide the dimension of joint embeddings and the output dimension of low-rank bilinear models, respectively. ",
290
+ "bbox": [
291
+ 174,
292
+ 895,
293
+ 825,
294
+ 924
295
+ ],
296
+ "page_idx": 1
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "3 LOW-RANK BILINEAR POOLING ",
301
+ "text_level": 1,
302
+ "bbox": [
303
+ 174,
304
+ 102,
305
+ 472,
306
+ 118
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "A low-rank bilinear model in Equation 3 can be implemented using two linear mappings without biases for embedding two input vectors, Hadamard product to learn joint representations in a multiplicative way, and a linear mapping with a bias to project the joint representations into an output vector for a given output dimension. Then, we use this structure as a pooling method for deep neural networks. Now, we discuss possible variations of low-rank bilinear pooling based on this model inspired by studies of neural networks. ",
313
+ "bbox": [
314
+ 174,
315
+ 132,
316
+ 825,
317
+ 217
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "3.1 FULL MODEL ",
324
+ "text_level": 1,
325
+ "bbox": [
326
+ 174,
327
+ 232,
328
+ 310,
329
+ 247
330
+ ],
331
+ "page_idx": 2
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "In Equation 3, linear projections, $U$ and $V$ , can have their own bias vectors. As a result, linear models for each input vectors, $\\mathbf { x }$ and $\\mathbf { y }$ , are integrated in an additive form, called as full model for linear regression in statistics: ",
336
+ "bbox": [
337
+ 173,
338
+ 258,
339
+ 825,
340
+ 300
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "equation",
346
+ "img_path": "images/060811fc702dd44e96df44d884cd979f014c1548c72ec172e2418d9dcc7cbe00.jpg",
347
+ "text": "$$\n\\begin{array} { r } { \\begin{array} { c } { \\mathbf { f } = \\mathbf { P } ^ { T } \\big ( ( \\mathbf { U } ^ { T } \\mathbf { x } + \\mathbf { b } _ { x } \\big ) \\circ ( \\mathbf { V } ^ { T } \\mathbf { y } + \\mathbf { b } _ { y } ) \\big ) + \\mathbf { b } } \\\\ { = \\mathbf { P } ^ { T } ( \\mathbf { U } ^ { T } \\mathbf { x } \\circ \\mathbf { V } ^ { T } \\mathbf { y } + \\mathbf { U } ^ { T } \\mathbf { x } + \\mathbf { V } ^ { \\prime T } \\mathbf { y } ) + \\mathbf { b } ^ { \\prime } . } \\\\ { \\mathbf { J } ^ { \\prime T } = \\mathrm { d i a g } ( \\mathbf { b } _ { y } ) \\cdot \\mathbf { U } ^ { T } , \\mathbf { V } ^ { \\prime T } = \\mathrm { d i a g } ( \\mathbf { b } _ { x } ) \\cdot \\mathbf { V } ^ { T } , \\mathrm { a n d } \\ \\mathbf { b } ^ { \\prime } = \\mathbf { b } + \\mathbf { P } ^ { T } ( \\mathbf { b } _ { x } \\circ \\mathbf { b } _ { y } ) . } \\end{array} } \\end{array}\n$$",
348
+ "text_format": "latex",
349
+ "bbox": [
350
+ 176,
351
+ 301,
352
+ 710,
353
+ 366
354
+ ],
355
+ "page_idx": 2
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "3.2 NONLINEAR ACTIVATION ",
360
+ "text_level": 1,
361
+ "bbox": [
362
+ 174,
363
+ 377,
364
+ 392,
365
+ 392
366
+ ],
367
+ "page_idx": 2
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "Applying non-linear activation functions may help to increase representative capacity of model. The first candidate is to apply non-linear activation functions right after linear mappings for input vectors. ",
372
+ "bbox": [
373
+ 174,
374
+ 404,
375
+ 823,
376
+ 433
377
+ ],
378
+ "page_idx": 2
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/6e3f87de598c474780ba63f7337254c539d18f27d536c782a8eb440b9b0cec4d.jpg",
383
+ "text": "$$\n\\mathbf { f } = \\mathbf { P } ^ { T } \\big ( \\sigma ( \\mathbf { U } ^ { T } \\mathbf { x } ) \\circ \\sigma ( \\mathbf { V } ^ { T } \\mathbf { y } ) \\big ) + \\mathbf { b }\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 382,
387
+ 434,
388
+ 614,
389
+ 454
390
+ ],
391
+ "page_idx": 2
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "where $\\sigma$ denotes an arbitrary non-linear activation function, which maps any real values into a finite interval, e.g. sigmoid or tanh. If two inputs come from different modalities, statistics of two inputs may be quite different from each other, which may result an interference. Since the gradient with respect to each input is directly dependent on the other input in Hadamard product of two inputs. ",
396
+ "bbox": [
397
+ 174,
398
+ 455,
399
+ 825,
400
+ 512
401
+ ],
402
+ "page_idx": 2
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Additional applying an activation function after the Hadamard product is not appropriate, since activation functions doubly appear in calculating gradients. However, applying the activation function only after the Hadamard product would be alternative choice (We explore this option in Section 5) as follows: ",
407
+ "bbox": [
408
+ 174,
409
+ 518,
410
+ 825,
411
+ 574
412
+ ],
413
+ "page_idx": 2
414
+ },
415
+ {
416
+ "type": "equation",
417
+ "img_path": "images/3991245d523220c91566d09eaab166e69961ce7e24b397cc5c2149fdef0db04d.jpg",
418
+ "text": "$$\n\\mathbf { f } = \\mathbf { P } ^ { T } \\sigma \\big ( \\mathbf { U } ^ { T } \\mathbf { x } \\circ \\mathbf { V } ^ { T } \\mathbf { y } \\big ) + \\mathbf { b } .\n$$",
419
+ "text_format": "latex",
420
+ "bbox": [
421
+ 397,
422
+ 575,
423
+ 598,
424
+ 595
425
+ ],
426
+ "page_idx": 2
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "Note that using the activation function in low-rank bilinear pooling can be found in an implementation of simple baseline for the VQA dataset (Antol et al., 2015) without an interpretation of low-rank bilinear pooling. However, notably, Wu et al. (2016c) studied learning behavior of multiplicative integration in RNNs with discussions and empirical evidences. ",
431
+ "bbox": [
432
+ 173,
433
+ 597,
434
+ 825,
435
+ 654
436
+ ],
437
+ "page_idx": 2
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "3.3 SHORTCUT CONNECTION ",
442
+ "text_level": 1,
443
+ "bbox": [
444
+ 176,
445
+ 669,
446
+ 390,
447
+ 684
448
+ ],
449
+ "page_idx": 2
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "When we apply two previous techniques, full model and non-linear activation, linear models of two inputs are nested by the non-linear activation functions. To avoid this unfortunate situation, we add shortcut connections as explored in residual learning (He et al., 2016). ",
454
+ "bbox": [
455
+ 174,
456
+ 695,
457
+ 825,
458
+ 737
459
+ ],
460
+ "page_idx": 2
461
+ },
462
+ {
463
+ "type": "equation",
464
+ "img_path": "images/b64d3aea3793525d7a3e16fc54e72954c7bf4c32a561f69d396367f588230a3c.jpg",
465
+ "text": "$$\n\\mathbf { f } = \\mathbf { P } ^ { T } \\big ( \\sigma ( \\mathbf { U } ^ { T } \\mathbf { x } ) \\circ \\sigma ( \\mathbf { V } ^ { T } \\mathbf { y } ) \\big ) + h _ { x } ( \\mathbf { x } ) + h _ { y } ( \\mathbf { y } ) + \\mathbf { b }\n$$",
466
+ "text_format": "latex",
467
+ "bbox": [
468
+ 321,
469
+ 739,
470
+ 674,
471
+ 760
472
+ ],
473
+ "page_idx": 2
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "where $h _ { x }$ and $h _ { y }$ are shortcut mappings. For linear projection, the shortcut mappings are linear mappings. Notice that this formulation is a generalized form of the one-block layered MRN (Kim et al., 2016b). Though, the shortcut connections are not used in our proposed model, as explained in Section 6. ",
478
+ "bbox": [
479
+ 174,
480
+ 761,
481
+ 825,
482
+ 816
483
+ ],
484
+ "page_idx": 2
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "4 MULTIMODAL LOW-RANK BILINEAR ATTENTION NETWORKS ",
489
+ "text_level": 1,
490
+ "bbox": [
491
+ 174,
492
+ 835,
493
+ 717,
494
+ 853
495
+ ],
496
+ "page_idx": 2
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "In this section, we apply low-rank bilinear pooling to propose an efficient attention mechanism for visual question-answering tasks, based on the interpretation of previous section. We assumed that inputs are a question embedding vector $\\mathbf { q }$ and a set of visual feature vectors $\\mathbf { F }$ over $S \\times S$ lattice space. ",
501
+ "bbox": [
502
+ 174,
503
+ 867,
504
+ 825,
505
+ 924
506
+ ],
507
+ "page_idx": 2
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "4.1 LOW-RANK BILINEAR POOLING IN ATTENTION MECHANISM ",
512
+ "text_level": 1,
513
+ "bbox": [
514
+ 173,
515
+ 103,
516
+ 637,
517
+ 118
518
+ ],
519
+ "page_idx": 3
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Attention mechanism uses an attention probability distribution $\\alpha$ over $S \\times S$ lattice space. Here, using low-rank bilinear pooling, $\\alpha$ is defined as ",
524
+ "bbox": [
525
+ 174,
526
+ 128,
527
+ 823,
528
+ 159
529
+ ],
530
+ "page_idx": 3
531
+ },
532
+ {
533
+ "type": "equation",
534
+ "img_path": "images/d26281b6dc4975caf2cb42be3291c8a09cd926a8a49c2999336a19b0abcfd910.jpg",
535
+ "text": "$$\n\\alpha = \\mathrm { s o f t m a x } \\Big ( \\mathbf { P } _ { \\alpha } ^ { T } \\big ( \\sigma ( \\mathbf { U } _ { \\mathbf { q } } ^ { T } \\mathbf { q } \\cdot \\mathbb { 1 } ^ { T } ) \\circ \\sigma ( \\mathbf { V } _ { \\mathbf { F } } ^ { T } \\mathbf { F } ^ { T } ) \\big ) \\Big )\n$$",
536
+ "text_format": "latex",
537
+ "bbox": [
538
+ 338,
539
+ 161,
540
+ 656,
541
+ 189
542
+ ],
543
+ "page_idx": 3
544
+ },
545
+ {
546
+ "type": "text",
547
+ "text": "where $\\alpha \\in \\mathbb { R } ^ { G \\times S ^ { 2 } }$ , $\\mathbf { P } _ { \\alpha } \\in \\mathbb { R } ^ { d \\times G }$ , $\\sigma$ is a hyperbolic tangent function, ${ \\bf U _ { q } } \\in \\mathbb { R } ^ { N \\times d }$ , ${ \\bf q } \\in \\mathbb { R } ^ { N }$ , $\\mathbb { 1 } \\in \\mathbb { R } ^ { S ^ { 2 } }$ , ${ \\bf V _ { F } } \\in \\mathbb { R } ^ { M \\times d }$ , and $\\mathbf { F } \\in \\mathbb { R } ^ { S ^ { 2 } \\times M }$ . If $G > 1$ , multiple glimpses are explicitly expressed as in Fukui et al. (2016), conceptually similar to Jaderberg et al. (2015). And, the softmax function applies to each row vector of $\\alpha$ . The bias terms are omitted for simplicity. ",
548
+ "bbox": [
549
+ 173,
550
+ 193,
551
+ 825,
552
+ 255
553
+ ],
554
+ "page_idx": 3
555
+ },
556
+ {
557
+ "type": "text",
558
+ "text": "4.2 MULTIMODAL LOW-RANK BILINEAR ATTENTION NETWORKS ",
559
+ "text_level": 1,
560
+ "bbox": [
561
+ 174,
562
+ 270,
563
+ 642,
564
+ 285
565
+ ],
566
+ "page_idx": 3
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "Attended visual feature $\\hat { \\mathbf { v } }$ is a linear combination of $\\mathbf { F } _ { i }$ with coefficients $\\alpha _ { g , i }$ . Each attention probability distribution $\\alpha _ { g }$ is for a glimpse $g$ . For $G > 1$ , $\\hat { \\mathbf { v } }$ is the concatenation of resulting vectors $\\hat { \\mathbf { v } } _ { g }$ as ",
571
+ "bbox": [
572
+ 174,
573
+ 295,
574
+ 823,
575
+ 338
576
+ ],
577
+ "page_idx": 3
578
+ },
579
+ {
580
+ "type": "equation",
581
+ "img_path": "images/334e708bd36ad81cd722a89136a921a113ccb06ebd4325ebfd669fed6de7f14e.jpg",
582
+ "text": "$$\n\\hat { \\mathbf { v } } = \\prod _ { g = 1 } ^ { G } \\sum _ { s = 1 } ^ { S ^ { 2 } } \\alpha _ { g , s } \\mathbf { F } _ { s }\n$$",
583
+ "text_format": "latex",
584
+ "bbox": [
585
+ 429,
586
+ 339,
587
+ 566,
588
+ 387
589
+ ],
590
+ "page_idx": 3
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "where $| |$ denotes concatenation of vectors. The posterior probability distribution is an output of a softmax function, whose input is the result of another low-rank bilinear pooling of $\\mathbf { q }$ and $\\hat { \\mathbf { v } }$ as ",
595
+ "bbox": [
596
+ 171,
597
+ 390,
598
+ 823,
599
+ 419
600
+ ],
601
+ "page_idx": 3
602
+ },
603
+ {
604
+ "type": "equation",
605
+ "img_path": "images/a7d94a3be2ec366015937f30f7a83c89469138999e83b1d6246d8cc76c8bc42b.jpg",
606
+ "text": "$$\n\\begin{array} { r } { p ( a | \\mathbf { q } , \\mathbf { F } ; \\Theta ) = \\underset { a \\in \\Omega } { \\mathrm { s o f t m a x } } \\left( \\mathbf { P } _ { o } ^ { T } \\big ( \\sigma ( \\mathbf { W } _ { \\mathbf { q } } ^ { T } \\mathbf { q } ) \\circ \\sigma ( \\mathbf { V } _ { \\hat { \\mathbf { v } } } ^ { T } \\hat { \\mathbf { v } } ) \\big ) \\right) } \\\\ { \\hat { a } = \\underset { a \\in \\Omega } { \\mathrm { a r g m a x } } p ( a | \\mathbf { q } , \\mathbf { F } ; \\Theta ) \\quad } \\end{array}\n$$",
607
+ "text_format": "latex",
608
+ "bbox": [
609
+ 321,
610
+ 421,
611
+ 676,
612
+ 476
613
+ ],
614
+ "page_idx": 3
615
+ },
616
+ {
617
+ "type": "text",
618
+ "text": "where $\\hat { a }$ denotes a predicted answer, $\\Omega$ is a set of candidate answers and $\\Theta$ is an aggregation of entire model parameters. ",
619
+ "bbox": [
620
+ 171,
621
+ 478,
622
+ 825,
623
+ 507
624
+ ],
625
+ "page_idx": 3
626
+ },
627
+ {
628
+ "type": "text",
629
+ "text": "5 EXPERIMENTS ",
630
+ "text_level": 1,
631
+ "bbox": [
632
+ 176,
633
+ 526,
634
+ 326,
635
+ 542
636
+ ],
637
+ "page_idx": 3
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "In this section, we conduct six experiments to select the proposed model, Multimodal Low-rank Bilinear Attention Networks (MLB). Each experiment controls other factors except one factor to assess the effect on accuracies. Based on MRN (Kim et al., 2016b), we start our assessments with an initial option of $G = 1$ and shortcut connections of MRN, called as Multimodal Attention Residual Networks (MARN). Notice that we use one embeddings for each visual feature for better performance, based on our preliminary experiment (not shown). We attribute this choice to the attention mechanism for visual features, which provides more capacity to learn visual features. We use the same hyper-parameters of MRN (Kim et al., 2016b), without any explicit mention of this. ",
642
+ "bbox": [
643
+ 173,
644
+ 558,
645
+ 825,
646
+ 670
647
+ ],
648
+ "page_idx": 3
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "The VQA dataset (Antol et al., 2015) is used as a primary dataset, and, for data augmentation, question-answering annotations of Visual Genome (Krishna et al., 2016) are used. Validation is performed on the VQA test-dev split, and model comparison is based on the results of the VQA test-standard split. For the comprehensive reviews of VQA tasks, please refer to Wu et al. (2016a) and Kafle & Kanan (2016a). The details about preprocessing, question and vision embedding, and hyperparameters used in our experiments are described in Appendix A. The source code for the experiments is available in Github repository1. ",
653
+ "bbox": [
654
+ 173,
655
+ 675,
656
+ 825,
657
+ 773
658
+ ],
659
+ "page_idx": 3
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "Number of Learning Blocks Kim et al. (2016b) argue that three-block layered MRN shows the best performance among one to four-block layered models, taking advantage of residual learning. However, we speculate that an introduction of attention mechanism makes deep networks hard to optimize. Therefore, we explore the number of learning blocks of MARN, which have an attention mechanism using low-rank bilinear pooling. ",
664
+ "bbox": [
665
+ 174,
666
+ 787,
667
+ 825,
668
+ 858
669
+ ],
670
+ "page_idx": 3
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "Number of Glimpses Fukui et al. (2016) show that the attention mechanism of two glimpses was an optimal choice. In a similar way, we assess one, two, and four-glimpse models. ",
675
+ "bbox": [
676
+ 176,
677
+ 872,
678
+ 823,
679
+ 901
680
+ ],
681
+ "page_idx": 3
682
+ },
683
+ {
684
+ "type": "text",
685
+ "text": "Table 1: The accuracies of our experimental model, Multimodal Attention Residual Networks (MARN), with respect to the number of learning blocks (L#), the number of glimpse (G#), the position of activation functions (tanh), answer sampling, shortcut connections, and data augmentation using Visual Genome dataset, for VQA test-dev split and Open-Ended task. Note that our proposed model, Multimodal Low-rank Bilinear Attention Networks (MLB) have no shortcut connections, compared with MARN. MODEL: model name, SIZE: number of parameters, ALL: overall accuracy in percentage, Y/N: yes/no, NUM: numbers, and ETC: others. Since Fukui et al. (2016) only report the accuracy of the ensemble model on the test-standard, the test-dev results of their single models are included in the last sector. Some figures have different precisions which are rounded. $^ *$ indicates the selected model for each experiment. ",
686
+ "bbox": [
687
+ 173,
688
+ 111,
689
+ 825,
690
+ 251
691
+ ],
692
+ "page_idx": 4
693
+ },
694
+ {
695
+ "type": "table",
696
+ "img_path": "images/65a519c64e15f98760a05ac16a1fef9b0faef3efd620c1d904939ba3cf174189.jpg",
697
+ "table_caption": [],
698
+ "table_footnote": [],
699
+ "table_body": "<table><tr><td>MODEL</td><td>SIZE</td><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td></tr><tr><td>MRN-L3</td><td>65.0M</td><td>61.68</td><td>82.28</td><td></td><td></td></tr><tr><td>MARN-L3</td><td>65.5M</td><td></td><td>82.31</td><td>38.82</td><td>49.25 50.83</td></tr><tr><td></td><td></td><td>62.37</td><td></td><td>38.06</td><td></td></tr><tr><td>MARN-L2</td><td>56.3M</td><td>63.92</td><td>82.88</td><td>37.98</td><td>53.59</td></tr><tr><td>* MARN-L1</td><td>47.0M</td><td>63.79</td><td>82.73</td><td>37.92</td><td>53.46</td></tr><tr><td>MARN-L1-G1</td><td>47.0M</td><td>63.79</td><td>82.73</td><td>37.92</td><td>53.46</td></tr><tr><td>* MARN-L1-G2</td><td>57.7M</td><td>64.53</td><td>83.41</td><td>37.82</td><td>54.43</td></tr><tr><td>MARN-L1-G4</td><td>78.9M</td><td>64.61</td><td>83.72</td><td>37.86</td><td>54.33</td></tr><tr><td>No Tanh</td><td>57.7M</td><td>63.58</td><td>83.18</td><td>37.23</td><td>52.79</td></tr><tr><td>* Before-Product</td><td>57.7M</td><td>64.53</td><td>83.41</td><td>37.82</td><td>54.43</td></tr><tr><td>After-Product</td><td>57.7M</td><td>64.53</td><td>83.53</td><td>37.06</td><td>54.50</td></tr><tr><td>Mode Answer</td><td>57.7M</td><td>64.53</td><td>83.41</td><td>37.82</td><td>54.43</td></tr><tr><td> * Sampled Answer</td><td>57.7M</td><td>64.80</td><td>83.59</td><td>38.38</td><td>54.73</td></tr><tr><td>Shortcut * No Shortcut</td><td>57.7M 51.9M</td><td>64.80</td><td>83.59</td><td>38.38</td><td>54.73</td></tr><tr><td>MLB</td><td>51.9M</td><td>65.08</td><td>84.14</td><td>38.21</td><td>54.87</td></tr><tr><td>MLB+VG</td><td>51.9M</td><td>65.08 65.84</td><td>84.14 83.87</td><td>38.21 37.87</td><td>54.87</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>56.76</td></tr><tr><td>MCB+Att (Fukui et al., 2016)</td><td>69.2M</td><td>64.2</td><td>82.2</td><td>37.7</td><td>54.8</td></tr><tr><td>MCB+Att+GloVe (Fukui et al., 2016) MCB+Att+Glove+VG (Fukui et al., 2016)</td><td>70.5M 70.5M</td><td>64.7 65.4</td><td>82.5 82.3</td><td>37.6 37.2</td><td>55.6 57.4</td></tr></table>",
700
+ "bbox": [
701
+ 202,
702
+ 255,
703
+ 794,
704
+ 587
705
+ ],
706
+ "page_idx": 4
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "Non-Linearity We assess three options applying non-linearity on low-rank bilinear pooling, vanilla, before Hadamard product as in Equation 5, and after Hadamard product as in Equation 6. ",
711
+ "bbox": [
712
+ 176,
713
+ 619,
714
+ 823,
715
+ 648
716
+ ],
717
+ "page_idx": 4
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "Answer Sampling VQA (Antol et al., 2015) dataset has ten answers from unique persons for each question, while Visual Genome (Krishna et al., 2016) dataset has a single answer for each question. Since difficult or ambiguous questions may have divided answers, the probabilistic sampling from the distribution of answers can be utilized to optimize for the multiple answers. An instance 2 can be found in Fukui et al. (2016). We simplify the procedure as follows: ",
722
+ "bbox": [
723
+ 174,
724
+ 664,
725
+ 825,
726
+ 734
727
+ ],
728
+ "page_idx": 4
729
+ },
730
+ {
731
+ "type": "equation",
732
+ "img_path": "images/dd21cccd5851abb531ae44700a090ca67b2e43b2fe64672d31f9202eab4a46e4.jpg",
733
+ "text": "$$\n\\begin{array} { r } { p ( a _ { 1 } ) = \\left\\{ \\begin{array} { l l } { | a _ { 1 } | / { \\Sigma _ { i } } | a _ { i } | , } & { \\mathrm { i f ~ } | a _ { 1 } | \\geq 3 } \\\\ { 0 , } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right. } \\\\ { p ( a _ { 0 } ) = 1 - p ( a _ { 1 } ) } \\end{array}\n$$",
734
+ "text_format": "latex",
735
+ "bbox": [
736
+ 379,
737
+ 742,
738
+ 617,
739
+ 799
740
+ ],
741
+ "page_idx": 4
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "where $\\left| a _ { i } \\right|$ denotes the number of unique answer $a _ { i }$ in a set of multiple answers, $a _ { 0 }$ denotes a mode, which is the most frequent answer, and $a _ { 1 }$ denotes the secondly most frequent answer. We define the divided answers as having at least three answers which are the secondly frequent one, for the evaluation metric of VQA (Antol et al., 2015), ",
746
+ "bbox": [
747
+ 174,
748
+ 805,
749
+ 825,
750
+ 861
751
+ ],
752
+ "page_idx": 4
753
+ },
754
+ {
755
+ "type": "equation",
756
+ "img_path": "images/39d45e9d5b0382544583df7290403d063e0cc2ec58f9b04bbf20f320934bcf8e.jpg",
757
+ "text": "$$\n\\begin{array} { r } { \\mathrm { a c c u r a c y } ( a _ { k } ) = \\operatorname* { m i n } \\left( | a _ { k } | / 3 , 1 \\right) . } \\end{array}\n$$",
758
+ "text_format": "latex",
759
+ "bbox": [
760
+ 388,
761
+ 867,
762
+ 609,
763
+ 886
764
+ ],
765
+ "page_idx": 4
766
+ },
767
+ {
768
+ "type": "table",
769
+ "img_path": "images/36714d8f077dcf1d2aa170e2d71687dbd6937ad78779549d3a476e7c5fdf4c8b.jpg",
770
+ "table_caption": [
771
+ "Table 2: The VQA test-standard results to compare with state-of-the-art. Notice that these results are trained by provided VQA train and validation splits, without any data augmentation. "
772
+ ],
773
+ "table_footnote": [],
774
+ "table_body": "<table><tr><td rowspan=\"2\">MODEL</td><td colspan=\"3\">Open-Ended</td><td colspan=\"2\">MC</td></tr><tr><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td><td>ALL</td></tr><tr><td>iBOWIMG (Zhou et al., 2015)</td><td>55.89</td><td></td><td>34.98</td><td>42.62</td><td></td></tr><tr><td>DPPnet (Noh et al., 2016)</td><td>57.36</td><td>76.76 80.28</td><td>36.92</td><td>42.24</td><td>61.97 62.69</td></tr><tr><td>Deeper LSTM+Normalized CNN (Antol et al., 2015)</td><td>58.16</td><td>80.56</td><td>36.53</td><td>43.73</td><td>63.09</td></tr><tr><td>SMem (Xu&amp; Saenko,2016)</td><td>58.24</td><td>80.80</td><td>37.53</td><td>43.48</td><td>1</td></tr><tr><td>Ask Your Neurons (Malinowski et al., 2016)</td><td>58.43</td><td>78.24</td><td>36.27</td><td>46.32</td><td></td></tr><tr><td>SAN (Yang et al., 2016)</td><td>58.85</td><td>79.11</td><td>36.41</td><td>46.42</td><td>=</td></tr><tr><td>D-NMN (Andreas et al., 2016)</td><td>59.44</td><td>80.98</td><td>37.48</td><td>45.81</td><td>=</td></tr><tr><td>ACK (Wu et al., 2016b)</td><td>59.44</td><td>81.07</td><td>37.12</td><td>45.83</td><td>=</td></tr><tr><td>FDA (Ilievski et al., 2016)</td><td>59.54</td><td>81.34</td><td></td><td></td><td>=</td></tr><tr><td>HYBRID (Kafle &amp; Kanan,2016b)</td><td>60.06</td><td>80.34</td><td>35.67 37.82</td><td>46.10</td><td>64.18</td></tr><tr><td>DMN+ (Xiong et al., 2016)</td><td>60.36</td><td></td><td></td><td>47.56</td><td>1</td></tr><tr><td></td><td></td><td>80.43</td><td>36.82</td><td>48.33</td><td>1</td></tr><tr><td>MRN (Kim et al., 2016b)</td><td>61.84</td><td>82.39</td><td>38.23</td><td>49.41</td><td>66.33</td></tr><tr><td>HieCoAtt (Lu et al., 2016)</td><td>62.06</td><td>79.95</td><td>38.22</td><td>51.95</td><td>66.07</td></tr><tr><td>RAU (Noh &amp; Han,2016)</td><td>63.2</td><td>81.7</td><td>38.2</td><td>52.8</td><td>67.3</td></tr><tr><td>MLB (ours)</td><td>65.07</td><td>84.02</td><td>37.90</td><td>54.77</td><td>68.89</td></tr></table>",
775
+ "bbox": [
776
+ 174,
777
+ 145,
778
+ 823,
779
+ 410
780
+ ],
781
+ "page_idx": 5
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "The rate of the divided answers is approximately $1 6 . 4 0 \\%$ , and only $0 . 2 3 \\%$ of questions have more than two divided answers in VQA dataset. We assume that it eases the difficulty of convergence without severe degradation of performance. ",
786
+ "bbox": [
787
+ 176,
788
+ 441,
789
+ 823,
790
+ 484
791
+ ],
792
+ "page_idx": 5
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "Shortcut Connection The contribution of shortcut connections for residual learning is explored based on the observation of the competitive performance of single-block layered model. Since the usefulness of shortcut connections is linked to the network depth (He et al., 2016). ",
797
+ "bbox": [
798
+ 174,
799
+ 501,
800
+ 825,
801
+ 542
802
+ ],
803
+ "page_idx": 5
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "Data Augmentation The data augmentation with Visual Genome (Krishna et al., 2016) question answer annotations is explored. Visual Genome (Krishna et al., 2016) originally provides 1.7 Million visual question answer annotations. After aligning to VQA, the valid number of question-answering pairs for training is 837,298, which is for distinct 99,280 images. ",
808
+ "bbox": [
809
+ 174,
810
+ 558,
811
+ 825,
812
+ 614
813
+ ],
814
+ "page_idx": 5
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "6 RESULTS ",
819
+ "text_level": 1,
820
+ "bbox": [
821
+ 174,
822
+ 635,
823
+ 282,
824
+ 650
825
+ ],
826
+ "page_idx": 5
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "The six experiments are conducted sequentially. Each experiment determines experimental variables one by one. Refer to Table 1, which has six sectors divided by mid-rules. ",
831
+ "bbox": [
832
+ 173,
833
+ 666,
834
+ 823,
835
+ 695
836
+ ],
837
+ "page_idx": 5
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "6.1 SIX EXPERIMENT RESULTS ",
842
+ "text_level": 1,
843
+ "bbox": [
844
+ 176,
845
+ 712,
846
+ 403,
847
+ 727
848
+ ],
849
+ "page_idx": 5
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "Number of Learning Blocks Though, MRN (Kim et al., 2016b) has the three-block layered architecture, MARN shows the best performance with two-block layered models $( 6 3 . 9 2 \\% )$ . For the multiple glimpse models in the next experiment, we choose one-block layered model for its simplicity to extend, and competitive performance $( 6 3 . 7 9 \\% )$ ). ",
854
+ "bbox": [
855
+ 174,
856
+ 738,
857
+ 823,
858
+ 794
859
+ ],
860
+ "page_idx": 5
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Number of Glimpses Compared with the results of Fukui et al. (2016), four-glimpse MARN $( 6 4 . 6 1 \\% )$ is better than other comparative models. However, for a parsimonious choice, two-glimpse MARN $( 6 4 . 5 3 \\% )$ is chosen for later experiments. We speculate that multiple glimpses are one of key factors for the competitive performance of MCB (Fukui et al., 2016), based on a large margin in accuracy, compared with one-glimpse MARN $( 6 3 . 7 9 \\%$ ). ",
865
+ "bbox": [
866
+ 174,
867
+ 809,
868
+ 823,
869
+ 880
870
+ ],
871
+ "page_idx": 5
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "Non-Linearity The results confirm that activation functions are useful to improve performances. Surprisingly, there is no empirical difference between two options, before-Hadamard product and after-Hadamard product. This result may build a bridge to relate with studies on multiplicative integration with recurrent neural networks (Wu et al., 2016c). ",
876
+ "bbox": [
877
+ 174,
878
+ 895,
879
+ 821,
880
+ 924
881
+ ],
882
+ "page_idx": 5
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "",
887
+ "bbox": [
888
+ 173,
889
+ 103,
890
+ 823,
891
+ 132
892
+ ],
893
+ "page_idx": 6
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "Answer Sampling Sampled answers $( 6 4 . 8 0 \\% )$ result better performance than mode answers $( 6 4 . 5 3 \\% )$ . It confirms that the distribution of answers from annotators can be used to improve the performance. However, the number of multiple answers is usually limited due to the cost of data collection. ",
898
+ "bbox": [
899
+ 174,
900
+ 148,
901
+ 825,
902
+ 205
903
+ ],
904
+ "page_idx": 6
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "Shortcut Connection Though, MRN (Kim et al., 2016b) effectively uses shortcut connections to improve model performance, one-block layered MARN shows better performance without the shortcut connection. In other words, the residual learning is not used in our proposed model, MLB. It seems that there is a trade-off between introducing attention mechanism and residual learning. We leave a careful study on this trade-off for future work. ",
909
+ "bbox": [
910
+ 174,
911
+ 222,
912
+ 825,
913
+ 291
914
+ ],
915
+ "page_idx": 6
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "Data Augmentation Data augmentation using Visual Genome (Krishna et al., 2016) question answer annotations significantly improves the performance by $0 . 7 6 \\%$ in accuracy for VQA test-dev split. Especially, the accuracy of others (ETC)-type answers is notably improved from the data augmentation. ",
920
+ "bbox": [
921
+ 174,
922
+ 309,
923
+ 825,
924
+ 366
925
+ ],
926
+ "page_idx": 6
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "6.2 COMPARISON WITH STATE-OF-THE-ART ",
931
+ "text_level": 1,
932
+ "bbox": [
933
+ 176,
934
+ 383,
935
+ 493,
936
+ 398
937
+ ],
938
+ "page_idx": 6
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "The comparison with other single models on VQA test-standard is shown in Table 2. The overall accuracy of our model is approximately $1 . 9 \\%$ above the next best model (Noh & Han, 2016) on the Open-Ended task of VQA. The major improvements are from yes-or-no (Y/N) and others (ETC)- type answers. In Table 3, we also report the accuracy of our ensemble model to compare with other ensemble models on VQA test-standard, which won 1st to 5th places in VQA Challenge $2 0 1 6 ^ { 3 }$ . We beat the previous state-of-the-art with a margin of $0 . 4 2 \\%$ . ",
943
+ "bbox": [
944
+ 174,
945
+ 411,
946
+ 825,
947
+ 494
948
+ ],
949
+ "page_idx": 6
950
+ },
951
+ {
952
+ "type": "table",
953
+ "img_path": "images/331d7a2015f6e22609f4775336e707d1b56d3d5493a8e37608415c67b974c586.jpg",
954
+ "table_caption": [
955
+ "Table 3: The VQA test-standard results for ensemble models to compare with state-of-the-art. For unpublished entries, their team names are used instead of their model names. Some of their figures are updated after the challenge. "
956
+ ],
957
+ "table_footnote": [],
958
+ "table_body": "<table><tr><td rowspan=\"2\">MODEL</td><td colspan=\"4\">Open-Ended</td><td>MC</td></tr><tr><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td><td>ALL</td></tr><tr><td>RAU (Noh &amp; Han,2016)</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>64.12</td><td>83.33</td><td>38.02</td><td>53.37</td><td>67.34</td></tr><tr><td>MRN (Kim et al., 2016b)</td><td>63.18</td><td>83.16</td><td>39.14</td><td>51.33</td><td>67.54</td></tr><tr><td>DLAIT (not published)</td><td>64.83</td><td>83.23</td><td>40.80</td><td>54.32</td><td>68.30</td></tr><tr><td>Naver Labs (not published)</td><td>64.79</td><td>83.31</td><td>38.70</td><td>54.79</td><td>69.26</td></tr><tr><td>MCB (Fukui et al., 2016)</td><td>66.47</td><td>83.24</td><td>39.47</td><td>58.00</td><td>70.10</td></tr><tr><td>MLB (ours)</td><td>66.89</td><td>84.61</td><td>39.07</td><td>57.79</td><td>70.29</td></tr><tr><td>Human (Antol et al., 2015)</td><td>83.30</td><td>95.77</td><td>83.39</td><td>72.67</td><td>91.54</td></tr></table>",
959
+ "bbox": [
960
+ 259,
961
+ 568,
962
+ 738,
963
+ 728
964
+ ],
965
+ "page_idx": 6
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "7 RELATED WORKS ",
970
+ "text_level": 1,
971
+ "bbox": [
972
+ 176,
973
+ 765,
974
+ 354,
975
+ 782
976
+ ],
977
+ "page_idx": 6
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "MRN (Kim et al., 2016b) proposes multimodal residual learning with Hadamard product of low-rank bilinear pooling. However, their utilization of low-rank bilinear pooling is limited to joint residual mapping function for multimodal residual learning. Higher-order Boltzmann Machines (Memisevic & Hinton, 2007; 2010) use Hadamard product to capture the interactions of input, output, and hidden representations for energy function. Wu et al. (2016c) propose the recurrent neural networks using Hadamard product to integrate multiplicative interactions among hidden representations in the model. For details of these related works, please refer to Appendix D. ",
982
+ "bbox": [
983
+ 174,
984
+ 797,
985
+ 825,
986
+ 897
987
+ ],
988
+ "page_idx": 6
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Yet, compact bilinear pooling or multimodal compact bilinear pooling (Gao et al., 2016; Fukui et al., 2016) is worth to discuss and carefully compare with our method. ",
993
+ "bbox": [
994
+ 171,
995
+ 103,
996
+ 823,
997
+ 132
998
+ ],
999
+ "page_idx": 7
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "7.1 COMPACT BILINEAR POOLING ",
1004
+ "text_level": 1,
1005
+ "bbox": [
1006
+ 176,
1007
+ 147,
1008
+ 426,
1009
+ 162
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Compact bilinear pooling (Gao et al., 2016) approximates full bilinear pooling using a samplingbased computation, Tensor Sketch Projection (Charikar et al., 2002; Pham & Pagh, 2013): ",
1016
+ "bbox": [
1017
+ 176,
1018
+ 174,
1019
+ 823,
1020
+ 203
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "equation",
1026
+ "img_path": "images/fc422de782a23638ed0cca09ad7c6f7f2cf6eb71f7a96066a62990e5f546f874.jpg",
1027
+ "text": "$$\n\\begin{array} { r l } & { \\Psi ( x \\otimes y , h , s ) = \\Psi ( x , h , s ) * \\Psi ( y , h , s ) } \\\\ & { \\qquad = \\mathrm { F F T } ^ { - 1 } ( \\mathrm { F F T } ( \\Psi ( x , h , s ) \\circ \\mathrm { F F T } ( \\Psi ( y , h , s ) ) } \\end{array}\n$$",
1028
+ "text_format": "latex",
1029
+ "bbox": [
1030
+ 302,
1031
+ 204,
1032
+ 697,
1033
+ 244
1034
+ ],
1035
+ "page_idx": 7
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "where $\\otimes$ denotes outer product, $^ *$ denotes convolution, $\\begin{array} { r } { \\Psi ( v , h , s ) _ { i } : = \\sum _ { j : h _ { j } = i } s _ { j } \\cdot v _ { j } } \\end{array}$ , FFT denotes Fast Fourier Transform, $d$ denotes an output dimension, $x , y , h , s \\in \\mathbb { R } ^ { n }$ , $x$ and $y$ are inputs, and $h$ and $s$ are random variables. $h _ { i }$ is sampled from $\\{ 1 , . . . , d \\}$ , and $s _ { i }$ is sampled from $\\{ - 1 , 1 \\}$ , then, both random variables are fixed for further usage. Even if the dimensions of $x$ and $y$ are different from each other, it can be used for multimodal learning (Fukui et al., 2016). ",
1040
+ "bbox": [
1041
+ 174,
1042
+ 244,
1043
+ 825,
1044
+ 318
1045
+ ],
1046
+ "page_idx": 7
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Similarly to Equation 1, compact bilinear pooling can be described as follows: ",
1051
+ "bbox": [
1052
+ 176,
1053
+ 324,
1054
+ 687,
1055
+ 339
1056
+ ],
1057
+ "page_idx": 7
1058
+ },
1059
+ {
1060
+ "type": "equation",
1061
+ "img_path": "images/454c8c92ce8e695867f3597dbe5dbc3a6d3717c2211cf520ca35625976b0df13.jpg",
1062
+ "text": "$$\nf _ { i } = \\mathbf { x } ^ { T } \\mathcal { W } _ { i } \\mathbf { y }\n$$",
1063
+ "text_format": "latex",
1064
+ "bbox": [
1065
+ 454,
1066
+ 342,
1067
+ 545,
1068
+ 359
1069
+ ],
1070
+ "page_idx": 7
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "where $\\mathcal { W } _ { i j k } = s _ { i j k } w _ { i j k }$ if $s _ { i j k }$ is sampled from $\\{ - 1 , 1 \\}$ , $w _ { i j k }$ is sampled from $\\{ \\mathbf { P } _ { i 1 } , \\mathbf { P } _ { i 2 } , \\dots , \\mathbf { P } _ { i d } \\}$ , and the compact bilinear pooling is followed by a fully connected layer $\\mathbf { P } \\in \\mathbb { R } ^ { | \\Omega | \\times d }$ . Then, this method can be formulated as a hashing trick (Weinberger et al., 2009; Chen et al., 2015) to share randomly chosen bilinear weights using $d$ parameters for a output value, in a way that a single parameter is shared by $N M / d$ bilinear terms in expectation, with the variance of $\\dot { N } M ( d - 1 ) \\big / { d ^ { 2 } }$ (See Appendix B). ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 362,
1078
+ 825,
1079
+ 449
1080
+ ],
1081
+ "page_idx": 7
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "In comparison with our method, their method approximates a three-dimensional weight tensor in bilinear pooling with a two-dimensional matrix $\\mathbf { P }$ , which is larger than the concatenation of three two-dimensional matrices for low-rank bilinear pooling. The ratio of the number of parameters for a single output to the total number of parameters for $| \\Omega |$ outputs is $d / d | \\Omega | = 1 / | \\Omega |$ (Fukui et al., 2016), vs. $d ( N + M + 1 ) / d ( N + M + | \\Omega | ) = ( N + M + 1 ) / ( N + M + | \\Omega | ) \\approx 2 / 3$ (ours), since our method uses a three-way factorization. Hence, more parameters are allocated to each bilinear approximation than compact bilinear pooling does, effectively managing overall parameters guided by back-propagation algorithm. ",
1086
+ "bbox": [
1087
+ 173,
1088
+ 455,
1089
+ 825,
1090
+ 566
1091
+ ],
1092
+ "page_idx": 7
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "MCB (Fukui et al., 2016), which uses compact bilinear pooling for multimodal tasks, needs to set the dimension of output $d$ to 16K, to reduce the bias induced by the fixed random variables $h$ and $s$ . As a result, the majority of model parameters $( 1 6 \\mathsf { K } \\times 3 \\mathsf { K } = 4 8 \\mathsf { M } )$ are concentrated on the last fully connected layer, which makes a fan-out structure. So, the total number of parameters of MCB is highly sensitive to the number of classes, which is approximately $6 9 . 2 \\mathbf { M }$ for $M C B + a t t$ , and $7 0 . 5 \\mathbf { M }$ for $M C B + a t t + G l o V e$ . Yet, the total number of parameters of our proposed model (MLB) is 51.9M, which is more robust to the number of classes having $d = 1 . 2 \\mathrm { K }$ , which has a similar role in model architecture. ",
1097
+ "bbox": [
1098
+ 173,
1099
+ 573,
1100
+ 825,
1101
+ 684
1102
+ ],
1103
+ "page_idx": 7
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "8 CONCLUSIONS ",
1108
+ "text_level": 1,
1109
+ "bbox": [
1110
+ 176,
1111
+ 704,
1112
+ 328,
1113
+ 719
1114
+ ],
1115
+ "page_idx": 7
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "We suggest a low-rank bilinear pooling method to replace compact bilinear pooling, which has a fan-out structure, and needs complex computations. Low-rank bilinear pooling has a flexible structure using linear mapping and Hadamard product, and a better parsimonious property, compared with compact bilinear pooling. We achieve new state-of-the-art results on the VQA dataset using a similar architecture of Fukui et al. (2016), replacing compact bilinear pooling with low-rank bilinear pooling. We believe our method could be applicable to other bilinear learning tasks. ",
1120
+ "bbox": [
1121
+ 174,
1122
+ 734,
1123
+ 825,
1124
+ 819
1125
+ ],
1126
+ "page_idx": 7
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "ACKNOWLEDGMENTS ",
1131
+ "text_level": 1,
1132
+ "bbox": [
1133
+ 176,
1134
+ 834,
1135
+ 326,
1136
+ 848
1137
+ ],
1138
+ "page_idx": 7
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "The authors would like to thank Patrick Emaase for helpful comments and editing. Also, we are thankful to anonymous reviewers who provided comments to improve this paper. This work was supported by NAVER LABS Corp. & NAVER Corp. and partly by the Korea government (IITP-R0126-16-1072-SW.StarLab, KEIT10044009-HRI.MESSI, KEIT-10060086-RISF, ADD-UD130070ID-BMRR). The part of computing resources used in this study was generously shared by Standigm Inc. ",
1143
+ "bbox": [
1144
+ 174,
1145
+ 857,
1146
+ 823,
1147
+ 921
1148
+ ],
1149
+ "page_idx": 7
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "REFERENCES ",
1154
+ "text_level": 1,
1155
+ "bbox": [
1156
+ 174,
1157
+ 103,
1158
+ 287,
1159
+ 117
1160
+ ],
1161
+ "page_idx": 8
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Learning to Compose Neural Networks for Question Answering. arXiv preprint arXiv:1601.01705, 2016. ",
1166
+ "bbox": [
1167
+ 173,
1168
+ 125,
1169
+ 823,
1170
+ 151
1171
+ ],
1172
+ "page_idx": 8
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. VQA: Visual Question Answering. IEEE International Conference on Computer Vision, 2015. ",
1177
+ "bbox": [
1178
+ 176,
1179
+ 159,
1180
+ 821,
1181
+ 186
1182
+ ],
1183
+ "page_idx": 8
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Moses Charikar, Kevin Chen, and Martin Farach-Colton. Finding frequent items in data streams. In International Colloquium on Automata, Languages, and Programming, pp. 693–703. Springer, 2002. ",
1188
+ "bbox": [
1189
+ 173,
1190
+ 194,
1191
+ 821,
1192
+ 220
1193
+ ],
1194
+ "page_idx": 8
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Wenlin Chen, James T. Wilson, Stephen Tyree, Kilian Q. Weinberger, and Yixin Chen. Compressing Neural Networks with the Hashing Trick. In 32nd International Conference on Machine Learning, pp. 2285–2294, 2015. ",
1199
+ "bbox": [
1200
+ 174,
1201
+ 228,
1202
+ 821,
1203
+ 267
1204
+ ],
1205
+ "page_idx": 8
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger ¨ Schwenk, and Yoshua Bengio. Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation. In 2014 Conference on Empirical Methods in Natural Language Processing, pp. 1724–1734, 2014. ",
1210
+ "bbox": [
1211
+ 173,
1212
+ 276,
1213
+ 825,
1214
+ 328
1215
+ ],
1216
+ "page_idx": 8
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Akira Fukui, Dong Huk Park, Daylen Yang, Anna Rohrbach, Trevor Darrell, and Marcus Rohrbach. Multimodal Compact Bilinear Pooling for Visual Question Answering and Visual Grounding. arXiv preprint arXiv:1606.01847, 2016. ",
1221
+ "bbox": [
1222
+ 173,
1223
+ 337,
1224
+ 823,
1225
+ 376
1226
+ ],
1227
+ "page_idx": 8
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "Yarin Gal. A Theoretically Grounded Application of Dropout in Recurrent Neural Networks. arXiv preprint arXiv:1512.05287, 2015. ",
1232
+ "bbox": [
1233
+ 173,
1234
+ 383,
1235
+ 821,
1236
+ 410
1237
+ ],
1238
+ "page_idx": 8
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Yang Gao, Oscar Beijbom, Ning Zhang, and Trevor Darrell. Compact Bilinear Pooling. In IEEE Conference on Computer Vision and Pattern Recognition, 2016. ",
1243
+ "bbox": [
1244
+ 173,
1245
+ 417,
1246
+ 823,
1247
+ 445
1248
+ ],
1249
+ "page_idx": 8
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In IEEE Conference on Computer Vision and Pattern Recognition, 2016. ",
1254
+ "bbox": [
1255
+ 174,
1256
+ 454,
1257
+ 823,
1258
+ 481
1259
+ ],
1260
+ "page_idx": 8
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long Short-Term Memory. ¨ Neural computation, 9(8):1735–1780, 1997. ",
1265
+ "bbox": [
1266
+ 174,
1267
+ 488,
1268
+ 823,
1269
+ 515
1270
+ ],
1271
+ "page_idx": 8
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Ilija Ilievski, Shuicheng Yan, and Jiashi Feng. A Focused Dynamic Attention Model for Visual Question Answering. arXiv preprint arXiv:1604.01485, 2016. ",
1276
+ "bbox": [
1277
+ 173,
1278
+ 522,
1279
+ 821,
1280
+ 550
1281
+ ],
1282
+ "page_idx": 8
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Max Jaderberg, Karen Simonyan, Andrew Zisserman, and Koray Kavukcuoglu. Spatial Transformer Networks. In Advances in Neural Information Processing Systems 28, pp. 2008–2016, 2015. ",
1287
+ "bbox": [
1288
+ 174,
1289
+ 558,
1290
+ 821,
1291
+ 585
1292
+ ],
1293
+ "page_idx": 8
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "Kushal Kafle and Christopher Kanan. Visual Question Answering: Datasets, Algorithms, and Future Challenges. arXiv preprint arXiv:1610.01465, 2016a. ",
1298
+ "bbox": [
1299
+ 173,
1300
+ 593,
1301
+ 823,
1302
+ 619
1303
+ ],
1304
+ "page_idx": 8
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "Kushal Kafle and Christopher Kanan. Answer-Type Prediction for Visual Question Answering. IEEE Conference on Computer Vision and Pattern Recognition, pp. 4976–4984, 2016b. ",
1309
+ "bbox": [
1310
+ 173,
1311
+ 627,
1312
+ 821,
1313
+ 655
1314
+ ],
1315
+ "page_idx": 8
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "Jin-Hwa Kim, Jeonghee Kim, Jung-Woo Ha, and Byoung-Tak Zhang. TrimZero: A Torch Recurrent Module for Efficient Natural Language Processing. In KIIS Spring Conference, volume 26, pp. 165–166, 2016a. ",
1320
+ "bbox": [
1321
+ 173,
1322
+ 662,
1323
+ 823,
1324
+ 690
1325
+ ],
1326
+ "page_idx": 8
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "Jin-Hwa Kim, Sang-Woo Lee, Dong-Hyun Kwak, Min-Oh Heo, Jeonghee Kim, Jung-Woo Ha, and Byoung-Tak Zhang. Multimodal Residual Learning for Visual QA. arXiv preprint arXiv:1606.01455, 2016b. ",
1331
+ "bbox": [
1332
+ 174,
1333
+ 696,
1334
+ 823,
1335
+ 724
1336
+ ],
1337
+ "page_idx": 8
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Ryan Kiros, Yukun Zhu, Ruslan Salakhutdinov, Richard S. Zemel, Antonio Torralba, Raquel Urtasun, and Sanja Fidler. Skip-Thought Vectors. In Advances in Neural Information Processing Systems 28, pp. 3294–3302, 2015. ",
1342
+ "bbox": [
1343
+ 173,
1344
+ 732,
1345
+ 825,
1346
+ 772
1347
+ ],
1348
+ "page_idx": 8
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, Michael Bernstein, and Li Fei-Fei. Visual genome: Connecting language and vision using crowdsourced dense image annotations. arXiv preprint arXiv:1602.07332, 2016. ",
1353
+ "bbox": [
1354
+ 174,
1355
+ 780,
1356
+ 825,
1357
+ 819
1358
+ ],
1359
+ "page_idx": 8
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "Nicholas Leonard, Sagar Waghmare, Yang Wang, and Jin-Hwa Kim. rnn´ $:$ Recurrent Library for Torch. arXiv preprint arXiv:1511.07889, 2015. ",
1364
+ "bbox": [
1365
+ 171,
1366
+ 827,
1367
+ 823,
1368
+ 854
1369
+ ],
1370
+ "page_idx": 8
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "Tsung-Yu Lin, Aruni RoyChowdhury, and Subhransu Maji. Bilinear CNN Models for Fine-grained Visual Recognition. In IEEE International Conference on Computer Vision, pp. 1449–1457, 2015. ",
1375
+ "bbox": [
1376
+ 174,
1377
+ 862,
1378
+ 823,
1379
+ 890
1380
+ ],
1381
+ "page_idx": 8
1382
+ },
1383
+ {
1384
+ "type": "text",
1385
+ "text": "Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Hierarchical Question-Image Co-Attention for Visual Question Answering. arXiv preprint arXiv:1606.00061, 2016. ",
1386
+ "bbox": [
1387
+ 173,
1388
+ 897,
1389
+ 825,
1390
+ 924
1391
+ ],
1392
+ "page_idx": 8
1393
+ },
1394
+ {
1395
+ "type": "text",
1396
+ "text": "Mateusz Malinowski, Marcus Rohrbach, and Mario Fritz. Ask Your Neurons: A Deep Learning Approach to Visual Question Answering. arXiv preprint arXiv:1605.02697, 2016. \nRoland Memisevic and Geoffrey E Hinton. Unsupervised learning of image transformations. In IEEE Conference on Computer Vision and Pattern Recognition, 2007. \nRoland Memisevic and Geoffrey E Hinton. Learning to represent spatial transformations with factored higherorder Boltzmann machines. Neural computation, 22(6):1473–1492, 2010. \nHyeonwoo Noh and Bohyung Han. Training Recurrent Answering Units with Joint Loss Minimization for VQA. arXiv preprint arXiv:1606.03647, 2016. \nHyeonwoo Noh, Paul Hongsuck Seo, and Bohyung Han. Image Question Answering using Convolutional Neural Network with Dynamic Parameter Prediction. In IEEE Conference on Computer Vision and Pattern Recognition, 2016. \nNinh Pham and Rasmus Pagh. Fast and scalable polynomial kernels via explicit feature maps. In 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 239–247. ACM, 2013. \nHamed Pirsiavash, Deva Ramanan, and Charless C. Fowlkes. Bilinear classifiers for visual recognition. In Advances in Neural Information Processing Systems 22, pp. 1482–1490, 2009. \nJoshua B Tenenbaum and William T Freeman. Separating style and content with bilinear models. Neural computation, 12(6):1247–1283, 2000. \nTijmen Tieleman and Geoffrey Hinton. Lecture 6.5-rmsprop: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 4, 2012. \nKilian Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. Feature hashing for large scale multitask learning. In 26th International Conference on Machine Learning, pp. 1113–1120, 2009. \nQi Wu, Damien Teney, Peng Wang, Chunhua Shen, Anthony Dick, and Anton van den Hengel. Visual Question Answering: A Survey of Methods and Datasets. arXiv preprint arXiv:1607.05910, 2016a. \nQi Wu, Peng Wang, Chunhua Shen, Anthony Dick, and Anton van den Hengel. Ask Me Anything: Free-form Visual Question Answering Based on Knowledge from External Sources. In IEEE Conference on Computer Vision and Pattern Recognition, 2016b. \nYuhuai Wu, Saizheng Zhang, Ying Zhang, Yoshua Bengio, and Ruslan Salakhutdinov. On Multiplicative Integration with Recurrent Neural Networks. arXiv preprint arXiv:1606.06630, 2016c. \nCaiming Xiong, Stephen Merity, and Richard Socher. Dynamic Memory Networks for Visual and Textual Question Answering. In 33rd International Conference on Machine Learning, 2016. \nHuijuan Xu and Kate Saenko. Ask, Attend and Answer: Exploring Question-Guided Spatial Attention for Visual Question Answering. In European Conference on Computer Vision, 2016. \nZichao Yang, Xiaodong He, Jianfeng Gao, Li Deng, and Alex Smola. Stacked Attention Networks for Image Question Answering. In IEEE Conference on Computer Vision and Pattern Recognition, 2016. \nBolei Zhou, Yuandong Tian, Sainbayar Sukhbaatar, Arthur Szlam, and Rob Fergus. Simple Baseline for Visual Question Answering. arXiv preprint arXiv:1512.02167, 2015. ",
1397
+ "bbox": [
1398
+ 171,
1399
+ 88,
1400
+ 828,
1401
+ 722
1402
+ ],
1403
+ "page_idx": 9
1404
+ },
1405
+ {
1406
+ "type": "text",
1407
+ "text": "Appendix ",
1408
+ "text_level": 1,
1409
+ "bbox": [
1410
+ 176,
1411
+ 99,
1412
+ 272,
1413
+ 119
1414
+ ],
1415
+ "page_idx": 10
1416
+ },
1417
+ {
1418
+ "type": "text",
1419
+ "text": "A EXPERIMENT DETAILS ",
1420
+ "bbox": [
1421
+ 176,
1422
+ 137,
1423
+ 400,
1424
+ 154
1425
+ ],
1426
+ "page_idx": 10
1427
+ },
1428
+ {
1429
+ "type": "text",
1430
+ "text": "A.1 PREPROCESSING ",
1431
+ "bbox": [
1432
+ 176,
1433
+ 167,
1434
+ 334,
1435
+ 183
1436
+ ],
1437
+ "page_idx": 10
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "We follow the preprocessing procedure of Kim et al. (2016b). Here, we remark some details of it, and changes. ",
1442
+ "bbox": [
1443
+ 176,
1444
+ 194,
1445
+ 821,
1446
+ 207
1447
+ ],
1448
+ "page_idx": 10
1449
+ },
1450
+ {
1451
+ "type": "text",
1452
+ "text": "A.1.1 QUESTION EMBEDDING ",
1453
+ "text_level": 1,
1454
+ "bbox": [
1455
+ 176,
1456
+ 222,
1457
+ 398,
1458
+ 236
1459
+ ],
1460
+ "page_idx": 10
1461
+ },
1462
+ {
1463
+ "type": "text",
1464
+ "text": "The $9 0 . 4 5 \\%$ of questions for the 2K-most frequent answers are used. The vocabulary size of questions is 15,031. GRU (Cho et al., 2014) is used for question embedding. Based on earlier studies (Noh et al., 2016; Kim et al., 2016b), a word embedding matrix and a GRU are initialized with Skip-thought Vector pre-trained model (Kiros et al., 2015). As a result, question vectors have 2,400 dimensions. ",
1465
+ "bbox": [
1466
+ 174,
1467
+ 246,
1468
+ 825,
1469
+ 296
1470
+ ],
1471
+ "page_idx": 10
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "For efficient computation of variable-length questions, Kim et al. (2016a) is used for the GRU. Moreover, for regularization, Bayesian Dropout (Gal, 2015) which is implemented in Leonard et al. (2015) is applied while ´ training. ",
1476
+ "bbox": [
1477
+ 174,
1478
+ 303,
1479
+ 823,
1480
+ 342
1481
+ ],
1482
+ "page_idx": 10
1483
+ },
1484
+ {
1485
+ "type": "text",
1486
+ "text": "A.2 VISION EMBEDDING ",
1487
+ "text_level": 1,
1488
+ "bbox": [
1489
+ 176,
1490
+ 358,
1491
+ 361,
1492
+ 372
1493
+ ],
1494
+ "page_idx": 10
1495
+ },
1496
+ {
1497
+ "type": "text",
1498
+ "text": "ResNet-152 networks (He et al., 2016) are used for feature extraction. The dimensionality of an input image is $3 \\times 4 4 8 \\times 4 4 8$ . The outputs of the last convolution layer is used, which have $2 , 0 4 8 \\times 1 4 \\times 1 4$ dimensions. ",
1499
+ "bbox": [
1500
+ 173,
1501
+ 383,
1502
+ 823,
1503
+ 410
1504
+ ],
1505
+ "page_idx": 10
1506
+ },
1507
+ {
1508
+ "type": "text",
1509
+ "text": "A.3 HYPERPARAMETERS ",
1510
+ "text_level": 1,
1511
+ "bbox": [
1512
+ 176,
1513
+ 426,
1514
+ 361,
1515
+ 440
1516
+ ],
1517
+ "page_idx": 10
1518
+ },
1519
+ {
1520
+ "type": "text",
1521
+ "text": "The hyperparameters used in MLB of Table 2 are described in Table 4. The batch size is 100, and the number of iterations is fixed to 250K. For data augmented models, a simplified early stopping is used, starting from 250K to 350K-iteration for every 25K iterations (250K, 275K, 300K, 325K, and 350K; at most five points) to avoid exhaustive submissions to VQA test-dev evaluation server. RMSProp (Tieleman & Hinton, 2012) is used for optimization. ",
1522
+ "bbox": [
1523
+ 173,
1524
+ 452,
1525
+ 825,
1526
+ 515
1527
+ ],
1528
+ "page_idx": 10
1529
+ },
1530
+ {
1531
+ "type": "text",
1532
+ "text": "Though, the size of joint embedding size $d$ is borrowed from Kim et al. (2016b), a grid search on $d$ confirms this choice in our model as shown in Table 5. ",
1533
+ "bbox": [
1534
+ 174,
1535
+ 522,
1536
+ 823,
1537
+ 547
1538
+ ],
1539
+ "page_idx": 10
1540
+ },
1541
+ {
1542
+ "type": "table",
1543
+ "img_path": "images/d46fa5d178a9e387878de5f386c3f643d9ef9d1c32e9047196113e24691a5984.jpg",
1544
+ "table_caption": [
1545
+ "Table 4: Hyperparameters used in MLB (single model in Table 2). "
1546
+ ],
1547
+ "table_footnote": [],
1548
+ "table_body": "<table><tr><td>SYMBOL</td><td>VALUE</td><td>DESCRIPTION</td></tr><tr><td>S</td><td>14</td><td></td></tr><tr><td>N</td><td>2,400</td><td>attention lattice size</td></tr><tr><td>M</td><td>2.048</td><td>question embedding size channel size of extracted visual features</td></tr><tr><td>d</td><td>1,200</td><td>joint embedding size</td></tr><tr><td>G</td><td>2</td><td>number of glimpses</td></tr><tr><td>||</td><td>2,000</td><td>number of candidate answers</td></tr><tr><td>n</td><td>3e-4</td><td>learning rate</td></tr><tr><td>入</td><td>0.99997592083</td><td>learning rate decay factor at every iteration</td></tr><tr><td>p</td><td>0.5</td><td>dropout rate</td></tr><tr><td>0</td><td>±10</td><td>gradient clipping threshold</td></tr></table>",
1549
+ "bbox": [
1550
+ 243,
1551
+ 588,
1552
+ 754,
1553
+ 761
1554
+ ],
1555
+ "page_idx": 10
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "A.4 MODEL SCHEMA ",
1560
+ "text_level": 1,
1561
+ "bbox": [
1562
+ 176,
1563
+ 792,
1564
+ 336,
1565
+ 806
1566
+ ],
1567
+ "page_idx": 10
1568
+ },
1569
+ {
1570
+ "type": "text",
1571
+ "text": "Figure 1 shows a schematic diagram of MLB, where ◦ denotes Hadamard product, and $\\Sigma$ denotes a linear combination of visual feature vectors using coefficients, which is the output of softmax function. If $G > 1$ , the softmax function is applied to each row vectors of an output matrix (Equation 8), and we concatenate the resulting vectors of the $G$ linear combinations (Equation 9). ",
1572
+ "bbox": [
1573
+ 173,
1574
+ 818,
1575
+ 825,
1576
+ 868
1577
+ ],
1578
+ "page_idx": 10
1579
+ },
1580
+ {
1581
+ "type": "text",
1582
+ "text": "A.5 ENSEMBLE OF SEVEN MODELS ",
1583
+ "text_level": 1,
1584
+ "bbox": [
1585
+ 176,
1586
+ 885,
1587
+ 434,
1588
+ 898
1589
+ ],
1590
+ "page_idx": 10
1591
+ },
1592
+ {
1593
+ "type": "text",
1594
+ "text": "The test-dev results for individual models consisting of our ensemble model is presented in Table 6. ",
1595
+ "bbox": [
1596
+ 169,
1597
+ 910,
1598
+ 759,
1599
+ 924
1600
+ ],
1601
+ "page_idx": 10
1602
+ },
1603
+ {
1604
+ "type": "table",
1605
+ "img_path": "images/eb986d5b7bf606642a8131d239994b8e4f237ef2b14992ff1d57cf5c547d4b89.jpg",
1606
+ "table_caption": [
1607
+ "Table 5: The effect of joint embedding size $d$ "
1608
+ ],
1609
+ "table_footnote": [],
1610
+ "table_body": "<table><tr><td colspan=\"6\">Open-Ended</td></tr><tr><td>d</td><td>SIZE</td><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td></tr><tr><td>800</td><td>45.0M</td><td>64.89</td><td>84.08</td><td>38.15</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>54.55</td></tr><tr><td>1000</td><td>48.4M</td><td>65.06</td><td>84.18</td><td>38.01</td><td>54.85</td></tr><tr><td>1200</td><td>51.9M</td><td>65.08</td><td>84.14</td><td>38.21</td><td>54.87</td></tr><tr><td>1400</td><td>55.4M</td><td>64.94</td><td>84.13</td><td>38.00</td><td>54.64</td></tr><tr><td>1600</td><td>58.8M</td><td>65.02</td><td>84.15</td><td>37.79</td><td>54.85</td></tr></table>",
1611
+ "bbox": [
1612
+ 328,
1613
+ 132,
1614
+ 671,
1615
+ 252
1616
+ ],
1617
+ "page_idx": 11
1618
+ },
1619
+ {
1620
+ "type": "image",
1621
+ "img_path": "images/02dfd00cc4bb19b3dfb924b4f29abc92eecf2d16eabbc678aa69dd6173ad0cbb.jpg",
1622
+ "image_caption": [
1623
+ "Figure 1: A schematic diagram of MLB. Replicate module copies an question embedding vector to match with $S ^ { 2 }$ visual feature vectors. Conv modules indicate $1 \\times 1$ convolution to transform a given channel space, which is computationally equivalent to linear projection for channels. "
1624
+ ],
1625
+ "image_footnote": [],
1626
+ "bbox": [
1627
+ 382,
1628
+ 273,
1629
+ 612,
1630
+ 477
1631
+ ],
1632
+ "page_idx": 11
1633
+ },
1634
+ {
1635
+ "type": "table",
1636
+ "img_path": "images/59c7b27d09854952ad8caf32f6d6123b9439ad5ea699b65669684bfb617ffad8.jpg",
1637
+ "table_caption": [
1638
+ "Table 6: The individual models used in our ensemble model in Table 3. "
1639
+ ],
1640
+ "table_footnote": [],
1641
+ "table_body": "<table><tr><td colspan=\"2\"></td><td colspan=\"4\">Open-Ended</td></tr><tr><td>MODEL</td><td>GLIMPSE</td><td>ALL</td><td>Y/N</td><td>NUM</td><td>ETC</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>MLB MLB</td><td>22</td><td>64.89 65.08</td><td>84.13 84.14</td><td>37.85 38.21</td><td>54.57 54.87</td></tr><tr><td>MLB</td><td>4</td><td>65.01</td><td>84.09</td><td>37.66</td><td>54.88</td></tr><tr><td>MLB-VG</td><td>2</td><td>65.76</td><td>83.64</td><td>37.57</td><td>56.86</td></tr><tr><td>MLB-VG</td><td>2</td><td>65.84</td><td>83.87</td><td>37.87</td><td>56.76</td></tr><tr><td>MLB-VG</td><td>3</td><td>66.05</td><td>83.88</td><td>38.13</td><td>57.13</td></tr><tr><td>MLB-VG</td><td>4</td><td>66.09</td><td>83.59</td><td>38.32</td><td>57.42</td></tr><tr><td>Ensemble</td><td></td><td>66.77</td><td>84.54</td><td>39.21</td><td>57.81</td></tr></table>",
1642
+ "bbox": [
1643
+ 294,
1644
+ 587,
1645
+ 705,
1646
+ 752
1647
+ ],
1648
+ "page_idx": 11
1649
+ },
1650
+ {
1651
+ "type": "text",
1652
+ "text": "B UNDERSTANDING OF MULTIMODAL COMPACT BILINEAR POOLING ",
1653
+ "text_level": 1,
1654
+ "bbox": [
1655
+ 169,
1656
+ 102,
1657
+ 766,
1658
+ 118
1659
+ ],
1660
+ "page_idx": 12
1661
+ },
1662
+ {
1663
+ "type": "text",
1664
+ "text": "In this section, the algorithm of multimodal compact bilinear pooling (MCB) (Gao et al., 2016; Fukui et al., 2016) is described as a kind of hashing tick (Chen et al., 2015). ",
1665
+ "bbox": [
1666
+ 168,
1667
+ 131,
1668
+ 823,
1669
+ 159
1670
+ ],
1671
+ "page_idx": 12
1672
+ },
1673
+ {
1674
+ "type": "text",
1675
+ "text": "$\\mathbf { x } \\in \\mathbb { R } ^ { n _ { x } }$ and $\\mathbf { y } \\in \\mathbb { R } ^ { n _ { y } }$ are the given inputs, $\\Phi ( \\mathbf { x } , \\mathbf { y } ) \\in \\mathbb { R } ^ { d }$ is the output. Random variables $\\mathbf { h } _ { x } \\in \\mathbb { N } ^ { n _ { x } }$ and $\\mathbf { h } _ { y } \\in \\mathbb { N } ^ { n _ { y } }$ are uniformly sampled from $\\{ 1 , \\ldots , d \\}$ , and $\\mathbf { s } _ { x } \\in \\mathbb { Z } ^ { n _ { x } }$ and $\\mathbf { s } _ { y } \\in \\mathbb { Z } ^ { n _ { y } }$ are uniformly sampled from $\\{ - 1 , 1 \\}$ . Then, Count Sketch projection function $\\Psi$ (Charikar et al., 2002) projects $\\mathbf { x }$ and $\\mathbf { y }$ to intermediate representations $\\Psi ( \\mathbf { x } , \\mathbf { h } _ { \\boldsymbol { x } } , \\mathbf { s } _ { \\boldsymbol { x } } ) \\in \\mathbb { R } ^ { d }$ and $\\boldsymbol { \\Psi } ( \\mathbf { y } , \\mathbf { h } _ { y } , \\mathbf { s } _ { y } ) \\in \\mathbb { R } ^ { d }$ , which is defined as: ",
1676
+ "bbox": [
1677
+ 173,
1678
+ 164,
1679
+ 825,
1680
+ 218
1681
+ ],
1682
+ "page_idx": 12
1683
+ },
1684
+ {
1685
+ "type": "equation",
1686
+ "img_path": "images/fbe8230846887712b465fd3f9f98365e10eb1ce344236a1643fffe4797cbae29.jpg",
1687
+ "text": "$$\n\\Psi ( \\mathbf { v } , \\mathbf { h } , \\mathbf { s } ) _ { i } : = \\sum _ { j : h _ { j } = i } s _ { j } \\cdot v _ { j }\n$$",
1688
+ "text_format": "latex",
1689
+ "bbox": [
1690
+ 413,
1691
+ 224,
1692
+ 584,
1693
+ 257
1694
+ ],
1695
+ "page_idx": 12
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "text": "Notice that both $\\mathbf { h }$ and s remain as constants after initialization (Fukui et al., 2016). ",
1700
+ "bbox": [
1701
+ 174,
1702
+ 263,
1703
+ 666,
1704
+ 279
1705
+ ],
1706
+ "page_idx": 12
1707
+ },
1708
+ {
1709
+ "type": "text",
1710
+ "text": "The probability of $h _ { x j } = i$ and $h _ { y j } = i$ for the given $j$ is $1 / d ^ { 2 }$ . Hence, the expected number of bilinear terms in $\\Psi ( \\mathbf { x } , \\mathbf { h } _ { x } , \\mathbf { s } _ { x } ) _ { i } \\Psi ( \\mathbf { y } , \\mathbf { h } _ { y } , \\mathbf { s } _ { y } ) _ { i }$ is $\\dot { ( } n _ { x } n _ { y } ) / d ^ { 2 }$ . Since, the output $\\Phi ( \\mathbf { x } , \\mathbf { y } )$ is a result of circular convolution of $\\Psi ( \\mathbf { x } , \\mathbf { h } _ { x } , \\mathbf { s } _ { x } )$ and $\\Psi ( \\mathbf { y } , \\mathbf { h } _ { y } , \\mathbf { s } _ { y } )$ , the expected number of bilinear terms in $\\Phi ( \\mathbf { x } , \\mathbf { y } ) _ { i }$ is $( n _ { x } n _ { y } ) / d$ . Likewise, the probability of that a bilinear term is allocated in $\\Phi ( \\mathbf { x } , \\mathbf { y } ) _ { i }$ is $1 / d$ . The probability distribution of the number of bilinear terms in $\\Phi ( \\mathbf { x } , \\mathbf { y } ) _ { i }$ follows a multinomial distribution, whose mean is $( n _ { x } n _ { y } ) / d$ and variance is $( n _ { x } n _ { y } ) ( d - 1 ) / d ^ { 2 }$ . ",
1711
+ "bbox": [
1712
+ 174,
1713
+ 284,
1714
+ 825,
1715
+ 362
1716
+ ],
1717
+ "page_idx": 12
1718
+ },
1719
+ {
1720
+ "type": "text",
1721
+ "text": "Linear projection after the multimodal compact bilinear pooling provides weights on the bilinear terms, in a way that a shared weight is assigned to $\\Phi ( \\bar { \\mathbf { x } } , \\mathbf { y } ) _ { i }$ , which has $( n _ { x } n _ { y } ) / d$ bilinear terms in expectation, though each bilinear term can have a different sign induced by both ${ \\bf s } _ { x }$ and $\\mathbf { s } _ { y }$ . ",
1722
+ "bbox": [
1723
+ 174,
1724
+ 367,
1725
+ 823,
1726
+ 406
1727
+ ],
1728
+ "page_idx": 12
1729
+ },
1730
+ {
1731
+ "type": "text",
1732
+ "text": "HashedNets (Chen et al., 2015) propose a method to compress neural networks using a low-cost hashing function (Weinberger et al., 2009), which is the same function of $\\Psi ( \\mathbf { v } , \\mathbf { h } , \\mathbf { s } )$ . They randomly group a portion of connections in neural networks to share a single weight. We speculate that multimodal compact bilinear pooling uses the hashing tick to reduce the number of full bilinear weights with the rate of $d / ( n _ { x } n _ { y } )$ . However, this approximation is limited to two-way interaction, compared with three-way factorization in our method. ",
1733
+ "bbox": [
1734
+ 174,
1735
+ 412,
1736
+ 825,
1737
+ 477
1738
+ ],
1739
+ "page_idx": 12
1740
+ },
1741
+ {
1742
+ "type": "text",
1743
+ "text": "C REPLACEMENT OF LOW-RANK BILINEAR POOLING ",
1744
+ "text_level": 1,
1745
+ "bbox": [
1746
+ 174,
1747
+ 496,
1748
+ 633,
1749
+ 512
1750
+ ],
1751
+ "page_idx": 12
1752
+ },
1753
+ {
1754
+ "type": "text",
1755
+ "text": "For the explicit comparison with compact bilinear pooling, we explicitly substitute compact bilinear pooling for low-rank bilinear pooling to control everything else, which means that the rest of the model architecture is exactly the same. ",
1756
+ "bbox": [
1757
+ 174,
1758
+ 526,
1759
+ 825,
1760
+ 564
1761
+ ],
1762
+ "page_idx": 12
1763
+ },
1764
+ {
1765
+ "type": "text",
1766
+ "text": "According to Fukui et al. (2016), we use MCB followed by Signed Square Root, L2-Normalization, Dropout $( p { = } 0 . 1 )$ , and linear projection from 16,000-dimension to the target dimension. Also, Dropout $\\scriptstyle ( p = 0 . 3 )$ for a question embedding vector. Note that an overall architecture for multimodal learning of both is the same. Experimental details are referenced from the implementation 4 of Fukui et al. (2016). ",
1767
+ "bbox": [
1768
+ 174,
1769
+ 571,
1770
+ 825,
1771
+ 623
1772
+ ],
1773
+ "page_idx": 12
1774
+ },
1775
+ {
1776
+ "type": "text",
1777
+ "text": "For test-dev split, our version of MCB gets $6 1 . 4 8 \\%$ for overall accuracy (yes/no: $8 2 . 4 8 \\%$ , number: $3 7 . 0 6 \\%$ , and other: $4 9 . 0 7 \\%$ ) vs. $6 5 . 0 8 \\%$ (ours, MLB in Table 1). Additionally, if the nonlinearity in getting attention distributions is increased as the original MCB does using ReLU, we get $6 2 . 1 1 \\%$ for overall accuracy (yes/no: $8 2 . 5 5 \\%$ , number: $3 7 . 1 8 \\%$ , and other: $5 0 . 3 0 \\%$ ), which is still the below of our performance 5. ",
1778
+ "bbox": [
1779
+ 174,
1780
+ 628,
1781
+ 825,
1782
+ 680
1783
+ ],
1784
+ "page_idx": 12
1785
+ },
1786
+ {
1787
+ "type": "text",
1788
+ "text": "We do not see it as a decisive evidence of the better performance of MLB, but as a reference (the comparison of test-dev results may be also unfair.), since an optimal architecture and hyperparameters may be required for each method. ",
1789
+ "bbox": [
1790
+ 174,
1791
+ 688,
1792
+ 825,
1793
+ 726
1794
+ ],
1795
+ "page_idx": 12
1796
+ },
1797
+ {
1798
+ "type": "text",
1799
+ "text": "D RELATED WORKS ",
1800
+ "text_level": 1,
1801
+ "bbox": [
1802
+ 174,
1803
+ 102,
1804
+ 359,
1805
+ 118
1806
+ ],
1807
+ "page_idx": 13
1808
+ },
1809
+ {
1810
+ "type": "text",
1811
+ "text": "D.1 MULTIMODAL RESIDUAL NETWORKS ",
1812
+ "bbox": [
1813
+ 174,
1814
+ 132,
1815
+ 478,
1816
+ 147
1817
+ ],
1818
+ "page_idx": 13
1819
+ },
1820
+ {
1821
+ "type": "text",
1822
+ "text": "MRN (Kim et al., 2016b) is an implicit attentional model using multimodal residual learning with Hadamard product which does not have any explicit attention mechanism. ",
1823
+ "bbox": [
1824
+ 171,
1825
+ 157,
1826
+ 823,
1827
+ 184
1828
+ ],
1829
+ "page_idx": 13
1830
+ },
1831
+ {
1832
+ "type": "equation",
1833
+ "img_path": "images/1c50150fab6ef77c2422cb6b008a4cbc1207405e61c2ef15be8a6d1e7dc07d82.jpg",
1834
+ "text": "$$\n\\begin{array} { r l } & { \\mathcal { F } ^ { ( k ) } ( \\mathbf { q } , \\mathbf { v } ) = \\sigma ( \\mathbf { W } _ { \\mathbf { q } } ^ { ( k ) } \\mathbf { q } ) \\circ \\sigma ( \\mathbf { W } _ { 2 } ^ { ( k ) } \\sigma ( \\mathbf { W } _ { 1 } ^ { ( k ) } \\mathbf { v } ) ) } \\\\ & { \\quad H _ { L } ( \\mathbf { q } , \\mathbf { v } ) = \\mathbf { W } _ { \\mathbf { q } ^ { \\prime } } \\mathbf { q } + \\displaystyle \\sum _ { l = 1 } ^ { L } \\mathbf { W } _ { \\mathcal { F } ^ { ( l ) } } \\mathcal { F } ^ { ( l ) } ( H _ { l - 1 } , \\mathbf { v } ) } \\end{array}\n$$",
1835
+ "text_format": "latex",
1836
+ "bbox": [
1837
+ 348,
1838
+ 189,
1839
+ 650,
1840
+ 251
1841
+ ],
1842
+ "page_idx": 13
1843
+ },
1844
+ {
1845
+ "type": "text",
1846
+ "text": "where $\\mathbf { W } _ { * }$ are parameter matrices, $L$ is the number of learning blocks, $H _ { 0 } = \\mathbf { q }$ , $\\mathbf { W _ { q ^ { \\prime } } } = \\Pi _ { l = 1 } ^ { L } \\mathbf { W } _ { \\mathbf { q ^ { \\prime } } } ^ { ( l ) }$ , an d $\\mathbf { W } _ { \\mathcal { F } ^ { ( l ) } } = \\Pi _ { m = l + 1 } ^ { L } \\mathbf { W } _ { \\mathbf { q } ^ { \\prime } } ^ { ( m ) }$ . Notice that these equations can be generalized by Equation 7. ",
1847
+ "bbox": [
1848
+ 173,
1849
+ 258,
1850
+ 823,
1851
+ 292
1852
+ ],
1853
+ "page_idx": 13
1854
+ },
1855
+ {
1856
+ "type": "text",
1857
+ "text": "However, an explicit attention mechanism allows the use of lower-level visual features than fully-connected layers, and, more importantly, spatially selective learning. Recent state-of-the-art methods use a variant of an explicit attention mechanism in their models (Lu et al., 2016; Noh & Han, 2016; Fukui et al., 2016). Note that shortcut connections of MRN are not used in the proposed Multimodal Low-rank Bilinear (MLB) model. Since, it does not have any performance gain due to not stacking multiple layers in MLB. We leave the study of residual learning for MLB for future work, which may leverage the excellency of bilinear models as suggested in Wu et al. (2016a). ",
1858
+ "bbox": [
1859
+ 173,
1860
+ 299,
1861
+ 825,
1862
+ 388
1863
+ ],
1864
+ "page_idx": 13
1865
+ },
1866
+ {
1867
+ "type": "text",
1868
+ "text": "D.2 HIGHER-ORDER BOLTZMANN MACHINES ",
1869
+ "text_level": 1,
1870
+ "bbox": [
1871
+ 176,
1872
+ 404,
1873
+ 506,
1874
+ 419
1875
+ ],
1876
+ "page_idx": 13
1877
+ },
1878
+ {
1879
+ "type": "text",
1880
+ "text": "A similar model can be found in a study of Higher-Order Boltzmann Machines (Memisevic & Hinton, 2007; 2010). They suggest a factoring method for the three-way energy function to capture correlations among input, output, and hidden representations. ",
1881
+ "bbox": [
1882
+ 174,
1883
+ 429,
1884
+ 825,
1885
+ 468
1886
+ ],
1887
+ "page_idx": 13
1888
+ },
1889
+ {
1890
+ "type": "equation",
1891
+ "img_path": "images/b351028567dbba996a1e46bd088b0ea51a306779526258d1e48ca33a3c82ad8b.jpg",
1892
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle - E ( { \\bf y } , { \\bf h } ; { \\bf x } ) = \\sum _ { f } \\big ( \\sum _ { i } x _ { i } w _ { i f } ^ { x } \\big ) \\big ( \\sum _ { j } y _ { j } w _ { j f } ^ { y } \\big ) \\big ( \\sum _ { k } h _ { k } w _ { k f } ^ { h } \\big ) + \\sum _ { k } w _ { k } ^ { h } h _ { k } + \\sum _ { j } w _ { j } ^ { y } y _ { j } } \\ ~ } \\\\ { { \\displaystyle = \\big ( { \\bf x } ^ { T } { \\bf W } ^ { x } \\circ { \\bf y } ^ { T } { \\bf W } ^ { y } \\circ { \\bf h } ^ { T } { \\bf W } ^ { h } \\big ) \\mathbb { 1 } + { \\bf h } ^ { T } { \\bf w } ^ { h } + { \\bf y } ^ { T } { \\bf w } ^ { y } } } \\end{array}\n$$",
1893
+ "text_format": "latex",
1894
+ "bbox": [
1895
+ 238,
1896
+ 473,
1897
+ 758,
1898
+ 529
1899
+ ],
1900
+ "page_idx": 13
1901
+ },
1902
+ {
1903
+ "type": "text",
1904
+ "text": "Setting aside of bias terms, the $I \\times J \\times K$ parameter tensor of unfactored Higher-Order Boltzmann Machines is replaced with three matrices, $\\mathbf { W } ^ { x } \\in \\mathbb { R } ^ { I \\times F }$ , $\\mathbf { W } ^ { y } \\in \\mathbb { R } ^ { J \\times F }$ , and $\\mathbf { W } ^ { h } \\in \\mathbb { R } ^ { K \\times F }$ . ",
1905
+ "bbox": [
1906
+ 173,
1907
+ 531,
1908
+ 825,
1909
+ 559
1910
+ ],
1911
+ "page_idx": 13
1912
+ },
1913
+ {
1914
+ "type": "text",
1915
+ "text": "D.3 MULTIPLICATIVE INTEGRATION WITH RECURRENT NEURAL NETWORKS",
1916
+ "text_level": 1,
1917
+ "bbox": [
1918
+ 174,
1919
+ 574,
1920
+ 722,
1921
+ 589
1922
+ ],
1923
+ "page_idx": 13
1924
+ },
1925
+ {
1926
+ "type": "text",
1927
+ "text": "Most of recurrent neural networks, including vanilla RNNs, Long Short Term Memory networks (Hochreiter & Schmidhuber, 1997) and Gated Recurrent Units (Cho et al., 2014), share a common expression as follows: ",
1928
+ "bbox": [
1929
+ 174,
1930
+ 598,
1931
+ 826,
1932
+ 626
1933
+ ],
1934
+ "page_idx": 13
1935
+ },
1936
+ {
1937
+ "type": "equation",
1938
+ "img_path": "images/87149d3b06e1e8b424ec651d7e6b8705287b995cc7916b8520a6e9dca5464111.jpg",
1939
+ "text": "$$\n\\phi ( \\mathbf { W _ { X } } + \\mathbf { U _ { h } } + \\mathbf { b } )\n$$",
1940
+ "text_format": "latex",
1941
+ "bbox": [
1942
+ 437,
1943
+ 632,
1944
+ 560,
1945
+ 648
1946
+ ],
1947
+ "page_idx": 13
1948
+ },
1949
+ {
1950
+ "type": "text",
1951
+ "text": "where $\\phi$ is a non-linear function, $\\mathbf { W } \\in \\mathbb { R } ^ { d \\times n }$ , $\\mathbf { x } \\in \\mathbb { R } ^ { n }$ , $\\mathbf { U } \\in \\mathbb { R } ^ { d \\times m }$ , $\\mathbf { h } \\in \\mathbb { R } ^ { m }$ , and $\\mathbf { b } \\in \\mathbb { R } ^ { d }$ is a bias vector. \nNote that, usually, $\\mathbf { x }$ is an input state vector and $\\mathbf { h }$ is an hidden state vector in recurrent neural networks. ",
1952
+ "bbox": [
1953
+ 171,
1954
+ 656,
1955
+ 823,
1956
+ 684
1957
+ ],
1958
+ "page_idx": 13
1959
+ },
1960
+ {
1961
+ "type": "text",
1962
+ "text": "Wu et al. (2016c) propose a new design to replace the additive expression with a multiplicative expression using Hadamard product as ",
1963
+ "bbox": [
1964
+ 173,
1965
+ 689,
1966
+ 823,
1967
+ 717
1968
+ ],
1969
+ "page_idx": 13
1970
+ },
1971
+ {
1972
+ "type": "equation",
1973
+ "img_path": "images/c3fd875faadbff8d6e6c5c89760f5548657003e5fff0040e525705721c7772b6.jpg",
1974
+ "text": "$$\n\\phi ( \\mathbf { W } \\mathbf { x } \\circ \\mathbf { U } \\mathbf { h } + \\mathbf { b } ) .\n$$",
1975
+ "text_format": "latex",
1976
+ "bbox": [
1977
+ 437,
1978
+ 723,
1979
+ 560,
1980
+ 739
1981
+ ],
1982
+ "page_idx": 13
1983
+ },
1984
+ {
1985
+ "type": "text",
1986
+ "text": "Moreover, a general formulation of this multiplicative integration can be described as ",
1987
+ "bbox": [
1988
+ 173,
1989
+ 752,
1990
+ 678,
1991
+ 767
1992
+ ],
1993
+ "page_idx": 13
1994
+ },
1995
+ {
1996
+ "type": "equation",
1997
+ "img_path": "images/23f992f0a4704518394b815cb748c423b0a3e918dfc7ae7529a248fc764350bd.jpg",
1998
+ "text": "$$\n\\phi ( \\pmb { \\alpha } \\circ \\mathbf { W } \\mathbf { x } \\circ \\mathbf { U } \\mathbf { h } + \\mathbf { W } \\mathbf { x } \\circ \\pmb { \\beta } _ { 1 } + \\mathbf { U } \\mathbf { h } \\circ \\pmb { \\beta } _ { 2 } + \\mathbf { b } )\n$$",
1999
+ "text_format": "latex",
2000
+ "bbox": [
2001
+ 354,
2002
+ 773,
2003
+ 643,
2004
+ 789
2005
+ ],
2006
+ "page_idx": 13
2007
+ },
2008
+ {
2009
+ "type": "text",
2010
+ "text": "which is reminiscent of full model in Section 3.1. ",
2011
+ "bbox": [
2012
+ 174,
2013
+ 795,
2014
+ 464,
2015
+ 810
2016
+ ],
2017
+ "page_idx": 13
2018
+ }
2019
+ ]
parse/train/r1rhWnZkg/r1rhWnZkg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1rhWnZkg/r1rhWnZkg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJg4YGWRb/rJg4YGWRb.md ADDED
@@ -0,0 +1,344 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ATTENTION-BASED GRAPH NEURAL NETWORK FORSEMI-SUPERVISED LEARNING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Recently popularized graph neural networks achieve the state-of-the-art accuracy on a number of standard benchmark datasets for graph-based semi-supervised learning, improving significantly over existing approaches. These architectures alternate between a propagation layer that aggregates the hidden states of the local neighborhood and a fully-connected layer. Perhaps surprisingly, we show that a linear model, that removes all the intermediate fully-connected layers, is still able to achieve a performance comparable to the state-of-the-art models. This significantly reduces the number of parameters, which is critical for semi-supervised learning where number of labeled examples are small. This in turn allows a room for designing more innovative propagation layers. Based on this insight, we propose a novel graph neural network that removes all the intermediate fullyconnected layers, and replaces the propagation layers with attention mechanisms that respect the structure of the graph. The attention mechanism allows us to learn a dynamic and adaptive local summary of the neighborhood to achieve more accurate predictions. In a number of experiments on benchmark citation networks datasets, we demonstrate that our approach outperforms competing methods. By examining the attention weights among neighbors, we show that our model provides some interesting insights on how neighbors influence each other.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ One of the major bottlenecks in applying machine learning in practice is collecting sizable and reliable labeled data, essential for accurate predictions. One way to overcome the problem of limited labeled data is semi-supervised learning, using additional unlabeled data that might be freely available. In this paper, we are interested in a scenario when this additional unlabeled data is available in a form of a graph. The graph provides underlying pairwise relations among the data points, both labeled and unlabeled.
12
+
13
+ Of particular interest are those applications where the presence or absence of an edge between two data points is determined by nature, for instance as a result of human activities or natural relations. As a concrete example, consider a citation network. Each node in the graph is a published research paper, associated with a bag-of-words feature vector. An (directed) edge indicates a citation link. Presence of an edge indicates that the authors of a paper have consciously determined to refer to the other paper, and hence captures some underlying relation that might not be inferred from the bag-of-words feature vectors alone. Such external graph data are available in several applications of interest, such as classifying users connected via a social network, items and customers connected by purchase history, users and movies connected by viewing history, and entities in a knowledge graph connected by relationships. In this paper, we are interested in the setting where the graph is explicitly given and represents additional information not present in the feature vectors.
14
+
15
+ The goal of such graph-based semi-supervised learning problems is to classify the nodes in a graph using a small subset of labeled nodes and all the node features. There is a long line of literature on this topic since Blum & Chawla (2001) which seeks graph cuts that preserve the known labels and Zhu et al. (2003) which uses graph Laplacian to regularize the nearby nodes to have similar labels. However, Kipf & Welling (2016) recently demonstrated that the existing approaches can be significantly improved upon on a number of standard benchmark datasets, using an innovative neural network architecture on graph-based data known collectively as graph neural networks.
16
+
17
+ Inspired by this success, we seek to understand the reason behind the power of graph neural networks, to guide our design of a novel architecture for semi-supervised learning on graphs. To this end, we first found that a linear classifier of multinomial logistic regression achieves the accuracy comparable to the best known graph neural network. This linear classifier removes all intermediate non-linear activation layers, and only keeps the linear propagation function from neighbors in graph neural networks. This suggests the importance of aggregation information form the neighbors in the graph. This further motivates us to design a new way of aggregating neighborhood information through attention mechanism since, intuitively, neighbors might not be equally important. This proposed attention-based graph neural network captures this intuition and $( a )$ greatly reduces the model complexity, with only a single scalar parameter at each intermediate layer; $( b )$ discovers dynamically and adaptively which nodes are relevant to the target node for classification; and $( c )$ improves upon state-of-the-art methods in terms of accuracy on standard benchmark datasets. Further, the learned attention strengths provide some form of interpretability. They provide insights on why a particular prediction is made on a target node and which neighbors are more relevant in making that decision.
18
+
19
+ # 2 RELATED WORK
20
+
21
+ Given a graph $G ( V , E )$ with a set of $n$ nodes $V$ and a set of edges $E$ , we let $X _ { i } \in \mathbb { R } ^ { d _ { x } }$ denote the feature vector at node $i$ and let $Y _ { i }$ denote the true label. We use $Y _ { L }$ to denote the labels that are revealed to us for a subset $L \subset V$ . We let $X = [ X _ { 1 } , \ldots , X _ { n } ]$ denote all features, labeled and unlabeled.
22
+
23
+ Traditionally, semi-supervised learning using both labeled and un-labled data has been solved using two different approaches - Graph Laplacian based algorithms solving for locally consistent solutions (Zhou et al., 2004b) and Expectation Maximization based algorithms (Nigam et al., 2006) where true-labels of the unlabeled data points are considered as the latent variables of a generative model.
24
+
25
+ Graph Laplacian regularization. Based on the assumption that nearby nodes in a graph are more likely to have the same labels, the graph information has been used as explicit regularization:
26
+
27
+ $$
28
+ \begin{array} { r c l } { { \mathcal L } ( X , Y _ { L } ) } & { { = } } & { { { \mathcal L } _ { \mathrm { l a b e l } } ( X _ { L } , Y _ { L } ) + \lambda { \mathcal L } _ { G } ( X ) ~ , } } \end{array}
29
+ $$
30
+
31
+ where $\begin{array} { r } { \mathcal { L } _ { \mathrm { l a b e l } } = \sum _ { i \in L } l ( Y _ { i } , f ( X _ { i } ) ) } \end{array}$ is the standard supervised loss for some loss functions $l$ and $\mathcal { L } _ { G }$ is the graph-based regularization, for example $\begin{array} { r } { \mathcal { L } _ { G } = \sum _ { ( i , j ) \in E } \| f ( X _ { i } ) - f ( X _ { j } ) \| ^ { 2 } } \end{array}$ , which is called the graph Laplacian regularization. Earlier approaches are non-parametric and searches over all $f$ considering it as a look-up table. Most popular one is the Label Propagation (Zhu & Ghahramani, 2002) that forces the estimated labels to agree in the labeled instances and uses weighted graph Laplacian. This innovative formulation admits a closed form solution which makes it practically attractive with very low computationally cost. ManiReg (Belkin et al., 2006) replaces supervised loss with that of a support vector machine. ICA (Lu & Getoor, 2003) generalizes LP by allowing more general local updates. A more thorough survey on using non-neural network methods for semi-supervised learning can be found in (Chapelle et al., 2009).
32
+
33
+ More recent approaches are parametric, using deep neural networks. SemiEmb (Weston et al., 2012) was the first to use a deep neural network to model $f ( x )$ and minimize the above loss. Planetoid (Yang et al., 2016) significantly improves upon the existing graph regularization approaches by replacing the regularization by another loss based on skip-grams (defined below). In a slightly different context, Buchnik & Cohen (2017) show that the accuracy of these approaches can be further improved by bootstrapping these models sequentially.
34
+
35
+ Unsupervised node embedding for semi-supervised learning. Several approaches have been proposed to embed the nodes in some latent Euclidean space using only the connectivity in graph $G$ . Once the embedding is learned, standard supervised learning is applied on those embedded features to train a model. Inspired by the success of word2vec (Le & Mikolov, 2014), several approaches define “skip-grams” on graphs as the neighborhood (context) of a node on the graph and tries to maximize the posterior probability of observing those skip-grams. DeepWalk (Perozzi et al., 2014) and node2vec (Grover & Leskovec, 2016) use random walks as skip-grams, LINE (Tang et al., 2015) uses local proximities, LASAGNE (Faerman et al., 2017) uses the Personalized PageRank random walk. Graph2Gauss (A. Bojchevski, 2017) represents a node as a Gaussian distribution, and minimizes the divergence between connected pairs. Yang et al. (2017) provide a post-processing scheme that takes any node embedding and attempts to improve it by by taking the weighted sum of the given embeddings with Personalized PageRank weights. The strength of these approaches is universality, as the node embedding does not depend on the particular task at hand (and in particular the features or the labels). However, as they do not use the node features and the training only happens after embedding, they cannot meet the performance of the state-of-the-art approaches (see DeepWalk in Table 2).
36
+
37
+ Graph Neural Network (GNN). Graph neural networks are extensions of neural networks to structured data encoded as a graph. Originally introduced as extensions of recurrent neural networks, GNNs apply recurrent layers to each node with additional local averaging layer (Gori et al., 2005; Scarselli et al., 2009). However, as the weights are shared across all nodes, GNNs can also be interpreted as extensions of convolutional neural networks on a 2D grid to general graphs. Typically, a message aggregation step followed by some neural network architecture is iteratively applied. The model parameters are trained on (semi-)supervised examples with labels. We give a typical example of a GNN in Section 3, but several diverse variations have been proposed in (Bruna et al., 2013; Duvenaud et al., 2015; Li et al., 2015; Henaff et al., 2015; Sukhbaatar et al., 2016; Bronstein et al., 2016; Defferrard et al., 2016; Dai et al., 2016; Atwood & Towsley, 2016; Niepert et al., 2016; Such et al., 2017; Hamilton et al., 2017; Schlichtkrull et al., 2017; Such et al., 2017). GNNs have been successfully applied in diverse applications such as molecular activation prediction (Gilmer et al., 2017), community detection (Bruna & Li, 2017), matrix completion (Berg et al., 2017), combinatorial optimization (Dai et al., 2017; Nowak et al., 2017), and detecting similar binary codes (Xu et al., 2017).
38
+
39
+ In particular, for the benchmark datasets that we consider in this paper, Kipf & Welling (2016) proposed a simple but powerful architecture called Graph Convolutional Network (GCN) that achieves the state-of-the-art accuracy. In the following section, $( a )$ we show that the performance of GCN can be met by a linear classifier; and $( b )$ use this insight to introduce novel graph neural networks that compare favourably against the state-of-the-art approaches on benchmark datasets.
40
+
41
+ # 3 DISSECTION OF GRAPH NEURAL NETWORK
42
+
43
+ In this section, we propose a novel Graph Neural Network (GNN) model which we call Attentionbased Graph Neural Network (AGNN), and compare its performance to state-of-the-art models on benchmark citation networks in Section 5. We seek a model $Z = f ( X , A ) \in \mathbb { R } ^ { n \times d _ { y } }$ that predicts at each node one of the $d _ { y }$ classes. $Z _ { i c }$ is the estimated probability that the label at node $i \in [ n ]$ is $c \in [ d _ { y } ]$ given the features $X$ and the graph $A$ . The data features $X \in \mathbb { R } ^ { n \times d _ { x } }$ has at each row $d _ { x }$ features for each node, and $A \in \{ 0 , 1 \} ^ { \bar { n } \times \bar { n } }$ is the adjacency matrix of $G$ .
44
+
45
+ The forward pass in a typical GNN alternates between a propagation layer and a single layer perceptron. Let $t$ be the layer index. We use $H ^ { ( t ) } \in \mathbb { R } ^ { n \times d _ { h } }$ to denote the current (hidden) states, with the $i$ -th row $H _ { i } ^ { ( t ) }$ as the $d _ { h }$ dimensional hidden state of node $i$ . A propagation layer with respect to a propagation matrix $P \in \mathbb { R } ^ { n \times n }$ is defined as
46
+
47
+ $$
48
+ \tilde { H } ^ { ( t ) } = P H ^ { ( t ) } .
49
+ $$
50
+
51
+ For example, the natural random walk1 $P = D ^ { - 1 } A$ gives $\begin{array} { r } { \tilde { H } _ { i } ^ { ( t ) } = ( 1 / | N ( i ) | ) \sum _ { j \in N ( i ) } H _ { j } ^ { ( t ) } } \end{array}$ . The neighborhood of node $i$ is denoted by $N ( i )$ , and $D = \mathrm { d i a g ( A { \bf 1 } ) }$ . This is a simple local averaging common in consensus or random walk based approaches. Typical propagation layer respects the adjacency pattern in $A$ , performing a variation of such local averaging. GNNs encode the graph structure of $A$ into the model via this propagation layer, which can be also interpreted as performing a graph convolution operation as discussed in Kipf & Welling (2016). Next, a single layer perceptron is applied on each node separately and the weights $W ^ { ( t ) }$ are shared across all the nodes:
52
+
53
+ $$
54
+ { \cal H } ^ { ( t + 1 ) } = \sigma ( \tilde { H } ^ { ( t ) } W ^ { ( t ) } ) \ ,
55
+ $$
56
+
57
+ where $W ^ { ( t ) } \in \mathbb { R } ^ { d _ { h _ { t + 1 } } \times d _ { h _ { t } } }$ is the weight matrix and $\sigma ( \cdot )$ is an entry-wise activation function. This weight sharing reduces significantly the number of parameters to be trained, and encodes the invariance property of graph data, i.e. two nodes that are far apart but have the similar neighboring features and structures should be classified similarly. There are several extensions to this model as discussed in the previous section, but this standard graph neural network has proved powerful in several problems over graphs, e.g. (Bruna & Li, 2017; Berg et al., 2017; Dai et al., 2017).
58
+
59
+ Graph Convolutional Network (GCN). Kipf & Welling (2016) introduced a simple but powerful architecture, and achieved the state-of-the-art performance in benchmark citation networks (see Table 2). GCN is a special case of GNN which stacks two layers of specific propagation and perceptron:
60
+
61
+ $$
62
+ \begin{array} { r c l } { { { \cal H } ^ { ( 1 ) } } } & { { = } } & { { \mathrm { R e L U } \big ( ( P X ) { \cal W } ^ { ( 0 ) } \big ) ~ , } } \\ { { Z ~ = } } & { { f ( X , { \cal A } ) } } & { { = } } & { { \mathrm { s o f t m a x } \big ( ( P { \cal H } ^ { ( 1 ) } ) { \cal W } ^ { ( 1 ) } \big ) ~ , } } \end{array}
63
+ $$
64
+
65
+ with a choice of $P = \tilde { D } ^ { - 1 / 2 } \tilde { A } \tilde { D } ^ { - 1 / 2 }$ , where ${ \tilde { A } } = A + \mathbb { I }$ , I is the identity matrix, $\tilde { D } = \mathrm { d i a g } ( \tilde { A } \mathbf { 1 } )$ and $\mathbb { 1 }$ is the all-ones vector. $\mathrm { R e L U } ( a ) = \operatorname* { m a x } \{ 0 , a \}$ is an entry-wise rectified linear activation function, and softmax $\cdot ( [ a _ { 1 } , \dots , a _ { k } ] ) = ( 1 / Z ) [ \exp ( a _ { 1 } ) , \dots , \exp ( a _ { k } ) ]$ with $\begin{array} { r } { Z = \sum _ { i } \exp ( a _ { i } ) } \end{array}$ is applied rowwise. Hence, the output is the predicted likelihoods on the $d _ { y }$ dimensional probability simplex. The weights $W ^ { ( 0 ) }$ and $W ^ { ( 1 ) }$ are trained to minimize the cross-entropy loss over all labeled examples $L$ :
66
+
67
+ $$
68
+ \begin{array} { r c l } { \mathcal { L } } & { = } & { \displaystyle - \sum _ { i \in L } \sum _ { c = 1 } ^ { d _ { y } } Y _ { i c } \ln Z _ { i c } . } \end{array}
69
+ $$
70
+
71
+ Graph Linear Network (GLN). To better understand GCN, we remove the intermediate nonlinear activation units from GCN, which gives Graph Linear Network defined as
72
+
73
+ $$
74
+ \begin{array} { r c l } { { Z } } & { { = } } & { { f ( X , A ) } } & { { = } } & { { \mathrm { s o f t m a x } \big ( ( \mathrm { P ^ { 2 } X } ) { \mathrm { W } } ^ { ( 0 ) } { \mathrm { W } } ^ { ( 1 ) } \big ) \ , } } \end{array}
75
+ $$
76
+
77
+ with the same choice of $P = \tilde { D } ^ { - 1 / 2 } \tilde { A } \tilde { D } ^ { - 1 / 2 }$ as in GCN. The weights $W ^ { ( 0 ) }$ and $W ^ { ( 1 ) }$ have the same dimensions as GCN and are trained on a cross entropy loss in (2). The two propagation layers simply take (linear) local average of the raw features weighted by their degrees, and at the output layer a simple linear classifier (multinomial logistic regression) is applied. This allows us to separate the gain in the linear propagation layer and the non-linear perceptron layer.
78
+
79
+ Comparing the differences in performances in Table 2, we show that, perhaps surprisingly, GLN achieves an accuracy comparable to the that of the best GNN, and sometimes better. This suggests that, for citation networks, the strength of the general GNN architectures is in the propagation layer and not in the perceptron layer. On the other hand, the propagation layers are critical in achieving the desired performance, as is suggested in Table 2. There are significant gaps in accuracy for those approaches not using the graph, i.e. T-SVM, and also those that use the graph differently, such as Label Propagation (LP) and Planetoid. Based on this observation, we propose replacing the propagation layer of GLN with an attention mechanism and test it on the benchmark datasets.
80
+
81
+ # 4 ATTENTION-BASED GRAPH NEURAL NETWORK (AGNN).
82
+
83
+ The original propagation layer in GCN and several other graph neural networks such as (Defferrard et al., 2016; Atwood & Towsley, 2016; Monti et al., 2016; Such et al., 2017) use a static (does not change over the layers) and non-adaptive (does not take into account the states of the nodes) propagation, e.g. $P _ { i j } = 1 / \sqrt { | N ( i ) | | N ( j ) | }$ . Such propagations are not able to capture which neighbor is more relevant to classifying a target node, which is critical in real data where not all edges imply the same types or strengths of relations.
84
+
85
+ We need novel dynamic and adaptive propagation layers, capable of capturing the relevance of different edges, which leads to more complex graph neural networks with more parameters. However, training such complex models is challenging in the semi-supervised setting, as the typical number of samples we have for each class is small; it is 20 in the standard benchmark dataset. This is evidenced in Table 2 where more complex graph neural network models by Verma et al. (2017), Monti et al. (2016), and Such et al. (2017) do not improve upon the simple GCN.
86
+
87
+ On the other hand, our experiments with GLN suggests that we can remove all the perceptron layers and focus only on improving the propagation layers. To this end, we introduce a novel Attentionbased Graph Neural Network (AGNN). AGNN is simple; it only has a single scalar parameter $\beta ^ { ( t ) }$ at each intermediate layer. AGNN captures relevance; the proposed attention mechanism over neighbors in (5) learns which neighbors are more relevant and weighs their contributions accordingly. This builds on the long line of successes of attention mechanisms in summarizing long sentences or large images, by capturing which word or part-of-image is most relevant ( $\mathrm { { X u } }$ et al., 2015; Graves et al., 2014; Bahdanau et al., 2014). Particularly, we use the attention formulation similar to the one used in Graves et al. (2014).2 It only has one parameter and we found this is important for successfully training the model when the number of labels is small as in our semi-supervised learning setting.
88
+
89
+ # 4.1 AGNN MODEL
90
+
91
+ We start with a word-embedding layer that maps a bag-of-words representation of a document into an averaged word embedding, and the word embedding $W ^ { ( 0 ) } \in \mathbb { R } ^ { d _ { x } \times d _ { h } }$ is to be trained as a part of the model:
92
+
93
+ $$
94
+ \begin{array} { r c l } { { H ^ { ( 1 ) } } } & { { = } } & { { \mathrm { R e L U } ( X W ^ { ( 0 ) } ) . } } \end{array}
95
+ $$
96
+
97
+ This is followed by layers of attention-guided propagation layers parameterized by $\beta ^ { ( t ) } \in \mathbb { R }$ at each layer,
98
+
99
+ $$
100
+ \begin{array} { r c l } { { H ^ { ( t + 1 ) } } } & { { = } } & { { P ^ { ( t ) } H ^ { ( t ) } , } } \end{array}
101
+ $$
102
+
103
+ where the propagation matrix $P ^ { ( t ) } \in \mathbb { R } ^ { n \times n }$ is also a function of the input states $H ^ { ( t ) }$ and is zero for absent edges such that the output row-vector of node $i$ is
104
+
105
+ $$
106
+ H _ { i } ^ { ( t + 1 ) } = \sum _ { j \in N ( i ) \cup \{ i \} } P _ { i j } ^ { ( t ) } H _ { j } ^ { ( t ) } ,
107
+ $$
108
+
109
+ with $P _ { i } ^ { ( t ) } = \mathrm { s o f t m a x } \Big ( [ \beta ^ { ( t ) } \cos ( H _ { i } ^ { ( t ) } , H _ { j } ^ { ( t ) } ) ] _ { j \in N ( i ) \cup \{ i \} } \Big )$ and $\cos ( x , y ) = x ^ { T } y / \| x \| \| y \|$ with the $L _ { 2 }$ norm $\lVert x \rVert$ , for $t \in \{ 1 , \ldots , \ell \}$ and an integer $\ell$ . Here $\ell$ is the number of propagation layers. Note that the new propagation above is dynamic; propagation changes over the layers with differing $\beta ^ { ( t ) }$ and also the hidden states. It is also adaptive; it learns to weight more relevant neighbors higher. We add the self-loop in the propagation to ensure that the features and the hidden states of the node itself are not lost in the propagation process. The output layer has a weight $W ^ { ( 1 ) } \in \mathbb { R } ^ { d _ { h } \times d _ { y } }$ :
110
+
111
+ $$
112
+ Z ~ = ~ f ( X , A ) ~ = ~ \mathrm { s o f t m a x } \big ( H ^ { ( \ell + 1 ) } W ^ { ( 1 ) } \big ) \ .
113
+ $$
114
+
115
+ The weights $W ^ { ( 0 ) } , W ^ { ( 1 ) }$ , and $\beta ^ { ( t ) }$ ’s are trained on a cross entropy loss in (2). To ease the notations, we have assumed that the input feature vectors to the first and last layers are augmented with a scalar constant of one, so that the standard bias term can be included in the parameters $W ^ { ( 0 ) }$ and $W ^ { ( 1 ) }$ .
116
+
117
+ The softmax function at attention ensures that the propagation layer $P ^ { ( t ) }$ row-sums to one. The attention from node $j$ to node $i$ is
118
+
119
+ $$
120
+ \begin{array} { r c l } { P _ { i j } ^ { ( t ) } } & { = } & { ( 1 / C ) e ^ { \beta ^ { ( t ) } \cos ( H _ { i } ^ { ( t ) } , H _ { j } ^ { ( t ) } ) } , } \end{array}
121
+ $$
122
+
123
+ $\begin{array} { r } { C = \sum _ { j \in N ( i ) \cup \{ i \} } e ^ { \beta ^ { ( t ) } \cos ( H _ { i } ^ { ( t ) } , H _ { j } ^ { ( t ) } ) } } \end{array}$ eβ(t) cos(H(t)i ,H(t)j ) which captures how relevant j is to i, as measured by the cosine of the angle between the corresponding hidden states. We show how we can interpret the attentions in Section 5.2 and show that the attention selects neighbors with the same class to be more relevant. On the standard benchmark datasets on citation networks, we show in Section 5 that this architecture achieves the best performance in Table 2.
124
+
125
+ Here we note that independently from this work attention over sets has been proposed as “neighborhood attention” (Duan et al., 2017; Hoshen, 2017) for a different application. The main difference of AGNN with respect to these work is the fact that in AGNN attention is computed over a neighborhood of a node on a graph, whereas in these work attention over set of all entities is used to construct a “soft neighborhood”.
126
+
127
+ # 5 EXPERIMENTS ON BENCHMARK CITATION NETWORKS
128
+
129
+ On standard benchmark datasets of three citation networks, we test our proposed AGNN model on semi-supervised learning tasks. We test on a fixed split of labeled/validation/test sets from Yang et al. (2016) and compare against baseline methods in Table 2. We also test it on random splits of the same sizes in Table 3, and random splits with larger number of labeled nodes in Table 4.
130
+
131
+ Benchmark Datasets. A citation network dataset consists of documents as nodes and citation links as directed edges. Each node has a human annotated topic from a finite set of classes and a feature vector. We consider three datasets3. For CiteSeer and Cora datasets, the feature vector has binary entries indicating the presence/absence of the corresponding word from a dictionary. For PubMed dataset, the feature vector has real-values entries indicating Term Frequency-Inverse Document Frequency (TF-IDF) of the corresponding word from a dictionary. Although the networks are directed, we use undirected versions of the graphs for all experiments, as is common in all baseline approaches.
132
+
133
+ Labeled nodes
134
+ Table 1: Citation Network Dataset
135
+
136
+ <table><tr><td>Dataset</td><td>Nodes</td><td>Edges</td><td>Classes</td><td>Features</td><td>Table 2</td><td>Table 3</td><td>Table 4</td><td></td></tr><tr><td>CiteSeer</td><td>3,327</td><td>4,732</td><td>6</td><td>3,703</td><td>120</td><td>120</td><td>2,218</td><td>2,994</td></tr><tr><td>Cora</td><td>2,708</td><td>5,429</td><td>7</td><td>1,433</td><td>140</td><td>140</td><td>1,805</td><td>2,437</td></tr><tr><td>PubMed</td><td>19,717</td><td>44,328</td><td>3</td><td>500</td><td>60</td><td>60</td><td>13,145</td><td>17,745</td></tr></table>
137
+
138
+ Experimental setup. The accuracy of the baseline methods are all taken from existing literature. If a baseline result is not reported in the existing literature, we intentionally left those cells empty in the table for fairness, as opposed to running those experiments ourselves on untuned hyperparameters. We train and test only the two models we propose: GLN for comparisons and our proposed AGNN model. We do not use the validation set labels in training, but use them for optimizing hyperparameters like dropout rate, learning rate, and $L _ { 2 }$ -regularization factor. For AGNN, we use a fixed number of $d _ { h } = 1 6$ units in the hidden layers and use 4 propagation layers $\ell = 4$ ) for CiteSeer and Pubmed and 3 propagation layers $\ell = 3$ ) for Cora as defined in (7). For GLN, we use 2 propagation layers as defined in (1). We row-normalize the input feature vectors, as is standard in the literature. The tables below show the average accuracy with the standard error over 100 training instances with random weight initializations. We implement our model on TensorFlow (Abadi et al., 2016), and the computational complexity of evaluating AGNN is $O ( \ell d _ { h } | E | + d _ { x } d _ { h } n )$ . Detailed desription of the experiments is provided in Appendix B.
139
+
140
+ # 5.1 PREDICTION ACCURACY
141
+
142
+ Fixed data splits. In this first experiment, we use the fixed data splits from Yang et al. (2016) as they are the standard benchmark data splits in literature. All experiments are run on the same fixed split of 20 labeled nodes for each class, 500 nodes for validation, 1,000 nodes for test, and the rest of nodes as unlabeled data. Perhaps surprisingly, the linear classifier GLN we proposed in (3) achieves performance comparable to or exceeding the state-of-the-art performance of GCN. This leads to our novel attention-based model AGNN defined in (6), which achieves the best accuracy on all datasets with a gap larger than the standard error. The classification accuracy of all the baseline methods are collected from (Yang et al., 2016; Kipf & Welling, 2016; Such et al., 2017; Monti et al., 2016; Buchnik & Cohen, 2017; Verma et al., 2017).
143
+
144
+ In semi-supervised learning on graphs, it is critical to utilize both the structure of the graph and the node features. Methods not using all the given data achieve performance far from the stateof-the-art. Supervised methods–Single and Multi-layer Perceptrons–only use the labeled examples $( Y _ { L } , X _ { L } )$ . Semi-supervised methods, e.g. T-SVM, only use the labeled and unlabeled examples $Y _ { L }$ , and $X$ . Skip-gram based approaches, such as DeepWalk, ignores the node features $X$ and only use the labels $Y _ { L }$ and the graph $G$ .
145
+
146
+ Table 2: Classification accuracy with a fixed split of data from (Yang et al., 2016).
147
+
148
+ <table><tr><td>Input</td><td>Method</td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td rowspan="2">YL,XL</td><td>Singlelayer Perceptron</td><td>57.2</td><td>57.4</td><td>69.8</td></tr><tr><td>Multilayer Perceptron</td><td>64.0</td><td>57.5</td><td>71.4</td></tr><tr><td>YL,X</td><td>T-SVM (Joachims, 1999)</td><td>64.0</td><td>57.5</td><td>62.2</td></tr><tr><td>YL,G</td><td>DeepWalk (Perozzi et al., 2014) node2vec (Grover &amp; Leskovec,2016)</td><td>43.2 54.7</td><td>67.2 74.9</td><td>65.3 75.3</td></tr><tr><td rowspan="14">YL,X,G</td><td>LP (Zhu et al., 2003)</td><td>45.3</td><td>68.0</td><td>63.0</td></tr><tr><td>ICA (Lu &amp; Getoor,2003)</td><td>69.1</td><td>75.1</td><td>73.9</td></tr><tr><td>ManiReg (Belkin et al.,2006)</td><td>60.1</td><td>59.5</td><td>70.7</td></tr><tr><td>SemiEmb (Weston et al., 2012)</td><td>59.6</td><td>59.0</td><td>71.1</td></tr><tr><td>DCNN (Atwood &amp; Towsley,2016)</td><td></td><td>76.8</td><td>73.0</td></tr><tr><td>Planetoid (Yang et al., 2016)</td><td>64.7</td><td>75.7</td><td>77.2</td></tr><tr><td>MoNet (Monti et al., 2016)</td><td></td><td>81.7</td><td>78.8</td></tr><tr><td>Graph-CNN (Such et al., 2017)</td><td></td><td>76.3</td><td></td></tr><tr><td>DynamicFilter (Verma et al., 2017)</td><td></td><td>81.6</td><td>79.0</td></tr><tr><td>Bootstrap (Buchnik &amp; Cohen,2017)</td><td>53.6</td><td>78.4</td><td>78.8</td></tr><tr><td>GCN (Kipf &amp; Welling,2016)</td><td>70.3</td><td>81.5</td><td>79.0</td></tr><tr><td>GLN</td><td>70.9±.05</td><td>81.2±.05</td><td>78.9±.05</td></tr><tr><td>AGNN (this paper)</td><td>71.7±.08</td><td>82.6±.09</td><td>79.9±.07</td></tr></table>
149
+
150
+ A breakthrough result of Planetoid by Yang et al. (2016) significantly improved upon the existing skip-gram based method of DeepWalk and node2vec and the Laplacian regularized methods of ManiReg and SemiEmb. Kipf & Welling (2016) was the first to apply a graph neural network to citation datasets, and achieved the state-of-the-art performance with GCN. Other variations of graph neural networks immediately followed, achieving comparable performance with MoNet, GraphCNN, and DynamicFilter. Bootstrap uses a Laplacian regularized approach of (Zhou et al., 2004a) as a sub-routine with bootstrapping to feed high-margin predictions as seeds.
151
+
152
+ Random splits. Next, following the setting of Buchnik & Cohen (2017), we run experiments keeping the same size in labeled, validation, and test sets as in Table 2, but now selecting those nodes uniformly at random. This, along with the fact that different topics have different number of nodes in it, means that the labels might not be spread evenly across the topics. For 20 such randomly drawn dataset splits, average accuracy is shown in Table 3 with the standard error. As we do not force equal number of labeled data for each class, we observe that the performance degrades for all methods compared to Table 2, except for DeepWalk. AGNN achieves the best performance consistently. Here, we note that Kipf & Welling (2016) does a similar but different experiment using GCN, where random labeled nodes are evenly spread across topics so that each topic has exactly 20 labeled examples. As this difference in sampling might affect the accuracy, we do not report those results in this table.
153
+
154
+ Table 3: Classification accuracy with random splits of the data.
155
+
156
+ <table><tr><td>Method</td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td>DeepWalk (Perozzi et al., 2014)</td><td>47.2</td><td>70.2</td><td>72.0</td></tr><tr><td>node2vec (Grover&amp;Leskovec,2016)</td><td>47.3</td><td>72.9</td><td>72.4</td></tr><tr><td>Bootstrap (Buchnik &amp; Cohen,2017)</td><td>50.3</td><td>78.2</td><td>75.6</td></tr><tr><td>GLN</td><td>68.4±0.45</td><td>80.0±0.43</td><td>77.7±0.63</td></tr><tr><td>AGNN (this paper)</td><td>69.8±0.35</td><td>81.0±0.34</td><td>78.0±0.46</td></tr></table>
157
+
158
+ Larger training set. Following the setting of Such et al. (2017), we run experiments with larger number of labeled data on Cora dataset. We perform $k$ -fold cross validation experiments for $k =$ 3 and 10, by uniformly and randomly dividing the nodes into $k$ equal sized partitions and then performing $k$ runs of training by masking the labels of each of the $k$ partitions followed by validation on the masked nodes. Finally the average validation accuracy across $k$ runs is reported. We run 10 trials of this experiment and reports the mean and standard error of the average $k$ -fold validation accuracy. Compared to Table 2, the performance increases with the size of the training set, and AGNN consistently outperforms the current state-of-the-art architecture for this experiment.
159
+
160
+ Table 4: Classification accuracy with larger sets of labelled nodes.
161
+
162
+ <table><tr><td>Method</td><td>3-fold Split</td><td>10-fold split</td></tr><tr><td>Graph-CNN (Such et al., 2017)</td><td>87.55±1.38</td><td>89.18±1.96</td></tr><tr><td>GLN</td><td>87.98±0.08</td><td>88.24±0.07</td></tr><tr><td>AGNN (this paper)</td><td>89.07±0.08</td><td>89.60±0.09</td></tr></table>
163
+
164
+ # 5.2 QUALITATIVE ANALYSIS
165
+
166
+ One useful aspect of incorporating attention into a model is that it provides some form of interpretation capability (Bahdanau et al., 2014). The learned $P _ { i j } ^ { ( t ) }$ ’s in Eq. (7) represent the attention from node $j$ to node $i$ , and provide insights on how relevant node $j$ is in classifying node $i$ . In Figure 1, we provide statistics of this attention over all adjacent pairs of nodes for Cora and CiteSeer datasets. We refer to Figure 3 for similar statistics on PubMed. In Figure 1, we show average attention from a node in topic $c _ { 2 }$ (column) to a node in topic $c _ { 1 }$ (row), which we call the relevance from $c _ { 2 }$ to $c _ { 1 }$ and is defined as
167
+
168
+ $$
169
+ \mathrm { R e l e v a n c e } ( c _ { 2 } \to c _ { 1 } ) = \frac { 1 } { | S _ { c _ { 1 } , c _ { 2 } } | } \sum _ { ( i , j ) \in S _ { c _ { 1 } , c _ { 2 } } } R ( j \to i ) ,
170
+ $$
171
+
172
+ for edge-wise relevance score defined as
173
+
174
+ $$
175
+ R ( j \to i ) = \left( P _ { i j } ^ { ( t ) } - \frac { 1 } { | N ( i ) | + 1 } \right) \Biggl / \frac { 1 } { | N ( i ) | + 1 } ,
176
+ $$
177
+
178
+ where $| N ( i ) |$ is the degree of node $i$ , and $S _ { c _ { 1 } , c _ { 2 } } = \{ ( i , j ) \in E ^ { s }$ and $Y _ { i } = c _ { 1 } , Y _ { j } = c _ { 2 } \}$ where $E ^ { s } =$ $E \cup \{ ( i , i )$ for $i \in V \}$ is the edge set augmented with self-loops to include all the attentions learned. If we are not using any attention, then the typical propagation will be uniform $P _ { i j } = 1 / ( | N ( i ) | + 1 )$ , in which case the above normalized attention is zero. We are measuring for each edge the variation of attention $P _ { i j }$ from uniform $1 / ( | N ( i ) | + 1 )$ as a multiplicative error, normalized by $1 / ( | N ( i ) | + 1 )$ . We believe this is the right normalization, as attention should be measure in relative strength to others in the same neighborhood, and not in absolute additive differences. We are measuring this multiplicative variation of the attention, averaged over the ordered pairs of classes.
179
+
180
+ Figure 1 shows the relevance score for CiteSeer and Cora datasets. (PubMed is shown in Appendix A.) For both datasets, the diagonal entries are dominant indicating that the attention is learning to put more weight to those in the same class. A higher value of Relevance $' c _ { 2 } c _ { 1 } ,$ ) indicates that, on average, a node in topic $c _ { 1 }$ pays more attention to a neighbor in topic $c _ { 2 }$ than neighbors from other topics. For CiteSeer dataset (Figure 1 left), we are showing the average attention at the first propagation layer, $P ^ { ( t = 1 ) }$ , for illustration. In the off-diagonals, the most influential relations are $\mathrm { H C I } { } .$ Agents, Agents ${ \bf \Gamma } \to { \bf M L }$ , Agents $\mathrm { \Gamma \to H C I }$ , and ML Agents, and the least influential relations are $\mathrm { A I } { } \mathrm { I R }$ and DB $\bf \Pi _ { \Pi } { } \bf M \cal L$ . Note that these are papers in computer science from late 90s to early 2000s. For Cora dataset (Figure 1 right), we are showing the relevance score of the second propagation layer, $P ^ { ( t = 2 ) }$ , for illustration. In the off-diagonals, the most influential relations are $\mathrm { C B } { } \mathrm { P M }$ , $\mathrm { P M } \to \mathrm { C B }$ , Rule $\mathrm { \Gamma } \to \mathrm { P M }$ , and $\mathrm { P M } \to$ Rule, and the least influential relations are $\mathbf { G A } { } \mathbf { P M }$ and $\mathrm { P M } \to \mathrm { R L }$ . This dataset has papers in computer science from the 90s. We note that these relations are estimated solely based on the available datasets for that period of time and might not accurately reflect the relations for the entire academic fields. We also consider these relations as a static property in this analysis. If we have a larger corpus over longer period of time, it is possible to learn the influence conditioned on the period and visualize how these relations change.
181
+
182
+ Next, we analyze the edges with high and low relevance scores. We remove the self-loops and then sort the edges according to the relevance score defined in Eq. (9). We take the top 100 and bottom 100 edges and with respect to their relevance scores, and report the fraction of the edges which are connecting nodes from the same class. Table 5 shows the result on the benchmark datasets for the relevance scores calculated using the last propagation layer. This suggests that our architecture learns to put higher attention between nodes of the same class.
183
+
184
+ ![](images/ba9d7104cc0e9d79b46371f0bebb1fac0ad6022efdbbfa7063a3fd2563ba6190.jpg)
185
+ Figure 1: Relevance score in Eq. (8) from a neighbor node with column-class to a center node in row-class. For example the average normalized attention to Agents from HCI is $= - 0 . 1 4 1$ , largest off-diagonal entry in CiteSeer. The average attention to Probabilistic Methods (PM) from Case Based (CB) is 0.017, largest off-diagonal entry in Cora.
186
+
187
+ <table><tr><td></td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td>Top 100</td><td>0.69</td><td>0.64</td><td>0.69</td></tr><tr><td>Bottom 100</td><td>0.34</td><td>0.09</td><td>0.13</td></tr></table>
188
+
189
+ Table 5: Fraction of edges from top 100 most relevant edges and bottom 100 least relevant edges which are connecting two distinct nodes from the same class.
190
+
191
+ Finally, we analyze those nodes in the test sets that were mistaken by GCN but correctly classified by AGNN, and show how our attention mechanism weighted the contribution of its local neighborhood, and show three illustrative examples in Figure 2. More examples of this local attention network (including the legends for the color coding of the topics) are provided in Appendix A. We show a entire 2-hop neighborhood of a target node (marked by a thick outline) from the test set of the fixed data splits of Citeseer, Cora, or Pubmed. The colors denote the true classes of the nodes (including the target) in the target’s neighborhood, some of which are unknown to the models at the training time. The radius of a node $j$ is proportional to the attention to the target node $i$ aggregated over all the layers, i.e. $( P ^ { ( t = 4 ) } P ^ { ( t = 3 ) } P ^ { ( t = 2 ) } P ^ { ( t = 1 ) } ) _ { i j }$ for CiteSeer. The size of the target node reflects its self-attention defined in a similar way. The first example on the left is node 8434 from PubMed. AGNN correctly classifies the target node as light blue, whereas GCN mistakes it for yellow, possibly because it is connected to more yellow nodes. Not only has the attention mechanism learned to put more weight to its light blue 1-hop neighbor, but put equally heavy weights to a path of light blue neighbors some of which are not immediately connected to the target node. The second example in the middle is node 1580 from PubMed. AGNN correctly classifies it as yellow, whereas GCN mistakes it for a red, possibly because it only has two neighbors. Not only has the attention mechanism learned to put more weight to the yellow neighbor, but it has weighted the yellow neighbor (who is connected to many yellow nodes and perhaps has more reliable hidden states representing the true yellow class) even more than itself.
192
+
193
+ The last example on the right is node 1512 from CiteSeer. AGNN correctly classifies it as light blue, whereas GCN mistakes it for a white. This is a special example as those two nodes are completely isolated. Due to the static and non-adaptive propagation of GCN, it ends up giving the same prediction for such isolated pairs. If the pair has two different true classes, then it always fails on at least on one of them (in this case the light blue node). However, AGNN is more flexible in adapting to such graph topology and puts more weight to the target node itself, correctly classifying both.
194
+
195
+ # 6 CONCLUSIONS
196
+
197
+ In this paper, we present an attention-based graph neural network model for semi-supervised classification on a graph. We demonstrate that our method consistently outperforms competing methods on the standard benchmark citation network datasets. We also show that the learned attention also provides interesting insights on how neighbors influence each other. In training, we have tried more complex attention models. However, due to the increased model complexity the training was not stable and does not give higher accuracy. We believe that for semi-supervised setting with such a limited number of labeled examples, reducing model complexity is important. Note that we are able to train deeper (4-layers) models compared to a shallower (2-layers) model of GCN, in part due to the fact that we remove the non-linear layers and reduce the model complexity significantly. In comparison, deeper GCN models are known to be unstable and do not give the performance of shallower GCNs (Kipf & Welling, 2016).
198
+
199
+ ![](images/746099e24bddd012b7ea228587a2be040c6b393b554acb382dc318aad4054062.jpg)
200
+ Figure 2: We show three selected target nodes in the test set that are mistaken by GCN but correctly classified by AGNN. We denote this target node by the node with a thick outline (node 8434 from PubMed on the left, node 1580 from PubMed in the middle, and node 1512 from CiteSeer on the right). We show the strength of attention from a node in the 2-hop neighborhood to the target node by the size of the corresponding node. Colors represent the hidden true classes (nodes with the same color belong to the same topic). None of the nodes in the figure was in the training set, hence none of the colors were revealed. Still, we observe that AGNN has managed to put more attention to those nodes in the same (hidden) classes, allowing the trained model to find the correct labels.
201
+
202
+ # REFERENCES
203
+
204
+ S. Gunnemann A. Bojchevski. Deep gaussian embedding of attributed graphs: Unsupervised inductive learning via ranking. arXiv preprint arXiv:1707.03815, 2017.
205
+ Martin Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
206
+ J. Atwood and D. Towsley. Diffusion-convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1993–2001, 2016.
207
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
208
+ 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.
209
+ R. van den Berg, T. N. Kipf, and M. Welling. Graph convolutional matrix completion. arXiv preprint arXiv:1706.02263, 2017.
210
+ Avrim Blum and Shuchi Chawla. Learning from labeled and unlabeled data using graph mincuts. In ICML ’01 Proceedings of the Eighteenth International Conference on Machine Learning, 2001.
211
+ Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. arXiv preprint arXiv:1611.08097, 2016.
212
+ J. Bruna and X. Li. Community detection with graph neural networks. arXiv preprint arXiv:1705.08415, 2017.
213
+ Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013.
214
+
215
+ Eliav Buchnik and Edith Cohen. Bootstrapped graph diffusions: Exposing the power of nonlinearity. arXiv preprint arXiv:1703.02618, 2017.
216
+
217
+ Olivier Chapelle, Bernhard Scholkopf, and Alexander Zien. Semi-supervised learning (chapelle, o. et al., eds.; 2006)[book reviews]. IEEE Transactions on Neural Networks, 20(3):542–542, 2009.
218
+
219
+ H. Dai, B. Dai, and L. Song. Discriminative embeddings of latent variable models for structured data. In International Conference on Machine Learning, pp. 2702–2711, 2016.
220
+
221
+ Hanjun Dai, Elias B Khalil, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial optimization algorithms over graphs. arXiv preprint arXiv:1704.01665, 2017.
222
+
223
+ Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3837–3845, 2016.
224
+
225
+ Yan Duan, Marcin Andrychowicz, Bradly Stadie, Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. arXiv preprint arXiv:1703.07326, 2017.
226
+
227
+ 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 Advances in neural information processing systems, pp. 2224–2232, 2015.
228
+
229
+ Evgeniy Faerman, Felix Borutta, Kimon Fountoulakis, and Michael W Mahoney. Lasagne: Locality and structure aware graph node embedding. arXiv preprint arXiv:1710.06520, 2017.
230
+
231
+ Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. arXiv preprint arXiv:1704.01212, 2017.
232
+
233
+ Marco Gori, Gabriele Monfardini, and Franco Scarselli. A new model for learning in graph domains. In Neural Networks, 2005. IJCNN’05. Proceedings. 2005 IEEE International Joint Conference on, volume 2, pp. 729–734. IEEE, 2005.
234
+
235
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
236
+
237
+ A. Grover and J. Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 855–864. ACM, 2016.
238
+
239
+ W. L. Hamilton, R. Ying, and J. Leskovec. Inductive representation learning on large graphs. arXiv preprint arXiv:1706.02216, 2017.
240
+
241
+ Mikael Henaff, Joan Bruna, and Yann LeCun. Deep convolutional networks on graph-structured data. arXiv preprint arXiv:1506.05163, 2015.
242
+
243
+ Yedid Hoshen. Vain: Attentional multi-agent predictive modeling. In Advances in Neural Information Processing Systems, pp. 2698–2708, 2017.
244
+
245
+ Thorsten Joachims. Transductive inference for text classification using support vector machines. In ICML, volume 99, pp. 200–209, 1999.
246
+
247
+ T. N. Kipf and M. Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
248
+
249
+ Q. Le and T. Mikolov. Distributed representations of sentences and documents. In Proceedings of the 31st International Conference on Machine Learning (ICML-14), pp. 1188–1196, 2014.
250
+
251
+ Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel. Gated graph sequence neural networks. arXiv preprint arXiv:1511.05493, 2015.
252
+
253
+ Qing Lu and Lise Getoor. Link-based classification. In Proceedings of the 20th International Conference on Machine Learning (ICML-03), pp. 496–503, 2003.
254
+
255
+ Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M\` Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. arXiv preprint arXiv:1611.08402, 2016.
256
+
257
+ M. Niepert, M. Ahmed, and K. Kutzkov. Learning convolutional neural networks for graphs. In Proceedings of the 33rd annual international conference on machine learning. ACM, 2016.
258
+
259
+ Kamal Nigam, Andrew McCallum, and Tom Mitchell. Semi-supervised text classification using em. Semi-Supervised Learning, pp. 33–56, 2006.
260
+
261
+ A. Nowak, S. Villar, A. S. Bandeira, and J. Bruna. A note on learning algorithms for quadratic assignment with graph neural networks. arXiv preprint arXiv:1706.07450, 2017.
262
+
263
+ B. Perozzi, R. Al-Rfou, and S. Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 701–710. ACM, 2014.
264
+
265
+ Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2009.
266
+
267
+ M. Schlichtkrull, T. N. Kipf, P. Bloem, R. van den Berg, I. Titov, and M. Welling. Modeling relational data with graph convolutional networks. arXiv preprint arXiv:1703.06103, 2017.
268
+
269
+ Felipe Petroski Such, Shagan Sah, Miguel Dominguez, Suhas Pillai, Chao Zhang, Andrew Michael, Nathan Cahill, and Raymond Ptucha. Robust spatial filtering with graph convolutional neural networks. arXiv preprint arXiv:1703.00792, 2017.
270
+
271
+ Sainbayar Sukhbaatar, arthur szlam, and Rob Fergus. Learning multiagent communication with backpropagation. In Advances in Neural Information Processing Systems 29, pp. 2244–2252. 2016.
272
+
273
+ Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In Proceedings of the 24th International Conference on World Wide Web, pp. 1067–1077. ACM, 2015.
274
+
275
+ Nitika Verma, Edmond Boyer, and Jakob Verbeek. Dynamic filters in graph convolutional networks. arXiv preprint arXiv:1706.05206, 2017.
276
+
277
+ Jason Weston, Fred´ eric Ratle, Hossein Mobahi, and Ronan Collobert. Deep learning via semi- ´ supervised embedding. In Neural Networks: Tricks of the Trade, pp. 639–655. Springer, 2012.
278
+
279
+ Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015.
280
+
281
+ Xiaojun Xu, Chang Liu, Qian Feng, Heng Yin, Le Song, and Dawn Song. Neural networkbased graph embedding for cross-platform binary code similarity detection. arXiv preprint arXiv:1708.06525, 2017.
282
+
283
+ Cheng Yang, Maosong Sun, Zhiyuan Liu, and Cunchao Tu. Fast network embedding enhancement via high order proximity approximation. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, IJCAI, pp. 19–25, 2017.
284
+
285
+ Z. Yang, W. W. Cohen, and R. Salakhutdinov. Revisiting semi-supervised learning with graph embeddings. arXiv preprint arXiv:1603.08861, 2016.
286
+
287
+ Denny Zhou, Olivier Bousquet, Thomas N Lal, Jason Weston, and Bernhard Scholkopf. Learning ¨ with local and global consistency. In Advances in neural information processing systems, pp. 321–328, 2004a.
288
+
289
+ Denny Zhou, Olivier Bousquet, Thomas N Lal, Jason Weston, and Bernhard Scholkopf. Learning ¨ with local and global consistency. In Advances in neural information processing systems, pp. 321–328, 2004b.
290
+
291
+ Xiaojin Zhu and Zoubin Ghahramani. Learning from labeled and unlabeled data with label propagation. 2002.
292
+
293
+ Xiaojin Zhu, Zoubin Ghahramani, and John D Lafferty. Semi-supervised learning using gaussian fields and harmonic functions. In Proceedings of the 20th International conference on Machine learning (ICML-03), pp. 912–919, 2003.
294
+
295
+ # APPENDIX
296
+
297
+ # A ADDITIONAL EXPERIMENTS ON INTERPRETABILITY OF ATTENTION
298
+
299
+ PubMed dataset has only 3 classes, and the relevance score is shown in the figure below.
300
+
301
+ ![](images/218614320c5e8af70e050b686490d68b16ad4a69af18a7e847312779b9e4dd46.jpg)
302
+ Figure 3: Average attention in Eq. (8) from a column class to a row class
303
+
304
+ We show examples of 2-hop local neighborhood of nodes that are mistaken by GCN but correctly classified by AGNN.
305
+
306
+ ![](images/e4934394b1d8b00da6d1f5ba19edaf716754392d6b2bea3861bb5150deafc241.jpg)
307
+ Figure 4: Examples from CiteSeer dataset of attention strength in the local neighborhood of a target node (in thick outline) from the test set that is mistaken by GCN but correctly classified by AGNN. Colors are true classes and node sizes are proportional to the attention strength from a neighbor to the target node. Labeled nodes from training set are marked with ‘\*’.
308
+
309
+ # B EXPERIMENT AND ARCHITECT DETAILS
310
+
311
+ In this section we will list all the choices made in training and tuning of hyper-parameters. The parameters are chosen as to maximize the validation. All the models use Adam optimization algorithm with full-batchs, as standard in other works on GNNs (Kipf & Welling, 2016; Such et al., 2017). We also a weight decay term to the objective function for all the learnable weights. We add dropout to the first and last layers of all models.
312
+
313
+ In Table 6. we show the hyper-parameters used in training the AGNN models for various settings and datasets. For Cora dataset the architecture consist of $\ell = 3$ propagation layers, but the first propagation layer $P ^ { ( t = 1 ) }$ is non-trainable and the variable $\beta ^ { ( t = 1 ) }$ value is fixed at zero. While training these AGNN models we maintain the validation accuracy for each iteration and finally choose the trained model parameters from the iteration where average validation accuracy of previous 4 epochs is maximized. For the $k$ -fold cross validation setting we take the epoch with maximum validation accuracy.
314
+
315
+ ![](images/154ecc254c87ebbf4f9d53d65bc0dd13354298aaa3517792e26baa5b82a4dcbc.jpg)
316
+ Figure 5: Examples from Cora dataset of attention strength in the local neighborhood of a target node (in thick outline) from the test set that is mistaken by GCN but correctly classified by AGNN. Colors are true classes and node sizes are proportional to the attention strength from a neighbor to the target node. Labeled nodes from training set are marked with ‘\*’.
317
+
318
+ ![](images/fb7c08d490ed620cf75a6bc19d8ae206e115d8cc8bcf9e5410bde7b6e9065d14.jpg)
319
+ Figure 6: Examples from Pubmed dataset of attention strength in the local neighborhood of a target node (in thick outline) from the test set that is mistaken by GCN but correctly classified by AGNN. Colors are true classes and node sizes are proportional to the attention strength from a neighbor to the target node. Labeled nodes from training set are marked with ‘\*’.
320
+
321
+ Table 6: Hyper-parameters for AGNN model
322
+
323
+ <table><tr><td rowspan="2"> Setting</td><td rowspan="2">Dataset</td><td rowspan="2">Propagation layers (l)</td><td rowspan="2">Hidden state dimension (dh)</td><td rowspan="2">Learning Rate</td><td rowspan="2">Weight Decay</td><td rowspan="2">Dropout</td><td rowspan="2">Epochs</td></tr><tr><td></td></tr><tr><td>Fixed Split</td><td>CiteSeer</td><td>4</td><td>16</td><td>0.005</td><td>0.0005</td><td>0.5</td><td>1000</td></tr><tr><td>Fixed Split</td><td>Cora</td><td>3</td><td>16</td><td>0.01</td><td>0.0005</td><td>0.5</td><td>1000</td></tr><tr><td>Fixed Split</td><td>PubMed</td><td>4</td><td>16</td><td>0.008</td><td>0.001</td><td>0.5</td><td>400</td></tr><tr><td>Rand. Split</td><td>CiteSeer</td><td>4</td><td>16</td><td>0.01</td><td>0.0005</td><td>0.5</td><td>1000</td></tr><tr><td>Rand. Split</td><td>Cora</td><td>3</td><td>16</td><td>0.01</td><td>0.0005</td><td>0.5</td><td>1000</td></tr><tr><td>Rand. Split</td><td>PubMed</td><td>4</td><td>16</td><td>0.008</td><td>0.001</td><td>0.5</td><td>1000</td></tr><tr><td>Cross Val.</td><td>Cora</td><td>3</td><td>16</td><td>0.04</td><td>0.0005</td><td>0.25</td><td>500</td></tr></table>
324
+
325
+ For the Graph Linear Network (GLN) as define in (3), we use the same hyper-parameters as GCN (Kipf & Welling, 2016) for all the experimental settings: hidden dimension of 16, learning rate of 0.01, weight decay of $5 \times 1 0 ^ { - 4 }$ , dropout of 0.5, 200 epochs and early stopping criteria with a window size of 10.
326
+
327
+ # C PERFORMANCE VERSUS NUMBER OF PROPAGATION LAYERS
328
+
329
+ In this section we provide experimental results justifying the choice of number of propagation layers for each dataset. We use the same data split and hyper-parameters (except number of propagation layer) as in the fixed data splits setting in Section 5.1. Similar to other settings the first propagation layer for Cora dataset is non-trainable with $\beta ^ { ( t = 1 ) } = 0$ . Tables 7 gives the average (over 10 trials) testing accuracy respectively for various choices of number of propagation layers. We note that different datasets require different number of propagation layers for best performance.
330
+
331
+ Table 7: Average testing error of AGNN for different number of Propagation Layers.
332
+
333
+ <table><tr><td>Propagation Layers ()</td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td>1</td><td>69.08</td><td>80.52</td><td>78.31</td></tr><tr><td>2</td><td>70.83</td><td>83.07</td><td>79.66</td></tr><tr><td>3</td><td>71.06</td><td>82.62</td><td>79.56</td></tr><tr><td>4</td><td>71.70</td><td>82.24</td><td>80.10</td></tr><tr><td>5</td><td>71.37</td><td>82.07</td><td>80.13</td></tr></table>
334
+
335
+ D PERFORMANCE OF GCN ON OTHER DATASET SPLITS.
336
+ Table 8: Classification accuracy with random splits of the data.
337
+
338
+ <table><tr><td>Method</td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td>DeepWalk (Perozzi et al., 2014)</td><td>47.2</td><td>70.2</td><td>72.0</td></tr><tr><td>node2vec (Grover &amp; Leskovec,2016)</td><td>47.3</td><td>72.9</td><td>72.4</td></tr><tr><td>Bootstrap (Buchnik &amp; Cohen,2017)</td><td>50.3</td><td>78.2</td><td>75.6</td></tr><tr><td>GCN</td><td>66.9±0.50</td><td>79.2±0.46</td><td>77.5±0.61</td></tr><tr><td>GLN</td><td>68.4±0.45</td><td>80.0±0.43</td><td>77.7±0.63</td></tr><tr><td>AGNN (this paper)</td><td>69.8±0.35</td><td>81.0±0.34</td><td>78.0±0.46</td></tr></table>
339
+
340
+ Here we provide the performance of GCN on random splits and larger training set dataset splits from Section 5.1. We relegate these tables to the appendix since they were not present in Kipf & Welling (2016). We conducted the experiments with the same hyper-parameters as chosen by Kipf & Welling (2016) for the fixed split. In Tables 8 and 9 we provide average testing accuracy and standard error over 20 and 10 runs on random splits and larger training set respectively.
341
+
342
+ Table 9: Classification accuracy with larger sets of labelled nodes.
343
+
344
+ <table><tr><td>Method</td><td>3-fold Split</td><td>10-fold split</td></tr><tr><td>Graph-CNN (Such et al., 2017)</td><td>87.55±1.38</td><td>89.18±1.96</td></tr><tr><td>GCN</td><td>87.23±0.21</td><td>87.78±0.04</td></tr><tr><td>GLN</td><td>87.98±0.08</td><td>88.24±0.07</td></tr><tr><td>AGNN (this paper)</td><td>89.07±0.08</td><td>89.60±0.09</td></tr></table>
parse/train/rJg4YGWRb/rJg4YGWRb_content_list.json ADDED
@@ -0,0 +1,1752 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ATTENTION-BASED GRAPH NEURAL NETWORK FORSEMI-SUPERVISED LEARNING",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Recently popularized graph neural networks achieve the state-of-the-art accuracy on a number of standard benchmark datasets for graph-based semi-supervised learning, improving significantly over existing approaches. These architectures alternate between a propagation layer that aggregates the hidden states of the local neighborhood and a fully-connected layer. Perhaps surprisingly, we show that a linear model, that removes all the intermediate fully-connected layers, is still able to achieve a performance comparable to the state-of-the-art models. This significantly reduces the number of parameters, which is critical for semi-supervised learning where number of labeled examples are small. This in turn allows a room for designing more innovative propagation layers. Based on this insight, we propose a novel graph neural network that removes all the intermediate fullyconnected layers, and replaces the propagation layers with attention mechanisms that respect the structure of the graph. The attention mechanism allows us to learn a dynamic and adaptive local summary of the neighborhood to achieve more accurate predictions. In a number of experiments on benchmark citation networks datasets, we demonstrate that our approach outperforms competing methods. By examining the attention weights among neighbors, we show that our model provides some interesting insights on how neighbors influence each other. ",
40
+ "bbox": [
41
+ 233,
42
+ 266,
43
+ 764,
44
+ 517
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 544,
55
+ 336,
56
+ 560
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "One of the major bottlenecks in applying machine learning in practice is collecting sizable and reliable labeled data, essential for accurate predictions. One way to overcome the problem of limited labeled data is semi-supervised learning, using additional unlabeled data that might be freely available. In this paper, we are interested in a scenario when this additional unlabeled data is available in a form of a graph. The graph provides underlying pairwise relations among the data points, both labeled and unlabeled. ",
63
+ "bbox": [
64
+ 174,
65
+ 575,
66
+ 823,
67
+ 659
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Of particular interest are those applications where the presence or absence of an edge between two data points is determined by nature, for instance as a result of human activities or natural relations. As a concrete example, consider a citation network. Each node in the graph is a published research paper, associated with a bag-of-words feature vector. An (directed) edge indicates a citation link. Presence of an edge indicates that the authors of a paper have consciously determined to refer to the other paper, and hence captures some underlying relation that might not be inferred from the bag-of-words feature vectors alone. Such external graph data are available in several applications of interest, such as classifying users connected via a social network, items and customers connected by purchase history, users and movies connected by viewing history, and entities in a knowledge graph connected by relationships. In this paper, we are interested in the setting where the graph is explicitly given and represents additional information not present in the feature vectors. ",
74
+ "bbox": [
75
+ 174,
76
+ 666,
77
+ 825,
78
+ 819
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "The goal of such graph-based semi-supervised learning problems is to classify the nodes in a graph using a small subset of labeled nodes and all the node features. There is a long line of literature on this topic since Blum & Chawla (2001) which seeks graph cuts that preserve the known labels and Zhu et al. (2003) which uses graph Laplacian to regularize the nearby nodes to have similar labels. However, Kipf & Welling (2016) recently demonstrated that the existing approaches can be significantly improved upon on a number of standard benchmark datasets, using an innovative neural network architecture on graph-based data known collectively as graph neural networks. ",
85
+ "bbox": [
86
+ 174,
87
+ 827,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Inspired by this success, we seek to understand the reason behind the power of graph neural networks, to guide our design of a novel architecture for semi-supervised learning on graphs. To this end, we first found that a linear classifier of multinomial logistic regression achieves the accuracy comparable to the best known graph neural network. This linear classifier removes all intermediate non-linear activation layers, and only keeps the linear propagation function from neighbors in graph neural networks. This suggests the importance of aggregation information form the neighbors in the graph. This further motivates us to design a new way of aggregating neighborhood information through attention mechanism since, intuitively, neighbors might not be equally important. This proposed attention-based graph neural network captures this intuition and $( a )$ greatly reduces the model complexity, with only a single scalar parameter at each intermediate layer; $( b )$ discovers dynamically and adaptively which nodes are relevant to the target node for classification; and $( c )$ improves upon state-of-the-art methods in terms of accuracy on standard benchmark datasets. Further, the learned attention strengths provide some form of interpretability. They provide insights on why a particular prediction is made on a target node and which neighbors are more relevant in making that decision. ",
96
+ "bbox": [
97
+ 173,
98
+ 104,
99
+ 825,
100
+ 311
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "2 RELATED WORK ",
107
+ "text_level": 1,
108
+ "bbox": [
109
+ 176,
110
+ 332,
111
+ 344,
112
+ 348
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "Given a graph $G ( V , E )$ with a set of $n$ nodes $V$ and a set of edges $E$ , we let $X _ { i } \\in \\mathbb { R } ^ { d _ { x } }$ denote the feature vector at node $i$ and let $Y _ { i }$ denote the true label. We use $Y _ { L }$ to denote the labels that are revealed to us for a subset $L \\subset V$ . We let $X = [ X _ { 1 } , \\ldots , X _ { n } ]$ denote all features, labeled and unlabeled. ",
119
+ "bbox": [
120
+ 174,
121
+ 363,
122
+ 825,
123
+ 419
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Traditionally, semi-supervised learning using both labeled and un-labled data has been solved using two different approaches - Graph Laplacian based algorithms solving for locally consistent solutions (Zhou et al., 2004b) and Expectation Maximization based algorithms (Nigam et al., 2006) where true-labels of the unlabeled data points are considered as the latent variables of a generative model. ",
130
+ "bbox": [
131
+ 174,
132
+ 425,
133
+ 825,
134
+ 482
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Graph Laplacian regularization. Based on the assumption that nearby nodes in a graph are more likely to have the same labels, the graph information has been used as explicit regularization: ",
141
+ "bbox": [
142
+ 173,
143
+ 488,
144
+ 821,
145
+ 517
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "equation",
151
+ "img_path": "images/affffdaff9841d7efb9425e2b33f0c0dacdac1957c3bde49eafa2b2870574d8f.jpg",
152
+ "text": "$$\n\\begin{array} { r c l } { { \\mathcal L } ( X , Y _ { L } ) } & { { = } } & { { { \\mathcal L } _ { \\mathrm { l a b e l } } ( X _ { L } , Y _ { L } ) + \\lambda { \\mathcal L } _ { G } ( X ) ~ , } } \\end{array}\n$$",
153
+ "text_format": "latex",
154
+ "bbox": [
155
+ 344,
156
+ 521,
157
+ 650,
158
+ 540
159
+ ],
160
+ "page_idx": 1
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "where $\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { l a b e l } } = \\sum _ { i \\in L } l ( Y _ { i } , f ( X _ { i } ) ) } \\end{array}$ is the standard supervised loss for some loss functions $l$ and $\\mathcal { L } _ { G }$ is the graph-based regularization, for example $\\begin{array} { r } { \\mathcal { L } _ { G } = \\sum _ { ( i , j ) \\in E } \\| f ( X _ { i } ) - f ( X _ { j } ) \\| ^ { 2 } } \\end{array}$ , which is called the graph Laplacian regularization. Earlier approaches are non-parametric and searches over all $f$ considering it as a look-up table. Most popular one is the Label Propagation (Zhu & Ghahramani, 2002) that forces the estimated labels to agree in the labeled instances and uses weighted graph Laplacian. This innovative formulation admits a closed form solution which makes it practically attractive with very low computationally cost. ManiReg (Belkin et al., 2006) replaces supervised loss with that of a support vector machine. ICA (Lu & Getoor, 2003) generalizes LP by allowing more general local updates. A more thorough survey on using non-neural network methods for semi-supervised learning can be found in (Chapelle et al., 2009). ",
165
+ "bbox": [
166
+ 174,
167
+ 542,
168
+ 825,
169
+ 688
170
+ ],
171
+ "page_idx": 1
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "More recent approaches are parametric, using deep neural networks. SemiEmb (Weston et al., 2012) was the first to use a deep neural network to model $f ( x )$ and minimize the above loss. Planetoid (Yang et al., 2016) significantly improves upon the existing graph regularization approaches by replacing the regularization by another loss based on skip-grams (defined below). In a slightly different context, Buchnik & Cohen (2017) show that the accuracy of these approaches can be further improved by bootstrapping these models sequentially. ",
176
+ "bbox": [
177
+ 174,
178
+ 694,
179
+ 823,
180
+ 777
181
+ ],
182
+ "page_idx": 1
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "Unsupervised node embedding for semi-supervised learning. Several approaches have been proposed to embed the nodes in some latent Euclidean space using only the connectivity in graph $G$ . Once the embedding is learned, standard supervised learning is applied on those embedded features to train a model. Inspired by the success of word2vec (Le & Mikolov, 2014), several approaches define “skip-grams” on graphs as the neighborhood (context) of a node on the graph and tries to maximize the posterior probability of observing those skip-grams. DeepWalk (Perozzi et al., 2014) and node2vec (Grover & Leskovec, 2016) use random walks as skip-grams, LINE (Tang et al., 2015) uses local proximities, LASAGNE (Faerman et al., 2017) uses the Personalized PageRank random walk. Graph2Gauss (A. Bojchevski, 2017) represents a node as a Gaussian distribution, and minimizes the divergence between connected pairs. Yang et al. (2017) provide a post-processing scheme that takes any node embedding and attempts to improve it by by taking the weighted sum of the given embeddings with Personalized PageRank weights. The strength of these approaches is universality, as the node embedding does not depend on the particular task at hand (and in particular the features or the labels). However, as they do not use the node features and the training only happens after embedding, they cannot meet the performance of the state-of-the-art approaches (see DeepWalk in Table 2). ",
187
+ "bbox": [
188
+ 174,
189
+ 785,
190
+ 825,
191
+ 924
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "",
198
+ "bbox": [
199
+ 174,
200
+ 103,
201
+ 825,
202
+ 188
203
+ ],
204
+ "page_idx": 2
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "Graph Neural Network (GNN). Graph neural networks are extensions of neural networks to structured data encoded as a graph. Originally introduced as extensions of recurrent neural networks, GNNs apply recurrent layers to each node with additional local averaging layer (Gori et al., 2005; Scarselli et al., 2009). However, as the weights are shared across all nodes, GNNs can also be interpreted as extensions of convolutional neural networks on a 2D grid to general graphs. Typically, a message aggregation step followed by some neural network architecture is iteratively applied. The model parameters are trained on (semi-)supervised examples with labels. We give a typical example of a GNN in Section 3, but several diverse variations have been proposed in (Bruna et al., 2013; Duvenaud et al., 2015; Li et al., 2015; Henaff et al., 2015; Sukhbaatar et al., 2016; Bronstein et al., 2016; Defferrard et al., 2016; Dai et al., 2016; Atwood & Towsley, 2016; Niepert et al., 2016; Such et al., 2017; Hamilton et al., 2017; Schlichtkrull et al., 2017; Such et al., 2017). GNNs have been successfully applied in diverse applications such as molecular activation prediction (Gilmer et al., 2017), community detection (Bruna & Li, 2017), matrix completion (Berg et al., 2017), combinatorial optimization (Dai et al., 2017; Nowak et al., 2017), and detecting similar binary codes (Xu et al., 2017). ",
209
+ "bbox": [
210
+ 174,
211
+ 194,
212
+ 825,
213
+ 401
214
+ ],
215
+ "page_idx": 2
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "In particular, for the benchmark datasets that we consider in this paper, Kipf & Welling (2016) proposed a simple but powerful architecture called Graph Convolutional Network (GCN) that achieves the state-of-the-art accuracy. In the following section, $( a )$ we show that the performance of GCN can be met by a linear classifier; and $( b )$ use this insight to introduce novel graph neural networks that compare favourably against the state-of-the-art approaches on benchmark datasets. ",
220
+ "bbox": [
221
+ 174,
222
+ 409,
223
+ 825,
224
+ 479
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "3 DISSECTION OF GRAPH NEURAL NETWORK ",
231
+ "text_level": 1,
232
+ "bbox": [
233
+ 174,
234
+ 500,
235
+ 571,
236
+ 516
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "In this section, we propose a novel Graph Neural Network (GNN) model which we call Attentionbased Graph Neural Network (AGNN), and compare its performance to state-of-the-art models on benchmark citation networks in Section 5. We seek a model $Z = f ( X , A ) \\in \\mathbb { R } ^ { n \\times d _ { y } }$ that predicts at each node one of the $d _ { y }$ classes. $Z _ { i c }$ is the estimated probability that the label at node $i \\in [ n ]$ is $c \\in [ d _ { y } ]$ given the features $X$ and the graph $A$ . The data features $X \\in \\mathbb { R } ^ { n \\times d _ { x } }$ has at each row $d _ { x }$ features for each node, and $A \\in \\{ 0 , 1 \\} ^ { \\bar { n } \\times \\bar { n } }$ is the adjacency matrix of $G$ . ",
243
+ "bbox": [
244
+ 174,
245
+ 531,
246
+ 825,
247
+ 618
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "The forward pass in a typical GNN alternates between a propagation layer and a single layer perceptron. Let $t$ be the layer index. We use $H ^ { ( t ) } \\in \\mathbb { R } ^ { n \\times d _ { h } }$ to denote the current (hidden) states, with the $i$ -th row $H _ { i } ^ { ( t ) }$ as the $d _ { h }$ dimensional hidden state of node $i$ . A propagation layer with respect to a propagation matrix $P \\in \\mathbb { R } ^ { n \\times n }$ is defined as ",
254
+ "bbox": [
255
+ 173,
256
+ 623,
257
+ 825,
258
+ 685
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "equation",
264
+ "img_path": "images/a230ec0f1d7ea8e7b0b4d2f31ca27a32eb0ec63e823df24e99323ee9ec8a0c18.jpg",
265
+ "text": "$$\n\\tilde { H } ^ { ( t ) } = P H ^ { ( t ) } .\n$$",
266
+ "text_format": "latex",
267
+ "bbox": [
268
+ 444,
269
+ 691,
270
+ 553,
271
+ 709
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "For example, the natural random walk1 $P = D ^ { - 1 } A$ gives $\\begin{array} { r } { \\tilde { H } _ { i } ^ { ( t ) } = ( 1 / | N ( i ) | ) \\sum _ { j \\in N ( i ) } H _ { j } ^ { ( t ) } } \\end{array}$ . The neighborhood of node $i$ is denoted by $N ( i )$ , and $D = \\mathrm { d i a g ( A { \\bf 1 } ) }$ . This is a simple local averaging common in consensus or random walk based approaches. Typical propagation layer respects the adjacency pattern in $A$ , performing a variation of such local averaging. GNNs encode the graph structure of $A$ into the model via this propagation layer, which can be also interpreted as performing a graph convolution operation as discussed in Kipf & Welling (2016). Next, a single layer perceptron is applied on each node separately and the weights $W ^ { ( t ) }$ are shared across all the nodes: ",
278
+ "bbox": [
279
+ 173,
280
+ 715,
281
+ 825,
282
+ 820
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "equation",
288
+ "img_path": "images/cb71bc7de6f4b3476354e81cef9bb693e98c60df26e3c53dd3aa6b9987fe8ec5.jpg",
289
+ "text": "$$\n{ \\cal H } ^ { ( t + 1 ) } = \\sigma ( \\tilde { H } ^ { ( t ) } W ^ { ( t ) } ) \\ ,\n$$",
290
+ "text_format": "latex",
291
+ "bbox": [
292
+ 415,
293
+ 827,
294
+ 581,
295
+ 847
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "where $W ^ { ( t ) } \\in \\mathbb { R } ^ { d _ { h _ { t + 1 } } \\times d _ { h _ { t } } }$ is the weight matrix and $\\sigma ( \\cdot )$ is an entry-wise activation function. This weight sharing reduces significantly the number of parameters to be trained, and encodes the invariance property of graph data, i.e. two nodes that are far apart but have the similar neighboring features and structures should be classified similarly. There are several extensions to this model as discussed in the previous section, but this standard graph neural network has proved powerful in several problems over graphs, e.g. (Bruna & Li, 2017; Berg et al., 2017; Dai et al., 2017). ",
302
+ "bbox": [
303
+ 176,
304
+ 854,
305
+ 825,
306
+ 900
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "",
313
+ "bbox": [
314
+ 174,
315
+ 103,
316
+ 823,
317
+ 146
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "Graph Convolutional Network (GCN). Kipf & Welling (2016) introduced a simple but powerful architecture, and achieved the state-of-the-art performance in benchmark citation networks (see Table 2). GCN is a special case of GNN which stacks two layers of specific propagation and perceptron: ",
324
+ "bbox": [
325
+ 174,
326
+ 151,
327
+ 825,
328
+ 209
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "equation",
334
+ "img_path": "images/dc98604a838365defc46dfd1586f58f2fd7b30efbd2940e1e22a5a5272f5d749.jpg",
335
+ "text": "$$\n\\begin{array} { r c l } { { { \\cal H } ^ { ( 1 ) } } } & { { = } } & { { \\mathrm { R e L U } \\big ( ( P X ) { \\cal W } ^ { ( 0 ) } \\big ) ~ , } } \\\\ { { Z ~ = } } & { { f ( X , { \\cal A } ) } } & { { = } } & { { \\mathrm { s o f t m a x } \\big ( ( P { \\cal H } ^ { ( 1 ) } ) { \\cal W } ^ { ( 1 ) } \\big ) ~ , } } \\end{array}\n$$",
336
+ "text_format": "latex",
337
+ "bbox": [
338
+ 328,
339
+ 213,
340
+ 668,
341
+ 257
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "with a choice of $P = \\tilde { D } ^ { - 1 / 2 } \\tilde { A } \\tilde { D } ^ { - 1 / 2 }$ , where ${ \\tilde { A } } = A + \\mathbb { I }$ , I is the identity matrix, $\\tilde { D } = \\mathrm { d i a g } ( \\tilde { A } \\mathbf { 1 } )$ and $\\mathbb { 1 }$ is the all-ones vector. $\\mathrm { R e L U } ( a ) = \\operatorname* { m a x } \\{ 0 , a \\}$ is an entry-wise rectified linear activation function, and softmax $\\cdot ( [ a _ { 1 } , \\dots , a _ { k } ] ) = ( 1 / Z ) [ \\exp ( a _ { 1 } ) , \\dots , \\exp ( a _ { k } ) ]$ with $\\begin{array} { r } { Z = \\sum _ { i } \\exp ( a _ { i } ) } \\end{array}$ is applied rowwise. Hence, the output is the predicted likelihoods on the $d _ { y }$ dimensional probability simplex. The weights $W ^ { ( 0 ) }$ and $W ^ { ( 1 ) }$ are trained to minimize the cross-entropy loss over all labeled examples $L$ : ",
348
+ "bbox": [
349
+ 174,
350
+ 260,
351
+ 825,
352
+ 335
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "equation",
358
+ "img_path": "images/e079d780c7c148aac9f031184b2c107efaca797cb2cb7b0f245ac791765c6dfe.jpg",
359
+ "text": "$$\n\\begin{array} { r c l } { \\mathcal { L } } & { = } & { \\displaystyle - \\sum _ { i \\in L } \\sum _ { c = 1 } ^ { d _ { y } } Y _ { i c } \\ln Z _ { i c } . } \\end{array}\n$$",
360
+ "text_format": "latex",
361
+ "bbox": [
362
+ 398,
363
+ 339,
364
+ 599,
365
+ 386
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "Graph Linear Network (GLN). To better understand GCN, we remove the intermediate nonlinear activation units from GCN, which gives Graph Linear Network defined as ",
372
+ "bbox": [
373
+ 173,
374
+ 396,
375
+ 825,
376
+ 425
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/965d3f5330dd7d025876ac2221671e3578e4dc9e4ff89de670c024edd4a61181.jpg",
383
+ "text": "$$\n\\begin{array} { r c l } { { Z } } & { { = } } & { { f ( X , A ) } } & { { = } } & { { \\mathrm { s o f t m a x } \\big ( ( \\mathrm { P ^ { 2 } X } ) { \\mathrm { W } } ^ { ( 0 ) } { \\mathrm { W } } ^ { ( 1 ) } \\big ) \\ , } } \\end{array}\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 318,
387
+ 430,
388
+ 676,
389
+ 450
390
+ ],
391
+ "page_idx": 3
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "with the same choice of $P = \\tilde { D } ^ { - 1 / 2 } \\tilde { A } \\tilde { D } ^ { - 1 / 2 }$ as in GCN. The weights $W ^ { ( 0 ) }$ and $W ^ { ( 1 ) }$ have the same dimensions as GCN and are trained on a cross entropy loss in (2). The two propagation layers simply take (linear) local average of the raw features weighted by their degrees, and at the output layer a simple linear classifier (multinomial logistic regression) is applied. This allows us to separate the gain in the linear propagation layer and the non-linear perceptron layer. ",
396
+ "bbox": [
397
+ 174,
398
+ 454,
399
+ 825,
400
+ 529
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Comparing the differences in performances in Table 2, we show that, perhaps surprisingly, GLN achieves an accuracy comparable to the that of the best GNN, and sometimes better. This suggests that, for citation networks, the strength of the general GNN architectures is in the propagation layer and not in the perceptron layer. On the other hand, the propagation layers are critical in achieving the desired performance, as is suggested in Table 2. There are significant gaps in accuracy for those approaches not using the graph, i.e. T-SVM, and also those that use the graph differently, such as Label Propagation (LP) and Planetoid. Based on this observation, we propose replacing the propagation layer of GLN with an attention mechanism and test it on the benchmark datasets. ",
407
+ "bbox": [
408
+ 173,
409
+ 534,
410
+ 825,
411
+ 646
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "4 ATTENTION-BASED GRAPH NEURAL NETWORK (AGNN). ",
418
+ "text_level": 1,
419
+ "bbox": [
420
+ 174,
421
+ 665,
422
+ 686,
423
+ 683
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "The original propagation layer in GCN and several other graph neural networks such as (Defferrard et al., 2016; Atwood & Towsley, 2016; Monti et al., 2016; Such et al., 2017) use a static (does not change over the layers) and non-adaptive (does not take into account the states of the nodes) propagation, e.g. $P _ { i j } = 1 / \\sqrt { | N ( i ) | | N ( j ) | }$ . Such propagations are not able to capture which neighbor is more relevant to classifying a target node, which is critical in real data where not all edges imply the same types or strengths of relations. ",
430
+ "bbox": [
431
+ 173,
432
+ 696,
433
+ 825,
434
+ 784
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "We need novel dynamic and adaptive propagation layers, capable of capturing the relevance of different edges, which leads to more complex graph neural networks with more parameters. However, training such complex models is challenging in the semi-supervised setting, as the typical number of samples we have for each class is small; it is 20 in the standard benchmark dataset. This is evidenced in Table 2 where more complex graph neural network models by Verma et al. (2017), Monti et al. (2016), and Such et al. (2017) do not improve upon the simple GCN. ",
441
+ "bbox": [
442
+ 174,
443
+ 789,
444
+ 825,
445
+ 875
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "On the other hand, our experiments with GLN suggests that we can remove all the perceptron layers and focus only on improving the propagation layers. To this end, we introduce a novel Attentionbased Graph Neural Network (AGNN). AGNN is simple; it only has a single scalar parameter $\\beta ^ { ( t ) }$ at each intermediate layer. AGNN captures relevance; the proposed attention mechanism over neighbors in (5) learns which neighbors are more relevant and weighs their contributions accordingly. This builds on the long line of successes of attention mechanisms in summarizing long sentences or large images, by capturing which word or part-of-image is most relevant ( $\\mathrm { { X u } }$ et al., 2015; Graves et al., 2014; Bahdanau et al., 2014). Particularly, we use the attention formulation similar to the one used in Graves et al. (2014).2 It only has one parameter and we found this is important for successfully training the model when the number of labels is small as in our semi-supervised learning setting. ",
452
+ "bbox": [
453
+ 176,
454
+ 881,
455
+ 823,
456
+ 924
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "",
463
+ "bbox": [
464
+ 173,
465
+ 103,
466
+ 825,
467
+ 215
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "4.1 AGNN MODEL ",
474
+ "text_level": 1,
475
+ "bbox": [
476
+ 174,
477
+ 232,
478
+ 318,
479
+ 247
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "We start with a word-embedding layer that maps a bag-of-words representation of a document into an averaged word embedding, and the word embedding $W ^ { ( 0 ) } \\in \\mathbb { R } ^ { d _ { x } \\times d _ { h } }$ is to be trained as a part of the model: ",
486
+ "bbox": [
487
+ 173,
488
+ 258,
489
+ 825,
490
+ 303
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "equation",
496
+ "img_path": "images/4c337f5ce2970915b5f7a7e0eaaeaf0d4c98840b55f3711b6513956bb21fffe2.jpg",
497
+ "text": "$$\n\\begin{array} { r c l } { { H ^ { ( 1 ) } } } & { { = } } & { { \\mathrm { R e L U } ( X W ^ { ( 0 ) } ) . } } \\end{array}\n$$",
498
+ "text_format": "latex",
499
+ "bbox": [
500
+ 401,
501
+ 308,
502
+ 598,
503
+ 328
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "This is followed by layers of attention-guided propagation layers parameterized by $\\beta ^ { ( t ) } \\in \\mathbb { R }$ at each layer, ",
510
+ "bbox": [
511
+ 173,
512
+ 335,
513
+ 826,
514
+ 366
515
+ ],
516
+ "page_idx": 4
517
+ },
518
+ {
519
+ "type": "equation",
520
+ "img_path": "images/66c97d0799b96c3fdd006b7b233096d6fcb4ddcf4ece5b2f47a8ba7fb53f5146.jpg",
521
+ "text": "$$\n\\begin{array} { r c l } { { H ^ { ( t + 1 ) } } } & { { = } } & { { P ^ { ( t ) } H ^ { ( t ) } , } } \\end{array}\n$$",
522
+ "text_format": "latex",
523
+ "bbox": [
524
+ 415,
525
+ 371,
526
+ 583,
527
+ 392
528
+ ],
529
+ "page_idx": 4
530
+ },
531
+ {
532
+ "type": "text",
533
+ "text": "where the propagation matrix $P ^ { ( t ) } \\in \\mathbb { R } ^ { n \\times n }$ is also a function of the input states $H ^ { ( t ) }$ and is zero for absent edges such that the output row-vector of node $i$ is ",
534
+ "bbox": [
535
+ 174,
536
+ 397,
537
+ 825,
538
+ 428
539
+ ],
540
+ "page_idx": 4
541
+ },
542
+ {
543
+ "type": "equation",
544
+ "img_path": "images/7002745995f98afe054c8d766a9a2cb98b59f0597762d7710f5e33419e9d7221.jpg",
545
+ "text": "$$\nH _ { i } ^ { ( t + 1 ) } = \\sum _ { j \\in N ( i ) \\cup \\{ i \\} } P _ { i j } ^ { ( t ) } H _ { j } ^ { ( t ) } ,\n$$",
546
+ "text_format": "latex",
547
+ "bbox": [
548
+ 379,
549
+ 433,
550
+ 616,
551
+ 472
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "with $P _ { i } ^ { ( t ) } = \\mathrm { s o f t m a x } \\Big ( [ \\beta ^ { ( t ) } \\cos ( H _ { i } ^ { ( t ) } , H _ { j } ^ { ( t ) } ) ] _ { j \\in N ( i ) \\cup \\{ i \\} } \\Big )$ and $\\cos ( x , y ) = x ^ { T } y / \\| x \\| \\| y \\|$ with the $L _ { 2 }$ norm $\\lVert x \\rVert$ , for $t \\in \\{ 1 , \\ldots , \\ell \\}$ and an integer $\\ell$ . Here $\\ell$ is the number of propagation layers. Note that the new propagation above is dynamic; propagation changes over the layers with differing $\\beta ^ { ( t ) }$ and also the hidden states. It is also adaptive; it learns to weight more relevant neighbors higher. We add the self-loop in the propagation to ensure that the features and the hidden states of the node itself are not lost in the propagation process. The output layer has a weight $W ^ { ( 1 ) } \\in \\mathbb { R } ^ { d _ { h } \\times d _ { y } }$ : ",
558
+ "bbox": [
559
+ 173,
560
+ 478,
561
+ 825,
562
+ 577
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "equation",
568
+ "img_path": "images/5df74ef8b1788b5c2d2d19065aeb49b21cbc75e2dd4619f6054e9b29072fd4ce.jpg",
569
+ "text": "$$\nZ ~ = ~ f ( X , A ) ~ = ~ \\mathrm { s o f t m a x } \\big ( H ^ { ( \\ell + 1 ) } W ^ { ( 1 ) } \\big ) \\ .\n$$",
570
+ "text_format": "latex",
571
+ "bbox": [
572
+ 334,
573
+ 583,
574
+ 663,
575
+ 604
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "The weights $W ^ { ( 0 ) } , W ^ { ( 1 ) }$ , and $\\beta ^ { ( t ) }$ ’s are trained on a cross entropy loss in (2). To ease the notations, we have assumed that the input feature vectors to the first and last layers are augmented with a scalar constant of one, so that the standard bias term can be included in the parameters $W ^ { ( 0 ) }$ and $W ^ { ( 1 ) }$ . ",
582
+ "bbox": [
583
+ 174,
584
+ 611,
585
+ 825,
586
+ 656
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "The softmax function at attention ensures that the propagation layer $P ^ { ( t ) }$ row-sums to one. The attention from node $j$ to node $i$ is ",
593
+ "bbox": [
594
+ 173,
595
+ 664,
596
+ 823,
597
+ 693
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "equation",
603
+ "img_path": "images/b80cd0ba89f637856b9544fbd0c9ace13e8795d58f2b5d1ada31aee81b3514e0.jpg",
604
+ "text": "$$\n\\begin{array} { r c l } { P _ { i j } ^ { ( t ) } } & { = } & { ( 1 / C ) e ^ { \\beta ^ { ( t ) } \\cos ( H _ { i } ^ { ( t ) } , H _ { j } ^ { ( t ) } ) } , } \\end{array}\n$$",
605
+ "text_format": "latex",
606
+ "bbox": [
607
+ 375,
608
+ 700,
609
+ 620,
610
+ 726
611
+ ],
612
+ "page_idx": 4
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "$\\begin{array} { r } { C = \\sum _ { j \\in N ( i ) \\cup \\{ i \\} } e ^ { \\beta ^ { ( t ) } \\cos ( H _ { i } ^ { ( t ) } , H _ { j } ^ { ( t ) } ) } } \\end{array}$ eβ(t) cos(H(t)i ,H(t)j ) which captures how relevant j is to i, as measured by the cosine of the angle between the corresponding hidden states. We show how we can interpret the attentions in Section 5.2 and show that the attention selects neighbors with the same class to be more relevant. On the standard benchmark datasets on citation networks, we show in Section 5 that this architecture achieves the best performance in Table 2. ",
617
+ "bbox": [
618
+ 174,
619
+ 732,
620
+ 825,
621
+ 809
622
+ ],
623
+ "page_idx": 4
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "Here we note that independently from this work attention over sets has been proposed as “neighborhood attention” (Duan et al., 2017; Hoshen, 2017) for a different application. The main difference of AGNN with respect to these work is the fact that in AGNN attention is computed over a neighborhood of a node on a graph, whereas in these work attention over set of all entities is used to construct a “soft neighborhood”. ",
628
+ "bbox": [
629
+ 173,
630
+ 815,
631
+ 825,
632
+ 886
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "5 EXPERIMENTS ON BENCHMARK CITATION NETWORKS ",
639
+ "text_level": 1,
640
+ "bbox": [
641
+ 174,
642
+ 102,
643
+ 660,
644
+ 118
645
+ ],
646
+ "page_idx": 5
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "On standard benchmark datasets of three citation networks, we test our proposed AGNN model on semi-supervised learning tasks. We test on a fixed split of labeled/validation/test sets from Yang et al. (2016) and compare against baseline methods in Table 2. We also test it on random splits of the same sizes in Table 3, and random splits with larger number of labeled nodes in Table 4. ",
651
+ "bbox": [
652
+ 174,
653
+ 135,
654
+ 825,
655
+ 191
656
+ ],
657
+ "page_idx": 5
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "Benchmark Datasets. A citation network dataset consists of documents as nodes and citation links as directed edges. Each node has a human annotated topic from a finite set of classes and a feature vector. We consider three datasets3. For CiteSeer and Cora datasets, the feature vector has binary entries indicating the presence/absence of the corresponding word from a dictionary. For PubMed dataset, the feature vector has real-values entries indicating Term Frequency-Inverse Document Frequency (TF-IDF) of the corresponding word from a dictionary. Although the networks are directed, we use undirected versions of the graphs for all experiments, as is common in all baseline approaches. ",
662
+ "bbox": [
663
+ 174,
664
+ 198,
665
+ 825,
666
+ 310
667
+ ],
668
+ "page_idx": 5
669
+ },
670
+ {
671
+ "type": "table",
672
+ "img_path": "images/32e48a75cc19cbd0830eb52a479c3da4ee6d4d9fff8ad25891d44ab36dce0a58.jpg",
673
+ "table_caption": [
674
+ "Labeled nodes ",
675
+ "Table 1: Citation Network Dataset "
676
+ ],
677
+ "table_footnote": [],
678
+ "table_body": "<table><tr><td>Dataset</td><td>Nodes</td><td>Edges</td><td>Classes</td><td>Features</td><td>Table 2</td><td>Table 3</td><td>Table 4</td><td></td></tr><tr><td>CiteSeer</td><td>3,327</td><td>4,732</td><td>6</td><td>3,703</td><td>120</td><td>120</td><td>2,218</td><td>2,994</td></tr><tr><td>Cora</td><td>2,708</td><td>5,429</td><td>7</td><td>1,433</td><td>140</td><td>140</td><td>1,805</td><td>2,437</td></tr><tr><td>PubMed</td><td>19,717</td><td>44,328</td><td>3</td><td>500</td><td>60</td><td>60</td><td>13,145</td><td>17,745</td></tr></table>",
679
+ "bbox": [
680
+ 189,
681
+ 343,
682
+ 805,
683
+ 405
684
+ ],
685
+ "page_idx": 5
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "Experimental setup. The accuracy of the baseline methods are all taken from existing literature. If a baseline result is not reported in the existing literature, we intentionally left those cells empty in the table for fairness, as opposed to running those experiments ourselves on untuned hyperparameters. We train and test only the two models we propose: GLN for comparisons and our proposed AGNN model. We do not use the validation set labels in training, but use them for optimizing hyperparameters like dropout rate, learning rate, and $L _ { 2 }$ -regularization factor. For AGNN, we use a fixed number of $d _ { h } = 1 6$ units in the hidden layers and use 4 propagation layers $\\ell = 4$ ) for CiteSeer and Pubmed and 3 propagation layers $\\ell = 3$ ) for Cora as defined in (7). For GLN, we use 2 propagation layers as defined in (1). We row-normalize the input feature vectors, as is standard in the literature. The tables below show the average accuracy with the standard error over 100 training instances with random weight initializations. We implement our model on TensorFlow (Abadi et al., 2016), and the computational complexity of evaluating AGNN is $O ( \\ell d _ { h } | E | + d _ { x } d _ { h } n )$ . Detailed desription of the experiments is provided in Appendix B. ",
690
+ "bbox": [
691
+ 173,
692
+ 449,
693
+ 825,
694
+ 630
695
+ ],
696
+ "page_idx": 5
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "5.1 PREDICTION ACCURACY ",
701
+ "text_level": 1,
702
+ "bbox": [
703
+ 174,
704
+ 651,
705
+ 383,
706
+ 665
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "Fixed data splits. In this first experiment, we use the fixed data splits from Yang et al. (2016) as they are the standard benchmark data splits in literature. All experiments are run on the same fixed split of 20 labeled nodes for each class, 500 nodes for validation, 1,000 nodes for test, and the rest of nodes as unlabeled data. Perhaps surprisingly, the linear classifier GLN we proposed in (3) achieves performance comparable to or exceeding the state-of-the-art performance of GCN. This leads to our novel attention-based model AGNN defined in (6), which achieves the best accuracy on all datasets with a gap larger than the standard error. The classification accuracy of all the baseline methods are collected from (Yang et al., 2016; Kipf & Welling, 2016; Such et al., 2017; Monti et al., 2016; Buchnik & Cohen, 2017; Verma et al., 2017). ",
713
+ "bbox": [
714
+ 174,
715
+ 678,
716
+ 825,
717
+ 803
718
+ ],
719
+ "page_idx": 5
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "In semi-supervised learning on graphs, it is critical to utilize both the structure of the graph and the node features. Methods not using all the given data achieve performance far from the stateof-the-art. Supervised methods–Single and Multi-layer Perceptrons–only use the labeled examples $( Y _ { L } , X _ { L } )$ . Semi-supervised methods, e.g. T-SVM, only use the labeled and unlabeled examples $Y _ { L }$ , and $X$ . Skip-gram based approaches, such as DeepWalk, ignores the node features $X$ and only use the labels $Y _ { L }$ and the graph $G$ . ",
724
+ "bbox": [
725
+ 174,
726
+ 810,
727
+ 825,
728
+ 893
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "table",
734
+ "img_path": "images/3609b9d90058dc99d5f9c65ba4a566b60b977165f4875e2477e3526a326b3803.jpg",
735
+ "table_caption": [
736
+ "Table 2: Classification accuracy with a fixed split of data from (Yang et al., 2016). "
737
+ ],
738
+ "table_footnote": [],
739
+ "table_body": "<table><tr><td>Input</td><td>Method</td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td rowspan=\"2\">YL,XL</td><td>Singlelayer Perceptron</td><td>57.2</td><td>57.4</td><td>69.8</td></tr><tr><td>Multilayer Perceptron</td><td>64.0</td><td>57.5</td><td>71.4</td></tr><tr><td>YL,X</td><td>T-SVM (Joachims, 1999)</td><td>64.0</td><td>57.5</td><td>62.2</td></tr><tr><td>YL,G</td><td>DeepWalk (Perozzi et al., 2014) node2vec (Grover &amp; Leskovec,2016)</td><td>43.2 54.7</td><td>67.2 74.9</td><td>65.3 75.3</td></tr><tr><td rowspan=\"14\">YL,X,G</td><td>LP (Zhu et al., 2003)</td><td>45.3</td><td>68.0</td><td>63.0</td></tr><tr><td>ICA (Lu &amp; Getoor,2003)</td><td>69.1</td><td>75.1</td><td>73.9</td></tr><tr><td>ManiReg (Belkin et al.,2006)</td><td>60.1</td><td>59.5</td><td>70.7</td></tr><tr><td>SemiEmb (Weston et al., 2012)</td><td>59.6</td><td>59.0</td><td>71.1</td></tr><tr><td>DCNN (Atwood &amp; Towsley,2016)</td><td></td><td>76.8</td><td>73.0</td></tr><tr><td>Planetoid (Yang et al., 2016)</td><td>64.7</td><td>75.7</td><td>77.2</td></tr><tr><td>MoNet (Monti et al., 2016)</td><td></td><td>81.7</td><td>78.8</td></tr><tr><td>Graph-CNN (Such et al., 2017)</td><td></td><td>76.3</td><td></td></tr><tr><td>DynamicFilter (Verma et al., 2017)</td><td></td><td>81.6</td><td>79.0</td></tr><tr><td>Bootstrap (Buchnik &amp; Cohen,2017)</td><td>53.6</td><td>78.4</td><td>78.8</td></tr><tr><td>GCN (Kipf &amp; Welling,2016)</td><td>70.3</td><td>81.5</td><td>79.0</td></tr><tr><td>GLN</td><td>70.9±.05</td><td>81.2±.05</td><td>78.9±.05</td></tr><tr><td>AGNN (this paper)</td><td>71.7±.08</td><td>82.6±.09</td><td>79.9±.07</td></tr></table>",
740
+ "bbox": [
741
+ 199,
742
+ 99,
743
+ 794,
744
+ 369
745
+ ],
746
+ "page_idx": 6
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "A breakthrough result of Planetoid by Yang et al. (2016) significantly improved upon the existing skip-gram based method of DeepWalk and node2vec and the Laplacian regularized methods of ManiReg and SemiEmb. Kipf & Welling (2016) was the first to apply a graph neural network to citation datasets, and achieved the state-of-the-art performance with GCN. Other variations of graph neural networks immediately followed, achieving comparable performance with MoNet, GraphCNN, and DynamicFilter. Bootstrap uses a Laplacian regularized approach of (Zhou et al., 2004a) as a sub-routine with bootstrapping to feed high-margin predictions as seeds. ",
751
+ "bbox": [
752
+ 173,
753
+ 429,
754
+ 825,
755
+ 527
756
+ ],
757
+ "page_idx": 6
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "Random splits. Next, following the setting of Buchnik & Cohen (2017), we run experiments keeping the same size in labeled, validation, and test sets as in Table 2, but now selecting those nodes uniformly at random. This, along with the fact that different topics have different number of nodes in it, means that the labels might not be spread evenly across the topics. For 20 such randomly drawn dataset splits, average accuracy is shown in Table 3 with the standard error. As we do not force equal number of labeled data for each class, we observe that the performance degrades for all methods compared to Table 2, except for DeepWalk. AGNN achieves the best performance consistently. Here, we note that Kipf & Welling (2016) does a similar but different experiment using GCN, where random labeled nodes are evenly spread across topics so that each topic has exactly 20 labeled examples. As this difference in sampling might affect the accuracy, we do not report those results in this table. ",
762
+ "bbox": [
763
+ 173,
764
+ 534,
765
+ 825,
766
+ 686
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "table",
772
+ "img_path": "images/6b31d2cfb7235c17aa69af13e82d8cea08cf6ad6862f6b30eb0a078d0dc9e755.jpg",
773
+ "table_caption": [
774
+ "Table 3: Classification accuracy with random splits of the data. "
775
+ ],
776
+ "table_footnote": [],
777
+ "table_body": "<table><tr><td>Method</td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td>DeepWalk (Perozzi et al., 2014)</td><td>47.2</td><td>70.2</td><td>72.0</td></tr><tr><td>node2vec (Grover&amp;Leskovec,2016)</td><td>47.3</td><td>72.9</td><td>72.4</td></tr><tr><td>Bootstrap (Buchnik &amp; Cohen,2017)</td><td>50.3</td><td>78.2</td><td>75.6</td></tr><tr><td>GLN</td><td>68.4±0.45</td><td>80.0±0.43</td><td>77.7±0.63</td></tr><tr><td>AGNN (this paper)</td><td>69.8±0.35</td><td>81.0±0.34</td><td>78.0±0.46</td></tr></table>",
778
+ "bbox": [
779
+ 228,
780
+ 700,
781
+ 764,
782
+ 789
783
+ ],
784
+ "page_idx": 6
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "Larger training set. Following the setting of Such et al. (2017), we run experiments with larger number of labeled data on Cora dataset. We perform $k$ -fold cross validation experiments for $k =$ 3 and 10, by uniformly and randomly dividing the nodes into $k$ equal sized partitions and then performing $k$ runs of training by masking the labels of each of the $k$ partitions followed by validation on the masked nodes. Finally the average validation accuracy across $k$ runs is reported. We run 10 trials of this experiment and reports the mean and standard error of the average $k$ -fold validation accuracy. Compared to Table 2, the performance increases with the size of the training set, and AGNN consistently outperforms the current state-of-the-art architecture for this experiment. ",
789
+ "bbox": [
790
+ 173,
791
+ 839,
792
+ 825,
793
+ 924
794
+ ],
795
+ "page_idx": 6
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "",
800
+ "bbox": [
801
+ 171,
802
+ 103,
803
+ 825,
804
+ 133
805
+ ],
806
+ "page_idx": 7
807
+ },
808
+ {
809
+ "type": "table",
810
+ "img_path": "images/368a158e793add5cac669abe0fbeae208e8e62e32e0cd5c70217b6ffce0f70fa.jpg",
811
+ "table_caption": [
812
+ "Table 4: Classification accuracy with larger sets of labelled nodes. "
813
+ ],
814
+ "table_footnote": [],
815
+ "table_body": "<table><tr><td>Method</td><td>3-fold Split</td><td>10-fold split</td></tr><tr><td>Graph-CNN (Such et al., 2017)</td><td>87.55±1.38</td><td>89.18±1.96</td></tr><tr><td>GLN</td><td>87.98±0.08</td><td>88.24±0.07</td></tr><tr><td>AGNN (this paper)</td><td>89.07±0.08</td><td>89.60±0.09</td></tr></table>",
816
+ "bbox": [
817
+ 281,
818
+ 142,
819
+ 707,
820
+ 204
821
+ ],
822
+ "page_idx": 7
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "5.2 QUALITATIVE ANALYSIS ",
827
+ "text_level": 1,
828
+ "bbox": [
829
+ 174,
830
+ 256,
831
+ 383,
832
+ 270
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "One useful aspect of incorporating attention into a model is that it provides some form of interpretation capability (Bahdanau et al., 2014). The learned $P _ { i j } ^ { ( t ) }$ ’s in Eq. (7) represent the attention from node $j$ to node $i$ , and provide insights on how relevant node $j$ is in classifying node $i$ . In Figure 1, we provide statistics of this attention over all adjacent pairs of nodes for Cora and CiteSeer datasets. We refer to Figure 3 for similar statistics on PubMed. In Figure 1, we show average attention from a node in topic $c _ { 2 }$ (column) to a node in topic $c _ { 1 }$ (row), which we call the relevance from $c _ { 2 }$ to $c _ { 1 }$ and is defined as ",
839
+ "bbox": [
840
+ 173,
841
+ 281,
842
+ 825,
843
+ 382
844
+ ],
845
+ "page_idx": 7
846
+ },
847
+ {
848
+ "type": "equation",
849
+ "img_path": "images/e7a80ad2964a72f132b0273ae09aa3b93a377df58eccecbfb6dc5d70874226ee.jpg",
850
+ "text": "$$\n\\mathrm { R e l e v a n c e } ( c _ { 2 } \\to c _ { 1 } ) = \\frac { 1 } { | S _ { c _ { 1 } , c _ { 2 } } | } \\sum _ { ( i , j ) \\in S _ { c _ { 1 } , c _ { 2 } } } R ( j \\to i ) ,\n$$",
851
+ "text_format": "latex",
852
+ "bbox": [
853
+ 290,
854
+ 382,
855
+ 671,
856
+ 424
857
+ ],
858
+ "page_idx": 7
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "for edge-wise relevance score defined as ",
863
+ "bbox": [
864
+ 174,
865
+ 426,
866
+ 439,
867
+ 441
868
+ ],
869
+ "page_idx": 7
870
+ },
871
+ {
872
+ "type": "equation",
873
+ "img_path": "images/7705d01a741dcf4321d3ee87f8c08347249663613d299fb2e57d1955cb301b6d.jpg",
874
+ "text": "$$\nR ( j \\to i ) = \\left( P _ { i j } ^ { ( t ) } - \\frac { 1 } { | N ( i ) | + 1 } \\right) \\Biggl / \\frac { 1 } { | N ( i ) | + 1 } ,\n$$",
875
+ "text_format": "latex",
876
+ "bbox": [
877
+ 302,
878
+ 444,
879
+ 661,
880
+ 487
881
+ ],
882
+ "page_idx": 7
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "where $| N ( i ) |$ is the degree of node $i$ , and $S _ { c _ { 1 } , c _ { 2 } } = \\{ ( i , j ) \\in E ^ { s }$ and $Y _ { i } = c _ { 1 } , Y _ { j } = c _ { 2 } \\}$ where $E ^ { s } =$ $E \\cup \\{ ( i , i )$ for $i \\in V \\}$ is the edge set augmented with self-loops to include all the attentions learned. If we are not using any attention, then the typical propagation will be uniform $P _ { i j } = 1 / ( | N ( i ) | + 1 )$ , in which case the above normalized attention is zero. We are measuring for each edge the variation of attention $P _ { i j }$ from uniform $1 / ( | N ( i ) | + 1 )$ as a multiplicative error, normalized by $1 / ( | N ( i ) | + 1 )$ . We believe this is the right normalization, as attention should be measure in relative strength to others in the same neighborhood, and not in absolute additive differences. We are measuring this multiplicative variation of the attention, averaged over the ordered pairs of classes. ",
887
+ "bbox": [
888
+ 173,
889
+ 489,
890
+ 825,
891
+ 602
892
+ ],
893
+ "page_idx": 7
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "Figure 1 shows the relevance score for CiteSeer and Cora datasets. (PubMed is shown in Appendix A.) For both datasets, the diagonal entries are dominant indicating that the attention is learning to put more weight to those in the same class. A higher value of Relevance $' c _ { 2 } c _ { 1 } ,$ ) indicates that, on average, a node in topic $c _ { 1 }$ pays more attention to a neighbor in topic $c _ { 2 }$ than neighbors from other topics. For CiteSeer dataset (Figure 1 left), we are showing the average attention at the first propagation layer, $P ^ { ( t = 1 ) }$ , for illustration. In the off-diagonals, the most influential relations are $\\mathrm { H C I } { } .$ Agents, Agents ${ \\bf \\Gamma } \\to { \\bf M L }$ , Agents $\\mathrm { \\Gamma \\to H C I }$ , and ML Agents, and the least influential relations are $\\mathrm { A I } { } \\mathrm { I R }$ and DB $\\bf \\Pi _ { \\Pi } { } \\bf M \\cal L$ . Note that these are papers in computer science from late 90s to early 2000s. For Cora dataset (Figure 1 right), we are showing the relevance score of the second propagation layer, $P ^ { ( t = 2 ) }$ , for illustration. In the off-diagonals, the most influential relations are $\\mathrm { C B } { } \\mathrm { P M }$ , $\\mathrm { P M } \\to \\mathrm { C B }$ , Rule $\\mathrm { \\Gamma } \\to \\mathrm { P M }$ , and $\\mathrm { P M } \\to$ Rule, and the least influential relations are $\\mathbf { G A } { } \\mathbf { P M }$ and $\\mathrm { P M } \\to \\mathrm { R L }$ . This dataset has papers in computer science from the 90s. We note that these relations are estimated solely based on the available datasets for that period of time and might not accurately reflect the relations for the entire academic fields. We also consider these relations as a static property in this analysis. If we have a larger corpus over longer period of time, it is possible to learn the influence conditioned on the period and visualize how these relations change. ",
898
+ "bbox": [
899
+ 173,
900
+ 608,
901
+ 825,
902
+ 833
903
+ ],
904
+ "page_idx": 7
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "Next, we analyze the edges with high and low relevance scores. We remove the self-loops and then sort the edges according to the relevance score defined in Eq. (9). We take the top 100 and bottom 100 edges and with respect to their relevance scores, and report the fraction of the edges which are connecting nodes from the same class. Table 5 shows the result on the benchmark datasets for the relevance scores calculated using the last propagation layer. This suggests that our architecture learns to put higher attention between nodes of the same class. ",
909
+ "bbox": [
910
+ 174,
911
+ 840,
912
+ 825,
913
+ 924
914
+ ],
915
+ "page_idx": 7
916
+ },
917
+ {
918
+ "type": "image",
919
+ "img_path": "images/ba9d7104cc0e9d79b46371f0bebb1fac0ad6022efdbbfa7063a3fd2563ba6190.jpg",
920
+ "image_caption": [
921
+ "Figure 1: Relevance score in Eq. (8) from a neighbor node with column-class to a center node in row-class. For example the average normalized attention to Agents from HCI is $= - 0 . 1 4 1$ , largest off-diagonal entry in CiteSeer. The average attention to Probabilistic Methods (PM) from Case Based (CB) is 0.017, largest off-diagonal entry in Cora. "
922
+ ],
923
+ "image_footnote": [],
924
+ "bbox": [
925
+ 191,
926
+ 98,
927
+ 797,
928
+ 270
929
+ ],
930
+ "page_idx": 8
931
+ },
932
+ {
933
+ "type": "table",
934
+ "img_path": "images/04cc357c7523ae4db245c22085f8635232144c3d4c00d69083dae1dbacadd0f1.jpg",
935
+ "table_caption": [],
936
+ "table_footnote": [],
937
+ "table_body": "<table><tr><td></td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td>Top 100</td><td>0.69</td><td>0.64</td><td>0.69</td></tr><tr><td>Bottom 100</td><td>0.34</td><td>0.09</td><td>0.13</td></tr></table>",
938
+ "bbox": [
939
+ 346,
940
+ 348,
941
+ 647,
942
+ 395
943
+ ],
944
+ "page_idx": 8
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "Table 5: Fraction of edges from top 100 most relevant edges and bottom 100 least relevant edges which are connecting two distinct nodes from the same class. ",
949
+ "bbox": [
950
+ 171,
951
+ 404,
952
+ 823,
953
+ 433
954
+ ],
955
+ "page_idx": 8
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "Finally, we analyze those nodes in the test sets that were mistaken by GCN but correctly classified by AGNN, and show how our attention mechanism weighted the contribution of its local neighborhood, and show three illustrative examples in Figure 2. More examples of this local attention network (including the legends for the color coding of the topics) are provided in Appendix A. We show a entire 2-hop neighborhood of a target node (marked by a thick outline) from the test set of the fixed data splits of Citeseer, Cora, or Pubmed. The colors denote the true classes of the nodes (including the target) in the target’s neighborhood, some of which are unknown to the models at the training time. The radius of a node $j$ is proportional to the attention to the target node $i$ aggregated over all the layers, i.e. $( P ^ { ( t = 4 ) } P ^ { ( t = 3 ) } P ^ { ( t = 2 ) } P ^ { ( t = 1 ) } ) _ { i j }$ for CiteSeer. The size of the target node reflects its self-attention defined in a similar way. The first example on the left is node 8434 from PubMed. AGNN correctly classifies the target node as light blue, whereas GCN mistakes it for yellow, possibly because it is connected to more yellow nodes. Not only has the attention mechanism learned to put more weight to its light blue 1-hop neighbor, but put equally heavy weights to a path of light blue neighbors some of which are not immediately connected to the target node. The second example in the middle is node 1580 from PubMed. AGNN correctly classifies it as yellow, whereas GCN mistakes it for a red, possibly because it only has two neighbors. Not only has the attention mechanism learned to put more weight to the yellow neighbor, but it has weighted the yellow neighbor (who is connected to many yellow nodes and perhaps has more reliable hidden states representing the true yellow class) even more than itself. ",
960
+ "bbox": [
961
+ 173,
962
+ 458,
963
+ 825,
964
+ 724
965
+ ],
966
+ "page_idx": 8
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "The last example on the right is node 1512 from CiteSeer. AGNN correctly classifies it as light blue, whereas GCN mistakes it for a white. This is a special example as those two nodes are completely isolated. Due to the static and non-adaptive propagation of GCN, it ends up giving the same prediction for such isolated pairs. If the pair has two different true classes, then it always fails on at least on one of them (in this case the light blue node). However, AGNN is more flexible in adapting to such graph topology and puts more weight to the target node itself, correctly classifying both. ",
971
+ "bbox": [
972
+ 174,
973
+ 731,
974
+ 825,
975
+ 815
976
+ ],
977
+ "page_idx": 8
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "6 CONCLUSIONS ",
982
+ "text_level": 1,
983
+ "bbox": [
984
+ 176,
985
+ 835,
986
+ 328,
987
+ 852
988
+ ],
989
+ "page_idx": 8
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "In this paper, we present an attention-based graph neural network model for semi-supervised classification on a graph. We demonstrate that our method consistently outperforms competing methods on the standard benchmark citation network datasets. We also show that the learned attention also provides interesting insights on how neighbors influence each other. In training, we have tried more complex attention models. However, due to the increased model complexity the training was not stable and does not give higher accuracy. We believe that for semi-supervised setting with such a limited number of labeled examples, reducing model complexity is important. Note that we are able to train deeper (4-layers) models compared to a shallower (2-layers) model of GCN, in part due to the fact that we remove the non-linear layers and reduce the model complexity significantly. In comparison, deeper GCN models are known to be unstable and do not give the performance of shallower GCNs (Kipf & Welling, 2016). ",
994
+ "bbox": [
995
+ 174,
996
+ 867,
997
+ 823,
998
+ 924
999
+ ],
1000
+ "page_idx": 8
1001
+ },
1002
+ {
1003
+ "type": "image",
1004
+ "img_path": "images/746099e24bddd012b7ea228587a2be040c6b393b554acb382dc318aad4054062.jpg",
1005
+ "image_caption": [
1006
+ "Figure 2: We show three selected target nodes in the test set that are mistaken by GCN but correctly classified by AGNN. We denote this target node by the node with a thick outline (node 8434 from PubMed on the left, node 1580 from PubMed in the middle, and node 1512 from CiteSeer on the right). We show the strength of attention from a node in the 2-hop neighborhood to the target node by the size of the corresponding node. Colors represent the hidden true classes (nodes with the same color belong to the same topic). None of the nodes in the figure was in the training set, hence none of the colors were revealed. Still, we observe that AGNN has managed to put more attention to those nodes in the same (hidden) classes, allowing the trained model to find the correct labels. "
1007
+ ],
1008
+ "image_footnote": [],
1009
+ "bbox": [
1010
+ 173,
1011
+ 106,
1012
+ 821,
1013
+ 232
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "",
1020
+ "bbox": [
1021
+ 174,
1022
+ 390,
1023
+ 825,
1024
+ 488
1025
+ ],
1026
+ "page_idx": 9
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "REFERENCES ",
1031
+ "text_level": 1,
1032
+ "bbox": [
1033
+ 176,
1034
+ 508,
1035
+ 285,
1036
+ 523
1037
+ ],
1038
+ "page_idx": 9
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "S. Gunnemann A. Bojchevski. Deep gaussian embedding of attributed graphs: Unsupervised inductive learning via ranking. arXiv preprint arXiv:1707.03815, 2017. \nMartin Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016. \nJ. Atwood and D. Towsley. Diffusion-convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1993–2001, 2016. \nDzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. \nMikhail 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. \nR. van den Berg, T. N. Kipf, and M. Welling. Graph convolutional matrix completion. arXiv preprint arXiv:1706.02263, 2017. \nAvrim Blum and Shuchi Chawla. Learning from labeled and unlabeled data using graph mincuts. In ICML ’01 Proceedings of the Eighteenth International Conference on Machine Learning, 2001. \nMichael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. arXiv preprint arXiv:1611.08097, 2016. \nJ. Bruna and X. Li. Community detection with graph neural networks. arXiv preprint arXiv:1705.08415, 2017. \nJoan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013. ",
1043
+ "bbox": [
1044
+ 171,
1045
+ 531,
1046
+ 826,
1047
+ 924
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Eliav Buchnik and Edith Cohen. Bootstrapped graph diffusions: Exposing the power of nonlinearity. arXiv preprint arXiv:1703.02618, 2017. ",
1054
+ "bbox": [
1055
+ 171,
1056
+ 103,
1057
+ 823,
1058
+ 132
1059
+ ],
1060
+ "page_idx": 10
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Olivier Chapelle, Bernhard Scholkopf, and Alexander Zien. Semi-supervised learning (chapelle, o. et al., eds.; 2006)[book reviews]. IEEE Transactions on Neural Networks, 20(3):542–542, 2009. ",
1065
+ "bbox": [
1066
+ 173,
1067
+ 141,
1068
+ 821,
1069
+ 171
1070
+ ],
1071
+ "page_idx": 10
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "H. Dai, B. Dai, and L. Song. Discriminative embeddings of latent variable models for structured data. In International Conference on Machine Learning, pp. 2702–2711, 2016. ",
1076
+ "bbox": [
1077
+ 174,
1078
+ 179,
1079
+ 823,
1080
+ 209
1081
+ ],
1082
+ "page_idx": 10
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Hanjun Dai, Elias B Khalil, Yuyu Zhang, Bistra Dilkina, and Le Song. Learning combinatorial optimization algorithms over graphs. arXiv preprint arXiv:1704.01665, 2017. ",
1087
+ "bbox": [
1088
+ 171,
1089
+ 217,
1090
+ 823,
1091
+ 247
1092
+ ],
1093
+ "page_idx": 10
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3837–3845, 2016. ",
1098
+ "bbox": [
1099
+ 174,
1100
+ 255,
1101
+ 823,
1102
+ 299
1103
+ ],
1104
+ "page_idx": 10
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Yan Duan, Marcin Andrychowicz, Bradly Stadie, Jonathan Ho, Jonas Schneider, Ilya Sutskever, Pieter Abbeel, and Wojciech Zaremba. One-shot imitation learning. arXiv preprint arXiv:1703.07326, 2017. ",
1109
+ "bbox": [
1110
+ 176,
1111
+ 308,
1112
+ 823,
1113
+ 351
1114
+ ],
1115
+ "page_idx": 10
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "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 Advances in neural information processing systems, pp. 2224–2232, 2015. ",
1120
+ "bbox": [
1121
+ 176,
1122
+ 359,
1123
+ 821,
1124
+ 402
1125
+ ],
1126
+ "page_idx": 10
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Evgeniy Faerman, Felix Borutta, Kimon Fountoulakis, and Michael W Mahoney. Lasagne: Locality and structure aware graph node embedding. arXiv preprint arXiv:1710.06520, 2017. ",
1131
+ "bbox": [
1132
+ 174,
1133
+ 410,
1134
+ 821,
1135
+ 440
1136
+ ],
1137
+ "page_idx": 10
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. arXiv preprint arXiv:1704.01212, 2017. ",
1142
+ "bbox": [
1143
+ 171,
1144
+ 448,
1145
+ 821,
1146
+ 478
1147
+ ],
1148
+ "page_idx": 10
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "Marco Gori, Gabriele Monfardini, and Franco Scarselli. A new model for learning in graph domains. In Neural Networks, 2005. IJCNN’05. Proceedings. 2005 IEEE International Joint Conference on, volume 2, pp. 729–734. IEEE, 2005. ",
1153
+ "bbox": [
1154
+ 173,
1155
+ 486,
1156
+ 823,
1157
+ 530
1158
+ ],
1159
+ "page_idx": 10
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. ",
1164
+ "bbox": [
1165
+ 171,
1166
+ 539,
1167
+ 826,
1168
+ 569
1169
+ ],
1170
+ "page_idx": 10
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "A. Grover and J. Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 855–864. ACM, 2016. ",
1175
+ "bbox": [
1176
+ 173,
1177
+ 577,
1178
+ 823,
1179
+ 619
1180
+ ],
1181
+ "page_idx": 10
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "W. L. Hamilton, R. Ying, and J. Leskovec. Inductive representation learning on large graphs. arXiv preprint arXiv:1706.02216, 2017. ",
1186
+ "bbox": [
1187
+ 169,
1188
+ 628,
1189
+ 825,
1190
+ 659
1191
+ ],
1192
+ "page_idx": 10
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Mikael Henaff, Joan Bruna, and Yann LeCun. Deep convolutional networks on graph-structured data. arXiv preprint arXiv:1506.05163, 2015. ",
1197
+ "bbox": [
1198
+ 166,
1199
+ 666,
1200
+ 825,
1201
+ 696
1202
+ ],
1203
+ "page_idx": 10
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Yedid Hoshen. Vain: Attentional multi-agent predictive modeling. In Advances in Neural Information Processing Systems, pp. 2698–2708, 2017. ",
1208
+ "bbox": [
1209
+ 168,
1210
+ 705,
1211
+ 823,
1212
+ 734
1213
+ ],
1214
+ "page_idx": 10
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Thorsten Joachims. Transductive inference for text classification using support vector machines. In ICML, volume 99, pp. 200–209, 1999. ",
1219
+ "bbox": [
1220
+ 169,
1221
+ 742,
1222
+ 825,
1223
+ 772
1224
+ ],
1225
+ "page_idx": 10
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "T. N. Kipf and M. Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
1230
+ "bbox": [
1231
+ 169,
1232
+ 781,
1233
+ 825,
1234
+ 810
1235
+ ],
1236
+ "page_idx": 10
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Q. Le and T. Mikolov. Distributed representations of sentences and documents. In Proceedings of the 31st International Conference on Machine Learning (ICML-14), pp. 1188–1196, 2014. ",
1241
+ "bbox": [
1242
+ 173,
1243
+ 819,
1244
+ 825,
1245
+ 848
1246
+ ],
1247
+ "page_idx": 10
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel. Gated graph sequence neural networks. arXiv preprint arXiv:1511.05493, 2015. ",
1252
+ "bbox": [
1253
+ 174,
1254
+ 857,
1255
+ 821,
1256
+ 886
1257
+ ],
1258
+ "page_idx": 10
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Qing Lu and Lise Getoor. Link-based classification. In Proceedings of the 20th International Conference on Machine Learning (ICML-03), pp. 496–503, 2003. ",
1263
+ "bbox": [
1264
+ 176,
1265
+ 895,
1266
+ 820,
1267
+ 924
1268
+ ],
1269
+ "page_idx": 10
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M\\` Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. arXiv preprint arXiv:1611.08402, 2016. ",
1274
+ "bbox": [
1275
+ 174,
1276
+ 103,
1277
+ 823,
1278
+ 146
1279
+ ],
1280
+ "page_idx": 11
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "M. Niepert, M. Ahmed, and K. Kutzkov. Learning convolutional neural networks for graphs. In Proceedings of the 33rd annual international conference on machine learning. ACM, 2016. ",
1285
+ "bbox": [
1286
+ 169,
1287
+ 155,
1288
+ 823,
1289
+ 184
1290
+ ],
1291
+ "page_idx": 11
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Kamal Nigam, Andrew McCallum, and Tom Mitchell. Semi-supervised text classification using em. Semi-Supervised Learning, pp. 33–56, 2006. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 194,
1299
+ 820,
1300
+ 223
1301
+ ],
1302
+ "page_idx": 11
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "A. Nowak, S. Villar, A. S. Bandeira, and J. Bruna. A note on learning algorithms for quadratic assignment with graph neural networks. arXiv preprint arXiv:1706.07450, 2017. ",
1307
+ "bbox": [
1308
+ 171,
1309
+ 232,
1310
+ 820,
1311
+ 262
1312
+ ],
1313
+ "page_idx": 11
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "B. Perozzi, R. Al-Rfou, and S. Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 701–710. ACM, 2014. ",
1318
+ "bbox": [
1319
+ 174,
1320
+ 270,
1321
+ 823,
1322
+ 314
1323
+ ],
1324
+ "page_idx": 11
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2009. ",
1329
+ "bbox": [
1330
+ 173,
1331
+ 323,
1332
+ 821,
1333
+ 352
1334
+ ],
1335
+ "page_idx": 11
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "M. Schlichtkrull, T. N. Kipf, P. Bloem, R. van den Berg, I. Titov, and M. Welling. Modeling relational data with graph convolutional networks. arXiv preprint arXiv:1703.06103, 2017. ",
1340
+ "bbox": [
1341
+ 171,
1342
+ 361,
1343
+ 823,
1344
+ 391
1345
+ ],
1346
+ "page_idx": 11
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Felipe Petroski Such, Shagan Sah, Miguel Dominguez, Suhas Pillai, Chao Zhang, Andrew Michael, Nathan Cahill, and Raymond Ptucha. Robust spatial filtering with graph convolutional neural networks. arXiv preprint arXiv:1703.00792, 2017. ",
1351
+ "bbox": [
1352
+ 174,
1353
+ 400,
1354
+ 823,
1355
+ 443
1356
+ ],
1357
+ "page_idx": 11
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Sainbayar Sukhbaatar, arthur szlam, and Rob Fergus. Learning multiagent communication with backpropagation. In Advances in Neural Information Processing Systems 29, pp. 2244–2252. 2016. ",
1362
+ "bbox": [
1363
+ 174,
1364
+ 452,
1365
+ 823,
1366
+ 494
1367
+ ],
1368
+ "page_idx": 11
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In Proceedings of the 24th International Conference on World Wide Web, pp. 1067–1077. ACM, 2015. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 503,
1376
+ 825,
1377
+ 547
1378
+ ],
1379
+ "page_idx": 11
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Nitika Verma, Edmond Boyer, and Jakob Verbeek. Dynamic filters in graph convolutional networks. arXiv preprint arXiv:1706.05206, 2017. ",
1384
+ "bbox": [
1385
+ 173,
1386
+ 556,
1387
+ 821,
1388
+ 585
1389
+ ],
1390
+ "page_idx": 11
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Jason Weston, Fred´ eric Ratle, Hossein Mobahi, and Ronan Collobert. Deep learning via semi- ´ supervised embedding. In Neural Networks: Tricks of the Trade, pp. 639–655. Springer, 2012. ",
1395
+ "bbox": [
1396
+ 173,
1397
+ 594,
1398
+ 821,
1399
+ 625
1400
+ ],
1401
+ "page_idx": 11
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In International Conference on Machine Learning, pp. 2048–2057, 2015. ",
1406
+ "bbox": [
1407
+ 176,
1408
+ 633,
1409
+ 823,
1410
+ 676
1411
+ ],
1412
+ "page_idx": 11
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "Xiaojun Xu, Chang Liu, Qian Feng, Heng Yin, Le Song, and Dawn Song. Neural networkbased graph embedding for cross-platform binary code similarity detection. arXiv preprint arXiv:1708.06525, 2017. ",
1417
+ "bbox": [
1418
+ 173,
1419
+ 685,
1420
+ 823,
1421
+ 728
1422
+ ],
1423
+ "page_idx": 11
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Cheng Yang, Maosong Sun, Zhiyuan Liu, and Cunchao Tu. Fast network embedding enhancement via high order proximity approximation. In Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, IJCAI, pp. 19–25, 2017. ",
1428
+ "bbox": [
1429
+ 173,
1430
+ 738,
1431
+ 823,
1432
+ 781
1433
+ ],
1434
+ "page_idx": 11
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "Z. Yang, W. W. Cohen, and R. Salakhutdinov. Revisiting semi-supervised learning with graph embeddings. arXiv preprint arXiv:1603.08861, 2016. ",
1439
+ "bbox": [
1440
+ 169,
1441
+ 790,
1442
+ 823,
1443
+ 819
1444
+ ],
1445
+ "page_idx": 11
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Denny Zhou, Olivier Bousquet, Thomas N Lal, Jason Weston, and Bernhard Scholkopf. Learning ¨ with local and global consistency. In Advances in neural information processing systems, pp. 321–328, 2004a. ",
1450
+ "bbox": [
1451
+ 173,
1452
+ 829,
1453
+ 823,
1454
+ 871
1455
+ ],
1456
+ "page_idx": 11
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "Denny Zhou, Olivier Bousquet, Thomas N Lal, Jason Weston, and Bernhard Scholkopf. Learning ¨ with local and global consistency. In Advances in neural information processing systems, pp. 321–328, 2004b. ",
1461
+ "bbox": [
1462
+ 174,
1463
+ 882,
1464
+ 825,
1465
+ 922
1466
+ ],
1467
+ "page_idx": 11
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Xiaojin Zhu and Zoubin Ghahramani. Learning from labeled and unlabeled data with label propagation. 2002. ",
1472
+ "bbox": [
1473
+ 173,
1474
+ 103,
1475
+ 823,
1476
+ 132
1477
+ ],
1478
+ "page_idx": 12
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Xiaojin Zhu, Zoubin Ghahramani, and John D Lafferty. Semi-supervised learning using gaussian fields and harmonic functions. In Proceedings of the 20th International conference on Machine learning (ICML-03), pp. 912–919, 2003. ",
1483
+ "bbox": [
1484
+ 176,
1485
+ 141,
1486
+ 823,
1487
+ 184
1488
+ ],
1489
+ "page_idx": 12
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "APPENDIX ",
1494
+ "text_level": 1,
1495
+ "bbox": [
1496
+ 176,
1497
+ 102,
1498
+ 264,
1499
+ 117
1500
+ ],
1501
+ "page_idx": 13
1502
+ },
1503
+ {
1504
+ "type": "text",
1505
+ "text": "A ADDITIONAL EXPERIMENTS ON INTERPRETABILITY OF ATTENTION ",
1506
+ "text_level": 1,
1507
+ "bbox": [
1508
+ 173,
1509
+ 136,
1510
+ 766,
1511
+ 151
1512
+ ],
1513
+ "page_idx": 13
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "text": "PubMed dataset has only 3 classes, and the relevance score is shown in the figure below. ",
1518
+ "bbox": [
1519
+ 173,
1520
+ 165,
1521
+ 751,
1522
+ 181
1523
+ ],
1524
+ "page_idx": 13
1525
+ },
1526
+ {
1527
+ "type": "image",
1528
+ "img_path": "images/218614320c5e8af70e050b686490d68b16ad4a69af18a7e847312779b9e4dd46.jpg",
1529
+ "image_caption": [
1530
+ "Figure 3: Average attention in Eq. (8) from a column class to a row class "
1531
+ ],
1532
+ "image_footnote": [],
1533
+ "bbox": [
1534
+ 176,
1535
+ 189,
1536
+ 622,
1537
+ 367
1538
+ ],
1539
+ "page_idx": 13
1540
+ },
1541
+ {
1542
+ "type": "text",
1543
+ "text": "We show examples of 2-hop local neighborhood of nodes that are mistaken by GCN but correctly classified by AGNN. ",
1544
+ "bbox": [
1545
+ 173,
1546
+ 411,
1547
+ 825,
1548
+ 440
1549
+ ],
1550
+ "page_idx": 13
1551
+ },
1552
+ {
1553
+ "type": "image",
1554
+ "img_path": "images/e4934394b1d8b00da6d1f5ba19edaf716754392d6b2bea3861bb5150deafc241.jpg",
1555
+ "image_caption": [
1556
+ "Figure 4: Examples from CiteSeer dataset of attention strength in the local neighborhood of a target node (in thick outline) from the test set that is mistaken by GCN but correctly classified by AGNN. Colors are true classes and node sizes are proportional to the attention strength from a neighbor to the target node. Labeled nodes from training set are marked with ‘\\*’. "
1557
+ ],
1558
+ "image_footnote": [],
1559
+ "bbox": [
1560
+ 232,
1561
+ 458,
1562
+ 846,
1563
+ 690
1564
+ ],
1565
+ "page_idx": 13
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "B EXPERIMENT AND ARCHITECT DETAILS ",
1570
+ "text_level": 1,
1571
+ "bbox": [
1572
+ 174,
1573
+ 787,
1574
+ 545,
1575
+ 804
1576
+ ],
1577
+ "page_idx": 13
1578
+ },
1579
+ {
1580
+ "type": "text",
1581
+ "text": "In this section we will list all the choices made in training and tuning of hyper-parameters. The parameters are chosen as to maximize the validation. All the models use Adam optimization algorithm with full-batchs, as standard in other works on GNNs (Kipf & Welling, 2016; Such et al., 2017). We also a weight decay term to the objective function for all the learnable weights. We add dropout to the first and last layers of all models. ",
1582
+ "bbox": [
1583
+ 174,
1584
+ 818,
1585
+ 825,
1586
+ 888
1587
+ ],
1588
+ "page_idx": 13
1589
+ },
1590
+ {
1591
+ "type": "text",
1592
+ "text": "In Table 6. we show the hyper-parameters used in training the AGNN models for various settings and datasets. For Cora dataset the architecture consist of $\\ell = 3$ propagation layers, but the first propagation layer $P ^ { ( t = 1 ) }$ is non-trainable and the variable $\\beta ^ { ( t = 1 ) }$ value is fixed at zero. While training these AGNN models we maintain the validation accuracy for each iteration and finally choose the trained model parameters from the iteration where average validation accuracy of previous 4 epochs is maximized. For the $k$ -fold cross validation setting we take the epoch with maximum validation accuracy. ",
1593
+ "bbox": [
1594
+ 173,
1595
+ 895,
1596
+ 823,
1597
+ 924
1598
+ ],
1599
+ "page_idx": 13
1600
+ },
1601
+ {
1602
+ "type": "image",
1603
+ "img_path": "images/154ecc254c87ebbf4f9d53d65bc0dd13354298aaa3517792e26baa5b82a4dcbc.jpg",
1604
+ "image_caption": [
1605
+ "Figure 5: Examples from Cora dataset of attention strength in the local neighborhood of a target node (in thick outline) from the test set that is mistaken by GCN but correctly classified by AGNN. Colors are true classes and node sizes are proportional to the attention strength from a neighbor to the target node. Labeled nodes from training set are marked with ‘\\*’. "
1606
+ ],
1607
+ "image_footnote": [],
1608
+ "bbox": [
1609
+ 254,
1610
+ 104,
1611
+ 816,
1612
+ 359
1613
+ ],
1614
+ "page_idx": 14
1615
+ },
1616
+ {
1617
+ "type": "image",
1618
+ "img_path": "images/fb7c08d490ed620cf75a6bc19d8ae206e115d8cc8bcf9e5410bde7b6e9065d14.jpg",
1619
+ "image_caption": [
1620
+ "Figure 6: Examples from Pubmed dataset of attention strength in the local neighborhood of a target node (in thick outline) from the test set that is mistaken by GCN but correctly classified by AGNN. Colors are true classes and node sizes are proportional to the attention strength from a neighbor to the target node. Labeled nodes from training set are marked with ‘\\*’. "
1621
+ ],
1622
+ "image_footnote": [],
1623
+ "bbox": [
1624
+ 256,
1625
+ 493,
1626
+ 854,
1627
+ 746
1628
+ ],
1629
+ "page_idx": 14
1630
+ },
1631
+ {
1632
+ "type": "text",
1633
+ "text": "",
1634
+ "bbox": [
1635
+ 174,
1636
+ 852,
1637
+ 825,
1638
+ 924
1639
+ ],
1640
+ "page_idx": 14
1641
+ },
1642
+ {
1643
+ "type": "table",
1644
+ "img_path": "images/aa2c40b7ab4030cff9a152e6ea8331696a421a504c60796d0c0106397aec957e.jpg",
1645
+ "table_caption": [
1646
+ "Table 6: Hyper-parameters for AGNN model "
1647
+ ],
1648
+ "table_footnote": [],
1649
+ "table_body": "<table><tr><td rowspan=\"2\"> Setting</td><td rowspan=\"2\">Dataset</td><td rowspan=\"2\">Propagation layers (l)</td><td rowspan=\"2\">Hidden state dimension (dh)</td><td rowspan=\"2\">Learning Rate</td><td rowspan=\"2\">Weight Decay</td><td rowspan=\"2\">Dropout</td><td rowspan=\"2\">Epochs</td></tr><tr><td></td></tr><tr><td>Fixed Split</td><td>CiteSeer</td><td>4</td><td>16</td><td>0.005</td><td>0.0005</td><td>0.5</td><td>1000</td></tr><tr><td>Fixed Split</td><td>Cora</td><td>3</td><td>16</td><td>0.01</td><td>0.0005</td><td>0.5</td><td>1000</td></tr><tr><td>Fixed Split</td><td>PubMed</td><td>4</td><td>16</td><td>0.008</td><td>0.001</td><td>0.5</td><td>400</td></tr><tr><td>Rand. Split</td><td>CiteSeer</td><td>4</td><td>16</td><td>0.01</td><td>0.0005</td><td>0.5</td><td>1000</td></tr><tr><td>Rand. Split</td><td>Cora</td><td>3</td><td>16</td><td>0.01</td><td>0.0005</td><td>0.5</td><td>1000</td></tr><tr><td>Rand. Split</td><td>PubMed</td><td>4</td><td>16</td><td>0.008</td><td>0.001</td><td>0.5</td><td>1000</td></tr><tr><td>Cross Val.</td><td>Cora</td><td>3</td><td>16</td><td>0.04</td><td>0.0005</td><td>0.25</td><td>500</td></tr></table>",
1650
+ "bbox": [
1651
+ 173,
1652
+ 99,
1653
+ 872,
1654
+ 229
1655
+ ],
1656
+ "page_idx": 15
1657
+ },
1658
+ {
1659
+ "type": "text",
1660
+ "text": "For the Graph Linear Network (GLN) as define in (3), we use the same hyper-parameters as GCN (Kipf & Welling, 2016) for all the experimental settings: hidden dimension of 16, learning rate of 0.01, weight decay of $5 \\times 1 0 ^ { - 4 }$ , dropout of 0.5, 200 epochs and early stopping criteria with a window size of 10. ",
1661
+ "bbox": [
1662
+ 173,
1663
+ 286,
1664
+ 825,
1665
+ 342
1666
+ ],
1667
+ "page_idx": 15
1668
+ },
1669
+ {
1670
+ "type": "text",
1671
+ "text": "C PERFORMANCE VERSUS NUMBER OF PROPAGATION LAYERS ",
1672
+ "text_level": 1,
1673
+ "bbox": [
1674
+ 176,
1675
+ 362,
1676
+ 710,
1677
+ 380
1678
+ ],
1679
+ "page_idx": 15
1680
+ },
1681
+ {
1682
+ "type": "text",
1683
+ "text": "In this section we provide experimental results justifying the choice of number of propagation layers for each dataset. We use the same data split and hyper-parameters (except number of propagation layer) as in the fixed data splits setting in Section 5.1. Similar to other settings the first propagation layer for Cora dataset is non-trainable with $\\beta ^ { ( t = 1 ) } = 0$ . Tables 7 gives the average (over 10 trials) testing accuracy respectively for various choices of number of propagation layers. We note that different datasets require different number of propagation layers for best performance. ",
1684
+ "bbox": [
1685
+ 173,
1686
+ 393,
1687
+ 826,
1688
+ 479
1689
+ ],
1690
+ "page_idx": 15
1691
+ },
1692
+ {
1693
+ "type": "table",
1694
+ "img_path": "images/ab84dff101a7be513f462a9a8f8f92c659ebdd71f05a4465a00b79d00ac56005.jpg",
1695
+ "table_caption": [
1696
+ "Table 7: Average testing error of AGNN for different number of Propagation Layers. "
1697
+ ],
1698
+ "table_footnote": [],
1699
+ "table_body": "<table><tr><td>Propagation Layers ()</td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td>1</td><td>69.08</td><td>80.52</td><td>78.31</td></tr><tr><td>2</td><td>70.83</td><td>83.07</td><td>79.66</td></tr><tr><td>3</td><td>71.06</td><td>82.62</td><td>79.56</td></tr><tr><td>4</td><td>71.70</td><td>82.24</td><td>80.10</td></tr><tr><td>5</td><td>71.37</td><td>82.07</td><td>80.13</td></tr></table>",
1700
+ "bbox": [
1701
+ 334,
1702
+ 492,
1703
+ 658,
1704
+ 592
1705
+ ],
1706
+ "page_idx": 15
1707
+ },
1708
+ {
1709
+ "type": "table",
1710
+ "img_path": "images/5df7b0dadb876221850732792614b5675e555c31d91c4861628552ded8026730.jpg",
1711
+ "table_caption": [
1712
+ "D PERFORMANCE OF GCN ON OTHER DATASET SPLITS. ",
1713
+ "Table 8: Classification accuracy with random splits of the data. "
1714
+ ],
1715
+ "table_footnote": [],
1716
+ "table_body": "<table><tr><td>Method</td><td>CiteSeer</td><td>Cora</td><td>PubMed</td></tr><tr><td>DeepWalk (Perozzi et al., 2014)</td><td>47.2</td><td>70.2</td><td>72.0</td></tr><tr><td>node2vec (Grover &amp; Leskovec,2016)</td><td>47.3</td><td>72.9</td><td>72.4</td></tr><tr><td>Bootstrap (Buchnik &amp; Cohen,2017)</td><td>50.3</td><td>78.2</td><td>75.6</td></tr><tr><td>GCN</td><td>66.9±0.50</td><td>79.2±0.46</td><td>77.5±0.61</td></tr><tr><td>GLN</td><td>68.4±0.45</td><td>80.0±0.43</td><td>77.7±0.63</td></tr><tr><td>AGNN (this paper)</td><td>69.8±0.35</td><td>81.0±0.34</td><td>78.0±0.46</td></tr></table>",
1717
+ "bbox": [
1718
+ 228,
1719
+ 684,
1720
+ 764,
1721
+ 787
1722
+ ],
1723
+ "page_idx": 15
1724
+ },
1725
+ {
1726
+ "type": "text",
1727
+ "text": "Here we provide the performance of GCN on random splits and larger training set dataset splits from Section 5.1. We relegate these tables to the appendix since they were not present in Kipf & Welling (2016). We conducted the experiments with the same hyper-parameters as chosen by Kipf & Welling (2016) for the fixed split. In Tables 8 and 9 we provide average testing accuracy and standard error over 20 and 10 runs on random splits and larger training set respectively. ",
1728
+ "bbox": [
1729
+ 174,
1730
+ 833,
1731
+ 825,
1732
+ 905
1733
+ ],
1734
+ "page_idx": 15
1735
+ },
1736
+ {
1737
+ "type": "table",
1738
+ "img_path": "images/d0324e24029a3f1d08cd76bde86228b2b3f2df253fa460370a08cb273d2379be.jpg",
1739
+ "table_caption": [
1740
+ "Table 9: Classification accuracy with larger sets of labelled nodes. "
1741
+ ],
1742
+ "table_footnote": [],
1743
+ "table_body": "<table><tr><td>Method</td><td>3-fold Split</td><td>10-fold split</td></tr><tr><td>Graph-CNN (Such et al., 2017)</td><td>87.55±1.38</td><td>89.18±1.96</td></tr><tr><td>GCN</td><td>87.23±0.21</td><td>87.78±0.04</td></tr><tr><td>GLN</td><td>87.98±0.08</td><td>88.24±0.07</td></tr><tr><td>AGNN (this paper)</td><td>89.07±0.08</td><td>89.60±0.09</td></tr></table>",
1744
+ "bbox": [
1745
+ 284,
1746
+ 458,
1747
+ 710,
1748
+ 531
1749
+ ],
1750
+ "page_idx": 16
1751
+ }
1752
+ ]
parse/train/rJg4YGWRb/rJg4YGWRb_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJg4YGWRb/rJg4YGWRb_model.json ADDED
The diff for this file is too large to render. See raw diff