Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/ByeSYa4KPS/ByeSYa4KPS.md +237 -0
- parse/train/ByeSYa4KPS/ByeSYa4KPS_content_list.json +1206 -0
- parse/train/HJgVisRqtX/HJgVisRqtX_content_list.json +0 -0
- parse/train/HJgVisRqtX/HJgVisRqtX_model.json +0 -0
- parse/train/ToWi1RjuEr8/ToWi1RjuEr8.md +271 -0
- parse/train/ToWi1RjuEr8/ToWi1RjuEr8_content_list.json +1405 -0
- parse/train/ToWi1RjuEr8/ToWi1RjuEr8_middle.json +0 -0
- parse/train/ToWi1RjuEr8/ToWi1RjuEr8_model.json +0 -0
- parse/train/fgd7we_uZa6/fgd7we_uZa6.md +0 -0
- parse/train/fgd7we_uZa6/fgd7we_uZa6_content_list.json +0 -0
- parse/train/fgd7we_uZa6/fgd7we_uZa6_middle.json +0 -0
- parse/train/fgd7we_uZa6/fgd7we_uZa6_model.json +0 -0
- parse/train/oh71uL93yay/oh71uL93yay.md +412 -0
- parse/train/oh71uL93yay/oh71uL93yay_content_list.json +0 -0
- parse/train/oh71uL93yay/oh71uL93yay_middle.json +0 -0
- parse/train/oh71uL93yay/oh71uL93yay_model.json +0 -0
- parse/train/rkZB1XbRZ/rkZB1XbRZ.md +0 -0
- parse/train/rkZB1XbRZ/rkZB1XbRZ_content_list.json +0 -0
- parse/train/rkZB1XbRZ/rkZB1XbRZ_middle.json +0 -0
- parse/train/rkZB1XbRZ/rkZB1XbRZ_model.json +0 -0
- vlm/train/0HW7A5YZjq7/0.png +3 -0
- vlm/train/0HW7A5YZjq7/1.png +3 -0
- vlm/train/0HW7A5YZjq7/10.png +3 -0
- vlm/train/0HW7A5YZjq7/11.png +3 -0
- vlm/train/0HW7A5YZjq7/12.png +3 -0
- vlm/train/0HW7A5YZjq7/13.png +3 -0
- vlm/train/0HW7A5YZjq7/2.png +3 -0
- vlm/train/0HW7A5YZjq7/3.png +3 -0
- vlm/train/0HW7A5YZjq7/4.png +3 -0
- vlm/train/0HW7A5YZjq7/5.png +3 -0
- vlm/train/0HW7A5YZjq7/6.png +3 -0
- vlm/train/0HW7A5YZjq7/7.png +3 -0
- vlm/train/0HW7A5YZjq7/8.png +3 -0
- vlm/train/0HW7A5YZjq7/9.png +3 -0
- vlm/train/784_F-WCW46/0.png +3 -0
- vlm/train/784_F-WCW46/1.png +3 -0
- vlm/train/784_F-WCW46/10.png +3 -0
- vlm/train/784_F-WCW46/2.png +3 -0
- vlm/train/784_F-WCW46/3.png +3 -0
- vlm/train/784_F-WCW46/4.png +3 -0
- vlm/train/784_F-WCW46/5.png +3 -0
- vlm/train/784_F-WCW46/6.png +3 -0
- vlm/train/784_F-WCW46/7.png +3 -0
- vlm/train/784_F-WCW46/8.png +3 -0
- vlm/train/784_F-WCW46/9.png +3 -0
- vlm/train/9BpjtPMyDQ/0.png +3 -0
- vlm/train/9BpjtPMyDQ/1.png +3 -0
- vlm/train/9BpjtPMyDQ/10.png +3 -0
- vlm/train/9BpjtPMyDQ/11.png +3 -0
- vlm/train/9BpjtPMyDQ/12.png +3 -0
parse/train/ByeSYa4KPS/ByeSYa4KPS.md
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPARSE NETWORKS FROM SCRATCH: FASTER TRAINING WITHOUT LOSING PERFORMANCE
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We demonstrate the possibility of what we call sparse learning: accelerated training of deep neural networks that maintain sparse weights throughout training while achieving dense performance levels. We accomplish this by developing sparse momentum, an algorithm which uses exponentially smoothed gradients (momentum) to identify layers and weights which reduce the error efficiently. Sparse momentum redistributes pruned weights across layers according to the mean momentum magnitude of each layer. Within a layer, sparse momentum grows weights according to the momentum magnitude of zero-valued weights. We demonstrate state-of-the-art sparse performance on MNIST, CIFAR-10, and ImageNet, decreasing the mean error by a relative $8 \%$ , $15 \%$ , and $6 \%$ compared to other sparse algorithms. Furthermore, we show that sparse momentum reliably reproduces dense performance levels while providing up to $5 . 6 1 \mathrm { x }$ faster training. In our analysis, ablations show that the benefits of momentum redistribution and growth increase with the depth and size of the network.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Current state-of-the-art neural networks need extensive computational resources to be trained and can have capacities of close to one billion connections between neurons (Vaswani et al., 2017; Devlin et al., 2018; Child et al., 2019). One solution that nature found to improve neural network scaling is to use sparsity: the more neurons a brain has, the fewer connections neurons make with each other (Herculano-Houzel et al., 2010). Similarly, for deep neural networks, it has been shown that sparse weight configurations exist which train faster and achieve the same errors as dense networks (Frankle and Carbin, 2019). However, currently, these sparse configurations are found by starting from a dense network, which is pruned and re-trained repeatedly – an expensive procedure.
|
| 12 |
+
|
| 13 |
+
In this work, we demonstrate the possibility of training sparse networks that rival the performance of their dense counterparts with a single training run – no re-training is required. We start with random initializations and maintain sparse weights throughout training while also speeding up the overall training time. We achieve this by developing sparse momentum, an algorithm which uses the exponentially smoothed gradient of network weights (momentum) as a measure of persistent errors to identify which layers are most efficient at reducing the error and which missing connections between neurons would reduce the error the most. Sparse momentum follows a cycle of (1) pruning weights with small magnitude, (2) redistributing weights across layers according to the mean momentum magnitude of existing weights, and (3) growing new weights to fill in missing connections which have the highest momentum magnitude.
|
| 14 |
+
|
| 15 |
+
We compare the performance of sparse momentum to compression algorithms and recent methods that maintain sparse weights throughout training. We demonstrate state-of-the-art sparse performance on MNIST, CIFAR-10, and ImageNet-1k. For CIFAR-10, we determine the percentage of weights needed to reach dense performance levels and find that AlexNet, VGG16, and Wide Residual Networks need between $3 5 . 5 0 \%$ , $5 . 1 0 \%$ , and $20 \%$ weights to reach dense performance levels. We also estimate the overall speedups of training our sparse convolutional networks to dense performance levels on CIFAR-10 for optimal sparse convolution algorithms and naive dense convolution algorithms compared to dense baselines. For sparse convolution, we estimate speedups between $2 . 7 4 \mathrm { x }$ and $5 . 6 1 \mathrm { x }$ and for dense convolution speedups between $1 . 0 7 \mathrm { x }$ and $1 . 3 6 \mathrm { x }$ . In your analysis, ablations demonstrate that the momentum redistribution and growth components are increasingly important as networks get deeper and larger in size – both are critical for good ImageNet performance.
|
| 16 |
+
|
| 17 |
+
# 2 RELATED WORK
|
| 18 |
+
|
| 19 |
+
From Dense to Sparse Neural Networks: Work that focuses on creating sparse from dense neural networks has an extensive history. Earlier work focused on pruning via second-order derivatives (LeCun et al., 1989; Karnin, 1990; Hassibi and Stork, 1992) and heuristics which ensure efficient training of networks after pruning (Chauvin, 1988; Mozer and Smolensky, 1988; Ishikawa, 1996). Recent work is often motivated by the memory and computational benefits of sparse models that enable the deployment of deep neural networks on mobile and low-energy devices. A very influential paradigm has been the iterative (1) train-dense, (2) prune, (3) re-train cycle introduced by Han et al. (2015). Extensions to this work include: Compressing recurrent neural networks and other models (Narang et al., 2017; Zhu and Gupta, 2018; Dai et al., 2018), continuous pruning and re-training (Guo et al., 2016), joint loss/pruning-cost optimization (Carreira-Perpinan and Idelbayev, 2018), ´ layer-by-layer pruning (Dong et al., 2017), fast-switching growth-pruning cycles (Dai et al., 2017), and soft weight-sharing (Ullrich et al., 2017). These approaches often involve re-training phases which increase the training time. However, since the main goal of this line of work is a compressed model for mobile devices, it is desirable but not an important main goal to reduce the run-time of these procedures. This is contrary to our motivation. Despite the difference in motivation, we include many of these dense-to-sparse compression methods in our comparisons. Other compression algorithms include $L _ { 0 }$ regularization (Louizos et al., 2018), and Bayesian methods (Louizos et al., 2017; Molchanov et al., 2017). For further details, see the survey of Gale et al. (2019).
|
| 20 |
+
|
| 21 |
+
Interpretation and Analysis of Sparse Neural Networks: Frankle and Carbin (2019) show that “winning lottery tickets” exist for deep neural networks – sparse initializations which reach similar predictive performance as dense networks and train just as fast. However, finding these winning lottery tickets is computationally expensive and involves multiple prune and re-train cycles starting from a dense network. Followup work concentrated on finding these configurations faster (Frankle et al., 2019; Zhou et al., 2019). In contrast, we reach dense performance levels with a sparse network from random initialization with a single training run while accelerating training.
|
| 22 |
+
|
| 23 |
+
Sparse Neural Networks Throughout Training: Methods that maintain sparse weights throughout training through a prune-redistribute-regrowth cycle are most closely related to our work. Bellec et al. (2018) introduce DEEP-R, which takes a Bayesian perspective and performs sampling for prune and regrowth decisions – sampling sparse network configurations from a posterior. While theoretically rigorous, this approach is computationally expensive and challenging to apply to large networks and datasets. Sparse evolutionary training (SET) (Mocanu et al., 2018) simplifies prune-regrowth cycles by using heuristics: (1) prune the smallest and most negative weights, (2) grow new weights in random locations. Unlike our work, where many convolutional channels are empty and can be excluded from computation, growing weights randomly fills most convolutional channels and makes it challenging to harness computational speedups during training without specialized sparse algorithms. SET also does not include the cross-layer redistribution of weights which we find to be critical for good performance, as shown in our ablation study. The most closely related work to ours is Dynamic Sparse Reparameterization (DSR) by Mostafa and Wang (2019), which includes the full prune-redistribute-regrowth cycle. However, DSR requires some specific layers to be dense. Our method works in a fully sparse setting and is thus more generally applicable. More distantly related is Single-shot Network Pruning (SNIP) (Lee et al., 2019), which aims to find the best sparse network from a single pruning decision. The goal of SNIP is simplicity, while our goal is maximizing predictive and run-time performance. In our experiments, we compare against all four methods: DEEP-R, SET, DSR, and SNIP.
|
| 24 |
+
|
| 25 |
+
# 3 SPARSE LEARNING
|
| 26 |
+
|
| 27 |
+
We define sparse learning to be the training of deep neural networks which maintain sparsity throughout training while matching the predictive performance of dense neural networks. To achieve this, intuitively, we want to find the weights that reduce the error most effectively. This is challenging since most deep neural network can hold trillions of different combinations of sparse weights. Additionally, during training, as feature hierarchies are learned, efficient weights might change gradually from shallow to deep layers. How can we find good sparse configurations? In this work, we follow a divide-and-conquer strategy that is guided by computationally efficient heuristics. We divide sparse learning into the following sub-problems which can be tackled independently: (1) pruning weights, (2) redistribution of weights across layers, and (3) regrowing weights, as defined in more detail below.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
Figure 1: Sparse Momentum is applied at the end of each epoch: (1) take the magnitude of the exponentially smoothed gradient (momentum) of each layer and normalize to 1; (2) for each layer, remove $p = 2 0 \%$ of the weights with the smallest magnitude; (3) across layers, redistribute the removed weights by adding weights to each layer proportionate to the momentum of each layer; within a layer, add weights starting from those with the largest momentum magnitude. Decay $p$ .
|
| 31 |
+
|
| 32 |
+
# 3.1 SPARSE MOMENTUM
|
| 33 |
+
|
| 34 |
+
We use the mean magnitude of momentum $\mathbf { M } _ { i }$ of existing weights $\mathbf { W } _ { i }$ in each layer $i$ to estimate how efficient the average weight in each layer is at reducing the overall error. Intuitively, we want to take weights from less efficient layers and redistribute them to weight-efficient layers. The sparse momentum algorithm is depicted in Figure 1. In this section, we first describe the intuition behind sparse momentum and then present a more detailed description of the algorithm.
|
| 35 |
+
|
| 36 |
+
The gradient of the error with respect to a weight $\textstyle \frac { \partial \mathbf { E } } { \partial \mathbf { W } }$ yields the directions which reduce the error at the highest rate. However, if we use stochastic gradient descent, most weights of $\frac { \partial \mathbf { E } } { \partial \mathbf { W } }$ oscillate between small/large and negative/positive gradients with each mini-batch (Qian, 1999) – a good change for one mini-batch might be a bad change for another. We can reduce oscillations if we take the average gradient over time, thereby finding weights which reduce the error consistently. However, we want to value recent gradients, which are closer to the local minimum, more highly than the distant past. This can be achieved by exponentially smoothing $\frac { \partial \mathbf { E } } { \partial \mathbf { W } }$ – the momentum $\mathbf { M } _ { i }$ :
|
| 37 |
+
|
| 38 |
+
$$
|
| 39 |
+
\mathbf { M } _ { i } ^ { t + 1 } = \alpha \mathbf { M } _ { i } ^ { t } + ( 1 - \alpha ) \frac { \partial \mathbf { E } } { \partial \mathbf { W } _ { i } } ^ { t } ,
|
| 40 |
+
$$
|
| 41 |
+
|
| 42 |
+
where $\alpha$ is a smoothing factor, $\mathbf { M } _ { i }$ is the momentum for the weight $\mathbf { W } _ { i }$ in layer $i$ ; $\mathbf { M } _ { i }$ is initialized at $t = 0$ with 0.
|
| 43 |
+
|
| 44 |
+
Momentum is efficient at accelerating the optimization of deep neural networks by identifying weights which reduce the error consistently. Similarly, the aggregated momentum of weights in each layer should reflect how good each layer is at reducing the error consistently. Additionally, the momentum of zero-valued weights – equivalent to missing weights in sparse networks – can be used to estimate how quickly the error would change if these weights would be included in a sparse network.
|
| 45 |
+
|
| 46 |
+
The details of the full training procedure of our algorithm are shown in Algorithm 1. See Algorithm 2 in the Appendix for a more detailed, source-code-like description of sparse momentum.
|
| 47 |
+
|
| 48 |
+
Algorithm 1: Sparse momentum algorithm.
|
| 49 |
+
|
| 50 |
+
<table><tr><td colspan="2">Data: Layer i to k with: Momentum Mi,Weight Wi, binary Maski prune rate pi, density d 1 fori←O to k do</td></tr><tr><td colspan="2">Wi ← xavierInit(Wi)</td></tr><tr><td>2 3</td><td>Maski ← createMaskForWeight(Wi,d)</td></tr><tr><td>4</td><td>applyMask(Wi,Maski)</td></tr><tr><td>5 end</td><td></td></tr><tr><td colspan="2"></td></tr><tr><td colspan="2">6 for epoch ← O to numEpochs do</td></tr><tr><td>7</td><td>for j←O to numBatches do</td></tr><tr><td>8</td><td>batch ← getBatch(j) E</td></tr><tr><td>9</td><td>W = computeGradients(W, batch)</td></tr><tr><td>10</td><td>UpdateMomentum( 器)</td></tr><tr><td>11</td><td>UpdateWeights(M)</td></tr><tr><td>12</td><td>fori←O to k do</td></tr><tr><td>13</td><td>applyMask(Wi,Maski) end</td></tr><tr><td>14</td><td>end</td></tr><tr><td>15</td><td></td></tr><tr><td>16</td><td>totalMomentum ← getTotalMomentum(M)</td></tr><tr><td>17</td><td>totalPruned ← getTotalPrunedWeights(W, p)</td></tr><tr><td>18</td><td>fori←O to k do</td></tr><tr><td>19</td><td>mi ← getMomentumContribution(Mi,Maski,totalMomentum)</td></tr><tr><td>20</td><td>magnitudePruneWeight(Wi,Maski, Pi)</td></tr><tr><td>21</td><td>regrowWeights(Wi,Maski,mi · totalPruned)</td></tr><tr><td>22</td><td>Pi←decayPrunerate(pi)</td></tr><tr><td>23</td><td>applyMask(Wi,Maski)</td></tr><tr><td>24</td><td>end</td></tr><tr><td colspan="2">25 end</td></tr></table>
|
| 51 |
+
|
| 52 |
+
Before training, we initialize the network with a certain sparsity $s$ : we initialize the network as usual and then remove a fraction of $s$ weights for each layer. We train the network normally and mask the weights after each gradient update to enforce sparsity. We apply sparse momentum after each epoch. We can break the sparse momentum into three major parts: (a) redistribution of weights, (b) pruning weights, (c) regrowing weights. In step (a), we we take the mean of the element-wise momentum momentum $m _ { i }$ agnitude of all layers . The resulting pr $i$ ortion is the momentum magnitude $\scriptstyle \sum _ { i = 0 } ^ { k } m _ { i }$
|
| 53 |
+
removed weights multiplied by each layers momentum contribution: $\mathrm { R e g r o w } _ { i } =$ Total Removed · $m _ { i }$ . In step (b), we prune a proportion of $p$ (prune rate) of the weights with the lowest magnitude for each layer. In step (c), we regrow weights by enabling the gradient flow of zero-valued (missing) weights which have the largest momentum magnitude.
|
| 54 |
+
|
| 55 |
+
Additionally, there are two edge-cases which we did not include in Algorithm 1 for clarity. (1) If we allocate more weights to be regrown than is possible for a specific layer, for example regrowing 100 weights for a layer of maximum 10 weights, we redistribute the excess number of weights equally among all other layers. (2) For some layers, our algorithm will converge in that the average weight in layer $i$ has much larger momentum magnitude than weights in other layers, but at the same time, this layer is dense and cannot grow further. We do not want to prune weights from such important layers. Thus, for these layers, we reduce the prune rate $p _ { i }$ proportional to the sparsity: $p _ { i } = \mathrm { { m i n } } ( p , \mathrm { { s p a r s i t y } } _ { i } )$ .
|
| 56 |
+
|
| 57 |
+
After each epoch, we decay the prune rate in Algorithm 1 in the same way learning rates are decayed. We use a cosine decay schedule that anneals the prune rate to zero on the last epoch. See Appendix A.1 for an analysis on how decay schedule and starting prune rate affects training.
|
| 58 |
+
|
| 59 |
+
# 4 EXPERIMENTAL SETUP
|
| 60 |
+
|
| 61 |
+
For comparison, we follow three different experimental settings, one from Lee et al. (2019) and two settings follow Mostafa and Wang (2019): For MNIST (LeCun, 1998), we use a batch size of 100, decay the learning rate by a factor of 0.1 every 25000 mini-batches. For CIFAR-10 (Krizhevsky and Hinton, 2009), we use standard data augmentations (horizontal flip, and random crop with reflective padding), a batch size of 128, and decay the learning rate every 30000 mini-batches. We train for 100 and 250 epochs on MNIST and CIFAR-10, use a learning rate of 0.1, stochastic gradient descent with Nesterov momentum of $\alpha = 0 . 9$ , and we use a weight decay of 0.0005. We use a fixed $10 \%$ of the training data as the validation set and train on the remaining $90 \%$ . We evaluate the test set performance of our models on the last epoch. For all experiments on MNIST and CIFAR-10, we report the standard errors. Our sample size is generally between 10 and 12 experiments per method/architecture/sparsity level with different random seeds for each experiment.
|
| 62 |
+
|
| 63 |
+
We use the modified network architectures of AlexNet, VGG16, and LeNet-5 as introduced by Lee et al. (2019). We consider two different variations of the experimental setup of Mostafa and Wang (2019) for ImageNet and CIFAR-10. The first follows their procedure closely, in that we run the networks in a partially dense setting where the first convolutional layer and downsampling convolutional layers are dense. Additionally, for CIFAR-10 the last fully connected layer is dense. In the second setting, we compare in a fully sparse setting – no layer is dense at the beginning of training. For the fully sparse setting we increase overall number of weights according to the extra parameters in the dense layers and distribute them equally among the network. The parameters in the dense layers make up $5 . 6 3 \%$ weights of the ResNet-50 network. We refer to these two settings as the partially dense and fully sparse settings.
|
| 64 |
+
|
| 65 |
+
On ImageNet (Deng et al., 2009), we use ResNet-50 (He et al., 2016) with a stride of 2 for the $3 \mathrm { x } 3$ convolution in the bottleneck layers. We use a batch size of 256, input size of 224, momentum of $\alpha = 0 . 9$ , and weight decay of $1 \dot { 0 } ^ { - 4 }$ . We train for 100 epochs and report validation set performance after the last epoch. We report results for the fully sparse and the partially dense setting.
|
| 66 |
+
|
| 67 |
+
For all experiments, we keep biases and batch normalization weights dense. We tuned the prune rate $p$ and momentum rate $\alpha$ searching the parameter space $\{ 0 . 2 , 0 . 3 , \bar { 0 } . 4 , 0 . 5 , 0 . 6 , 0 . 7 \}$ and $\{ 0 . 5 , 0 . 6 , 0 . 7$ $0 . 8 , 0 . 9 , 0 . 9 5 , 0 . 9 9 \}$ on MNIST and CIFAR-10 and found that $p = 0 . 2$ and $\alpha = 0 . 9$ work well for most architectures. We use this prune and momentum rate throughout all experiments.
|
| 68 |
+
|
| 69 |
+
ImageNet experiments were run on $4 \mathbf { x }$ RTX 2080 Ti and all other experiments on individual GPUs.
|
| 70 |
+
|
| 71 |
+
Our software builds on PyTorch (Paszke et al., 2017) and is a wrapper for PyTorch neural networks with a modular architecture for growth, redistribution, and pruning algorithms. Currently, no GPUaccelerated libraries that utilize sparse tensors exist, and as such we use masked weights to simulate sparse neural networks. Using our software, any PyTorch neural network can be adapted to be a sparse momentum network with less than 10 lines of code. We will open-source our software along with trained models and individual experimental results.1
|
| 72 |
+
|
| 73 |
+
# 5 RESULTS
|
| 74 |
+
|
| 75 |
+
Results in Figure 2 and Table 1 show a comparison with model compression methods. On MNIST, sparse momentum is the only method that provides consistent strong performance across both LeNet 300-100 and LeNet-5 Caffe models. Soft-weight sharing (Ullrich et al., 2017) and Layer-wise Brain Damage (Dong et al., 2017) are competitive with sparse momentum for one model, but underperforms for the other model. For $1 \%$ of weights, variational dropout is more effective – but this method also uses dropout for further regularization while we only use weight decay. We can see that sparse momentum achieves equal performance to the LeNet-5 Caffe dense baseline with $8 \%$ weights.
|
| 76 |
+
|
| 77 |
+
On CIFAR-10 in Table 1, we can see that sparse momentum outperforms Single-shot Network Pruning (SNIP) for all models and can achieve the same performance level as a dense model for VGG16-D with just $5 \%$ of weights.
|
| 78 |
+
|
| 79 |
+

|
| 80 |
+
Figure 2: Comparisons against compression methods on MNIST with $9 5 \%$ confidence intervals.
|
| 81 |
+
|
| 82 |
+
Figure 3 and Table 2 show comparisons of sparse learning methods on MNIST and CIFAR that follows the experimental procedure of Mostafa and Wang (2019) where some selected layers are dense. For LeNet 300-100 on MNIST, we can see that sparse momentum outperforms all other methods. For CIFAR-10, sparse momentum is better than dynamic sparse in 4 out of 5 cases. However, in general, the confidence intervals for most methods overlap – this particular setup for CIFAR-10 with specifically selected dense layers seems to be too easy to determine difference in performance between methods and we do not recommend this setup for future work. Table 2 shows that sparse momentum outperforms all other methods on ImageNet (ILSVRC2012) for the Top-1 accuracy measure. Dynamic sparse is better for the Top-5 accuracy with $20 \%$ weights. In the fully sparse setting, sparse momentum remains competitive and seems to find a weight distribution which works equally well for the $10 \%$ weights case. For $20 \%$ weights, the performance decreases slightly.
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Figure 3: Test set accuracy with $9 5 \%$ confidence intervals on MNIST and CIFAR at varying sparsity levels for LeNet 300-100 and WRN 28-2.
|
| 86 |
+
|
| 87 |
+
# 5.1 SPEEDUPS AND WEIGHTS NEEDED FOR DENSE PERFORMANCE LEVELS
|
| 88 |
+
|
| 89 |
+
We analyzed how many weights are needed to achieve dense performance for our networks on CIFAR-10 and how much faster would we able to train such a sparse network compared to a dense one. We do this analysis by increasing the number of weights by $5 \%$ until the sparse network trained with sparse momentum reaches a performance level that overlaps with a $9 5 \%$ confidence interval of the dense performance. We then measure the speedup of the model. For each network-density combination we perform ten training runs with different random seeds to calculate the mean test error and its standard error.
|
| 90 |
+
|
| 91 |
+
To estimated the speedups that could be obtained using sparse momentum for these dense networks we follow two approaches: Theoretical speedups for sparse convolution algorithms which are proportional to reductions in FLOPS and practical speedups using dense convolutional algorithms which are proportional to empty convolutional channels. For our sparse convolution estimates, we calculate the FLOPS saved for each convolution operation throughout training as well as the runtime for each convolution. To receive the maximum speedups for sparse convolution, we then scale the runtime for each convolution operation by the FLOPS saved. While a fast sparse convolution algorithm for coarse block structures exist for GPUs (Gray et al., 2017), optimal sparse convolution algorithms for fine-grained patterns do not and need to be developed to enable these speedups.
|
| 92 |
+
|
| 93 |
+
Table 1: CIFAR-10 test set error ( $\pm$ standard error) for dense baselines, Sparse Momentum and SNIP.
|
| 94 |
+
|
| 95 |
+
<table><tr><td rowspan="2"></td><td colspan="3">Sparse Error (%)</td><td rowspan="2">Weights (%)</td></tr><tr><td>Dense Error (%)</td><td>SNIP</td><td>Momentum</td></tr><tr><td>Model AlexNet-s</td><td>12.95±0.056</td><td>14.99</td><td>14.27±0.123</td><td>10</td></tr><tr><td>AlexNet-b</td><td>12.85±0.068</td><td>14.50</td><td>13.56±0.094</td><td>10</td></tr><tr><td>VGG16-C</td><td>6.49±0.038</td><td>7.27</td><td>7.00±0.054</td><td>5</td></tr><tr><td>VGG16-D</td><td>6.59±0.050</td><td>7.09</td><td>6.69±0.049*</td><td>5</td></tr><tr><td>VGG16-like</td><td>6.50±0.054</td><td>8.00</td><td>7.00±0.077</td><td>3</td></tr><tr><td>WRN-16-8</td><td>4.57±0.022</td><td>6.63</td><td>5.62±0.056</td><td>5</td></tr><tr><td>WRN-16-10</td><td>4.45±0.040</td><td>6.43</td><td>5.24±0.052</td><td>5</td></tr><tr><td>WRN-22-8</td><td>4.26±0.032</td><td>5.85</td><td>4.93±0.056</td><td>5</td></tr></table>
|
| 96 |
+
|
| 97 |
+
\* $9 5 \%$ confidence intervals overlap with dense model. Table 2: Results for ResNet-50 on ImageNet.
|
| 98 |
+
|
| 99 |
+
<table><tr><td colspan="3"></td><td colspan="3">Accuracy (%)</td></tr><tr><td colspan="2">Model</td><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td colspan="2">Dense ResNet-50 (He et al., 2016)</td><td>74.9</td><td>92.4</td><td>74.9</td><td>92.4</td></tr><tr><td colspan="2">Fully Sparse</td><td>10%</td><td>weights</td><td>20%</td><td>Weights</td></tr><tr><td rowspan="3">DeepR (Bellec et al., 2018) SET (Mocanu et al., 2018)</td><td>X</td><td>70.2</td><td>90.0</td><td>71.7</td><td>90.6</td></tr><tr><td>X</td><td>70.4</td><td>90.1</td><td>72.6</td><td>91.2</td></tr><tr><td>Dynamic Sparse (Mostafa and Wang,2019) X</td><td>71.6</td><td>90.5</td><td>73.3</td><td>92.4</td></tr><tr><td rowspan="2">Sparse momentum</td><td></td><td>72.3</td><td>91.0</td><td>74.2</td><td>91.9</td></tr><tr><td>×</td><td>72.3</td><td>91.0</td><td>73.8</td><td>91.8</td></tr></table>
|
| 100 |
+
|
| 101 |
+
The second method measures practical speedups that can be obtained with naive, dense convolution algorithms which are available today. Dense convolution is unsuitable for the training of sparse networks but we include this measurement to highlight the algorithmic gap that exists to efficiently train sparse networks. For dense convolution algorithms, we estimate speedups as follows: If a convolutional channel consists entirely of zero-valued weights we can remove these channels from the computation without changing the outputs and obtain speedups. To receive the speedups for dense convolution we scale each convolution operation by the proportion of empty channels. Using these measures, we estimated the speedups for our models on CIFAR-10. The resulting speedups and dense performance levels can be seen in Table 3.
|
| 102 |
+
|
| 103 |
+
We see that VGG16 networks can achieve dense performance with relatively few weights while AlexNet requires the most weights. Wide Residual Networks need an intermediate level of weights. Despite the large number of weights for AlexNet, sparse momentum still yields large speedups around $3 . 0 \mathbf { x }$ for sparse convolution. Sparse convolution speedups are particularly pronounced for Wide Residual Networks (WRN) with speedups as high as $5 . 6 1 \mathrm { x }$ . Dense convolution speedups are much lower and are mostly dependent on width, with wider networks receiving larger speedups. These results highlight the importance to develop optimized algorithms for sparse convolution.
|
| 104 |
+
|
| 105 |
+
Beyond speedups, we also measured the overhead of our sparse momentum procedure to be equivalent of a slowdown to $0 . 9 7 3 \mathrm { x } \pm 0 . 0 2 9 \mathrm { x }$ compared to a dense baseline.
|
| 106 |
+
|
| 107 |
+
Table 3: Dense performance equivalents and speedups for sparse networks on CIFAR-10.
|
| 108 |
+
|
| 109 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Weights (%)</td><td rowspan="2">Error(%)</td><td colspan="2"> Speedups</td></tr><tr><td>Dense Convolution (Empty Channels)</td><td>Sparse Convolution (FLOPS Reduction)</td></tr><tr><td>AlexNet-s</td><td>50</td><td>13.15±0.065</td><td>1.31x</td><td>3.01x</td></tr><tr><td>AlexNet-b</td><td>35</td><td>13.00±0.065</td><td>1.21x</td><td>2.74x</td></tr><tr><td>VGG16-C</td><td>10</td><td>6.64±0.040</td><td>1.32x</td><td>3.85x</td></tr><tr><td>VGG16-D</td><td>5</td><td>6.49±0.045</td><td>1.36x</td><td>3.51x</td></tr><tr><td>VGG16-like</td><td>5</td><td>6.46±0.036</td><td>1.32x</td><td>3.48x</td></tr><tr><td>WRN 16-8</td><td>30</td><td>4.72±0.051</td><td>1.07x</td><td>4.59x</td></tr><tr><td>WRN 16-10</td><td>25</td><td>4.56±0.037</td><td>1.07x</td><td>4.41x</td></tr><tr><td>WRN 22-8</td><td>20</td><td>4.40±0.037</td><td>1.21x</td><td>5.61x</td></tr></table>
|
| 110 |
+
|
| 111 |
+
# 6 ANALYSIS
|
| 112 |
+
|
| 113 |
+
# 6.1 ABLATION ANALYSIS
|
| 114 |
+
|
| 115 |
+
Our method differs from previous methods like SET and Dynamic Sparse Reparameterization in two ways: (1) redistribution of weights and (2) growth of weights. To understand the performance contribution of these components, we perform ablations on CIFAR-10 for VGG16-D with $5 \%$ weights, MNIST for LeNet 300-100 and LeNet-5 Caffe with $5 \%$ weights, and ImageNet for ResNet-50 with $10 \%$ weights in the fully sparse setting. The results can be seen in Table 4.
|
| 116 |
+
|
| 117 |
+
Redistribution: Redistributing weights according to the momentum magnitude becomes increasingly important the larger a network is as can be seen from the steady increases in error from the small LeNet 300-100 to the large ResNet-50 when no momentum redistribution is used. Increased test error is particularly pronounced for ImageNet where the Top-1 error increases by $3 . 4 2 \%$ to $9 . 7 1 \%$ if no redistribution is used.
|
| 118 |
+
|
| 119 |
+
Momentum growth: Momentum growth improves performance over random growth by a large margin for ResNet-50 on ImageNet, but for smaller networks the combination of redistribution and random growth seems to be sufficient to find good weights. Random growth without redistribution, however, cannot find good weights. These results suggest that with increasing network size a random search strategy becomes inefficient and smarter growth algorithms are required for good performance.
|
| 120 |
+
|
| 121 |
+
Table 4: Ablation analysis for different growth and redistribution algorithm combinations for LeNet 300-100 and LeNet-5 Caffe on MNIST, VGG16-D on CIFAR-10, and ResNet-50 on ImageNet.
|
| 122 |
+
|
| 123 |
+
<table><tr><td rowspan="2">Redistribution</td><td rowspan="2">Growth</td><td colspan="4">Test error in %</td></tr><tr><td>LeNet 300-100</td><td>LeNet-5 Caffe</td><td>VGG16-D</td><td>ResNet-50</td></tr><tr><td>momentum</td><td>momentum</td><td>1.53±0.020</td><td>0.69±0.021</td><td>6.69±0.049</td><td>27.07</td></tr><tr><td>momentum</td><td>random</td><td>+0.07±0.022</td><td>-0.05±0.011</td><td>-0.19±0.040</td><td>+7.29</td></tr><tr><td>None</td><td> momentum</td><td>+0.01±0.018</td><td>+0.32±0.071</td><td>+1.54±0.101</td><td>+3.42</td></tr><tr><td>None</td><td>random</td><td>+0.11±0.020</td><td>+0.13±0.013</td><td>+1.49±0.147</td><td>+9.71</td></tr></table>
|
| 124 |
+
|
| 125 |
+
# 7 CONCLUSION AND FUTURE WORK
|
| 126 |
+
|
| 127 |
+
We presented our sparse learning algorithm, sparse momentum, which uses the mean magnitude of momentum to grow and redistribute weights. We showed that sparse momentum outperforms other sparse algorithms on MNIST, CIFAR-10, and ImageNet. Additionally, sparse momentum can rival dense neural network performance while accelerating training. Our analysis of speedups highlights the need for research into specialized sparse convolution and sparse matrix multiplication algorithms to enable the benefits of sparse networks.
|
| 128 |
+
|
| 129 |
+
# REFERENCES
|
| 130 |
+
|
| 131 |
+
Bellec, G., Kappel, D., Maass, W., and Legenstein, R. A. (2018). Deep rewiring: Training very sparse deep networks. CoRR, abs/1711.05136.
|
| 132 |
+
|
| 133 |
+
Carreira-Perpinan, M. A. and Idelbayev, Y. (2018). learning-compression algorithms for neural net ´ pruning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8532–8541.
|
| 134 |
+
|
| 135 |
+
Chauvin, Y. (1988). A back-propagation algorithm with optimal use of hidden units. In NIPS.
|
| 136 |
+
|
| 137 |
+
Child, R., Gray, S., Radford, A., and Sutskever, I. (2019). Generating long sequences with sparse transformers. CoRR, abs/1904.10509.
|
| 138 |
+
|
| 139 |
+
Dai, X., Yin, H., and Jha, N. K. (2017). Nest: A neural network synthesis tool based on a grow-andprune paradigm. CoRR, abs/1711.02017.
|
| 140 |
+
|
| 141 |
+
Dai, X., Yin, H., and Jha, N. K. (2018). Grow and prune compact, fast, and accurate lstms. CoRR, abs/1805.11797.
|
| 142 |
+
|
| 143 |
+
Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. (2009). Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee.
|
| 144 |
+
|
| 145 |
+
Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. CoRR, abs/1810.04805.
|
| 146 |
+
|
| 147 |
+
Dong, X., Chen, S., and Pan, S. J. (2017). Learning to prune deep neural networks via layer-wise optimal brain surgeon. In NIPS.
|
| 148 |
+
|
| 149 |
+
Frankle, J. and Carbin, M. (2019). The lottery ticket hypothesis: Finding sparse, trainable neural networks. In ICLR 2019.
|
| 150 |
+
|
| 151 |
+
Frankle, J., Dziugaite, G. K., Roy, D. M., and Carbin, M. (2019). The lottery ticket hypothesis at scale. CoRR, abs/1903.01611.
|
| 152 |
+
|
| 153 |
+
Gale, T., Elsen, E., and Hooker, S. (2019). The state of sparsity in deep neural networks. CoRR, abs/1902.09574.
|
| 154 |
+
|
| 155 |
+
Gray, S., Radford, A., and Kingma, D. P. (2017). Gpu kernels for block-sparse weights.
|
| 156 |
+
|
| 157 |
+
Guo, Y., Yao, A., and Chen, Y. (2016). Dynamic network surgery for efficient dnns. In Advances In Neural Information Processing Systems, pages 1379–1387.
|
| 158 |
+
|
| 159 |
+
Han, S., Pool, J., Tran, J., and Dally, W. (2015). Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pages 1135–1143.
|
| 160 |
+
|
| 161 |
+
Hassibi, B. and Stork, D. G. (1992). Second order derivatives for network pruning: Optimal brain surgeon. In NIPS.
|
| 162 |
+
|
| 163 |
+
He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778.
|
| 164 |
+
|
| 165 |
+
Herculano-Houzel, S., Mota, B., Wong, P., and Kaas, J. H. (2010). Connectivity-driven white matter scaling and folding in primate cerebral cortex. Proceedings of the National Academy of Sciences of the United States of America, 107 44:19008–13.
|
| 166 |
+
|
| 167 |
+
Ishikawa, M. (1996). Structural learning with forgetting. Neural Networks, 9:509–521.
|
| 168 |
+
|
| 169 |
+
Karnin, E. D. (1990). A simple procedure for pruning back-propagation trained neural networks. IEEE transactions on neural networks, 1 2:239–42.
|
| 170 |
+
|
| 171 |
+
Krizhevsky, A. and Hinton, G. (2009). Learning multiple layers of features from tiny images. Technical report, Citeseer.
|
| 172 |
+
|
| 173 |
+
LeCun, Y. (1998). Gradient-based learning applied to document recognition.
|
| 174 |
+
LeCun, Y., Denker, J. S., and Solla, S. A. (1989). Optimal brain damage. In NIPS.
|
| 175 |
+
Lee, N., Ajanthan, T., and Torr, P. H. S. (2019). Snip: Single-shot network pruning based on connection sensitivity. In ICLR 2019.
|
| 176 |
+
Louizos, C., Ullrich, K., and Welling, M. (2017). Bayesian compression for deep learning. In Advances in Neural Information Processing Systems, pages 3288–3298.
|
| 177 |
+
Louizos, C., Welling, M., and Kingma, D. P. (2018). Learning sparse neural networks through $l _ { 0 }$ regularization. CoRR, abs/1712.01312.
|
| 178 |
+
Mocanu, D. C., Mocanu, E., Stone, P., Nguyen, P. H., Gibescu, M., and Liotta, A. (2018). Scalable training of artificial neural networks with adaptive sparse connectivity inspired by network science. Nature communications, 9(1):2383.
|
| 179 |
+
Molchanov, D., Ashukha, A., and Vetrov, D. P. (2017). Variational dropout sparsifies deep neural networks. In International Conference on MachineLearning (ICML).
|
| 180 |
+
Mostafa, H. and Wang, X. (2019). Parameter efficient training of deep convolutional neural networks by dynamic sparse reparameterization. In International Conference on Machine Learning (ICML).
|
| 181 |
+
Mozer, M. C. and Smolensky, P. (1988). Skeletonization: A technique for trimming the fat from a network via relevance assessment. In NIPS.
|
| 182 |
+
Narang, S., Diamos, G. F., Sengupta, S., and Elsen, E. (2017). Exploring sparsity in recurrent neural networks. CoRR, abs/1704.05119.
|
| 183 |
+
Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmaison, A., Antiga, L., and Lerer, A. (2017). Automatic differentiation in pytorch.
|
| 184 |
+
Qian, N. (1999). On the momentum term in gradient descent learning algorithms. Neural networks : the official journal of the International Neural Network Society, 12 1:145–151.
|
| 185 |
+
Simonyan, K., Vedaldi, A., and Zisserman, A. (2013). Deep inside convolutional networks: Visualising image classification models and saliency maps. CoRR, abs/1312.6034.
|
| 186 |
+
Springenberg, J. T., Dosovitskiy, A., Brox, T., and Riedmiller, M. A. (2014). Striving for simplicity: The all convolutional net. CoRR, abs/1412.6806.
|
| 187 |
+
Ullrich, K., Meeds, E., and Welling, M. (2017). Soft weight-sharing for neural network compression. CoRR, abs/1702.04008.
|
| 188 |
+
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. (2017). Attention is all you need. In Advances in neural information processing systems, pages 5998–6008.
|
| 189 |
+
Zeiler, M. D. and Fergus, R. (2014). Visualizing and understanding convolutional networks. In ECCV.
|
| 190 |
+
Zhou, H., Lan, J., Liu, R., and Yosinski, J. (2019). Deconstructing lottery tickets: Zeros, signs, and the supermask. arXiv preprint arXiv:1905.01067.
|
| 191 |
+
Zhu, M. and Gupta, S. (2018). To prune, or not to prune: Exploring the efficacy of pruning for model compression. CoRR, abs/1710.01878.
|
| 192 |
+
|
| 193 |
+
# A APPENDIX
|
| 194 |
+
|
| 195 |
+
# A.1 SENSITIVITY ANALYSIS
|
| 196 |
+
|
| 197 |
+
Sparse momentum depends on two hyperparameters: Prune rate and momentum. In this section, we study the sensitivity of the accuracy of our models as we vary the prune rate and momentum. Since momentum parameter has an additional effect on the optimization procedure, we run control experiments for fully dense networks thus disentangling the difference in accuracy accounted by our sparse momentum procedure.
|
| 198 |
+
|
| 199 |
+
We run experiments for VGG-D and AlexNet-s with $5 \%$ and $10 \%$ weights on CIFAR-10. Results can be seen in Figure 4. We see that sparse momentum is highly robust to the choice of prune rate with results barely deviating when the prune rate is in the interval between 0.2 to 0.4. However, we can see a gradual linear trend that indicates that smaller prune rates work slightly better than larger ones. Cosine and linear prune rate annealing schedules do equally well. For momentum, confidence intervals for values between 0.7 and 0.9 overlap indicating that our procedure is robust to the choice of the momentum parameter. Sparse momentum is more sensitive to low momentum values $( \le 0 . 6 )$ while it is less sensitive for large momentum values (0.95) compared to a dense control. Additionally, we test the null hypothesis that sparse momentum is equally sensitive to deviations from a momentum parameter value of 0.9 as a dense control. The normality assumption was violated and data transformations did not help. Thus we use the non-parametric Wilcoxon Signed-rank Test. We find no evidence that sparse momentum is more sensitive to the momentum parameter than a dense control, $W ( 1 6 ) = 2 2 . 0 , p = 0 . 5 8$ . Overall, we conclude that sparse momentum is highly robust to deviations of the pruning schedule and the momentum and prune rate parameters.
|
| 200 |
+
|
| 201 |
+

|
| 202 |
+
Figure 4: Parameter sensitivity analysis for prune rate and momentum with $9 5 \%$ confidence intervals.
|
| 203 |
+
|
| 204 |
+
B ADDITIONAL ANALYSIS
|
| 205 |
+
|
| 206 |
+
# B.1 DENSE VS SPARSE FEATURES
|
| 207 |
+
|
| 208 |
+
Are there differences between feature representations learned by dense and sparse networks? The answer to this question can help with the design of sparse learning algorithms and sparse architectures. In this section, we look at the features of dense and sparse networks and how specialized these features are for certain classes. We test difference between sparse and dense network features statistically.
|
| 209 |
+
|
| 210 |
+
For feature visualization, it is common to backpropagate activity to the inputs to be able to visualize what these activities represent (Simonyan et al., 2013; Zeiler and Fergus, 2014; Springenberg et al., 2014). However, in our case, we are more interested in the overall distribution of features for each layer within our network, and as such we want to look at the magnitude of the activity in a channel since – unlike feature visualization – we are not just interested in feature detectors but also discriminators. For example, a face detector would induce positive activity for a ‘person’ class but might produce negative activity for a ‘mushroom’ class. Both kinds of activity are useful.
|
| 211 |
+
|
| 212 |
+
With this reasoning, we develop the following convolutional channel-activation analysis: (1) pass the entire training set through the network and aggregate the magnitude of the activation in each convolutional channel separately for each class; (2) normalize across classes to receive for each channel the proportion of activation which is due to each class; (3) look at the maximum proportion of each channel as a measure of class specialization: a maximum proportion of $1 / N _ { c }$ where $N _ { c }$ is the number of classes indicates that the channel is equally active for all classes in the training set. The higher the proportion deviates from this value, the more is a channel specialized for a particular class.
|
| 213 |
+
|
| 214 |
+
We obtain results for AlexNet-s, VGG16-D, and WRN 28-2 on CIFAR-10 and use as many weights as needed to reach dense performance levels. We then test the null hypothesis, that there are no differences in class specialization between features from sparse networks and dense networks. Equal variance assumptions was violated for VGG-D and normality was violated for WRN-28-2, while all assumptions hold for AlexNet-s. For consistency reasons we perform non-parametric Kruskal-Wallis one-way analysis of variance tests for all networks. For AlexNet-s, we find some evidence that features of sparse networks have lower class specialization compared to dense networks $\chi ^ { 2 } ( 5 ) = 4 . 4 3 , p = 0 . 0 3 \bar { 5 }$ , for VGG-D and WRN-28-2 we find strong evidence that features of sparse networks have lower class specialization than dense networks $\bar { \chi } ^ { 2 } ( 1 3 ) = 2 8 . 1 , p < 0 . 0 0 1$ , $\bar { \chi ^ { 2 } } ( 1 2 ) = 3 6 . 2 , p < 0 . 0 0 1$ . Thus we reject the null hypothesis. These results increase our confidence that sparse networks learn features which have lower class specialization than dense networks.
|
| 215 |
+
|
| 216 |
+
Plots of the distributions of sparse vs. dense features for AlexNet-s, VGG16-D, and WRN 28-2 on CIFAR-10 in Figure 5. These plots were selected to highlight the difference in distribution in the first layers and last layers of each network. We see the convolutional channels in sparse networks have lower class-specialization indicating they learn features which are useful for a broader range of classes compared to dense networks. This trend intensifies with depth.
|
| 217 |
+
|
| 218 |
+
Overall, we conclude that sparse networks might be able to rival dense networks by learning more general features that have lower class specialization.
|
| 219 |
+
|
| 220 |
+
# C FURTHER RESULTS
|
| 221 |
+
|
| 222 |
+
# C.1 TUNED RESNET-50 ON IMAGENET
|
| 223 |
+
|
| 224 |
+
We also tried a better version of the ResNet-50 in the fully sparse setting for which we use a cosine learning rate schedule, label smoothing of 0.9, and we warmup the learning rate. The results can be seen in Table 5.
|
| 225 |
+
|
| 226 |
+
Table 5: Fully sparse ImageNet results.
|
| 227 |
+
|
| 228 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">Accuracy (%)</td></tr><tr><td>Weights (%) Top-1</td><td>Top-5</td></tr><tr><td>Tuned ResNet-50</td><td>100</td><td>77.0 93.5</td></tr><tr><td rowspan="3">Sparse momentum</td><td>10</td><td>72.9 91.5</td></tr><tr><td>20</td><td>74.9 92.5</td></tr><tr><td>30</td><td>75.9 92.9</td></tr></table>
|
| 229 |
+
|
| 230 |
+
# D DETAILED SPARSE MOMENTUM ALGORITHM
|
| 231 |
+
|
| 232 |
+
For a detailed NumPy-style algorithmic description of sparse momentum see Algorithm 2.
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 5: Dense vs sparse histograms of class-specialization for convolutional channels on CIFAR-10. A class-specialization of 0.5 indicates that $50 \%$ of the overall activity comes from a single class.
|
| 236 |
+
|
| 237 |
+
Algorithm 2: Sparse momentum algorithm in NumPy notation. Data: Layer i to k with: Momentum $\mathbf { M } _ { i }$ , Weight $\overline { { \mathbf { W } _ { \mathbf { i } } } }$ , binary $\mathbf { M a s k } _ { i }$ ; prune rate $p$ 1 TotalMomentum $\gets 0$ , TotalNonzero $ 0$ $/ \star$ (a) Calculate mean momentum contributions of all layers. \*/ 2 for $i \gets 0$ to $k$ do 3 MeanMomentum $_ i $ mean(a $\mathbf { b s } ( \mathbf { M } _ { i } \left[ \mathbf { W } _ { i } \neq 0 \right] ) _ { . }$ ) 4 TotalMomentum $\gets$ TotalMomentum $^ +$ MeanMomentumi 5 $\mathrm { N o n } Z \mathrm { e r o } _ { i } = \mathrm { s u m } ( \mathbf { W } _ { i } \neq 0 )$ 6 TotalNonzero TotalNonzero + NonZeroi 7 end 8 for $i \gets 0$ to $k$ do 9 LayerContribution $_ { \cdot i } \gets$ MeanMomentumi/TotalMomentum 10 $p _ { i } \gets$ getPruneRate $( \mathbf { W } _ { i } , p )$ 11 weights by finding the NumRemoveth smallest weight. 12 end 13 for $i \gets 0$ to $k$ do 14 NumRemove $\mathbf { \Sigma } _ { i } \mathrm { N o n Z e r o } _ { i } \cdot p$ 15 PruneThreshold $ \mathrm { s o r t } ( \mathrm { a b s } ( \mathbf W _ { i } [ \mathbf W _ { i } \neq 0 ] )$ ) [NumRemovei] 16 $\mathbf { M a s k } _ { i }$ $[ \mathbf { W } _ { i } <$ PruneThreshold] $ 0$ // Stop gradient flow. 17 $\mathbf { W } _ { i }$ $[ \mathbf { W } _ { i } <$ PruneThreshold] $\gets 0$ 18 end /\* (c) Enable gradient flow of weights with largest momentum magnitude. \*/ 19 for $i \gets 0$ to $k$ do 20 RegrowthThresh $\mathrm { \mathbf { \tau } _ { \mathrm { 1 } } } \mathbf { d } _ { i } \gets \mathrm { \mathbf { \mathrm { s o r t } } } ( \mathbf { \mathrm { a b s } } ( \mathbf { M } _ { i } \left[ \mathbf { W } _ { i } = = 0 \right] )$ ) [NumRegrowthi] 21 $\mathbf { Z } _ { i } = \mathbf { M } _ { i }$ · $\mathbf { W } _ { i } = = 0$ ) // Only consider the momentum of missing weights. 22 $\mathbf { M } \mathbf { a s } \mathbf { k } _ { i } \gets \mathbf { M } \mathbf { a s } \mathbf { k } _ { i }$ | ( $\mathbf { Z } _ { i } >$ RegrowthThreshold ) // | is the boolean OR operator 23 end 24 $p $ decayPruneRate(p) 25 applyMask()
|
parse/train/ByeSYa4KPS/ByeSYa4KPS_content_list.json
ADDED
|
@@ -0,0 +1,1206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "SPARSE NETWORKS FROM SCRATCH: FASTER TRAINING WITHOUT LOSING PERFORMANCE ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
815,
|
| 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": "We demonstrate the possibility of what we call sparse learning: accelerated training of deep neural networks that maintain sparse weights throughout training while achieving dense performance levels. We accomplish this by developing sparse momentum, an algorithm which uses exponentially smoothed gradients (momentum) to identify layers and weights which reduce the error efficiently. Sparse momentum redistributes pruned weights across layers according to the mean momentum magnitude of each layer. Within a layer, sparse momentum grows weights according to the momentum magnitude of zero-valued weights. We demonstrate state-of-the-art sparse performance on MNIST, CIFAR-10, and ImageNet, decreasing the mean error by a relative $8 \\%$ , $15 \\%$ , and $6 \\%$ compared to other sparse algorithms. Furthermore, we show that sparse momentum reliably reproduces dense performance levels while providing up to $5 . 6 1 \\mathrm { x }$ faster training. In our analysis, ablations show that the benefits of momentum redistribution and growth increase with the depth and size of the network. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
267,
|
| 43 |
+
766,
|
| 44 |
+
460
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
487,
|
| 55 |
+
336,
|
| 56 |
+
502
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Current state-of-the-art neural networks need extensive computational resources to be trained and can have capacities of close to one billion connections between neurons (Vaswani et al., 2017; Devlin et al., 2018; Child et al., 2019). One solution that nature found to improve neural network scaling is to use sparsity: the more neurons a brain has, the fewer connections neurons make with each other (Herculano-Houzel et al., 2010). Similarly, for deep neural networks, it has been shown that sparse weight configurations exist which train faster and achieve the same errors as dense networks (Frankle and Carbin, 2019). However, currently, these sparse configurations are found by starting from a dense network, which is pruned and re-trained repeatedly – an expensive procedure. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
520,
|
| 66 |
+
825,
|
| 67 |
+
631
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In this work, we demonstrate the possibility of training sparse networks that rival the performance of their dense counterparts with a single training run – no re-training is required. We start with random initializations and maintain sparse weights throughout training while also speeding up the overall training time. We achieve this by developing sparse momentum, an algorithm which uses the exponentially smoothed gradient of network weights (momentum) as a measure of persistent errors to identify which layers are most efficient at reducing the error and which missing connections between neurons would reduce the error the most. Sparse momentum follows a cycle of (1) pruning weights with small magnitude, (2) redistributing weights across layers according to the mean momentum magnitude of existing weights, and (3) growing new weights to fill in missing connections which have the highest momentum magnitude. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
637,
|
| 77 |
+
825,
|
| 78 |
+
776
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "We compare the performance of sparse momentum to compression algorithms and recent methods that maintain sparse weights throughout training. We demonstrate state-of-the-art sparse performance on MNIST, CIFAR-10, and ImageNet-1k. For CIFAR-10, we determine the percentage of weights needed to reach dense performance levels and find that AlexNet, VGG16, and Wide Residual Networks need between $3 5 . 5 0 \\%$ , $5 . 1 0 \\%$ , and $20 \\%$ weights to reach dense performance levels. We also estimate the overall speedups of training our sparse convolutional networks to dense performance levels on CIFAR-10 for optimal sparse convolution algorithms and naive dense convolution algorithms compared to dense baselines. For sparse convolution, we estimate speedups between $2 . 7 4 \\mathrm { x }$ and $5 . 6 1 \\mathrm { x }$ and for dense convolution speedups between $1 . 0 7 \\mathrm { x }$ and $1 . 3 6 \\mathrm { x }$ . In your analysis, ablations demonstrate that the momentum redistribution and growth components are increasingly important as networks get deeper and larger in size – both are critical for good ImageNet performance. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
784,
|
| 88 |
+
825,
|
| 89 |
+
909
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
103,
|
| 99 |
+
823,
|
| 100 |
+
132
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2 RELATED WORK ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
176,
|
| 110 |
+
151,
|
| 111 |
+
344,
|
| 112 |
+
167
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "From Dense to Sparse Neural Networks: Work that focuses on creating sparse from dense neural networks has an extensive history. Earlier work focused on pruning via second-order derivatives (LeCun et al., 1989; Karnin, 1990; Hassibi and Stork, 1992) and heuristics which ensure efficient training of networks after pruning (Chauvin, 1988; Mozer and Smolensky, 1988; Ishikawa, 1996). Recent work is often motivated by the memory and computational benefits of sparse models that enable the deployment of deep neural networks on mobile and low-energy devices. A very influential paradigm has been the iterative (1) train-dense, (2) prune, (3) re-train cycle introduced by Han et al. (2015). Extensions to this work include: Compressing recurrent neural networks and other models (Narang et al., 2017; Zhu and Gupta, 2018; Dai et al., 2018), continuous pruning and re-training (Guo et al., 2016), joint loss/pruning-cost optimization (Carreira-Perpinan and Idelbayev, 2018), ´ layer-by-layer pruning (Dong et al., 2017), fast-switching growth-pruning cycles (Dai et al., 2017), and soft weight-sharing (Ullrich et al., 2017). These approaches often involve re-training phases which increase the training time. However, since the main goal of this line of work is a compressed model for mobile devices, it is desirable but not an important main goal to reduce the run-time of these procedures. This is contrary to our motivation. Despite the difference in motivation, we include many of these dense-to-sparse compression methods in our comparisons. Other compression algorithms include $L _ { 0 }$ regularization (Louizos et al., 2018), and Bayesian methods (Louizos et al., 2017; Molchanov et al., 2017). For further details, see the survey of Gale et al. (2019). ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
184,
|
| 122 |
+
825,
|
| 123 |
+
434
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Interpretation and Analysis of Sparse Neural Networks: Frankle and Carbin (2019) show that “winning lottery tickets” exist for deep neural networks – sparse initializations which reach similar predictive performance as dense networks and train just as fast. However, finding these winning lottery tickets is computationally expensive and involves multiple prune and re-train cycles starting from a dense network. Followup work concentrated on finding these configurations faster (Frankle et al., 2019; Zhou et al., 2019). In contrast, we reach dense performance levels with a sparse network from random initialization with a single training run while accelerating training. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
440,
|
| 133 |
+
825,
|
| 134 |
+
539
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Sparse Neural Networks Throughout Training: Methods that maintain sparse weights throughout training through a prune-redistribute-regrowth cycle are most closely related to our work. Bellec et al. (2018) introduce DEEP-R, which takes a Bayesian perspective and performs sampling for prune and regrowth decisions – sampling sparse network configurations from a posterior. While theoretically rigorous, this approach is computationally expensive and challenging to apply to large networks and datasets. Sparse evolutionary training (SET) (Mocanu et al., 2018) simplifies prune-regrowth cycles by using heuristics: (1) prune the smallest and most negative weights, (2) grow new weights in random locations. Unlike our work, where many convolutional channels are empty and can be excluded from computation, growing weights randomly fills most convolutional channels and makes it challenging to harness computational speedups during training without specialized sparse algorithms. SET also does not include the cross-layer redistribution of weights which we find to be critical for good performance, as shown in our ablation study. The most closely related work to ours is Dynamic Sparse Reparameterization (DSR) by Mostafa and Wang (2019), which includes the full prune-redistribute-regrowth cycle. However, DSR requires some specific layers to be dense. Our method works in a fully sparse setting and is thus more generally applicable. More distantly related is Single-shot Network Pruning (SNIP) (Lee et al., 2019), which aims to find the best sparse network from a single pruning decision. The goal of SNIP is simplicity, while our goal is maximizing predictive and run-time performance. In our experiments, we compare against all four methods: DEEP-R, SET, DSR, and SNIP. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
545,
|
| 144 |
+
825,
|
| 145 |
+
808
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "3 SPARSE LEARNING ",
|
| 152 |
+
"text_level": 1,
|
| 153 |
+
"bbox": [
|
| 154 |
+
176,
|
| 155 |
+
829,
|
| 156 |
+
364,
|
| 157 |
+
844
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "We define sparse learning to be the training of deep neural networks which maintain sparsity throughout training while matching the predictive performance of dense neural networks. To achieve this, intuitively, we want to find the weights that reduce the error most effectively. This is challenging since most deep neural network can hold trillions of different combinations of sparse weights. Additionally, during training, as feature hierarchies are learned, efficient weights might change gradually from shallow to deep layers. How can we find good sparse configurations? In this work, we follow a divide-and-conquer strategy that is guided by computationally efficient heuristics. We divide sparse learning into the following sub-problems which can be tackled independently: (1) pruning weights, (2) redistribution of weights across layers, and (3) regrowing weights, as defined in more detail below. ",
|
| 164 |
+
"bbox": [
|
| 165 |
+
176,
|
| 166 |
+
861,
|
| 167 |
+
825,
|
| 168 |
+
916
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "",
|
| 175 |
+
"bbox": [
|
| 176 |
+
173,
|
| 177 |
+
103,
|
| 178 |
+
826,
|
| 179 |
+
174
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 2
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "image",
|
| 185 |
+
"img_path": "images/975651e113bf641bb08fd14d8ca3b02bff573688fd39a93af9523d766b61ae3c.jpg",
|
| 186 |
+
"image_caption": [
|
| 187 |
+
"Figure 1: Sparse Momentum is applied at the end of each epoch: (1) take the magnitude of the exponentially smoothed gradient (momentum) of each layer and normalize to 1; (2) for each layer, remove $p = 2 0 \\%$ of the weights with the smallest magnitude; (3) across layers, redistribute the removed weights by adding weights to each layer proportionate to the momentum of each layer; within a layer, add weights starting from those with the largest momentum magnitude. Decay $p$ . "
|
| 188 |
+
],
|
| 189 |
+
"image_footnote": [],
|
| 190 |
+
"bbox": [
|
| 191 |
+
173,
|
| 192 |
+
185,
|
| 193 |
+
825,
|
| 194 |
+
425
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "3.1 SPARSE MOMENTUM ",
|
| 201 |
+
"text_level": 1,
|
| 202 |
+
"bbox": [
|
| 203 |
+
176,
|
| 204 |
+
534,
|
| 205 |
+
361,
|
| 206 |
+
547
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "We use the mean magnitude of momentum $\\mathbf { M } _ { i }$ of existing weights $\\mathbf { W } _ { i }$ in each layer $i$ to estimate how efficient the average weight in each layer is at reducing the overall error. Intuitively, we want to take weights from less efficient layers and redistribute them to weight-efficient layers. The sparse momentum algorithm is depicted in Figure 1. In this section, we first describe the intuition behind sparse momentum and then present a more detailed description of the algorithm. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
559,
|
| 216 |
+
825,
|
| 217 |
+
630
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "The gradient of the error with respect to a weight $\\textstyle \\frac { \\partial \\mathbf { E } } { \\partial \\mathbf { W } }$ yields the directions which reduce the error at the highest rate. However, if we use stochastic gradient descent, most weights of $\\frac { \\partial \\mathbf { E } } { \\partial \\mathbf { W } }$ oscillate between small/large and negative/positive gradients with each mini-batch (Qian, 1999) – a good change for one mini-batch might be a bad change for another. We can reduce oscillations if we take the average gradient over time, thereby finding weights which reduce the error consistently. However, we want to value recent gradients, which are closer to the local minimum, more highly than the distant past. This can be achieved by exponentially smoothing $\\frac { \\partial \\mathbf { E } } { \\partial \\mathbf { W } }$ – the momentum $\\mathbf { M } _ { i }$ : ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
173,
|
| 226 |
+
635,
|
| 227 |
+
825,
|
| 228 |
+
738
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "equation",
|
| 234 |
+
"img_path": "images/d923773238639546dedfb8e6c264a2b9b155e9f488a4eab15c8f1553719b7454.jpg",
|
| 235 |
+
"text": "$$\n\\mathbf { M } _ { i } ^ { t + 1 } = \\alpha \\mathbf { M } _ { i } ^ { t } + ( 1 - \\alpha ) \\frac { \\partial \\mathbf { E } } { \\partial \\mathbf { W } _ { i } } ^ { t } ,\n$$",
|
| 236 |
+
"text_format": "latex",
|
| 237 |
+
"bbox": [
|
| 238 |
+
388,
|
| 239 |
+
744,
|
| 240 |
+
607,
|
| 241 |
+
779
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "where $\\alpha$ is a smoothing factor, $\\mathbf { M } _ { i }$ is the momentum for the weight $\\mathbf { W } _ { i }$ in layer $i$ ; $\\mathbf { M } _ { i }$ is initialized at $t = 0$ with 0. ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
176,
|
| 250 |
+
784,
|
| 251 |
+
821,
|
| 252 |
+
811
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "Momentum is efficient at accelerating the optimization of deep neural networks by identifying weights which reduce the error consistently. Similarly, the aggregated momentum of weights in each layer should reflect how good each layer is at reducing the error consistently. Additionally, the momentum of zero-valued weights – equivalent to missing weights in sparse networks – can be used to estimate how quickly the error would change if these weights would be included in a sparse network. ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
174,
|
| 261 |
+
818,
|
| 262 |
+
825,
|
| 263 |
+
888
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "The details of the full training procedure of our algorithm are shown in Algorithm 1. See Algorithm 2 in the Appendix for a more detailed, source-code-like description of sparse momentum. ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
173,
|
| 272 |
+
895,
|
| 273 |
+
823,
|
| 274 |
+
924
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "table",
|
| 280 |
+
"img_path": "images/84ea8419585d7953fa11f50dca69c2e13baed68f21aebe0b8e7a2e93df19b44f.jpg",
|
| 281 |
+
"table_caption": [
|
| 282 |
+
"Algorithm 1: Sparse momentum algorithm. "
|
| 283 |
+
],
|
| 284 |
+
"table_footnote": [],
|
| 285 |
+
"table_body": "<table><tr><td colspan=\"2\">Data: Layer i to k with: Momentum Mi,Weight Wi, binary Maski prune rate pi, density d 1 fori←O to k do</td></tr><tr><td colspan=\"2\">Wi ← xavierInit(Wi)</td></tr><tr><td>2 3</td><td>Maski ← createMaskForWeight(Wi,d)</td></tr><tr><td>4</td><td>applyMask(Wi,Maski)</td></tr><tr><td>5 end</td><td></td></tr><tr><td colspan=\"2\"></td></tr><tr><td colspan=\"2\">6 for epoch ← O to numEpochs do</td></tr><tr><td>7</td><td>for j←O to numBatches do</td></tr><tr><td>8</td><td>batch ← getBatch(j) E</td></tr><tr><td>9</td><td>W = computeGradients(W, batch)</td></tr><tr><td>10</td><td>UpdateMomentum( 器)</td></tr><tr><td>11</td><td>UpdateWeights(M)</td></tr><tr><td>12</td><td>fori←O to k do</td></tr><tr><td>13</td><td>applyMask(Wi,Maski) end</td></tr><tr><td>14</td><td>end</td></tr><tr><td>15</td><td></td></tr><tr><td>16</td><td>totalMomentum ← getTotalMomentum(M)</td></tr><tr><td>17</td><td>totalPruned ← getTotalPrunedWeights(W, p)</td></tr><tr><td>18</td><td>fori←O to k do</td></tr><tr><td>19</td><td>mi ← getMomentumContribution(Mi,Maski,totalMomentum)</td></tr><tr><td>20</td><td>magnitudePruneWeight(Wi,Maski, Pi)</td></tr><tr><td>21</td><td>regrowWeights(Wi,Maski,mi · totalPruned)</td></tr><tr><td>22</td><td>Pi←decayPrunerate(pi)</td></tr><tr><td>23</td><td>applyMask(Wi,Maski)</td></tr><tr><td>24</td><td>end</td></tr><tr><td colspan=\"2\">25 end</td></tr></table>",
|
| 286 |
+
"bbox": [
|
| 287 |
+
155,
|
| 288 |
+
123,
|
| 289 |
+
805,
|
| 290 |
+
501
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 3
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "Before training, we initialize the network with a certain sparsity $s$ : we initialize the network as usual and then remove a fraction of $s$ weights for each layer. We train the network normally and mask the weights after each gradient update to enforce sparsity. We apply sparse momentum after each epoch. We can break the sparse momentum into three major parts: (a) redistribution of weights, (b) pruning weights, (c) regrowing weights. In step (a), we we take the mean of the element-wise momentum momentum $m _ { i }$ agnitude of all layers . The resulting pr $i$ ortion is the momentum magnitude $\\scriptstyle \\sum _ { i = 0 } ^ { k } m _ { i }$ \nremoved weights multiplied by each layers momentum contribution: $\\mathrm { R e g r o w } _ { i } =$ Total Removed · $m _ { i }$ . In step (b), we prune a proportion of $p$ (prune rate) of the weights with the lowest magnitude for each layer. In step (c), we regrow weights by enabling the gradient flow of zero-valued (missing) weights which have the largest momentum magnitude. ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
173,
|
| 299 |
+
531,
|
| 300 |
+
826,
|
| 301 |
+
700
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 3
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "Additionally, there are two edge-cases which we did not include in Algorithm 1 for clarity. (1) If we allocate more weights to be regrown than is possible for a specific layer, for example regrowing 100 weights for a layer of maximum 10 weights, we redistribute the excess number of weights equally among all other layers. (2) For some layers, our algorithm will converge in that the average weight in layer $i$ has much larger momentum magnitude than weights in other layers, but at the same time, this layer is dense and cannot grow further. We do not want to prune weights from such important layers. Thus, for these layers, we reduce the prune rate $p _ { i }$ proportional to the sparsity: $p _ { i } = \\mathrm { { m i n } } ( p , \\mathrm { { s p a r s i t y } } _ { i } )$ . ",
|
| 308 |
+
"bbox": [
|
| 309 |
+
174,
|
| 310 |
+
707,
|
| 311 |
+
825,
|
| 312 |
+
806
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 3
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "After each epoch, we decay the prune rate in Algorithm 1 in the same way learning rates are decayed. We use a cosine decay schedule that anneals the prune rate to zero on the last epoch. See Appendix A.1 for an analysis on how decay schedule and starting prune rate affects training. ",
|
| 319 |
+
"bbox": [
|
| 320 |
+
176,
|
| 321 |
+
813,
|
| 322 |
+
825,
|
| 323 |
+
854
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 3
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "4 EXPERIMENTAL SETUP ",
|
| 330 |
+
"text_level": 1,
|
| 331 |
+
"bbox": [
|
| 332 |
+
176,
|
| 333 |
+
102,
|
| 334 |
+
398,
|
| 335 |
+
117
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 4
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "For comparison, we follow three different experimental settings, one from Lee et al. (2019) and two settings follow Mostafa and Wang (2019): For MNIST (LeCun, 1998), we use a batch size of 100, decay the learning rate by a factor of 0.1 every 25000 mini-batches. For CIFAR-10 (Krizhevsky and Hinton, 2009), we use standard data augmentations (horizontal flip, and random crop with reflective padding), a batch size of 128, and decay the learning rate every 30000 mini-batches. We train for 100 and 250 epochs on MNIST and CIFAR-10, use a learning rate of 0.1, stochastic gradient descent with Nesterov momentum of $\\alpha = 0 . 9$ , and we use a weight decay of 0.0005. We use a fixed $10 \\%$ of the training data as the validation set and train on the remaining $90 \\%$ . We evaluate the test set performance of our models on the last epoch. For all experiments on MNIST and CIFAR-10, we report the standard errors. Our sample size is generally between 10 and 12 experiments per method/architecture/sparsity level with different random seeds for each experiment. ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
174,
|
| 344 |
+
135,
|
| 345 |
+
825,
|
| 346 |
+
287
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 4
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "We use the modified network architectures of AlexNet, VGG16, and LeNet-5 as introduced by Lee et al. (2019). We consider two different variations of the experimental setup of Mostafa and Wang (2019) for ImageNet and CIFAR-10. The first follows their procedure closely, in that we run the networks in a partially dense setting where the first convolutional layer and downsampling convolutional layers are dense. Additionally, for CIFAR-10 the last fully connected layer is dense. In the second setting, we compare in a fully sparse setting – no layer is dense at the beginning of training. For the fully sparse setting we increase overall number of weights according to the extra parameters in the dense layers and distribute them equally among the network. The parameters in the dense layers make up $5 . 6 3 \\%$ weights of the ResNet-50 network. We refer to these two settings as the partially dense and fully sparse settings. ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
174,
|
| 355 |
+
294,
|
| 356 |
+
825,
|
| 357 |
+
433
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 4
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "On ImageNet (Deng et al., 2009), we use ResNet-50 (He et al., 2016) with a stride of 2 for the $3 \\mathrm { x } 3$ convolution in the bottleneck layers. We use a batch size of 256, input size of 224, momentum of $\\alpha = 0 . 9$ , and weight decay of $1 \\dot { 0 } ^ { - 4 }$ . We train for 100 epochs and report validation set performance after the last epoch. We report results for the fully sparse and the partially dense setting. ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
174,
|
| 366 |
+
439,
|
| 367 |
+
825,
|
| 368 |
+
496
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 4
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "For all experiments, we keep biases and batch normalization weights dense. We tuned the prune rate $p$ and momentum rate $\\alpha$ searching the parameter space $\\{ 0 . 2 , 0 . 3 , \\bar { 0 } . 4 , 0 . 5 , 0 . 6 , 0 . 7 \\}$ and $\\{ 0 . 5 , 0 . 6 , 0 . 7$ $0 . 8 , 0 . 9 , 0 . 9 5 , 0 . 9 9 \\}$ on MNIST and CIFAR-10 and found that $p = 0 . 2$ and $\\alpha = 0 . 9$ work well for most architectures. We use this prune and momentum rate throughout all experiments. ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
174,
|
| 377 |
+
503,
|
| 378 |
+
825,
|
| 379 |
+
559
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 4
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "ImageNet experiments were run on $4 \\mathbf { x }$ RTX 2080 Ti and all other experiments on individual GPUs. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
565,
|
| 389 |
+
823,
|
| 390 |
+
580
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 4
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "Our software builds on PyTorch (Paszke et al., 2017) and is a wrapper for PyTorch neural networks with a modular architecture for growth, redistribution, and pruning algorithms. Currently, no GPUaccelerated libraries that utilize sparse tensors exist, and as such we use masked weights to simulate sparse neural networks. Using our software, any PyTorch neural network can be adapted to be a sparse momentum network with less than 10 lines of code. We will open-source our software along with trained models and individual experimental results.1 ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
587,
|
| 400 |
+
825,
|
| 401 |
+
670
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 4
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "5 RESULTS ",
|
| 408 |
+
"text_level": 1,
|
| 409 |
+
"bbox": [
|
| 410 |
+
174,
|
| 411 |
+
690,
|
| 412 |
+
281,
|
| 413 |
+
707
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 4
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "Results in Figure 2 and Table 1 show a comparison with model compression methods. On MNIST, sparse momentum is the only method that provides consistent strong performance across both LeNet 300-100 and LeNet-5 Caffe models. Soft-weight sharing (Ullrich et al., 2017) and Layer-wise Brain Damage (Dong et al., 2017) are competitive with sparse momentum for one model, but underperforms for the other model. For $1 \\%$ of weights, variational dropout is more effective – but this method also uses dropout for further regularization while we only use weight decay. We can see that sparse momentum achieves equal performance to the LeNet-5 Caffe dense baseline with $8 \\%$ weights. ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
174,
|
| 422 |
+
723,
|
| 423 |
+
825,
|
| 424 |
+
820
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 4
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "On CIFAR-10 in Table 1, we can see that sparse momentum outperforms Single-shot Network Pruning (SNIP) for all models and can achieve the same performance level as a dense model for VGG16-D with just $5 \\%$ of weights. ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
176,
|
| 433 |
+
828,
|
| 434 |
+
823,
|
| 435 |
+
869
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 4
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "image",
|
| 441 |
+
"img_path": "images/9e005205b0e6994a85124aca20160b59043af33e15e75edf770b4775ce008edb.jpg",
|
| 442 |
+
"image_caption": [
|
| 443 |
+
"Figure 2: Comparisons against compression methods on MNIST with $9 5 \\%$ confidence intervals. "
|
| 444 |
+
],
|
| 445 |
+
"image_footnote": [],
|
| 446 |
+
"bbox": [
|
| 447 |
+
173,
|
| 448 |
+
99,
|
| 449 |
+
813,
|
| 450 |
+
290
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 5
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "Figure 3 and Table 2 show comparisons of sparse learning methods on MNIST and CIFAR that follows the experimental procedure of Mostafa and Wang (2019) where some selected layers are dense. For LeNet 300-100 on MNIST, we can see that sparse momentum outperforms all other methods. For CIFAR-10, sparse momentum is better than dynamic sparse in 4 out of 5 cases. However, in general, the confidence intervals for most methods overlap – this particular setup for CIFAR-10 with specifically selected dense layers seems to be too easy to determine difference in performance between methods and we do not recommend this setup for future work. Table 2 shows that sparse momentum outperforms all other methods on ImageNet (ILSVRC2012) for the Top-1 accuracy measure. Dynamic sparse is better for the Top-5 accuracy with $20 \\%$ weights. In the fully sparse setting, sparse momentum remains competitive and seems to find a weight distribution which works equally well for the $10 \\%$ weights case. For $20 \\%$ weights, the performance decreases slightly. ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
173,
|
| 459 |
+
337,
|
| 460 |
+
825,
|
| 461 |
+
491
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 5
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "image",
|
| 467 |
+
"img_path": "images/9dd88284b32d232481d4be4d6a060b725bbcbf77df1fa6d28d3b3fe0b839a50c.jpg",
|
| 468 |
+
"image_caption": [
|
| 469 |
+
"Figure 3: Test set accuracy with $9 5 \\%$ confidence intervals on MNIST and CIFAR at varying sparsity levels for LeNet 300-100 and WRN 28-2. "
|
| 470 |
+
],
|
| 471 |
+
"image_footnote": [],
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
502,
|
| 475 |
+
815,
|
| 476 |
+
691
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 5
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "5.1 SPEEDUPS AND WEIGHTS NEEDED FOR DENSE PERFORMANCE LEVELS ",
|
| 483 |
+
"text_level": 1,
|
| 484 |
+
"bbox": [
|
| 485 |
+
174,
|
| 486 |
+
751,
|
| 487 |
+
712,
|
| 488 |
+
766
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 5
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "We analyzed how many weights are needed to achieve dense performance for our networks on CIFAR-10 and how much faster would we able to train such a sparse network compared to a dense one. We do this analysis by increasing the number of weights by $5 \\%$ until the sparse network trained with sparse momentum reaches a performance level that overlaps with a $9 5 \\%$ confidence interval of the dense performance. We then measure the speedup of the model. For each network-density combination we perform ten training runs with different random seeds to calculate the mean test error and its standard error. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
173,
|
| 497 |
+
777,
|
| 498 |
+
825,
|
| 499 |
+
875
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 5
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "To estimated the speedups that could be obtained using sparse momentum for these dense networks we follow two approaches: Theoretical speedups for sparse convolution algorithms which are proportional to reductions in FLOPS and practical speedups using dense convolutional algorithms which are proportional to empty convolutional channels. For our sparse convolution estimates, we calculate the FLOPS saved for each convolution operation throughout training as well as the runtime for each convolution. To receive the maximum speedups for sparse convolution, we then scale the runtime for each convolution operation by the FLOPS saved. While a fast sparse convolution algorithm for coarse block structures exist for GPUs (Gray et al., 2017), optimal sparse convolution algorithms for fine-grained patterns do not and need to be developed to enable these speedups. ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
176,
|
| 508 |
+
882,
|
| 509 |
+
823,
|
| 510 |
+
924
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 5
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "table",
|
| 516 |
+
"img_path": "images/b7d4320ae9a6727fc4baf1e048755e25eb23692cb1889a49a1d9cc5ed4c96675.jpg",
|
| 517 |
+
"table_caption": [
|
| 518 |
+
"Table 1: CIFAR-10 test set error ( $\\pm$ standard error) for dense baselines, Sparse Momentum and SNIP. "
|
| 519 |
+
],
|
| 520 |
+
"table_footnote": [
|
| 521 |
+
"\\* $9 5 \\%$ confidence intervals overlap with dense model. Table 2: Results for ResNet-50 on ImageNet. "
|
| 522 |
+
],
|
| 523 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">Sparse Error (%)</td><td rowspan=\"2\">Weights (%)</td></tr><tr><td>Dense Error (%)</td><td>SNIP</td><td>Momentum</td></tr><tr><td>Model AlexNet-s</td><td>12.95±0.056</td><td>14.99</td><td>14.27±0.123</td><td>10</td></tr><tr><td>AlexNet-b</td><td>12.85±0.068</td><td>14.50</td><td>13.56±0.094</td><td>10</td></tr><tr><td>VGG16-C</td><td>6.49±0.038</td><td>7.27</td><td>7.00±0.054</td><td>5</td></tr><tr><td>VGG16-D</td><td>6.59±0.050</td><td>7.09</td><td>6.69±0.049*</td><td>5</td></tr><tr><td>VGG16-like</td><td>6.50±0.054</td><td>8.00</td><td>7.00±0.077</td><td>3</td></tr><tr><td>WRN-16-8</td><td>4.57±0.022</td><td>6.63</td><td>5.62±0.056</td><td>5</td></tr><tr><td>WRN-16-10</td><td>4.45±0.040</td><td>6.43</td><td>5.24±0.052</td><td>5</td></tr><tr><td>WRN-22-8</td><td>4.26±0.032</td><td>5.85</td><td>4.93±0.056</td><td>5</td></tr></table>",
|
| 524 |
+
"bbox": [
|
| 525 |
+
205,
|
| 526 |
+
127,
|
| 527 |
+
789,
|
| 528 |
+
299
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 6
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "table",
|
| 534 |
+
"img_path": "images/c521b62d081c9425ebf4cc3eeceddb8144a3f5dfc758ff229acb9e4e71aac298.jpg",
|
| 535 |
+
"table_caption": [],
|
| 536 |
+
"table_footnote": [],
|
| 537 |
+
"table_body": "<table><tr><td colspan=\"3\"></td><td colspan=\"3\">Accuracy (%)</td></tr><tr><td colspan=\"2\">Model</td><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td colspan=\"2\">Dense ResNet-50 (He et al., 2016)</td><td>74.9</td><td>92.4</td><td>74.9</td><td>92.4</td></tr><tr><td colspan=\"2\">Fully Sparse</td><td>10%</td><td>weights</td><td>20%</td><td>Weights</td></tr><tr><td rowspan=\"3\">DeepR (Bellec et al., 2018) SET (Mocanu et al., 2018)</td><td>X</td><td>70.2</td><td>90.0</td><td>71.7</td><td>90.6</td></tr><tr><td>X</td><td>70.4</td><td>90.1</td><td>72.6</td><td>91.2</td></tr><tr><td>Dynamic Sparse (Mostafa and Wang,2019) X</td><td>71.6</td><td>90.5</td><td>73.3</td><td>92.4</td></tr><tr><td rowspan=\"2\">Sparse momentum</td><td></td><td>72.3</td><td>91.0</td><td>74.2</td><td>91.9</td></tr><tr><td>×</td><td>72.3</td><td>91.0</td><td>73.8</td><td>91.8</td></tr></table>",
|
| 538 |
+
"bbox": [
|
| 539 |
+
176,
|
| 540 |
+
340,
|
| 541 |
+
818,
|
| 542 |
+
505
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 6
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "",
|
| 549 |
+
"bbox": [
|
| 550 |
+
173,
|
| 551 |
+
516,
|
| 552 |
+
825,
|
| 553 |
+
601
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 6
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "The second method measures practical speedups that can be obtained with naive, dense convolution algorithms which are available today. Dense convolution is unsuitable for the training of sparse networks but we include this measurement to highlight the algorithmic gap that exists to efficiently train sparse networks. For dense convolution algorithms, we estimate speedups as follows: If a convolutional channel consists entirely of zero-valued weights we can remove these channels from the computation without changing the outputs and obtain speedups. To receive the speedups for dense convolution we scale each convolution operation by the proportion of empty channels. Using these measures, we estimated the speedups for our models on CIFAR-10. The resulting speedups and dense performance levels can be seen in Table 3. ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
174,
|
| 562 |
+
607,
|
| 563 |
+
825,
|
| 564 |
+
732
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 6
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "We see that VGG16 networks can achieve dense performance with relatively few weights while AlexNet requires the most weights. Wide Residual Networks need an intermediate level of weights. Despite the large number of weights for AlexNet, sparse momentum still yields large speedups around $3 . 0 \\mathbf { x }$ for sparse convolution. Sparse convolution speedups are particularly pronounced for Wide Residual Networks (WRN) with speedups as high as $5 . 6 1 \\mathrm { x }$ . Dense convolution speedups are much lower and are mostly dependent on width, with wider networks receiving larger speedups. These results highlight the importance to develop optimized algorithms for sparse convolution. ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
739,
|
| 574 |
+
825,
|
| 575 |
+
837
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 6
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "Beyond speedups, we also measured the overhead of our sparse momentum procedure to be equivalent of a slowdown to $0 . 9 7 3 \\mathrm { x } \\pm 0 . 0 2 9 \\mathrm { x }$ compared to a dense baseline. ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
174,
|
| 584 |
+
843,
|
| 585 |
+
823,
|
| 586 |
+
872
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 6
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "table",
|
| 592 |
+
"img_path": "images/a16d5885c486f8ca528873edd7b590b9fa2c252a603b911bb72dfb9e5a45722f.jpg",
|
| 593 |
+
"table_caption": [
|
| 594 |
+
"Table 3: Dense performance equivalents and speedups for sparse networks on CIFAR-10. "
|
| 595 |
+
],
|
| 596 |
+
"table_footnote": [],
|
| 597 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Weights (%)</td><td rowspan=\"2\">Error(%)</td><td colspan=\"2\"> Speedups</td></tr><tr><td>Dense Convolution (Empty Channels)</td><td>Sparse Convolution (FLOPS Reduction)</td></tr><tr><td>AlexNet-s</td><td>50</td><td>13.15±0.065</td><td>1.31x</td><td>3.01x</td></tr><tr><td>AlexNet-b</td><td>35</td><td>13.00±0.065</td><td>1.21x</td><td>2.74x</td></tr><tr><td>VGG16-C</td><td>10</td><td>6.64±0.040</td><td>1.32x</td><td>3.85x</td></tr><tr><td>VGG16-D</td><td>5</td><td>6.49±0.045</td><td>1.36x</td><td>3.51x</td></tr><tr><td>VGG16-like</td><td>5</td><td>6.46±0.036</td><td>1.32x</td><td>3.48x</td></tr><tr><td>WRN 16-8</td><td>30</td><td>4.72±0.051</td><td>1.07x</td><td>4.59x</td></tr><tr><td>WRN 16-10</td><td>25</td><td>4.56±0.037</td><td>1.07x</td><td>4.41x</td></tr><tr><td>WRN 22-8</td><td>20</td><td>4.40±0.037</td><td>1.21x</td><td>5.61x</td></tr></table>",
|
| 598 |
+
"bbox": [
|
| 599 |
+
196,
|
| 600 |
+
127,
|
| 601 |
+
802,
|
| 602 |
+
315
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 7
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "6 ANALYSIS ",
|
| 609 |
+
"text_level": 1,
|
| 610 |
+
"bbox": [
|
| 611 |
+
173,
|
| 612 |
+
337,
|
| 613 |
+
292,
|
| 614 |
+
352
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 7
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "6.1 ABLATION ANALYSIS ",
|
| 621 |
+
"text_level": 1,
|
| 622 |
+
"bbox": [
|
| 623 |
+
174,
|
| 624 |
+
369,
|
| 625 |
+
364,
|
| 626 |
+
383
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 7
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "Our method differs from previous methods like SET and Dynamic Sparse Reparameterization in two ways: (1) redistribution of weights and (2) growth of weights. To understand the performance contribution of these components, we perform ablations on CIFAR-10 for VGG16-D with $5 \\%$ weights, MNIST for LeNet 300-100 and LeNet-5 Caffe with $5 \\%$ weights, and ImageNet for ResNet-50 with $10 \\%$ weights in the fully sparse setting. The results can be seen in Table 4. ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
174,
|
| 635 |
+
395,
|
| 636 |
+
825,
|
| 637 |
+
465
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 7
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "Redistribution: Redistributing weights according to the momentum magnitude becomes increasingly important the larger a network is as can be seen from the steady increases in error from the small LeNet 300-100 to the large ResNet-50 when no momentum redistribution is used. Increased test error is particularly pronounced for ImageNet where the Top-1 error increases by $3 . 4 2 \\%$ to $9 . 7 1 \\%$ if no redistribution is used. ",
|
| 644 |
+
"bbox": [
|
| 645 |
+
173,
|
| 646 |
+
472,
|
| 647 |
+
825,
|
| 648 |
+
541
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 7
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "Momentum growth: Momentum growth improves performance over random growth by a large margin for ResNet-50 on ImageNet, but for smaller networks the combination of redistribution and random growth seems to be sufficient to find good weights. Random growth without redistribution, however, cannot find good weights. These results suggest that with increasing network size a random search strategy becomes inefficient and smarter growth algorithms are required for good performance. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
174,
|
| 657 |
+
549,
|
| 658 |
+
825,
|
| 659 |
+
618
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 7
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "table",
|
| 665 |
+
"img_path": "images/a7629ab5814884db42b5b021d5c2eb89b18d3b792f6a893b6bf56a4216ed1d94.jpg",
|
| 666 |
+
"table_caption": [
|
| 667 |
+
"Table 4: Ablation analysis for different growth and redistribution algorithm combinations for LeNet 300-100 and LeNet-5 Caffe on MNIST, VGG16-D on CIFAR-10, and ResNet-50 on ImageNet. "
|
| 668 |
+
],
|
| 669 |
+
"table_footnote": [],
|
| 670 |
+
"table_body": "<table><tr><td rowspan=\"2\">Redistribution</td><td rowspan=\"2\">Growth</td><td colspan=\"4\">Test error in %</td></tr><tr><td>LeNet 300-100</td><td>LeNet-5 Caffe</td><td>VGG16-D</td><td>ResNet-50</td></tr><tr><td>momentum</td><td>momentum</td><td>1.53±0.020</td><td>0.69±0.021</td><td>6.69±0.049</td><td>27.07</td></tr><tr><td>momentum</td><td>random</td><td>+0.07±0.022</td><td>-0.05±0.011</td><td>-0.19±0.040</td><td>+7.29</td></tr><tr><td>None</td><td> momentum</td><td>+0.01±0.018</td><td>+0.32±0.071</td><td>+1.54±0.101</td><td>+3.42</td></tr><tr><td>None</td><td>random</td><td>+0.11±0.020</td><td>+0.13±0.013</td><td>+1.49±0.147</td><td>+9.71</td></tr></table>",
|
| 671 |
+
"bbox": [
|
| 672 |
+
176,
|
| 673 |
+
670,
|
| 674 |
+
821,
|
| 675 |
+
784
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 7
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "7 CONCLUSION AND FUTURE WORK ",
|
| 682 |
+
"text_level": 1,
|
| 683 |
+
"bbox": [
|
| 684 |
+
174,
|
| 685 |
+
808,
|
| 686 |
+
495,
|
| 687 |
+
824
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 7
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "We presented our sparse learning algorithm, sparse momentum, which uses the mean magnitude of momentum to grow and redistribute weights. We showed that sparse momentum outperforms other sparse algorithms on MNIST, CIFAR-10, and ImageNet. Additionally, sparse momentum can rival dense neural network performance while accelerating training. Our analysis of speedups highlights the need for research into specialized sparse convolution and sparse matrix multiplication algorithms to enable the benefits of sparse networks. ",
|
| 694 |
+
"bbox": [
|
| 695 |
+
173,
|
| 696 |
+
839,
|
| 697 |
+
825,
|
| 698 |
+
924
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 7
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "REFERENCES ",
|
| 705 |
+
"text_level": 1,
|
| 706 |
+
"bbox": [
|
| 707 |
+
176,
|
| 708 |
+
102,
|
| 709 |
+
285,
|
| 710 |
+
118
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 8
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "Bellec, G., Kappel, D., Maass, W., and Legenstein, R. A. (2018). Deep rewiring: Training very sparse deep networks. CoRR, abs/1711.05136. ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
171,
|
| 719 |
+
133,
|
| 720 |
+
823,
|
| 721 |
+
162
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 8
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "Carreira-Perpinan, M. A. and Idelbayev, Y. (2018). learning-compression algorithms for neural net ´ pruning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 8532–8541. ",
|
| 728 |
+
"bbox": [
|
| 729 |
+
173,
|
| 730 |
+
171,
|
| 731 |
+
823,
|
| 732 |
+
214
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 8
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "Chauvin, Y. (1988). A back-propagation algorithm with optimal use of hidden units. In NIPS. ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
173,
|
| 741 |
+
223,
|
| 742 |
+
789,
|
| 743 |
+
239
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 8
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "Child, R., Gray, S., Radford, A., and Sutskever, I. (2019). Generating long sequences with sparse transformers. CoRR, abs/1904.10509. ",
|
| 750 |
+
"bbox": [
|
| 751 |
+
174,
|
| 752 |
+
247,
|
| 753 |
+
823,
|
| 754 |
+
276
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 8
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "text",
|
| 760 |
+
"text": "Dai, X., Yin, H., and Jha, N. K. (2017). Nest: A neural network synthesis tool based on a grow-andprune paradigm. CoRR, abs/1711.02017. ",
|
| 761 |
+
"bbox": [
|
| 762 |
+
173,
|
| 763 |
+
285,
|
| 764 |
+
825,
|
| 765 |
+
314
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 8
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "Dai, X., Yin, H., and Jha, N. K. (2018). Grow and prune compact, fast, and accurate lstms. CoRR, abs/1805.11797. ",
|
| 772 |
+
"bbox": [
|
| 773 |
+
173,
|
| 774 |
+
321,
|
| 775 |
+
825,
|
| 776 |
+
352
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 8
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. (2009). Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee. ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
171,
|
| 785 |
+
359,
|
| 786 |
+
825,
|
| 787 |
+
404
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 8
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. CoRR, abs/1810.04805. ",
|
| 794 |
+
"bbox": [
|
| 795 |
+
174,
|
| 796 |
+
411,
|
| 797 |
+
825,
|
| 798 |
+
441
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 8
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "Dong, X., Chen, S., and Pan, S. J. (2017). Learning to prune deep neural networks via layer-wise optimal brain surgeon. In NIPS. ",
|
| 805 |
+
"bbox": [
|
| 806 |
+
174,
|
| 807 |
+
449,
|
| 808 |
+
823,
|
| 809 |
+
479
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 8
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "text",
|
| 815 |
+
"text": "Frankle, J. and Carbin, M. (2019). The lottery ticket hypothesis: Finding sparse, trainable neural networks. In ICLR 2019. ",
|
| 816 |
+
"bbox": [
|
| 817 |
+
173,
|
| 818 |
+
487,
|
| 819 |
+
825,
|
| 820 |
+
517
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 8
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "Frankle, J., Dziugaite, G. K., Roy, D. M., and Carbin, M. (2019). The lottery ticket hypothesis at scale. CoRR, abs/1903.01611. ",
|
| 827 |
+
"bbox": [
|
| 828 |
+
173,
|
| 829 |
+
523,
|
| 830 |
+
825,
|
| 831 |
+
554
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 8
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "Gale, T., Elsen, E., and Hooker, S. (2019). The state of sparsity in deep neural networks. CoRR, abs/1902.09574. ",
|
| 838 |
+
"bbox": [
|
| 839 |
+
173,
|
| 840 |
+
563,
|
| 841 |
+
825,
|
| 842 |
+
592
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 8
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "text",
|
| 848 |
+
"text": "Gray, S., Radford, A., and Kingma, D. P. (2017). Gpu kernels for block-sparse weights. ",
|
| 849 |
+
"bbox": [
|
| 850 |
+
171,
|
| 851 |
+
599,
|
| 852 |
+
748,
|
| 853 |
+
617
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 8
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "Guo, Y., Yao, A., and Chen, Y. (2016). Dynamic network surgery for efficient dnns. In Advances In Neural Information Processing Systems, pages 1379–1387. ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
176,
|
| 862 |
+
625,
|
| 863 |
+
826,
|
| 864 |
+
655
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 8
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "Han, S., Pool, J., Tran, J., and Dally, W. (2015). Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pages 1135–1143. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
173,
|
| 873 |
+
661,
|
| 874 |
+
823,
|
| 875 |
+
693
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 8
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "Hassibi, B. and Stork, D. G. (1992). Second order derivatives for network pruning: Optimal brain surgeon. In NIPS. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
173,
|
| 884 |
+
699,
|
| 885 |
+
823,
|
| 886 |
+
729
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 8
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
173,
|
| 895 |
+
737,
|
| 896 |
+
825,
|
| 897 |
+
767
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "Herculano-Houzel, S., Mota, B., Wong, P., and Kaas, J. H. (2010). Connectivity-driven white matter scaling and folding in primate cerebral cortex. Proceedings of the National Academy of Sciences of the United States of America, 107 44:19008–13. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
174,
|
| 906 |
+
775,
|
| 907 |
+
825,
|
| 908 |
+
819
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 8
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Ishikawa, M. (1996). Structural learning with forgetting. Neural Networks, 9:509–521. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
173,
|
| 917 |
+
827,
|
| 918 |
+
743,
|
| 919 |
+
843
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 8
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Karnin, E. D. (1990). A simple procedure for pruning back-propagation trained neural networks. IEEE transactions on neural networks, 1 2:239–42. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
173,
|
| 928 |
+
851,
|
| 929 |
+
825,
|
| 930 |
+
881
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 8
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Krizhevsky, A. and Hinton, G. (2009). Learning multiple layers of features from tiny images. Technical report, Citeseer. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
171,
|
| 939 |
+
888,
|
| 940 |
+
825,
|
| 941 |
+
919
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 8
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "LeCun, Y. (1998). Gradient-based learning applied to document recognition. \nLeCun, Y., Denker, J. S., and Solla, S. A. (1989). Optimal brain damage. In NIPS. \nLee, N., Ajanthan, T., and Torr, P. H. S. (2019). Snip: Single-shot network pruning based on connection sensitivity. In ICLR 2019. \nLouizos, C., Ullrich, K., and Welling, M. (2017). Bayesian compression for deep learning. In Advances in Neural Information Processing Systems, pages 3288–3298. \nLouizos, C., Welling, M., and Kingma, D. P. (2018). Learning sparse neural networks through $l _ { 0 }$ regularization. CoRR, abs/1712.01312. \nMocanu, D. C., Mocanu, E., Stone, P., Nguyen, P. H., Gibescu, M., and Liotta, A. (2018). Scalable training of artificial neural networks with adaptive sparse connectivity inspired by network science. Nature communications, 9(1):2383. \nMolchanov, D., Ashukha, A., and Vetrov, D. P. (2017). Variational dropout sparsifies deep neural networks. In International Conference on MachineLearning (ICML). \nMostafa, H. and Wang, X. (2019). Parameter efficient training of deep convolutional neural networks by dynamic sparse reparameterization. In International Conference on Machine Learning (ICML). \nMozer, M. C. and Smolensky, P. (1988). Skeletonization: A technique for trimming the fat from a network via relevance assessment. In NIPS. \nNarang, S., Diamos, G. F., Sengupta, S., and Elsen, E. (2017). Exploring sparsity in recurrent neural networks. CoRR, abs/1704.05119. \nPaszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmaison, A., Antiga, L., and Lerer, A. (2017). Automatic differentiation in pytorch. \nQian, N. (1999). On the momentum term in gradient descent learning algorithms. Neural networks : the official journal of the International Neural Network Society, 12 1:145–151. \nSimonyan, K., Vedaldi, A., and Zisserman, A. (2013). Deep inside convolutional networks: Visualising image classification models and saliency maps. CoRR, abs/1312.6034. \nSpringenberg, J. T., Dosovitskiy, A., Brox, T., and Riedmiller, M. A. (2014). Striving for simplicity: The all convolutional net. CoRR, abs/1412.6806. \nUllrich, K., Meeds, E., and Welling, M. (2017). Soft weight-sharing for neural network compression. CoRR, abs/1702.04008. \nVaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. (2017). Attention is all you need. In Advances in neural information processing systems, pages 5998–6008. \nZeiler, M. D. and Fergus, R. (2014). Visualizing and understanding convolutional networks. In ECCV. \nZhou, H., Lan, J., Liu, R., and Yosinski, J. (2019). Deconstructing lottery tickets: Zeros, signs, and the supermask. arXiv preprint arXiv:1905.01067. \nZhu, M. and Gupta, S. (2018). To prune, or not to prune: Exploring the efficacy of pruning for model compression. CoRR, abs/1710.01878. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
171,
|
| 950 |
+
92,
|
| 951 |
+
830,
|
| 952 |
+
818
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 9
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "A APPENDIX ",
|
| 959 |
+
"text_level": 1,
|
| 960 |
+
"bbox": [
|
| 961 |
+
176,
|
| 962 |
+
102,
|
| 963 |
+
297,
|
| 964 |
+
117
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 10
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "A.1 SENSITIVITY ANALYSIS ",
|
| 971 |
+
"text_level": 1,
|
| 972 |
+
"bbox": [
|
| 973 |
+
176,
|
| 974 |
+
136,
|
| 975 |
+
383,
|
| 976 |
+
150
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 10
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Sparse momentum depends on two hyperparameters: Prune rate and momentum. In this section, we study the sensitivity of the accuracy of our models as we vary the prune rate and momentum. Since momentum parameter has an additional effect on the optimization procedure, we run control experiments for fully dense networks thus disentangling the difference in accuracy accounted by our sparse momentum procedure. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
174,
|
| 985 |
+
161,
|
| 986 |
+
825,
|
| 987 |
+
231
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 10
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "We run experiments for VGG-D and AlexNet-s with $5 \\%$ and $10 \\%$ weights on CIFAR-10. Results can be seen in Figure 4. We see that sparse momentum is highly robust to the choice of prune rate with results barely deviating when the prune rate is in the interval between 0.2 to 0.4. However, we can see a gradual linear trend that indicates that smaller prune rates work slightly better than larger ones. Cosine and linear prune rate annealing schedules do equally well. For momentum, confidence intervals for values between 0.7 and 0.9 overlap indicating that our procedure is robust to the choice of the momentum parameter. Sparse momentum is more sensitive to low momentum values $( \\le 0 . 6 )$ while it is less sensitive for large momentum values (0.95) compared to a dense control. Additionally, we test the null hypothesis that sparse momentum is equally sensitive to deviations from a momentum parameter value of 0.9 as a dense control. The normality assumption was violated and data transformations did not help. Thus we use the non-parametric Wilcoxon Signed-rank Test. We find no evidence that sparse momentum is more sensitive to the momentum parameter than a dense control, $W ( 1 6 ) = 2 2 . 0 , p = 0 . 5 8$ . Overall, we conclude that sparse momentum is highly robust to deviations of the pruning schedule and the momentum and prune rate parameters. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
173,
|
| 996 |
+
238,
|
| 997 |
+
826,
|
| 998 |
+
433
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 10
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "image",
|
| 1004 |
+
"img_path": "images/7117fc64f9af6e4603deca5ce68e941dd833601ab85ffdf8166fe5180fae3c84.jpg",
|
| 1005 |
+
"image_caption": [
|
| 1006 |
+
"Figure 4: Parameter sensitivity analysis for prune rate and momentum with $9 5 \\%$ confidence intervals. "
|
| 1007 |
+
],
|
| 1008 |
+
"image_footnote": [],
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
171,
|
| 1011 |
+
445,
|
| 1012 |
+
812,
|
| 1013 |
+
633
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 10
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "B ADDITIONAL ANALYSIS ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
176,
|
| 1022 |
+
693,
|
| 1023 |
+
408,
|
| 1024 |
+
708
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 10
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "B.1 DENSE VS SPARSE FEATURES ",
|
| 1031 |
+
"text_level": 1,
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
176,
|
| 1034 |
+
726,
|
| 1035 |
+
421,
|
| 1036 |
+
741
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 10
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "Are there differences between feature representations learned by dense and sparse networks? The answer to this question can help with the design of sparse learning algorithms and sparse architectures. In this section, we look at the features of dense and sparse networks and how specialized these features are for certain classes. We test difference between sparse and dense network features statistically. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
174,
|
| 1045 |
+
752,
|
| 1046 |
+
825,
|
| 1047 |
+
808
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 10
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "For feature visualization, it is common to backpropagate activity to the inputs to be able to visualize what these activities represent (Simonyan et al., 2013; Zeiler and Fergus, 2014; Springenberg et al., 2014). However, in our case, we are more interested in the overall distribution of features for each layer within our network, and as such we want to look at the magnitude of the activity in a channel since – unlike feature visualization – we are not just interested in feature detectors but also discriminators. For example, a face detector would induce positive activity for a ‘person’ class but might produce negative activity for a ‘mushroom’ class. Both kinds of activity are useful. ",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
174,
|
| 1056 |
+
814,
|
| 1057 |
+
825,
|
| 1058 |
+
912
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 10
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "With this reasoning, we develop the following convolutional channel-activation analysis: (1) pass the entire training set through the network and aggregate the magnitude of the activation in each convolutional channel separately for each class; (2) normalize across classes to receive for each channel the proportion of activation which is due to each class; (3) look at the maximum proportion of each channel as a measure of class specialization: a maximum proportion of $1 / N _ { c }$ where $N _ { c }$ is the number of classes indicates that the channel is equally active for all classes in the training set. The higher the proportion deviates from this value, the more is a channel specialized for a particular class. ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
173,
|
| 1067 |
+
103,
|
| 1068 |
+
825,
|
| 1069 |
+
202
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 11
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "We obtain results for AlexNet-s, VGG16-D, and WRN 28-2 on CIFAR-10 and use as many weights as needed to reach dense performance levels. We then test the null hypothesis, that there are no differences in class specialization between features from sparse networks and dense networks. Equal variance assumptions was violated for VGG-D and normality was violated for WRN-28-2, while all assumptions hold for AlexNet-s. For consistency reasons we perform non-parametric Kruskal-Wallis one-way analysis of variance tests for all networks. For AlexNet-s, we find some evidence that features of sparse networks have lower class specialization compared to dense networks $\\chi ^ { 2 } ( 5 ) = 4 . 4 3 , p = 0 . 0 3 \\bar { 5 }$ , for VGG-D and WRN-28-2 we find strong evidence that features of sparse networks have lower class specialization than dense networks $\\bar { \\chi } ^ { 2 } ( 1 3 ) = 2 8 . 1 , p < 0 . 0 0 1$ , $\\bar { \\chi ^ { 2 } } ( 1 2 ) = 3 6 . 2 , p < 0 . 0 0 1$ . Thus we reject the null hypothesis. These results increase our confidence that sparse networks learn features which have lower class specialization than dense networks. ",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
174,
|
| 1078 |
+
207,
|
| 1079 |
+
825,
|
| 1080 |
+
361
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 11
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "Plots of the distributions of sparse vs. dense features for AlexNet-s, VGG16-D, and WRN 28-2 on CIFAR-10 in Figure 5. These plots were selected to highlight the difference in distribution in the first layers and last layers of each network. We see the convolutional channels in sparse networks have lower class-specialization indicating they learn features which are useful for a broader range of classes compared to dense networks. This trend intensifies with depth. ",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
174,
|
| 1089 |
+
367,
|
| 1090 |
+
825,
|
| 1091 |
+
438
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 11
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "Overall, we conclude that sparse networks might be able to rival dense networks by learning more general features that have lower class specialization. ",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
174,
|
| 1100 |
+
444,
|
| 1101 |
+
821,
|
| 1102 |
+
473
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 11
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "C FURTHER RESULTS ",
|
| 1109 |
+
"text_level": 1,
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
176,
|
| 1112 |
+
492,
|
| 1113 |
+
369,
|
| 1114 |
+
508
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 11
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "C.1 TUNED RESNET-50 ON IMAGENET ",
|
| 1121 |
+
"text_level": 1,
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
176,
|
| 1124 |
+
526,
|
| 1125 |
+
459,
|
| 1126 |
+
540
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 11
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "We also tried a better version of the ResNet-50 in the fully sparse setting for which we use a cosine learning rate schedule, label smoothing of 0.9, and we warmup the learning rate. The results can be seen in Table 5. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
174,
|
| 1135 |
+
551,
|
| 1136 |
+
825,
|
| 1137 |
+
593
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 11
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "table",
|
| 1143 |
+
"img_path": "images/6b6c258922727fe066ff059fa1a51bac2c91b97e02d9d15f0955ed9165ff0d3a.jpg",
|
| 1144 |
+
"table_caption": [
|
| 1145 |
+
"Table 5: Fully sparse ImageNet results. "
|
| 1146 |
+
],
|
| 1147 |
+
"table_footnote": [],
|
| 1148 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Accuracy (%)</td></tr><tr><td>Weights (%) Top-1</td><td>Top-5</td></tr><tr><td>Tuned ResNet-50</td><td>100</td><td>77.0 93.5</td></tr><tr><td rowspan=\"3\">Sparse momentum</td><td>10</td><td>72.9 91.5</td></tr><tr><td>20</td><td>74.9 92.5</td></tr><tr><td>30</td><td>75.9 92.9</td></tr></table>",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
315,
|
| 1151 |
+
630,
|
| 1152 |
+
678,
|
| 1153 |
+
741
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 11
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "D DETAILED SPARSE MOMENTUM ALGORITHM ",
|
| 1160 |
+
"text_level": 1,
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
173,
|
| 1163 |
+
757,
|
| 1164 |
+
588,
|
| 1165 |
+
773
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 11
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "For a detailed NumPy-style algorithmic description of sparse momentum see Algorithm 2. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
169,
|
| 1174 |
+
789,
|
| 1175 |
+
764,
|
| 1176 |
+
804
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 11
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "image",
|
| 1182 |
+
"img_path": "images/3f901c2978fb2659c764fa4bb466027b202c3cf82103c11c60169e22f18339dd.jpg",
|
| 1183 |
+
"image_caption": [
|
| 1184 |
+
"Figure 5: Dense vs sparse histograms of class-specialization for convolutional channels on CIFAR-10. A class-specialization of 0.5 indicates that $50 \\%$ of the overall activity comes from a single class. "
|
| 1185 |
+
],
|
| 1186 |
+
"image_footnote": [],
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
191,
|
| 1189 |
+
237,
|
| 1190 |
+
799,
|
| 1191 |
+
747
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 12
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Algorithm 2: Sparse momentum algorithm in NumPy notation. Data: Layer i to k with: Momentum $\\mathbf { M } _ { i }$ , Weight $\\overline { { \\mathbf { W } _ { \\mathbf { i } } } }$ , binary $\\mathbf { M a s k } _ { i }$ ; prune rate $p$ 1 TotalMomentum $\\gets 0$ , TotalNonzero $ 0$ $/ \\star$ (a) Calculate mean momentum contributions of all layers. \\*/ 2 for $i \\gets 0$ to $k$ do 3 MeanMomentum $_ i $ mean(a $\\mathbf { b s } ( \\mathbf { M } _ { i } \\left[ \\mathbf { W } _ { i } \\neq 0 \\right] ) _ { . }$ ) 4 TotalMomentum $\\gets$ TotalMomentum $^ +$ MeanMomentumi 5 $\\mathrm { N o n } Z \\mathrm { e r o } _ { i } = \\mathrm { s u m } ( \\mathbf { W } _ { i } \\neq 0 )$ 6 TotalNonzero TotalNonzero + NonZeroi 7 end 8 for $i \\gets 0$ to $k$ do 9 LayerContribution $_ { \\cdot i } \\gets$ MeanMomentumi/TotalMomentum 10 $p _ { i } \\gets$ getPruneRate $( \\mathbf { W } _ { i } , p )$ 11 weights by finding the NumRemoveth smallest weight. 12 end 13 for $i \\gets 0$ to $k$ do 14 NumRemove $\\mathbf { \\Sigma } _ { i } \\mathrm { N o n Z e r o } _ { i } \\cdot p$ 15 PruneThreshold $ \\mathrm { s o r t } ( \\mathrm { a b s } ( \\mathbf W _ { i } [ \\mathbf W _ { i } \\neq 0 ] )$ ) [NumRemovei] 16 $\\mathbf { M a s k } _ { i }$ $[ \\mathbf { W } _ { i } <$ PruneThreshold] $ 0$ // Stop gradient flow. 17 $\\mathbf { W } _ { i }$ $[ \\mathbf { W } _ { i } <$ PruneThreshold] $\\gets 0$ 18 end /\\* (c) Enable gradient flow of weights with largest momentum magnitude. \\*/ 19 for $i \\gets 0$ to $k$ do 20 RegrowthThresh $\\mathrm { \\mathbf { \\tau } _ { \\mathrm { 1 } } } \\mathbf { d } _ { i } \\gets \\mathrm { \\mathbf { \\mathrm { s o r t } } } ( \\mathbf { \\mathrm { a b s } } ( \\mathbf { M } _ { i } \\left[ \\mathbf { W } _ { i } = = 0 \\right] )$ ) [NumRegrowthi] 21 $\\mathbf { Z } _ { i } = \\mathbf { M } _ { i }$ · $\\mathbf { W } _ { i } = = 0$ ) // Only consider the momentum of missing weights. 22 $\\mathbf { M } \\mathbf { a s } \\mathbf { k } _ { i } \\gets \\mathbf { M } \\mathbf { a s } \\mathbf { k } _ { i }$ | ( $\\mathbf { Z } _ { i } >$ RegrowthThreshold ) // | is the boolean OR operator 23 end 24 $p $ decayPruneRate(p) 25 applyMask() ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
151,
|
| 1200 |
+
286,
|
| 1201 |
+
831,
|
| 1202 |
+
739
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 13
|
| 1205 |
+
}
|
| 1206 |
+
]
|
parse/train/HJgVisRqtX/HJgVisRqtX_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJgVisRqtX/HJgVisRqtX_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ToWi1RjuEr8/ToWi1RjuEr8.md
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ADVANTAGE-WEIGHTED REGRESSION: SIMPLE ANDSCALABLE OFF-POLICY REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
In this work, we aim to develop a simple and scalable reinforcement learning algorithm that uses standard supervised learning methods as subroutines, while also being able to leverage off-policy data. Our proposed approach, which we refer to as advantage-weighted regression (AWR), consists of two standard supervised learning steps: one to regress onto target values for a value function, and another to regress onto weighted target actions for the policy. The method is simple and general, can accommodate continuous and discrete actions, and can be implemented in just a few lines of code on top of standard supervised learning methods. We provide a theoretical motivation for AWR and analyze its properties when incorporating off-policy data from experience replay. We evaluate AWR on a suite of standard OpenAI Gym benchmark tasks, and show that it achieves competitive performance compared to a number of well-established state-of-the-art RL algorithms. AWR is also able to acquire more effective policies than most off-policy algorithms when learning from purely static datasets with no additional environmental interactions. Furthermore, we demonstrate our algorithm on challenging continuous control tasks with highly complex simulated characters. (Video1)
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Model-free reinforcement learning can be a general and effective methodology for training agents to acquire sophisticated behaviors with minimal assumptions on the underlying task. However, RL algorithms can be substantially more complex to implement and tune than standard supervised learning methods. Arguably the simplest reinforcement learning methods are policy gradient algorithms (Sutton et al., 2000), which directly differentiate the expected return and perform gradient ascent. Unfortunately, these methods can be notoriously unstable and are typically on-policy, often requiring a substantial number of samples to learn effective behaviors. Our goal is to develop an RL algorithm that is simple, easy to implement, and can readily incorporate off-policy data.
|
| 12 |
+
|
| 13 |
+
In this work, we propose advantage-weighted regression (AWR), a simple off-policy algorithm for model-free RL. Each iteration of the AWR algorithm simply consists of two supervised regression steps: one for training a value function baseline via regression onto cumulative rewards, and another for training the policy via weighted regression. The complete algorithm is shown in Algorithm 1. AWR can accommodate continuous and discrete actions, and can be implemented in just a few lines of code on top of standard supervised learning methods. Despite its simplicity, we find that AWR achieves competitive results when compared to commonly used on-policy and off-policy RL algorithms, and can effectively incorporate fully off-policy data, which has been a challenge for other RL algorithms. Our derivation presents an interpretation of AWR as a constrained policy optimization procedure, and provides a theoretical analysis of the use of off-policy data with experience replay.
|
| 14 |
+
|
| 15 |
+
We first revisit the original formulation of reward-weighted regression (RWR) (Peters & Schaal, 2007), an on-policy RL method that utilizes supervised learning to perform policy updates, and then propose a number of new design decisions that significantly improve performance on a suite of standard control benchmark tasks. We then provide a theoretical analysis of AWR, including the capability to incorporate off-policy data with experience replay. Although the design of AWR involves only a few simple design decisions, we show experimentally that these additions provide for a large improvement over previous methods for regression-based policy search, such as RWR, while also being substantially simpler than more modern methods, such as MPO (Abdolmaleki et al., 2018b). We show that AWR achieves competitive performance when compared to several well-established state-of-the-art on-policy and off-policy algorithms.
|
| 16 |
+
|
| 17 |
+
# 2 PRELIMINARIES
|
| 18 |
+
|
| 19 |
+
In reinforcement learning, the objective is to learn a policy that maximizes an agent’s expected return. At each time step $t$ , the agent observes the state of the environment $\mathbf { s } _ { t }$ , and samples an action from a policy $\mathbf { a } _ { t } \sim \pi ( \mathbf { a } _ { t } | \mathbf { s } _ { t } )$ . The agent then applies that action, which results in a new state $\mathbf { s } _ { t + 1 }$ and a scalar reward $r _ { t } = r ( \mathbf { s } _ { t } , \mathbf { a } _ { t } )$ . The goal is to learn a policy that maximizes the expected return $J ( \pi )$ ,
|
| 20 |
+
|
| 21 |
+
$$
|
| 22 |
+
J ( \pi ) = \mathbb { E } _ { \tau \sim p _ { \pi } ( \tau ) } \left[ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } r _ { t } \right] = \mathbb { E } _ { \mathbf { s } \sim d _ { \pi } ( \mathbf { s } ) , a \sim \pi ( \mathbf { a } | \mathbf { s } ) } \left[ r ( \mathbf { s } , \mathbf { a } ) \right] ,
|
| 23 |
+
$$
|
| 24 |
+
|
| 25 |
+
where $p _ { \pi } ( \tau )$ represents the likelihood of a trajectory $\tau = \{ ( \mathbf { s } _ { 0 } , \mathbf { a } _ { 0 } , r _ { 0 } ) , ( \mathbf { s } _ { 1 } , \mathbf { a } _ { 1 } , r _ { 1 } ) , \ldots \}$ under a policy $\pi$ , and $\gamma \in \ [ 0 , 1 )$ is the discount factor. $\begin{array} { r } { d _ { \pi } ( \mathbf { s } ) \ = \ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } p ( \mathbf { s } _ { t } \ = \ \mathbf { s } | \pi ) } \end{array}$ represents the unnormalized discounted state distribution induced by the policy $\pi$ (Sutton & Barto, 1998), and $p ( \mathbf { s } _ { t } = \mathbf { s } | \boldsymbol { \pi } )$ is the likelihood of the agent being in state s after following $\pi$ for $t$ timesteps.
|
| 26 |
+
|
| 27 |
+
Our proposed AWR algorithm builds on ideas from reward-weighted regression (RWR) (Peters & Schaal, 2007), a policy search algorithm based on an expectation-maximization framework. At each iteration, the E-step constructs an estimate of the optimal policy according to $\pi ^ { * } ( \mathbf { a } | \mathbf { s } ) \ \propto $ $\pi _ { k } ( \mathbf { a } | \mathbf { s } ) \mathrm { e x p } \left( \mathcal { R } _ { \mathbf { s } , \mathbf { a } } / \beta \right)$ , where $\pi _ { k }$ represents the policy at the $k$ th iteration, $\begin{array} { r } { \mathcal { R } _ { { \bf s } , { \bf a } } \stackrel { - } { = } \sum _ { t = 0 } ^ { \infty } \dot { \gamma } ^ { t } r _ { t } } \end{array}$ is the return, and $\beta > 0$ is a temperature parameter. Then the M-step projects $\pi ^ { * }$ onto the space of parameterized policies by solving a supervised regression problem:
|
| 28 |
+
|
| 29 |
+
$$
|
| 30 |
+
\pi _ { k + 1 } = \arg \operatorname* { m a x } _ { \pi } \mathbb { E } _ { \mathbf { s } \sim d _ { \pi _ { k } } ( \mathbf { s } ) } \mathbb { E } _ { \mathbf { a } \sim \pi _ { k } ( \mathbf { a } | \mathbf { s } ) } \left[ \log \pi ( \mathbf { a } | \mathbf { s } ) \exp \left( \frac { 1 } { \beta } \mathcal { R } _ { \mathbf { s } , \mathbf { a } } \right) \right] .
|
| 31 |
+
$$
|
| 32 |
+
|
| 33 |
+
The RWR update can be interpreted as fitting a new policy $\pi _ { k + 1 }$ to samples from the current policy $\pi _ { k }$ , where the likelihood of each action is weighted by the exponentiated return for that action.
|
| 34 |
+
|
| 35 |
+
# 3 ADVANTAGE-WEIGHTED REGRESSION
|
| 36 |
+
|
| 37 |
+
In this work, we present advantage-weighted regression (AWR), a simple off-policy RL algorithm based on reward-weighted regression. We first provide an overview of the AWR algorithm, and then describe its theoretical motivation and analyze its properties. The AWR algorithm is summarized in Algorithm 1. Each iteration $k$ of AWR consists of the following simple steps. First, the current policy $\pi _ { k } ( \mathbf { a } | \mathbf { s } )$ is used to sample a batch of trajectories $\{ \tau _ { i } \}$ that are then stored in the replay buffer $\mathcal { D }$ , which is structured as a first-in first-out (FIFO) queue (Mnih et al., 2015). Then, a value function $V _ { k } ^ { { \mathcal { D } } } ( { \mathbf s } )$ is fitted to all eturn estimates eplay buffer . Finally, the $\mathcal { D }$ , which can be done with simple Monteme buffer is used to fit a new policy using $\begin{array} { r } { \mathcal { R } _ { { \bf s } , { \bf a } } ^ { D } = \sum _ { t = 0 } ^ { T } \gamma ^ { t } r _ { t } } \end{array}$ advantage-weighted regreexponentiated advantage $\begin{array} { r } { \exp ( \frac { 1 } { \beta } A ^ { D } ( { \bf s } , { \bf a } ) ) } \end{array}$ state-action pair in the buffer , with the advantage given by $A ^ { \mathcal { D } } ( \mathbf { { s } } , \mathbf { { a } } ) = \mathcal { R } _ { { \mathbf { s } } , \mathbf { { a } } } ^ { \mathcal { D } } - \mathbf { \mathcal { V } } ^ { \mathcal { D } } ( \mathbf { { s } } )$ and $\beta$ is a hyperparameter. In the following subsections, we first motivate AWR as a constrained policy search problem, and then extend our analysis to incorporate experience replay.
|
| 38 |
+
|
| 39 |
+
# 3.1 DERIVATION
|
| 40 |
+
|
| 41 |
+
In this section, we derive the AWR algorithm as an approximate optimization of a constrained policy search problem. Our goal is to find a policy that maximizes the expected improvement $\mathsf { \bar { \eta } } ( \pi ) \mathsf { \bar { = } } J ( \pi ) \bar { - } J ( \mu )$ over a sampling policy $\mu ( \mathbf { a } | \mathbf { s } )$ . We first derive AWR for the setting where the sampling policy is a single Markovian policy. Then, in the next section, we extend our result to data from multiple policies, as in the case of experience replay. The expected improvement $\eta ( \pi )$ can be expressed in terms of the advantage ${ \mathbf { } } A ^ { \mu } ( \mathbf { { \bar { s } } } , \mathbf { { a } } ) = { \mathbf { } } { \mathcal { R } } _ { { \mathbf { s } } , \mathbf { { a } } } ^ { \mu } - { \mathbf { \bar { \psi } } } V ^ { \mu } ( \mathbf { s } )$ with respect to $\mu$ (Kakade & Langford, 2002; Schulman et al., 2015):
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\eta ( \pi ) = \mathbb { E } _ { \mathbf { s } \sim d _ { \pi } ( \mathbf { s } ) } \mathbb { E } _ { \mathbf { a } \sim \pi ( \mathbf { a } | \mathbf { s } ) } \left[ \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mu } - V ^ { \mu } ( \mathbf { s } ) \right] ,
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
where $\mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mu }$ denotes the return obtained by performing action a in state s and following $\mu$ for the following timesteps, and $\begin{array} { r } { V ^ { \mu } ( \mathbf { s } ) = \int _ { a . } \mu ( \mathbf { a } | \mathbf { s } ) \mathcal { R } _ { \mathbf { s } } ^ { \mathbf { a } } } \end{array}$ $d \mathbf { a }$ corresponds to the value function of $\mu$ . This objective differs from the ones used in the derivations of related algorithms, such as RWR and
|
| 48 |
+
|
| 49 |
+
# Algorithm 1 Advantage-Weighted Regression
|
| 50 |
+
|
| 51 |
+
<table><tr><td colspan="2">1:π1 ← random policy 2:D←0</td></tr><tr><td colspan="2">3: for iteration k =1,..., kmax do</td></tr><tr><td>4:</td><td>add trajectories {Ti} sampled via πk to D</td></tr><tr><td>5:</td><td>V ← arg minv Es,a~D [|IRa - V(s)ll2]</td></tr><tr><td>7: end for</td><td>6:πk+1 ←arg maxEs,a~D[ogπ(a|s)exp((a-V(s))]</td></tr></table>
|
| 52 |
+
|
| 53 |
+
REPS (Peters & Schaal, 2007; Peters et al., 2010; Abdolmaleki et al., 2018b), which maximize the expected return $J ( \pi )$ instead of the expected improvement. The expected improvement directly gives rise to an objective that involves the advantage. We will see later that this yields a policy update that differ in a subtle but important way from standard RWR. As we show in our experiments, this difference results in a large empirical improvement.
|
| 54 |
+
|
| 55 |
+
The objective in Equation 3 can be difficult to optimize due to the dependency between $d _ { \pi } ( \mathbf { s } )$ and $\pi$ , as well as the need to collect samples from $\pi$ . Following Schulman et al. (2015), we can instead optimize an approximation $\hat { \eta } ( \pi )$ of $\eta ( \pi )$ using the state distribution of $\mu$ :
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\hat { \eta } ( \pi ) = \mathbb { E } _ { \mathbf { s } \sim d _ { \mu } ( \mathbf { s } ) } \mathbb { E } _ { \mathbf { a } \sim \pi ( \mathbf { a } | \mathbf { s } ) } \left[ \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mu } - V ^ { \mu } ( \mathbf { s } ) \right] .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
Here, $\hat { \eta } ( \pi )$ matches $\eta ( \pi )$ to first order (Kakade & Langford, 2002), and provides a good estimate of $\eta$ if $\pi$ and $\mu$ are close in terms of the KL-divergence (Schulman et al., 2015). Using this objective, we can formulate the following constrained policy search problem:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\begin{array} { r l } { \underset { \pi } { \arg \operatorname* { m a x } } } & { \displaystyle \int _ { \mathbf { s } } d _ { \mu } ( \mathbf { s } ) \int _ { \mathbf { a } } \pi ( \mathbf { a } | \mathbf { s } ) \left[ \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mu } - V ^ { \mu } ( \mathbf { s } ) \right] d \mathbf { a } d \mathbf { s } } \\ { \mathrm { s . t . } } & { \displaystyle \int _ { \mathbf { s } } d _ { \mu } ( \mathbf { s } ) \mathrm { D } _ { \mathrm { K L } } \left( \pi ( \cdot | \mathbf { s } ) | | \mu ( \cdot | \mathbf { s } ) \right) d \mathbf { s } \leq \epsilon . } \end{array}
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
The constraint in Equation 6 ensures that the new policy $\pi$ is close to the data distribution of $\mu$ , and therefore the surrogate objective $\hat { \eta } ( \pi )$ remains a reasonable approximation to $\eta ( \pi )$ . We refer the reader to Schulman et al. (2015) for a detailed derivation and an error bound.
|
| 68 |
+
|
| 69 |
+
We can derive AWR as an approximate solution to this constrained optimization. This derivation follows a similar procedure as Peters et al. (2010), and begins by forming the Lagrangian of the optimization problem presented above,
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\mathcal { L } ( \pi , \beta ) = \int _ { \mathbf { s } } d _ { \mu } ( \mathbf { s } ) \int _ { \mathbf { a } } \pi ( \mathbf { a } | \mathbf { s } ) \left[ \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mu } - V ^ { \mu } ( \mathbf { s } ) \right] d \mathbf { a } d \mathbf { s } + \beta \left( \epsilon - \int _ { \mathbf { s } } d _ { \mu } ( \mathbf { s } ) \mathrm { D } _ { \mathrm { K L } } \left( \pi ( \cdot | \mathbf { s } ) | | \mu ( \cdot | \mathbf { s } ) \right) d \mathbf { s } \right) ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $\beta$ is a Lagrange multiplier. Differentiating ${ \mathcal { L } } ( \pi , \beta )$ with respect to $\pi ( \mathbf { a } | \mathbf { s } )$ and solving for the optimal policy $\pi ^ { * }$ results in the following expression for the optimal policy
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\pi ^ { * } ( \mathbf { a } | \mathbf { s } ) = \frac { 1 } { Z ( \mathbf { s } ) } \mu ( \mathbf { a } | \mathbf { s } ) \exp \left( \frac { 1 } { \beta } \left( \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mu } - V ^ { \mu } ( \mathbf { s } ) \right) \right) ,
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
with $Z ( \mathbf { s } )$ being the partition function. A detailed derivation is available in Appendix A. If $\pi$ is represented by a function approximator (e.g., a neural network), a new policy can be obtained by projecting $\pi ^ { * }$ onto the manifold of parameterized policies,
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
\begin{array} { r l } { \underset { \pi } { \mathrm { a r g \ m i n } } \ : \ : \ : \ : } & { \mathbb { E } _ { \mathbf { s } \sim \mathcal { D } } \left[ \mathrm { D } _ { \mathbf { K L } } \left( \pi ^ { * } ( \cdot | \mathbf { s } ) | | \pi ( \cdot | \mathbf { s } ) \right) \right] } \\ { = \underset { \pi } { \mathrm { a r g \ m a x } } \ : \ : \ : \ : } & { \mathbb { E } _ { \mathbf { s } \sim d _ { \mu } ( \mathbf { s } ) } \mathbb { E } _ { \mathbf { a } \sim \mu ( \mathbf { a } | \mathbf { s } ) } \left[ \log \pi ( \mathbf { a } | \mathbf { s } ) \mathrm { e x p } \left( \frac { 1 } { \beta } \left( \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mu } - V ^ { \mu } ( \mathbf { s } ) \right) \right) \right] . } \end{array}
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
While this derivation for AWR largely follows the derivations used in prior work (Peters et al., 2010; Abdolmaleki et al., 2018b), our expected improvement objective introduces a baseline $V ^ { \mu } ( \mathbf { s } )$ to the policy update, which as we show in our experiments, is a crucial component for an effective algorithm. A similar advantage-weighting scheme has been previously used for fitted Q-iteration (Neumann & Peters, 2009), where the policy is given by $\begin{array} { r } { \pi ( \mathbf { a } | \mathbf { s } ) ^ { \cdot } = \frac { 1 } { Z ( \mathbf { s } ) } \mathrm { e x p } \left( \left( \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mu } - V ^ { \mu } ( \grave { \mathbf { s } } ) \right) / \beta \right) } \end{array}$ . In this definition, the likelihood of an action does not depend on the sampling distribution, and therefore does not enforce a trust region with respect to $\mu$ .
|
| 88 |
+
|
| 89 |
+
# 3.2 EXPERIENCE REPLAY AND OFF-POLICY LEARNING
|
| 90 |
+
|
| 91 |
+
A crucial design decision of AWR is the choice of sampling policy $\mu ( \mathbf { a } | \mathbf { s } )$ . Standard implementations of RWR are typically on-policy, where the sampling policy is selected to be the current policy $\mu ( \mathbf { a } | \mathbf { s } ) = \pi _ { k } ( \mathbf { a } | \mathbf { s } )$ at iteration $k$ . This can be sample inefficient, as data collected at each iteration are discarded after a single update iteration. Importance sampling can be incorporated into RWR to reuse data from previous iterations, but at the cost of larger variance (Kober & Peters, 2009). Instead, we can improve sample efficiency of AWR by incorporating experience replay and explicitly accounting for training data from a mixture of multiple past policies. As described in Algorithm 1, at each iteration, AWR collects a batch of data using the latest policy $\pi _ { k }$ , and then stores this data in a replay buffer $\mathcal { D }$ , which also contains data collected from previous policies $\{ \pi _ { 1 } , \cdots , \pi _ { k } \}$ . The value function and policy are then updated using samples drawn from $\mathcal { D }$ . This replay strategy is analogous to modeling the sampling policy as a mixture of policies from previous iterations $\begin{array} { r } { \mu _ { k } ( \tau ) = \sum _ { i = 1 } ^ { k } w _ { i } \pi _ { i } ( \tau ) } \end{array}$ , where $\pi _ { i } ( \tau ) = p ( \tau | \pi _ { i } )$ represents the likelihood of a trajectory $\tau$ under a policy $\pi _ { i }$ from the ith iteration, and the weight $w _ { i }$ specify the probability of selecting $\pi _ { i }$ .
|
| 92 |
+
|
| 93 |
+
We now extend the derivation from the previous section to the off-policy setting with experience replay, and show that Algorithm 1 indeed optimizes the expected improvement over a sampling policy modeled by the replay buffer. Given a replay buffer consisting of trajectories from past policies, the joint state-action distribution of $\mu$ is given by $\begin{array} { r } { \mu ( \mathbf { s } , \mathbf { a } ) = \sum _ { i = 1 } ^ { k } w _ { i } d _ { \pi _ { i } } ( \mathbf { s } ) \pi _ { i } ( \mathbf { a } | \mathbf { s } ) } \end{array}$ , and similarly for the marginal state distribution $\begin{array} { r } { d _ { \mu } ( \mathbf { s } ) = \sum _ { i = 1 } ^ { k } w _ { i } d _ { \pi _ { i } } ( \mathbf { s } ) } \end{array}$ . The expected improvement can now be expressed with respect to the set of sampling policies in the replay buffer,
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\eta ( \pi ) = J ( \pi ) - \sum _ { i } w _ { i } J ( \pi _ { i } ) = \mathbb { E } _ { \mathbf { s } \sim d _ { \pi } ( \mathbf { s } ) } \mathbb { E } _ { \mathbf { a } \sim \pi ( \mathbf { a } | \mathbf { s } ) } \left[ \sum _ { i } w _ { i } A ^ { \pi _ { i } } ( \mathbf { s } , \mathbf { a } ) \right] ,
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
where $A ^ { \pi _ { i } } ( \mathbf { s } , \mathbf { a } ) = \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \pi _ { i } } - V ^ { \pi _ { i } } ( \mathbf { s } )$ is the advantage with respect to each sampling policy. In Appendix $\mathbf { B }$ , we show that the update procedure in Algorithm 1 optimizes the following objective:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\begin{array} { r l } & { \underset { \pi } { \arg \operatorname* { m a x } } \sum _ { i = 1 } ^ { k } w _ { i } \left( \mathbb { E } _ { \mathbf { s } \sim d _ { \pi _ { i } } ( \mathbf { s } ) } \mathbb { E } _ { \mathbf { a } \sim \pi ( \mathbf { a } | \mathbf { s } ) } \left[ A ^ { \pi _ { i } } ( \mathbf { s } , \mathbf { a } ) \right] \right) } \\ & { \quad \mathbf { s } . \mathbf { t } . \quad \mathbb { E } _ { \mathbf { s } \sim d _ { \mu } ( \mathbf { s } ) } \left[ \operatorname { D } _ { \mathrm { K L } } \left( \pi ( \cdot | \mathbf { s } ) | | \mu ( \cdot | \mathbf { s } ) \right) \right] \leq \epsilon , } \end{array}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
where µ(a|s) = µ(s,a) = Pi widπi (s)πi(a|s) represents the conditional action distribution defined by the replay buffer. This objective can be solved via the Lagrangian to yield the following update:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\arg \operatorname* { m a x } _ { \pi } \sum _ { i = 1 } ^ { k } w _ { i } \mathbb { E } _ { \mathbf { s } \sim d _ { \pi _ { i } } ( \mathbf { s } ) } \mathbb { E } _ { \mathbf { a } \sim \pi _ { i } ( \mathbf { a } | \mathbf { s } ) } \left[ \log \pi ( \mathbf { a } | \mathbf { s } ) \mathrm { e x p } \left( \frac { 1 } { \beta } \left( \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \pi _ { i } } - \frac { \sum _ { j } w _ { j } d _ { \pi _ { j } } ( \mathbf { s } ) V ^ { \pi _ { j } } ( \mathbf { s } ) } { \sum _ { j } w _ { j } d _ { \pi _ { j } } ( \mathbf { s } ) } \right) \right) \right] ,
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where the expectations can be approximated by simply sampling from $\mathcal { D }$ following Line 6 of Algorithm 1. A detailed derivation is available in Appendix B. Note, the baseline in the exponent now consists of an average of the value functions of the different policies. This mean value function $\bar { V } ( \mathbf { s } )$ can be fitted by simply sampling from the replay buffer following Line 5 of Algorithm 1,
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\bar { V } = \underset { V } { \arg \operatorname* { m i n } } \sum _ { i } w _ { i } \mathbb { E } _ { { \mathbf s } , \sim d _ { \pi _ { i } } ( { \mathbf s } ) , { \mathbf a } \sim \pi _ { i } ( { \mathbf a } | { \mathbf s } ) } \left[ | | \mathcal { R } _ { { \mathbf s } , { \mathbf a } } ^ { \pi _ { i } } - V ( { \mathbf s } ) | | ^ { 2 } \right] .
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
The optimal solution $\begin{array} { r } { \bar { V } ( \mathbf { s } ) = \frac { \sum _ { i } w _ { i } d _ { \pi _ { i } } ( \mathbf { s } ) V ^ { \pi _ { i } } ( \mathbf { s } ) } { \sum _ { j } w _ { j } d _ { \pi _ { j } } ( \mathbf { s } ) } } \end{array}$ is exactly the baseline in Equation 14.
|
| 118 |
+
|
| 119 |
+
# 3.3 IMPLEMENTATION DETAILS
|
| 120 |
+
|
| 121 |
+
Finally, we discuss several important design decisions for a practical implementation of AWR. Monte Carlo estimates can be used to approximate the expected return $\mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mathcal { D } }$ , but this can result in a highvariance estimate. Instead, we approximate $\mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { \mathcal { D } }$ using $\mathrm { T D } ( \lambda )$ to obtain a lower-variance estimate (Sutton & Barto, 1998). $\mathrm { T D } ( \lambda )$ is applied by bootstrapping with the value function $V _ { k - 1 } ^ { \mathcal { D } }$ (s) from the previous iteration. To set the value of the Lagrange multiplier $\beta$ , we found that a simple adaptive heuristic of setting $\beta$ to the standard deviation of all advantage values $\sigma _ { A }$ in the replay buffer works well in practice. This is akin to the advantage normalization technique commonly used in implementations of algorithms such as PPO (Dhariwal et al., 2017). Details are available in Appendix C.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 1: Snapshots of AWR policies trained on OpenAI Gym and motion imitation tasks. Our simple algorithm learns effective policies for a diverse suite of control tasks.
|
| 125 |
+
|
| 126 |
+
The weights $\begin{array} { r } { \omega _ { \mathbf { s } , \mathbf { a } } ^ { D } = \exp \Big ( \frac { 1 } { \beta } \left( \mathcal { R } _ { \mathbf { s } , \mathbf { a } } ^ { D } - V ^ { \mathcal { D } } ( \mathbf { s } ) \right) \Big ) } \end{array}$ used to update the policy can occasionally assume excessively large values, which causes gradients to explode. Therefore, we apply weight clipping $\hat { \omega } _ { \mathbf { s } , \mathbf { a } } ^ { \mathcal { D } } = \operatorname* { m i n } \left( \omega _ { \mathbf { s } , \mathbf { a } } ^ { \mathbf { \breve { D } } } , \omega _ { \operatorname* { m a x } } \right)$ with a threshold $\omega _ { \mathrm { m a x } }$ to prevent exploding weights.
|
| 127 |
+
|
| 128 |
+
# 4 RELATED WORK
|
| 129 |
+
|
| 130 |
+
Existing RL methods can be broadly categorized into on-policy and off-policy algorithms (Sutton & Barto, 1998). On-policy algorithms generally update the policy using data collected from the same policy. A popular class of on-policy algorithms is policy gradient methods (Williams, 1992; Sutton et al., 2000), which can be effective for a diverse array of complex tasks (Heess et al., 2017; Pathak et al., 2017; Peng et al., 2018; Rajeswaran et al., 2018). However, on-policy algorithms are typically data inefficient. Off-policy algorithms improve sample efficiency by enabling training using data from other sources, such as data from different agents or data from previous iterations of the algorithm. Importance sampling is a simple strategy for off-policy learning (Sutton & Barto, 1998; Meuleau et al., 2000; Hachiya et al., 2009), but can introduce optimization instabilities due to the large variance of the importance sampling estimator. Dynamic programming methods based on Q-function learning can also leverage off-policy data (Precup et al., 2001; Mnih et al., 2015; Lillicrap et al., 2016; Gu et al., 2016; Haarnoja et al., 2018b). But these methods can be notoriously unstable, and in practice, require a variety of stabilization techniques (Hasselt et al., 2016; Wang et al., 2016; Munos et al., 2016; Hessel et al., 2017; Fujimoto et al., 2018; Fu et al., 2019). Furthermore, it can be difficult to apply these methods to fully off-policy data, where an agent is unable to collect additional environmental interactions (Fujimoto et al., 2019; Kumar et al., 2019).
|
| 131 |
+
|
| 132 |
+
Policy search can also be formulated under an expectation-maximization framework (Peters et al., 2010; Neumann, 2011; Abdolmaleki et al., 2018b), an early example of which is reward-weighted regression (RWR) (Peters & Schaal, 2007). RWR presents a simple on-policy RL algorithm that casts policy search as a supervised regression problem. A similar algorithm, relative entropy policy search (REPS) (Peters et al., 2010), can also be derived from the dual formulation of a constrained policy search problem. RWR has a number appealing properties: it has a very simple update rule, and since each iteration corresponds to supervised learning, it can be more stable and easier to implement than many of the previously mentioned RL methods. Despite these advantages, RWR has not been shown to be an effective when combined with neural networks (Schulman et al., 2015; Duan et al., 2016). In this work, we propose a number of modifications to the formulation of RWR to produce an effective off-policy deep RL algorithm, while still retaining much of the simplicity of RWR.
|
| 133 |
+
|
| 134 |
+
The optimization problem being solved in AWR is similar to REPS (Peters et al., 2010), but REPS optimizes the expected return instead of the expected improvement. The weights in REPS also contains a Bellman error term that resembles advantages, but are computed using a linear value function derived from a feature matching constraint. Learning the REPS value function involves minimization of a dual function, which is a complex function of the Bellman error, while the value function in AWR can be learned with simple supervised regression. More recently, Abdolmaleki et al. (2018b) proposed MPO, a deep RL variant of REPS, which applies a partial EM algorithm for policy optimization. The method first fits a Q-function of the current policy via bootstrapping, and then performs a policy improvement step with respect to this Q-function. MPO uses off-policy data for training a Q-function and employs Retrace(λ) for off-policy correction (Munos et al., 2016). In
|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
|
| 138 |
+
Figure 2: Learning curves of the various algorithms when applied to OpenAI Gym tasks. Results are averaged across 10 random seeds. AWR is generally competitive with the best current methods.
|
| 139 |
+
|
| 140 |
+
<table><tr><td rowspan=1 colspan=1>Task</td><td rowspan=1 colspan=1>TRPO</td><td rowspan=1 colspan=1>PPO</td><td rowspan=1 colspan=1>DDPG</td><td rowspan=1 colspan=1>TD3</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1>LAWER</td><td rowspan=1 colspan=1>RWR</td><td rowspan=1 colspan=1>AWR (Ours)</td></tr><tr><td rowspan=1 colspan=1>Ant-v2</td><td rowspan=1 colspan=1>2901 ± 85</td><td rowspan=1 colspan=1>4884± 1249</td><td rowspan=1 colspan=1>72 ± 1550</td><td rowspan=1 colspan=1>5997 ± 765</td><td rowspan=1 colspan=1>7500±353</td><td rowspan=1 colspan=1>2240± 497</td><td rowspan=1 colspan=1>1183± 176</td><td rowspan=1 colspan=1>5372± 163</td></tr><tr><td rowspan=1 colspan=1>HalfCheetah-v2</td><td rowspan=1 colspan=1>3302 ± 428</td><td rowspan=1 colspan=1>7617 ± 185</td><td rowspan=1 colspan=1>10563 ± 382</td><td rowspan=1 colspan=1>12324 ± 1549</td><td rowspan=1 colspan=1>16223 ± 964</td><td rowspan=1 colspan=1>4596± 2331</td><td rowspan=1 colspan=1>2075±370</td><td rowspan=1 colspan=1>9192 ± 157</td></tr><tr><td rowspan=1 colspan=1>Hopper-v2</td><td rowspan=1 colspan=1>1880±337</td><td rowspan=1 colspan=1>2514± 726</td><td rowspan=1 colspan=1>855±282</td><td rowspan=1 colspan=1>2794± 15</td><td rowspan=1 colspan=1>2757±658</td><td rowspan=1 colspan=1>1830± 553</td><td rowspan=1 colspan=1>605± 114</td><td rowspan=1 colspan=1>3498±167</td></tr><tr><td rowspan=1 colspan=1>Humanoid-v2</td><td rowspan=1 colspan=1>552±9</td><td rowspan=1 colspan=1>4668 ± 1153</td><td rowspan=1 colspan=1>4382 ± 423</td><td rowspan=1 colspan=1>4738±93</td><td rowspan=1 colspan=1>6296±332</td><td rowspan=1 colspan=1>108±386</td><td rowspan=1 colspan=1>509±18</td><td rowspan=1 colspan=1>6159 ± 274</td></tr><tr><td rowspan=1 colspan=1>LunarLander-v2</td><td rowspan=1 colspan=1>104± 94</td><td rowspan=1 colspan=1>121 ± 49</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>185±23</td><td rowspan=1 colspan=1>229±2</td></tr><tr><td rowspan=1 colspan=1>Walker2d-v2</td><td rowspan=1 colspan=1>2765±168</td><td rowspan=1 colspan=1>5036± 934</td><td rowspan=1 colspan=1>401± 470</td><td rowspan=1 colspan=1>4779± 803</td><td rowspan=1 colspan=1>6210±511</td><td rowspan=1 colspan=1>2502±388</td><td rowspan=1 colspan=1>406±64</td><td rowspan=1 colspan=1>5813± 483</td></tr></table>
|
| 141 |
+
|
| 142 |
+
Table 1: Final returns for different algorithms on the OpenAI Gym tasks, with $\pm$ corresponding to one standard deviation of the average return across 10 random seeds. In terms of final performance, AWR is generally competitive with prior methods.
|
| 143 |
+
|
| 144 |
+
contrast, AWR is simpler, as it can simply fit a value function to the observed returns in a replay buffer, and performs weighted supervised regression on the actions to fit the policy. Oh et al. (2018) proposed self-imitation learning (SIL), which augments policy gradient algorithms with an auxiliary behaviour cloning loss to reuse samples from past experiences. Unlike SIL, AWR is a standalone algorithm, and does not need to be combined with an auxiliary RL algorithm. Neumann & Peters (2009) proposed LAWER, a kernel-based fitted Q-iteration algorithm where the Bellman error is weighted by the normalized advantage of each state-action pair. This was then followed by a soft-policy improvement step. Similar to Neumann & Peters (2009), AWR also uses exponentiated advantages, but LAWER’s definition of the policy is different from the one in AWR and does not enforce a trust region constraint. Furthermore, AWR does not perform fitted Q-iteration, and instead utilizes off-policy data in a simple constrained policy search procedure. Wang et al. (2018) applied a similar advantage-weighting scheme for imitation learning, but the method was not demonstrated for the RL setting. In this work, we propose several design decisions that are vital for an effective RL algorithm. We also provide a theoretical analysis of AWR when combined with experience replay, and show that the algorithm optimizes the expected improvement with respect to a mixture of policies modeled by a replay buffer.
|
| 145 |
+
|
| 146 |
+
# 5 EXPERIMENTS
|
| 147 |
+
|
| 148 |
+
Our experiments aim to comparatively evaluate the performance of AWR with commonly used on-policy and off-policy deep RL algorithms. We evaluate our method on the OpenAI Gym benchmarks (Brockman et al., 2016), consisting of discrete and continuous control tasks. We also evaluate our method on complex motion imitation tasks with high-dimensional simulated characters. We then demonstrate the effectiveness of AWR on fully off-policy learning, by training on static datasets of demonstrations from demo policies. Behaviors learned by the policies are best seen in the supplementary video1. Code for our implementation of AWR is available at sites.google.com/view/awr-supp/. Detailed hyperparameter settings are provided in Appendix C.
|
| 149 |
+
|
| 150 |
+
# 5.1 BENCHMARKS
|
| 151 |
+
|
| 152 |
+
We compare AWR to a number of state-of-the-art RL algorithms, including on-policy algorithms, such as TRPO (Schulman et al., 2015) and PPO (Schulman et al., 2017), off-policy algorithms, such as DDPG (Lillicrap et al., 2016), TD3 (Fujimoto et al., 2018), and SAC (Haarnoja et al., 2018a), as well as RWR (Peters & Schaal, 2007) and LAWER (Neumann & Peters, 2009).2 TRPO, PPO, and DDPG use the implementations from OpenAI baselines (Dhariwal et al., 2017). TD3 and SAC use the implementations from Fujimoto et al. (2018) and Haarnoja et al. (2018a). RWR and LAWER are implemented following the descriptions in Peters & Schaal (2007) and Neumann & Peters (2009), but neural networks are used instead of kernel-based approximators.
|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
Figure 3: Left: Learning curves comparing AWR with various components removed. Each component contributes to performance improvements. Right: Learning curves comparing AWR with different capacity replay buffers. AWR remains stable with large buffers containing primarily off-policy data from past iterations.
|
| 156 |
+
|
| 157 |
+
Snapshots of the AWR policies are shown in Figure 1. Figure 2 shows learning curves comparing the different algorithms, and Table 1 summarizes the average returns of the final policies across 10 training runs initialized with different random seeds. Due to the slow wall-clock times of TD3 and SAC, some training runs did not have sufficient time to collect as many samples as other algorithms. Overall, AWR shows competitive performance with the state-of-the-art deep RL algorithms. It is competitive with on-policy methods, such as TRPO and PPO, in both sample efficiency and asymptotic performance. While it is not yet as sample efficient as current state-of-the-art off-policy methods, such SAC and TD3, it is able to achieve a comparable asymptotic performance on most tasks. RWR tends to perform poorly on these tasks, which suggests that, the particular modifications from AWR are critical. AWR also significantly outperforms LAWER across the various tasks. Though both methods use a similar advantaged-weighting scheme, our design decisions for AWR produce a simpler and more effective algorithm.
|
| 158 |
+
|
| 159 |
+
# 5.2 ABLATION EXPERIMENTS
|
| 160 |
+
|
| 161 |
+
To determine the effects of various design decisions, we evaluate the performance of AWR when key components have been removed. The experiments include: an on-policy version of AWR (On-Policy), where updates use only data from the latest policy, a version of AWR without the baseline $V ( \mathbf { s } )$ (No Baseline), and a version that uses Monte Carlo return estimates instead of $\mathrm { T D } ( \lambda )$ (No $\mathrm { T D } ( \lambda ) ,$ ). The effects of these components are illustrated in Figure 3. Overall, these design decisions appear to be vital for an effective algorithm, with the most crucial components being the use of experience replay and a baseline. Updates using only on-policy data can lead to instabilities and noticeable degradation in performance, which may be due to overfitting on a smaller dataset. Removing the baseline also noticeably hampers performance. Using simple Monte Carlo return estimates instead of $\mathrm { T D } ( \lambda )$ seems to be a viable alternative, and the algorithm still achieves competitive performance on some tasks. When combined, these different components yield substantial performance gains over standard RWR.
|
| 162 |
+
|
| 163 |
+
To further evaluate the effect of experience replay, we compare policies trained using replay buffer with different capacities. Figure 3 illustrates the learning curves for buffers of size 5k, 20k, 50k, 100k, and $5 0 0 \mathrm { k }$ , with 50k being the default buffer size in our experiments. The size of the replay buffer appears to have a significant impact on overall performance. Smaller buffer sizes can result in instabilities during training, which again may be an effect of overfitting to a smaller dataset. As the buffer size increases, AWR remains stable even when the dataset is dominated by off-policy data from previous iterations. In fact, AWR appears more stable with larger replay buffers, but progress can also become slower. Since the sampling policy $\mu ( \mathbf { a } | \mathbf { s } )$ is modeled by the replay buffer, a larger buffer can limit the rate at which $\mu$ changes by maintaining older data for more iterations.
|
| 164 |
+
|
| 165 |
+
# 5.3 MOTION IMITATION
|
| 166 |
+
|
| 167 |
+
In this section, we show that AWR can also solve high-dimensional tasks with complex simulated characters, including a $3 4 \mathrm { D o F }$ humanoid and 64 DoF dog. The objective of the tasks is to imitate reference motion clips recorded using mocap. The experimental setup follows the framework proposed by Peng et al. (2018). The motions include walking and running (e.g. canter), as well as acrobatic skills, such as cartwheels and spinkicks. Figure 1 shows snapshots of the behaviors learned by the AWR. Table 2 and Figure 4 compare the performance of AWR to RWR and PPO. AWR performs well across the set of challenging skills, consistently achieving comparable or better performance than PPO. RWR struggles with controlling the humanoid, but exhibits stronger performance on the dog. This difference may be due to the more dynamic and acrobatic skills of the humanoid.
|
| 168 |
+
|
| 169 |
+
Table 2: Performance of algorithms on the motion imitation tasks. Returns are normalized between the minimum and maximum possible returns.
|
| 170 |
+
|
| 171 |
+
<table><tr><td rowspan=1 colspan=1>Task</td><td rowspan=1 colspan=1>PPO</td><td rowspan=1 colspan=1>RWR</td><td rowspan=1 colspan=1>AWR (Ours)</td></tr><tr><td rowspan=1 colspan=1>Humanoid:Cartwheel</td><td rowspan=1 colspan=1>0.76 ±0.02</td><td rowspan=1 colspan=1>0.03±0.01</td><td rowspan=1 colspan=1>0.78±0.07</td></tr><tr><td rowspan=1 colspan=1>Humanoid:Spinkick</td><td rowspan=1 colspan=1>0.70±0.02</td><td rowspan=1 colspan=1>0.05± 0.03</td><td rowspan=1 colspan=1>0.77± 0.04</td></tr><tr><td rowspan=1 colspan=1>Dog:Canter</td><td rowspan=1 colspan=1>0.76±0.03</td><td rowspan=1 colspan=1>0.78±0.04</td><td rowspan=1 colspan=1>0.86± 0.01</td></tr><tr><td rowspan=1 colspan=1>Dog:Trot</td><td rowspan=1 colspan=1>0.86±0.01</td><td rowspan=1 colspan=1>0.86±0.01</td><td rowspan=1 colspan=1>0.86±0.03</td></tr><tr><td rowspan=1 colspan=1>Dog:Turn</td><td rowspan=1 colspan=1>0.75±0.02</td><td rowspan=1 colspan=1>0.75±0.03</td><td rowspan=1 colspan=1>0.82±0.03</td></tr></table>
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 4: Learning curves on motion imitation tasks. On these challenging tasks, AWR generally learns faster than PPO and RWR.
|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
Figure 5: Performance of various algorithms on off-policy learning tasks with static datasets. AWR is able to learn policies that are comparable or better than the original demo policies.
|
| 178 |
+
|
| 179 |
+
# 5.4 OFF-POLICY LEARNING WITH STATIC DATASETS
|
| 180 |
+
|
| 181 |
+
Next, we evaluate AWR in a fully off-policy setting, where the algorithm is provided with a static dataset of experiences, and then tasked with learning the best possible policy without collecting any additional data. To evaluate our method, we use the off-policy tasks proposed by Kumar et al. (2019). The dataset consists of trajectories $\tau = \{ ( \mathbf { s } _ { 0 } , \mathbf { a } _ { 0 } , r _ { 0 } ) , ( \mathbf { s } _ { 1 } , \mathbf { a } _ { 1 } , r _ { 1 } ) , \ldots \}$ from rollouts of a demo policy. Unlike standard imitation learning tasks, which only observes the states and actions from the demo policy, the dataset also records the reward at each step. The demo policies are trained using SAC on various OpenAI Gym tasks. A dataset of 1 million timesteps is collected for each task.
|
| 182 |
+
|
| 183 |
+
For AWR, we simply treat the dataset as the replay buffer $\mathcal { D }$ and directly apply the algorithm without any modifications. Figure 5 compares AWR to the original demo policy (Demo) and a behavioral cloning policy (BC). We also include comparisons to recent off-policy methods: batch-constrained Q-learning (BCQ) (Fujimoto et al., 2019) and bootstrapping error accumulation reduction (BEAR) (Kumar et al., 2019), which have shown strong performance on off-policy learning with static datasets. Note that both of these prior methods are modifications to existing off-policy RL methods, such as TD3 and SAC, which are already quite complex. In contrast, AWR is simple and requires no modifications for the fully off-policy setting. Despite not collecting any additional data, AWR is able to learn effective policies from these fully off-policy datasets, achieving comparable or better performance than the original demo policies. On-policy methods, such as PPO performs poorly in this off-policy setting. Q-function based methods, such as TD3 and SAC, can in principle handle off-policy data but tend to struggle in practice (Fujimoto et al., 2019; Kumar et al., 2019). Unlike Q-function based methods, AWR is less susceptible to issues from out-of-distribution actions as the policy is always trained on observed actions from the behaviour data (Kumar et al., 2019). AWR also shows comparable performance to BEAR and BCQ, which are specifically designed for this off-policy setting and introduce considerable algorithmic overhead.
|
| 184 |
+
|
| 185 |
+
# 6 DISCUSSION AND FUTURE WORK
|
| 186 |
+
|
| 187 |
+
We presented advantage-weighted regression, a simple off-policy reinforcement learning algorithm, where policy updates are performed using standard supervised learning methods. Despite its simplicity, our algorithm is able to solve challenging control tasks with complex simulated agents, and achieve competitive performance on standard benchmarks compared to a number of well-established RL algorithms. Our derivation introduces several new design decisions, and our experiments verify the importance of these components. AWR is also able to learn from fully off-policy datasets, demonstrating comparable performance to state-of-the-art off-policy methods. While AWR is effective for a diverse suite of tasks, it is not yet as sample efficient as the most efficient off-policy algorithms. We believe that exploring techniques for improving sample efficiency and performance on fully off-policy learning can open opportunities to deploy these methods in real world domains. A better theoretical understanding of the convergence properties of these algorithms, especially when combined with experience replay, could also be valuable for the development of future algorithms.
|
| 188 |
+
|
| 189 |
+
# REFERENCES
|
| 190 |
+
|
| 191 |
+
Abbas Abdolmaleki, Jost Tobias Springenberg, Jonas Degrave, Steven Bohez, Yuval Tassa, Dan Belov, Nicolas Manfred Otto Heess, and Martin A. Riedmiller. Relative entropy regularized policy iteration. ArXiv, abs/1812.02256, 2018a.
|
| 192 |
+
|
| 193 |
+
Abbas Abdolmaleki, Jost Tobias Springenberg, Yuval Tassa, Remi Munos, Nicolas Heess, and Martin Riedmiller. Maximum a posteriori policy optimisation. In International Conference on Learning Representations, 2018b. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ S1ANxQW0b.
|
| 194 |
+
|
| 195 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym, 2016.
|
| 196 |
+
|
| 197 |
+
Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, Yuhuai Wu, and Peter Zhokhov. Openai baselines. https: //github.com/openai/baselines, 2017.
|
| 198 |
+
|
| 199 |
+
Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. In ICML, pp. 1329–1338, 2016. URL http: //proceedings.mlr.press/v48/duan16.html.
|
| 200 |
+
|
| 201 |
+
Justin Fu, Aviral Kumar, Matthew Soh, and Sergey Levine. Diagnosing bottlenecks in deep qlearning algorithms. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 2021–2030, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/fu19a.html.
|
| 202 |
+
|
| 203 |
+
Scott Fujimoto, Herke van Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1587–1596, Stockholmsmassan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL¨ http://proceedings.mlr.press/ $\mathtt { v 8 0 }$ /fujimoto18a.html.
|
| 204 |
+
|
| 205 |
+
Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 2052–2062, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http: //proceedings.mlr.press/v97/fujimoto19a.html.
|
| 206 |
+
|
| 207 |
+
Shixiang Gu, Timothy Lillicrap, Ilya Sutskever, and Sergey Levine. Continuous deep q-learning with model-based acceleration. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 2829–2838, New York, New York, USA, 20–22 Jun 2016. PMLR. URL http://proceedings.mlr.press/v48/gu16.html.
|
| 208 |
+
|
| 209 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1861–1870, Stockholmsmassan, ¨ Stockholm Sweden, 10–15 Jul 2018a. PMLR. URL http://proceedings.mlr.press/ v80/haarnoja18b.html.
|
| 210 |
+
|
| 211 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1861–1870, Stockholmsmassan, ¨ Stockholm Sweden, 10–15 Jul 2018b. PMLR. URL http://proceedings.mlr.press/ v80/haarnoja18b.html.
|
| 212 |
+
|
| 213 |
+
Hirotaka Hachiya, Takayuki Akiyama, Masashi Sugiayma, and Jan Peters. Adaptive importance sampling for value function approximation in off-policy reinforcement learning. Neural Netw., 22(10):1399–1410, December 2009. ISSN 0893-6080. doi: 10.1016/j.neunet.2009.01.002. URL http://dx.doi.org/10.1016/j.neunet.2009.01.002.
|
| 214 |
+
|
| 215 |
+
Danijar Hafner, James Davidson, and Vincent Vanhoucke. Tensorflow agents: Efficient batched reinforcement learning in tensorflow. CoRR, abs/1709.02878, 2017. URL http://arxiv. org/abs/1709.02878.
|
| 216 |
+
|
| 217 |
+
Hado van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double q-learning. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, AAAI’16, pp. 2094– 2100. AAAI Press, 2016. URL http://dl.acm.org/citation.cfm?id=3016100. 3016191.
|
| 218 |
+
|
| 219 |
+
Nicolas Heess, Dhruva TB, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, S. M. Ali Eslami, Martin A. Riedmiller, and David Silver. Emergence of locomotion behaviours in rich environments. CoRR, abs/1707.02286, 2017. URL http: //arxiv.org/abs/1707.02286.
|
| 220 |
+
|
| 221 |
+
Matteo Hessel, Joseph Modayil, Hado van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Daniel Horgan, Bilal Piot, Mohammad Gheshlaghi Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. CoRR, abs/1710.02298, 2017. URL http: //arxiv.org/abs/1710.02298.
|
| 222 |
+
|
| 223 |
+
Sham Kakade and John Langford. Approximately optimal approximate reinforcement learning. In Proceedings of the Nineteenth International Conference on Machine Learning, ICML ’02, pp. 267–274, San Francisco, CA, USA, 2002. Morgan Kaufmann Publishers Inc. ISBN 1-55860-873-7. URL http://dl.acm.org/citation.cfm?id=645531.656005.
|
| 224 |
+
|
| 225 |
+
Jens Kober and Jan R. Peters. Policy search for motor primitives in robotics. In D. Koller, D. Schuurmans, Y. Bengio, and L. Bottou (eds.), Advances in Neural Information Processing Systems 21, pp. 849–856. Curran Associates, Inc., 2009.
|
| 226 |
+
|
| 227 |
+
Aviral Kumar, Justin Fu, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. CoRR, abs/1906.00949, 2019. URL http://arxiv.org/abs/ 1906.00949.
|
| 228 |
+
|
| 229 |
+
Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Manfred Otto Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. ICLR, 2016.
|
| 230 |
+
|
| 231 |
+
Nicolas Meuleau, Leonid Peshkin, Leslie P. Kaelbling, and Kee eung Kim. Off-policy policy search. Technical report, 2000.
|
| 232 |
+
|
| 233 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, February 2015. ISSN 00280836. URL http://dx.doi.org/10.1038/nature14236.
|
| 234 |
+
|
| 235 |
+
Remi Munos, Thomas Stepleton, Anna Harutyunyan, and Marc G. Bellemare. Safe and efficient ´ off-policy reinforcement learning. In Proceedings of the 30th International Conference on Neural Information Processing Systems, NIPS’16, pp. 1054–1062, USA, 2016. Curran Associates Inc. ISBN 978-1-5108-3881-9. URL http://dl.acm.org/citation.cfm?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ 3157096. 3157214.
|
| 236 |
+
|
| 237 |
+
Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on International Conference on Machine Learning, ICML’10, pp. 807–814, USA, 2010. Omnipress. ISBN 978-1-60558-907-7. URL http://dl.acm.org/citation.cfm?id $\equiv$ 3104322.3104425.
|
| 238 |
+
|
| 239 |
+
Gerhard Neumann. Variational inference for policy search in changing situations. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML’11, pp. 817–824, USA, 2011. Omnipress. ISBN 978-1-4503-0619-5. URL http://dl.acm.org/ citation.cfm?id=3104482.3104585.
|
| 240 |
+
|
| 241 |
+
Gerhard Neumann and Jan R. Peters. Fitted q-iteration by advantage weighted regression. In D. Koller, D. Schuurmans, Y. Bengio, and L. Bottou (eds.), Advances in Neural Information Processing Systems 21, pp. 1177–1184. Curran Associates, Inc., 2009.
|
| 242 |
+
|
| 243 |
+
Junhyuk Oh, Yijie Guo, Satinder Singh, and Honglak Lee. Self-imitation learning. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 3878–3887, Stockholmsmassan, ¨ Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/ v80/oh18b.html.
|
| 244 |
+
|
| 245 |
+
Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, July 2017.
|
| 246 |
+
|
| 247 |
+
Xue Bin Peng, Pieter Abbeel, Sergey Levine, and Michiel van de Panne. Deepmimic: Exampleguided deep reinforcement learning of physics-based character skills. ACM Trans. Graph., 37 (4):143:1–143:14, July 2018. ISSN 0730-0301. doi: 10.1145/3197517.3201311. URL http: //doi.acm.org/10.1145/3197517.3201311.
|
| 248 |
+
|
| 249 |
+
Jan Peters and Stefan Schaal. Reinforcement learning by reward-weighted regression for operational space control. In Proceedings of the 24th International Conference on Machine Learning, ICML ’07, pp. 745–750, New York, NY, USA, 2007. ACM. ISBN 978-1-59593-793-3. doi: 10.1145/ 1273496.1273590. URL http://doi.acm.org/10.1145/1273496.1273590.
|
| 250 |
+
|
| 251 |
+
Jan Peters, Katharina Mulling, and Yasemin Alt ¨ un. Relative entropy policy search. In ¨ Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence, AAAI’10, pp. 1607–1612. AAAI Press, 2010. URL http://dl.acm.org/citation.cfm?id=2898607.2898863.
|
| 252 |
+
|
| 253 |
+
Vitchyr Pong. Rlkit. https://github.com/vitchyr/rlkit, 2019.
|
| 254 |
+
|
| 255 |
+
Doina Precup, Richard S. Sutton, and Sanjoy Dasgupta. Off-policy temporal difference learning with function approximation. In Proceedings of the Eighteenth International Conference on Machine Learning, ICML ’01, pp. 417–424, San Francisco, CA, USA, 2001. Morgan Kaufmann Publishers Inc. ISBN 1-55860-778-1. URL http://dl.acm.org/citation.cfm?id $=$ 645530.655817.
|
| 256 |
+
|
| 257 |
+
Aravind Rajeswaran, Vikash Kumar, Abhishek Gupta, Giulia Vezzani, John Schulman, Emanuel Todorov, and Sergey Levine. Learning Complex Dexterous Manipulation with Deep Reinforcement Learning and Demonstrations. In Proceedings of Robotics: Science and Systems (RSS), 2018.
|
| 258 |
+
|
| 259 |
+
John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1889–1897, Lille, France, 07–09 Jul 2015. PMLR. URL http://proceedings.mlr. press/v37/schulman15.html.
|
| 260 |
+
|
| 261 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017. URL http://arxiv.org/abs/ 1707.06347.
|
| 262 |
+
|
| 263 |
+
Richard S. Sutton and Andrew G. Barto. Introduction to Reinforcement Learning. MIT Press, Cambridge, MA, USA, 1st edition, 1998. ISBN 0262193981.
|
| 264 |
+
|
| 265 |
+
Richard S Sutton, David A. McAllester, Satinder P. Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In S. A. Solla, T. K. Leen, and K. Muller (eds.), ¨ Advances in Neural Information Processing Systems 12, pp. 1057–1063. MIT Press, 2000.
|
| 266 |
+
|
| 267 |
+
Qing Wang, Jiechao Xiong, Lei Han, peng sun, Han Liu, and Tong Zhang. Exponentially weighted imitation learning for batched historical data. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 6288–6297. Curran Associates, Inc., 2018.
|
| 268 |
+
|
| 269 |
+
Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and ´ Nando de Freitas. Sample efficient actor-critic with experience replay. CoRR, abs/1611.01224, 2016. URL http://arxiv.org/abs/1611.01224.
|
| 270 |
+
|
| 271 |
+
Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Mach. Learn., 8(3-4):229–256, May 1992. ISSN 0885-6125. doi: 10.1007/BF00992696. URL https://doi.org/10.1007/BF00992696.
|
parse/train/ToWi1RjuEr8/ToWi1RjuEr8_content_list.json
ADDED
|
@@ -0,0 +1,1405 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ADVANTAGE-WEIGHTED REGRESSION: SIMPLE ANDSCALABLE OFF-POLICY REINFORCEMENT LEARNING",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "In this work, we aim to develop a simple and scalable reinforcement learning algorithm that uses standard supervised learning methods as subroutines, while also being able to leverage off-policy data. Our proposed approach, which we refer to as advantage-weighted regression (AWR), consists of two standard supervised learning steps: one to regress onto target values for a value function, and another to regress onto weighted target actions for the policy. The method is simple and general, can accommodate continuous and discrete actions, and can be implemented in just a few lines of code on top of standard supervised learning methods. We provide a theoretical motivation for AWR and analyze its properties when incorporating off-policy data from experience replay. We evaluate AWR on a suite of standard OpenAI Gym benchmark tasks, and show that it achieves competitive performance compared to a number of well-established state-of-the-art RL algorithms. AWR is also able to acquire more effective policies than most off-policy algorithms when learning from purely static datasets with no additional environmental interactions. Furthermore, we demonstrate our algorithm on challenging continuous control tasks with highly complex simulated characters. (Video1) ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
266,
|
| 43 |
+
766,
|
| 44 |
+
488
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
513,
|
| 55 |
+
336,
|
| 56 |
+
530
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Model-free reinforcement learning can be a general and effective methodology for training agents to acquire sophisticated behaviors with minimal assumptions on the underlying task. However, RL algorithms can be substantially more complex to implement and tune than standard supervised learning methods. Arguably the simplest reinforcement learning methods are policy gradient algorithms (Sutton et al., 2000), which directly differentiate the expected return and perform gradient ascent. Unfortunately, these methods can be notoriously unstable and are typically on-policy, often requiring a substantial number of samples to learn effective behaviors. Our goal is to develop an RL algorithm that is simple, easy to implement, and can readily incorporate off-policy data. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
539,
|
| 66 |
+
825,
|
| 67 |
+
650
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In this work, we propose advantage-weighted regression (AWR), a simple off-policy algorithm for model-free RL. Each iteration of the AWR algorithm simply consists of two supervised regression steps: one for training a value function baseline via regression onto cumulative rewards, and another for training the policy via weighted regression. The complete algorithm is shown in Algorithm 1. AWR can accommodate continuous and discrete actions, and can be implemented in just a few lines of code on top of standard supervised learning methods. Despite its simplicity, we find that AWR achieves competitive results when compared to commonly used on-policy and off-policy RL algorithms, and can effectively incorporate fully off-policy data, which has been a challenge for other RL algorithms. Our derivation presents an interpretation of AWR as a constrained policy optimization procedure, and provides a theoretical analysis of the use of off-policy data with experience replay. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
656,
|
| 77 |
+
825,
|
| 78 |
+
796
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "We first revisit the original formulation of reward-weighted regression (RWR) (Peters & Schaal, 2007), an on-policy RL method that utilizes supervised learning to perform policy updates, and then propose a number of new design decisions that significantly improve performance on a suite of standard control benchmark tasks. We then provide a theoretical analysis of AWR, including the capability to incorporate off-policy data with experience replay. Although the design of AWR involves only a few simple design decisions, we show experimentally that these additions provide for a large improvement over previous methods for regression-based policy search, such as RWR, while also being substantially simpler than more modern methods, such as MPO (Abdolmaleki et al., 2018b). We show that AWR achieves competitive performance when compared to several well-established state-of-the-art on-policy and off-policy algorithms. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
803,
|
| 88 |
+
825,
|
| 89 |
+
900
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
103,
|
| 99 |
+
825,
|
| 100 |
+
146
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "2 PRELIMINARIES ",
|
| 107 |
+
"text_level": 1,
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
159,
|
| 111 |
+
339,
|
| 112 |
+
174
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "In reinforcement learning, the objective is to learn a policy that maximizes an agent’s expected return. At each time step $t$ , the agent observes the state of the environment $\\mathbf { s } _ { t }$ , and samples an action from a policy $\\mathbf { a } _ { t } \\sim \\pi ( \\mathbf { a } _ { t } | \\mathbf { s } _ { t } )$ . The agent then applies that action, which results in a new state $\\mathbf { s } _ { t + 1 }$ and a scalar reward $r _ { t } = r ( \\mathbf { s } _ { t } , \\mathbf { a } _ { t } )$ . The goal is to learn a policy that maximizes the expected return $J ( \\pi )$ , ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
183,
|
| 122 |
+
825,
|
| 123 |
+
239
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "equation",
|
| 129 |
+
"img_path": "images/e0c503e036e5cfe84a153fe26cebd382e9154913230b839cb64507e89cd48539.jpg",
|
| 130 |
+
"text": "$$\nJ ( \\pi ) = \\mathbb { E } _ { \\tau \\sim p _ { \\pi } ( \\tau ) } \\left[ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } r _ { t } \\right] = \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\pi } ( \\mathbf { s } ) , a \\sim \\pi ( \\mathbf { a } | \\mathbf { s } ) } \\left[ r ( \\mathbf { s } , \\mathbf { a } ) \\right] ,\n$$",
|
| 131 |
+
"text_format": "latex",
|
| 132 |
+
"bbox": [
|
| 133 |
+
300,
|
| 134 |
+
244,
|
| 135 |
+
696,
|
| 136 |
+
289
|
| 137 |
+
],
|
| 138 |
+
"page_idx": 1
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"type": "text",
|
| 142 |
+
"text": "where $p _ { \\pi } ( \\tau )$ represents the likelihood of a trajectory $\\tau = \\{ ( \\mathbf { s } _ { 0 } , \\mathbf { a } _ { 0 } , r _ { 0 } ) , ( \\mathbf { s } _ { 1 } , \\mathbf { a } _ { 1 } , r _ { 1 } ) , \\ldots \\}$ under a policy $\\pi$ , and $\\gamma \\in \\ [ 0 , 1 )$ is the discount factor. $\\begin{array} { r } { d _ { \\pi } ( \\mathbf { s } ) \\ = \\ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } p ( \\mathbf { s } _ { t } \\ = \\ \\mathbf { s } | \\pi ) } \\end{array}$ represents the unnormalized discounted state distribution induced by the policy $\\pi$ (Sutton & Barto, 1998), and $p ( \\mathbf { s } _ { t } = \\mathbf { s } | \\boldsymbol { \\pi } )$ is the likelihood of the agent being in state s after following $\\pi$ for $t$ timesteps. ",
|
| 143 |
+
"bbox": [
|
| 144 |
+
173,
|
| 145 |
+
292,
|
| 146 |
+
825,
|
| 147 |
+
351
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "Our proposed AWR algorithm builds on ideas from reward-weighted regression (RWR) (Peters & Schaal, 2007), a policy search algorithm based on an expectation-maximization framework. At each iteration, the E-step constructs an estimate of the optimal policy according to $\\pi ^ { * } ( \\mathbf { a } | \\mathbf { s } ) \\ \\propto $ $\\pi _ { k } ( \\mathbf { a } | \\mathbf { s } ) \\mathrm { e x p } \\left( \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } / \\beta \\right)$ , where $\\pi _ { k }$ represents the policy at the $k$ th iteration, $\\begin{array} { r } { \\mathcal { R } _ { { \\bf s } , { \\bf a } } \\stackrel { - } { = } \\sum _ { t = 0 } ^ { \\infty } \\dot { \\gamma } ^ { t } r _ { t } } \\end{array}$ is the return, and $\\beta > 0$ is a temperature parameter. Then the M-step projects $\\pi ^ { * }$ onto the space of parameterized policies by solving a supervised regression problem: ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
173,
|
| 156 |
+
356,
|
| 157 |
+
825,
|
| 158 |
+
440
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "equation",
|
| 164 |
+
"img_path": "images/042de5afeb8fefbbe2b6066e7b46598060b80efd9d882f8fd1161f8a72c47db5.jpg",
|
| 165 |
+
"text": "$$\n\\pi _ { k + 1 } = \\arg \\operatorname* { m a x } _ { \\pi } \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\pi _ { k } } ( \\mathbf { s } ) } \\mathbb { E } _ { \\mathbf { a } \\sim \\pi _ { k } ( \\mathbf { a } | \\mathbf { s } ) } \\left[ \\log \\pi ( \\mathbf { a } | \\mathbf { s } ) \\exp \\left( \\frac { 1 } { \\beta } \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } \\right) \\right] .\n$$",
|
| 166 |
+
"text_format": "latex",
|
| 167 |
+
"bbox": [
|
| 168 |
+
271,
|
| 169 |
+
439,
|
| 170 |
+
725,
|
| 171 |
+
474
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "The RWR update can be interpreted as fitting a new policy $\\pi _ { k + 1 }$ to samples from the current policy $\\pi _ { k }$ , where the likelihood of each action is weighted by the exponentiated return for that action. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
173,
|
| 180 |
+
478,
|
| 181 |
+
823,
|
| 182 |
+
507
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "3 ADVANTAGE-WEIGHTED REGRESSION",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
520,
|
| 193 |
+
527,
|
| 194 |
+
536
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "In this work, we present advantage-weighted regression (AWR), a simple off-policy RL algorithm based on reward-weighted regression. We first provide an overview of the AWR algorithm, and then describe its theoretical motivation and analyze its properties. The AWR algorithm is summarized in Algorithm 1. Each iteration $k$ of AWR consists of the following simple steps. First, the current policy $\\pi _ { k } ( \\mathbf { a } | \\mathbf { s } )$ is used to sample a batch of trajectories $\\{ \\tau _ { i } \\}$ that are then stored in the replay buffer $\\mathcal { D }$ , which is structured as a first-in first-out (FIFO) queue (Mnih et al., 2015). Then, a value function $V _ { k } ^ { { \\mathcal { D } } } ( { \\mathbf s } )$ is fitted to all eturn estimates eplay buffer . Finally, the $\\mathcal { D }$ , which can be done with simple Monteme buffer is used to fit a new policy using $\\begin{array} { r } { \\mathcal { R } _ { { \\bf s } , { \\bf a } } ^ { D } = \\sum _ { t = 0 } ^ { T } \\gamma ^ { t } r _ { t } } \\end{array}$ advantage-weighted regreexponentiated advantage $\\begin{array} { r } { \\exp ( \\frac { 1 } { \\beta } A ^ { D } ( { \\bf s } , { \\bf a } ) ) } \\end{array}$ state-action pair in the buffer , with the advantage given by $A ^ { \\mathcal { D } } ( \\mathbf { { s } } , \\mathbf { { a } } ) = \\mathcal { R } _ { { \\mathbf { s } } , \\mathbf { { a } } } ^ { \\mathcal { D } } - \\mathbf { \\mathcal { V } } ^ { \\mathcal { D } } ( \\mathbf { { s } } )$ and $\\beta$ is a hyperparameter. In the following subsections, we first motivate AWR as a constrained policy search problem, and then extend our analysis to incorporate experience replay. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
173,
|
| 203 |
+
544,
|
| 204 |
+
826,
|
| 205 |
+
717
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "3.1 DERIVATION ",
|
| 212 |
+
"text_level": 1,
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
733,
|
| 216 |
+
303,
|
| 217 |
+
747
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "In this section, we derive the AWR algorithm as an approximate optimization of a constrained policy search problem. Our goal is to find a policy that maximizes the expected improvement $\\mathsf { \\bar { \\eta } } ( \\pi ) \\mathsf { \\bar { = } } J ( \\pi ) \\bar { - } J ( \\mu )$ over a sampling policy $\\mu ( \\mathbf { a } | \\mathbf { s } )$ . We first derive AWR for the setting where the sampling policy is a single Markovian policy. Then, in the next section, we extend our result to data from multiple policies, as in the case of experience replay. The expected improvement $\\eta ( \\pi )$ can be expressed in terms of the advantage ${ \\mathbf { } } A ^ { \\mu } ( \\mathbf { { \\bar { s } } } , \\mathbf { { a } } ) = { \\mathbf { } } { \\mathcal { R } } _ { { \\mathbf { s } } , \\mathbf { { a } } } ^ { \\mu } - { \\mathbf { \\bar { \\psi } } } V ^ { \\mu } ( \\mathbf { s } )$ with respect to $\\mu$ (Kakade & Langford, 2002; Schulman et al., 2015): ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
173,
|
| 226 |
+
751,
|
| 227 |
+
825,
|
| 228 |
+
851
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "equation",
|
| 234 |
+
"img_path": "images/f7e35c33a05ef422d5a1e5f469105454feba29623b920f07f1e6b186e60beec8.jpg",
|
| 235 |
+
"text": "$$\n\\eta ( \\pi ) = \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\pi } ( \\mathbf { s } ) } \\mathbb { E } _ { \\mathbf { a } \\sim \\pi ( \\mathbf { a } | \\mathbf { s } ) } \\left[ \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mu } - V ^ { \\mu } ( \\mathbf { s } ) \\right] ,\n$$",
|
| 236 |
+
"text_format": "latex",
|
| 237 |
+
"bbox": [
|
| 238 |
+
351,
|
| 239 |
+
856,
|
| 240 |
+
647,
|
| 241 |
+
875
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 1
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "where $\\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mu }$ denotes the return obtained by performing action a in state s and following $\\mu$ for the following timesteps, and $\\begin{array} { r } { V ^ { \\mu } ( \\mathbf { s } ) = \\int _ { a . } \\mu ( \\mathbf { a } | \\mathbf { s } ) \\mathcal { R } _ { \\mathbf { s } } ^ { \\mathbf { a } } } \\end{array}$ $d \\mathbf { a }$ corresponds to the value function of $\\mu$ . This objective differs from the ones used in the derivations of related algorithms, such as RWR and ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
174,
|
| 250 |
+
878,
|
| 251 |
+
825,
|
| 252 |
+
924
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "Algorithm 1 Advantage-Weighted Regression ",
|
| 259 |
+
"text_level": 1,
|
| 260 |
+
"bbox": [
|
| 261 |
+
174,
|
| 262 |
+
103,
|
| 263 |
+
478,
|
| 264 |
+
118
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "table",
|
| 270 |
+
"img_path": "images/bdc39497c9a0a297478fd2d1ef6a60dcb864570d02884892fb3dad5c5f7b1e90.jpg",
|
| 271 |
+
"table_caption": [],
|
| 272 |
+
"table_footnote": [],
|
| 273 |
+
"table_body": "<table><tr><td colspan=\"2\">1:π1 ← random policy 2:D←0</td></tr><tr><td colspan=\"2\">3: for iteration k =1,..., kmax do</td></tr><tr><td>4:</td><td>add trajectories {Ti} sampled via πk to D</td></tr><tr><td>5:</td><td>V ← arg minv Es,a~D [|IRa - V(s)ll2]</td></tr><tr><td>7: end for</td><td>6:πk+1 ←arg maxEs,a~D[ogπ(a|s)exp((a-V(s))]</td></tr></table>",
|
| 274 |
+
"bbox": [
|
| 275 |
+
178,
|
| 276 |
+
122,
|
| 277 |
+
658,
|
| 278 |
+
241
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "REPS (Peters & Schaal, 2007; Peters et al., 2010; Abdolmaleki et al., 2018b), which maximize the expected return $J ( \\pi )$ instead of the expected improvement. The expected improvement directly gives rise to an objective that involves the advantage. We will see later that this yields a policy update that differ in a subtle but important way from standard RWR. As we show in our experiments, this difference results in a large empirical improvement. ",
|
| 285 |
+
"bbox": [
|
| 286 |
+
173,
|
| 287 |
+
263,
|
| 288 |
+
825,
|
| 289 |
+
334
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 2
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "The objective in Equation 3 can be difficult to optimize due to the dependency between $d _ { \\pi } ( \\mathbf { s } )$ and $\\pi$ , as well as the need to collect samples from $\\pi$ . Following Schulman et al. (2015), we can instead optimize an approximation $\\hat { \\eta } ( \\pi )$ of $\\eta ( \\pi )$ using the state distribution of $\\mu$ : ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
174,
|
| 298 |
+
340,
|
| 299 |
+
823,
|
| 300 |
+
383
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "equation",
|
| 306 |
+
"img_path": "images/08b8271f01f80af82f816af998a184b66c5b6a1945b8c75aa1e0a258e9e94ca7.jpg",
|
| 307 |
+
"text": "$$\n\\hat { \\eta } ( \\pi ) = \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\mu } ( \\mathbf { s } ) } \\mathbb { E } _ { \\mathbf { a } \\sim \\pi ( \\mathbf { a } | \\mathbf { s } ) } \\left[ \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mu } - V ^ { \\mu } ( \\mathbf { s } ) \\right] .\n$$",
|
| 308 |
+
"text_format": "latex",
|
| 309 |
+
"bbox": [
|
| 310 |
+
349,
|
| 311 |
+
385,
|
| 312 |
+
647,
|
| 313 |
+
405
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "Here, $\\hat { \\eta } ( \\pi )$ matches $\\eta ( \\pi )$ to first order (Kakade & Langford, 2002), and provides a good estimate of $\\eta$ if $\\pi$ and $\\mu$ are close in terms of the KL-divergence (Schulman et al., 2015). Using this objective, we can formulate the following constrained policy search problem: ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
176,
|
| 322 |
+
406,
|
| 323 |
+
825,
|
| 324 |
+
448
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "equation",
|
| 330 |
+
"img_path": "images/04de041cf143a8481a82e0313d2139f7c53dc50f98085490f1a1079208de9aba.jpg",
|
| 331 |
+
"text": "$$\n\\begin{array} { r l } { \\underset { \\pi } { \\arg \\operatorname* { m a x } } } & { \\displaystyle \\int _ { \\mathbf { s } } d _ { \\mu } ( \\mathbf { s } ) \\int _ { \\mathbf { a } } \\pi ( \\mathbf { a } | \\mathbf { s } ) \\left[ \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mu } - V ^ { \\mu } ( \\mathbf { s } ) \\right] d \\mathbf { a } d \\mathbf { s } } \\\\ { \\mathrm { s . t . } } & { \\displaystyle \\int _ { \\mathbf { s } } d _ { \\mu } ( \\mathbf { s } ) \\mathrm { D } _ { \\mathrm { K L } } \\left( \\pi ( \\cdot | \\mathbf { s } ) | | \\mu ( \\cdot | \\mathbf { s } ) \\right) d \\mathbf { s } \\leq \\epsilon . } \\end{array}\n$$",
|
| 332 |
+
"text_format": "latex",
|
| 333 |
+
"bbox": [
|
| 334 |
+
320,
|
| 335 |
+
449,
|
| 336 |
+
678,
|
| 337 |
+
516
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "The constraint in Equation 6 ensures that the new policy $\\pi$ is close to the data distribution of $\\mu$ , and therefore the surrogate objective $\\hat { \\eta } ( \\pi )$ remains a reasonable approximation to $\\eta ( \\pi )$ . We refer the reader to Schulman et al. (2015) for a detailed derivation and an error bound. ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
174,
|
| 346 |
+
516,
|
| 347 |
+
825,
|
| 348 |
+
559
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "We can derive AWR as an approximate solution to this constrained optimization. This derivation follows a similar procedure as Peters et al. (2010), and begins by forming the Lagrangian of the optimization problem presented above, ",
|
| 355 |
+
"bbox": [
|
| 356 |
+
176,
|
| 357 |
+
564,
|
| 358 |
+
821,
|
| 359 |
+
607
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 2
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "equation",
|
| 365 |
+
"img_path": "images/d4a6614099fbc513a14d587a93217ba47a4ee38e9d7d621a4839a5420814bd5d.jpg",
|
| 366 |
+
"text": "$$\n\\mathcal { L } ( \\pi , \\beta ) = \\int _ { \\mathbf { s } } d _ { \\mu } ( \\mathbf { s } ) \\int _ { \\mathbf { a } } \\pi ( \\mathbf { a } | \\mathbf { s } ) \\left[ \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mu } - V ^ { \\mu } ( \\mathbf { s } ) \\right] d \\mathbf { a } d \\mathbf { s } + \\beta \\left( \\epsilon - \\int _ { \\mathbf { s } } d _ { \\mu } ( \\mathbf { s } ) \\mathrm { D } _ { \\mathrm { K L } } \\left( \\pi ( \\cdot | \\mathbf { s } ) | | \\mu ( \\cdot | \\mathbf { s } ) \\right) d \\mathbf { s } \\right) ,\n$$",
|
| 367 |
+
"text_format": "latex",
|
| 368 |
+
"bbox": [
|
| 369 |
+
171,
|
| 370 |
+
608,
|
| 371 |
+
816,
|
| 372 |
+
643
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 2
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "where $\\beta$ is a Lagrange multiplier. Differentiating ${ \\mathcal { L } } ( \\pi , \\beta )$ with respect to $\\pi ( \\mathbf { a } | \\mathbf { s } )$ and solving for the optimal policy $\\pi ^ { * }$ results in the following expression for the optimal policy ",
|
| 379 |
+
"bbox": [
|
| 380 |
+
173,
|
| 381 |
+
654,
|
| 382 |
+
821,
|
| 383 |
+
683
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 2
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "equation",
|
| 389 |
+
"img_path": "images/905045d9e99c6bdb0d3819a411e6251f58bb444bfc3a8221af9f4e8869d09b28.jpg",
|
| 390 |
+
"text": "$$\n\\pi ^ { * } ( \\mathbf { a } | \\mathbf { s } ) = \\frac { 1 } { Z ( \\mathbf { s } ) } \\mu ( \\mathbf { a } | \\mathbf { s } ) \\exp \\left( \\frac { 1 } { \\beta } \\left( \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mu } - V ^ { \\mu } ( \\mathbf { s } ) \\right) \\right) ,\n$$",
|
| 391 |
+
"text_format": "latex",
|
| 392 |
+
"bbox": [
|
| 393 |
+
325,
|
| 394 |
+
683,
|
| 395 |
+
673,
|
| 396 |
+
718
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 2
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "with $Z ( \\mathbf { s } )$ being the partition function. A detailed derivation is available in Appendix A. If $\\pi$ is represented by a function approximator (e.g., a neural network), a new policy can be obtained by projecting $\\pi ^ { * }$ onto the manifold of parameterized policies, ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
174,
|
| 405 |
+
719,
|
| 406 |
+
825,
|
| 407 |
+
761
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 2
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "equation",
|
| 413 |
+
"img_path": "images/36d24f7d4abf18fae96c1a5bff8fd636bd7cf9e8d34a1ea72617d74b9a9c14bf.jpg",
|
| 414 |
+
"text": "$$\n\\begin{array} { r l } { \\underset { \\pi } { \\mathrm { a r g \\ m i n } } \\ : \\ : \\ : \\ : } & { \\mathbb { E } _ { \\mathbf { s } \\sim \\mathcal { D } } \\left[ \\mathrm { D } _ { \\mathbf { K L } } \\left( \\pi ^ { * } ( \\cdot | \\mathbf { s } ) | | \\pi ( \\cdot | \\mathbf { s } ) \\right) \\right] } \\\\ { = \\underset { \\pi } { \\mathrm { a r g \\ m a x } } \\ : \\ : \\ : \\ : } & { \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\mu } ( \\mathbf { s } ) } \\mathbb { E } _ { \\mathbf { a } \\sim \\mu ( \\mathbf { a } | \\mathbf { s } ) } \\left[ \\log \\pi ( \\mathbf { a } | \\mathbf { s } ) \\mathrm { e x p } \\left( \\frac { 1 } { \\beta } \\left( \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mu } - V ^ { \\mu } ( \\mathbf { s } ) \\right) \\right) \\right] . } \\end{array}\n$$",
|
| 415 |
+
"text_format": "latex",
|
| 416 |
+
"bbox": [
|
| 417 |
+
230,
|
| 418 |
+
762,
|
| 419 |
+
767,
|
| 420 |
+
824
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 2
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "While this derivation for AWR largely follows the derivations used in prior work (Peters et al., 2010; Abdolmaleki et al., 2018b), our expected improvement objective introduces a baseline $V ^ { \\mu } ( \\mathbf { s } )$ to the policy update, which as we show in our experiments, is a crucial component for an effective algorithm. A similar advantage-weighting scheme has been previously used for fitted Q-iteration (Neumann & Peters, 2009), where the policy is given by $\\begin{array} { r } { \\pi ( \\mathbf { a } | \\mathbf { s } ) ^ { \\cdot } = \\frac { 1 } { Z ( \\mathbf { s } ) } \\mathrm { e x p } \\left( \\left( \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mu } - V ^ { \\mu } ( \\grave { \\mathbf { s } } ) \\right) / \\beta \\right) } \\end{array}$ . In this definition, the likelihood of an action does not depend on the sampling distribution, and therefore does not enforce a trust region with respect to $\\mu$ . ",
|
| 427 |
+
"bbox": [
|
| 428 |
+
173,
|
| 429 |
+
824,
|
| 430 |
+
825,
|
| 431 |
+
924
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 2
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "3.2 EXPERIENCE REPLAY AND OFF-POLICY LEARNING ",
|
| 438 |
+
"text_level": 1,
|
| 439 |
+
"bbox": [
|
| 440 |
+
173,
|
| 441 |
+
103,
|
| 442 |
+
570,
|
| 443 |
+
117
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 3
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "A crucial design decision of AWR is the choice of sampling policy $\\mu ( \\mathbf { a } | \\mathbf { s } )$ . Standard implementations of RWR are typically on-policy, where the sampling policy is selected to be the current policy $\\mu ( \\mathbf { a } | \\mathbf { s } ) = \\pi _ { k } ( \\mathbf { a } | \\mathbf { s } )$ at iteration $k$ . This can be sample inefficient, as data collected at each iteration are discarded after a single update iteration. Importance sampling can be incorporated into RWR to reuse data from previous iterations, but at the cost of larger variance (Kober & Peters, 2009). Instead, we can improve sample efficiency of AWR by incorporating experience replay and explicitly accounting for training data from a mixture of multiple past policies. As described in Algorithm 1, at each iteration, AWR collects a batch of data using the latest policy $\\pi _ { k }$ , and then stores this data in a replay buffer $\\mathcal { D }$ , which also contains data collected from previous policies $\\{ \\pi _ { 1 } , \\cdots , \\pi _ { k } \\}$ . The value function and policy are then updated using samples drawn from $\\mathcal { D }$ . This replay strategy is analogous to modeling the sampling policy as a mixture of policies from previous iterations $\\begin{array} { r } { \\mu _ { k } ( \\tau ) = \\sum _ { i = 1 } ^ { k } w _ { i } \\pi _ { i } ( \\tau ) } \\end{array}$ , where $\\pi _ { i } ( \\tau ) = p ( \\tau | \\pi _ { i } )$ represents the likelihood of a trajectory $\\tau$ under a policy $\\pi _ { i }$ from the ith iteration, and the weight $w _ { i }$ specify the probability of selecting $\\pi _ { i }$ . ",
|
| 450 |
+
"bbox": [
|
| 451 |
+
173,
|
| 452 |
+
128,
|
| 453 |
+
825,
|
| 454 |
+
314
|
| 455 |
+
],
|
| 456 |
+
"page_idx": 3
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"type": "text",
|
| 460 |
+
"text": "We now extend the derivation from the previous section to the off-policy setting with experience replay, and show that Algorithm 1 indeed optimizes the expected improvement over a sampling policy modeled by the replay buffer. Given a replay buffer consisting of trajectories from past policies, the joint state-action distribution of $\\mu$ is given by $\\begin{array} { r } { \\mu ( \\mathbf { s } , \\mathbf { a } ) = \\sum _ { i = 1 } ^ { k } w _ { i } d _ { \\pi _ { i } } ( \\mathbf { s } ) \\pi _ { i } ( \\mathbf { a } | \\mathbf { s } ) } \\end{array}$ , and similarly for the marginal state distribution $\\begin{array} { r } { d _ { \\mu } ( \\mathbf { s } ) = \\sum _ { i = 1 } ^ { k } w _ { i } d _ { \\pi _ { i } } ( \\mathbf { s } ) } \\end{array}$ . The expected improvement can now be expressed with respect to the set of sampling policies in the replay buffer, ",
|
| 461 |
+
"bbox": [
|
| 462 |
+
173,
|
| 463 |
+
319,
|
| 464 |
+
826,
|
| 465 |
+
410
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "equation",
|
| 471 |
+
"img_path": "images/dd7414402fec6108d138bf126c5e6d28947900f317c1d191d79d4af4e8d0705c.jpg",
|
| 472 |
+
"text": "$$\n\\eta ( \\pi ) = J ( \\pi ) - \\sum _ { i } w _ { i } J ( \\pi _ { i } ) = \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\pi } ( \\mathbf { s } ) } \\mathbb { E } _ { \\mathbf { a } \\sim \\pi ( \\mathbf { a } | \\mathbf { s } ) } \\left[ \\sum _ { i } w _ { i } A ^ { \\pi _ { i } } ( \\mathbf { s } , \\mathbf { a } ) \\right] ,\n$$",
|
| 473 |
+
"text_format": "latex",
|
| 474 |
+
"bbox": [
|
| 475 |
+
263,
|
| 476 |
+
407,
|
| 477 |
+
733,
|
| 478 |
+
449
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 3
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "where $A ^ { \\pi _ { i } } ( \\mathbf { s } , \\mathbf { a } ) = \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\pi _ { i } } - V ^ { \\pi _ { i } } ( \\mathbf { s } )$ is the advantage with respect to each sampling policy. In Appendix $\\mathbf { B }$ , we show that the update procedure in Algorithm 1 optimizes the following objective: ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
174,
|
| 487 |
+
454,
|
| 488 |
+
823,
|
| 489 |
+
483
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 3
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "equation",
|
| 495 |
+
"img_path": "images/ca4b32e487d3f21916fa49a578b2cf61399ec2dbb60472981794e202bd5f722a.jpg",
|
| 496 |
+
"text": "$$\n\\begin{array} { r l } & { \\underset { \\pi } { \\arg \\operatorname* { m a x } } \\sum _ { i = 1 } ^ { k } w _ { i } \\left( \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\pi _ { i } } ( \\mathbf { s } ) } \\mathbb { E } _ { \\mathbf { a } \\sim \\pi ( \\mathbf { a } | \\mathbf { s } ) } \\left[ A ^ { \\pi _ { i } } ( \\mathbf { s } , \\mathbf { a } ) \\right] \\right) } \\\\ & { \\quad \\mathbf { s } . \\mathbf { t } . \\quad \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\mu } ( \\mathbf { s } ) } \\left[ \\operatorname { D } _ { \\mathrm { K L } } \\left( \\pi ( \\cdot | \\mathbf { s } ) | | \\mu ( \\cdot | \\mathbf { s } ) \\right) \\right] \\leq \\epsilon , } \\end{array}\n$$",
|
| 497 |
+
"text_format": "latex",
|
| 498 |
+
"bbox": [
|
| 499 |
+
328,
|
| 500 |
+
483,
|
| 501 |
+
666,
|
| 502 |
+
547
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 3
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "where µ(a|s) = µ(s,a) = Pi widπi (s)πi(a|s) represents the conditional action distribution defined by the replay buffer. This objective can be solved via the Lagrangian to yield the following update: ",
|
| 509 |
+
"bbox": [
|
| 510 |
+
174,
|
| 511 |
+
551,
|
| 512 |
+
825,
|
| 513 |
+
589
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 3
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "equation",
|
| 519 |
+
"img_path": "images/610d83fb4461d7d6696dc6e5b454ef2e832925af2797f31aa9ab35c5feebe95a.jpg",
|
| 520 |
+
"text": "$$\n\\arg \\operatorname* { m a x } _ { \\pi } \\sum _ { i = 1 } ^ { k } w _ { i } \\mathbb { E } _ { \\mathbf { s } \\sim d _ { \\pi _ { i } } ( \\mathbf { s } ) } \\mathbb { E } _ { \\mathbf { a } \\sim \\pi _ { i } ( \\mathbf { a } | \\mathbf { s } ) } \\left[ \\log \\pi ( \\mathbf { a } | \\mathbf { s } ) \\mathrm { e x p } \\left( \\frac { 1 } { \\beta } \\left( \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\pi _ { i } } - \\frac { \\sum _ { j } w _ { j } d _ { \\pi _ { j } } ( \\mathbf { s } ) V ^ { \\pi _ { j } } ( \\mathbf { s } ) } { \\sum _ { j } w _ { j } d _ { \\pi _ { j } } ( \\mathbf { s } ) } \\right) \\right) \\right] ,\n$$",
|
| 521 |
+
"text_format": "latex",
|
| 522 |
+
"bbox": [
|
| 523 |
+
181,
|
| 524 |
+
593,
|
| 525 |
+
815,
|
| 526 |
+
637
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 3
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "where the expectations can be approximated by simply sampling from $\\mathcal { D }$ following Line 6 of Algorithm 1. A detailed derivation is available in Appendix B. Note, the baseline in the exponent now consists of an average of the value functions of the different policies. This mean value function $\\bar { V } ( \\mathbf { s } )$ can be fitted by simply sampling from the replay buffer following Line 5 of Algorithm 1, ",
|
| 533 |
+
"bbox": [
|
| 534 |
+
174,
|
| 535 |
+
655,
|
| 536 |
+
825,
|
| 537 |
+
712
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 3
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "equation",
|
| 543 |
+
"img_path": "images/4ed4c423d2a71d70f13729e0b9e92fc8318e582740877940e770278d02d1528c.jpg",
|
| 544 |
+
"text": "$$\n\\bar { V } = \\underset { V } { \\arg \\operatorname* { m i n } } \\sum _ { i } w _ { i } \\mathbb { E } _ { { \\mathbf s } , \\sim d _ { \\pi _ { i } } ( { \\mathbf s } ) , { \\mathbf a } \\sim \\pi _ { i } ( { \\mathbf a } | { \\mathbf s } ) } \\left[ | | \\mathcal { R } _ { { \\mathbf s } , { \\mathbf a } } ^ { \\pi _ { i } } - V ( { \\mathbf s } ) | | ^ { 2 } \\right] .\n$$",
|
| 545 |
+
"text_format": "latex",
|
| 546 |
+
"bbox": [
|
| 547 |
+
299,
|
| 548 |
+
717,
|
| 549 |
+
699,
|
| 550 |
+
750
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 3
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "The optimal solution $\\begin{array} { r } { \\bar { V } ( \\mathbf { s } ) = \\frac { \\sum _ { i } w _ { i } d _ { \\pi _ { i } } ( \\mathbf { s } ) V ^ { \\pi _ { i } } ( \\mathbf { s } ) } { \\sum _ { j } w _ { j } d _ { \\pi _ { j } } ( \\mathbf { s } ) } } \\end{array}$ is exactly the baseline in Equation 14. ",
|
| 557 |
+
"bbox": [
|
| 558 |
+
174,
|
| 559 |
+
753,
|
| 560 |
+
736,
|
| 561 |
+
780
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 3
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "3.3 IMPLEMENTATION DETAILS ",
|
| 568 |
+
"text_level": 1,
|
| 569 |
+
"bbox": [
|
| 570 |
+
176,
|
| 571 |
+
787,
|
| 572 |
+
406,
|
| 573 |
+
803
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 3
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "Finally, we discuss several important design decisions for a practical implementation of AWR. Monte Carlo estimates can be used to approximate the expected return $\\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mathcal { D } }$ , but this can result in a highvariance estimate. Instead, we approximate $\\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mathcal { D } }$ using $\\mathrm { T D } ( \\lambda )$ to obtain a lower-variance estimate (Sutton & Barto, 1998). $\\mathrm { T D } ( \\lambda )$ is applied by bootstrapping with the value function $V _ { k - 1 } ^ { \\mathcal { D } }$ (s) from the previous iteration. To set the value of the Lagrange multiplier $\\beta$ , we found that a simple adaptive heuristic of setting $\\beta$ to the standard deviation of all advantage values $\\sigma _ { A }$ in the replay buffer works well in practice. This is akin to the advantage normalization technique commonly used in implementations of algorithms such as PPO (Dhariwal et al., 2017). Details are available in Appendix C. ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
173,
|
| 582 |
+
806,
|
| 583 |
+
825,
|
| 584 |
+
924
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 3
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "image",
|
| 590 |
+
"img_path": "images/7c0e471687ed55416395d8d259768717763e8d9157d805db1e6137351b93ea0e.jpg",
|
| 591 |
+
"image_caption": [
|
| 592 |
+
"Figure 1: Snapshots of AWR policies trained on OpenAI Gym and motion imitation tasks. Our simple algorithm learns effective policies for a diverse suite of control tasks. "
|
| 593 |
+
],
|
| 594 |
+
"image_footnote": [],
|
| 595 |
+
"bbox": [
|
| 596 |
+
178,
|
| 597 |
+
107,
|
| 598 |
+
820,
|
| 599 |
+
260
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 4
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "The weights $\\begin{array} { r } { \\omega _ { \\mathbf { s } , \\mathbf { a } } ^ { D } = \\exp \\Big ( \\frac { 1 } { \\beta } \\left( \\mathcal { R } _ { \\mathbf { s } , \\mathbf { a } } ^ { D } - V ^ { \\mathcal { D } } ( \\mathbf { s } ) \\right) \\Big ) } \\end{array}$ used to update the policy can occasionally assume excessively large values, which causes gradients to explode. Therefore, we apply weight clipping $\\hat { \\omega } _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mathcal { D } } = \\operatorname* { m i n } \\left( \\omega _ { \\mathbf { s } , \\mathbf { a } } ^ { \\mathbf { \\breve { D } } } , \\omega _ { \\operatorname* { m a x } } \\right)$ with a threshold $\\omega _ { \\mathrm { m a x } }$ to prevent exploding weights. ",
|
| 606 |
+
"bbox": [
|
| 607 |
+
174,
|
| 608 |
+
303,
|
| 609 |
+
825,
|
| 610 |
+
354
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "4 RELATED WORK ",
|
| 617 |
+
"text_level": 1,
|
| 618 |
+
"bbox": [
|
| 619 |
+
176,
|
| 620 |
+
369,
|
| 621 |
+
344,
|
| 622 |
+
386
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 4
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "Existing RL methods can be broadly categorized into on-policy and off-policy algorithms (Sutton & Barto, 1998). On-policy algorithms generally update the policy using data collected from the same policy. A popular class of on-policy algorithms is policy gradient methods (Williams, 1992; Sutton et al., 2000), which can be effective for a diverse array of complex tasks (Heess et al., 2017; Pathak et al., 2017; Peng et al., 2018; Rajeswaran et al., 2018). However, on-policy algorithms are typically data inefficient. Off-policy algorithms improve sample efficiency by enabling training using data from other sources, such as data from different agents or data from previous iterations of the algorithm. Importance sampling is a simple strategy for off-policy learning (Sutton & Barto, 1998; Meuleau et al., 2000; Hachiya et al., 2009), but can introduce optimization instabilities due to the large variance of the importance sampling estimator. Dynamic programming methods based on Q-function learning can also leverage off-policy data (Precup et al., 2001; Mnih et al., 2015; Lillicrap et al., 2016; Gu et al., 2016; Haarnoja et al., 2018b). But these methods can be notoriously unstable, and in practice, require a variety of stabilization techniques (Hasselt et al., 2016; Wang et al., 2016; Munos et al., 2016; Hessel et al., 2017; Fujimoto et al., 2018; Fu et al., 2019). Furthermore, it can be difficult to apply these methods to fully off-policy data, where an agent is unable to collect additional environmental interactions (Fujimoto et al., 2019; Kumar et al., 2019). ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
174,
|
| 631 |
+
395,
|
| 632 |
+
825,
|
| 633 |
+
618
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 4
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "Policy search can also be formulated under an expectation-maximization framework (Peters et al., 2010; Neumann, 2011; Abdolmaleki et al., 2018b), an early example of which is reward-weighted regression (RWR) (Peters & Schaal, 2007). RWR presents a simple on-policy RL algorithm that casts policy search as a supervised regression problem. A similar algorithm, relative entropy policy search (REPS) (Peters et al., 2010), can also be derived from the dual formulation of a constrained policy search problem. RWR has a number appealing properties: it has a very simple update rule, and since each iteration corresponds to supervised learning, it can be more stable and easier to implement than many of the previously mentioned RL methods. Despite these advantages, RWR has not been shown to be an effective when combined with neural networks (Schulman et al., 2015; Duan et al., 2016). In this work, we propose a number of modifications to the formulation of RWR to produce an effective off-policy deep RL algorithm, while still retaining much of the simplicity of RWR. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
625,
|
| 643 |
+
825,
|
| 644 |
+
777
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 4
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "The optimization problem being solved in AWR is similar to REPS (Peters et al., 2010), but REPS optimizes the expected return instead of the expected improvement. The weights in REPS also contains a Bellman error term that resembles advantages, but are computed using a linear value function derived from a feature matching constraint. Learning the REPS value function involves minimization of a dual function, which is a complex function of the Bellman error, while the value function in AWR can be learned with simple supervised regression. More recently, Abdolmaleki et al. (2018b) proposed MPO, a deep RL variant of REPS, which applies a partial EM algorithm for policy optimization. The method first fits a Q-function of the current policy via bootstrapping, and then performs a policy improvement step with respect to this Q-function. MPO uses off-policy data for training a Q-function and employs Retrace(λ) for off-policy correction (Munos et al., 2016). In ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
784,
|
| 654 |
+
825,
|
| 655 |
+
924
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 4
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "image",
|
| 661 |
+
"img_path": "images/f4d7a3e7fde0cb6b789cbd4e6862d6eb15cff251382b73b9b8ec553ea60a54eb.jpg",
|
| 662 |
+
"image_caption": [],
|
| 663 |
+
"image_footnote": [],
|
| 664 |
+
"bbox": [
|
| 665 |
+
173,
|
| 666 |
+
103,
|
| 667 |
+
825,
|
| 668 |
+
214
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 5
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "table",
|
| 674 |
+
"img_path": "images/5dd21a85e5c4fe859e1c0e8bf61ebae24e92f3286659d0e77425a525cdcb6d1b.jpg",
|
| 675 |
+
"table_caption": [
|
| 676 |
+
"Figure 2: Learning curves of the various algorithms when applied to OpenAI Gym tasks. Results are averaged across 10 random seeds. AWR is generally competitive with the best current methods. "
|
| 677 |
+
],
|
| 678 |
+
"table_footnote": [],
|
| 679 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Task</td><td rowspan=1 colspan=1>TRPO</td><td rowspan=1 colspan=1>PPO</td><td rowspan=1 colspan=1>DDPG</td><td rowspan=1 colspan=1>TD3</td><td rowspan=1 colspan=1>SAC</td><td rowspan=1 colspan=1>LAWER</td><td rowspan=1 colspan=1>RWR</td><td rowspan=1 colspan=1>AWR (Ours)</td></tr><tr><td rowspan=1 colspan=1>Ant-v2</td><td rowspan=1 colspan=1>2901 ± 85</td><td rowspan=1 colspan=1>4884± 1249</td><td rowspan=1 colspan=1>72 ± 1550</td><td rowspan=1 colspan=1>5997 ± 765</td><td rowspan=1 colspan=1>7500±353</td><td rowspan=1 colspan=1>2240± 497</td><td rowspan=1 colspan=1>1183± 176</td><td rowspan=1 colspan=1>5372± 163</td></tr><tr><td rowspan=1 colspan=1>HalfCheetah-v2</td><td rowspan=1 colspan=1>3302 ± 428</td><td rowspan=1 colspan=1>7617 ± 185</td><td rowspan=1 colspan=1>10563 ± 382</td><td rowspan=1 colspan=1>12324 ± 1549</td><td rowspan=1 colspan=1>16223 ± 964</td><td rowspan=1 colspan=1>4596± 2331</td><td rowspan=1 colspan=1>2075±370</td><td rowspan=1 colspan=1>9192 ± 157</td></tr><tr><td rowspan=1 colspan=1>Hopper-v2</td><td rowspan=1 colspan=1>1880±337</td><td rowspan=1 colspan=1>2514± 726</td><td rowspan=1 colspan=1>855±282</td><td rowspan=1 colspan=1>2794± 15</td><td rowspan=1 colspan=1>2757±658</td><td rowspan=1 colspan=1>1830± 553</td><td rowspan=1 colspan=1>605± 114</td><td rowspan=1 colspan=1>3498±167</td></tr><tr><td rowspan=1 colspan=1>Humanoid-v2</td><td rowspan=1 colspan=1>552±9</td><td rowspan=1 colspan=1>4668 ± 1153</td><td rowspan=1 colspan=1>4382 ± 423</td><td rowspan=1 colspan=1>4738±93</td><td rowspan=1 colspan=1>6296±332</td><td rowspan=1 colspan=1>108±386</td><td rowspan=1 colspan=1>509±18</td><td rowspan=1 colspan=1>6159 ± 274</td></tr><tr><td rowspan=1 colspan=1>LunarLander-v2</td><td rowspan=1 colspan=1>104± 94</td><td rowspan=1 colspan=1>121 ± 49</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>185±23</td><td rowspan=1 colspan=1>229±2</td></tr><tr><td rowspan=1 colspan=1>Walker2d-v2</td><td rowspan=1 colspan=1>2765±168</td><td rowspan=1 colspan=1>5036± 934</td><td rowspan=1 colspan=1>401± 470</td><td rowspan=1 colspan=1>4779± 803</td><td rowspan=1 colspan=1>6210±511</td><td rowspan=1 colspan=1>2502±388</td><td rowspan=1 colspan=1>406±64</td><td rowspan=1 colspan=1>5813± 483</td></tr></table>",
|
| 680 |
+
"bbox": [
|
| 681 |
+
176,
|
| 682 |
+
255,
|
| 683 |
+
821,
|
| 684 |
+
324
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 5
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "Table 1: Final returns for different algorithms on the OpenAI Gym tasks, with $\\pm$ corresponding to one standard deviation of the average return across 10 random seeds. In terms of final performance, AWR is generally competitive with prior methods. ",
|
| 691 |
+
"bbox": [
|
| 692 |
+
174,
|
| 693 |
+
332,
|
| 694 |
+
825,
|
| 695 |
+
373
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 5
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "contrast, AWR is simpler, as it can simply fit a value function to the observed returns in a replay buffer, and performs weighted supervised regression on the actions to fit the policy. Oh et al. (2018) proposed self-imitation learning (SIL), which augments policy gradient algorithms with an auxiliary behaviour cloning loss to reuse samples from past experiences. Unlike SIL, AWR is a standalone algorithm, and does not need to be combined with an auxiliary RL algorithm. Neumann & Peters (2009) proposed LAWER, a kernel-based fitted Q-iteration algorithm where the Bellman error is weighted by the normalized advantage of each state-action pair. This was then followed by a soft-policy improvement step. Similar to Neumann & Peters (2009), AWR also uses exponentiated advantages, but LAWER’s definition of the policy is different from the one in AWR and does not enforce a trust region constraint. Furthermore, AWR does not perform fitted Q-iteration, and instead utilizes off-policy data in a simple constrained policy search procedure. Wang et al. (2018) applied a similar advantage-weighting scheme for imitation learning, but the method was not demonstrated for the RL setting. In this work, we propose several design decisions that are vital for an effective RL algorithm. We also provide a theoretical analysis of AWR when combined with experience replay, and show that the algorithm optimizes the expected improvement with respect to a mixture of policies modeled by a replay buffer. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
173,
|
| 704 |
+
383,
|
| 705 |
+
825,
|
| 706 |
+
592
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "5 EXPERIMENTS ",
|
| 713 |
+
"text_level": 1,
|
| 714 |
+
"bbox": [
|
| 715 |
+
176,
|
| 716 |
+
604,
|
| 717 |
+
326,
|
| 718 |
+
619
|
| 719 |
+
],
|
| 720 |
+
"page_idx": 5
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"type": "text",
|
| 724 |
+
"text": "Our experiments aim to comparatively evaluate the performance of AWR with commonly used on-policy and off-policy deep RL algorithms. We evaluate our method on the OpenAI Gym benchmarks (Brockman et al., 2016), consisting of discrete and continuous control tasks. We also evaluate our method on complex motion imitation tasks with high-dimensional simulated characters. We then demonstrate the effectiveness of AWR on fully off-policy learning, by training on static datasets of demonstrations from demo policies. Behaviors learned by the policies are best seen in the supplementary video1. Code for our implementation of AWR is available at sites.google.com/view/awr-supp/. Detailed hyperparameter settings are provided in Appendix C. ",
|
| 725 |
+
"bbox": [
|
| 726 |
+
174,
|
| 727 |
+
628,
|
| 728 |
+
826,
|
| 729 |
+
739
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 5
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "5.1 BENCHMARKS ",
|
| 736 |
+
"text_level": 1,
|
| 737 |
+
"bbox": [
|
| 738 |
+
174,
|
| 739 |
+
757,
|
| 740 |
+
315,
|
| 741 |
+
771
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 5
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "We compare AWR to a number of state-of-the-art RL algorithms, including on-policy algorithms, such as TRPO (Schulman et al., 2015) and PPO (Schulman et al., 2017), off-policy algorithms, such as DDPG (Lillicrap et al., 2016), TD3 (Fujimoto et al., 2018), and SAC (Haarnoja et al., 2018a), as well as RWR (Peters & Schaal, 2007) and LAWER (Neumann & Peters, 2009).2 TRPO, PPO, and DDPG use the implementations from OpenAI baselines (Dhariwal et al., 2017). TD3 and SAC use the implementations from Fujimoto et al. (2018) and Haarnoja et al. (2018a). RWR and LAWER are implemented following the descriptions in Peters & Schaal (2007) and Neumann & Peters (2009), but neural networks are used instead of kernel-based approximators. ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
174,
|
| 750 |
+
776,
|
| 751 |
+
826,
|
| 752 |
+
887
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 5
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "image",
|
| 758 |
+
"img_path": "images/939e4b97196a5ea1baaf38ced3bafa63057a2596192d893c1385f6fc296d2543.jpg",
|
| 759 |
+
"image_caption": [
|
| 760 |
+
"Figure 3: Left: Learning curves comparing AWR with various components removed. Each component contributes to performance improvements. Right: Learning curves comparing AWR with different capacity replay buffers. AWR remains stable with large buffers containing primarily off-policy data from past iterations. "
|
| 761 |
+
],
|
| 762 |
+
"image_footnote": [],
|
| 763 |
+
"bbox": [
|
| 764 |
+
173,
|
| 765 |
+
103,
|
| 766 |
+
821,
|
| 767 |
+
200
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 6
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "Snapshots of the AWR policies are shown in Figure 1. Figure 2 shows learning curves comparing the different algorithms, and Table 1 summarizes the average returns of the final policies across 10 training runs initialized with different random seeds. Due to the slow wall-clock times of TD3 and SAC, some training runs did not have sufficient time to collect as many samples as other algorithms. Overall, AWR shows competitive performance with the state-of-the-art deep RL algorithms. It is competitive with on-policy methods, such as TRPO and PPO, in both sample efficiency and asymptotic performance. While it is not yet as sample efficient as current state-of-the-art off-policy methods, such SAC and TD3, it is able to achieve a comparable asymptotic performance on most tasks. RWR tends to perform poorly on these tasks, which suggests that, the particular modifications from AWR are critical. AWR also significantly outperforms LAWER across the various tasks. Though both methods use a similar advantaged-weighting scheme, our design decisions for AWR produce a simpler and more effective algorithm. ",
|
| 774 |
+
"bbox": [
|
| 775 |
+
174,
|
| 776 |
+
273,
|
| 777 |
+
825,
|
| 778 |
+
439
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 6
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "5.2 ABLATION EXPERIMENTS ",
|
| 785 |
+
"text_level": 1,
|
| 786 |
+
"bbox": [
|
| 787 |
+
174,
|
| 788 |
+
455,
|
| 789 |
+
393,
|
| 790 |
+
469
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 6
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "To determine the effects of various design decisions, we evaluate the performance of AWR when key components have been removed. The experiments include: an on-policy version of AWR (On-Policy), where updates use only data from the latest policy, a version of AWR without the baseline $V ( \\mathbf { s } )$ (No Baseline), and a version that uses Monte Carlo return estimates instead of $\\mathrm { T D } ( \\lambda )$ (No $\\mathrm { T D } ( \\lambda ) ,$ ). The effects of these components are illustrated in Figure 3. Overall, these design decisions appear to be vital for an effective algorithm, with the most crucial components being the use of experience replay and a baseline. Updates using only on-policy data can lead to instabilities and noticeable degradation in performance, which may be due to overfitting on a smaller dataset. Removing the baseline also noticeably hampers performance. Using simple Monte Carlo return estimates instead of $\\mathrm { T D } ( \\lambda )$ seems to be a viable alternative, and the algorithm still achieves competitive performance on some tasks. When combined, these different components yield substantial performance gains over standard RWR. ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
174,
|
| 799 |
+
477,
|
| 800 |
+
825,
|
| 801 |
+
630
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 6
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "To further evaluate the effect of experience replay, we compare policies trained using replay buffer with different capacities. Figure 3 illustrates the learning curves for buffers of size 5k, 20k, 50k, 100k, and $5 0 0 \\mathrm { k }$ , with 50k being the default buffer size in our experiments. The size of the replay buffer appears to have a significant impact on overall performance. Smaller buffer sizes can result in instabilities during training, which again may be an effect of overfitting to a smaller dataset. As the buffer size increases, AWR remains stable even when the dataset is dominated by off-policy data from previous iterations. In fact, AWR appears more stable with larger replay buffers, but progress can also become slower. Since the sampling policy $\\mu ( \\mathbf { a } | \\mathbf { s } )$ is modeled by the replay buffer, a larger buffer can limit the rate at which $\\mu$ changes by maintaining older data for more iterations. ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
174,
|
| 810 |
+
636,
|
| 811 |
+
825,
|
| 812 |
+
762
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 6
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "5.3 MOTION IMITATION ",
|
| 819 |
+
"text_level": 1,
|
| 820 |
+
"bbox": [
|
| 821 |
+
176,
|
| 822 |
+
777,
|
| 823 |
+
352,
|
| 824 |
+
791
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 6
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "In this section, we show that AWR can also solve high-dimensional tasks with complex simulated characters, including a $3 4 \\mathrm { D o F }$ humanoid and 64 DoF dog. The objective of the tasks is to imitate reference motion clips recorded using mocap. The experimental setup follows the framework proposed by Peng et al. (2018). The motions include walking and running (e.g. canter), as well as acrobatic skills, such as cartwheels and spinkicks. Figure 1 shows snapshots of the behaviors learned by the AWR. Table 2 and Figure 4 compare the performance of AWR to RWR and PPO. AWR performs well across the set of challenging skills, consistently achieving comparable or better performance than PPO. RWR struggles with controlling the humanoid, but exhibits stronger performance on the dog. This difference may be due to the more dynamic and acrobatic skills of the humanoid. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
173,
|
| 833 |
+
797,
|
| 834 |
+
825,
|
| 835 |
+
924
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 6
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "table",
|
| 841 |
+
"img_path": "images/5c391dbb9c92c96c6453612294ddb3c235e106dfe4f2c0e5931f5c4aeea4e18f.jpg",
|
| 842 |
+
"table_caption": [
|
| 843 |
+
"Table 2: Performance of algorithms on the motion imitation tasks. Returns are normalized between the minimum and maximum possible returns. "
|
| 844 |
+
],
|
| 845 |
+
"table_footnote": [],
|
| 846 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Task</td><td rowspan=1 colspan=1>PPO</td><td rowspan=1 colspan=1>RWR</td><td rowspan=1 colspan=1>AWR (Ours)</td></tr><tr><td rowspan=1 colspan=1>Humanoid:Cartwheel</td><td rowspan=1 colspan=1>0.76 ±0.02</td><td rowspan=1 colspan=1>0.03±0.01</td><td rowspan=1 colspan=1>0.78±0.07</td></tr><tr><td rowspan=1 colspan=1>Humanoid:Spinkick</td><td rowspan=1 colspan=1>0.70±0.02</td><td rowspan=1 colspan=1>0.05± 0.03</td><td rowspan=1 colspan=1>0.77± 0.04</td></tr><tr><td rowspan=1 colspan=1>Dog:Canter</td><td rowspan=1 colspan=1>0.76±0.03</td><td rowspan=1 colspan=1>0.78±0.04</td><td rowspan=1 colspan=1>0.86± 0.01</td></tr><tr><td rowspan=1 colspan=1>Dog:Trot</td><td rowspan=1 colspan=1>0.86±0.01</td><td rowspan=1 colspan=1>0.86±0.01</td><td rowspan=1 colspan=1>0.86±0.03</td></tr><tr><td rowspan=1 colspan=1>Dog:Turn</td><td rowspan=1 colspan=1>0.75±0.02</td><td rowspan=1 colspan=1>0.75±0.03</td><td rowspan=1 colspan=1>0.82±0.03</td></tr></table>",
|
| 847 |
+
"bbox": [
|
| 848 |
+
176,
|
| 849 |
+
101,
|
| 850 |
+
490,
|
| 851 |
+
188
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 7
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "image",
|
| 857 |
+
"img_path": "images/87d4ca4512b6c8070d7476d2fc3bf8e68347c115c9db6cc02518ecfc41d72dbf.jpg",
|
| 858 |
+
"image_caption": [
|
| 859 |
+
"Figure 4: Learning curves on motion imitation tasks. On these challenging tasks, AWR generally learns faster than PPO and RWR. "
|
| 860 |
+
],
|
| 861 |
+
"image_footnote": [],
|
| 862 |
+
"bbox": [
|
| 863 |
+
498,
|
| 864 |
+
94,
|
| 865 |
+
823,
|
| 866 |
+
190
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 7
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "image",
|
| 872 |
+
"img_path": "images/0a480916b5b94b57a18bb7423ee598c2c7ee342d2dff7ecf2edff2777aed5a76.jpg",
|
| 873 |
+
"image_caption": [
|
| 874 |
+
"Figure 5: Performance of various algorithms on off-policy learning tasks with static datasets. AWR is able to learn policies that are comparable or better than the original demo policies. "
|
| 875 |
+
],
|
| 876 |
+
"image_footnote": [],
|
| 877 |
+
"bbox": [
|
| 878 |
+
173,
|
| 879 |
+
242,
|
| 880 |
+
825,
|
| 881 |
+
334
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 7
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "5.4 OFF-POLICY LEARNING WITH STATIC DATASETS ",
|
| 888 |
+
"text_level": 1,
|
| 889 |
+
"bbox": [
|
| 890 |
+
173,
|
| 891 |
+
376,
|
| 892 |
+
553,
|
| 893 |
+
390
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 7
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Next, we evaluate AWR in a fully off-policy setting, where the algorithm is provided with a static dataset of experiences, and then tasked with learning the best possible policy without collecting any additional data. To evaluate our method, we use the off-policy tasks proposed by Kumar et al. (2019). The dataset consists of trajectories $\\tau = \\{ ( \\mathbf { s } _ { 0 } , \\mathbf { a } _ { 0 } , r _ { 0 } ) , ( \\mathbf { s } _ { 1 } , \\mathbf { a } _ { 1 } , r _ { 1 } ) , \\ldots \\}$ from rollouts of a demo policy. Unlike standard imitation learning tasks, which only observes the states and actions from the demo policy, the dataset also records the reward at each step. The demo policies are trained using SAC on various OpenAI Gym tasks. A dataset of 1 million timesteps is collected for each task. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
395,
|
| 903 |
+
825,
|
| 904 |
+
493
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 7
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "For AWR, we simply treat the dataset as the replay buffer $\\mathcal { D }$ and directly apply the algorithm without any modifications. Figure 5 compares AWR to the original demo policy (Demo) and a behavioral cloning policy (BC). We also include comparisons to recent off-policy methods: batch-constrained Q-learning (BCQ) (Fujimoto et al., 2019) and bootstrapping error accumulation reduction (BEAR) (Kumar et al., 2019), which have shown strong performance on off-policy learning with static datasets. Note that both of these prior methods are modifications to existing off-policy RL methods, such as TD3 and SAC, which are already quite complex. In contrast, AWR is simple and requires no modifications for the fully off-policy setting. Despite not collecting any additional data, AWR is able to learn effective policies from these fully off-policy datasets, achieving comparable or better performance than the original demo policies. On-policy methods, such as PPO performs poorly in this off-policy setting. Q-function based methods, such as TD3 and SAC, can in principle handle off-policy data but tend to struggle in practice (Fujimoto et al., 2019; Kumar et al., 2019). Unlike Q-function based methods, AWR is less susceptible to issues from out-of-distribution actions as the policy is always trained on observed actions from the behaviour data (Kumar et al., 2019). AWR also shows comparable performance to BEAR and BCQ, which are specifically designed for this off-policy setting and introduce considerable algorithmic overhead. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
173,
|
| 913 |
+
500,
|
| 914 |
+
825,
|
| 915 |
+
722
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 7
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "6 DISCUSSION AND FUTURE WORK ",
|
| 922 |
+
"text_level": 1,
|
| 923 |
+
"bbox": [
|
| 924 |
+
176,
|
| 925 |
+
736,
|
| 926 |
+
485,
|
| 927 |
+
751
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 7
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "We presented advantage-weighted regression, a simple off-policy reinforcement learning algorithm, where policy updates are performed using standard supervised learning methods. Despite its simplicity, our algorithm is able to solve challenging control tasks with complex simulated agents, and achieve competitive performance on standard benchmarks compared to a number of well-established RL algorithms. Our derivation introduces several new design decisions, and our experiments verify the importance of these components. AWR is also able to learn from fully off-policy datasets, demonstrating comparable performance to state-of-the-art off-policy methods. While AWR is effective for a diverse suite of tasks, it is not yet as sample efficient as the most efficient off-policy algorithms. We believe that exploring techniques for improving sample efficiency and performance on fully off-policy learning can open opportunities to deploy these methods in real world domains. A better theoretical understanding of the convergence properties of these algorithms, especially when combined with experience replay, could also be valuable for the development of future algorithms. ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
174,
|
| 936 |
+
757,
|
| 937 |
+
826,
|
| 938 |
+
924
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 7
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "REFERENCES ",
|
| 945 |
+
"text_level": 1,
|
| 946 |
+
"bbox": [
|
| 947 |
+
176,
|
| 948 |
+
103,
|
| 949 |
+
285,
|
| 950 |
+
117
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 8
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "Abbas Abdolmaleki, Jost Tobias Springenberg, Jonas Degrave, Steven Bohez, Yuval Tassa, Dan Belov, Nicolas Manfred Otto Heess, and Martin A. Riedmiller. Relative entropy regularized policy iteration. ArXiv, abs/1812.02256, 2018a. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
174,
|
| 959 |
+
126,
|
| 960 |
+
823,
|
| 961 |
+
167
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 8
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Abbas Abdolmaleki, Jost Tobias Springenberg, Yuval Tassa, Remi Munos, Nicolas Heess, and Martin Riedmiller. Maximum a posteriori policy optimisation. In International Conference on Learning Representations, 2018b. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ S1ANxQW0b. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
174,
|
| 970 |
+
176,
|
| 971 |
+
821,
|
| 972 |
+
219
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 8
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym, 2016. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
169,
|
| 981 |
+
228,
|
| 982 |
+
823,
|
| 983 |
+
257
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 8
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, Yuhuai Wu, and Peter Zhokhov. Openai baselines. https: //github.com/openai/baselines, 2017. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
173,
|
| 992 |
+
265,
|
| 993 |
+
825,
|
| 994 |
+
308
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 8
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. In ICML, pp. 1329–1338, 2016. URL http: //proceedings.mlr.press/v48/duan16.html. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
176,
|
| 1003 |
+
315,
|
| 1004 |
+
823,
|
| 1005 |
+
358
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 8
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Justin Fu, Aviral Kumar, Matthew Soh, and Sergey Levine. Diagnosing bottlenecks in deep qlearning algorithms. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 2021–2030, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/fu19a.html. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
173,
|
| 1014 |
+
367,
|
| 1015 |
+
826,
|
| 1016 |
+
438
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 8
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Scott Fujimoto, Herke van Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1587–1596, Stockholmsmassan, Stockholm Sweden, 10–15 Jul 2018. PMLR. URL¨ http://proceedings.mlr.press/ $\\mathtt { v 8 0 }$ /fujimoto18a.html. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
174,
|
| 1025 |
+
445,
|
| 1026 |
+
825,
|
| 1027 |
+
516
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 8
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 2052–2062, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http: //proceedings.mlr.press/v97/fujimoto19a.html. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
173,
|
| 1036 |
+
525,
|
| 1037 |
+
825,
|
| 1038 |
+
595
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 8
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Shixiang Gu, Timothy Lillicrap, Ilya Sutskever, and Sergey Levine. Continuous deep q-learning with model-based acceleration. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 2829–2838, New York, New York, USA, 20–22 Jun 2016. PMLR. URL http://proceedings.mlr.press/v48/gu16.html. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
174,
|
| 1047 |
+
603,
|
| 1048 |
+
825,
|
| 1049 |
+
674
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 8
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1861–1870, Stockholmsmassan, ¨ Stockholm Sweden, 10–15 Jul 2018a. PMLR. URL http://proceedings.mlr.press/ v80/haarnoja18b.html. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
174,
|
| 1058 |
+
683,
|
| 1059 |
+
826,
|
| 1060 |
+
766
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 8
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1861–1870, Stockholmsmassan, ¨ Stockholm Sweden, 10–15 Jul 2018b. PMLR. URL http://proceedings.mlr.press/ v80/haarnoja18b.html. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
174,
|
| 1069 |
+
775,
|
| 1070 |
+
826,
|
| 1071 |
+
859
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 8
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Hirotaka Hachiya, Takayuki Akiyama, Masashi Sugiayma, and Jan Peters. Adaptive importance sampling for value function approximation in off-policy reinforcement learning. Neural Netw., 22(10):1399–1410, December 2009. ISSN 0893-6080. doi: 10.1016/j.neunet.2009.01.002. URL http://dx.doi.org/10.1016/j.neunet.2009.01.002. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
174,
|
| 1080 |
+
867,
|
| 1081 |
+
825,
|
| 1082 |
+
924
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 8
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "Danijar Hafner, James Davidson, and Vincent Vanhoucke. Tensorflow agents: Efficient batched reinforcement learning in tensorflow. CoRR, abs/1709.02878, 2017. URL http://arxiv. org/abs/1709.02878. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
173,
|
| 1091 |
+
103,
|
| 1092 |
+
825,
|
| 1093 |
+
146
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 9
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "Hado van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double q-learning. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, AAAI’16, pp. 2094– 2100. AAAI Press, 2016. URL http://dl.acm.org/citation.cfm?id=3016100. 3016191. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
173,
|
| 1102 |
+
156,
|
| 1103 |
+
828,
|
| 1104 |
+
213
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 9
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Nicolas Heess, Dhruva TB, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, S. M. Ali Eslami, Martin A. Riedmiller, and David Silver. Emergence of locomotion behaviours in rich environments. CoRR, abs/1707.02286, 2017. URL http: //arxiv.org/abs/1707.02286. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
173,
|
| 1113 |
+
223,
|
| 1114 |
+
826,
|
| 1115 |
+
280
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 9
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "Matteo Hessel, Joseph Modayil, Hado van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Daniel Horgan, Bilal Piot, Mohammad Gheshlaghi Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. CoRR, abs/1710.02298, 2017. URL http: //arxiv.org/abs/1710.02298. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
173,
|
| 1124 |
+
291,
|
| 1125 |
+
826,
|
| 1126 |
+
347
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 9
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Sham Kakade and John Langford. Approximately optimal approximate reinforcement learning. In Proceedings of the Nineteenth International Conference on Machine Learning, ICML ’02, pp. 267–274, San Francisco, CA, USA, 2002. Morgan Kaufmann Publishers Inc. ISBN 1-55860-873-7. URL http://dl.acm.org/citation.cfm?id=645531.656005. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
174,
|
| 1135 |
+
358,
|
| 1136 |
+
826,
|
| 1137 |
+
415
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 9
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Jens Kober and Jan R. Peters. Policy search for motor primitives in robotics. In D. Koller, D. Schuurmans, Y. Bengio, and L. Bottou (eds.), Advances in Neural Information Processing Systems 21, pp. 849–856. Curran Associates, Inc., 2009. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
173,
|
| 1146 |
+
425,
|
| 1147 |
+
826,
|
| 1148 |
+
468
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 9
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Aviral Kumar, Justin Fu, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. CoRR, abs/1906.00949, 2019. URL http://arxiv.org/abs/ 1906.00949. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
173,
|
| 1157 |
+
478,
|
| 1158 |
+
825,
|
| 1159 |
+
520
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 9
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Manfred Otto Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. ICLR, 2016. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
174,
|
| 1168 |
+
531,
|
| 1169 |
+
826,
|
| 1170 |
+
574
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 9
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Nicolas Meuleau, Leonid Peshkin, Leslie P. Kaelbling, and Kee eung Kim. Off-policy policy search. Technical report, 2000. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
174,
|
| 1179 |
+
584,
|
| 1180 |
+
823,
|
| 1181 |
+
613
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 9
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, February 2015. ISSN 00280836. URL http://dx.doi.org/10.1038/nature14236. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
174,
|
| 1190 |
+
625,
|
| 1191 |
+
826,
|
| 1192 |
+
709
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 9
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "Remi Munos, Thomas Stepleton, Anna Harutyunyan, and Marc G. Bellemare. Safe and efficient ´ off-policy reinforcement learning. In Proceedings of the 30th International Conference on Neural Information Processing Systems, NIPS’16, pp. 1054–1062, USA, 2016. Curran Associates Inc. ISBN 978-1-5108-3881-9. URL http://dl.acm.org/citation.cfm?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ 3157096. 3157214. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
173,
|
| 1201 |
+
719,
|
| 1202 |
+
826,
|
| 1203 |
+
789
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 9
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on International Conference on Machine Learning, ICML’10, pp. 807–814, USA, 2010. Omnipress. ISBN 978-1-60558-907-7. URL http://dl.acm.org/citation.cfm?id $\\equiv$ 3104322.3104425. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
174,
|
| 1212 |
+
800,
|
| 1213 |
+
826,
|
| 1214 |
+
857
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 9
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "Gerhard Neumann. Variational inference for policy search in changing situations. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML’11, pp. 817–824, USA, 2011. Omnipress. ISBN 978-1-4503-0619-5. URL http://dl.acm.org/ citation.cfm?id=3104482.3104585. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
174,
|
| 1223 |
+
867,
|
| 1224 |
+
826,
|
| 1225 |
+
922
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 9
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "Gerhard Neumann and Jan R. Peters. Fitted q-iteration by advantage weighted regression. In D. Koller, D. Schuurmans, Y. Bengio, and L. Bottou (eds.), Advances in Neural Information Processing Systems 21, pp. 1177–1184. Curran Associates, Inc., 2009. ",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
178,
|
| 1234 |
+
103,
|
| 1235 |
+
823,
|
| 1236 |
+
146
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 10
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "text",
|
| 1242 |
+
"text": "Junhyuk Oh, Yijie Guo, Satinder Singh, and Honglak Lee. Self-imitation learning. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 3878–3887, Stockholmsmassan, ¨ Stockholm Sweden, 10–15 Jul 2018. PMLR. URL http://proceedings.mlr.press/ v80/oh18b.html. ",
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
173,
|
| 1245 |
+
155,
|
| 1246 |
+
826,
|
| 1247 |
+
226
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 10
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "Deepak Pathak, Pulkit Agrawal, Alexei A. Efros, and Trevor Darrell. Curiosity-driven exploration by self-supervised prediction. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, July 2017. ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
173,
|
| 1256 |
+
236,
|
| 1257 |
+
825,
|
| 1258 |
+
279
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 10
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "Xue Bin Peng, Pieter Abbeel, Sergey Levine, and Michiel van de Panne. Deepmimic: Exampleguided deep reinforcement learning of physics-based character skills. ACM Trans. Graph., 37 (4):143:1–143:14, July 2018. ISSN 0730-0301. doi: 10.1145/3197517.3201311. URL http: //doi.acm.org/10.1145/3197517.3201311. ",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
174,
|
| 1267 |
+
287,
|
| 1268 |
+
826,
|
| 1269 |
+
344
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 10
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Jan Peters and Stefan Schaal. Reinforcement learning by reward-weighted regression for operational space control. In Proceedings of the 24th International Conference on Machine Learning, ICML ’07, pp. 745–750, New York, NY, USA, 2007. ACM. ISBN 978-1-59593-793-3. doi: 10.1145/ 1273496.1273590. URL http://doi.acm.org/10.1145/1273496.1273590. ",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
174,
|
| 1278 |
+
354,
|
| 1279 |
+
825,
|
| 1280 |
+
411
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 10
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "Jan Peters, Katharina Mulling, and Yasemin Alt ¨ un. Relative entropy policy search. In ¨ Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence, AAAI’10, pp. 1607–1612. AAAI Press, 2010. URL http://dl.acm.org/citation.cfm?id=2898607.2898863. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
173,
|
| 1289 |
+
420,
|
| 1290 |
+
826,
|
| 1291 |
+
463
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 10
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "Vitchyr Pong. Rlkit. https://github.com/vitchyr/rlkit, 2019. ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
174,
|
| 1300 |
+
473,
|
| 1301 |
+
673,
|
| 1302 |
+
488
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 10
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "Doina Precup, Richard S. Sutton, and Sanjoy Dasgupta. Off-policy temporal difference learning with function approximation. In Proceedings of the Eighteenth International Conference on Machine Learning, ICML ’01, pp. 417–424, San Francisco, CA, USA, 2001. Morgan Kaufmann Publishers Inc. ISBN 1-55860-778-1. URL http://dl.acm.org/citation.cfm?id $=$ 645530.655817. ",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
173,
|
| 1311 |
+
497,
|
| 1312 |
+
825,
|
| 1313 |
+
568
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 10
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "Aravind Rajeswaran, Vikash Kumar, Abhishek Gupta, Giulia Vezzani, John Schulman, Emanuel Todorov, and Sergey Levine. Learning Complex Dexterous Manipulation with Deep Reinforcement Learning and Demonstrations. In Proceedings of Robotics: Science and Systems (RSS), 2018. ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
178,
|
| 1322 |
+
577,
|
| 1323 |
+
823,
|
| 1324 |
+
621
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 10
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1889–1897, Lille, France, 07–09 Jul 2015. PMLR. URL http://proceedings.mlr. press/v37/schulman15.html. ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
173,
|
| 1333 |
+
630,
|
| 1334 |
+
826,
|
| 1335 |
+
700
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 10
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017. URL http://arxiv.org/abs/ 1707.06347. ",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
173,
|
| 1344 |
+
710,
|
| 1345 |
+
826,
|
| 1346 |
+
752
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 10
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "Richard S. Sutton and Andrew G. Barto. Introduction to Reinforcement Learning. MIT Press, Cambridge, MA, USA, 1st edition, 1998. ISBN 0262193981. ",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
174,
|
| 1355 |
+
762,
|
| 1356 |
+
825,
|
| 1357 |
+
791
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 10
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "Richard S Sutton, David A. McAllester, Satinder P. Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In S. A. Solla, T. K. Leen, and K. Muller (eds.), ¨ Advances in Neural Information Processing Systems 12, pp. 1057–1063. MIT Press, 2000. ",
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
173,
|
| 1366 |
+
801,
|
| 1367 |
+
825,
|
| 1368 |
+
857
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 10
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "Qing Wang, Jiechao Xiong, Lei Han, peng sun, Han Liu, and Tong Zhang. Exponentially weighted imitation learning for batched historical data. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 6288–6297. Curran Associates, Inc., 2018. ",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
174,
|
| 1377 |
+
867,
|
| 1378 |
+
825,
|
| 1379 |
+
924
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 10
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and ´ Nando de Freitas. Sample efficient actor-critic with experience replay. CoRR, abs/1611.01224, 2016. URL http://arxiv.org/abs/1611.01224. ",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
176,
|
| 1388 |
+
103,
|
| 1389 |
+
826,
|
| 1390 |
+
146
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 11
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Mach. Learn., 8(3-4):229–256, May 1992. ISSN 0885-6125. doi: 10.1007/BF00992696. URL https://doi.org/10.1007/BF00992696. ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
176,
|
| 1399 |
+
155,
|
| 1400 |
+
823,
|
| 1401 |
+
196
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 11
|
| 1404 |
+
}
|
| 1405 |
+
]
|
parse/train/ToWi1RjuEr8/ToWi1RjuEr8_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ToWi1RjuEr8/ToWi1RjuEr8_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/fgd7we_uZa6/fgd7we_uZa6.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/fgd7we_uZa6/fgd7we_uZa6_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/fgd7we_uZa6/fgd7we_uZa6_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/fgd7we_uZa6/fgd7we_uZa6_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/oh71uL93yay/oh71uL93yay.md
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNIFYING GRAPH CONVOLUTIONAL NEURAL NETWORKS AND LABEL PROPAGATION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Label Propagation (LPA) and Graph Convolutional Neural Networks (GCN) are both message passing algorithms on graphs. Both solve the task of node classification but LPA propagates node label information across the edges of the graph, while GCN propagates and transforms node feature information. However, while conceptually similar, it is unclear how LPA and GCN can be combined under a unified framework to improve node classification. Here we study the relationship between LPA and GCN in terms of feature/label influence, in which we characterize how much the initial feature/label of one node influences the final feature/label of another node in GCN/LPA. Based on our theoretical analysis, we propose an end-to-end model that combines GCN and LPA. In our unified model, edge weights are learnable, and the LPA serves as regularization to assist the GCN in learning proper edge weights that lead to improved classification performance. Our model can also be seen as learning the weights for edges based on node labels, which is more task-oriented than existing feature-based attention models and topology-based diffusion models. In a number of experiments on real-world graphs, our model shows superiority over state-of-the-art graph neural networks in terms of node classification accuracy.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Consider the problem of node classification in a graph, where the goal is to learn a mapping $\mathcal { M } :$ $\nu \mathcal { L }$ from node set $\nu$ to label set $\mathcal { L }$ . Solution to this problem is widely applicable to various scenarios, e.g., inferring income of users in a social network or classifying scientific articles in a citation network. Different from a generic machine learning problem where samples are independent from each other, nodes are connected by edges in the graph, which provide additional information and require more delicate modeling. To capture the graph information, researchers have mainly designed models on the assumption that labels/features are correlated over the edges of the graph. In particular, on the label side $\mathcal { L }$ , node labels are propagated and aggregated along edges in the graph, which is known as Label Propagation Algorithm (LPA) (Zhu et al., 2005; Zhou et al., 2004; Zhang & Lee, 2007; Wang & Zhang, 2008; Karasuyama & Mamitsuka, 2013; Gong et al., 2017; Liu et al., 2019a); On the node side $\nu$ , node features are propagated along edges and transformed through neural network layers, which is known as Graph Convolutional Neural Networks (GCN)1 (Kipf & Welling, 2017; Hamilton et al., 2017; Li et al., 2018; Xu et al., 2018; Liao et al., 2019; Xu et al., 2019b; Qu et al., 2019).
|
| 12 |
+
|
| 13 |
+
GCN and LPA are related in that they propagate features and labels on the two sides of the mapping $\mathcal { M }$ , respectively. Prior work Li et al. (2019) has shown the relationship between GCN and LPA in terms of low-pass graph filtering. However, it is unclear how the discovered relationship benefits node classification. Specifically, can GCN and LPA be combined to develop a more accurate model for node classification in graphs?
|
| 14 |
+
|
| 15 |
+
Here we study the theoretical relationship between GCN and LPA from the viewpoint of feature/label influence, where we quantify how much the initial feature/label of node $v _ { b }$ influences the output feature/label of node $v _ { a }$ in GCN/LPA by studying the Jacobian/gradient of node $v _ { b }$ with respect to node $v _ { a }$ . We also prove the quantitative relationship between feature influence and label influence, i.e., the label influence of $v _ { b }$ on $v _ { a }$ equals the cumulative discounted feature influence of $v _ { b }$ on $v _ { a }$ in expectation (Theorem 1).
|
| 16 |
+
|
| 17 |
+
Based on the theoretical analysis, we propose a unified model GCN-LPA for node classification. We show that the key to improving the performance of GCN is to enable nodes of the same class to connect more strongly with each other by making edge weights/strengths trainable. Then we prove that increasing the strength of edges between the nodes of the same class is equivalent to increasing the accuracy of LPA’s predictions (Theorem 2). Therefore, we can first learn the optimal edge weights by minimizing the loss of predictions in LPA, then plug the optimal edge weights into a GCN to learn node representations. In GCN-LPA, we further combine the above two steps together and train the whole model in an end-to-end fashion, where the LPA part serves as regularization to assist the GCN part in learning proper edge weights that benefit the separation of different node classes. It is worth noticing that GCN-LPA can also be seen as learning the weights for edges based on node label information, which requires less handcrafting and is more task-oriented than existing attention models that learn edge weights based on node feature similarity (Velickoviˇ c et al.´ , 2018; Thekumparampil et al., 2018; Zhang et al., 2018; Liu et al., 2019b) or diffusion models that learn adjacency matrix based on graph topology (Klicpera et al., 2019a; Xu et al., 2019a; Abu-El-Haija et al., 2019; Klicpera et al., 2019b).
|
| 18 |
+
|
| 19 |
+
We conduct extensive experiments on five datasets, and the results indicate that our model outperforms state-of-the-art graph neural networks in terms of classification accuracy. The experimental results also show that combining GCN and LPA together is able to learn more informative edge weights thereby leading to better performance.
|
| 20 |
+
|
| 21 |
+
# 2 OUR APPROACH
|
| 22 |
+
|
| 23 |
+
In this section, we first formulate the node classification problem and briefly introduce LPA and GCN. We then prove their relationship from the viewpoints of feature influence and label influence. Based on the theoretical finding, we propose a unified model GCN-LPA, and analyze why our model is theoretically superior to vanilla GCN.
|
| 24 |
+
|
| 25 |
+
# 2.1 PROBLEM FORMULATION AND PRELIMINARIES
|
| 26 |
+
|
| 27 |
+
Consider a graph $\mathcal { G } = ( \nu , A , X , Y )$ , where $\mathcal { V } = \{ v _ { 1 } , \cdots , v _ { n } \}$ is the set of nodes, $A \in \mathbb { R } ^ { n \times n }$ is the adjacency matrix, $X$ is the feature matrix of nodes and $Y$ is labels of nodes. $a _ { i j }$ (the $i j$ -th entry of $A$ ) is the weight of the edge connecting $v _ { i }$ and $v _ { j }$ . $\mathcal { N } ( v )$ denotes the set of first-order neighbors of node $v$ in graph $\mathcal { G }$ . Each node $v _ { i }$ has a feature vector $\mathbf { x } _ { i }$ which is the $i$ -th row of $X$ , while only the first $m$ nodes $( m \ll n )$ have labels $y _ { 1 } , \cdots , y _ { m }$ from a label set $\mathcal { L } = \{ 1 , \cdots , c \}$ . The goal is to learn a mapping $\mathcal { M } : \mathcal { V } \to \mathcal { L }$ and predict labels of unlabeled nodes.
|
| 28 |
+
|
| 29 |
+
Label Propagation Algorithm. LPA (Zhu et al., 2005) assumes that two connected nodes are likely to have the same label, and thus it propagates labels iteratively along the edges. Let $Y ^ { ( k ) } =$ $[ y _ { 1 } ^ { ( k ) } , \cdot \cdot \cdot , y _ { n } ^ { ( k ) } ] ^ { \top } \in \mathbb { R } ^ { n \times c }$ ∈ Rn×c be the soft label matrix in iteration k > 0, in which the i-th row y(ki $y _ { i } ^ { ( k ) \top }$ denotes the predicted label distribution for node $v _ { i }$ in iteration $k$ . When $k = 0$ , the initial label matrix $Y ^ { ( 0 ) } = [ y _ { 1 } ^ { ( 0 ) } , \cdot \cdot \cdot , y _ { n } ^ { ( 0 ) } ] ^ { \top }$ consists of one-hot label indicator vectors $y _ { i } ^ { ( 0 ) }$ for $i = 1 , \cdots , m$ (i.e., labeled nodes) or zero vectors otherwise (i.e., unlabeled nodes). Then LPA in iteration $k$ is formulated as the following two steps:
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\begin{array} { c } { { Y ^ { ( k + 1 ) } = \tilde { A } Y ^ { ( k ) } , } } \\ { { y _ { i } ^ { ( k + 1 ) } = y _ { i } ^ { ( 0 ) } , \forall i \leq m . } } \end{array}
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
In the above equations, $\tilde { A }$ is the normalized adjacency matrix, which can be the random walk transition matrix $\tilde { A } _ { r w } = D ^ { - 1 } A$ or the symmetric transition matrix $\tilde { A } _ { s y m } = D ^ { - \frac { 1 } { 2 } } A D ^ { - \frac { 1 } { 2 } }$ , where $D$ is the diagonal degree matrix for $A$ with entries $\begin{array} { r } { d _ { i i } = \sum _ { j } a _ { i j } } \end{array}$ . Without loss of generosity, we use $\tilde { A } = \tilde { A } _ { r w }$ in this work. In Eq. (1), all nodes propagate labels to their neighbors according to normalized edge weights. Then in Eq. (2), labels of all labeled nodes are reset to their initial values, because LPA wants to persist labels of nodes which are labeled, so that unlabeled nodes do not overpower the labeled ones as the initial labels would otherwise fade away.
|
| 36 |
+
|
| 37 |
+
Graph Convolutional Neural Networks. GCN Kipf & Welling (2017) is a multi-layer feedforward neural network that propagates and transforms node features across the graph. The feature propagation scheme of GCN in layer $k$ is:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
X ^ { ( k + 1 ) } = \sigma \left( \tilde { A } X ^ { ( k ) } W ^ { ( k ) } \right) ,
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
where $W ^ { ( k ) }$ is trainable weight matrix in the $k$ -th layer, $\sigma ( \cdot )$ is an activation function, and $X ^ { ( k ) } = [ \mathbf { x } _ { 1 } ^ { ( k ) } , \cdot \cdot \cdot , \mathbf { x } _ { n } ^ { ( k ) } ] ^ { \intercal }$ are the $k$ -th layer node representations with $X ^ { ( 0 ) } = X$ . By setting the dimension of the last layer to the number of classes $c$ , the last layer can be seen as (unnormalized) label distribution predicted for a given node. The whole model can thus be optimized by minimizing the discrepancy between predicted node label distributions and ground-truth labels $Y$ .
|
| 44 |
+
|
| 45 |
+
# 2.2 FEATURE INFLUENCE AND LABEL INFLUENCE
|
| 46 |
+
|
| 47 |
+
Consider two nodes $v _ { a }$ and $v _ { b }$ in a graph. Inspired by Koh & Liang (2017) and $\mathrm { X u }$ et al. (2018), we study the relationship between GCN and LPA in terms of influence, i.e., how the output feature/label of $v _ { a }$ will change if the initial feature/label of $v _ { b }$ is varied slightly. Technically, the feature/label influence is measured by the Jacobian/gradient of the output feature/label of $v _ { a }$ with respect to the initial feature/label of $v _ { b }$ . Denote $\mathbf { x } _ { a } ^ { ( k ) }$ as the $k$ -th layer representation vector of $v _ { a }$ in GCN, and $\mathbf { x } _ { b }$ as the initial feature vector of $v _ { b }$ . We quantify the feature influence of $v _ { b }$ on $v _ { a }$ as follows:
|
| 48 |
+
|
| 49 |
+
Definition 1 (Feature influence) The feature influence of node $v _ { b }$ on node $v _ { a }$ after $k$ layers of GCN is the $L l$ -norm of the expected Jacobian matrix $\partial \mathbf { x } _ { a } ^ { ( k ) } / \partial \mathbf { x } _ { b }$ : $I _ { f } ( v _ { a } , v _ { b } ; k ) = \left. \mathbb { E } \big [ \partial \mathbf { x } _ { a } ^ { ( k ) } / \partial \mathbf { x } _ { b } \big ] \right. _ { 1 }$ . The normalized feature influence is then defined as $\begin{array} { r } { \tilde { I } _ { f } ( v _ { a } , v _ { b } ; k ) = I _ { f } ( v _ { a } , v _ { b } ; k ) / \sum _ { v _ { i } \in \mathcal { V } } I _ { f } ( v _ { a } , v _ { i } ; k ) } \end{array}$ .
|
| 50 |
+
|
| 51 |
+
We also consider the label influence of node $v _ { b }$ on node $v _ { a }$ in LPA (this implies that $v _ { a }$ is unlabeled and $v _ { b }$ is labeled). Since different label dimensions of $y _ { i } ^ { ( \cdot ) }$ do not interact with each other in LPA, we assume that all $y _ { i }$ and $y _ { i } ^ { ( \cdot ) }$ are scalars within $[ 0 , 1 ]$ (i.e., this is a binary classification task) for simplicity. Label influence is defined as follows:
|
| 52 |
+
|
| 53 |
+
Definition 2 (Label influence) The label influence of labeled node $v _ { b }$ on unlabeled node $v _ { a }$ after $k$ iterations of LPA is the gradient of $y _ { a } ^ { ( k ) }$ with respect to $y _ { b } \colon I _ { l } ( v _ { a } , v _ { b } ; k ) = \partial y _ { a } ^ { ( k ) } / \partial y _ { b }$ .
|
| 54 |
+
|
| 55 |
+
The following theorem shows the relationship between feature influence and label influence:
|
| 56 |
+
|
| 57 |
+
Theorem 1 (Relationship between feature influence and label influence) Assume the activation function used in GCN is ReLU. Denote $v _ { a }$ as an unlabeled node, $v _ { b }$ as a labeled node, and $\beta$ as the fraction of unlabeled nodes. Then the label influence of $v _ { b }$ on $v _ { a }$ after $k$ iterations of LPA equals, in expectation, to the cumulative normalized feature influence of $v _ { b }$ on $v _ { a }$ after $k$ layers of GCN:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\mathbb { E } \big [ I _ { l } ( v _ { a } , v _ { b } ; k ) \big ] = \sum _ { j = 1 } ^ { k } \beta ^ { j } \tilde { I } _ { f } ( v _ { a } , v _ { b } ; j ) .
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
Proof of Theorem 1 is in Appendix A. Intuitively, Theorem 1 shows that if $v _ { b }$ has high label influence on $v _ { a }$ , then the initial feature vector of $v _ { b }$ will also affect the output feature vector of $v _ { a }$ greatly. Theorem 1 provides the theoretical guideline for designing our unified model in the next subsection.
|
| 64 |
+
|
| 65 |
+
# 2.3 THE UNIFIED MODEL
|
| 66 |
+
|
| 67 |
+
Before introducing the proposed model, we rethink the GCN method and see what an ideal set of node representations should be like. Since we aim to classify nodes, the perfect node representation would be such that nodes with the same label are embedded closely together, which would give a large separation between different classes. Intuitively, the key to achieve this goal is to enable nodes within the same class to connect more strongly with each other, so that they are pushed together by GCN (more discussion is presented in Section 2.4). We can therefore make edge strengths/weights trainable, then learn to increase the intra-class feature influence: $\begin{array} { r } { \sum _ { i \in \mathcal { L } } \sum _ { v _ { a } , v _ { b } : y _ { a } = i , y _ { b } = i } \tilde { I } _ { f } ( v _ { a } , v _ { b } ) } \end{array}$ ( $\mathcal { L }$ is the label set), by adjusting edge weights. However, this requires operating on Jacobian matrices with the size of $d ^ { ( 0 ) } \times d ^ { ( \mathrm { \bar { \tiny { K } } } ) }$ $\bar { \boldsymbol { d } } ^ { ( 0 ) }$ and $d ^ { ( K ) }$ are the dimensions of input and output in GCN, respectively), which is impractical if initial node features are high-dimensional. Fortunately, we can turn to optimizing the intra-class label influence instead, i.e., $\begin{array} { r } { \dot { \sum _ { i \in \mathcal { L } } } \sum _ { v _ { a } , v _ { b } : y _ { a } = i , y _ { b } = i } I _ { l } ( v _ { a } , v _ { b } ) } \end{array}$ , according to Theorem 1. Note that $\begin{array} { r } { \sum _ { i \in \mathcal { L } } \sum _ { v _ { a } , v _ { b } : y _ { a } = i , y _ { b } = i } I _ { l } ( v _ { a } , v _ { b } ) = \sum _ { v _ { a } } \sum _ { v _ { b } : y _ { b } = y _ { a } } I _ { l } ( v _ { a } , v _ { b } ) } \end{array}$ . We further show, by the following theorem, that the term $\scriptstyle \sum _ { v _ { b } : y _ { b } = y _ { a } } I _ { l } ( v _ { a } , v _ { b } )$ (the total intra-class label influence on a given node $v _ { a }$ ) is proportional to the probability that $v _ { a }$ is classified correctly by LPA:
|
| 68 |
+
|
| 69 |
+
Theorem 2 (Relationship between label influence and LPA’s prediction) Consider a given node $v _ { a }$ and its label $y _ { a }$ . If we treat node $v _ { a }$ as unlabeled, then the total label influence of nodes with label $y _ { a }$ on node $v _ { a }$ is proportional to the probability that node $v _ { a }$ is classified as $y _ { a }$ by $L P A$ :
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\sum _ { v _ { b } : y _ { b } = y _ { a } } I _ { l } ( v _ { a } , v _ { b } ; k ) \propto \mathrm { P r } \big ( \hat { y } _ { a } ^ { l p a } = y _ { a } \big ) ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $\hat { y } _ { a } ^ { l p a }$ is the predicted label of $v _ { a }$ using a $k$ -iteration $L P A$
|
| 76 |
+
|
| 77 |
+
Proof of Theorem 2 is in Appendix B. Theorem 2 indicates that, if edge weights $\{ a _ { i j } \}$ maximize the probability that $v _ { a }$ is correctly classified by LPA, then they also maximize the intra-class label influence on node $v _ { a }$ . We can therefore first learn the optimal edge weights $A ^ { * }$ by minimizing the loss of predicted labels by LPA:2
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
A ^ { * } = \underset { A } { \arg \operatorname* { m i n } } L _ { l p a } ( A ) = \underset { A } { \arg \operatorname* { m i n } } \ \frac { 1 } { m } \sum _ { v _ { a } : a \leq m } J ( \hat { y } _ { a } ^ { l p a } , y _ { a } ) ,
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $J$ is the cross-entropy loss, $\hat { y } _ { a } ^ { l p a }$ and $y _ { a }$ are the predicted label distribution of $v _ { a }$ using LPA and the true one-hot label of $v _ { a }$ , respectively. $a \leq m$ means $v _ { a }$ is labeled. The optimal $A ^ { * }$ maximizes the probability that each node is correctly labeled by LPA, thus also maximizes the intra-class label influence (according to Theorem 2) and intra-class feature influence (according to Theorem 1). Since $A ^ { * }$ increases the connection strength within each class, it is expected to improve the performance of GCN compared with the original adjacency matrix $A$ . Therefore, we can plug $A ^ { * }$ into GCN to predict labels:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
X ^ { ( k + 1 ) } = \sigma ( A ^ { * } X ^ { ( k ) } W ^ { ( k ) } ) , k = 0 , 1 , \cdots , K - 1 .
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
We use $\hat { y } _ { a } ^ { g c n }$ , the $a$ -th row of $X ^ { ( K ) }$ , to denote the predicted label distribution of $v _ { a }$ using the GCN specified in Eq. (7). Then the optimal transformation matrices in the GCN can be learned by minimizing the loss of predicted labels by GCN:
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
W ^ { * } = \arg \operatorname* { m i n } _ { W } L _ { g c n } ( W , A ^ { * } ) = \arg \operatorname* { m i n } _ { W } \frac { 1 } { m } \sum _ { v _ { a } : a \leq m } J ( \hat { y } _ { a } ^ { g c n } , y _ { a } ) ,
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
It is more elegant (and empirically better) to combine the above two steps together into a multiobjective optimization problem, and train the whole model in an end-to-end fashion:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
W ^ { * } , A ^ { * } = \underset { W , A } { \arg \operatorname* { m i n } } \ L _ { g c n } ( W , A ) + \lambda L _ { l p a } ( A ) ,
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
where $\lambda$ is the balancing hyper-parameter. In this way, $L _ { l p a } ( A )$ serves as a regularization term that assists the learning of edge weights $A$ , since it is hard for GCN to learn both $W$ and $A$ simultaneously due to overfitting. The proposed GCN-LPA approach can also be seen as learning the importance of edges that can be used to reconstruct node labels accurately by LPA, then transferring this knowledge from label space to feature space for GCN.
|
| 102 |
+
|
| 103 |
+
It is also worth noticing how the optimal $A ^ { * }$ is configured. The principle here is that we do not modify the basic structure of the original graph (i.e., not adding or removing edges) but only adjusting weights of existing edges. This is equivalent to learning a positive mask matrix $M$ for the adjacency matrix $A$ and taking the Hadamard product $M \circ A = A ^ { * }$ . Each element $M _ { i j }$ can be set as either a free variable or a function of the two nodes, for example, $M _ { i j } = \log \left( \exp ( \mathbf { x } _ { i } ^ { \top } \mathbf { H } \mathbf { x } _ { j } ) + 1 \right)$ where $\mathbf { H }$ is a learnable kernel matrix for measuring feature similarity.
|
| 104 |
+
|
| 105 |
+
# 2.4 ANALYSIS OF GCN-LPA MODEL BEHAVIOR
|
| 106 |
+
|
| 107 |
+
In this subsection, we show benefits of our unified model compared with GCN by analyzing properties of embeddings produced by the two models. We first analyze the update rule of GCN for node $\begin{array} { r } { \mathbf { \Phi } _ { \upsilon i } \colon \mathbf { x } _ { i } ^ { ( k + 1 ) } = \sigma \left( \sum _ { v _ { j } \in \mathcal { N } ( v _ { i } ) } \tilde { a } _ { i j } \mathbf { x } _ { j } ^ { ( k ) } W ^ { ( k ) } \right) } \end{array}$ , where $\tilde { a } _ { i j } = a _ { i j } / d _ { i i }$ is the normalized weight of edge $( j , i )$ . This formula can be decomposed into the following two steps: (1) In aggregation step, we calculate the aggregated representation ${ \bf h } _ { i } ^ { ( k ) }$ of all neighborhoods $\begin{array} { r } { \mathcal { N } ( v _ { i } ) \colon { \mathbf { h } } _ { i } ^ { ( k ) } = \sum _ { v _ { j } \in \mathcal { N } ( v _ { i } ) } \tilde { a } _ { i j } { \mathbf { x } } _ { j } ^ { ( k ) } } \end{array}$ (2) In transformation step, the aggregated representation ${ \bf h } _ { i } ^ { ( k ) }$ is mapped to a new space by a transformation matrix and nonlinear function: x(k+1)i = σ h(k)i W (k). We show by the following theorem that the aggregation step reduces the overall distance in the embedding space between the nodes that are connected in the graph:
|
| 108 |
+
|
| 109 |
+
Theorem 3 (Shrinking property in GCN) Let $\begin{array} { r } { D ( \mathbf { x } ) = \frac { 1 } { 2 } \sum _ { v _ { i } , v _ { j } } \widetilde { a } _ { i j } \| \mathbf { x } _ { i } - \mathbf { x } _ { j } \| _ { 2 } ^ { 2 } } \end{array}$ be a distance metric over node embeddings x. Then we have $D ( \mathbf { h } ^ { ( k ) } ) \leq D ( \mathbf { x } ^ { ( k ) } )$ .
|
| 110 |
+
|
| 111 |
+
Proof of Theorem 3 is in Appendix C. Theorem 3 indicates that the overall distance among connected nodes is reduced after taking one aggregation step, which implies that connected components in the graph “shrink” and nodes within each connected component get closer to each other in the embedding space. In an ideal case where edges only connect nodes with the same label, the aggregation step will push nodes within the same class together, which greatly benefits the transformation step that acts like using a hyperplane $W ^ { ( k ) }$ for classification. However, two connected nodes may have different labels. These “noisy” edges will impede the formation of clusters and make the interclass boundary less clear.
|
| 112 |
+
|
| 113 |
+
Fortunately, in GCN-LPA, edge weights are learned by minimizing the difference between ground-truth labels and labels reconstructed
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
Figure 1: A graph with two classes of nodes, while white nodes are unlabeled (Figure 1a). To classify nodes, our model will increase the connecting strength among nodes within the same class, thereby increasing their feature/label influence on each other. In this way, our model is able to identify potential intra-class edges (bold links in Figure 1b) and strengthen their weights.
|
| 117 |
+
|
| 118 |
+
from local neighbors. This will force the model to increase the weight/bandwidth of possible paths that connect nodes with the same label, so that labels can “flow” easily along these paths for the purpose of label reconstruction. In this way, GCN-LPA is able to identify potential intra-class edges and increase their weights to assist learning clustering structures ( see Figure 1 for an illustrating example).
|
| 119 |
+
|
| 120 |
+
To empirically justify our claim, we apply a two-layer untrained GCN with randomly initialized transformation matrices to the well-known Zachary’s karate club network (Zachary, 1977) as shown in Figure 2a, which contains 34 nodes of 2 classes and 78 unweighted edges (grey solid lines). We then increase the weights of intra-class edges by ten times to simulate GCN-LPA. We find that GCN works well on this network (Figure 2b), but GCN-LPA performs even better than GCN because the node embeddings are completely linearly separable as shown in Figure 2c. To further justify our claim, we randomly add 20 “noisy” inter-class edges (grey dotted lines) to the original network, from which we observe that GCN is misled by noise and mixes nodes of two classes together (Figure 2d), but GCN-LPA still distinguishes the two clusters (Figure 2e) because it is better at “denoising” undesirable edges based on the supervised signal of labels.
|
| 121 |
+
|
| 122 |
+
# 3 CONNECTION TO EXISTING WORK
|
| 123 |
+
|
| 124 |
+
Edge weights play a key role in graph-based machine learning algorithms. In this section, we discuss three lines of related work that learn edge weights adaptively.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 2: Node embeddings of Zachary’s karate club network trained on a node classification task (red vs. blue). Figure 2a visualizes the graph. Node coordinates in Figure 2b-2e are the embedding coordinates. Notice that GCN does not produce linearly separable embeddings (Figure 2b vs. Figure 2c), while GCN-LPA performs much better even in the presence of noisy edges (Figure 2d vs. Figure 2e). Additional visualizations are included in Appendix D.
|
| 128 |
+
|
| 129 |
+
Locally Linear Embedding. Locally linear embedding (LLE) (Roweis & Saul, 2000) and its variants (Zhang & Wang, 2007; Kong et al., 2012) learn edge weights by constructing a linear dependency between a node and its neighbors, then use the learned edge weights to embed highdimensional nodes into a low-dimensional space. Our work is similar to LLE in the aspect of transferring the knowledge of edge importance from one space to another, but the difference is that LLE is an unsupervised dimension reduction method that learns the graph structure based on local proximity only, while our work is semi-supervised and explores high-order relationship among nodes.
|
| 130 |
+
|
| 131 |
+
Label Propagation Algorithm. Classical LPA (Zhu et al., 2005; Zhou et al., 2004) can only make use of node labels rather than node features. In contrast, adaptive LPA considers node features by making edge weights learnable. Typical techniques of learning edge weights include adopting kernel functions (Zhu et al., 2003; Liu et al., 2019a) (e.g., $a _ { i j } \ = \ \mathrm { { e x p } } ( - { \textstyle \sum } _ { d } ( x _ { i d } - x _ { j d } ) ^ { 2 } / \sigma _ { d } ^ { 2 } )$ where $d$ is dimensionality of features), minimizing neighborhood reconstruction error (Wang & Zhang, 2008; Karasuyama & Mamitsuka, 2013), using leave-one-out loss (Zhang & Lee, 2007), or imposing sparseness on edge weights (Hong et al., 2009). However, in these LPA variants, node features are only used to assist learning the graph structure rather than explicitly mapped to node labels, which limits their capability in node classification. Another notable difference is that adaptive LPA learns edge weights by introducing the regularizations above, while our work takes LPA itself as regularization to learn edge weights.
|
| 132 |
+
|
| 133 |
+
Attention and Diffusion on Graphs. Our method is also conceptually connected to attention mechanism on graphs, in which an attention weight $\alpha _ { i j }$ is learned between node $v _ { i }$ and $v _ { j }$ . For example, $\alpha _ { i j } = \mathrm { L e a k y R e L U } ( a ^ { \top } [ W \mathbf { x } _ { i } | | W \mathbf { x } _ { j } ] )$ in GAT (Velickovi ˇ c et al. ´ , 2018), $\alpha _ { i j } = a \cdot \cos ( W \mathbf { x } _ { i } , W \mathbf { x } _ { j } )$ in AGNN (Thekumparampil et al., 2018), $\alpha _ { i j } = ( W _ { 1 } \mathbf { x } _ { i } ) ^ { \top } W _ { 2 } \mathbf { x } _ { j }$ in GaAN (Zhang et al., 2018), and $\alpha _ { i j } = \pmb { a } ^ { \top } \operatorname { t a n h } ( W _ { 1 } \mathbf { x } _ { i } + W _ { 2 } \mathbf { x } _ { j } )$ in GeniePath (Liu et al., 2019b), where $a$ and $W$ are trainable variables. Our method is also similar to diffusion-based methods (Klicpera et al., 2019a; Xu et al., 2019a; Abu-El-Haija et al., 2019; Klicpera et al., 2019b; Jiang et al., 2019; Yang et al., 2019). Graph diffusion uses extended neighborhoods for aggregation in GNNs, which can be seen as learning a new adjacency matrix for a given graph. A significant difference between attention/diffusion mechanisms and our work is that attention/diffusion is learned based on feature similarity/graph topology, while we propose that edge weights should be consistent with the distribution of labels on the graph, which requires less handcrafting of the attention/diffusion function and is more task-oriented.
|
| 134 |
+
|
| 135 |
+
# 4 EXPERIMENTS
|
| 136 |
+
|
| 137 |
+
# 4.1 EXPERIMENT SETUP
|
| 138 |
+
|
| 139 |
+
Datasets. We use the following five datasets in our experiments. Cora, Citeseer, and Pubmed (Sen et al., 2008) are citation networks, where nodes correspond to documents, edges correspond to citation links, and each node has a sparse bag-of-words feature vector as well as a class label. We also use two co-authorship networks (Shchur et al., 2018), Coauthor-CS and Coauthor-Phy, where nodes are authors and an edge indicates that two authors co-authored a paper. Node features represent paper keywords for each author’s papers, and class labels indicate most active fields of
|
| 140 |
+
|
| 141 |
+
<table><tr><td>Method</td><td>Cora</td><td>Citeseer</td><td>Pubmed</td><td>Coauthor-CS</td><td>Coauthor-Phy</td></tr><tr><td>LR</td><td>57.1 ± 2.3</td><td>61.0±2.2</td><td>64.1 ± 3.1</td><td>86.4±0.9</td><td>86.7±1.5</td></tr><tr><td>LPA</td><td>74.4± 2.6</td><td>67.8 ± 2.1</td><td>70.5 ± 5.3</td><td>73.6 ± 3.9</td><td>86.6 ± 2.0</td></tr><tr><td>GCN</td><td>81.4 ± 1.3</td><td>71.9 ± 1.9</td><td>77.5 ± 2.9</td><td>91.1 ± 0.5</td><td>92.4 ± 1.0</td></tr><tr><td>GAT</td><td>80.7 ±1.3</td><td>71.4 ± 1.9</td><td>76.7 ± 2.3</td><td>90.5 ± 0.6</td><td>92.2 ± 0.9</td></tr><tr><td>JK-Net</td><td>81.3 ± 1.4</td><td>70.2 ±1.3</td><td>77.6 ± 0.9</td><td>90.3 ± 0.4</td><td>91.0 ± 0.7</td></tr><tr><td>GIN</td><td>74.5 ± 1.5</td><td>60.7 ±1.3</td><td>73.4 ±1.2</td><td>84.1 ± 1.9</td><td>87.3 ±1.7</td></tr><tr><td>GDC</td><td>83.2 ± 0.9</td><td>72.2 ±1.4</td><td>77.8 ± 0.8</td><td>91.4 ± 1.0</td><td>92.0± 0.7</td></tr><tr><td>GCN+LPA</td><td>78.4± 0.7</td><td>69.8 ± 1.4</td><td>74.1 ± 0.9</td><td>84.5 ±1.0</td><td>89.7 ± 0.8</td></tr><tr><td>GCN-LPA</td><td>83.0±1.4</td><td>72.6± 0.9</td><td>78.4 ± 1.5</td><td>91.9± 0.9</td><td>93.4± 1.6</td></tr></table>
|
| 142 |
+
|
| 143 |
+
Table 1: Mean and the $9 5 \%$ confidence intervals of test set accuracy for all methods and datasets.
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
Figure 3: Sensitivity to the number of LPA iterations on Citeseer dataset.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 4: Sensitivity to $\lambda$ (weight of LPA loss) on Citeseer dataset.
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 5: Training time per epoch on random graphs.
|
| 153 |
+
|
| 154 |
+
study for each author. Statistics of the five datasets are shown in Appendix E. We also calculate the intra-class edge rate (the fraction of edges that connect two nodes within the same class), which is significantly higher than inter-class edge rate in all networks. The finding supports our claim in Section 2.4 that node classification benefits from intra-class edges in a graph.
|
| 155 |
+
|
| 156 |
+
Baselines. We compare against the following baselines in our experiments. Logistic Regression (LR) is feature-based methods that do not consider the graph structure. Label Propagation (LPA) (Zhu et al., 2005), on the other hand, only consider the graph structure and ignore node features. We also compare with several GNNs: Graph Convolutional Network (GCN) (Kipf & Welling, 2017), Graph Attention Network (GAT), Jumping Knowledge Network (JK-Net) (Xu et al., 2018), Graph Isomorphism Network (GIN) (Xu et al., 2019b), and Graph Diffusion Convolution (GDC) (Klicpera et al., 2019b) (with GCN as the base model). In addition, we propose another baseline $\mathbf { G C \bar { N } + L P A }$ , which simply adds predictions of GCN and LPA together.
|
| 157 |
+
|
| 158 |
+
Experimental Setup. Our experiments focus on the transductive setting where we only know labels of part of nodes but have access to the entire graph as well as features of all nodes.3 We randomly sample 20 nodes per class as training set, 50 nodes per class as validation set, and the remaining nodes as test set. The weight of each edge is treated as a free variable during training. We train our model for 200 epochs using Adam (Kingma & Ba, 2015) and report the test set accuracy when validation set accuracy is maximized. Each experiment is repeated five times and we report the mean and the $9 5 \%$ confidence interval. We initialize weights according to Glorot & Bengio (2010) and row-normalize input features. During training, we apply L2 regularization to the transformation matrices and use the dropout technique (Srivastava et al., 2014). The settings of all other hyperparameters can be found in Appendix F.
|
| 159 |
+
|
| 160 |
+
# 4.2 RESULTS
|
| 161 |
+
|
| 162 |
+
Comparison with Baselines. The results of node classification are summarized in Table 1. Table 1 indicates that only using node features (LR) or graph structure (LPA) will lead to information loss and cannot fully exploit datasets. The results demonstrate that our proposed GCN-LPA model surpasses state-of-the-art GNN baselines. We notice that GDC is a strong baseline on Cora, but it does not perform consistently well on other datasets. In addition, $\mathrm { G C N + L P A }$ does not perform well, since it utilizes the prediction of LPA directly, making its performance limited by LPA.
|
| 163 |
+
|
| 164 |
+
<table><tr><td>Labeled node rate</td><td>5%</td><td>10%</td><td>20%</td><td>50%</td><td>80%</td></tr><tr><td>LPA</td><td>67.9 ± 2.1</td><td>68.1 ± 1.3</td><td>70.5± 1.5</td><td>72.5 ± 1.2</td><td>76.4 ±1.1</td></tr><tr><td>GCN</td><td>72.1 ± 1.9</td><td>72.5 ± 1.8</td><td>74.3 ± 0.9</td><td>76.8 ± 0.6</td><td>80.2 ±1.5</td></tr><tr><td>GCN-LPA</td><td>72.7 ± 1.2</td><td>73.2 ± 1.1</td><td>75.4 ± 1.5</td><td>78.2 ± 1.3</td><td>82.3 ± 0.9</td></tr></table>
|
| 165 |
+
|
| 166 |
+
Table 2: Accuracy of LPA, GCN, and GCN-LPA on Citeseer with different labeled node rate.
|
| 167 |
+
|
| 168 |
+
Efficacy of LPA Regularization. We investigate the influence of the number of LPA iterations and the training weight of LPA loss term $\lambda$ on the performance of classification. The results on Citeseer dataset are plotted in Figures 3 and 4, respectively, where each line corresponds to a given number of GCN layers in GCN-LPA. From Figure 3 we observe that the performance is boosted at first when the number of LPA iterations increases, then the accuracy stops increasing and decreases since a large number of LPA iterations will include more noisy nodes. Figure 4 shows that training without the LPA loss term (i.e., $\lambda = 0$ ) is more difficult than the case where $\lambda = 1 \sim 5$ , which justifies our aforementioned claim that it is hard for the GCN part to learn both transformation matrices $W$ and edge weights $A$ simultaneously without the assistance of LPA regularization.
|
| 169 |
+
|
| 170 |
+
Influence of Labeled Node Rate. To study the influence of labeled node rate on the performance of our model, we vary the ratio of labeled node rate on Citeseer from $5 \%$ to $8 0 \%$ while keeping the validation and test set fixed, and report the result in Table 2. From Table 2 we observe that GCN-LPA outperforms GCN and LPA consistently, and the improvement achieved by GCN-LPA increases when labeled node rate is larger (from $0 . 6 \%$ to $2 . 1 \%$ compared with GCN). This is because GCN-LPA requires node labels to calculate edge weights. Therefore, a larger labeled node rate will provide more information for identifying noisy edges.
|
| 171 |
+
|
| 172 |
+
Visualization of Learned Edge Weights. To intuitively understand what our model learns about edge weights, we split nodes in CoauthorCS dataset into 15 groups according to their labels, and calculate the average weights of edges connecting every pair of node groups as well as the average weights of edges within every group. The results are shown in Figure 6, where darker color indicates higher average weights of edges. It is clear that values along the diagonal (intra-class edges weights) are significantly larger than off-diagonal values (inter-class edge weights) in general, which demonstrates that GCN-LPA is able to identify the importance of edges and distinguish inter-class and intraclass edges. The visualization results are similar for other datasets.
|
| 173 |
+
|
| 174 |
+
Time Complexity. We study the training time of GCN-LPA on random graphs. We use the one-hot identity vector as feature and 0 as label for each node. The size of training set and validation set is 100 and 200, respectively, while the rest is test set. The average number of neighbors for each node is set as 5, and the number of nodes is varied from one thousand to one million. We run GCN-LPA and GCN for 100 epochs on a Microsoft Azure virtual machine with 1 NVIDIA Tesla M60 GPU, 12 Intel Xeon CPUs $\left( \mathrm { E 5 - } 2 6 9 0 \mathrm { v } 3 @ 2 . 6 0 \mathrm { G H z } \right)$ , and 128GB of RAM, using the same hyper-parameter setting as in Cora. The training time per epoch of GCN-LPA and GCN is presented in Figure 5. Our result shows that GCN-LPA requires only $9 . 2 \%$ extra training time on average compared to GCN.
|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
Figure 6: Visualization of learned edge weights in Coauthor-CS dataset.
|
| 178 |
+
|
| 179 |
+
# 5 CONCLUSION
|
| 180 |
+
|
| 181 |
+
We studies the theoretical relationship between two types of well-known graph-based algorithms for node classification, label propagation algorithm and graph convolutional neural networks, from the perspectives of feature/label influence. We then propose a unified model GCN-LPA, which learns transformation matrices and edge weights simultaneously in GCN with the assistance of LPA regularizer. We also analyze why our unified model performs better than traditional GCN in terms of node classification. Experiments on five datasets demonstrate that our model outperforms stateof-the-art baselines, and it is also highly time-efficient with respect to the size of a graph.
|
| 182 |
+
|
| 183 |
+
# REFERENCES
|
| 184 |
+
|
| 185 |
+
Sami Abu-El-Haija, Bryan Perozzi, Amol Kapoor, Nazanin Alipourfard, Kristina Lerman, Hrayr Harutyunyan, Greg Ver Steeg, and Aram Galstyan. Mixhop: Higher-order graph convolutional architectures via sparsified neighborhood mixing. In Proceedings of the 36th International Conference on Machine Learning, pp. 21–29, 2019.
|
| 186 |
+
|
| 187 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the 13th International Conference on Artificial Intelligence and Statistics, 2010.
|
| 188 |
+
|
| 189 |
+
Chen Gong, Dacheng Tao, Wei Liu, Liu Liu, and Jie Yang. Label propagation via teaching-tolearn and learning-to-teach. IEEE Transactions on Neural Networks and Learning Lystems, 28 (6), 2017.
|
| 190 |
+
|
| 191 |
+
Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems, 2017.
|
| 192 |
+
|
| 193 |
+
Cheng Hong, Zicheng Liu, and Jie Yang. Sparsity induced similarity measure for label propagation. In Proceedings of the 12th IEEE International Conference on Computer Vision. IEEE, 2009.
|
| 194 |
+
|
| 195 |
+
Bo Jiang, Ziyan Zhang, Doudou Lin, Jin Tang, and Bin Luo. Semi-supervised learning with graph learning-convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 11313–11320, 2019.
|
| 196 |
+
|
| 197 |
+
Masayuki Karasuyama and Hiroshi Mamitsuka. Manifold-based similarity adaptation for label propagation. In Advances in Neural Information Processing Systems, 2013.
|
| 198 |
+
|
| 199 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations, 2015.
|
| 200 |
+
|
| 201 |
+
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In Proceedings of the 5th International Conference on Learning Representations, 2017.
|
| 202 |
+
|
| 203 |
+
Johannes Klicpera, Aleksandar Bojchevski, and Stephan Gunnemann. Predict then propagate:¨ Graph neural networks meet personalized pagerank. In Proceedings of the 7th International Conference on Learning Representations, 2019a.
|
| 204 |
+
|
| 205 |
+
Johannes Klicpera, Stefan Weißenberger, and Stephan Gunnemann. Diffusion improves graph learn- ¨ ing. In Advances in Neural Information Processing Systems, pp. 13354–13366, 2019b.
|
| 206 |
+
|
| 207 |
+
Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning, 2017.
|
| 208 |
+
|
| 209 |
+
Deguang Kong, Chris Ding, Heng Huang, and Feiping Nie. An iterative locally linear embedding algorithm. In Proceedings of the 29th International Coference on International Conference on Machine Learning. Omnipress, 2012.
|
| 210 |
+
|
| 211 |
+
Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into graph convolutional networks for semi-supervised learning. In The 32nd AAAI Conference on Artificial Intelligence, 2018.
|
| 212 |
+
|
| 213 |
+
Qimai Li, Xiao-Ming Wu, Han Liu, Xiaotong Zhang, and Zhichao Guan. Label efficient semisupervised learning via graph filtering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9582–9591, 2019.
|
| 214 |
+
|
| 215 |
+
Renjie Liao, Zhizhen Zhao, Raquel Urtasun, and Richard S Zemel. Lanczosnet: Multi-scale deep graph convolutional networks. In Proceedings of the 7th International Conference on Learning Representations, 2019.
|
| 216 |
+
|
| 217 |
+
Yanbin Liu, Juho Lee, Minseop Park, Saehoon Kim, Eunho Yang, Sung Ju Hwang, and Yi Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. In Proceedings of the 7th International Conference on Learning Representations, 2019a.
|
| 218 |
+
|
| 219 |
+
Ziqi Liu, Chaochao Chen, Longfei Li, Jun Zhou, Xiaolong Li, Le Song, and Yuan Qi. Geniepath: Graph neural networks with adaptive receptive paths. In The 33rd AAAI Conference on Artificial Intelligence, 2019b.
|
| 220 |
+
|
| 221 |
+
Meng Qu, Yoshua Bengio, and Jian Tang. Gmnn: Graph markov neural networks. In Proceedings of the 36th International Conference on Machine Learning, 2019.
|
| 222 |
+
|
| 223 |
+
Ryan A Rossi, Luke K McDowell, David William Aha, and Jennifer Neville. Transforming graph data for statistical relational learning. Journal of Artificial Intelligence Research, 45:363–441, 2012.
|
| 224 |
+
|
| 225 |
+
Sam T Roweis and Lawrence K Saul. Nonlinear dimensionality reduction by locally linear embedding. science, 290(5500), 2000.
|
| 226 |
+
|
| 227 |
+
Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3), 2008.
|
| 228 |
+
|
| 229 |
+
Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls ¨ of graph neural network evaluation. In Neural Information Processing Systems Workshop on Relational Representation Learning, 2018.
|
| 230 |
+
|
| 231 |
+
Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1), 2014.
|
| 232 |
+
|
| 233 |
+
Kiran K Thekumparampil, Chong Wang, Sewoong Oh, and Li-Jia Li. Attention-based graph neural network for semi-supervised learning. arXiv preprint arXiv:1803.03735, 2018.
|
| 234 |
+
|
| 235 |
+
Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. In Proceedings of the 6th International Conference on Learning Representations, 2018.
|
| 236 |
+
|
| 237 |
+
Fei Wang and Changshui Zhang. Label propagation through linear neighborhoods. IEEE Transactions on Knowledge and Data Engineering, 20(1), 2008.
|
| 238 |
+
|
| 239 |
+
Bingbing Xu, Huawei Shen, Qi Cao, Keting Cen, and Xueqi Cheng. Graph convolutional networks using heat kernel for semi-supervised learning. In Proceedings of the 28th International Joint Conference on Artificial Intelligence, pp. 1928–1934. AAAI Press, 2019a.
|
| 240 |
+
|
| 241 |
+
Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation learning on graphs with jumping knowledge networks. In Proceedings of the 35th International Conference on Machine Learning, 2018.
|
| 242 |
+
|
| 243 |
+
Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In Proceedings of the 7th International Conference on Learning Representations, 2019b.
|
| 244 |
+
|
| 245 |
+
Liang Yang, Zesheng Kang, Xiaochun Cao, Di Jin, Bo Yang, and Yuanfang Guo. Topology optimization based graph convolutional network. In IJCAI, pp. 4054–4061, 2019.
|
| 246 |
+
|
| 247 |
+
Wayne W Zachary. An information flow model for conflict and fission in small groups. Journal of anthropological research, 33(4), 1977.
|
| 248 |
+
|
| 249 |
+
Jiani Zhang, Xingjian Shi, Junyuan Xie, Hao Ma, Irwin King, and Dit-Yan Yeung. Gaan: Gated attention networks for learning on large and spatiotemporal graphs. arXiv preprint arXiv:1803.07294, 2018.
|
| 250 |
+
|
| 251 |
+
Xinhua Zhang and Wee S Lee. Hyperparameter learning for graph based semi-supervised learning algorithms. In Advances in Neural Information Processing Systems, 2007.
|
| 252 |
+
|
| 253 |
+
Zhenyue Zhang and Jing Wang. Mlle: Modified locally linear embedding using multiple weights. In Advances in Neural Information Processing Systems, 2007.
|
| 254 |
+
|
| 255 |
+
Dengyong Zhou, Olivier Bousquet, Thomas N Lal, Jason Weston, and Bernhard Scholkopf. Learn- ¨ ing with local and global consistency. In Advances in Neural Information Processing Systems, 2004.
|
| 256 |
+
|
| 257 |
+
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, 2003.
|
| 258 |
+
|
| 259 |
+
Xiaojin Zhu, John Lafferty, and Ronald Rosenfeld. Semi-supervised learning with graphs. PhD thesis, Carnegie Mellon University, school of language technologies institute, 2005.
|
| 260 |
+
|
| 261 |
+
# APPENDIX
|
| 262 |
+
|
| 263 |
+
A PROOF OF THEOREM 1
|
| 264 |
+
|
| 265 |
+
Before proving Theorem 1, we first give two lemmas that demonstrate the exact form of feature influence and label influence defined in this paper. The relationship between feature influence and label influence can then be deduced from their exact forms.
|
| 266 |
+
|
| 267 |
+
Lemma 1 Assume that the nonlinear activation function in GCN is ReLU. Let $\mathcal { P } _ { k } ^ { a b }$ be a path $[ v ^ { ( k ) } , v ^ { ( k - 1 ) } , \cdot \cdot \cdot , v ^ { ( 0 ) } ]$ of length $k$ from node $v _ { a }$ to node $v _ { b }$ , where $\boldsymbol { v } ^ { ( k ) } = \boldsymbol { v } _ { a }$ , $\boldsymbol { v } ^ { ( 0 ) } = \boldsymbol { v } _ { b }$ , and $v ^ { ( i - 1 ) } \in \mathcal { N } ( v ^ { ( i ) } ) f o r i = k , \cdots , 1$ . Then we have
|
| 268 |
+
|
| 269 |
+
$$
|
| 270 |
+
\tilde { I } _ { f } ( v _ { a } , v _ { b } ; k ) = \sum _ { \mathcal { P } _ { k } ^ { a b } } \prod _ { i = k } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } ,
|
| 271 |
+
$$
|
| 272 |
+
|
| 273 |
+
where $\tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } }$ is the normalized weight of edge $( v ^ { ( i ) } , v ^ { ( i - 1 ) } )$ .
|
| 274 |
+
|
| 275 |
+
Proof. See $\mathrm { X u }$ et al. (2018) for the detailed proof.
|
| 276 |
+
|
| 277 |
+
The product term in Eq. (10) is the probability of a given path $\mathcal { P } _ { k } ^ { a b }$ . Therefore, the right hand side in Eq. (10) is the sum over probabilities of all possible paths of length $k$ from $v _ { a }$ to $v _ { b }$ , which is the probability that a random walk starting at $v _ { a }$ ends at $v _ { b }$ after taking $k$ steps.
|
| 278 |
+
|
| 279 |
+
Lemma 2 Let $\mathcal { U } _ { j } ^ { a b }$ be a path $[ v ^ { ( j ) } , v ^ { ( j - 1 ) } , \cdot \cdot \cdot , v ^ { ( 0 ) } ]$ of length $j$ from node $v _ { a }$ to node $v _ { b }$ , where $\boldsymbol { v } ^ { ( j ) } = \boldsymbol { v } _ { a }$ , $v ^ { ( 0 ) } = v _ { b }$ , $v ^ { ( i - 1 ) } \in \mathcal { N } ( v ^ { ( i ) } ) .$ for $i = j , \cdots , 1$ , and all nodes along the path are unlabeled except $v ^ { ( 0 ) }$ . Then we have
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
I _ { l } ( v _ { a } , v _ { b } ; k ) = \sum _ { j = 1 } ^ { k } \sum _ { \mathcal { U } _ { j } ^ { a b } } \prod _ { i = j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } ,
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
where $\tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } }$ is the normalized weight of edge $( v ^ { ( i ) } , v ^ { ( i - 1 ) } )$ .
|
| 286 |
+
|
| 287 |
+
To intuitively understand this lemma, note that there are two differences between Lemma 1 and Lemma 2: (1) In Lemma 1, $\tilde { I } _ { f } ( v _ { a } , v _ { b } ; k )$ sums over all paths from $v _ { a }$ to $v _ { b }$ of length $k$ , but in Lemma 2, $I _ { l } ( v _ { a } , v _ { b } ; k )$ sums over all paths from $v _ { a }$ to $v _ { b }$ of length no more than $k$ . The is because in LPA, $v _ { b }$ ’s label is reset to its initial value after each iteration, which means that the label of $v _ { b }$ serves as a constant signal that begins propagating in the graph again and again after each iteration. (2) In Lemma 1 we consider all possible paths from $v _ { a }$ to $v _ { b }$ , but in Lemma 2, the paths are restricted to contain unlabeled nodes only. The reason here is the same as above: Since the labels of labeled nodes are reset to their initial values after each iteration in LPA, the influence of $v _ { b }$ ’s label will be absorbed in labeled nodes, and the propagation of $v _ { b }$ ’s label will be cut off at these nodes. Therefore, $v _ { b }$ ’s label can only flow to $v _ { a }$ along the paths with unlabeled nodes only. See Figure 7 for an illustrating example showing the label propagation in LPA.
|
| 288 |
+
|
| 289 |
+
Proof. As mentioned above, a significant difference between LPA and GCN is that all labeled $y _ { b }$ des are of node $v _ { b }$ et to its original labappears not only as $y _ { b } ^ { ( 0 ) }$ fter each iteration, but also as every $y _ { b } ^ { ( j ) }$ PA.for $j = 1 , \cdots , k - 1$ the initial label. Therefore, the influence of $y _ { b }$ on $y _ { a } ^ { ( k ) }$ is the cumulative influence of $y _ { b } ^ { ( j ) }$ on $y _ { a } ^ { ( k ) }$ for $j = 0 , 1 , \cdots , k - 1$ :
|
| 290 |
+
|
| 291 |
+
$$
|
| 292 |
+
I _ { l } ( v _ { a } , v _ { b } ; k ) = \frac { \partial y _ { a } ^ { ( k ) } } { \partial y _ { b } } = \sum _ { j = 0 } ^ { k - 1 } \frac { \partial y _ { a } ^ { ( k ) } } { \partial y _ { b } ^ { ( j ) } } .
|
| 293 |
+
$$
|
| 294 |
+
|
| 295 |
+
According to the updating rule of LPA, we have
|
| 296 |
+
|
| 297 |
+
$$
|
| 298 |
+
\frac { \partial y _ { a } ^ { ( k ) } } { \partial y _ { b } ^ { ( j ) } } = \frac { \partial \sum _ { v _ { z } \in \mathcal { N } ( v _ { a } ) } \tilde { a } _ { a z } y _ { z } ^ { ( k - 1 ) } } { \partial y _ { b } ^ { ( j ) } } = \sum _ { v _ { z } \in \mathcal { N } ( v _ { a } ) } \tilde { a } _ { a z } \frac { \partial y _ { z } ^ { ( k - 1 ) } } { \partial y _ { b } ^ { ( j ) } } .
|
| 299 |
+
$$
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Figure 7: An illustrating example of label propagation in LPA. Suppose labels are propagated for three iterations, and no self-loop exists. Blue nodes are labeled while white nodes are unlabeled. (a) $v _ { a }$ ’s label propagates to $v _ { 1 }$ (yellow arrows). Note that the propagation of $v _ { a }$ ’s label to $v _ { 3 }$ is cut off since $v _ { 3 }$ is labeled thus absorbing $v _ { a }$ ’s label. (b) $v _ { a }$ ’s label that propagated to $v _ { 1 }$ further propagates to $v _ { 2 }$ and $v _ { b }$ (yellow arrows). Meanwhile, $v _ { a }$ ’s label is reset to its initial value then propagates from $v _ { a }$ again (green arrows). (c) Label propagation in iteration 3. Purple arrows denote the propagation of $v _ { a }$ ’s label starting from $v _ { a }$ for the third time. (d) All possible paths of length no more than three from $v _ { a }$ to $v _ { b }$ containing unlabeled nodes only. Note that there is no path of length one from $v _ { a }$ to $v _ { b }$ .
|
| 303 |
+
|
| 304 |
+
In the above equation, the derivative ∂y(k)a $\frac { \partial y _ { a } ^ { ( k ) } } { \partial y _ { b } ^ { ( j ) } }$ is decomposed into the weighted average of ∂y(k���1)z ∂ y ( j )b , where $v _ { z }$ traverses all neighbors of $v _ { a }$ . For those $v _ { z }$ ’s that are initially labeled, $y _ { z } ^ { ( k - 1 ) }$ is reset to their initial labels in each iteration. Therefore, they are always constant and independent of $y _ { b } ^ { ( j ) }$ , meaning that their derivatives w.r.t. $y _ { b } ^ { ( j ) }$ are zero. So we only need to consider the terms where $v _ { z }$ is
|
| 305 |
+
|
| 306 |
+
$$
|
| 307 |
+
\frac { \partial y _ { a } ^ { ( k ) } } { \partial y _ { b } ^ { ( j ) } } = \sum _ { v _ { z } \in \mathcal { N } \left( v _ { a } \right) , z > m } \tilde { a } _ { a z } \frac { \partial y _ { z } ^ { ( k - 1 ) } } { \partial y _ { b } ^ { ( j ) } } ,
|
| 308 |
+
$$
|
| 309 |
+
|
| 310 |
+
where $z > m$ means $v _ { z }$ is unlabeled. To intuitively understand Eq. (14), one can imagine that we perform a random walk starting from node $v _ { a }$ for one step, where the “transition probability” is the edge weights $\tilde { a }$ , and all nodes in this random walk are restricted to unlabeled nodes only. Note that we can further decompose every $y _ { z } ^ { ( k - 1 ) }$ in Eq. (14) in the way similar to what we do for $y _ { a } ^ { ( k ) }$ in Eq. (13). So the expansion in Eq. (14) can be performed iteratively until the index $k$ decreases to $j$ . This is equivalent to performing all possible random walks for $k - j$ steps starting from $v _ { a }$ , where all nodes but the last in the random walk are restricted to be unlabeled nodes:
|
| 311 |
+
|
| 312 |
+
$$
|
| 313 |
+
\frac { \partial y _ { a } ^ { ( k ) } } { \partial y _ { b } ^ { ( j ) } } = \sum _ { v _ { z } \in \mathcal { V } } \sum _ { \mathcal { U } _ { k - j } ^ { a \to z } } \left( \prod _ { i = k - j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } \right) \frac { \partial y _ { z } ^ { ( j ) } } { \partial y _ { b } ^ { ( j ) } } ,
|
| 314 |
+
$$
|
| 315 |
+
|
| 316 |
+
where $v _ { z }$ in the first summation term is the end node of a random walk, $\mathcal { U } _ { k - j } ^ { a z }$ in the second summation term is an unlabeled-nodes-only path from $v _ { a }$ to $v _ { z }$ of length $k - j$ , and the product term is the probability of a given path $\mathcal { U } _ { k - j } ^ { a z }$ . Consider the last term ∂ y(j)b in Eq. (15). We know that $\begin{array} { r } { \frac { \partial y _ { z } ^ { ( j ) } } { \partial y _ { b } ^ { ( j ) } } = 0 } \end{array}$ for all $z \neq b$ and $\begin{array} { r } { \frac { \partial y _ { z } ^ { ( j ) } } { \partial y _ { b } ^ { ( j ) } } = 1 } \end{array}$ for $z = b$ , which means that only those random-walk paths that end exactly at $v _ { b }$ (i.e., the end node $v _ { z }$ is exactly $v _ { b }$ ) count for the computation in Eq. (15). Therefore, we have
|
| 317 |
+
|
| 318 |
+
$$
|
| 319 |
+
{ \frac { \partial y _ { a } ^ { ( k ) } } { \partial y _ { b } ^ { ( j ) } } } = \sum _ { \mathcal { U } _ { k - j } ^ { a b } } \prod _ { i = k - j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } ,
|
| 320 |
+
$$
|
| 321 |
+
|
| 322 |
+
where $\mathcal { U } _ { k - j } ^ { a b }$ is a path from $v _ { a }$ to $v _ { b }$ of length $k - j$ containing only unlabeled nodes except $v _ { b }$ Substituting the right hand term of Eq. (12) with Eq. (16), we obtain that
|
| 323 |
+
|
| 324 |
+
$$
|
| 325 |
+
I _ { l } ( v _ { a } , v _ { b } ; k ) = \sum _ { j = 0 } ^ { k - 1 } \sum _ { \mathcal { U } _ { k - j } ^ { a b } } \prod _ { i = k - j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } = \sum _ { j = 1 } ^ { k } \sum _ { \mathcal { U } _ { j } ^ { a b } } \prod _ { i = j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } .
|
| 326 |
+
$$
|
| 327 |
+
|
| 328 |
+
Now Theorem 1 can be proved by combining Lemma 1 and Lemma 2:
|
| 329 |
+
|
| 330 |
+
Proof. Suppose that whether a node is labeled or not is independent of each other for the given graph. Then we have
|
| 331 |
+
|
| 332 |
+
$$
|
| 333 |
+
\begin{array} { r l } & { \mathbb { E } [ \boldsymbol { I } _ { l } ( v _ { a } , v _ { b } ; k ) ] = \mathbb { E } [ \displaystyle \sum _ { j = 1 } ^ { k } \sum _ { U _ { j } ^ { a - b } } \prod _ { i = j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } ] = \displaystyle \sum _ { j = 1 } ^ { k } \mathbb { E } [ \displaystyle \sum _ { U _ { j } ^ { a - b } } \prod _ { i = j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } ] } \\ & { \qquad = \displaystyle \sum _ { j = 1 } ^ { k } \sum _ { \mathcal { P } _ { j } ^ { a - b } } \operatorname* { P r } ( \mathcal { P } _ { j } ^ { a b } \mathrm { \ i s ~ a n ~ u n l a b e l e d - n o d e s - o n l y ~ p a t h } ) \prod _ { i = j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } } \\ & { \qquad = \displaystyle \sum _ { j = 1 } ^ { k } \sum _ { \mathcal { P } _ { j } ^ { a - b } } \beta ^ { j } \prod _ { i = j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } = \displaystyle \sum _ { j = 1 } ^ { k } \beta ^ { j } \tilde { I } _ { f } ( v _ { a } , v _ { b } ; j ) . } \end{array}
|
| 334 |
+
$$
|
| 335 |
+
|
| 336 |
+
# B PROOF OF THEOREM 2
|
| 337 |
+
|
| 338 |
+
Proof. Denote the set of labels as $\mathcal { L }$ . Since different label dimensions in $y _ { a } ^ { ( \cdot ) }$ do not interact with each other when running LPA, the value of the $y _ { a }$ -th dimension in $y _ { a } ^ { ( \cdot ) }$ (denoted by $y _ { a } ^ { ( \cdot ) } [ y _ { a } ] \rangle$ ) comes only from the nodes with initial label $y _ { a }$ . It is clear that
|
| 339 |
+
|
| 340 |
+
$$
|
| 341 |
+
y _ { a } ^ { ( k ) } [ y _ { a } ] = \sum _ { v _ { b } : y _ { b } = y _ { a } } \sum _ { j = 1 } ^ { k } \sum _ { \mathcal { U } _ { j } ^ { a b } } \prod _ { i = j } ^ { 1 } \tilde { a } _ { v ^ { ( i - 1 ) } , v ^ { ( i ) } } ,
|
| 342 |
+
$$
|
| 343 |
+
|
| 344 |
+
which equals $\begin{array} { r } { \sum _ { v { b } : y _ { b } = y _ { a } } I _ { l } ( v _ { a } , v _ { b } ; k ) } \end{array}$ according to Lemma 2. Therefore, we have
|
| 345 |
+
|
| 346 |
+
$$
|
| 347 |
+
\mathrm { P r } ( \hat { y } _ { a } = y _ { a } ) = \frac { y _ { a } ^ { ( k ) } [ y _ { a } ] } { \sum _ { i \in \mathcal { L } } y _ { a } ^ { ( k ) } [ i ] } \propto y _ { a } ^ { ( k ) } [ y _ { a } ] = \sum _ { v _ { b } : y _ { b } = y _ { a } } I _ { l } ( v _ { a } , v _ { b } ; k )
|
| 348 |
+
$$
|
| 349 |
+
|
| 350 |
+
# C PROOF OF THEOREM 3
|
| 351 |
+
|
| 352 |
+
In this proof we assume that the dimension of node representations is one, but note that the conclusion can be easily generalized to the case of multi-dimensional representations since the function $D ( \mathbf { x } )$ can be decomposed into the sum of one-dimensional cases. In the following of this proof, we still use bold notations $\mathbf { x } _ { i } ^ { ( k ) }$ ) and h(k)i t o denote node representations, but keep in mind that they are scalars rather than vectors.
|
| 353 |
+
|
| 354 |
+
We give two lemmas before proving Theorem 3. The first one is about the gradient of $D ( \mathbf { x } )$
|
| 355 |
+
|
| 356 |
+
Lemma 3 $\begin{array} { r } { \mathbf { h } _ { i } ^ { ( k ) } = \mathbf { x } _ { i } ^ { ( k ) } - \frac { \partial D ( \mathbf { x } ^ { ( k ) } ) } { \partial \mathbf { x } _ { i } ^ { ( k ) } } } \end{array}$
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
\begin{array} { r } { \mathbf { x } _ { i } ^ { ( k ) } - \frac { \partial D ( \mathbf { x } ^ { ( k ) } ) } { \partial \mathbf { x } _ { i } ^ { ( k ) } } = \mathbf { x } _ { i } ^ { ( k ) } - \sum _ { v _ { j } \in N ( v _ { i } ) } \widetilde { a } _ { i j } \big ( \mathbf { x } _ { i } ^ { ( k ) } - \mathbf { x } _ { j } ^ { ( k ) } \big ) = \sum _ { v _ { j } \in N ( v _ { i } ) } \widetilde { a } _ { i j } \mathbf { x } _ { j } ^ { ( k ) } = \mathbf { h } _ { i } ^ { ( k ) } . } \end{array}
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
It is interesting to see from Lemma 3 that the aggregation step in GCN is equivalent to running gradient descent for one step with a step size of one. However, this is not able to guarantee that $\mathbf { \bar { \Gamma } } D ( \mathbf { h } ^ { ( k ) } ) \leq D ( \mathbf { x } ^ { ( k ) } )$ because the step size may be too large to reduce the value of $D$ .
|
| 363 |
+
|
| 364 |
+
The second lemma is about the Hessian of $D ( \mathbf { x } )$ :
|
| 365 |
+
|
| 366 |
+
Lemma 4 $\nabla ^ { 2 } D ( \mathbf { x } ) \preceq 2 I _ { ! }$ , or equivalently, $2 I - \nabla ^ { 2 } D ( \mathbf { x } )$ is a positive semidefinite matrix.
|
| 367 |
+
|
| 368 |
+
Proof. We first calculate the Hessian of $\begin{array} { r } { D ( \mathbf { x } ) = \frac { 1 } { 2 } \sum _ { v _ { i } , v _ { j } } \widetilde { a } _ { i j } \| \mathbf { x } _ { i } - \mathbf { x } _ { j } \| _ { 2 } ^ { 2 } } \end{array}$
|
| 369 |
+
|
| 370 |
+
$$
|
| 371 |
+
\nabla ^ { 2 } D ( { \bf x } ) = \left[ \begin{array} { c c c c } { 1 - \tilde { a } _ { 1 1 } } & { - \tilde { a } _ { 1 2 } } & { \cdots } & { - \tilde { a } _ { 1 n } } \\ { - \tilde { a } _ { 2 1 } } & { 1 - \tilde { a } _ { 2 2 } } & { \cdots } & { - \tilde { a } _ { 2 n } } \\ { \vdots } & { \vdots } & { \ddots } & { \vdots } \\ { - \tilde { a } _ { n 1 } } & { - \tilde { a } _ { n 2 } } & { \cdots } & { 1 - \tilde { a } _ { n n } } \end{array} \right] = I - D ^ { - 1 } A .
|
| 372 |
+
$$
|
| 373 |
+
|
| 374 |
+
Therefore, $2 I - \nabla ^ { 2 } D ( \mathbf { x } ) = I + D ^ { - 1 } A$ . Since $D ^ { - 1 } A$ is Markov matrix (i.e., each entry is nonnegative and the sum of each row is one), its eigenvalues are within the range [-1, 1], so the eigenvalues of $I + D ^ { - 1 } A$ are within the range [0, 2]. Therefore, $I + D ^ { - 1 } A$ is a positive semidefinite matrix, and we have $\nabla ^ { 2 } D ( \mathbf { x } ) \preceq 2 I$ .
|
| 375 |
+
|
| 376 |
+
We can now prove Theorem 3:
|
| 377 |
+
|
| 378 |
+
Proof. Since $D$ is a quadratic function, we perform a second-order Taylor expansion of $D$ around $\mathbf { x } ^ { ( k ) }$ and obtain the following inequality:
|
| 379 |
+
|
| 380 |
+
$$
|
| 381 |
+
\begin{array} { r l } & { D ( \mathbf { h } ^ { ( k ) } ) = D ( \mathbf { x } ^ { ( k ) } ) + \nabla D ( \mathbf { x } ^ { ( k ) } ) ^ { \top } ( \mathbf { h } ^ { ( k ) } - \mathbf { x } ^ { ( k ) } ) + \displaystyle \frac { 1 } { 2 } ( \mathbf { h } ^ { ( k ) } - \mathbf { x } ^ { ( k ) } ) ^ { \top } \nabla ^ { 2 } D ( \mathbf { x } ) ( \mathbf { h } ^ { ( k ) } - \mathbf { x } ^ { ( k ) } ) } \\ & { \qquad = D ( \mathbf { x } ^ { ( k ) } ) - \nabla D ( \mathbf { x } ^ { ( k ) } ) ^ { \top } \nabla D ( \mathbf { x } ^ { ( k ) } ) + \displaystyle \frac { 1 } { 2 } \nabla D ( \mathbf { x } ^ { ( k ) } ) ^ { \top } \nabla ^ { 2 } D ( \mathbf { x } ) \nabla D ( \mathbf { x } ^ { ( k ) } ) } \\ & { \qquad \leq D ( \mathbf { x } ^ { ( k ) } ) - \nabla D ( \mathbf { x } ^ { ( k ) } ) ^ { \top } \nabla D ( \mathbf { x } ^ { ( k ) } ) + \nabla D ( \mathbf { x } ^ { ( k ) } ) ^ { \top } \nabla D ( \mathbf { x } ^ { ( k ) } ) } \\ & { \qquad = D ( \mathbf { x } ^ { ( k ) } ) . } \end{array}
|
| 382 |
+
$$
|
| 383 |
+
|
| 384 |
+
# D MORE VISUALIZATION RESULTS ON KARATE CLUB NETWORK
|
| 385 |
+
|
| 386 |
+
Figure 8 illustrates more visualization of GCN and GCN-LPA on karate club network. In each subfigure, we vary the number of layers from 1 to 4 to examine how the learned representations evolve. The initial node features are one-hot identity vectors, and the dimension of hidden layers and output layer is 2. The transformation matrices are uniformly initialized within range [-1, 1]. We use sigmoid function as the nonlinear activation function. Comparing the four figures in each row, we conclude that the aggregation step and transformation step in GCN and GCN-LPA do benefit the separation of different classes. Comparing Figure 8a and 8c (or Figure 8b and 8d), we conclude that more inter-class edges will make the separation harder for GCN (or GCN-LPA). Comparing Figure 8a and 8b (or Figure 8c and 8d), we conclude that GCN-LPA is more noise-resistant than GCN, therefore, GCN-LPA can better differentiate classes and identify clustering substructures.
|
| 387 |
+
|
| 388 |
+
# E DATASETS DETAILS
|
| 389 |
+
|
| 390 |
+
The statistics of all datasets are shown in Table 3.
|
| 391 |
+
|
| 392 |
+
Table 3: Statistics for all datasets.
|
| 393 |
+
|
| 394 |
+
<table><tr><td></td><td>Cora</td><td>Citeseer</td><td>Pubmed</td><td>Coauthor-CS</td><td>Coauthor-Phy</td></tr><tr><td>#nodes</td><td>2,708</td><td>3,327</td><td>19,717</td><td>18,333</td><td>34,493</td></tr><tr><td># edges</td><td>5,278</td><td>4,552</td><td>44,324</td><td>81,894</td><td>247,962</td></tr><tr><td># features</td><td>1,433</td><td>3,703</td><td>500</td><td>6.805</td><td>8,415</td></tr><tr><td>#classes</td><td>7</td><td>6</td><td>3</td><td>15</td><td>5</td></tr><tr><td>Intra-class edge rate</td><td>81.0%</td><td>73.6%</td><td>80.2%</td><td>80.8%</td><td>93.1%</td></tr><tr><td>Labeled node rate</td><td>5.2%</td><td>3.6%</td><td>0.3%</td><td>1.6%</td><td>0.3%</td></tr></table>
|
| 395 |
+
|
| 396 |
+
# F HYPER-PARAMETER SETTINGS
|
| 397 |
+
|
| 398 |
+
The detailed hyper-parameter settings for all datasets are listed in Table 4. In GCN-LPA, we use the same dimension for all hidden layers. Note that the number of GCN layers and the number of LPA iterations can actually be different since GCN and LPA are implemented as two independent modules. We use grid search to determine hyper-parameters on Cora, and perform fine-tuning on other datasets, i.e., varying one hyper-parameter per time to see if the performance can be further improved. The search spaces for hyper-parameters are as follows:
|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
|
| 402 |
+
Figure 8: Visualization of GCN and GCN-LPA with $1 \sim 4$ layers on karate club network.
|
| 403 |
+
Table 4: Hyper-parameter settings for all datasets.
|
| 404 |
+
|
| 405 |
+
<table><tr><td></td><td>Cora</td><td>Citeseer</td><td>Pubmed</td><td>Coauthor-CS</td><td>Coauthor-Phy</td></tr><tr><td>Dimension of hidden layers</td><td>32</td><td>16</td><td>32</td><td>32</td><td>32</td></tr><tr><td># GCN layers</td><td>5</td><td>2</td><td>2</td><td>2</td><td>2</td></tr><tr><td>#LPA iterations</td><td>5</td><td>5</td><td>1</td><td>2</td><td>3</td></tr><tr><td>L2 weight</td><td>1×10 -4</td><td>5×10-4</td><td>2 ×10-4</td><td>1×10-4</td><td>1×10-4</td></tr><tr><td>LPA weight (入)</td><td>10</td><td>1</td><td>1</td><td>2</td><td>1</td></tr><tr><td>Dropout rate</td><td>0.2</td><td>0</td><td>0</td><td>0.2</td><td>0.2</td></tr><tr><td>Learning rate</td><td>0.05</td><td>0.2</td><td>0.1</td><td>0.1</td><td>0.05</td></tr></table>
|
| 406 |
+
|
| 407 |
+
• Dimension of hidden layers: $\{ 8 , 1 6 , 3 2 \}$ ;
|
| 408 |
+
• # GCN layers: $\{ 1 , 2 , 3 , 4 , 5 , 6 \}$ ;
|
| 409 |
+
• # LPA iterations: $\{ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 \}$ ;
|
| 410 |
+
• L2 weight: $\{ 1 0 ^ { - 7 } , 2 \times 1 0 ^ { - 7 } , 5 \times 1 0 ^ { - 7 } , 1 0 ^ { - 6 } , 2 \times 1 0 ^ { - 6 } , 5 \times 1 0 ^ { - 6 } , 1 0 ^ { - 5 } , 2 \times 1 0 ^ { - 5 } , 5 \times 1 0 ^ { - 6 } , 1 \}$ $1 0 ^ { - 5 } , 1 0 ^ { - 4 } , 2 \times 1 0 ^ { - 4 } , 5 \times 1 0 ^ { - 4 } , 1 0 ^ { - 3 } \}$ ;
|
| 411 |
+
• LPA weight $( \lambda )$ : $\{ 0 , 1 , 2 , 5 , 1 0 , 1 5 , 2 0 \}$ ; • Dropout rate: $\{ 0 , 0 . 1 , 0 . 2 , 0 . 3 , 0 . 4 , 0 . 5 \}$ ;
|
| 412 |
+
• Learning rate: $\{ 0 . 0 1 , 0 . 0 2 , 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 5 \}$ .
|
parse/train/oh71uL93yay/oh71uL93yay_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/oh71uL93yay/oh71uL93yay_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/oh71uL93yay/oh71uL93yay_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkZB1XbRZ/rkZB1XbRZ.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkZB1XbRZ/rkZB1XbRZ_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkZB1XbRZ/rkZB1XbRZ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkZB1XbRZ/rkZB1XbRZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlm/train/0HW7A5YZjq7/0.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/1.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/10.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/11.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/12.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/13.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/2.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/3.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/4.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/5.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/6.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/7.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/8.png
ADDED
|
Git LFS Details
|
vlm/train/0HW7A5YZjq7/9.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/0.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/1.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/10.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/2.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/3.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/4.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/5.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/6.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/7.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/8.png
ADDED
|
Git LFS Details
|
vlm/train/784_F-WCW46/9.png
ADDED
|
Git LFS Details
|
vlm/train/9BpjtPMyDQ/0.png
ADDED
|
Git LFS Details
|
vlm/train/9BpjtPMyDQ/1.png
ADDED
|
Git LFS Details
|
vlm/train/9BpjtPMyDQ/10.png
ADDED
|
Git LFS Details
|
vlm/train/9BpjtPMyDQ/11.png
ADDED
|
Git LFS Details
|
vlm/train/9BpjtPMyDQ/12.png
ADDED
|
Git LFS Details
|