ZHANGYUXUAN-zR commited on
Commit
ed16030
·
verified ·
1 Parent(s): 23e35eb

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/train/6RB77-6-_oI/6RB77-6-_oI.md +242 -0
  2. parse/train/6RB77-6-_oI/6RB77-6-_oI_content_list.json +937 -0
  3. parse/train/6RB77-6-_oI/6RB77-6-_oI_middle.json +0 -0
  4. parse/train/6RB77-6-_oI/6RB77-6-_oI_model.json +0 -0
  5. parse/train/9az9VKjOx00/9az9VKjOx00.md +381 -0
  6. parse/train/9az9VKjOx00/9az9VKjOx00_content_list.json +1895 -0
  7. parse/train/9az9VKjOx00/9az9VKjOx00_middle.json +0 -0
  8. parse/train/9az9VKjOx00/9az9VKjOx00_model.json +0 -0
  9. parse/train/B1mAJI9gl/B1mAJI9gl.md +529 -0
  10. parse/train/B1mAJI9gl/B1mAJI9gl_content_list.json +0 -0
  11. parse/train/B1mAJI9gl/B1mAJI9gl_middle.json +0 -0
  12. parse/train/B1mAJI9gl/B1mAJI9gl_model.json +0 -0
  13. parse/train/HJxdTxHYvB/HJxdTxHYvB.md +261 -0
  14. parse/train/HJxdTxHYvB/HJxdTxHYvB_content_list.json +1382 -0
  15. parse/train/HJxdTxHYvB/HJxdTxHYvB_middle.json +0 -0
  16. parse/train/HJxdTxHYvB/HJxdTxHYvB_model.json +0 -0
  17. parse/train/Hke_f0EYPH/Hke_f0EYPH.md +0 -0
  18. parse/train/Hke_f0EYPH/Hke_f0EYPH_content_list.json +0 -0
  19. parse/train/Hke_f0EYPH/Hke_f0EYPH_middle.json +0 -0
  20. parse/train/Hke_f0EYPH/Hke_f0EYPH_model.json +0 -0
  21. parse/train/HkwVAXyCW/HkwVAXyCW.md +321 -0
  22. parse/train/HkwVAXyCW/HkwVAXyCW_content_list.json +1805 -0
  23. parse/train/HkwVAXyCW/HkwVAXyCW_middle.json +0 -0
  24. parse/train/HkwVAXyCW/HkwVAXyCW_model.json +0 -0
  25. parse/train/HygsfnR9Ym/HygsfnR9Ym.md +451 -0
  26. parse/train/HygsfnR9Ym/HygsfnR9Ym_middle.json +0 -0
  27. parse/train/KmykpuSrjcq/KmykpuSrjcq.md +390 -0
  28. parse/train/KmykpuSrjcq/KmykpuSrjcq_content_list.json +1861 -0
  29. parse/train/KmykpuSrjcq/KmykpuSrjcq_middle.json +0 -0
  30. parse/train/KmykpuSrjcq/KmykpuSrjcq_model.json +0 -0
  31. parse/train/MRYuRHsHzK4/MRYuRHsHzK4.md +462 -0
  32. parse/train/MRYuRHsHzK4/MRYuRHsHzK4_content_list.json +1237 -0
  33. parse/train/MRYuRHsHzK4/MRYuRHsHzK4_middle.json +0 -0
  34. parse/train/MRYuRHsHzK4/MRYuRHsHzK4_model.json +0 -0
  35. parse/train/N33d7wjgzde/N33d7wjgzde.md +383 -0
  36. parse/train/N33d7wjgzde/N33d7wjgzde_content_list.json +0 -0
  37. parse/train/N33d7wjgzde/N33d7wjgzde_middle.json +0 -0
  38. parse/train/N33d7wjgzde/N33d7wjgzde_model.json +0 -0
  39. parse/train/O9bnihsFfXU/O9bnihsFfXU.md +0 -0
  40. parse/train/O9bnihsFfXU/O9bnihsFfXU_content_list.json +0 -0
  41. parse/train/S1E3Ko09F7/S1E3Ko09F7.md +0 -0
  42. parse/train/S1E3Ko09F7/S1E3Ko09F7_content_list.json +0 -0
  43. parse/train/S1E3Ko09F7/S1E3Ko09F7_middle.json +0 -0
  44. parse/train/S1E3Ko09F7/S1E3Ko09F7_model.json +0 -0
  45. parse/train/S1l6ITVKPS/S1l6ITVKPS.md +264 -0
  46. parse/train/S1l6ITVKPS/S1l6ITVKPS_content_list.json +1431 -0
  47. parse/train/S1l6ITVKPS/S1l6ITVKPS_middle.json +0 -0
  48. parse/train/S1l6ITVKPS/S1l6ITVKPS_model.json +0 -0
  49. parse/train/SJJQVZW0b/SJJQVZW0b.md +357 -0
  50. parse/train/SJJQVZW0b/SJJQVZW0b_content_list.json +1651 -0
parse/train/6RB77-6-_oI/6RB77-6-_oI.md ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # How Powerful are Performance Predictors in Neural Architecture Search?
2
+
3
+ Colin White1∗, Arber $\mathbf { Z e l a ^ { 2 } }$ , Binxin $\mathbf { R } \mathbf { u } ^ { 3 }$ , Yang $\mathbf { L i u } ^ { 1 }$ , Frank Hutter2,4 1 Abacus.AI, 2 University of Freiburg, 3 University of Oxford, 4 Bosch Center for Artificial Intelligence
4
+
5
+ # Abstract
6
+
7
+ Early methods in the rapidly developing field of neural architecture search (NAS) required fully training thousands of neural networks. To reduce this extreme computational cost, dozens of techniques have since been proposed to predict the final performance of neural architectures. Despite the success of such performance prediction methods, it is not well-understood how different families of techniques compare to one another, due to the lack of an agreed-upon evaluation metric and optimization for different constraints on the initialization time and query time. In this work, we give the first large-scale study of performance predictors by analyzing 31 techniques ranging from learning curve extrapolation, to weight-sharing, to supervised learning, to zero-cost proxies. We test a number of correlation- and rank-based performance measures in a variety of settings, as well as the ability of each technique to speed up predictor-based NAS frameworks. Our results act as recommendations for the best predictors to use in different settings, and we show that certain families of predictors can be combined to achieve even better predictive power, opening up promising research directions. Our code, featuring a library of 31 performance predictors, is available at https://github.com/automl/naslib.
8
+
9
+ # 1 Introduction
10
+
11
+ Neural architecture search (NAS) is a popular area of machine learning, which aims to automate the process of developing neural architectures for a given dataset. Since 2017, a wide variety of NAS techniques have been proposed [78, 45, 32, 49]. While the first NAS techniques trained thousands of architectures to completion and then evaluated the performance using the final validation accuracy [78], modern algorithms use more efficient strategies to estimate the performance of partially-trained or even untrained neural networks [11, 2, 54, 34, 38].
12
+
13
+ Recently, many performance prediction methods have been proposed based on training a model to predict the final validation accuracy of an architecture just from an encoding of the architecture. Popular choices for these models include Gaussian processes [60, 17, 51], neural networks [36, 54, 65, 69], tree-based methods [33, 55], and so on. However, these methods often require hundreds of fully-trained architectures to be used as training data, thus incurring high initialization time. In contrast, learning curve extrapolation methods [11, 2, 20] need little or no initialization time, but each individual prediction requires partially training the architecture, incurring high query time. Very recently, a few techniques have been introduced which are fast both in query time and initialization time [38, 1], computing predictions based on a single minibatch of data. Finally, using shared weights [45, 4, 32] is a popular paradigm for NAS [73, 25], although the effectiveness of these methods in ranking architectures is disputed [53, 74, 76].
14
+
15
+ Despite the widespread use of performance predictors, it is not known how methods from different families compare to one another. While there have been some analyses on the best predictors within each class [41, 72], for many predictors, the only evaluation is from the original work that proposed the method. Furthermore, no work has previously compared the predictors across different families of performance predictors. This leads to two natural questions: how do zero-cost methods, model-based methods, learning curve extrapolation methods, and weight sharing methods compare to one another across different constraints on initialization time and query time? Furthermore, can predictors from different families be combined to achieve even better performance?
16
+
17
+ ![](images/8ef65ff2a4bcf9b65d26fffcc3b0e9d5d7feb603c89effe903da6194e6e8e872.jpg)
18
+ Figure 1: Categories of performance predictors (left). Kendall Tau rank correlation for performance predictors with respect to initialization time and query time (right). Each type of predictor is plotted differently based on whether it allows variable initialization time and/or variable query time. For example, the sixteen model-based predictors have a fixed query time and variable initialization time, so they are plotted as curves parallel to the X-Z plane.
19
+
20
+ In this work, we answer the above questions by giving the first large-scale study of performance predictors for NAS. We study 31 predictors across four popular search spaces and four datasets: NAS-Bench-201 [13] with CIFAR-10, CIFAR-100, and ImageNet16-120, NAS-Bench-101 [71] and DARTS [32] with CIFAR-10, and NAS-Bench-NLP [21] with Penn TreeBank. In order to give a fair comparison among different classes of predictors, we run a full portfolio of experiments, measuring the Pearson correlation and rank correlation metrics (Spearman, Kendall Tau, and sparse Kendall Tau), across a variety of initialization time and query time budgets. We run experiments using a training and test set of architectures generated both uniformly at random, as well as by mutating the highest-performing architectures (the latter potentially more closely resembling distributions encountered during an actual NAS run). Finally, we test the ability of each predictor to speed up NAS algorithms, namely Bayesian optimization [36, 54, 69, 51] and predictor-guided evolution [66, 59].
21
+
22
+ Since many predictors so far had only been evaluated on one search space, our work shows which predictors have consistent performance across search spaces. Furthermore, by conducting a study with three axes of comparison (see Figure 1), and by comparing various types of predictors, we see a more complete view of the state of performance predictor techniques that leads to interesting insights. Notably, we show that the performance of predictors from different families are complementary and can be combined to achieve significantly higher performance. The success of these experiments opens up promising avenues for future work.
23
+
24
+ Overall, our experiments bridge multiple areas of NAS research and act as recommendations for the best predictors to use under different runtime constraints. Our code, based on the NASLib library [52], can be used as a testing ground for future performance prediction techniques. In order to ensure reproducibility of the original results, we created a table to clarify which of the 31 predictors had previously published results on a NAS-Bench search space, and how these published results compared to our results (Table 7). We also adhere to the NeurIPS 2021 checklist along with the specialized NAS best practices checklist [31].
25
+
26
+ Our contributions. We summarize our main contributions below.
27
+
28
+ • We conduct the first large-scale study of performance predictors for neural architecture search by comparing model-based methods, learning curve extrapolation methods, zero-cost methods, and weight sharing methods across a variety of settings.
29
+ • We release a comprehensive library of 31 performance predictors on four different search spaces.
30
+ • We show that different families of performance predictors can be combined to achieve substantially better predictive power than any single predictor.
31
+
32
+ # 2 Related Work
33
+
34
+ NAS has been studied since at least the 1990s [19, 58], and has been revitalized in the last few years [78]. While initial techniques focused on reinforcement learning [78, 45] and evolutionary search [37, 49], one-shot NAS algorithms [32, 12, 4] and predictor-based NAS algorithms [65, 54, 69] have recently become popular. We give a brief survey of performance prediction techniques in Section 3. For a survey on NAS, see [15]. The most widely used type of search space in prior work is the cell-based search space [79], where the architecture search is over a relatively small directed acyclic graph representing an architecture.
35
+
36
+ A few recent works have compared different performance predictors on popular cell-based search spaces for NAS. Siems et al. [55] studied graph neural networks and tree-based methods, and found that gradient-boosted trees and graph isomorphism networks performed the best. However, the comparison was only on a single search space and dataset, and the explicit goal was to achieve maximum performance given a training set of around 60 000 architectures. Another recent paper [41] studied various aspects of supernetwork training, and separately compared four model-based methods: random forest, MLP, LSTM, and GATES [42]. However, the comparisons were again on a single search space and dataset and did not compare between multiple families of performance predictors. Other papers have proposed new model-based predictors and compared the new predictors to other model-based baselines [34, 65, 54, 69]. Finally, a recent paper analyzed training heuristics to make weight-sharing more effective at ranking architectures [72]. To the best of our knowledge, no prior work has conducted comparisons across multiple families of performance predictors.
37
+
38
+ # 3 Performance Prediction Methods for NAS
39
+
40
+ In NAS, given a search space $\mathcal { A }$ , the goal is to find $a ^ { * } = \operatorname * { a r g m i n } _ { a \in { \mathcal { A } } } f ( a )$ , where $f$ denotes the validation error of architecture $a$ after training on a fixed dataset for a fixed number of epochs $E$ . Since evaluating $f ( a )$ typically takes hours (as it requires training a neural network from scratch), many NAS algorithms make use of performance predictors to speed up this process. A performance predictor $f ^ { \prime }$ is defined generally as any function which predicts the final accuracy or ranking of architectures, without fully training the architectures. That is, evaluating $f ^ { \prime }$ should take less time than evaluating $f$ , and $\{ f ^ { \prime } ( a ) \mid a \in \mathcal { A } \}$ should ideally have high correlation or rank correlation with $\{ f ( a ) \mid a \in { \bar { \mathcal { A } } } \}$ .
41
+
42
+ Each performance predictor is defined by two main routines: an initialization routine which performs general pre-computation, and a query routine which performs the final architecture-specific computation: it takes as input an architecture specification, and outputs its predicted accuracy. For example, one of the simplest performance predictors is early stopping: for any query $( a )$ , train $a$ for $E / 2$ epochs instead of $E$ [77]. In this case, there is no general pre-computation, so initialization time is zero. On the other hand, the query time for each input architecture is high because it involves training the architecture for $E / 2$ epochs. In fact, the runtime of the initialization and query routines varies substantially based on the type of predictor. In the context of NAS algorithms, the initialization routine is typically performed once at the start of the algorithm, and the query routine is typically performed many times throughout the NAS algorithm. Some performance predictors also make use of an update routine, when part of the computation from initialization needs to be updated without running the full procedure again (for example, in a NAS algorithm, a model may be updated periodically based on newly trained architectures). Now we give an overview of the main families of predictors. See Figure 1 (left) for a taxonomy of performance predictors.
43
+
44
+ Model-based (trainable) methods. The most common type of predictor, the model-based predictor, is based on supervised learning. The initialization routine consists of fully training many architectures (i.e., evaluating $f ( a )$ for many architectures $a \in { \mathcal { A } }$ ) to build a training set of datapoints $\{ a , f ( a ) \}$ . Then a model $f ^ { \prime }$ is trained to predict $f ( a )$ given $a$ . While the initialization time for model-based predictors is very high, the query time typically takes less than a second, which allows thousands of predictions to be made throughout a NAS algorithm. The model is also updated regularly based on the new datapoints. These predictors are typically used within BO frameworks [36, 54], evolutionary frameworks [66], or by themselves [67], to perform NAS. Popular choices for the model include tree-based methods (where the features are the adjacency matrix representation of the architectures) [33, 55], graph neural networks [36, 54], Gaussian processes [47, 51], and neural networks based on specialized encodings of the architecture [69, 42].
45
+
46
+ Learning curve-based methods. Another family predicts the final performance of architectures using only a partially trained network, by extrapolating the learning curve. This is accomplished by fitting the partial learning curve to an ensemble of parametric models [11], or by simply summing the training losses observed so far [50]. Early stopping as described earlier is also a learning curve-based method. Learning curve methods do not require any initialization time, yet the query time typically takes minutes or hours, which is orders of magnitude slower than the query time in model-based methods. Learning curve-based methods can be used in conjunction with multi-fidelty algorithms, such as Hyperband or BOHB [27, 16, 24].
47
+
48
+ Hybrid methods. Some predictors are hybrids between learning curve and model-based methods. These predictors train a model at initialization time to predict $f ( a )$ given both $a$ and a partial learning curve of $a$ as features. Models in prior work include an SVR [2], or a Bayesian neural network [20]. Although the query time and initialization time are both high, hybrid predictors tend to have strong performance.
49
+
50
+ Zero-cost methods. Another class of predictors have no initialization time and very short query times (so-called “zero-cost” methods). These predictors compute statistics from just a single forward/backward propagation pass for a single minibatch of data, by computing the correlation of activations within a network [38], or by adapting saliency metrics proposed in pruning-at-initialization literatures [23, 1]. Similar to learning curve-based methods, since the only computation is specific to each architecture, the initialization time is zero. Zero-cost methods have recently been used to warm start NAS algorithms [1].
51
+
52
+ Weight sharing methods. Weight sharing [45] is a popular approach to substantially speed up NAS, especially in conjunction with a one-shot algorithm [32, 12]. In this approach, all architectures in the search space are combined to form a single over-parameterized supernetwork. By training the weights of the supernetwork, all architectures in the search space can be evaluated quickly using this set of weights. To this end, the supernetwork can be used as a performance predictor. This results in NAS algorithms [32, 28] which are significantly faster than sequential NAS algorithms, such as evolution or Bayesian optimization. Recent work has shown that although the shared weights are sometimes not effective at ranking architectures [53, 74, 76], one-shot NAS techniques using shared weights still achieve strong performance [73, 25].
53
+
54
+ Tradeoff between intialization and query time. The main families mentioned above all have different initialization and query times. The tradeoffs between initialization time, query time, and performance depend on a few factors such as the type of NAS algorithm and its total runtime budget, and different settings are needed in different situations. For example, if there are many architectures whose performance we want to estimate, then we should have a low query time, and if we have a high total runtime budget, then we can afford a high initialization time. We may also change our runtime budget throughout the run of a single NAS algorithm. For example, at the start of a NAS algorithm, we may want to have coarse estimates of a large number of architectures (low initialization time, low query time such as zero-cost predictors). As the NAS algorithm progresses, it is more desirable to receive higher-fidelity predictions on a smaller set of architectures (model-based or hybrid predictors). The exact budgets depend on the type of NAS algorithm.
55
+
56
+ Choice of performance predictors. We analyze 31 performance predictors defined in prior work: BANANAS [69], Bayesian Linear Regression [6], BOHAMIANN [57], BONAS [54], DNGO [56], Early Stopping with Val. Acc. (e.g. [77, 27, 16, 79]) Early Stopping with Val. Loss. [50], Fisher [1], Gaussian Process (GP) [48], GCN [75], Grad Norm [1], Grasp [64], Jacobian Covariance [38], LCE [11], LCE-m [20], LcSVR [2], LGBoost/GBDT [33], MLP [69], NAO [35], NGBoost [55], OneShot [73], Random Forest (RF) [55], Random Search with Weight Sharing (RSWS) [26], SemiNAS [34], SNIP [23], SoTL [50], SoTL-E [50], Sparse GP [3], SynFlow [61], Variational Sparse GP [63], and XGBoost [55]. For any method that did not have an architecture encoding already defined (such as the tree-based methods, GP-based methods, and Bayesian Linear Regression), we use the standard adjacency matrix encoding, which consists of the adjacency matrix of the architecture along with a one-hot list of the operations [71, 68]. By open-sourcing our code, we encourage implementing more (existing and future) performance predictors which can then be compared to the 31 which we focus on in this work. In Section B.1, we give descriptions and detailed implementation details for each performance predictor. In Section D, we give a table that describes for which predictors we were able to reproduce published results, and for which predictors it is not possible (e.g., since some predictors were released before the creation of NAS benchmarks).
57
+
58
+ ![](images/cac2d076145d762a60a6f0cf6b3b21b22efe01ee2cac10389179b735bb57d3b9.jpg)
59
+ Figure 2: The performance predictors with the highest Kendall Tau values for all initialization time and query time budgets on NAS-Bench-201, NAS-Bench-101, NAS-Bench-NLP and DARTS. For example, on NAS-Bench-201 CIFAR-10 (left) with an initialization time of $1 0 ^ { 6 }$ seconds and query time of 10 seconds, XGBoost achieves a Kendall Tau value of .73 which is the highest value out of the 31 predictors that we tested at that budget.
60
+
61
+ # 4 Experiments
62
+
63
+ We now discuss our experimental setup and results. We discuss reproducibility in Sections A and D, and our code (based on the NASLib library [52]) is available at https://github.com/automl/ naslib. We split up our experiments into two categories: evaluating the performance of each predictor with respect to various correlation metrics (Section 4.1), and evaluating the ability of each predictor to speed up predictor-based NAS algorithms (Section 4.2). We start by describing the four NAS benchmarks used in our experiments.
64
+
65
+ NAS benchmark datasets. NAS-Bench-101 [71] consists of over 423 000 unique neural architectures with precomputed training, validation, and test accuracies after training for 4, 12, 36, and 108 epochs on CIFAR-10 [71]. The cell-based search space consists of five nodes which can take on any directed acyclic graph (DAG) structure, and each node can be one of three operations. Since learning curve information is only available at four epochs, it is not possible to run most learning curve extrapolation methods on NAS-Bench-101. NAS-Bench-201 [13] consists of 15 625 architectures (out of which 6 466 are unique after removing isomorphisms [13]). Each architecture has full learning curve information for training, validation, and test losses/accuracies for 200 epochs on CIFAR-10 [22], CIFAR-100, and ImageNet-16-120 [10]. The search space consists of a cell which is a complete DAG with 4 nodes. Each edge can take one of five different operations. The DARTS search space [32] is significantly larger with roughly $1 0 ^ { 1 8 }$ architectures. The search space consists of two cells, each with seven nodes. The first two nodes are inputs from previous layers, and the intermediate four nodes can take on any DAG structure such that each node has two incident edges. The last node is the output node. Each edge can take one of eight operations. In our experiments, we make use of the training data from NAS-Bench-301 [55], which consists of 23 000 architectures drawn uniformly at random and trained on CIFAR-10 for 100 epochs. Finally, the NAS-Bench-NLP search space [21] is even larger, at $1 0 ^ { 5 3 }$ LSTM-like cells, each with at most 25 nodes in any DAG structure. Each cell can take one of seven operations. In our experiments, we use the NAS-Bench-NLP dataset, which consists of 14 000 architectures drawn uniformly at random and trained on Penn Tree Bank [40] for 50 epochs.
66
+
67
+ Hyperparameter tuning. Although we used the code directly from the original repositories (sometimes making changes when necessary to adapt to NAS-Bench search spaces), the predictors had significantly different levels of hyperparameter tuning. For example, some of the predictors had undergone heavy hyperparameter tuning on the DARTS search space (used in NAS-Bench-301), while other predictors (particularly those from 2017 or earlier) had never been run on cell-based search spaces. Furthermore, most predictor-based NAS algorithms can utilize cross-validation to tune the predictor periodically throughout the NAS algorithm. This is because the bottleneck for predictorbased NAS algorithms is typically the training of architectures, not fitting the predictor [56, 30, 16]. Therefore, it is fairer and also more informative to compare performance predictors which have had the same level of hyperparameter tuning through cross-validation. For each search space, we run random search on each performance predictor for 5000 iterations, with a maximum total runtime of 15 minutes. The final evaluation uses a separate test set. The hyperparameter value ranges for each predictor can be found in Section B.2.
68
+
69
+ # 4.1 Performance Predictor Evaluation
70
+
71
+ We evaluate each predictor based on three axes of comparison: initialization time, query time, and performance. We measured performance with respect to several different metrics: Pearson correlation and three different rank correlation metrics (Spearman, Kendall Tau, and sparse Kendall Tau [72, 55]). The experimental setup is as follows: the predictors are tested with 11 different initialization time budgets and 14 different query time budgets, leading to a total of 154 settings. On NAS-Bench-201 CIFAR-10, the 11 initialization time budgets are spaced logarithmically from 1 second to $1 . 8 \times 1 0 ^ { 7 }$ seconds on a $1 0 8 0 \mathrm { T i }$ GPU (which corresponds to training 1000 random architectures on average) which is consistent with experiments conducted in prior work [65, 69, 34]. For other search spaces, these times are adjusted based on the average time to train 1000 architectures. The 14 query time budgets are spaced logarithmically from 1 second to $1 . 8 \times 1 0 ^ { 4 }$ seconds (which corresponds to training an architecture for 199 epochs). These times are adjusted for other search spaces based on the training time and different number of epochs. Once the predictor is initialized, we draw a test set of 200 architectures uniformly at random from the search space. For each architecture in the test set, the predictor uses the specified query time budget to make a prediction. We then evaluate the quality of the predictions using the metrics described above. We average the results over 100 trials for each (initialization time, query time) pair.
72
+
73
+ Results and discussion. Figure 1 shows a full three-dimensional plot for NAS-Bench-201 on CIFAR-10 over initialization time, query time, and Kendall Tau rank correlation. Of the 31 predictors we tested, we found that just seven of them are Pareto-optimal with respect to Kendall Tau, initialization time, and query time. That is, only seven algorithms have the highest Kendall Tau value for at least one of the 154 query time/initialization time budgets on NAS-Bench-201 CIFAR-10. This can be seen more clearly in Figure 2 (left), which is a view from above Figure 1: each lattice point displays the predictor with the highest Kendall Tau value for the corresponding budget. In Figure 2 (right), we plot the Pareto-optimal predictors for five different dataset/search space combinations. In Section B.3, we give the full 3D plots and report the variance across trials for each method. In Figure 4 (left), we also plot the Pearson and Spearman correlation coefficients for NAS-Bench-201 CIFAR-10. The trends between these measures are largely the same, although we see that SemiNAS performs better on the rank-based metrics. For the rest of this section, we focus on the popular Kendall Tau metric, giving the full results for the other metrics in Section B.3.
74
+
75
+ We see similar trends across DARTS and the two NAS-Bench-201 datasets. NAS-Bench-NLP also has fairly similar trends, although early stopping performs comparatively stronger. NAS-Bench-101 is different from the other search spaces both in terms of the topology and the benchmark itself, which we discuss later in this section.
76
+
77
+ In the low initialization time, low query time region, Jacobian covariance or SynFlow perform well across NAS-Bench-101 and NAS-Bench-201. However, none of the six zero-cost methods perform well on the larger DARTS search space. Weight sharing (which also has low initialization and low query time, as seen in Figure 1), did not yield high Kendall Tau values for these search spaces, either, which is consistent with recent work [53, 74, 76]. However, rank correlation is not as crucial to one-shot NAS algorithms as it is for black box predictor-based methods, as demonstrated by prior one-shot NAS methods that do perform well [25, 73, 32, 28, 12]. In the low initialization time, high query time region, sum of training losses (SoTL-E) consistently performed the best, outperforming other learning-curve based methods.
78
+
79
+ ![](images/1a336b83714b502dfa447d28dd46ecffcc5c4c07832f5707486bd7c0c8470d68.jpg)
80
+ Figure 3: Percentage of OMNI’s Kendall Tau value compared to the next-best predictors for each budget constraint.
81
+
82
+ The high initialization time, low query time region (especially the bottom row of the plots, corresponding to a query time of 1 second) is by far the most competitive region in the recent NAS literature. Sixteen of the 31 predictors had query times under one second, because many NAS algorithms are designed to initialize (and continually update) performance predictors that are used to quickly query thousands of candidate architectures. GCN and SemiNAS, the specialized GCN/semi-supervised methods, perform especially well in the first half of this critical region, when the initialization time is relatively low. However, boosted tree methods actually performed best in the second half of the critical region where the initialization time is high, which is consistent with prior work [33, 55]. Recall that for model-based methods, the initialization time corresponds to training architectures to be used as training data for the performance predictor. Therefore, our results suggest that techniques which can extract better latent features of the architectures can make up for a small training dataset, but methods based purely on performance data work better when there is enough such data.
83
+
84
+ Perhaps the most interesting finding is that on NAS-Bench-101/201, SynFlow and Jacobian covariance, which take three seconds each to compute, both outperform all model-based methods even after $3 0$ hours of initialization. Put another way, NAS algorithms that make use of model-based predictors may be able to see substantial improvements by using Jacobian covariance instead of a model-based predictor in the early iterations.
85
+
86
+ The Omnipotent Predictor. One conclusion from Figure 2 is that different types of predictors are specialized for specific initialization time and query time constraints. A natural follow-up question is whether different families are complementary and can be combined to achieve stronger performance. In this section, we run a proof-of-concept to answer this question. We combine the best-performing predictors from three different families in a simple way: the best learning curve method (SoTL-E), and the best zero-cost method (Jacobian covariance), are used as additional input features for a model-based predictor (we separately test SemiNAS and NGBoost). We call this method OMNI, the omnipotent predictor. We give results in Figure 3 and pseudo-code as well as additional experiments in Section B.4. In contrast to all other predictors, the performance of OMNI is strong across almost all budget constraints and search spaces. In some settings, OMNI achieves a Kendall Tau value $30 \%$ higher than the next-best predictors.
87
+
88
+ The success of OMNI verifies that the information learned by different families of predictors are complementary: the information learned by extrapolating a learning curve, by computing a zero-cost proxy, and by encoding the architecture, all improve performance. We further confirm this by running an ablation study for OMNI in Section B.4. We can hypothesize that each predictor type measures distinct quantities: SOTL-E measures the training speed, zero-cost predictors measure the covariance between activations on different datapoints, and model-based predictors simply learn patterns between the architecture encodings and the validation accuracies. Finally, while we showed a proof-of-concept, there are several promising areas for future work such as creating ensembles of the model-based approaches, combining zero-cost methods with model-based methods in more sophisticated ways, and giving a full quantification of the correlation among different families of predictors.
89
+
90
+ ![](images/db818d6a83efa7fb904fdc04c428ec375353f40a9141d13d9b6146e28a4e0d71.jpg)
91
+ Figure 4: The best predictors on NAS-Bench-201 CIFAR-10 with respect to Pearson (left) and Spearman (middle). Kendall Tau values from a mutation-based training and test set (right).
92
+
93
+ NAS-Bench-101: a more complex search space. In Figure 2, the plot for NAS-Bench-101 looks significantly different than the plots for the other search spaces, for two reasons. The first reason is a technical one: the NAS-Bench-101 API only gives the validation accuracy at four epochs, and does not give the training loss for any epochs. Therefore, we could not implement SoTL or any learning curve extrapolation method. However, all sixteen of the model-based predictors were implemented on NAS-Bench-101. In this case, BANANAS significantly outperformed the next-best predictors (GCN and SemiNAS) across every initialization time. One explanation is due to the complexity of the NAS-Bench-101 search space: while all NAS-Bench-201 architectures have the same graph topology and DARTS architectures’ nodes have exactly two incoming edges, the NAS-Bench-101 search space is much more diverse with architectures ranging from a single node and no edges, to five nodes with nine connecting edges. In fact, the architecture encoding used in BANANAS, the path encoding, was designed specifically to deal with the complexity of the NAS-Bench-101 search space (replacing the standard adjacency matrix encoding). To test this explanation, in Appendix B we run several of the simpler tree-based and GP-based predictors using the path encoding, and we see that these methods now surpass BANANAS in performance.
94
+
95
+ A mutation-based test set. The results from Figure 2 used a test set drawn uniformly at random from the search space (and the training set used by model-based predictors was also drawn uniformly at random). However, neighborhood-based NAS algorithms such as local search, regularized evolution, and some versions of Bayesian optimization consider architectures which are local perturbations of the architectures encountered so far. Therefore, the predictors used in these NAS algorithms must be able to distinguish architectures which are local mutations of a small set of seed architectures.
96
+
97
+ We run an experiment in which the test set is created by mutating architectures from an initial set of seed architectures. Specifically, we draw a set of 50 random architectures and choose the five with the highest validation accuracy as seed architectures. Then we create a set of 200 test architectures by randomly mutating up to three attributes of the seed architectures. Therefore, all architectures in the test set are at most an edit distance of three from a seed architecture, where two architectures are a single edit distance away if they differ by one operation or edge.
98
+
99
+ We create the training set by randomly choosing architectures from the test set and mutating one random attribute. As in all of our experiments, we ensure that the training set and test set are disjoint. In Figure 4 (right), we plot the correlation results for NAS-Bench-201 CIFAR-10. While the zero-cost and learning curve-based approaches have similar performance, the model-based approaches have significantly worse performance compared to the uniform random setting. This is because the average edit distance between architectures in the test set is low, making it significantly harder for model-based predictors to distinguish the performance of these architectures, even when using a training set that is based on mutations of the test set. In fact, interestingly, the performance of many model-based approaches starts to perform worse after $1 0 ^ { 6 }$ seconds. SemiNAS in particular performs much worse in this setting, and boosted trees have comparatively stronger performance in this setting.
100
+
101
+ ![](images/c15699c76c80aa1243fa92c24047ed5b53dff1845e874054c71f1e142d0b0327.jpg)
102
+ Figure 5: Validation error vs. runtime for the predictor-guided evolution framework and the Bayesian optimization $^ +$ predictor framework using different predictors.
103
+
104
+ # 4.2 Predictor-Based NAS Experiments
105
+
106
+ Now we evaluate the ability of each model-based performance predictor to speed up NAS. We use two popular predictor-based NAS methods: the predictor-guided evolution framework [66, 59], and the Bayesian optimization $^ +$ predictor framework [17, 36, 54]. The predictor-guided evolution framework is an iterative procedure in which the best architectures in the current population are mutated to create a set of candidate architectures. A predictor (trained on the entire population) chooses $k$ architectures which are then evaluated. In our experiments, the candidate pool is created by mutating the top five architectures 40 times each, and we set $k = 2 0$ . For each predictor, we run predictor-guided evolution for 25 iterations and average the results over 100 trials. The $\mathrm { B O + }$ predictor framework is similar to the evolution framework, but an ensemble of three performance predictors are used so that uncertainty estimates for each prediction can be computed. In each iteration, the candidate architectures whose predictions maximize an acquisition function are then evaluated. Similar to prior work, we use independent Thompson sampling [69], as the acquisition function, and an ensemble is created by using a different ordering of the training set and different random weight initializations (if applicable) of the same predictor. In each iteration, the top 20 architectures are chosen from a randomly sampled pool of 200 architectures.
107
+
108
+ In Figure 5, we present results for both NAS frameworks on NAS-Bench-201 CIFAR-10 and ImageNet16-120 for the 16 model-based predictors. We also test OMNI, using its lowest query time setting (consisting of NGBoost $^ +$ Jacobian covariance), and another version of OMNI that replaces NGBoost with SemiNAS. Our results show that the model-based predictors with the top Kendall Tau rank correlations in the low query time region from Figure 2 also roughly achieve the best performance when applied for NAS: SemiNAS and NAO perform the best for shorter runtime, and boosted trees perform best for longer runtime. OMNI(NGBoost) consistently outperforms NGBoost, and OMNI(SemiNAS) often achieves top performance. This suggests that using zero-cost methods in conjunction with model-based methods is a promising direction for future study.
109
+
110
+ # 4.3 So, how powerful are performance predictors?
111
+
112
+ Throughout Section 4, we tested performance predictors in a variety of settings, by varying the search spaces, datasets, runtime budgets, and training/test distributions. We saw largely the same trends among all of our experiments. Interesting findings included the success of zero-cost predictors even when compared to model-based predictors and learning curve extrapolation predictors with longer runtime budgets, and the fact that information from different families of predictors are complementary. When choosing a performance predictor for new applications, we recommend deciding on a target initialization time and query time budget, consulting Figures 2 and 6, and then combining the best predictors from the desired runtime setting, similar to OMNI. For example, if a performance predictor with medium initialization time and low runtime is desired for a search space similar to NAS-Bench201 or DARTS, we recommend using NGBoost with Jacobian covariance and SynFlow as additional features.
113
+
114
+ # 5 Societal Impact
115
+
116
+ Our hope is that our work will have a positive impact on the AutoML community by making it quicker and easier to develop and fairly compare performance predictors. For example, AutoML practitioners can consult our experiments to more easily decide on the performance prediction methods best suited to their application, rather than conducting computationally intensive experiments of their own [43]. Furthermore, AutoML researchers can use our library to develop new performance prediction techniques and compare new methods to 31 other algorithms across four search spaces. Since the topic of this work is AutoML, it is a level of abstraction away from real applications. This work may be used to improve deep learning applications, both beneficial (e.g. reducing $\mathrm { C O _ { 2 } }$ emissions), or harmful (e.g. creating language models with heavy bias) to society.
117
+
118
+ # 6 Conclusions and Limitations
119
+
120
+ In this work, we gave the first large-scale study of performance predictors for neural architecture search. We compared 31 different performance predictors, including learning curve extrapolation methods, weight sharing methods, zero-cost methods, and model-based methods. We tested the performance of the predictors in a variety of settings and with respect to different metrics. Although we ran experiments on four different search spaces, it will be interesting to extend our experiments to even more machine learning tasks beyond image classification and language modeling.
121
+
122
+ Our new predictor, OMNI, is the first predictor to combine complementary information from three families of performance preditors, leading to substantially improved performance. While the simplicity of OMNI is appealing, it also opens up new directions for future work by combining different predictors in more sophisticated ways. To facilitate follow-up work, we release our code featuring a library of performance predictors. Our goal is for our repository to grow over time as it is used by the community, so that experiments in our library can be even more comprehensive.
123
+
124
+ # Acknowledgments and Disclosure of Funding
125
+
126
+ This work was done while CW and YL were employed at Abacus.AI. AZ and FH acknowledge support by the European Research Council (ERC) under the European Union Horizon 2020 research and innovation programme through grant no. 716721, and by BMBF grant DeToL. BR was supported by the Clarendon Fund of University of Oxford.
127
+
128
+ References
129
+ [1] Mohamed S Abdelfattah, Abhinav Mehrotra, Łukasz Dudziak, and Nicholas Donald Lane. Zero-cost proxies for lightweight nas. In Proceedings of the International Conference on Learning Representations (ICLR), 2021.
130
+ [2] Bowen Baker, Otkrist Gupta, Ramesh Raskar, and Nikhil Naik. Accelerating neural architecture search using performance prediction. arXiv preprint arXiv:1705.10823, 2017.
131
+ [3] Matthias Bauer, Mark van der Wilk, and Carl Edward Rasmussen. Understanding probabilistic sparse gaussian process approximations. arXiv preprint arXiv:1606.04820, 2016.
132
+ [4] Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In Proceedings of the International Conference on Machine Learning (ICML), pages 550–559, 2018.
133
+ [5] Eli Bingham, Jonathan P Chen, Martin Jankowiak, Fritz Obermeyer, Neeraj Pradhan, Theofanis Karaletsos, Rohit Singh, Paul Szerlip, Paul Horsfall, and Noah D Goodman. Pyro: Deep universal probabilistic programming. The Journal of Machine Learning Research, 20(1):973– 978, 2019.
134
+ [6] Christopher M Bishop. Pattern recognition and machine learning. springer, 2006.
135
+ [7] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. Proceedings of the International Conference on Learning Representations (ICLR), 2019.
136
+ [8] Akshay Chandrashekaran and Ian R Lane. Speeding up hyper-parameter optimization by extrapolation of learning curves using previous builds. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 477–492. Springer, 2017.
137
+ [9] Tianqi Chen and Carlos Guestrin. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining, pages 785–794, 2016.
138
+ [10] Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the CIFAR datasets. CoRR, abs/1707.08819, 2017.
139
+ [11] Tobias Domhan, Jost Tobias Springenberg, and Frank Hutter. Speeding up automatic hyperparameter optimization of deep neural networks by extrapolation of learning curves. In Twenty-Fourth International Joint Conference on Artificial Intelligence, 2015.
140
+ [12] Xuanyi Dong and Yi Yang. Searching for a robust neural architecture in four gpu hours. In Proceedings of the IEEE Conference on computer vision and pattern recognition, pages 1761–1770, 2019.
141
+ [13] Xuanyi Dong and Yi Yang. Nas-bench-201: Extending the scope of reproducible neural architecture search. In Proceedings of the International Conference on Learning Representations (ICLR), 2020.
142
+ [14] Tony Duan, Avati Anand, Daisy Yi Ding, Khanh K Thai, Sanjay Basu, Andrew Ng, and Alejandro Schuler. Ngboost: Natural gradient boosting for probabilistic prediction. In International Conference on Machine Learning, pages 2690–2700. PMLR, 2020.
143
+ [15] Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Neural architecture search: A survey. arXiv preprint arXiv:1808.05377, 2018.
144
+ [16] Stefan Falkner, Aaron Klein, and Frank Hutter. Bohb: Robust and efficient hyperparameter optimization at scale. In Proceedings of the International Conference on Machine Learning (ICML), 2018.
145
+ [17] Kirthevasan Kandasamy, Willie Neiswanger, Jeff Schneider, Barnabas Poczos, and Eric P Xing. Neural architecture search with Bayesian optimisation and optimal transport. In Advances in Neural Information Processing Systems, pages 2016–2025, 2018.
146
+ [18] Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. Lightgbm: A highly efficient gradient boosting decision tree. Advances in neural information processing systems, 30:3146–3154, 2017.
147
+ [19] Hiroaki Kitano. Designing neural networks using genetic algorithms with graph generation system. Complex systems, 4(4):461–476, 1990.
148
+ [20] Aaron Klein, Stefan Falkner, Jost Tobias Springenberg, and Frank Hutter. Learning curve prediction with Bayesian neural networks. ICLR 2017, 2017.
149
+ [21] Nikita Klyuchnikov, Ilya Trofimov, Ekaterina Artemova, Mikhail Salnikov, Maxim Fedorov, and Evgeny Burnaev. Nas-bench-nlp: neural architecture search benchmark for natural language processing. arXiv preprint arXiv:2006.07116, 2020.
150
+ [22] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
151
+ [23] Namhoon Lee, Thalaiyasingam Ajanthan, and Philip Torr. SNIP: Single-shot network pruning based on connection sensitivity. In Proceedings of the International Conference on Learning Representations (ICLR), 2019.
152
+ [24] Liam Li, Kevin Jamieson, Afshin Rostamizadeh, Ekaterina Gonina, Moritz Hardt, Benjamin Recht, and Ameet Talwalkar. A system for massively parallel hyperparameter tuning. In Proceedings of the Conference on Machine Learning Systems, 2020.
153
+ [25] Liam Li, Mikhail Khodak, Maria-Florina Balcan, and Ameet Talwalkar. Geometry-aware gradient algorithms for neural architecture search. In Proceedings of the International Conference on Learning Representations (ICLR), 2021.
154
+ [26] Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. arXiv preprint arXiv:1902.07638, 2019.
155
+ [27] Lisha Li, Kevin Jamieson, Giulia DeSalvo, Afshin Rostamizadeh, and Ameet Talwalkar. Hyperband: A novel bandit-based approach to hyperparameter optimization. arXiv preprint arXiv:1603.06560, 2016.
156
+ [28] Hanwen Liang, Shifeng Zhang, Jiacheng Sun, Xingqiu He, Weiran Huang, Kechen Zhuang, and Zhenguo Li. Darts+: Improved differentiable architecture search with early stopping. arXiv preprint arXiv:1909.06035, 2019.
157
+ [29] Andy Liaw, Matthew Wiener, et al. Classification and regression by randomforest. R news, 2(3):18–22, 2002.
158
+ [30] Marius Lindauer, Katharina Eggensperger, Matthias Feurer, Stefan Falkner, André Biedenkapp, and Frank Hutter. Smac v3: Algorithm configuration in python. URL https://github. com/automl/SMAC3, 2017.
159
+ [31] Marius Lindauer and Frank Hutter. Best practices for scientific research on neural architecture search. arXiv preprint arXiv:1909.02453, 2019.
160
+ [32] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018.
161
+ [33] Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture search with gbdt. arXiv preprint arXiv:2007.04785, 2020.
162
+ [34] Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Enhong Chen, and Tie-Yan Liu. Semi-supervised neural architecture search. In Proceedings of the Annual Conference on Neural Information Processing Systems (NeurIPS), 2020.
163
+ [35] Renqian Luo, Fei Tian, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture optimization. In Proceedings of the Annual Conference on Neural Information Processing Systems (NeurIPS), 2018.
164
+ [36] Lizheng Ma, Jiaxu Cui, and Bo Yang. Deep neural architecture search with deep graph Bayesian optimization. In 2019 IEEE/WIC/ACM International Conference on Web Intelligence (WI), pages 500–507. IEEE, 2019.
165
+ [37] Krzysztof Maziarz, Andrey Khorlin, Quentin de Laroussilhe, and Andrea Gesmundo. Evolutionary-neural hybrid agents for architecture search. arXiv preprint arXiv:1811.09828, 2018.
166
+ [38] Joseph Mellor, Jack Turner, Amos Storkey, and Elliot J Crowley. Neural architecture search without training. arXiv preprint arXiv:2006.04647, 2020.
167
+ [39] Szymon Jakub Mikler. Snip: Single-shot network pruning based on connection sensitivity. GitHub repository gahaalt/SNIP-pruning, 2019.
168
+ [40] Tomáš Mikolov, Martin Karafiát, Lukáš Burget, Jan Cernock ˇ y, and Sanjeev Khudanpur. Recur- \` rent neural network based language model. In Annual conference of the international speech communication association, 2010.
169
+ [41] Xuefei Ning, Wenshuo Li, Zixuan Zhou, Tianchen Zhao, Yin Zheng, Shuang Liang, Huazhong Yang, and Yu Wang. A surgery of the neural architecture evaluators. arXiv preprint arXiv:2008.03064, 2020.
170
+ [42] Xuefei Ning, Yin Zheng, Tianchen Zhao, Yu Wang, and Huazhong Yang. A generic graph-based neural architecture encoding scheme for predictor-based nas. arXiv preprint arXiv:2004.01899, 2020.
171
+ [43] David Patterson, Joseph Gonzalez, Quoc Le, Chen Liang, Lluis-Miquel Munguia, Daniel Rothchild, David So, Maud Texier, and Jeff Dean. Carbon emissions and large neural network training. arXiv preprint arXiv:2104.10350, 2021.
172
+ [44] Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, et al. Scikitlearn: Machine learning in python. the Journal of machine Learning research, 12:2825–2830, 2011.
173
+ [45] Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018.
174
+ [46] Joaquin Quiñonero Candela and Carl Edward Rasmussen. A unifying view of sparse approximate gaussian process regression. J. Mach. Learn. Res., 6:1939–1959, December 2005.
175
+ [47] Carl Edward Rasmussen. Gaussian processes in machine learning. In Summer School on Machine Learning, pages 63–71. Springer, 2003.
176
+ [48] Carl Edward Rasmussen. Gaussian processes in machine learning. In Summer School on Machine Learning, pages 63–71. Springer, 2003.
177
+ [49] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In Proceedings of the aaai conference on artificial intelligence, volume 33, pages 4780–4789, 2019.
178
+ [50] Binxin Ru, Clare Lyle, Lisa Schut, Mark van der Wilk, and Yarin Gal. Revisiting the train loss: an efficient performance estimator for neural architecture search. arXiv preprint arXiv:2006.04492, 2020.
179
+ [51] Binxin Ru, Xingchen Wan, Xiaowen Dong, and Michael Osborne. Neural architecture search using Bayesian optimisation with weisfeiler-lehman kernel. arXiv preprint arXiv:2006.07556, 2020.
180
+ [52] Michael Ruchte, Arber Zela, Julien Siems, Josif Grabocka, and Frank Hutter. Naslib: a modular and flexible neural architecture search library, 2020.
181
+ [53] Christian Sciuto, Kaicheng Yu, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. arXiv preprint arXiv:1902.08142, 2019.
182
+ [54] Han Shi, Renjie Pi, Hang Xu, Zhenguo Li, James Kwok, and Tong Zhang. Bridging the gap between sample-based and one-shot neural architecture search with bonas. Advances in Neural Information Processing Systems, 33, 2020.
183
+ [55] Julien Siems, Lucas Zimmer, Arber Zela, Jovita Lukasik, Margret Keuper, and Frank Hutter. Nas-bench-301 and the case for surrogate benchmarks for neural architecture search. arXiv preprint arXiv:2008.09777, 2020.
184
+ [56] Jasper Snoek, Oren Rippel, Kevin Swersky, Ryan Kiros, Nadathur Satish, Narayanan Sundaram, Mostofa Patwary, Mr Prabhat, and Ryan Adams. Scalable Bayesian optimization using deep neural networks. In International conference on machine learning, pages 2171–2180, 2015.
185
+ [57] Jost Tobias Springenberg, Aaron Klein, Stefan Falkner, and Frank Hutter. Bayesian optimization with robust Bayesian neural networks. In Advances in Neural Information Processing Systems, pages 4134–4142, 2016.
186
+ [58] Kenneth O Stanley and Risto Miikkulainen. Evolving neural networks through augmenting topologies. Evolutionary computation, 10(2):99–127, 2002.
187
+ [59] Yanan Sun, Xian Sun, Yuhan Fang, and Gary Yen. A new training protocol for performance predictors of evolutionary neural architecture search algorithms. arXiv preprint arXiv:2008.13187, 2020.
188
+ [60] Kevin Swersky, David Duvenaud, Jasper Snoek, Frank Hutter, and Michael Osborne. Raiders of the lost architecture: Kernels for Bayesian optimization in conditional parameter spaces. In NIPS workshop on Bayesian Optimization in Theory and Practice, December 2013.
189
+ [61] Hidenori Tanaka, Daniel Kunin, Daniel LK Yamins, and Surya Ganguli. Pruning neural networks without any data by iteratively conserving synaptic flow. arXiv preprint arXiv:2006.05467, 2020.
190
+ [62] Lucas Theis, Iryna Korshunova, Alykhan Tejani, and Ferenc Huszár. Faster gaze prediction with dense networks and fisher pruning. arXiv preprint arXiv:1801.05787, 2018.
191
+ [63] Michalis Titsias. Variational learning of inducing variables in sparse gaussian processes. In Artificial Intelligence and Statistics, pages 567–574, 2009.
192
+ [64] Chaoqi Wang, Guodong Zhang, and Roger Grosse. Picking winning tickets before training by preserving gradient flow. In Proceedings of the International Conference on Learning Representations (ICLR), 2019.
193
+ [65] Linnan Wang, Yiyang Zhao, Yuu Jinnai, and Rodrigo Fonseca. Alphax: exploring neural architectures with deep neural networks and monte carlo tree search. arXiv preprint arXiv:1805.07440, 2018.
194
+ [66] Chen Wei, Chuang Niu, Yiping Tang, and Jimin Liang. Npenas: Neural predictor guided evolution for neural architecture search. arXiv preprint arXiv:2003.12857, 2020.
195
+ [67] Wei Wen, Hanxiao Liu, Hai Li, Yiran Chen, Gabriel Bender, and Pieter-Jan Kindermans. Neural predictor for neural architecture search. arXiv preprint arXiv:1912.00848, 2019.
196
+ [68] Colin White, Willie Neiswanger, Sam Nolen, and Yash Savani. A study on encodings for neural architecture search. In Proceedings of the Annual Conference on Neural Information Processing Systems (NeurIPS), 2020.
197
+ [69] Colin White, Willie Neiswanger, and Yash Savani. Bananas: Bayesian optimization with neural architectures for neural architecture search. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021.
198
+ [70] Antoine Yang, Pedro M Esperança, and Fabio M Carlucci. Nas evaluation is frustratingly hard. In Proceedings of the International Conference on Learning Representations (ICLR), 2020.
199
+ [71] Chris Ying, Aaron Klein, Esteban Real, Eric Christiansen, Kevin Murphy, and Frank Hutter. Nasbench-101: Towards reproducible neural architecture search. arXiv preprint arXiv:1902.09635, 2019.
200
+ [72] Kaicheng Yu, Rene Ranftl, and Mathieu Salzmann. How to train your super-net: An analysis of training heuristics in weight-sharing nas. arXiv preprint arXiv:2003.04276, 2020.
201
+ [73] Arber Zela, Thomas Elsken, Tonmoy Saikia, Yassine Marrakchi, Thomas Brox, and Frank Hutter. Understanding and robustifying differentiable architecture search. In Proceedings of the International Conference on Learning Representations (ICLR), 2020.
202
+ [74] Arber Zela, Julien Siems, and Frank Hutter. Nas-bench-1shot1: Benchmarking and dissecting one-shot neural architecture search. In Proceedings of the International Conference on Learning Representations (ICLR), 2020.
203
+ [75] Yuge Zhang. Neural predictor for neural architecture search. GitHub repository ultmaster/neuralpredictor.pytorch, 2020.
204
+ [76] Yuge Zhang, Zejun Lin, Junyang Jiang, Quanlu Zhang, Yujing Wang, Hui Xue, Chen Zhang, and Yaming Yang. Deeper insights into weight sharing in neural architecture search. arXiv preprint arXiv:2001.01431, 2020.
205
+ [77] Dongzhan Zhou, Xinchi Zhou, Wenwei Zhang, Chen Change Loy, Shuai Yi, Xuesen Zhang, and Wanli Ouyang. Econas: Finding proxies for economical neural architecture search. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11396–11404, 2020.
206
+ [78] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In Proceedings of the International Conference on Learning Representations (ICLR), 2017.
207
+ [79] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8697–8710, 2018.
208
+
209
+ # Checklist
210
+
211
+ 1. For all authors...
212
+
213
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] Our abstract and introduction accurately reflect our paper.
214
+ (b) Did you describe the limitations of your work? [Yes] See Section 6.
215
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5.
216
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] We discuss the ethics guidelines in Section 5.
217
+
218
+ 2. If you are including theoretical results...
219
+
220
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] We did not include theoretical results.
221
+ (b) Did you include complete proofs of all theoretical results? [N/A] We did not include theoretical results.
222
+
223
+ 3. If you ran experiments...
224
+
225
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We included all code, data, and instructions in the supplementary material.
226
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] All training details are specified in the supplementary material.
227
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We ran 100 trials for all experiments. Our plots that are performance vs. runtime (e.g. Figure 5) have error bars. For our Pareto-optimality plots (e.g. Figure 7), see the supplementary material for the error bars for all 31 predictors.
228
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We report the compute time and resources used in Section 4 and in the supplementary material.
229
+
230
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
231
+
232
+ (a) If your work uses existing assets, did you cite the creators? [Yes] We cite the creators of all code, data, and models used.
233
+ (b) Did you mention the license of the assets? [Yes] We mention the licenses in the supplementary material.
234
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A] We do not include new assets.
235
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] We did not use or release any datasets with personal data.
236
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] The data we are using does not contain personal information or offensive content.
237
+
238
+ 5. If you used crowdsourcing or conducted research with human subjects...
239
+
240
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] We did not run experiments with human subjects.
241
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] We did not run experiments with human subjects.
242
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] We did not run experiments with human subjects.
parse/train/6RB77-6-_oI/6RB77-6-_oI_content_list.json ADDED
@@ -0,0 +1,937 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "How Powerful are Performance Predictors in Neural Architecture Search? ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 241,
8
+ 122,
9
+ 756,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Colin White1∗, Arber $\\mathbf { Z e l a ^ { 2 } }$ , Binxin $\\mathbf { R } \\mathbf { u } ^ { 3 }$ , Yang $\\mathbf { L i u } ^ { 1 }$ , Frank Hutter2,4 1 Abacus.AI, 2 University of Freiburg, 3 University of Oxford, 4 Bosch Center for Artificial Intelligence ",
17
+ "bbox": [
18
+ 259,
19
+ 219,
20
+ 736,
21
+ 265
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 300,
32
+ 535,
33
+ 318
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Early methods in the rapidly developing field of neural architecture search (NAS) required fully training thousands of neural networks. To reduce this extreme computational cost, dozens of techniques have since been proposed to predict the final performance of neural architectures. Despite the success of such performance prediction methods, it is not well-understood how different families of techniques compare to one another, due to the lack of an agreed-upon evaluation metric and optimization for different constraints on the initialization time and query time. In this work, we give the first large-scale study of performance predictors by analyzing 31 techniques ranging from learning curve extrapolation, to weight-sharing, to supervised learning, to zero-cost proxies. We test a number of correlation- and rank-based performance measures in a variety of settings, as well as the ability of each technique to speed up predictor-based NAS frameworks. Our results act as recommendations for the best predictors to use in different settings, and we show that certain families of predictors can be combined to achieve even better predictive power, opening up promising research directions. Our code, featuring a library of 31 performance predictors, is available at https://github.com/automl/naslib. ",
40
+ "bbox": [
41
+ 233,
42
+ 332,
43
+ 766,
44
+ 551
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 574,
55
+ 310,
56
+ 592
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Neural architecture search (NAS) is a popular area of machine learning, which aims to automate the process of developing neural architectures for a given dataset. Since 2017, a wide variety of NAS techniques have been proposed [78, 45, 32, 49]. While the first NAS techniques trained thousands of architectures to completion and then evaluated the performance using the final validation accuracy [78], modern algorithms use more efficient strategies to estimate the performance of partially-trained or even untrained neural networks [11, 2, 54, 34, 38]. ",
63
+ "bbox": [
64
+ 174,
65
+ 606,
66
+ 825,
67
+ 689
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Recently, many performance prediction methods have been proposed based on training a model to predict the final validation accuracy of an architecture just from an encoding of the architecture. Popular choices for these models include Gaussian processes [60, 17, 51], neural networks [36, 54, 65, 69], tree-based methods [33, 55], and so on. However, these methods often require hundreds of fully-trained architectures to be used as training data, thus incurring high initialization time. In contrast, learning curve extrapolation methods [11, 2, 20] need little or no initialization time, but each individual prediction requires partially training the architecture, incurring high query time. Very recently, a few techniques have been introduced which are fast both in query time and initialization time [38, 1], computing predictions based on a single minibatch of data. Finally, using shared weights [45, 4, 32] is a popular paradigm for NAS [73, 25], although the effectiveness of these methods in ranking architectures is disputed [53, 74, 76]. ",
74
+ "bbox": [
75
+ 174,
76
+ 695,
77
+ 825,
78
+ 847
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Despite the widespread use of performance predictors, it is not known how methods from different families compare to one another. While there have been some analyses on the best predictors within each class [41, 72], for many predictors, the only evaluation is from the original work that proposed the method. Furthermore, no work has previously compared the predictors across different families of performance predictors. This leads to two natural questions: how do zero-cost methods, model-based methods, learning curve extrapolation methods, and weight sharing methods compare to one another across different constraints on initialization time and query time? Furthermore, can predictors from different families be combined to achieve even better performance? ",
85
+ "bbox": [
86
+ 176,
87
+ 853,
88
+ 821,
89
+ 882
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/8ef65ff2a4bcf9b65d26fffcc3b0e9d5d7feb603c89effe903da6194e6e8e872.jpg",
96
+ "image_caption": [
97
+ "Figure 1: Categories of performance predictors (left). Kendall Tau rank correlation for performance predictors with respect to initialization time and query time (right). Each type of predictor is plotted differently based on whether it allows variable initialization time and/or variable query time. For example, the sixteen model-based predictors have a fixed query time and variable initialization time, so they are plotted as curves parallel to the X-Z plane. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 176,
102
+ 103,
103
+ 820,
104
+ 236
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 174,
113
+ 344,
114
+ 825,
115
+ 428
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "In this work, we answer the above questions by giving the first large-scale study of performance predictors for NAS. We study 31 predictors across four popular search spaces and four datasets: NAS-Bench-201 [13] with CIFAR-10, CIFAR-100, and ImageNet16-120, NAS-Bench-101 [71] and DARTS [32] with CIFAR-10, and NAS-Bench-NLP [21] with Penn TreeBank. In order to give a fair comparison among different classes of predictors, we run a full portfolio of experiments, measuring the Pearson correlation and rank correlation metrics (Spearman, Kendall Tau, and sparse Kendall Tau), across a variety of initialization time and query time budgets. We run experiments using a training and test set of architectures generated both uniformly at random, as well as by mutating the highest-performing architectures (the latter potentially more closely resembling distributions encountered during an actual NAS run). Finally, we test the ability of each predictor to speed up NAS algorithms, namely Bayesian optimization [36, 54, 69, 51] and predictor-guided evolution [66, 59]. ",
122
+ "bbox": [
123
+ 173,
124
+ 434,
125
+ 825,
126
+ 587
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Since many predictors so far had only been evaluated on one search space, our work shows which predictors have consistent performance across search spaces. Furthermore, by conducting a study with three axes of comparison (see Figure 1), and by comparing various types of predictors, we see a more complete view of the state of performance predictor techniques that leads to interesting insights. Notably, we show that the performance of predictors from different families are complementary and can be combined to achieve significantly higher performance. The success of these experiments opens up promising avenues for future work. ",
133
+ "bbox": [
134
+ 174,
135
+ 593,
136
+ 825,
137
+ 690
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Overall, our experiments bridge multiple areas of NAS research and act as recommendations for the best predictors to use under different runtime constraints. Our code, based on the NASLib library [52], can be used as a testing ground for future performance prediction techniques. In order to ensure reproducibility of the original results, we created a table to clarify which of the 31 predictors had previously published results on a NAS-Bench search space, and how these published results compared to our results (Table 7). We also adhere to the NeurIPS 2021 checklist along with the specialized NAS best practices checklist [31]. ",
144
+ "bbox": [
145
+ 174,
146
+ 696,
147
+ 825,
148
+ 794
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Our contributions. We summarize our main contributions below. ",
155
+ "bbox": [
156
+ 176,
157
+ 799,
158
+ 606,
159
+ 814
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "• We conduct the first large-scale study of performance predictors for neural architecture search by comparing model-based methods, learning curve extrapolation methods, zero-cost methods, and weight sharing methods across a variety of settings. \n• We release a comprehensive library of 31 performance predictors on four different search spaces. \n• We show that different families of performance predictors can be combined to achieve substantially better predictive power than any single predictor. ",
166
+ "bbox": [
167
+ 183,
168
+ 820,
169
+ 826,
170
+ 909
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2 Related Work ",
177
+ "text_level": 1,
178
+ "bbox": [
179
+ 174,
180
+ 89,
181
+ 321,
182
+ 106
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "NAS has been studied since at least the 1990s [19, 58], and has been revitalized in the last few years [78]. While initial techniques focused on reinforcement learning [78, 45] and evolutionary search [37, 49], one-shot NAS algorithms [32, 12, 4] and predictor-based NAS algorithms [65, 54, 69] have recently become popular. We give a brief survey of performance prediction techniques in Section 3. For a survey on NAS, see [15]. The most widely used type of search space in prior work is the cell-based search space [79], where the architecture search is over a relatively small directed acyclic graph representing an architecture. ",
189
+ "bbox": [
190
+ 174,
191
+ 125,
192
+ 825,
193
+ 222
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "A few recent works have compared different performance predictors on popular cell-based search spaces for NAS. Siems et al. [55] studied graph neural networks and tree-based methods, and found that gradient-boosted trees and graph isomorphism networks performed the best. However, the comparison was only on a single search space and dataset, and the explicit goal was to achieve maximum performance given a training set of around 60 000 architectures. Another recent paper [41] studied various aspects of supernetwork training, and separately compared four model-based methods: random forest, MLP, LSTM, and GATES [42]. However, the comparisons were again on a single search space and dataset and did not compare between multiple families of performance predictors. Other papers have proposed new model-based predictors and compared the new predictors to other model-based baselines [34, 65, 54, 69]. Finally, a recent paper analyzed training heuristics to make weight-sharing more effective at ranking architectures [72]. To the best of our knowledge, no prior work has conducted comparisons across multiple families of performance predictors. ",
200
+ "bbox": [
201
+ 173,
202
+ 228,
203
+ 825,
204
+ 393
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "3 Performance Prediction Methods for NAS ",
211
+ "text_level": 1,
212
+ "bbox": [
213
+ 174,
214
+ 419,
215
+ 555,
216
+ 436
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "In NAS, given a search space $\\mathcal { A }$ , the goal is to find $a ^ { * } = \\operatorname * { a r g m i n } _ { a \\in { \\mathcal { A } } } f ( a )$ , where $f$ denotes the validation error of architecture $a$ after training on a fixed dataset for a fixed number of epochs $E$ . Since evaluating $f ( a )$ typically takes hours (as it requires training a neural network from scratch), many NAS algorithms make use of performance predictors to speed up this process. A performance predictor $f ^ { \\prime }$ is defined generally as any function which predicts the final accuracy or ranking of architectures, without fully training the architectures. That is, evaluating $f ^ { \\prime }$ should take less time than evaluating $f$ , and $\\{ f ^ { \\prime } ( a ) \\mid a \\in \\mathcal { A } \\}$ should ideally have high correlation or rank correlation with $\\{ f ( a ) \\mid a \\in { \\bar { \\mathcal { A } } } \\}$ . ",
223
+ "bbox": [
224
+ 173,
225
+ 454,
226
+ 825,
227
+ 565
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "Each performance predictor is defined by two main routines: an initialization routine which performs general pre-computation, and a query routine which performs the final architecture-specific computation: it takes as input an architecture specification, and outputs its predicted accuracy. For example, one of the simplest performance predictors is early stopping: for any query $( a )$ , train $a$ for $E / 2$ epochs instead of $E$ [77]. In this case, there is no general pre-computation, so initialization time is zero. On the other hand, the query time for each input architecture is high because it involves training the architecture for $E / 2$ epochs. In fact, the runtime of the initialization and query routines varies substantially based on the type of predictor. In the context of NAS algorithms, the initialization routine is typically performed once at the start of the algorithm, and the query routine is typically performed many times throughout the NAS algorithm. Some performance predictors also make use of an update routine, when part of the computation from initialization needs to be updated without running the full procedure again (for example, in a NAS algorithm, a model may be updated periodically based on newly trained architectures). Now we give an overview of the main families of predictors. See Figure 1 (left) for a taxonomy of performance predictors. ",
234
+ "bbox": [
235
+ 174,
236
+ 571,
237
+ 825,
238
+ 765
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "Model-based (trainable) methods. The most common type of predictor, the model-based predictor, is based on supervised learning. The initialization routine consists of fully training many architectures (i.e., evaluating $f ( a )$ for many architectures $a \\in { \\mathcal { A } }$ ) to build a training set of datapoints $\\{ a , f ( a ) \\}$ . Then a model $f ^ { \\prime }$ is trained to predict $f ( a )$ given $a$ . While the initialization time for model-based predictors is very high, the query time typically takes less than a second, which allows thousands of predictions to be made throughout a NAS algorithm. The model is also updated regularly based on the new datapoints. These predictors are typically used within BO frameworks [36, 54], evolutionary frameworks [66], or by themselves [67], to perform NAS. Popular choices for the model include tree-based methods (where the features are the adjacency matrix representation of the architectures) [33, 55], graph neural networks [36, 54], Gaussian processes [47, 51], and neural networks based on specialized encodings of the architecture [69, 42]. ",
245
+ "bbox": [
246
+ 174,
247
+ 786,
248
+ 825,
249
+ 911
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "",
256
+ "bbox": [
257
+ 174,
258
+ 92,
259
+ 823,
260
+ 119
261
+ ],
262
+ "page_idx": 3
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "Learning curve-based methods. Another family predicts the final performance of architectures using only a partially trained network, by extrapolating the learning curve. This is accomplished by fitting the partial learning curve to an ensemble of parametric models [11], or by simply summing the training losses observed so far [50]. Early stopping as described earlier is also a learning curve-based method. Learning curve methods do not require any initialization time, yet the query time typically takes minutes or hours, which is orders of magnitude slower than the query time in model-based methods. Learning curve-based methods can be used in conjunction with multi-fidelty algorithms, such as Hyperband or BOHB [27, 16, 24]. ",
267
+ "bbox": [
268
+ 174,
269
+ 133,
270
+ 825,
271
+ 244
272
+ ],
273
+ "page_idx": 3
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "Hybrid methods. Some predictors are hybrids between learning curve and model-based methods. These predictors train a model at initialization time to predict $f ( a )$ given both $a$ and a partial learning curve of $a$ as features. Models in prior work include an SVR [2], or a Bayesian neural network [20]. Although the query time and initialization time are both high, hybrid predictors tend to have strong performance. ",
278
+ "bbox": [
279
+ 174,
280
+ 258,
281
+ 825,
282
+ 328
283
+ ],
284
+ "page_idx": 3
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Zero-cost methods. Another class of predictors have no initialization time and very short query times (so-called “zero-cost” methods). These predictors compute statistics from just a single forward/backward propagation pass for a single minibatch of data, by computing the correlation of activations within a network [38], or by adapting saliency metrics proposed in pruning-at-initialization literatures [23, 1]. Similar to learning curve-based methods, since the only computation is specific to each architecture, the initialization time is zero. Zero-cost methods have recently been used to warm start NAS algorithms [1]. ",
289
+ "bbox": [
290
+ 174,
291
+ 343,
292
+ 825,
293
+ 440
294
+ ],
295
+ "page_idx": 3
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "Weight sharing methods. Weight sharing [45] is a popular approach to substantially speed up NAS, especially in conjunction with a one-shot algorithm [32, 12]. In this approach, all architectures in the search space are combined to form a single over-parameterized supernetwork. By training the weights of the supernetwork, all architectures in the search space can be evaluated quickly using this set of weights. To this end, the supernetwork can be used as a performance predictor. This results in NAS algorithms [32, 28] which are significantly faster than sequential NAS algorithms, such as evolution or Bayesian optimization. Recent work has shown that although the shared weights are sometimes not effective at ranking architectures [53, 74, 76], one-shot NAS techniques using shared weights still achieve strong performance [73, 25]. ",
300
+ "bbox": [
301
+ 174,
302
+ 454,
303
+ 825,
304
+ 579
305
+ ],
306
+ "page_idx": 3
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "Tradeoff between intialization and query time. The main families mentioned above all have different initialization and query times. The tradeoffs between initialization time, query time, and performance depend on a few factors such as the type of NAS algorithm and its total runtime budget, and different settings are needed in different situations. For example, if there are many architectures whose performance we want to estimate, then we should have a low query time, and if we have a high total runtime budget, then we can afford a high initialization time. We may also change our runtime budget throughout the run of a single NAS algorithm. For example, at the start of a NAS algorithm, we may want to have coarse estimates of a large number of architectures (low initialization time, low query time such as zero-cost predictors). As the NAS algorithm progresses, it is more desirable to receive higher-fidelity predictions on a smaller set of architectures (model-based or hybrid predictors). The exact budgets depend on the type of NAS algorithm. ",
311
+ "bbox": [
312
+ 174,
313
+ 593,
314
+ 825,
315
+ 744
316
+ ],
317
+ "page_idx": 3
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "Choice of performance predictors. We analyze 31 performance predictors defined in prior work: BANANAS [69], Bayesian Linear Regression [6], BOHAMIANN [57], BONAS [54], DNGO [56], Early Stopping with Val. Acc. (e.g. [77, 27, 16, 79]) Early Stopping with Val. Loss. [50], Fisher [1], Gaussian Process (GP) [48], GCN [75], Grad Norm [1], Grasp [64], Jacobian Covariance [38], LCE [11], LCE-m [20], LcSVR [2], LGBoost/GBDT [33], MLP [69], NAO [35], NGBoost [55], OneShot [73], Random Forest (RF) [55], Random Search with Weight Sharing (RSWS) [26], SemiNAS [34], SNIP [23], SoTL [50], SoTL-E [50], Sparse GP [3], SynFlow [61], Variational Sparse GP [63], and XGBoost [55]. For any method that did not have an architecture encoding already defined (such as the tree-based methods, GP-based methods, and Bayesian Linear Regression), we use the standard adjacency matrix encoding, which consists of the adjacency matrix of the architecture along with a one-hot list of the operations [71, 68]. By open-sourcing our code, we encourage implementing more (existing and future) performance predictors which can then be compared to the 31 which we focus on in this work. In Section B.1, we give descriptions and detailed implementation details for each performance predictor. In Section D, we give a table that describes for which predictors we were able to reproduce published results, and for which predictors it is not possible (e.g., since some predictors were released before the creation of NAS benchmarks). ",
322
+ "bbox": [
323
+ 174,
324
+ 758,
325
+ 825,
326
+ 911
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "image",
332
+ "img_path": "images/cac2d076145d762a60a6f0cf6b3b21b22efe01ee2cac10389179b735bb57d3b9.jpg",
333
+ "image_caption": [
334
+ "Figure 2: The performance predictors with the highest Kendall Tau values for all initialization time and query time budgets on NAS-Bench-201, NAS-Bench-101, NAS-Bench-NLP and DARTS. For example, on NAS-Bench-201 CIFAR-10 (left) with an initialization time of $1 0 ^ { 6 }$ seconds and query time of 10 seconds, XGBoost achieves a Kendall Tau value of .73 which is the highest value out of the 31 predictors that we tested at that budget. "
335
+ ],
336
+ "image_footnote": [],
337
+ "bbox": [
338
+ 186,
339
+ 92,
340
+ 828,
341
+ 363
342
+ ],
343
+ "page_idx": 4
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "",
348
+ "bbox": [
349
+ 174,
350
+ 468,
351
+ 825,
352
+ 537
353
+ ],
354
+ "page_idx": 4
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "4 Experiments ",
359
+ "text_level": 1,
360
+ "bbox": [
361
+ 174,
362
+ 559,
363
+ 312,
364
+ 577
365
+ ],
366
+ "page_idx": 4
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "We now discuss our experimental setup and results. We discuss reproducibility in Sections A and D, and our code (based on the NASLib library [52]) is available at https://github.com/automl/ naslib. We split up our experiments into two categories: evaluating the performance of each predictor with respect to various correlation metrics (Section 4.1), and evaluating the ability of each predictor to speed up predictor-based NAS algorithms (Section 4.2). We start by describing the four NAS benchmarks used in our experiments. ",
371
+ "bbox": [
372
+ 174,
373
+ 590,
374
+ 825,
375
+ 674
376
+ ],
377
+ "page_idx": 4
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "NAS benchmark datasets. NAS-Bench-101 [71] consists of over 423 000 unique neural architectures with precomputed training, validation, and test accuracies after training for 4, 12, 36, and 108 epochs on CIFAR-10 [71]. The cell-based search space consists of five nodes which can take on any directed acyclic graph (DAG) structure, and each node can be one of three operations. Since learning curve information is only available at four epochs, it is not possible to run most learning curve extrapolation methods on NAS-Bench-101. NAS-Bench-201 [13] consists of 15 625 architectures (out of which 6 466 are unique after removing isomorphisms [13]). Each architecture has full learning curve information for training, validation, and test losses/accuracies for 200 epochs on CIFAR-10 [22], CIFAR-100, and ImageNet-16-120 [10]. The search space consists of a cell which is a complete DAG with 4 nodes. Each edge can take one of five different operations. The DARTS search space [32] is significantly larger with roughly $1 0 ^ { 1 8 }$ architectures. The search space consists of two cells, each with seven nodes. The first two nodes are inputs from previous layers, and the intermediate four nodes can take on any DAG structure such that each node has two incident edges. The last node is the output node. Each edge can take one of eight operations. In our experiments, we make use of the training data from NAS-Bench-301 [55], which consists of 23 000 architectures drawn uniformly at random and trained on CIFAR-10 for 100 epochs. Finally, the NAS-Bench-NLP search space [21] is even larger, at $1 0 ^ { 5 3 }$ LSTM-like cells, each with at most 25 nodes in any DAG structure. Each cell can take one of seven operations. In our experiments, we use the NAS-Bench-NLP dataset, which consists of 14 000 architectures drawn uniformly at random and trained on Penn Tree Bank [40] for 50 epochs. ",
382
+ "bbox": [
383
+ 174,
384
+ 689,
385
+ 826,
386
+ 911
387
+ ],
388
+ "page_idx": 4
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "",
393
+ "bbox": [
394
+ 176,
395
+ 90,
396
+ 825,
397
+ 132
398
+ ],
399
+ "page_idx": 5
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Hyperparameter tuning. Although we used the code directly from the original repositories (sometimes making changes when necessary to adapt to NAS-Bench search spaces), the predictors had significantly different levels of hyperparameter tuning. For example, some of the predictors had undergone heavy hyperparameter tuning on the DARTS search space (used in NAS-Bench-301), while other predictors (particularly those from 2017 or earlier) had never been run on cell-based search spaces. Furthermore, most predictor-based NAS algorithms can utilize cross-validation to tune the predictor periodically throughout the NAS algorithm. This is because the bottleneck for predictorbased NAS algorithms is typically the training of architectures, not fitting the predictor [56, 30, 16]. Therefore, it is fairer and also more informative to compare performance predictors which have had the same level of hyperparameter tuning through cross-validation. For each search space, we run random search on each performance predictor for 5000 iterations, with a maximum total runtime of 15 minutes. The final evaluation uses a separate test set. The hyperparameter value ranges for each predictor can be found in Section B.2. ",
404
+ "bbox": [
405
+ 174,
406
+ 148,
407
+ 826,
408
+ 328
409
+ ],
410
+ "page_idx": 5
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "4.1 Performance Predictor Evaluation ",
415
+ "text_level": 1,
416
+ "bbox": [
417
+ 176,
418
+ 345,
419
+ 452,
420
+ 359
421
+ ],
422
+ "page_idx": 5
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "We evaluate each predictor based on three axes of comparison: initialization time, query time, and performance. We measured performance with respect to several different metrics: Pearson correlation and three different rank correlation metrics (Spearman, Kendall Tau, and sparse Kendall Tau [72, 55]). The experimental setup is as follows: the predictors are tested with 11 different initialization time budgets and 14 different query time budgets, leading to a total of 154 settings. On NAS-Bench-201 CIFAR-10, the 11 initialization time budgets are spaced logarithmically from 1 second to $1 . 8 \\times 1 0 ^ { 7 }$ seconds on a $1 0 8 0 \\mathrm { T i }$ GPU (which corresponds to training 1000 random architectures on average) which is consistent with experiments conducted in prior work [65, 69, 34]. For other search spaces, these times are adjusted based on the average time to train 1000 architectures. The 14 query time budgets are spaced logarithmically from 1 second to $1 . 8 \\times 1 0 ^ { 4 }$ seconds (which corresponds to training an architecture for 199 epochs). These times are adjusted for other search spaces based on the training time and different number of epochs. Once the predictor is initialized, we draw a test set of 200 architectures uniformly at random from the search space. For each architecture in the test set, the predictor uses the specified query time budget to make a prediction. We then evaluate the quality of the predictions using the metrics described above. We average the results over 100 trials for each (initialization time, query time) pair. ",
427
+ "bbox": [
428
+ 174,
429
+ 371,
430
+ 825,
431
+ 592
432
+ ],
433
+ "page_idx": 5
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "Results and discussion. Figure 1 shows a full three-dimensional plot for NAS-Bench-201 on CIFAR-10 over initialization time, query time, and Kendall Tau rank correlation. Of the 31 predictors we tested, we found that just seven of them are Pareto-optimal with respect to Kendall Tau, initialization time, and query time. That is, only seven algorithms have the highest Kendall Tau value for at least one of the 154 query time/initialization time budgets on NAS-Bench-201 CIFAR-10. This can be seen more clearly in Figure 2 (left), which is a view from above Figure 1: each lattice point displays the predictor with the highest Kendall Tau value for the corresponding budget. In Figure 2 (right), we plot the Pareto-optimal predictors for five different dataset/search space combinations. In Section B.3, we give the full 3D plots and report the variance across trials for each method. In Figure 4 (left), we also plot the Pearson and Spearman correlation coefficients for NAS-Bench-201 CIFAR-10. The trends between these measures are largely the same, although we see that SemiNAS performs better on the rank-based metrics. For the rest of this section, we focus on the popular Kendall Tau metric, giving the full results for the other metrics in Section B.3. ",
438
+ "bbox": [
439
+ 174,
440
+ 607,
441
+ 825,
442
+ 786
443
+ ],
444
+ "page_idx": 5
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "We see similar trends across DARTS and the two NAS-Bench-201 datasets. NAS-Bench-NLP also has fairly similar trends, although early stopping performs comparatively stronger. NAS-Bench-101 is different from the other search spaces both in terms of the topology and the benchmark itself, which we discuss later in this section. ",
449
+ "bbox": [
450
+ 174,
451
+ 794,
452
+ 825,
453
+ 849
454
+ ],
455
+ "page_idx": 5
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "In the low initialization time, low query time region, Jacobian covariance or SynFlow perform well across NAS-Bench-101 and NAS-Bench-201. However, none of the six zero-cost methods perform well on the larger DARTS search space. Weight sharing (which also has low initialization and low query time, as seen in Figure 1), did not yield high Kendall Tau values for these search spaces, either, which is consistent with recent work [53, 74, 76]. However, rank correlation is not as crucial to one-shot NAS algorithms as it is for black box predictor-based methods, as demonstrated by prior one-shot NAS methods that do perform well [25, 73, 32, 28, 12]. In the low initialization time, high query time region, sum of training losses (SoTL-E) consistently performed the best, outperforming other learning-curve based methods. ",
460
+ "bbox": [
461
+ 176,
462
+ 856,
463
+ 823,
464
+ 911
465
+ ],
466
+ "page_idx": 5
467
+ },
468
+ {
469
+ "type": "image",
470
+ "img_path": "images/1a336b83714b502dfa447d28dd46ecffcc5c4c07832f5707486bd7c0c8470d68.jpg",
471
+ "image_caption": [
472
+ "Figure 3: Percentage of OMNI’s Kendall Tau value compared to the next-best predictors for each budget constraint. "
473
+ ],
474
+ "image_footnote": [],
475
+ "bbox": [
476
+ 183,
477
+ 89,
478
+ 815,
479
+ 210
480
+ ],
481
+ "page_idx": 6
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "",
486
+ "bbox": [
487
+ 174,
488
+ 277,
489
+ 825,
490
+ 347
491
+ ],
492
+ "page_idx": 6
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "The high initialization time, low query time region (especially the bottom row of the plots, corresponding to a query time of 1 second) is by far the most competitive region in the recent NAS literature. Sixteen of the 31 predictors had query times under one second, because many NAS algorithms are designed to initialize (and continually update) performance predictors that are used to quickly query thousands of candidate architectures. GCN and SemiNAS, the specialized GCN/semi-supervised methods, perform especially well in the first half of this critical region, when the initialization time is relatively low. However, boosted tree methods actually performed best in the second half of the critical region where the initialization time is high, which is consistent with prior work [33, 55]. Recall that for model-based methods, the initialization time corresponds to training architectures to be used as training data for the performance predictor. Therefore, our results suggest that techniques which can extract better latent features of the architectures can make up for a small training dataset, but methods based purely on performance data work better when there is enough such data. ",
497
+ "bbox": [
498
+ 173,
499
+ 354,
500
+ 825,
501
+ 520
502
+ ],
503
+ "page_idx": 6
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "Perhaps the most interesting finding is that on NAS-Bench-101/201, SynFlow and Jacobian covariance, which take three seconds each to compute, both outperform all model-based methods even after $3 0$ hours of initialization. Put another way, NAS algorithms that make use of model-based predictors may be able to see substantial improvements by using Jacobian covariance instead of a model-based predictor in the early iterations. ",
508
+ "bbox": [
509
+ 173,
510
+ 526,
511
+ 825,
512
+ 595
513
+ ],
514
+ "page_idx": 6
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "The Omnipotent Predictor. One conclusion from Figure 2 is that different types of predictors are specialized for specific initialization time and query time constraints. A natural follow-up question is whether different families are complementary and can be combined to achieve stronger performance. In this section, we run a proof-of-concept to answer this question. We combine the best-performing predictors from three different families in a simple way: the best learning curve method (SoTL-E), and the best zero-cost method (Jacobian covariance), are used as additional input features for a model-based predictor (we separately test SemiNAS and NGBoost). We call this method OMNI, the omnipotent predictor. We give results in Figure 3 and pseudo-code as well as additional experiments in Section B.4. In contrast to all other predictors, the performance of OMNI is strong across almost all budget constraints and search spaces. In some settings, OMNI achieves a Kendall Tau value $30 \\%$ higher than the next-best predictors. ",
519
+ "bbox": [
520
+ 174,
521
+ 614,
522
+ 825,
523
+ 766
524
+ ],
525
+ "page_idx": 6
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "The success of OMNI verifies that the information learned by different families of predictors are complementary: the information learned by extrapolating a learning curve, by computing a zero-cost proxy, and by encoding the architecture, all improve performance. We further confirm this by running an ablation study for OMNI in Section B.4. We can hypothesize that each predictor type measures distinct quantities: SOTL-E measures the training speed, zero-cost predictors measure the covariance between activations on different datapoints, and model-based predictors simply learn patterns between the architecture encodings and the validation accuracies. Finally, while we showed a proof-of-concept, there are several promising areas for future work such as creating ensembles of the model-based approaches, combining zero-cost methods with model-based methods in more sophisticated ways, and giving a full quantification of the correlation among different families of predictors. ",
530
+ "bbox": [
531
+ 174,
532
+ 772,
533
+ 825,
534
+ 911
535
+ ],
536
+ "page_idx": 6
537
+ },
538
+ {
539
+ "type": "image",
540
+ "img_path": "images/db818d6a83efa7fb904fdc04c428ec375353f40a9141d13d9b6146e28a4e0d71.jpg",
541
+ "image_caption": [
542
+ "Figure 4: The best predictors on NAS-Bench-201 CIFAR-10 with respect to Pearson (left) and Spearman (middle). Kendall Tau values from a mutation-based training and test set (right). "
543
+ ],
544
+ "image_footnote": [],
545
+ "bbox": [
546
+ 196,
547
+ 88,
548
+ 803,
549
+ 261
550
+ ],
551
+ "page_idx": 7
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "NAS-Bench-101: a more complex search space. In Figure 2, the plot for NAS-Bench-101 looks significantly different than the plots for the other search spaces, for two reasons. The first reason is a technical one: the NAS-Bench-101 API only gives the validation accuracy at four epochs, and does not give the training loss for any epochs. Therefore, we could not implement SoTL or any learning curve extrapolation method. However, all sixteen of the model-based predictors were implemented on NAS-Bench-101. In this case, BANANAS significantly outperformed the next-best predictors (GCN and SemiNAS) across every initialization time. One explanation is due to the complexity of the NAS-Bench-101 search space: while all NAS-Bench-201 architectures have the same graph topology and DARTS architectures’ nodes have exactly two incoming edges, the NAS-Bench-101 search space is much more diverse with architectures ranging from a single node and no edges, to five nodes with nine connecting edges. In fact, the architecture encoding used in BANANAS, the path encoding, was designed specifically to deal with the complexity of the NAS-Bench-101 search space (replacing the standard adjacency matrix encoding). To test this explanation, in Appendix B we run several of the simpler tree-based and GP-based predictors using the path encoding, and we see that these methods now surpass BANANAS in performance. ",
556
+ "bbox": [
557
+ 174,
558
+ 347,
559
+ 825,
560
+ 554
561
+ ],
562
+ "page_idx": 7
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "A mutation-based test set. The results from Figure 2 used a test set drawn uniformly at random from the search space (and the training set used by model-based predictors was also drawn uniformly at random). However, neighborhood-based NAS algorithms such as local search, regularized evolution, and some versions of Bayesian optimization consider architectures which are local perturbations of the architectures encountered so far. Therefore, the predictors used in these NAS algorithms must be able to distinguish architectures which are local mutations of a small set of seed architectures. ",
567
+ "bbox": [
568
+ 174,
569
+ 593,
570
+ 825,
571
+ 676
572
+ ],
573
+ "page_idx": 7
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "We run an experiment in which the test set is created by mutating architectures from an initial set of seed architectures. Specifically, we draw a set of 50 random architectures and choose the five with the highest validation accuracy as seed architectures. Then we create a set of 200 test architectures by randomly mutating up to three attributes of the seed architectures. Therefore, all architectures in the test set are at most an edit distance of three from a seed architecture, where two architectures are a single edit distance away if they differ by one operation or edge. ",
578
+ "bbox": [
579
+ 174,
580
+ 683,
581
+ 825,
582
+ 767
583
+ ],
584
+ "page_idx": 7
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "We create the training set by randomly choosing architectures from the test set and mutating one random attribute. As in all of our experiments, we ensure that the training set and test set are disjoint. In Figure 4 (right), we plot the correlation results for NAS-Bench-201 CIFAR-10. While the zero-cost and learning curve-based approaches have similar performance, the model-based approaches have significantly worse performance compared to the uniform random setting. This is because the average edit distance between architectures in the test set is low, making it significantly harder for model-based predictors to distinguish the performance of these architectures, even when using a training set that is based on mutations of the test set. In fact, interestingly, the performance of many model-based approaches starts to perform worse after $1 0 ^ { 6 }$ seconds. SemiNAS in particular performs much worse in this setting, and boosted trees have comparatively stronger performance in this setting. ",
589
+ "bbox": [
590
+ 174,
591
+ 772,
592
+ 825,
593
+ 911
594
+ ],
595
+ "page_idx": 7
596
+ },
597
+ {
598
+ "type": "image",
599
+ "img_path": "images/c15699c76c80aa1243fa92c24047ed5b53dff1845e874054c71f1e142d0b0327.jpg",
600
+ "image_caption": [
601
+ "Figure 5: Validation error vs. runtime for the predictor-guided evolution framework and the Bayesian optimization $^ +$ predictor framework using different predictors. "
602
+ ],
603
+ "image_footnote": [],
604
+ "bbox": [
605
+ 205,
606
+ 90,
607
+ 813,
608
+ 340
609
+ ],
610
+ "page_idx": 8
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "4.2 Predictor-Based NAS Experiments ",
615
+ "text_level": 1,
616
+ "bbox": [
617
+ 176,
618
+ 409,
619
+ 454,
620
+ 424
621
+ ],
622
+ "page_idx": 8
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "Now we evaluate the ability of each model-based performance predictor to speed up NAS. We use two popular predictor-based NAS methods: the predictor-guided evolution framework [66, 59], and the Bayesian optimization $^ +$ predictor framework [17, 36, 54]. The predictor-guided evolution framework is an iterative procedure in which the best architectures in the current population are mutated to create a set of candidate architectures. A predictor (trained on the entire population) chooses $k$ architectures which are then evaluated. In our experiments, the candidate pool is created by mutating the top five architectures 40 times each, and we set $k = 2 0$ . For each predictor, we run predictor-guided evolution for 25 iterations and average the results over 100 trials. The $\\mathrm { B O + }$ predictor framework is similar to the evolution framework, but an ensemble of three performance predictors are used so that uncertainty estimates for each prediction can be computed. In each iteration, the candidate architectures whose predictions maximize an acquisition function are then evaluated. Similar to prior work, we use independent Thompson sampling [69], as the acquisition function, and an ensemble is created by using a different ordering of the training set and different random weight initializations (if applicable) of the same predictor. In each iteration, the top 20 architectures are chosen from a randomly sampled pool of 200 architectures. ",
627
+ "bbox": [
628
+ 174,
629
+ 434,
630
+ 825,
631
+ 641
632
+ ],
633
+ "page_idx": 8
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "In Figure 5, we present results for both NAS frameworks on NAS-Bench-201 CIFAR-10 and ImageNet16-120 for the 16 model-based predictors. We also test OMNI, using its lowest query time setting (consisting of NGBoost $^ +$ Jacobian covariance), and another version of OMNI that replaces NGBoost with SemiNAS. Our results show that the model-based predictors with the top Kendall Tau rank correlations in the low query time region from Figure 2 also roughly achieve the best performance when applied for NAS: SemiNAS and NAO perform the best for shorter runtime, and boosted trees perform best for longer runtime. OMNI(NGBoost) consistently outperforms NGBoost, and OMNI(SemiNAS) often achieves top performance. This suggests that using zero-cost methods in conjunction with model-based methods is a promising direction for future study. ",
638
+ "bbox": [
639
+ 174,
640
+ 647,
641
+ 825,
642
+ 772
643
+ ],
644
+ "page_idx": 8
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "4.3 So, how powerful are performance predictors? ",
649
+ "text_level": 1,
650
+ "bbox": [
651
+ 174,
652
+ 789,
653
+ 535,
654
+ 804
655
+ ],
656
+ "page_idx": 8
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "Throughout Section 4, we tested performance predictors in a variety of settings, by varying the search spaces, datasets, runtime budgets, and training/test distributions. We saw largely the same trends among all of our experiments. Interesting findings included the success of zero-cost predictors even when compared to model-based predictors and learning curve extrapolation predictors with longer runtime budgets, and the fact that information from different families of predictors are complementary. When choosing a performance predictor for new applications, we recommend deciding on a target initialization time and query time budget, consulting Figures 2 and 6, and then combining the best predictors from the desired runtime setting, similar to OMNI. For example, if a performance predictor with medium initialization time and low runtime is desired for a search space similar to NAS-Bench201 or DARTS, we recommend using NGBoost with Jacobian covariance and SynFlow as additional features. ",
661
+ "bbox": [
662
+ 174,
663
+ 814,
664
+ 825,
665
+ 911
666
+ ],
667
+ "page_idx": 8
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "",
672
+ "bbox": [
673
+ 174,
674
+ 90,
675
+ 825,
676
+ 147
677
+ ],
678
+ "page_idx": 9
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "5 Societal Impact ",
683
+ "text_level": 1,
684
+ "bbox": [
685
+ 174,
686
+ 166,
687
+ 334,
688
+ 183
689
+ ],
690
+ "page_idx": 9
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "Our hope is that our work will have a positive impact on the AutoML community by making it quicker and easier to develop and fairly compare performance predictors. For example, AutoML practitioners can consult our experiments to more easily decide on the performance prediction methods best suited to their application, rather than conducting computationally intensive experiments of their own [43]. Furthermore, AutoML researchers can use our library to develop new performance prediction techniques and compare new methods to 31 other algorithms across four search spaces. Since the topic of this work is AutoML, it is a level of abstraction away from real applications. This work may be used to improve deep learning applications, both beneficial (e.g. reducing $\\mathrm { C O _ { 2 } }$ emissions), or harmful (e.g. creating language models with heavy bias) to society. ",
695
+ "bbox": [
696
+ 173,
697
+ 196,
698
+ 825,
699
+ 323
700
+ ],
701
+ "page_idx": 9
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "6 Conclusions and Limitations ",
706
+ "text_level": 1,
707
+ "bbox": [
708
+ 176,
709
+ 342,
710
+ 444,
711
+ 358
712
+ ],
713
+ "page_idx": 9
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "In this work, we gave the first large-scale study of performance predictors for neural architecture search. We compared 31 different performance predictors, including learning curve extrapolation methods, weight sharing methods, zero-cost methods, and model-based methods. We tested the performance of the predictors in a variety of settings and with respect to different metrics. Although we ran experiments on four different search spaces, it will be interesting to extend our experiments to even more machine learning tasks beyond image classification and language modeling. ",
718
+ "bbox": [
719
+ 174,
720
+ 372,
721
+ 825,
722
+ 457
723
+ ],
724
+ "page_idx": 9
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "Our new predictor, OMNI, is the first predictor to combine complementary information from three families of performance preditors, leading to substantially improved performance. While the simplicity of OMNI is appealing, it also opens up new directions for future work by combining different predictors in more sophisticated ways. To facilitate follow-up work, we release our code featuring a library of performance predictors. Our goal is for our repository to grow over time as it is used by the community, so that experiments in our library can be even more comprehensive. ",
729
+ "bbox": [
730
+ 174,
731
+ 462,
732
+ 825,
733
+ 546
734
+ ],
735
+ "page_idx": 9
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "Acknowledgments and Disclosure of Funding ",
740
+ "text_level": 1,
741
+ "bbox": [
742
+ 174,
743
+ 564,
744
+ 553,
745
+ 583
746
+ ],
747
+ "page_idx": 9
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "This work was done while CW and YL were employed at Abacus.AI. AZ and FH acknowledge support by the European Research Council (ERC) under the European Union Horizon 2020 research and innovation programme through grant no. 716721, and by BMBF grant DeToL. BR was supported by the Clarendon Fund of University of Oxford. ",
752
+ "bbox": [
753
+ 174,
754
+ 597,
755
+ 825,
756
+ 652
757
+ ],
758
+ "page_idx": 9
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "References \n[1] Mohamed S Abdelfattah, Abhinav Mehrotra, Łukasz Dudziak, and Nicholas Donald Lane. Zero-cost proxies for lightweight nas. In Proceedings of the International Conference on Learning Representations (ICLR), 2021. \n[2] Bowen Baker, Otkrist Gupta, Ramesh Raskar, and Nikhil Naik. Accelerating neural architecture search using performance prediction. arXiv preprint arXiv:1705.10823, 2017. \n[3] Matthias Bauer, Mark van der Wilk, and Carl Edward Rasmussen. Understanding probabilistic sparse gaussian process approximations. arXiv preprint arXiv:1606.04820, 2016. \n[4] Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In Proceedings of the International Conference on Machine Learning (ICML), pages 550–559, 2018. \n[5] Eli Bingham, Jonathan P Chen, Martin Jankowiak, Fritz Obermeyer, Neeraj Pradhan, Theofanis Karaletsos, Rohit Singh, Paul Szerlip, Paul Horsfall, and Noah D Goodman. Pyro: Deep universal probabilistic programming. The Journal of Machine Learning Research, 20(1):973– 978, 2019. \n[6] Christopher M Bishop. Pattern recognition and machine learning. springer, 2006. \n[7] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. Proceedings of the International Conference on Learning Representations (ICLR), 2019. \n[8] Akshay Chandrashekaran and Ian R Lane. Speeding up hyper-parameter optimization by extrapolation of learning curves using previous builds. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 477–492. Springer, 2017. \n[9] Tianqi Chen and Carlos Guestrin. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining, pages 785–794, 2016. \n[10] Patryk Chrabaszcz, Ilya Loshchilov, and Frank Hutter. A downsampled variant of imagenet as an alternative to the CIFAR datasets. CoRR, abs/1707.08819, 2017. \n[11] Tobias Domhan, Jost Tobias Springenberg, and Frank Hutter. Speeding up automatic hyperparameter optimization of deep neural networks by extrapolation of learning curves. In Twenty-Fourth International Joint Conference on Artificial Intelligence, 2015. \n[12] Xuanyi Dong and Yi Yang. Searching for a robust neural architecture in four gpu hours. In Proceedings of the IEEE Conference on computer vision and pattern recognition, pages 1761–1770, 2019. \n[13] Xuanyi Dong and Yi Yang. Nas-bench-201: Extending the scope of reproducible neural architecture search. In Proceedings of the International Conference on Learning Representations (ICLR), 2020. \n[14] Tony Duan, Avati Anand, Daisy Yi Ding, Khanh K Thai, Sanjay Basu, Andrew Ng, and Alejandro Schuler. Ngboost: Natural gradient boosting for probabilistic prediction. In International Conference on Machine Learning, pages 2690–2700. PMLR, 2020. \n[15] Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Neural architecture search: A survey. arXiv preprint arXiv:1808.05377, 2018. \n[16] Stefan Falkner, Aaron Klein, and Frank Hutter. Bohb: Robust and efficient hyperparameter optimization at scale. In Proceedings of the International Conference on Machine Learning (ICML), 2018. \n[17] Kirthevasan Kandasamy, Willie Neiswanger, Jeff Schneider, Barnabas Poczos, and Eric P Xing. Neural architecture search with Bayesian optimisation and optimal transport. In Advances in Neural Information Processing Systems, pages 2016–2025, 2018. \n[18] Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. Lightgbm: A highly efficient gradient boosting decision tree. Advances in neural information processing systems, 30:3146–3154, 2017. \n[19] Hiroaki Kitano. Designing neural networks using genetic algorithms with graph generation system. Complex systems, 4(4):461–476, 1990. \n[20] Aaron Klein, Stefan Falkner, Jost Tobias Springenberg, and Frank Hutter. Learning curve prediction with Bayesian neural networks. ICLR 2017, 2017. \n[21] Nikita Klyuchnikov, Ilya Trofimov, Ekaterina Artemova, Mikhail Salnikov, Maxim Fedorov, and Evgeny Burnaev. Nas-bench-nlp: neural architecture search benchmark for natural language processing. arXiv preprint arXiv:2006.07116, 2020. \n[22] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. \n[23] Namhoon Lee, Thalaiyasingam Ajanthan, and Philip Torr. SNIP: Single-shot network pruning based on connection sensitivity. In Proceedings of the International Conference on Learning Representations (ICLR), 2019. \n[24] Liam Li, Kevin Jamieson, Afshin Rostamizadeh, Ekaterina Gonina, Moritz Hardt, Benjamin Recht, and Ameet Talwalkar. A system for massively parallel hyperparameter tuning. In Proceedings of the Conference on Machine Learning Systems, 2020. \n[25] Liam Li, Mikhail Khodak, Maria-Florina Balcan, and Ameet Talwalkar. Geometry-aware gradient algorithms for neural architecture search. In Proceedings of the International Conference on Learning Representations (ICLR), 2021. \n[26] Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. arXiv preprint arXiv:1902.07638, 2019. \n[27] Lisha Li, Kevin Jamieson, Giulia DeSalvo, Afshin Rostamizadeh, and Ameet Talwalkar. Hyperband: A novel bandit-based approach to hyperparameter optimization. arXiv preprint arXiv:1603.06560, 2016. \n[28] Hanwen Liang, Shifeng Zhang, Jiacheng Sun, Xingqiu He, Weiran Huang, Kechen Zhuang, and Zhenguo Li. Darts+: Improved differentiable architecture search with early stopping. arXiv preprint arXiv:1909.06035, 2019. \n[29] Andy Liaw, Matthew Wiener, et al. Classification and regression by randomforest. R news, 2(3):18–22, 2002. \n[30] Marius Lindauer, Katharina Eggensperger, Matthias Feurer, Stefan Falkner, André Biedenkapp, and Frank Hutter. Smac v3: Algorithm configuration in python. URL https://github. com/automl/SMAC3, 2017. \n[31] Marius Lindauer and Frank Hutter. Best practices for scientific research on neural architecture search. arXiv preprint arXiv:1909.02453, 2019. \n[32] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018. \n[33] Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture search with gbdt. arXiv preprint arXiv:2007.04785, 2020. \n[34] Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Enhong Chen, and Tie-Yan Liu. Semi-supervised neural architecture search. In Proceedings of the Annual Conference on Neural Information Processing Systems (NeurIPS), 2020. \n[35] Renqian Luo, Fei Tian, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture optimization. In Proceedings of the Annual Conference on Neural Information Processing Systems (NeurIPS), 2018. \n[36] Lizheng Ma, Jiaxu Cui, and Bo Yang. Deep neural architecture search with deep graph Bayesian optimization. In 2019 IEEE/WIC/ACM International Conference on Web Intelligence (WI), pages 500–507. IEEE, 2019. \n[37] Krzysztof Maziarz, Andrey Khorlin, Quentin de Laroussilhe, and Andrea Gesmundo. Evolutionary-neural hybrid agents for architecture search. arXiv preprint arXiv:1811.09828, 2018. \n[38] Joseph Mellor, Jack Turner, Amos Storkey, and Elliot J Crowley. Neural architecture search without training. arXiv preprint arXiv:2006.04647, 2020. \n[39] Szymon Jakub Mikler. Snip: Single-shot network pruning based on connection sensitivity. GitHub repository gahaalt/SNIP-pruning, 2019. \n[40] Tomáš Mikolov, Martin Karafiát, Lukáš Burget, Jan Cernock ˇ y, and Sanjeev Khudanpur. Recur- \\` rent neural network based language model. In Annual conference of the international speech communication association, 2010. \n[41] Xuefei Ning, Wenshuo Li, Zixuan Zhou, Tianchen Zhao, Yin Zheng, Shuang Liang, Huazhong Yang, and Yu Wang. A surgery of the neural architecture evaluators. arXiv preprint arXiv:2008.03064, 2020. \n[42] Xuefei Ning, Yin Zheng, Tianchen Zhao, Yu Wang, and Huazhong Yang. A generic graph-based neural architecture encoding scheme for predictor-based nas. arXiv preprint arXiv:2004.01899, 2020. \n[43] David Patterson, Joseph Gonzalez, Quoc Le, Chen Liang, Lluis-Miquel Munguia, Daniel Rothchild, David So, Maud Texier, and Jeff Dean. Carbon emissions and large neural network training. arXiv preprint arXiv:2104.10350, 2021. \n[44] Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, et al. Scikitlearn: Machine learning in python. the Journal of machine Learning research, 12:2825–2830, 2011. \n[45] Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. arXiv preprint arXiv:1802.03268, 2018. \n[46] Joaquin Quiñonero Candela and Carl Edward Rasmussen. A unifying view of sparse approximate gaussian process regression. J. Mach. Learn. Res., 6:1939–1959, December 2005. \n[47] Carl Edward Rasmussen. Gaussian processes in machine learning. In Summer School on Machine Learning, pages 63–71. Springer, 2003. \n[48] Carl Edward Rasmussen. Gaussian processes in machine learning. In Summer School on Machine Learning, pages 63–71. Springer, 2003. \n[49] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In Proceedings of the aaai conference on artificial intelligence, volume 33, pages 4780–4789, 2019. \n[50] Binxin Ru, Clare Lyle, Lisa Schut, Mark van der Wilk, and Yarin Gal. Revisiting the train loss: an efficient performance estimator for neural architecture search. arXiv preprint arXiv:2006.04492, 2020. \n[51] Binxin Ru, Xingchen Wan, Xiaowen Dong, and Michael Osborne. Neural architecture search using Bayesian optimisation with weisfeiler-lehman kernel. arXiv preprint arXiv:2006.07556, 2020. \n[52] Michael Ruchte, Arber Zela, Julien Siems, Josif Grabocka, and Frank Hutter. Naslib: a modular and flexible neural architecture search library, 2020. \n[53] Christian Sciuto, Kaicheng Yu, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. arXiv preprint arXiv:1902.08142, 2019. \n[54] Han Shi, Renjie Pi, Hang Xu, Zhenguo Li, James Kwok, and Tong Zhang. Bridging the gap between sample-based and one-shot neural architecture search with bonas. Advances in Neural Information Processing Systems, 33, 2020. \n[55] Julien Siems, Lucas Zimmer, Arber Zela, Jovita Lukasik, Margret Keuper, and Frank Hutter. Nas-bench-301 and the case for surrogate benchmarks for neural architecture search. arXiv preprint arXiv:2008.09777, 2020. \n[56] Jasper Snoek, Oren Rippel, Kevin Swersky, Ryan Kiros, Nadathur Satish, Narayanan Sundaram, Mostofa Patwary, Mr Prabhat, and Ryan Adams. Scalable Bayesian optimization using deep neural networks. In International conference on machine learning, pages 2171–2180, 2015. \n[57] Jost Tobias Springenberg, Aaron Klein, Stefan Falkner, and Frank Hutter. Bayesian optimization with robust Bayesian neural networks. In Advances in Neural Information Processing Systems, pages 4134–4142, 2016. \n[58] Kenneth O Stanley and Risto Miikkulainen. Evolving neural networks through augmenting topologies. Evolutionary computation, 10(2):99–127, 2002. \n[59] Yanan Sun, Xian Sun, Yuhan Fang, and Gary Yen. A new training protocol for performance predictors of evolutionary neural architecture search algorithms. arXiv preprint arXiv:2008.13187, 2020. \n[60] Kevin Swersky, David Duvenaud, Jasper Snoek, Frank Hutter, and Michael Osborne. Raiders of the lost architecture: Kernels for Bayesian optimization in conditional parameter spaces. In NIPS workshop on Bayesian Optimization in Theory and Practice, December 2013. \n[61] Hidenori Tanaka, Daniel Kunin, Daniel LK Yamins, and Surya Ganguli. Pruning neural networks without any data by iteratively conserving synaptic flow. arXiv preprint arXiv:2006.05467, 2020. \n[62] Lucas Theis, Iryna Korshunova, Alykhan Tejani, and Ferenc Huszár. Faster gaze prediction with dense networks and fisher pruning. arXiv preprint arXiv:1801.05787, 2018. \n[63] Michalis Titsias. Variational learning of inducing variables in sparse gaussian processes. In Artificial Intelligence and Statistics, pages 567–574, 2009. \n[64] Chaoqi Wang, Guodong Zhang, and Roger Grosse. Picking winning tickets before training by preserving gradient flow. In Proceedings of the International Conference on Learning Representations (ICLR), 2019. \n[65] Linnan Wang, Yiyang Zhao, Yuu Jinnai, and Rodrigo Fonseca. Alphax: exploring neural architectures with deep neural networks and monte carlo tree search. arXiv preprint arXiv:1805.07440, 2018. \n[66] Chen Wei, Chuang Niu, Yiping Tang, and Jimin Liang. Npenas: Neural predictor guided evolution for neural architecture search. arXiv preprint arXiv:2003.12857, 2020. \n[67] Wei Wen, Hanxiao Liu, Hai Li, Yiran Chen, Gabriel Bender, and Pieter-Jan Kindermans. Neural predictor for neural architecture search. arXiv preprint arXiv:1912.00848, 2019. \n[68] Colin White, Willie Neiswanger, Sam Nolen, and Yash Savani. A study on encodings for neural architecture search. In Proceedings of the Annual Conference on Neural Information Processing Systems (NeurIPS), 2020. \n[69] Colin White, Willie Neiswanger, and Yash Savani. Bananas: Bayesian optimization with neural architectures for neural architecture search. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021. \n[70] Antoine Yang, Pedro M Esperança, and Fabio M Carlucci. Nas evaluation is frustratingly hard. In Proceedings of the International Conference on Learning Representations (ICLR), 2020. \n[71] Chris Ying, Aaron Klein, Esteban Real, Eric Christiansen, Kevin Murphy, and Frank Hutter. Nasbench-101: Towards reproducible neural architecture search. arXiv preprint arXiv:1902.09635, 2019. \n[72] Kaicheng Yu, Rene Ranftl, and Mathieu Salzmann. How to train your super-net: An analysis of training heuristics in weight-sharing nas. arXiv preprint arXiv:2003.04276, 2020. \n[73] Arber Zela, Thomas Elsken, Tonmoy Saikia, Yassine Marrakchi, Thomas Brox, and Frank Hutter. Understanding and robustifying differentiable architecture search. In Proceedings of the International Conference on Learning Representations (ICLR), 2020. \n[74] Arber Zela, Julien Siems, and Frank Hutter. Nas-bench-1shot1: Benchmarking and dissecting one-shot neural architecture search. In Proceedings of the International Conference on Learning Representations (ICLR), 2020. \n[75] Yuge Zhang. Neural predictor for neural architecture search. GitHub repository ultmaster/neuralpredictor.pytorch, 2020. \n[76] Yuge Zhang, Zejun Lin, Junyang Jiang, Quanlu Zhang, Yujing Wang, Hui Xue, Chen Zhang, and Yaming Yang. Deeper insights into weight sharing in neural architecture search. arXiv preprint arXiv:2001.01431, 2020. \n[77] Dongzhan Zhou, Xinchi Zhou, Wenwei Zhang, Chen Change Loy, Shuai Yi, Xuesen Zhang, and Wanli Ouyang. Econas: Finding proxies for economical neural architecture search. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11396–11404, 2020. \n[78] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In Proceedings of the International Conference on Learning Representations (ICLR), 2017. \n[79] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8697–8710, 2018. ",
763
+ "bbox": [
764
+ 173,
765
+ 71,
766
+ 828,
767
+ 919
768
+ ],
769
+ "page_idx": 10
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "",
774
+ "bbox": [
775
+ 171,
776
+ 68,
777
+ 828,
778
+ 915
779
+ ],
780
+ "page_idx": 11
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "",
785
+ "bbox": [
786
+ 169,
787
+ 66,
788
+ 828,
789
+ 919
790
+ ],
791
+ "page_idx": 12
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "",
796
+ "bbox": [
797
+ 171,
798
+ 68,
799
+ 828,
800
+ 911
801
+ ],
802
+ "page_idx": 13
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "",
807
+ "bbox": [
808
+ 171,
809
+ 90,
810
+ 828,
811
+ 465
812
+ ],
813
+ "page_idx": 14
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "Checklist ",
818
+ "text_level": 1,
819
+ "bbox": [
820
+ 174,
821
+ 89,
822
+ 254,
823
+ 106
824
+ ],
825
+ "page_idx": 15
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "1. For all authors... ",
830
+ "bbox": [
831
+ 214,
832
+ 116,
833
+ 339,
834
+ 130
835
+ ],
836
+ "page_idx": 15
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] Our abstract and introduction accurately reflect our paper. \n(b) Did you describe the limitations of your work? [Yes] See Section 6. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Section 5. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] We discuss the ethics guidelines in Section 5. ",
841
+ "bbox": [
842
+ 238,
843
+ 135,
844
+ 825,
845
+ 253
846
+ ],
847
+ "page_idx": 15
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "2. If you are including theoretical results... ",
852
+ "bbox": [
853
+ 214,
854
+ 257,
855
+ 493,
856
+ 272
857
+ ],
858
+ "page_idx": 15
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] We did not include theoretical results. \n(b) Did you include complete proofs of all theoretical results? [N/A] We did not include theoretical results. ",
863
+ "bbox": [
864
+ 238,
865
+ 276,
866
+ 825,
867
+ 334
868
+ ],
869
+ "page_idx": 15
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "3. If you ran experiments... ",
874
+ "bbox": [
875
+ 214,
876
+ 339,
877
+ 393,
878
+ 354
879
+ ],
880
+ "page_idx": 15
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We included all code, data, and instructions in the supplementary material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] All training details are specified in the supplementary material. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We ran 100 trials for all experiments. Our plots that are performance vs. runtime (e.g. Figure 5) have error bars. For our Pareto-optimality plots (e.g. Figure 7), see the supplementary material for the error bars for all 31 predictors. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We report the compute time and resources used in Section 4 and in the supplementary material. ",
885
+ "bbox": [
886
+ 238,
887
+ 358,
888
+ 825,
889
+ 531
890
+ ],
891
+ "page_idx": 15
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
896
+ "bbox": [
897
+ 209,
898
+ 536,
899
+ 823,
900
+ 550
901
+ ],
902
+ "page_idx": 15
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We cite the creators of all code, data, and models used. \n(b) Did you mention the license of the assets? [Yes] We mention the licenses in the supplementary material. \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] We do not include new assets. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] We did not use or release any datasets with personal data. \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] The data we are using does not contain personal information or offensive content. ",
907
+ "bbox": [
908
+ 238,
909
+ 555,
910
+ 825,
911
+ 717
912
+ ],
913
+ "page_idx": 15
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
918
+ "bbox": [
919
+ 214,
920
+ 720,
921
+ 705,
922
+ 736
923
+ ],
924
+ "page_idx": 15
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] We did not run experiments with human subjects. \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] We did not run experiments with human subjects. \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] We did not run experiments with human subjects. ",
929
+ "bbox": [
930
+ 238,
931
+ 739,
932
+ 825,
933
+ 856
934
+ ],
935
+ "page_idx": 15
936
+ }
937
+ ]
parse/train/6RB77-6-_oI/6RB77-6-_oI_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/6RB77-6-_oI/6RB77-6-_oI_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/9az9VKjOx00/9az9VKjOx00.md ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOPOTER: UNSUPERVISED LEARNING OF TOPOLOGY TRANSFORMATION EQUIVARIANT REPRESENTATIONS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We present the Topology Transformation Equivariant Representation (TopoTER) learning, a general paradigm of unsupervised learning of node representations of graph data for the wide applicability to Graph Convolutional Neural Networks (GCNNs). We formalize the TopoTER from an information-theoretic perspective, by maximizing the mutual information between topology transformations and node representations before and after the transformations. We derive that maximizing such mutual information can be relaxed to minimizing the cross entropy between the applied topology transformation and its estimation from node representations. In particular, we seek to sample a subset of node pairs from the original graph and flip the edge connectivity between each pair to transform the graph topology. Then, we self-train a representation encoder to learn node representations by reconstructing the topology transformations from the feature representations of the original and transformed graphs. In experiments, we apply the TopoTER to the downstream node and graph classification tasks, and results show that the TopoTER outperforms the state-of-the-art unsupervised approaches.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Graphs provide a natural and efficient representation for non-Euclidean data, such as brain networks, social networks, citation networks, and 3D point clouds. Graph Convolutional Neural Networks (GCNNs) (Bronstein et al., 2017) have been proposed to generalize the CNNs to learn representations from non-Euclidean data, which has made significant advances in various applications such as node classification (Kipf & Welling, 2017; Velickovi ˇ c et al., 2018; Xu et al., 2019a) and graph ´ classification (Xu et al., 2019b). However, most existing GCNNs are trained in a supervised fashion, requiring a large amount of labeled data for network training. This limits the applications of the GCNNs since it is often costly to collect adequately labeled data, especially on large-scale graphs. Hence, this motivates the proposed research to learn graph feature representations in an unsupervised fashion, which enables the discovery of intrinsic graph structures and thus adapts to various downstream tasks.
12
+
13
+ Auto-Encoders (AEs) and Generative Adversarial Networks (GANs) are two most representative unsupervised learning methods. Based on the AEs and GANs, many approaches have sought to learn transformation equivariant representations (TERs) to further improve the quality of unsupervised representation learning. It assumes that the learned representations equivarying to transformations are able to encode the intrinsic structures of data such that the transformations can be reconstructed from the representations before and after transformations (Qi et al., 2019b). Learning TERs traces back to Hinton’s seminal work on learning transformation capsules (Hinton et al., 2011), and embodies a variety of methods developed for Euclidean data (Kivinen & Williams, 2011; Sohn & Lee, 2012; Schmidt & Roth, 2012; Skibbe, 2013; Lenc & Vedaldi, 2015; Gens & Domingos, 2014; Dieleman et al., 2015; 2016; Zhang et al., 2019; Qi et al., 2019a). Further, Gao et al. (2020) extend transformation equivariant representation learning to non-Euclidean domain, which formalizes Graph Transformation Equivariant Representation (GraphTER) learning by auto-encoding nodewise transformations in an unsupervised fashion. Nevertheless, only transformations on node features are explored, while the underlying graph may vary implicitly. The graph topology has not been fully explored yet, which however is crucial in unsupervised graph representation learning.
14
+
15
+ To this end, we propose the Topology Transformation Equivariant Representation (TopoTER) learning to infer unsupervised graph feature representations by estimating topology transformations. Instead of transforming node features as in the GraphTER, the proposed TopoTER studies the transformation equivariant representation learning by transforming the graph topology, i.e., adding or removing edges to perturb the graph structure. Then the same input signals are attached to the resultant graph topologies, resulting in different graph representations. This provides an insight into how the same input signals associated with different graph topologies would lead to equivariant representations enabling the fusion of node feature and graph topology in GCNNs. Formally, we propose the TopoTER from an information-theoretic perspective, aiming to maximize the mutual information between topology transformations and feature representations with respect to the original and transformed graphs. We derive that maximizing such mutual information can be relaxed to the cross entropy minimization between the applied topology transformations and the estimation from the learned representations of graph data under the topological transformations.
16
+
17
+ Specifically, given an input graph and its associated node features, we first sample a subset of node pairs from the graph and flip the edge connectivity between each pair at a perturbation rate, leading to a transformed graph with attached node features. Then, we design a graph-convolutional auto-encoder architecture, where the encoder learns the node-wise representations over the original and transformed graphs respectively, and the decoder predicts the topology transformations of edge connectivity from both representations by minimizing the cross entropy between the applied and estimated transformations. Experimental results demonstrate that the proposed TopoTER model outperforms the state-of-the-art unsupervised models, and even achieves comparable results to the (semi-)supervised approaches in node classification and graph classification tasks at times.
18
+
19
+ Our main contributions are summarized as follows.
20
+
21
+ • We propose the Topology Transformation Equivariant Representation (TopoTER) learning to infer expressive node feature representations in an unsupervised fashion, which can characterize the intrinsic structures of graphs and the associated features by exploring the graph transformations of connectivity topology. We formulate the TopoTER from an information-theoretic perspective, by maximizing the mutual information between feature representations and topology transformations, which can be relaxed to the cross entropy minimization between the applied transformations and the prediction in an end-to-end graph-convolutional auto-encoder architecture.
22
+ • Experiments demonstrate that the proposed TopoTER model outperforms the state-of-the-art unsupervised methods in both node classification and graph classification.
23
+
24
+ # 2 RELATED WORK
25
+
26
+ Graph Auto-Encoders. Graph Auto-Encoders (GAEs) are the most representative unsupervised methods. GAEs encode graph data into feature space via an encoder and reconstruct the input graph data from the encoded feature representations via a decoder. GAEs are often used to learn network embeddings and graph generative distributions (Wu et al., 2020). For network embedding learning, GAEs learn the feature representations of each node by reconstructing graph structural information, such as the graph adjacency matrix (Kipf & Welling, 2016) and the positive pointwise mutual information (PPMI) matrix (Cao et al., 2016; Wang et al., 2016). For graph generation, some methods generate nodes and edges of a graph alternately (You et al., 2018), while other methods output an entire graph (Simonovsky & Komodakis, 2018; Ma et al., 2018; De Cao & Kipf, 2018).
27
+
28
+ Graph Contrastive Learning. An important paradigm called contrastive learning aims to train an encoder to be contrastive between the representations of positive samples and negative samples. Recent contrastive learning frameworks can be divided into two categories (Liu et al., 2020): context-instance contrast and context-context contrast. Context-instance contrast focuses on modeling the relationships between the local feature of a sample and its global context representation. Deep InfoMax (DIM) (Hjelm et al., 2018) first proposes to maximize the mutual information between a local patch and its global context through a contrastive learning task. Deep Graph InfoMax (DGI) (Velickovic et al., 2019) proposes to learn node-level feature representation by extending DIM to graph-structured data, while InfoGraph (Sun et al., 2020a) aims to use mutual information maximization for unsupervised representation learning on entire graphs. Peng et al. (2020) propose a Graphical Mutual Information (GMI) approach to maximize the mutual information of both features and edges between inputs and outputs. In contrast to context-instance methods, contextcontext contrast studies the relationships between the global representations of different samples. M3S (Sun et al., 2020b) adopts a self-supervised pre-training paradigm as in DeepCluster (Caron et al., 2018) for better semi-supervised prediction in GCNNs. Graph Contrastive Coding (GCC)
29
+
30
+ ![](images/cbc8db40326b530c55230ef423a1f620241001c32f6e5f21d94a80fd4281a98d.jpg)
31
+ Figure 1: An example of graphs before and after topology transformations.
32
+
33
+ (Qiu et al., 2020) designs the pre-training task as subgraph instance discrimination in and across networks to empower graph neural networks to learn the intrinsic structural representations.
34
+
35
+ Transformation Equivariant Representation Learning. Many approaches have sought to learn transformation equivariant representations. Learning transformation equivariant representations has been advocated in Hinton’s seminal work on learning transformation capsules. Following this, a variety of approaches have been proposed to learn transformation equivariant representations (Gens & Domingos, 2014; Dieleman et al., 2015; 2016; Cohen & Welling, 2016; Lenssen et al., 2018). To generalize to generic transformations, Zhang et al. (2019) propose to learn unsupervised feature representations via Auto-Encoding Transformations (AET) by estimating transformations from the learned feature representations of both the original and transformed images, while Qi et al. (2019a) extend AET from an information-theoretic perspective by maximizing the lower bound of mutual information between transformations and representations. Wang et al. (2020) extend the AET to Generative Adversarial Networks (GANs) for unsupervised image synthesis and representation learning. Gao et al. (2020) introduce the GraphTER model that extends AET to graph-structured data, which is formalized by auto-encoding node-wise transformations in an unsupervised manner. de Haan et al. (2020) propose Gauge Equivariant Mesh CNNs which generalize GCNNs to apply anisotropic gauge equivariant kernels. Fuchs et al. (2020) introduce a self-attention mechanism specifically for 3D point cloud data, which adheres to equivariance constraints, improving robustness to nuisance transformations.
36
+
37
+ # 3 METHOD
38
+
39
+ # 3.1 PRELIMINARY
40
+
41
+ We consider an undirected graph $\mathcal { G } = \{ \mathcal { V } , \mathcal { E } , \mathbf { A } \}$ composed of a node set $\nu$ of cardinality $| \nu | = N$ , an edge set $\mathcal { E }$ connecting nodes of cardinality $| { \mathcal { E } } | = M$ . $\mathbf { A }$ is a real symmetric $N \times N$ matrix that encodes the graph structure, where $a _ { i , j } = 1$ if there exists an edge $( i , j )$ between nodes $i$ and $j$ , and $a _ { i , j } = 0$ otherwise. Graph signal refers to data that reside on the nodes of a graph $\mathcal { G }$ , denoted by $\mathbf { X } \in \mathbb { R } ^ { N \times C }$ with the $i$ -th row representing the $C$ -dimensional graph signal on the $i$ -th node of $\nu$ .
42
+
43
+ # 3.2 TOPOLOGY TRANSFORMATION
44
+
45
+ We define the topology transformation $\mathbf { t }$ as adding or removing edges from the original edge set $\mathcal { E }$ in graph $\mathcal { G }$ . This can be done by sampling, i.i.d., a switch parameter $\sigma _ { i , j }$ as in (Velickovic et al., 2019), which determines whether to modify edge $( i , j )$ in the adjacency matrix. Assuming a Bernoulli distribution $B ( p )$ , where $p$ denotes the probability of each edge being modified, we draw a random matrix $\Sigma = \{ \bar { \sigma _ { i , j } } \} _ { N \times N }$ from $B ( p )$ , i.e., $\Sigma \sim B ( p )$ . We then acquire the perturbed adjacency matrix as
46
+
47
+ $$
48
+ \widetilde { \mathbf { A } } = \mathbf { A } \oplus \Sigma ,
49
+ $$
50
+
51
+ where $\oplus$ is the exclusive OR (XOR) operation. This strategy produces a transformed graph through the topology transformation $\mathbf { t }$ , i.e., $\overset { \sim } { \mathbf { A } } = \mathbf { t } ( \mathbf { A } )$ . Here, the edge perturbation probability of $p = 0$ corresponds to a non-transformed adjacency matrix, which is a special case of an identity transformation to A.
52
+
53
+ The transformed adjacency matrix $\widetilde { \bf A }$ can also be written as the sum of the original adjacency matrix A and a topology perturbation matrix $\Delta \mathbf { A }$ :
54
+
55
+ $$
56
+ \begin{array} { r } { \widetilde { \bf A } = { \bf A } + \Delta { \bf A } , } \end{array}
57
+ $$
58
+
59
+ where $\Delta \mathbf { A } = \{ \delta a _ { i , j } \} _ { N \times N }$ encodes the perturbation of edges, with $\delta a _ { i , j } \in \{ - 1 , 0 , 1 \}$ . As shown in Fig. 1, when $\delta a _ { i , j } = 0$ , the edge between node $i$ and node $j$ keeps unchanged (i.e., black solid lines); when $\delta a _ { i , j } = - 1$ or 1, it means removing (i.e., orange dotted lines) or adding (i.e., blue solid lines) the edge between node $i$ and node $j$ , respectively.
60
+
61
+ # 3.3 THE FORMULATION OF TOPOTER
62
+
63
+ Definition 1 Given a pair of graph signal and adjacency matrix $( \mathbf { X } , \mathbf { A } )$ , and a pair of graph signal and transformed adjacency matrix $( \mathbf { X } , { \widetilde { \mathbf { A } } } )$ by a topology transformation $\mathbf { t } ( \cdot )$ , a function $E ( \cdot )$ is transformation equivariant if it satisfies
64
+
65
+ $$
66
+ E ( \mathbf { X } , { \widetilde { \mathbf { A } } } ) = E \left( \mathbf { X } , \mathbf { t } ( \mathbf { A } ) \right) = \rho ( \mathbf { t } ) \left[ E ( \mathbf { X } , \mathbf { A } ) \right] ,
67
+ $$
68
+
69
+ where $\rho ( \mathbf t ) [ \cdot ]$ is a homomorphism of transformation t in the representation space.
70
+
71
+ Let us denote $\mathbf { H } = E ( \mathbf { X } , \mathbf { A } )$ , and $\widetilde { \mathbf { H } } = E ( \mathbf { X } , \widetilde { \mathbf { A } } )$ . We seek to learn an encoder $E : ( { \bf X } , { \bf A } ) \mapsto$ $\mathbf { H } ; ( \mathbf { X } , \widetilde { \mathbf { A } } ) \mapsto \widetilde { \mathbf { H } }$ that maps both the original and transformed sample to representations $\{ \mathbf { H } , \widetilde { \mathbf { H } } \}$ equivariant to the sampled transformation $\mathbf { t }$ , whose information can thus be inferred from the representations via a decoder $D : ( \widetilde { \mathbf { H } } , \mathbf { H } ) \mapsto \widehat { \Delta \mathbf { A } }$ as much as possible. From an information-theoretic perspective, this requires $( \mathbf { H } , \Delta \mathbf { A } )$ should jointly contain all necessary information about $\widetilde { \bf H }$ .
72
+
73
+ Then a natural choice to formalize the topology transformation equivariance is the mutual information $I ( \mathbf { H } , \Delta \mathbf { A } ; \widetilde { \mathbf { H } } )$ between $( \mathbf { H } , \Delta \mathbf { A } )$ and $\widetilde { \bf H }$ . The larger the mutual information is, the more knowledge about $\Delta \mathbf { A }$ can be inferred from the representations $\{ \mathbf { H } , \widetilde { \mathbf { H } } \}$ . Hence, we propose to maximize the mutual information to learn the topology transformation equivariant representations as follows:
74
+
75
+ $$
76
+ \operatorname* { m a x } _ { \theta } I ( \mathbf { H } , \Delta \mathbf { A } ; \widetilde { \mathbf { H } } ) ,
77
+ $$
78
+
79
+ where $\theta$ denotes the parameters of the auto-encoder network.
80
+
81
+ Nevertheless, it is difficult to compute the mutual information directly. Instead, we derive that maximizing the mutual information can be relaxed to minimizing the cross entropy, as described in the following theorem.
82
+
83
+ Theorem 1 The maximization of the mutual information $I ( \mathbf { H } , \Delta \mathbf { A } ; \widetilde { \mathbf { H } } )$ can be relaxed to the minimization of the cross entropy $H ( p \parallel q )$ between the probability distributions $p ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } )$ and $q ( \widehat { \Delta \mathbf { A } } | \widetilde { \mathbf { H } } , \mathbf { H } )$ :
84
+
85
+ $$
86
+ \operatorname* { m i n } _ { \theta } ~ H \left( p ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } ) \parallel q ( \widehat { \Delta \mathbf { A } } | \widetilde { \mathbf { H } } , \mathbf { H } ) \right) \triangleq - \underset { p ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } ) } { \mathbb { E } } \log q ( \widehat { \Delta \mathbf { A } } | \widetilde { \mathbf { H } } , \mathbf { H } ) .
87
+ $$
88
+
89
+ Proof By using the chain rule of mutual information, we have
90
+
91
+ $$
92
+ I ( \mathbf { H } , \Delta \mathbf { A } ; \widetilde { \mathbf { H } } ) = I ( \Delta \mathbf { A } ; \widetilde { \mathbf { H } } | \mathbf { H } ) + I ( \mathbf { H } ; \widetilde { \mathbf { H } } ) \ge I ( \Delta \mathbf { A } ; \widetilde { \mathbf { H } } | \mathbf { H } ) .
93
+ $$
94
+
95
+ Thus the mutual information $I ( \Delta \mathbf { A } ; \widetilde { \mathbf { H } } | \mathbf { H } )$ is the lower bound of the mutual information $I ( \mathbf { H } , \Delta \mathbf { A } ; \widetilde { \mathbf { H } } )$ that attains its minimum value when $I ( \mathbf { H } ; \widetilde { \mathbf { H } } ) = 0$ .
96
+
97
+ Therefore, we relax the objective to maximizing the lower bound mutual information $I ( \Delta \mathbf { A } ; \widetilde { \mathbf { H } } | \mathbf { H } )$ between the transformed representation $\widetilde { \bf H }$ and the topology transformation $\Delta \mathbf { A }$ :
98
+
99
+ $$
100
+ I ( \Delta \mathbf { A } ; \widetilde { \mathbf { H } } | \mathbf { H } ) = H ( \Delta \mathbf { A } | \mathbf { H } ) - H ( \Delta \mathbf { A } | \widetilde { \mathbf { H } } , \mathbf { H } ) ,
101
+ $$
102
+
103
+ where $H ( \cdot )$ denotes the conditional entropy. Since $\Delta \mathbf { A }$ and $\mathbf { H }$ are independent, we have $H ( \Delta \mathbf { A } | \mathbf { H } ) = H ( \Delta \mathbf { A } )$ . Hence, maximizing $I ( \Delta \mathbf { A } ; \widetilde { \mathbf { H } } | \mathbf { H } )$ becomes
104
+
105
+ $$
106
+ \operatorname* { m i n } _ { \theta } \ H ( \Delta \mathbf { A } | \widetilde { \mathbf { H } } , \mathbf { H } ) .
107
+ $$
108
+
109
+ According to the chain rule of conditional entropy, we have
110
+
111
+ $$
112
+ H ( \Delta \mathbf { A } | \widetilde { \mathbf { H } } , \mathbf { H } ) = H ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } ) - H ( \widetilde { \mathbf { H } } , \mathbf { H } ) \leq H ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } ) ,
113
+ $$
114
+
115
+ ![](images/d71ce9251b65e6c86f27cf303680468a96f1e7c79d30276ae320dce1ce6de06d.jpg)
116
+ Figure 2: The architecture of the proposed TopoTER.
117
+
118
+ where the conditional entropy ${ \cal H } ( \Delta { \bf A } | \widetilde { \bf H } , { \bf H } )$ is upper bounded by the joint entropy $H ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } )$ . Thus, the minimization problem in Eq. (6) becomes
119
+
120
+ $$
121
+ \operatorname* { m i n } _ { \theta } \ H ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } ) .
122
+ $$
123
+
124
+ We next introduce a conditional probability distribution $q ( \widehat { \Delta \mathbf { A } } | \widetilde { \mathbf { H } } , \mathbf { H } )$ to approximate the intractable posterior $\tilde { q } ( \Delta \mathbf { A } | \tilde { \mathbf { H } } , \mathbf { H } )$ with an estimated $\widehat { \Delta \mathbf { A } }$ . According to the definition of the Kullback-Leibler divergence, we have
125
+
126
+ $$
127
+ H ( \Delta \mathbf { A } , { \widetilde { \mathbf { H } } } , \mathbf { H } ) = H ( p ) = H ( p \parallel q ) - D _ { \mathrm { K L } } ( p \parallel q ) \leq H ( p \parallel q ) ,
128
+ $$
129
+
130
+ where $D _ { \mathrm { K L } } ( p \parallel q )$ denotes the Kullback-Leibler divergence of $p$ and $q$ that is non-negative, and $H ( p \parallel q )$ is the cross entropy between $p$ and $q$ . Thus, Eq. (6) is converted to minimizing the cross entropy as the upper bound:
131
+
132
+ $$
133
+ \operatorname* { m i n } _ { \theta } ~ H \left( p ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } ) \parallel q ( \widehat { \Delta \mathbf { A } } | \widetilde { \mathbf { H } } , \mathbf { H } ) \right) \triangleq - \underset { p ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } ) } { \mathbb { E } } \log q ( \widehat { \Delta \mathbf { A } } | \widetilde { \mathbf { H } } , \mathbf { H } ) .
134
+ $$
135
+
136
+ Hence, we relax the maximization problem in Eq. (4) to the optimization in Eq. (5).
137
+
138
+ Based on Theorem 1, we train the decoder $D$ to learn the distribution $q ( \widehat { \Delta \mathbf { A } } | \widetilde { \mathbf { H } } , \mathbf { H } )$ so as to estimate the topology transformation $\widehat { \Delta \mathbf { A } }$ from the encoded $\{ \widetilde { \mathbf { H } } , \mathbf { H } \}$ , where the input pairs of original and transformed graph representations $\{ \widetilde { \mathbf { H } } , \mathbf { H } \}$ as well as the ground truth target $\Delta \mathbf { A }$ can be sampled tractably from the factorization of $p ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } ) \triangleq p ( \Delta \mathbf { A } ) p ( \mathbf { H } ) p ( \widetilde { \mathbf { H } } | \Delta \mathbf { A } , \mathbf { H } )$ . This allows us to minimize the cross entropy between $p ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } )$ and $q ( \widehat { \Delta \mathbf { A } } | \widetilde { \mathbf { H } } , \mathbf { H } )$ as in (5) with the training triplets $( \widetilde { \mathbf { H } } , \mathbf { H } ; \Delta \mathbf { A } )$ drawn from the tractable factorization of $p ( \Delta \mathbf { A } , \widetilde { \mathbf { H } } , \mathbf { H } )$ . Hence, we formulate the TopoTER as the joint optimization of the representation encoder $E$ and the transformation decoder $D$ .
139
+
140
+ # 3.4 THE ALGORITHM
141
+
142
+ We design a graph-convolutional auto-encoder network for the TopoTER learning, as illustrated in Fig. 2. Given a graph signal $\mathbf { X }$ associated with a graph $\mathcal { G } = \{ \bar { \nu _ { , } } \mathcal { E } , \mathbf { A } \}$ , the proposed unsupervised learning algorithm for the TopoTER consists of three steps: 1) topology transformation, which samples and perturbs some edges from $\mathcal { E }$ to acquire a transformed adjacency matrix $\widetilde { \bf A }$ ; 2) representation encoding, which extracts the feature representations of graph signals before and after the topology transformation; 3) transformation decoding, which estimates the topology transformation parameters from the learned feature representations. We elaborate on the three steps as follows.
143
+
144
+ Topology Transformation. We randomly sample a subset of edges from $\mathcal { E }$ for topology perturbation—adding or removing edges, which not only enables to characterize local graph structures at various scales, but also reduces the number of edge transformation parameters to estimate for computational efficiency. In practice, in each iteration of training, we sample all the node pairs with connected edges $\mathbf { S } _ { 1 }$ , and randomly sample a subset of disconnected node pairs $\mathbf { S } _ { 0 }$ , i.e.,
145
+
146
+ $$
147
+ \begin{array} { r } { \mathbf { S } _ { 0 } = \left\{ ( i , j ) \big | a _ { i , j } = 0 \right\} , \mathbf { S } _ { 1 } = \left\{ ( i , j ) \big | a _ { i , j } = 1 \right\} , } \end{array}
148
+ $$
149
+
150
+ where $| \mathbf { S } _ { 0 } | = | \mathbf { S } _ { 1 } | = M$ . Next, we randomly split $\mathbf { S } _ { 0 }$ and $\mathbf { S } _ { 1 }$ into two disjoint sets, respectively, i.e.,
151
+
152
+ $$
153
+ \mathbf { S } _ { i } = \left\{ \mathbf { S } _ { i } ^ { ( 1 ) } , \mathbf { S } _ { i } ^ { ( 2 ) } \ \big \vert \ \mathbf { S } _ { i } ^ { ( 1 ) } \cap \mathbf { S } _ { i } ^ { ( 2 ) } = \mathcal { Q } , \mathbf { S } _ { i } ^ { ( 1 ) } \cup \mathbf { S } _ { i } ^ { ( 2 ) } = \mathbf { S } _ { i } , \big \vert \mathbf { S } _ { i } ^ { ( 1 ) } \big \vert = r \cdot \big \vert \mathbf { S } _ { i } \big \vert \right\} , i \in \{ 0 , 1 \} ,
154
+ $$
155
+
156
+ where $r$ is the edge perturbation rate. Then, for each node pair $( i , j )$ in $\mathbf { S } _ { 0 } ^ { ( 1 ) }$ and $\mathbf { S } _ { 1 } ^ { ( 1 ) }$ , we flip the corresponding entry in the original graph adjacency matrix. That is, if $a _ { i , j } = 0$ , then we set $\tilde { a } _ { i , j } = 1$ ; otherwise, we set $\tilde { a } _ { i , j } = 0$ . For each node pair $( i , j )$ in $\mathbf { S } _ { 0 } ^ { ( 2 ) }$ and $\mathbf { S } _ { 1 } ^ { ( 2 ) }$ , we keep the original connectivities unchanged, i.e., $\tilde { a } _ { i , j } = a _ { i , j }$ .
157
+
158
+ This leads to the transformed adjacency matrix $\widetilde { \bf A }$ , as well as the sampled transformation parameters by accessing $\Delta \mathbf { A }$ at position $( i , j )$ from $\mathbf { S } _ { 0 }$ and $\mathbf { S } _ { 1 }$ . Also, we can category the sampled topology transformation parameters into four types:
159
+
160
+ 1. add an edge to a disconnected node pair, i.e., $\{ \mathbf { t } : a _ { i , j } = 0 \mapsto \tilde { a } _ { i , j } = 1 , ( i , j ) \in \mathbf { S } _ { 0 } ^ { ( 1 ) } \} ;$ ;
161
+ 2. delete the edge between a connected node pair, i.e., $\{ \mathbf { t } : a _ { i , j } = 1 \mapsto \tilde { a } _ { i , j } = 0 , ( i , j ) \in \mathbf { S } _ { 1 } ^ { ( 1 ) } \}$ ;
162
+ 3. keep the disconnection between node pairs in $\mathbf { S } _ { 0 } ^ { ( 2 ) }$ , i.e., $\{ \mathbf { t } : a _ { i , j } = 0 \mapsto \tilde { a } _ { i , j } = 0 , ( i , j ) \in \mathbf { S } _ { 0 } ^ { ( 2 ) } \} ;$
163
+ 4. keep the connection between node pairs in $\mathbf { S } _ { 1 } ^ { ( 2 ) }$ , i.e., $\{ \mathbf { t } : a _ { i , j } = 1 \mapsto \tilde { a } _ { i , j } = 1 , ( i , j ) \in \mathbf { S } _ { 1 } ^ { ( 2 ) } \}$ .
164
+
165
+ Thus, we cast the problem of estimating transformation parameters in $\Delta \mathbf { A }$ from $( \widetilde { \mathbf { H } } , \mathbf { H } )$ as the classification problem of the transformation parameter types. The percentage of these four types is $r : r : ( 1 - r ) : ( 1 - r )$ .
166
+
167
+ Representation Encoder. We train an encoder $E : ( \mathbf { X } , \mathbf { A } ) \mapsto E ( \mathbf { X } , \mathbf { A } )$ to encode the feature representations of each node in the graph. As demonstrated in Fig. 2, we leverage GCNNs with shared weights to extract feature representations of each node in the graph signal. Taking the GCN (Kipf & Welling, 2017) as an example, the graph convolution in the GCN is defined as
168
+
169
+ $$
170
+ \mathbf { H } = E ( \mathbf { X } , \mathbf { A } ) = \mathbf { D } ^ { - { \frac { 1 } { 2 } } } ( \mathbf { A } + \mathbf { I } ) \mathbf { D } ^ { - { \frac { 1 } { 2 } } } \mathbf { X } \mathbf { W } ,
171
+ $$
172
+
173
+ where $\mathbf { D }$ is the degree matrix of $\mathbf { A } + \mathbf { I }$ , $\mathbf { W } \in \mathbb { R } ^ { C \times F }$ is a learnable parameter matrix, and $\mathbf { H } =$ $[ \mathbf { h } _ { 1 } , . . . , \mathbf { h } _ { N } ] ^ { \top } \in \mathbb { R } ^ { \breve { N } \times F }$ denotes the node-wise feature matrix with $F$ output channels. Similarly, the node feature of the transformed counterpart is as follows with the shared weights $\mathbf { W }$ .
174
+
175
+ $$
176
+ \begin{array} { r } { \widetilde { \mathbf { H } } = E ( \mathbf { X } , \widetilde { \mathbf { A } } ) = \widetilde { \mathbf { D } } ^ { - \frac { 1 } { 2 } } ( \widetilde { \mathbf { A } } + \mathbf { I } ) \widetilde { \mathbf { D } } ^ { - \frac { 1 } { 2 } } \mathbf { X } \mathbf { W } \quad } \\ { = \widetilde { \mathbf { D } } ^ { - \frac { 1 } { 2 } } ( \mathbf { A } + \mathbf { I } ) \widetilde { \mathbf { D } } ^ { - \frac { 1 } { 2 } } \mathbf { X } \mathbf { W } + \widetilde { \mathbf { D } } ^ { - \frac { 1 } { 2 } } \Delta \mathbf { A } \widetilde { \mathbf { D } } ^ { - \frac { 1 } { 2 } } \mathbf { X } \mathbf { W } . } \end{array}
177
+ $$
178
+
179
+ We thus acquire the feature representations $\mathbf { H }$ and $\widetilde { \bf H }$ of graph signals before and after topology transformations.
180
+
181
+ Transformation Decoder. Comparing Eq. (10) and Eq. (11), the prominent difference between $\widetilde { \bf H }$ and $\mathbf { H }$ lies in the second term of Eq. (11) featuring $\Delta \mathbf { A }$ . This enables us to train a decoder $D : ( \widetilde { \mathbf { H } } , \mathbf { H } ) \mapsto \widehat { \Delta \mathbf { A } }$ to estimate the topology transformation from the joint representations before and after transformation. We first take the difference between the extracted feature representations before and after transformations along the feature channel,
182
+
183
+ $$
184
+ \Delta { \bf H } = \widetilde { { \bf H } } - { \bf H } = [ \delta { \bf h } _ { 1 } , . . . , \delta { \bf h } _ { N } ] ^ { \top } \in \mathbb { R } ^ { N \times F } .
185
+ $$
186
+
187
+ Thus, we can predict the topology transformation between node $i$ and node $j$ through the node-wise feature difference $\Delta \mathbf { H }$ by constructing the edge representation as
188
+
189
+ $$
190
+ \mathbf { e } _ { i , j } = \frac { \exp \{ - ( \delta \mathbf { h } _ { i } - \delta \mathbf { h } _ { j } ) \odot ( \delta \mathbf { h } _ { i } - \delta \mathbf { h } _ { j } ) \} } { \lVert \exp \{ - ( \delta \mathbf { h } _ { i } - \delta \mathbf { h } _ { j } ) \odot ( \delta \mathbf { h } _ { i } - \delta \mathbf { h } _ { j } ) \} \rVert _ { 1 } } \in \mathbb { R } ^ { F } , \quad \forall ( i , j ) \in \mathbf { S } _ { 0 } \cup \mathbf { S } _ { 1 } ,
191
+ $$
192
+
193
+ where $\odot$ denotes the Hadamard product of two vectors to capture the feature representation, and $\| \cdot \| _ { 1 }$ is the $\ell _ { 1 }$ -norm of a vector for normalization. The edge representation $\mathbf { e } _ { i , j }$ of node $i$ and $j$ is then fed into several linear layers for the prediction of the topology transformation,
194
+
195
+ $$
196
+ \widehat { \mathbf { y } } _ { i , j } = \mathrm { s o f t m a x } \left( \mathrm { l i n e a r } ( \mathbf { e } _ { i , j } ) \right) , \quad \forall ( i , j ) \in \mathbf { S } _ { 0 } \cup \mathbf { S } _ { 1 } ,
197
+ $$
198
+
199
+ where softmax $( \cdot )$ is an activation function.
200
+
201
+ According to Eq. (5), the entire auto-encoder network is trained by minimizing the cross entropy
202
+
203
+ $$
204
+ \mathcal { L } = - \underset { ( i , j ) \in { \bf S } _ { 0 } \cup { \bf S } _ { 1 } } { \mathbb { E } } \sum _ { f = 0 } ^ { 3 } { \bf y } _ { i , j } ^ { ( f ) } \log \widehat { \bf y } _ { i , j } ^ { ( f ) } ,
205
+ $$
206
+
207
+ where $f$ denotes the transformation type $( f \in \{ 0 , 1 , 2 , 3 \}$ ), and $\mathbf { y }$ is the ground-truth binary indicator (0 or 1) for each transformation parameter type.
208
+
209
+ Table 1: Node classification accuracies (with standard deviation) in percentage on three datasets. X, A, Y denote the input data, adjacency matrix and labels respectively.
210
+
211
+ <table><tr><td>Method</td><td>TrainingData</td><td>Cora</td><td>Citeseer</td><td>Pubmed</td></tr><tr><td colspan="5">Semi-SupervisedMethods</td></tr><tr><td>GCN(Kipf&amp;Welling,2017)</td><td>X,A,Y</td><td>81.5</td><td>70.3</td><td>79.0</td></tr><tr><td>MoNet (Monti et al.,2017)</td><td>X,A,Y</td><td>81.7 ± 0.5</td><td>-</td><td>78.8± 0.3</td></tr><tr><td>GAT(Velickovic et al.,2018)</td><td>X,A,Y</td><td>83.0 ±0.7</td><td>72.5±0.7</td><td>79.0±0.3</td></tr><tr><td>SGC (Wu et al., 2019)</td><td>X,A,Y</td><td>81.0 ±0.0</td><td>71.9 ± 0.1</td><td>78.9 ± 0.0</td></tr><tr><td>GWNN (Xu et al.,2019a)</td><td>X,A,Y</td><td>82.8</td><td>71.7</td><td>79.1</td></tr><tr><td>MixHop (Abu-El-Haija et al., 2019)</td><td>X,A,Y</td><td>81.9 ± 0.4</td><td>71.4 ± 0.8</td><td>80.8±0.6</td></tr><tr><td>DFNet (Wijesinghe&amp; Wang,2019)</td><td>X,A,Y</td><td>85.2 ±0.5</td><td>74.2 ± 0.3</td><td>84.3 ± 0.4</td></tr><tr><td colspan="5">Unsupervised Methods</td></tr><tr><td>RawFeatures(Velickovic et al.,2019)</td><td>X</td><td>47.9±0.4</td><td>49.3±0.2</td><td>69.1±0.3</td></tr><tr><td>DeepWalk (Perozzi et al.,2014)</td><td>A</td><td>67.2</td><td>43.2</td><td>65.3</td></tr><tr><td>DeepWalk + Features (Velickovic et al., 2019)</td><td>X,A</td><td>70.7 ± 0.6</td><td>51.4 ± 0.5</td><td>74.3 ± 0.9</td></tr><tr><td>GAE (Kipf &amp; Welling,2016)</td><td>X,A</td><td>80.9 ± 0.4</td><td>66.7±0.4</td><td>77.1 ±0.7</td></tr><tr><td>VGAE (Kipf &amp; Welling,2016)</td><td>X,A</td><td>80.0±0.2</td><td>64.1 ± 0.2</td><td>76.9 ± 0.1</td></tr><tr><td>DGI (Velickovic et al.,2019)</td><td>X,A</td><td>81.1 ± 0.1</td><td>71.4 ± 0.2</td><td>77.0± 0.2</td></tr><tr><td>GMI (Peng et al.,2020)</td><td>X,A</td><td>82.2 ±0.2</td><td>71.4± 0.5</td><td>78.5 ±0.1</td></tr><tr><td>TopoTER</td><td>X,A</td><td>83.7 ± 0.3</td><td>71.7 ± 0.5</td><td>79.1 ± 0.1</td></tr></table>
212
+
213
+ Table 2: Model size comparison of DGI, GMI, and the proposed TopoTER
214
+
215
+ <table><tr><td>Model</td><td>DGI</td><td>GMI</td><td>TopoTER</td></tr><tr><td>No.of Parameters</td><td>996,354</td><td>1,730,052</td><td>736,260</td></tr></table>
216
+
217
+ # 4 EXPERIMENTS
218
+
219
+ # 4.1 NODE CLASSIFICATION
220
+
221
+ Datasets. We adopt three citation networks to evaluate our model: Cora, Citeseer, and Pubmed (Sen et al., 2008), where nodes correspond to documents and edges represent citations. We follow the standard train/test split in (Kipf & Welling, 2017) to conduct the experiments.
222
+
223
+ Implementation Details. In this task, the auto-encoder network is trained via Adam optimizer, and the learning rate is set to $1 0 ^ { - 4 }$ . We use the same early stopping strategy as DGI (Velickovic et al., 2019) on the observed training loss, with a patience of 20 epochs. We deploy one Simple Graph Convolution (SGC) layer (Wu et al., 2019) as our encoder, and the order of the adjacency matrix is set to 2, while we will study the order of the adjacency matrix in Appendix A. The LeakyReLU activation function with a negative slope of 0.1 is employed after the SGC layer. Similar to DGI (Velickovic et al., 2019), we set the output channel $F = 5 1 2$ for Cora and Citeseer dataset, and 256 for Pubmed dataset due to memory limitations. After the encoder, we use one linear layer to classify the transformation types. We set the edge perturbation rate in Eq. (9) as $r = \{ 0 . 7 , 0 . 4 , 0 . 7 \}$ for Cora, Citeseer, and Pubmed, respectively. The analysis of the edge perturbation rate will be presented in Appendix B.
224
+
225
+ During the training procedure of the classifier, the SGC layer in the encoder is used to extract graph feature representations with the weights frozen. After the SGC layer, we apply one linear layer to map the features to the classification scores.
226
+
227
+ Experimental Results. We compare the proposed method with five unsupervised methods, including one node embedding method DeepWalk, two graph auto-encoders GAE and VGAE (Kipf & Welling, 2016), and two contrastive learning methods DGI (Velickovic et al., 2019) and GMI (Peng et al., 2020). Additionally, we report the results of Raw Features and DeepWalk+Features (Perozzi et al., 2014) under the same settings. For fair comparison, the results of all other unsupervised methods are reproduced by using the same encoder architecture of the TopoTER except DeepWalk and Raw Features. We report the mean classification accuracy (with standard deviation) on the test nodes for all methods after 50 runs of training. As reported in Tab. 1, the TopoTER outperforms all other competing unsupervised methods on three datasets. Further, the proposed unsupervised method also achieves comparable performance with semi-supervised results. This significantly closes the gap between unsupervised approaches and the semi-supervised methods.
228
+
229
+ Moreover, we compare the proposed TopoTER with two contrastive learning methods DGI and GMI in terms of the model complexity, as reported in Tab. 2. The number of parameters in our model is less than that of DGI and even less than half of that of GMI, which further shows the TopoTER model is lightweight.
230
+
231
+ Table 3: Graph classification accuracies (with standard deviation) in percentage on 6 datasets. $^ { 6 6 } > 1$ Day” represents that the computation exceeds 24 hours. “OOM” is out of memory error.
232
+
233
+ <table><tr><td>Dataset (No.Graphs) (No. Classes)</td><td>MUTAG 188 2</td><td>PTC-MR 344 2</td><td>RDT-B 2000 2</td><td>RDT-M5K 4999 5</td><td>IMDB-B 1000 2</td><td>IMDB-M 1500 3</td></tr><tr><td colspan="7">GraphKernelMethods</td></tr><tr><td>RW</td><td>83.72 ±1.50</td><td>57.85 ±1.30</td><td>OOM</td><td>OOM</td><td>50.68±0.26</td><td>34.65 ±0.19</td></tr><tr><td>SP</td><td>85.22 ± 2.43</td><td>58.24 ± 2.44</td><td>64.11 ± 0.14</td><td>39.55 ±0.22</td><td>55.60±0.22</td><td>37.99 ± 0.30</td></tr><tr><td>GK</td><td>81.66 ± 2.11</td><td>57.26 ± 1.41</td><td>77.34 ± 0.18</td><td>41.01 ± 0.17</td><td>65.87 ±0.98</td><td>43.89 ±0.38</td></tr><tr><td>WL</td><td>80.72 ±3.00</td><td>57.97 ± 0.49</td><td>68.82 ±0.41</td><td>46.06 ±0.21</td><td>72.30 ± 3.44</td><td>46.95 ± 0.46</td></tr><tr><td>DGK</td><td>87.44 ±2.72</td><td>60.08 ±2.55</td><td>78.04±0.39</td><td>41.27 ± 0.18</td><td>66.96 ±0.56</td><td>44.55± 0.52</td></tr><tr><td>MLG</td><td>87.94 ± 1.61</td><td>63.26 ± 1.48</td><td>&gt;1Day</td><td>&gt;1Day</td><td>66.55 ± 0.25</td><td>41.17 ± 0.03</td></tr><tr><td colspan="7">SupervisedMethods</td></tr><tr><td>GCN</td><td>85.6±5.8</td><td>64.2± 4.3</td><td>50.0±0.0</td><td>20.0±0.0</td><td>74.0±3.0</td><td>51.9±3.8</td></tr><tr><td>GraphSAGE</td><td>85.1± 7.6</td><td>63.9 ±7.7</td><td></td><td>=</td><td>72.3 ± 5.3</td><td>50.9 ± 2.2</td></tr><tr><td>GIN-0</td><td>89.4±5.6</td><td>64.6±7.0</td><td>92.4±2.5</td><td>57.5 ± 1.5</td><td>75.1 ± 5.1</td><td>52.3±2.8</td></tr><tr><td>GIN-e</td><td>89.0±6.0</td><td>63.7±8.2</td><td>92.2±2.3</td><td>57.0 ±1.7</td><td>74.3 ± 5.1</td><td>52.1±3.6</td></tr><tr><td colspan="7">Unsupervised Methods</td></tr><tr><td>node2vec</td><td>72.63±10.20</td><td>58.58±8.00</td><td></td><td>=</td><td>=</td><td></td></tr><tr><td>sub2vec</td><td>61.05 ± 15.80 83.15 ±9.25</td><td>59.99 ±6.38</td><td>71.48 ± 0.41 75.78 ±1.03</td><td>36.68 ±0.42 47.86 ±0.26</td><td>55.26 ± 1.54</td><td>36.67±0.83</td></tr><tr><td>graph2vec</td><td>89.01 ± 1.13</td><td>60.17 ±6.86 61.65 ±1.43</td><td>82.50 ±1.42</td><td>53.46 ± 1.03</td><td>71.10 ±0.54 73.03 ± 0.87</td><td>50.44 ± 0.87</td></tr><tr><td>InfoGraph TopoTER</td><td>89.25 ±0.81</td><td>64.59 ±1.26</td><td>84.93 ±0.18</td><td>55.52±0.20</td><td>73.46 ±0.38</td><td>49.69 ± 0.53</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>49.68 ±0.31</td></tr></table>
234
+
235
+ # 4.2 GRAPH CLASSIFICATION
236
+
237
+ Datasets. We conduct graph classification experiments on six well-known graph benchmark datasets (Yanardag & Vishwanathan, 2015): MUTAG, PTC, REDDIT-BINARY, REDDIT-MULTI5K, IMDB-BINARY, and IMDB-MULTI.
238
+
239
+ Implementation Details. In this task, the entire network is trained via Adam optimizer with a batch size of 64, and the learning rate is set to $1 0 ^ { - 3 }$ . For the encoder architecture, we follow the same encoder settings in the released code of InfoGraph (Sun et al., 2020a), i.e., three Graph Isomorphism Network (GIN) layers (Xu et al., 2019b) with batch normalization. We also use one linear layer to classify the transformation types. We set the sampling rate $r = 0 . 5$ for all datasets.
240
+
241
+ During the evaluation stage, the entire encoder will be frozen to extract node-level feature representations, which will go through a global add pooling layer to acquire global features. We then use LIBSVM to classify these global features to classification scores. We adopt the same procedure of previous works (Sun et al., 2020a) to make a fair comparison and use 10-fold cross validation accuracy to report the classification performance, and the experiments are repeated five times.
242
+
243
+ Experimental Results. We take six graph kernel approaches for comparison: Random Walk (RW) (Gartner et al., 2003), Shortest Path Kernel (SP) (Borgwardt & Kriegel, 2005), Graphlet Kernel ¨ (GK) (Shervashidze et al., 2009), Weisfeiler-Lehman Sub-tree Kernel (WL) (Shervashidze et al., 2011), Deep Graph Kernels (DGK) (Yanardag & Vishwanathan, 2015), and Multi-Scale Laplacian Kernel (MLG) (Kondor & Pan, 2016). Aside from graph kernel methods, we also compare with three unsupervised graph-level representation learning methods: node2vec (Grover & Leskovec, 2016), sub2vec (Adhikari et al., 2018), and graph2vec (Narayanan et al., 2017), and one contrastive learning method: InfoGraph (Sun et al., 2020a). The experimental results of unsupervised graph classification are preseted in Tab. 3. The proposed TopoTER outperforms all unsupervised baseline methods on the first five datasets, and achieves comparable results on the other dataset. Also, the proposed approach reaches the performance of supervised methods at times, thus validating the effectiveness of the TopoTER model.
244
+
245
+ # 5 CONCLUSION
246
+
247
+ We propose Topology Transformation Equivariant Representation (TopoTER) for learning unsupervised representations on graph data. By maximizing the mutual information between topology transformations and feature representations before and after transformations, the TopoTER enforces the encoder to learn intrinsic graph feature representations that contain sufficient information about structures under applied topology transformations. We apply the TopoTER model to node classification and graph classification tasks, and results demonstrate that the TopoTER outperforms stateof-the-art unsupervised approaches and reaches the performance of supervised methods at times.
248
+
249
+ # REFERENCES
250
+
251
+ 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 (ICML), pp. 21–29, 2019.
252
+
253
+ Bijaya Adhikari, Yao Zhang, Naren Ramakrishnan, and B Aditya Prakash. Sub2vec: Feature learning for subgraphs. In Pacific-Asia Conference on Knowledge Discovery and Data Mining, pp. 170–182. Springer, 2018.
254
+
255
+ Karsten M Borgwardt and Hans-Peter Kriegel. Shortest-path kernels on graphs. In IEEE International Conference on Data Mining (ICDM), pp. 8–pp. IEEE, 2005.
256
+
257
+ Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017.
258
+
259
+ Shaosheng Cao, Wei Lu, and Qiongkai Xu. Deep neural networks for learning graph representations. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), volume 16, pp. 1145– 1152, 2016.
260
+
261
+ Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 132–149, 2018.
262
+
263
+ Taco Cohen and Max Welling. Group equivariant convolutional networks. In Proceedings of the 33rd International Conference on Machine Learning (ICML), pp. 2990–2999, 2016.
264
+
265
+ Nicola De Cao and Thomas Kipf. MolGAN: An implicit generative model for small molecular graphs. In International Conference on Machine Learning Workshop on Theoretical Foundations and Applications of Deep Generative Models, 2018.
266
+
267
+ Pim de Haan, Maurice Weiler, Taco Cohen, and Max Welling. Gauge equivariant mesh cnns: Anisotropic convolutions on geometric graphs. arXiv preprint arXiv:2003.05425, 2020.
268
+
269
+ Sander Dieleman, Kyle W Willett, and Joni Dambre. Rotation-invariant convolutional neural networks for galaxy morphology prediction. Monthly Notices of the Royal Astronomical Society, 450 (2):1441–1459, 2015.
270
+
271
+ Sander Dieleman, Jeffrey De Fauw, and Koray Kavukcuoglu. Exploiting cyclic symmetry in convolutional neural networks. In International Conference on Machine Learning (ICML), pp. 1889– 1898, 2016.
272
+
273
+ Fabian B Fuchs, Daniel E Worrall, Volker Fischer, and Max Welling. Se (3)-transformers: 3d rototranslation equivariant attention networks. arXiv preprint arXiv:2006.10503, 2020.
274
+
275
+ Xiang Gao, Wei Hu, and Guo-Jun Qi. GraphTER: Unsupervised learning of graph transformation equivariant representations via auto-encoding node-wise transformations. In Proceedings of IEEE/CVF Conferences on Computer Vision and Pattern Recognition (CVPR), 2020.
276
+
277
+ Thomas Gartner, Peter Flach, and Stefan Wrobel. On graph kernels: Hardness results and efficient ¨ alternatives. In Learning Theory and Kernel Machines, pp. 129–143. Springer, 2003.
278
+
279
+ Robert Gens and Pedro M Domingos. Deep symmetry networks. In Advances in Neural Information Processing Systems (NIPS), pp. 2537–2545, 2014.
280
+
281
+ Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 855–864, 2016.
282
+
283
+ Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks (ICANN), pp. 44–51. Springer, 2011.
284
+
285
+ R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In International Conference on Learning Representations (ICLR), 2018.
286
+
287
+ Thomas N Kipf and Max Welling. Variational graph auto-encoders. In Proceedings of the NIPS Workshop on Bayesian Deep Learning, 2016.
288
+
289
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017.
290
+
291
+ Jyri J Kivinen and Christopher KI Williams. Transformation equivariant boltzmann machines. In International Conference on Artificial Neural Networks (ICANN), pp. 1–9. Springer, 2011.
292
+
293
+ Risi Kondor and Horace Pan. The multiscale laplacian graph kernel. In Advances in Neural Information Processing Systems (NIPS), pp. 2990–2998, 2016.
294
+
295
+ Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 991–999, 2015.
296
+
297
+ Jan Eric Lenssen, Matthias Fey, and Pascal Libuschewski. Group equivariant capsule networks. In Advances in Neural Information Processing Systems (NIPS), pp. 8844–8853, 2018.
298
+
299
+ Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang, and Jie Tang. Selfsupervised learning: Generative or contrastive. arXiv, pp. arXiv–2006, 2020.
300
+
301
+ Tengfei Ma, Jie Chen, and Cao Xiao. Constrained generation of semantically valid graphs via regularizing variational autoencoders. In Advances in Neural Information Processing Systems (NIPS), pp. 7113–7124, 2018.
302
+
303
+ Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5115–5124, 2017.
304
+
305
+ Annamalai Narayanan, Mahinthan Chandramohan, Rajasekar Venkatesan, Lihui Chen, Yang Liu, and Shantanu Jaiswal. graph2vec: Learning distributed representations of graphs. In Proceedings of the 13th International Workshop on Mining and Learning with Graphs (MLG), 2017.
306
+
307
+ Zhen Peng, Wenbing Huang, Minnan Luo, Qinghua Zheng, Yu Rong, Tingyang Xu, and Junzhou Huang. Graph representation learning via graphical mutual information maximization. In Proceedings of The Web Conference, pp. 259–270, 2020.
308
+
309
+ Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 701–710, 2014.
310
+
311
+ Guo-Jun Qi, Liheng Zhang, Chang Wen Chen, and Qi Tian. AVT: Unsupervised learning of transformation equivariant representations by autoencoding variational transformations. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019a.
312
+
313
+ Guo-Jun Qi, Liheng Zhang, and Xiao Wang. Learning generalized transformation equivariant representations via autoencoding transformations. arXiv preprint arXiv:1906.08628, 2019b.
314
+
315
+ Jiezhong Qiu, Qibin Chen, Yuxiao Dong, Jing Zhang, Hongxia Yang, Ming Ding, Kuansan Wang, and Jie Tang. Gcc: Graph contrastive coding for graph neural network pre-training. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1150–1160, 2020.
316
+
317
+ Uwe Schmidt and Stefan Roth. Learning rotation-aware features: From invariant priors to equivariant descriptors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2050–2057. IEEE, 2012.
318
+
319
+ Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93–93, 2008.
320
+
321
+ Nino Shervashidze, SVN Vishwanathan, Tobias Petri, Kurt Mehlhorn, and Karsten Borgwardt. Efficient graphlet kernels for large graph comparison. In Artificial Intelligence and Statistics, pp. 488–495, 2009.
322
+
323
+ Nino Shervashidze, Pascal Schweitzer, Erik Jan Van Leeuwen, Kurt Mehlhorn, and Karsten M Borgwardt. Weisfeiler-lehman graph kernels. Journal of Machine Learning Research, 12(9), 2011.
324
+
325
+ Martin Simonovsky and Nikos Komodakis. Graphvae: Towards generation of small graphs using variational autoencoders. In International Conference on Artificial Neural Networks (ICANN), pp. 412–422. Springer, 2018.
326
+
327
+ Henrik Skibbe. Spherical Tensor Algebra for Biomedical Image Analysis. PhD thesis, Verlag nicht ermittelbar, 2013.
328
+
329
+ Kihyuk Sohn and Honglak Lee. Learning invariant representations with local transformations. In International Conference on Machine Learning (ICML), pp. 1339–1346, 2012.
330
+
331
+ Fan-Yun Sun, Jordan Hoffmann, Vikas Verma, and Jian Tang. Infograph: Unsupervised and semisupervised graph-level representation learning via mutual information maximization. In International Conference on Learning Representations (ICLR), 2020a.
332
+
333
+ Ke Sun, Zhouchen Lin, and Zhanxing Zhu. Multi-stage self-supervised learning for graph convolutional networks on graphs with few labeled nodes. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pp. 5892–5899, 2020b.
334
+
335
+ Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. In International Conference on Learning Representations (ICLR), 2018.
336
+
337
+ Petar Velickovic, William Fedus, William L Hamilton, Pietro Lio, Yoshua Bengio, and R Devon \` Hjelm. Deep graph infomax. In International Conference on Learning Representations (ICLR), 2019.
338
+
339
+ Daixin Wang, Peng Cui, and Wenwu Zhu. Structural deep network embedding. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1225–1234, 2016.
340
+
341
+ Jiayu Wang, Wengang Zhou, Guo-Jun Qi, Zhongqian Fu, Qi Tian, and Houqiang Li. Transformation gan for unsupervised image synthesis and representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 472–481, 2020.
342
+
343
+ WOK Asiri Suranga Wijesinghe and Qing Wang. Dfnets: Spectral cnns for graphs with feedbacklooped filters. In Advances in Neural Information Processing Systems (NIPS), pp. 6009–6020, 2019.
344
+
345
+ Felix Wu, Tianyi Zhang, Amauri Holanda de Souza Jr, Christopher Fifty, Tao Yu, and Kilian Q Weinberger. Simplifying graph convolutional networks. In Proceedings of the 36th International Conference on Machine Learning (ICML), pp. 6861–6871, 2019.
346
+
347
+ Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. IEEE Transactions on Neural Networks and Learning Systems, 2020.
348
+
349
+ Bingbing Xu, Huawei Shen, Qi Cao, Yunqi Qiu, and Xueqi Cheng. Graph wavelet neural network. In International Conference on Learning Representations (ICLR), 2019a.
350
+
351
+ Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations (ICLR), 2019b.
352
+
353
+ Pinar Yanardag and SVN Vishwanathan. Deep graph kernels. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1365–1374, 2015.
354
+
355
+ Jiaxuan You, Rex Ying, Xiang Ren, William L Hamilton, and Jure Leskovec. Graphrnn: Generating realistic graphs with deep auto-regressive models. In Proceedings of the 35th International Conference on Machine Learning (ICML), pp. 5694–5703, 2018.
356
+
357
+ Liheng Zhang, Guo-Jun Qi, Liqiang Wang, and Jiebo Luo. AET vs. AED: Unsupervised representation learning by auto-encoding transformations rather than data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2547–2555, 2019.
358
+
359
+ # A EXPERIMENTS ON DIFFERENT ORDERS OF THE ADJACENCY MATRIX
360
+
361
+ As presented in Sec. 3.2, we perturb the 1-hop neighborhoods via the proposed topology transformations, leading to possibly significant changes in the graph topology. This increases the difficulties of predicting the topology transformations when using one-layer GCN (Kipf & Welling, 2017) by aggregating the 1-hop neighborhood information. Therefore, we employ one Simple Graph Convolution (SGC) layer (Wu et al., 2019) with order $k$ as our encoder $E ( \cdot )$ , where the output feature representations aggregate multi-hop neighborhood information. Formally, the SGC layer is defined as
362
+
363
+ $$
364
+ \mathbf { H } = E ( \mathbf { X } , \mathbf { A } ) = \left( \mathbf { D } ^ { - { \frac { 1 } { 2 } } } ( \mathbf { A } + \mathbf { I } ) \mathbf { D } ^ { - { \frac { 1 } { 2 } } } \right) ^ { k } \mathbf { X } \mathbf { W } ,
365
+ $$
366
+
367
+ where $\mathbf { D }$ is the degree matrix of $\mathbf { A } + \mathbf { I }$ , $\mathbf { W } \in \mathbb { R } ^ { C \times F }$ is a learnable parameter matrix, and $k$ is the order of the normalized adjacency matrix.
368
+
369
+ To study the influence of different orders of the adjacency matrix, we adopt five orders from 1 to 5 to train five models on the node classification task. Fig. 3 presents the node classification accuracy under different orders of the adjacency matrix for TopoTER and DGI respectively. As we can see, the proposed TopoTER achieves best classification performance when $\bar { k } = \{ 4 , 2 , 3 \}$ on the three datasets respectively. When $k = 1$ , our model still achieves reasonable results although it is difficult to predict the topology transformations from 1-hop neighborhood information; when $k > 1$ , our proposed TopoTER outperforms DGI by a large margin on Cora and Pubmed dataset, and achieves comparable results to DGI on Citeseer dataset. This is because DGI adopts feature shuffling to generate negative samples, which is insufficient to learn contrastive feature representations when aggregating multi-hop neighborhood information, while TopoTER takes advantage of multi-hop neighborhood information to predict the topology transformations, leading to improved performance.
370
+
371
+ ![](images/8ddbf8b4e04cab400e9891a928714a2981f607b9d3a138ffb5b36d9e723dac71.jpg)
372
+ Figure 3: Node classification accuracies under different orders of the adjacency matrix on the Cora, Citeseer, and Pubmed datasets.
373
+
374
+ # B EXPERIMENTS ON DIFFERENT EDGE PERTURBATION RATES
375
+
376
+ Further, we evaluate the influence of the edge perturbation rate in Eq. (9) on the node classification task. We choose 11 edge perturbation rates from 0.0 to 1.0 at an interval of 0.1 to train the proposed TopoTER. We use one SGC layer as our encoder $E ( \cdot )$ , where the order of the adjacency matrix is set to 1. As presented in Fig. 4, the blue solid line with error bar shows the classification accuracy of our TopoTER under different edge perturbation rates. We also provide the classification accuracy on feature representations of graphs from a randomly initialized encoder $E ( \cdot )$ , denoted as Random Init., which serves as the lower bound of the performance.
377
+
378
+ As we can see, the classification performance reaches the best when the graph is perturbed under a reasonable edge perturbation rate, e.g., $r = \{ 0 . 6 , 0 . 5 , 0 . 6 \}$ for the Cora, Citeseer, and Pubmed dataset, respectively. When the edge perturbation rate $r ~ = ~ 0 . 0$ , the unsupervised training task of TopoTER becomes link prediction, which cannot take advantage of the proposed method by predicting the topology transformations; when the edge perturbation rate $r = 1 . 0$ , our TopoTER still achieves reasonable classification results, which shows the stability of our model under high edge perturbation rates. At the same time, we observe that the proposed TopoTER outperforms Random Init. by a large margin, which validates the effectiveness of the proposed unsupervised training strategy.
379
+
380
+ ![](images/cfee187499901abc7aaea98a85b3758d39bf6b7135d31b0e4e98280246dd31f5.jpg)
381
+ Figure 4: Node classification accuracies under different edge perturbation rates on the Cora, Citeseer, and Pubmed datasets.
parse/train/9az9VKjOx00/9az9VKjOx00_content_list.json ADDED
@@ -0,0 +1,1895 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TOPOTER: UNSUPERVISED LEARNING OF TOPOLOGY TRANSFORMATION EQUIVARIANT REPRESENTATIONS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 820,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 172,
20
+ 398,
21
+ 200
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 237,
32
+ 544,
33
+ 252
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We present the Topology Transformation Equivariant Representation (TopoTER) learning, a general paradigm of unsupervised learning of node representations of graph data for the wide applicability to Graph Convolutional Neural Networks (GCNNs). We formalize the TopoTER from an information-theoretic perspective, by maximizing the mutual information between topology transformations and node representations before and after the transformations. We derive that maximizing such mutual information can be relaxed to minimizing the cross entropy between the applied topology transformation and its estimation from node representations. In particular, we seek to sample a subset of node pairs from the original graph and flip the edge connectivity between each pair to transform the graph topology. Then, we self-train a representation encoder to learn node representations by reconstructing the topology transformations from the feature representations of the original and transformed graphs. In experiments, we apply the TopoTER to the downstream node and graph classification tasks, and results show that the TopoTER outperforms the state-of-the-art unsupervised approaches. ",
40
+ "bbox": [
41
+ 233,
42
+ 268,
43
+ 764,
44
+ 476
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 498,
55
+ 336,
56
+ 513
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Graphs provide a natural and efficient representation for non-Euclidean data, such as brain networks, social networks, citation networks, and 3D point clouds. Graph Convolutional Neural Networks (GCNNs) (Bronstein et al., 2017) have been proposed to generalize the CNNs to learn representations from non-Euclidean data, which has made significant advances in various applications such as node classification (Kipf & Welling, 2017; Velickovi ˇ c et al., 2018; Xu et al., 2019a) and graph ´ classification (Xu et al., 2019b). However, most existing GCNNs are trained in a supervised fashion, requiring a large amount of labeled data for network training. This limits the applications of the GCNNs since it is often costly to collect adequately labeled data, especially on large-scale graphs. Hence, this motivates the proposed research to learn graph feature representations in an unsupervised fashion, which enables the discovery of intrinsic graph structures and thus adapts to various downstream tasks. ",
63
+ "bbox": [
64
+ 174,
65
+ 520,
66
+ 825,
67
+ 672
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Auto-Encoders (AEs) and Generative Adversarial Networks (GANs) are two most representative unsupervised learning methods. Based on the AEs and GANs, many approaches have sought to learn transformation equivariant representations (TERs) to further improve the quality of unsupervised representation learning. It assumes that the learned representations equivarying to transformations are able to encode the intrinsic structures of data such that the transformations can be reconstructed from the representations before and after transformations (Qi et al., 2019b). Learning TERs traces back to Hinton’s seminal work on learning transformation capsules (Hinton et al., 2011), and embodies a variety of methods developed for Euclidean data (Kivinen & Williams, 2011; Sohn & Lee, 2012; Schmidt & Roth, 2012; Skibbe, 2013; Lenc & Vedaldi, 2015; Gens & Domingos, 2014; Dieleman et al., 2015; 2016; Zhang et al., 2019; Qi et al., 2019a). Further, Gao et al. (2020) extend transformation equivariant representation learning to non-Euclidean domain, which formalizes Graph Transformation Equivariant Representation (GraphTER) learning by auto-encoding nodewise transformations in an unsupervised fashion. Nevertheless, only transformations on node features are explored, while the underlying graph may vary implicitly. The graph topology has not been fully explored yet, which however is crucial in unsupervised graph representation learning. ",
74
+ "bbox": [
75
+ 174,
76
+ 681,
77
+ 825,
78
+ 888
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "To this end, we propose the Topology Transformation Equivariant Representation (TopoTER) learning to infer unsupervised graph feature representations by estimating topology transformations. Instead of transforming node features as in the GraphTER, the proposed TopoTER studies the transformation equivariant representation learning by transforming the graph topology, i.e., adding or removing edges to perturb the graph structure. Then the same input signals are attached to the resultant graph topologies, resulting in different graph representations. This provides an insight into how the same input signals associated with different graph topologies would lead to equivariant representations enabling the fusion of node feature and graph topology in GCNNs. Formally, we propose the TopoTER from an information-theoretic perspective, aiming to maximize the mutual information between topology transformations and feature representations with respect to the original and transformed graphs. We derive that maximizing such mutual information can be relaxed to the cross entropy minimization between the applied topology transformations and the estimation from the learned representations of graph data under the topological transformations. ",
85
+ "bbox": [
86
+ 174,
87
+ 895,
88
+ 821,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 256
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Specifically, given an input graph and its associated node features, we first sample a subset of node pairs from the graph and flip the edge connectivity between each pair at a perturbation rate, leading to a transformed graph with attached node features. Then, we design a graph-convolutional auto-encoder architecture, where the encoder learns the node-wise representations over the original and transformed graphs respectively, and the decoder predicts the topology transformations of edge connectivity from both representations by minimizing the cross entropy between the applied and estimated transformations. Experimental results demonstrate that the proposed TopoTER model outperforms the state-of-the-art unsupervised models, and even achieves comparable results to the (semi-)supervised approaches in node classification and graph classification tasks at times. ",
107
+ "bbox": [
108
+ 174,
109
+ 263,
110
+ 825,
111
+ 388
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Our main contributions are summarized as follows. ",
118
+ "bbox": [
119
+ 174,
120
+ 396,
121
+ 509,
122
+ 410
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "• We propose the Topology Transformation Equivariant Representation (TopoTER) learning to infer expressive node feature representations in an unsupervised fashion, which can characterize the intrinsic structures of graphs and the associated features by exploring the graph transformations of connectivity topology. We formulate the TopoTER from an information-theoretic perspective, by maximizing the mutual information between feature representations and topology transformations, which can be relaxed to the cross entropy minimization between the applied transformations and the prediction in an end-to-end graph-convolutional auto-encoder architecture. \n• Experiments demonstrate that the proposed TopoTER model outperforms the state-of-the-art unsupervised methods in both node classification and graph classification. ",
129
+ "bbox": [
130
+ 176,
131
+ 411,
132
+ 825,
133
+ 558
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORK ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 563,
144
+ 344,
145
+ 578
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Graph Auto-Encoders. Graph Auto-Encoders (GAEs) are the most representative unsupervised methods. GAEs encode graph data into feature space via an encoder and reconstruct the input graph data from the encoded feature representations via a decoder. GAEs are often used to learn network embeddings and graph generative distributions (Wu et al., 2020). For network embedding learning, GAEs learn the feature representations of each node by reconstructing graph structural information, such as the graph adjacency matrix (Kipf & Welling, 2016) and the positive pointwise mutual information (PPMI) matrix (Cao et al., 2016; Wang et al., 2016). For graph generation, some methods generate nodes and edges of a graph alternately (You et al., 2018), while other methods output an entire graph (Simonovsky & Komodakis, 2018; Ma et al., 2018; De Cao & Kipf, 2018). ",
152
+ "bbox": [
153
+ 174,
154
+ 583,
155
+ 825,
156
+ 708
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Graph Contrastive Learning. An important paradigm called contrastive learning aims to train an encoder to be contrastive between the representations of positive samples and negative samples. Recent contrastive learning frameworks can be divided into two categories (Liu et al., 2020): context-instance contrast and context-context contrast. Context-instance contrast focuses on modeling the relationships between the local feature of a sample and its global context representation. Deep InfoMax (DIM) (Hjelm et al., 2018) first proposes to maximize the mutual information between a local patch and its global context through a contrastive learning task. Deep Graph InfoMax (DGI) (Velickovic et al., 2019) proposes to learn node-level feature representation by extending DIM to graph-structured data, while InfoGraph (Sun et al., 2020a) aims to use mutual information maximization for unsupervised representation learning on entire graphs. Peng et al. (2020) propose a Graphical Mutual Information (GMI) approach to maximize the mutual information of both features and edges between inputs and outputs. In contrast to context-instance methods, contextcontext contrast studies the relationships between the global representations of different samples. M3S (Sun et al., 2020b) adopts a self-supervised pre-training paradigm as in DeepCluster (Caron et al., 2018) for better semi-supervised prediction in GCNNs. Graph Contrastive Coding (GCC) ",
163
+ "bbox": [
164
+ 174,
165
+ 715,
166
+ 825,
167
+ 924
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "image",
173
+ "img_path": "images/cbc8db40326b530c55230ef423a1f620241001c32f6e5f21d94a80fd4281a98d.jpg",
174
+ "image_caption": [
175
+ "Figure 1: An example of graphs before and after topology transformations. "
176
+ ],
177
+ "image_footnote": [],
178
+ "bbox": [
179
+ 186,
180
+ 98,
181
+ 807,
182
+ 251
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "(Qiu et al., 2020) designs the pre-training task as subgraph instance discrimination in and across networks to empower graph neural networks to learn the intrinsic structural representations. ",
189
+ "bbox": [
190
+ 173,
191
+ 279,
192
+ 821,
193
+ 308
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Transformation Equivariant Representation Learning. Many approaches have sought to learn transformation equivariant representations. Learning transformation equivariant representations has been advocated in Hinton’s seminal work on learning transformation capsules. Following this, a variety of approaches have been proposed to learn transformation equivariant representations (Gens & Domingos, 2014; Dieleman et al., 2015; 2016; Cohen & Welling, 2016; Lenssen et al., 2018). To generalize to generic transformations, Zhang et al. (2019) propose to learn unsupervised feature representations via Auto-Encoding Transformations (AET) by estimating transformations from the learned feature representations of both the original and transformed images, while Qi et al. (2019a) extend AET from an information-theoretic perspective by maximizing the lower bound of mutual information between transformations and representations. Wang et al. (2020) extend the AET to Generative Adversarial Networks (GANs) for unsupervised image synthesis and representation learning. Gao et al. (2020) introduce the GraphTER model that extends AET to graph-structured data, which is formalized by auto-encoding node-wise transformations in an unsupervised manner. de Haan et al. (2020) propose Gauge Equivariant Mesh CNNs which generalize GCNNs to apply anisotropic gauge equivariant kernels. Fuchs et al. (2020) introduce a self-attention mechanism specifically for 3D point cloud data, which adheres to equivariance constraints, improving robustness to nuisance transformations. ",
200
+ "bbox": [
201
+ 173,
202
+ 314,
203
+ 825,
204
+ 550
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "3 METHOD ",
211
+ "text_level": 1,
212
+ "bbox": [
213
+ 176,
214
+ 560,
215
+ 282,
216
+ 575
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "3.1 PRELIMINARY ",
223
+ "text_level": 1,
224
+ "bbox": [
225
+ 174,
226
+ 579,
227
+ 313,
228
+ 592
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "We consider an undirected graph $\\mathcal { G } = \\{ \\mathcal { V } , \\mathcal { E } , \\mathbf { A } \\}$ composed of a node set $\\nu$ of cardinality $| \\nu | = N$ , an edge set $\\mathcal { E }$ connecting nodes of cardinality $| { \\mathcal { E } } | = M$ . $\\mathbf { A }$ is a real symmetric $N \\times N$ matrix that encodes the graph structure, where $a _ { i , j } = 1$ if there exists an edge $( i , j )$ between nodes $i$ and $j$ , and $a _ { i , j } = 0$ otherwise. Graph signal refers to data that reside on the nodes of a graph $\\mathcal { G }$ , denoted by $\\mathbf { X } \\in \\mathbb { R } ^ { N \\times C }$ with the $i$ -th row representing the $C$ -dimensional graph signal on the $i$ -th node of $\\nu$ . ",
235
+ "bbox": [
236
+ 173,
237
+ 598,
238
+ 825,
239
+ 671
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "3.2 TOPOLOGY TRANSFORMATION ",
246
+ "text_level": 1,
247
+ "bbox": [
248
+ 176,
249
+ 684,
250
+ 429,
251
+ 698
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "We define the topology transformation $\\mathbf { t }$ as adding or removing edges from the original edge set $\\mathcal { E }$ in graph $\\mathcal { G }$ . This can be done by sampling, i.i.d., a switch parameter $\\sigma _ { i , j }$ as in (Velickovic et al., 2019), which determines whether to modify edge $( i , j )$ in the adjacency matrix. Assuming a Bernoulli distribution $B ( p )$ , where $p$ denotes the probability of each edge being modified, we draw a random matrix $\\Sigma = \\{ \\bar { \\sigma _ { i , j } } \\} _ { N \\times N }$ from $B ( p )$ , i.e., $\\Sigma \\sim B ( p )$ . We then acquire the perturbed adjacency matrix as ",
258
+ "bbox": [
259
+ 173,
260
+ 704,
261
+ 825,
262
+ 786
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "equation",
268
+ "img_path": "images/9bff49dc4052586d2282dcbfcece3097e484771c86359439bf3fc3ffe5a0d78d.jpg",
269
+ "text": "$$\n\\widetilde { \\mathbf { A } } = \\mathbf { A } \\oplus \\Sigma ,\n$$",
270
+ "text_format": "latex",
271
+ "bbox": [
272
+ 452,
273
+ 784,
274
+ 542,
275
+ 803
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "where $\\oplus$ is the exclusive OR (XOR) operation. This strategy produces a transformed graph through the topology transformation $\\mathbf { t }$ , i.e., $\\overset { \\sim } { \\mathbf { A } } = \\mathbf { t } ( \\mathbf { A } )$ . Here, the edge perturbation probability of $p = 0$ corresponds to a non-transformed adjacency matrix, which is a special case of an identity transformation to A. ",
282
+ "bbox": [
283
+ 174,
284
+ 805,
285
+ 825,
286
+ 864
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "The transformed adjacency matrix $\\widetilde { \\bf A }$ can also be written as the sum of the original adjacency matrix A and a topology perturbation matrix $\\Delta \\mathbf { A }$ : ",
293
+ "bbox": [
294
+ 174,
295
+ 869,
296
+ 823,
297
+ 900
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "equation",
303
+ "img_path": "images/b01edf601dcf3a9289d61ce1878e2726a175425873e011f803b7935d7311bfa7.jpg",
304
+ "text": "$$\n\\begin{array} { r } { \\widetilde { \\bf A } = { \\bf A } + \\Delta { \\bf A } , } \\end{array}\n$$",
305
+ "text_format": "latex",
306
+ "bbox": [
307
+ 446,
308
+ 905,
309
+ 552,
310
+ 924
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "where $\\Delta \\mathbf { A } = \\{ \\delta a _ { i , j } \\} _ { N \\times N }$ encodes the perturbation of edges, with $\\delta a _ { i , j } \\in \\{ - 1 , 0 , 1 \\}$ . As shown in Fig. 1, when $\\delta a _ { i , j } = 0$ , the edge between node $i$ and node $j$ keeps unchanged (i.e., black solid lines); when $\\delta a _ { i , j } = - 1$ or 1, it means removing (i.e., orange dotted lines) or adding (i.e., blue solid lines) the edge between node $i$ and node $j$ , respectively. ",
317
+ "bbox": [
318
+ 173,
319
+ 102,
320
+ 825,
321
+ 160
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "3.3 THE FORMULATION OF TOPOTER ",
328
+ "text_level": 1,
329
+ "bbox": [
330
+ 174,
331
+ 171,
332
+ 449,
333
+ 186
334
+ ],
335
+ "page_idx": 3
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "Definition 1 Given a pair of graph signal and adjacency matrix $( \\mathbf { X } , \\mathbf { A } )$ , and a pair of graph signal and transformed adjacency matrix $( \\mathbf { X } , { \\widetilde { \\mathbf { A } } } )$ by a topology transformation $\\mathbf { t } ( \\cdot )$ , a function $E ( \\cdot )$ is transformation equivariant if it satisfies ",
340
+ "bbox": [
341
+ 173,
342
+ 193,
343
+ 825,
344
+ 239
345
+ ],
346
+ "page_idx": 3
347
+ },
348
+ {
349
+ "type": "equation",
350
+ "img_path": "images/3b0dce72b4daca57905e5cc48c397f919d289cc20246ce1655b00e0ce87bc006.jpg",
351
+ "text": "$$\nE ( \\mathbf { X } , { \\widetilde { \\mathbf { A } } } ) = E \\left( \\mathbf { X } , \\mathbf { t } ( \\mathbf { A } ) \\right) = \\rho ( \\mathbf { t } ) \\left[ E ( \\mathbf { X } , \\mathbf { A } ) \\right] ,\n$$",
352
+ "text_format": "latex",
353
+ "bbox": [
354
+ 348,
355
+ 244,
356
+ 648,
357
+ 265
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "where $\\rho ( \\mathbf t ) [ \\cdot ]$ is a homomorphism of transformation t in the representation space. ",
364
+ "bbox": [
365
+ 174,
366
+ 270,
367
+ 705,
368
+ 285
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "Let us denote $\\mathbf { H } = E ( \\mathbf { X } , \\mathbf { A } )$ , and $\\widetilde { \\mathbf { H } } = E ( \\mathbf { X } , \\widetilde { \\mathbf { A } } )$ . We seek to learn an encoder $E : ( { \\bf X } , { \\bf A } ) \\mapsto$ $\\mathbf { H } ; ( \\mathbf { X } , \\widetilde { \\mathbf { A } } ) \\mapsto \\widetilde { \\mathbf { H } }$ that maps both the original and transformed sample to representations $\\{ \\mathbf { H } , \\widetilde { \\mathbf { H } } \\}$ equivariant to the sampled transformation $\\mathbf { t }$ , whose information can thus be inferred from the representations via a decoder $D : ( \\widetilde { \\mathbf { H } } , \\mathbf { H } ) \\mapsto \\widehat { \\Delta \\mathbf { A } }$ as much as possible. From an information-theoretic perspective, this requires $( \\mathbf { H } , \\Delta \\mathbf { A } )$ should jointly contain all necessary information about $\\widetilde { \\bf H }$ . ",
375
+ "bbox": [
376
+ 173,
377
+ 296,
378
+ 825,
379
+ 380
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "Then a natural choice to formalize the topology transformation equivariance is the mutual information $I ( \\mathbf { H } , \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } )$ between $( \\mathbf { H } , \\Delta \\mathbf { A } )$ and $\\widetilde { \\bf H }$ . The larger the mutual information is, the more knowledge about $\\Delta \\mathbf { A }$ can be inferred from the representations $\\{ \\mathbf { H } , \\widetilde { \\mathbf { H } } \\}$ . Hence, we propose to maximize the mutual information to learn the topology transformation equivariant representations as follows: ",
386
+ "bbox": [
387
+ 173,
388
+ 385,
389
+ 825,
390
+ 459
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "equation",
396
+ "img_path": "images/9af03e27326d2885ad08b1cce9a358f19adb6dcfb5bc724e1553dcb77a8e910c.jpg",
397
+ "text": "$$\n\\operatorname* { m a x } _ { \\theta } I ( \\mathbf { H } , \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } ) ,\n$$",
398
+ "text_format": "latex",
399
+ "bbox": [
400
+ 429,
401
+ 455,
402
+ 568,
403
+ 481
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "where $\\theta$ denotes the parameters of the auto-encoder network. ",
410
+ "bbox": [
411
+ 173,
412
+ 484,
413
+ 573,
414
+ 500
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "Nevertheless, it is difficult to compute the mutual information directly. Instead, we derive that maximizing the mutual information can be relaxed to minimizing the cross entropy, as described in the following theorem. ",
421
+ "bbox": [
422
+ 173,
423
+ 505,
424
+ 825,
425
+ 547
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "Theorem 1 The maximization of the mutual information $I ( \\mathbf { H } , \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } )$ can be relaxed to the minimization of the cross entropy $H ( p \\parallel q )$ between the probability distributions $p ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ and $q ( \\widehat { \\Delta \\mathbf { A } } | \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ : ",
432
+ "bbox": [
433
+ 173,
434
+ 560,
435
+ 825,
436
+ 611
437
+ ],
438
+ "page_idx": 3
439
+ },
440
+ {
441
+ "type": "equation",
442
+ "img_path": "images/b0a79f4c3a6834ecd72fe53756e6e7cac8b7f2aebe03d5bb8149ca6a4a870cf2.jpg",
443
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta } ~ H \\left( p ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } ) \\parallel q ( \\widehat { \\Delta \\mathbf { A } } | \\widetilde { \\mathbf { H } } , \\mathbf { H } ) \\right) \\triangleq - \\underset { p ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } ) } { \\mathbb { E } } \\log q ( \\widehat { \\Delta \\mathbf { A } } | \\widetilde { \\mathbf { H } } , \\mathbf { H } ) .\n$$",
444
+ "text_format": "latex",
445
+ "bbox": [
446
+ 250,
447
+ 617,
448
+ 750,
449
+ 650
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "Proof By using the chain rule of mutual information, we have ",
456
+ "bbox": [
457
+ 174,
458
+ 662,
459
+ 594,
460
+ 678
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "equation",
466
+ "img_path": "images/2b3d75bef2f8d101fcd97203c64c1feb87d6f00559375579da7030f83ce331d7.jpg",
467
+ "text": "$$\nI ( \\mathbf { H } , \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } ) = I ( \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } | \\mathbf { H } ) + I ( \\mathbf { H } ; \\widetilde { \\mathbf { H } } ) \\ge I ( \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } | \\mathbf { H } ) .\n$$",
468
+ "text_format": "latex",
469
+ "bbox": [
470
+ 297,
471
+ 683,
472
+ 699,
473
+ 704
474
+ ],
475
+ "page_idx": 3
476
+ },
477
+ {
478
+ "type": "text",
479
+ "text": "Thus the mutual information $I ( \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } | \\mathbf { H } )$ is the lower bound of the mutual information $I ( \\mathbf { H } , \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } )$ that attains its minimum value when $I ( \\mathbf { H } ; \\widetilde { \\mathbf { H } } ) = 0$ . ",
480
+ "bbox": [
481
+ 173,
482
+ 710,
483
+ 823,
484
+ 744
485
+ ],
486
+ "page_idx": 3
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "Therefore, we relax the objective to maximizing the lower bound mutual information $I ( \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } | \\mathbf { H } )$ between the transformed representation $\\widetilde { \\bf H }$ and the topology transformation $\\Delta \\mathbf { A }$ : ",
491
+ "bbox": [
492
+ 171,
493
+ 752,
494
+ 823,
495
+ 785
496
+ ],
497
+ "page_idx": 3
498
+ },
499
+ {
500
+ "type": "equation",
501
+ "img_path": "images/10376528db74dd81e9ef9e5d7595949f77a91d76fcb4b602ff547da7ccb32d7a.jpg",
502
+ "text": "$$\nI ( \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } | \\mathbf { H } ) = H ( \\Delta \\mathbf { A } | \\mathbf { H } ) - H ( \\Delta \\mathbf { A } | \\widetilde { \\mathbf { H } } , \\mathbf { H } ) ,\n$$",
503
+ "text_format": "latex",
504
+ "bbox": [
505
+ 343,
506
+ 790,
507
+ 653,
508
+ 810
509
+ ],
510
+ "page_idx": 3
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "where $H ( \\cdot )$ denotes the conditional entropy. Since $\\Delta \\mathbf { A }$ and $\\mathbf { H }$ are independent, we have $H ( \\Delta \\mathbf { A } | \\mathbf { H } ) = H ( \\Delta \\mathbf { A } )$ . Hence, maximizing $I ( \\Delta \\mathbf { A } ; \\widetilde { \\mathbf { H } } | \\mathbf { H } )$ becomes ",
515
+ "bbox": [
516
+ 176,
517
+ 815,
518
+ 823,
519
+ 848
520
+ ],
521
+ "page_idx": 3
522
+ },
523
+ {
524
+ "type": "equation",
525
+ "img_path": "images/0d1e734d031a119dc2d65b590aaeca7809f5dfe654792a7ae3c5a3d5a30803ec.jpg",
526
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta } \\ H ( \\Delta \\mathbf { A } | \\widetilde { \\mathbf { H } } , \\mathbf { H } ) .\n$$",
527
+ "text_format": "latex",
528
+ "bbox": [
529
+ 429,
530
+ 853,
531
+ 570,
532
+ 878
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "According to the chain rule of conditional entropy, we have ",
539
+ "bbox": [
540
+ 174,
541
+ 885,
542
+ 565,
543
+ 900
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "equation",
549
+ "img_path": "images/a150e11d4aa26fbfa5e4a77344a33da135218c2e8aa4eedb07aa991456ae3d7d.jpg",
550
+ "text": "$$\nH ( \\Delta \\mathbf { A } | \\widetilde { \\mathbf { H } } , \\mathbf { H } ) = H ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } ) - H ( \\widetilde { \\mathbf { H } } , \\mathbf { H } ) \\leq H ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } ) ,\n$$",
551
+ "text_format": "latex",
552
+ "bbox": [
553
+ 282,
554
+ 905,
555
+ 712,
556
+ 925
557
+ ],
558
+ "page_idx": 3
559
+ },
560
+ {
561
+ "type": "image",
562
+ "img_path": "images/d71ce9251b65e6c86f27cf303680468a96f1e7c79d30276ae320dce1ce6de06d.jpg",
563
+ "image_caption": [
564
+ "Figure 2: The architecture of the proposed TopoTER. "
565
+ ],
566
+ "image_footnote": [],
567
+ "bbox": [
568
+ 173,
569
+ 101,
570
+ 823,
571
+ 234
572
+ ],
573
+ "page_idx": 4
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "where the conditional entropy ${ \\cal H } ( \\Delta { \\bf A } | \\widetilde { \\bf H } , { \\bf H } )$ is upper bounded by the joint entropy $H ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ . Thus, the minimization problem in Eq. (6) becomes ",
578
+ "bbox": [
579
+ 173,
580
+ 271,
581
+ 823,
582
+ 303
583
+ ],
584
+ "page_idx": 4
585
+ },
586
+ {
587
+ "type": "equation",
588
+ "img_path": "images/3429883215ef24124d03542bc6b1b24bbabc60f3fb3997088919abe1db05e75c.jpg",
589
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta } \\ H ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } ) .\n$$",
590
+ "text_format": "latex",
591
+ "bbox": [
592
+ 428,
593
+ 305,
594
+ 571,
595
+ 330
596
+ ],
597
+ "page_idx": 4
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "We next introduce a conditional probability distribution $q ( \\widehat { \\Delta \\mathbf { A } } | \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ to approximate the intractable posterior $\\tilde { q } ( \\Delta \\mathbf { A } | \\tilde { \\mathbf { H } } , \\mathbf { H } )$ with an estimated $\\widehat { \\Delta \\mathbf { A } }$ . According to the definition of the Kullback-Leibler divergence, we have ",
602
+ "bbox": [
603
+ 173,
604
+ 337,
605
+ 826,
606
+ 385
607
+ ],
608
+ "page_idx": 4
609
+ },
610
+ {
611
+ "type": "equation",
612
+ "img_path": "images/efd6042a5b11a3ace01f3a5527c7c45c0076a3f4cb507780fc8759f8d4979a37.jpg",
613
+ "text": "$$\nH ( \\Delta \\mathbf { A } , { \\widetilde { \\mathbf { H } } } , \\mathbf { H } ) = H ( p ) = H ( p \\parallel q ) - D _ { \\mathrm { K L } } ( p \\parallel q ) \\leq H ( p \\parallel q ) ,\n$$",
614
+ "text_format": "latex",
615
+ "bbox": [
616
+ 285,
617
+ 388,
618
+ 710,
619
+ 409
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "where $D _ { \\mathrm { K L } } ( p \\parallel q )$ denotes the Kullback-Leibler divergence of $p$ and $q$ that is non-negative, and $H ( p \\parallel q )$ is the cross entropy between $p$ and $q$ . Thus, Eq. (6) is converted to minimizing the cross entropy as the upper bound: ",
626
+ "bbox": [
627
+ 174,
628
+ 412,
629
+ 825,
630
+ 454
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "equation",
636
+ "img_path": "images/051f70b53654bac401725eb2b9d94815a6e94dad6ac6f3282772682c7f0d5435.jpg",
637
+ "text": "$$\n\\operatorname* { m i n } _ { \\theta } ~ H \\left( p ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } ) \\parallel q ( \\widehat { \\Delta \\mathbf { A } } | \\widetilde { \\mathbf { H } } , \\mathbf { H } ) \\right) \\triangleq - \\underset { p ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } ) } { \\mathbb { E } } \\log q ( \\widehat { \\Delta \\mathbf { A } } | \\widetilde { \\mathbf { H } } , \\mathbf { H } ) .\n$$",
638
+ "text_format": "latex",
639
+ "bbox": [
640
+ 250,
641
+ 458,
642
+ 750,
643
+ 491
644
+ ],
645
+ "page_idx": 4
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "Hence, we relax the maximization problem in Eq. (4) to the optimization in Eq. (5). ",
650
+ "bbox": [
651
+ 174,
652
+ 494,
653
+ 720,
654
+ 511
655
+ ],
656
+ "page_idx": 4
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "Based on Theorem 1, we train the decoder $D$ to learn the distribution $q ( \\widehat { \\Delta \\mathbf { A } } | \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ so as to estimate the topology transformation $\\widehat { \\Delta \\mathbf { A } }$ from the encoded $\\{ \\widetilde { \\mathbf { H } } , \\mathbf { H } \\}$ , where the input pairs of original and transformed graph representations $\\{ \\widetilde { \\mathbf { H } } , \\mathbf { H } \\}$ as well as the ground truth target $\\Delta \\mathbf { A }$ can be sampled tractably from the factorization of $p ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } ) \\triangleq p ( \\Delta \\mathbf { A } ) p ( \\mathbf { H } ) p ( \\widetilde { \\mathbf { H } } | \\Delta \\mathbf { A } , \\mathbf { H } )$ . This allows us to minimize the cross entropy between $p ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ and $q ( \\widehat { \\Delta \\mathbf { A } } | \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ as in (5) with the training triplets $( \\widetilde { \\mathbf { H } } , \\mathbf { H } ; \\Delta \\mathbf { A } )$ drawn from the tractable factorization of $p ( \\Delta \\mathbf { A } , \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ . Hence, we formulate the TopoTER as the joint optimization of the representation encoder $E$ and the transformation decoder $D$ . ",
661
+ "bbox": [
662
+ 173,
663
+ 517,
664
+ 825,
665
+ 645
666
+ ],
667
+ "page_idx": 4
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "3.4 THE ALGORITHM ",
672
+ "text_level": 1,
673
+ "bbox": [
674
+ 174,
675
+ 657,
676
+ 338,
677
+ 672
678
+ ],
679
+ "page_idx": 4
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "We design a graph-convolutional auto-encoder network for the TopoTER learning, as illustrated in Fig. 2. Given a graph signal $\\mathbf { X }$ associated with a graph $\\mathcal { G } = \\{ \\bar { \\nu _ { , } } \\mathcal { E } , \\mathbf { A } \\}$ , the proposed unsupervised learning algorithm for the TopoTER consists of three steps: 1) topology transformation, which samples and perturbs some edges from $\\mathcal { E }$ to acquire a transformed adjacency matrix $\\widetilde { \\bf A }$ ; 2) representation encoding, which extracts the feature representations of graph signals before and after the topology transformation; 3) transformation decoding, which estimates the topology transformation parameters from the learned feature representations. We elaborate on the three steps as follows. ",
684
+ "bbox": [
685
+ 173,
686
+ 678,
687
+ 825,
688
+ 780
689
+ ],
690
+ "page_idx": 4
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "Topology Transformation. We randomly sample a subset of edges from $\\mathcal { E }$ for topology perturbation—adding or removing edges, which not only enables to characterize local graph structures at various scales, but also reduces the number of edge transformation parameters to estimate for computational efficiency. In practice, in each iteration of training, we sample all the node pairs with connected edges $\\mathbf { S } _ { 1 }$ , and randomly sample a subset of disconnected node pairs $\\mathbf { S } _ { 0 }$ , i.e., ",
695
+ "bbox": [
696
+ 173,
697
+ 785,
698
+ 825,
699
+ 856
700
+ ],
701
+ "page_idx": 4
702
+ },
703
+ {
704
+ "type": "equation",
705
+ "img_path": "images/3fde333a6378b81ff90ba0b88dcb42c587a1509cfe53be16456d68a12b8cf1d1.jpg",
706
+ "text": "$$\n\\begin{array} { r } { \\mathbf { S } _ { 0 } = \\left\\{ ( i , j ) \\big | a _ { i , j } = 0 \\right\\} , \\mathbf { S } _ { 1 } = \\left\\{ ( i , j ) \\big | a _ { i , j } = 1 \\right\\} , } \\end{array}\n$$",
707
+ "text_format": "latex",
708
+ "bbox": [
709
+ 336,
710
+ 859,
711
+ 658,
712
+ 878
713
+ ],
714
+ "page_idx": 4
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "where $| \\mathbf { S } _ { 0 } | = | \\mathbf { S } _ { 1 } | = M$ . Next, we randomly split $\\mathbf { S } _ { 0 }$ and $\\mathbf { S } _ { 1 }$ into two disjoint sets, respectively, i.e., ",
719
+ "bbox": [
720
+ 179,
721
+ 882,
722
+ 821,
723
+ 897
724
+ ],
725
+ "page_idx": 4
726
+ },
727
+ {
728
+ "type": "equation",
729
+ "img_path": "images/8d881a09fe87c93ec07d7271a5738cac108b96394b044da79fa76755891d4836.jpg",
730
+ "text": "$$\n\\mathbf { S } _ { i } = \\left\\{ \\mathbf { S } _ { i } ^ { ( 1 ) } , \\mathbf { S } _ { i } ^ { ( 2 ) } \\ \\big \\vert \\ \\mathbf { S } _ { i } ^ { ( 1 ) } \\cap \\mathbf { S } _ { i } ^ { ( 2 ) } = \\mathcal { Q } , \\mathbf { S } _ { i } ^ { ( 1 ) } \\cup \\mathbf { S } _ { i } ^ { ( 2 ) } = \\mathbf { S } _ { i } , \\big \\vert \\mathbf { S } _ { i } ^ { ( 1 ) } \\big \\vert = r \\cdot \\big \\vert \\mathbf { S } _ { i } \\big \\vert \\right\\} , i \\in \\{ 0 , 1 \\} ,\n$$",
731
+ "text_format": "latex",
732
+ "bbox": [
733
+ 218,
734
+ 901,
735
+ 776,
736
+ 929
737
+ ],
738
+ "page_idx": 4
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "where $r$ is the edge perturbation rate. Then, for each node pair $( i , j )$ in $\\mathbf { S } _ { 0 } ^ { ( 1 ) }$ and $\\mathbf { S } _ { 1 } ^ { ( 1 ) }$ , we flip the corresponding entry in the original graph adjacency matrix. That is, if $a _ { i , j } = 0$ , then we set $\\tilde { a } _ { i , j } = 1$ ; otherwise, we set $\\tilde { a } _ { i , j } = 0$ . For each node pair $( i , j )$ in $\\mathbf { S } _ { 0 } ^ { ( 2 ) }$ and $\\mathbf { S } _ { 1 } ^ { ( 2 ) }$ , we keep the original connectivities unchanged, i.e., $\\tilde { a } _ { i , j } = a _ { i , j }$ . ",
743
+ "bbox": [
744
+ 173,
745
+ 102,
746
+ 825,
747
+ 166
748
+ ],
749
+ "page_idx": 5
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "This leads to the transformed adjacency matrix $\\widetilde { \\bf A }$ , as well as the sampled transformation parameters by accessing $\\Delta \\mathbf { A }$ at position $( i , j )$ from $\\mathbf { S } _ { 0 }$ and $\\mathbf { S } _ { 1 }$ . Also, we can category the sampled topology transformation parameters into four types: ",
754
+ "bbox": [
755
+ 173,
756
+ 174,
757
+ 826,
758
+ 218
759
+ ],
760
+ "page_idx": 5
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "1. add an edge to a disconnected node pair, i.e., $\\{ \\mathbf { t } : a _ { i , j } = 0 \\mapsto \\tilde { a } _ { i , j } = 1 , ( i , j ) \\in \\mathbf { S } _ { 0 } ^ { ( 1 ) } \\} ;$ ; \n2. delete the edge between a connected node pair, i.e., $\\{ \\mathbf { t } : a _ { i , j } = 1 \\mapsto \\tilde { a } _ { i , j } = 0 , ( i , j ) \\in \\mathbf { S } _ { 1 } ^ { ( 1 ) } \\}$ ; \n3. keep the disconnection between node pairs in $\\mathbf { S } _ { 0 } ^ { ( 2 ) }$ , i.e., $\\{ \\mathbf { t } : a _ { i , j } = 0 \\mapsto \\tilde { a } _ { i , j } = 0 , ( i , j ) \\in \\mathbf { S } _ { 0 } ^ { ( 2 ) } \\} ;$ \n4. keep the connection between node pairs in $\\mathbf { S } _ { 1 } ^ { ( 2 ) }$ , i.e., $\\{ \\mathbf { t } : a _ { i , j } = 1 \\mapsto \\tilde { a } _ { i , j } = 1 , ( i , j ) \\in \\mathbf { S } _ { 1 } ^ { ( 2 ) } \\}$ . ",
765
+ "bbox": [
766
+ 173,
767
+ 228,
768
+ 823,
769
+ 314
770
+ ],
771
+ "page_idx": 5
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "Thus, we cast the problem of estimating transformation parameters in $\\Delta \\mathbf { A }$ from $( \\widetilde { \\mathbf { H } } , \\mathbf { H } )$ as the classification problem of the transformation parameter types. The percentage of these four types is $r : r : ( 1 - r ) : ( 1 - r )$ . ",
776
+ "bbox": [
777
+ 173,
778
+ 324,
779
+ 825,
780
+ 367
781
+ ],
782
+ "page_idx": 5
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "Representation Encoder. We train an encoder $E : ( \\mathbf { X } , \\mathbf { A } ) \\mapsto E ( \\mathbf { X } , \\mathbf { A } )$ to encode the feature representations of each node in the graph. As demonstrated in Fig. 2, we leverage GCNNs with shared weights to extract feature representations of each node in the graph signal. Taking the GCN (Kipf & Welling, 2017) as an example, the graph convolution in the GCN is defined as ",
787
+ "bbox": [
788
+ 173,
789
+ 373,
790
+ 825,
791
+ 430
792
+ ],
793
+ "page_idx": 5
794
+ },
795
+ {
796
+ "type": "equation",
797
+ "img_path": "images/3eb3dc60dfb1627d750589fb7ff3b681e88012631b8239f9b759c661a258a31e.jpg",
798
+ "text": "$$\n\\mathbf { H } = E ( \\mathbf { X } , \\mathbf { A } ) = \\mathbf { D } ^ { - { \\frac { 1 } { 2 } } } ( \\mathbf { A } + \\mathbf { I } ) \\mathbf { D } ^ { - { \\frac { 1 } { 2 } } } \\mathbf { X } \\mathbf { W } ,\n$$",
799
+ "text_format": "latex",
800
+ "bbox": [
801
+ 354,
802
+ 433,
803
+ 640,
804
+ 453
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "where $\\mathbf { D }$ is the degree matrix of $\\mathbf { A } + \\mathbf { I }$ , $\\mathbf { W } \\in \\mathbb { R } ^ { C \\times F }$ is a learnable parameter matrix, and $\\mathbf { H } =$ $[ \\mathbf { h } _ { 1 } , . . . , \\mathbf { h } _ { N } ] ^ { \\top } \\in \\mathbb { R } ^ { \\breve { N } \\times F }$ denotes the node-wise feature matrix with $F$ output channels. Similarly, the node feature of the transformed counterpart is as follows with the shared weights $\\mathbf { W }$ . ",
811
+ "bbox": [
812
+ 174,
813
+ 454,
814
+ 825,
815
+ 497
816
+ ],
817
+ "page_idx": 5
818
+ },
819
+ {
820
+ "type": "equation",
821
+ "img_path": "images/15e07a3fd690b6756aab1bd450fd684d9303d83defb0abc46fb87e0c6dfa3238.jpg",
822
+ "text": "$$\n\\begin{array} { r } { \\widetilde { \\mathbf { H } } = E ( \\mathbf { X } , \\widetilde { \\mathbf { A } } ) = \\widetilde { \\mathbf { D } } ^ { - \\frac { 1 } { 2 } } ( \\widetilde { \\mathbf { A } } + \\mathbf { I } ) \\widetilde { \\mathbf { D } } ^ { - \\frac { 1 } { 2 } } \\mathbf { X } \\mathbf { W } \\quad } \\\\ { = \\widetilde { \\mathbf { D } } ^ { - \\frac { 1 } { 2 } } ( \\mathbf { A } + \\mathbf { I } ) \\widetilde { \\mathbf { D } } ^ { - \\frac { 1 } { 2 } } \\mathbf { X } \\mathbf { W } + \\widetilde { \\mathbf { D } } ^ { - \\frac { 1 } { 2 } } \\Delta \\mathbf { A } \\widetilde { \\mathbf { D } } ^ { - \\frac { 1 } { 2 } } \\mathbf { X } \\mathbf { W } . } \\end{array}\n$$",
823
+ "text_format": "latex",
824
+ "bbox": [
825
+ 281,
826
+ 498,
827
+ 717,
828
+ 544
829
+ ],
830
+ "page_idx": 5
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "We thus acquire the feature representations $\\mathbf { H }$ and $\\widetilde { \\bf H }$ of graph signals before and after topology transformations. ",
835
+ "bbox": [
836
+ 174,
837
+ 547,
838
+ 823,
839
+ 577
840
+ ],
841
+ "page_idx": 5
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "Transformation Decoder. Comparing Eq. (10) and Eq. (11), the prominent difference between $\\widetilde { \\bf H }$ and $\\mathbf { H }$ lies in the second term of Eq. (11) featuring $\\Delta \\mathbf { A }$ . This enables us to train a decoder $D : ( \\widetilde { \\mathbf { H } } , \\mathbf { H } ) \\mapsto \\widehat { \\Delta \\mathbf { A } }$ to estimate the topology transformation from the joint representations before and after transformation. We first take the difference between the extracted feature representations before and after transformations along the feature channel, ",
846
+ "bbox": [
847
+ 173,
848
+ 583,
849
+ 825,
850
+ 659
851
+ ],
852
+ "page_idx": 5
853
+ },
854
+ {
855
+ "type": "equation",
856
+ "img_path": "images/c4b7120f110397b8b4b0a8ffd8ca736b0584777c7d718907f8a0a1ed76f0e1fb.jpg",
857
+ "text": "$$\n\\Delta { \\bf H } = \\widetilde { { \\bf H } } - { \\bf H } = [ \\delta { \\bf h } _ { 1 } , . . . , \\delta { \\bf h } _ { N } ] ^ { \\top } \\in \\mathbb { R } ^ { N \\times F } .\n$$",
858
+ "text_format": "latex",
859
+ "bbox": [
860
+ 349,
861
+ 661,
862
+ 648,
863
+ 681
864
+ ],
865
+ "page_idx": 5
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "Thus, we can predict the topology transformation between node $i$ and node $j$ through the node-wise feature difference $\\Delta \\mathbf { H }$ by constructing the edge representation as ",
870
+ "bbox": [
871
+ 171,
872
+ 684,
873
+ 825,
874
+ 712
875
+ ],
876
+ "page_idx": 5
877
+ },
878
+ {
879
+ "type": "equation",
880
+ "img_path": "images/50d706e6feadf2d41c6a21831ee25d4ae0d1539d1ea89db231c717d46395ffca.jpg",
881
+ "text": "$$\n\\mathbf { e } _ { i , j } = \\frac { \\exp \\{ - ( \\delta \\mathbf { h } _ { i } - \\delta \\mathbf { h } _ { j } ) \\odot ( \\delta \\mathbf { h } _ { i } - \\delta \\mathbf { h } _ { j } ) \\} } { \\lVert \\exp \\{ - ( \\delta \\mathbf { h } _ { i } - \\delta \\mathbf { h } _ { j } ) \\odot ( \\delta \\mathbf { h } _ { i } - \\delta \\mathbf { h } _ { j } ) \\} \\rVert _ { 1 } } \\in \\mathbb { R } ^ { F } , \\quad \\forall ( i , j ) \\in \\mathbf { S } _ { 0 } \\cup \\mathbf { S } _ { 1 } ,\n$$",
882
+ "text_format": "latex",
883
+ "bbox": [
884
+ 246,
885
+ 714,
886
+ 750,
887
+ 750
888
+ ],
889
+ "page_idx": 5
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "where $\\odot$ denotes the Hadamard product of two vectors to capture the feature representation, and $\\| \\cdot \\| _ { 1 }$ is the $\\ell _ { 1 }$ -norm of a vector for normalization. The edge representation $\\mathbf { e } _ { i , j }$ of node $i$ and $j$ is then fed into several linear layers for the prediction of the topology transformation, ",
894
+ "bbox": [
895
+ 174,
896
+ 751,
897
+ 823,
898
+ 792
899
+ ],
900
+ "page_idx": 5
901
+ },
902
+ {
903
+ "type": "equation",
904
+ "img_path": "images/39fda4aa7c7575010340f05821e136deb9601cd0458a9e4de8a2046ec62621d7.jpg",
905
+ "text": "$$\n\\widehat { \\mathbf { y } } _ { i , j } = \\mathrm { s o f t m a x } \\left( \\mathrm { l i n e a r } ( \\mathbf { e } _ { i , j } ) \\right) , \\quad \\forall ( i , j ) \\in \\mathbf { S } _ { 0 } \\cup \\mathbf { S } _ { 1 } ,\n$$",
906
+ "text_format": "latex",
907
+ "bbox": [
908
+ 325,
909
+ 796,
910
+ 669,
911
+ 814
912
+ ],
913
+ "page_idx": 5
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "where softmax $( \\cdot )$ is an activation function. ",
918
+ "bbox": [
919
+ 176,
920
+ 815,
921
+ 457,
922
+ 830
923
+ ],
924
+ "page_idx": 5
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "According to Eq. (5), the entire auto-encoder network is trained by minimizing the cross entropy ",
929
+ "bbox": [
930
+ 171,
931
+ 837,
932
+ 803,
933
+ 852
934
+ ],
935
+ "page_idx": 5
936
+ },
937
+ {
938
+ "type": "equation",
939
+ "img_path": "images/cce336e7fb98d3a11c8e51af662f3e1d32abe9834e8e3c8506f9b08f2d1f5371.jpg",
940
+ "text": "$$\n\\mathcal { L } = - \\underset { ( i , j ) \\in { \\bf S } _ { 0 } \\cup { \\bf S } _ { 1 } } { \\mathbb { E } } \\sum _ { f = 0 } ^ { 3 } { \\bf y } _ { i , j } ^ { ( f ) } \\log \\widehat { \\bf y } _ { i , j } ^ { ( f ) } ,\n$$",
941
+ "text_format": "latex",
942
+ "bbox": [
943
+ 379,
944
+ 854,
945
+ 617,
946
+ 898
947
+ ],
948
+ "page_idx": 5
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "where $f$ denotes the transformation type $( f \\in \\{ 0 , 1 , 2 , 3 \\}$ ), and $\\mathbf { y }$ is the ground-truth binary indicator (0 or 1) for each transformation parameter type. ",
953
+ "bbox": [
954
+ 171,
955
+ 901,
956
+ 823,
957
+ 931
958
+ ],
959
+ "page_idx": 5
960
+ },
961
+ {
962
+ "type": "table",
963
+ "img_path": "images/cbcf0b2325d5d5f967be1a58405106323ea30412e098600ed31e86695bde6a04.jpg",
964
+ "table_caption": [
965
+ "Table 1: Node classification accuracies (with standard deviation) in percentage on three datasets. X, A, Y denote the input data, adjacency matrix and labels respectively. "
966
+ ],
967
+ "table_footnote": [],
968
+ "table_body": "<table><tr><td>Method</td><td>TrainingData</td><td>Cora</td><td>Citeseer</td><td>Pubmed</td></tr><tr><td colspan=\"5\">Semi-SupervisedMethods</td></tr><tr><td>GCN(Kipf&amp;Welling,2017)</td><td>X,A,Y</td><td>81.5</td><td>70.3</td><td>79.0</td></tr><tr><td>MoNet (Monti et al.,2017)</td><td>X,A,Y</td><td>81.7 ± 0.5</td><td>-</td><td>78.8± 0.3</td></tr><tr><td>GAT(Velickovic et al.,2018)</td><td>X,A,Y</td><td>83.0 ±0.7</td><td>72.5±0.7</td><td>79.0±0.3</td></tr><tr><td>SGC (Wu et al., 2019)</td><td>X,A,Y</td><td>81.0 ±0.0</td><td>71.9 ± 0.1</td><td>78.9 ± 0.0</td></tr><tr><td>GWNN (Xu et al.,2019a)</td><td>X,A,Y</td><td>82.8</td><td>71.7</td><td>79.1</td></tr><tr><td>MixHop (Abu-El-Haija et al., 2019)</td><td>X,A,Y</td><td>81.9 ± 0.4</td><td>71.4 ± 0.8</td><td>80.8±0.6</td></tr><tr><td>DFNet (Wijesinghe&amp; Wang,2019)</td><td>X,A,Y</td><td>85.2 ±0.5</td><td>74.2 ± 0.3</td><td>84.3 ± 0.4</td></tr><tr><td colspan=\"5\">Unsupervised Methods</td></tr><tr><td>RawFeatures(Velickovic et al.,2019)</td><td>X</td><td>47.9±0.4</td><td>49.3±0.2</td><td>69.1±0.3</td></tr><tr><td>DeepWalk (Perozzi et al.,2014)</td><td>A</td><td>67.2</td><td>43.2</td><td>65.3</td></tr><tr><td>DeepWalk + Features (Velickovic et al., 2019)</td><td>X,A</td><td>70.7 ± 0.6</td><td>51.4 ± 0.5</td><td>74.3 ± 0.9</td></tr><tr><td>GAE (Kipf &amp; Welling,2016)</td><td>X,A</td><td>80.9 ± 0.4</td><td>66.7±0.4</td><td>77.1 ±0.7</td></tr><tr><td>VGAE (Kipf &amp; Welling,2016)</td><td>X,A</td><td>80.0±0.2</td><td>64.1 ± 0.2</td><td>76.9 ± 0.1</td></tr><tr><td>DGI (Velickovic et al.,2019)</td><td>X,A</td><td>81.1 ± 0.1</td><td>71.4 ± 0.2</td><td>77.0± 0.2</td></tr><tr><td>GMI (Peng et al.,2020)</td><td>X,A</td><td>82.2 ±0.2</td><td>71.4± 0.5</td><td>78.5 ±0.1</td></tr><tr><td>TopoTER</td><td>X,A</td><td>83.7 ± 0.3</td><td>71.7 ± 0.5</td><td>79.1 ± 0.1</td></tr></table>",
969
+ "bbox": [
970
+ 215,
971
+ 140,
972
+ 781,
973
+ 327
974
+ ],
975
+ "page_idx": 6
976
+ },
977
+ {
978
+ "type": "table",
979
+ "img_path": "images/53bb015def137e7833fadc4fc8dcafef51e50f1da1fb2cce3284bf9d987e8d3f.jpg",
980
+ "table_caption": [
981
+ "Table 2: Model size comparison of DGI, GMI, and the proposed TopoTER "
982
+ ],
983
+ "table_footnote": [],
984
+ "table_body": "<table><tr><td>Model</td><td>DGI</td><td>GMI</td><td>TopoTER</td></tr><tr><td>No.of Parameters</td><td>996,354</td><td>1,730,052</td><td>736,260</td></tr></table>",
985
+ "bbox": [
986
+ 328,
987
+ 358,
988
+ 665,
989
+ 382
990
+ ],
991
+ "page_idx": 6
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "4 EXPERIMENTS ",
996
+ "text_level": 1,
997
+ "bbox": [
998
+ 174,
999
+ 400,
1000
+ 326,
1001
+ 415
1002
+ ],
1003
+ "page_idx": 6
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "4.1 NODE CLASSIFICATION ",
1008
+ "text_level": 1,
1009
+ "bbox": [
1010
+ 174,
1011
+ 425,
1012
+ 379,
1013
+ 439
1014
+ ],
1015
+ "page_idx": 6
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Datasets. We adopt three citation networks to evaluate our model: Cora, Citeseer, and Pubmed (Sen et al., 2008), where nodes correspond to documents and edges represent citations. We follow the standard train/test split in (Kipf & Welling, 2017) to conduct the experiments. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 452,
1023
+ 821,
1024
+ 494
1025
+ ],
1026
+ "page_idx": 6
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Implementation Details. In this task, the auto-encoder network is trained via Adam optimizer, and the learning rate is set to $1 0 ^ { - 4 }$ . We use the same early stopping strategy as DGI (Velickovic et al., 2019) on the observed training loss, with a patience of 20 epochs. We deploy one Simple Graph Convolution (SGC) layer (Wu et al., 2019) as our encoder, and the order of the adjacency matrix is set to 2, while we will study the order of the adjacency matrix in Appendix A. The LeakyReLU activation function with a negative slope of 0.1 is employed after the SGC layer. Similar to DGI (Velickovic et al., 2019), we set the output channel $F = 5 1 2$ for Cora and Citeseer dataset, and 256 for Pubmed dataset due to memory limitations. After the encoder, we use one linear layer to classify the transformation types. We set the edge perturbation rate in Eq. (9) as $r = \\{ 0 . 7 , 0 . 4 , 0 . 7 \\}$ for Cora, Citeseer, and Pubmed, respectively. The analysis of the edge perturbation rate will be presented in Appendix B. ",
1031
+ "bbox": [
1032
+ 173,
1033
+ 501,
1034
+ 825,
1035
+ 654
1036
+ ],
1037
+ "page_idx": 6
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "During the training procedure of the classifier, the SGC layer in the encoder is used to extract graph feature representations with the weights frozen. After the SGC layer, we apply one linear layer to map the features to the classification scores. ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 660,
1045
+ 825,
1046
+ 703
1047
+ ],
1048
+ "page_idx": 6
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Experimental Results. We compare the proposed method with five unsupervised methods, including one node embedding method DeepWalk, two graph auto-encoders GAE and VGAE (Kipf & Welling, 2016), and two contrastive learning methods DGI (Velickovic et al., 2019) and GMI (Peng et al., 2020). Additionally, we report the results of Raw Features and DeepWalk+Features (Perozzi et al., 2014) under the same settings. For fair comparison, the results of all other unsupervised methods are reproduced by using the same encoder architecture of the TopoTER except DeepWalk and Raw Features. We report the mean classification accuracy (with standard deviation) on the test nodes for all methods after 50 runs of training. As reported in Tab. 1, the TopoTER outperforms all other competing unsupervised methods on three datasets. Further, the proposed unsupervised method also achieves comparable performance with semi-supervised results. This significantly closes the gap between unsupervised approaches and the semi-supervised methods. ",
1053
+ "bbox": [
1054
+ 173,
1055
+ 710,
1056
+ 825,
1057
+ 862
1058
+ ],
1059
+ "page_idx": 6
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Moreover, we compare the proposed TopoTER with two contrastive learning methods DGI and GMI in terms of the model complexity, as reported in Tab. 2. The number of parameters in our model is less than that of DGI and even less than half of that of GMI, which further shows the TopoTER model is lightweight. ",
1064
+ "bbox": [
1065
+ 174,
1066
+ 869,
1067
+ 823,
1068
+ 926
1069
+ ],
1070
+ "page_idx": 6
1071
+ },
1072
+ {
1073
+ "type": "table",
1074
+ "img_path": "images/03aaf6d9c65376ad0590fcd8166eb53b1f0f9930b24a889b997a89a64e87db88.jpg",
1075
+ "table_caption": [
1076
+ "Table 3: Graph classification accuracies (with standard deviation) in percentage on 6 datasets. $^ { 6 6 } > 1$ Day” represents that the computation exceeds 24 hours. “OOM” is out of memory error. "
1077
+ ],
1078
+ "table_footnote": [],
1079
+ "table_body": "<table><tr><td>Dataset (No.Graphs) (No. Classes)</td><td>MUTAG 188 2</td><td>PTC-MR 344 2</td><td>RDT-B 2000 2</td><td>RDT-M5K 4999 5</td><td>IMDB-B 1000 2</td><td>IMDB-M 1500 3</td></tr><tr><td colspan=\"7\">GraphKernelMethods</td></tr><tr><td>RW</td><td>83.72 ±1.50</td><td>57.85 ±1.30</td><td>OOM</td><td>OOM</td><td>50.68±0.26</td><td>34.65 ±0.19</td></tr><tr><td>SP</td><td>85.22 ± 2.43</td><td>58.24 ± 2.44</td><td>64.11 ± 0.14</td><td>39.55 ±0.22</td><td>55.60±0.22</td><td>37.99 ± 0.30</td></tr><tr><td>GK</td><td>81.66 ± 2.11</td><td>57.26 ± 1.41</td><td>77.34 ± 0.18</td><td>41.01 ± 0.17</td><td>65.87 ±0.98</td><td>43.89 ±0.38</td></tr><tr><td>WL</td><td>80.72 ±3.00</td><td>57.97 ± 0.49</td><td>68.82 ±0.41</td><td>46.06 ±0.21</td><td>72.30 ± 3.44</td><td>46.95 ± 0.46</td></tr><tr><td>DGK</td><td>87.44 ±2.72</td><td>60.08 ±2.55</td><td>78.04±0.39</td><td>41.27 ± 0.18</td><td>66.96 ±0.56</td><td>44.55± 0.52</td></tr><tr><td>MLG</td><td>87.94 ± 1.61</td><td>63.26 ± 1.48</td><td>&gt;1Day</td><td>&gt;1Day</td><td>66.55 ± 0.25</td><td>41.17 ± 0.03</td></tr><tr><td colspan=\"7\">SupervisedMethods</td></tr><tr><td>GCN</td><td>85.6±5.8</td><td>64.2± 4.3</td><td>50.0±0.0</td><td>20.0±0.0</td><td>74.0±3.0</td><td>51.9±3.8</td></tr><tr><td>GraphSAGE</td><td>85.1± 7.6</td><td>63.9 ±7.7</td><td></td><td>=</td><td>72.3 ± 5.3</td><td>50.9 ± 2.2</td></tr><tr><td>GIN-0</td><td>89.4±5.6</td><td>64.6±7.0</td><td>92.4±2.5</td><td>57.5 ± 1.5</td><td>75.1 ± 5.1</td><td>52.3±2.8</td></tr><tr><td>GIN-e</td><td>89.0±6.0</td><td>63.7±8.2</td><td>92.2±2.3</td><td>57.0 ±1.7</td><td>74.3 ± 5.1</td><td>52.1±3.6</td></tr><tr><td colspan=\"7\">Unsupervised Methods</td></tr><tr><td>node2vec</td><td>72.63±10.20</td><td>58.58±8.00</td><td></td><td>=</td><td>=</td><td></td></tr><tr><td>sub2vec</td><td>61.05 ± 15.80 83.15 ±9.25</td><td>59.99 ±6.38</td><td>71.48 ± 0.41 75.78 ±1.03</td><td>36.68 ±0.42 47.86 ±0.26</td><td>55.26 ± 1.54</td><td>36.67±0.83</td></tr><tr><td>graph2vec</td><td>89.01 ± 1.13</td><td>60.17 ±6.86 61.65 ±1.43</td><td>82.50 ±1.42</td><td>53.46 ± 1.03</td><td>71.10 ±0.54 73.03 ± 0.87</td><td>50.44 ± 0.87</td></tr><tr><td>InfoGraph TopoTER</td><td>89.25 ±0.81</td><td>64.59 ±1.26</td><td>84.93 ±0.18</td><td>55.52±0.20</td><td>73.46 ±0.38</td><td>49.69 ± 0.53</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>49.68 ±0.31</td></tr></table>",
1080
+ "bbox": [
1081
+ 173,
1082
+ 140,
1083
+ 833,
1084
+ 358
1085
+ ],
1086
+ "page_idx": 7
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "4.2 GRAPH CLASSIFICATION ",
1091
+ "text_level": 1,
1092
+ "bbox": [
1093
+ 174,
1094
+ 366,
1095
+ 387,
1096
+ 381
1097
+ ],
1098
+ "page_idx": 7
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Datasets. We conduct graph classification experiments on six well-known graph benchmark datasets (Yanardag & Vishwanathan, 2015): MUTAG, PTC, REDDIT-BINARY, REDDIT-MULTI5K, IMDB-BINARY, and IMDB-MULTI. ",
1103
+ "bbox": [
1104
+ 174,
1105
+ 388,
1106
+ 823,
1107
+ 429
1108
+ ],
1109
+ "page_idx": 7
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Implementation Details. In this task, the entire network is trained via Adam optimizer with a batch size of 64, and the learning rate is set to $1 0 ^ { - 3 }$ . For the encoder architecture, we follow the same encoder settings in the released code of InfoGraph (Sun et al., 2020a), i.e., three Graph Isomorphism Network (GIN) layers (Xu et al., 2019b) with batch normalization. We also use one linear layer to classify the transformation types. We set the sampling rate $r = 0 . 5$ for all datasets. ",
1114
+ "bbox": [
1115
+ 174,
1116
+ 436,
1117
+ 823,
1118
+ 506
1119
+ ],
1120
+ "page_idx": 7
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "During the evaluation stage, the entire encoder will be frozen to extract node-level feature representations, which will go through a global add pooling layer to acquire global features. We then use LIBSVM to classify these global features to classification scores. We adopt the same procedure of previous works (Sun et al., 2020a) to make a fair comparison and use 10-fold cross validation accuracy to report the classification performance, and the experiments are repeated five times. ",
1125
+ "bbox": [
1126
+ 174,
1127
+ 513,
1128
+ 823,
1129
+ 583
1130
+ ],
1131
+ "page_idx": 7
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Experimental Results. We take six graph kernel approaches for comparison: Random Walk (RW) (Gartner et al., 2003), Shortest Path Kernel (SP) (Borgwardt & Kriegel, 2005), Graphlet Kernel ¨ (GK) (Shervashidze et al., 2009), Weisfeiler-Lehman Sub-tree Kernel (WL) (Shervashidze et al., 2011), Deep Graph Kernels (DGK) (Yanardag & Vishwanathan, 2015), and Multi-Scale Laplacian Kernel (MLG) (Kondor & Pan, 2016). Aside from graph kernel methods, we also compare with three unsupervised graph-level representation learning methods: node2vec (Grover & Leskovec, 2016), sub2vec (Adhikari et al., 2018), and graph2vec (Narayanan et al., 2017), and one contrastive learning method: InfoGraph (Sun et al., 2020a). The experimental results of unsupervised graph classification are preseted in Tab. 3. The proposed TopoTER outperforms all unsupervised baseline methods on the first five datasets, and achieves comparable results on the other dataset. Also, the proposed approach reaches the performance of supervised methods at times, thus validating the effectiveness of the TopoTER model. ",
1136
+ "bbox": [
1137
+ 174,
1138
+ 589,
1139
+ 825,
1140
+ 757
1141
+ ],
1142
+ "page_idx": 7
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "5 CONCLUSION ",
1147
+ "text_level": 1,
1148
+ "bbox": [
1149
+ 176,
1150
+ 768,
1151
+ 318,
1152
+ 784
1153
+ ],
1154
+ "page_idx": 7
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "We propose Topology Transformation Equivariant Representation (TopoTER) for learning unsupervised representations on graph data. By maximizing the mutual information between topology transformations and feature representations before and after transformations, the TopoTER enforces the encoder to learn intrinsic graph feature representations that contain sufficient information about structures under applied topology transformations. We apply the TopoTER model to node classification and graph classification tasks, and results demonstrate that the TopoTER outperforms stateof-the-art unsupervised approaches and reaches the performance of supervised methods at times. ",
1159
+ "bbox": [
1160
+ 174,
1161
+ 790,
1162
+ 823,
1163
+ 888
1164
+ ],
1165
+ "page_idx": 7
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "REFERENCES ",
1170
+ "text_level": 1,
1171
+ "bbox": [
1172
+ 176,
1173
+ 102,
1174
+ 285,
1175
+ 117
1176
+ ],
1177
+ "page_idx": 8
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "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 (ICML), pp. 21–29, 2019. ",
1182
+ "bbox": [
1183
+ 174,
1184
+ 126,
1185
+ 825,
1186
+ 183
1187
+ ],
1188
+ "page_idx": 8
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "Bijaya Adhikari, Yao Zhang, Naren Ramakrishnan, and B Aditya Prakash. Sub2vec: Feature learning for subgraphs. In Pacific-Asia Conference on Knowledge Discovery and Data Mining, pp. 170–182. Springer, 2018. ",
1193
+ "bbox": [
1194
+ 174,
1195
+ 191,
1196
+ 823,
1197
+ 234
1198
+ ],
1199
+ "page_idx": 8
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Karsten M Borgwardt and Hans-Peter Kriegel. Shortest-path kernels on graphs. In IEEE International Conference on Data Mining (ICDM), pp. 8–pp. IEEE, 2005. ",
1204
+ "bbox": [
1205
+ 171,
1206
+ 244,
1207
+ 820,
1208
+ 273
1209
+ ],
1210
+ "page_idx": 8
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017. ",
1215
+ "bbox": [
1216
+ 173,
1217
+ 282,
1218
+ 825,
1219
+ 325
1220
+ ],
1221
+ "page_idx": 8
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Shaosheng Cao, Wei Lu, and Qiongkai Xu. Deep neural networks for learning graph representations. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), volume 16, pp. 1145– 1152, 2016. ",
1226
+ "bbox": [
1227
+ 174,
1228
+ 335,
1229
+ 825,
1230
+ 378
1231
+ ],
1232
+ "page_idx": 8
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 132–149, 2018. ",
1237
+ "bbox": [
1238
+ 173,
1239
+ 387,
1240
+ 825,
1241
+ 431
1242
+ ],
1243
+ "page_idx": 8
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Taco Cohen and Max Welling. Group equivariant convolutional networks. In Proceedings of the 33rd International Conference on Machine Learning (ICML), pp. 2990–2999, 2016. ",
1248
+ "bbox": [
1249
+ 169,
1250
+ 439,
1251
+ 823,
1252
+ 469
1253
+ ],
1254
+ "page_idx": 8
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Nicola De Cao and Thomas Kipf. MolGAN: An implicit generative model for small molecular graphs. In International Conference on Machine Learning Workshop on Theoretical Foundations and Applications of Deep Generative Models, 2018. ",
1259
+ "bbox": [
1260
+ 176,
1261
+ 478,
1262
+ 823,
1263
+ 522
1264
+ ],
1265
+ "page_idx": 8
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "Pim de Haan, Maurice Weiler, Taco Cohen, and Max Welling. Gauge equivariant mesh cnns: Anisotropic convolutions on geometric graphs. arXiv preprint arXiv:2003.05425, 2020. ",
1270
+ "bbox": [
1271
+ 176,
1272
+ 531,
1273
+ 821,
1274
+ 560
1275
+ ],
1276
+ "page_idx": 8
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "Sander Dieleman, Kyle W Willett, and Joni Dambre. Rotation-invariant convolutional neural networks for galaxy morphology prediction. Monthly Notices of the Royal Astronomical Society, 450 (2):1441–1459, 2015. ",
1281
+ "bbox": [
1282
+ 174,
1283
+ 569,
1284
+ 825,
1285
+ 612
1286
+ ],
1287
+ "page_idx": 8
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Sander Dieleman, Jeffrey De Fauw, and Koray Kavukcuoglu. Exploiting cyclic symmetry in convolutional neural networks. In International Conference on Machine Learning (ICML), pp. 1889– 1898, 2016. ",
1292
+ "bbox": [
1293
+ 174,
1294
+ 622,
1295
+ 825,
1296
+ 665
1297
+ ],
1298
+ "page_idx": 8
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Fabian B Fuchs, Daniel E Worrall, Volker Fischer, and Max Welling. Se (3)-transformers: 3d rototranslation equivariant attention networks. arXiv preprint arXiv:2006.10503, 2020. ",
1303
+ "bbox": [
1304
+ 171,
1305
+ 674,
1306
+ 823,
1307
+ 704
1308
+ ],
1309
+ "page_idx": 8
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Xiang Gao, Wei Hu, and Guo-Jun Qi. GraphTER: Unsupervised learning of graph transformation equivariant representations via auto-encoding node-wise transformations. In Proceedings of IEEE/CVF Conferences on Computer Vision and Pattern Recognition (CVPR), 2020. ",
1314
+ "bbox": [
1315
+ 173,
1316
+ 713,
1317
+ 825,
1318
+ 756
1319
+ ],
1320
+ "page_idx": 8
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Thomas Gartner, Peter Flach, and Stefan Wrobel. On graph kernels: Hardness results and efficient ¨ alternatives. In Learning Theory and Kernel Machines, pp. 129–143. Springer, 2003. ",
1325
+ "bbox": [
1326
+ 169,
1327
+ 765,
1328
+ 823,
1329
+ 795
1330
+ ],
1331
+ "page_idx": 8
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Robert Gens and Pedro M Domingos. Deep symmetry networks. In Advances in Neural Information Processing Systems (NIPS), pp. 2537–2545, 2014. ",
1336
+ "bbox": [
1337
+ 171,
1338
+ 804,
1339
+ 823,
1340
+ 833
1341
+ ],
1342
+ "page_idx": 8
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 855–864, 2016. ",
1347
+ "bbox": [
1348
+ 173,
1349
+ 843,
1350
+ 823,
1351
+ 886
1352
+ ],
1353
+ "page_idx": 8
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks (ICANN), pp. 44–51. Springer, 2011. ",
1358
+ "bbox": [
1359
+ 173,
1360
+ 895,
1361
+ 821,
1362
+ 924
1363
+ ],
1364
+ "page_idx": 8
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In International Conference on Learning Representations (ICLR), 2018. ",
1369
+ "bbox": [
1370
+ 178,
1371
+ 103,
1372
+ 823,
1373
+ 146
1374
+ ],
1375
+ "page_idx": 9
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Thomas N Kipf and Max Welling. Variational graph auto-encoders. In Proceedings of the NIPS Workshop on Bayesian Deep Learning, 2016. ",
1380
+ "bbox": [
1381
+ 176,
1382
+ 156,
1383
+ 821,
1384
+ 185
1385
+ ],
1386
+ "page_idx": 9
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017. ",
1391
+ "bbox": [
1392
+ 174,
1393
+ 195,
1394
+ 820,
1395
+ 224
1396
+ ],
1397
+ "page_idx": 9
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Jyri J Kivinen and Christopher KI Williams. Transformation equivariant boltzmann machines. In International Conference on Artificial Neural Networks (ICANN), pp. 1–9. Springer, 2011. ",
1402
+ "bbox": [
1403
+ 173,
1404
+ 234,
1405
+ 821,
1406
+ 263
1407
+ ],
1408
+ "page_idx": 9
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "Risi Kondor and Horace Pan. The multiscale laplacian graph kernel. In Advances in Neural Information Processing Systems (NIPS), pp. 2990–2998, 2016. ",
1413
+ "bbox": [
1414
+ 173,
1415
+ 273,
1416
+ 823,
1417
+ 303
1418
+ ],
1419
+ "page_idx": 9
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "Karel Lenc and Andrea Vedaldi. Understanding image representations by measuring their equivariance and equivalence. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 991–999, 2015. ",
1424
+ "bbox": [
1425
+ 176,
1426
+ 313,
1427
+ 823,
1428
+ 356
1429
+ ],
1430
+ "page_idx": 9
1431
+ },
1432
+ {
1433
+ "type": "text",
1434
+ "text": "Jan Eric Lenssen, Matthias Fey, and Pascal Libuschewski. Group equivariant capsule networks. In Advances in Neural Information Processing Systems (NIPS), pp. 8844–8853, 2018. ",
1435
+ "bbox": [
1436
+ 171,
1437
+ 364,
1438
+ 823,
1439
+ 395
1440
+ ],
1441
+ "page_idx": 9
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang, and Jie Tang. Selfsupervised learning: Generative or contrastive. arXiv, pp. arXiv–2006, 2020. ",
1446
+ "bbox": [
1447
+ 171,
1448
+ 404,
1449
+ 823,
1450
+ 434
1451
+ ],
1452
+ "page_idx": 9
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "Tengfei Ma, Jie Chen, and Cao Xiao. Constrained generation of semantically valid graphs via regularizing variational autoencoders. In Advances in Neural Information Processing Systems (NIPS), pp. 7113–7124, 2018. ",
1457
+ "bbox": [
1458
+ 174,
1459
+ 443,
1460
+ 825,
1461
+ 486
1462
+ ],
1463
+ "page_idx": 9
1464
+ },
1465
+ {
1466
+ "type": "text",
1467
+ "text": "Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5115–5124, 2017. ",
1468
+ "bbox": [
1469
+ 173,
1470
+ 496,
1471
+ 825,
1472
+ 553
1473
+ ],
1474
+ "page_idx": 9
1475
+ },
1476
+ {
1477
+ "type": "text",
1478
+ "text": "Annamalai Narayanan, Mahinthan Chandramohan, Rajasekar Venkatesan, Lihui Chen, Yang Liu, and Shantanu Jaiswal. graph2vec: Learning distributed representations of graphs. In Proceedings of the 13th International Workshop on Mining and Learning with Graphs (MLG), 2017. ",
1479
+ "bbox": [
1480
+ 173,
1481
+ 563,
1482
+ 823,
1483
+ 607
1484
+ ],
1485
+ "page_idx": 9
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "Zhen Peng, Wenbing Huang, Minnan Luo, Qinghua Zheng, Yu Rong, Tingyang Xu, and Junzhou Huang. Graph representation learning via graphical mutual information maximization. In Proceedings of The Web Conference, pp. 259–270, 2020. ",
1490
+ "bbox": [
1491
+ 174,
1492
+ 616,
1493
+ 823,
1494
+ 660
1495
+ ],
1496
+ "page_idx": 9
1497
+ },
1498
+ {
1499
+ "type": "text",
1500
+ "text": "Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 701–710, 2014. ",
1501
+ "bbox": [
1502
+ 173,
1503
+ 669,
1504
+ 825,
1505
+ 712
1506
+ ],
1507
+ "page_idx": 9
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "Guo-Jun Qi, Liheng Zhang, Chang Wen Chen, and Qi Tian. AVT: Unsupervised learning of transformation equivariant representations by autoencoding variational transformations. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2019a. ",
1512
+ "bbox": [
1513
+ 174,
1514
+ 722,
1515
+ 825,
1516
+ 765
1517
+ ],
1518
+ "page_idx": 9
1519
+ },
1520
+ {
1521
+ "type": "text",
1522
+ "text": "Guo-Jun Qi, Liheng Zhang, and Xiao Wang. Learning generalized transformation equivariant representations via autoencoding transformations. arXiv preprint arXiv:1906.08628, 2019b. ",
1523
+ "bbox": [
1524
+ 173,
1525
+ 775,
1526
+ 823,
1527
+ 804
1528
+ ],
1529
+ "page_idx": 9
1530
+ },
1531
+ {
1532
+ "type": "text",
1533
+ "text": "Jiezhong Qiu, Qibin Chen, Yuxiao Dong, Jing Zhang, Hongxia Yang, Ming Ding, Kuansan Wang, and Jie Tang. Gcc: Graph contrastive coding for graph neural network pre-training. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 1150–1160, 2020. ",
1534
+ "bbox": [
1535
+ 174,
1536
+ 814,
1537
+ 825,
1538
+ 871
1539
+ ],
1540
+ "page_idx": 9
1541
+ },
1542
+ {
1543
+ "type": "text",
1544
+ "text": "Uwe Schmidt and Stefan Roth. Learning rotation-aware features: From invariant priors to equivariant descriptors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2050–2057. IEEE, 2012. ",
1545
+ "bbox": [
1546
+ 176,
1547
+ 882,
1548
+ 823,
1549
+ 924
1550
+ ],
1551
+ "page_idx": 9
1552
+ },
1553
+ {
1554
+ "type": "text",
1555
+ "text": "Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93–93, 2008. ",
1556
+ "bbox": [
1557
+ 171,
1558
+ 103,
1559
+ 821,
1560
+ 132
1561
+ ],
1562
+ "page_idx": 10
1563
+ },
1564
+ {
1565
+ "type": "text",
1566
+ "text": "Nino Shervashidze, SVN Vishwanathan, Tobias Petri, Kurt Mehlhorn, and Karsten Borgwardt. Efficient graphlet kernels for large graph comparison. In Artificial Intelligence and Statistics, pp. 488–495, 2009. ",
1567
+ "bbox": [
1568
+ 174,
1569
+ 140,
1570
+ 821,
1571
+ 183
1572
+ ],
1573
+ "page_idx": 10
1574
+ },
1575
+ {
1576
+ "type": "text",
1577
+ "text": "Nino Shervashidze, Pascal Schweitzer, Erik Jan Van Leeuwen, Kurt Mehlhorn, and Karsten M Borgwardt. Weisfeiler-lehman graph kernels. Journal of Machine Learning Research, 12(9), 2011. ",
1578
+ "bbox": [
1579
+ 171,
1580
+ 190,
1581
+ 821,
1582
+ 220
1583
+ ],
1584
+ "page_idx": 10
1585
+ },
1586
+ {
1587
+ "type": "text",
1588
+ "text": "Martin Simonovsky and Nikos Komodakis. Graphvae: Towards generation of small graphs using variational autoencoders. In International Conference on Artificial Neural Networks (ICANN), pp. 412–422. Springer, 2018. ",
1589
+ "bbox": [
1590
+ 174,
1591
+ 227,
1592
+ 823,
1593
+ 270
1594
+ ],
1595
+ "page_idx": 10
1596
+ },
1597
+ {
1598
+ "type": "text",
1599
+ "text": "Henrik Skibbe. Spherical Tensor Algebra for Biomedical Image Analysis. PhD thesis, Verlag nicht ermittelbar, 2013. ",
1600
+ "bbox": [
1601
+ 169,
1602
+ 277,
1603
+ 825,
1604
+ 308
1605
+ ],
1606
+ "page_idx": 10
1607
+ },
1608
+ {
1609
+ "type": "text",
1610
+ "text": "Kihyuk Sohn and Honglak Lee. Learning invariant representations with local transformations. In International Conference on Machine Learning (ICML), pp. 1339–1346, 2012. ",
1611
+ "bbox": [
1612
+ 171,
1613
+ 314,
1614
+ 823,
1615
+ 344
1616
+ ],
1617
+ "page_idx": 10
1618
+ },
1619
+ {
1620
+ "type": "text",
1621
+ "text": "Fan-Yun Sun, Jordan Hoffmann, Vikas Verma, and Jian Tang. Infograph: Unsupervised and semisupervised graph-level representation learning via mutual information maximization. In International Conference on Learning Representations (ICLR), 2020a. ",
1622
+ "bbox": [
1623
+ 174,
1624
+ 352,
1625
+ 821,
1626
+ 395
1627
+ ],
1628
+ "page_idx": 10
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "Ke Sun, Zhouchen Lin, and Zhanxing Zhu. Multi-stage self-supervised learning for graph convolutional networks on graphs with few labeled nodes. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pp. 5892–5899, 2020b. ",
1633
+ "bbox": [
1634
+ 174,
1635
+ 401,
1636
+ 821,
1637
+ 445
1638
+ ],
1639
+ "page_idx": 10
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "text": "Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. In International Conference on Learning Representations (ICLR), 2018. ",
1644
+ "bbox": [
1645
+ 173,
1646
+ 453,
1647
+ 825,
1648
+ 496
1649
+ ],
1650
+ "page_idx": 10
1651
+ },
1652
+ {
1653
+ "type": "text",
1654
+ "text": "Petar Velickovic, William Fedus, William L Hamilton, Pietro Lio, Yoshua Bengio, and R Devon \\` Hjelm. Deep graph infomax. In International Conference on Learning Representations (ICLR), 2019. ",
1655
+ "bbox": [
1656
+ 173,
1657
+ 503,
1658
+ 823,
1659
+ 546
1660
+ ],
1661
+ "page_idx": 10
1662
+ },
1663
+ {
1664
+ "type": "text",
1665
+ "text": "Daixin Wang, Peng Cui, and Wenwu Zhu. Structural deep network embedding. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1225–1234, 2016. ",
1666
+ "bbox": [
1667
+ 173,
1668
+ 554,
1669
+ 825,
1670
+ 597
1671
+ ],
1672
+ "page_idx": 10
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "text": "Jiayu Wang, Wengang Zhou, Guo-Jun Qi, Zhongqian Fu, Qi Tian, and Houqiang Li. Transformation gan for unsupervised image synthesis and representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 472–481, 2020. ",
1677
+ "bbox": [
1678
+ 174,
1679
+ 604,
1680
+ 823,
1681
+ 648
1682
+ ],
1683
+ "page_idx": 10
1684
+ },
1685
+ {
1686
+ "type": "text",
1687
+ "text": "WOK Asiri Suranga Wijesinghe and Qing Wang. Dfnets: Spectral cnns for graphs with feedbacklooped filters. In Advances in Neural Information Processing Systems (NIPS), pp. 6009–6020, 2019. ",
1688
+ "bbox": [
1689
+ 176,
1690
+ 655,
1691
+ 823,
1692
+ 698
1693
+ ],
1694
+ "page_idx": 10
1695
+ },
1696
+ {
1697
+ "type": "text",
1698
+ "text": "Felix Wu, Tianyi Zhang, Amauri Holanda de Souza Jr, Christopher Fifty, Tao Yu, and Kilian Q Weinberger. Simplifying graph convolutional networks. In Proceedings of the 36th International Conference on Machine Learning (ICML), pp. 6861–6871, 2019. ",
1699
+ "bbox": [
1700
+ 176,
1701
+ 705,
1702
+ 825,
1703
+ 750
1704
+ ],
1705
+ "page_idx": 10
1706
+ },
1707
+ {
1708
+ "type": "text",
1709
+ "text": "Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. IEEE Transactions on Neural Networks and Learning Systems, 2020. ",
1710
+ "bbox": [
1711
+ 173,
1712
+ 757,
1713
+ 825,
1714
+ 800
1715
+ ],
1716
+ "page_idx": 10
1717
+ },
1718
+ {
1719
+ "type": "text",
1720
+ "text": "Bingbing Xu, Huawei Shen, Qi Cao, Yunqi Qiu, and Xueqi Cheng. Graph wavelet neural network. In International Conference on Learning Representations (ICLR), 2019a. ",
1721
+ "bbox": [
1722
+ 173,
1723
+ 808,
1724
+ 821,
1725
+ 837
1726
+ ],
1727
+ "page_idx": 10
1728
+ },
1729
+ {
1730
+ "type": "text",
1731
+ "text": "Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations (ICLR), 2019b. ",
1732
+ "bbox": [
1733
+ 174,
1734
+ 844,
1735
+ 821,
1736
+ 875
1737
+ ],
1738
+ "page_idx": 10
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "text": "Pinar Yanardag and SVN Vishwanathan. Deep graph kernels. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1365–1374, 2015. ",
1743
+ "bbox": [
1744
+ 174,
1745
+ 882,
1746
+ 823,
1747
+ 922
1748
+ ],
1749
+ "page_idx": 10
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "Jiaxuan You, Rex Ying, Xiang Ren, William L Hamilton, and Jure Leskovec. Graphrnn: Generating realistic graphs with deep auto-regressive models. In Proceedings of the 35th International Conference on Machine Learning (ICML), pp. 5694–5703, 2018. ",
1754
+ "bbox": [
1755
+ 178,
1756
+ 103,
1757
+ 823,
1758
+ 146
1759
+ ],
1760
+ "page_idx": 11
1761
+ },
1762
+ {
1763
+ "type": "text",
1764
+ "text": "Liheng Zhang, Guo-Jun Qi, Liqiang Wang, and Jiebo Luo. AET vs. AED: Unsupervised representation learning by auto-encoding transformations rather than data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2547–2555, 2019. ",
1765
+ "bbox": [
1766
+ 179,
1767
+ 155,
1768
+ 821,
1769
+ 196
1770
+ ],
1771
+ "page_idx": 11
1772
+ },
1773
+ {
1774
+ "type": "text",
1775
+ "text": "A EXPERIMENTS ON DIFFERENT ORDERS OF THE ADJACENCY MATRIX ",
1776
+ "text_level": 1,
1777
+ "bbox": [
1778
+ 173,
1779
+ 101,
1780
+ 789,
1781
+ 118
1782
+ ],
1783
+ "page_idx": 12
1784
+ },
1785
+ {
1786
+ "type": "text",
1787
+ "text": "As presented in Sec. 3.2, we perturb the 1-hop neighborhoods via the proposed topology transformations, leading to possibly significant changes in the graph topology. This increases the difficulties of predicting the topology transformations when using one-layer GCN (Kipf & Welling, 2017) by aggregating the 1-hop neighborhood information. Therefore, we employ one Simple Graph Convolution (SGC) layer (Wu et al., 2019) with order $k$ as our encoder $E ( \\cdot )$ , where the output feature representations aggregate multi-hop neighborhood information. Formally, the SGC layer is defined as ",
1788
+ "bbox": [
1789
+ 173,
1790
+ 132,
1791
+ 825,
1792
+ 229
1793
+ ],
1794
+ "page_idx": 12
1795
+ },
1796
+ {
1797
+ "type": "equation",
1798
+ "img_path": "images/14e94d2a58e96524e73ec255c9d4069e57f825170487b2a0b692292126bc2f64.jpg",
1799
+ "text": "$$\n\\mathbf { H } = E ( \\mathbf { X } , \\mathbf { A } ) = \\left( \\mathbf { D } ^ { - { \\frac { 1 } { 2 } } } ( \\mathbf { A } + \\mathbf { I } ) \\mathbf { D } ^ { - { \\frac { 1 } { 2 } } } \\right) ^ { k } \\mathbf { X } \\mathbf { W } ,\n$$",
1800
+ "text_format": "latex",
1801
+ "bbox": [
1802
+ 341,
1803
+ 227,
1804
+ 655,
1805
+ 257
1806
+ ],
1807
+ "page_idx": 12
1808
+ },
1809
+ {
1810
+ "type": "text",
1811
+ "text": "where $\\mathbf { D }$ is the degree matrix of $\\mathbf { A } + \\mathbf { I }$ , $\\mathbf { W } \\in \\mathbb { R } ^ { C \\times F }$ is a learnable parameter matrix, and $k$ is the order of the normalized adjacency matrix. ",
1812
+ "bbox": [
1813
+ 174,
1814
+ 261,
1815
+ 825,
1816
+ 290
1817
+ ],
1818
+ "page_idx": 12
1819
+ },
1820
+ {
1821
+ "type": "text",
1822
+ "text": "To study the influence of different orders of the adjacency matrix, we adopt five orders from 1 to 5 to train five models on the node classification task. Fig. 3 presents the node classification accuracy under different orders of the adjacency matrix for TopoTER and DGI respectively. As we can see, the proposed TopoTER achieves best classification performance when $\\bar { k } = \\{ 4 , 2 , 3 \\}$ on the three datasets respectively. When $k = 1$ , our model still achieves reasonable results although it is difficult to predict the topology transformations from 1-hop neighborhood information; when $k > 1$ , our proposed TopoTER outperforms DGI by a large margin on Cora and Pubmed dataset, and achieves comparable results to DGI on Citeseer dataset. This is because DGI adopts feature shuffling to generate negative samples, which is insufficient to learn contrastive feature representations when aggregating multi-hop neighborhood information, while TopoTER takes advantage of multi-hop neighborhood information to predict the topology transformations, leading to improved performance. ",
1823
+ "bbox": [
1824
+ 173,
1825
+ 296,
1826
+ 825,
1827
+ 464
1828
+ ],
1829
+ "page_idx": 12
1830
+ },
1831
+ {
1832
+ "type": "image",
1833
+ "img_path": "images/8ddbf8b4e04cab400e9891a928714a2981f607b9d3a138ffb5b36d9e723dac71.jpg",
1834
+ "image_caption": [
1835
+ "Figure 3: Node classification accuracies under different orders of the adjacency matrix on the Cora, Citeseer, and Pubmed datasets. "
1836
+ ],
1837
+ "image_footnote": [],
1838
+ "bbox": [
1839
+ 205,
1840
+ 493,
1841
+ 776,
1842
+ 868
1843
+ ],
1844
+ "page_idx": 12
1845
+ },
1846
+ {
1847
+ "type": "text",
1848
+ "text": "B EXPERIMENTS ON DIFFERENT EDGE PERTURBATION RATES ",
1849
+ "text_level": 1,
1850
+ "bbox": [
1851
+ 173,
1852
+ 102,
1853
+ 709,
1854
+ 118
1855
+ ],
1856
+ "page_idx": 13
1857
+ },
1858
+ {
1859
+ "type": "text",
1860
+ "text": "Further, we evaluate the influence of the edge perturbation rate in Eq. (9) on the node classification task. We choose 11 edge perturbation rates from 0.0 to 1.0 at an interval of 0.1 to train the proposed TopoTER. We use one SGC layer as our encoder $E ( \\cdot )$ , where the order of the adjacency matrix is set to 1. As presented in Fig. 4, the blue solid line with error bar shows the classification accuracy of our TopoTER under different edge perturbation rates. We also provide the classification accuracy on feature representations of graphs from a randomly initialized encoder $E ( \\cdot )$ , denoted as Random Init., which serves as the lower bound of the performance. ",
1861
+ "bbox": [
1862
+ 173,
1863
+ 133,
1864
+ 825,
1865
+ 231
1866
+ ],
1867
+ "page_idx": 13
1868
+ },
1869
+ {
1870
+ "type": "text",
1871
+ "text": "As we can see, the classification performance reaches the best when the graph is perturbed under a reasonable edge perturbation rate, e.g., $r = \\{ 0 . 6 , 0 . 5 , 0 . 6 \\}$ for the Cora, Citeseer, and Pubmed dataset, respectively. When the edge perturbation rate $r ~ = ~ 0 . 0$ , the unsupervised training task of TopoTER becomes link prediction, which cannot take advantage of the proposed method by predicting the topology transformations; when the edge perturbation rate $r = 1 . 0$ , our TopoTER still achieves reasonable classification results, which shows the stability of our model under high edge perturbation rates. At the same time, we observe that the proposed TopoTER outperforms Random Init. by a large margin, which validates the effectiveness of the proposed unsupervised training strategy. ",
1872
+ "bbox": [
1873
+ 173,
1874
+ 238,
1875
+ 825,
1876
+ 364
1877
+ ],
1878
+ "page_idx": 13
1879
+ },
1880
+ {
1881
+ "type": "image",
1882
+ "img_path": "images/cfee187499901abc7aaea98a85b3758d39bf6b7135d31b0e4e98280246dd31f5.jpg",
1883
+ "image_caption": [
1884
+ "Figure 4: Node classification accuracies under different edge perturbation rates on the Cora, Citeseer, and Pubmed datasets. "
1885
+ ],
1886
+ "image_footnote": [],
1887
+ "bbox": [
1888
+ 205,
1889
+ 395,
1890
+ 779,
1891
+ 767
1892
+ ],
1893
+ "page_idx": 13
1894
+ }
1895
+ ]
parse/train/9az9VKjOx00/9az9VKjOx00_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/9az9VKjOx00/9az9VKjOx00_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1mAJI9gl/B1mAJI9gl.md ADDED
@@ -0,0 +1,529 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOWARDS UNDERSTANDING THE INVERTIBILITY OF CONVOLUTIONAL NEURAL NETWORKS
2
+
3
+ Anna C. Gilbert1 Yi Zhang1 Kibok Lee1 Yuting Zhang1 Honglak Lee1,2
4
+
5
+ 1University of Michigan, Ann Arbor, MI 48109 2Google Brain, Mountain View, CA 94043 {annacg,yeezhang,kibok,yutingzh,honglak}@umich.edu
6
+
7
+ # ABSTRACT
8
+
9
+ Several recent works have empirically observed that Convolutional Neural Nets (CNNs) are (approximately) invertible. To understand this approximate invertibility phenomenon and how to leverage it more effectively, we focus on a theoretical explanation and develop a mathematical model of sparse signal recovery that is consistent with CNNs with random weights. We give an exact connection to a particular model of model-based compressive sensing (and its recovery algorithms) and random-weight CNNs. We show empirically that several learned networks are consistent with our mathematical analysis and then demonstrate that with such a simple theoretical framework, we can obtain reasonable reconstruction results on real images. We also discuss gaps between our model assumptions and the CNN trained for classification in practical scenarios.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Deep learning has achieved remarkable success in many technological areas (Bengio et al., 2013; Schmidhuber, 2015), including computer vision (Krizhevsky et al., 2012; Szegedy et al., 2015; Simonyan and Zisserman, 2015), automatic speech recognition (Hinton et al., 2012; Hannun et al., 2014), natural language processing (Collobert et al., 2011; Mikolov et al., 2013; Cho et al., 2014), bioinformatics (Chicco et al., 2014), even high energy particle physics (Baldi et al., 2014). In particular, deep Convolutional Neural Networks (CNNs) (LeCun et al., 1989; Krizhevsky et al., 2012; Simonyan and Zisserman, 2015) have been a critical enabling technique for analyzing images and sequential data.
14
+
15
+ Following the unprecedented success of deep networks, there has been some theoretical work (e.g., Arora et al. (2014; 2015); Paul and Venkatasubramanian (2014)) that suggest several mathematical models for different deep learning architectures. However, theoretical analysis and understanding lag behind the very rapid evolution and empirical success of deep architectures, and more theoretical analysis is needed to better understand the state-of-the-art deep architectures, and possibly to improve them further.
16
+
17
+ In this paper, we attempt to address the gap between the empirical success and theoretical understanding of the Convolutional Neural Nets, in particular its invertibility (i.e., reconstructing the input from the hidden activations), by analyzing a simplified mathematical model using random weights.1
18
+
19
+ This property is intriguing because convolutional neural networks are typically trained with discriminative objectives (i.e., unrelated to reconstruction) with a large amount of labels, such as the ImageNet dataset. For example, Dosovitskiy and Brox (2016) used upsampling-deconvolutional architectures to invert the hidden activations of feedforward CNNs to the input domain. In other related work, Zhao et al. (2016) proposed stacked a what-where network via a (deconvolutional) decoder and demonstrate its promise in unsupervised and semi-supervised settings. Bruna et al. (2014) studied signal discovery from generalized pooling operators using image patches on non-convolutional small scale networks and datasets. Zhang et al. (2016) showed that CNNs discriminately trained for image classification (e.g., VGG Net (Simonyan and Zisserman, 2015)) are almost fully invertible using pooling switches. Despite these interesting results, there is no clear theoretical explanation as to why CNNs are invertible yet.
20
+
21
+ We introduce three new concepts that, coupled with the accepted notion that images have sparse representations, guide our understanding of CNNs:
22
+
23
+ 1. we provide a particular model of sparse linear combinations of the learned filters that are consistent with natural images; also, this model of sparsity is itself consistent with the feedforward network;
24
+ 2. we show that the effective matrices that capture explicitly the convolution of multiple filters exhibit a model-Restricted Isometry Property (model-RIP) (Baraniuk et al., 2010); and
25
+ 3. our model can explain each layer of the feedforward CNN algorithm as one iteration of Iterative Hard Thresholding (IHT) (Blumensath and Davies, 2009) for model-based compressive sensing and, hence, we can reconstruct the input simply and accurately.
26
+
27
+ In other words, we give a theoretical connection to a particular model of model-based compressive sensing (and its recovery algorithms) and CNNs. We show empirically that large-scale deep convolution networks are consistent with our mathematical analysis. We then demonstrate that with such a simple theoretical framework, we can obtain reasonable reconstruction results on real images, using filters from trained networks. Finally, we observe that it makes a significant difference which filters one uses for encoding and decoding, whether they are trained specifically for reconstruction, or random, or the same for both procedures. This paper explores these properties and elucidate specific empirical aspects that any more sophisticated mathematical model should take into account.2
28
+
29
+ # 2 PRELIMINARIES
30
+
31
+ In this section, we set the stage for our mathematical analysis in Section 3. We begin with discussion on the use of random weights in (convolutional) neural networks, and then provide the definitions and models for CNNs. Then, we discuss compressive sensing and sparse signal recovery. We define a particular model of sparsity that we will use throughout our analysis and detail the Iterative Hard Thresholding (IHT) algorithm which is the basis of our reconstruction analysis.
32
+
33
+ In order to simplify our notation and to make clear our analysis, we focus on a single layer in the analysis instead of multiple layers.3 Also, we assume that all of our input signals are vectors rather than matrices and that any operations we would ordinarily carry out on images (e.g., convolving with a filter bank, dividing into regions over which we pool coefficients), we do on vectors with the appropriate modifications for a simplified structure. While these assumptions ease our exposition, they do not change the nature of our arguments nor their implications for images. Furthermore, we demonstrate the validity of our results in two-dimensional natural images.
34
+
35
+ # 2.1 EFFECTIVENESS OF GAUSSIAN RANDOM FILTERS
36
+
37
+ We analyze theoretically CNNs with Gaussian random filters, which have been surprisingly effective in unsupervised and supervised deep learning tasks. Jarrett et al. (2009) showed that random filters in 2-layer CNNs work well for image classification. In addition, Saxe et al. (2011) observed that convolutional layer followed by pooling layer is frequency selective and translation invariant, even with random filters, and these properties lead to good performance for object recognition tasks. On the other hand, Giryes et al. (2016) proved that CNNs with random Gaussian filters have metric preservation property, and they argued that the role of training is to select better hyperplanes discriminating classes by distorting boundary points among classes. According to their observation, random filters are in fact a good choice if training data are initially well-separated. Also, He et al. (2016) empirically showed that random weight CNNs can do image reconstruction well.
38
+
39
+ To better demonstrate the effectiveness of Gaussian random CNNs, we evaluate their classification performance on CIFAR-10; see Section 4.1 for details. We find that a 3-layer Gaussian random CNN is able to achieve $\sim 7 5 \%$ accuracy on the test set, with only the last classifier layer optimized, (see Table 1 for more details). Even though this number is far from the state-of-the-art results, it is surprisingly good considering the networks are almost untrained. Our theoretical results may provide another new perspective on explaining these phenomena.
40
+
41
+ $$
42
+ \begin{array} { r l } { W } & { x \quad = \quad h } \\ \underbrace { \frac { l } { \sqrt { 1 + \cdots } } - \cdots - \cdots } _ | \begin{array} { l } { \frac { l } { 1 } } \\ { \frac { l } { \sqrt { 1 + \cdots } } - \cdots - \cdots } \\ { \frac { l } { \sqrt { 1 + \cdots } } } \\ { \frac { l } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \\ { \frac { l } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \\ { \frac { l } { \sqrt { 1 + \cdots } } - \cdots - \cdots } \\ { \frac { l } { \sqrt { 1 + \cdots } } - \cdots - \cdots } \\ { \frac { l } { \sqrt { 1 + \cdots } } - \cdots - \cdot } \\ { \frac { l } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \cdots - \cdots } \\ { \frac { l } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \\ { \frac { l } { \sqrt { - \cdots } - \frac { l } { \sqrt { 1 + \cdots } } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \\ { \frac { l } { \sqrt { - \cdots } - \frac { l } { \sqrt { 1 + \cdots } } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \\ { \frac { l } { \sqrt { - \cdots } - \frac { l } { \sqrt { 1 + \cdots } } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \\ { \frac { l } { \sqrt { - \cdots } - \frac { l } { \sqrt { 1 + \cdots } } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \\ { \frac { l } { \sqrt { - \cdots } - \frac { l } { \sqrt { 1 + \cdots } } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \\ { \quad - \frac { l } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } - \frac { 1 } { \sqrt { 1 + \cdots } } } \end{array} ] , M [ \begin{array} { l } \frac { l } \end{array} \end{array}
43
+ $$
44
+
45
+ Figure 1: One-dimensional CNN architecture where $\boldsymbol { W } \in \mathbb { R } ^ { K n \times M D }$ is the matrix instantiation of convolution over $M$ channels with a filter bank consisting of $K$ different filters. Note that a filter bank has $\mathbf { K }$ filters of size $l \times M$ , such that there are $l M K$ parameters in this architecture.
46
+
47
+ # 2.2 CONVOLUTIONAL NEURAL NETS
48
+
49
+ We define a single layer of our CNN as follows. We assume that the input signal $_ { \textbf { \em x } }$ consists of $M$ channels, each of length $D$ , and we write $\pmb { x } \in \mathbb { R } ^ { M D }$ . For each of the input channels, $m = 1 , \ldots , M$ let ${ \pmb w } _ { i , m }$ , $i = 1 , \ldots , K$ denote one of $K$ filters, each of length $\ell$ . Let $t$ be the stride length, the number of indices by which we shift each filter. Note that $t$ can be larger than 1.
50
+
51
+ We assume that the number of shifts, $n = ( D - \ell ) / t + 1$ , is an integer. Let $\pmb { w } _ { i , m } ^ { j }$ be a vector of length $D$ that consists of the $( i , m )$ -th filter shifted by $j t , j = 0 , \ldots , n - 1$ (i.e., $\pmb { w } _ { i , m } ^ { j }$ has at most $\ell$ non-zero entries). We will concatenate over the $M$ channels each of these vectors (as row vectors) to form a large matrix, $W$ , which is the $K n \times M D$ matrix made up of $K$ blocks of the $n$ shifts of each filter in each of $M$ channels. We assume that $K n \ge M D$ . We also assume that the $K n$ row vectors of $W$ span $\mathbb { R } ^ { M D }$ and that we have normalized the rows so that they have unit $\ell _ { 2 }$ norm. We assume that the hidden units of the feed-forward CNN are computed by multiplying an input signal $\pmb { x } \in \mathbb { R } ^ { M D }$ by the matrix $W$ (i.e., convolving, in each channel, by a filter bank of size $K$ , and summing over the channels to obtain $K n$ outputs), applying the ReLU function to the $K n$ outputs, and then selecting the value with maximum absolute value in each of the $K$ blocks; i.e., we perform max pooling over each of the convolved filters and sum over the channels.4 We use $h = W x$ for the hidden activation computed by a single layer CNN without pooling. Figure 1 illustrates the architecture.
52
+
53
+ # 2.3 COMPRESSIVE SENSING
54
+
55
+ Let $\Phi$ be a $i \times j$ matrix with $j > i$ . We say that $\Phi$ satisfies the Restricted Isometry Property $\mathrm { R I P } ( k , \delta _ { k } )$ (or, just RIP) if there is a distortion factor $\delta _ { k } > 0$ such that for all $z \in \mathbb { R } ^ { j }$ with exactly $k$ non-zero entries, $( 1 - \delta _ { k } ) \| z \| _ { 2 } ^ { 2 } \leq \| \Phi z \| _ { 2 } ^ { 2 } \leq ( 1 + \delta _ { k } ) \| z \| _ { 2 } ^ { 2 }$ . If $\Phi$ satisfies RIP (for appropriate sparsity level $k$ and sufficiently small $\delta _ { k }$ ) and if $z \in \mathbb { R } ^ { j }$ is $k$ -sparse, then, given the vector $\mathbf { \bar { x } } = \Phi \boldsymbol { z } \in \bar { \mathbb { R } } ^ { i }$ , we can efficiently recover $_ z$ (see Candés (2008) for more details)5. There are many efficient algorithms for doing so, including $\ell _ { 1 }$ sparse coding (e.g., $\ell _ { 2 }$ minimization with $\ell _ { 1 }$ regularization) and greedy, iterative algorithms (such as Iterative Hard Thresholding or IHT).
56
+
57
+ Model-based compressive sensing. While sparse signals are a natural model for some applications, they are less realistic for CNNs. We consider a vector $z \in \mathbb { R } ^ { K n }$ as the true sparse code for generating the CNN input $_ { \textbf { \em x } }$ with a particular model of sparsity. Rather than permitting $k$ non-zero entries anywhere in the vector $_ z$ , we divide the support of $_ z$ into $K$ contiguous blocks of size $n$ and we stipulate that from each block there is at most one non-zero entry in $_ z$ with a total of $k$ non-zero entries. We call a vector with this sparsity model model- $k$ -sparse and denote the union of all $k$ - sparse subspaces with this structure analysis, we consider linear combinati $\mathcal { M } _ { k }$ . It is clear tof two model- at -s $\mathcal { M } _ { k }$ contains signals. $n ^ { k } \binom { K } { k }$ subspaces. In ourrecise, suppose that $k$ $z = \alpha _ { 1 } z _ { 1 } + \alpha _ { 2 } z _ { 2 }$ is the linear combination of two elements in $\mathcal { M } _ { k }$ . Then, we say that $_ z$ lies in the linear subspace $\mathcal { M } _ { k } ^ { 2 }$ that consists of all linear combinations of vectors from $\mathcal { M } _ { k }$ .
58
+
59
+ We say that a matrix $\Phi$ satisfies the model-RIP condition for parameter $k$ if, there is a distortion factor $\delta _ { k } > 0$ such that, for all $z \in \mathcal { M } _ { k }$ ,
60
+
61
+ $$
62
+ ( 1 - \delta _ { k } ) \| z \| _ { 2 } ^ { 2 } \leq \| \Phi z \| _ { 2 } ^ { 2 } \leq ( 1 + \delta _ { k } ) \| z \| _ { 2 } ^ { 2 } .
63
+ $$
64
+
65
+ See Baraniuk et al. (2010) for the definitions of model sparse and model-RIP, as well as the necessary modifications to account for signal noise and compressible (as opposed to exactly sparse) signals (which we have neglected to consider to keep our analysis simple). Intuitively speaking, a matrix that satisfies the model-RIP is a nearly an orthonormal matrix for a particular set of sparse vectors with a particular sparsity model or pattern.
66
+
67
+ For our analysis, we also need matrices $\Phi$ that satisfy the model-RIP condition for vectors $z \in \mathcal { M } _ { k } ^ { 2 }$ We denote the distortion factor $\delta _ { 2 k }$ for such matrices. Note that $\delta _ { k } \le \delta _ { 2 k } < 1$ .
68
+
69
+ # Algorithm 1 Model-based IHT
70
+
71
+ Input: model-RIP matrix $\Phi$ , measure ments $x = \Phi z$ , structured sparse approximation algorithm $\mathbb { M }$
72
+ Output: $k$ -sparse approximation $_ z$
73
+ 1: Initialize $z _ { \mathrm { 0 } } = \mathrm { 0 }$ , ${ \pmb d } = { \pmb x }$ , $i = 0$
74
+ 2: while stopping criteria not met do
75
+ 3: $\begin{array} { r l } & { i i + 1 } \\ & { b z _ { i - 1 } + \Phi ^ { T } d } \\ & { z _ { i } \mathbb { M } ( b , k ) } \\ & { d x - \Phi z _ { i } } \end{array}$
76
+ 4:
77
+ 5:
78
+ 6:
79
+ 7: end while
80
+ 8: return $z z _ { i }$
81
+
82
+ Many efficient algorithms have been proposed for sparse coding and compressive sensing (Olshausen et al., 1996; Mallat and Zhang, 1993; Beck and Teboulle, 2009). As with traditional compressive sensing, there are efficient algorithms for recovering model- $k$ -sparse signals from measurements (see Baraniuk et al. (2010)), assuming the existence of an efficient structured sparse approximation algorithm M, that given an input vector and the sparsity parameter, returns the vector closest to the input with the specified sparsity structure.
83
+
84
+ In convolutional neural networks, the max pooling operator finds the downsampled activations that are closest to the activations of the original size by retaining the most significant values. The max pooling can be viewed as two steps: 1) zeroing out the locally non-maximum values;
85
+
86
+ 2) downsampling the activations with the locally maximum values retained. To study the pooled activations with sparsity structures, we can recover dimension loss from the second step (downsampling step) by an unsampling operator. This procedure defines our structured sparse approximation algorithm $\mathbb { M } ( z , k )$ , where $_ { z }$ is the original (unpooled) code, and $k$ is the sparsity parameter for further sparsification, which guarantees that $\mathbb { M } ( z , k )$ is a model- $k$ -sparse signal. With the standard layered formulation for neural networks, we have
87
+
88
+ $$
89
+ \mathbb { M } ( z , k ) = \mathrm { b l o c k - s p a r s i f y } ( \operatorname { u p s a m p l e } ( \operatorname { m a x - p o o l } ( z ) , s ) , k ) ,
90
+ $$
91
+
92
+ where $\pmb { s }$ denotes the upsampling switches that indicate where to place the non-zero values in the upsampled activations. Taking the pooling switches known from the max pooling operation as $\pmb { s }$ , we specifically define $\mathbb { M }$ as the nesting of the max pooling and the unpooling with known switch. We define this special case as
93
+
94
+ $$
95
+ \mathbb { M } _ { \mathrm { k n o w n } } ( z , k ) = \mathrm { b l o c k - s p a r s i f y } ( \mathrm { u p s a m p l e } ( \operatorname* { m a x } \mathrm { - p o o l } ( z ) , \operatorname* { m a x } \mathrm { - p o o l } \mathrm { - s w i t c h } ( z ) ) , k ) .
96
+ $$
97
+
98
+ Alternatively, using the fixed uniform switches as $\pmb { s }$ , we specifically define $\mathbb { M }$ as the nesting of the max pooling and the naive unsampling, denoted by $\mathbb { M } _ { \mathrm { f i x e d } }$ . In the rest of this paper, our theoretical analysis are generic to any type of valid upsampling switches6, so we use $\mathbb { M } ( z , k )$ to denote the structured sparse approximation algorithm without worrying about $\pmb { s }$ . The two special cases $\mathbb { M } _ { \mathrm { k n o w n } }$ and $\mathbb { M } _ { \mathrm { f i x e d } }$ are used in the empirical analysis when we need to specify $\mathbb { M } ( z , k )$ as a fully concrete operator.
99
+
100
+ The main recovery algorithm that we focus on is a model-sparse version of Iterative Hard Thresholding (IHT) (see Blumensath and Davies (2009)), not because we are interested in recovering modelsparse signals, per se, but because one iteration of IHT for our model of sparsity captures exactly a feedforward CNN.7 Algorithm 1 describes the model-based IHT algorithm. In particular, the sequence of steps 4–6 in the middle IHT (without the outer iterative loop) is exactly one layer of a feedforward CNN. As a result, the theoretical analysis of IHT for model-based sparse signal recovery serves as a guide for how to analyze the approximation activations of a CNN.
101
+
102
+ # 3 ANALYSIS
103
+
104
+ To motivate our more formal analysis, we begin with a simple example. Suppose that the matrix $W$ is an orthonormal basis for $\mathbb { R } ^ { M D }$ and define $\mathbf { \bar { \Psi } } \mathbf { \Psi } \mathbf { \Psi } \mathbf { \Psi } \mathbf { \Psi } \mathbf { \bar { \Psi } } \mathbf { \Psi } \mathbf { \Psi } \mathbf { \Psi } \mathbf { \bar { \Psi } } - \mathbf { \bar { \Psi } } \mathbf { \Psi } \mathbf { \Psi } ^ { T } ]$ .
105
+
106
+ Proposition 1. A one-layer CNN using the matrix $\Psi ^ { T }$ , with no pooling, gives perfect reconstruction (with the matrix Ψ) for any input vector x ∈ RMD.
107
+
108
+ Proof. Because we have both the positive and the negative dot products of the signal with the basis vectors in ReL $\operatorname { U } ( \Psi ^ { T } \pmb { x } ) = \operatorname { R e L U } \bigg ( \bigg [ \pmb { W } \pmb { x } \bigg ] \bigg )$ , we have positive and negative versions of the hidden units $\pmb { h } _ { + } = \mathrm { R e L U } ( W \pmb { x } )$ and $\pmb { h } _ { - } = \mathrm { R e L U } ( - W \pmb { x } )$ where we decompose $\pmb { h } = \pmb { W } \pmb { x } = \pmb { h } _ { + } - \pmb { h } _ { - }$ into the difference of two non-negative vectors, the positive and the negative entries of $^ { h }$ . From this decomposition, we can easily reconstruct the original signal via
109
+
110
+ $$
111
+ \Psi \left[ \stackrel { h _ { + } } { h } \right] = \left[ W ^ { T } \quad - W ^ { T } \right] \left[ \stackrel { h _ { + } } { h } \right] = W ^ { T } ( h _ { + } - h _ { - } ) = W ^ { T } h = W ^ { T } W x = x .
112
+ $$
113
+
114
+ In the example above, we have pairs of vectors $( { \pmb w } , - { \pmb w } )$ in our matrix $\Psi$ . This settings allow us to turn what would ordinarily be a nonlinear function, ReLU, into a linear one. In fact, the assumption that trained CNN filters come in positive and negative is validated by Shang et al. (2016), which makes a CNN much easier to analyze within the model compressed sensing framework.
115
+
116
+ Suppose that we have a vector $_ { z }$ that we split into positive and negative components, $z = z _ { + } - z _ { - }$ , and that we synthesize (or construct) a signal $_ { \textbf { \em x } }$ from $_ z$ using the matrix $\begin{array} { r l } { \left[ \bar { W ^ { T } } \right. } & { { } \left. - W ^ { T } \right] } \end{array}$ . Then, we have
117
+
118
+ $$
119
+ \left[ \begin{array} { l l } { \boldsymbol { W } ^ { T } } & { - \boldsymbol { W } ^ { T } } \end{array} \right] \left[ \begin{array} { l } { \boldsymbol { z } _ { + } } \\ { \boldsymbol { z } _ { - } } \end{array} \right] = \boldsymbol { W } ^ { T } ( \boldsymbol { z } _ { + } - \boldsymbol { z } _ { - } ) = \mathbf { W } ^ { T } \boldsymbol { z } = \boldsymbol { x } .
120
+ $$
121
+
122
+ Next, suppose that we multiply $\mathbf { x } = \mathbf { W } ^ { T } z$ by the transpose of the same matrix, we find $\left[ { \frac { W } { - W } } \right] x =$ $\left[ \begin{array} { c } { W W ^ { T } z } \\ { - W W ^ { T } z } \end{array} \right]$ and, if we apply ReLU to this vector, we produce $\left[ \begin{array} { l } { ( W W ^ { T } z ) _ { + } } \\ { ( W W ^ { T } z ) _ { - } } \end{array} \right]$ a vector that is split into its positive and negative components. To determine whether or not we have “reconstructed” the vector $_ z$ , the structure of the product $W W ^ { T }$ is crucial. In addition, this calculation shows that if we have both positive and negative pairs of filters or vectors, then the ReLU function applied to both the positive and negative dot products simply splits the vector into the positive and negative components. These components are then reassembled in the next computation. For this reason, in the analysis in the following sections, it is sufficient to consider $\mathbf { \boldsymbol { W } } ^ { T } \boldsymbol { z } = \mathbf { \boldsymbol { x } }$ and $W x = h$ with max pooling alone applied to $^ { h }$ , assuming that all of the entries in the vectors are real numbers, rather than only non-negative.
123
+
124
+ # 3.1 MODEL-RIP AND RANDOM FILTERS
125
+
126
+ Our first main result says that if we use Gaussian random filters in our CNN, then, with high probability, the transpose of the matrix $W$ formed by the convolutions with these filters has the model-RIP property. In other words, Gaussian random filters generate a matrix whose transpose $W ^ { T }$ is almost an orthonormal transform for sparse signals with a particular sparsity pattern (that is consistent with our pooling procedure). The bounds in the theorem tell us that we must balance the size of the filters $\ell$ and the number of channels $M$ against the sparsity of the hidden units $k$ , the number of the filter banks $K$ , the number of shifts $n$ , the distortion parameter $\delta _ { k }$ , and the failure probability $\epsilon$ . The proof is in Appendix A.
127
+
128
+ Theorem 3.1. Assume that we have $M K$ vectors ${ \pmb w } _ { i , m }$ of length $\ell$ in which each entry is a scaled i.i.d. (sub-)Gaussian random variable with mean zero and variance $^ { l }$ (the scaling factor is $1 / { \sqrt { M \ell } } )$ . Let t be the stride length (where $n = ( D - \ell ) / t + 1 )$ and build the structured random matrix $W$ as the weight matrix in a single layer CNN for $M$ -channel input dimension $D$ . If
129
+
130
+ $$
131
+ \frac { M \ell ^ { 2 } } { D } \geq \frac { C k } { \delta _ { k } ^ { 2 } } \Big ( \log ( K ) + \log ( n ) - \log ( \epsilon ) \Big ) ,
132
+ $$
133
+
134
+ then, with probability $1 - \epsilon$ , the $M D \times K n$ matrix $W ^ { T }$ satisfies the model-RIP for model $\mathcal { M } _ { k }$ with parameter $\delta _ { k }$ .
135
+
136
+ We also note that the same analysis can be applied to the sum of two model- $k$ -sparse signals, with changes in the constants (that we do not track here).
137
+
138
+ Corollary 3.2. Random matrices with the CNN structure have, with high probability, the model-RIP property for $\mathcal { M } _ { k } ^ { 2 }$ .
139
+
140
+ Other examples of matrices that satisfy model-RIP (both empirically and via a less sophisticated analysis on the dot products between any two columns) include wavelets and localized Fourier bases; both examples that can be easily and efficiently implemented via convolutions in a CNN.
141
+
142
+ # 3.2 RECONSTRUCTION BOUNDS
143
+
144
+ To distinguish the true sparse code $_ z$ and its reconstruction, we use $\hat { z } = \mathbb { M } ( \boldsymbol { h } , \boldsymbol { k } ) = \mathbb { M } ( W \boldsymbol { x } , \boldsymbol { k } )$ for the reconstruction by CNN. Our next result tells us that if we compute the hidden units $^ { h }$ from an input signal $_ { \textbf { \em x } }$ using a weight matrix $W$ whose transpose has the model-RIP and using max pooling over each filter $( \hat { z } )$ , then we can reconstruct (approximately) the input signal $_ { \textbf { \em x } }$ simply by multiplying the hidden units by $W$ . This result bounds the relative error between the approximate reconstruction $\hat { \pmb x }$ and the input as a function of the distortion for the model-RIP. In our analysis, we assume that the input signal $\mathbf { \bar { x } } = \mathbf { W } ^ { T } \boldsymbol { z }$ is a sparse linear combination of hidden activations, captured approximately by the filters in $W$ . See Appendix B for the detailed proofs. Part of our analysis also shows that the hidden units $\hat { z }$ are approximately the putative coefficient vector $_ z$ in the sparse linear representation for the input signal.
145
+
146
+ Theorem 3.3. We assume that $W ^ { T }$ satisfies the $\mathcal { M } _ { k } ^ { 2 }$ -RIP with constant $\delta _ { k } \leq \delta _ { 2 k } < 1 .$ . If we use $W$ in a single layer CNN both to compute the hidden units $\hat { z }$ and to reconstruct the input $_ { \textbf { \em x } }$ from these hidden units as $\hat { \pmb x }$ so that $\hat { \pmb { x } } = \pmb { W } ^ { \hat { T } } \mathbb { M } ( \pmb { W } \pmb { x } , \boldsymbol { k } )$ , the error in our reconstruction is
147
+
148
+ $$
149
+ \| \hat { \pmb x } - \pmb x \| _ { 2 } \le \frac { 5 \delta _ { 2 k } } { 1 - \delta _ { k } } \frac { \sqrt { 1 + \delta _ { 2 k } } } { \sqrt { 1 - \delta _ { 2 k } } } \| \pmb x \| _ { 2 } .
150
+ $$
151
+
152
+ Recall that the structured sparsity approximation algorithm $\mathbb { M }$ includes the downsampling caused by pooling and an unsampling operator. Theorem 3.3 is applicable to any type of upsampling switches, so our reconstruction bound is generic to the particular design choice on how to recover the activation size in a decoding neural network.
153
+
154
+ # 4 EXPERIMENTAL EVIDENCE AND ANALYSIS
155
+
156
+ In this section, we provide experimental validation of our theoretical model and analysis. We first validate experimentally the relevance of our assumption by examining the effectiveness of random filter CNNs. We then provide an experimental validation of our theoretical analysis on the synthetic 1D case, then we provide experimental results on more realistic scenarios. In particular, we study popular deep neural networks trained for image classification on the ImageNet ILSVRC 2012 dataset (Deng et al., 2009). We calculate empirical model-RIP bounds for $\mathbf { \bar { W } } ^ { T }$ , showing that they are consistent with theory. Our results are also consistent with a long line of research shows that it is reasonable to model real, natural images as sparse linear combinations over learned dictionaries (e.g., Boureau et al. (2008); Le et al. (2013); Lee et al. (2008); Olshausen et al. (1996); Ranzato et al. (2007); Yang et al. (2010)). In addition, we verify our theoretical bounds for the reconstruction error $\| \pmb { x } - \pmb { W } ^ { T } \hat { \pmb { z } } \| _ { 2 } / \| \pmb { x } \| _ { 2 }$ on real images. (This is the relative $\ell _ { 2 }$ distance between the original image and the reconstruction.) We investigate both randomly sampled filters and empirically learned filters in these experiments. Our implementation is based on the Caffe (Jia et al., 2014) and MatConvNet (Vedaldi and Lenc, 2015) toolboxes.
157
+
158
+ # 4.1 EVALUATION OF GAUSSIAN RANDOM CNNS ON CIFAR-10
159
+
160
+ To show the practical relevance of our theoretical assumptions on using random filters for CNNs as stated in Section 2.1, we evaluate simple CNNs with Gaussian random filters (with i.i.d. zeromean unit-variance entries) on the CIFAR-10 dataset. The goal of this experiment is not to achieve state-of-the-art results, but to examine practical relevance of our assumption on random filter CNNs. Once the CNNs weights are initialized (randomly), they are fixed during the training of the classifiers. Specifically, we test random CNNs with 1, 2, and 3 convolutional layers, where we use ReLU as the activation. A $2 \times 2$ max pooling layer follows each convolutional layer to down-sample the feature map.8 We experiment with different filter sizes $( 3 , 5 , 7 )$ and numbers of channels (64, 128, 256, 1024, 2048) and report the classification accuracy of the best-performing architectures based on cross-validation in Table 1. We also report the best performance using learnable filters for comparison. More details about the architectures can be found in Section C.1 of the supplementary materials. We observe the CNNs with Gaussian random filters achieve surprisingly good classification performance (implying that they serve as reasonable representation of input data), although fully learnable CNN counterparts perform better. Our experimental results are also consistent with the observations made by Jarrett et al. (2009) and Saxe et al. (2011). Overall, these results seem to suggest that the CNNs with Gaussian random filters might be a reasonable setup which is amenable to mathematical analysis while not being too far off in terms of practical relevance.
161
+
162
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>1 layer</td><td rowspan=1 colspan=1>2 layers</td><td rowspan=1 colspan=1>3layers</td></tr><tr><td rowspan=1 colspan=1>Random filters</td><td rowspan=1 colspan=1>66.5%</td><td rowspan=1 colspan=1>74.6%</td><td rowspan=1 colspan=1>74.8%</td></tr><tr><td rowspan=1 colspan=1>Learned filters</td><td rowspan=1 colspan=1>68.1%</td><td rowspan=1 colspan=1>83.3%</td><td rowspan=1 colspan=1>89.3%</td></tr></table>
163
+
164
+ Table 1: Classification accuracy of CNNs with random and learnable filters on CIFAR-10. A typical layer consists of four operators: convolution, ReLU, batch normalization and max pooling. Networks with optimal filter size and numbers of output channels are used (see Section C.1 in the supplementary materials for the architecture details). The random filters, assumed in our theoretical analysis, perform reasonably well, not far off the learned filters.
165
+
166
+ # 4.2 EXPERIMENTAL VALIDATION OF THE ANALYSIS IN 1D SYNTHETIC DATA
167
+
168
+ We use 1-D synthetic data to empirically show the basic validity of our theory in terms of the modelRIP condition in Equation (1) and reconstruction bound in Theorem 3.3. We plot the histograms√ of the empirical model-RIP values of 1D Gaussian random filters $W$ ( scaled by $1 / \sqrt { l M }$ ) with size $l \times 1 \times M \times K = 5 \times 1 \times 3 2 \times 9 6$ on 1D $\mathcal { M } _ { k }$ sparse signal $_ z$ with size $D = 3 2$ and sparsity $k = 1 0$ , whose non-zero elements are drawn from a uniform distribution on $[ - 1 , 1 ]$ . The histograms in Figure 2a and 2b are tightly centered around 1, suggesting that $W ^ { T }$ satisfies the model-RIP condition in Equation (1) and its corollary from Lemma B.1 in the supplementary materials. We also empirically show the reconstruction bound in Theorem 3.3 on synthetic vectors $\mathbf { \Psi } _ { \pmb { x } } = \mathbf { W } ^ { T } \boldsymbol { z }$ (Figure 2c). The reconstruction error is concentrated at around 0.1–0.2 and bound under 0.5. Results in Figure 2 suggests the practical validity of our theory when the model assumptions hold.
169
+
170
+ # 4.3 ARCHITECTURES AND DATASET
171
+
172
+ We conduct the rest of our experimental evaluations on the 16-layer VGGNet (Model D in Simonyan and Zisserman (2015)),9 where the computation is carried out on images; e.g., convolution with a 2-D filter bank and pooling on square regions. In contrast to the theory, the realistic network does not pool activations over all the possible shifts for each filter, but rather on non-overlapping patches. The networks are trained for the large-scale ImageNet classification task, which is important for extending to other supervised tasks in vision. The main findings on VGGNet are presented in the rest of this section; we also provide some analysis on AlexNet (Krizhevsky et al., 2012) in the supplementary materials.
173
+
174
+ ![](images/008e336bf956f0a2eb88da5c96920cb856459bc5f3d19ed12bb8980dd3079c5c.jpg)
175
+ Figure 2: For 1D scaled Gaussian random filters $W$ , we plot the histogram of ratios (a) $\| \boldsymbol { W } ^ { T } \boldsymbol { z } \| _ { 2 } / \| \boldsymbol { z } \| _ { 2 }$ (modelRIP condition in Equation (1); supposed to be concentrated at 1), (b) $\| W W ^ { T } z \| _ { 2 } / \| z \| _ { 2 }$ (model-RIP corollary from Lemma B.1 in the supplementary materials; supposed to be concentrated at 1), and (c) $\| \hat { \pmb x } - \pmb x \| _ { 2 } / \| \pmb x \| _ { 2 }$ (reconstruction bound in Theorem 3.3, supposed to be small), where $_ { z }$ is a $\mathcal { M } _ { k }$ sparse signal that generates the vector $_ { \pmb { x } }$ and $\pmb { \hat { x } } = \pmb { W } ^ { T } \mathbb { M } _ { \mathrm { f i x e d } } ( \pmb { W } \pmb { x } , \hat { k } )$ is the reconstruction of $_ { \textbf { \em x } }$ , where we use the naive unsampling to recover the reduced dimension due to pooling (see Section 2.3).
176
+
177
+ <table><tr><td rowspan=1 colspan=1>layer</td><td rowspan=1 colspan=1>c(1,1)</td><td rowspan=1 colspan=1>c(1,2)</td><td rowspan=1 colspan=1>p(1)</td><td rowspan=1 colspan=1>c(2,1)</td><td rowspan=1 colspan=1>c(2,2)</td><td rowspan=1 colspan=1>p(2)</td><td rowspan=1 colspan=1>c(3,1)</td><td rowspan=1 colspan=1>c(3,2)</td><td rowspan=1 colspan=1>c(3,3)</td><td rowspan=1 colspan=1>p(3)</td></tr><tr><td rowspan=1 colspan=1>% of non-zeros</td><td rowspan=1 colspan=1>49.1</td><td rowspan=1 colspan=1>69.7</td><td rowspan=1 colspan=1>80.8</td><td rowspan=1 colspan=1>67.4</td><td rowspan=1 colspan=1>49.7</td><td rowspan=1 colspan=1>70.7</td><td rowspan=1 colspan=1>53.4</td><td rowspan=1 colspan=1>51.9</td><td rowspan=1 colspan=1>28.7</td><td rowspan=1 colspan=1>45.9</td></tr><tr><td rowspan=1 colspan=1>layer</td><td rowspan=1 colspan=1>c(4,1)</td><td rowspan=1 colspan=1>c(4,2)</td><td rowspan=1 colspan=1>c(4,3)</td><td rowspan=1 colspan=1>p(4)</td><td rowspan=1 colspan=1>c(5,1)</td><td rowspan=1 colspan=1>c(5,2)</td><td rowspan=1 colspan=1>c(5,3)</td><td rowspan=2 colspan=3>p(5)13.1</td></tr><tr><td rowspan=1 colspan=1>% of non-zeros</td><td rowspan=1 colspan=1>35.6</td><td rowspan=1 colspan=1>29.6</td><td rowspan=1 colspan=1>12.6</td><td rowspan=1 colspan=1>23.1</td><td rowspan=1 colspan=1>23.9</td><td rowspan=1 colspan=1>20.6</td><td rowspan=1 colspan=1>7.3</td></tr></table>
178
+
179
+ Table 2: Layer-wise sparsity of VGGNet on ILSVRC-2012 validation set. “c” stands for convolutional layers while “p” represents pooling layers. CNN with random filters in Section 4.4 can be simulated with the same sparsity.
180
+
181
+ VGGNet contains five groups of convolution and pooling layers, each group has 2\~3 convolutional layers followed by a pooling layer. We denote the $j$ -th convolutional layer in the $i$ -th group “conv $( i , j )$ ,” and the pooling layer “pool(i).” When we say the activations/features are from $i$ -th layer, we mean they are the output of $\mathsf { p o o l } ( i )$ . Our analysis is for single convolutional layers. When evaluating the $i$ -th layer, we take the activations from the $( i - 1 )$ -th layer, and investigate the filters and output of $\mathrm { c o n v } ( i , 1 )$ .
182
+
183
+ # 4.4 2D MODEL-RIP
184
+
185
+ The key to our reconstruction bound is Theorem 3.3 is the model-RIP condition for our particular model of sparsity in Equation (1). We empirically evaluate the model-RIP property, i.e., $\| \boldsymbol { W } ^ { \hat { T } } \boldsymbol { z } \| / \| \boldsymbol { z } \|$ , for real CNN filters of the pretrained VGGNet. We use two-dimensional coefficients (or hidden units) $_ z$ (each block of coefficients is of size $D \times D ,$ ), $K$ filters of size $\ell \times \ell$ , and pool the coefficients over smaller pooling regions (i.e., not over all possible shifts of each filter). The following experimental evidence suggest that the sparsity model and the model-RIP property of the filters are consistent with what we conclude from the mathematical analysis on the simpler one-dimensional case.
186
+
187
+ To check the significance of the model-RIP property (i.e., how close $\| \mathbfcal { W } ^ { T } z \| / \| z \|$ is to 1) in controlled settings, we first synthesize the hidden activations $_ z$ with sparse uniform random variables, which fully agree with our model assumptions. The sparsity of $_ { z }$ is constrained to the average level of the real CNN activations (refer to Table 2). Given the filters of a certain convolutional layer, we use the synthetic $_ z$ (in equal position to this layer’s output activations) to get statistics for the model-RIP property. To be consistent with succeeding experiments, we choose conv $( 5 , 2 )$ , while other layers show similar results. Figure 3 (a) summarizes the distribution of empirical model-RIP values, which is clearly centered around 1 and satisfies Equation (1) with a short tail roughly bounded by $\delta _ { k } < 1$ For more details of the algorithm, we normalize the filters from the conv $( 5 , 2 )$ layer, which are $\ell \times \ell$ $\ell = 3$ ). All $K = 5 1 2$ filters with $M = 5 1 2$ input channels are used.10 We set $D = 1 5$ (the same as the output activations of conv $( 5 , 2 )$ ) and use $2 \times 2$ pooling regions11 (commonly used in recent deep networks). We generate $1 0 0 0 \mathcal { M } _ { k }$ randomly sampled sparse activation $( z )$ maps by first sampling their non-zero supports and then filling elements on the supports uniformly from $[ - 1 , 1 ]$ . The sparsity is the same as that in $\mathrm { c o n v } ( 5 , 1 )$ activations.
188
+
189
+ ![](images/41941e45c936558ec0669584eb138f406609034351bd2117f34c7b9d9998ab09.jpg)
190
+ Figure 3: For VGGNet’s conv $( 5 , 2 )$ filters $W$ , we plot the histogram of ratios $\| \boldsymbol { W } ^ { T } \boldsymbol { z } \| _ { 2 } / \| \boldsymbol { z } \| _ { 2 }$ (the model-RIP value derived from Equation (1); supposed to be concentrated at 1) where $_ { z }$ is a $\mathcal { M } _ { k }$ sparse signal. (a) $_ { z }$ is randomly generated with the same sparsity as the conv $( 5 , 2 )$ activations and from a uniform distribution for the non-zero magnitude. (b) $_ { z }$ is recovered by Algorithm 2 from the conv(5,1) activations before applying ReLU. (c) $_ { z }$ is recovered by Algorithm 2 from the conv(5,1) activations after applying ReLU. The learned filters admits similar model-RIP value distributions to the random filters except for a bit larger bandwidth, which means the model-RIP condition in Equation (1) can empirically hold even when the filters do not necessarily subject to the i.i.d Gaussian random assumption.
191
+
192
+ To conduct more realistic experiments, we observe the actual conv $( 5 , 2 )$ activations from VGGNet are not necessarily drawn from a model-sparse uniform distribution. This motivates us to evaluate the empirical model-RIP property on the hidden activations $_ z$ that reconstruct the actual input activations $_ { \textbf { \em x } }$ from conv $( 5 , 1 )$ by $\dot { W } ^ { T } z$ . Per theory, the $_ { \textbf { \em x } }$ is given by a max pooling layer, so we constrain the sparsity
193
+
194
+ Algorithm 2 Sparse hidden activation recovery
195
+
196
+ Input: convolution matrix $W$ , input activation/image $_ { \textbf { \em x } }$
197
+
198
+ Output: hidden code $_ z$ , satisfying our model-RIP assumption with $\mathcal { M } _ { k }$ and reconstructing $_ { \textbf { \em x } }$ with $W$ $\begin{array} { r } { ! \ : \ z ^ { \mathrm { i n i t } } = \arg \operatorname* { m i n } _ { z } \left\| x - W ^ { T } z \right\| _ { 2 } ^ { 2 } + \lambda \| z \| _ { 1 } } \end{array}$
199
+ 2: $z ^ { \mathrm { m o d e l } } = \mathbb { M } _ { \mathrm { k n o w n } } ( z ^ { \mathrm { i n i t } } , k )$
200
+ 3: $\begin{array} { r } { z = \mathrm { a r g m i n } _ { z } \left\| \boldsymbol { x } - \boldsymbol { W } ^ { T } \boldsymbol { z } \right\| _ { 2 } ^ { 2 } + \lambda \| \boldsymbol { z } \| _ { 1 } , } \end{array}$ s.t. $z _ { i } = 0$ if $z _ { i } ^ { \mathrm { m o d e l } } = 0$
201
+
202
+ (i.e., the size of the support set is no more than 1 in a pooling region for a single channel). We use a simple and efficient algorithm to recover $_ z$ from $_ { \textbf { \em x } }$ in Algorithm 2. The algorithm is inspired by $^ { 6 6 } \ell _ { 1 }$ heuristic" method that are commonly used in practice (e.g. Boyd (2015)). As shown in Algorithm 2, we first do $\ell _ { 1 }$ -regularized least squares without constraining the support set. Max pooling is then applied to figure out the support set for each pooling region. In particular, we use $\mathbb { M } _ { \mathrm { k n o w n } }$ , defined in (3), to zero out the locally non-maximum values without messing up the support structures. We perform $\ell _ { 1 }$ -regularized least squares again on the fixed support set to recover the hidden activations satisfying the model sparsity. As shown in Figures 3 (b)–(c), the empirical model-RIP property values for visual activations $_ { \textbf { \em x } }$ from conv $( 5 , 1 )$ with/without ReLU are both close to 1. The center offset to 1 is less than 0.05 and the range bound $\delta _ { k }$ is rough less then 0.05, which agrees with the theoretical bound (1) quite well.
203
+
204
+ To gain more insight, we summarize the learned filter coherence in Table 4 for all the convolutional layers in VGGNet.12 This measures the correlation or similarity between the columns of $W ^ { T }$ and is a proxy for the value of the model-RIP parameter $\delta _ { k }$ (which we can only estimate computationally). The smaller the coherence, the smaller $\delta _ { k }$ is, and the better the reconstruction. The coherence of the learned filters is not low, which is inconsistent with our theoretical assumptions. However, the model-RIP property turns out to be robust to this mismatch. It also demonstrates the strong invertibility of CNN in practice.
205
+
206
+ # 4.5 RECONSTRUCTION BOUNDS
207
+
208
+ With model-RIP as a sufficient condition, Theorem 3.3 provides theoretical bounds for layer-wise reconstruction via $\pmb { \hat { x } } = \pmb { W } ^ { T } \mathbb { M } ( \pmb { W } \pmb { x } , \boldsymbol { k } )$ . This operator consists of the projection and reconstruction in one IHT iteration. Without confusion, we refer to it as IHT for notational convenience. We investigate the practical reconstruction errors on Layer 1\~4 activations (i.e., pool(1)\~(4)) of VGGNet.
209
+
210
+ To encode and reconstruct intermediate activations of CNNs, we employ IHT with sparsity estimated from the real CNN activations on ILSVRC-2012 validation set (see Table 2). We also reconstruct input images, since CNN inversion is not limited to a single layer, and images are easier to visualize than hidden activations. To implement image reconstruction, we project the reconstructed activations into the image space via a pretrained decoding network as in (Zhang et al., 2016), which extends a similar autoencoder architecture as in (Dosovitskiy and Brox, 2016) to a stacked “what-where” autoencoder (Zhao et al., 2016). The reconstructed activations were scaled to have the same norm as the original activations so that we can feed them into the decoding network.
211
+
212
+ ![](images/375179f41ca88f7856684055b31eed5eaeed185090332eaf25420aa0904b1243.jpg)
213
+ Figure 4: Visualization of images reconstructed by a pretrained decoding network with VGGNet’s pool(4) activation reconstructed using different methods: (a) original image, (b) output of the 5-layer decoding network with original activation, (c) output of the decoding net with reconstructed activation by IHT with learned filters, (d) output of the decoding net with reconstructed activation by IHT with Gaussian random filters, (e) output of the decoding net with Gaussian random activation.
214
+
215
+ As an example, Figure 4 illustrates the image reconstruction results for the hidden activations of the 4-th layer, the ground truth of which is obtained by feeding natural images to the CNNs. Interestingly, the decoding network itself is powerful, since it can reconstruct the glimpse of images with Gaussian random input, as shown in Figure 4 (e). Object shapes are recovered by using the pooling switches only in the “what-where” autoencoder. This result suggests that it is important to determine which pooling units are active and then to estimate these values accurately. These steps are consistent with the steps in the inner loop of any iterative sparse signal reconstruction algorithm.
216
+
217
+ In Figure 4 (c), we take the pretrained conv $( 5 , 1 )$ filters for IHT. The images recovered from the IHT reconstructed 4-th layer activations are reasonable and the reconstruction quality is significantly better than the random input baseline. We also try Gaussian random filters (Figure 4 (d)), which agree more with the model assumptions (e.g., lower coherence, see Table 4). The learned filters from VGGNet perform equally well visually. IHT ties the encoder and decoder weights (no filter learning for the decoder), so it does not perform as well as the decoding network trained with a huge batch of data (Figure 4 (b)). Nevertheless, we show both theoretically and experimentally decent reconstruction bounds for these simple reconstruction methods on real CNNs. More visualization results for more layers are in the supplementary materials (Figure 5 in Section C.3).
218
+
219
+ In Table 3, we summarize reconstruction performance for all 4 layers. With random filters, the model assumptions hold and the IHT reconstruction is the best quantitatively. IHT with real CNN filters performs comparable to the best case and much better than the baseline established by the randomly sampled activations.
220
+
221
+ Additionally, reconstruction performance of IHT is strongly related to the filter coherence, summarized in Table 4. Lower coherence agrees more closely with the model assumptions and leads to higher reconstruction quality. Higher coherence yields worse recovery of the hidden activation (i.e., large $\lVert \hat { z } - z \rVert$ , where $\hat { z }$ is the hidden activations recovered by IHT, $_ z$ is the true activation). Compared to Algorithm 2, (one-step) IHT is not so robust to high coherence.
222
+
223
+ In summary, when the assumption of i.i.d Gaussian randomness of the CNN filters holds, our theoretical reconstruction bound strictly match with the empirical observations. More importantly, we demonstrate that the bound can still reasonably hold in practice for discriminatively learned CNN layers, which is particularly true for layers with relatively lower coherence.
224
+
225
+ # 5 CONCLUSION
226
+
227
+ We introduce three concepts that tie together a particular model of compressive sensing (and the associated recovery algorithms), the properties of learned filters, and the empirical observation that CNNs are (approximately) invertible. Our experiments show that filters in trained CNNs are consistent with the mathematical properties we present while the hidden units exhibit a much richer structure than mathematical analysis suggests. Perhaps simply moving towards a compressive, rather than exactly sparse, model for the hidden units will capture the sophisticated structure in these layers of a CNN or, perhaps, we need a more sophisticated model. Our experiments also demonstrate that there is considerable information captured in the switch units (or the identities of the non-zeros in the hidden units after pooling) that no mathematical model has yet expressed or explored thoroughly.
228
+
229
+ Table 3: Layer-wise relative reconstruction errors by different methods in activation space and image space between reconstructed and original activations. For layer $_ { i }$ , we take its activation after pooling from that layer and reconstruct it with different methods (using learned filters from the layer above or scaled Gaussian random filters) and feed the reconstructed activation to a pretrained corresponding decoding network.13
230
+
231
+ <table><tr><td rowspan=2 colspan=1>layer</td><td rowspan=1 colspan=3>image space relative error</td><td rowspan=1 colspan=3>activation space relative error</td></tr><tr><td rowspan=1 colspan=1>learnedfilters</td><td rowspan=1 colspan=1>randomfilters</td><td rowspan=1 colspan=1>randomactivations</td><td rowspan=1 colspan=1>learnedfilters</td><td rowspan=1 colspan=1>randomfilters</td><td rowspan=1 colspan=1>randomactivations</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>0.423</td><td rowspan=1 colspan=1>0.380</td><td rowspan=1 colspan=1>0.610</td><td rowspan=1 colspan=1>0.895</td><td rowspan=1 colspan=1>0.872</td><td rowspan=1 colspan=1>1.414</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>0.692</td><td rowspan=1 colspan=1>0.438</td><td rowspan=1 colspan=1>0.864</td><td rowspan=1 colspan=1>0.961</td><td rowspan=1 colspan=1>0.926</td><td rowspan=1 colspan=1>1.414</td></tr><tr><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>0.326</td><td rowspan=1 colspan=1>0.345</td><td rowspan=1 colspan=1>0.652</td><td rowspan=1 colspan=1>0.912</td><td rowspan=1 colspan=1>0.862</td><td rowspan=1 colspan=1>1.414</td></tr><tr><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>0.379</td><td rowspan=1 colspan=1>0.357</td><td rowspan=1 colspan=1>0.436</td><td rowspan=1 colspan=1>1.051</td><td rowspan=1 colspan=1>0.992</td><td rowspan=1 colspan=1>1.414</td></tr></table>
232
+
233
+ Table 4: Comparison of coherence between learned filters in each convolutional layer of VGGNet and Gaussian random filters with corresponding sizes.
234
+
235
+ <table><tr><td rowspan=1 colspan=1>layer</td><td rowspan=1 colspan=1>(1,1)</td><td rowspan=1 colspan=1>(1,2)</td><td rowspan=1 colspan=1>(2,1)</td><td rowspan=1 colspan=1>(2,2)</td><td rowspan=1 colspan=1>(3,1)</td><td rowspan=1 colspan=1>(3,2)</td><td rowspan=1 colspan=1>(3.3)</td></tr><tr><td rowspan=1 colspan=1>coherence of learned flters</td><td rowspan=1 colspan=1>0.9427</td><td rowspan=1 colspan=1>0.7340</td><td rowspan=1 colspan=1>0.6435</td><td rowspan=1 colspan=1>0.7465</td><td rowspan=1 colspan=1>0.5838</td><td rowspan=1 colspan=1>0.4844</td><td rowspan=1 colspan=1>0.5194</td></tr><tr><td rowspan=1 colspan=1>coherence of random filters</td><td rowspan=1 colspan=1>0.6701</td><td rowspan=1 colspan=1>0.1218</td><td rowspan=1 colspan=1>0.1546</td><td rowspan=1 colspan=1>0.1053</td><td rowspan=1 colspan=1>0.1099</td><td rowspan=1 colspan=1>0.0895</td><td rowspan=1 colspan=1>0.0802</td></tr><tr><td rowspan=1 colspan=1>layer</td><td rowspan=1 colspan=1>(4,1)</td><td rowspan=1 colspan=1>(4,2)</td><td rowspan=1 colspan=1>(4,3)</td><td rowspan=1 colspan=1>(5,1)</td><td rowspan=1 colspan=1>(5,2)</td><td rowspan=3 colspan=2>(5.3)0.40460.0674</td></tr><tr><td rowspan=1 colspan=1>coherence of learned filters</td><td rowspan=1 colspan=1>0.4596</td><td rowspan=1 colspan=1>0.4574</td><td rowspan=1 colspan=1>0.4043</td><td rowspan=1 colspan=1>0.4099</td><td rowspan=1 colspan=1>0.4099</td><td rowspan=1 colspan=1>0.4046</td></tr><tr><td rowspan=1 colspan=1>coherence of random filters</td><td rowspan=1 colspan=1>0.0920</td><td rowspan=1 colspan=1>0.0619</td><td rowspan=1 colspan=1>0.0617</td><td rowspan=1 colspan=1>0.0696</td><td rowspan=1 colspan=1>0.0674</td><td rowspan=1 colspan=1>0.0674</td></tr></table>
236
+
237
+ # REFERENCES
238
+
239
+ S. Arora, A. Bhaskara, R. Ge, and T. Ma. Provable Bounds for Learning Some Deep Representations. ICML, pages 584–592, 2014.
240
+ S. Arora, Y. Liang, and T. Ma. Why are deep nets reversible: A simple theory, with implications for training. arXiv:1511.05653, 2015.
241
+ P. Baldi, P. Sadowski, and D. Whiteson. Searching for exotic particles in high-energy physics with deep learning. Nature communications, 5, 2014.
242
+ R. G. Baraniuk, V. Cevher, M. F. Duarte, and C. Hegde. Model-Based Compressive Sensing. IEEE Transactions on Information Theory, 56(4):1982–2001, 2010.
243
+ A. Beck and M. Teboulle. A fast iterative shrinkage-thresholding algorithm for linear inverse problems. SIAM Journal of Imaging Science, 2:183–202, 2009.
244
+ Y. Bengio, A. Courville, and P. Vincent. Representation Learning: A Review and New Perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8), 2013.
245
+ T. Blumensath and M. E. Davies. Iterative hard thresholding for compressed sensing. Applied and Computational Harmonic Analysis, 27(3):265–274, 2009.
246
+ Y.-l. Boureau, Y. L. Cun, et al. Sparse feature learning for deep belief networks. In NIPS, 2008.
247
+ S. Boyd. l1-norm methods for convex-cardinality problems, ee364b: Convex optimization ii lecture notes, 2014-2015 spring. 2015.
248
+ J. Bruna, A. Szlam, and Y. LeCun. Signal recovery from pooling representations. In ICML, pages 307–315, 2014.
249
+ E. J. Candés. The restricted isometry property and its implications for compressed sensing. Comptes Rendus Mathematique, 346(9):589–592, 2008.
250
+ D. Chicco, P. Sadowski, and P. Baldi. Deep autoencoder neural networks for gene ontology annotation predictions. In Proceedings of the 5th ACM Conference Bioinformatics, Computational Biology, and Health Informatics, pages 533–540, 2014.
251
+ K. Cho, B. Van Merriënboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014.
252
+ R. Collobert, J. Weston, L. Bottou, M. Karlen, K. Kavukcuoglu, and P. Kuksa. Natural language processing (almost) from scratch. Journal of Machine Learning Research, 12(Aug):2493–2537, 2011.
253
+ J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248–255, June 2009.
254
+ A. Dosovitskiy and T. Brox. Inverting visual representations with convolutional networks. CVPR, 2016.
255
+ R. Giryes, G. Sapiro, and A. M. Bronstein. Deep neural networks with random gaussian weights: A universal classification strategy? IEEE Transactions on Signal Processing, 64(13):3444–3457, 2016.
256
+ A. Hannun, C. Case, J. Casper, B. Catanzaro, G. Diamos, E. Elsen, R. Prenger, S. Satheesh, S. Sengupta, A. Coates, et al. Deep speech: Scaling up end-to-end speech recognition. arXiv preprint arXiv:1412.5567, 2014.
257
+ K. He, Y. Wang, and J. Hopcroft. A powerful generative model using random weights for the deep image representation. arXiv preprint arXiv:1606.04801, 2016.
258
+ G. Hinton, L. Deng, D. Yu, G. E. Dahl, A.-r. Mohamed, N. Jaitly, A. Senior, V. Vanhoucke, P. Nguyen, T. N. Sainath, et al. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine, 29(6):82–97, 2012.
259
+ K. Jarrett, K. Kavukcuoglu, M. Ranzato, and Y. LeCun. What is the best multi-stage architecture for object recognition? In ICCV, pages 2146–2153, 2009.
260
+ Y. Jia, E. Shelhamer, J. Donahue, S. Karayev, J. Long, R. Girshick, S. Guadarrama, and T. Darrell. Caffe: Convolutional architecture for fast feature embedding. arXiv:1408.5093, 2014.
261
+ A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, pages 1097–1105, 2012.
262
+ Q. V. Le, M. Ranzato, R. Monga, M. Devin, K. Chen, G. S. Corrado, J. Dean, and A. Y. Ng. Building high-level features using large scale unsupervised learning. In ICML, 2013.
263
+ Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, and L. D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1(4):541–551, 1989.
264
+ H. Lee, C. Ekanadham, and A. Y. Ng. Sparse deep belief net model for visual area v2. In NIPS, 2008.
265
+ S. Mallat and Z. Zhang. Matching pursuits with time-frequency dictionaries. IEEE Transactions on Signal Processing, 41:3397 – 3415, 1993.
266
+ T. Mikolov, I. Sutskever, K. Chen, G. S. Corrado, and J. Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pages 3111–3119, 2013.
267
+ B. A. Olshausen et al. Emergence of simple-cell receptive field properties by learning a sparse code for natural images. Nature, 381(6583):607–609, 1996.
268
+ J. Y. Park, H. L. Yap, C. Rozell, and M. B. Wakin. Concentration of Measure for Block Diagonal Matrices With Applications to Compressive Signal Processing. IEEE Transactions on Signal Processing, 59(12):5859–5875, 2011.
269
+ A. Paul and S. Venkatasubramanian. Why does Deep Learning work? - A perspective from Group Theory. arXiv.org, Dec. 2014.
270
+ M. A. Ranzato, F. J. Huang, Y.-L. Boureau, and Y. LeCun. Unsupervised learning of invariant feature hierarchies with applications to object recognition. In CVPR, 2007.
271
+ A. Saxe, P. W. Koh, Z. Chen, M. Bhand, B. Suresh, and A. Y. Ng. On random weights and unsupervised feature learning. In ICML, pages 1089–1096, 2011.
272
+ J. Schmidhuber. Deep learning in neural networks: An overview. Neural Networks, 2015.
273
+ W. Shang, K. Sohn, D. Almeida, and H. Lee. Understanding and improving convolutional neural networks via concatenated rectified linear units. In ICML, 2016.
274
+ K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
275
+ C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1–9, 2015.
276
+ A. Vedaldi and K. Lenc. Matconvnet – convolutional neural networks for matlab. In Proceeding of the ACM Int. Conf. on Multimedia, 2015.
277
+ R. Vershynin. Introduction to the non-asymptotic analysis of random matrices. arXiv.org, Nov. 2010.
278
+ J. Yang, J. Wright, T. S. Huang, and Y. Ma. Image super-resolution via sparse representation. Image Processing, IEEE Transactions on, 19(11):2861–2873, 2010.
279
+ Y. Zhang, K. Lee, and H. Lee. Augmenting neural networks with reconstructive decoding pathways for large-scale image classification. In ICML, 2016.
280
+ J. Zhao, M. Mathieu, R. Goroshin, and Y. Lecun. Stacked what-where auto-encoders. arXiv:1506.02351, 2016.
281
+
282
+ # Supplementary Materials: Towards Understanding the Invertibility of Convolutional Neural Networks
283
+
284
+ A MATHEMATICAL ANALYSIS: MODEL-RIP AND RANDOM FILTERS
285
+
286
+ Theorem 3.1(Restated) Assume that we have $M K$ vectors ${ \pmb w } _ { i , m }$ of length $\ell$ in which each entry is a scaled i.i.d. (sub-)Gaussian random variable with mean zero and variance√ $^ { l }$ (the scaling factor is $1 / \sqrt { M \ell } )$ . Let t be the stride length (where $n = ( D - \ell ) / t + 1 )$ and build the structured random matrix $W$ as the weight matrix in a single layer CNN for $M$ -channel input dimension $D$ . If
287
+
288
+ $$
289
+ \frac { M \ell ^ { 2 } } { D } \geq \frac { C k } { \delta _ { k } ^ { 2 } } \Big ( \log ( K ) + \log ( n ) - \log ( \epsilon ) \Big ) ,
290
+ $$
291
+
292
+ then, with probability $1 - \epsilon ,$ , the $M D \times K n$ matrix $W ^ { T }$ satisfies the model-RIP for model $\mathcal { M } _ { k }$ with parameter $\delta _ { k }$ .
293
+
294
+ Proof. We note that this result follows the same structure of that for many proofs of the RIP for (structured) random matrices (see Park et al. (2011); Vershynin (2010) for details) although we make minor tweaks to account for the particular structure of $W ^ { \overline { { T } } }$ .
295
+
296
+ Suppose that $z \in \mathcal { M } _ { k }$ which means that $_ z$ consists of at most $k$ non-zero entries that each appear in a distinct block of size $n$ (there are a total of $K$ blocks). First, we observe that the norm of $\dot { W } ^ { T } z$ is preserved in expectation.
297
+
298
+ # Lemma A.1.
299
+
300
+ $$
301
+ \mathbb { E } ( \| \boldsymbol { W } ^ { T } \boldsymbol { z } \| _ { 2 } ^ { 2 } ) = \| \boldsymbol { z } \| _ { 2 } ^ { 2 }
302
+ $$
303
+
304
+ Proof. Note that each entry of $W ^ { T }$ is either zero or Gaussian random variable $w \sim N ( 0 , 1 )$ (suitably normalized). Therefore, it is obvious that $\mathbb { E } ( W W ^ { T } ) = I$ since each row of $W$ satisfies $\mathbb { E } \left( \left( \boldsymbol { \omega } _ { i , m _ { 1 } } ^ { j _ { 1 } } \right) ^ { T } \left( \boldsymbol { \omega } _ { i , m _ { 2 } } ^ { j _ { 2 } } \right) \right) = 0$ if $j _ { 1 } \neq j _ { 2 }$ or $m _ { 1 } \neq m _ { 2 }$ , and we normalized the random variables so that $\mathbb { E } \left( \left\| \left[ \left( \boldsymbol { w } _ { i , 1 } ^ { j } \right) ^ { T } , \ldots , \left( \boldsymbol { w } _ { i , M } ^ { j } \right) ^ { T } \right] \right\| _ { 2 } \right) = 1$ for all $j$ . Finally, we have
305
+
306
+ $$
307
+ \begin{array} { r } { \mathbb { E } \left( \| \boldsymbol { W } ^ { T } \boldsymbol { z } \| _ { 2 } ^ { 2 } \right) = \mathbb { E } \left( \boldsymbol { z } ^ { T } \boldsymbol { W } \boldsymbol { W } ^ { T } \boldsymbol { z } \right) = \boldsymbol { z } ^ { T } \mathbb { E } \left( \boldsymbol { W } \boldsymbol { W } ^ { T } \right) \boldsymbol { z } = \boldsymbol { z } ^ { T } \boldsymbol { z } = \| \boldsymbol { z } \| _ { 2 } ^ { 2 } . } \end{array}
308
+ $$
309
+
310
+ Let $\begin{array} { r } { \pmb { y } = \pmb { W } ^ { T } \pmb { z } } \end{array}$ . We aim to show that the square norm of the random variable $\| \boldsymbol { y } \| _ { 2 } ^ { 2 }$ concentrates tightly about its mean; i.e., with exceedingly low probability
311
+
312
+ $$
313
+ \left| \| \pmb { y } \| _ { 2 } ^ { 2 } - \| \pmb { z } \| _ { 2 } ^ { 2 } \right| > \delta \| \pmb { z } \| _ { 2 } ^ { 2 } .
314
+ $$
315
+
316
+ To do so, we need several properties of sub-Gaussian and sub-exponential random variables. A mean-zero sub-Gaussian random variable $Z$ has a moment generating function that satisfies
317
+
318
+ $$
319
+ \mathbb { E } ( \exp ( t Z ) ) \le \exp ( t ^ { 2 } C ^ { 2 } )
320
+ $$
321
+
322
+ for all $t \in \mathbb { R }$ and some constant $C$ . The sub-Gaussian norm of $Z$ , denoted $\| Z \| _ { \psi _ { 2 } }$ is
323
+
324
+ $$
325
+ \| Z \| _ { \psi _ { 2 } } = \operatorname* { s u p } _ { p \geq 1 } { \frac { 1 } { \sqrt { p } } } \Bigl ( \mathbb { E } | Z | ^ { p } \Bigr ) ^ { 1 / p } .
326
+ $$
327
+
328
+ If $Z \sim N ( 0 , \sigma ^ { 2 } )$ , then $\| Z \| _ { \psi _ { 2 } } \leq c \sigma$ .
329
+
330
+ A sub-exponential random variable $X$ satisfies14
331
+
332
+ $$
333
+ \mathbb { P } \Big ( | X | > t \Big ) \le \exp ( 1 - t / C )
334
+ $$
335
+
336
+ for all $t \geq 0$ .
337
+
338
+ Let $\mathbf { \nabla } _ { \mathbf { \boldsymbol { y } } _ { i } }$ denote the $i$ th entry of the vector $\begin{array} { r } { \pmb { y } = \pmb { W } ^ { T } \pmb { z } } \end{array}$ . We can write
339
+
340
+ $$
341
+ \mathbf { \boldsymbol { y } } _ { i } = \sum _ { j = 1 } ^ { K n } \mathbf { \boldsymbol { W } } _ { i , j } ^ { T } \mathbf { \boldsymbol { z } } _ { j }
342
+ $$
343
+
344
+ and observe that $\mathbf { \nabla } _ { \mathbf { \psi } _ { 3 } } \psi _ { i }$ is a linear combination of i.i.d. sub-Gaussian random variables (or it is identically equal to 0) and, as such, is itself a sub-Gaussian random variable with mean zero and sub-Gaussian√ norm $\| \pmb { y _ { i } } \| _ { \psi _ { 2 } } \le C / \sqrt { M \ell } \| w \| _ { \psi _ { 2 } } \| z \| _ { 2 }$ (see Vershynin (2010), Lemma 5.9). The structure of the random matrix and how many non-zero entries are in row $i$ of $W$ do enter the more refined bound on the sub-Gaussian norm of $\left\| \boldsymbol { y } _ { i } \right\| _ { \psi _ { 2 } }$ (again, see Vershynin (2010), Lemma 5.9 for details) but we ignore such details for this estimate as they are not necessary for the next estimate.
345
+
346
+ To obtain a concentration bound for $\| \pmb { y } _ { i } \| _ { 2 } ^ { 2 }$ , we recall from Park et al. (2011); Vershynin (2010) that the sum of squares of sub-Gaussian random variables tightly concentrate.
347
+
348
+ Theorem A.2. Let $Y _ { 1 } , \dots , Y _ { M D }$ be independent sub-Gaussian random variables with sub-Gaussian norms $\| Y _ { i } \| _ { \psi _ { 2 } }$ for all $i = 1 , \ldots , M D$ . Let $T = \operatorname* { m a x } _ { i } \| Y _ { i } \| _ { \psi _ { 2 } }$ . The for every $t \geq 0$ and every a ∈ RMD,
349
+
350
+ $$
351
+ \mathbb { P } \Bigg ( \Big \vert \sum _ { i = 1 } ^ { M D } \pmb { a } _ { i } ( Y _ { i } - \mathbb { E } Y _ { i } ^ { 2 } ) \Big \vert \geq t \Bigg ) \leq 2 \exp \Bigg ( - C \operatorname* { m i n } \Big ( \frac { C t ^ { 2 } } { T ^ { 2 } \| \pmb { a } \| _ { 2 } ^ { 2 } } , \frac { C t } { T \| \pmb { a } \| _ { \infty } } \Big ) \Bigg ) .
352
+ $$
353
+
354
+ We note that although some entries $\mathbf { \nabla } _ { \mathbf { \psi } _ { 3 } } \psi _ { i }$ may be identically zero, depending on the sparsity pattern of $_ { z }$ , not all entries are. Let us define $\begin{array} { r } { \tilde { \pmb { y } } _ { i } = \frac { \pmb { y } _ { i } } { \lVert \pmb { y } _ { i } \rVert _ { \psi _ { 2 } } } } \end{array}$ so that $\| \tilde { \pmb y } _ { i } \| _ { \psi _ { 2 } } = 1$ and observe that
355
+
356
+ $$
357
+ \mathbb { P } \bigg ( \Big | \| \pmb { y } \| _ { 2 } ^ { 2 } - \| \pmb { z } \| _ { 2 } ^ { 2 } \Big | > \delta \| \pmb { z } \| _ { 2 } ^ { 2 } \bigg ) = \mathbb { P } \Bigg ( \Big | \sum _ { i = 1 } ^ { M D } \| \pmb { y } _ { i } \| _ { \psi _ { 2 } } ^ { 2 } \big ( \tilde { \pmb { y } } _ { i } ^ { 2 } - \mathbb { E } \tilde { \pmb { y } } _ { i } ^ { 2 } \big ) \Big | > \delta \| \pmb { z } \| _ { 2 } ^ { 2 } \Bigg ) .
358
+ $$
359
+
360
+ We apply Theorem A.2 to the sub-Gaussian random variables $\tilde { \mathbf { \ b { y } } } _ { i }$ with the weights $\| \pmb { y } _ { i } \| _ { \psi _ { 2 } } ^ { 2 }$ . We have
361
+
362
+ $$
363
+ \| \pmb { a } \| _ { 2 } ^ { 2 } = \sum _ { i = 1 } ^ { M D } \| \pmb { y } _ { i } \| _ { \psi _ { 2 } } ^ { 4 } \leq \frac { C D \| w \| _ { \psi _ { 2 } } ^ { 4 } \| \pmb { z } \| _ { 2 } ^ { 4 } } { M \ell ^ { 2 } } \quad \mathrm { a n d } \quad \| \pmb { a } \| _ { \infty } \leq \frac { C \| w \| _ { \psi _ { 2 } } ^ { 2 } \| \pmb { z } \| _ { 2 } ^ { 2 } } { M \ell } .
364
+ $$
365
+
366
+ If we set $T = 1$ , $t = \delta \| z \| _ { 2 } ^ { 2 }$ , and use the above estimates for the norms of $^ { a }$ , we have
367
+
368
+ $$
369
+ \mathbb { P } \bigg ( \Big | \| y \| _ { 2 } ^ { 2 } - \| z \| _ { 2 } ^ { 2 } \Big | > \delta \| z \| _ { 2 } ^ { 2 } \bigg ) \leq 2 \exp \bigg ( - C \operatorname* { m i n } \Big ( \frac { C \delta ^ { 2 } M \ell ^ { 2 } } { D \| w \| _ { \psi _ { 2 } } ^ { 4 } } , \frac { C \delta M \ell } { \| w \| _ { \psi _ { 2 } } ^ { 2 } } \Big ) \bigg ) .
370
+ $$
371
+
372
+ Finally, we use the concentration of measure result in a crude union bound to bound the failure probability over all vectors $z \in \mathcal { M } _ { k }$ . We take $n ^ { k } { \binom { K } { k } } \approx ( n K ) ^ { k }$ and $\epsilon$ for a desired constant failure probability. Using the smaller term in Equation (4), (note that $\delta < 1$ , $\ell / D < 1$ , and $\| w \| _ { \psi _ { 2 } } \geq 1 \qquad $ ) we have
373
+
374
+ $$
375
+ \exp \Big ( - C \frac { M \ell ^ { 2 } \delta ^ { 2 } } { D \| w \| _ { \psi _ { 2 } } ^ { 4 } } \Big ) \exp \Big ( k ( \log ( K ) + \log ( n ) ) \Big ) \leq \exp ( \log ( \epsilon ) )
376
+ $$
377
+
378
+ which implies
379
+
380
+ $$
381
+ \frac { M \ell ^ { 2 } } { D } \geq \frac { k } { \delta ^ { 2 } } \| w \| _ { \psi _ { 2 } } ^ { 4 } \bigg ( \log ( K ) + \log ( n ) - \log ( \epsilon ) \bigg ) = C \frac { k } { \delta ^ { 2 } } \Big ( \log ( K ) + \log ( n ) - \log ( \epsilon ) \Big ) .
382
+ $$
383
+
384
+ Therefore, if design our matrix $W$ as described and with the parameter relationship as above, the matrix $W ^ { T }$ with satisfy the model-RIP for $\mathcal { M } _ { k }$ and parameter $\delta$ with probability $1 - \epsilon$ . □
385
+
386
+ Let us discuss the relationship amongst the parameters in our result. First, if we have only one channel $M = 1$ and the filter length $\ell = D$ , then our bound on the number of measurements $D$ matches those of traditional (model-based) compressive sensing; namely,
387
+
388
+ $$
389
+ D \geq C { \frac { k } { \delta ^ { 2 } } } \left( \log ( K ) + \log ( n ) - \log ( \epsilon ) \right) .
390
+ $$
391
+
392
+ If $\ell < D$ (i.e., the filters are much shorter than the length of the input signal as in a CNN), then we can compensate by adding more channels; i.e., the filter length $\ell$ needs to be larger than $\sqrt { D }$ , or, if add more channels, $\sqrt { D / M }$ .
393
+
394
+ # B MATHEMATICAL ANALYSIS: RECONSTRUCTION BOUNDS
395
+
396
+ The consequences of having model-RIP are two-fold. The first is that if we assume that an input image is the structured sparse linear combination of filters, $\begin{array} { r } { \pmb { x } = \pmb { W } ^ { T } \pmb { z } } \end{array}$ (where $z \in \mathcal { M } _ { k }$ and $\dot { W } ^ { T }$ satisfies the model-RIP property), then we know an upper and lower bound on the norm of $_ { \textbf { \em x } }$ in terms of the norm of its sparse coefficients, $\| \pmb { x } \| _ { 2 } \le ( 1 \pm \bar { \delta } ) \| \geqslant \| _ { 2 }$ . Additionally,
397
+
398
+ $$
399
+ \| z \| _ { 2 } \leq { \frac { 1 } { \sqrt { 1 - \delta } } } \| x \| _ { 2 } .
400
+ $$
401
+
402
+ More importantly, when we calculate the hidden units of $_ { \textbf { \em x } }$ ,
403
+
404
+ $$
405
+ \pmb { h } = \mathrm { R e L U } ( \pmb { W } \pmb { x } ) = \mathrm { R e L U } ( \pmb { W } \pmb { W } ^ { T } \pmb { z } )
406
+ $$
407
+
408
+ we can see that the computation of $^ { h }$ is nothing other than the first step of a reconstruction algorithm analogous to that of model-based compressed sensing. As a result, we have a bound on the error between $^ { h }$ and $_ { z }$ and we see that we can analyze the approximation properties of a feedfoward CNN and its linear reconstruction algorithm. In particular, we can conclude that a feedforward CNN and a linear reconstruction algorithm provide a good approximation to the original input image.
409
+
410
+ Theorem 3.3(Restated) We assume that $W ^ { T }$ satisfies the $\mathcal { M } _ { k } ^ { 2 }$ -RIP with constant $\delta _ { k } \le \delta _ { 2 k } < 1$ . If we use $W$ in a single layer CNN both to compute the hidden units $\hat { z }$ and to reconstruct the input $_ { \textbf { \em x } }$ from these hidden units as $\hat { \pmb x }$ so that $\hat { \pmb { x } } = \pmb { W } ^ { \hat { T } } \mathbb { M } ( \pmb { W } \pmb { x } , \boldsymbol { k } )$ , the error in our reconstruction is
411
+
412
+ $$
413
+ \| \hat { \pmb x } - \pmb x \| _ { 2 } \le \frac { 5 \delta _ { 2 k } } { 1 - \delta _ { k } } \frac { \sqrt { 1 + \delta _ { 2 k } } } { \sqrt { 1 - \delta _ { 2 k } } } \| \pmb x \| _ { 2 } .
414
+ $$
415
+
416
+ Proof. To show this result, we recall the two following lemmas from Baraniuk et al. (2010) and rephrase them in the setting of a feedforward CNN.
417
+
418
+ Lemma B.1. Suppose $W ^ { T }$ has $\mathcal { M } _ { k }$ -RIP with constant $\delta _ { k }$ . Let $\Omega$ be a support corresponding to a subspace in $\mathcal { M } _ { k }$ . Then we have the following bounds:
419
+
420
+ $$
421
+ \begin{array} { r } { \| \pmb { W } _ { \Omega } \pmb { x } \| _ { 2 } \le \sqrt { 1 + \delta _ { k } } \| \pmb { x } \| _ { 2 } } \\ { \| \pmb { W } _ { \Omega } \pmb { W } _ { \Omega } ^ { T } \pmb { z } \| _ { 2 } \le ( 1 + \delta _ { k } ) \| \pmb { z } \| _ { 2 } } \\ { \| \pmb { W } _ { \Omega } \pmb { W } _ { \Omega } ^ { T } \pmb { z } \| _ { 2 } \ge ( 1 - \delta _ { k } ) \| \pmb { z } \| _ { 2 } } \end{array}
422
+ $$
423
+
424
+ Lemma B.2. Suppose that $W ^ { T }$ has $\mathcal { M } _ { k } ^ { 2 }$ -RIP with constant $\delta _ { 2 k }$ . Let $\Omega$ be a support corresponding to a subspace of $\mathcal { M } _ { k }$ and suppose that $\boldsymbol { z } \in \mathcal { M } _ { k }$ (not necessarily supported on $\Omega$ ). Then
425
+
426
+ $$
427
+ \begin{array} { r } { \| { W _ { \Omega } } { W ^ { T } } { z } | _ { \Omega ^ { c } } \| _ { 2 } \leq \delta _ { 2 k } \| { z } | _ { \Omega ^ { c } } \| _ { 2 } . } \end{array}
428
+ $$
429
+
430
+ Let $\Pi$ denote the support of the $\mathcal { M } _ { k }$ sparse vector $_ { z }$ . Set $h = W x$ and set $\hat { z }$ to be the result of max pooling applied to the vector $^ { h }$ , or the best fit (with respect to the $\ell _ { 2 }$ norm) to $^ { h }$ in the model $\mathcal { M } _ { k }$ Let $\Omega$ denote the support set of $\hat { z } \in \mathcal { M } _ { k }$ . For simplicity, we assume $| \Pi | = k = | \Omega |$ .
431
+
432
+ Lemma B.3 (Identification). The support set, $\Omega$ , of the switch units captures a significant fraction of the total energy in the coefficient vector $_ z$
433
+
434
+ $$
435
+ \| z | _ { \Omega ^ { c } } \| _ { 2 } \leq \frac { 2 \delta _ { 2 k } } { 1 - \delta _ { k } } \| z \| _ { 2 } .
436
+ $$
437
+
438
+ Proof. Let $h _ { \Omega }$ and $h _ { \mathrm { I I } }$ be the vector $^ { h }$ restricted to the support sets $\Omega$ and $\Pi$ , respectively. Since both are support sets for $\mathcal { M } _ { k }$ and since $\Omega$ is the best support set for $^ { h }$ ,
439
+
440
+ $$
441
+ \| h - h _ { \Omega } \| _ { 2 } \leq \| h - h _ { \Pi } \| _ { 2 } ,
442
+ $$
443
+
444
+ and, after several calculations, we have
445
+
446
+ $$
447
+ \| h | _ { \Omega \backslash \Pi } \| _ { 2 } ^ { 2 } \geq \| h | _ { \Pi \backslash \Omega } \| _ { 2 } ^ { 2 } .
448
+ $$
449
+
450
+ Using Lemma B.2 and the size $| ( \Omega \setminus \Pi ) \bigcup \Pi | \leq 2 k$ , we have
451
+
452
+ $$
453
+ \begin{array} { r } { \| h _ { \Omega \setminus \Pi } \| _ { 2 } = \| W _ { \Omega \setminus \Pi } W ^ { T } z \| _ { 2 } \leq \delta _ { 2 k } \| z \| _ { 2 } . } \end{array}
454
+ $$
455
+
456
+ We can bound the other side of the inequality as
457
+
458
+ $$
459
+ \begin{array} { r l } & { \| \pmb { h } _ { \Pi \setminus \Omega } \| _ { 2 } \geq \| \pmb { W } _ { \Pi \setminus \Omega } ( \pmb { W } ^ { T } z | _ { \Pi \setminus \Omega } ) \| _ { 2 } - \| \pmb { W } _ { \Pi \setminus \Omega } ( \pmb { W } ^ { T } z | _ { \Omega } ) \| _ { 2 } } \\ & { \qquad \geq ( 1 - \delta _ { k } ) \| z | _ { \Pi \setminus \Omega } \| _ { 2 } - \delta _ { 2 k } \| z | _ { \Omega } \| _ { 2 } . } \end{array}
460
+ $$
461
+
462
+ Since the support of $_ z$ is the set $\Pi$ $, \Pi \setminus \Omega = \Omega ^ { c }$ and we can conclude that
463
+
464
+ $$
465
+ \begin{array} { r } { \delta _ { 2 k } \| z \| _ { 2 } \geq ( 1 - \delta _ { k } ) \| z | _ { \Omega ^ { c } } \| _ { 2 } - \delta _ { 2 k } \| z | _ { \Omega } \| _ { 2 } , } \end{array}
466
+ $$
467
+
468
+ and with some rearrangement, we have
469
+
470
+ $$
471
+ \| z | _ { \Omega ^ { c } } \| _ { 2 } \leq \frac { 2 \delta _ { 2 k } } { 1 - \delta _ { k } } \| z \| _ { 2 } .
472
+ $$
473
+
474
+ To set the value of $\hat { z }$ on its support set $\Omega$ , we simply set $\hat { z } = h | _ { \Omega }$ and $\hat { z } | _ { \Omega ^ { c } } = 0$ . Then
475
+
476
+ Lemma B.4 (Estimation).
477
+
478
+ $$
479
+ \| z - \hat { z } \| _ { 2 } \leq \frac { 5 \delta _ { 2 k } } { 1 - \delta _ { k } } \| z \| _ { 2 }
480
+ $$
481
+
482
+ Proof. First, note that $\lVert \pmb { I } - \pmb { W } _ { \Omega } \pmb { W } _ { \Omega } ^ { T } \rVert _ { 2 } \leq \delta _ { k }$ since
483
+
484
+ $$
485
+ ( 1 - \delta _ { k } ) \leq \operatorname* { s u p } _ { \| \boldsymbol { z } \| \neq 0 } \frac { \| \boldsymbol { W } _ { \Omega } ^ { T } \boldsymbol { z } \| _ { 2 } ^ { 2 } } { \| \boldsymbol { z } \| _ { 2 } ^ { 2 } } \left( = \sigma _ { \operatorname* { m a x } } ^ { 2 } ( \boldsymbol { W } _ { \Omega } ^ { T } ) = \sigma _ { \operatorname* { m a x } } ( \boldsymbol { W } _ { \Omega } \boldsymbol { W } _ { \Omega } ^ { T } ) \right) \leq ( 1 + \delta _ { k } ) ,
486
+ $$
487
+
488
+ where $\sigma _ { \mathrm { m a x } }$ is the maximum singular value. Therefore,
489
+
490
+ $$
491
+ \begin{array} { r l } { \| z - \hat { z } \| _ { 2 } \leq \| z | _ { \Omega ^ { c } } \| _ { 2 } + \| z | _ { \Omega } - \hat { z } | _ { \Omega } \| _ { 2 } } \\ & { \qquad = \| z | _ { \Omega ^ { c } } \| _ { 2 } + \| z | _ { \Omega } - W _ { \Omega } ( W ^ { T } z | _ { \Omega } + W ^ { T } z | _ { \Omega ^ { c } } ) \| _ { 2 } } \\ & { \qquad \leq \| z \| _ { \Omega ^ { c } } \| _ { 2 } + \| ( I - W _ { \Omega } W _ { \Omega } ^ { T } ) z | _ { \Omega } \| _ { 2 } + \| W _ { \Omega } W ^ { T } z | _ { \Omega ^ { c } } \| _ { 2 } } \\ & { \qquad \leq \| z \| _ { \Omega ^ { c } } \| _ { 2 } + \| I - W _ { \Omega } W _ { \Omega } ^ { T } \| _ { 2 } \| z \| _ { \Omega } \| _ { 2 } + \delta _ { 2 k } \| z | _ { \Omega ^ { c } } \| _ { 2 } } \\ & { \qquad \leq \| z | _ { \Omega ^ { c } } \| _ { 2 } + \delta _ { k } \| z | _ { \Omega } \| _ { 2 } + \delta _ { 2 k } \| z \| _ { \Omega ^ { c } } \| _ { 2 } } \\ & { \qquad \leq \Big ( ( 1 + \delta _ { 2 k } ) \frac { 2 \delta _ { 2 k } } { 1 - \delta _ { k } } + \delta _ { k } \Big ) \| z \| _ { 2 } } \\ & { \qquad \leq \frac { 5 \delta _ { 2 k } } { 1 - \delta _ { k } } \| z \| _ { 2 } . } \end{array}
492
+ $$
493
+
494
+ Finally, if we use the autoencoder formulation to reconstruct the original image $_ { \textbf { \em x } }$ by setting ${ \hat { \mathbf { x } } } =$ $W ^ { T } \hat { z }$ , we can estimate the reconstruction error. We note that $\hat { z }$ is $\mathcal { M } _ { k }$ -sparse by construction and remind the reader that $W ^ { T }$ satisfies $\mathcal { M } _ { k } ^ { 2 }$ -model-RIP with constants $\delta _ { k } \le \delta _ { 2 k } \ll 1$ . Then, using Lemma B.4 as well as the $\mathcal { M } _ { k } ^ { 2 }$ -sparse properties of $W ^ { T }$ ,
495
+
496
+ $$
497
+ \begin{array} { r l } & { \| \boldsymbol { x } - \hat { \boldsymbol { x } } \| _ { 2 } = \| \boldsymbol { W } ^ { T } ( \boldsymbol { z } - \hat { \boldsymbol { z } } ) \| _ { 2 } \leq \sqrt { 1 + \delta _ { 2 k } } \| \boldsymbol { z } - \hat { \boldsymbol { z } } \| _ { 2 } } \\ & { \qquad \leq \displaystyle \frac { 5 \delta _ { 2 k } } { 1 - \delta _ { k } } \sqrt { 1 + \delta _ { 2 k } } \| \boldsymbol { z } \| _ { 2 } } \\ & { \qquad \leq \displaystyle \frac { 5 \delta _ { 2 k } } { 1 - \delta _ { k } } \frac { \sqrt { 1 + \delta _ { 2 k } } } { \sqrt { 1 - \delta _ { 2 k } } } \| \boldsymbol { x } \| _ { 2 } . } \end{array}
498
+ $$
499
+
500
+ This proves that a feedforward CNN with a linear reconstruction algorithm is an approximate autoencoder and bounds the reconstruction error of the input image in terms of the geometric properties of the filters. □
501
+
502
+ # C MORE EXPERIMENTAL RESULTS
503
+
504
+ # C.1 MORE DETAILS ON EVALUATION OF CNNS WITH GAUSSIAN RANDOM FILTERS
505
+
506
+ In this section, we provide more details on the network architectures that we used in Table 1. In particular, we describe the best performing architectures for all cases in Table 5.
507
+
508
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>#Layers</td><td rowspan=1 colspan=1>1 layers</td><td rowspan=1 colspan=1>2 layers</td><td rowspan=1 colspan=1>3layers</td></tr><tr><td rowspan=2 colspan=1>Random filters</td><td rowspan=1 colspan=1>Bestparam.</td><td rowspan=1 colspan=1>(2048)5c-2pmax-4pave</td><td rowspan=1 colspan=1>(2048)3c-2pmax-(2048)3c-2pmax-2pave</td><td rowspan=1 colspan=1>(2048)3c-2pmax-(2048)3c-2pmax-(1024)3c-2pmax</td></tr><tr><td rowspan=1 colspan=1>Accuracy</td><td rowspan=1 colspan=1>66.5%</td><td rowspan=1 colspan=1>74.6%</td><td rowspan=1 colspan=1>74.8%</td></tr><tr><td rowspan=1 colspan=1>Learned filters</td><td rowspan=1 colspan=1>Bestparam.</td><td rowspan=1 colspan=1>(1024)5c-2pmax-4pave</td><td rowspan=1 colspan=1>(1024)3c-2pmax-(1024)3c-2pmax-2pave</td><td rowspan=1 colspan=1>(1024)3c-2pmax-(1024)3c-2pmax-(1024)3c-2pmax</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Accuracy</td><td rowspan=1 colspan=1>68.1%</td><td rowspan=1 colspan=1>83.3%</td><td rowspan=1 colspan=1>89.3%</td></tr></table>
509
+
510
+ Table 5: Best-performing architecture and classification accuracy of random CNNs on CIFAR-10. “ $\mathbf { \bar { \rho } } ( [ \mathbf { n } ] ) [ \mathbf { k } ] \mathbf { c } ^ { \prime }$ denotes a convolution layer with a stride 1, a kernel size [k] and $[ \mathbf { n } ]$ output channels, “ $\mathbf { \hat { \rho } } [ \mathbf { k } ] \mathbf { p } _ { \mathrm { m a x } } \mathbf { \hat { \rho } } ^ { \mathrm { , , } }$ denotes a max pooling layer with a kernel size [k] and a stride [k], and “ $[ \mathbf { k } ] \mathbf { p } _ { \mathrm { a v e } }$ ” denotes a average pooling layer. A typical layer consists of four operations, namely convolution, ReLU, batch normalization, and max pooling.
511
+
512
+ # C.2 LAYER-WISE COHERENCE AND SPARSITY FOR ALEXNET
513
+
514
+ We present coherence (see Table 6) and sparsity level (see Table 7) for each layer in AlexNet.
515
+
516
+ <table><tr><td rowspan=1 colspan=1>layer</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td></tr><tr><td rowspan=1 colspan=1>coherence of learned filters</td><td rowspan=1 colspan=1>0.9172</td><td rowspan=1 colspan=1>0.6643</td><td rowspan=1 colspan=1>0.6200</td><td rowspan=1 colspan=1>0.6382</td><td rowspan=1 colspan=1>0.3390</td></tr><tr><td rowspan=1 colspan=1>coherence of random filters</td><td rowspan=1 colspan=1>0.1996</td><td rowspan=1 colspan=1>0.1263</td><td rowspan=1 colspan=1>0.0929</td><td rowspan=1 colspan=1>0.1073</td><td rowspan=1 colspan=1>0.1026</td></tr></table>
517
+
518
+ Table 6: Comparison of coherence between learned filters in each layer of AlexNet and Gaussian random filters with corresponding sizes.
519
+
520
+ Table 7: Layer-wise sparsity of AlexNet on ILSVRC-2012 validation set.
521
+
522
+ <table><tr><td rowspan=1 colspan=1>layer</td><td rowspan=1 colspan=1>conv1</td><td rowspan=1 colspan=1>pool1</td><td rowspan=1 colspan=1>conv2</td><td rowspan=1 colspan=1>pool2</td><td rowspan=1 colspan=1>conv3</td><td rowspan=1 colspan=1>conv4</td><td rowspan=1 colspan=1>conv5</td><td rowspan=1 colspan=1>pool5</td></tr><tr><td rowspan=1 colspan=1>% of non-zeros</td><td rowspan=1 colspan=1>49.41</td><td rowspan=1 colspan=1>87.79</td><td rowspan=1 colspan=1>18.97</td><td rowspan=1 colspan=1>44.13</td><td rowspan=1 colspan=1>31.08</td><td rowspan=1 colspan=1>30.95</td><td rowspan=1 colspan=1>9.78</td><td rowspan=1 colspan=1>28.15</td></tr></table>
523
+
524
+ # C.3 VISUALIZATION OF IMAGE RECONSTRUCTION FOR VGGNET
525
+
526
+ In Figure 5, we show reconstructed images from each layer using different reconstruction methods via a pretrained decoding network.
527
+
528
+ ![](images/0fb08787f047b1f3867e5502fbd4913d09fb911922d33549974279eeab7ad304.jpg)
529
+ Figure 5: Visualization of images reconstructed by a pretrained decoding network with VGGNet’s pool(4) activation reconstructed using different methods: (a) original image, (b) output of the 5-layer decoding network with original activation, (c) output of the decoding net with reconstructed activation by IHT with learned filters, (d) output of the decoding net with reconstructed activation by IHT with Gaussian random filters, (e) output of the decoding net with Gaussian random activation.
parse/train/B1mAJI9gl/B1mAJI9gl_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1mAJI9gl/B1mAJI9gl_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1mAJI9gl/B1mAJI9gl_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJxdTxHYvB/HJxdTxHYvB.md ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BREAKING CERTIFIED DEFENSES: SEMANTIC ADVERSARIAL EXAMPLES WITH SPOOFED ROBUSTNESS CERTIFICATES
2
+
3
+ Amin Ghiasi ∗, Ali Shafahi∗& Tom Goldstein University of Maryland {amin,ashafahi,tomg}@cs.umd.edu
4
+
5
+ # ABSTRACT
6
+
7
+ To deflect adversarial attacks, a range of “certified” classifiers have been proposed. In addition to labeling an image, certified classifiers produce (when possible) a certificate guaranteeing that the input image is not an $\ell _ { p }$ -bounded adversarial example. We present a new attack that exploits not only the labelling function of a classifier, but also the certificate generator. The proposed method applies large perturbations that place images far from a class boundary while maintaining the imperceptibility property of adversarial examples. The proposed “Shadow Attack” causes certifiably robust networks to mislabel an image and simultaneously produce a “spoofed” certificate of robustness.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Conventional training of neural networks has been shown to produce classifiers that are highly sensitive to adversarial perturbations (Szegedy et al., 2013; Biggio et al., 2013), “natural looking” images that have been manipulated to cause misclassification by a neural network (Figure 1). While a wide range of defenses exist that harden neural networks against such attacks (Madry et al., 2017; Shafahi et al., 2019), defenses based on heuristics and tricks are often easily breakable Athalye et al. (2018). This has motivated work on certifiably secure networks — classifiers that produce a label for an image, and also (when possible) a rigorous guarantee that the input is not adversarially manipulated (Cohen et al., 2019; Zhang et al., 2019b).
12
+
13
+ ![](images/6fc58ab73a4902f4dbbe81e77916649e9c2d1bb3d02936255f50a90ec669d0c1.jpg)
14
+ Figure 1: All adversarial examples have the goal of fooling classifiers while looking “natural”. Standard attacks limit the $\ell _ { p }$ -norm of the perturbation, while semantic attacks have large $\ell _ { p }$ -norm while still producing natural looking images. Our attack produces large but visually subtle semantic perturbations that not only cause misclassification, but also cause a certified defense to issue a “spoofed” high-confidence certificate. In this case, a certified Gaussian smoothing classifier mislabels the image, and yet issues a certificate with radius 0.24, which is a larger certified radius than its corresponding unmodified ImageNet image which is 0.13.
15
+
16
+ To date, all work on certifiable defenses has focused on deflecting $\ell _ { p }$ -bounded attacks, where $p = 2$ or $\infty$ (Cohen et al., 2019; Gowal et al., 2018; Wong et al., 2018). After labelling an image, these defenses then check whether there exists an image of a different label within $\epsilon$ units (in the $\ell _ { p }$ metric) of the input, where $\epsilon$ is a security parameter chosen by the user. If the classifier assigns all images within the $\epsilon$ ball the same class label, then a certificate is issued, and the input image known not to be an $\ell _ { p }$ adversarial example.
17
+
18
+ In this work, we demonstrate how a system that relies on certificates as a measure of label security can be exploited. We present a new class of adversarial examples that target not only the classifier output label, but also the certificate. We do this by adding adversarial perturbations to images that are large in the $\ell _ { p }$ norm (larger than the $\epsilon$ used by the certificate generator), and produce attack images that are surrounded by a large ball exclusively containing images of the same label. The resulting attacks produce a “spoofed” certificate with a seemingly strong security guarantee despite being adversarially manipulated. Note that the statement made by the certificate (i.e., that the input image is not an $\epsilon$ adversarial example in the chosen norm) is still technically correct, however in this case the adversary is hiding behind a certificate to avoid detection by a certifiable defense.
19
+
20
+ In summary, we consider methods that attack a certified classifier in the following sense:
21
+
22
+ • Imperceptibility: the adversarial example “looks like” its corresponding natural base example,
23
+ • Misclassification: the certified classifier assigns an incorrect label to the adversarial example, and
24
+ • Strongly certified: the certified classifier provides a strong/large-radius certificate for the adversarial example.
25
+
26
+ While the existence of such an attack does not invalidate the certificates produced by certifiable systems, it should serve as a warning that certifiable defenses are not inherently secure, and one should take caution when relying on certificates as an indicator of label correctness.
27
+
28
+ # BACKGROUND
29
+
30
+ In the white-box setting, where the attacker knows the victim’s network and parameters, adversarial perturbation are often constructed using first-order gradient information (Carlini & Wagner, 2017; Kurakin et al., 2016; Moosavi-Dezfooli et al., 2016) or using approximations of the gradient (Uesato et al., 2018; Athalye et al., 2018). The prevailing formulation for crafting attacks uses an additive adversarial perturbation, and perceptibility is minimized using an $\ell _ { p }$ -norm constraint. For example, $\ell _ { \infty }$ -bounded attacks limit how much each pixel can move, while $\ell _ { 0 }$ adversarial attacks limit the number of pixels that can be modified, without limiting the size of the change to each pixel (Wiyatno & Xu, 2018).
31
+
32
+ It is possible to craft imperceptible attacks without using $\ell _ { p }$ bounds (Brown et al., 2018). For example, Hosseini & Poovendran (2018) use shifting color channels, Wong et al. (2019) use the Wasserstein ball/distance, and Engstrom et al. (2017) use rotation and translation to craft “semantic” adversarial examples. In Figure 1, we produce semantic adversarial examples using the method of Hosseini & Poovendran (2018) which is a greedy approach that transforms the image into HSV space, and then, while keeping V constant, tries to find the smallest S perturbation causing misclassification1. Other variants use generative models to construct natural looking images causing misclassification (Song et al., 2018; Dunn et al., 2019).
33
+
34
+ In practice, many of the defenses which top adversarial defense leader-board challenges are noncertified defenses (Madry et al., 2017; Zhang et al., 2019a; Shafahi et al., 2019). The majority of these defenses make use of adversarial training, in which attack images are crafted during training and injected into the training set. These non-certified defenses are mostly evaluated against PGDbased attacks, resulting in an upper-bound on robustness.
35
+
36
+ Certified defenses, on the other-hand, provably make networks resist $\ell _ { p }$ -bounded perturbations of a certain radius. For instance, randomized smoothing (Cohen et al., 2019) is a certifiable defense against $\ell _ { 2 }$ -norm bounded attacks, and CROWN-IBP (Zhang et al., 2019b) is a certifiable defense against $l _ { \infty }$ -norm bounded perturbations. Both of these defenses produce a class label, and also a guarantee that the image could not have been crafted by making small perturbations to an image of a different label. Certified defenses can also benefit from adversarial training. For example, Salman et al. (2019) recently improved the certified radii of randomized smoothing (Cohen et al., 2019) by training on adversarial examples generated for the smoothed classifier.
37
+
38
+ To the best of our knowledge, prior works have focused on making adversarial examples that satisfy the imperceptibility and misclassification conditions, but none have investigated manipulating certificates, which is our focus here.
39
+
40
+ The reminder of this paper is organized as follows. In section 2 we introduce our new approach Shadow Attack for generating adversarial perturbations. This is a hybrid model that allows various kinds of attacks to be compounded together, resulting in perturbations of large radii. In section 3 we present an attack on “randomized smoothing” certificates (Cohen et al., 2019). Section 4 shows an ablation study which illustrates why the elements of the Shadow Attack are important for successfully manipulating certified models. In section 5 we generate adversarial examples for “CROWN-IBP” (Zhang et al., 2019b). Finally, we discuss results and wrap up in section 6.
41
+
42
+ # 2 THE SHADOW ATTACK
43
+
44
+ Because certificate spoofing requires large perturbations (larger than the $\ell _ { p }$ ball of the certificate), we propose a simple attack that ensembles numerous modes to create large perturbations. Our attack can be seen as the generalization of the well-known PGD attack, which creates adversarial images by modifying a clean base image. Given a loss function $L$ and an $\ell _ { p }$ -norm bound $\epsilon$ for some $p \geq 0$ , PGD attacks solve the following optimization problem:
45
+
46
+ $$
47
+ \operatorname* { m a x } _ { \delta } L ( \theta , x + \delta )
48
+ $$
49
+
50
+ $$
51
+ s . t . \parallel \delta \parallel _ { p } \leq \epsilon ,
52
+ $$
53
+
54
+ where $\theta$ are the network parameters and $\delta$ is the adversarial perturbation to be added to the clean input image $x$ . Constraint 2 promotes imperceptibility of the resulting perturbation to the human eye by limiting the perturbation size. In the shadow attack, instead of solving the above constrained optimization problem, we solve the following problem with a range of penalties:
55
+
56
+ $$
57
+ \operatorname* { m a x } _ { \delta } L ( \theta , x + \delta ) - \lambda _ { c } C ( \delta ) - \lambda _ { t v } T V ( \delta ) - \lambda _ { s } D i s s i m ( \delta ) ,
58
+ $$
59
+
60
+ where $\lambda _ { c } , \lambda _ { t v } , \lambda _ { s }$ are scalar penalty weights. Penalty $T V ( \delta )$ forces the perturbation $\delta$ to have small total variation $( T V )$ , and so appear more smooth and natural. Penalty $C ( \delta )$ limits the perturbation $\delta$ globally by constraining the change in the mean of each color channel $c$ . This constraint is needed since total variation is invariant to constant/scalar additions to each color channel, and it is desirable to suppress extreme changes in the color balances of images.
61
+
62
+ Penalty $D i s s i m ( \delta )$ promotes perturbations $\delta$ that assume similar values in each color channel. In the case of an RGB image of shape $3 \times W \times H$ , if $D i s s i m ( \delta )$ is small, the perturbations to red, green, and blue channels are similar, i.e., $\delta _ { R , w , h } \approx \delta _ { G , w , h } \approx \delta _ { B , w , h } , \forall ( w , h ) \in W \times H$ . This amounts to making the pixels darker/lighter, without changing the color balance of the image. Later, in section 3, we suggest two ways of enforcing such similarity between RGB channels and we find both of them effective:
63
+
64
+ • 1-channel attack strictly enforces $\delta _ { R , i } \approx \delta _ { G , i } \approx \delta _ { B , i } , \forall i$ by using just one array to simultaneously represent each color channel $\delta _ { W \times H }$ . On the forward pass, we duplicate $\delta$ to make a 3-channel image. In this case, $D i s s i m ( \delta ) = 0$ , and the perturbation is greyscale. • 3-channel attack uses a 3-channel perturbation $\delta _ { 3 \times W \times H }$ , along with the dissimilarity metric $D i s s i m ( \delta ) = \| \delta _ { R } - \delta _ { B } \| _ { p } + \| \delta _ { R } - \delta _ { G } \| _ { p } + \| \delta _ { B } - \delta _ { G } \| _ { p }$ .
65
+
66
+ All together, the three penalties minimize perceptibility of perturbations by forcing them to be $( a )$ small, $( b )$ smooth, and $( c )$ without dramatic color changes (e.g. swapping blue to red). At the same time, these penalties allow perturbations that are very large in $\ell _ { p }$ -norm.
67
+
68
+ # 2.1 CREATING UNTARGETED ATTACKS
69
+
70
+ We focus on spoofing certificates for untargeted attacks, in which the attacker does not specify the class into which the attack image moves. To achieve this, we generate an adversarial perturbation for all possible wrong classes $\bar { y }$ and choose the best one as our strong attack:
71
+
72
+ $$
73
+ \operatorname* { m a x } _ { \bar { y } \neq y , \delta } - L ( \theta , x + \delta \| \bar { y } ) - \lambda _ { c } C ( \delta ) - \lambda _ { t v } T V ( \delta ) - \lambda _ { s } D i s s i m ( \delta )
74
+ $$
75
+
76
+ where $y$ is the true label/class for the clean image $x$ , and $L$ is a spoofing loss that promotes a strong certificate. We examine different choices for $L$ for different certificates below.
77
+
78
+ # 3 ATTACKS ON RANDOMIZED SMOOTHING
79
+
80
+ The Randomized Smoothing method, first proposed by Lecuyer et al. (2018) and later improved by Li et al. (2018), is an adversarial defense against $\ell _ { 2 }$ -norm bounded attacks. Cohen et al. (2019) prove a tight robustness guarantee under the $\ell _ { 2 }$ norm for smoothing with Gaussian noise. Their study was the first certifiable defense for the ImageNet dataset (Deng et al., 2009). The method constructs certificates by first creating many copies of an input image contaminated with random Gaussian noise of standard deviation $\sigma$ . Then, it uses a base classifier (a neural net) to make a prediction for all of the images in the randomly augmented batch. Depending on the level of the consensus of the class labels at these random images, a certified radius is calculated that can be at most $4 \sigma$ (in the case of perfect consensus).
81
+
82
+ Intuitively, if the image is far away from the decision boundary, the base classifier should predict the same label for each noisy copy of the test image, in which case the certificate is strong. On the other hand, if the image is adjacent to the decision boundary, the base classifier’s predictions for the Gaussian augmented copies may vary. If the variation is large, the smoothed classifier abstains from making a prediction.
83
+
84
+ To spoof strong certificates (large certified radius) for an incorrect class, we must make sure that the majority of a batch of noisy images around the adversarial image are assigned the same (wrong) label. We do this by minimizing the cross entropy loss relative to a chosen (incorrect) label, averaged over a large set of randomly perturbed images. To this end, we minimize equation 4, where $L$ is chosen to be the average cross-entropy over a batch of Gaussian perturbed copies. This method is analogous to the technique presented by Shafahi et al. (2018) for generating universal perturbations that are effective when added to a large number of different images.
85
+
86
+ # RESULTS
87
+
88
+ Cohen et al. (2019) show the performance of the Gaussian smoothed classifier on CIFAR-10 (Krizhevsky et al.) and ImageNet (Deng et al., 2009). To attack the CIFAR-10 and ImageNet smoothed classifiers, we use 400 randomly sampled Gaussian images, $\lambda _ { t v } = 0 . 3$ , $\lambda _ { c } = 1 . 0$ , and perform 300 steps of SGD with learning rate 0.1. We choose the functional regularizers $C ( \delta )$ and $T V ( \delta )$ to be
89
+
90
+ $$
91
+ C ( \delta ) = \| \operatorname { A v g } ( | \delta _ { R } | ) , \operatorname { A v g } ( | \delta _ { G } | ) , \operatorname { A v g } ( | \delta _ { B } | ) \| _ { 2 } ^ { 2 } , \quad \mathrm { a n d } \quad T V ( \delta _ { i , j } ) = \mathrm { a n i s o t r o p i c - T V } ( \delta _ { i , j } ) ^ { 2 } ,
92
+ $$
93
+
94
+ where $| \cdot |$ is the element-wise absolute value operator, and Avg computes the average. For the Dissim regularizer, we experiment with both the 1-Channel attack that ensures $D i s s i m ( \delta ) = 0$ , and the 3-Channel attack by setting $D i s s i m ( \delta ) \ : = \ : \lVert ( \delta _ { R } - \delta _ { G } ) ^ { 2 } , ( \delta _ { R } - \delta _ { B } ) ^ { 2 } , ( \delta _ { G } - \delta _ { B } ) ^ { 2 } \rVert _ { 2 }$ and $\lambda _ { s } ~ = ~ 0 . 5$ . For the validation examples on which the smoothed classifier does not abstain (see Cohen et al. (2019) for more details), the less-constrained 3-channel attack is always able to find an adversarial example while the 1-channel attack also performs well, achieving $9 8 . 5 \%$ success. 2 In section 4 we will discuss in more detail other differences between 1-channel and 3-channel attacks. The results are summarized in Table 1. For the various base-models and choices of $\sigma$ , our adversarial examples are able to produce certified radii that are on average larger than the certified radii produced for natural images. For ImageNet, since attacking all 999 remaining target classes is computationally expensive, we only attacked target class IDs 100, 200, 300, 400, 500, 600, 700, 800, 900, and 1000.
95
+
96
+ Table 1: Certified radii produced by the Randomized Smoothing method for Shadow Attack images and also natural images (larger radii means a stronger/more confident certificate).
97
+
98
+ <table><tr><td rowspan="2">Dataset</td><td rowspan="2">g(l2)</td><td colspan="2">Unmodified/Natural Images</td><td colspan="2">Shadow Attack</td></tr><tr><td>Mean</td><td>STD</td><td>Mean</td><td>STD</td></tr><tr><td rowspan="4">CIFAR-10</td><td>0.12</td><td>0.14</td><td>0.056</td><td>0.22</td><td>0.005</td></tr><tr><td>0.25</td><td>0.30</td><td>0.111</td><td>0.35</td><td>0.062</td></tr><tr><td>0.50</td><td>0.47</td><td>0.234</td><td>0.65</td><td>0.14</td></tr><tr><td>1.00</td><td>0.78</td><td>0.556</td><td>0.85</td><td>0.442</td></tr><tr><td rowspan="3">ImageNet</td><td>0.25</td><td>0.30</td><td>0.109</td><td>0.31</td><td>0.109</td></tr><tr><td>0.50</td><td>0.61</td><td>0.217</td><td>0.38</td><td>0.191</td></tr><tr><td>1.00</td><td>1.04</td><td>0.519</td><td>0.64</td><td>0.322</td></tr></table>
99
+
100
+ ![](images/fc84d5db0b10201ae1b67b97307b4ea040d8acf621a920e268218446d3dd9330.jpg)
101
+ Figure 2: An adversarial example built using our Shadow Attack for the smoothed ImageNet classifier for which the certifiable classifier produces a large certified radii. The adversarial perturbation is smooth and natural looking even-though it is large when measured using $\ell _ { p }$ -metrics. Also see Figure 16 in the appendix.
102
+
103
+ Figure 2 depicts a sample adversarial example built for the smoothed ImageNet classifier that produces a strong certificate. The adversarial perturbation causes the batch of Gaussian augmented black swan images to get misclassified as hooks. For more, see appendix 16.
104
+
105
+ # 4 ABLATION STUDY OF THE ATTACK PARAMETERS
106
+
107
+ In this section we perform an ablation study on the parameters of the Shadow Attack to evaluate $( i )$ the number of SGD steps needed, $( i i )$ the importance of $\lambda _ { s }$ (or alternatively using 1-channel attacks), and $( i i i )$ the effect of $\lambda _ { t v }$ .
108
+
109
+ The default parameters for all of the experiments are as follows unless explicitly mentioned: We use 30 SGD steps with learning rate 0.1 for the optimization. All experiments except part $( i i )$ use 1-channel attacks for the sake of simplicity and efficiency (since it has less parameters). We assume $\lambda _ { t v } = 0 . 3$ , $\lambda _ { c } = 2 0$ , and use batch-size 50. We present results using the first example from each class of the CIFAR-10 validation set.
110
+
111
+ Figure 3 shows how the adversarial example evolves during the first few steps of optimization (See appendix 13 for more examples). Also, figures 4, 5, and 6 show the evolution of $L ( \delta )$ , $T V ( \delta )$ , and $\bar { C } \bar { ( \delta ) }$ , respectively (Note that we use 1-channel attacks, so $D i s s i m ( \delta )$ is always 0). We find that taking just 10 SGD steps is enough for convergence on CIFAR-10, but for our main results (i.e. attacking Randomized Smoothing in section 3 and attacking CROWN-IBP in section 5) we take 300 steps to be safe.
112
+
113
+ ![](images/06896354aa897e71ad464ff338e02180acd639c0b924e325783b1c8a3dd998c9.jpg)
114
+ Figure 3: The first 10 steps of optimization (beginning with a randomly perturbed image copy).
115
+
116
+ ![](images/5f654668f167ce857cd1a65e3dc06a5d881a1b575148684fe8485fe507e774e1.jpg)
117
+ Figure 9: Histogram of randomized smoothed certificate radii for 100 randomly sampled CIFAR-10 validation images vs those calculated for their adversarial examples crafted using our 1-channel and 3- channel adversarial Shadow Attack attacks. The “robust” victim classifier is based off Resnet-110, and smoothed with $\sigma = 0 . 5 0$ . 1-channel attacks are almost as good as the less-restricted 3-channel attacks.
118
+
119
+ ![](images/20b0585db38a51f88ba2fe2f975e26e2664bfa056c241232db33209383603542.jpg)
120
+ Figure 4: Average $L _ { b } ( \delta )$ in the first 10 steps.
121
+
122
+ ![](images/ed8360582f6789035034591491c8a59e60b1f7bc6ce16b046db67da3396effda.jpg)
123
+ Figure 5: Average $T V ( \delta )$ in the first 10 steps.
124
+
125
+ ![](images/576f9a7e05690dbed7eec18b645131799913a3615487705255f0af1050b0a5c1.jpg)
126
+ Figure 6: Average $C ( \delta )$ in the first 10 steps.
127
+
128
+ ![](images/b5ff85f3e580e8529c53fc20bcba81dced2826ca740797c4b30175693434a25e.jpg)
129
+ Figure 7: The effect of $\lambda _ { s }$ on the resulting $D i s s i m ( \delta )$
130
+
131
+ ![](images/93f51feafa913752183e135ca6c9eafcae0039af6dd29556964c39fb39596c1f.jpg)
132
+ Figure 8: The effect of $\lambda _ { t v }$ on the resulting $T V ( \delta )$
133
+
134
+ ![](images/c034ce0f1c1431c9a7df409bb4d212480ccfe1b9e8bfc31a043b7d0611506a50.jpg)
135
+ Figure 10: The visual effect of Shadow Attack on 9 randomly selected CIFAR-10 examples using 1-Channel and 3-Channel attacks.
136
+
137
+ ![](images/be81020d44f96313e583d56feed9be268ca6c3615f7d1bd1f81f132998bc4e03.jpg)
138
+ Figure 11: The visual effect of $\lambda _ { s }$ on perceptibility of the perturbations. The first row shows the value of $\lambda _ { s }$ .
139
+
140
+ Also, figure 7 shows the mean $D i s s i m ( \delta )$ for different values of $\lambda _ { s } ( 0 \leq \lambda _ { s } \leq 5 . 0 )$ . We also plot the histogram of the certificate radii in figure 9. Figure 10 compares 1-Channel vs 3-Channel attacks for some of randomly selected CIFAR-10 images. Finally, we explore the effect of $\lambda _ { t v }$ on imperceptibility of the perturbations in Figure 12. See table 15 for more images, and figure 8 for the impact of parameters on $T V ( \delta )$ .
141
+
142
+ # 5 ATTACKS ON CROWN-IBP
143
+
144
+ Interval Bound Propagation (IBP) methods have been recently studied as a defense against $\ell _ { \infty }$ - bounded attacks. Many recent studies such as Gowal et al. (2018); Xiao et al. (2018); Wong et al. (2018); Mirman et al. (2018) have investigated IBP methods to train provably robust networks. To the best of our knowledge, the CROWN-IBP method by Zhang et al. (2019b) achieves state-ofthe-art performance for MNIST (LeCun & Cortes, 2010), Fashion-MNIST (Xiao et al., 2017), and CIFAR-10 datasets among certifiable $\ell _ { \infty }$ defenses. In this section we focus on attacking Zhang et al. (2019b) using CIFAR-10.
145
+
146
+ IBP methods (over)estimate how much a small $\ell _ { \infty }$ -bounded noise in the input can impact the classification layer. This is done by propagating errors from layer to layer, computing bounds on the maximum possible perturbation to each activation. During testing, the user chooses an $\ell _ { \infty }$ perturbation bound $\epsilon$ , and error propagation is used to bound the magnitude of the largest achievable perturbation in network output. If the output perturbation is not large enough to flip the image label, then a certificate is produced. If the output perturbation is large enough to flip the image label, then a certificate is not produced. During network training, IBP methods include a term in the loss function that promotes tight error bounds that result in certificates. Our attack directly uses the loss function term used during IBP network training in addition to the Shadow Attack penalties; we search for an image that is visually similar to the base image, while producing a bound on the output perturbation that is too small to flip the image label. Note that there is a subtle difference between crafting conventional adversarial examples which ultimately targets misclassification and our adversarial examples which aim to produce adversarial examples which cause misclassification and produce strong certificates. In the former case, we only need to attack the cross-entropy loss. If we use our Shadow Attack to craft adversarial examples based on the cross-entropy loss, the robustness errors are on average roughly $50 \%$ larger than those reported in table 2 (i.e., simple adversarial examples produce weaker certificates.)
147
+
148
+ ![](images/fd183f30a6c50eaea65e9d318bc4cea9dd52bf2d2a0b4f40f9d6a92c659a448c.jpg)
149
+ Figure 12: The visual effect of $\lambda _ { t v }$ on the on imperceptibility of the perturbations. The first row shows the value of $\lambda _ { t v }$
150
+
151
+ Table 2: “Robust error” for natural images, and “attack error” for Shadow Attack images using the CIFAR-10 dataset, and CROWN-IBP models. Smaller is better.
152
+
153
+ <table><tr><td rowspan="2">∈(lo)</td><td rowspan="2">Model Family</td><td rowspan="2">Method</td><td colspan="3">Robustness Errors</td></tr><tr><td>Min</td><td>Mean</td><td>Max</td></tr><tr><td rowspan="4">2/255</td><td rowspan="2">9 small models</td><td>CROWN-IPB</td><td>52.46</td><td>57.55</td><td>60.67</td></tr><tr><td>Shadow Attack</td><td>45.90</td><td>53.89</td><td>65.74</td></tr><tr><td rowspan="2">8 large models</td><td>CROWN-IBP</td><td>52.52</td><td>53.9</td><td>56.05</td></tr><tr><td>Shadow Attack</td><td>46.21</td><td>49.77</td><td>51.79</td></tr><tr><td rowspan="4">8/255</td><td rowspan="2">9 small models</td><td>CROWN-IBP</td><td>71.28</td><td>72.15</td><td>73.66</td></tr><tr><td>Shadow Attack</td><td>63.43</td><td>66.94</td><td>71.02</td></tr><tr><td rowspan="2">8 large models</td><td>CROWN-IBP</td><td>70.79</td><td>71.17</td><td>72.29</td></tr><tr><td>Shadow Attack</td><td>64.04</td><td>67.32</td><td>71.16</td></tr></table>
154
+
155
+ We attack 4 classes of networks released by Zhang et al. (2019b) for CIFAR-10. There are two classes of IBP architectures, one of them consists of 9 small models and the other consists of 8 larger models. For each class of architecture, there are two sets of pre-trained models: one for $\epsilon = 2 / 2 5 5$ and one for $\epsilon = 8 / 2 5 5$ . We use $\lambda _ { t v } = 0 . 0 0 0 0 0 9$ , $\lambda _ { c } = 0 . 0 2$ , $C ( \delta ) = \| \delta \| _ { 2 }$ and set the learning rate to 200 and for the rest of the regularizers and hyper-paramters we use the same hyperparameters and regularizers as in 3. For the sake of efficiency, we only do 1-channel attacks. We attack the 4 classes of models and for each class, we report the min, mean, and max of the robustness errors and compare them with those of the CROWN-IBP paper.
156
+
157
+ To quantify the success of our attack, we define two metrics of error. For natural images, we report the rate of “robust errors,” which are images that are either (i) incorrectly labeled, or (ii) correctly labelled but without a certificate. In contrast, for attack images, we report the rate of “attack errors,” which are either (i) correctly classified or (ii) incorrectly classified but without a certificate. Table 2 shows the robust error on natural images, and the attack error on Shadow Attack images for the CROWN-IBP models. With $\epsilon = 2 / 2 5 \bar { 5 }$ , our attack finds adversarial examples that certify roughly $15 \%$ of the time (i.e., attack error ${ < } 8 5 \%$ ). With $\epsilon = 8 / 2 5 5$ , our attack finds adversarial examples that are incorrectly classified, and yet certify even more often than natural images.
158
+
159
+ # 6 CONCLUSION
160
+
161
+ We demonstrate that it is possible to produce adversarial examples with “spoofed” certified robustness by using large-norm perturbations. Our adversarial examples are built using our Shadow Attack that produces smooth and natural looking perturbations that are often less perceptible than those of the commonly used $\ell _ { p }$ -bounded perturbations, while being large enough in norm to escape the certification regions of state of the art principled defenses. This work suggests that the certificates produced by certifiably robust classifiers, while mathematically rigorous, are not always good indicators of robustness or accuracy.
162
+
163
+ Acknowledgements: Goldstein and his students were supported by the DARPA QED for RML program, the DARPA GARD program, and the National Science Foundation.
164
+
165
+ # REFERENCES
166
+
167
+ Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. arXiv preprint arXiv:1802.00420, 2018.
168
+
169
+ Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European conference on machine learning and knowledge discovery in databases, pp. 387–402. Springer, 2013.
170
+
171
+ Tom B Brown, Nicholas Carlini, Chiyuan Zhang, Catherine Olsson, Paul Christiano, and Ian Goodfellow. Unrestricted adversarial examples. arXiv preprint arXiv:1809.08352, 2018.
172
+
173
+ Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017.
174
+
175
+ Jeremy M Cohen, Elan Rosenfeld, and J Zico Kolter. Certified adversarial robustness via randomized smoothing. arXiv preprint arXiv:1902.02918, 2019.
176
+
177
+ J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
178
+
179
+ Isaac Dunn, Tom Melham, and Daniel Kroening. Generating realistic unrestricted adversarial inputs using dual-objective gan training. arXiv preprint arXiv:1905.02463, 2019.
180
+
181
+ Logan Engstrom, Brandon Tran, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. A rotation and a translation suffice: Fooling cnns with simple transformations. arXiv preprint arXiv:1712.02779, 2017.
182
+
183
+ Sven Gowal, Krishnamurthy Dvijotham, Robert Stanforth, Rudy Bunel, Chongli Qin, Jonathan Uesato, Timothy Mann, and Pushmeet Kohli. On the effectiveness of interval bound propagation for training verifiably robust models. arXiv preprint arXiv:1810.12715, 2018.
184
+
185
+ Hossein Hosseini and Radha Poovendran. Semantic adversarial examples. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 1614–1619, 2018.
186
+
187
+ Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research). URL http://www.cs.toronto.edu/˜kriz/cifar.html.
188
+
189
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016.
190
+
191
+ Cassidy Laidlaw and Soheil Feizi. Functional adversarial attacks. arXiv preprint arXiv:1906.00001, 2019.
192
+
193
+ Yann LeCun and Corinna Cortes. MNIST handwritten digit database. 2010. URL http://yann. lecun.com/exdb/mnist/.
194
+
195
+ Mathias Lecuyer, Vaggelis Atlidakis, Roxana Geambasu, Daniel Hsu, and Suman Jana. Certified robustness to adversarial examples with differential privacy. arXiv preprint arXiv:1802.03471, 2018.
196
+
197
+ Bai Li, Changyou Chen, Wenlin Wang, and Lawrence Carin. Second-order adversarial attack and certifiable robustness. CoRR, abs/1809.03113, 2018. URL http://arxiv.org/abs/ 1809.03113.
198
+
199
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
200
+
201
+ Matthew Mirman, Timon Gehr, and Martin Vechev. Differentiable abstract interpretation for provably robust neural networks. In International Conference on Machine Learning, pp. 3575–3583, 2018.
202
+
203
+ Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2574–2582, 2016.
204
+
205
+ Hadi Salman, Greg Yang, Jerry Li, Pengchuan Zhang, Huan Zhang, Ilya Razenshteyn, and Sebastien Bubeck. Provably robust deep learning via adversarially trained smoothed classifiers. arXiv preprint arXiv:1906.04584, 2019.
206
+
207
+ Ali Shafahi, Mahyar Najibi, Zheng Xu, John Dickerson, Larry S Davis, and Tom Goldstein. Universal adversarial training. arXiv preprint arXiv:1811.11304, 2018.
208
+
209
+ Ali Shafahi, Mahyar Najibi, Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! arXiv preprint arXiv:1904.12843, 2019.
210
+
211
+ Yang Song, Rui Shu, Nate Kushman, and Stefano Ermon. Constructing unrestricted adversarial examples with generative models. In Advances in Neural Information Processing Systems, pp. 8312–8323, 2018.
212
+
213
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
214
+
215
+ Jonathan Uesato, Brendan O’Donoghue, Aaron van den Oord, and Pushmeet Kohli. Adversarial risk and the dangers of evaluating against weak attacks. arXiv preprint arXiv:1802.05666, 2018.
216
+
217
+ Rey Wiyatno and Anqi Xu. Maximal jacobian-based saliency map attack. arXiv preprint arXiv:1808.07945, 2018.
218
+
219
+ Eric Wong, Frank Schmidt, Jan Hendrik Metzen, and J Zico Kolter. Scaling provable adversarial defenses. In Advances in Neural Information Processing Systems, pp. 8400–8409, 2018.
220
+
221
+ Eric Wong, Frank R Schmidt, and J Zico Kolter. Wasserstein adversarial examples via projected sinkhorn iterations. arXiv preprint arXiv:1902.07906, 2019.
222
+
223
+ Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
224
+
225
+ Kai Y Xiao, Vincent Tjeng, Nur Muhammad Shafiullah, and Aleksander Madry. Training for faster adversarial robustness verification via inducing relu stability. arXiv preprint arXiv:1809.03008, 2018.
226
+
227
+ Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P Xing, Laurent El Ghaoui, and Michael I Jordan. Theoretically principled trade-off between robustness and accuracy. arXiv preprint arXiv:1901.08573, 2019a.
228
+
229
+ Huan Zhang, Hongge Chen, Chaowei Xiao, Bo Li, Duane Boning, and Cho-Jui Hsieh. Towards stable and efficient training of verifiably robust neural networks. arXiv preprint arXiv:1906.06316, 2019b.
230
+
231
+ # A APPENDIX
232
+
233
+ In this section, we include the complete results of our ablation study. As we mentioned in section 4, we use is a subset of CIFAR-10 dataset, including one example per each class. For the sake of simplicity, we call the dataset Tiny-CIFAR-10. Here, we show the complete results for the ablation experiments on all of Tiny-CIFAR-10 examples. Figure 13 shows that taking a few optimization steps is enough for the resulting images to look natural-looking. Figure 14 and 15, respectively show the effect of $\lambda _ { s }$ and $\lambda _ { T V }$ on the imperceptability of the perturbations.
234
+
235
+ ![](images/4e318ad399b6a9920a96865cfafefb95dac1dea8697d18cc2132b9c8528c042f.jpg)
236
+ Figure 13: The first 10 steps of the optimization vs the original image for Tiny-CIFAR-10. See section 4 for the details of the experiments.
237
+
238
+ ![](images/a7083b05ac85595444ad846253e87552a5cc66b4751f9f7fd1ce2f15682e8328.jpg)
239
+ Figure 14: The visual effect of $\lambda _ { s }$ on $D i s s i m ( \delta )$ on Tiny-CIFAR-10. See section 4 for the details of the experiments.
240
+
241
+ ![](images/773cfd90ee4f02cda6951516af5243e28356f25270610bb6923ea3c4d053ae6f.jpg)
242
+ Figure 15: The visual effect of $\lambda _ { t v }$ on the perturbation Tiny-CIFAR-10. See section 4 for the details of the experiments.
243
+
244
+ Table 3: Certified radii statistics produced by the Adversarially Trained Randomized Smoothing method for our adversarial examples crafted using Shadow Attack and the natural examples (larger radii are better).
245
+
246
+ <table><tr><td>Dataset</td><td>σ(l2)</td><td>Adversarially Trained Randomized Smoothed Mean</td><td>STD</td><td>Shadow Attack Mean</td><td>STD</td></tr><tr><td>CIFAR-10</td><td>0.5</td><td>0.60</td><td>0.34</td><td>0.65</td><td>0.16</td></tr></table>
247
+
248
+ # IMAGENET RESULTS
249
+
250
+ Many of the recent studies have explored the semantic attacks. Semantic attacks are powerful for attacking defenses (Engstrom et al., 2017; Hosseini & Poovendran, 2018; Laidlaw & Feizi, 2019). Many of semantic attacks are applicable to Imagenet, however, none of them consider increasing the radii of the certificates generated by the certifiable defenses.
251
+
252
+ Some other works focus on using generative models to generate adversarial examples (Song et al., 2018), but unfortunately none of the GAN’s are expressive enough to capture the manifold of the ImageNet.
253
+
254
+ Figure 16 illustrates some of our successful examples generated by Shadow Attack to attack Randomized Smoothed classifiers for ImageNet.
255
+
256
+ # B CERTIFICATE SPOOFING ATTACKS ON ADVERSARIALLY TRAINED SMOOTH CLASSIFIERS
257
+
258
+ Recently, Salman et al. (2019) significantly improved the robustness of Gaussian smoothed classifiers by generating adversarial examples for the smoothed classifier and training on them. In this section, we use our Shadow Attack to generate adversarial examples using the loss in eq. 4 for the SmoothAdv classifier 4. Due to computation limitations, we attack a sample of $40 \%$ of the same validation images used for evaluating the randomized smooth classifier in section 3. The results are summarized in table 3. Comparing the results of table 1 to table 3, we can see that the SmoothAdv classifier, does produce stronger certified radii for natural examples (many of the examples in fact have the maximum radii) compared to the original randomized smoothing classifier. This can be associate to the excessive invariance introduced as a result of adversarial training. However, table 3 empirically verifies that its certificates are still subject to attacks and the certificate should not be used as a measure for robustness.
259
+
260
+ ![](images/321bee1545259a95016ff53f96cd726ebe40301a2e72b8985b88bb656579a4a7.jpg)
261
+ Figure 16: Natural looking Imperceptible ImageNet adversarial images which produce large certified radii for the ImageNet Gaussian smoothed classifier.
parse/train/HJxdTxHYvB/HJxdTxHYvB_content_list.json ADDED
@@ -0,0 +1,1382 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "BREAKING CERTIFIED DEFENSES: SEMANTIC ADVERSARIAL EXAMPLES WITH SPOOFED ROBUSTNESS CERTIFICATES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 821,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Amin Ghiasi ∗, Ali Shafahi∗& Tom Goldstein University of Maryland {amin,ashafahi,tomg}@cs.umd.edu ",
17
+ "bbox": [
18
+ 183,
19
+ 195,
20
+ 488,
21
+ 238
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 273,
32
+ 544,
33
+ 289
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "To deflect adversarial attacks, a range of “certified” classifiers have been proposed. In addition to labeling an image, certified classifiers produce (when possible) a certificate guaranteeing that the input image is not an $\\ell _ { p }$ -bounded adversarial example. We present a new attack that exploits not only the labelling function of a classifier, but also the certificate generator. The proposed method applies large perturbations that place images far from a class boundary while maintaining the imperceptibility property of adversarial examples. The proposed “Shadow Attack” causes certifiably robust networks to mislabel an image and simultaneously produce a “spoofed” certificate of robustness. ",
40
+ "bbox": [
41
+ 233,
42
+ 306,
43
+ 764,
44
+ 431
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 457,
55
+ 336,
56
+ 473
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Conventional training of neural networks has been shown to produce classifiers that are highly sensitive to adversarial perturbations (Szegedy et al., 2013; Biggio et al., 2013), “natural looking” images that have been manipulated to cause misclassification by a neural network (Figure 1). While a wide range of defenses exist that harden neural networks against such attacks (Madry et al., 2017; Shafahi et al., 2019), defenses based on heuristics and tricks are often easily breakable Athalye et al. (2018). This has motivated work on certifiably secure networks — classifiers that produce a label for an image, and also (when possible) a rigorous guarantee that the input is not adversarially manipulated (Cohen et al., 2019; Zhang et al., 2019b). ",
63
+ "bbox": [
64
+ 173,
65
+ 488,
66
+ 825,
67
+ 601
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "image",
73
+ "img_path": "images/6fc58ab73a4902f4dbbe81e77916649e9c2d1bb3d02936255f50a90ec669d0c1.jpg",
74
+ "image_caption": [
75
+ "Figure 1: All adversarial examples have the goal of fooling classifiers while looking “natural”. Standard attacks limit the $\\ell _ { p }$ -norm of the perturbation, while semantic attacks have large $\\ell _ { p }$ -norm while still producing natural looking images. Our attack produces large but visually subtle semantic perturbations that not only cause misclassification, but also cause a certified defense to issue a “spoofed” high-confidence certificate. In this case, a certified Gaussian smoothing classifier mislabels the image, and yet issues a certificate with radius 0.24, which is a larger certified radius than its corresponding unmodified ImageNet image which is 0.13. "
76
+ ],
77
+ "image_footnote": [],
78
+ "bbox": [
79
+ 179,
80
+ 621,
81
+ 818,
82
+ 785
83
+ ],
84
+ "page_idx": 0
85
+ },
86
+ {
87
+ "type": "text",
88
+ "text": "To date, all work on certifiable defenses has focused on deflecting $\\ell _ { p }$ -bounded attacks, where $p = 2$ or $\\infty$ (Cohen et al., 2019; Gowal et al., 2018; Wong et al., 2018). After labelling an image, these defenses then check whether there exists an image of a different label within $\\epsilon$ units (in the $\\ell _ { p }$ metric) of the input, where $\\epsilon$ is a security parameter chosen by the user. If the classifier assigns all images within the $\\epsilon$ ball the same class label, then a certificate is issued, and the input image known not to be an $\\ell _ { p }$ adversarial example. ",
89
+ "bbox": [
90
+ 174,
91
+ 103,
92
+ 825,
93
+ 186
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "In this work, we demonstrate how a system that relies on certificates as a measure of label security can be exploited. We present a new class of adversarial examples that target not only the classifier output label, but also the certificate. We do this by adding adversarial perturbations to images that are large in the $\\ell _ { p }$ norm (larger than the $\\epsilon$ used by the certificate generator), and produce attack images that are surrounded by a large ball exclusively containing images of the same label. The resulting attacks produce a “spoofed” certificate with a seemingly strong security guarantee despite being adversarially manipulated. Note that the statement made by the certificate (i.e., that the input image is not an $\\epsilon$ adversarial example in the chosen norm) is still technically correct, however in this case the adversary is hiding behind a certificate to avoid detection by a certifiable defense. ",
100
+ "bbox": [
101
+ 174,
102
+ 194,
103
+ 825,
104
+ 319
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "In summary, we consider methods that attack a certified classifier in the following sense: ",
111
+ "bbox": [
112
+ 169,
113
+ 325,
114
+ 753,
115
+ 340
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "• Imperceptibility: the adversarial example “looks like” its corresponding natural base example, \n• Misclassification: the certified classifier assigns an incorrect label to the adversarial example, and \n• Strongly certified: the certified classifier provides a strong/large-radius certificate for the adversarial example. ",
122
+ "bbox": [
123
+ 215,
124
+ 352,
125
+ 825,
126
+ 446
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "While the existence of such an attack does not invalidate the certificates produced by certifiable systems, it should serve as a warning that certifiable defenses are not inherently secure, and one should take caution when relying on certificates as an indicator of label correctness. ",
133
+ "bbox": [
134
+ 176,
135
+ 458,
136
+ 825,
137
+ 501
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "BACKGROUND ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 176,
147
+ 518,
148
+ 276,
149
+ 531
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "In the white-box setting, where the attacker knows the victim’s network and parameters, adversarial perturbation are often constructed using first-order gradient information (Carlini & Wagner, 2017; Kurakin et al., 2016; Moosavi-Dezfooli et al., 2016) or using approximations of the gradient (Uesato et al., 2018; Athalye et al., 2018). The prevailing formulation for crafting attacks uses an additive adversarial perturbation, and perceptibility is minimized using an $\\ell _ { p }$ -norm constraint. For example, $\\ell _ { \\infty }$ -bounded attacks limit how much each pixel can move, while $\\ell _ { 0 }$ adversarial attacks limit the number of pixels that can be modified, without limiting the size of the change to each pixel (Wiyatno & Xu, 2018). ",
156
+ "bbox": [
157
+ 174,
158
+ 544,
159
+ 825,
160
+ 655
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "It is possible to craft imperceptible attacks without using $\\ell _ { p }$ bounds (Brown et al., 2018). For example, Hosseini & Poovendran (2018) use shifting color channels, Wong et al. (2019) use the Wasserstein ball/distance, and Engstrom et al. (2017) use rotation and translation to craft “semantic” adversarial examples. In Figure 1, we produce semantic adversarial examples using the method of Hosseini & Poovendran (2018) which is a greedy approach that transforms the image into HSV space, and then, while keeping V constant, tries to find the smallest S perturbation causing misclassification1. Other variants use generative models to construct natural looking images causing misclassification (Song et al., 2018; Dunn et al., 2019). ",
167
+ "bbox": [
168
+ 174,
169
+ 661,
170
+ 825,
171
+ 773
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "In practice, many of the defenses which top adversarial defense leader-board challenges are noncertified defenses (Madry et al., 2017; Zhang et al., 2019a; Shafahi et al., 2019). The majority of these defenses make use of adversarial training, in which attack images are crafted during training and injected into the training set. These non-certified defenses are mostly evaluated against PGDbased attacks, resulting in an upper-bound on robustness. ",
178
+ "bbox": [
179
+ 174,
180
+ 780,
181
+ 825,
182
+ 849
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Certified defenses, on the other-hand, provably make networks resist $\\ell _ { p }$ -bounded perturbations of a certain radius. For instance, randomized smoothing (Cohen et al., 2019) is a certifiable defense against $\\ell _ { 2 }$ -norm bounded attacks, and CROWN-IBP (Zhang et al., 2019b) is a certifiable defense against $l _ { \\infty }$ -norm bounded perturbations. Both of these defenses produce a class label, and also a guarantee that the image could not have been crafted by making small perturbations to an image of a different label. Certified defenses can also benefit from adversarial training. For example, Salman et al. (2019) recently improved the certified radii of randomized smoothing (Cohen et al., 2019) by training on adversarial examples generated for the smoothed classifier. ",
189
+ "bbox": [
190
+ 176,
191
+ 857,
192
+ 823,
193
+ 898
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "",
200
+ "bbox": [
201
+ 174,
202
+ 103,
203
+ 825,
204
+ 174
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "To the best of our knowledge, prior works have focused on making adversarial examples that satisfy the imperceptibility and misclassification conditions, but none have investigated manipulating certificates, which is our focus here. ",
211
+ "bbox": [
212
+ 176,
213
+ 180,
214
+ 821,
215
+ 222
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "The reminder of this paper is organized as follows. In section 2 we introduce our new approach Shadow Attack for generating adversarial perturbations. This is a hybrid model that allows various kinds of attacks to be compounded together, resulting in perturbations of large radii. In section 3 we present an attack on “randomized smoothing” certificates (Cohen et al., 2019). Section 4 shows an ablation study which illustrates why the elements of the Shadow Attack are important for successfully manipulating certified models. In section 5 we generate adversarial examples for “CROWN-IBP” (Zhang et al., 2019b). Finally, we discuss results and wrap up in section 6. ",
222
+ "bbox": [
223
+ 174,
224
+ 229,
225
+ 825,
226
+ 327
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "2 THE SHADOW ATTACK ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 176,
236
+ 349,
237
+ 395,
238
+ 366
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "Because certificate spoofing requires large perturbations (larger than the $\\ell _ { p }$ ball of the certificate), we propose a simple attack that ensembles numerous modes to create large perturbations. Our attack can be seen as the generalization of the well-known PGD attack, which creates adversarial images by modifying a clean base image. Given a loss function $L$ and an $\\ell _ { p }$ -norm bound $\\epsilon$ for some $p \\geq 0$ , PGD attacks solve the following optimization problem: ",
245
+ "bbox": [
246
+ 174,
247
+ 382,
248
+ 825,
249
+ 453
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "equation",
255
+ "img_path": "images/4c6c591227bf59a1aa3cd1c30eefc8ecd5a98dc9088b55f6ffe67353286f562e.jpg",
256
+ "text": "$$\n\\operatorname* { m a x } _ { \\delta } L ( \\theta , x + \\delta )\n$$",
257
+ "text_format": "latex",
258
+ "bbox": [
259
+ 442,
260
+ 462,
261
+ 557,
262
+ 484
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "equation",
268
+ "img_path": "images/6f40e7f163861a9d6f28b0503ebde8a9463af232443d634507afd41c28989c06.jpg",
269
+ "text": "$$\ns . t . \\parallel \\delta \\parallel _ { p } \\leq \\epsilon ,\n$$",
270
+ "text_format": "latex",
271
+ "bbox": [
272
+ 452,
273
+ 496,
274
+ 544,
275
+ 515
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "where $\\theta$ are the network parameters and $\\delta$ is the adversarial perturbation to be added to the clean input image $x$ . Constraint 2 promotes imperceptibility of the resulting perturbation to the human eye by limiting the perturbation size. In the shadow attack, instead of solving the above constrained optimization problem, we solve the following problem with a range of penalties: ",
282
+ "bbox": [
283
+ 174,
284
+ 520,
285
+ 825,
286
+ 577
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "equation",
292
+ "img_path": "images/05515cb9a846c4ba3d39886cfffd7b0f2de09f875f01731e5aba7ec642696cb2.jpg",
293
+ "text": "$$\n\\operatorname* { m a x } _ { \\delta } L ( \\theta , x + \\delta ) - \\lambda _ { c } C ( \\delta ) - \\lambda _ { t v } T V ( \\delta ) - \\lambda _ { s } D i s s i m ( \\delta ) ,\n$$",
294
+ "text_format": "latex",
295
+ "bbox": [
296
+ 305,
297
+ 585,
298
+ 692,
299
+ 608
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "where $\\lambda _ { c } , \\lambda _ { t v } , \\lambda _ { s }$ are scalar penalty weights. Penalty $T V ( \\delta )$ forces the perturbation $\\delta$ to have small total variation $( T V )$ , and so appear more smooth and natural. Penalty $C ( \\delta )$ limits the perturbation $\\delta$ globally by constraining the change in the mean of each color channel $c$ . This constraint is needed since total variation is invariant to constant/scalar additions to each color channel, and it is desirable to suppress extreme changes in the color balances of images. ",
306
+ "bbox": [
307
+ 174,
308
+ 617,
309
+ 825,
310
+ 688
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Penalty $D i s s i m ( \\delta )$ promotes perturbations $\\delta$ that assume similar values in each color channel. In the case of an RGB image of shape $3 \\times W \\times H$ , if $D i s s i m ( \\delta )$ is small, the perturbations to red, green, and blue channels are similar, i.e., $\\delta _ { R , w , h } \\approx \\delta _ { G , w , h } \\approx \\delta _ { B , w , h } , \\forall ( w , h ) \\in W \\times H$ . This amounts to making the pixels darker/lighter, without changing the color balance of the image. Later, in section 3, we suggest two ways of enforcing such similarity between RGB channels and we find both of them effective: ",
317
+ "bbox": [
318
+ 173,
319
+ 694,
320
+ 825,
321
+ 779
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "• 1-channel attack strictly enforces $\\delta _ { R , i } \\approx \\delta _ { G , i } \\approx \\delta _ { B , i } , \\forall i$ by using just one array to simultaneously represent each color channel $\\delta _ { W \\times H }$ . On the forward pass, we duplicate $\\delta$ to make a 3-channel image. In this case, $D i s s i m ( \\delta ) = 0$ , and the perturbation is greyscale. • 3-channel attack uses a 3-channel perturbation $\\delta _ { 3 \\times W \\times H }$ , along with the dissimilarity metric $D i s s i m ( \\delta ) = \\| \\delta _ { R } - \\delta _ { B } \\| _ { p } + \\| \\delta _ { R } - \\delta _ { G } \\| _ { p } + \\| \\delta _ { B } - \\delta _ { G } \\| _ { p }$ . ",
328
+ "bbox": [
329
+ 214,
330
+ 790,
331
+ 825,
332
+ 871
333
+ ],
334
+ "page_idx": 2
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "All together, the three penalties minimize perceptibility of perturbations by forcing them to be $( a )$ small, $( b )$ smooth, and $( c )$ without dramatic color changes (e.g. swapping blue to red). At the same time, these penalties allow perturbations that are very large in $\\ell _ { p }$ -norm. ",
339
+ "bbox": [
340
+ 176,
341
+ 881,
342
+ 823,
343
+ 924
344
+ ],
345
+ "page_idx": 2
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "2.1 CREATING UNTARGETED ATTACKS ",
350
+ "text_level": 1,
351
+ "bbox": [
352
+ 176,
353
+ 103,
354
+ 452,
355
+ 117
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "We focus on spoofing certificates for untargeted attacks, in which the attacker does not specify the class into which the attack image moves. To achieve this, we generate an adversarial perturbation for all possible wrong classes $\\bar { y }$ and choose the best one as our strong attack: ",
362
+ "bbox": [
363
+ 173,
364
+ 128,
365
+ 823,
366
+ 171
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "equation",
372
+ "img_path": "images/0f2e385ccb90969adf854ce58e4750c12eedd8df4ea5ebaf271980745253ac60.jpg",
373
+ "text": "$$\n\\operatorname* { m a x } _ { \\bar { y } \\neq y , \\delta } - L ( \\theta , x + \\delta \\| \\bar { y } ) - \\lambda _ { c } C ( \\delta ) - \\lambda _ { t v } T V ( \\delta ) - \\lambda _ { s } D i s s i m ( \\delta )\n$$",
374
+ "text_format": "latex",
375
+ "bbox": [
376
+ 292,
377
+ 176,
378
+ 709,
379
+ 202
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "where $y$ is the true label/class for the clean image $x$ , and $L$ is a spoofing loss that promotes a strong certificate. We examine different choices for $L$ for different certificates below. ",
386
+ "bbox": [
387
+ 174,
388
+ 207,
389
+ 823,
390
+ 234
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "3 ATTACKS ON RANDOMIZED SMOOTHING ",
397
+ "text_level": 1,
398
+ "bbox": [
399
+ 174,
400
+ 255,
401
+ 545,
402
+ 271
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "The Randomized Smoothing method, first proposed by Lecuyer et al. (2018) and later improved by Li et al. (2018), is an adversarial defense against $\\ell _ { 2 }$ -norm bounded attacks. Cohen et al. (2019) prove a tight robustness guarantee under the $\\ell _ { 2 }$ norm for smoothing with Gaussian noise. Their study was the first certifiable defense for the ImageNet dataset (Deng et al., 2009). The method constructs certificates by first creating many copies of an input image contaminated with random Gaussian noise of standard deviation $\\sigma$ . Then, it uses a base classifier (a neural net) to make a prediction for all of the images in the randomly augmented batch. Depending on the level of the consensus of the class labels at these random images, a certified radius is calculated that can be at most $4 \\sigma$ (in the case of perfect consensus). ",
409
+ "bbox": [
410
+ 173,
411
+ 285,
412
+ 825,
413
+ 411
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "Intuitively, if the image is far away from the decision boundary, the base classifier should predict the same label for each noisy copy of the test image, in which case the certificate is strong. On the other hand, if the image is adjacent to the decision boundary, the base classifier’s predictions for the Gaussian augmented copies may vary. If the variation is large, the smoothed classifier abstains from making a prediction. ",
420
+ "bbox": [
421
+ 174,
422
+ 419,
423
+ 825,
424
+ 488
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "To spoof strong certificates (large certified radius) for an incorrect class, we must make sure that the majority of a batch of noisy images around the adversarial image are assigned the same (wrong) label. We do this by minimizing the cross entropy loss relative to a chosen (incorrect) label, averaged over a large set of randomly perturbed images. To this end, we minimize equation 4, where $L$ is chosen to be the average cross-entropy over a batch of Gaussian perturbed copies. This method is analogous to the technique presented by Shafahi et al. (2018) for generating universal perturbations that are effective when added to a large number of different images. ",
431
+ "bbox": [
432
+ 174,
433
+ 494,
434
+ 825,
435
+ 593
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "RESULTS ",
442
+ "text_level": 1,
443
+ "bbox": [
444
+ 174,
445
+ 609,
446
+ 238,
447
+ 623
448
+ ],
449
+ "page_idx": 3
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "Cohen et al. (2019) show the performance of the Gaussian smoothed classifier on CIFAR-10 (Krizhevsky et al.) and ImageNet (Deng et al., 2009). To attack the CIFAR-10 and ImageNet smoothed classifiers, we use 400 randomly sampled Gaussian images, $\\lambda _ { t v } = 0 . 3$ , $\\lambda _ { c } = 1 . 0$ , and perform 300 steps of SGD with learning rate 0.1. We choose the functional regularizers $C ( \\delta )$ and $T V ( \\delta )$ to be ",
454
+ "bbox": [
455
+ 173,
456
+ 635,
457
+ 825,
458
+ 705
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "equation",
464
+ "img_path": "images/be674872e734fc14ed493ea69fc840ffba5fa5c4f24446ad608628dc388a8df9.jpg",
465
+ "text": "$$\nC ( \\delta ) = \\| \\operatorname { A v g } ( | \\delta _ { R } | ) , \\operatorname { A v g } ( | \\delta _ { G } | ) , \\operatorname { A v g } ( | \\delta _ { B } | ) \\| _ { 2 } ^ { 2 } , \\quad \\mathrm { a n d } \\quad T V ( \\delta _ { i , j } ) = \\mathrm { a n i s o t r o p i c - T V } ( \\delta _ { i , j } ) ^ { 2 } ,\n$$",
466
+ "text_format": "latex",
467
+ "bbox": [
468
+ 200,
469
+ 710,
470
+ 794,
471
+ 729
472
+ ],
473
+ "page_idx": 3
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "where $| \\cdot |$ is the element-wise absolute value operator, and Avg computes the average. For the Dissim regularizer, we experiment with both the 1-Channel attack that ensures $D i s s i m ( \\delta ) = 0$ , and the 3-Channel attack by setting $D i s s i m ( \\delta ) \\ : = \\ : \\lVert ( \\delta _ { R } - \\delta _ { G } ) ^ { 2 } , ( \\delta _ { R } - \\delta _ { B } ) ^ { 2 } , ( \\delta _ { G } - \\delta _ { B } ) ^ { 2 } \\rVert _ { 2 }$ and $\\lambda _ { s } ~ = ~ 0 . 5$ . For the validation examples on which the smoothed classifier does not abstain (see Cohen et al. (2019) for more details), the less-constrained 3-channel attack is always able to find an adversarial example while the 1-channel attack also performs well, achieving $9 8 . 5 \\%$ success. 2 In section 4 we will discuss in more detail other differences between 1-channel and 3-channel attacks. The results are summarized in Table 1. For the various base-models and choices of $\\sigma$ , our adversarial examples are able to produce certified radii that are on average larger than the certified radii produced for natural images. For ImageNet, since attacking all 999 remaining target classes is computationally expensive, we only attacked target class IDs 100, 200, 300, 400, 500, 600, 700, 800, 900, and 1000. ",
478
+ "bbox": [
479
+ 173,
480
+ 734,
481
+ 826,
482
+ 900
483
+ ],
484
+ "page_idx": 3
485
+ },
486
+ {
487
+ "type": "table",
488
+ "img_path": "images/4ddc3c4cb9fa22c1bdb39a4593a750c552448ba991cae9372d95fe9296d15da7.jpg",
489
+ "table_caption": [
490
+ "Table 1: Certified radii produced by the Randomized Smoothing method for Shadow Attack images and also natural images (larger radii means a stronger/more confident certificate). "
491
+ ],
492
+ "table_footnote": [],
493
+ "table_body": "<table><tr><td rowspan=\"2\">Dataset</td><td rowspan=\"2\">g(l2)</td><td colspan=\"2\">Unmodified/Natural Images</td><td colspan=\"2\">Shadow Attack</td></tr><tr><td>Mean</td><td>STD</td><td>Mean</td><td>STD</td></tr><tr><td rowspan=\"4\">CIFAR-10</td><td>0.12</td><td>0.14</td><td>0.056</td><td>0.22</td><td>0.005</td></tr><tr><td>0.25</td><td>0.30</td><td>0.111</td><td>0.35</td><td>0.062</td></tr><tr><td>0.50</td><td>0.47</td><td>0.234</td><td>0.65</td><td>0.14</td></tr><tr><td>1.00</td><td>0.78</td><td>0.556</td><td>0.85</td><td>0.442</td></tr><tr><td rowspan=\"3\">ImageNet</td><td>0.25</td><td>0.30</td><td>0.109</td><td>0.31</td><td>0.109</td></tr><tr><td>0.50</td><td>0.61</td><td>0.217</td><td>0.38</td><td>0.191</td></tr><tr><td>1.00</td><td>1.04</td><td>0.519</td><td>0.64</td><td>0.322</td></tr></table>",
494
+ "bbox": [
495
+ 246,
496
+ 146,
497
+ 750,
498
+ 275
499
+ ],
500
+ "page_idx": 4
501
+ },
502
+ {
503
+ "type": "image",
504
+ "img_path": "images/fc84d5db0b10201ae1b67b97307b4ea040d8acf621a920e268218446d3dd9330.jpg",
505
+ "image_caption": [
506
+ "Figure 2: An adversarial example built using our Shadow Attack for the smoothed ImageNet classifier for which the certifiable classifier produces a large certified radii. The adversarial perturbation is smooth and natural looking even-though it is large when measured using $\\ell _ { p }$ -metrics. Also see Figure 16 in the appendix. "
507
+ ],
508
+ "image_footnote": [],
509
+ "bbox": [
510
+ 197,
511
+ 296,
512
+ 802,
513
+ 468
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "Figure 2 depicts a sample adversarial example built for the smoothed ImageNet classifier that produces a strong certificate. The adversarial perturbation causes the batch of Gaussian augmented black swan images to get misclassified as hooks. For more, see appendix 16. ",
520
+ "bbox": [
521
+ 173,
522
+ 583,
523
+ 825,
524
+ 626
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "4 ABLATION STUDY OF THE ATTACK PARAMETERS ",
531
+ "text_level": 1,
532
+ "bbox": [
533
+ 174,
534
+ 670,
535
+ 607,
536
+ 685
537
+ ],
538
+ "page_idx": 4
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "In this section we perform an ablation study on the parameters of the Shadow Attack to evaluate $( i )$ the number of SGD steps needed, $( i i )$ the importance of $\\lambda _ { s }$ (or alternatively using 1-channel attacks), and $( i i i )$ the effect of $\\lambda _ { t v }$ . ",
543
+ "bbox": [
544
+ 174,
545
+ 713,
546
+ 825,
547
+ 757
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "The default parameters for all of the experiments are as follows unless explicitly mentioned: We use 30 SGD steps with learning rate 0.1 for the optimization. All experiments except part $( i i )$ use 1-channel attacks for the sake of simplicity and efficiency (since it has less parameters). We assume $\\lambda _ { t v } = 0 . 3$ , $\\lambda _ { c } = 2 0$ , and use batch-size 50. We present results using the first example from each class of the CIFAR-10 validation set. ",
554
+ "bbox": [
555
+ 174,
556
+ 762,
557
+ 825,
558
+ 833
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Figure 3 shows how the adversarial example evolves during the first few steps of optimization (See appendix 13 for more examples). Also, figures 4, 5, and 6 show the evolution of $L ( \\delta )$ , $T V ( \\delta )$ , and $\\bar { C } \\bar { ( \\delta ) }$ , respectively (Note that we use 1-channel attacks, so $D i s s i m ( \\delta )$ is always 0). We find that taking just 10 SGD steps is enough for convergence on CIFAR-10, but for our main results (i.e. attacking Randomized Smoothing in section 3 and attacking CROWN-IBP in section 5) we take 300 steps to be safe. ",
565
+ "bbox": [
566
+ 173,
567
+ 839,
568
+ 825,
569
+ 924
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "image",
575
+ "img_path": "images/06896354aa897e71ad464ff338e02180acd639c0b924e325783b1c8a3dd998c9.jpg",
576
+ "image_caption": [
577
+ "Figure 3: The first 10 steps of optimization (beginning with a randomly perturbed image copy). "
578
+ ],
579
+ "image_footnote": [],
580
+ "bbox": [
581
+ 184,
582
+ 98,
583
+ 812,
584
+ 202
585
+ ],
586
+ "page_idx": 5
587
+ },
588
+ {
589
+ "type": "image",
590
+ "img_path": "images/5f654668f167ce857cd1a65e3dc06a5d881a1b575148684fe8485fe507e774e1.jpg",
591
+ "image_caption": [
592
+ "Figure 9: Histogram of randomized smoothed certificate radii for 100 randomly sampled CIFAR-10 validation images vs those calculated for their adversarial examples crafted using our 1-channel and 3- channel adversarial Shadow Attack attacks. The “robust” victim classifier is based off Resnet-110, and smoothed with $\\sigma = 0 . 5 0$ . 1-channel attacks are almost as good as the less-restricted 3-channel attacks. "
593
+ ],
594
+ "image_footnote": [],
595
+ "bbox": [
596
+ 194,
597
+ 275,
598
+ 527,
599
+ 465
600
+ ],
601
+ "page_idx": 5
602
+ },
603
+ {
604
+ "type": "image",
605
+ "img_path": "images/20b0585db38a51f88ba2fe2f975e26e2664bfa056c241232db33209383603542.jpg",
606
+ "image_caption": [
607
+ "Figure 4: Average $L _ { b } ( \\delta )$ in the first 10 steps. "
608
+ ],
609
+ "image_footnote": [],
610
+ "bbox": [
611
+ 189,
612
+ 507,
613
+ 375,
614
+ 612
615
+ ],
616
+ "page_idx": 5
617
+ },
618
+ {
619
+ "type": "image",
620
+ "img_path": "images/ed8360582f6789035034591491c8a59e60b1f7bc6ce16b046db67da3396effda.jpg",
621
+ "image_caption": [
622
+ "Figure 5: Average $T V ( \\delta )$ in the first 10 steps. "
623
+ ],
624
+ "image_footnote": [],
625
+ "bbox": [
626
+ 405,
627
+ 507,
628
+ 589,
629
+ 612
630
+ ],
631
+ "page_idx": 5
632
+ },
633
+ {
634
+ "type": "image",
635
+ "img_path": "images/576f9a7e05690dbed7eec18b645131799913a3615487705255f0af1050b0a5c1.jpg",
636
+ "image_caption": [
637
+ "Figure 6: Average $C ( \\delta )$ in the first 10 steps. "
638
+ ],
639
+ "image_footnote": [],
640
+ "bbox": [
641
+ 620,
642
+ 507,
643
+ 805,
644
+ 612
645
+ ],
646
+ "page_idx": 5
647
+ },
648
+ {
649
+ "type": "image",
650
+ "img_path": "images/b5ff85f3e580e8529c53fc20bcba81dced2826ca740797c4b30175693434a25e.jpg",
651
+ "image_caption": [
652
+ "Figure 7: The effect of $\\lambda _ { s }$ on the resulting $D i s s i m ( \\delta )$ "
653
+ ],
654
+ "image_footnote": [],
655
+ "bbox": [
656
+ 287,
657
+ 676,
658
+ 470,
659
+ 779
660
+ ],
661
+ "page_idx": 5
662
+ },
663
+ {
664
+ "type": "image",
665
+ "img_path": "images/93f51feafa913752183e135ca6c9eafcae0039af6dd29556964c39fb39596c1f.jpg",
666
+ "image_caption": [
667
+ "Figure 8: The effect of $\\lambda _ { t v }$ on the resulting $T V ( \\delta )$ "
668
+ ],
669
+ "image_footnote": [],
670
+ "bbox": [
671
+ 500,
672
+ 676,
673
+ 686,
674
+ 779
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "image",
680
+ "img_path": "images/c034ce0f1c1431c9a7df409bb4d212480ccfe1b9e8bfc31a043b7d0611506a50.jpg",
681
+ "image_caption": [
682
+ "Figure 10: The visual effect of Shadow Attack on 9 randomly selected CIFAR-10 examples using 1-Channel and 3-Channel attacks. "
683
+ ],
684
+ "image_footnote": [],
685
+ "bbox": [
686
+ 174,
687
+ 99,
688
+ 776,
689
+ 224
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "image",
695
+ "img_path": "images/be81020d44f96313e583d56feed9be268ca6c3615f7d1bd1f81f132998bc4e03.jpg",
696
+ "image_caption": [
697
+ "Figure 11: The visual effect of $\\lambda _ { s }$ on perceptibility of the perturbations. The first row shows the value of $\\lambda _ { s }$ . "
698
+ ],
699
+ "image_footnote": [],
700
+ "bbox": [
701
+ 186,
702
+ 273,
703
+ 812,
704
+ 376
705
+ ],
706
+ "page_idx": 6
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "Also, figure 7 shows the mean $D i s s i m ( \\delta )$ for different values of $\\lambda _ { s } ( 0 \\leq \\lambda _ { s } \\leq 5 . 0 )$ . We also plot the histogram of the certificate radii in figure 9. Figure 10 compares 1-Channel vs 3-Channel attacks for some of randomly selected CIFAR-10 images. Finally, we explore the effect of $\\lambda _ { t v }$ on imperceptibility of the perturbations in Figure 12. See table 15 for more images, and figure 8 for the impact of parameters on $T V ( \\delta )$ . ",
711
+ "bbox": [
712
+ 173,
713
+ 450,
714
+ 825,
715
+ 521
716
+ ],
717
+ "page_idx": 6
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "5 ATTACKS ON CROWN-IBP ",
722
+ "text_level": 1,
723
+ "bbox": [
724
+ 176,
725
+ 573,
726
+ 434,
727
+ 589
728
+ ],
729
+ "page_idx": 6
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "Interval Bound Propagation (IBP) methods have been recently studied as a defense against $\\ell _ { \\infty }$ - bounded attacks. Many recent studies such as Gowal et al. (2018); Xiao et al. (2018); Wong et al. (2018); Mirman et al. (2018) have investigated IBP methods to train provably robust networks. To the best of our knowledge, the CROWN-IBP method by Zhang et al. (2019b) achieves state-ofthe-art performance for MNIST (LeCun & Cortes, 2010), Fashion-MNIST (Xiao et al., 2017), and CIFAR-10 datasets among certifiable $\\ell _ { \\infty }$ defenses. In this section we focus on attacking Zhang et al. (2019b) using CIFAR-10. ",
734
+ "bbox": [
735
+ 173,
736
+ 604,
737
+ 825,
738
+ 702
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "IBP methods (over)estimate how much a small $\\ell _ { \\infty }$ -bounded noise in the input can impact the classification layer. This is done by propagating errors from layer to layer, computing bounds on the maximum possible perturbation to each activation. During testing, the user chooses an $\\ell _ { \\infty }$ perturbation bound $\\epsilon$ , and error propagation is used to bound the magnitude of the largest achievable perturbation in network output. If the output perturbation is not large enough to flip the image label, then a certificate is produced. If the output perturbation is large enough to flip the image label, then a certificate is not produced. During network training, IBP methods include a term in the loss function that promotes tight error bounds that result in certificates. Our attack directly uses the loss function term used during IBP network training in addition to the Shadow Attack penalties; we search for an image that is visually similar to the base image, while producing a bound on the output perturbation that is too small to flip the image label. Note that there is a subtle difference between crafting conventional adversarial examples which ultimately targets misclassification and our adversarial examples which aim to produce adversarial examples which cause misclassification and produce strong certificates. In the former case, we only need to attack the cross-entropy loss. If we use our Shadow Attack to craft adversarial examples based on the cross-entropy loss, the robustness errors are on average roughly $50 \\%$ larger than those reported in table 2 (i.e., simple adversarial examples produce weaker certificates.) ",
745
+ "bbox": [
746
+ 174,
747
+ 708,
748
+ 825,
749
+ 792
750
+ ],
751
+ "page_idx": 6
752
+ },
753
+ {
754
+ "type": "image",
755
+ "img_path": "images/fd183f30a6c50eaea65e9d318bc4cea9dd52bf2d2a0b4f40f9d6a92c659a448c.jpg",
756
+ "image_caption": [
757
+ "Figure 12: The visual effect of $\\lambda _ { t v }$ on the on imperceptibility of the perturbations. The first row shows the value of $\\lambda _ { t v }$ "
758
+ ],
759
+ "image_footnote": [],
760
+ "bbox": [
761
+ 184,
762
+ 813,
763
+ 812,
764
+ 869
765
+ ],
766
+ "page_idx": 6
767
+ },
768
+ {
769
+ "type": "table",
770
+ "img_path": "images/7562164da1d0db0ad24a7dc0c343e5706b73bf17b4748641046d79162ed113c0.jpg",
771
+ "table_caption": [
772
+ "Table 2: “Robust error” for natural images, and “attack error” for Shadow Attack images using the CIFAR-10 dataset, and CROWN-IBP models. Smaller is better. "
773
+ ],
774
+ "table_footnote": [],
775
+ "table_body": "<table><tr><td rowspan=\"2\">∈(lo)</td><td rowspan=\"2\">Model Family</td><td rowspan=\"2\">Method</td><td colspan=\"3\">Robustness Errors</td></tr><tr><td>Min</td><td>Mean</td><td>Max</td></tr><tr><td rowspan=\"4\">2/255</td><td rowspan=\"2\">9 small models</td><td>CROWN-IPB</td><td>52.46</td><td>57.55</td><td>60.67</td></tr><tr><td>Shadow Attack</td><td>45.90</td><td>53.89</td><td>65.74</td></tr><tr><td rowspan=\"2\">8 large models</td><td>CROWN-IBP</td><td>52.52</td><td>53.9</td><td>56.05</td></tr><tr><td>Shadow Attack</td><td>46.21</td><td>49.77</td><td>51.79</td></tr><tr><td rowspan=\"4\">8/255</td><td rowspan=\"2\">9 small models</td><td>CROWN-IBP</td><td>71.28</td><td>72.15</td><td>73.66</td></tr><tr><td>Shadow Attack</td><td>63.43</td><td>66.94</td><td>71.02</td></tr><tr><td rowspan=\"2\">8 large models</td><td>CROWN-IBP</td><td>70.79</td><td>71.17</td><td>72.29</td></tr><tr><td>Shadow Attack</td><td>64.04</td><td>67.32</td><td>71.16</td></tr></table>",
776
+ "bbox": [
777
+ 250,
778
+ 147,
779
+ 743,
780
+ 290
781
+ ],
782
+ "page_idx": 7
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "",
787
+ "bbox": [
788
+ 174,
789
+ 333,
790
+ 825,
791
+ 486
792
+ ],
793
+ "page_idx": 7
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "We attack 4 classes of networks released by Zhang et al. (2019b) for CIFAR-10. There are two classes of IBP architectures, one of them consists of 9 small models and the other consists of 8 larger models. For each class of architecture, there are two sets of pre-trained models: one for $\\epsilon = 2 / 2 5 5$ and one for $\\epsilon = 8 / 2 5 5$ . We use $\\lambda _ { t v } = 0 . 0 0 0 0 0 9$ , $\\lambda _ { c } = 0 . 0 2$ , $C ( \\delta ) = \\| \\delta \\| _ { 2 }$ and set the learning rate to 200 and for the rest of the regularizers and hyper-paramters we use the same hyperparameters and regularizers as in 3. For the sake of efficiency, we only do 1-channel attacks. We attack the 4 classes of models and for each class, we report the min, mean, and max of the robustness errors and compare them with those of the CROWN-IBP paper. ",
798
+ "bbox": [
799
+ 174,
800
+ 493,
801
+ 825,
802
+ 604
803
+ ],
804
+ "page_idx": 7
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "To quantify the success of our attack, we define two metrics of error. For natural images, we report the rate of “robust errors,” which are images that are either (i) incorrectly labeled, or (ii) correctly labelled but without a certificate. In contrast, for attack images, we report the rate of “attack errors,” which are either (i) correctly classified or (ii) incorrectly classified but without a certificate. Table 2 shows the robust error on natural images, and the attack error on Shadow Attack images for the CROWN-IBP models. With $\\epsilon = 2 / 2 5 \\bar { 5 }$ , our attack finds adversarial examples that certify roughly $15 \\%$ of the time (i.e., attack error ${ < } 8 5 \\%$ ). With $\\epsilon = 8 / 2 5 5$ , our attack finds adversarial examples that are incorrectly classified, and yet certify even more often than natural images. ",
809
+ "bbox": [
810
+ 174,
811
+ 612,
812
+ 825,
813
+ 723
814
+ ],
815
+ "page_idx": 7
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "6 CONCLUSION ",
820
+ "text_level": 1,
821
+ "bbox": [
822
+ 176,
823
+ 747,
824
+ 316,
825
+ 762
826
+ ],
827
+ "page_idx": 7
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "We demonstrate that it is possible to produce adversarial examples with “spoofed” certified robustness by using large-norm perturbations. Our adversarial examples are built using our Shadow Attack that produces smooth and natural looking perturbations that are often less perceptible than those of the commonly used $\\ell _ { p }$ -bounded perturbations, while being large enough in norm to escape the certification regions of state of the art principled defenses. This work suggests that the certificates produced by certifiably robust classifiers, while mathematically rigorous, are not always good indicators of robustness or accuracy. ",
832
+ "bbox": [
833
+ 174,
834
+ 779,
835
+ 825,
836
+ 877
837
+ ],
838
+ "page_idx": 7
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "Acknowledgements: Goldstein and his students were supported by the DARPA QED for RML program, the DARPA GARD program, and the National Science Foundation. ",
843
+ "bbox": [
844
+ 173,
845
+ 895,
846
+ 821,
847
+ 924
848
+ ],
849
+ "page_idx": 7
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "REFERENCES ",
854
+ "text_level": 1,
855
+ "bbox": [
856
+ 176,
857
+ 102,
858
+ 287,
859
+ 117
860
+ ],
861
+ "page_idx": 8
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Anish Athalye, Nicholas Carlini, and David Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. arXiv preprint arXiv:1802.00420, 2018. ",
866
+ "bbox": [
867
+ 174,
868
+ 126,
869
+ 825,
870
+ 167
871
+ ],
872
+ "page_idx": 8
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Gior- ´ gio Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European conference on machine learning and knowledge discovery in databases, pp. 387–402. Springer, 2013. ",
877
+ "bbox": [
878
+ 173,
879
+ 175,
880
+ 825,
881
+ 233
882
+ ],
883
+ "page_idx": 8
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Tom B Brown, Nicholas Carlini, Chiyuan Zhang, Catherine Olsson, Paul Christiano, and Ian Goodfellow. Unrestricted adversarial examples. arXiv preprint arXiv:1809.08352, 2018. ",
888
+ "bbox": [
889
+ 169,
890
+ 241,
891
+ 823,
892
+ 271
893
+ ],
894
+ "page_idx": 8
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017. ",
899
+ "bbox": [
900
+ 173,
901
+ 279,
902
+ 823,
903
+ 321
904
+ ],
905
+ "page_idx": 8
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Jeremy M Cohen, Elan Rosenfeld, and J Zico Kolter. Certified adversarial robustness via randomized smoothing. arXiv preprint arXiv:1902.02918, 2019. ",
910
+ "bbox": [
911
+ 168,
912
+ 329,
913
+ 825,
914
+ 358
915
+ ],
916
+ "page_idx": 8
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009. ",
921
+ "bbox": [
922
+ 169,
923
+ 366,
924
+ 825,
925
+ 395
926
+ ],
927
+ "page_idx": 8
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Isaac Dunn, Tom Melham, and Daniel Kroening. Generating realistic unrestricted adversarial inputs using dual-objective gan training. arXiv preprint arXiv:1905.02463, 2019. ",
932
+ "bbox": [
933
+ 169,
934
+ 404,
935
+ 823,
936
+ 433
937
+ ],
938
+ "page_idx": 8
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Logan Engstrom, Brandon Tran, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. A rotation and a translation suffice: Fooling cnns with simple transformations. arXiv preprint arXiv:1712.02779, 2017. ",
943
+ "bbox": [
944
+ 173,
945
+ 440,
946
+ 823,
947
+ 483
948
+ ],
949
+ "page_idx": 8
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Sven Gowal, Krishnamurthy Dvijotham, Robert Stanforth, Rudy Bunel, Chongli Qin, Jonathan Uesato, Timothy Mann, and Pushmeet Kohli. On the effectiveness of interval bound propagation for training verifiably robust models. arXiv preprint arXiv:1810.12715, 2018. ",
954
+ "bbox": [
955
+ 174,
956
+ 491,
957
+ 823,
958
+ 535
959
+ ],
960
+ "page_idx": 8
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Hossein Hosseini and Radha Poovendran. Semantic adversarial examples. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pp. 1614–1619, 2018. ",
965
+ "bbox": [
966
+ 169,
967
+ 542,
968
+ 823,
969
+ 571
970
+ ],
971
+ "page_idx": 8
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research). URL http://www.cs.toronto.edu/˜kriz/cifar.html. ",
976
+ "bbox": [
977
+ 171,
978
+ 579,
979
+ 823,
980
+ 609
981
+ ],
982
+ "page_idx": 8
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. arXiv preprint arXiv:1607.02533, 2016. ",
987
+ "bbox": [
988
+ 171,
989
+ 617,
990
+ 823,
991
+ 646
992
+ ],
993
+ "page_idx": 8
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Cassidy Laidlaw and Soheil Feizi. Functional adversarial attacks. arXiv preprint arXiv:1906.00001, 2019. ",
998
+ "bbox": [
999
+ 171,
1000
+ 654,
1001
+ 823,
1002
+ 683
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Yann LeCun and Corinna Cortes. MNIST handwritten digit database. 2010. URL http://yann. lecun.com/exdb/mnist/. ",
1009
+ "bbox": [
1010
+ 173,
1011
+ 690,
1012
+ 821,
1013
+ 720
1014
+ ],
1015
+ "page_idx": 8
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Mathias Lecuyer, Vaggelis Atlidakis, Roxana Geambasu, Daniel Hsu, and Suman Jana. Certified robustness to adversarial examples with differential privacy. arXiv preprint arXiv:1802.03471, 2018. ",
1020
+ "bbox": [
1021
+ 176,
1022
+ 728,
1023
+ 823,
1024
+ 771
1025
+ ],
1026
+ "page_idx": 8
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Bai Li, Changyou Chen, Wenlin Wang, and Lawrence Carin. Second-order adversarial attack and certifiable robustness. CoRR, abs/1809.03113, 2018. URL http://arxiv.org/abs/ 1809.03113. ",
1031
+ "bbox": [
1032
+ 173,
1033
+ 779,
1034
+ 823,
1035
+ 821
1036
+ ],
1037
+ "page_idx": 8
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
1042
+ "bbox": [
1043
+ 173,
1044
+ 830,
1045
+ 823,
1046
+ 872
1047
+ ],
1048
+ "page_idx": 8
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Matthew Mirman, Timon Gehr, and Martin Vechev. Differentiable abstract interpretation for provably robust neural networks. In International Conference on Machine Learning, pp. 3575–3583, 2018. ",
1053
+ "bbox": [
1054
+ 174,
1055
+ 881,
1056
+ 825,
1057
+ 922
1058
+ ],
1059
+ "page_idx": 8
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Seyed-Mohsen Moosavi-Dezfooli, Alhussein Fawzi, and Pascal Frossard. Deepfool: a simple and accurate method to fool deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2574–2582, 2016. ",
1064
+ "bbox": [
1065
+ 176,
1066
+ 103,
1067
+ 823,
1068
+ 146
1069
+ ],
1070
+ "page_idx": 9
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Hadi Salman, Greg Yang, Jerry Li, Pengchuan Zhang, Huan Zhang, Ilya Razenshteyn, and Sebastien Bubeck. Provably robust deep learning via adversarially trained smoothed classifiers. arXiv preprint arXiv:1906.04584, 2019. ",
1075
+ "bbox": [
1076
+ 176,
1077
+ 155,
1078
+ 823,
1079
+ 196
1080
+ ],
1081
+ "page_idx": 9
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Ali Shafahi, Mahyar Najibi, Zheng Xu, John Dickerson, Larry S Davis, and Tom Goldstein. Universal adversarial training. arXiv preprint arXiv:1811.11304, 2018. ",
1086
+ "bbox": [
1087
+ 171,
1088
+ 205,
1089
+ 823,
1090
+ 236
1091
+ ],
1092
+ "page_idx": 9
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Ali Shafahi, Mahyar Najibi, Amin Ghiasi, Zheng Xu, John Dickerson, Christoph Studer, Larry S Davis, Gavin Taylor, and Tom Goldstein. Adversarial training for free! arXiv preprint arXiv:1904.12843, 2019. ",
1097
+ "bbox": [
1098
+ 174,
1099
+ 243,
1100
+ 823,
1101
+ 286
1102
+ ],
1103
+ "page_idx": 9
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Yang Song, Rui Shu, Nate Kushman, and Stefano Ermon. Constructing unrestricted adversarial examples with generative models. In Advances in Neural Information Processing Systems, pp. 8312–8323, 2018. ",
1108
+ "bbox": [
1109
+ 171,
1110
+ 295,
1111
+ 823,
1112
+ 338
1113
+ ],
1114
+ "page_idx": 9
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. ",
1119
+ "bbox": [
1120
+ 173,
1121
+ 347,
1122
+ 823,
1123
+ 376
1124
+ ],
1125
+ "page_idx": 9
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Jonathan Uesato, Brendan O’Donoghue, Aaron van den Oord, and Pushmeet Kohli. Adversarial risk and the dangers of evaluating against weak attacks. arXiv preprint arXiv:1802.05666, 2018. ",
1130
+ "bbox": [
1131
+ 173,
1132
+ 385,
1133
+ 825,
1134
+ 414
1135
+ ],
1136
+ "page_idx": 9
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Rey Wiyatno and Anqi Xu. Maximal jacobian-based saliency map attack. arXiv preprint arXiv:1808.07945, 2018. ",
1141
+ "bbox": [
1142
+ 173,
1143
+ 422,
1144
+ 825,
1145
+ 452
1146
+ ],
1147
+ "page_idx": 9
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Eric Wong, Frank Schmidt, Jan Hendrik Metzen, and J Zico Kolter. Scaling provable adversarial defenses. In Advances in Neural Information Processing Systems, pp. 8400–8409, 2018. ",
1152
+ "bbox": [
1153
+ 174,
1154
+ 460,
1155
+ 823,
1156
+ 489
1157
+ ],
1158
+ "page_idx": 9
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Eric Wong, Frank R Schmidt, and J Zico Kolter. Wasserstein adversarial examples via projected sinkhorn iterations. arXiv preprint arXiv:1902.07906, 2019. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 497,
1166
+ 823,
1167
+ 527
1168
+ ],
1169
+ "page_idx": 9
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. ",
1174
+ "bbox": [
1175
+ 173,
1176
+ 535,
1177
+ 823,
1178
+ 565
1179
+ ],
1180
+ "page_idx": 9
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Kai Y Xiao, Vincent Tjeng, Nur Muhammad Shafiullah, and Aleksander Madry. Training for faster adversarial robustness verification via inducing relu stability. arXiv preprint arXiv:1809.03008, 2018. ",
1185
+ "bbox": [
1186
+ 174,
1187
+ 574,
1188
+ 823,
1189
+ 616
1190
+ ],
1191
+ "page_idx": 9
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Hongyang Zhang, Yaodong Yu, Jiantao Jiao, Eric P Xing, Laurent El Ghaoui, and Michael I Jordan. Theoretically principled trade-off between robustness and accuracy. arXiv preprint arXiv:1901.08573, 2019a. ",
1196
+ "bbox": [
1197
+ 173,
1198
+ 626,
1199
+ 823,
1200
+ 667
1201
+ ],
1202
+ "page_idx": 9
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Huan Zhang, Hongge Chen, Chaowei Xiao, Bo Li, Duane Boning, and Cho-Jui Hsieh. Towards stable and efficient training of verifiably robust neural networks. arXiv preprint arXiv:1906.06316, 2019b. ",
1207
+ "bbox": [
1208
+ 174,
1209
+ 676,
1210
+ 821,
1211
+ 719
1212
+ ],
1213
+ "page_idx": 9
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "A APPENDIX ",
1218
+ "text_level": 1,
1219
+ "bbox": [
1220
+ 176,
1221
+ 102,
1222
+ 297,
1223
+ 117
1224
+ ],
1225
+ "page_idx": 10
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "In this section, we include the complete results of our ablation study. As we mentioned in section 4, we use is a subset of CIFAR-10 dataset, including one example per each class. For the sake of simplicity, we call the dataset Tiny-CIFAR-10. Here, we show the complete results for the ablation experiments on all of Tiny-CIFAR-10 examples. Figure 13 shows that taking a few optimization steps is enough for the resulting images to look natural-looking. Figure 14 and 15, respectively show the effect of $\\lambda _ { s }$ and $\\lambda _ { T V }$ on the imperceptability of the perturbations. ",
1230
+ "bbox": [
1231
+ 174,
1232
+ 133,
1233
+ 825,
1234
+ 217
1235
+ ],
1236
+ "page_idx": 10
1237
+ },
1238
+ {
1239
+ "type": "image",
1240
+ "img_path": "images/4e318ad399b6a9920a96865cfafefb95dac1dea8697d18cc2132b9c8528c042f.jpg",
1241
+ "image_caption": [
1242
+ "Figure 13: The first 10 steps of the optimization vs the original image for Tiny-CIFAR-10. See section 4 for the details of the experiments. "
1243
+ ],
1244
+ "image_footnote": [],
1245
+ "bbox": [
1246
+ 184,
1247
+ 241,
1248
+ 812,
1249
+ 699
1250
+ ],
1251
+ "page_idx": 11
1252
+ },
1253
+ {
1254
+ "type": "image",
1255
+ "img_path": "images/a7083b05ac85595444ad846253e87552a5cc66b4751f9f7fd1ce2f15682e8328.jpg",
1256
+ "image_caption": [
1257
+ "Figure 14: The visual effect of $\\lambda _ { s }$ on $D i s s i m ( \\delta )$ on Tiny-CIFAR-10. See section 4 for the details of the experiments. "
1258
+ ],
1259
+ "image_footnote": [],
1260
+ "bbox": [
1261
+ 186,
1262
+ 256,
1263
+ 812,
1264
+ 713
1265
+ ],
1266
+ "page_idx": 12
1267
+ },
1268
+ {
1269
+ "type": "image",
1270
+ "img_path": "images/773cfd90ee4f02cda6951516af5243e28356f25270610bb6923ea3c4d053ae6f.jpg",
1271
+ "image_caption": [
1272
+ "Figure 15: The visual effect of $\\lambda _ { t v }$ on the perturbation Tiny-CIFAR-10. See section 4 for the details of the experiments. "
1273
+ ],
1274
+ "image_footnote": [],
1275
+ "bbox": [
1276
+ 186,
1277
+ 256,
1278
+ 812,
1279
+ 713
1280
+ ],
1281
+ "page_idx": 13
1282
+ },
1283
+ {
1284
+ "type": "table",
1285
+ "img_path": "images/35db09145b659fb6450768f35a651ae2772e1f75460ee18e7df15607962a5cf8.jpg",
1286
+ "table_caption": [
1287
+ "Table 3: Certified radii statistics produced by the Adversarially Trained Randomized Smoothing method for our adversarial examples crafted using Shadow Attack and the natural examples (larger radii are better). "
1288
+ ],
1289
+ "table_footnote": [],
1290
+ "table_body": "<table><tr><td>Dataset</td><td>σ(l2)</td><td>Adversarially Trained Randomized Smoothed Mean</td><td>STD</td><td>Shadow Attack Mean</td><td>STD</td></tr><tr><td>CIFAR-10</td><td>0.5</td><td>0.60</td><td>0.34</td><td>0.65</td><td>0.16</td></tr></table>",
1291
+ "bbox": [
1292
+ 184,
1293
+ 160,
1294
+ 813,
1295
+ 207
1296
+ ],
1297
+ "page_idx": 14
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "IMAGENET RESULTS ",
1302
+ "text_level": 1,
1303
+ "bbox": [
1304
+ 174,
1305
+ 238,
1306
+ 320,
1307
+ 251
1308
+ ],
1309
+ "page_idx": 14
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Many of the recent studies have explored the semantic attacks. Semantic attacks are powerful for attacking defenses (Engstrom et al., 2017; Hosseini & Poovendran, 2018; Laidlaw & Feizi, 2019). Many of semantic attacks are applicable to Imagenet, however, none of them consider increasing the radii of the certificates generated by the certifiable defenses. ",
1314
+ "bbox": [
1315
+ 174,
1316
+ 263,
1317
+ 825,
1318
+ 319
1319
+ ],
1320
+ "page_idx": 14
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Some other works focus on using generative models to generate adversarial examples (Song et al., 2018), but unfortunately none of the GAN’s are expressive enough to capture the manifold of the ImageNet. ",
1325
+ "bbox": [
1326
+ 176,
1327
+ 327,
1328
+ 820,
1329
+ 368
1330
+ ],
1331
+ "page_idx": 14
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Figure 16 illustrates some of our successful examples generated by Shadow Attack to attack Randomized Smoothed classifiers for ImageNet. ",
1336
+ "bbox": [
1337
+ 174,
1338
+ 375,
1339
+ 821,
1340
+ 404
1341
+ ],
1342
+ "page_idx": 14
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "B CERTIFICATE SPOOFING ATTACKS ON ADVERSARIALLY TRAINED SMOOTH CLASSIFIERS ",
1347
+ "text_level": 1,
1348
+ "bbox": [
1349
+ 174,
1350
+ 425,
1351
+ 818,
1352
+ 457
1353
+ ],
1354
+ "page_idx": 14
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "Recently, Salman et al. (2019) significantly improved the robustness of Gaussian smoothed classifiers by generating adversarial examples for the smoothed classifier and training on them. In this section, we use our Shadow Attack to generate adversarial examples using the loss in eq. 4 for the SmoothAdv classifier 4. Due to computation limitations, we attack a sample of $40 \\%$ of the same validation images used for evaluating the randomized smooth classifier in section 3. The results are summarized in table 3. Comparing the results of table 1 to table 3, we can see that the SmoothAdv classifier, does produce stronger certified radii for natural examples (many of the examples in fact have the maximum radii) compared to the original randomized smoothing classifier. This can be associate to the excessive invariance introduced as a result of adversarial training. However, table 3 empirically verifies that its certificates are still subject to attacks and the certificate should not be used as a measure for robustness. ",
1359
+ "bbox": [
1360
+ 174,
1361
+ 473,
1362
+ 825,
1363
+ 626
1364
+ ],
1365
+ "page_idx": 14
1366
+ },
1367
+ {
1368
+ "type": "image",
1369
+ "img_path": "images/321bee1545259a95016ff53f96cd726ebe40301a2e72b8985b88bb656579a4a7.jpg",
1370
+ "image_caption": [
1371
+ "Figure 16: Natural looking Imperceptible ImageNet adversarial images which produce large certified radii for the ImageNet Gaussian smoothed classifier. "
1372
+ ],
1373
+ "image_footnote": [],
1374
+ "bbox": [
1375
+ 207,
1376
+ 92,
1377
+ 790,
1378
+ 873
1379
+ ],
1380
+ "page_idx": 15
1381
+ }
1382
+ ]
parse/train/HJxdTxHYvB/HJxdTxHYvB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HJxdTxHYvB/HJxdTxHYvB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke_f0EYPH/Hke_f0EYPH.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke_f0EYPH/Hke_f0EYPH_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke_f0EYPH/Hke_f0EYPH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke_f0EYPH/Hke_f0EYPH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkwVAXyCW/HkwVAXyCW.md ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SKIP RNN: LEARNING TO SKIP STATE UPDATES IN RECURRENT NEURAL NETWORKS
2
+
3
+ V´ıctor Campos∗†, Brendan $\mathbf { J o u } ^ { \ddag }$ , Xavier Giro-i-Nieto ´ §, Jordi Torres†, Shih-Fu ChangΓ †Barcelona Supercomputing Center, ‡Google Inc, §Universitat Politecnica de Catalunya, \` ΓColumbia University {victor.campos, jordi.torres}@bsc.es, bjou@google.com, xavier.giro@upc.edu, shih.fu.chang@columbia.edu
4
+
5
+ # ABSTRACT
6
+
7
+ Recurrent Neural Networks (RNNs) continue to show outstanding performance in sequence modeling tasks. However, training RNNs on long sequences often face challenges like slow inference, vanishing gradients and difficulty in capturing long term dependencies. In backpropagation through time settings, these issues are tightly coupled with the large, sequential computational graph resulting from unfolding the RNN in time. We introduce the Skip RNN model which extends existing RNN models by learning to skip state updates and shortens the effective size of the computational graph. This model can also be encouraged to perform fewer state updates through a budget constraint. We evaluate the proposed model on various tasks and show how it can reduce the number of required RNN updates while preserving, and sometimes even improving, the performance of the baseline RNN models. Source code is publicly available at https://imatge-upc. github.io/skiprnn-2017-telecombcn/.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Recurrent Neural Networks (RNNs) have become the standard approach for practitioners when addressing machine learning tasks involving sequential data. Such success has been enabled by the appearance of larger datasets, more powerful computing resources and improved architectures and training algorithms. Gated units, such as the Long Short-Term Memory (Hochreiter & Schmidhuber, 1997) (LSTM) and the Gated Recurrent Unit (Cho et al., 2014) (GRU), were designed to deal with the vanishing gradients problem commonly found in RNNs (Bengio et al., 1994). These architectures have been popularized, in part, due to their impressive results on a variety of tasks in machine translation (Bahdanau et al., 2015), language modeling (Zaremba et al., 2015) and speech recognition (Graves et al., 2013).
12
+
13
+ Some of the main challenges of RNNs are in their training and deployment when dealing with long sequences, due to their inherently sequential behaviour. These challenges include throughput degradation, slower convergence during training and memory leakage, even for gated architectures (Neil et al., 2016). Sequence shortening techniques, which can be seen as a sort of conditional computation (Bengio et al., 2013; Bengio, 2013; Davis & Arel, 2013) in time, can alleviate these issues. The most common approaches, such as cropping discrete signals or reducing the sampling rate in continuous signals, are based on heuristics and can be suboptimal. In contrast, we propose a model that is able to learn which samples (i.e., elements in the input sequence) need to be used in order to solve the target task. Consider a video understanding task as an example: scenes with large motion may benefit from high frame rates, whereas only a few frames are needed to capture the semantics of a mostly static scene.
14
+
15
+ The main contribution of this work is a novel modification for existing RNN architectures that allows them to skip state updates, decreasing the number of sequential operations performed, without requiring any additional supervision signal. This model, called Skip RNN, adaptively determines whether the state needs to be updated or copied to the next time step. We show how the network can be encouraged to perform fewer state updates by adding a penalization term during training, allowing us to train models under different computation budgets. The proposed modification can generally be integrated with any RNN and we show, in this paper, implementations with well-known RNNs, namely LSTM and GRU. The resulting models show promising results on a series of sequence modeling tasks. In particular, we evaluate the proposed Skip RNN architecture on six sequence learning problems: an adding task, sine wave frequency discrimination, digit classification, sentiment analysis in movie reviews, action classification in video, and temporal action localization in video1.
16
+
17
+ # 2 RELATED WORK
18
+
19
+ Conditional computation has been shown to gradually increase model capacity without proportional increases in computational cost by exploiting certain computation paths for each input (Bengio et al., 2013; Liu & Deng, 2017; Almahairi et al., 2016; McGill & Perona, 2017; Shazeer et al., 2017). This idea has been extended in the temporal domain, such as in learning how many times an input needs to be ”pondered” before moving to the next one (Graves, 2016) or designing RNN architectures whose number of layers depend on the input data (Chung et al., 2017). Other works have addressed time-dependent computation in RNNs by updating only a fraction of the hidden states based on the current hidden state and input (Jernite et al., 2017), or following periodic patterns (Koutnik et al., 2014; Neil et al., 2016). However, due to the inherently sequential nature of RNNs and the parallel computation capabilities of modern hardware, reducing the size of the matrices involved in the computations performed at each time step generally has not accelerated inference as dramatically as hoped. The proposed Skip RNN model can be seen as form of conditional computation in time, where the computation associated to the RNN updates may or may not be executed at every time step. This idea is related to the UPDATE and COPY operations in hierarchical multiscale RNNs (Chung et al., 2017), but applied to the whole stack of RNN layers at the same time. This difference is key to allowing our approach to skip input samples, effectively reducing sequential computation and shielding the hidden state over longer time lags. Learning whether to update or copy the hidden state through time steps can be seen as a learnable Zoneout mask (Krueger et al., 2017) which is shared between all the units in the hidden state. Similarly, it can be interpreted as an input-dependent recurrent version of stochastic depth (Huang et al., 2016).
20
+
21
+ Selecting parts of the input signal is similar in spirit to the hard attention mechanisms that have been applied to image regions (Mnih et al., 2014), where only some patches of the input image are attended in order to generate captions (Xu et al., 2015) or detect objects (Ba et al., 2014). Our model can be understood as generating a hard temporal attention mask on-the-fly given previously seen samples, deciding which time steps should be attended and operating on a subset of input samples. Subsampling input sequences has been explored for visual storylines generation (Sigurdsson et al., 2016b), although jointly optimizing the RNN weights and the subsampling mechanism is often computationally infeasible and they use an Expectation-Maximization algorithm instead. Similar research has been conducted for video analysis tasks, discovering minimally needed evidence for event recognition (Bhattacharya et al., 2014) and training agents that decide which frames need to be observed in order to localize actions in time (Yeung et al., 2016; Su & Grauman, 2016). Motivated by the advantages of training recurrent models on shorter subsequences, efforts have been conducted on learning differentiable subsampling mechanisms (Raffel & Lawson, 2017), although the computational complexity of the proposed method precludes its application to long input sequences. In contrast, our proposed method can be trained with backpropagation and does not degrade the complexity of the baseline RNNs.
22
+
23
+ Accelerating inference in RNNs is difficult due to their inherently sequential nature, leading to the design of Quasi-Recurrent Neural Networks (Bradbury et al., 2017) and Simple Recurrent Units (Lei & Zhang, 2017), which relax the temporal dependency between consecutive steps. With the goal of speeding up RNN inference, LSTM-Jump (Yu et al., 2017) augments an LSTM cell with a classification layer that will decide how many steps to jump between RNN updates. Despite its promising results on text tasks, the model needs to be trained with REINFORCE (Williams, 1992), which requires defining a reasonable reward signal. Determining these rewards are non-trivial and may not necessarily generalize across tasks. Moreover, the number of tokens read between jumps, the maximum jump distance and the number of jumps allowed all need to be chosen in advance. These hyperparameters define a reduced set of subsequences that the model can sample, instead of allowing the network to learn any arbitrary sampling scheme. Unlike LSTM-Jump, our proposed approach is differentiable, thus not requiring any modifications to the loss function and simplifying the optimization process, and is not limited to a predefined set of sample selection patterns.
24
+
25
+ # 3 MODEL DESCRIPTION
26
+
27
+ An RNN takes an input sequence $\mathbf { x } = ( x _ { 1 } , \dots , x _ { T } )$ and generates a state sequence $\mathbf { s } = ( s _ { 1 } , \dots , s _ { T } )$ by iteratively applying a parametric state transition model $S$ from $t = 1$ to $T$ :
28
+
29
+ $$
30
+ s _ { t } = S ( s _ { t - 1 } , x _ { t } )
31
+ $$
32
+
33
+ We augment the network with a binary state update gate, $u _ { t } \in \{ 0 , 1 \}$ , selecting whether the state of the RNN will be updated $\mathit { u } _ { t } = 1$ ) or copied from the previous time step ${ { u } _ { t } } = 0$ ). At every time step $t$ , the probability $\tilde { u } _ { t + 1 } \in [ 0 , 1 ]$ of performing a state update at $t + 1$ is emitted. The resulting architecture is depicted in Figure 1 and can be characterized as follows:
34
+
35
+ $$
36
+ \begin{array} { r l } & { u _ { t } = f _ { b i n a r i z e } ( \tilde { u } _ { t } ) } \\ & { s _ { t } = u _ { t } \cdot S ( s _ { t - 1 } , x _ { t } ) + ( 1 - u _ { t } ) \cdot s _ { t - 1 } } \\ & { \Delta \tilde { u } _ { t } = \sigma ( W _ { p } s _ { t } + b _ { p } ) } \\ & { \tilde { u } _ { t + 1 } = u _ { t } \cdot \Delta \tilde { u } _ { t } + ( 1 - u _ { t } ) \cdot ( \tilde { u } _ { t } + \operatorname* { m i n } ( \Delta \tilde { u } _ { t } , 1 - \tilde { u } _ { t } ) ) } \end{array}
37
+ $$
38
+
39
+ where $W _ { p }$ is a weights vector, $b _ { p }$ is a scalar bias, $\sigma$ is the sigmoid function and $f _ { b i n a r i z e } : [ 0 , 1 ] $ $\{ 0 , 1 \}$ binarizes the input value. Should the network be composed of several layers, some columns of $W _ { p }$ can be fixed to 0 so that $\Delta \tilde { u } _ { t }$ depends only on the states of a subset of layers (see Section 4.3 for an example with two layers). We implement $f _ { b i n a r i z e }$ as a deterministic step function $u _ { t } =$ round $( \tilde { u } _ { t } )$ , although a stochastic sampling from a Bernoulli distribution $u _ { t } \sim$ Bernoulli $( \tilde { u } _ { t } )$ would be possible as well.
40
+
41
+ The model formulation encodes the observation that the likelihood of requesting a new input to update the state increases with the number of consecutively skipped samples. Whenever a state update is omitted, the pre-activation of the state update gate for the following time step, $\tilde { u } _ { t + 1 }$ , is incremented by $\Delta \tilde { u } _ { t }$ . On the other hand, if a state update is performed, the accumulated value is flushed and $\tilde { u } _ { t + 1 } = \Delta \tilde { u } _ { t }$ .
42
+
43
+ The number of skipped time steps can be computed ahead of time. For the particular formulation used in this work, where $f _ { b i n a r i z e }$ is implemented by means of a rounding function, the number of skipped samples after performing a state update at time step $t$ is given by:
44
+
45
+ $$
46
+ N _ { s k i p } ( t ) = \operatorname* { m i n } \{ n : n \cdot \Delta \tilde { u } _ { t } \geq 0 . 5 \} - 1
47
+ $$
48
+
49
+ where $n \in \mathbb { Z } ^ { + }$ . This enables more efficient implementations where no computation at all is performed whenever $u _ { t } = 0$ . These computational savings are possible because $\Delta \hat { \boldsymbol u } _ { t } = \sigma ( W _ { p } \boldsymbol s _ { t } + \boldsymbol b _ { p } ) =$ $\sigma ( W _ { p } s _ { t - 1 } + b _ { p } ) = \Delta \tilde { u } _ { t - 1 }$ when $u _ { t } = 0$ and there is no need to evaluate it again, as depicted in Figure 1d.
50
+
51
+ There are several advantages in reducing the number of RNN updates. From the computational standpoint, fewer updates translates into fewer required sequential operations to process an input signal, leading to faster inference and reduced energy consumption. Unlike some other models that aim to reduce the average number of operations per step (Neil et al., 2016; Jernite et al., 2017), ours enables skipping steps completely. Replacing RNN updates with copy operations increases the memory of the network and its ability to model long term dependencies even for gated units, since the exponential memory decay observed in LSTM and GRU (Neil et al., 2016) is alleviated. During training, gradients are propagated through fewer updating time steps, providing faster convergence in some tasks involving long sequences. Moreover, the proposed model is orthogonal to recent advances in RNNs and could be used in conjunction with such techniques, e.g. normalization (Cooijmans et al., 2017; Ba et al., 2016), regularization (Zaremba et al., 2015; Krueger et al., 2017), variable computation (Jernite et al., 2017; Neil et al., 2016) or even external memory (Graves et al., 2014; Weston et al., 2014).
52
+
53
+ ![](images/4c8bbb74368a7356747a0b01aa4070e7d27939c71f05129ebbb30ef959258167.jpg)
54
+ Figure 1: Model architecture of the proposed Skip RNN. (a) Complete Skip RNN architecture, where the computation graph at time step $t$ is conditioned on $u _ { t }$ . $\mathbf { ( b ) }$ Architecture when the state is updated, i.e. $u _ { t } = 1$ . (c) Architecture when the update step is skipped and the previous state is copied, i.e. $u _ { t } = 0$ . (d) In practice, redundant computation is avoided by propagating $\Delta \tilde { u } _ { t }$ between time steps when $u _ { t } = 0$ .
55
+
56
+ # 3.1 ERROR GRADIENTS
57
+
58
+ The whole model is differentiable except for $f _ { b i n a r i z e }$ , which outputs binary values. A common method for optimizing functions involving discrete variables is REINFORCE (Williams, 1992), although several estimators have been proposed for the particular case of neurons with binary outputs (Bengio et al., 2013). We select the straight-through estimator (Hinton, 2012; Bengio et al., 2013), which consists of approximating the step function by the identity when computing gradients during the backward pass:
59
+
60
+ $$
61
+ \frac { \partial f _ { b i n a r i z e } \left( x \right) } { \partial x } = 1
62
+ $$
63
+
64
+ This yields a biased estimator that has proven more efficient than other unbiased but high-variance estimators such as REINFORCE (Bengio et al., 2013) and has been successfully applied in different works (Courbariaux et al., 2016; Chung et al., 2017). By using the straight-through estimator as the backward pass for $f _ { b i n a r i z e }$ , all the model parameters can be trained to minimize the target loss function with standard backpropagation and without defining any additional supervision or reward signal.
65
+
66
+ # 3.2 LIMITING COMPUTATION
67
+
68
+ The Skip RNN is able to learn when to update or copy the state without explicit information about which samples are useful to solve the task at hand. However, a different operating point on the trade-off between performance and number of processed samples may be required depending on the application, e.g. one may be willing to sacrifice a few accuracy points in order to run faster on machines with a low computational power, or to reduce energy impact on portable devices. The proposed model can be encouraged to perform fewer state updates through additional loss terms, a common practice in neural networks with dynamically allocated computation (Liu & Deng, 2017; McGill & Perona, 2017; Graves, 2016; Jernite et al., 2017). In particular, we consider a cost per sample condition
69
+
70
+ $$
71
+ L _ { b u d g e t } = \lambda \cdot \sum _ { t = 1 } ^ { T } u _ { t } ,
72
+ $$
73
+
74
+ where $L _ { b u d g e t }$ is the cost associated to a single sequence, $\lambda$ is the cost per sample and $T$ is the sequence length. This formulation bears a similarity to weight decay regularization, where the network is encouraged to slowly converge toward a solution where the norm of the weights is small. Similarly, in this case the network is encouraged to converge toward a solution where fewer state updates are required.
75
+
76
+ Although the above budget formulation is extensively studied in our experiments, other budget loss terms can be used depending on the application. For instance, a specific number of samples may be encouraged by applying a $L _ { 1 }$ or $L _ { 2 }$ loss between the target value and the number of updates per sequence, $et { } { ' } \sum _ { t = 1 } ^ { T } u _ { t }$ .
77
+
78
+ # 4 EXPERIMENTS
79
+
80
+ In the following section, we investigate the advantages of adding this state skipping to two common RNN architectures, LSTM and GRU, for a variety of tasks. In addition to the evaluation metric for each task, we report the number of RNN state updates (i.e., the number of elements in the input sequence used by the model) and the number of floating point operations (FLOPs) as measures of the computational load for each model. Since skipping an RNN update results in ignoring its corresponding input, we will refer to the number of updates and the number of used samples (i.e. elements in a sequence) interchangeably. With the goal of studying the effect of skipping state updates on the learning capability of the networks, we also introduce a baseline which skips a state update with probability $p _ { s k i p }$ . We tune the skipping probability to obtain models that perform a similar number of state updates to the Skip RNN models.
81
+
82
+ Training is performed with Adam (Kingma & Ba, 2014), learning rate of $1 0 ^ { - 4 }$ , $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } =$ 0.999 and $\epsilon = 1 0 ^ { - 8 }$ on batches of 256. Gradient clipping (Pascanu et al., 2013) with a threshold of 1 is applied to all trainable variables. Bias $b _ { p }$ in Equation 4 is initialized to 1, so that all samples are used at the beginning of training2. The initial hidden state $s _ { 0 }$ is learned during training, whereas $\tilde { u } _ { 0 }$ is set to a constant value of 1 in order to force the first update at $t = 1$ .
83
+
84
+ Experiments are implemented with TensorFlow3 and run on a single NVIDIA K80 GPU.
85
+
86
+ # 4.1 ADDING TASK
87
+
88
+ We revisit one of the original LSTM tasks (Hochreiter & Schmidhuber, 1997), where the network is given a sequence of (value, marker) tuples. The desired output is the addition of only two values that are marked with a 1, whereas those marked with a 0 need to be ignored. We follow the experimental setup in Neil et al. (2016), where the first marker is randomly placed among the first $10 \%$ of samples (drawn with uniform probability) and the second one is placed among the last half of samples (drawn with uniform probability). This marker distribution yields sequences where at least $40 \%$ of the samples are distractors and provide no useful information at all. However, it is worth noting that in this task the risk of missing a marker is very large as compared to the benefits of working on shorter subsequences.
89
+
90
+ Table 1: Results for the adding task, displayed as $m e a n \pm s t d$ over four different runs. The task is considered to be solved if the MSE is at least two orders of magnitude below the variance of the output distribution.
91
+
92
+ <table><tr><td>Model</td><td>Task solved</td><td> State updates</td><td>Inference FLOPs</td></tr><tr><td>LSTM</td><td>Yes</td><td>100.0%± 0.0%</td><td>2.46 ×106</td></tr><tr><td>LSTM (pskip = 0.2)</td><td>No</td><td>80.0%±0.1%</td><td>1.97 × 106</td></tr><tr><td>LSTM (Pskip = 0.5)</td><td>No</td><td>50.1%± 0.1%</td><td>1.23 × 106</td></tr><tr><td>Skip LSTM, λ= 0</td><td>Yes</td><td>81.1% ± 3.6%</td><td>2.00 ×106</td></tr><tr><td>Skip LSTM,λ= 10-5</td><td>Yes</td><td>53.9%± 2.1%</td><td>1.33 × 106</td></tr><tr><td>GRU</td><td>Yes</td><td>100.0% ± 0.0%</td><td>1.85 × 106</td></tr><tr><td>GRU (pskip = 0.02)</td><td>No</td><td>98.0%±0.0%</td><td>1.81 × 106</td></tr><tr><td>GRU (pskip = 0.5)</td><td>No</td><td>49.9%± 0.6%</td><td>9.25×105</td></tr><tr><td>Skip GRU, λ = 0</td><td>Yes</td><td>97.9%± 3.2%</td><td>1.81 × 106</td></tr><tr><td>Skip GRU,λ = 10-5</td><td>Yes</td><td>50.7%± 2.6%</td><td>9.40 × 105</td></tr></table>
93
+
94
+ We train RNN models with 110 units each on sequences of length 50, where the values are uniformly drawn from $\mathcal { U } ( - 0 . 5 , 0 . 5 )$ . The final RNN state is fed to a fully connected layer that regresses the scalar output. The model is trained to minimize the Mean Squared Error (MSE) between the output and the ground truth. We consider that a model is able to solve the task when its MSE on a held-out set of examples is at least two orders of magnitude below the variance of the output distribution. This criterion is a stricter version of the one followed by Hochreiter & Schmidhuber (1997).
95
+
96
+ While all models learn to solve the task, results in Table 1 show that Skip RNN models are able to do so with roughly half of the updates of their corresponding counterparts. We observed that the models using fewer updates never miss any marker, since the penalization in terms of MSE would be very large (see Section B.1 for examples). This is confirmed by the poor performance of the baselines that randomly skip state updates, which are not able to solve the tasks even when the skipping probability is low. Skip RNN models learn to skip most of the samples in the $40 \%$ of the sequence where there are no markers. Moreover, most updates are skipped once the second marker is found, since all the relevant information in the sequence has already been seen. This last pattern provides evidence that the proposed models effectively learn whether to update or copy the hidden state based on the input sequence, as opposed to learning biases in the dataset only. As a downside, Skip RNN models show some difficulties skipping a large number of updates at once, probably due to the cumulative nature of $\tilde { u } _ { t }$ .
97
+
98
+ # 4.2 MNIST CLASSIFICATION FROM A SEQUENCE OF PIXELS
99
+
100
+ The MNIST handwritten digits classification benchmark (LeCun et al., 1998) is traditionally addressed with Convolutional Neural Networks (CNNs) that efficiently exploit spatial dependencies through weight sharing. By flattening the $2 8 \times 2 8$ images into 784-d vectors, however, it can be reformulated as a challenging task for RNNs where long term dependencies need to be leveraged (Le et al., 2015b). We follow the standard data split and set aside 5,000 training samples for validation purposes. After processing all pixels with an RNN with 110 units, the last hidden state is fed into a linear classifier predicting the digit class. All models are trained for 600 epochs to minimize cross-entropy loss.
101
+
102
+ Table 2 summarizes classification results on the test set after 600 epochs of training. Skip RNNs are not only able to solve the task using fewer updates than their counterparts, but also show a lower variation among runs and train faster (see Figure 2). We hypothesize that skipping updates make the Skip RNNs work on shorter subsequences, simplifying the optimization process and allowing the networks to capture long term dependencies more easily. A similar behavior was observed for Phased LSTM, where increasing the sparsity of cell updates accelerates training for very long sequences (Neil et al., 2016). However, the drop in performance observed in the models where the state updates are skipped randomly suggests that learning which samples to use is a key component in the performance of Skip RNN.
103
+
104
+ <table><tr><td>Model</td><td>Accuracy</td><td>State updates</td><td>Inference FLOPs</td></tr><tr><td>LSTM</td><td>0.910 ± 0.045</td><td>784.00 ± 0.00</td><td>3.83×107</td></tr><tr><td>LSTM (pskip = 0.5)</td><td>0.893 ± 0.003</td><td>392.03 ± 0.05</td><td>1.91 × 107</td></tr><tr><td>Skip LSTM,X= 10-4</td><td>0.973 ± 0.002</td><td>379.38 ± 33.09</td><td>1.86 ×107</td></tr><tr><td>GRU</td><td>0.968 ± 0.013</td><td>784.00 ±0.00</td><td>2.87×107</td></tr><tr><td>GRU (p skip = 0.5)</td><td>0.912 ±0.004</td><td>391.86 ± 0.14</td><td>1.44 × 107</td></tr><tr><td>Skip GRU,X=10-4</td><td>0.976 ± 0.003</td><td>392.62 ± 26.48</td><td>1.44 × 107</td></tr><tr><td>TANH-RNN (Le et al., 2015a)</td><td>0.350</td><td>784.00</td><td></td></tr><tr><td>iRNN (Le et al., 2015a)</td><td>0.970</td><td>784.00</td><td></td></tr><tr><td>uRNN (Arjovsky et al., 2016)</td><td>0.951</td><td>784.00</td><td></td></tr><tr><td>sTANH-RNN (Zhang et al., 2016)</td><td>0.981</td><td>784.00</td><td></td></tr><tr><td>LSTM (Cooijmans et al., 2017)</td><td>0.989</td><td>784.00</td><td></td></tr><tr><td>BN-LSTM (Cooijmans et al., 2017)</td><td>0.990</td><td>784.00</td><td></td></tr></table>
105
+
106
+ Table 2: Accuracy, used samples and average FLOPs per sequence at inference on the test set of MNIST after 600 epochs of training. Results are displayed as $m e a n \pm s t d$ over four different runs.
107
+
108
+ ![](images/9fba09fd879c43112caf70dc4538bb8c8e2159ecfd6ea365bece1928549acb1b.jpg)
109
+ Figure 2: Accuracy evolution during training on the validation set of MNIST. The Skip GRU exhibits lower variance and faster convergence than the baseline GRU. A similar behavior is observed for LSTM and Skip LSTM, but omitted for clarity. Shading shows maximum and minimum over 4 runs, while dark lines indicate the mean.
110
+
111
+ The performance of RNN models on this task can be boosted through techniques like recurrent batch normalization (Cooijmans et al., 2017) or recurrent skip coefficients (Zhang et al., 2016). Cooijmans et al. (2017) show how an LSTM with specific weight initialization schemes for improved gradient flow (Le et al., 2015a; Arjovsky et al., 2016) can reach accuracy rates of up to $0 . 9 \hat { 8 } 9 \%$ . Note that these techniques are orthogonal to skipping state updates and Skip RNN models could benefit from them as well.
112
+
113
+ Sequences of pixels can be reshaped back into 2D images, allowing to visualize the samples used by the RNNs as a sort of hard visual attention model ( $\mathrm { { X u } }$ et al., 2015). Examples such as the ones depicted in Figure 3 show how the model learns to skip pixels that are not discriminative, such as the padding regions in the top and bottom of images. Similarly to the qualitative results for the adding task (Section 4.1), attended samples vary depending on the particular input being given to the network.
114
+
115
+ # 4.3 TEMPORAL ACTION LOCALIZATION ON CHARADES
116
+
117
+ One popular approach to video analysis tasks today is to extract frame-level features with a CNN and modeling temporal dynamics with an RNN (Donahue et al., 2015; Yue-Hei $\mathrm { N g }$ et al., 2015). Videos are commonly recorded at high sampling rates, generating long sequences with strong temporal redundancies that are challenging for RNNs. Moreover, processing frames with a CNN is computationally expensive and may become prohibitive for high frame rates. These issues have been alleviated in previous works by using short clips (Donahue et al., 2015) or by downsampling the original data in order to cover long temporal spans without increasing the sequence length excessively (Yue-Hei $\mathrm { N g }$ et al., 2015). Instead of addressing the long sequence problem at the input data level, we let the network learn which frames need to be used.
118
+
119
+ ![](images/0f56669854424b159f8ca406c1931ba5f8c9bcb930aef3dbceb93dd4832102ab.jpg)
120
+ Figure 3: Sample usage examples for the Skip LSTM with $\lambda = 1 0 ^ { - 4 }$ on the test set of MNIST. Red pixels are used, whereas blue ones are skipped.
121
+
122
+ Charades (Sigurdsson et al., 2016a) is a dataset containing 9,848 videos annotated for 157 action classes in a per-frame fashion. Frames are encoded using $f c 7$ features from the RGB stream of a Two-Stream CNN provided by the organizers of the challenge4, extracted at 6 fps. The encoded frames are fed into two stacked RNN layers with 256 units each and the hidden state in the last RNN layer is used to compute the update probability for the Skip RNN models. Since each frame may be annotated with zero or more classes, the networks are trained to minimize element-wise binary cross-entropy at every time step. Unlike the previous sequence tagging tasks, this setup allows us to evaluate the performance of Skip RNN on a task where the output is a sequence as well.
123
+
124
+ Evaluation is performed following the setup by Sigurdsson et al. (2016c), but evaluating on 100 equally spaced frames instead of 25, and results are reported in Table 3. It is surprising that the GRU baselines that randomly skip state updates perform on par with their Skip GRU counterparts for low skipping probabilities. We hypothesize several reasons for this behavior, which was not observed in previous experiments: (1) there is a supervision signal at every time step and the inputs and (2) outputs are strongly correlated in consecutive frames. On the other hand, Skip RNN models clearly outperform the random methods when fewer updates are allowed. Note that this setup is far more challenging because of the longer time spans between updates, so properly distributing the state updates along the sequence is key to the performance of the models. Interestingly, Skip RNN models learn which frames need to be attended from RGB data and without having access to explicit motion information.
125
+
126
+ Skip GRU tends to perform fewer state updates than Skip LSTM when the cost per sample is low or none. This behavior is the opposite of the one observed in the adding task (Section 4.1), which may be related to the observation that determining the best performing gated unit depends on the task at hand Chung et al. (2014). Indeed, GRU models consistently outperform LSTM ones on this task. This mismatch in the number of used samples is not observed for large values of $\lambda$ , as both Skip LSTM and Skip GRU converge to a comparable number of used samples.
127
+
128
+ A previous work reports better action localization performance by integrating RGB and optical flow information as an input to an LSTM, reaching $9 . { \bar { 6 } } 0 \%$ mAP (Sigurdsson et al., 2016c). This boost in performance comes at the cost of roughly doubling the number of FLOPs and memory footprint of the CNN encoder, plus requiring the extraction of flow information during a preprocessing step. Interestingly, our model learns which frames need to be attended from RGB data and without having access to explicit motion information.
129
+
130
+ <table><tr><td>Model</td><td>mAP(%)</td><td>State updates</td><td>Inference FLOPs</td></tr><tr><td>LSTM</td><td>8.40</td><td>172.9 ± 47.4</td><td>2.65×1012</td></tr><tr><td>LSTM (pskip = 0.75)</td><td>8.11</td><td>43.3 ± 13.2</td><td>6.63 × 1011</td></tr><tr><td>LSTM (pskip = 0.90)</td><td>7.21</td><td>17.2 ± 6.1</td><td>2.65×1011</td></tr><tr><td>Skip LSTM,λ= 0</td><td>8.32</td><td>172.9 ± 47.4</td><td>2.65×1012</td></tr><tr><td>Skip LSTM,λ= 10-4</td><td>8.61</td><td>172.9 ± 47.4</td><td>2.65×1012</td></tr><tr><td>Skip LSTM,λ= 10-3</td><td>8.32</td><td>41.9 ± 11.3</td><td>6.41 × 1011</td></tr><tr><td>Skip LSTM,X = 10-2</td><td>7.86</td><td>17.4 ± 4.4</td><td>2.66 × 1011</td></tr><tr><td>GRU</td><td>8.70</td><td>172.9 ± 47.4</td><td>2.65×1012</td></tr><tr><td>GRU (pskip = 0.10)</td><td>8.94</td><td>155.6 ± 42.9</td><td>2.39 ×1012</td></tr><tr><td>GRU (pskip = 0.40)</td><td>8.81</td><td>103.6 ± 29.3</td><td>1.06 × 1012</td></tr><tr><td>GRU (pskip = 0.70)</td><td>8.42</td><td>51.9 ± 15.4</td><td>7.95 × 1011</td></tr><tr><td>GRU (pskip = 0.90)</td><td>7.09</td><td>17.3 ± 6.3</td><td>2.65×1011</td></tr><tr><td>Skip GRU,λ= 0</td><td>8.94</td><td>159.9 ± 46.9</td><td>2.45×1012</td></tr><tr><td>Skip GRU,入 = 10-4</td><td>8.76</td><td>100.8 ± 28.1</td><td>1.54 × 1012</td></tr><tr><td>Skip GRU,λ = 10-3</td><td>8.68</td><td>54.2 ± 16.2</td><td>8.29×1011</td></tr><tr><td>Skip GRU,λ = 10-2</td><td>7.95</td><td>18.4 ± 5.1</td><td>2.82 × 1011</td></tr></table>
131
+
132
+ Table 3: Mean Average Precision (mAP), used samples and average FLOPs per sequence at inference on the validation set of Charades. The number of state updates is displayed as $m e a n \pm s t d$ over all the videos in the validation set.
133
+
134
+ # 5 CONCLUSION
135
+
136
+ We presented Skip RNNs as an extension to existing recurrent architectures enabling them to skip state updates thereby reducing the number of sequential operations in the computation graph. Unlike other approaches, all parameters in Skip RNN are trained with backpropagation. Experiments conducted with LSTMs and GRUs showed that Skip RNNs can match or in some cases even outperform the baseline models while relaxing their computational requirements. Skip RNNs provide faster and more stable training for long sequences and complex models, owing to gradients being backpropagated through fewer time steps resulting in a simpler optimization task. Moreover, the introduced computational savings are better suited for modern hardware than those methods that reduce the amount of computation required at each time step (Koutnik et al., 2014; Neil et al., 2016; Chung et al., 2017).
137
+
138
+ # ACKNOWLEDGMENTS
139
+
140
+ This work was partially supported by the Spanish Ministry of Economy and Competitivity and the European Regional Development Fund (ERDF) under contracts TEC2016-75976-R and TIN2015- 65316-P, by the BSC-CNS Severo Ochoa program SEV-2015-0493, and grant 2014-SGR-1051 by the Catalan Government. V´ıctor Campos was supported by Obra Social “la Caixa” through La Caixa-Severo Ochoa International Doctoral Fellowship program. We would also like to thank the technical support team at the Barcelona Supercomputing Center.
141
+
142
+ # REFERENCES
143
+
144
+ Amjad Almahairi, Nicolas Ballas, Tim Cooijmans, Yin Zheng, Hugo Larochelle, and Aaron Courville. Dynamic capacity networks. In ICML, 2016.
145
+
146
+ Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. In ICML, 2016.
147
+
148
+ Jimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. Multiple object recognition with visual attention. arXiv preprint arXiv:1412.7755, 2014.
149
+
150
+ Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016.
151
+
152
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015.
153
+
154
+ Yoshua Bengio. Deep learning of representations: Looking forward. In SLSP, 2013.
155
+
156
+ Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, 1994.
157
+
158
+ Yoshua Bengio, Nicholas Leonard, and Aaron Courville. Estimating or propagating gradients ´ through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.
159
+
160
+ Subhabrata Bhattacharya, Felix X Yu, and Shih-Fu Chang. Minimally needed evidence for complex event recognition in unconstrained videos. In ICMR, 2014.
161
+
162
+ James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. In ICLR, 2017.
163
+
164
+ Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In CVPR, 2017.
165
+
166
+ Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Hol- ¨ ger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In EMNLP, 2014.
167
+
168
+ Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
169
+
170
+ Junyoung Chung, Sungjin Ahn, and Yoshua Bengio. Hierarchical multiscale recurrent neural networks. In ICLR, 2017.
171
+
172
+ Tim Cooijmans, Nicolas Ballas, Cesar Laurent, C¸ a ´ glar G ˘ ulc¸ehre, and Aaron Courville. Recurrent ¨ batch normalization. In ICLR, 2017.
173
+
174
+ Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained $\mathrm { t o } + 1$ or-1. arXiv preprint arXiv:1602.02830, 2016.
175
+
176
+ Andrew Davis and Itamar Arel. Low-rank approximations for conditional feedforward computation in deep neural networks. arXiv preprint arXiv:1312.4461, 2013.
177
+
178
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In CVPR, 2009.
179
+
180
+ Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. In CVPR, 2015.
181
+
182
+ Alex Graves. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016.
183
+
184
+ Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, 2013.
185
+
186
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
187
+
188
+ Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In NIPS, 2015.
189
+
190
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
191
+
192
+ Geoffrey Hinton. Neural networks for machine learning. Coursera video lectures, 2012.
193
+
194
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997.
195
+
196
+ Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q Weinberger. Deep networks with stochastic depth. In ECCV, 2016.
197
+
198
+ Yacine Jernite, Edouard Grave, Armand Joulin, and Tomas Mikolov. Variable computation in recurrent neural networks. In ICLR, 2017.
199
+
200
+ Yoon Kim. Convolutional neural networks for sentence classification. In EMNLP, 2014.
201
+
202
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
203
+
204
+ Jan Koutnik, Klaus Greff, Faustino Gomez, and Juergen Schmidhuber. A clockwork rnn. In ICML, 2014.
205
+
206
+ David Krueger, Tegan Maharaj, Janos Kram ´ ar, Mohammad Pezeshki, Nicolas Ballas, Nan Rose-´ mary Ke, Anirudh Goyal, Yoshua Bengio, Hugo Larochelle, Aaron Courville, et al. Zoneout: Regularizing rnns by randomly preserving hidden activations. In ICLR, 2017.
207
+
208
+ Quoc V Le, Navdeep Jaitly, and Geoffrey E Hinton. A simple way to initialize recurrent networks of rectified linear units. arXiv preprint arXiv:1504.00941, 2015a.
209
+
210
+ Quoc V Le, Navdeep Jaitly, and Geoffrey E Hinton. A simple way to initialize recurrent networks of rectified linear units. arXiv preprint arXiv:1504.00941, 2015b.
211
+
212
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 1998.
213
+
214
+ Tao Lei and Yu Zhang. Training rnns as fast as cnns. arXiv preprint arXiv:1709.02755, 2017.
215
+
216
+ Lanlan Liu and Jia Deng. Dynamic deep neural networks: Optimizing accuracy-efficiency trade-offs by selective execution. arXiv preprint arXiv:1701.00299, 2017.
217
+
218
+ Shayne Longpre, Sabeek Pradhan, Caiming Xiong, and Richard Socher. A way out of the odyssey: Analyzing and combining recent insights for lstms. arXiv preprint arXiv:1611.05104, 2016.
219
+
220
+ Andrew L Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew Y Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In ACL, 2011.
221
+
222
+ Mason McGill and Pietro Perona. Deciding how to decide: Dynamic routing in artificial neural networks. In ICML, 2017.
223
+
224
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In NIPS, 2013.
225
+
226
+ Takeru Miyato, Andrew M Dai, and Ian Goodfellow. Adversarial training methods for semisupervised text classification. In ICLR, 2017.
227
+
228
+ Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In NIPS, 2014.
229
+
230
+ Daniel Neil, Michael Pfeiffer, and Shih-Chii Liu. Phased LSTM: accelerating recurrent network training for long or event-based sequences. In NIPS, 2016.
231
+
232
+ Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In ICML, 2013.
233
+
234
+ Colin Raffel and Dieterich Lawson. Training a subsampling mechanism in expectation. In ICLR Workshop Track, 2017.
235
+
236
+ Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In ICLR, 2017.
237
+
238
+ Evan Shelhamer, Kate Rakelly, Judy Hoffman, and Trevor Darrell. Clockwork convnets for video semantic segmentation. arXiv preprint arXiv:1608.03609, 2016.
239
+
240
+ Gunnar Sigurdsson, Gul Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. Hol- ¨ lywood in homes: Crowdsourcing data collection for activity understanding. In ECCV, 2016a.
241
+
242
+ Gunnar A Sigurdsson, Xinlei Chen, and Abhinav Gupta. Learning visual storylines with skipping recurrent neural networks. In ECCV, 2016b.
243
+
244
+ Gunnar A Sigurdsson, Santosh Divvala, Ali Farhadi, and Abhinav Gupta. Asynchronous temporal fields for action recognition. arXiv preprint arXiv:1612.06371, 2016c.
245
+
246
+ Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In NIPS, 2014.
247
+
248
+ Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012.
249
+
250
+ Yu-Chuan Su and Kristen Grauman. Leaving some stones unturned: dynamic feature prioritization for activity detection in streaming video. In ECCV, 2016.
251
+
252
+ Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In ICCV, 2015.
253
+
254
+ Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. arXiv preprint arXiv:1410.3916, 2014.
255
+
256
+ Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 1992.
257
+
258
+ Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015.
259
+
260
+ Serena Yeung, Olga Russakovsky, Greg Mori, and Li Fei-Fei. End-to-end learning of action detection from frame glimpses in videos. In CVPR, 2016.
261
+
262
+ Adams Wei Yu, Hongrae Lee, and Quoc V Le. Learning to skim text. In ACL, 2017.
263
+
264
+ Joe Yue-Hei $\mathrm { N g }$ , Matthew Hausknecht, Sudheendra Vijayanarasimhan, Oriol Vinyals, Rajat Monga, and George Toderici. Beyond short snippets: Deep networks for video classification. In CVPR, 2015.
265
+
266
+ Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. In ICLR, 2015.
267
+
268
+ Saizheng Zhang, Yuhuai Wu, Tong Che, Zhouhan Lin, Roland Memisevic, Ruslan R Salakhutdinov, and Yoshua Bengio. Architectural complexity measures of recurrent neural networks. In NIPS, 2016.
269
+
270
+ # A ADDITIONAL EXPERIMENTS
271
+
272
+ # A.1 FREQUENCY DISCRIMINATION TASK
273
+
274
+ In this experiment, the network is trained to classify between sinusoids whose period is in range $T \sim \mathcal { U } \left( 5 , 6 \right)$ milliseconds and those whose period is in range $T \sim \{ ( 1 , 5 ) \cup ( 6 , 1 0 0 ) \}$ milliseconds (Neil et al., 2016). Every sine wave with period $T$ has a random phase shift drawn from $\mathcal { U } ( 0 , T )$ . At every time step, the input to the network is a single scalar representing the amplitude of the signal. Since sinusoid are continuous signals, this tasks allows to study whether Skip RNNs converge to the same solutions when their parameters are fixed but the sampling period is changed. We study two different sampling periods, $\mathrm { \tilde { \it T } _ { 3 } } = \mathrm { \{ 0 . 5 , 1 \} }$ milliseconds, for each set of hyperparameters.
275
+
276
+ We train RNNs with 110 units each on input signals of 100 milliseconds. Batches are stratified, containing the same number of samples for each class, yielding a $50 \%$ chance accuracy. The last state of the RNN is fed into a 2-way classifier and trained with cross-entropy loss. We consider that a model is able to solve the task when it achieves an accuracy over $9 9 \%$ on a held-out set of examples.
277
+
278
+ Table 4 summarizes results for this task. When no cost per sample is set $\lambda = 0$ ), the number of updates differ under different sampling conditions. We attribute this behavior to the potentially large number of local minima in the cost function, since there are numerous subsampling patterns for which the task can be successfully solved and we are not explicitly encouraging the network to converge to a particular solution. On the other hand, when $\lambda > 0$ Skip RNN models with the same cost per sample use roughly the same number of input samples even when the sampling frequency is doubled. This is a desirable property, since solutions are robust to oversampled input signals. Qualitative results can be found in Section B.2.
279
+
280
+ <table><tr><td rowspan="2">Model</td><td colspan="2">Ts = 1ms (length 100)</td><td colspan="2">Ts = O.5ms (length 200)</td></tr><tr><td>Task solved</td><td>State updates</td><td>Task solved</td><td> State updates</td></tr><tr><td>LSTM</td><td>Yes</td><td>100.0 ± 0.00</td><td>Yes</td><td>200.0 ± 0.00</td></tr><tr><td>Skip LSTM, λ= 0</td><td>Yes</td><td>55.5 ± 16.9</td><td>Yes</td><td>147.9 ± 27.0</td></tr><tr><td>Skip LSTM,λ = 10-5</td><td>Yes</td><td>47.4 ± 14.1</td><td>Yes</td><td>50.7 ± 16.8</td></tr><tr><td>Skip LSTM,λ = 10-4</td><td>Yes</td><td>12.7 ± 0.5</td><td>Yes</td><td>19.9 ± 1.5</td></tr><tr><td>GRU</td><td>Yes</td><td>100.0 ± 0.00</td><td>Yes</td><td>200.0 ±0.00</td></tr><tr><td>Skip GRU, λ = 0</td><td>Yes</td><td>73.7 ± 17.9</td><td>Yes</td><td>167.0 ± 18.3</td></tr><tr><td>Skip GRU,λ = 10-5</td><td>Yes</td><td>51.9 ± 10.2</td><td>Yes</td><td>54.2 ± 4.4</td></tr><tr><td>Skip GRU, λ= 10-4</td><td>Yes</td><td>23.5 ± 6.2</td><td>Yes</td><td>22.5 ± 2.1</td></tr></table>
281
+
282
+ Table 4: Results for the frequency discrimination task, displayed as $m e a n \pm s t d$ over four different runs. The task is considered to be solved if the classification accuracy is over $9 9 \%$ . Models with the same cost per sample $( \lambda > 0$ ) converge to a similar number of used samples under different sampling conditions.
283
+
284
+ # A.2 SENTIMENT ANALYSIS ON IMDB
285
+
286
+ The IMDB dataset (Maas et al., 2011) contains 25,000 training and 25,000 testing movie reviews annotated into two classes, positive and negative sentiment, with an approximate average length of 240 words per review. We set aside $1 5 \%$ of training data for validation purposes. Words are embedded into 300-d vector representations before being fed to an RNN with 128 units. The embedding matrix is initialized using pre-trained word2vec5 embeddings (Mikolov et al., 2013) when available, or random vectors drawn from $\mathcal { U } ( - 0 . 2 5 , 0 . 2 5 )$ otherwise (Kim, 2014). Dropout with rate 0.2 is applied between the last RNN state and the classification layer in order to reduce overfitting. We evaluate the models on sequences of length 200 and 400 by cropping longer sequences and padding shorter ones (Yu et al., 2017).
287
+
288
+ Results on the test are reported in Table 5. In a task where it is hard to predict which input tokens will be discriminative, the Skip RNN models are able to achieve similar accuracy rates to the baseline models while reducing the number of required updates. These results highlight the trade-off between accuracy and the available computational budget, since a larger cost per sample results in lower accuracies. However, allowing the network to select which samples to use instead of cropping sequences at a given length boosts performance, as observed for the Skip LSTM (length 400, $\lambda =$ $1 0 ^ { { \bar { - 4 } } { \bar { \cdot } } }$ ), which achieves a higher accuracy than the baseline LSTM (length 200) while seeing roughly the same number of words per review. A similar behavior can be seen for the Skip RNN models with $\lambda = 1 0 ^ { - 3 }$ , where allowing them to select words from longer reviews boosts classification accuracy while using a comparable number of tokens per sequence.
289
+
290
+ In order to reduce overfitting of large models, Miyato et al. (2017) leverage additional unlabeled data through adversarial training and achieve a state of the art accuracy of 0.941 on IMDB. For an extended analysis on how different experimental setups affect the performance of RNNs on this task, we refer the reader to (Longpre et al., 2016).
291
+
292
+ Table 5: Accuracy and used samples on the test set of IMDB for different sequence lengths. Results are displayed as $m e a n \pm s t d$ over four different runs.
293
+
294
+ <table><tr><td rowspan="2">Model</td><td colspan="2">Length 200</td><td colspan="2">Length 400</td></tr><tr><td>Accuracy</td><td>State updates</td><td>Accuracy</td><td> State updates</td></tr><tr><td>LSTM</td><td>0.843 ± 0.003</td><td>200.00±0.00</td><td>0.868 ± 0.004</td><td>400.00 ± 0.00</td></tr><tr><td>Skip LSTM,λ= 0</td><td>0.844 ± 0.004</td><td>196.75 ± 5.63</td><td>0.866 ± 0.004</td><td>369.70 ± 19.35</td></tr><tr><td>Skip LSTM, X= 10-5</td><td>0.846 ± 0.004</td><td>197.15 ± 3.16</td><td>0.865 ± 0.001</td><td>380.62 ± 18.20</td></tr><tr><td>Skip LSTM,λ= 10-4</td><td>0.837 ± 0.006</td><td>164.65 ± 8.67</td><td>0.862 ± 0.003</td><td>186.30 ± 25.72</td></tr><tr><td>Skip LSTM,λ= 10-3</td><td>0.811 ± 0.007</td><td>73.85 ± 1.90</td><td>0.836 ± 0.007</td><td>84.22 ± 1.98</td></tr><tr><td>GRU</td><td>0.845 ± 0.006</td><td>200.00 ±0.00</td><td>0.862 ± 0.003</td><td>400.00 ± 0.00</td></tr><tr><td>Skip GRU,λ = 0</td><td>0.848 ±0.002</td><td>200.00 ±0.00</td><td>0.866 ±0.002</td><td>399.02 ±1.69</td></tr><tr><td>Skip GRU, λ= 10-5</td><td>0.842 ± 0.005</td><td>199.25 ± 1.30</td><td>0.862 ±0.008</td><td>398.00 ±2.06</td></tr><tr><td>Skip GRU, 入= 10-4</td><td>0.834 ± 0.006</td><td>180.97 ± 8.90</td><td>0.853 ± 0.011</td><td>314.30 ± 2.82</td></tr><tr><td>Skip GRU,λ = 10-3</td><td>0.800 ±0.007</td><td>106.15 ± 37.92</td><td>0.814 ± 0.005</td><td>99.12 ± 2.69</td></tr></table>
295
+
296
+ # A.3 ACTION CLASSIFICATION ON UCF-101
297
+
298
+ UCF-101 (Soomro et al., 2012) is a dataset containing 13,320 trimmed videos belonging to 101 different action categories. We use 10 seconds of video sampled at 25 fps, cropping longer ones and padding shorter examples with empty frames. Activations in the Global Average Pooling layer from a ResNet-50 (He et al., 2016) CNN pretrained on the ImageNet dataset (Deng et al., 2009) are used as frame-level features, which are fed into two stacked RNN layers with 512 units each. The weights in the CNN are not tuned during training to reduce overfitting. The hidden state in the last RNN layer is used to compute the update probability for the Skip RNN models.
299
+
300
+ We evaluate the different models on the first split of UCF-101 and report results in Table 6. Skip RNN models do not only improve the classification accuracy with respect to the baseline, but require very few updates to do so, possibly due to the low motion between consecutive frames resulting in frame-level features with high temporal redundancy (Shelhamer et al., 2016). Moreover, Figure 4 shows how models performing fewer updates converge faster thanks to the gradients being preserved during longer spans when training with backpropagation through time.
301
+
302
+ Non recurrent architectures for video action recognition that have achieved high performance on UCF-101 comprise CNNs with spatiotemporal kernels (Tran et al., 2015) or two-stream CNNs (Simonyan & Zisserman, 2014). Carreira & Zisserman (2017) show the benefits of expanding 2D CNN filters into 3D and pretraining on larger datasets, obtaining an accuracy of 0.845 when using RGB data only and 0.934 when incorporating optical flow information.
303
+
304
+ <table><tr><td>Model</td><td> Accuracy</td><td> State updates</td><td>Inference FLOPs</td></tr><tr><td>LSTM</td><td>0.671</td><td>250.0</td><td>9.52 ×1011</td></tr><tr><td>Skip LSTM, λ = 0</td><td>0.749</td><td>138.9</td><td>5.29×1011</td></tr><tr><td>Skip LSTM,λ= 10-5</td><td>0.757</td><td>24.2</td><td>9.21 × 1010</td></tr><tr><td>Skip LSTM, λ= 10-4</td><td>0.790</td><td>7.6</td><td>2.89×1010</td></tr><tr><td>GRU</td><td>0.791</td><td>250.0</td><td>9.51 × 1011</td></tr><tr><td>Skip GRU,λ = 0</td><td>0.796</td><td>124.2</td><td>4.73 × 1011</td></tr><tr><td>Skip GRU,λ = 10-5</td><td>0.792</td><td>29.7</td><td>1.13 × 1011</td></tr><tr><td>Skip GRU,λ = 10-4</td><td>0.793</td><td>23.7</td><td>9.02 ×1010</td></tr><tr><td>I3D (RGB) (Carreira &amp; Zisserman, 2017)</td><td>0.845</td><td>=</td><td></td></tr><tr><td>Two-stream I3D (Carreira &amp; Zisserman, 2017)</td><td>0.934</td><td>■</td><td></td></tr></table>
305
+
306
+ Table 6: Accuracy, used samples and average FLOPs per sequence at inference on the validation set of UCF-101 (split 1).
307
+
308
+ ![](images/fceb38d809e5cfa29a3604ba1e90bcef2f072d685491e6e5555c418bf329335c.jpg)
309
+ Figure 4: Accuracy evolution during the first 300 training epochs on the validation set of UCF-101 (split 1). Skip LSTM models converge much faster than the baseline LSTM.
310
+
311
+ # B QUALITATIVE RESULTS
312
+
313
+ This appendix contains additional qualitative results for the Skip RNN models.
314
+
315
+ # B.1 ADDING TASK
316
+
317
+ ![](images/d6521d4fbc04697107e8cda3c1975b53916e50b9a1428f04e8dd4778b6581024.jpg)
318
+ Figure 5: Sample usage examples for the Skip GRU with $\lambda = 1 0 ^ { - 5 }$ on the adding task. Red dots indicate used samples, whereas blue ones are skipped.
319
+
320
+ ![](images/c2799b3b795938bede8847ce47def1d327e5b232e367c05ec310b8af37e0c523.jpg)
321
+ Figure 6: Sample usage examples for the Skip LSTM with $\lambda = 1 0 ^ { - 4 }$ on the frequency discrimination task with $T _ { s } = 0 . 5 \mathrm { m s }$ . Red dots indicate used samples, whereas blue ones are skipped. The network learns that using the first samples is enough to classify the frequency of the sine waves, in contrast to a uniform downsampling that may result in aliasing.
parse/train/HkwVAXyCW/HkwVAXyCW_content_list.json ADDED
@@ -0,0 +1,1805 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SKIP RNN: LEARNING TO SKIP STATE UPDATES IN RECURRENT NEURAL NETWORKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 789,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "V´ıctor Campos∗†, Brendan $\\mathbf { J o u } ^ { \\ddag }$ , Xavier Giro-i-Nieto ´ §, Jordi Torres†, Shih-Fu ChangΓ †Barcelona Supercomputing Center, ‡Google Inc, §Universitat Politecnica de Catalunya, \\` ΓColumbia University {victor.campos, jordi.torres}@bsc.es, bjou@google.com, xavier.giro@upc.edu, shih.fu.chang@columbia.edu ",
17
+ "bbox": [
18
+ 186,
19
+ 165,
20
+ 784,
21
+ 185
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "",
28
+ "bbox": [
29
+ 184,
30
+ 186,
31
+ 692,
32
+ 250
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 286,
43
+ 544,
44
+ 301
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Recurrent Neural Networks (RNNs) continue to show outstanding performance in sequence modeling tasks. However, training RNNs on long sequences often face challenges like slow inference, vanishing gradients and difficulty in capturing long term dependencies. In backpropagation through time settings, these issues are tightly coupled with the large, sequential computational graph resulting from unfolding the RNN in time. We introduce the Skip RNN model which extends existing RNN models by learning to skip state updates and shortens the effective size of the computational graph. This model can also be encouraged to perform fewer state updates through a budget constraint. We evaluate the proposed model on various tasks and show how it can reduce the number of required RNN updates while preserving, and sometimes even improving, the performance of the baseline RNN models. Source code is publicly available at https://imatge-upc. github.io/skiprnn-2017-telecombcn/. ",
51
+ "bbox": [
52
+ 233,
53
+ 315,
54
+ 764,
55
+ 497
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 522,
66
+ 336,
67
+ 539
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Recurrent Neural Networks (RNNs) have become the standard approach for practitioners when addressing machine learning tasks involving sequential data. Such success has been enabled by the appearance of larger datasets, more powerful computing resources and improved architectures and training algorithms. Gated units, such as the Long Short-Term Memory (Hochreiter & Schmidhuber, 1997) (LSTM) and the Gated Recurrent Unit (Cho et al., 2014) (GRU), were designed to deal with the vanishing gradients problem commonly found in RNNs (Bengio et al., 1994). These architectures have been popularized, in part, due to their impressive results on a variety of tasks in machine translation (Bahdanau et al., 2015), language modeling (Zaremba et al., 2015) and speech recognition (Graves et al., 2013). ",
74
+ "bbox": [
75
+ 174,
76
+ 554,
77
+ 825,
78
+ 679
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Some of the main challenges of RNNs are in their training and deployment when dealing with long sequences, due to their inherently sequential behaviour. These challenges include throughput degradation, slower convergence during training and memory leakage, even for gated architectures (Neil et al., 2016). Sequence shortening techniques, which can be seen as a sort of conditional computation (Bengio et al., 2013; Bengio, 2013; Davis & Arel, 2013) in time, can alleviate these issues. The most common approaches, such as cropping discrete signals or reducing the sampling rate in continuous signals, are based on heuristics and can be suboptimal. In contrast, we propose a model that is able to learn which samples (i.e., elements in the input sequence) need to be used in order to solve the target task. Consider a video understanding task as an example: scenes with large motion may benefit from high frame rates, whereas only a few frames are needed to capture the semantics of a mostly static scene. ",
85
+ "bbox": [
86
+ 174,
87
+ 685,
88
+ 825,
89
+ 838
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The main contribution of this work is a novel modification for existing RNN architectures that allows them to skip state updates, decreasing the number of sequential operations performed, without requiring any additional supervision signal. This model, called Skip RNN, adaptively determines whether the state needs to be updated or copied to the next time step. We show how the network can be encouraged to perform fewer state updates by adding a penalization term during training, allowing us to train models under different computation budgets. The proposed modification can generally be integrated with any RNN and we show, in this paper, implementations with well-known RNNs, namely LSTM and GRU. The resulting models show promising results on a series of sequence modeling tasks. In particular, we evaluate the proposed Skip RNN architecture on six sequence learning problems: an adding task, sine wave frequency discrimination, digit classification, sentiment analysis in movie reviews, action classification in video, and temporal action localization in video1. ",
96
+ "bbox": [
97
+ 174,
98
+ 845,
99
+ 823,
100
+ 901
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 825,
111
+ 200
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 224,
122
+ 341,
123
+ 239
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Conditional computation has been shown to gradually increase model capacity without proportional increases in computational cost by exploiting certain computation paths for each input (Bengio et al., 2013; Liu & Deng, 2017; Almahairi et al., 2016; McGill & Perona, 2017; Shazeer et al., 2017). This idea has been extended in the temporal domain, such as in learning how many times an input needs to be ”pondered” before moving to the next one (Graves, 2016) or designing RNN architectures whose number of layers depend on the input data (Chung et al., 2017). Other works have addressed time-dependent computation in RNNs by updating only a fraction of the hidden states based on the current hidden state and input (Jernite et al., 2017), or following periodic patterns (Koutnik et al., 2014; Neil et al., 2016). However, due to the inherently sequential nature of RNNs and the parallel computation capabilities of modern hardware, reducing the size of the matrices involved in the computations performed at each time step generally has not accelerated inference as dramatically as hoped. The proposed Skip RNN model can be seen as form of conditional computation in time, where the computation associated to the RNN updates may or may not be executed at every time step. This idea is related to the UPDATE and COPY operations in hierarchical multiscale RNNs (Chung et al., 2017), but applied to the whole stack of RNN layers at the same time. This difference is key to allowing our approach to skip input samples, effectively reducing sequential computation and shielding the hidden state over longer time lags. Learning whether to update or copy the hidden state through time steps can be seen as a learnable Zoneout mask (Krueger et al., 2017) which is shared between all the units in the hidden state. Similarly, it can be interpreted as an input-dependent recurrent version of stochastic depth (Huang et al., 2016). ",
130
+ "bbox": [
131
+ 173,
132
+ 257,
133
+ 825,
134
+ 535
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "Selecting parts of the input signal is similar in spirit to the hard attention mechanisms that have been applied to image regions (Mnih et al., 2014), where only some patches of the input image are attended in order to generate captions (Xu et al., 2015) or detect objects (Ba et al., 2014). Our model can be understood as generating a hard temporal attention mask on-the-fly given previously seen samples, deciding which time steps should be attended and operating on a subset of input samples. Subsampling input sequences has been explored for visual storylines generation (Sigurdsson et al., 2016b), although jointly optimizing the RNN weights and the subsampling mechanism is often computationally infeasible and they use an Expectation-Maximization algorithm instead. Similar research has been conducted for video analysis tasks, discovering minimally needed evidence for event recognition (Bhattacharya et al., 2014) and training agents that decide which frames need to be observed in order to localize actions in time (Yeung et al., 2016; Su & Grauman, 2016). Motivated by the advantages of training recurrent models on shorter subsequences, efforts have been conducted on learning differentiable subsampling mechanisms (Raffel & Lawson, 2017), although the computational complexity of the proposed method precludes its application to long input sequences. In contrast, our proposed method can be trained with backpropagation and does not degrade the complexity of the baseline RNNs. ",
141
+ "bbox": [
142
+ 174,
143
+ 541,
144
+ 825,
145
+ 763
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Accelerating inference in RNNs is difficult due to their inherently sequential nature, leading to the design of Quasi-Recurrent Neural Networks (Bradbury et al., 2017) and Simple Recurrent Units (Lei & Zhang, 2017), which relax the temporal dependency between consecutive steps. With the goal of speeding up RNN inference, LSTM-Jump (Yu et al., 2017) augments an LSTM cell with a classification layer that will decide how many steps to jump between RNN updates. Despite its promising results on text tasks, the model needs to be trained with REINFORCE (Williams, 1992), which requires defining a reasonable reward signal. Determining these rewards are non-trivial and may not necessarily generalize across tasks. Moreover, the number of tokens read between jumps, the maximum jump distance and the number of jumps allowed all need to be chosen in advance. These hyperparameters define a reduced set of subsequences that the model can sample, instead of allowing the network to learn any arbitrary sampling scheme. Unlike LSTM-Jump, our proposed approach is differentiable, thus not requiring any modifications to the loss function and simplifying the optimization process, and is not limited to a predefined set of sample selection patterns. ",
152
+ "bbox": [
153
+ 173,
154
+ 770,
155
+ 825,
156
+ 882
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "",
163
+ "bbox": [
164
+ 174,
165
+ 103,
166
+ 825,
167
+ 174
168
+ ],
169
+ "page_idx": 2
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "3 MODEL DESCRIPTION ",
174
+ "text_level": 1,
175
+ "bbox": [
176
+ 176,
177
+ 193,
178
+ 390,
179
+ 209
180
+ ],
181
+ "page_idx": 2
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "An RNN takes an input sequence $\\mathbf { x } = ( x _ { 1 } , \\dots , x _ { T } )$ and generates a state sequence $\\mathbf { s } = ( s _ { 1 } , \\dots , s _ { T } )$ by iteratively applying a parametric state transition model $S$ from $t = 1$ to $T$ : ",
186
+ "bbox": [
187
+ 173,
188
+ 223,
189
+ 823,
190
+ 252
191
+ ],
192
+ "page_idx": 2
193
+ },
194
+ {
195
+ "type": "equation",
196
+ "img_path": "images/0affabea2497928af8e5edb44c935066b789f07a345e961fda212d76532941b8.jpg",
197
+ "text": "$$\ns _ { t } = S ( s _ { t - 1 } , x _ { t } )\n$$",
198
+ "text_format": "latex",
199
+ "bbox": [
200
+ 442,
201
+ 271,
202
+ 555,
203
+ 287
204
+ ],
205
+ "page_idx": 2
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "We augment the network with a binary state update gate, $u _ { t } \\in \\{ 0 , 1 \\}$ , selecting whether the state of the RNN will be updated $\\mathit { u } _ { t } = 1$ ) or copied from the previous time step ${ { u } _ { t } } = 0$ ). At every time step $t$ , the probability $\\tilde { u } _ { t + 1 } \\in [ 0 , 1 ]$ of performing a state update at $t + 1$ is emitted. The resulting architecture is depicted in Figure 1 and can be characterized as follows: ",
210
+ "bbox": [
211
+ 174,
212
+ 295,
213
+ 823,
214
+ 352
215
+ ],
216
+ "page_idx": 2
217
+ },
218
+ {
219
+ "type": "equation",
220
+ "img_path": "images/3b1921d539e3de313a42b8e6f1f7ef09839a8c5efb2f1340ab008566bb4c8ca2.jpg",
221
+ "text": "$$\n\\begin{array} { r l } & { u _ { t } = f _ { b i n a r i z e } ( \\tilde { u } _ { t } ) } \\\\ & { s _ { t } = u _ { t } \\cdot S ( s _ { t - 1 } , x _ { t } ) + ( 1 - u _ { t } ) \\cdot s _ { t - 1 } } \\\\ & { \\Delta \\tilde { u } _ { t } = \\sigma ( W _ { p } s _ { t } + b _ { p } ) } \\\\ & { \\tilde { u } _ { t + 1 } = u _ { t } \\cdot \\Delta \\tilde { u } _ { t } + ( 1 - u _ { t } ) \\cdot ( \\tilde { u } _ { t } + \\operatorname* { m i n } ( \\Delta \\tilde { u } _ { t } , 1 - \\tilde { u } _ { t } ) ) } \\end{array}\n$$",
222
+ "text_format": "latex",
223
+ "bbox": [
224
+ 313,
225
+ 372,
226
+ 681,
227
+ 446
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "where $W _ { p }$ is a weights vector, $b _ { p }$ is a scalar bias, $\\sigma$ is the sigmoid function and $f _ { b i n a r i z e } : [ 0 , 1 ] $ $\\{ 0 , 1 \\}$ binarizes the input value. Should the network be composed of several layers, some columns of $W _ { p }$ can be fixed to 0 so that $\\Delta \\tilde { u } _ { t }$ depends only on the states of a subset of layers (see Section 4.3 for an example with two layers). We implement $f _ { b i n a r i z e }$ as a deterministic step function $u _ { t } =$ round $( \\tilde { u } _ { t } )$ , although a stochastic sampling from a Bernoulli distribution $u _ { t } \\sim$ Bernoulli $( \\tilde { u } _ { t } )$ would be possible as well. ",
234
+ "bbox": [
235
+ 173,
236
+ 450,
237
+ 825,
238
+ 535
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "The model formulation encodes the observation that the likelihood of requesting a new input to update the state increases with the number of consecutively skipped samples. Whenever a state update is omitted, the pre-activation of the state update gate for the following time step, $\\tilde { u } _ { t + 1 }$ , is incremented by $\\Delta \\tilde { u } _ { t }$ . On the other hand, if a state update is performed, the accumulated value is flushed and $\\tilde { u } _ { t + 1 } = \\Delta \\tilde { u } _ { t }$ . ",
245
+ "bbox": [
246
+ 174,
247
+ 541,
248
+ 825,
249
+ 613
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "The number of skipped time steps can be computed ahead of time. For the particular formulation used in this work, where $f _ { b i n a r i z e }$ is implemented by means of a rounding function, the number of skipped samples after performing a state update at time step $t$ is given by: ",
256
+ "bbox": [
257
+ 174,
258
+ 619,
259
+ 825,
260
+ 661
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "equation",
266
+ "img_path": "images/2f250225df61fb023cb2dfead9c3e7d3c9964e72426f0ce955d482f091d9f9c3.jpg",
267
+ "text": "$$\nN _ { s k i p } ( t ) = \\operatorname* { m i n } \\{ n : n \\cdot \\Delta \\tilde { u } _ { t } \\geq 0 . 5 \\} - 1\n$$",
268
+ "text_format": "latex",
269
+ "bbox": [
270
+ 362,
271
+ 662,
272
+ 633,
273
+ 679
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "where $n \\in \\mathbb { Z } ^ { + }$ . This enables more efficient implementations where no computation at all is performed whenever $u _ { t } = 0$ . These computational savings are possible because $\\Delta \\hat { \\boldsymbol u } _ { t } = \\sigma ( W _ { p } \\boldsymbol s _ { t } + \\boldsymbol b _ { p } ) =$ $\\sigma ( W _ { p } s _ { t - 1 } + b _ { p } ) = \\Delta \\tilde { u } _ { t - 1 }$ when $u _ { t } = 0$ and there is no need to evaluate it again, as depicted in Figure 1d. ",
280
+ "bbox": [
281
+ 174,
282
+ 680,
283
+ 825,
284
+ 736
285
+ ],
286
+ "page_idx": 2
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "There are several advantages in reducing the number of RNN updates. From the computational standpoint, fewer updates translates into fewer required sequential operations to process an input signal, leading to faster inference and reduced energy consumption. Unlike some other models that aim to reduce the average number of operations per step (Neil et al., 2016; Jernite et al., 2017), ours enables skipping steps completely. Replacing RNN updates with copy operations increases the memory of the network and its ability to model long term dependencies even for gated units, since the exponential memory decay observed in LSTM and GRU (Neil et al., 2016) is alleviated. During training, gradients are propagated through fewer updating time steps, providing faster convergence in some tasks involving long sequences. Moreover, the proposed model is orthogonal to recent advances in RNNs and could be used in conjunction with such techniques, e.g. normalization (Cooijmans et al., 2017; Ba et al., 2016), regularization (Zaremba et al., 2015; Krueger et al., 2017), variable computation (Jernite et al., 2017; Neil et al., 2016) or even external memory (Graves et al., 2014; Weston et al., 2014). ",
291
+ "bbox": [
292
+ 173,
293
+ 742,
294
+ 825,
295
+ 924
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "image",
301
+ "img_path": "images/4c8bbb74368a7356747a0b01aa4070e7d27939c71f05129ebbb30ef959258167.jpg",
302
+ "image_caption": [
303
+ "Figure 1: Model architecture of the proposed Skip RNN. (a) Complete Skip RNN architecture, where the computation graph at time step $t$ is conditioned on $u _ { t }$ . $\\mathbf { ( b ) }$ Architecture when the state is updated, i.e. $u _ { t } = 1$ . (c) Architecture when the update step is skipped and the previous state is copied, i.e. $u _ { t } = 0$ . (d) In practice, redundant computation is avoided by propagating $\\Delta \\tilde { u } _ { t }$ between time steps when $u _ { t } = 0$ . "
304
+ ],
305
+ "image_footnote": [],
306
+ "bbox": [
307
+ 210,
308
+ 103,
309
+ 802,
310
+ 455
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "3.1 ERROR GRADIENTS ",
317
+ "text_level": 1,
318
+ "bbox": [
319
+ 176,
320
+ 561,
321
+ 349,
322
+ 575
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "The whole model is differentiable except for $f _ { b i n a r i z e }$ , which outputs binary values. A common method for optimizing functions involving discrete variables is REINFORCE (Williams, 1992), although several estimators have been proposed for the particular case of neurons with binary outputs (Bengio et al., 2013). We select the straight-through estimator (Hinton, 2012; Bengio et al., 2013), which consists of approximating the step function by the identity when computing gradients during the backward pass: ",
329
+ "bbox": [
330
+ 173,
331
+ 587,
332
+ 825,
333
+ 671
334
+ ],
335
+ "page_idx": 3
336
+ },
337
+ {
338
+ "type": "equation",
339
+ "img_path": "images/93da5bd347b2f42e0e09cc6128b185468bac0cd85ac0bd23d9896063f31fb0ab.jpg",
340
+ "text": "$$\n\\frac { \\partial f _ { b i n a r i z e } \\left( x \\right) } { \\partial x } = 1\n$$",
341
+ "text_format": "latex",
342
+ "bbox": [
343
+ 434,
344
+ 688,
345
+ 563,
346
+ 719
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "This yields a biased estimator that has proven more efficient than other unbiased but high-variance estimators such as REINFORCE (Bengio et al., 2013) and has been successfully applied in different works (Courbariaux et al., 2016; Chung et al., 2017). By using the straight-through estimator as the backward pass for $f _ { b i n a r i z e }$ , all the model parameters can be trained to minimize the target loss function with standard backpropagation and without defining any additional supervision or reward signal. ",
353
+ "bbox": [
354
+ 174,
355
+ 727,
356
+ 825,
357
+ 811
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "3.2 LIMITING COMPUTATION ",
364
+ "text_level": 1,
365
+ "bbox": [
366
+ 176,
367
+ 828,
368
+ 387,
369
+ 843
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "The Skip RNN is able to learn when to update or copy the state without explicit information about which samples are useful to solve the task at hand. However, a different operating point on the trade-off between performance and number of processed samples may be required depending on the application, e.g. one may be willing to sacrifice a few accuracy points in order to run faster on machines with a low computational power, or to reduce energy impact on portable devices. The proposed model can be encouraged to perform fewer state updates through additional loss terms, a common practice in neural networks with dynamically allocated computation (Liu & Deng, 2017; McGill & Perona, 2017; Graves, 2016; Jernite et al., 2017). In particular, we consider a cost per sample condition ",
376
+ "bbox": [
377
+ 174,
378
+ 853,
379
+ 825,
380
+ 924
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "text",
386
+ "text": "",
387
+ "bbox": [
388
+ 174,
389
+ 103,
390
+ 825,
391
+ 160
392
+ ],
393
+ "page_idx": 4
394
+ },
395
+ {
396
+ "type": "equation",
397
+ "img_path": "images/da0c2732b4183743a430c139613b3e21dec3313d9cf22b519be21bfb3ad27b4d.jpg",
398
+ "text": "$$\nL _ { b u d g e t } = \\lambda \\cdot \\sum _ { t = 1 } ^ { T } u _ { t } ,\n$$",
399
+ "text_format": "latex",
400
+ "bbox": [
401
+ 428,
402
+ 180,
403
+ 570,
404
+ 224
405
+ ],
406
+ "page_idx": 4
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "where $L _ { b u d g e t }$ is the cost associated to a single sequence, $\\lambda$ is the cost per sample and $T$ is the sequence length. This formulation bears a similarity to weight decay regularization, where the network is encouraged to slowly converge toward a solution where the norm of the weights is small. Similarly, in this case the network is encouraged to converge toward a solution where fewer state updates are required. ",
411
+ "bbox": [
412
+ 174,
413
+ 238,
414
+ 825,
415
+ 308
416
+ ],
417
+ "page_idx": 4
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "Although the above budget formulation is extensively studied in our experiments, other budget loss terms can be used depending on the application. For instance, a specific number of samples may be encouraged by applying a $L _ { 1 }$ or $L _ { 2 }$ loss between the target value and the number of updates per sequence, $et { } { ' } \\sum _ { t = 1 } ^ { T } u _ { t }$ . ",
422
+ "bbox": [
423
+ 174,
424
+ 314,
425
+ 825,
426
+ 375
427
+ ],
428
+ "page_idx": 4
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "4 EXPERIMENTS ",
433
+ "text_level": 1,
434
+ "bbox": [
435
+ 176,
436
+ 397,
437
+ 326,
438
+ 412
439
+ ],
440
+ "page_idx": 4
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "In the following section, we investigate the advantages of adding this state skipping to two common RNN architectures, LSTM and GRU, for a variety of tasks. In addition to the evaluation metric for each task, we report the number of RNN state updates (i.e., the number of elements in the input sequence used by the model) and the number of floating point operations (FLOPs) as measures of the computational load for each model. Since skipping an RNN update results in ignoring its corresponding input, we will refer to the number of updates and the number of used samples (i.e. elements in a sequence) interchangeably. With the goal of studying the effect of skipping state updates on the learning capability of the networks, we also introduce a baseline which skips a state update with probability $p _ { s k i p }$ . We tune the skipping probability to obtain models that perform a similar number of state updates to the Skip RNN models. ",
445
+ "bbox": [
446
+ 173,
447
+ 431,
448
+ 825,
449
+ 569
450
+ ],
451
+ "page_idx": 4
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "Training is performed with Adam (Kingma & Ba, 2014), learning rate of $1 0 ^ { - 4 }$ , $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } =$ 0.999 and $\\epsilon = 1 0 ^ { - 8 }$ on batches of 256. Gradient clipping (Pascanu et al., 2013) with a threshold of 1 is applied to all trainable variables. Bias $b _ { p }$ in Equation 4 is initialized to 1, so that all samples are used at the beginning of training2. The initial hidden state $s _ { 0 }$ is learned during training, whereas $\\tilde { u } _ { 0 }$ is set to a constant value of 1 in order to force the first update at $t = 1$ . ",
456
+ "bbox": [
457
+ 174,
458
+ 577,
459
+ 825,
460
+ 647
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "Experiments are implemented with TensorFlow3 and run on a single NVIDIA K80 GPU. ",
467
+ "bbox": [
468
+ 173,
469
+ 654,
470
+ 754,
471
+ 670
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "4.1 ADDING TASK ",
478
+ "text_level": 1,
479
+ "bbox": [
480
+ 174,
481
+ 689,
482
+ 315,
483
+ 704
484
+ ],
485
+ "page_idx": 4
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "We revisit one of the original LSTM tasks (Hochreiter & Schmidhuber, 1997), where the network is given a sequence of (value, marker) tuples. The desired output is the addition of only two values that are marked with a 1, whereas those marked with a 0 need to be ignored. We follow the experimental setup in Neil et al. (2016), where the first marker is randomly placed among the first $10 \\%$ of samples (drawn with uniform probability) and the second one is placed among the last half of samples (drawn with uniform probability). This marker distribution yields sequences where at least $40 \\%$ of the samples are distractors and provide no useful information at all. However, it is worth noting that in this task the risk of missing a marker is very large as compared to the benefits of working on shorter subsequences. ",
490
+ "bbox": [
491
+ 173,
492
+ 717,
493
+ 825,
494
+ 842
495
+ ],
496
+ "page_idx": 4
497
+ },
498
+ {
499
+ "type": "table",
500
+ "img_path": "images/cc966563b7ba636410edee02c3a5f6c2b22ddfb940dd3b3f091255a08efc33b7.jpg",
501
+ "table_caption": [
502
+ "Table 1: Results for the adding task, displayed as $m e a n \\pm s t d$ over four different runs. The task is considered to be solved if the MSE is at least two orders of magnitude below the variance of the output distribution. "
503
+ ],
504
+ "table_footnote": [],
505
+ "table_body": "<table><tr><td>Model</td><td>Task solved</td><td> State updates</td><td>Inference FLOPs</td></tr><tr><td>LSTM</td><td>Yes</td><td>100.0%± 0.0%</td><td>2.46 ×106</td></tr><tr><td>LSTM (pskip = 0.2)</td><td>No</td><td>80.0%±0.1%</td><td>1.97 × 106</td></tr><tr><td>LSTM (Pskip = 0.5)</td><td>No</td><td>50.1%± 0.1%</td><td>1.23 × 106</td></tr><tr><td>Skip LSTM, λ= 0</td><td>Yes</td><td>81.1% ± 3.6%</td><td>2.00 ×106</td></tr><tr><td>Skip LSTM,λ= 10-5</td><td>Yes</td><td>53.9%± 2.1%</td><td>1.33 × 106</td></tr><tr><td>GRU</td><td>Yes</td><td>100.0% ± 0.0%</td><td>1.85 × 106</td></tr><tr><td>GRU (pskip = 0.02)</td><td>No</td><td>98.0%±0.0%</td><td>1.81 × 106</td></tr><tr><td>GRU (pskip = 0.5)</td><td>No</td><td>49.9%± 0.6%</td><td>9.25×105</td></tr><tr><td>Skip GRU, λ = 0</td><td>Yes</td><td>97.9%± 3.2%</td><td>1.81 × 106</td></tr><tr><td>Skip GRU,λ = 10-5</td><td>Yes</td><td>50.7%± 2.6%</td><td>9.40 × 105</td></tr></table>",
506
+ "bbox": [
507
+ 230,
508
+ 99,
509
+ 767,
510
+ 281
511
+ ],
512
+ "page_idx": 5
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "We train RNN models with 110 units each on sequences of length 50, where the values are uniformly drawn from $\\mathcal { U } ( - 0 . 5 , 0 . 5 )$ . The final RNN state is fed to a fully connected layer that regresses the scalar output. The model is trained to minimize the Mean Squared Error (MSE) between the output and the ground truth. We consider that a model is able to solve the task when its MSE on a held-out set of examples is at least two orders of magnitude below the variance of the output distribution. This criterion is a stricter version of the one followed by Hochreiter & Schmidhuber (1997). ",
517
+ "bbox": [
518
+ 174,
519
+ 372,
520
+ 825,
521
+ 455
522
+ ],
523
+ "page_idx": 5
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "While all models learn to solve the task, results in Table 1 show that Skip RNN models are able to do so with roughly half of the updates of their corresponding counterparts. We observed that the models using fewer updates never miss any marker, since the penalization in terms of MSE would be very large (see Section B.1 for examples). This is confirmed by the poor performance of the baselines that randomly skip state updates, which are not able to solve the tasks even when the skipping probability is low. Skip RNN models learn to skip most of the samples in the $40 \\%$ of the sequence where there are no markers. Moreover, most updates are skipped once the second marker is found, since all the relevant information in the sequence has already been seen. This last pattern provides evidence that the proposed models effectively learn whether to update or copy the hidden state based on the input sequence, as opposed to learning biases in the dataset only. As a downside, Skip RNN models show some difficulties skipping a large number of updates at once, probably due to the cumulative nature of $\\tilde { u } _ { t }$ . ",
528
+ "bbox": [
529
+ 174,
530
+ 463,
531
+ 825,
532
+ 628
533
+ ],
534
+ "page_idx": 5
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "4.2 MNIST CLASSIFICATION FROM A SEQUENCE OF PIXELS ",
539
+ "text_level": 1,
540
+ "bbox": [
541
+ 174,
542
+ 651,
543
+ 606,
544
+ 666
545
+ ],
546
+ "page_idx": 5
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "The MNIST handwritten digits classification benchmark (LeCun et al., 1998) is traditionally addressed with Convolutional Neural Networks (CNNs) that efficiently exploit spatial dependencies through weight sharing. By flattening the $2 8 \\times 2 8$ images into 784-d vectors, however, it can be reformulated as a challenging task for RNNs where long term dependencies need to be leveraged (Le et al., 2015b). We follow the standard data split and set aside 5,000 training samples for validation purposes. After processing all pixels with an RNN with 110 units, the last hidden state is fed into a linear classifier predicting the digit class. All models are trained for 600 epochs to minimize cross-entropy loss. ",
551
+ "bbox": [
552
+ 173,
553
+ 680,
554
+ 825,
555
+ 791
556
+ ],
557
+ "page_idx": 5
558
+ },
559
+ {
560
+ "type": "text",
561
+ "text": "Table 2 summarizes classification results on the test set after 600 epochs of training. Skip RNNs are not only able to solve the task using fewer updates than their counterparts, but also show a lower variation among runs and train faster (see Figure 2). We hypothesize that skipping updates make the Skip RNNs work on shorter subsequences, simplifying the optimization process and allowing the networks to capture long term dependencies more easily. A similar behavior was observed for Phased LSTM, where increasing the sparsity of cell updates accelerates training for very long sequences (Neil et al., 2016). However, the drop in performance observed in the models where the state updates are skipped randomly suggests that learning which samples to use is a key component in the performance of Skip RNN. ",
562
+ "bbox": [
563
+ 174,
564
+ 797,
565
+ 825,
566
+ 924
567
+ ],
568
+ "page_idx": 5
569
+ },
570
+ {
571
+ "type": "table",
572
+ "img_path": "images/e280beeafec35da01bc1e8013282419a60547ec4e0ce52718223718bd7119a15.jpg",
573
+ "table_caption": [],
574
+ "table_footnote": [],
575
+ "table_body": "<table><tr><td>Model</td><td>Accuracy</td><td>State updates</td><td>Inference FLOPs</td></tr><tr><td>LSTM</td><td>0.910 ± 0.045</td><td>784.00 ± 0.00</td><td>3.83×107</td></tr><tr><td>LSTM (pskip = 0.5)</td><td>0.893 ± 0.003</td><td>392.03 ± 0.05</td><td>1.91 × 107</td></tr><tr><td>Skip LSTM,X= 10-4</td><td>0.973 ± 0.002</td><td>379.38 ± 33.09</td><td>1.86 ×107</td></tr><tr><td>GRU</td><td>0.968 ± 0.013</td><td>784.00 ±0.00</td><td>2.87×107</td></tr><tr><td>GRU (p skip = 0.5)</td><td>0.912 ±0.004</td><td>391.86 ± 0.14</td><td>1.44 × 107</td></tr><tr><td>Skip GRU,X=10-4</td><td>0.976 ± 0.003</td><td>392.62 ± 26.48</td><td>1.44 × 107</td></tr><tr><td>TANH-RNN (Le et al., 2015a)</td><td>0.350</td><td>784.00</td><td></td></tr><tr><td>iRNN (Le et al., 2015a)</td><td>0.970</td><td>784.00</td><td></td></tr><tr><td>uRNN (Arjovsky et al., 2016)</td><td>0.951</td><td>784.00</td><td></td></tr><tr><td>sTANH-RNN (Zhang et al., 2016)</td><td>0.981</td><td>784.00</td><td></td></tr><tr><td>LSTM (Cooijmans et al., 2017)</td><td>0.989</td><td>784.00</td><td></td></tr><tr><td>BN-LSTM (Cooijmans et al., 2017)</td><td>0.990</td><td>784.00</td><td></td></tr></table>",
576
+ "bbox": [
577
+ 183,
578
+ 101,
579
+ 813,
580
+ 313
581
+ ],
582
+ "page_idx": 6
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "Table 2: Accuracy, used samples and average FLOPs per sequence at inference on the test set of MNIST after 600 epochs of training. Results are displayed as $m e a n \\pm s t d$ over four different runs. ",
587
+ "bbox": [
588
+ 174,
589
+ 329,
590
+ 825,
591
+ 358
592
+ ],
593
+ "page_idx": 6
594
+ },
595
+ {
596
+ "type": "image",
597
+ "img_path": "images/9fba09fd879c43112caf70dc4538bb8c8e2159ecfd6ea365bece1928549acb1b.jpg",
598
+ "image_caption": [
599
+ "Figure 2: Accuracy evolution during training on the validation set of MNIST. The Skip GRU exhibits lower variance and faster convergence than the baseline GRU. A similar behavior is observed for LSTM and Skip LSTM, but omitted for clarity. Shading shows maximum and minimum over 4 runs, while dark lines indicate the mean. "
600
+ ],
601
+ "image_footnote": [],
602
+ "bbox": [
603
+ 178,
604
+ 381,
605
+ 815,
606
+ 559
607
+ ],
608
+ "page_idx": 6
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "The performance of RNN models on this task can be boosted through techniques like recurrent batch normalization (Cooijmans et al., 2017) or recurrent skip coefficients (Zhang et al., 2016). Cooijmans et al. (2017) show how an LSTM with specific weight initialization schemes for improved gradient flow (Le et al., 2015a; Arjovsky et al., 2016) can reach accuracy rates of up to $0 . 9 \\hat { 8 } 9 \\%$ . Note that these techniques are orthogonal to skipping state updates and Skip RNN models could benefit from them as well. ",
613
+ "bbox": [
614
+ 174,
615
+ 660,
616
+ 825,
617
+ 742
618
+ ],
619
+ "page_idx": 6
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "Sequences of pixels can be reshaped back into 2D images, allowing to visualize the samples used by the RNNs as a sort of hard visual attention model ( $\\mathrm { { X u } }$ et al., 2015). Examples such as the ones depicted in Figure 3 show how the model learns to skip pixels that are not discriminative, such as the padding regions in the top and bottom of images. Similarly to the qualitative results for the adding task (Section 4.1), attended samples vary depending on the particular input being given to the network. ",
624
+ "bbox": [
625
+ 173,
626
+ 751,
627
+ 825,
628
+ 834
629
+ ],
630
+ "page_idx": 6
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "4.3 TEMPORAL ACTION LOCALIZATION ON CHARADES ",
635
+ "text_level": 1,
636
+ "bbox": [
637
+ 174,
638
+ 854,
639
+ 562,
640
+ 868
641
+ ],
642
+ "page_idx": 6
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "One popular approach to video analysis tasks today is to extract frame-level features with a CNN and modeling temporal dynamics with an RNN (Donahue et al., 2015; Yue-Hei $\\mathrm { N g }$ et al., 2015). Videos are commonly recorded at high sampling rates, generating long sequences with strong temporal redundancies that are challenging for RNNs. Moreover, processing frames with a CNN is computationally expensive and may become prohibitive for high frame rates. These issues have been alleviated in previous works by using short clips (Donahue et al., 2015) or by downsampling the original data in order to cover long temporal spans without increasing the sequence length excessively (Yue-Hei $\\mathrm { N g }$ et al., 2015). Instead of addressing the long sequence problem at the input data level, we let the network learn which frames need to be used. ",
647
+ "bbox": [
648
+ 176,
649
+ 882,
650
+ 823,
651
+ 924
652
+ ],
653
+ "page_idx": 6
654
+ },
655
+ {
656
+ "type": "image",
657
+ "img_path": "images/0f56669854424b159f8ca406c1931ba5f8c9bcb930aef3dbceb93dd4832102ab.jpg",
658
+ "image_caption": [
659
+ "Figure 3: Sample usage examples for the Skip LSTM with $\\lambda = 1 0 ^ { - 4 }$ on the test set of MNIST. Red pixels are used, whereas blue ones are skipped. "
660
+ ],
661
+ "image_footnote": [],
662
+ "bbox": [
663
+ 191,
664
+ 104,
665
+ 816,
666
+ 208
667
+ ],
668
+ "page_idx": 7
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "",
673
+ "bbox": [
674
+ 174,
675
+ 306,
676
+ 825,
677
+ 390
678
+ ],
679
+ "page_idx": 7
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "Charades (Sigurdsson et al., 2016a) is a dataset containing 9,848 videos annotated for 157 action classes in a per-frame fashion. Frames are encoded using $f c 7$ features from the RGB stream of a Two-Stream CNN provided by the organizers of the challenge4, extracted at 6 fps. The encoded frames are fed into two stacked RNN layers with 256 units each and the hidden state in the last RNN layer is used to compute the update probability for the Skip RNN models. Since each frame may be annotated with zero or more classes, the networks are trained to minimize element-wise binary cross-entropy at every time step. Unlike the previous sequence tagging tasks, this setup allows us to evaluate the performance of Skip RNN on a task where the output is a sequence as well. ",
684
+ "bbox": [
685
+ 174,
686
+ 397,
687
+ 825,
688
+ 510
689
+ ],
690
+ "page_idx": 7
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "Evaluation is performed following the setup by Sigurdsson et al. (2016c), but evaluating on 100 equally spaced frames instead of 25, and results are reported in Table 3. It is surprising that the GRU baselines that randomly skip state updates perform on par with their Skip GRU counterparts for low skipping probabilities. We hypothesize several reasons for this behavior, which was not observed in previous experiments: (1) there is a supervision signal at every time step and the inputs and (2) outputs are strongly correlated in consecutive frames. On the other hand, Skip RNN models clearly outperform the random methods when fewer updates are allowed. Note that this setup is far more challenging because of the longer time spans between updates, so properly distributing the state updates along the sequence is key to the performance of the models. Interestingly, Skip RNN models learn which frames need to be attended from RGB data and without having access to explicit motion information. ",
695
+ "bbox": [
696
+ 174,
697
+ 516,
698
+ 825,
699
+ 669
700
+ ],
701
+ "page_idx": 7
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "Skip GRU tends to perform fewer state updates than Skip LSTM when the cost per sample is low or none. This behavior is the opposite of the one observed in the adding task (Section 4.1), which may be related to the observation that determining the best performing gated unit depends on the task at hand Chung et al. (2014). Indeed, GRU models consistently outperform LSTM ones on this task. This mismatch in the number of used samples is not observed for large values of $\\lambda$ , as both Skip LSTM and Skip GRU converge to a comparable number of used samples. ",
706
+ "bbox": [
707
+ 173,
708
+ 676,
709
+ 825,
710
+ 760
711
+ ],
712
+ "page_idx": 7
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "A previous work reports better action localization performance by integrating RGB and optical flow information as an input to an LSTM, reaching $9 . { \\bar { 6 } } 0 \\%$ mAP (Sigurdsson et al., 2016c). This boost in performance comes at the cost of roughly doubling the number of FLOPs and memory footprint of the CNN encoder, plus requiring the extraction of flow information during a preprocessing step. Interestingly, our model learns which frames need to be attended from RGB data and without having access to explicit motion information. ",
717
+ "bbox": [
718
+ 174,
719
+ 767,
720
+ 825,
721
+ 851
722
+ ],
723
+ "page_idx": 7
724
+ },
725
+ {
726
+ "type": "table",
727
+ "img_path": "images/df6d5ec0a4a977be191d759f0d82ec0214a431bcaa31d9b2ebadbbd1cdcd1bd9.jpg",
728
+ "table_caption": [],
729
+ "table_footnote": [],
730
+ "table_body": "<table><tr><td>Model</td><td>mAP(%)</td><td>State updates</td><td>Inference FLOPs</td></tr><tr><td>LSTM</td><td>8.40</td><td>172.9 ± 47.4</td><td>2.65×1012</td></tr><tr><td>LSTM (pskip = 0.75)</td><td>8.11</td><td>43.3 ± 13.2</td><td>6.63 × 1011</td></tr><tr><td>LSTM (pskip = 0.90)</td><td>7.21</td><td>17.2 ± 6.1</td><td>2.65×1011</td></tr><tr><td>Skip LSTM,λ= 0</td><td>8.32</td><td>172.9 ± 47.4</td><td>2.65×1012</td></tr><tr><td>Skip LSTM,λ= 10-4</td><td>8.61</td><td>172.9 ± 47.4</td><td>2.65×1012</td></tr><tr><td>Skip LSTM,λ= 10-3</td><td>8.32</td><td>41.9 ± 11.3</td><td>6.41 × 1011</td></tr><tr><td>Skip LSTM,X = 10-2</td><td>7.86</td><td>17.4 ± 4.4</td><td>2.66 × 1011</td></tr><tr><td>GRU</td><td>8.70</td><td>172.9 ± 47.4</td><td>2.65×1012</td></tr><tr><td>GRU (pskip = 0.10)</td><td>8.94</td><td>155.6 ± 42.9</td><td>2.39 ×1012</td></tr><tr><td>GRU (pskip = 0.40)</td><td>8.81</td><td>103.6 ± 29.3</td><td>1.06 × 1012</td></tr><tr><td>GRU (pskip = 0.70)</td><td>8.42</td><td>51.9 ± 15.4</td><td>7.95 × 1011</td></tr><tr><td>GRU (pskip = 0.90)</td><td>7.09</td><td>17.3 ± 6.3</td><td>2.65×1011</td></tr><tr><td>Skip GRU,λ= 0</td><td>8.94</td><td>159.9 ± 46.9</td><td>2.45×1012</td></tr><tr><td>Skip GRU,入 = 10-4</td><td>8.76</td><td>100.8 ± 28.1</td><td>1.54 × 1012</td></tr><tr><td>Skip GRU,λ = 10-3</td><td>8.68</td><td>54.2 ± 16.2</td><td>8.29×1011</td></tr><tr><td>Skip GRU,λ = 10-2</td><td>7.95</td><td>18.4 ± 5.1</td><td>2.82 × 1011</td></tr></table>",
731
+ "bbox": [
732
+ 241,
733
+ 101,
734
+ 754,
735
+ 367
736
+ ],
737
+ "page_idx": 8
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "Table 3: Mean Average Precision (mAP), used samples and average FLOPs per sequence at inference on the validation set of Charades. The number of state updates is displayed as $m e a n \\pm s t d$ over all the videos in the validation set. ",
742
+ "bbox": [
743
+ 174,
744
+ 383,
745
+ 825,
746
+ 426
747
+ ],
748
+ "page_idx": 8
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "5 CONCLUSION ",
753
+ "text_level": 1,
754
+ "bbox": [
755
+ 176,
756
+ 449,
757
+ 318,
758
+ 465
759
+ ],
760
+ "page_idx": 8
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "We presented Skip RNNs as an extension to existing recurrent architectures enabling them to skip state updates thereby reducing the number of sequential operations in the computation graph. Unlike other approaches, all parameters in Skip RNN are trained with backpropagation. Experiments conducted with LSTMs and GRUs showed that Skip RNNs can match or in some cases even outperform the baseline models while relaxing their computational requirements. Skip RNNs provide faster and more stable training for long sequences and complex models, owing to gradients being backpropagated through fewer time steps resulting in a simpler optimization task. Moreover, the introduced computational savings are better suited for modern hardware than those methods that reduce the amount of computation required at each time step (Koutnik et al., 2014; Neil et al., 2016; Chung et al., 2017). ",
765
+ "bbox": [
766
+ 174,
767
+ 481,
768
+ 825,
769
+ 619
770
+ ],
771
+ "page_idx": 8
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "ACKNOWLEDGMENTS ",
776
+ "text_level": 1,
777
+ "bbox": [
778
+ 176,
779
+ 636,
780
+ 326,
781
+ 648
782
+ ],
783
+ "page_idx": 8
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "This work was partially supported by the Spanish Ministry of Economy and Competitivity and the European Regional Development Fund (ERDF) under contracts TEC2016-75976-R and TIN2015- 65316-P, by the BSC-CNS Severo Ochoa program SEV-2015-0493, and grant 2014-SGR-1051 by the Catalan Government. V´ıctor Campos was supported by Obra Social “la Caixa” through La Caixa-Severo Ochoa International Doctoral Fellowship program. We would also like to thank the technical support team at the Barcelona Supercomputing Center. ",
788
+ "bbox": [
789
+ 174,
790
+ 659,
791
+ 825,
792
+ 742
793
+ ],
794
+ "page_idx": 8
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "REFERENCES ",
799
+ "text_level": 1,
800
+ "bbox": [
801
+ 174,
802
+ 763,
803
+ 285,
804
+ 779
805
+ ],
806
+ "page_idx": 8
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "Amjad Almahairi, Nicolas Ballas, Tim Cooijmans, Yin Zheng, Hugo Larochelle, and Aaron Courville. Dynamic capacity networks. In ICML, 2016. ",
811
+ "bbox": [
812
+ 174,
813
+ 786,
814
+ 823,
815
+ 814
816
+ ],
817
+ "page_idx": 8
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. In ICML, 2016. ",
822
+ "bbox": [
823
+ 173,
824
+ 821,
825
+ 823,
826
+ 851
827
+ ],
828
+ "page_idx": 8
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "Jimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. Multiple object recognition with visual attention. arXiv preprint arXiv:1412.7755, 2014. ",
833
+ "bbox": [
834
+ 173,
835
+ 858,
836
+ 821,
837
+ 887
838
+ ],
839
+ "page_idx": 8
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. ",
844
+ "bbox": [
845
+ 173,
846
+ 895,
847
+ 821,
848
+ 922
849
+ ],
850
+ "page_idx": 8
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. ",
855
+ "bbox": [
856
+ 173,
857
+ 103,
858
+ 823,
859
+ 132
860
+ ],
861
+ "page_idx": 9
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Yoshua Bengio. Deep learning of representations: Looking forward. In SLSP, 2013. ",
866
+ "bbox": [
867
+ 174,
868
+ 140,
869
+ 727,
870
+ 157
871
+ ],
872
+ "page_idx": 9
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, 1994. ",
877
+ "bbox": [
878
+ 174,
879
+ 165,
880
+ 821,
881
+ 194
882
+ ],
883
+ "page_idx": 9
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Yoshua Bengio, Nicholas Leonard, and Aaron Courville. Estimating or propagating gradients ´ through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013. ",
888
+ "bbox": [
889
+ 174,
890
+ 202,
891
+ 823,
892
+ 232
893
+ ],
894
+ "page_idx": 9
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Subhabrata Bhattacharya, Felix X Yu, and Shih-Fu Chang. Minimally needed evidence for complex event recognition in unconstrained videos. In ICMR, 2014. ",
899
+ "bbox": [
900
+ 173,
901
+ 239,
902
+ 823,
903
+ 270
904
+ ],
905
+ "page_idx": 9
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "James Bradbury, Stephen Merity, Caiming Xiong, and Richard Socher. Quasi-recurrent neural networks. In ICLR, 2017. ",
910
+ "bbox": [
911
+ 171,
912
+ 277,
913
+ 823,
914
+ 308
915
+ ],
916
+ "page_idx": 9
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In CVPR, 2017. ",
921
+ "bbox": [
922
+ 173,
923
+ 315,
924
+ 823,
925
+ 344
926
+ ],
927
+ "page_idx": 9
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Hol- ¨ ger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In EMNLP, 2014. ",
932
+ "bbox": [
933
+ 176,
934
+ 353,
935
+ 823,
936
+ 397
937
+ ],
938
+ "page_idx": 9
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. ",
943
+ "bbox": [
944
+ 171,
945
+ 405,
946
+ 823,
947
+ 434
948
+ ],
949
+ "page_idx": 9
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Junyoung Chung, Sungjin Ahn, and Yoshua Bengio. Hierarchical multiscale recurrent neural networks. In ICLR, 2017. ",
954
+ "bbox": [
955
+ 171,
956
+ 443,
957
+ 823,
958
+ 472
959
+ ],
960
+ "page_idx": 9
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Tim Cooijmans, Nicolas Ballas, Cesar Laurent, C¸ a ´ glar G ˘ ulc¸ehre, and Aaron Courville. Recurrent ¨ batch normalization. In ICLR, 2017. ",
965
+ "bbox": [
966
+ 173,
967
+ 479,
968
+ 823,
969
+ 510
970
+ ],
971
+ "page_idx": 9
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained $\\mathrm { t o } + 1$ or-1. arXiv preprint arXiv:1602.02830, 2016. ",
976
+ "bbox": [
977
+ 174,
978
+ 517,
979
+ 823,
980
+ 560
981
+ ],
982
+ "page_idx": 9
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Andrew Davis and Itamar Arel. Low-rank approximations for conditional feedforward computation in deep neural networks. arXiv preprint arXiv:1312.4461, 2013. ",
987
+ "bbox": [
988
+ 173,
989
+ 569,
990
+ 823,
991
+ 599
992
+ ],
993
+ "page_idx": 9
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In CVPR, 2009. ",
998
+ "bbox": [
999
+ 173,
1000
+ 606,
1001
+ 820,
1002
+ 636
1003
+ ],
1004
+ "page_idx": 9
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Jeffrey Donahue, Lisa Anne Hendricks, Sergio Guadarrama, Marcus Rohrbach, Subhashini Venugopalan, Kate Saenko, and Trevor Darrell. Long-term recurrent convolutional networks for visual recognition and description. In CVPR, 2015. ",
1009
+ "bbox": [
1010
+ 173,
1011
+ 645,
1012
+ 821,
1013
+ 688
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Alex Graves. Adaptive computation time for recurrent neural networks. arXiv preprint arXiv:1603.08983, 2016. ",
1020
+ "bbox": [
1021
+ 173,
1022
+ 695,
1023
+ 823,
1024
+ 726
1025
+ ],
1026
+ "page_idx": 9
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Alex Graves, Abdel-rahman Mohamed, and Geoffrey Hinton. Speech recognition with deep recurrent neural networks. In ICASSP, 2013. ",
1031
+ "bbox": [
1032
+ 171,
1033
+ 733,
1034
+ 823,
1035
+ 763
1036
+ ],
1037
+ "page_idx": 9
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. ",
1042
+ "bbox": [
1043
+ 173,
1044
+ 771,
1045
+ 825,
1046
+ 801
1047
+ ],
1048
+ "page_idx": 9
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In NIPS, 2015. ",
1053
+ "bbox": [
1054
+ 171,
1055
+ 809,
1056
+ 823,
1057
+ 839
1058
+ ],
1059
+ "page_idx": 9
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. ",
1064
+ "bbox": [
1065
+ 173,
1066
+ 847,
1067
+ 823,
1068
+ 876
1069
+ ],
1070
+ "page_idx": 9
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Geoffrey Hinton. Neural networks for machine learning. Coursera video lectures, 2012. ",
1075
+ "bbox": [
1076
+ 171,
1077
+ 885,
1078
+ 753,
1079
+ 901
1080
+ ],
1081
+ "page_idx": 9
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997. ",
1086
+ "bbox": [
1087
+ 173,
1088
+ 909,
1089
+ 803,
1090
+ 924
1091
+ ],
1092
+ "page_idx": 9
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q Weinberger. Deep networks with stochastic depth. In ECCV, 2016. ",
1097
+ "bbox": [
1098
+ 171,
1099
+ 103,
1100
+ 823,
1101
+ 132
1102
+ ],
1103
+ "page_idx": 10
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Yacine Jernite, Edouard Grave, Armand Joulin, and Tomas Mikolov. Variable computation in recurrent neural networks. In ICLR, 2017. ",
1108
+ "bbox": [
1109
+ 174,
1110
+ 140,
1111
+ 823,
1112
+ 170
1113
+ ],
1114
+ "page_idx": 10
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Yoon Kim. Convolutional neural networks for sentence classification. In EMNLP, 2014. ",
1119
+ "bbox": [
1120
+ 174,
1121
+ 178,
1122
+ 753,
1123
+ 194
1124
+ ],
1125
+ "page_idx": 10
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1130
+ "bbox": [
1131
+ 173,
1132
+ 202,
1133
+ 823,
1134
+ 231
1135
+ ],
1136
+ "page_idx": 10
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Jan Koutnik, Klaus Greff, Faustino Gomez, and Juergen Schmidhuber. A clockwork rnn. In ICML, 2014. ",
1141
+ "bbox": [
1142
+ 169,
1143
+ 239,
1144
+ 825,
1145
+ 270
1146
+ ],
1147
+ "page_idx": 10
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "David Krueger, Tegan Maharaj, Janos Kram ´ ar, Mohammad Pezeshki, Nicolas Ballas, Nan Rose-´ mary Ke, Anirudh Goyal, Yoshua Bengio, Hugo Larochelle, Aaron Courville, et al. Zoneout: Regularizing rnns by randomly preserving hidden activations. In ICLR, 2017. ",
1152
+ "bbox": [
1153
+ 176,
1154
+ 277,
1155
+ 821,
1156
+ 321
1157
+ ],
1158
+ "page_idx": 10
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Quoc V Le, Navdeep Jaitly, and Geoffrey E Hinton. A simple way to initialize recurrent networks of rectified linear units. arXiv preprint arXiv:1504.00941, 2015a. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 329,
1166
+ 823,
1167
+ 359
1168
+ ],
1169
+ "page_idx": 10
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Quoc V Le, Navdeep Jaitly, and Geoffrey E Hinton. A simple way to initialize recurrent networks of rectified linear units. arXiv preprint arXiv:1504.00941, 2015b. ",
1174
+ "bbox": [
1175
+ 174,
1176
+ 367,
1177
+ 823,
1178
+ 397
1179
+ ],
1180
+ "page_idx": 10
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 1998. ",
1185
+ "bbox": [
1186
+ 174,
1187
+ 405,
1188
+ 823,
1189
+ 434
1190
+ ],
1191
+ "page_idx": 10
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Tao Lei and Yu Zhang. Training rnns as fast as cnns. arXiv preprint arXiv:1709.02755, 2017. ",
1196
+ "bbox": [
1197
+ 176,
1198
+ 443,
1199
+ 789,
1200
+ 458
1201
+ ],
1202
+ "page_idx": 10
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Lanlan Liu and Jia Deng. Dynamic deep neural networks: Optimizing accuracy-efficiency trade-offs by selective execution. arXiv preprint arXiv:1701.00299, 2017. ",
1207
+ "bbox": [
1208
+ 173,
1209
+ 467,
1210
+ 823,
1211
+ 496
1212
+ ],
1213
+ "page_idx": 10
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Shayne Longpre, Sabeek Pradhan, Caiming Xiong, and Richard Socher. A way out of the odyssey: Analyzing and combining recent insights for lstms. arXiv preprint arXiv:1611.05104, 2016. ",
1218
+ "bbox": [
1219
+ 173,
1220
+ 503,
1221
+ 823,
1222
+ 534
1223
+ ],
1224
+ "page_idx": 10
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "Andrew L Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew Y Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In ACL, 2011. ",
1229
+ "bbox": [
1230
+ 171,
1231
+ 541,
1232
+ 823,
1233
+ 570
1234
+ ],
1235
+ "page_idx": 10
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Mason McGill and Pietro Perona. Deciding how to decide: Dynamic routing in artificial neural networks. In ICML, 2017. ",
1240
+ "bbox": [
1241
+ 173,
1242
+ 579,
1243
+ 823,
1244
+ 608
1245
+ ],
1246
+ "page_idx": 10
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In NIPS, 2013. ",
1251
+ "bbox": [
1252
+ 171,
1253
+ 617,
1254
+ 823,
1255
+ 646
1256
+ ],
1257
+ "page_idx": 10
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Takeru Miyato, Andrew M Dai, and Ian Goodfellow. Adversarial training methods for semisupervised text classification. In ICLR, 2017. ",
1262
+ "bbox": [
1263
+ 171,
1264
+ 655,
1265
+ 823,
1266
+ 684
1267
+ ],
1268
+ "page_idx": 10
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In NIPS, 2014. ",
1273
+ "bbox": [
1274
+ 173,
1275
+ 693,
1276
+ 823,
1277
+ 722
1278
+ ],
1279
+ "page_idx": 10
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Daniel Neil, Michael Pfeiffer, and Shih-Chii Liu. Phased LSTM: accelerating recurrent network training for long or event-based sequences. In NIPS, 2016. ",
1284
+ "bbox": [
1285
+ 171,
1286
+ 729,
1287
+ 823,
1288
+ 760
1289
+ ],
1290
+ "page_idx": 10
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. In ICML, 2013. ",
1295
+ "bbox": [
1296
+ 171,
1297
+ 767,
1298
+ 823,
1299
+ 797
1300
+ ],
1301
+ "page_idx": 10
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "Colin Raffel and Dieterich Lawson. Training a subsampling mechanism in expectation. In ICLR Workshop Track, 2017. ",
1306
+ "bbox": [
1307
+ 173,
1308
+ 805,
1309
+ 823,
1310
+ 835
1311
+ ],
1312
+ "page_idx": 10
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In ICLR, 2017. ",
1317
+ "bbox": [
1318
+ 173,
1319
+ 843,
1320
+ 823,
1321
+ 886
1322
+ ],
1323
+ "page_idx": 10
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "Evan Shelhamer, Kate Rakelly, Judy Hoffman, and Trevor Darrell. Clockwork convnets for video semantic segmentation. arXiv preprint arXiv:1608.03609, 2016. ",
1328
+ "bbox": [
1329
+ 173,
1330
+ 895,
1331
+ 821,
1332
+ 924
1333
+ ],
1334
+ "page_idx": 10
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "Gunnar Sigurdsson, Gul Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. Hol- ¨ lywood in homes: Crowdsourcing data collection for activity understanding. In ECCV, 2016a. ",
1339
+ "bbox": [
1340
+ 169,
1341
+ 103,
1342
+ 823,
1343
+ 133
1344
+ ],
1345
+ "page_idx": 11
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "Gunnar A Sigurdsson, Xinlei Chen, and Abhinav Gupta. Learning visual storylines with skipping recurrent neural networks. In ECCV, 2016b. ",
1350
+ "bbox": [
1351
+ 173,
1352
+ 141,
1353
+ 823,
1354
+ 170
1355
+ ],
1356
+ "page_idx": 11
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "Gunnar A Sigurdsson, Santosh Divvala, Ali Farhadi, and Abhinav Gupta. Asynchronous temporal fields for action recognition. arXiv preprint arXiv:1612.06371, 2016c. ",
1361
+ "bbox": [
1362
+ 171,
1363
+ 178,
1364
+ 823,
1365
+ 208
1366
+ ],
1367
+ "page_idx": 11
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In NIPS, 2014. ",
1372
+ "bbox": [
1373
+ 174,
1374
+ 215,
1375
+ 823,
1376
+ 246
1377
+ ],
1378
+ "page_idx": 11
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012. ",
1383
+ "bbox": [
1384
+ 173,
1385
+ 253,
1386
+ 823,
1387
+ 284
1388
+ ],
1389
+ "page_idx": 11
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "Yu-Chuan Su and Kristen Grauman. Leaving some stones unturned: dynamic feature prioritization for activity detection in streaming video. In ECCV, 2016. ",
1394
+ "bbox": [
1395
+ 173,
1396
+ 291,
1397
+ 823,
1398
+ 321
1399
+ ],
1400
+ "page_idx": 11
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In ICCV, 2015. ",
1405
+ "bbox": [
1406
+ 173,
1407
+ 329,
1408
+ 823,
1409
+ 358
1410
+ ],
1411
+ "page_idx": 11
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. arXiv preprint arXiv:1410.3916, 2014. ",
1416
+ "bbox": [
1417
+ 174,
1418
+ 367,
1419
+ 825,
1420
+ 396
1421
+ ],
1422
+ "page_idx": 11
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 1992. ",
1427
+ "bbox": [
1428
+ 169,
1429
+ 405,
1430
+ 825,
1431
+ 434
1432
+ ],
1433
+ "page_idx": 11
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhudinov, Rich Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015. ",
1438
+ "bbox": [
1439
+ 176,
1440
+ 443,
1441
+ 823,
1442
+ 486
1443
+ ],
1444
+ "page_idx": 11
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "Serena Yeung, Olga Russakovsky, Greg Mori, and Li Fei-Fei. End-to-end learning of action detection from frame glimpses in videos. In CVPR, 2016. ",
1449
+ "bbox": [
1450
+ 173,
1451
+ 494,
1452
+ 823,
1453
+ 523
1454
+ ],
1455
+ "page_idx": 11
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "Adams Wei Yu, Hongrae Lee, and Quoc V Le. Learning to skim text. In ACL, 2017. ",
1460
+ "bbox": [
1461
+ 173,
1462
+ 532,
1463
+ 728,
1464
+ 547
1465
+ ],
1466
+ "page_idx": 11
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Joe Yue-Hei $\\mathrm { N g }$ , Matthew Hausknecht, Sudheendra Vijayanarasimhan, Oriol Vinyals, Rajat Monga, and George Toderici. Beyond short snippets: Deep networks for video classification. In CVPR, 2015. ",
1471
+ "bbox": [
1472
+ 176,
1473
+ 556,
1474
+ 821,
1475
+ 598
1476
+ ],
1477
+ "page_idx": 11
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. In ICLR, 2015. ",
1482
+ "bbox": [
1483
+ 174,
1484
+ 607,
1485
+ 821,
1486
+ 637
1487
+ ],
1488
+ "page_idx": 11
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "Saizheng Zhang, Yuhuai Wu, Tong Che, Zhouhan Lin, Roland Memisevic, Ruslan R Salakhutdinov, and Yoshua Bengio. Architectural complexity measures of recurrent neural networks. In NIPS, 2016. ",
1493
+ "bbox": [
1494
+ 173,
1495
+ 645,
1496
+ 826,
1497
+ 689
1498
+ ],
1499
+ "page_idx": 11
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "A ADDITIONAL EXPERIMENTS ",
1504
+ "text_level": 1,
1505
+ "bbox": [
1506
+ 178,
1507
+ 102,
1508
+ 444,
1509
+ 118
1510
+ ],
1511
+ "page_idx": 12
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "A.1 FREQUENCY DISCRIMINATION TASK ",
1516
+ "text_level": 1,
1517
+ "bbox": [
1518
+ 176,
1519
+ 132,
1520
+ 472,
1521
+ 147
1522
+ ],
1523
+ "page_idx": 12
1524
+ },
1525
+ {
1526
+ "type": "text",
1527
+ "text": "In this experiment, the network is trained to classify between sinusoids whose period is in range $T \\sim \\mathcal { U } \\left( 5 , 6 \\right)$ milliseconds and those whose period is in range $T \\sim \\{ ( 1 , 5 ) \\cup ( 6 , 1 0 0 ) \\}$ milliseconds (Neil et al., 2016). Every sine wave with period $T$ has a random phase shift drawn from $\\mathcal { U } ( 0 , T )$ . At every time step, the input to the network is a single scalar representing the amplitude of the signal. Since sinusoid are continuous signals, this tasks allows to study whether Skip RNNs converge to the same solutions when their parameters are fixed but the sampling period is changed. We study two different sampling periods, $\\mathrm { \\tilde { \\it T } _ { 3 } } = \\mathrm { \\{ 0 . 5 , 1 \\} }$ milliseconds, for each set of hyperparameters. ",
1528
+ "bbox": [
1529
+ 173,
1530
+ 159,
1531
+ 825,
1532
+ 257
1533
+ ],
1534
+ "page_idx": 12
1535
+ },
1536
+ {
1537
+ "type": "text",
1538
+ "text": "We train RNNs with 110 units each on input signals of 100 milliseconds. Batches are stratified, containing the same number of samples for each class, yielding a $50 \\%$ chance accuracy. The last state of the RNN is fed into a 2-way classifier and trained with cross-entropy loss. We consider that a model is able to solve the task when it achieves an accuracy over $9 9 \\%$ on a held-out set of examples. ",
1539
+ "bbox": [
1540
+ 174,
1541
+ 263,
1542
+ 825,
1543
+ 319
1544
+ ],
1545
+ "page_idx": 12
1546
+ },
1547
+ {
1548
+ "type": "text",
1549
+ "text": "Table 4 summarizes results for this task. When no cost per sample is set $\\lambda = 0$ ), the number of updates differ under different sampling conditions. We attribute this behavior to the potentially large number of local minima in the cost function, since there are numerous subsampling patterns for which the task can be successfully solved and we are not explicitly encouraging the network to converge to a particular solution. On the other hand, when $\\lambda > 0$ Skip RNN models with the same cost per sample use roughly the same number of input samples even when the sampling frequency is doubled. This is a desirable property, since solutions are robust to oversampled input signals. Qualitative results can be found in Section B.2. ",
1550
+ "bbox": [
1551
+ 174,
1552
+ 325,
1553
+ 825,
1554
+ 438
1555
+ ],
1556
+ "page_idx": 12
1557
+ },
1558
+ {
1559
+ "type": "table",
1560
+ "img_path": "images/f5cab9c00573377a556b05c10186d1c7706d8d122337beaf71329e563a79f097.jpg",
1561
+ "table_caption": [],
1562
+ "table_footnote": [],
1563
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Ts = 1ms (length 100)</td><td colspan=\"2\">Ts = O.5ms (length 200)</td></tr><tr><td>Task solved</td><td>State updates</td><td>Task solved</td><td> State updates</td></tr><tr><td>LSTM</td><td>Yes</td><td>100.0 ± 0.00</td><td>Yes</td><td>200.0 ± 0.00</td></tr><tr><td>Skip LSTM, λ= 0</td><td>Yes</td><td>55.5 ± 16.9</td><td>Yes</td><td>147.9 ± 27.0</td></tr><tr><td>Skip LSTM,λ = 10-5</td><td>Yes</td><td>47.4 ± 14.1</td><td>Yes</td><td>50.7 ± 16.8</td></tr><tr><td>Skip LSTM,λ = 10-4</td><td>Yes</td><td>12.7 ± 0.5</td><td>Yes</td><td>19.9 ± 1.5</td></tr><tr><td>GRU</td><td>Yes</td><td>100.0 ± 0.00</td><td>Yes</td><td>200.0 ±0.00</td></tr><tr><td>Skip GRU, λ = 0</td><td>Yes</td><td>73.7 ± 17.9</td><td>Yes</td><td>167.0 ± 18.3</td></tr><tr><td>Skip GRU,λ = 10-5</td><td>Yes</td><td>51.9 ± 10.2</td><td>Yes</td><td>54.2 ± 4.4</td></tr><tr><td>Skip GRU, λ= 10-4</td><td>Yes</td><td>23.5 ± 6.2</td><td>Yes</td><td>22.5 ± 2.1</td></tr></table>",
1564
+ "bbox": [
1565
+ 197,
1566
+ 448,
1567
+ 800,
1568
+ 617
1569
+ ],
1570
+ "page_idx": 12
1571
+ },
1572
+ {
1573
+ "type": "text",
1574
+ "text": "Table 4: Results for the frequency discrimination task, displayed as $m e a n \\pm s t d$ over four different runs. The task is considered to be solved if the classification accuracy is over $9 9 \\%$ . Models with the same cost per sample $( \\lambda > 0$ ) converge to a similar number of used samples under different sampling conditions. ",
1575
+ "bbox": [
1576
+ 174,
1577
+ 635,
1578
+ 825,
1579
+ 690
1580
+ ],
1581
+ "page_idx": 12
1582
+ },
1583
+ {
1584
+ "type": "text",
1585
+ "text": "A.2 SENTIMENT ANALYSIS ON IMDB ",
1586
+ "text_level": 1,
1587
+ "bbox": [
1588
+ 178,
1589
+ 714,
1590
+ 449,
1591
+ 729
1592
+ ],
1593
+ "page_idx": 12
1594
+ },
1595
+ {
1596
+ "type": "text",
1597
+ "text": "The IMDB dataset (Maas et al., 2011) contains 25,000 training and 25,000 testing movie reviews annotated into two classes, positive and negative sentiment, with an approximate average length of 240 words per review. We set aside $1 5 \\%$ of training data for validation purposes. Words are embedded into 300-d vector representations before being fed to an RNN with 128 units. The embedding matrix is initialized using pre-trained word2vec5 embeddings (Mikolov et al., 2013) when available, or random vectors drawn from $\\mathcal { U } ( - 0 . 2 5 , 0 . 2 5 )$ otherwise (Kim, 2014). Dropout with rate 0.2 is applied between the last RNN state and the classification layer in order to reduce overfitting. We evaluate the models on sequences of length 200 and 400 by cropping longer sequences and padding shorter ones (Yu et al., 2017). ",
1598
+ "bbox": [
1599
+ 173,
1600
+ 739,
1601
+ 825,
1602
+ 866
1603
+ ],
1604
+ "page_idx": 12
1605
+ },
1606
+ {
1607
+ "type": "text",
1608
+ "text": "Results on the test are reported in Table 5. In a task where it is hard to predict which input tokens will be discriminative, the Skip RNN models are able to achieve similar accuracy rates to the baseline models while reducing the number of required updates. These results highlight the trade-off between accuracy and the available computational budget, since a larger cost per sample results in lower accuracies. However, allowing the network to select which samples to use instead of cropping sequences at a given length boosts performance, as observed for the Skip LSTM (length 400, $\\lambda =$ $1 0 ^ { { \\bar { - 4 } } { \\bar { \\cdot } } }$ ), which achieves a higher accuracy than the baseline LSTM (length 200) while seeing roughly the same number of words per review. A similar behavior can be seen for the Skip RNN models with $\\lambda = 1 0 ^ { - 3 }$ , where allowing them to select words from longer reviews boosts classification accuracy while using a comparable number of tokens per sequence. ",
1609
+ "bbox": [
1610
+ 174,
1611
+ 872,
1612
+ 825,
1613
+ 901
1614
+ ],
1615
+ "page_idx": 12
1616
+ },
1617
+ {
1618
+ "type": "text",
1619
+ "text": "",
1620
+ "bbox": [
1621
+ 174,
1622
+ 103,
1623
+ 825,
1624
+ 215
1625
+ ],
1626
+ "page_idx": 13
1627
+ },
1628
+ {
1629
+ "type": "text",
1630
+ "text": "In order to reduce overfitting of large models, Miyato et al. (2017) leverage additional unlabeled data through adversarial training and achieve a state of the art accuracy of 0.941 on IMDB. For an extended analysis on how different experimental setups affect the performance of RNNs on this task, we refer the reader to (Longpre et al., 2016). ",
1631
+ "bbox": [
1632
+ 174,
1633
+ 222,
1634
+ 825,
1635
+ 279
1636
+ ],
1637
+ "page_idx": 13
1638
+ },
1639
+ {
1640
+ "type": "table",
1641
+ "img_path": "images/691f67d1b20de1009e06bc4fa98c0537607da92221481bff0b493838ce18b00b.jpg",
1642
+ "table_caption": [
1643
+ "Table 5: Accuracy and used samples on the test set of IMDB for different sequence lengths. Results are displayed as $m e a n \\pm s t d$ over four different runs. "
1644
+ ],
1645
+ "table_footnote": [],
1646
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Length 200</td><td colspan=\"2\">Length 400</td></tr><tr><td>Accuracy</td><td>State updates</td><td>Accuracy</td><td> State updates</td></tr><tr><td>LSTM</td><td>0.843 ± 0.003</td><td>200.00±0.00</td><td>0.868 ± 0.004</td><td>400.00 ± 0.00</td></tr><tr><td>Skip LSTM,λ= 0</td><td>0.844 ± 0.004</td><td>196.75 ± 5.63</td><td>0.866 ± 0.004</td><td>369.70 ± 19.35</td></tr><tr><td>Skip LSTM, X= 10-5</td><td>0.846 ± 0.004</td><td>197.15 ± 3.16</td><td>0.865 ± 0.001</td><td>380.62 ± 18.20</td></tr><tr><td>Skip LSTM,λ= 10-4</td><td>0.837 ± 0.006</td><td>164.65 ± 8.67</td><td>0.862 ± 0.003</td><td>186.30 ± 25.72</td></tr><tr><td>Skip LSTM,λ= 10-3</td><td>0.811 ± 0.007</td><td>73.85 ± 1.90</td><td>0.836 ± 0.007</td><td>84.22 ± 1.98</td></tr><tr><td>GRU</td><td>0.845 ± 0.006</td><td>200.00 ±0.00</td><td>0.862 ± 0.003</td><td>400.00 ± 0.00</td></tr><tr><td>Skip GRU,λ = 0</td><td>0.848 ±0.002</td><td>200.00 ±0.00</td><td>0.866 ±0.002</td><td>399.02 ±1.69</td></tr><tr><td>Skip GRU, λ= 10-5</td><td>0.842 ± 0.005</td><td>199.25 ± 1.30</td><td>0.862 ±0.008</td><td>398.00 ±2.06</td></tr><tr><td>Skip GRU, 入= 10-4</td><td>0.834 ± 0.006</td><td>180.97 ± 8.90</td><td>0.853 ± 0.011</td><td>314.30 ± 2.82</td></tr><tr><td>Skip GRU,λ = 10-3</td><td>0.800 ±0.007</td><td>106.15 ± 37.92</td><td>0.814 ± 0.005</td><td>99.12 ± 2.69</td></tr></table>",
1647
+ "bbox": [
1648
+ 176,
1649
+ 323,
1650
+ 823,
1651
+ 520
1652
+ ],
1653
+ "page_idx": 13
1654
+ },
1655
+ {
1656
+ "type": "text",
1657
+ "text": "A.3 ACTION CLASSIFICATION ON UCF-101 ",
1658
+ "text_level": 1,
1659
+ "bbox": [
1660
+ 174,
1661
+ 619,
1662
+ 486,
1663
+ 633
1664
+ ],
1665
+ "page_idx": 13
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "text": "UCF-101 (Soomro et al., 2012) is a dataset containing 13,320 trimmed videos belonging to 101 different action categories. We use 10 seconds of video sampled at 25 fps, cropping longer ones and padding shorter examples with empty frames. Activations in the Global Average Pooling layer from a ResNet-50 (He et al., 2016) CNN pretrained on the ImageNet dataset (Deng et al., 2009) are used as frame-level features, which are fed into two stacked RNN layers with 512 units each. The weights in the CNN are not tuned during training to reduce overfitting. The hidden state in the last RNN layer is used to compute the update probability for the Skip RNN models. ",
1670
+ "bbox": [
1671
+ 174,
1672
+ 659,
1673
+ 825,
1674
+ 756
1675
+ ],
1676
+ "page_idx": 13
1677
+ },
1678
+ {
1679
+ "type": "text",
1680
+ "text": "We evaluate the different models on the first split of UCF-101 and report results in Table 6. Skip RNN models do not only improve the classification accuracy with respect to the baseline, but require very few updates to do so, possibly due to the low motion between consecutive frames resulting in frame-level features with high temporal redundancy (Shelhamer et al., 2016). Moreover, Figure 4 shows how models performing fewer updates converge faster thanks to the gradients being preserved during longer spans when training with backpropagation through time. ",
1681
+ "bbox": [
1682
+ 174,
1683
+ 762,
1684
+ 825,
1685
+ 847
1686
+ ],
1687
+ "page_idx": 13
1688
+ },
1689
+ {
1690
+ "type": "text",
1691
+ "text": "Non recurrent architectures for video action recognition that have achieved high performance on UCF-101 comprise CNNs with spatiotemporal kernels (Tran et al., 2015) or two-stream CNNs (Simonyan & Zisserman, 2014). Carreira & Zisserman (2017) show the benefits of expanding 2D CNN filters into 3D and pretraining on larger datasets, obtaining an accuracy of 0.845 when using RGB data only and 0.934 when incorporating optical flow information. ",
1692
+ "bbox": [
1693
+ 176,
1694
+ 854,
1695
+ 823,
1696
+ 924
1697
+ ],
1698
+ "page_idx": 13
1699
+ },
1700
+ {
1701
+ "type": "table",
1702
+ "img_path": "images/3cf06b77992f9be46d4dd1db57120153dd437bc952458c542826f8aa1e81c555.jpg",
1703
+ "table_caption": [],
1704
+ "table_footnote": [],
1705
+ "table_body": "<table><tr><td>Model</td><td> Accuracy</td><td> State updates</td><td>Inference FLOPs</td></tr><tr><td>LSTM</td><td>0.671</td><td>250.0</td><td>9.52 ×1011</td></tr><tr><td>Skip LSTM, λ = 0</td><td>0.749</td><td>138.9</td><td>5.29×1011</td></tr><tr><td>Skip LSTM,λ= 10-5</td><td>0.757</td><td>24.2</td><td>9.21 × 1010</td></tr><tr><td>Skip LSTM, λ= 10-4</td><td>0.790</td><td>7.6</td><td>2.89×1010</td></tr><tr><td>GRU</td><td>0.791</td><td>250.0</td><td>9.51 × 1011</td></tr><tr><td>Skip GRU,λ = 0</td><td>0.796</td><td>124.2</td><td>4.73 × 1011</td></tr><tr><td>Skip GRU,λ = 10-5</td><td>0.792</td><td>29.7</td><td>1.13 × 1011</td></tr><tr><td>Skip GRU,λ = 10-4</td><td>0.793</td><td>23.7</td><td>9.02 ×1010</td></tr><tr><td>I3D (RGB) (Carreira &amp; Zisserman, 2017)</td><td>0.845</td><td>=</td><td></td></tr><tr><td>Two-stream I3D (Carreira &amp; Zisserman, 2017)</td><td>0.934</td><td>■</td><td></td></tr></table>",
1706
+ "bbox": [
1707
+ 176,
1708
+ 102,
1709
+ 821,
1710
+ 281
1711
+ ],
1712
+ "page_idx": 14
1713
+ },
1714
+ {
1715
+ "type": "text",
1716
+ "text": "Table 6: Accuracy, used samples and average FLOPs per sequence at inference on the validation set of UCF-101 (split 1). ",
1717
+ "bbox": [
1718
+ 174,
1719
+ 297,
1720
+ 823,
1721
+ 327
1722
+ ],
1723
+ "page_idx": 14
1724
+ },
1725
+ {
1726
+ "type": "image",
1727
+ "img_path": "images/fceb38d809e5cfa29a3604ba1e90bcef2f072d685491e6e5555c418bf329335c.jpg",
1728
+ "image_caption": [
1729
+ "Figure 4: Accuracy evolution during the first 300 training epochs on the validation set of UCF-101 (split 1). Skip LSTM models converge much faster than the baseline LSTM. "
1730
+ ],
1731
+ "image_footnote": [],
1732
+ "bbox": [
1733
+ 178,
1734
+ 361,
1735
+ 818,
1736
+ 542
1737
+ ],
1738
+ "page_idx": 14
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "text": "B QUALITATIVE RESULTS ",
1743
+ "text_level": 1,
1744
+ "bbox": [
1745
+ 174,
1746
+ 102,
1747
+ 401,
1748
+ 118
1749
+ ],
1750
+ "page_idx": 15
1751
+ },
1752
+ {
1753
+ "type": "text",
1754
+ "text": "This appendix contains additional qualitative results for the Skip RNN models. ",
1755
+ "bbox": [
1756
+ 173,
1757
+ 166,
1758
+ 691,
1759
+ 183
1760
+ ],
1761
+ "page_idx": 15
1762
+ },
1763
+ {
1764
+ "type": "text",
1765
+ "text": "B.1 ADDING TASK ",
1766
+ "text_level": 1,
1767
+ "bbox": [
1768
+ 174,
1769
+ 256,
1770
+ 316,
1771
+ 270
1772
+ ],
1773
+ "page_idx": 15
1774
+ },
1775
+ {
1776
+ "type": "image",
1777
+ "img_path": "images/d6521d4fbc04697107e8cda3c1975b53916e50b9a1428f04e8dd4778b6581024.jpg",
1778
+ "image_caption": [
1779
+ "Figure 5: Sample usage examples for the Skip GRU with $\\lambda = 1 0 ^ { - 5 }$ on the adding task. Red dots indicate used samples, whereas blue ones are skipped. "
1780
+ ],
1781
+ "image_footnote": [],
1782
+ "bbox": [
1783
+ 173,
1784
+ 359,
1785
+ 821,
1786
+ 882
1787
+ ],
1788
+ "page_idx": 15
1789
+ },
1790
+ {
1791
+ "type": "image",
1792
+ "img_path": "images/c2799b3b795938bede8847ce47def1d327e5b232e367c05ec310b8af37e0c523.jpg",
1793
+ "image_caption": [
1794
+ "Figure 6: Sample usage examples for the Skip LSTM with $\\lambda = 1 0 ^ { - 4 }$ on the frequency discrimination task with $T _ { s } = 0 . 5 \\mathrm { m s }$ . Red dots indicate used samples, whereas blue ones are skipped. The network learns that using the first samples is enough to classify the frequency of the sine waves, in contrast to a uniform downsampling that may result in aliasing. "
1795
+ ],
1796
+ "image_footnote": [],
1797
+ "bbox": [
1798
+ 173,
1799
+ 135,
1800
+ 821,
1801
+ 651
1802
+ ],
1803
+ "page_idx": 16
1804
+ }
1805
+ ]
parse/train/HkwVAXyCW/HkwVAXyCW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkwVAXyCW/HkwVAXyCW_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HygsfnR9Ym/HygsfnR9Ym.md ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # RECALL TRACES: BACKTRACKING MODELS FOR EFFICIENT REINFORCEMENT LEARNING
2
+
3
+ Anirudh Goyal1, Philemon Brakel2, William Fedus1, Soumye Singhal1,4, Timothy Lillicrap2, Sergey Levine5, Hugo Larochelle3, Yoshua Bengio1
4
+
5
+ # ABSTRACT
6
+
7
+ In many environments only a tiny subset of all states yield high reward. In these cases, few of the interactions with the environment provide a relevant learning signal. Hence, we may want to preferentially train on those high-reward states and the probable trajectories leading to them. To this end, we advocate for the use of a backtracking model that predicts the preceding states that terminate at a given high-reward state. We can train a model which, starting from a high value state (or one that is estimated to have high value), predicts and samples which (state, action)-tuples may have led to that high value state. These traces of (state, action) pairs, which we refer to as Recall Traces, sampled from this backtracking model starting from a high value state, are informative as they terminate in good states, and hence we can use these traces to improve a policy. We provide a variational interpretation for this idea and a practical algorithm in which the backtracking model samples from an approximate posterior distribution over trajectories which lead to large rewards. Our method improves the sample efficiency of both on- and off-policy RL algorithms across several environments and tasks.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Training control algorithms efficiently from interactions with the environment is a central issue in reinforcement learning (RL). Model-free RL methods, combined with deep neural networks, have achieved impressive results across a wide range of domains (Lillicrap et al., 2015; Mnih et al., 2016; Silver et al., 2016). However, existing model-free solutions lack sample efficiency, meaning that they require extensive interaction with the environment to achieve these levels of performance.
12
+
13
+ Model-based methods in RL can mitigate this issue. These approaches learn an unsupervised model of the underlying dynamics of the environment, which does not necessarily require rewards, as the model observes and predicts state-to-state transitions. With a well-trained model, the algorithm can then simulate the environment and look ahead to future events to establish better value estimates, without requiring expensive interactions with the environment. Model-based methods can thus be more sample efficient than their model-free counterparts, but often do not achieve the same asymptotic performance (Deisenroth & Rasmussen, 2011a; Nagabandi et al., 2017).
14
+
15
+ In this work, we propose a method that takes advantage of unsupervised observations of state-to-state transitions for increasing the sample efficiency of current model-free RL algorithms, as measured by the number of interactions with the environment required to learn a successful policy. Our idea stems from a simple observation: given a world model, finding a path between a starting state and a goal state can be done either forward from the start or backward from the goal. Here, we explore an idea for leveraging the latter approach and combining it with model-free algorithms. This idea is particularly useful when rewards are sparse. High-value states are rare and trajectories leading to them are particularly useful for a learner.
16
+
17
+ The availability of an exact backward dynamics model of the environment is a strong and often unrealistic requirement for most domains. Therefore, we propose learning a backward dynamics model, which we refer to as a backtracking model, from the experiences performed by the agent. This backtracking model $p ( s _ { t } , a _ { t } | s _ { t + 1 } )$ , is trained to predict, given a state $s _ { t + 1 }$ , which state $s _ { t }$ the agent visited before $s _ { t + 1 }$ and what action $a _ { t } \sim \pi$ was performed in $s _ { t }$ to reach $s _ { t + 1 }$ . Specifically, this is a model which, starting from a future high-value state, can be used to recall traces that have ended at this high value state, that is sequences of (state, action)-tuples. This allows the agent to simulate and be exposed to alternative possible paths to reach a high value state. A final state may be a previously experienced high-value state or a goal state may be explicitly given, or even produced by the agent using a generative model of high-value states (Held et al., 2017).
18
+
19
+ Our hypothesis is that using a backtracking model in this way should benefit learning, especially in the context of weak or sparse rewards. Indeed, in environments or tasks where the agent receives rewards infrequently, it must leverage this information effectively and efficiently. Exploration methods have been employed successfully (Bellemare et al., 2016; Held et al., 2017; Ostrovski et al., 2017) to increase the frequency at which novel states are discovered. Our proposal can be viewed as a special kind of simulated exploration proceeding backward from presumed high-value states, in order to discover trajectories that may lead to high rewards. A backtracking model aims to augment the experience of the trajectory $\tau$ leading to a high-value state by generating other
20
+
21
+ ![](images/290cd08fc780f2c7ceeb861c49733079b2326965b620a12e4d0da4afced490e3.jpg)
22
+ Figure 1: The policy explores the state space $s$ from an initial state. Discovered high value states are then passed to the backtracking model (dashed-lines) to generate new traces that may have led to this high value state.
23
+
24
+ possible traces $\tilde { \tau }$ that could have also caused it. To summarize: the main contribution of this paper is an RL method based on the use of a backtracking model, which can easily be integrated with existing on- and off-policy techniques for reducing sample complexity. Empirically, we show with experiments on eight RL environments that the proposed approach is more sample efficient.
25
+
26
+ # 2 PRELIMINARIES
27
+
28
+ We consider a Markov decision process (MDP) defined by the tuple $( S , { \mathcal { A } } , P , r , \gamma )$ , where the state space $s$ and the action space $\mathcal { A }$ may be discrete or continuous. The learner is not explicitly given the environment transition probability $p ( s _ { t + 1 } | s _ { t } , a _ { t } )$ for going from $s _ { t } \in S$ to $s _ { t + 1 } \in S$ given $a _ { t } \in { \mathcal { A } }$ , but samples from this distribution are observed. The environment emits a bounded reward $r : S \times$ $\mathcal { A } [ r _ { m i n } , r _ { m a x } ]$ on each transition and $\gamma \in ( 0 , 1 )$ is the discount factor. Let $\pi$ denote a stochastic policy over actions given states, and let $R ( \pi ) ~ = ~ \mathbb { E } _ { \pi } \left[ \sum _ { t = 0 } ^ { T } \gamma ^ { t } r ( s _ { t } ) \right]$ denote the expected total return when policy $\pi$ is followed.The standard objective in reinforcement learning is to maximize the discounted total return $R ( \pi )$ . Throughout the text we will refer to experienced trajectories as $\tau = ( s _ { 1 } , a _ { 1 } , \cdot \cdot \cdot , s _ { T } , a _ { T } )$ and we will refer to simulated experiences as traces $\tilde { \tau }$ .
29
+
30
+ # 2.1 BACKTRACKING MODEL
31
+
32
+ We introduce the backtracking model $B _ { \phi } = q _ { \phi } ( s _ { t } , a _ { t } | s _ { t + 1 } )$ , which is a density estimator of the joint probability distribution over the previous $\left( { { s _ { t } } , { a _ { t } } } \right)$ -tuple parameterized by $\phi$ . This distribution is produced by both a learned backward policy $\pi _ { b } = q ( a _ { t } | s _ { t + 1 } )$ and a state generator $q ( s _ { t } | a _ { t } , s _ { t + 1 } )$ . The backward policy predicts the previous action $a _ { t }$ given the resulting state $s _ { t + 1 }$ . The state generator estimates the probability of a previous state $s _ { t }$ given the tuple $\left( a _ { t } , s _ { t + 1 } \right)$ . With these models, we may decompose $q _ { \phi } { \left( s _ { t } , a _ { t } \vert s _ { t + 1 } \right) }$ as $q ( s _ { t } | a _ { t } , s _ { t + 1 } ) q ( a _ { t } | s _ { t + 1 } )$ .
33
+
34
+ However, for training stability with continuous-valued states, we model the density of state variation $\Delta s _ { t } = s _ { t } - s _ { t + 1 }$ rather than the raw $s _ { t }$ . Therefore, our density models are given by
35
+
36
+ $$
37
+ q _ { \phi } ( \Delta _ { t } , a _ { t } | s _ { t + 1 } ) = q ( \Delta s _ { t } | a _ { t } , s _ { t + 1 } ) q ( a _ { t } | s _ { t + 1 } ) .
38
+ $$
39
+
40
+ Note that for readability, we will drop the $\phi$ -subscript unless it is necessary for clarity.
41
+
42
+ Generating Recall Traces. Analogous to the use of forward models in (Oh et al., 2015; Chiappa et al., 2017; Weber et al., 2017), we may generate a recall trace auto-regressively. To do so, we begin with a state $s _ { t + 1 }$ and sample $a _ { t } \sim q ( a _ { t } | s _ { t + 1 } )$ . The state generator can then be sampled to produce the change in state $\Delta s _ { t } \sim q ( \Delta s _ { t } | a _ { t } , s _ { t + 1 } )$ . We can continue to unroll this process, repeating with state $s _ { t } = \Delta s _ { t } + s _ { t + 1 }$ for a desired number of steps. These generated transitions are then stored as a potential trace $\tilde { \tau }$ which terminates at some final state. The backtracking model $B _ { \phi }$ is learned by maximum likelihood, using the policy’s trajectories as observations, as described in Section 3.1.
43
+
44
+ Producing Intended High Value States. Before recursively sampling from the backtracking model, we need to obtain presumed high-value states. Generally, such states will not be known in advance. However, as the agent learns, it will visit states $s _ { t }$ with increasingly high value $\begin{array} { r } { V ^ { \pi } ( s _ { t } = s ) = E _ { \pi } \left[ \sum _ { t } \gamma ^ { t } r ( s _ { t } ) | \bar { s _ { t } } = s \right] . } \end{array}$ The agent’s full experience is maintained in a replay buffer $\boldsymbol { B }$ , in the form of tuples of $( s _ { t } , a _ { t } , s _ { t + 1 } , r _ { t } )$ . Filtering of trajectories based on the returns is done, so that only top $k _ { t r a j }$ are added to the buffer. In this work, we will investigate our approach with two methods for generating the initial high-value states.
45
+
46
+ The first method relies on picking the most valuable states stored in the replay buffer $\boldsymbol { B }$ . As before, a valuable state may be defined by its estimated expected return $V ^ { \pi } ( s )$ as computed by a critic (our off-policy method) or state that received a high reward (our on-policy method).
47
+
48
+ The second method is based on Goal GAN, recently introduced by (Held et al., 2017) where goal states $g$ are produced via a Generative Adversarial Network (Goodfellow et al., 2014). In our variant, we map the goal state $g$ to a valid point in state space $s$ using a ’decoder’ $D$ . For the point-mass, the goal and state are identical; for Ant, we use a valid random joint-angle configuration at that goal position. The backtracking model is then used to find plausible trajectories that terminate at that state. For both methods, as the learner improves, one would expect that on average, higher value states are used to seed the recall traces.
49
+
50
+ # 3 IMPROVING POLICIES WITH BACKTRACKING MODEL
51
+
52
+ In this section, we describe how to train the backtracking model and how it can be used to improve the efficiency of the agent’s policy and aid with exploration.
53
+
54
+ # 3.1 TRAINING THE BACKTRACKING MODEL
55
+
56
+ We use a maximum likelihood training loss for training of the backtracking model $B _ { \phi }$ on the top $k \%$ of the agent’s trajectories stored in the state buffer $\boldsymbol { B }$ . At each iteration, we perform stochastic gradient updates based on agent trajectories $\tau$ , with respect to the following objective:
57
+
58
+ $$
59
+ \begin{array} { r l } { \mathcal { L } _ { \boldsymbol { B } } = \log q _ { \phi } ( \tau ) = \log \displaystyle \prod _ { t = 0 } ^ { T } q ( \Delta s _ { t } , a _ { t } | s _ { t + 1 } ) } & { { } = \displaystyle \sum _ { t = 0 } ^ { T } \log q ( a _ { t } | s _ { t + 1 } ) + \log q ( \Delta s _ { t } | a _ { t } , s _ { t + 1 } ) , } \end{array}
60
+ $$
61
+
62
+ where $s _ { t } = \Delta s _ { t } + s _ { t + 1 }$ and $T$ is the episode length. For our chosen backtracking model, this implies a mean-squared error loss (i.e. corresponding to a conditional Gaussian for $\Delta s _ { t }$ ) for continuous action tasks and a cross-entropy loss (i.e. corresponding to a conditional Multinoulli for $s _ { t }$ given $a _ { t }$ and $s _ { t + 1 }$ ) for discrete action tasks. The buffer is constantly updated with recent experiences and the backtracking model is trained online in order to encourage generalization as the distribution of trajectories in the buffer evolves.
63
+
64
+ # 3.2 IMPROVING THE POLICY FROM THE RECALL TRACES
65
+
66
+ We now describe how we use the recall traces $\tilde { \tau }$ to improve the agent’s policy $\pi _ { \theta }$ . In brief, the traces $\tilde { \tau }$ generated by the backtracking model are used as observations for imitation learning (Pomerleau, 1989; ros, 2011; Bojarski et al., 2016) by the agent. The backtracking model will be continuously updated as new actual experiences are generated, as described in Section 3.1. Imitation learning of the policy is performed simply by maximizing the log-probability of the agent’s action $a _ { t }$ given $s _ { t }$ given by
67
+
68
+ $$
69
+ \mathcal { L } _ { \mathcal { T } } = \sum _ { t = 0 } ^ { T } \log p ( a _ { t } | s _ { t } ) = \sum _ { t = 0 } ^ { T } \log \pi _ { \theta } ( a _ { t } | s _ { t } ) ,
70
+ $$
71
+
72
+ where $\left( { { s _ { t } } , { a _ { t } } } \right)$ -tuples come from a generated trace $\tilde { \tau }$ .
73
+
74
+ Our motivation for having the agent imitate trajectories from the backtracking model is two-fold:
75
+
76
+ # Algorithm 1 Improve Policy via Recall Traces and Backtracking Model
77
+
78
+ Require: RL algorithm with parameterized policy (i.e. TRPO, Actor-Critic)
79
+ Require: Agent policy $\pi _ { \boldsymbol { \theta } } ( a | \boldsymbol { s } )$
80
+ Require: Backtracking model $B _ { \phi } = q _ { \phi } ( \Delta s _ { t } , a _ { t } | s _ { t + 1 } )$
81
+ Require: Critic $V ( s )$
82
+
83
+ Require: $k$ quantile of best state values used to train backtracking model, $k _ { t r a j }$ number of trajectories filtered by returns.
84
+
85
+ Require: $N$ ; number of backward trajectories per target state
86
+
87
+ Require: $\alpha , \beta$ ; forward, backward learning rates
88
+ 1: Randomly initialize agent policy parameters $\theta$
89
+ 2: Randomly initialize backtracking model parameters $\phi$
90
+ 3: for $t = 1$ to $K$ do
91
+ 4: Execute policy to produce trajectory $\tau$
92
+ 5: Add trajectory $\tau = ( s _ { 1 } , a _ { 1 } , r _ { 1 } , \cdot \cdot \cdot , s _ { T } , a _ { T } , r _ { T } )$ in $\boldsymbol { B }$
93
+ 6: Estimate $\nabla _ { \boldsymbol { \theta } } R ( \pi _ { \boldsymbol { \theta } } )$ from RL algorithm
94
+ 7: $\theta \theta + \alpha \nabla _ { \theta } \dot { R } ( \dot { \pi } _ { \theta } )$
95
+ 8: Compute $\mathcal { L } _ { B }$ via Equation 2, using top $k \%$ valuable states from top $k _ { t r a j }$ trajectories in $\boldsymbol { B }$
96
+ 9: $\phi \phi + \beta \nabla _ { \phi } \mathcal { L } _ { B }$
97
+ 10: Obtain target high value state $s$ (see Algorithm 2 for details)
98
+ 11: Generate $N$ recall traces $\tilde { \tau }$ for $s$ using $B _ { \phi } ( s )$
99
+ 12: Compute imitation loss $\mathcal { L } _ { \mathcal { I } }$ via Equation 3
100
+ 13: $\theta \theta + \alpha \nabla _ { \theta } \mathcal { L } _ { \mathcal { Z } }$
101
+ 14: end for
102
+
103
+ Dealing with sparse rewards States with significant return are emphasized by the backtracking model, since the traces it generates are initialized at high value states. We expect this behaviour to help in the context of sparse or weak rewards.
104
+
105
+ Aiding in exploration The backtracking model can also generate new ways to reach high-value states. So even if it cannot directly discover new high-value states, it can at least point to new ways to reach known high value states, thus aiding with exploration.
106
+
107
+ # 4 VARIATIONAL INTERPRETATION
108
+
109
+ Thus far, we have motivated the use of a backtracking model intuitively. In this section, we provide a motivation relying on a variational perspective of RL and ideas from the wake-sleep algorithm Hinton et al. (1995).
110
+
111
+ Let $R$ be the return of a policy trajectory $\tau$ , i.e. the sum of discounted rewards under this trajectory. Consider the event of the return $R$ being larger than some threshold $L$ . The probability of that event under the agent’s policy is $\begin{array} { r } { p ( R > \bar { L } ) \stackrel { - } { = } \sum _ { \tau } p ( R > L | \tau ) p ( \tau ) } \end{array}$ , where $p ( \tau )$ is distribution of trajectories under policy $\pi$ , $p ( R > L | \tau ) = 1 _ { R > L }$ and $1 _ { A }$ is the indicator function that is equal to 1 if $A$ is true and is otherwise 0.
112
+
113
+ Let $q ( \tau )$ be any other distribution over trajectories, then we have the following classic relationship between the marginal log-probability of an observation $( R > L$ ) and the KL-divergence between $q$ and the posterior over a latent variable $( \tau )$ :
114
+
115
+ $$
116
+ \log p ( R > L ) = \mathcal { L } + \mathrm { K L } ( q ( \tau ) | | p ( \tau | R > L ) ) \geq \mathcal { L }
117
+ $$
118
+
119
+ where
120
+
121
+ $$
122
+ \mathcal { L } = \sum _ { \tau } q ( \tau ) \log \left( p ( R > L | \tau ) p ( \tau ) / q ( \tau ) \right) .
123
+ $$
124
+
125
+ This suggests an EM-style training procedure, that alternates between training the variational distribution $q ( \tau )$ towards the posterior $p ( \tau | R > L )$ and training the policy to maximize $\mathcal { L }$ . In this context, we view the backtracking model and the high-value states sampler as providing $q ( \tau )$ implicitly. Specifically, we assume that $q$ factorizes temporally as in Equation 2 with the backtracking model providing $q ( a _ { t } | s _ { t + 1 } )$ and $q ( \Delta s _ { t } | a _ { t } , s _ { s + 1 } )$ . We parameterize the approximate posterior in this way so that we can take advantage of a model of the backwards transitions to conveniently sample from $q$ starting from a high-value final state $s _ { T }$ . This makes sense in the context of sparse rewards, where few states have significant reward. If we have a way to identify these high-reward states, then it is much easier to obtain these posterior trajectories by starting from them.
126
+
127
+ Training $q ( \tau )$ by minimizing the $\mathrm { K L } ( q ( \tau ) | | p ( \tau | R > L ) )$ term is hard due to the direction of the KL-divergence. Taking inspiration from the wake-sleep algorithm (Hinton et al., 1995), we instead minimize the KL in the opposite direction, $\mathrm { K L } ( p ( \tau | R > L ) | | q ( \tau ) )$ . This can be done by sampling trajectories from $p ( \tau | R > \overline { { L } } )$ (e.g. by rejection sampling, keeping only the forward-generated trajectories which lead to $R > L$ ) and maximizing their log-probability under $q ( \tau )$ . This recovers our algorithm, which trains the backtracking model on high-return trajectories generated by the agent.
128
+
129
+ So far we have assumed a known threshold $L$ . However, in practice the choice of $L$ is important. While ultimately we would want $L$ to be close to the highest possible return, at the early stages of training it cannot be, as trajectories from the agent are unlikely to reach that threshold. A better strategy is to gradually increase $L$ . One natural way of doing this is to use the top few percentile trajectories sampled by the agent for training $q ( \tau )$ , instead of explicitly setting $L$ . This approach can be thought of as providing a curriculum for training the agent that is adapted to its performance. This is also related to evolutionary methods (Hansen, 2016; Baluja, 1994), which keep the “fittest” samples from a population in order to re-estimate a model, from which new samples are generated.
130
+
131
+ This variational point of view also tells us how the prior over the last state should be constructed. The ideal prior $q ( s _ { T } )$ is simply a generative model of the final states leading to $R > L$ . Both methods proposed to estimate $q ( s _ { T } )$ with this purpose, either non-parametrically (with the forward samples for which $R > L$ ) or parametrically (with generative model trained from those samples). Also, if goal states are known ahead of time, then we can set $L$ as the reward of those states (minus a small quantity) and we can seed the backwards trajectories from these goal states. In that case the variational objective used to train the policy is a proxy for log-likelihood of reaching a goal state.
132
+
133
+ # 5 RELATED WORK
134
+
135
+ Control as inference The idea of treating control problems as inference has been around for many years (Stengel, 1986; Kappen et al., 2012; Todorov, 2007; Toussaint, 2009; Rawlik et al., 2012). A good example of this idea is to use Expectation Maximization (EM) for RL (Dayan & Hinton, 1997), of which the PoWER algorithm (Kober et al., 2013) is one well-known practical implementation. In EM algorithms for RL, learning is divided between the estimation of the expectation over the trajectories conditioned on the reward observations and estimation of a new policy based on these expectation estimates. While we don’t explicitly try to estimate these expectations, one could argue that the samples from the backtracking model serve a similar purpose. Variational inference has also been proposed for policy search (Neumann et al., 2011; Levine & Koltun, 2013). Probabilistic views of the RL problem have also been used to construct maximum entropy methods for both regular and inverse RL (Haarnoja et al., 2017; Ziebart et al., 2008).
136
+
137
+ Using off-policy trajectories By incorporating the trajectories of a separate backtracking model, our method is similar in spirit to approaches which combine on-policy learning algorithms with off-policy samples. Recent examples of this, like the interpolated policy gradient (Gu et al., 2017), PGQ (O’Donoghue et al., 2016) and ACER (Wang et al., 2016), combine policy gradient learning with ideas for off-policy learning and methodology inspired by Q-learning. Our method differs by using the backtracking model to obtain off-policy trajectories and is, as an idea, independent of the specific model-free RL method it is combined with. Our work to effectively propagate value updates backwards is also related to the seminal work of prioritized sweeping (Moore & Atkeson, 1993).
138
+
139
+ Model-based methods A wide range of model-based RL and control methods have been proposed in the literature (Deisenroth et al., 2013). PILCO (Deisenroth & Rasmussen, 2011b), is a model-based policy search method to learn a probabilistic model of dynamics and incorporate model uncertainty into long-term planning. The classic Dyna (Sutton) algorithm was proposed to take advantage of a model to generate simulated experiences, which could be included in the training data for a modelfree algorithm. This method was extended to work with deep neural network policies, but performed best with models that were not neural networks (Gu et al., 2016b). Other extensions to Dyna have also been proposed (Silver et al., 2008; Kalweit & Boedecker; Heess et al., 2015).
140
+
141
+ Other approaches have also been proposed to combine advantages of both value and policy-based approaches (Nachum et al., 2017; Sukhbaatar et al., 2017). Finally, (Edwards et al., 2018) is concurrent work to this and also proposes training on imagined reversal steps from known goal states. (Goyal et al., 2017) proposed to use similar learning rule in the context of generative models to modify the parameters of transition operator to make the reverse of this heated trajectory more likely under a reverse cooling process.
142
+
143
+ ![](images/eefea3db8f94db0088a9a43f7a5a807952871a1389f3002804e8641052c90207.jpg)
144
+ Figure 2: Training curves from the Four Room Environment for the Actor-Critic baseline (blue) and the backtracking model augmented Actor-Critic (orange). For the size-19 environment, several of the Actor-Critic baselines failed to converge, whereas the augmented recall trace model always succeeded in the number of training steps considered. For additional results see Figure 9 in Appendix.
145
+
146
+ # 6 EXPERIMENTAL RESULTS
147
+
148
+ Our experimental evaluation aims to understand whether our method can improve the sample complexity of off-policy as well as on-policy RL algorithms. Practically, we must choose the length of generated backward traces. Longer traces become increasingly likely to deviate significantly from the traces that the agent can generate from its initial state. Therefore, in our experiments, we sample fairly short traces $\tilde { \tau }$ from the backtracking model, where the length is adjusted manually based on the time-scale of each task.
149
+
150
+ # We empirically show the following results across different experimental settings:
151
+
152
+ • Samples from the true backtracking model can be used to improve sample efficiency. • Using a learned backtracking model starting from high value states accelerates learning for off-policy as well as on-policy experiments. • Modeling parametrically and generating high value states (using GoalGAN) also helps.
153
+
154
+ # 6.1 ACCESS TO TRUE BACKTRACKING MODEL
155
+
156
+ Here, we aim to check if in the ideal case when the true backtracking model is known, the proposed approach works. To investigate this, we use the four-room environment from Schaul et al. (2015) of various dimensions. The 4-room grid world is a simple environment where the agent must navigate to a goal position to receive a positive reward through bottleneck states (doorways). We compare the proposed method to the scenario where the policy is trained through the actor-critic method Konda (2002) with generalized advantage estimation (GAE) Schulman et al. (2015b)
157
+
158
+ Finding the goal state becomes more challenging as the dimension increases due to sparsity of rewards. Therefore, we expect that the backtracking model would be a more effective tool in larger environments. Confirming this hypothesis, we see in Figure 2 that, as we increase the dimensionality of the maze, sample efficiency increases thanks to recall traces, compared to our baseline.
159
+
160
+ # 6.2 COMPARISON WITH PRIORITIZED EXPERIENCE REPLAY
161
+
162
+ Here we aim to compare the performance of recall traces with Prioritized Experience Replay (PER). PER stores the past experiences in a buffer and then selectively trains on high value experiences. We again use the Four-room Environment. PER gives an optimistic bias to the critic, and while it allows the reinforcement of sparse rewards, it also converges too quickly to an exploitation mode, which can be difficult to get out of. In order to show this, we plot the state visitation counts of a policies trained with PER and recall traces and see that the latter visit more states.
163
+
164
+ ![](images/16904e4d69cdc495b305097ef7fc9f8953482a4c5bf15fda554ad0ab1918f903.jpg)
165
+ Figure 3: Visitation count visualization of trained policies for PER (left) and Recall Traces (right) for two 4-room grid sizes.
166
+
167
+ ![](images/cfbc408eb978e61773fbef4dc973e3dfbdf4be94733efa8523371b9c37ed7847.jpg)
168
+ Figure 4: Plots for reward vs. time steps, comparing the performance of recall traces (labeled BacktrackingModel), PER and baseline Actor Critic (AC).
169
+
170
+ We show in Figure 4 that while PER is competitive in the smaller 11x11 environment, recall traces outperform it in the larger 15x15 environment. Figure 3 also shows how the use of a backtracking model and recall traces pushes the policy to visit a wider variety of grid positions than PER.
171
+
172
+ # 6.3 LEARNED BACKTRACKING MODEL FROM GENERATED STATES
173
+
174
+ One situation in which states to start the backtracking model at are naturally available, is when the method is combined with an algorithm for sub-goal selection. We chose to investigate how well the backtracking model can be used in conjunction with the automatic goal generation algorithm from Held et al. (2017), Goal GAN. It uses a Generative Adversarial Network to produce sub-goals at the appropriate level of difficulty for the agent to reach. As the agent learns, new sub-goals of increasing difficulty are generated. This way, the agent is pressured to explore and learn to be able to reach any location in the state space. We hypothesize that the backtracking model should help the agent to reach the sub-goals faster and explore more efficiently.
175
+
176
+ Hence, in this learning scenario, what changes is that high value states are now generated by Goal GAN instead of being selected by a critic from a replay buffer.
177
+
178
+ We performed experiments on the U-Maze Ant task described in Held et al. (2017). It is a challenging robotic locomotion task where a quadruped robot has to navigate its center of mass within some particular distance of a target goal. The objective is to cover as much of the space of the U-shaped maze as possible. We find that using the backtracking model improves data efficiency, by reaching a coverage of more than $63 \%$ in 155 steps, instead of 275 steps without it (Fig 5). More visualizations and learning curves for U-Maze Ant task as well as the N-Dimensional Point Mass task can be found in Appendix (Figs. 11, 12 and 13).
179
+
180
+ # 6.4 LEARNED BACKTRACKING MODEL - ON-POLICY CASE
181
+
182
+ We conducted robotic locomotion experiments using the MuJoCo simulator (Todorov et al., 2012). We use the same setup as (Nagabandi et al., 2017). We compare our approach with a pure model-free method on standard benchmark locomotion tasks, to learn the fastest forward-moving gait possible. The model-free approach we consider is the rllab implementation of trust region policy optimization (TRPO) Schulman et al. (2015a). For the TRPO baseline we use the same setup as Nagabandi et al. (2017). See the appendix for the model implementation details.
183
+
184
+ ![](images/5b169c2be83e36aa4be472bee8085e14f1730dca1ed186e974ea6708c8bd23b6.jpg)
185
+ Figure 5: Visualization of GoalGAN baseline (b) vs backtracking model (c) policy performance for different parts of the state space for Ant Maze task. Red indicates complete success; blue indicates failure. Backtracking model achieves equal coverage rates in fewer steps of training.
186
+
187
+ Performance across tasks: The results in Figure 6 show that our method consistently outperforms TRPO on all of the benchmark tasks in terms of final performance, and learns substantially faster.
188
+
189
+ ![](images/875638c64e7dda53f3ad3a9db7338b2219a3121cda68c8d620aecd1412d1f5b5.jpg)
190
+ Figure 6: Our model as compared to TRPO. For TRPO baselines, except walker, we ran with 5 different random seeds. For our model, we ran with 5 different random seeds.
191
+
192
+ # 6.5 LEARNED BACKTRACKING MODEL - OFF POLICY CASE
193
+
194
+ Here, we evaluate on the same range of challenging continuous control tasks from the OpenAI gym benchmark suite. We compare to Soft Actor Critic (SAC) (Haarnoja et al., 2018), shown to be more sample efficient compared to other off-policy algorithms such as DDPG (Lillicrap et al., 2015) and which consistently outperforms DDPG. Part of the reason for choosing SAC instead of DDPG was that the latter is also known to be more sensitive to hyper-parameter settings, limiting its effectiveness on complex tasks Henderson et al. (2017). For SAC, we use the same hyper-parameters reported in Haarnoja et al. (2018). Implementation details for our model are listed in the Appendix.
195
+
196
+ Performance across tasks - The results in Figure 7 show that our method consistently improves the performance of SAC on all of the benchmark tasks, leading to faster learning. In fact, the largest improvement is observed on the hardest task, Ant.
197
+
198
+ ![](images/fa977aca2b3a0e6eedfa7c38633d2d6447fb877a9108781a0e86ef394a9801f8.jpg)
199
+ Figure 7: Our model as compared to SAC. We ran SAC baselines with 2 different random seeds. For our model, we ran with 5 different random seeds.
200
+
201
+ # 7 DISCUSSION
202
+
203
+ We advocate for the use of a backtracking model for improving sample efficiency and exploration in RL. The method can easily be combined with popular RL algorithms like TRPO and soft actorcritic. Our results indicate that the recall traces generated by such models are able to accelerate learning on a variety of tasks. We also show that the method can be combined with automatic goal generation. The Appendix provides more analysis on the sensitivity of our method to various factors and ablations. We show that a random model is outperformed by a trained backtracking model, confirming its usefulness and present plots showing the effect of varying the length of recall traces.
204
+
205
+ For future work, while we observed empirically that the method has practical value and could relate its workings from a variational perspective, but more could be done to improve our theoretical understanding of its convergence behavior and what kind of assumptions need to hold about the environment. It would also be interesting to investigate how the backtracking model can be combined with forward models from a more conventional model-based system.
206
+
207
+ # 8 ACKNOWLEDGEMENTS
208
+
209
+ The authors acknowledge the important role played by their colleagues at Mila throughout the duration of this work. The authors would like to thank Alessandro Sordoni for being involved in the earlier phase of the project, and for the Four Room Code. AG would like to thank Doina Precup, Matthew Botvinick, Konrad Kording for useful discussions. William Fedus would like to thank Evan Racah and Valentin Thomas for useful discussions and edits. The authors would also like to thank Nicolas Le Roux, Rahul Sukthankar, Gatan Marceau Caron, Maxime Chevalier-Boisvert, Justin Fu, Nasim Rahaman for the feedback on the draft. The authors would also like to thank NSERC, CIFAR, Google Research, Samsung, Nuance, IBM and Canada Research Chairs, Nvidia for funding, and Compute Canada for computing resources.
210
+
211
+ # REFERENCES
212
+
213
+ A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, 2011.
214
+
215
+ Shumeet Baluja. Population-based incremental learning: A method for integrating genetic search based function optimization and competitive learning. Technical report, 1994.
216
+
217
+ Marc Bellemare, Sriram Srinivasan, Georg Ostrovski, Tom Schaul, David Saxton, and Remi Munos. Unifying count-based exploration and intrinsic motivation. In NIPS, 2016.
218
+
219
+ Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016.
220
+
221
+ Silvia Chiappa, Sebastien Racaniere, Daan Wierstra, and Shakir Mohamed. Recurrent environment ´ simulators. arXiv preprint arXiv:1704.02254, 2017.
222
+
223
+ Peter Dayan and Geoffrey E Hinton. Using expectation-maximization for reinforcement learning. Neural Computation, 9(2):271–278, 1997.
224
+
225
+ Marc Deisenroth and Carl E Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on machine learning (ICML-11), pp. 465–472, 2011a.
226
+
227
+ Marc Peter Deisenroth and Carl Edward Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In Proceedings of the 28th International Conference on International Conference on Machine Learning, ICML’11, pp. 465–472, USA, 2011b. Omnipress. ISBN 978- 1-4503-0619-5. URL http://dl.acm.org/citation.cfm?id $=$ 3104482.3104541.
228
+
229
+ Marc Peter Deisenroth, Gerhard Neumann, and Jan Peters. A survey on policy search for robotics. Foundations and Trends in Robotics, 2(12):1–142, 2013. ISSN 1935-8253. doi: 10.1561/2300000021. URL http://dx.doi.org/10.1561/2300000021.
230
+
231
+ Ashley D Edwards, Laura Downs, and James C Davidson. Forward-backward reinforcement learning. arXiv preprint arXiv:1803.10227, 2018.
232
+
233
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
234
+
235
+ Anirudh Goyal Alias Parth Goyal, Nan Rosemary Ke, Surya Ganguli, and Yoshua Bengio. Variational walkback: Learning a transition operator as a stochastic recurrent net. In Advances in Neural Information Processing Systems, pp. 4392–4402, 2017.
236
+
237
+ Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E Turner, and Sergey Levine. Qprop: Sample-efficient policy gradient with an off-policy critic. arXiv preprint arXiv:1611.02247, 2016a.
238
+
239
+ Shixiang Gu, Timothy P. Lillicrap, Ilya Sutskever, and Sergey Levine. Continuous deep q-learning with model-based acceleration. CoRR, abs/1603.00748, 2016b.
240
+
241
+ Shixiang Gu, Tim Lillicrap, Richard E Turner, Zoubin Ghahramani, Bernhard Scholkopf, and Sergey ¨ Levine. Interpolated policy gradient: Merging on-policy and off-policy gradient estimation for deep reinforcement learning. In NIPS, 2017.
242
+
243
+ Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. arXiv preprint arXiv:1702.08165, 2017.
244
+
245
+ Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. CoRR, abs/1801.01290, 2018.
246
+
247
+ Nikolaus Hansen. The CMA evolution strategy: A tutorial. CoRR, abs/1604.00772, 2016. URL http://arxiv.org/abs/1604.00772.
248
+
249
+ Nicolas Heess, Greg Wayne, David Silver, Timothy P. Lillicrap, Yuval Tassa, and Tom Erez. Learning continuous control policies by stochastic value gradients. abs/1510.09142, 2015.
250
+
251
+ David Held, Xinyang Geng, Carlos Florensa, and Pieter Abbeel. Automatic goal generation for reinforcement learning agents. arXiv preprint arXiv:1705.06366, 2017.
252
+
253
+ Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. Deep reinforcement learning that matters. abs/1709.06560, 2017.
254
+
255
+ Geoffrey E Hinton, Peter Dayan, Brendan J Frey, and Radford M Neal. The” wake-sleep” algorithm for unsupervised neural networks. Science, 268(5214):1158–1161, 1995.
256
+
257
+ Gabriel Kalweit and Joschka Boedecker. Uncertainty-driven imagination for continuous deep reinforcement learning. In Proceedings of the 1st Annual Conference on Robot Learning, volume 78 of Proceedings of Machine Learning Research.
258
+
259
+ Hilbert J Kappen, Vicenc¸ Gomez, and Manfred Opper. Optimal control as a graphical model infer- ´ ence problem. Machine learning, 87(2):159–182, 2012.
260
+
261
+ Jens Kober, J Andrew Bagnell, and Jan Peters. Reinforcement learning in robotics: A survey. The International Journal of Robotics Research, 32(11):1238–1274, 2013.
262
+
263
+ Vijaymohan Konda. Actor-critic Algorithms. PhD thesis, Cambridge, MA, USA, 2002. AAI0804543.
264
+
265
+ Sergey Levine and Vladlen Koltun. Variational policy search via trajectory optimization. In NIPS, 2013.
266
+
267
+ Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
268
+
269
+ Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In ICML, 2016.
270
+
271
+ Andrew W Moore and Christopher G Atkeson. Prioritized sweeping: Reinforcement learning with less data and less time. Machine learning, 13(1):103–130, 1993.
272
+
273
+ Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Bridging the gap between value and policy based reinforcement learning. In NIPS, 2017.
274
+
275
+ Anusha Nagabandi, Gregory Kahn, Ronald S Fearing, and Sergey Levine. Neural network dynamics for model-based deep reinforcement learning with model-free fine-tuning. arXiv preprint arXiv:1708.02596, 2017.
276
+
277
+ Gerhard Neumann et al. Variational inference for policy search in changing situations. In ICML 2011, 2011.
278
+
279
+ Brendan O’Donoghue, Remi Munos, Koray Kavukcuoglu, and Volodymyr Mnih. Pgq: Combining policy gradient and q-learning. arXiv preprint arXiv:1611.01626, 2016.
280
+
281
+ Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L Lewis, and Satinder Singh. Action-conditional video prediction using deep networks in atari games. In NIPS, 2015.
282
+
283
+ Georg Ostrovski, Marc G Bellemare, Aaron van den Oord, and Remi Munos. Count-based explo- ´ ration with neural density models. arXiv preprint arXiv:1703.01310, 2017.
284
+
285
+ Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In Advances in neural information processing systems, pp. 305–313, 1989.
286
+
287
+ Konrad Rawlik, Marc Toussaint, and Sethu Vijayakumar. On stochastic optimal control and reinforcement learning by approximate inference. In Robotics: science and systems, volume 13, pp. 3052–3056, 2012.
288
+
289
+ Tom Schaul, Daniel Horgan, Karol Gregor, and David Silver. Universal value function approximators. In ICML, 2015.
290
+
291
+ John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, and Pieter Abbeel. Trust region policy optimization. CoRR, abs/1502.05477, 2015a.
292
+
293
+ John Schulman, Philipp Moritz, Sergey Levine, Michael I. Jordan, and Pieter Abbeel. Highdimensional continuous control using generalized advantage estimation. CoRR, abs/1506.02438, 2015b.
294
+
295
+ David Silver, Richard S. Sutton, and Martin Muller. Sample-based learning and search with perma- ¨ nent and transient memories. In Proceedings of the 25th International Conference on Machine Learning, ICML ’08, 2008.
296
+
297
+ David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. nature, 529(7587):484–489, 2016.
298
+
299
+ Robert F Stengel. Optimal control and estimation. Courier Corporation, 1986.
300
+
301
+ Sainbayar Sukhbaatar, Ilya Kostrikov, Arthur Szlam, and Rob Fergus. Intrinsic motivation and automatic curricula via asymmetric self-play. arXiv preprint arXiv:1703.05407, 2017.
302
+
303
+ Richard S. Sutton. Dyna, an integrated architecture for learning, planning, and reacting. SIGART Bull.
304
+
305
+ E. Todorov, T. Erez, and Y. Tassa. Mujoco: A physics engine for model-based control. In IROS, 2012.
306
+
307
+ Emanuel Todorov. Linearly-solvable markov decision problems. In NIPS, 2007.
308
+
309
+ Marc Toussaint. Robot trajectory optimization using approximate inference. In Proceedings of the 26th annual international conference on machine learning, 2009.
310
+
311
+ Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando de Freitas. Sample efficient actor-critic with experience replay. arXiv preprint arXiv:1611.01224, 2016.
312
+
313
+ Theophane Weber, Sebastien Racani ´ ere, David P. Reichert, Lars Buesing, Arthur Guez, \` Danilo Jimenez Rezende, Adria Puigdom \` enech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, \` Razvan Pascanu, Peter Battaglia, David Silver, and Daan Wierstra. Imagination-augmented agents for deep reinforcement learning. CoRR, abs/1707.06203, 2017.
314
+
315
+ Brian D Ziebart, Andrew L Maas, J Andrew Bagnell, and Anind K Dey. Maximum entropy inverse reinforcement learning. In AAAI, 2008.
316
+
317
+ A PSEUDO CODE FOR GAN BASED MODEL
318
+
319
+ # Algorithm 2 Produce High Value States
320
+
321
+ Require: Critic $V ( s )$
322
+ Require: $D$ ; transformation ’decoder’ from $g$ to $s$
323
+ Require: Experience buffer $\boldsymbol { B }$ with tuples $\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } , { s _ { t + 1 } } } \right)$
324
+ Require: gen state; boolean whether to generate states
325
+ Require: $G A N$ , some generative model trained to model high-value goal states
326
+ 1: if gen state then
327
+ 2: $g \sim G A N$
328
+ 3: $D : g \mapsto s$
329
+ 4: Return $s$
330
+ 5: else
331
+ 6: Return argmax ${ \mathrm { : } } ( V ( s ) ) \ \forall s \in B$
332
+ 7: end if
333
+
334
+ # B PERFORMANCE BY VARYING LENGTH
335
+
336
+ In Figure 8 we show the performance in learning efficiency when the length of the backward traces is varied.
337
+
338
+ ![](images/4cbdae02d8b7c74ee8f08da2d651f18271753ec52476874e17bfea3939e7074e.jpg)
339
+ Figure 8: Performance of our model (with TRPO) by varying the length of traces from backtracking model. All the time-steps are in thousands i.e $( \mathbf { x } 1 0 0 0 )$
340
+
341
+ # C ARCHITECTURE AND IMPLEMENTATION DETAILS
342
+
343
+ The backtracking model we used for all the experiments consisted of two multi-layer perceptrons: one for the backward action predictor $Q ( a _ { t } | s _ { t + 1 } )$ and one for the backward state predictor $Q ( s _ { t } | a _ { t } , s _ { t + 1 } )$ . Both MLPs had two hidden layers of 128 units. The action predictor used hyperbolic tangent units while the inverse state predictor used ReLU units. Each network produced as output the mean and variance parameters of a Gaussian distribution. For the action predictor the output variance was fixed to 1. For the state predictor this value was learned for each dimension.
344
+
345
+ We do about a hundred training-steps of the backtracking model for every 5 training-steps of the RL algorithm. For training the backtracking model we maintain a buffer which stores states (state, action, nextstate, reward) yielding high rewards. We sample a batch from the buffer and then normalize the states, actions before training the backtracking model on them.
346
+
347
+ During the sampling phase we feed in the normalized nextstate in the backward action predictor $Q ( a _ { t } | s _ { t + 1 } )$ to get normalized action. Then we input this normalized action in the backward state predictor $Q ( s _ { t } | a _ { t } , s _ { t + 1 } )$ to get normalized previous state. We then un-normalize the obtained previous states and action using the corresponding mean and variance to compute the Imitation loss. This is required for stability during sampling.
348
+
349
+ # D ADDITIONAL RESULTS
350
+
351
+ # FOUR ROOM ENVIRONMENT
352
+
353
+ ![](images/09743a08e364150927a6aa7be84b01ba8cc7daec12d4f13ba72a09f8e14aa2dd.jpg)
354
+ Figure 9: Training curves from the Four Room Environment for the Actor-Critic baseline (blue) and the backtracking model augmented Actor-Critic (orange). As the size of the environment increases, the benefit of the backtracking model increases for the policy. For the size-19 environment, several of the Actor-Critic baselines failed to converge, whereas the augmented recall trace model always succeeded in the number of training steps considered.
355
+
356
+ # COMPARISON WITH PER
357
+
358
+ We show additional results for 13 Dimensional Environment.
359
+
360
+ ![](images/5f20b21a9b4e2692d1f0c9882b70552984a8b86f870ff82ca03354e587f06ef0.jpg)
361
+ Figure 10: Plot(a) for Reward(y) vs Timesteps $\mathbf { \tau } ( \mathbf { x } )$ comparing the performance of backtracking model, PER and baseline Actor Critic. We can see that backtracking model consistently beats PER and the gap increases for increasing dimension. Heatmaps(b,c) indicating the visitation count on various positions of the grid on trained policies for the 13-Dimensional environment. We can see that the Backtracking visits a lot more states that PER does.
362
+
363
+ # U-MAZE NAVIGATION
364
+
365
+ An agent has to navigate within $\epsilon -$ distance of the goal position at the end of a U-shaped maze.
366
+
367
+ For the Point Mass U-Maze navigation, we use high return trajectories for training the parameters of backtracking model (i.e those trajectories which reach sub-goals defined by Goal GAN). We sample a trajectory of length 20 from our backtracking model and the recall traces are used to improve the policy via imitation learning.
368
+
369
+ For the Ant U-Maze navigation, we train identically, only with length-50 traces.
370
+
371
+ ![](images/b78722a6896dfa20ea01b2ca545cbafb94a59d0b9bc9dc0414d25015b12e58cb.jpg)
372
+ Figure 11: Visualization of Goal GAN baseline (top row) versus backtracking model (bottom row) for different parts of the state space for the N-Dimensional Point Mass task. Red indicates complete success; blue indicates failure. Using the backtracking model achieves greater coverage rates for the same or fewer steps of training.
373
+
374
+ ![](images/dec55ba58a5188d0926ed0268a0b778e4ed85cceb16cd4298443cfa9b51674e8.jpg)
375
+ Figure 12: Visualization of Goal GAN baseline (top row) versus backtracking model (bottom row) policy performance for different parts of the state space for Ant Maze task. Red indicates complete success; blue indicates failure. Using the backtracking model achieves equal coverage rates in fewer steps of training.
376
+
377
+ ![](images/db42253b4d38cc46437d958badf97da719ba6533e8fc315ec625bf1c70cf500f.jpg)
378
+ Figure 13: Learning curves comparing the training efficiency of our method and the baseline for both the point mass as well as ant maze task. The y-axis indicates the average return over all goal positions in the maze, and the $\mathbf { X }$ -axis corresponds to the number of iterations which are used for sampling goals.
379
+
380
+ # E HYPERPARAMETERS
381
+
382
+ # E.1 ON-POLICY. TRPO
383
+
384
+ For training the backtracking model, we used an explicit buffer to store states(state, action, nextstate, reward) which yields high rewards. Since, we don’t have an explicit value function, we use high reward states as a proxy for high value states. We tried training the backtracking model directly from the trajectories, but it was unstable, due to changing distributions of trajectories.
385
+
386
+ Table 1: On-Policy TRPO Hyper-params:- Length of the trajectory sampled from our backtracking model
387
+
388
+ <table><tr><td>Agent</td><td>Length of trajectory Sampled from Backtracking model</td></tr><tr><td>Half-Cheetah</td><td>20</td></tr><tr><td>Walker</td><td>20</td></tr><tr><td>Hopper</td><td>10</td></tr><tr><td>Ant</td><td>50</td></tr></table>
389
+
390
+ # E.2 OFF-POLICY. SAC
391
+
392
+ For training the backtracking model, we used the high value states (under the current value function) from the buffer $\boldsymbol { B }$ . We sample a batch of 20K high value tuples from the experience replay buffer. The length of trajectory sampled from backtracking model for each agent is shown in Table 1.
393
+
394
+ The rest of the model hyperparameters are identical to those used in Soft Actor Critic Held et al. (2017).
395
+ Table 2: Off Policy SAC Hyperparams:- Length of the trajectory sampled from our backtracking model
396
+
397
+ <table><tr><td>Agent</td><td>Length of trajectory Sampled from Backtracking model</td></tr><tr><td>Half-Cheetah</td><td>20</td></tr><tr><td>Walker</td><td>20</td></tr><tr><td>Hopper</td><td>20</td></tr><tr><td>Ant</td><td>50</td></tr><tr><td>Humanoid</td><td>50</td></tr></table>
398
+
399
+ # E.3 PRIORITIZED EXPERIENCE REPLAY
400
+
401
+ The Experience Replay Buffer capacity was fixed at $1 0 0 \mathrm { k }$ . No entropy regularization was used.
402
+
403
+ Table 3: Hyperparameters for the PER Implementation.
404
+
405
+ <table><tr><td>Environment Size</td><td>Batch-size</td><td>Num. of Actor Critic steps per PER step</td><td>PER-α</td><td>PER β</td></tr><tr><td>11x11</td><td>200</td><td>3</td><td>0.8</td><td>0.1</td></tr><tr><td>13x13</td><td>2000</td><td>3</td><td>0.8</td><td>0.1</td></tr><tr><td>15x15</td><td>1000</td><td>3</td><td>0.95</td><td>0.1</td></tr></table>
406
+
407
+ # F RANDOM SEARCH WITH BACKWARD MODEL
408
+
409
+ We test the performance of backtracking model when it is not learned i.e the backtracking model is a random model, in the Four Room Environment. In this experiment, we compare the scenario when the backward action predictor $Q ( a _ { t } | s _ { t + 1 } )$ is learned and when it is random. Since in the Four Room Environment, we have access to the true backward state predictor $Q ( s _ { t } | a _ { t } , s _ { t + 1 } )$ we use that for this experiment. The comparison is shown in the figure 14. It is clear from the figure that it is helpful to learn the backward action predictor $Q \big ( a _ { t } | s _ { t + 1 } \big )$ .
410
+
411
+ ![](images/ea74d0cb96855ca9c9b6544c67337796f29b048aa68dd758dab9878dbe77ce83.jpg)
412
+ Figure 14: Training curves from the Four Room Environment for the Actor-Critic baseline (blue), the backtracking model augmented Actor-Critic (red), and the random search (blue).
413
+
414
+ Figure 15 shows the same comparison for Ant-v1, and Walker2d-v1 where the baseline is Soft Actor Critic (SAC). For our baseline i.e the scenario when backtracking model is not learned, we experimented with all the lengths 1,2,3,4,5, 10 and we choose the best one as our baseline. As you can see in the Figure 15, backtracking model performs best as compared to SAC baseline as well as to the scenario when backtracking model is not trained. Hence proving that backtracking model is not just doing random search.
415
+
416
+ ![](images/b42b9d4ddaf88f8a8435604795ff5967eabae29950911b090243a97fe8efd84b.jpg)
417
+ Figure 15: Training curves for the Walker2d and Ant agent. Comparing when the backtracking model is learned v/s when it’s not learned.
418
+
419
+ # G COMPARISON TO MODEL BASED RL
420
+
421
+ Dyna algorithm uses a forward model to generate simulated experience that could be included in a model-free algorithm. This method can be used to work with deep neural network policies, but performed best with models which are not neural networks (Gu et al., 2016a). Our intuition says that it might be better to generate simulated experience from backtracking model (starting from a high value state) as compared to forward model, just because we know that traces from backtracking model are good, as they lead to high value state, which is not really the case for the simulated experience from a forward model. In Fig 16, we evaluate the Forward model with On-Policy TRPO on Ant and Humanoid Mujoco tasks. We were not able to get any better results on with forward model as compared to the Baseline TRPO, which is consistent with the findings from (Gu et al., 2016a).
422
+
423
+ ![](images/057d6cc25fd96ff975e278b44720002a6806ad6662bb9a5cf89bbf2e64ee1e12.jpg)
424
+ Figure 16: Forward Model compared with Baseline TRPO. We can clearly see that on Ant and Humanoid Mujoco tasks using a forward Model-based approach doesn’t help.
425
+
426
+ Building the backward model is necessarily neither harder nor easier. Realistically, building any kind of model and having it be accurate for more than, say, 10 time steps is pretty hard. But if we only have 10 time steps of accurate transitions, it is probably better to take them backward model from different states as compared to from forward model from the same initial state. (as corroborated by our experiments).
427
+
428
+ Something which remains as a part of future investigation is to train the forward model and backtracking model jointly. As backtracking model is tied to high value state, the forward model could extract the goal value from the high value state. When trained jointly, this should help the forward model learn some reduced representation of the state that is necessary to evaluate the reward. Ultimately, when planning, we want the model to predict the goal accurately, which helps to optimize for this ”goal-oriented” behaviour directly. This also avoids the need to model irrelevant aspects of the environment.
429
+
430
+ # H LEARNING THE TRUE ENVIRONMENT VS LEARNING FROM RECALL TRACES
431
+
432
+ Here, we show the results of various ablations in the four-room environment which highlight the effect various hyperparameters have on performance.
433
+
434
+ In Fig 17 we train on the recall traces after a fixed number of iterations of learning in the true environment. For all of the environments, as we increase the ratio of updates in the true environment to updates using recall traces from backward model, the performance decreases significantly. This again highlights the advantages of learning from recall traces.
435
+
436
+ In Fig. 18, we see the effects of training from the recall traces multiple times for every iteration of training in the true environment. We can see that as we increase the number of iteration of learning from recall traces, we correspondingly need to choose smaller trace length. For each update in the real environment, making more number of updates helps if the trace length is smaller, and if the trace length is larger, it has a detrimental effect on the learning process as is seen in 18. Also as observed in the cases of $1 2 \mathrm { x } 1 2$ and 14x14 environment, it may happen that for an increased ratio of learning from recall traces and high trace length, the model achieves the maximum reward initially but after sometime the average reward plummets.
437
+
438
+ ![](images/1516aac4eb9b061f278485bc1bafd0f9a7a37c4fda916c3b354950ec349bfe32.jpg)
439
+ Figure 17: Legend indicates the ratio of updates in the true environment to updates using recall traces. Here we learn more in the true environment than using traces. We can see that not learning regularly from recall traces gives decreased performance.
440
+
441
+ ![](images/a49e244caa64990da77e888e6cd6b2fc5f5e7dcfe914b3c148d3fe9c74da71ba.jpg)
442
+ Figure 18: Legend indicates the ratio of updates in the true environment to updates using recall traces with the trajectory length of traces in parenthesis. Here we learn more using recall traces than actual environment. This tells that more updates using recall traces helps if we have a correspondingly lower trajectory length
443
+
444
+ # OFF POLICY CASE FOR MUJOCO
445
+
446
+ We investigate the effect of doing more updates from the generated recall traces on some Mujoco tasks using Off-Policy SAC. As can be seen from 19, we find that using more traces helps and that for an increased number of updates we need to correspondingly shorten the trajectory length of the sampled traces.
447
+
448
+ ![](images/11a11f30b732120634bc0a832b845bd06da09fd7d44a5b1864ad8e5bb983ee0d.jpg)
449
+ Figure 19: Legend indicates the number of updates from recall traces(per 5 updates of SAC) with the trajectory length in parentheses. In both the environments doing 10 or 20 updates is better than 5 updates. Also for 20 updates we need to choose a smaller trajectory of length 10 as compared to length 20 for 10(and 5) updates.
450
+
451
+ These experiments show that there is a balance between how much we should train in the actual environment and how much we should learn from the traces generated from the backward model. In the smaller four room-environment, 1:1 balance performed the best. In Mujoco tasks and larger four room environments, doing more updates from the backward model helps, but in the smaller four room maze, doing more updates is detrimental. So depending upon the complexity of the task, we need to decide this ratio.
parse/train/HygsfnR9Ym/HygsfnR9Ym_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/KmykpuSrjcq/KmykpuSrjcq.md ADDED
@@ -0,0 +1,390 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PROTOTYPICAL CONTRASTIVE LEARNING OF UNSUPERVISED REPRESENTATIONS
2
+
3
+ Junnan Li, Pan Zhou, Caiming Xiong, Steven C.H. Hoi
4
+
5
+ Salesforce Research {junnan.li,pzhou,cxiong,shoi}@salesforce.com
6
+
7
+ # ABSTRACT
8
+
9
+ This paper presents Prototypical Contrastive Learning (PCL), an unsupervised representation learning method that bridges contrastive learning with clustering. PCL not only learns low-level features for the task of instance discrimination, but more importantly, it encodes semantic structures discovered by clustering into the learned embedding space. Specifically, we introduce prototypes as latent variables to help find the maximum-likelihood estimation of the network parameters in an Expectation-Maximization framework. We iteratively perform E-step as finding the distribution of prototypes via clustering and M-step as optimizing the network via contrastive learning. We propose ProtoNCE loss, a generalized version of the InfoNCE loss for contrastive learning, which encourages representations to be closer to their assigned prototypes. PCL outperforms state-of-the-art instance-wise contrastive learning methods on multiple benchmarks with substantial improvement in low-resource transfer learning. Code and pretrained models are available at https://github.com/salesforce/PCL.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Unsupervised visual representation learning aims to learn image representations from pixels themselves without relying on semantic annotations, and recent advances are largely driven by instance discrimination tasks (Wu et al., 2018; Ye et al., 2019; He et al., 2020; Misra & van der Maaten, 2020; Hjelm et al., 2019; Oord et al., 2018; Tian et al., 2019). These methods usually consist of two key components: image transformation and contrastive loss. Image transformation aims to generate multiple embeddings that represent the same image, by data augmentation (Ye et al., 2019; Bachman et al., 2019; Chen et al., 2020a), patch perturbation (Misra & van der Maaten, 2020), or using momentum features (He et al., 2020). The contrastive loss, in the form of a noise contrastive estimator (Gutmann & Hyvärinen, 2010), aims to bring closer samples from the same instance and separate samples from different instances. Essentially, instance-wise contrastive learning leads to an embedding space where all instances are well-separated, and each instance is locally smooth (i.e. input with perturbations have similar representations).
14
+
15
+ Despite their improved performance, instance discrimination methods share a common weakness: the representation is not encouraged to encode the semantic structure of data. This problem arises because instance-wise contrastive learning treats two samples as a negative pair as long as they are from different instances, regardless of their semantic similarity. This is magnified by the fact that thousands of negative samples are generated to form the contrastive loss, leading to many negative pairs that share similar semantics but are undesirably pushed apart in the embedding space.
16
+
17
+ In this paper, we propose prototypical contrastive learning (PCL), a new framework for unsupervised representation learning that implicitly encodes the semantic structure of data into the embedding space. Figure 1 shows an illustration of PCL. A prototype is defined as “a representative embedding for a group of semantically similar instances”. We assign several prototypes of different granularity to each instance, and construct a contrastive loss which enforces the embedding of a sample to be more similar to its corresponding prototypes compared to other prototypes. In practice, we can find prototypes by performing clustering on the embeddings.
18
+
19
+ We formulate prototypical contrastive learning as an Expectation-Maximization (EM) algorithm, where the goal is to find the parameters of a Deep Neural Network (DNN) that best describes the data distribution, by iteratively approximating and maximizing the log-likelihood function. Specifically, we introduce prototypes as additional latent variables, and estimate their probability in the E-step by performing $k$ -means clustering. In the M-step, we update the network parameters by minimizing our proposed contrastive loss, namely ProtoNCE. We show that minimizing ProtoNCE is equivalent to maximizing the estimated log-likelihood, under the assumption that the data distribution around each prototype is isotropic Gaussian. Under the EM framework, the widely used instance discrimination task can be explained as a special case of prototypical contrastive learning, where the prototype for each instance is its augmented feature, and the Gaussian distribution around each prototype has the same fixed variance. The contributions of this paper can be summarized as follows:
20
+
21
+ ![](images/0612404d791db647e84c0565fc5fc55d0773e5012448b77f5e6b956269c5d548.jpg)
22
+ Figure 1: Illustration of Prototypical Contrastive Learning. Each instance is assigned to multiple prototypes with different granularity. PCL learns an embedding space which encodes the semantic structure of data.
23
+
24
+ • We propose prototypical contrastive learning, a novel framework for unsupervised representation learning that bridges contrastive learning and clustering. The learned representation is encouraged to capture the hierarchical semantic structure of the dataset. • We give a theoretical framework that formulates PCL as an Expectation-Maximization (EM) based algorithm. The iterative steps of clustering and representation learning can be interpreted as approximating and maximizing the log-likelihood function. The previous methods based on instance discrimination form a special case in the proposed EM framework. • We propose ProtoNCE, a new contrastive loss which improves the widely used InfoNCE by dynamically estimating the concentration for the feature distribution around each prototype. ProtoNCE also includes an InfoNCE term in which the instance embeddings can be interpreted as instancebased prototypes. We provide explanations for PCL from an information theory perspective, by showing that the learned prototypes contain more information about the image classes. PCL outperforms instance-wise contrastive learning on multiple benchmarks with substantial improvements in low-resource transfer learning. PCL also leads to better clustering results.
25
+
26
+ # 2 RELATED WORK
27
+
28
+ Our work is closely related to two main branches of studies in unsupervised/self-supervised learning: instance-wise contrastive learning and deep unsupervised clustering.
29
+
30
+ Instance-wise contrastive learning (Wu et al., 2018; Ye et al., 2019; He et al., 2020; Misra & van der Maaten, 2020; Zhuang et al., 2019; Hjelm et al., 2019; Oord et al., 2018; Tian et al., 2019; Chen et al., 2020a) aims to learn an embedding space where samples (e.g. crops) from the same instance (e.g. an image) are pulled closer and samples from different instances are pushed apart. To construct the contrastive loss, positive instance features and negative instance features are generated for each sample. Different contrastive learning methods vary in their strategy to generate instance features. The memory bank approach (Wu et al., 2018) stores the features of all samples calculated in the previous step. The end-to-end approach (Ye et al., 2019; Tian et al., 2019; Chen et al., 2020a) generates instance features using all samples within the current mini-batch. The momentum encoder approach (He et al., 2020) encodes samples on-the-fly by a momentum-updated encoder, and maintains a queue of instance features.
31
+
32
+ Despite their improved performance, the existing methods based on instance-wise contrastive learning have the following two major limitations, which can be addressed by the proposed PCL framework.
33
+
34
+ • The task of instance discrimination could be solved by exploiting low-level image differences, thus the learned embeddings do not necessarily capture high-level semantics. This is supported by the fact that the accuracy of instance classification often rapidly rises to a high level $( > 9 0 \%$ within 10 epochs) and further training gives limited informative signals. A recent study also shows that better performance of instance discrimination could worsen the performance on downstream tasks (Tschannen et al., 2020).
35
+
36
+ • A sufficiently large number of negative instances need to be sampled, which inevitably yields negative pairs that share similar semantic meaning and should be closer in the embedding space. However, they are undesirably pushed apart by the contrastive loss. Such problem is defined as class collision in (Saunshi et al., 2019) and is shown to hurt representation learning. Essentially, instance discrimination learns an embedding space that only preserves the local smoothness around each instance but largely ignores the global semantic structure of the dataset.
37
+
38
+ Deep unsupervised clustering. Clustering based methods have been proposed for deep unsupervised learning. Xie et al. (2016); Yang et al. (2016); Liao et al. (2016); Yang et al. (2017); Chang et al. (2017); Ji et al. (2019); Gansbeke et al. (2020) jointly learn image embeddings and cluster assignments, but they have not shown the ability to learn transferable representations from a large scale of images. Closer to our work, DeepCluster (Caron et al., 2018) performs iterative clustering and unsupervised representation learning, which is further improved by Zhan et al. (2020) with online clustering. However, our method is conceptually different from DeepCluster. In DeepCluster, the cluster assignments are considered as pseudo-labels and a classification objective is optimized, which results in two weaknesses: (1) the high-dimensional features from the penultimate layer of a ConvNet are not optimal for clustering and need to be PCA-reduced; (2) an additional linear classification layer is frequently re-initialized which interferes with representation learning. In our method, representation learning happens directly in a low-dimensional embedding space, by optimizing a contrastive loss on the prototypes (cluster centroids). Concurrent to our work, SwAV (Caron et al., 2020) also brings together a clustering objective with contrastive learning.
39
+
40
+ Self-supervised pretext tasks. Another line of self-supervised learning methods focus on training DNNs to solve pretext tasks, which usually involve hiding certain information about the input and training the network to recover those missing information. Examples include image inpainting (Pathak et al., 2016), colorization (Zhang et al., 2016; 2017), prediction of patch orderings (Doersch et al., 2015; Noroozi & Favaro, 2016) and image transformations (Dosovitskiy et al., 2014; Gidaris et al., 2018; Caron et al., 2019; Zhang et al., 2019). Compared to heuristic pretext task designs, the proposed PCL is a more general learning framework with better theoretical justification.
41
+
42
+ # 3 PROTOTYPICAL CONTRASTIVE LEARNING
43
+
44
+ # 3.1 PRELIMINARIES
45
+
46
+ Given a training set $X = \{ x _ { 1 } , x _ { 2 } , . . . , x _ { n } \}$ of $n$ images, unsupervised visual representation learning aims to learn an embedding function $f _ { \theta }$ (realized via a DNN) that maps $X$ to $V = \{ v _ { 1 } , v _ { 2 } , . . . , v _ { n } \}$ with $v _ { i } = f _ { \theta } ( x _ { i } )$ , such that $v _ { i }$ best describes $x _ { i }$ . Instance-wise contrastive learning achieves this objective by optimizing a contrastive loss function, such as InfoNCE (Oord et al., 2018; He et al., 2020), defined as:
47
+
48
+ $$
49
+ \mathcal { L } _ { \mathrm { I n f o N C E } } = \sum _ { i = 1 } ^ { n } - \log \frac { \exp ( v _ { i } \cdot v _ { i } ^ { \prime } / \tau ) } { \sum _ { j = 0 } ^ { r } \exp ( v _ { i } \cdot v _ { j } ^ { \prime } / \tau ) } ,
50
+ $$
51
+
52
+ where $v _ { i }$ and $\boldsymbol { v } _ { i } ^ { \prime }$ are positive embeddings for instance $i$ , and $\boldsymbol { v } _ { j } ^ { \prime }$ includes one positive embedding and $r$ negative embeddings for other instances, and $\tau$ is a temperature hyper-parameter. In MoCo (He et al., 2020), these embeddings are obtained by feeding $x _ { i }$ to a momentum encoder parametrized by $\theta ^ { \prime }$ , $, v _ { i } ^ { \prime } = f _ { \theta ^ { \prime } } ( x _ { i } )$ , where $\theta ^ { \prime }$ is a moving average of $\theta$ .
53
+
54
+ In prototypical contrastive learning, we use prototypes $c$ instead of $v ^ { \prime }$ , and replace the fixed temperature $\tau$ with a per-prototype concentration estimation $\phi$ . An overview of our training framework is shown in Figure 2, where clustering and representation learning are performed iteratively at each epoch. Next, we will delineate the theoretical framework of PCL based on EM. A pseudo-code of our algorithm is given in appendix B.
55
+
56
+ ![](images/4f1ab2fc7ccccdda98417ee196e1fadceac522f5ec844708adc2491697a3ab43.jpg)
57
+ Figure 2: Training framework of Prototypical Contrastive Learning.
58
+
59
+ # 3.2 PCL AS EXPECTATION-MAXIMIZATION
60
+
61
+ Our objective is to find the network parameters $\theta$ that maximizes the log-likelihood function of the observed $n$ samples:
62
+
63
+ $$
64
+ \theta ^ { * } = \arg \operatorname* { m a x } _ { \theta } \sum _ { i = 1 } ^ { n } \log p ( x _ { i } ; \theta )
65
+ $$
66
+
67
+ We assume that the observed data $\{ x _ { i } \} _ { i = 1 } ^ { n }$ are related to latent variable $C = \{ c _ { i } \} _ { i = 1 } ^ { k }$ which denotes the prototypes of the data. In this way, we can re-write the log-likelihood function as:
68
+
69
+ $$
70
+ \theta ^ { * } = \arg \operatorname* { m a x } _ { \theta } \sum _ { i = 1 } ^ { n } \log p ( x _ { i } ; \theta ) = \arg \operatorname* { m a x } _ { \theta } \sum _ { i = 1 } ^ { n } \log \sum _ { c _ { i } \in C } p ( x _ { i } , c _ { i } ; \theta )
71
+ $$
72
+
73
+ It is hard to optimize this function directly, so we use a surrogate function to lower-bound it:
74
+
75
+ $$
76
+ \sum _ { i = 1 } ^ { n } \log \sum _ { { c _ { i } } \in C } p ( x _ { i } , c _ { i } ; \theta ) = \sum _ { i = 1 } ^ { n } \log \sum _ { { c _ { i } } \in C } Q ( c _ { i } ) \frac { p ( x _ { i } , c _ { i } ; \theta ) } { Q ( c _ { i } ) } \geq \sum _ { i = 1 } ^ { n } \sum _ { { c _ { i } } \in C } Q ( c _ { i } ) \log \frac { p ( x _ { i } , c _ { i } ; \theta ) } { Q ( c _ { i } ) } ,
77
+ $$
78
+
79
+ where $Q ( c _ { i } )$ denotes some distribution over $c$ ’s $\begin{array} { r } { ( \sum _ { c _ { i } \in C } Q ( c _ { i } ) = 1 ) } \end{array}$ , and the last step of derivation uses Jensen’s inequality. To make the inequality hold with equality, we require $\frac { p ( x _ { i } , c _ { i } ; \theta ) } { Q ( c _ { i } ) }$ to be a constant. Therefore, we have:
80
+
81
+ $$
82
+ Q ( c _ { i } ) = \frac { p ( x _ { i } , c _ { i } ; \theta ) } { \sum _ { c _ { i } \in C } p ( x _ { i } , c _ { i } ; \theta ) } = \frac { p ( x _ { i } , c _ { i } ; \theta ) } { p ( x _ { i } ; \theta ) } = p ( c _ { i } ; x _ { i } , \theta )
83
+ $$
84
+
85
+ By ignoring the constant $- \textstyle \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } Q ( c _ { i } ) \log Q ( c _ { i } )$ in eqn.(4), we should maximize:
86
+
87
+ $$
88
+ \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } Q ( c _ { i } ) \log p ( x _ { i } , c _ { i } ; \theta )
89
+ $$
90
+
91
+ $\mathbf { E }$ -step. In this step, we aim to estimate $p ( c _ { i } ; x _ { i } , \theta )$ . To this end, we perform $k$ -means on the features $v _ { i } ^ { \prime } = \bar { f } _ { \theta ^ { \prime } } ( x _ { i } )$ given by the momentum encoder to obtain $k$ clusters. We define prototype $c _ { i }$ as the centroid for the $i$ -th cluster. Then, we compute $p ( c _ { i } ; x _ { i } , \theta ) = \mathbb { 1 } ( x _ { i } \in c _ { i } )$ , where $\mathbb { 1 } ( x _ { i } \in c _ { i } ) = 1$ if $x _ { i }$ belongs to the cluster represented by $c _ { i }$ ; otherwise $\mathbb { 1 } ( x _ { i } \in c _ { i } ) = 0$ . Similar to MoCo, we found features from the momentum encoder yield more consistent clusters.
92
+
93
+ M-step. Based on the E-step, we are ready to maximize the lower-bound in eqn.(6).
94
+
95
+ $$
96
+ \begin{array} { r } { \displaystyle \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } Q ( c _ { i } ) \log p ( x _ { i } , c _ { i } ; \theta ) = \displaystyle \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } p ( c _ { i } ; x _ { i } , \theta ) \log p ( x _ { i } , c _ { i } ; \theta ) } \\ { = \displaystyle \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } \mathbb { 1 } ( x _ { i } \in c _ { i } ) \log p ( x _ { i } , c _ { i } ; \theta ) } \end{array}
97
+ $$
98
+
99
+ Under the assumption of a uniform prior over cluster centroids, we have:
100
+
101
+ $$
102
+ p ( x _ { i } , c _ { i } ; \theta ) = p ( x _ { i } ; c _ { i } , \theta ) p ( c _ { i } ; \theta ) = \frac { 1 } { k } \cdot p ( x _ { i } ; c _ { i } , \theta ) ,
103
+ $$
104
+
105
+ where we set the prior probability $p ( c _ { i } ; \theta )$ for each $c _ { i }$ as $1 / k$ since we are not provided any samples. We assume that the distribution around each prototype is an isotropic Gaussian, which leads to:
106
+
107
+ $$
108
+ p ( x _ { i } ; c _ { i } , \theta ) = \exp { \left( \frac { - ( v _ { i } - c _ { s } ) ^ { 2 } } { 2 \sigma _ { s } ^ { 2 } } \right) } \bigg / \sum _ { j = 1 } ^ { k } \exp { \left( \frac { - ( v _ { i } - c _ { j } ) ^ { 2 } } { 2 \sigma _ { j } ^ { 2 } } \right) } ,
109
+ $$
110
+
111
+ where $v _ { i } = f _ { \theta } ( x _ { i } )$ and $x _ { i } \in c _ { s }$ . If we apply $\ell _ { 2 }$ -normalization to both $v$ and $c$ , then $( v - c ) ^ { 2 } = 2 - 2 v \cdot c .$ . Combining this with eqn.(3, 4, 6, 7, 8, 9), we can write maximum log-likelihood estimation as
112
+
113
+ $$
114
+ \theta ^ { * } = \underset { \theta } { \arg \operatorname* { m i n } } \sum _ { i = 1 } ^ { n } - \log \frac { \exp ( v _ { i } \cdot c _ { s } / \phi _ { s } ) } { \sum _ { j = 1 } ^ { k } \exp ( v _ { i } \cdot c _ { j } / \phi _ { j } ) } ,
115
+ $$
116
+
117
+ where $\phi \propto \sigma ^ { 2 }$ denotes the concentration level of the feature distribution around a prototype and will be introduced later. Note that eqn.(10) has a similar form as the InfoNCE loss in eqn.(1). Therefore, InfoNCE can be interpreted as a special case of the maximum log-likelihood estimation, where the prototype for a feature $v _ { i }$ is the augmented feature $\boldsymbol { v } _ { i } ^ { \prime }$ from the same instance (i.e. $c = v ^ { \prime }$ ), and the concentration of the feature distribution around each instance is fixed (i.e. $\phi = \tau$ ).
118
+
119
+ In practice, we take the same approach as NCE and sample $r$ negative prototypes to calculate the normalization term. We also cluster the samples $M$ times with different number of clusters $K = \{ k _ { m } \} _ { m = 1 } ^ { M }$ , which enjoys a more robust probability estimation of prototypes that encodestructure. Furthermore, we add the InfoNCE loss to retain the property of local smoothness and help bootstrap clustering. Our overall objective, namely ProtoNCE, is defined as
120
+
121
+ $$
122
+ \mathcal { L } _ { \mathrm { P r o t o N C E } } = \sum _ { i = 1 } ^ { n } - \left( \log \frac { \exp ( v _ { i } \cdot v _ { i } ^ { \prime } / \tau ) } { \sum _ { j = 0 } ^ { r } \exp ( v _ { i } \cdot v _ { j } ^ { \prime } / \tau ) } + \frac { 1 } { M } \sum _ { m = 1 } ^ { M } \log \frac { \exp ( v _ { i } \cdot c _ { s } ^ { m } / \phi _ { s } ^ { m } ) } { \sum _ { j = 0 } ^ { r } \exp ( v _ { i } \cdot c _ { j } ^ { m } / \phi _ { j } ^ { m } ) } \right) .
123
+ $$
124
+
125
+ # 3.3 CONCENTRATION ESTIMATION
126
+
127
+ The distribution of embeddings around each prototype has different level of concentration. We use $\phi$ to denote the concentration estimation, where a smaller $\phi$ indicates larger concentration. Here we calculate $\phi$ using the momentum features $\{ v _ { z } ^ { \prime } \} _ { z = 1 } ^ { Z }$ that are within the same cluster as a prototype $c$ The desired $\phi$ should be small (high concentration) if (1) the average distance between $v _ { z } ^ { \prime }$ and $c$ is small, and (2) the cluster contains more feature points (i.e. $Z$ is large). Therefore, we define $\phi$ as:
128
+
129
+ $$
130
+ \phi = \frac { \sum _ { z = 1 } ^ { Z } \| v _ { z } ^ { \prime } - c \| _ { 2 } } { Z \log ( Z + \alpha ) } ,
131
+ $$
132
+
133
+ where $\alpha$ is a smooth parameter to ensure that small clusters do not have an overly-large $\phi$ . We normalize $\phi$ for each set of prototypes $C ^ { m }$ such that they have a mean of $\tau$ .
134
+
135
+ In the ProtoNCE loss (eqn.(11)), $\phi _ { s } ^ { m }$ acts as a scaling factor on the similarity between an embedding $v _ { i }$ and its prototype $c _ { s } ^ { m }$ . With the proposed $\phi$ , the similarity in a loose cluster (larger $\phi$ ) are down-scaled, pulling embeddings closer to the prototype. On the contrary, embeddings in a tight cluster (smaller $\phi$ ) have an up-scaled similarity, thus less encouraged to approach the prototype. Therefore, learning with ProtoNCE yields more balanced clusters with similar concentration, as shown in Figure 3(a). It prevents a trivial solution where most embeddings collapse to a single cluster, a problem that could only be heuristically addressed by data-resampling in DeepCluster (Caron et al., 2018).
136
+
137
+ # 3.4 MUTUAL INFORMATION ANALYSIS
138
+
139
+ It has been shown that minimizing InfoNCE is maximizing a lower bound on the mutual information (MI) between representations $V$ and $V ^ { \prime }$ (Oord et al., 2018). Similarly, minimizing the proposed ProtoNCE can be considered as simultaneously maximizing the mutual information between $V$ and all the prototypes $\{ V ^ { \prime } , C ^ { 1 } , . . . , C ^ { M } \}$ . This leads to better representation learning, for two reasons.
140
+
141
+ First, the encoder would learn the shared information among prototypes, and ignore the individual noise that exists in each prototype. The shared information is more likely to capture higher-level semantic knowledge. Second, we show that compared to instance features, prototypes have a larger mutual information with the class labels. We estimate the mutual information between the instance features (or their assigned prototypes) and the ground-truth class labels for all images in ImageNet (Deng et al., 2009) training set, following the method in (Ross, 2014). We compare the obtained MI of our method (ProtoNCE) and that of MoCo (InfoNCE). As shown in Figure 3(b), compared to instance features, the prototypes have a larger MI with the class labels due to the effect of clustering. Furthermore, compared to InfoNCE, training on ProtoNCE can increase the MI of prototypes as training proceeds, indicating that better representations are learned to form more semantically-meaningful clusters.
142
+
143
+ ![](images/e44aaf5d7dd1acb2ac523a000209506c1f567d1121bdcb1883a0700f0057f543.jpg)
144
+ Figure 3: (a) Histogram of cluster size for PCL ( $\#$ clusters $k { = } 5 0 0 0 0 )$ ) with fixed or estimated concentration. Using a different $\phi$ for each prototype yields more balanced clusters with similar sizes, which leads to better representation learning. (b) Mutual info between instance features (or their assigned prototypes) and class labels of all images in ImageNet. Compared to InfoNCE, our ProtoNCE learns better prototypes with more semantics.
145
+
146
+ # 3.5 PROTOTYPES AS LINEAR CLASSIFIER
147
+
148
+ Another interpretation of PCL can provide more insights into the nature of the learned prototypes. The optimization in eqn.(10) is similar to optimizing the cluster-assignment probability $p ( s ; x _ { i } , \theta )$ using the cross-entropy loss, where the prototypes $c$ represent weights for a linear classifier. With $k$ -means clustering, the linear classifier has a fixed set of weights as the mean vectors for the representations in each cluster, $\begin{array} { r } { c = { \frac { 1 } { Z } } \sum _ { z = 1 } ^ { Z } v _ { z } ^ { \prime } } \end{array}$ . A similar idea has been used for few-shot learning (Snell et al., 2017), where a non-parametric prototypical classifier performs better than a parametric linear classifier.
149
+
150
+ # 4 EXPERIMENTS
151
+
152
+ We evaluate PCL on transfer learning tasks, based on the principle that good representations should transfer with limited supervision and fine-tuning. We follow the settings in MoCo, therefore direct comparisons with MoCo could demonstrate the improvement from the prototypical contrastive loss.
153
+
154
+ # 4.1 IMPLEMENTATION DETAILS
155
+
156
+ To enable a fair comparison, we follow the same setting as MoCo. We perform training on the ImageNet-1M dataset. A ResNet-50 (He et al., 2016) is adopted as the encoder, whose last fullyconnected layer outputs a 128-D and L2-normalized feature. We follow previous works (He et al., 2020; Wu et al., 2018) and perform data augmentation with random crop, random color jittering, random horizontal flip, and random grayscale conversion. We use SGD as our optimizer, with a weight decay of 0.0001, a momentum of 0.9, and a batch size of 256. We train for 200 epochs, where we warm-up the network in the first 20 epochs by only using the InfoNCE loss. The initial learning rate is 0.03, and is multiplied by 0.1 at 120 and 160 epochs. In terms of the hyper-parameters, we set $\tau = 0 . 1$ , $\alpha = 1 0$ , $r = 1 6 0 0 0$ , and number of clusters $K = \{ 2 5 0 0 0 , 5 0 0 0 { \bar { 0 } } , 1 0 { \bar { 0 } } 0 0 0 \}$ . We also experiment with PCL v2 using improvements introduced by Chen et al. (2020a;b), which includes a MLP projection layer, stronger data augmentation with additional Gaussian blur, and temperature $\tau = 0 . 2$ . We adopt faiss (Johnson et al., 2017) for efficient $k$ -means clustering. The clustering is performed per-epoch on center-cropped images. We find over-clustering to be beneficial. Recent advances in self-supervised learning have been propelled by huge compute which is inaccessible to many researchers. We instead target a more commonly accessible training resource for PCL with 4 NVIDIA-V100 GPUs and approximately 5 days of training.
157
+
158
+ Table 1: Low-shot image classification on both VOC07 and Places205 datasets using linear SVMs trained on fixed representations. All methods were pretrained on ImageNet-1M dataset for 200 epochs (except for Jigsaw trained on ImageNet-14M). We vary the number of labeled examples $k$ and report the mAP (for VOC) and accuracy (for Places) across 5 runs. We use the released pretrained model for MoCo, and re-implement SimCLR.
159
+
160
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">architecture</td><td colspan="5">vOC07</td><td colspan="5">Places205</td></tr><tr><td>k=1</td><td>k=2</td><td>k=4</td><td>k=8</td><td>k=16</td><td>k=1</td><td>k=2</td><td>k=4</td><td>k=8</td><td>k=16</td></tr><tr><td>Random Supervised</td><td>ResNet-50</td><td>8.0 54.3</td><td>8.2 67.8</td><td>8.2 73.9</td><td>8.2 79.6</td><td>8.5 82.3</td><td>0.7 14.9</td><td>0.7 21.0</td><td>0.7 26.9</td><td>0.7 32.1</td><td>0.7 36.0</td></tr><tr><td>Jigsaw MoCo PCL (ours)</td><td>ResNet-50</td><td>26.5 31.4 46.9</td><td>31.1 42.0 56.4</td><td>40.0 49.5 62.8</td><td>46.7 60.0 70.2</td><td>51.8 65.9 74.3</td><td>4.6 8.8 11.3</td><td>6.4 13.2 15.7</td><td>9.4 18.2 19.5</td><td>12.9 23.2 24.1</td><td>17.4 28.0 28.4</td></tr><tr><td>SimCLR MoCo v2 PCL v2 (ours)</td><td>ResNet-50-MLP</td><td>32.7 46.3 47.9 59.6</td><td>43.1 58.3</td><td>52.5 64.9</td><td>61.0 72.5</td><td>67.1 76.1</td><td>9.4 10.9</td><td>14.2 16.3</td><td>19.3 20.8</td><td>23.7 26.0</td><td>28.3 30.1 32.3</td></tr></table>
161
+
162
+ # 4.2 IMAGE CLASSIFICATION WITH LIMITED TRAINING DATA
163
+
164
+ Low-shot classification. We evaluate the learned representation on image classification tasks with few training samples per-category. We follow the setup in Goyal et al. (2019) and train linear SVMs using fixed representations on two datasets: Places205 (Zhou et al., 2014) for scene recognition and PASCAL VOC2007 (Everingham et al., 2010) for object classification. We vary the number $k$ of samples per-class and report the average result across 5 independent runs (standard deviation is reported in appendix C). Table 1 shows the results, in which our method substantially outperforms both MoCo and SimCLR.
165
+
166
+ Semi-supervised image classification. We perform semi-supervised learning experiments to evaluate whether the learned representation can provide a good basis for fine-tuning. Following the setup from Wu et al. (2018); Misra & van der Maaten (2020), we randomly select a subset $1 \%$ or $10 \%$ ) of ImageNet training data (with labels), and fine-tune the self-supervised trained model on these subsets. Table 2 reports the top-5 accuracy on ImageNet validation set. Our method sets a new state-of-the-art under 200 training epochs, outperforming both self-supervised learning methods and semi-supervised learning methods. The standard deviation across 5 runs is low $< 0 . 6$ for $1 \%$ labels).
167
+
168
+ Table 2: Semi-supervised learning on ImageNet. We report top-5 accuracy on the ImageNet validation set of self-supervised models that are finetuned on $1 \%$ or $10 \%$ of labeled data. ‡: SimCLR, BYOL, and SwAV use a large batch size of 4096. ‡: SwAV uses multi-crop augmentation.
169
+
170
+ <table><tr><td>Method</td><td>architecture</td><td>#pretrain epochs</td><td>Top-5 Accuracy 1%</td><td>10%</td></tr><tr><td>Random (Wu et al., 2018)</td><td>ResNet-50</td><td></td><td>22.0</td><td>59.0</td></tr><tr><td>Supervised baseline (Zhai et al., 2019)</td><td>ResNet-50</td><td></td><td>48.4</td><td>80.4</td></tr><tr><td>Semi-supervised learningmethods:</td><td></td><td></td><td></td><td></td></tr><tr><td>Pseudolabels (Zhai etal.,2019)</td><td>ResNet-50v2</td><td></td><td>51.6</td><td>82.4</td></tr><tr><td>VAT + Entropy Min. (Miyato et al., 2019)</td><td>ResNet-50v2</td><td></td><td>47.0</td><td>83.4</td></tr><tr><td>S4L Rotation (Zhai et al.,2019)</td><td>ResNet-50v2</td><td></td><td>53.4</td><td>83.8</td></tr><tr><td>Self-supervised learningmethods:</td><td></td><td></td><td></td><td></td></tr><tr><td>Instance Discrimination (Wu et al.,2018)</td><td>ResNet-50</td><td>200</td><td>39.2</td><td>77.4</td></tr><tr><td>Jigsaw (Noroozi &amp; Favaro,2016)</td><td>ResNet-50</td><td>90</td><td>45.3</td><td>79.3</td></tr><tr><td>SimCLR (Chen et al.,2020a)</td><td>ResNet-50-MLP</td><td>200</td><td>56.5</td><td>82.7</td></tr><tr><td>MoCo (He et al.,2020)</td><td>ResNet-50</td><td>200</td><td>56.9</td><td>83.0</td></tr><tr><td>MoCo v2 (Chen et al., 2020b)</td><td>ResNet-50-MLP</td><td>200</td><td>66.3</td><td>84.4</td></tr><tr><td>PCL v2 (ours)</td><td>ResNet-50-MLP</td><td>200</td><td>73.9</td><td>85.0</td></tr><tr><td>PCL (ours)</td><td>ResNet-50</td><td>200</td><td>75.3</td><td>85.6</td></tr><tr><td>PIRL (Misra &amp; van der Maaten, 2020)</td><td>ResNet-50</td><td>800</td><td>57.2</td><td>83.8</td></tr><tr><td>SimCLR Chen et al. (2020a)</td><td>ResNet-50-MLP</td><td>1000</td><td>75.5†</td><td>87.8†</td></tr><tr><td>BYOL (Grill et al., 2020)</td><td>ResNet-50-MLPbig</td><td>1000</td><td>78.4t</td><td>89.0†</td></tr><tr><td>SwAV (Caron et al., 2020)</td><td>ResNet-50-MLP</td><td>800</td><td>78.5</td><td>89.9t</td></tr></table>
171
+
172
+ # 4.3 IMAGE CLASSIFICATION BENCHMARKS
173
+
174
+ Linear classifiers. Next, we train linear classifiers on fixed image representations using the entire labeled training data. We evaluate the performance of such linear classifiers on three datasets: ImageNet, VOC07, and Places205. Table 3 reports the results. PCL outperforms MoCo under direct comparison, which demonstrate the advantage of the proposed prototypical contrastive loss.
175
+
176
+ Table 3: Image classification with linear models. We report top-1 accuracy. Numbers with ∗ are from released pretrained model; all other numbers are adopted from corresponding papers. †: LocalAgg uses 10-crop evaluation. ADMIM uses FastAutoAugment (Lim et al., 2019) that is supervised by ImageNet labels. SwAV uses multi-crop augmentation. SimCLR, BYOL, and SwAV use a large batch size of 4096.
177
+
178
+ <table><tr><td>Method</td><td>architecture (#params)</td><td>#pretrain epochs</td><td>ImageNet</td><td>Dataset VOC07</td><td>Places205</td></tr><tr><td>Jigsaw (Noroozi &amp; Favaro,2016) Rotation (Gidaris et al.,2018) DeepCluster (Caron et al., 2018) BigBiGAN (Donahue &amp; Simonyan, 2019) InstDisc (Wu et al., 2018) MoCo (He et al., 2020)</td><td>R50 (24M) R50 (24M) VGG(15M) R50 (24M) R50 (24M) R50 (24M)</td><td>90 1 100 200</td><td>45.7 48.9 48.4 56.6 54.0</td><td>64.5 63.9 71.9 1 一</td><td>41.2 41.4 37.9 1 45.5</td></tr><tr><td>SimCLR(Chen et al.,2020a) MoCo v2(Chen et al.,2020b) PCL v2 (ours)</td><td>R50 (24M) R50-MLP (28M) R50-MLP (28M) R50-MLP (28M)</td><td>200 200 200 200</td><td>61.5 61.9 67.5 67.6</td><td>82.3 一 84.0* 85.4</td><td>49.2 50.1* 50.3</td></tr><tr><td>SelfLabel (Asano et al.,2020) CPC (Oord et al., 2018)</td><td>R50 (24M) R50 (24M)</td><td>200 400</td><td>60.2† 61.5</td><td>1 1</td><td>50.1†</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>R50 (24M)</td><td>800</td><td></td><td></td><td>49.8</td></tr><tr><td></td><td></td><td>280</td><td>64.0</td><td></td><td></td></tr><tr><td></td><td>R101 (28M)</td><td></td><td>48.7</td><td>1</td><td>1</td></tr><tr><td>CMC (Tian et al.,2019)</td><td>R50L+ab (47M)</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>1</td><td>一</td></tr><tr><td>PIRL (Misra &amp; van der Maaten,2020)</td><td></td><td></td><td>63.6</td><td>81.1</td><td></td></tr><tr><td>AMDIM (Bachman et al.,2019)</td><td>Custom (626M)</td><td>150</td><td>68.1†</td><td>一</td><td>55.0+</td></tr><tr><td>SimCLR (Chen et al.,2020a)</td><td>R50-MLP (28M)</td><td>1000</td><td>69.3†</td><td>80.5†</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>1</td></tr><tr><td>BYOL (Grill et al., 2020)</td><td>R50-MLPbig(35M)</td><td>1000</td><td>74.3†</td><td>-</td><td></td></tr><tr><td>SwAV (Caron et al.,2020)</td><td>R50-MLP (28M)</td><td>800</td><td>75.3t</td><td>88.9t</td><td>56.7+</td></tr></table>
179
+
180
+ KNN classifiers. We perform $\mathbf { k }$ -nearest neighbor (kNN) classification on ImageNet. For a query image with feature $v$ , we take its top $k$ nearest neighbors from the momentum features, and perform weighted-combination of their labels where the weights are calculated by $\exp ( v \cdot v _ { i } ^ { \prime } / \tau )$ . Table 4 reports the accuracy. Our method substantially outperforms previous methods.
181
+
182
+ Table 4: Image classification with kNN classifiers using ResNet-50 features on ImageNet.
183
+
184
+ <table><tr><td>Method</td><td>Inst.Disc.(Wu et al.,2018)|MoCo (He et al.,2020)|LA (Zhuang et al.,2019)|PCL (ours)</td><td></td><td></td><td></td></tr><tr><td>Accuracy</td><td>46.5</td><td>47.1</td><td>49.4</td><td>54.5</td></tr></table>
185
+
186
+ # 4.4 CLUSTERING EVALUATION
187
+
188
+ In Table 5, we evaluate the $k$ -means clustering performance on ImageNet using representations learned by different methods. PCL leads to substantially higher adjusted mutual information (AMI) score. Details are given in appendix F.
189
+
190
+ <table><tr><td></td><td>Method|DeepCluster (Caron et al., 2018)|MoCo (He et al.,2020)|PCL (ours)</td><td></td><td></td></tr><tr><td>AMI</td><td>0.281</td><td>0.285</td><td>0.410</td></tr></table>
191
+
192
+ Table 5: AMI score for $\mathbf { k }$ -means clustering $k = 2 5 0 0 0 )$ on ImageNet representation.
193
+
194
+ # 4.5 OBJECT DETECTION
195
+
196
+ We assess the representation on object detection. Following Goyal et al. (2019), we train a Faster R-CNN (Ren et al., 2015) on VOC07 or $\mathrm { v o c } 0 7 { + } 1 2$ , and evaluate on the test set of VOC07. We keep the pretrained backbone frozen to better evaluate the learned representation, and use the same schedule for all methods. Table 6 reports the average mAP across three runs. Our method substantially closes the gap between self-supervised methods and supervised training. In appendix D, we show the results for fine-tuning the pretrained model for object detection and instance segmentation on COCO (Lin et al., 2014), where PCL outperforms both MoCo and supervised training.
197
+
198
+ <table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Pretrain Dataset|Architecture</td><td rowspan=1 colspan=1>Pretrain Dataset|Architecture</td><td rowspan=1 colspan=2>Training dataVOC07 VOC07+12</td></tr><tr><td rowspan=1 colspan=1>Supervised</td><td rowspan=1 colspan=1>ImageNet-1M</td><td rowspan=1 colspan=1>Resnet-50-FPN</td><td rowspan=1 colspan=1>72.8</td><td rowspan=1 colspan=1>79.3</td></tr><tr><td rowspan=1 colspan=1>MoCo (He et al.,2020)PCL (ours)</td><td rowspan=1 colspan=1>ImageNet-1MImageNet-1M</td><td rowspan=1 colspan=1>Resnet-50-FPNResnet-50-FPN</td><td rowspan=1 colspan=1>66.471.7</td><td rowspan=1 colspan=1>73.578.5</td></tr></table>
199
+
200
+ Table 6: Object detection for frozen conv body on VOC using Faster R-CNN.
201
+
202
+ # 5 VISUALIZATION OF LEARNED REPRESENTATION
203
+
204
+ In Figure 4, we visualize the unsupervised learned representation of ImageNet training images using t-SNE (Maaten & Hinton, 2008). Compared to the representation learned by MoCo, the representation learned by the proposed PCL forms more separated clusters, which also suggests representation of lower entropy.
205
+
206
+ ![](images/79db6061c20db4241e80f5466ea60ca4ddbd74e67a6138faa58313f4f6748406.jpg)
207
+ Figure 4: T-SNE visualization of the unsupervised learned representation for ImageNet training images from the first 40 classes. Left: MoCo; Right: PCL (ours). Colors represent classes.
208
+
209
+ # 6 CONCLUSION
210
+
211
+ This paper proposes Prototypical Contrastive Learning, a generic unsupervised representation learning framework that finds network parameters to maximize the log-likelihood of the observed data. We introduce prototypes as latent variables, and perform iterative clustering and representation learning in an EM-based framework. PCL learns an embedding space which encodes the semantic structure of data, by training on the proposed ProtoNCE loss. Our extensive experiments on multiple benchmarks demonstrate the advantage of PCL for unsupervised representation learning.
212
+
213
+ # REFERENCES
214
+
215
+ Yuki Markus Asano, Christian Rupprecht, and Andrea Vedaldi. Self-labelling via simultaneous clustering and representation learning. In ICLR, 2020.
216
+
217
+ Philip Bachman, R. Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. arXiv preprint arXiv:1906.00910, 2019.
218
+
219
+ Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In ECCV, pp. 139–156, 2018.
220
+
221
+ Mathilde Caron, Piotr Bojanowski, Julien Mairal, and Armand Joulin. Unsupervised pre-training of image features on non-curated data. In ICCV, pp. 2959–2968, 2019.
222
+
223
+ Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. In NeurIPS, 2020.
224
+
225
+ Jianlong Chang, Lingfeng Wang, Gaofeng Meng, Shiming Xiang, and Chunhong Pan. Deep adaptive image clustering. In ICCV, pp. 5880–5888, 2017.
226
+
227
+ Kai Chen, Jiaqi Wang, Jiangmiao Pang, Yuhang Cao, Yu Xiong, Xiaoxiao Li, Shuyang Sun, Wansen Feng, Ziwei Liu, Jiarui Xu, Zheng Zhang, Dazhi Cheng, Chenchen Zhu, Tianheng Cheng, Qijie Zhao, Buyu Li, Xin Lu, Rui Zhu, Yue Wu, Jifeng Dai, Jingdong Wang, Jianping Shi, Wanli Ouyang, Chen Change Loy, and Dahua Lin. MMDetection: Open mmlab detection toolbox and benchmark. arXiv preprint arXiv:1906.07155, 2019.
228
+
229
+ Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020a.
230
+
231
+ Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020b.
232
+
233
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248–255, 2009.
234
+
235
+ Carl Doersch, Abhinav Gupta, and Alexei A. Efros. Unsupervised visual representation learning by context prediction. In ICCV, pp. 1422–1430, 2015.
236
+
237
+ Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. In NeurIPS, pp. 10541–10551, 2019.
238
+
239
+ Alexey Dosovitskiy, Jost Tobias Springenberg, Martin A. Riedmiller, and Thomas Brox. Discriminative unsupervised feature learning with convolutional neural networks. In NIPS, pp. 766–774, 2014.
240
+
241
+ Mark Everingham, Luc Van Gool, Christopher K. I. Williams, John M. Winn, and Andrew Zisserman. The pascal visual object classes (VOC) challenge. International Journal of Computer Vision, 88 (2):303–338, 2010.
242
+
243
+ Rong-En Fan, Kai-Wei Chang, Cho-Jui Hsieh, Xiang-Rui Wang, and Chih-Jen Lin. LIBLINEAR: A library for large linear classification. JMLR, 9:1871–1874, 2008.
244
+
245
+ Wouter Van Gansbeke, Simon Vandenhende, Stamatios Georgoulis, Marc Proesmans, and Luc Van Gool. SCAN: learning to classify images without labels. In ECCV, pp. 268–285, 2020.
246
+
247
+ Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In ICLR, 2018.
248
+
249
+ Ross Girshick, Ilija Radosavovic, Georgia Gkioxari, Piotr Dollár, and Kaiming He. Detectron. https://github.com/facebookresearch/detectron, 2018.
250
+
251
+ Priya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra. Scaling and benchmarking selfsupervised visual representation learning. In ICCV, pp. 6391–6400, 2019.
252
+
253
+ Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko. Bootstrap your own latent: A new approach to self-supervised learning. In NeurIPS, 2020.
254
+
255
+ Michael Gutmann and Aapo Hyvärinen. Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In AISTATS, pp. 297–304, 2010.
256
+
257
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016.
258
+
259
+ Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross B. Girshick. Mask R-CNN. In ICCV, pp. 2980–2988, 2017.
260
+
261
+ Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020.
262
+
263
+ R. Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Philip Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In ICLR, 2019.
264
+
265
+ Xu Ji, João F Henriques, and Andrea Vedaldi. Invariant information clustering for unsupervised image classification and segmentation. In ICCV, pp. 9865–9874, 2019.
266
+
267
+ Jeff Johnson, Matthijs Douze, and Hervé Jégou. Billion-scale similarity search with gpus. arXiv preprint arXiv:1702.08734, 2017.
268
+
269
+ Renjie Liao, Alexander G. Schwing, Richard S. Zemel, and Raquel Urtasun. Learning deep parsimonious representations. In NIPS, pp. 5076–5084, 2016.
270
+
271
+ Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast autoaugment. In NeurIPS, pp. 6662–6672, 2019.
272
+
273
+ Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft COCO: common objects in context. In ECCV, pp. 740–755, 2014.
274
+
275
+ Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9:2579–2605, 2008.
276
+
277
+ Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. In CVPR, 2020.
278
+
279
+ Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: A regularization method for supervised and semi-supervised learning. IEEE Trans. Pattern Anal. Mach. Intell., 41(8):1979–1993, 2019.
280
+
281
+ Xuan Vinh Nguyen, Julien Epps, and James Bailey. Information theoretic measures for clusterings comparison: Variants, properties, normalization and correction for chance. J. Mach. Learn. Res., 11:2837–2854, 2010.
282
+
283
+ Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In ECCV, pp. 69–84, 2016.
284
+
285
+ Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
286
+
287
+ Deepak Pathak, Philipp Krähenbühl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context encoders: Feature learning by inpainting. In CVPR, pp. 2536–2544, 2016.
288
+
289
+ Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. Faster R-CNN: towards real-time object detection with region proposal networks. In NIPS, pp. 91–99, 2015.
290
+
291
+ Brian C Ross. Mutual information between discrete and continuous data sets. PloS one, 9(2), 2014.
292
+
293
+ Nikunj Saunshi, Orestis Plevrakis, Sanjeev Arora, Mikhail Khodak, and Hrishikesh Khandeparkar. A theoretical analysis of contrastive unsupervised representation learning. In ICML, pp. 5628–5637, 2019.
294
+ Jake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot learning. In NIPS, pp. 4077–4087, 2017.
295
+ Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019.
296
+ Michael Tschannen, Josip Djolonga, Paul K. Rubenstein, Sylvain Gelly, and Mario Lucic. On mutual information maximization for representation learning. In ICLR, 2020.
297
+ Zhirong Wu, Yuanjun Xiong, Stella X. Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In CVPR, pp. 3733–3742, 2018.
298
+ Junyuan Xie, Ross B. Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering analysis. In ICML, pp. 478–487, 2016.
299
+ Bo Yang, Xiao Fu, Nicholas D. Sidiropoulos, and Mingyi Hong. Towards k-means-friendly spaces: Simultaneous deep learning and clustering. In ICML, pp. 3861–3870, 2017.
300
+ Jianwei Yang, Devi Parikh, and Dhruv Batra. Joint unsupervised learning of deep representations and image clusters. In CVPR, pp. 5147–5156, 2016.
301
+ Mang Ye, Xu Zhang, Pong C. Yuen, and Shih-Fu Chang. Unsupervised embedding learning via invariant and spreading instance feature. In CVPR, pp. 6210–6219, 2019.
302
+ Xiaohua Zhai, Avital Oliver, Alexander Kolesnikov, and Lucas Beyer. S4l: Self-supervised semisupervised learning. In ICCV, pp. 1476–1485, 2019.
303
+ Xiaohang Zhan, Jiahao Xie, Ziwei Liu, Yew-Soon Ong, and Chen Change Loy. Online deep clustering for unsupervised representation learning. In CVPR, pp. 6687–6696, 2020.
304
+ Liheng Zhang, Guo-Jun Qi, Liqiang Wang, and Jiebo Luo. AET vs. AED: unsupervised representation learning by auto-encoding transformations rather than data. In CVPR, 2019.
305
+ Richard Zhang, Phillip Isola, and Alexei A. Efros. Colorful image colorization. In ECCV, pp. 649–666, 2016.
306
+ Richard Zhang, Phillip Isola, and Alexei Efros. Split-brain autoencoders: Unsupervised learning by cross-channel prediction. In CVPR, pp. 1058–1067, 2017.
307
+ Bolei Zhou, Àgata Lapedriza, Jianxiong Xiao, Antonio Torralba, and Aude Oliva. Learning deep features for scene recognition using places database. In NIPS, pp. 487–495, 2014.
308
+ Chengxu Zhuang, Alex Lin Zhai, and Daniel Yamins. Local aggregation for unsupervised learning of visual embeddings. In ICCV, pp. 6002–6012, 2019.
309
+
310
+ # APPENDIX A ABLATION ON PROTONCE
311
+
312
+ The proposed loss in eqn.(11) contains two terms: the instance-wise contrastive loss and the proposed prototypical contrastive loss. Here we study the effect of each term on representation learning. Table 7 reports the results for low-resource fine-tuning and linear classification on ImageNet. The prototypical term plays an important role, especially in the fine-tuning experiment. The warm-up also improves the result by bootstrapping the clustering with better representations.
313
+
314
+ Table 7: Effect of instance-wise contrastive loss and prototypical contrastive loss.
315
+
316
+ <table><tr><td>Method</td><td></td><td>1% fine-tuning (top-5 acc.)|linear classification (top-1 acc.)</td></tr><tr><td>instance only</td><td>56.9</td><td>60.6</td></tr><tr><td>proto only (w/o warm-up)</td><td>60.7</td><td>60.4</td></tr><tr><td>proto only (w/ warm-up)</td><td>72.3</td><td>60.9</td></tr><tr><td>instance + proto (w/o warm-up)</td><td>74.6</td><td>61.3</td></tr><tr><td>instance + proto (w/ warm-up)</td><td>75.3</td><td>61.5</td></tr></table>
317
+
318
+ # APPENDIX B PSEUDO-CODE FOR PROTOTYPICAL CONTRASTIVE LEARNING
319
+
320
+ # Algorithm 1: Prototypical Contrastive Learning.
321
+
322
+ 1 Input: encoder $f _ { \theta }$ , training dataset $X$ , number of clusters $K = \{ k _ { m } \} _ { m = 1 } ^ { M }$
323
+ 2 $\theta ^ { \prime } = \theta$ // initialize momentum encoder as the encoder
324
+ 3 while not MaxEpoch do /\* E-step \*/
325
+ 4 $V ^ { \prime } = f _ { \theta ^ { \prime } } ( X )$ // get momentum features for all training data
326
+ 5 for $m = 1$ to $M$ do
327
+ 6 $C ^ { m } = k { \mathrm { - m e a n s } } ( V ^ { \prime } , k _ { m } )$ // cluster $V ^ { \prime }$ into $k _ { m }$ clusters, return prototypes
328
+ 7 $\phi _ { m } = \mathrm { C o n c e n t r a t i o n } ( C ^ { m } , V ^ { \prime } )$ // estimate the distribution concentration around each prototype with Equation 12
329
+ 8 end /\* M-step \*/
330
+ 9 for $_ x$ in Dataloader $( X )$ do // load a minibatch $x$
331
+ 10 $v = f _ { \theta } ( x ) , v ^ { \prime } = \dot { f } _ { \theta ^ { \prime } } ( x )$ // forward pass through encoder and momentum encoder
332
+ 11 $\begin{array} { r l } { \mathcal { L } _ { \mathrm { P r o t o N C E } } ( v , v ^ { \prime } , \{ C ^ { m } \} _ { m = 1 } ^ { M } , \{ \phi _ { m } \} _ { m = 1 } ^ { M } ) } & { { } } \end{array}$ // calculate loss with Equation 11
333
+ 12 $\theta = \mathrm { S G D } ( \mathcal { L } _ { \mathrm { P r o t o N C E } } , \theta )$ ) // update encoder parameters
334
+ 13 $\theta ^ { \prime } = 0 . 9 9 9 * \theta ^ { \prime } + 0 . 0 0 1 * \theta$ // update momentum encoder
335
+ 14 end
336
+ 15 end
337
+
338
+ # APPENDIX D COCO OBJECT DETECTION AND SEGMENTATION
339
+
340
+ Following the experiment setting in (He et al., 2020), we use Mask R-CNN (He et al., 2017) with C4 backbone. We finetune all layers end-to-end on the COCO train2017 set and evaluate on val2017. The schedule is the default $2 \times$ in (Girshick et al., 2018). PCL outperforms both MoCo (He et al., 2020) and supervised pre-training in all metrics.
341
+
342
+ <table><tr><td>Method</td><td>Apbb</td><td>AP</td><td>AP</td><td>Apmk</td><td>AP</td><td>AP</td></tr><tr><td>Supervised</td><td>40.0</td><td>59.9</td><td>43.1</td><td>34.7</td><td>56.5</td><td>36.9</td></tr><tr><td>MoCo (He et al., 2020)</td><td>40.7</td><td>60.5</td><td>44.1</td><td>35.4</td><td>57.3</td><td>37.6</td></tr><tr><td>PCL (ours)</td><td>41.0</td><td>60.8</td><td>44.2</td><td>35.6</td><td>57.4</td><td>37.8</td></tr></table>
343
+
344
+ Table 9: Object detection and instance segmentation fine-tuned on COCO. We evaluate bounding-box AP $( \mathsf { A P } ^ { \mathsf { b b } } )$ and mask AP $( \mathbf { A P } ^ { \mathrm { m k } } )$ on val2017.
345
+
346
+ # APPENDIX E TRAINING DETAILS FOR TRANSFER LEARNING EXPERIMENTS
347
+
348
+ For training linear SVMs on Places and VOC, we follow the procedure in (Goyal et al., 2019) and use the LIBLINEAR (Fan et al., 2008) package. We preprocess all images by resizing to 256 pixels along the shorter side and taking a $2 2 4 \times 2 2 4$ center crop. The linear SVMs are trained on the global average pooling features of ResNet-50.
349
+
350
+ For image classification with linear models, we use the pretrained representations from the global average pooling features (2048-D) for ImageNet and VOC, and the conv5 features (averaged pooled to ${ \sim } 9 0 0 0 { \cdot } \mathrm { D }$ ) for Places. We train a linear SVM for VOC, and a logistic regression classifier (a fully-connected layer followed by softmax) for ImageNet and Places. The logistic regression classifier is trained using SGD with a momentum of 0.9. For ImageNet, we train for 100 epochs with an initial learning rate of 10 and a weight decay of 0. Similar hyper-parameters are used by (He et al., 2020). For Places, we train for 40 epochs with an initial learning rate of 0.3 and a weight decay of 0.
351
+
352
+ For semi-supervised learning, we finetune ResNet-50 with pretrained weights on a subset of ImageNet with labels. We optimize the model with SGD, using a batch size of 256, a momentum of 0.9, and a weight decay of 0.0005. We apply different learning rate to the ConvNet and the linear classifier. The learning rate for the ConvNet is 0.01, and the learning rate for the classifier is 0.1 (for $10 \%$ labels) or 1 (for $1 \%$ labels). We train for 20 epochs, and drop the learning rate by 0.2 at 12 and 16 epochs.
353
+
354
+ For object detection on VOC, We use the R50-FPN backbone for the Faster R-CNN detector available in the MMdetection (Chen et al., 2019) codebase. We freeze all the conv layers and also fix the BatchNorm parameters. The model is optimized with SGD, using a batch size of 8, a momentum of 0.9, and a weight decay of 0.0001. The initial learning rate is set as 0.05. We finetune the models for 15 epochs, and drop the learning rate by 0.1 at 12 epochs.
355
+
356
+ # APPENDIX F EVALUATION OF CLUSTERING
357
+
358
+ In order to evaluate the quality of the clusters produced by PCL, we compute the adjusted mutual information score (AMI) (Nguyen et al., 2010) between the clusterings and the ground-truth labels for ImageNet training data. AMI is adjusted for chance which accounts for the bias in MI to give high values to clusterings with a larger number of clusters. AMI has a value of 1 when two partitions are identical, and an expected value of 0 for random (independent) partitions. In Figure 5, we show the AMI scores for three clusterings obtained by PCL, with number of clusters $\bar { K ^ { - } } = \{ 2 5 0 0 0 , 5 0 0 0 0 , 1 0 0 0 0 0 \}$ . In Table 5, we show that compared to DeepCluster (Caron et al., 2018) and MoCo (He et al., 2020), PCL produces clusters of substantially higher quality.
359
+
360
+ ![](images/dfc398fbd4dac745833851887787811eb9242fa23b4ab3f02fe67df9d6d4f7e1.jpg)
361
+ Figure 5: Adjusted mutual information score between the clusterings generated by PCL and the ground-truth labels for ImageNet training data.
362
+
363
+ # APPENDIX G CONVERGENCE PROOF
364
+
365
+ Here we provide the proof that the proposed PCL would converge. Suppose let
366
+
367
+ $$
368
+ \begin{array} { r } { F ( \theta ) = \displaystyle \sum _ { i = 1 } ^ { n } \log p ( x _ { i } ; \theta ) = \displaystyle \sum _ { i = 1 } ^ { n } \log \sum _ { c _ { i } \in C } p ( x _ { i } , c _ { i } ; \theta ) = \displaystyle \sum _ { i = 1 } ^ { n } \log \sum _ { c _ { i } \in C } Q ( c _ { i } ) \frac { p ( x _ { i } , c _ { i } ; \theta ) } { Q ( c _ { i } ) } } \\ { \geq \displaystyle \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } Q ( c _ { i } ) \log \frac { p ( x _ { i } , c _ { i } ; \theta ) } { Q ( c _ { i } ) } . } \end{array}
369
+ $$
370
+
371
+ We have shown in Section 3.2 that the above inequality holds with equality when $Q ( c _ { i } ) = p ( c _ { i } ; x _ { i } , \theta )$ . At the $t$ -th E-step, we have estimated $Q ^ { t } ( c _ { i } ) = p ( c _ { i } ; x _ { i } , \theta ^ { t } )$ . Therefore we have:
372
+
373
+ $$
374
+ F ( \theta ^ { t } ) = \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } Q ^ { t } ( c _ { i } ) \log \frac { p ( x _ { i } , c _ { i } ; \theta ^ { t } ) } { Q ^ { t } ( c _ { i } ) } .
375
+ $$
376
+
377
+ At the $t$ -th M-step, we fix $Q ^ { t } ( c _ { i } ) = p ( c _ { i } ; x _ { i } , \theta ^ { t } )$ and train parameter $\theta$ to maximize Equation 14. Therefore we always have:
378
+
379
+ $$
380
+ F ( \theta ^ { t + 1 } ) \geq \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } Q ^ { t } ( c _ { i } ) \log \frac { p ( x _ { i } , c _ { i } ; \theta ^ { t + 1 } ) } { Q ^ { t } ( c _ { i } ) } \geq \sum _ { i = 1 } ^ { n } \sum _ { c _ { i } \in C } Q ^ { t } ( c _ { i } ) \log \frac { p ( x _ { i } , c _ { i } ; \theta ^ { t } ) } { Q ^ { t } ( c _ { i } ) } = F ( \theta ^ { t } ) .
381
+ $$
382
+
383
+ The above result suggests that $F ( \theta ^ { t } )$ monotonously increase along with more iterations. Hence the algorithm will converge.
384
+
385
+ # APPENDIX H VISUALIZATION OF CLUSTERS
386
+
387
+ In Figure 6, we show ImageNet training images that are randomly chosen from clusters generated by the proposed PCL. PCL not only clusters images from the same class together, but also finds fine-grained patterns that distinguish sub-classes, demonstrating its capability to learn useful semantic representations.
388
+
389
+ ![](images/1e4146cb6ce2c5169a5ec1608ea8593463e090a9f89e6ba8e6b80c0addd06d27.jpg)
390
+ Figure 6: Visualization of randomly chosen clusters generated by PCL. Green boarder marks top-5 images that are closest to fine-grained prototypes $K = 1 0 0 k$ ). Orange boarder marks images randomly chosen from coarse-grained clusters $K = 5 0 k$ ) that also cover the same green images. PCL can discover hierarchical semantic structures within the data (e.g. images with horse and man form a fine-grained cluster within the coarse-grained horse cluster.)
parse/train/KmykpuSrjcq/KmykpuSrjcq_content_list.json ADDED
@@ -0,0 +1,1861 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PROTOTYPICAL CONTRASTIVE LEARNING OF UNSUPERVISED REPRESENTATIONS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 718,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Junnan Li, Pan Zhou, Caiming Xiong, Steven C.H. Hoi ",
17
+ "bbox": [
18
+ 184,
19
+ 169,
20
+ 566,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Salesforce Research {junnan.li,pzhou,cxiong,shoi}@salesforce.com ",
28
+ "bbox": [
29
+ 186,
30
+ 185,
31
+ 616,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 242,
43
+ 544,
44
+ 258
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "This paper presents Prototypical Contrastive Learning (PCL), an unsupervised representation learning method that bridges contrastive learning with clustering. PCL not only learns low-level features for the task of instance discrimination, but more importantly, it encodes semantic structures discovered by clustering into the learned embedding space. Specifically, we introduce prototypes as latent variables to help find the maximum-likelihood estimation of the network parameters in an Expectation-Maximization framework. We iteratively perform E-step as finding the distribution of prototypes via clustering and M-step as optimizing the network via contrastive learning. We propose ProtoNCE loss, a generalized version of the InfoNCE loss for contrastive learning, which encourages representations to be closer to their assigned prototypes. PCL outperforms state-of-the-art instance-wise contrastive learning methods on multiple benchmarks with substantial improvement in low-resource transfer learning. Code and pretrained models are available at https://github.com/salesforce/PCL. ",
51
+ "bbox": [
52
+ 233,
53
+ 276,
54
+ 766,
55
+ 469
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 500,
66
+ 336,
67
+ 515
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Unsupervised visual representation learning aims to learn image representations from pixels themselves without relying on semantic annotations, and recent advances are largely driven by instance discrimination tasks (Wu et al., 2018; Ye et al., 2019; He et al., 2020; Misra & van der Maaten, 2020; Hjelm et al., 2019; Oord et al., 2018; Tian et al., 2019). These methods usually consist of two key components: image transformation and contrastive loss. Image transformation aims to generate multiple embeddings that represent the same image, by data augmentation (Ye et al., 2019; Bachman et al., 2019; Chen et al., 2020a), patch perturbation (Misra & van der Maaten, 2020), or using momentum features (He et al., 2020). The contrastive loss, in the form of a noise contrastive estimator (Gutmann & Hyvärinen, 2010), aims to bring closer samples from the same instance and separate samples from different instances. Essentially, instance-wise contrastive learning leads to an embedding space where all instances are well-separated, and each instance is locally smooth (i.e. input with perturbations have similar representations). ",
74
+ "bbox": [
75
+ 174,
76
+ 526,
77
+ 825,
78
+ 693
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Despite their improved performance, instance discrimination methods share a common weakness: the representation is not encouraged to encode the semantic structure of data. This problem arises because instance-wise contrastive learning treats two samples as a negative pair as long as they are from different instances, regardless of their semantic similarity. This is magnified by the fact that thousands of negative samples are generated to form the contrastive loss, leading to many negative pairs that share similar semantics but are undesirably pushed apart in the embedding space. ",
85
+ "bbox": [
86
+ 174,
87
+ 700,
88
+ 825,
89
+ 784
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this paper, we propose prototypical contrastive learning (PCL), a new framework for unsupervised representation learning that implicitly encodes the semantic structure of data into the embedding space. Figure 1 shows an illustration of PCL. A prototype is defined as “a representative embedding for a group of semantically similar instances”. We assign several prototypes of different granularity to each instance, and construct a contrastive loss which enforces the embedding of a sample to be more similar to its corresponding prototypes compared to other prototypes. In practice, we can find prototypes by performing clustering on the embeddings. ",
96
+ "bbox": [
97
+ 174,
98
+ 791,
99
+ 823,
100
+ 888
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We formulate prototypical contrastive learning as an Expectation-Maximization (EM) algorithm, where the goal is to find the parameters of a Deep Neural Network (DNN) that best describes the data distribution, by iteratively approximating and maximizing the log-likelihood function. Specifically, we introduce prototypes as additional latent variables, and estimate their probability in the E-step by performing $k$ -means clustering. In the M-step, we update the network parameters by minimizing our proposed contrastive loss, namely ProtoNCE. We show that minimizing ProtoNCE is equivalent to maximizing the estimated log-likelihood, under the assumption that the data distribution around each prototype is isotropic Gaussian. Under the EM framework, the widely used instance discrimination task can be explained as a special case of prototypical contrastive learning, where the prototype for each instance is its augmented feature, and the Gaussian distribution around each prototype has the same fixed variance. The contributions of this paper can be summarized as follows: ",
107
+ "bbox": [
108
+ 174,
109
+ 895,
110
+ 823,
111
+ 922
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/0612404d791db647e84c0565fc5fc55d0773e5012448b77f5e6b956269c5d548.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Illustration of Prototypical Contrastive Learning. Each instance is assigned to multiple prototypes with different granularity. PCL learns an embedding space which encodes the semantic structure of data. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 207,
124
+ 87,
125
+ 782,
126
+ 279
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 174,
135
+ 332,
136
+ 825,
137
+ 457
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "• We propose prototypical contrastive learning, a novel framework for unsupervised representation learning that bridges contrastive learning and clustering. The learned representation is encouraged to capture the hierarchical semantic structure of the dataset. • We give a theoretical framework that formulates PCL as an Expectation-Maximization (EM) based algorithm. The iterative steps of clustering and representation learning can be interpreted as approximating and maximizing the log-likelihood function. The previous methods based on instance discrimination form a special case in the proposed EM framework. • We propose ProtoNCE, a new contrastive loss which improves the widely used InfoNCE by dynamically estimating the concentration for the feature distribution around each prototype. ProtoNCE also includes an InfoNCE term in which the instance embeddings can be interpreted as instancebased prototypes. We provide explanations for PCL from an information theory perspective, by showing that the learned prototypes contain more information about the image classes. PCL outperforms instance-wise contrastive learning on multiple benchmarks with substantial improvements in low-resource transfer learning. PCL also leads to better clustering results. ",
144
+ "bbox": [
145
+ 173,
146
+ 464,
147
+ 826,
148
+ 666
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 RELATED WORK ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 679,
159
+ 341,
160
+ 695
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Our work is closely related to two main branches of studies in unsupervised/self-supervised learning: instance-wise contrastive learning and deep unsupervised clustering. ",
167
+ "bbox": [
168
+ 174,
169
+ 705,
170
+ 825,
171
+ 733
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Instance-wise contrastive learning (Wu et al., 2018; Ye et al., 2019; He et al., 2020; Misra & van der Maaten, 2020; Zhuang et al., 2019; Hjelm et al., 2019; Oord et al., 2018; Tian et al., 2019; Chen et al., 2020a) aims to learn an embedding space where samples (e.g. crops) from the same instance (e.g. an image) are pulled closer and samples from different instances are pushed apart. To construct the contrastive loss, positive instance features and negative instance features are generated for each sample. Different contrastive learning methods vary in their strategy to generate instance features. The memory bank approach (Wu et al., 2018) stores the features of all samples calculated in the previous step. The end-to-end approach (Ye et al., 2019; Tian et al., 2019; Chen et al., 2020a) generates instance features using all samples within the current mini-batch. The momentum encoder approach (He et al., 2020) encodes samples on-the-fly by a momentum-updated encoder, and maintains a queue of instance features. ",
178
+ "bbox": [
179
+ 174,
180
+ 738,
181
+ 825,
182
+ 890
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Despite their improved performance, the existing methods based on instance-wise contrastive learning have the following two major limitations, which can be addressed by the proposed PCL framework. ",
189
+ "bbox": [
190
+ 174,
191
+ 897,
192
+ 825,
193
+ 926
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "• The task of instance discrimination could be solved by exploiting low-level image differences, thus the learned embeddings do not necessarily capture high-level semantics. This is supported by the fact that the accuracy of instance classification often rapidly rises to a high level $( > 9 0 \\%$ within 10 epochs) and further training gives limited informative signals. A recent study also shows that better performance of instance discrimination could worsen the performance on downstream tasks (Tschannen et al., 2020). ",
200
+ "bbox": [
201
+ 174,
202
+ 103,
203
+ 825,
204
+ 188
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "• A sufficiently large number of negative instances need to be sampled, which inevitably yields negative pairs that share similar semantic meaning and should be closer in the embedding space. However, they are undesirably pushed apart by the contrastive loss. Such problem is defined as class collision in (Saunshi et al., 2019) and is shown to hurt representation learning. Essentially, instance discrimination learns an embedding space that only preserves the local smoothness around each instance but largely ignores the global semantic structure of the dataset. ",
211
+ "bbox": [
212
+ 174,
213
+ 190,
214
+ 825,
215
+ 275
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Deep unsupervised clustering. Clustering based methods have been proposed for deep unsupervised learning. Xie et al. (2016); Yang et al. (2016); Liao et al. (2016); Yang et al. (2017); Chang et al. (2017); Ji et al. (2019); Gansbeke et al. (2020) jointly learn image embeddings and cluster assignments, but they have not shown the ability to learn transferable representations from a large scale of images. Closer to our work, DeepCluster (Caron et al., 2018) performs iterative clustering and unsupervised representation learning, which is further improved by Zhan et al. (2020) with online clustering. However, our method is conceptually different from DeepCluster. In DeepCluster, the cluster assignments are considered as pseudo-labels and a classification objective is optimized, which results in two weaknesses: (1) the high-dimensional features from the penultimate layer of a ConvNet are not optimal for clustering and need to be PCA-reduced; (2) an additional linear classification layer is frequently re-initialized which interferes with representation learning. In our method, representation learning happens directly in a low-dimensional embedding space, by optimizing a contrastive loss on the prototypes (cluster centroids). Concurrent to our work, SwAV (Caron et al., 2020) also brings together a clustering objective with contrastive learning. ",
222
+ "bbox": [
223
+ 173,
224
+ 287,
225
+ 826,
226
+ 482
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Self-supervised pretext tasks. Another line of self-supervised learning methods focus on training DNNs to solve pretext tasks, which usually involve hiding certain information about the input and training the network to recover those missing information. Examples include image inpainting (Pathak et al., 2016), colorization (Zhang et al., 2016; 2017), prediction of patch orderings (Doersch et al., 2015; Noroozi & Favaro, 2016) and image transformations (Dosovitskiy et al., 2014; Gidaris et al., 2018; Caron et al., 2019; Zhang et al., 2019). Compared to heuristic pretext task designs, the proposed PCL is a more general learning framework with better theoretical justification. ",
233
+ "bbox": [
234
+ 174,
235
+ 489,
236
+ 825,
237
+ 587
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "3 PROTOTYPICAL CONTRASTIVE LEARNING ",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 174,
247
+ 609,
248
+ 557,
249
+ 626
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "3.1 PRELIMINARIES ",
256
+ "text_level": 1,
257
+ "bbox": [
258
+ 174,
259
+ 643,
260
+ 326,
261
+ 659
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Given a training set $X = \\{ x _ { 1 } , x _ { 2 } , . . . , x _ { n } \\}$ of $n$ images, unsupervised visual representation learning aims to learn an embedding function $f _ { \\theta }$ (realized via a DNN) that maps $X$ to $V = \\{ v _ { 1 } , v _ { 2 } , . . . , v _ { n } \\}$ with $v _ { i } = f _ { \\theta } ( x _ { i } )$ , such that $v _ { i }$ best describes $x _ { i }$ . Instance-wise contrastive learning achieves this objective by optimizing a contrastive loss function, such as InfoNCE (Oord et al., 2018; He et al., 2020), defined as: ",
268
+ "bbox": [
269
+ 174,
270
+ 670,
271
+ 825,
272
+ 741
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "equation",
278
+ "img_path": "images/2dd4c1e6d69f324736ddc81d9b6455df0df1e0078ca5f84d5b8d83e7305d0a50.jpg",
279
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { I n f o N C E } } = \\sum _ { i = 1 } ^ { n } - \\log \\frac { \\exp ( v _ { i } \\cdot v _ { i } ^ { \\prime } / \\tau ) } { \\sum _ { j = 0 } ^ { r } \\exp ( v _ { i } \\cdot v _ { j } ^ { \\prime } / \\tau ) } ,\n$$",
280
+ "text_format": "latex",
281
+ "bbox": [
282
+ 348,
283
+ 742,
284
+ 647,
285
+ 784
286
+ ],
287
+ "page_idx": 2
288
+ },
289
+ {
290
+ "type": "text",
291
+ "text": "where $v _ { i }$ and $\\boldsymbol { v } _ { i } ^ { \\prime }$ are positive embeddings for instance $i$ , and $\\boldsymbol { v } _ { j } ^ { \\prime }$ includes one positive embedding and $r$ negative embeddings for other instances, and $\\tau$ is a temperature hyper-parameter. In MoCo (He et al., 2020), these embeddings are obtained by feeding $x _ { i }$ to a momentum encoder parametrized by $\\theta ^ { \\prime }$ , $, v _ { i } ^ { \\prime } = f _ { \\theta ^ { \\prime } } ( x _ { i } )$ , where $\\theta ^ { \\prime }$ is a moving average of $\\theta$ . ",
292
+ "bbox": [
293
+ 173,
294
+ 790,
295
+ 825,
296
+ 848
297
+ ],
298
+ "page_idx": 2
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "In prototypical contrastive learning, we use prototypes $c$ instead of $v ^ { \\prime }$ , and replace the fixed temperature $\\tau$ with a per-prototype concentration estimation $\\phi$ . An overview of our training framework is shown in Figure 2, where clustering and representation learning are performed iteratively at each epoch. Next, we will delineate the theoretical framework of PCL based on EM. A pseudo-code of our algorithm is given in appendix B. ",
303
+ "bbox": [
304
+ 174,
305
+ 853,
306
+ 825,
307
+ 924
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "image",
313
+ "img_path": "images/4f1ab2fc7ccccdda98417ee196e1fadceac522f5ec844708adc2491697a3ab43.jpg",
314
+ "image_caption": [
315
+ "Figure 2: Training framework of Prototypical Contrastive Learning. "
316
+ ],
317
+ "image_footnote": [],
318
+ "bbox": [
319
+ 222,
320
+ 104,
321
+ 761,
322
+ 237
323
+ ],
324
+ "page_idx": 3
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "3.2 PCL AS EXPECTATION-MAXIMIZATION ",
329
+ "text_level": 1,
330
+ "bbox": [
331
+ 174,
332
+ 287,
333
+ 490,
334
+ 303
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "Our objective is to find the network parameters $\\theta$ that maximizes the log-likelihood function of the observed $n$ samples: ",
341
+ "bbox": [
342
+ 179,
343
+ 314,
344
+ 825,
345
+ 342
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "equation",
351
+ "img_path": "images/9d41c6adf37c434068d9670785ee936e351532035ca20d9659fafb9e3356b16f.jpg",
352
+ "text": "$$\n\\theta ^ { * } = \\arg \\operatorname* { m a x } _ { \\theta } \\sum _ { i = 1 } ^ { n } \\log p ( x _ { i } ; \\theta )\n$$",
353
+ "text_format": "latex",
354
+ "bbox": [
355
+ 398,
356
+ 335,
357
+ 599,
358
+ 376
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "We assume that the observed data $\\{ x _ { i } \\} _ { i = 1 } ^ { n }$ are related to latent variable $C = \\{ c _ { i } \\} _ { i = 1 } ^ { k }$ which denotes the prototypes of the data. In this way, we can re-write the log-likelihood function as: ",
365
+ "bbox": [
366
+ 173,
367
+ 381,
368
+ 823,
369
+ 410
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "equation",
375
+ "img_path": "images/0ea378dc783c73d3325fc6e376a13cb4549341bc2d5dc9df2331e451ac661bca.jpg",
376
+ "text": "$$\n\\theta ^ { * } = \\arg \\operatorname* { m a x } _ { \\theta } \\sum _ { i = 1 } ^ { n } \\log p ( x _ { i } ; \\theta ) = \\arg \\operatorname* { m a x } _ { \\theta } \\sum _ { i = 1 } ^ { n } \\log \\sum _ { c _ { i } \\in C } p ( x _ { i } , c _ { i } ; \\theta )\n$$",
377
+ "text_format": "latex",
378
+ "bbox": [
379
+ 281,
380
+ 410,
381
+ 717,
382
+ 454
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "It is hard to optimize this function directly, so we use a surrogate function to lower-bound it: ",
389
+ "bbox": [
390
+ 176,
391
+ 460,
392
+ 776,
393
+ 474
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "equation",
399
+ "img_path": "images/a8324f674d2cfaefa53fea3512bdc6b402ba0f26dfc524e44fc28cdcb037a1bc.jpg",
400
+ "text": "$$\n\\sum _ { i = 1 } ^ { n } \\log \\sum _ { { c _ { i } } \\in C } p ( x _ { i } , c _ { i } ; \\theta ) = \\sum _ { i = 1 } ^ { n } \\log \\sum _ { { c _ { i } } \\in C } Q ( c _ { i } ) \\frac { p ( x _ { i } , c _ { i } ; \\theta ) } { Q ( c _ { i } ) } \\geq \\sum _ { i = 1 } ^ { n } \\sum _ { { c _ { i } } \\in C } Q ( c _ { i } ) \\log \\frac { p ( x _ { i } , c _ { i } ; \\theta ) } { Q ( c _ { i } ) } ,\n$$",
401
+ "text_format": "latex",
402
+ "bbox": [
403
+ 189,
404
+ 476,
405
+ 789,
406
+ 518
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "where $Q ( c _ { i } )$ denotes some distribution over $c$ ’s $\\begin{array} { r } { ( \\sum _ { c _ { i } \\in C } Q ( c _ { i } ) = 1 ) } \\end{array}$ , and the last step of derivation uses Jensen’s inequality. To make the inequality hold with equality, we require $\\frac { p ( x _ { i } , c _ { i } ; \\theta ) } { Q ( c _ { i } ) }$ to be a constant. Therefore, we have: ",
413
+ "bbox": [
414
+ 173,
415
+ 525,
416
+ 826,
417
+ 575
418
+ ],
419
+ "page_idx": 3
420
+ },
421
+ {
422
+ "type": "equation",
423
+ "img_path": "images/856135205fa941127c79143fabb7cec89e1da9fe8caa17a0190c152bee650978.jpg",
424
+ "text": "$$\nQ ( c _ { i } ) = \\frac { p ( x _ { i } , c _ { i } ; \\theta ) } { \\sum _ { c _ { i } \\in C } p ( x _ { i } , c _ { i } ; \\theta ) } = \\frac { p ( x _ { i } , c _ { i } ; \\theta ) } { p ( x _ { i } ; \\theta ) } = p ( c _ { i } ; x _ { i } , \\theta )\n$$",
425
+ "text_format": "latex",
426
+ "bbox": [
427
+ 310,
428
+ 575,
429
+ 687,
430
+ 612
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "By ignoring the constant $- \\textstyle \\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } Q ( c _ { i } ) \\log Q ( c _ { i } )$ in eqn.(4), we should maximize: ",
437
+ "bbox": [
438
+ 171,
439
+ 618,
440
+ 766,
441
+ 637
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "equation",
447
+ "img_path": "images/8491a0251ddb98d3e9aa1c315e0ad47e40d8cd2fc58fd09ef75fb2d04aae6664.jpg",
448
+ "text": "$$\n\\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } Q ( c _ { i } ) \\log p ( x _ { i } , c _ { i } ; \\theta )\n$$",
449
+ "text_format": "latex",
450
+ "bbox": [
451
+ 398,
452
+ 642,
453
+ 599,
454
+ 685
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "$\\mathbf { E }$ -step. In this step, we aim to estimate $p ( c _ { i } ; x _ { i } , \\theta )$ . To this end, we perform $k$ -means on the features $v _ { i } ^ { \\prime } = \\bar { f } _ { \\theta ^ { \\prime } } ( x _ { i } )$ given by the momentum encoder to obtain $k$ clusters. We define prototype $c _ { i }$ as the centroid for the $i$ -th cluster. Then, we compute $p ( c _ { i } ; x _ { i } , \\theta ) = \\mathbb { 1 } ( x _ { i } \\in c _ { i } )$ , where $\\mathbb { 1 } ( x _ { i } \\in c _ { i } ) = 1$ if $x _ { i }$ belongs to the cluster represented by $c _ { i }$ ; otherwise $\\mathbb { 1 } ( x _ { i } \\in c _ { i } ) = 0$ . Similar to MoCo, we found features from the momentum encoder yield more consistent clusters. ",
461
+ "bbox": [
462
+ 173,
463
+ 691,
464
+ 826,
465
+ 763
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "M-step. Based on the E-step, we are ready to maximize the lower-bound in eqn.(6). ",
472
+ "bbox": [
473
+ 173,
474
+ 768,
475
+ 722,
476
+ 785
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "equation",
482
+ "img_path": "images/ca62357a6a00db923909fe56b916644c8606f016450fdbf2c2e1cf8da0b69032.jpg",
483
+ "text": "$$\n\\begin{array} { r } { \\displaystyle \\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } Q ( c _ { i } ) \\log p ( x _ { i } , c _ { i } ; \\theta ) = \\displaystyle \\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } p ( c _ { i } ; x _ { i } , \\theta ) \\log p ( x _ { i } , c _ { i } ; \\theta ) } \\\\ { = \\displaystyle \\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } \\mathbb { 1 } ( x _ { i } \\in c _ { i } ) \\log p ( x _ { i } , c _ { i } ; \\theta ) } \\end{array}\n$$",
484
+ "text_format": "latex",
485
+ "bbox": [
486
+ 272,
487
+ 790,
488
+ 723,
489
+ 878
490
+ ],
491
+ "page_idx": 3
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "Under the assumption of a uniform prior over cluster centroids, we have: ",
496
+ "bbox": [
497
+ 174,
498
+ 882,
499
+ 650,
500
+ 897
501
+ ],
502
+ "page_idx": 3
503
+ },
504
+ {
505
+ "type": "equation",
506
+ "img_path": "images/46c528161360177b1d1c78280c11c5a0924e44e3c4555f4c637b193ab6691b69.jpg",
507
+ "text": "$$\np ( x _ { i } , c _ { i } ; \\theta ) = p ( x _ { i } ; c _ { i } , \\theta ) p ( c _ { i } ; \\theta ) = \\frac { 1 } { k } \\cdot p ( x _ { i } ; c _ { i } , \\theta ) ,\n$$",
508
+ "text_format": "latex",
509
+ "bbox": [
510
+ 330,
511
+ 898,
512
+ 666,
513
+ 929
514
+ ],
515
+ "page_idx": 3
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "where we set the prior probability $p ( c _ { i } ; \\theta )$ for each $c _ { i }$ as $1 / k$ since we are not provided any samples. We assume that the distribution around each prototype is an isotropic Gaussian, which leads to: ",
520
+ "bbox": [
521
+ 173,
522
+ 102,
523
+ 826,
524
+ 140
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "equation",
530
+ "img_path": "images/9c39fc5b146b89001f51706f4796452e7f3ab4ffef311e9f963ea69a3d2289b5.jpg",
531
+ "text": "$$\np ( x _ { i } ; c _ { i } , \\theta ) = \\exp { \\left( \\frac { - ( v _ { i } - c _ { s } ) ^ { 2 } } { 2 \\sigma _ { s } ^ { 2 } } \\right) } \\bigg / \\sum _ { j = 1 } ^ { k } \\exp { \\left( \\frac { - ( v _ { i } - c _ { j } ) ^ { 2 } } { 2 \\sigma _ { j } ^ { 2 } } \\right) } ,\n$$",
532
+ "text_format": "latex",
533
+ "bbox": [
534
+ 292,
535
+ 146,
536
+ 704,
537
+ 190
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "where $v _ { i } = f _ { \\theta } ( x _ { i } )$ and $x _ { i } \\in c _ { s }$ . If we apply $\\ell _ { 2 }$ -normalization to both $v$ and $c$ , then $( v - c ) ^ { 2 } = 2 - 2 v \\cdot c .$ . Combining this with eqn.(3, 4, 6, 7, 8, 9), we can write maximum log-likelihood estimation as ",
544
+ "bbox": [
545
+ 173,
546
+ 198,
547
+ 831,
548
+ 227
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "equation",
554
+ "img_path": "images/80523ddf51b56dbb708f3864ab1368e98faab591dad6ae482adc9a2f6fddd6dc.jpg",
555
+ "text": "$$\n\\theta ^ { * } = \\underset { \\theta } { \\arg \\operatorname* { m i n } } \\sum _ { i = 1 } ^ { n } - \\log \\frac { \\exp ( v _ { i } \\cdot c _ { s } / \\phi _ { s } ) } { \\sum _ { j = 1 } ^ { k } \\exp ( v _ { i } \\cdot c _ { j } / \\phi _ { j } ) } ,\n$$",
556
+ "text_format": "latex",
557
+ "bbox": [
558
+ 341,
559
+ 233,
560
+ 655,
561
+ 275
562
+ ],
563
+ "page_idx": 4
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "where $\\phi \\propto \\sigma ^ { 2 }$ denotes the concentration level of the feature distribution around a prototype and will be introduced later. Note that eqn.(10) has a similar form as the InfoNCE loss in eqn.(1). Therefore, InfoNCE can be interpreted as a special case of the maximum log-likelihood estimation, where the prototype for a feature $v _ { i }$ is the augmented feature $\\boldsymbol { v } _ { i } ^ { \\prime }$ from the same instance (i.e. $c = v ^ { \\prime }$ ), and the concentration of the feature distribution around each instance is fixed (i.e. $\\phi = \\tau$ ). ",
568
+ "bbox": [
569
+ 173,
570
+ 281,
571
+ 825,
572
+ 353
573
+ ],
574
+ "page_idx": 4
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "In practice, we take the same approach as NCE and sample $r$ negative prototypes to calculate the normalization term. We also cluster the samples $M$ times with different number of clusters $K = \\{ k _ { m } \\} _ { m = 1 } ^ { M }$ , which enjoys a more robust probability estimation of prototypes that encodestructure. Furthermore, we add the InfoNCE loss to retain the property of local smoothness and help bootstrap clustering. Our overall objective, namely ProtoNCE, is defined as ",
579
+ "bbox": [
580
+ 174,
581
+ 358,
582
+ 823,
583
+ 430
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "equation",
589
+ "img_path": "images/76fe824335ceeb4fba6226aa93d91d74498ac823aae540b75ba5782820e1d470.jpg",
590
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { P r o t o N C E } } = \\sum _ { i = 1 } ^ { n } - \\left( \\log \\frac { \\exp ( v _ { i } \\cdot v _ { i } ^ { \\prime } / \\tau ) } { \\sum _ { j = 0 } ^ { r } \\exp ( v _ { i } \\cdot v _ { j } ^ { \\prime } / \\tau ) } + \\frac { 1 } { M } \\sum _ { m = 1 } ^ { M } \\log \\frac { \\exp ( v _ { i } \\cdot c _ { s } ^ { m } / \\phi _ { s } ^ { m } ) } { \\sum _ { j = 0 } ^ { r } \\exp ( v _ { i } \\cdot c _ { j } ^ { m } / \\phi _ { j } ^ { m } ) } \\right) .\n$$",
591
+ "text_format": "latex",
592
+ "bbox": [
593
+ 189,
594
+ 435,
595
+ 781,
596
+ 479
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "3.3 CONCENTRATION ESTIMATION ",
603
+ "text_level": 1,
604
+ "bbox": [
605
+ 176,
606
+ 493,
607
+ 428,
608
+ 507
609
+ ],
610
+ "page_idx": 4
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "The distribution of embeddings around each prototype has different level of concentration. We use $\\phi$ to denote the concentration estimation, where a smaller $\\phi$ indicates larger concentration. Here we calculate $\\phi$ using the momentum features $\\{ v _ { z } ^ { \\prime } \\} _ { z = 1 } ^ { Z }$ that are within the same cluster as a prototype $c$ The desired $\\phi$ should be small (high concentration) if (1) the average distance between $v _ { z } ^ { \\prime }$ and $c$ is small, and (2) the cluster contains more feature points (i.e. $Z$ is large). Therefore, we define $\\phi$ as: ",
615
+ "bbox": [
616
+ 173,
617
+ 518,
618
+ 826,
619
+ 589
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "equation",
625
+ "img_path": "images/af4e33a7d662f0cb8c0564960b55c51492bf96353346d908aeb01507da438bde.jpg",
626
+ "text": "$$\n\\phi = \\frac { \\sum _ { z = 1 } ^ { Z } \\| v _ { z } ^ { \\prime } - c \\| _ { 2 } } { Z \\log ( Z + \\alpha ) } ,\n$$",
627
+ "text_format": "latex",
628
+ "bbox": [
629
+ 423,
630
+ 594,
631
+ 573,
632
+ 632
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "where $\\alpha$ is a smooth parameter to ensure that small clusters do not have an overly-large $\\phi$ . We normalize $\\phi$ for each set of prototypes $C ^ { m }$ such that they have a mean of $\\tau$ . ",
639
+ "bbox": [
640
+ 174,
641
+ 638,
642
+ 825,
643
+ 667
644
+ ],
645
+ "page_idx": 4
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "In the ProtoNCE loss (eqn.(11)), $\\phi _ { s } ^ { m }$ acts as a scaling factor on the similarity between an embedding $v _ { i }$ and its prototype $c _ { s } ^ { m }$ . With the proposed $\\phi$ , the similarity in a loose cluster (larger $\\phi$ ) are down-scaled, pulling embeddings closer to the prototype. On the contrary, embeddings in a tight cluster (smaller $\\phi$ ) have an up-scaled similarity, thus less encouraged to approach the prototype. Therefore, learning with ProtoNCE yields more balanced clusters with similar concentration, as shown in Figure 3(a). It prevents a trivial solution where most embeddings collapse to a single cluster, a problem that could only be heuristically addressed by data-resampling in DeepCluster (Caron et al., 2018). ",
650
+ "bbox": [
651
+ 173,
652
+ 672,
653
+ 825,
654
+ 772
655
+ ],
656
+ "page_idx": 4
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "3.4 MUTUAL INFORMATION ANALYSIS ",
661
+ "text_level": 1,
662
+ "bbox": [
663
+ 176,
664
+ 779,
665
+ 452,
666
+ 794
667
+ ],
668
+ "page_idx": 4
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "It has been shown that minimizing InfoNCE is maximizing a lower bound on the mutual information (MI) between representations $V$ and $V ^ { \\prime }$ (Oord et al., 2018). Similarly, minimizing the proposed ProtoNCE can be considered as simultaneously maximizing the mutual information between $V$ and all the prototypes $\\{ V ^ { \\prime } , C ^ { 1 } , . . . , C ^ { M } \\}$ . This leads to better representation learning, for two reasons. ",
673
+ "bbox": [
674
+ 173,
675
+ 804,
676
+ 825,
677
+ 861
678
+ ],
679
+ "page_idx": 4
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "First, the encoder would learn the shared information among prototypes, and ignore the individual noise that exists in each prototype. The shared information is more likely to capture higher-level semantic knowledge. Second, we show that compared to instance features, prototypes have a larger mutual information with the class labels. We estimate the mutual information between the instance features (or their assigned prototypes) and the ground-truth class labels for all images in ImageNet (Deng et al., 2009) training set, following the method in (Ross, 2014). We compare the obtained MI of our method (ProtoNCE) and that of MoCo (InfoNCE). As shown in Figure 3(b), compared to instance features, the prototypes have a larger MI with the class labels due to the effect of clustering. Furthermore, compared to InfoNCE, training on ProtoNCE can increase the MI of prototypes as training proceeds, indicating that better representations are learned to form more semantically-meaningful clusters. ",
684
+ "bbox": [
685
+ 174,
686
+ 867,
687
+ 823,
688
+ 924
689
+ ],
690
+ "page_idx": 4
691
+ },
692
+ {
693
+ "type": "image",
694
+ "img_path": "images/e44aaf5d7dd1acb2ac523a000209506c1f567d1121bdcb1883a0700f0057f543.jpg",
695
+ "image_caption": [
696
+ "Figure 3: (a) Histogram of cluster size for PCL ( $\\#$ clusters $k { = } 5 0 0 0 0 )$ ) with fixed or estimated concentration. Using a different $\\phi$ for each prototype yields more balanced clusters with similar sizes, which leads to better representation learning. (b) Mutual info between instance features (or their assigned prototypes) and class labels of all images in ImageNet. Compared to InfoNCE, our ProtoNCE learns better prototypes with more semantics. "
697
+ ],
698
+ "image_footnote": [],
699
+ "bbox": [
700
+ 178,
701
+ 102,
702
+ 813,
703
+ 275
704
+ ],
705
+ "page_idx": 5
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "",
710
+ "bbox": [
711
+ 174,
712
+ 353,
713
+ 825,
714
+ 450
715
+ ],
716
+ "page_idx": 5
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "3.5 PROTOTYPES AS LINEAR CLASSIFIER ",
721
+ "text_level": 1,
722
+ "bbox": [
723
+ 176,
724
+ 465,
725
+ 467,
726
+ 479
727
+ ],
728
+ "page_idx": 5
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "Another interpretation of PCL can provide more insights into the nature of the learned prototypes. The optimization in eqn.(10) is similar to optimizing the cluster-assignment probability $p ( s ; x _ { i } , \\theta )$ using the cross-entropy loss, where the prototypes $c$ represent weights for a linear classifier. With $k$ -means clustering, the linear classifier has a fixed set of weights as the mean vectors for the representations in each cluster, $\\begin{array} { r } { c = { \\frac { 1 } { Z } } \\sum _ { z = 1 } ^ { Z } v _ { z } ^ { \\prime } } \\end{array}$ . A similar idea has been used for few-shot learning (Snell et al., 2017), where a non-parametric prototypical classifier performs better than a parametric linear classifier. ",
733
+ "bbox": [
734
+ 174,
735
+ 488,
736
+ 825,
737
+ 574
738
+ ],
739
+ "page_idx": 5
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "4 EXPERIMENTS ",
744
+ "text_level": 1,
745
+ "bbox": [
746
+ 176,
747
+ 592,
748
+ 326,
749
+ 607
750
+ ],
751
+ "page_idx": 5
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "We evaluate PCL on transfer learning tasks, based on the principle that good representations should transfer with limited supervision and fine-tuning. We follow the settings in MoCo, therefore direct comparisons with MoCo could demonstrate the improvement from the prototypical contrastive loss. ",
756
+ "bbox": [
757
+ 174,
758
+ 625,
759
+ 826,
760
+ 666
761
+ ],
762
+ "page_idx": 5
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "4.1 IMPLEMENTATION DETAILS ",
767
+ "text_level": 1,
768
+ "bbox": [
769
+ 176,
770
+ 681,
771
+ 403,
772
+ 695
773
+ ],
774
+ "page_idx": 5
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "To enable a fair comparison, we follow the same setting as MoCo. We perform training on the ImageNet-1M dataset. A ResNet-50 (He et al., 2016) is adopted as the encoder, whose last fullyconnected layer outputs a 128-D and L2-normalized feature. We follow previous works (He et al., 2020; Wu et al., 2018) and perform data augmentation with random crop, random color jittering, random horizontal flip, and random grayscale conversion. We use SGD as our optimizer, with a weight decay of 0.0001, a momentum of 0.9, and a batch size of 256. We train for 200 epochs, where we warm-up the network in the first 20 epochs by only using the InfoNCE loss. The initial learning rate is 0.03, and is multiplied by 0.1 at 120 and 160 epochs. In terms of the hyper-parameters, we set $\\tau = 0 . 1$ , $\\alpha = 1 0$ , $r = 1 6 0 0 0$ , and number of clusters $K = \\{ 2 5 0 0 0 , 5 0 0 0 { \\bar { 0 } } , 1 0 { \\bar { 0 } } 0 0 0 \\}$ . We also experiment with PCL v2 using improvements introduced by Chen et al. (2020a;b), which includes a MLP projection layer, stronger data augmentation with additional Gaussian blur, and temperature $\\tau = 0 . 2$ . We adopt faiss (Johnson et al., 2017) for efficient $k$ -means clustering. The clustering is performed per-epoch on center-cropped images. We find over-clustering to be beneficial. Recent advances in self-supervised learning have been propelled by huge compute which is inaccessible to many researchers. We instead target a more commonly accessible training resource for PCL with 4 NVIDIA-V100 GPUs and approximately 5 days of training. ",
779
+ "bbox": [
780
+ 173,
781
+ 704,
782
+ 825,
783
+ 925
784
+ ],
785
+ "page_idx": 5
786
+ },
787
+ {
788
+ "type": "table",
789
+ "img_path": "images/ca9cb431426433fadea98b2089bd92770e7571a005dc10b7db72ef0283888af2.jpg",
790
+ "table_caption": [
791
+ "Table 1: Low-shot image classification on both VOC07 and Places205 datasets using linear SVMs trained on fixed representations. All methods were pretrained on ImageNet-1M dataset for 200 epochs (except for Jigsaw trained on ImageNet-14M). We vary the number of labeled examples $k$ and report the mAP (for VOC) and accuracy (for Places) across 5 runs. We use the released pretrained model for MoCo, and re-implement SimCLR. "
792
+ ],
793
+ "table_footnote": [],
794
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">architecture</td><td colspan=\"5\">vOC07</td><td colspan=\"5\">Places205</td></tr><tr><td>k=1</td><td>k=2</td><td>k=4</td><td>k=8</td><td>k=16</td><td>k=1</td><td>k=2</td><td>k=4</td><td>k=8</td><td>k=16</td></tr><tr><td>Random Supervised</td><td>ResNet-50</td><td>8.0 54.3</td><td>8.2 67.8</td><td>8.2 73.9</td><td>8.2 79.6</td><td>8.5 82.3</td><td>0.7 14.9</td><td>0.7 21.0</td><td>0.7 26.9</td><td>0.7 32.1</td><td>0.7 36.0</td></tr><tr><td>Jigsaw MoCo PCL (ours)</td><td>ResNet-50</td><td>26.5 31.4 46.9</td><td>31.1 42.0 56.4</td><td>40.0 49.5 62.8</td><td>46.7 60.0 70.2</td><td>51.8 65.9 74.3</td><td>4.6 8.8 11.3</td><td>6.4 13.2 15.7</td><td>9.4 18.2 19.5</td><td>12.9 23.2 24.1</td><td>17.4 28.0 28.4</td></tr><tr><td>SimCLR MoCo v2 PCL v2 (ours)</td><td>ResNet-50-MLP</td><td>32.7 46.3 47.9 59.6</td><td>43.1 58.3</td><td>52.5 64.9</td><td>61.0 72.5</td><td>67.1 76.1</td><td>9.4 10.9</td><td>14.2 16.3</td><td>19.3 20.8</td><td>23.7 26.0</td><td>28.3 30.1 32.3</td></tr></table>",
795
+ "bbox": [
796
+ 173,
797
+ 101,
798
+ 821,
799
+ 247
800
+ ],
801
+ "page_idx": 6
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "4.2 IMAGE CLASSIFICATION WITH LIMITED TRAINING DATA ",
806
+ "text_level": 1,
807
+ "bbox": [
808
+ 174,
809
+ 339,
810
+ 599,
811
+ 353
812
+ ],
813
+ "page_idx": 6
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "Low-shot classification. We evaluate the learned representation on image classification tasks with few training samples per-category. We follow the setup in Goyal et al. (2019) and train linear SVMs using fixed representations on two datasets: Places205 (Zhou et al., 2014) for scene recognition and PASCAL VOC2007 (Everingham et al., 2010) for object classification. We vary the number $k$ of samples per-class and report the average result across 5 independent runs (standard deviation is reported in appendix C). Table 1 shows the results, in which our method substantially outperforms both MoCo and SimCLR. ",
818
+ "bbox": [
819
+ 173,
820
+ 367,
821
+ 825,
822
+ 465
823
+ ],
824
+ "page_idx": 6
825
+ },
826
+ {
827
+ "type": "text",
828
+ "text": "Semi-supervised image classification. We perform semi-supervised learning experiments to evaluate whether the learned representation can provide a good basis for fine-tuning. Following the setup from Wu et al. (2018); Misra & van der Maaten (2020), we randomly select a subset $1 \\%$ or $10 \\%$ ) of ImageNet training data (with labels), and fine-tune the self-supervised trained model on these subsets. Table 2 reports the top-5 accuracy on ImageNet validation set. Our method sets a new state-of-the-art under 200 training epochs, outperforming both self-supervised learning methods and semi-supervised learning methods. The standard deviation across 5 runs is low $< 0 . 6$ for $1 \\%$ labels). ",
829
+ "bbox": [
830
+ 173,
831
+ 472,
832
+ 826,
833
+ 570
834
+ ],
835
+ "page_idx": 6
836
+ },
837
+ {
838
+ "type": "table",
839
+ "img_path": "images/60e1ce1cf464d231121b8e1bd60407a047df61505bc94c6667ed08630e5d7106.jpg",
840
+ "table_caption": [
841
+ "Table 2: Semi-supervised learning on ImageNet. We report top-5 accuracy on the ImageNet validation set of self-supervised models that are finetuned on $1 \\%$ or $10 \\%$ of labeled data. ‡: SimCLR, BYOL, and SwAV use a large batch size of 4096. ‡: SwAV uses multi-crop augmentation. "
842
+ ],
843
+ "table_footnote": [],
844
+ "table_body": "<table><tr><td>Method</td><td>architecture</td><td>#pretrain epochs</td><td>Top-5 Accuracy 1%</td><td>10%</td></tr><tr><td>Random (Wu et al., 2018)</td><td>ResNet-50</td><td></td><td>22.0</td><td>59.0</td></tr><tr><td>Supervised baseline (Zhai et al., 2019)</td><td>ResNet-50</td><td></td><td>48.4</td><td>80.4</td></tr><tr><td>Semi-supervised learningmethods:</td><td></td><td></td><td></td><td></td></tr><tr><td>Pseudolabels (Zhai etal.,2019)</td><td>ResNet-50v2</td><td></td><td>51.6</td><td>82.4</td></tr><tr><td>VAT + Entropy Min. (Miyato et al., 2019)</td><td>ResNet-50v2</td><td></td><td>47.0</td><td>83.4</td></tr><tr><td>S4L Rotation (Zhai et al.,2019)</td><td>ResNet-50v2</td><td></td><td>53.4</td><td>83.8</td></tr><tr><td>Self-supervised learningmethods:</td><td></td><td></td><td></td><td></td></tr><tr><td>Instance Discrimination (Wu et al.,2018)</td><td>ResNet-50</td><td>200</td><td>39.2</td><td>77.4</td></tr><tr><td>Jigsaw (Noroozi &amp; Favaro,2016)</td><td>ResNet-50</td><td>90</td><td>45.3</td><td>79.3</td></tr><tr><td>SimCLR (Chen et al.,2020a)</td><td>ResNet-50-MLP</td><td>200</td><td>56.5</td><td>82.7</td></tr><tr><td>MoCo (He et al.,2020)</td><td>ResNet-50</td><td>200</td><td>56.9</td><td>83.0</td></tr><tr><td>MoCo v2 (Chen et al., 2020b)</td><td>ResNet-50-MLP</td><td>200</td><td>66.3</td><td>84.4</td></tr><tr><td>PCL v2 (ours)</td><td>ResNet-50-MLP</td><td>200</td><td>73.9</td><td>85.0</td></tr><tr><td>PCL (ours)</td><td>ResNet-50</td><td>200</td><td>75.3</td><td>85.6</td></tr><tr><td>PIRL (Misra &amp; van der Maaten, 2020)</td><td>ResNet-50</td><td>800</td><td>57.2</td><td>83.8</td></tr><tr><td>SimCLR Chen et al. (2020a)</td><td>ResNet-50-MLP</td><td>1000</td><td>75.5†</td><td>87.8†</td></tr><tr><td>BYOL (Grill et al., 2020)</td><td>ResNet-50-MLPbig</td><td>1000</td><td>78.4t</td><td>89.0†</td></tr><tr><td>SwAV (Caron et al., 2020)</td><td>ResNet-50-MLP</td><td>800</td><td>78.5</td><td>89.9t</td></tr></table>",
845
+ "bbox": [
846
+ 207,
847
+ 589,
848
+ 787,
849
+ 864
850
+ ],
851
+ "page_idx": 6
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "4.3 IMAGE CLASSIFICATION BENCHMARKS ",
856
+ "text_level": 1,
857
+ "bbox": [
858
+ 176,
859
+ 103,
860
+ 482,
861
+ 117
862
+ ],
863
+ "page_idx": 7
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Linear classifiers. Next, we train linear classifiers on fixed image representations using the entire labeled training data. We evaluate the performance of such linear classifiers on three datasets: ImageNet, VOC07, and Places205. Table 3 reports the results. PCL outperforms MoCo under direct comparison, which demonstrate the advantage of the proposed prototypical contrastive loss. ",
868
+ "bbox": [
869
+ 173,
870
+ 126,
871
+ 825,
872
+ 184
873
+ ],
874
+ "page_idx": 7
875
+ },
876
+ {
877
+ "type": "table",
878
+ "img_path": "images/9e4ad8c5f3f3b112193948590e2ae2451923f89b7bc417492a14b6d345ae74f2.jpg",
879
+ "table_caption": [
880
+ "Table 3: Image classification with linear models. We report top-1 accuracy. Numbers with ∗ are from released pretrained model; all other numbers are adopted from corresponding papers. †: LocalAgg uses 10-crop evaluation. ADMIM uses FastAutoAugment (Lim et al., 2019) that is supervised by ImageNet labels. SwAV uses multi-crop augmentation. SimCLR, BYOL, and SwAV use a large batch size of 4096. "
881
+ ],
882
+ "table_footnote": [],
883
+ "table_body": "<table><tr><td>Method</td><td>architecture (#params)</td><td>#pretrain epochs</td><td>ImageNet</td><td>Dataset VOC07</td><td>Places205</td></tr><tr><td>Jigsaw (Noroozi &amp; Favaro,2016) Rotation (Gidaris et al.,2018) DeepCluster (Caron et al., 2018) BigBiGAN (Donahue &amp; Simonyan, 2019) InstDisc (Wu et al., 2018) MoCo (He et al., 2020)</td><td>R50 (24M) R50 (24M) VGG(15M) R50 (24M) R50 (24M) R50 (24M)</td><td>90 1 100 200</td><td>45.7 48.9 48.4 56.6 54.0</td><td>64.5 63.9 71.9 1 一</td><td>41.2 41.4 37.9 1 45.5</td></tr><tr><td>SimCLR(Chen et al.,2020a) MoCo v2(Chen et al.,2020b) PCL v2 (ours)</td><td>R50 (24M) R50-MLP (28M) R50-MLP (28M) R50-MLP (28M)</td><td>200 200 200 200</td><td>61.5 61.9 67.5 67.6</td><td>82.3 一 84.0* 85.4</td><td>49.2 50.1* 50.3</td></tr><tr><td>SelfLabel (Asano et al.,2020) CPC (Oord et al., 2018)</td><td>R50 (24M) R50 (24M)</td><td>200 400</td><td>60.2† 61.5</td><td>1 1</td><td>50.1†</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>R50 (24M)</td><td>800</td><td></td><td></td><td>49.8</td></tr><tr><td></td><td></td><td>280</td><td>64.0</td><td></td><td></td></tr><tr><td></td><td>R101 (28M)</td><td></td><td>48.7</td><td>1</td><td>1</td></tr><tr><td>CMC (Tian et al.,2019)</td><td>R50L+ab (47M)</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td>1</td><td>一</td></tr><tr><td>PIRL (Misra &amp; van der Maaten,2020)</td><td></td><td></td><td>63.6</td><td>81.1</td><td></td></tr><tr><td>AMDIM (Bachman et al.,2019)</td><td>Custom (626M)</td><td>150</td><td>68.1†</td><td>一</td><td>55.0+</td></tr><tr><td>SimCLR (Chen et al.,2020a)</td><td>R50-MLP (28M)</td><td>1000</td><td>69.3†</td><td>80.5†</td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>1</td></tr><tr><td>BYOL (Grill et al., 2020)</td><td>R50-MLPbig(35M)</td><td>1000</td><td>74.3†</td><td>-</td><td></td></tr><tr><td>SwAV (Caron et al.,2020)</td><td>R50-MLP (28M)</td><td>800</td><td>75.3t</td><td>88.9t</td><td>56.7+</td></tr></table>",
884
+ "bbox": [
885
+ 171,
886
+ 190,
887
+ 823,
888
+ 470
889
+ ],
890
+ "page_idx": 7
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "KNN classifiers. We perform $\\mathbf { k }$ -nearest neighbor (kNN) classification on ImageNet. For a query image with feature $v$ , we take its top $k$ nearest neighbors from the momentum features, and perform weighted-combination of their labels where the weights are calculated by $\\exp ( v \\cdot v _ { i } ^ { \\prime } / \\tau )$ . Table 4 reports the accuracy. Our method substantially outperforms previous methods. ",
895
+ "bbox": [
896
+ 174,
897
+ 560,
898
+ 825,
899
+ 617
900
+ ],
901
+ "page_idx": 7
902
+ },
903
+ {
904
+ "type": "table",
905
+ "img_path": "images/9ae5ce0e3bf9fa3680738d9341f16afc9ffd22d91dbb85f97b1de39a9bd6ad76.jpg",
906
+ "table_caption": [
907
+ "Table 4: Image classification with kNN classifiers using ResNet-50 features on ImageNet. "
908
+ ],
909
+ "table_footnote": [],
910
+ "table_body": "<table><tr><td>Method</td><td>Inst.Disc.(Wu et al.,2018)|MoCo (He et al.,2020)|LA (Zhuang et al.,2019)|PCL (ours)</td><td></td><td></td><td></td></tr><tr><td>Accuracy</td><td>46.5</td><td>47.1</td><td>49.4</td><td>54.5</td></tr></table>",
911
+ "bbox": [
912
+ 169,
913
+ 630,
914
+ 821,
915
+ 670
916
+ ],
917
+ "page_idx": 7
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "4.4 CLUSTERING EVALUATION ",
922
+ "text_level": 1,
923
+ "bbox": [
924
+ 176,
925
+ 713,
926
+ 400,
927
+ 727
928
+ ],
929
+ "page_idx": 7
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "In Table 5, we evaluate the $k$ -means clustering performance on ImageNet using representations learned by different methods. PCL leads to substantially higher adjusted mutual information (AMI) score. Details are given in appendix F. ",
934
+ "bbox": [
935
+ 174,
936
+ 733,
937
+ 825,
938
+ 775
939
+ ],
940
+ "page_idx": 7
941
+ },
942
+ {
943
+ "type": "table",
944
+ "img_path": "images/dc065f856a144a657aaf105c5177db44602c055287ed23b79ffbe8ef09b048a2.jpg",
945
+ "table_caption": [],
946
+ "table_footnote": [
947
+ "Table 5: AMI score for $\\mathbf { k }$ -means clustering $k = 2 5 0 0 0 )$ on ImageNet representation. "
948
+ ],
949
+ "table_body": "<table><tr><td></td><td>Method|DeepCluster (Caron et al., 2018)|MoCo (He et al.,2020)|PCL (ours)</td><td></td><td></td></tr><tr><td>AMI</td><td>0.281</td><td>0.285</td><td>0.410</td></tr></table>",
950
+ "bbox": [
951
+ 241,
952
+ 782,
953
+ 751,
954
+ 824
955
+ ],
956
+ "page_idx": 7
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "4.5 OBJECT DETECTION ",
961
+ "text_level": 1,
962
+ "bbox": [
963
+ 174,
964
+ 861,
965
+ 354,
966
+ 876
967
+ ],
968
+ "page_idx": 7
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "We assess the representation on object detection. Following Goyal et al. (2019), we train a Faster R-CNN (Ren et al., 2015) on VOC07 or $\\mathrm { v o c } 0 7 { + } 1 2$ , and evaluate on the test set of VOC07. We keep the pretrained backbone frozen to better evaluate the learned representation, and use the same schedule for all methods. Table 6 reports the average mAP across three runs. Our method substantially closes the gap between self-supervised methods and supervised training. In appendix D, we show the results for fine-tuning the pretrained model for object detection and instance segmentation on COCO (Lin et al., 2014), where PCL outperforms both MoCo and supervised training. ",
973
+ "bbox": [
974
+ 174,
975
+ 882,
976
+ 823,
977
+ 924
978
+ ],
979
+ "page_idx": 7
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "",
984
+ "bbox": [
985
+ 176,
986
+ 103,
987
+ 823,
988
+ 160
989
+ ],
990
+ "page_idx": 8
991
+ },
992
+ {
993
+ "type": "table",
994
+ "img_path": "images/1dbd4dfbdc7608f131bc9f56180a2536212ff888741d06b0d0d2ec7baed4cd44.jpg",
995
+ "table_caption": [],
996
+ "table_footnote": [
997
+ "Table 6: Object detection for frozen conv body on VOC using Faster R-CNN. "
998
+ ],
999
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Pretrain Dataset|Architecture</td><td rowspan=1 colspan=1>Pretrain Dataset|Architecture</td><td rowspan=1 colspan=2>Training dataVOC07 VOC07+12</td></tr><tr><td rowspan=1 colspan=1>Supervised</td><td rowspan=1 colspan=1>ImageNet-1M</td><td rowspan=1 colspan=1>Resnet-50-FPN</td><td rowspan=1 colspan=1>72.8</td><td rowspan=1 colspan=1>79.3</td></tr><tr><td rowspan=1 colspan=1>MoCo (He et al.,2020)PCL (ours)</td><td rowspan=1 colspan=1>ImageNet-1MImageNet-1M</td><td rowspan=1 colspan=1>Resnet-50-FPNResnet-50-FPN</td><td rowspan=1 colspan=1>66.471.7</td><td rowspan=1 colspan=1>73.578.5</td></tr></table>",
1000
+ "bbox": [
1001
+ 232,
1002
+ 175,
1003
+ 763,
1004
+ 256
1005
+ ],
1006
+ "page_idx": 8
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "5 VISUALIZATION OF LEARNED REPRESENTATION ",
1011
+ "text_level": 1,
1012
+ "bbox": [
1013
+ 174,
1014
+ 301,
1015
+ 602,
1016
+ 316
1017
+ ],
1018
+ "page_idx": 8
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "In Figure 4, we visualize the unsupervised learned representation of ImageNet training images using t-SNE (Maaten & Hinton, 2008). Compared to the representation learned by MoCo, the representation learned by the proposed PCL forms more separated clusters, which also suggests representation of lower entropy. ",
1023
+ "bbox": [
1024
+ 173,
1025
+ 333,
1026
+ 825,
1027
+ 390
1028
+ ],
1029
+ "page_idx": 8
1030
+ },
1031
+ {
1032
+ "type": "image",
1033
+ "img_path": "images/79db6061c20db4241e80f5466ea60ca4ddbd74e67a6138faa58313f4f6748406.jpg",
1034
+ "image_caption": [
1035
+ "Figure 4: T-SNE visualization of the unsupervised learned representation for ImageNet training images from the first 40 classes. Left: MoCo; Right: PCL (ours). Colors represent classes. "
1036
+ ],
1037
+ "image_footnote": [],
1038
+ "bbox": [
1039
+ 179,
1040
+ 411,
1041
+ 818,
1042
+ 734
1043
+ ],
1044
+ "page_idx": 8
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "6 CONCLUSION ",
1049
+ "text_level": 1,
1050
+ "bbox": [
1051
+ 174,
1052
+ 811,
1053
+ 318,
1054
+ 827
1055
+ ],
1056
+ "page_idx": 8
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "This paper proposes Prototypical Contrastive Learning, a generic unsupervised representation learning framework that finds network parameters to maximize the log-likelihood of the observed data. We introduce prototypes as latent variables, and perform iterative clustering and representation learning in an EM-based framework. PCL learns an embedding space which encodes the semantic structure of data, by training on the proposed ProtoNCE loss. Our extensive experiments on multiple benchmarks demonstrate the advantage of PCL for unsupervised representation learning. ",
1061
+ "bbox": [
1062
+ 173,
1063
+ 840,
1064
+ 825,
1065
+ 924
1066
+ ],
1067
+ "page_idx": 8
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "REFERENCES ",
1072
+ "text_level": 1,
1073
+ "bbox": [
1074
+ 176,
1075
+ 102,
1076
+ 287,
1077
+ 118
1078
+ ],
1079
+ "page_idx": 9
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Yuki Markus Asano, Christian Rupprecht, and Andrea Vedaldi. Self-labelling via simultaneous clustering and representation learning. In ICLR, 2020. ",
1084
+ "bbox": [
1085
+ 174,
1086
+ 126,
1087
+ 823,
1088
+ 155
1089
+ ],
1090
+ "page_idx": 9
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Philip Bachman, R. Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. arXiv preprint arXiv:1906.00910, 2019. ",
1095
+ "bbox": [
1096
+ 171,
1097
+ 165,
1098
+ 823,
1099
+ 194
1100
+ ],
1101
+ "page_idx": 9
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In ECCV, pp. 139–156, 2018. ",
1106
+ "bbox": [
1107
+ 171,
1108
+ 203,
1109
+ 823,
1110
+ 233
1111
+ ],
1112
+ "page_idx": 9
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Mathilde Caron, Piotr Bojanowski, Julien Mairal, and Armand Joulin. Unsupervised pre-training of image features on non-curated data. In ICCV, pp. 2959–2968, 2019. ",
1117
+ "bbox": [
1118
+ 169,
1119
+ 242,
1120
+ 825,
1121
+ 272
1122
+ ],
1123
+ "page_idx": 9
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. In NeurIPS, 2020. ",
1128
+ "bbox": [
1129
+ 173,
1130
+ 281,
1131
+ 823,
1132
+ 311
1133
+ ],
1134
+ "page_idx": 9
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "Jianlong Chang, Lingfeng Wang, Gaofeng Meng, Shiming Xiang, and Chunhong Pan. Deep adaptive image clustering. In ICCV, pp. 5880–5888, 2017. ",
1139
+ "bbox": [
1140
+ 171,
1141
+ 320,
1142
+ 821,
1143
+ 349
1144
+ ],
1145
+ "page_idx": 9
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Kai Chen, Jiaqi Wang, Jiangmiao Pang, Yuhang Cao, Yu Xiong, Xiaoxiao Li, Shuyang Sun, Wansen Feng, Ziwei Liu, Jiarui Xu, Zheng Zhang, Dazhi Cheng, Chenchen Zhu, Tianheng Cheng, Qijie Zhao, Buyu Li, Xin Lu, Rui Zhu, Yue Wu, Jifeng Dai, Jingdong Wang, Jianping Shi, Wanli Ouyang, Chen Change Loy, and Dahua Lin. MMDetection: Open mmlab detection toolbox and benchmark. arXiv preprint arXiv:1906.07155, 2019. ",
1150
+ "bbox": [
1151
+ 173,
1152
+ 358,
1153
+ 826,
1154
+ 430
1155
+ ],
1156
+ "page_idx": 9
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In ICML, 2020a. ",
1161
+ "bbox": [
1162
+ 169,
1163
+ 439,
1164
+ 823,
1165
+ 469
1166
+ ],
1167
+ "page_idx": 9
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020b. ",
1172
+ "bbox": [
1173
+ 171,
1174
+ 478,
1175
+ 823,
1176
+ 508
1177
+ ],
1178
+ "page_idx": 9
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Fei-Fei Li. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248–255, 2009. ",
1183
+ "bbox": [
1184
+ 169,
1185
+ 517,
1186
+ 823,
1187
+ 547
1188
+ ],
1189
+ "page_idx": 9
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "Carl Doersch, Abhinav Gupta, and Alexei A. Efros. Unsupervised visual representation learning by context prediction. In ICCV, pp. 1422–1430, 2015. ",
1194
+ "bbox": [
1195
+ 174,
1196
+ 556,
1197
+ 825,
1198
+ 585
1199
+ ],
1200
+ "page_idx": 9
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "Jeff Donahue and Karen Simonyan. Large scale adversarial representation learning. In NeurIPS, pp. 10541–10551, 2019. ",
1205
+ "bbox": [
1206
+ 173,
1207
+ 594,
1208
+ 823,
1209
+ 625
1210
+ ],
1211
+ "page_idx": 9
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "Alexey Dosovitskiy, Jost Tobias Springenberg, Martin A. Riedmiller, and Thomas Brox. Discriminative unsupervised feature learning with convolutional neural networks. In NIPS, pp. 766–774, 2014. ",
1216
+ "bbox": [
1217
+ 174,
1218
+ 633,
1219
+ 826,
1220
+ 676
1221
+ ],
1222
+ "page_idx": 9
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "Mark Everingham, Luc Van Gool, Christopher K. I. Williams, John M. Winn, and Andrew Zisserman. The pascal visual object classes (VOC) challenge. International Journal of Computer Vision, 88 (2):303–338, 2010. ",
1227
+ "bbox": [
1228
+ 173,
1229
+ 686,
1230
+ 826,
1231
+ 729
1232
+ ],
1233
+ "page_idx": 9
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Rong-En Fan, Kai-Wei Chang, Cho-Jui Hsieh, Xiang-Rui Wang, and Chih-Jen Lin. LIBLINEAR: A library for large linear classification. JMLR, 9:1871–1874, 2008. ",
1238
+ "bbox": [
1239
+ 171,
1240
+ 739,
1241
+ 825,
1242
+ 768
1243
+ ],
1244
+ "page_idx": 9
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "Wouter Van Gansbeke, Simon Vandenhende, Stamatios Georgoulis, Marc Proesmans, and Luc Van Gool. SCAN: learning to classify images without labels. In ECCV, pp. 268–285, 2020. ",
1249
+ "bbox": [
1250
+ 171,
1251
+ 779,
1252
+ 823,
1253
+ 808
1254
+ ],
1255
+ "page_idx": 9
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Spyros Gidaris, Praveer Singh, and Nikos Komodakis. Unsupervised representation learning by predicting image rotations. In ICLR, 2018. ",
1260
+ "bbox": [
1261
+ 171,
1262
+ 816,
1263
+ 823,
1264
+ 847
1265
+ ],
1266
+ "page_idx": 9
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "Ross Girshick, Ilija Radosavovic, Georgia Gkioxari, Piotr Dollár, and Kaiming He. Detectron. https://github.com/facebookresearch/detectron, 2018. ",
1271
+ "bbox": [
1272
+ 174,
1273
+ 856,
1274
+ 823,
1275
+ 886
1276
+ ],
1277
+ "page_idx": 9
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "Priya Goyal, Dhruv Mahajan, Abhinav Gupta, and Ishan Misra. Scaling and benchmarking selfsupervised visual representation learning. In ICCV, pp. 6391–6400, 2019. ",
1282
+ "bbox": [
1283
+ 174,
1284
+ 895,
1285
+ 823,
1286
+ 924
1287
+ ],
1288
+ "page_idx": 9
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko. Bootstrap your own latent: A new approach to self-supervised learning. In NeurIPS, 2020. ",
1293
+ "bbox": [
1294
+ 174,
1295
+ 103,
1296
+ 826,
1297
+ 160
1298
+ ],
1299
+ "page_idx": 10
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "text": "Michael Gutmann and Aapo Hyvärinen. Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In AISTATS, pp. 297–304, 2010. ",
1304
+ "bbox": [
1305
+ 174,
1306
+ 169,
1307
+ 821,
1308
+ 198
1309
+ ],
1310
+ "page_idx": 10
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016. ",
1315
+ "bbox": [
1316
+ 176,
1317
+ 207,
1318
+ 821,
1319
+ 236
1320
+ ],
1321
+ "page_idx": 10
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "Kaiming He, Georgia Gkioxari, Piotr Dollár, and Ross B. Girshick. Mask R-CNN. In ICCV, pp. 2980–2988, 2017. ",
1326
+ "bbox": [
1327
+ 173,
1328
+ 244,
1329
+ 823,
1330
+ 273
1331
+ ],
1332
+ "page_idx": 10
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020. ",
1337
+ "bbox": [
1338
+ 173,
1339
+ 284,
1340
+ 821,
1341
+ 313
1342
+ ],
1343
+ "page_idx": 10
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "R. Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Philip Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In ICLR, 2019. ",
1348
+ "bbox": [
1349
+ 174,
1350
+ 320,
1351
+ 823,
1352
+ 363
1353
+ ],
1354
+ "page_idx": 10
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "Xu Ji, João F Henriques, and Andrea Vedaldi. Invariant information clustering for unsupervised image classification and segmentation. In ICCV, pp. 9865–9874, 2019. ",
1359
+ "bbox": [
1360
+ 173,
1361
+ 372,
1362
+ 823,
1363
+ 402
1364
+ ],
1365
+ "page_idx": 10
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Jeff Johnson, Matthijs Douze, and Hervé Jégou. Billion-scale similarity search with gpus. arXiv preprint arXiv:1702.08734, 2017. ",
1370
+ "bbox": [
1371
+ 174,
1372
+ 410,
1373
+ 823,
1374
+ 440
1375
+ ],
1376
+ "page_idx": 10
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "Renjie Liao, Alexander G. Schwing, Richard S. Zemel, and Raquel Urtasun. Learning deep parsimonious representations. In NIPS, pp. 5076–5084, 2016. ",
1381
+ "bbox": [
1382
+ 174,
1383
+ 449,
1384
+ 823,
1385
+ 478
1386
+ ],
1387
+ "page_idx": 10
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast autoaugment. In NeurIPS, pp. 6662–6672, 2019. ",
1392
+ "bbox": [
1393
+ 174,
1394
+ 486,
1395
+ 823,
1396
+ 516
1397
+ ],
1398
+ "page_idx": 10
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "Tsung-Yi Lin, Michael Maire, Serge J. Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft COCO: common objects in context. In ECCV, pp. 740–755, 2014. ",
1403
+ "bbox": [
1404
+ 173,
1405
+ 525,
1406
+ 823,
1407
+ 568
1408
+ ],
1409
+ "page_idx": 10
1410
+ },
1411
+ {
1412
+ "type": "text",
1413
+ "text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9:2579–2605, 2008. ",
1414
+ "bbox": [
1415
+ 169,
1416
+ 577,
1417
+ 825,
1418
+ 606
1419
+ ],
1420
+ "page_idx": 10
1421
+ },
1422
+ {
1423
+ "type": "text",
1424
+ "text": "Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. In CVPR, 2020. ",
1425
+ "bbox": [
1426
+ 169,
1427
+ 614,
1428
+ 825,
1429
+ 643
1430
+ ],
1431
+ "page_idx": 10
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: A regularization method for supervised and semi-supervised learning. IEEE Trans. Pattern Anal. Mach. Intell., 41(8):1979–1993, 2019. ",
1436
+ "bbox": [
1437
+ 176,
1438
+ 652,
1439
+ 825,
1440
+ 695
1441
+ ],
1442
+ "page_idx": 10
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "Xuan Vinh Nguyen, Julien Epps, and James Bailey. Information theoretic measures for clusterings comparison: Variants, properties, normalization and correction for chance. J. Mach. Learn. Res., 11:2837–2854, 2010. ",
1447
+ "bbox": [
1448
+ 173,
1449
+ 705,
1450
+ 825,
1451
+ 747
1452
+ ],
1453
+ "page_idx": 10
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In ECCV, pp. 69–84, 2016. ",
1458
+ "bbox": [
1459
+ 173,
1460
+ 757,
1461
+ 823,
1462
+ 786
1463
+ ],
1464
+ "page_idx": 10
1465
+ },
1466
+ {
1467
+ "type": "text",
1468
+ "text": "Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. ",
1469
+ "bbox": [
1470
+ 173,
1471
+ 794,
1472
+ 821,
1473
+ 824
1474
+ ],
1475
+ "page_idx": 10
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "Deepak Pathak, Philipp Krähenbühl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context encoders: Feature learning by inpainting. In CVPR, pp. 2536–2544, 2016. ",
1480
+ "bbox": [
1481
+ 176,
1482
+ 833,
1483
+ 821,
1484
+ 863
1485
+ ],
1486
+ "page_idx": 10
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. Faster R-CNN: towards real-time object detection with region proposal networks. In NIPS, pp. 91–99, 2015. ",
1491
+ "bbox": [
1492
+ 173,
1493
+ 871,
1494
+ 821,
1495
+ 900
1496
+ ],
1497
+ "page_idx": 10
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "Brian C Ross. Mutual information between discrete and continuous data sets. PloS one, 9(2), 2014. ",
1502
+ "bbox": [
1503
+ 171,
1504
+ 909,
1505
+ 823,
1506
+ 924
1507
+ ],
1508
+ "page_idx": 10
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "Nikunj Saunshi, Orestis Plevrakis, Sanjeev Arora, Mikhail Khodak, and Hrishikesh Khandeparkar. A theoretical analysis of contrastive unsupervised representation learning. In ICML, pp. 5628–5637, 2019. \nJake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot learning. In NIPS, pp. 4077–4087, 2017. \nYonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive multiview coding. arXiv preprint arXiv:1906.05849, 2019. \nMichael Tschannen, Josip Djolonga, Paul K. Rubenstein, Sylvain Gelly, and Mario Lucic. On mutual information maximization for representation learning. In ICLR, 2020. \nZhirong Wu, Yuanjun Xiong, Stella X. Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In CVPR, pp. 3733–3742, 2018. \nJunyuan Xie, Ross B. Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering analysis. In ICML, pp. 478–487, 2016. \nBo Yang, Xiao Fu, Nicholas D. Sidiropoulos, and Mingyi Hong. Towards k-means-friendly spaces: Simultaneous deep learning and clustering. In ICML, pp. 3861–3870, 2017. \nJianwei Yang, Devi Parikh, and Dhruv Batra. Joint unsupervised learning of deep representations and image clusters. In CVPR, pp. 5147–5156, 2016. \nMang Ye, Xu Zhang, Pong C. Yuen, and Shih-Fu Chang. Unsupervised embedding learning via invariant and spreading instance feature. In CVPR, pp. 6210–6219, 2019. \nXiaohua Zhai, Avital Oliver, Alexander Kolesnikov, and Lucas Beyer. S4l: Self-supervised semisupervised learning. In ICCV, pp. 1476–1485, 2019. \nXiaohang Zhan, Jiahao Xie, Ziwei Liu, Yew-Soon Ong, and Chen Change Loy. Online deep clustering for unsupervised representation learning. In CVPR, pp. 6687–6696, 2020. \nLiheng Zhang, Guo-Jun Qi, Liqiang Wang, and Jiebo Luo. AET vs. AED: unsupervised representation learning by auto-encoding transformations rather than data. In CVPR, 2019. \nRichard Zhang, Phillip Isola, and Alexei A. Efros. Colorful image colorization. In ECCV, pp. 649–666, 2016. \nRichard Zhang, Phillip Isola, and Alexei Efros. Split-brain autoencoders: Unsupervised learning by cross-channel prediction. In CVPR, pp. 1058–1067, 2017. \nBolei Zhou, Àgata Lapedriza, Jianxiong Xiao, Antonio Torralba, and Aude Oliva. Learning deep features for scene recognition using places database. In NIPS, pp. 487–495, 2014. \nChengxu Zhuang, Alex Lin Zhai, and Daniel Yamins. Local aggregation for unsupervised learning of visual embeddings. In ICCV, pp. 6002–6012, 2019. ",
1513
+ "bbox": [
1514
+ 171,
1515
+ 92,
1516
+ 828,
1517
+ 717
1518
+ ],
1519
+ "page_idx": 11
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "APPENDIX A ABLATION ON PROTONCE ",
1524
+ "text_level": 1,
1525
+ "bbox": [
1526
+ 176,
1527
+ 102,
1528
+ 526,
1529
+ 118
1530
+ ],
1531
+ "page_idx": 12
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "The proposed loss in eqn.(11) contains two terms: the instance-wise contrastive loss and the proposed prototypical contrastive loss. Here we study the effect of each term on representation learning. Table 7 reports the results for low-resource fine-tuning and linear classification on ImageNet. The prototypical term plays an important role, especially in the fine-tuning experiment. The warm-up also improves the result by bootstrapping the clustering with better representations. ",
1536
+ "bbox": [
1537
+ 173,
1538
+ 131,
1539
+ 825,
1540
+ 202
1541
+ ],
1542
+ "page_idx": 12
1543
+ },
1544
+ {
1545
+ "type": "table",
1546
+ "img_path": "images/fdce67821e8b791dcc1edda4e64fc3119f67348555a325e502c67bfed5d9142b.jpg",
1547
+ "table_caption": [
1548
+ "Table 7: Effect of instance-wise contrastive loss and prototypical contrastive loss. "
1549
+ ],
1550
+ "table_footnote": [],
1551
+ "table_body": "<table><tr><td>Method</td><td></td><td>1% fine-tuning (top-5 acc.)|linear classification (top-1 acc.)</td></tr><tr><td>instance only</td><td>56.9</td><td>60.6</td></tr><tr><td>proto only (w/o warm-up)</td><td>60.7</td><td>60.4</td></tr><tr><td>proto only (w/ warm-up)</td><td>72.3</td><td>60.9</td></tr><tr><td>instance + proto (w/o warm-up)</td><td>74.6</td><td>61.3</td></tr><tr><td>instance + proto (w/ warm-up)</td><td>75.3</td><td>61.5</td></tr></table>",
1552
+ "bbox": [
1553
+ 178,
1554
+ 217,
1555
+ 820,
1556
+ 318
1557
+ ],
1558
+ "page_idx": 12
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "APPENDIX B PSEUDO-CODE FOR PROTOTYPICAL CONTRASTIVE LEARNING ",
1563
+ "text_level": 1,
1564
+ "bbox": [
1565
+ 173,
1566
+ 373,
1567
+ 816,
1568
+ 390
1569
+ ],
1570
+ "page_idx": 12
1571
+ },
1572
+ {
1573
+ "type": "text",
1574
+ "text": "Algorithm 1: Prototypical Contrastive Learning. ",
1575
+ "text_level": 1,
1576
+ "bbox": [
1577
+ 174,
1578
+ 417,
1579
+ 470,
1580
+ 431
1581
+ ],
1582
+ "page_idx": 12
1583
+ },
1584
+ {
1585
+ "type": "text",
1586
+ "text": "1 Input: encoder $f _ { \\theta }$ , training dataset $X$ , number of clusters $K = \\{ k _ { m } \\} _ { m = 1 } ^ { M }$ \n2 $\\theta ^ { \\prime } = \\theta$ // initialize momentum encoder as the encoder \n3 while not MaxEpoch do /\\* E-step \\*/ \n4 $V ^ { \\prime } = f _ { \\theta ^ { \\prime } } ( X )$ // get momentum features for all training data \n5 for $m = 1$ to $M$ do \n6 $C ^ { m } = k { \\mathrm { - m e a n s } } ( V ^ { \\prime } , k _ { m } )$ // cluster $V ^ { \\prime }$ into $k _ { m }$ clusters, return prototypes \n7 $\\phi _ { m } = \\mathrm { C o n c e n t r a t i o n } ( C ^ { m } , V ^ { \\prime } )$ // estimate the distribution concentration around each prototype with Equation 12 \n8 end /\\* M-step \\*/ \n9 for $_ x$ in Dataloader $( X )$ do // load a minibatch $x$ \n10 $v = f _ { \\theta } ( x ) , v ^ { \\prime } = \\dot { f } _ { \\theta ^ { \\prime } } ( x )$ // forward pass through encoder and momentum encoder \n11 $\\begin{array} { r l } { \\mathcal { L } _ { \\mathrm { P r o t o N C E } } ( v , v ^ { \\prime } , \\{ C ^ { m } \\} _ { m = 1 } ^ { M } , \\{ \\phi _ { m } \\} _ { m = 1 } ^ { M } ) } & { { } } \\end{array}$ // calculate loss with Equation 11 \n12 $\\theta = \\mathrm { S G D } ( \\mathcal { L } _ { \\mathrm { P r o t o N C E } } , \\theta )$ ) // update encoder parameters \n13 $\\theta ^ { \\prime } = 0 . 9 9 9 * \\theta ^ { \\prime } + 0 . 0 0 1 * \\theta$ // update momentum encoder \n14 end \n15 end ",
1587
+ "bbox": [
1588
+ 158,
1589
+ 435,
1590
+ 810,
1591
+ 705
1592
+ ],
1593
+ "page_idx": 12
1594
+ },
1595
+ {
1596
+ "type": "text",
1597
+ "text": "APPENDIX D COCO OBJECT DETECTION AND SEGMENTATION ",
1598
+ "text_level": 1,
1599
+ "bbox": [
1600
+ 176,
1601
+ 102,
1602
+ 707,
1603
+ 118
1604
+ ],
1605
+ "page_idx": 13
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "Following the experiment setting in (He et al., 2020), we use Mask R-CNN (He et al., 2017) with C4 backbone. We finetune all layers end-to-end on the COCO train2017 set and evaluate on val2017. The schedule is the default $2 \\times$ in (Girshick et al., 2018). PCL outperforms both MoCo (He et al., 2020) and supervised pre-training in all metrics. ",
1610
+ "bbox": [
1611
+ 176,
1612
+ 141,
1613
+ 825,
1614
+ 198
1615
+ ],
1616
+ "page_idx": 13
1617
+ },
1618
+ {
1619
+ "type": "table",
1620
+ "img_path": "images/356938be14859d8e136b044aad19f323b9788aa6bec2a3092378b9ef9a837620.jpg",
1621
+ "table_caption": [],
1622
+ "table_footnote": [
1623
+ "Table 9: Object detection and instance segmentation fine-tuned on COCO. We evaluate bounding-box AP $( \\mathsf { A P } ^ { \\mathsf { b b } } )$ and mask AP $( \\mathbf { A P } ^ { \\mathrm { m k } } )$ on val2017. "
1624
+ ],
1625
+ "table_body": "<table><tr><td>Method</td><td>Apbb</td><td>AP</td><td>AP</td><td>Apmk</td><td>AP</td><td>AP</td></tr><tr><td>Supervised</td><td>40.0</td><td>59.9</td><td>43.1</td><td>34.7</td><td>56.5</td><td>36.9</td></tr><tr><td>MoCo (He et al., 2020)</td><td>40.7</td><td>60.5</td><td>44.1</td><td>35.4</td><td>57.3</td><td>37.6</td></tr><tr><td>PCL (ours)</td><td>41.0</td><td>60.8</td><td>44.2</td><td>35.6</td><td>57.4</td><td>37.8</td></tr></table>",
1626
+ "bbox": [
1627
+ 256,
1628
+ 222,
1629
+ 740,
1630
+ 295
1631
+ ],
1632
+ "page_idx": 13
1633
+ },
1634
+ {
1635
+ "type": "text",
1636
+ "text": "APPENDIX E TRAINING DETAILS FOR TRANSFER LEARNING EXPERIMENTS ",
1637
+ "text_level": 1,
1638
+ "bbox": [
1639
+ 171,
1640
+ 387,
1641
+ 805,
1642
+ 401
1643
+ ],
1644
+ "page_idx": 13
1645
+ },
1646
+ {
1647
+ "type": "text",
1648
+ "text": "For training linear SVMs on Places and VOC, we follow the procedure in (Goyal et al., 2019) and use the LIBLINEAR (Fan et al., 2008) package. We preprocess all images by resizing to 256 pixels along the shorter side and taking a $2 2 4 \\times 2 2 4$ center crop. The linear SVMs are trained on the global average pooling features of ResNet-50. ",
1649
+ "bbox": [
1650
+ 174,
1651
+ 424,
1652
+ 825,
1653
+ 481
1654
+ ],
1655
+ "page_idx": 13
1656
+ },
1657
+ {
1658
+ "type": "text",
1659
+ "text": "For image classification with linear models, we use the pretrained representations from the global average pooling features (2048-D) for ImageNet and VOC, and the conv5 features (averaged pooled to ${ \\sim } 9 0 0 0 { \\cdot } \\mathrm { D }$ ) for Places. We train a linear SVM for VOC, and a logistic regression classifier (a fully-connected layer followed by softmax) for ImageNet and Places. The logistic regression classifier is trained using SGD with a momentum of 0.9. For ImageNet, we train for 100 epochs with an initial learning rate of 10 and a weight decay of 0. Similar hyper-parameters are used by (He et al., 2020). For Places, we train for 40 epochs with an initial learning rate of 0.3 and a weight decay of 0. ",
1660
+ "bbox": [
1661
+ 174,
1662
+ 488,
1663
+ 825,
1664
+ 585
1665
+ ],
1666
+ "page_idx": 13
1667
+ },
1668
+ {
1669
+ "type": "text",
1670
+ "text": "For semi-supervised learning, we finetune ResNet-50 with pretrained weights on a subset of ImageNet with labels. We optimize the model with SGD, using a batch size of 256, a momentum of 0.9, and a weight decay of 0.0005. We apply different learning rate to the ConvNet and the linear classifier. The learning rate for the ConvNet is 0.01, and the learning rate for the classifier is 0.1 (for $10 \\%$ labels) or 1 (for $1 \\%$ labels). We train for 20 epochs, and drop the learning rate by 0.2 at 12 and 16 epochs. ",
1671
+ "bbox": [
1672
+ 174,
1673
+ 592,
1674
+ 825,
1675
+ 662
1676
+ ],
1677
+ "page_idx": 13
1678
+ },
1679
+ {
1680
+ "type": "text",
1681
+ "text": "For object detection on VOC, We use the R50-FPN backbone for the Faster R-CNN detector available in the MMdetection (Chen et al., 2019) codebase. We freeze all the conv layers and also fix the BatchNorm parameters. The model is optimized with SGD, using a batch size of 8, a momentum of 0.9, and a weight decay of 0.0001. The initial learning rate is set as 0.05. We finetune the models for 15 epochs, and drop the learning rate by 0.1 at 12 epochs. ",
1682
+ "bbox": [
1683
+ 174,
1684
+ 669,
1685
+ 825,
1686
+ 739
1687
+ ],
1688
+ "page_idx": 13
1689
+ },
1690
+ {
1691
+ "type": "text",
1692
+ "text": "APPENDIX F EVALUATION OF CLUSTERING ",
1693
+ "text_level": 1,
1694
+ "bbox": [
1695
+ 176,
1696
+ 772,
1697
+ 550,
1698
+ 789
1699
+ ],
1700
+ "page_idx": 13
1701
+ },
1702
+ {
1703
+ "type": "text",
1704
+ "text": "In order to evaluate the quality of the clusters produced by PCL, we compute the adjusted mutual information score (AMI) (Nguyen et al., 2010) between the clusterings and the ground-truth labels for ImageNet training data. AMI is adjusted for chance which accounts for the bias in MI to give high values to clusterings with a larger number of clusters. AMI has a value of 1 when two partitions are identical, and an expected value of 0 for random (independent) partitions. In Figure 5, we show the AMI scores for three clusterings obtained by PCL, with number of clusters $\\bar { K ^ { - } } = \\{ 2 5 0 0 0 , 5 0 0 0 0 , 1 0 0 0 0 0 \\}$ . In Table 5, we show that compared to DeepCluster (Caron et al., 2018) and MoCo (He et al., 2020), PCL produces clusters of substantially higher quality. ",
1705
+ "bbox": [
1706
+ 174,
1707
+ 811,
1708
+ 825,
1709
+ 924
1710
+ ],
1711
+ "page_idx": 13
1712
+ },
1713
+ {
1714
+ "type": "image",
1715
+ "img_path": "images/dfc398fbd4dac745833851887787811eb9242fa23b4ab3f02fe67df9d6d4f7e1.jpg",
1716
+ "image_caption": [
1717
+ "Figure 5: Adjusted mutual information score between the clusterings generated by PCL and the ground-truth labels for ImageNet training data. "
1718
+ ],
1719
+ "image_footnote": [],
1720
+ "bbox": [
1721
+ 307,
1722
+ 103,
1723
+ 689,
1724
+ 300
1725
+ ],
1726
+ "page_idx": 14
1727
+ },
1728
+ {
1729
+ "type": "text",
1730
+ "text": "APPENDIX G CONVERGENCE PROOF ",
1731
+ "text_level": 1,
1732
+ "bbox": [
1733
+ 174,
1734
+ 367,
1735
+ 493,
1736
+ 385
1737
+ ],
1738
+ "page_idx": 14
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "text": "Here we provide the proof that the proposed PCL would converge. Suppose let ",
1743
+ "bbox": [
1744
+ 174,
1745
+ 398,
1746
+ 692,
1747
+ 415
1748
+ ],
1749
+ "page_idx": 14
1750
+ },
1751
+ {
1752
+ "type": "equation",
1753
+ "img_path": "images/b093164f117033f27da77ec45fb3d2f7431c80f5a1a66ab73c4a8203f595935f.jpg",
1754
+ "text": "$$\n\\begin{array} { r } { F ( \\theta ) = \\displaystyle \\sum _ { i = 1 } ^ { n } \\log p ( x _ { i } ; \\theta ) = \\displaystyle \\sum _ { i = 1 } ^ { n } \\log \\sum _ { c _ { i } \\in C } p ( x _ { i } , c _ { i } ; \\theta ) = \\displaystyle \\sum _ { i = 1 } ^ { n } \\log \\sum _ { c _ { i } \\in C } Q ( c _ { i } ) \\frac { p ( x _ { i } , c _ { i } ; \\theta ) } { Q ( c _ { i } ) } } \\\\ { \\geq \\displaystyle \\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } Q ( c _ { i } ) \\log \\frac { p ( x _ { i } , c _ { i } ; \\theta ) } { Q ( c _ { i } ) } . } \\end{array}\n$$",
1755
+ "text_format": "latex",
1756
+ "bbox": [
1757
+ 205,
1758
+ 421,
1759
+ 764,
1760
+ 508
1761
+ ],
1762
+ "page_idx": 14
1763
+ },
1764
+ {
1765
+ "type": "text",
1766
+ "text": "We have shown in Section 3.2 that the above inequality holds with equality when $Q ( c _ { i } ) = p ( c _ { i } ; x _ { i } , \\theta )$ . At the $t$ -th E-step, we have estimated $Q ^ { t } ( c _ { i } ) = p ( c _ { i } ; x _ { i } , \\theta ^ { t } )$ . Therefore we have: ",
1767
+ "bbox": [
1768
+ 174,
1769
+ 512,
1770
+ 825,
1771
+ 551
1772
+ ],
1773
+ "page_idx": 14
1774
+ },
1775
+ {
1776
+ "type": "equation",
1777
+ "img_path": "images/6a994f250cb1ef4a2d8227072040c20cafe5bfc26008bb53947ce3a781ed6899.jpg",
1778
+ "text": "$$\nF ( \\theta ^ { t } ) = \\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } Q ^ { t } ( c _ { i } ) \\log \\frac { p ( x _ { i } , c _ { i } ; \\theta ^ { t } ) } { Q ^ { t } ( c _ { i } ) } .\n$$",
1779
+ "text_format": "latex",
1780
+ "bbox": [
1781
+ 357,
1782
+ 556,
1783
+ 638,
1784
+ 599
1785
+ ],
1786
+ "page_idx": 14
1787
+ },
1788
+ {
1789
+ "type": "text",
1790
+ "text": "At the $t$ -th M-step, we fix $Q ^ { t } ( c _ { i } ) = p ( c _ { i } ; x _ { i } , \\theta ^ { t } )$ and train parameter $\\theta$ to maximize Equation 14. Therefore we always have: ",
1791
+ "bbox": [
1792
+ 173,
1793
+ 613,
1794
+ 826,
1795
+ 642
1796
+ ],
1797
+ "page_idx": 14
1798
+ },
1799
+ {
1800
+ "type": "equation",
1801
+ "img_path": "images/649ed45c52c27bbe7509ef11d2eeed177708c5eb380528aa3b6d8d836369bb52.jpg",
1802
+ "text": "$$\nF ( \\theta ^ { t + 1 } ) \\geq \\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } Q ^ { t } ( c _ { i } ) \\log \\frac { p ( x _ { i } , c _ { i } ; \\theta ^ { t + 1 } ) } { Q ^ { t } ( c _ { i } ) } \\geq \\sum _ { i = 1 } ^ { n } \\sum _ { c _ { i } \\in C } Q ^ { t } ( c _ { i } ) \\log \\frac { p ( x _ { i } , c _ { i } ; \\theta ^ { t } ) } { Q ^ { t } ( c _ { i } ) } = F ( \\theta ^ { t } ) .\n$$",
1803
+ "text_format": "latex",
1804
+ "bbox": [
1805
+ 181,
1806
+ 648,
1807
+ 787,
1808
+ 691
1809
+ ],
1810
+ "page_idx": 14
1811
+ },
1812
+ {
1813
+ "type": "text",
1814
+ "text": "The above result suggests that $F ( \\theta ^ { t } )$ monotonously increase along with more iterations. Hence the algorithm will converge. ",
1815
+ "bbox": [
1816
+ 173,
1817
+ 705,
1818
+ 825,
1819
+ 736
1820
+ ],
1821
+ "page_idx": 14
1822
+ },
1823
+ {
1824
+ "type": "text",
1825
+ "text": "APPENDIX H VISUALIZATION OF CLUSTERS ",
1826
+ "text_level": 1,
1827
+ "bbox": [
1828
+ 173,
1829
+ 755,
1830
+ 557,
1831
+ 772
1832
+ ],
1833
+ "page_idx": 14
1834
+ },
1835
+ {
1836
+ "type": "text",
1837
+ "text": "In Figure 6, we show ImageNet training images that are randomly chosen from clusters generated by the proposed PCL. PCL not only clusters images from the same class together, but also finds fine-grained patterns that distinguish sub-classes, demonstrating its capability to learn useful semantic representations. ",
1838
+ "bbox": [
1839
+ 173,
1840
+ 786,
1841
+ 825,
1842
+ 843
1843
+ ],
1844
+ "page_idx": 14
1845
+ },
1846
+ {
1847
+ "type": "image",
1848
+ "img_path": "images/1e4146cb6ce2c5169a5ec1608ea8593463e090a9f89e6ba8e6b80c0addd06d27.jpg",
1849
+ "image_caption": [
1850
+ "Figure 6: Visualization of randomly chosen clusters generated by PCL. Green boarder marks top-5 images that are closest to fine-grained prototypes $K = 1 0 0 k$ ). Orange boarder marks images randomly chosen from coarse-grained clusters $K = 5 0 k$ ) that also cover the same green images. PCL can discover hierarchical semantic structures within the data (e.g. images with horse and man form a fine-grained cluster within the coarse-grained horse cluster.) "
1851
+ ],
1852
+ "image_footnote": [],
1853
+ "bbox": [
1854
+ 176,
1855
+ 143,
1856
+ 823,
1857
+ 796
1858
+ ],
1859
+ "page_idx": 15
1860
+ }
1861
+ ]
parse/train/KmykpuSrjcq/KmykpuSrjcq_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/KmykpuSrjcq/KmykpuSrjcq_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/MRYuRHsHzK4/MRYuRHsHzK4.md ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Similarity-aware Positive Instance Sampling for Graph Contrastive Pre-training
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ Graph instance contrastive learning has been proved as an effective task for Graph Neural Network (GNN) pre-training. However, one key issue may seriously impede the representative power in existing works: Positive instances created by current methods often miss crucial information of graphs or even yield illegal instances (such as non-chemically-aware graphs in molecular generation). To remedy this issue, we propose to select positive graph instances directly from existing graphs in the training set, which ultimately maintains the legality and similarity to the target graphs. Our selection is based on certain domain-specific pair-wise similarity measurements as well as sampling from a hierarchical graph encoding similarity relations among graphs. Besides, we develop an adaptive node-level pre-training method to dynamically mask nodes to distribute them evenly in the graph. We conduct extensive experiments on 13 graph classification and node classification benchmark datasets from various domains. The results demonstrate that the GNN models pre-trained by our strategies can outperform those trained-from-scratch models as well as the variants obtained by existing methods.
11
+
12
+ # 16 1 Introduction
13
+
14
+ 17 Pre-training on graph data has received wide interests in recent years, with a large range of insightful
15
+ 18 works focused on learning universal graph structural patterns lying in different kinds of graph
16
+ 19 data [25, 15, 40, 28]. For instance, Hu et al. [15] pre-train graph neural networks on molecules
17
+ 20 and transfer the learned model to molecular graph classification tasks, while Qiu et al. [25] pioneer
18
+ 21 pre-training on big graphs. Compared with traditional semi-supervised or supervised training methods
19
+ 22 for graph neural networks [12, 18, 38, 10, 33], pre-training tasks formulate the training objective
20
+ 23 without the access of training labels, and they empower graph neural networks to be generalized to
21
+ 24 unseen graphs or nodes with no or minor fine-tuning training cost. How to define proper pre-training
22
+ 25 tasks comes as the principal and also the most challenging part in graph self-supervised learning.
23
+ 26 Among current works, graph instance contrastive learning based pre-training tasks have been proved
24
+ 27 effective to learn graph strcutrual information [25, 40]. It preforms contrast between positive/negative
25
+ 28 instance pairs extracted from real graphs observed in the dataset. Though positive pairs for graph
26
+ 29 contrastive learning seems easy to define for those tasks not performed on graph instances, like
27
+ 30 DeepWalk [22], node2vec [11], where near node-node pairs are treated as positive pairs and Infomax
28
+ 31 based models like DGI [34], InfoGraph [31], where node-graph pairs from a same graph are treated
29
+ 32 as positive pairs, it is not the case for graph instance contrastive learning. Attempts from previous
30
+ 33 literature mainly focus on devising suitable graph augmentation methods, such as graph sampling [25,
31
+ 34 40], node dropping [40], edge perturbation [40], and diffusion graph [13] to get positive graph
32
+ 35 instances from the original graph. Despite the achievements they have made using such graph data
33
+ 36 augmentation strategies, we assume that such perturbation based graph data augmentation methods
34
+ 37 are not universal strategies to get ideal positive samples preserving necessary information for graph
35
+ 38 contrastive learning for various kinds of graph data such as molecular graphs, social graphs, and
36
+ 39 academic graphs.
37
+ 40 We make our assumptions on the necessary in
38
+ 41 formation that should be preserved in positive in
39
+ 42 stances in the contrastive learning process, which
40
+ 43 though have not been proved theoretically, are rea
41
+ 44 sonable and are arrived from the re-thinking of the
42
+ 45 purpose and inherent principle of the contrastive
43
+ 46 learning and what should positive samples pre
44
+ 47 serve to get an effective method. Such unproved
45
+ 48 but reasonable assumptions for positive instances
46
+ 49 are as follows:
47
+
48
+ • Positive instances should be semantically similar with the target instance; • Positive samples for the same target instance should also be similar with each other; • Positive instances should preserve certain domain information if necessary.
49
+
50
+ ![](images/13d38801a2f1f29601d38a7afe3b2605083fea5c809ac5c60539b3f80d673180.jpg)
51
+ Figure 1: The fingerprint similarity scores (in orange) and percent of legal molecular outputs (in blue) generated by graph data augmentation strategies: dropping nodes and dropping edges from a same molecule w.r.t. the ratio of nodes / edges being dropped on 1000 molecular graphs. The fingerprint similarity and the percent of legal molecular outputs decreased dramatically even for the small proportion of nod/edge dropping.
52
+
53
+ 56 Based on such assumptions, we can see that some widely used graph data augmentation strategies
54
+ 57 cannot always get positive instances with such properties preserved when being applied on different
55
+ 58 kinds of graph data. As shown in Fig. 1, simple edge-perturbation or node-dropping for molecular
56
+ 59 graph contrastive learning strategies can hardly get legal graph instances given the fact that molecules
57
+ 60 are specifically formulated in accordance to strict chemical constraints which will be easily broken if
58
+ 61 some edges/nodes, even of a very small number, are perturbed. Moreover, subgraph sampling strategy,
59
+ 62 though effective when applied on graphs without node/edge attributes, may always lead to positive
60
+ 63 instances that are dissimilar with the target instance when applied on molecular graphs. Statistical
61
+ 64 results for subgraph sampling and another data augmentation strategy suffering from similar problems
62
+ 65 – attribute masking, are presented in Appendix A.5.1.
63
+ 66 Thus, in this paper, we move beyond the widely used graph data augmentation strategies for an
64
+ 67 effective and more universal method to get positive graph instances for graph instance contrastive
65
+ 68 learning. We propose a simple but effective similarity based positive instances sampling strategy that
66
+ 69 can be applied on various kinds of graph data. Unlike previous methods that construct contrastive
67
+ 70 pairs by graph augmentation, our method encodes the pair-wise similarity information, measured by
68
+ 71 certain domain-specific similarity/proximity, into a hierarchical structure and selects positive graph
69
+ 72 instances from such a structure which ultimately maintains the legality of the sampled instances
70
+ 73 and high similarity to the target graphs (see Appendix C for details). Moreover, we also propose
71
+ 74 an improvement for a widely-used node-level pre-training strategy [15], which, together with our
72
+ 75 similarity aware graph positive sampling strategy, brings us an upper strategy design philosophy. That
73
+ 76 is, the necessary of introducing prior knowledge or bias in random strategies.
74
+ 77 We conduct extensive experiments on three representative kinds of graph data: molecular graphs,
75
+ 78 social graphs as well as big social and academic graphs where nodes are of interest to demonstrate the
76
+ 79 effectiveness and superiority of our proposed sampling based strategy over previous graph contrastive
77
+ 80 learning strategies and also some other strategies not based on contrastive learning for different
78
+ 81 kinds of graph data. Besides, some additional experiments which try to transfer the GNN models
79
+ 82 pre-trained on molecular graph dataset to downstream social graph classification task let us have
80
+ 83 a glimpse of the potential possibility of the pre-trained models’ ability to capture universal graph
81
+ 84 structural information underlying different kinds of graph data as well as the possibility to get such
82
+ 85 a universally transferable pre-trained model. Similar things have been explored in other domains
83
+ 86 such as multi-lingual language models. However, to our best knowledge, we are the first to propose
84
+ 87 such possibility for pre-trained GNN models, which, though lacks further and thorough exploration
85
+ 88 in the paper, can probably point out a new possibly meaningful research direction and cast light on
86
+ 89 successive work.
87
+ 91 Graph Representation Learning. How to generate expressive representation vectors for nodes or
88
+ 92 graphs that can capture both node-level information, like node attributes and node proximities [32,
89
+ 93 22, 11], as well as graph-level information, like structural proximity between nodes [26] and graph
90
+ 94 property [10], is a vital question and has aroused great interests from graph learning community.
91
+ 95 Common approaches include unsupervised manners [22, 11, 32, 31, 34, 42, 24, 23], which always
92
+ 96 adopt a shallow architecture, semi-supervised and supervised approaches [33, 18, 12, 10, 38], which
93
+ 97 always leverage expressive graph neural networks to capture critical information from both graph
94
+ 98 structure and node/edge attributes. In this work, we adopt graph neural networks as our graph encoder
95
+ 99 to generate expressive representations for nodes or graphs.
96
+ 100 Contrastive Learning. Contrastive learning has proved its efficiency to learn highly expressive
97
+ 101 representations in Computer Vision domain [5, 14]. Moreover, contrastive learning has also been
98
+ 102 used in graph learning for a long time, like doing contrast between node-node pairs [22, 11] to
99
+ 103 encode various node proximities into node representations. Recently, there are also efforts focusing
100
+ 104 on using contrastive learning on graph instances to learn instance-level representations that can be
101
+ 105 aware of critical graph structural information [25, 40]. In this work, we also focus on graph instance
102
+ 106 contrastive learning, but turn to approach this problem in a new manner.
103
+ 107 Graph Pre-training. Pre-trained models have proved their highly transferable ability when being
104
+ 108 applied on downstream datasets in other domains, such as the language models [6] in NLP domain.
105
+ 109 Famous pre-training strategies for GNNs on graph data largely fall into two genres: node-level and
106
+ 110 graph-level strategies. Node-level strategies aim to design proper tasks that can help GNNs learn
107
+ 111 node/edge attribute distribution information [15, 28]. More universally, graph-level strategies try to
108
+ 112 learn design tasks that can learn structural information for both nodes and graphs [25, 40]. In this
109
+ 113 work, we aim to design more powerful pre-training strategies for graph data from both graph-level
110
+ 114 and node-level.
111
+
112
+ # 115 3 Preliminary
113
+
114
+ 116 We denote an attributed graph as $G ( \nu , \mathcal { E } , \mathcal { X } )$ , where $| \nu | = n$ refers to a set of $n$ nodes and $| { \mathcal { E } } | = m$
115
+ 117 refers to a set of $m$ edges. We denote $\pmb { x } _ { v } \in \mathbb { R } ^ { d }$ as the initial feature of node $v$ and $e _ { u v }$ as the initial
116
+ 118 feature of edge $( u , v )$ .
117
+ 119 Graph Neural Networks (GNNs) can be modeled as the a messaging passing process, which involves
118
+ 120 neighborhood aggregation among nodes in graph and message updating to the next layer. Namely,
119
+ 121 the general message passing process is defined as:
120
+
121
+ $$
122
+ \begin{array} { r l } & { \pmb { m } _ { v } ^ { ( l + 1 ) } = \mathrm { A G G R E G A T E } ( \{ ( \pmb { h } _ { v } ^ { ( l ) } , \pmb { h } _ { u } ^ { ( l ) } , \pmb { e } _ { u v } ) | u \in \mathcal { N } _ { v } \} ) , } \\ & { \quad \pmb { h } _ { v } ^ { l + 1 } = \sigma ( \pmb { W } ^ { ( l ) } \pmb { m } _ { v } ^ { ( l + 1 ) } + \pmb { b } ^ { ( l ) } ) , } \end{array}
123
+ $$
124
+
125
+ 122 where $h _ { v } ^ { l + 1 }$ refers to the hidden state of $v$ at $( l + 1 )$ -th layer with $\pmb { h } _ { v } ^ { ( 0 ) } = \pmb { x } _ { v }$ and $m _ { v } ^ { ( l + 1 ) }$ refers
126
+ 123 to the aggregated message of $v$ at $( l + 1 )$ -th layer. $\mathcal { N } _ { v }$ denotes the neighbor node set of node $v$ .
127
+ 124 AGGREGATE $( \cdot )$ aggregates the hidden states of $v$ ’s neighbor nodes and edges, such as mean/max
128
+ 125 pooling and graph attention[38, 33]. are the trainable parameters. If the m $\sigma ( \cdot )$ $\mathcal { M } _ { L }$ e activaticontains $L$ function, such aslayers, the outpu $\mathrm { R e L U } ( \cdot )$ . a $W ^ { ( l ) }$ $\{ h _ { v } ^ { ( L ) } \} _ { v \in v }$ $\mathbf { \delta } _ { b } ( l )$
129
+ 127 usually represents the node-level embeddings of input graph. Moreover, the graph-level embedding
130
+ 128 $_ { h _ { G } }$ is derived by simply applying a READOUT function as
131
+
132
+ $$
133
+ \pmb { h } _ { G } = \mathrm { R E A D O U T } \big ( \{ \pmb { h } _ { v } ^ { ( L ) } \} _ { v \in \mathcal { N } _ { v } } \big ) .
134
+ $$
135
+
136
+ 129 Representations generated by GNNs over graphs, including node-level and graph-level representa
137
+ 130 tions, are meaningful embeddings to perform various downstream graph learning tasks, like node
138
+ 131 classification [44, 4], graph classification [31, 15, 28], and so on.
139
+
140
+ # 32 4 Similarity-aware Positive Graph Instance Sampling
141
+
142
+ 133 In this section, we propose our similarity-aware hierarchical graph positive instance sampling method
143
+ 134 to sample positive graph instances with three kinds of information mentioned in Sec. 1 preserved. We
144
+ 135 first explain our motivation w.r.t. why we turn to other graph instances in the pre-training dataset
145
+ 136 for positive instances and why it may work for graph data. Then we propose our sampling strategies
146
+ 137 as well as two versions of the sampling process. We also give some further discussions for such
147
+ 138 two sampling strategies. Moreover, we also propose an improvement of the widely used node-level
148
+ 139 pre-training strategy, which is an additional contribution of our work.
149
+
150
+ ![](images/8d52af2eb5d0619a23ae71785a516350e228e907f893e181d09ec1458754f970.jpg)
151
+ Figure 2: Illustration of the hierarchical graph instance sampling process for the molecular graphs.
152
+
153
+ # 140 4.1 Motivation: Sampling or Constructing?
154
+
155
+ 141 As discussed in Sec. 1, it is hard to design a clean and elegant data augmentation strategy universally
156
+ 142 for various kinds of graph data to get positive instances that are similar enough with the target graph
157
+ 143 instance and can also preserve necessary domain specific information. Since what we care about
158
+ 144 for positive graph instances are their similarity with the target graph instance, rather than the way
159
+ 145 to obtaining them, we move beyond popular graph data augmentation skills and propose to sample
160
+ 146 positive instances from the pre-training dataset for the target graph instance. Specifically, we propose
161
+ 147 to use approximate similarity functions that can reveal the semantic similarity between two graph
162
+ 148 instances to some extend to estimate the semantic similarity scores between two graph instances. The
163
+ 149 similarity relations between each pair of graphs are then encoded into a similarity hierarchy, which is
164
+ 150 then used for positive instance sampling. We also make some further discussions for the proposed
165
+ 151 similarity-aware sampling process, which may inspire future design for other sampling strategies.
166
+
167
+ # 152 4.2 Similarity-aware Positive Graph Instance Sampling
168
+
169
+ 153 Following [1], we assume that each graph instance $G _ { i } \in \mathcal G$ has its semantic class clas $\mathbf { s } ( G _ { i } ) = c _ { i }$
170
+ 154 Thus, the optimal positive sampling strategy should choose graph instances of the same semantic
171
+ 155 class with the graph instance $G _ { i }$ as its positive instances. Formally, the rate for sampling graph $G _ { j }$ as
172
+ 156 the positive instance of $G _ { i }$ is:
173
+
174
+ $$
175
+ P _ { i } ^ { + } ( G _ { j } ) = { \left\{ \begin{array} { l l } { { \frac { 1 } { | \mathcal { G } _ { i } ^ { + } | } } } & { { \mathrm { I f } } \mathrm { c l a s s } ( G _ { i } ) = \mathrm { c l a s s } ( G _ { j } ) , } \\ { 0 } & { { \mathrm { o t h e r w i s e } } } \end{array} \right. }
176
+ $$
177
+
178
+ 157 where $\mathcal { G } _ { i } ^ { + } = \{ G _ { k } | G _ { k } \in \mathcal { G } , \operatorname { c l a s s } ( G _ { k } ) = \operatorname { c l a s s } ( G _ { i } ) \}$ is the set of graph instances of the same class
179
+ 158 with graph instance $G _ { i }$ . We can then assume that there exists a ground-truth semantic similarity
180
+ 159 function $\mathrm { s i m } _ { \mathrm { g t } } ( \cdot , \cdot )$ which reveals whether two graph instances belong to a same semantic class
181
+ 160 accurately:
182
+
183
+ $$
184
+ \begin{array} { r } { \mathrm { s i m } _ { \mathrm { g t } } ( G _ { i } , G _ { j } ) = \left\{ \begin{array} { l l } { 1 } & { \mathrm { I f } \mathrm { c l a s s } ( G _ { i } ) = \mathrm { c l a s s } ( G _ { j } ) , } \\ { 0 } & { \mathrm { o t h e r w i s e } } \end{array} \right. } \end{array}
185
+ $$
186
+
187
+ 161 However, we have no knowledge of the such ground-truth semantic similarity function since our
188
+ 162 pre-training graph datasets are always unlabeled. Thus we propose to use approximate similarity
189
+ 163 functions that can be obtained from the real-world and applied in practice easily to estimate the
190
+ 164 similarity between two graph instances. We can make some assumptions for the chosen approximate
191
+ 165 similarity functions to ensure their good quality, which are deferred to Appendix B.1.
192
+
193
+ Specifically, we choose a similarity score function $\sin ( \cdot , \cdot )$ to estimate the semantic similarity between two graphs. To further use the similarity measurement to perform flexible positive sampling, we propose a two-step approach1 to encode pair-wise similarity into a more abstract and structural hierarchy efficiently – a similarity-based hierarchical graph ${ \mathcal { H } } ( { \mathcal { G } } , { \mathcal { E } } _ { H } )$ , where $\mathcal { G }$ is the set of graphs in our pre-training dataset, ${ \mathcal { E } } _ { H }$ is the edge set. Formally, we introduce a similarity threshold $\tau ( 0 < \tau <$
194
+
195
+ 171 1), and based on which the edge set is defined as: $\mathcal { E } _ { H } = \{ ( G _ { i } , G _ { j } ) | \mathrm { s i m } ( G _ { i } , G _ { j } ) \geq \tau , G _ { i } \in \mathcal { G } , G _ { j } \in$
196
+ 172 $\dot { \mathcal { G } } \rbrace$ . Many similarity functions are good candidates for $\sin ( \cdot , \cdot )$ such as fingerprint similarity [27] for
197
+ 173 molecular graphs, Weisfeiler-Lehman Graph Kernel [29] normalized similarity for graphs without
198
+ 174 node/edge attributes and node proximity for nodes in a big graph.
199
+ 175 The constructed hierarchical graph, which encodes more information beyond pair-wise similarity2,
200
+ 176 can be used to design flexible sampling strategies for positive graph instance selection. We propose
201
+ 177 two sampling strategies:
202
+
203
+ • First-order neighbourhood sampling. For each graph $G _ { i }$ , sample a one-hop neighbour set of a fixed size as its positive instances. • High-order graph sampling. We perform $l$ -hops random walks starting from graph $G _ { i }$ for $k$ times and choose positive instances according to their appearance frequencies.
204
+
205
+ An illustration for HGC is presented in Fig. 2. We will give some further discussions w.r.t. why we use similarity for positive instance sampling and how would high-order sampling potentially benefit the sampling process and the resulting positive instances in the next section.
206
+
207
+ # 185 4.3 Further Discussion for Similarity-aware Sampling Strategy
208
+
209
+ 86 In this section, we want to answer two questions: Q1: Why we still sample positive instances based on
210
+ 7 approximate pair-wise similarity scores, though it may not be an accurate similarity estimation? Q2:
211
+ 88 How would high-order sampling potentially benefit the sampling process and the resulting positive
212
+ 89 instances? Moreover, we also propose some further discussions for the proposed similarity-aware
213
+ 90 positive instance sampling strategy.
214
+
215
+ To begin with, we propose a property of the contrastive learning that is intuitively correct:
216
+
217
+ Property 1. Avoiding false-positives is important in the contrastive learning process.
218
+
219
+ Here, “false-positives” denotes positive instances selected by a non-optimal positive sampling strategy whose semantic classes are not same with the target graph instance. We explain why such a property holds in Appendix B.2 in detail, though it should be correct intuitively.
220
+
221
+ Then, Q1 can be answered by proposing the following property of the positive instances sampled according to their similarity scores with the target graph instance:
222
+
223
+ Property 2. If the similarity threshold $\tau$ is changing in a proper range, an instance that has a high similarity score with the target instance will also has a high probability to be a ground-truth positive instance.
224
+
225
+ We would explain why this property holds in detail in Appendix B.3, based on our assumptions on 02 good properties of the approximate similarity function (Def. 2). Thus, the answer for Q1 could be: 03 sampling positive instances according to their similarity scores with the target graph instance may 04 help avoid sampling false-positives.
226
+
227
+ To answer Q2, we first propose one limitation of the first-order similarity sampling strategy by pointing out a crucial property of the ground-truth similarity function that the approximate similarity functions always fail to preserve – the transitivity of the ground-truth similarity function:
228
+
229
+ Property 3 (Transitivity of the ground-truth similarity function). Ground-truth similarity function is transitive: $i f s i m _ { g t } ( G _ { i } , G _ { j } ) = 1$ and $s i m _ { g t } ( G _ { i } , G _ { k } ) = 1$ , then $s i m _ { g t } ( G _ { j } , G _ { k } ) = 1$ .
230
+
231
+ Such transitivity of the ground-truth similarity function ensures the transitivity of the relations between nodes in the hierarchical graph constructed based on the ground-truth similarity measurement. However, it is obvious that relations between nodes in our constructed similarity-based hierarchical graph – represented by edges, are not fully-transitive. It is because that the approximate similarity function we use in practice is not an optimal one.
232
+
233
+ 215 We introduce the definition of connectivity and connectivity order between nodes in the graph in
234
+ 216 Appendix B.4. The transitivity of the ground-truth similarity function ensures that $G _ { i }$ ’s positive
235
+ 217 instances sampled by first-order neighbourhood sampling strategy can have connectivity orders with
236
+ 218 $G _ { i }$ ranging from 1 to $| \mathcal { G } _ { i } ^ { + } | - 1$ . It is hard for first-order sampling strategy applied on the hierarchical
237
+ 219 graph constructed in practice to get positive instances that also have high-order connectivity (e.g.,
238
+ 220 second-order connectivity) with the target graph instance. The reason is that first-order information
239
+ 221 cannot reveal high-order information (e.g., high-order connectivity with the target graph instance)
240
+ 222 in the constructed hierarchical graph, while it can fully reveal higher-order connectivity in the
241
+ 223 constructed hierarchical graph based on ground-truth similarity function (i.e., if a graph instance $G _ { j }$
242
+ 224 is 1-connected to $G _ { i }$ , then it is $2 , 3 , . . . , | \mathcal { G } _ { i } ^ { + } | - 1$ connected to $G _ { i }$ as well).
243
+ 25 We can prove that first-order neighbouring positive instances sampled by second-order sampling
244
+ 26 process are more likely to be connected with each other (see Appendix B.4 for details). This can
245
+ 7 remedy the limitation of the first-order sampling strategy, which cannot guarantee the similarity
246
+ 8 between positive instances. Moreover, it can be empirically verified that positive instances that are
247
+ 9 both first-order and second-order connected to the target instance are also more similar with the target
248
+ 0 instance. More details are deferred to Appendix B.4. We also expect that higher-order sampling
249
+ process can bring more benefit to the resulting positive instances and worth trying in practice.
250
+
251
+ Additionally, we propose further discussions w.r.t. how would the changing similarity threshold $\tau$ influence the balance between the increasing sampling rate estimation accuracy for ground-truth positive instances and the risk of sampling more false-positive instances. Detailed discussions are deferred to Appendix B.5.
252
+
253
+ # 4.4 Adaptive Masking for Node-level Pre-training
254
+
255
+ In this section, we propose our improvement of the widely used attribute masking node-level pretraining strategy: Adaptive Masking, which is designed for attributed graphs only. As introduced in [15], attribute masking task, which is inspired from “masked language model” (MLM) in NLP, helps the model learn node/edge attribute distribution across the graph. Formally, attribute masking task is defined as:
256
+
257
+ Definition 1. (Attribute masking task): Given an attributed graph $G ( \nu , \mathcal { E } , \mathcal { X } )$ , a target node $v \in \mathcal V$ and its corresponding feature vector $\mathbf { \boldsymbol { x } } _ { v }$ , attribute masking task is first to mask a subset of the features ${ \pmb x } _ { s u b } \subseteq { \pmb x } _ { v }$ in feature vector $\scriptstyle { \mathbf { { \mathit { x } } } } _ { \mathit { v } }$ and produce a new feature vector $\pmb { x } _ { v } ^ { \prime }$ for node $v$ . Then let a model $\mathcal { M }$ to make the prediction of the masked feature set $\mathbf { \mathcal { x } } _ { s u b }$ given the new feature vector $\pmb { x } _ { v } ^ { \prime }$ as input.
258
+
259
+ Hu et al. [15] follows the same protocol in MLM by uniformly selecting the nodes set from graphs to construct the attribute mask task. But, we argue that the uniform selection may break structural relations among nodes in graphs so that the model may miss critical information for node attribute distribution from such relations. We introduce a toy example in the Appendix A.4.2.
260
+
261
+ Inspired by $\mathrm { K m e a n } \substack { + \mathrm { + } [ 2 ] }$ , which aims to obtain the good initial centroids with widely separated in space, we also adopt the adaptive masking (AdaM) to generate the mask node set within less correlations. In particular, we divide the masking process into $T$ steps. At the first step, we uniformly sample a small mask set. Secondly, the masking weight of each candidate node is adaptive by function PScore. The detail of PScore is demonstrate in Algorithm 2 (see Appendix A.4.2). In PScore, for the candidate node $v$ , we calculate the similarity of model output between before and after masking. High similarity indicates that node $v$ is not influenced by the mask operation at the current step, resulting in the low correlation between node $v$ and current mask set $S _ { \mathrm { c u r } }$ . Finally, we randomly sample a node set $\kappa$ with the probability constructed by masking weight. The algorithmic details are provided in the supplementary material.
262
+
263
+ According to the adaptive masking operation, we can dynamically adjust the importance of nodes during training and obtain a more representative mask node set for the attribute masking task. Such intuition is further discussed in Appendix A.7.
264
+
265
+ # 5 Experiments
266
+
267
+ # 5.1 Experimental Configuration
268
+
269
+ Pretraining Data Collection. We conduct the pretraining on four datasets from various domains: 1). academic and purchasing graphs: we collect four data sources from Deep Graph Library [36] and merge them into one pretraining dataset dubbed AP_NF. 2). social graphs: we construct two pretraining datasets termed SocS_NF and SocL_NF. SocS_NF contains five data sources, while
270
+
271
+ Table 1: Experimental results (ROC-AUC) on molecular datasets. The numbers in brackets are standard deviations. Numbers in gray are the best results achieved by backbone models. Bold numbers represent the best results by different backbones. Bold numbers in green represent the best results over all backbones.
272
+
273
+ <table><tr><td rowspan=1 colspan=2>Backbone Strategy</td><td rowspan=1 colspan=1>SIDER</td><td rowspan=1 colspan=1>ClinTox</td><td rowspan=1 colspan=1>BACE</td><td rowspan=1 colspan=1>HIV</td><td rowspan=1 colspan=1>BBBP</td><td rowspan=1 colspan=1>Tox21</td><td rowspan=1 colspan=1>ToxCast</td></tr><tr><td rowspan=1 colspan=2>#Molecules</td><td rowspan=1 colspan=1>1427</td><td rowspan=1 colspan=1>1478</td><td rowspan=1 colspan=1>1513</td><td rowspan=1 colspan=1>41127</td><td rowspan=1 colspan=1>2039</td><td rowspan=1 colspan=1>7831</td><td rowspan=1 colspan=1>8575</td></tr><tr><td rowspan=1 colspan=2>#Prediction tasks</td><td rowspan=1 colspan=1>27</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>617</td></tr><tr><td rowspan=8 colspan=1>GIN</td><td rowspan=1 colspan=1>GraphCL</td><td rowspan=1 colspan=1>0.5946(0.0055)</td><td rowspan=1 colspan=1>0.6592(0.0074)</td><td rowspan=1 colspan=1>0.7713(0.0057)</td><td rowspan=1 colspan=1>0.7754(0.0093)</td><td rowspan=1 colspan=1>0.7050(0.0012)</td><td rowspan=1 colspan=1>0.7562(0.0024)</td><td rowspan=1 colspan=1>0.6289(0.0023)</td></tr><tr><td rowspan=1 colspan=1>C_Subgraph</td><td rowspan=1 colspan=1>0.5838(0.0022)</td><td rowspan=1 colspan=1>0.6390(0.0071)</td><td rowspan=1 colspan=1>0.7736(0.0140)</td><td rowspan=1 colspan=1>0.7341(0.0079)</td><td rowspan=1 colspan=1>0.6901(0.0026)</td><td rowspan=1 colspan=1>0.7521(0.0044)</td><td rowspan=1 colspan=1>0.6263(0.0061)</td></tr><tr><td rowspan=1 colspan=1>Infomax</td><td rowspan=1 colspan=1>0.5755(0.0024)</td><td rowspan=1 colspan=1>0.6944(0.0187)</td><td rowspan=1 colspan=1>0.7571(0.0094)</td><td rowspan=1 colspan=1>0.7653(0.0040)</td><td rowspan=1 colspan=1>0.6929(0.0054)</td><td rowspan=1 colspan=1>0.7674(0.0020)</td><td rowspan=1 colspan=1>0.6302(0.0007)</td></tr><tr><td rowspan=1 colspan=1>Attr_Mask</td><td rowspan=1 colspan=1>0.5947(0.0083)</td><td rowspan=1 colspan=1>0.6685(0.0093)</td><td rowspan=1 colspan=1>0.8064(0.0042)</td><td rowspan=1 colspan=1>0.7668(0.0106)</td><td rowspan=1 colspan=1>0.6316(0.0007)</td><td rowspan=1 colspan=1>0.7657(0.0054)</td><td rowspan=1 colspan=1>0.6463(0.0029)</td></tr><tr><td rowspan=1 colspan=1>Context_Pred</td><td rowspan=1 colspan=1>0.6132(0.0050)</td><td rowspan=1 colspan=1>0.6476(0.0168)</td><td rowspan=1 colspan=1>0.8055(0.0115)</td><td rowspan=1 colspan=1>0.7807(0.0054)</td><td rowspan=1 colspan=1>0.7026(0.0097)</td><td rowspan=1 colspan=1>0.7715(0.0022)</td><td rowspan=1 colspan=1>0.6427(0.0024)</td></tr><tr><td rowspan=1 colspan=1>HGC</td><td rowspan=1 colspan=1>0.6333(0.0121)</td><td rowspan=1 colspan=1>0.8134(0.0115)</td><td rowspan=1 colspan=1>0.8442(0.0138)</td><td rowspan=1 colspan=1>0.7853(0.0072)</td><td rowspan=1 colspan=1>0.7217(0.0042)</td><td rowspan=1 colspan=1>0.7770(0.0022)</td><td rowspan=1 colspan=1>0.6520(0.0052)</td></tr><tr><td rowspan=1 colspan=1>AdaM</td><td rowspan=1 colspan=1>0.6164(0.0051)</td><td rowspan=1 colspan=1>0.7797(0.0040)</td><td rowspan=1 colspan=1>0.8224(0.0041)</td><td rowspan=1 colspan=1>0.7704(0.0073)</td><td rowspan=1 colspan=1>0.7273(0.0146)</td><td rowspan=1 colspan=1>0.7696(0.0014)</td><td rowspan=1 colspan=1>0.6603(0.0004)</td></tr><tr><td rowspan=1 colspan=1>HGC_AdaM</td><td rowspan=1 colspan=1>0.6183(0.0063)</td><td rowspan=1 colspan=1>0.7845(0.0499)</td><td rowspan=1 colspan=1>0.8428(0.0064)</td><td rowspan=1 colspan=1>0.7839(0.0073)</td><td rowspan=1 colspan=1>0.7172(0.0052)</td><td rowspan=1 colspan=1>0.7692(0.0030)</td><td rowspan=1 colspan=1>0.6537(0.0030)</td></tr><tr><td rowspan=3 colspan=1>GCN</td><td rowspan=1 colspan=1>HGC</td><td rowspan=1 colspan=1>0.6243(0.0044)</td><td rowspan=1 colspan=1>0.8638(0.0051)</td><td rowspan=1 colspan=1>0.8405(0.0006)</td><td rowspan=1 colspan=1>0.7724(0.0206)</td><td rowspan=1 colspan=1>0.7168(0.0014)</td><td rowspan=1 colspan=1>0.7581(0.0026)</td><td rowspan=1 colspan=1>0.6490(0.024)</td></tr><tr><td rowspan=1 colspan=1>AdaM</td><td rowspan=1 colspan=1>0.6209(0.0028)</td><td rowspan=1 colspan=1>0.8553(0.0044)</td><td rowspan=1 colspan=1>0.8205(0.0120)</td><td rowspan=1 colspan=1>0.7693(0.0032)</td><td rowspan=1 colspan=1>0.7018(0.0074)</td><td rowspan=1 colspan=1>0.7533(0.0059)</td><td rowspan=1 colspan=1>0.6449(0.0035)</td></tr><tr><td rowspan=1 colspan=1>HGC_AdaM</td><td rowspan=1 colspan=1>0.6164(0.0103)</td><td rowspan=1 colspan=1>0.8231(0.0325)</td><td rowspan=1 colspan=1>0.8249(0.0059)</td><td rowspan=1 colspan=1>0.7946(0.0102)</td><td rowspan=1 colspan=1>0.7189(0.0103)</td><td rowspan=1 colspan=1>0.7636(0.0070)</td><td rowspan=1 colspan=1>0.6525(0.0025)</td></tr><tr><td rowspan=3 colspan=1>GraphSAGE</td><td rowspan=1 colspan=1>HGC</td><td rowspan=1 colspan=1>0.6286(0.0016)</td><td rowspan=1 colspan=1>0.7395(0.0284)</td><td rowspan=1 colspan=1>0.8368(0.0008)</td><td rowspan=1 colspan=1>0.7722(0.0149)</td><td rowspan=1 colspan=1>0.7129(0.0153)</td><td rowspan=1 colspan=1>0.7583(0.0012)</td><td rowspan=1 colspan=1>0.6505(0.0004)</td></tr><tr><td rowspan=1 colspan=1>AdaM</td><td rowspan=1 colspan=1>0.6148(0.0100)</td><td rowspan=1 colspan=1>0.7098(0.0244)</td><td rowspan=1 colspan=1>0.8212(0.0019)</td><td rowspan=1 colspan=1>0.7730(0.0057)</td><td rowspan=1 colspan=1>0.6982(0.0088)</td><td rowspan=1 colspan=1>0.7643(0.0011)</td><td rowspan=1 colspan=1>0.6492(0.0004)</td></tr><tr><td rowspan=1 colspan=1>HGC_AdaM</td><td rowspan=1 colspan=1>0.6250(0.0029)</td><td rowspan=1 colspan=1>0.8127(0.0213)</td><td rowspan=1 colspan=1>0.7812(0.0038)</td><td rowspan=1 colspan=1>0.7708(0.0053)</td><td rowspan=1 colspan=1>0.7187(0.0019)</td><td rowspan=1 colspan=1>0.7610(0.0008)</td><td rowspan=1 colspan=1>0.6442(0.0018)</td></tr></table>
274
+
275
+ 269 SocL_NF contains 13 data sources collected from TUDataset [19]. 3). molecular graphs: we use
276
+ 270 the same pretraining dataset with 2 million molecules in [15] and denote it as MolD. The suffix NF
277
+ 271 indicates “no feature”. Since the data sources have different features, we remove all feature and only
278
+ 272 pretrain these datasets with HGC. The details are presented in Appendix A.1.
279
+
280
+ Downstream Tasks. We mainly evaluate the peformance on two tasks, node classfication and graph classification. For the node classification, we conduct the experiments on two datasets, US-Airport [26] and H-index [41] following the same splitting protocol in [25]. For the graph classification, we conduct the experiments on 11 datasets from molecular graph (7 datasets from [37]) and social graphs (4 datasets from [39]). Details of those datasets are deferred to Appendix A.1.
281
+
282
+ Baselines. For molecular graph classification, we comprehensively compare our pre-training strategies with recent 6 self-supervised learning strategies for graphs. Among them, Edge_Pred, Infomax, Attr_Mask, Context_Pred, are proposed in [15], all of which are node-level pre-training strategies. GraphCL [40] and C_Subgraph [25] are graph level contrastive pre-training strategies. For node classification and social network graph classification, we compare our model with the best result of GCC [25] and several other models (i.e., ProNE [42], GraphWave [7], DGK [39], graph2vec [20], InfoGraph [31], DGCNN [43] and GIN [38]). Details for the implementation, pre-training and fine-tuning settings of baseline models will be discussed in the Appendix A.2 and A.3.
283
+
284
+ Pre-training Settings. We use Adam [17] for optimization with the learning rate of 0.001, $\beta _ { 1 } =$ $0 . 9 , \beta _ { 2 } = 0 . 9 9 9$ and weight decay of 0, learning rate warms up over the first $1 0 \%$ steps and then decays linearly. Gradient norm clipping is applied with range $[ - 1 , 1 ]$ . The temperature $\tau$ is set to 0.07 in HGC pre-training stage. The batch size of MolD pre-training is 256. For SocL_NF and SocS_NF pre-training, the batch size is 32. For the graph classification task, we use mean-pooling to get graph-level representations following [15]. More pre-training details, including backbones, hyper-parameters and training steps are deferred to Appendix A.2.2.
285
+
286
+ Fine-tuning Settings. For each fine-tuning task, we train models for 100 epochs. For graph classification tasks (whether social graphs or molecular graphs), we select the best model by their corresponding validation metrics, while the last model after 100 epochs training on downstream training sets are used for further evaluation on downstream evaluation sets, the same with [25]. We adopt micro F1-score and ROC-AUC as the evaluation measures for different tasks. For molecular dataset, as suggested by [37], we apply three independent randomly initialized runs on each dataset and report the mean and standard deviation. More details are are deferred to Appendix A.2.2.
287
+
288
+ # 5.2 Results of Downstream Tasks
289
+
290
+ # 5.2.1 Graph Classification
291
+
292
+ 02 We evaluate both HGC and AdaM on 7 popular molecular graph classification datasets and HGC on 4
293
+ 303 social network graph classification datasets.
294
+ 304 The result of molecular graph classification. For molecular graph classification datasets, we
295
+ 305 report our pre-training strategies on different backbones, including GIN [38], GCN [18], Graph
296
+ 306 SAGE [12]. Meanwhile, since only MolD contain node features, we apply both HGC and AdaM
297
+ 307 strategies on the molecular datasets. HGC_AdaM indicates the combination of two strategies.
298
+ 308 As shown in Table 1, we have the following observations: (1). GIN model pre-trained by
299
+ 309 our pre-training strategies can consistently outperform those pre-trained by other existing strate
300
+ 310 gies, with large margin on most of them. The overall absolute improvement is $2 . 9 8 \%$ in av
301
+ 311 erage. (2). Specially, HGC can consistently outperform those graph-data-augmentation-based
302
+ 312 contrastive learning strategies (i.e., GraphCL and C_Subgraph) . It verifies our stand point that
303
+ 313 the graph data augmentation will lose some crucial domain information and compromise the fi
304
+ 314 nal performance, while HGC dose not lose such information and leads to better performance.
305
+
306
+ (3). Even though GCN/GraphSAGE can not surpass the our pre-trained model on GIN pretrained model, they still outperform the other pretraining strategy, which reaffirms the effectiveness of our pre-training strategies. (4). The combined strategy HGC_AdaM achieve more benefits on GCN and GraphSAGE than that of GIN. We conjecture that GIN encodes the additional noise which is introduced by this simple combination due to its strong expressive power.
307
+
308
+ Table 2: Results on graph classification datasets. The evaluation metric is micro F1-score.
309
+
310
+ <table><tr><td>Strategy</td><td>IMDB-B</td><td>IMDB-M</td><td>RDT-B</td><td>RDT-M</td></tr><tr><td># graphs #classes</td><td>1000 2</td><td>1500 3</td><td>2000 2</td><td>5000 5</td></tr><tr><td>DGK graph2vec InfoGraph</td><td>0.670 0.711</td><td>0.446 0.504</td><td>0.780 0.758</td><td>0.413 0.479</td></tr><tr><td>DGCNN</td><td>0.730 0.700</td><td>0.497 0.478</td><td>0.825 -</td><td>0.535 -</td></tr><tr><td>GIN(No-Pret.)</td><td>0.734</td><td>0.433</td><td>0.885</td><td>0.635</td></tr><tr><td>GIN_GCC(Best)</td><td>0.756</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>0.509</td><td>0.898</td><td>0.530</td></tr><tr><td>GIN_HGC(SocS_NF)</td><td>0.765</td><td>0.474</td><td>0.913</td><td>0.657</td></tr><tr><td>GIN_HGC(SocL_NF)</td><td>0.756</td><td>0.490</td><td>0.914</td><td>0.652</td></tr></table>
311
+
312
+ The result of social graph classification. To check the transferability of HGC, we conduct the finetune experiments on two models pretrained by SocL_NF and SocS_NF. SocL_NF contains the unlabeled data set used in finetune while SocS_NF does not. Table 2 documents the performance of GIN model pre-trained by HGC on SocL_NF and SocS_NF datasets. Such results show that GIN model pre-trained by HGC achieves the best performance on three out of four datasets. The comparison between GIN_HGC and GIN(No-Pret.) also confirms the benefits of HGC. Another interesting observation is that the pretrain model based on SocS_NF can obtain the better performance than than SocL_NF on two out of four datasets. It implies that HGC dose not just memorize the training samples. It can encode the latent structural information from unseen graphs and transfer the knowledge to the downstream tasks.
313
+
314
+ # 5.2.2 Node Classification.
315
+
316
+ We evaluate our model pre-trained by HGC on AP_NF on two downstream node classification datasets and summarize the results in Table 3. Among different versions of GCC, the best ones are presented. From Table 3, the model pre-trained by our HGC strategy can outperform the best GCC model on both datasets. It is worth noting that the pre-training dataset AP_NF contains only 70k graphs, which is much smaller than that of GCC(9M graphs). This verifies the efficiency of HGC in the information extraction.
317
+
318
+ Table 3: Results on node classification datasets. The evaluation metric is micro F1-score.
319
+
320
+ <table><tr><td rowspan=1 colspan=1>Datasets</td><td rowspan=1 colspan=1>US-Ariport</td><td rowspan=1 colspan=1>H-index</td></tr><tr><td rowspan=1 colspan=1>V|E</td><td rowspan=1 colspan=1>119013599</td><td rowspan=1 colspan=1>500044020</td></tr><tr><td rowspan=1 colspan=1>ProNE</td><td rowspan=1 colspan=1>0.623</td><td rowspan=1 colspan=1>0.691</td></tr><tr><td rowspan=1 colspan=1>GraphWave</td><td rowspan=1 colspan=1>0.602</td><td rowspan=1 colspan=1>0.703</td></tr><tr><td rowspan=1 colspan=1>Struc2vec</td><td rowspan=1 colspan=1>0.662</td><td rowspan=1 colspan=1>-</td></tr><tr><td rowspan=1 colspan=1>GCC (Best)</td><td rowspan=1 colspan=1>0.683</td><td rowspan=1 colspan=1>0.806</td></tr><tr><td rowspan=1 colspan=1>HGC(AP_NF)</td><td rowspan=1 colspan=1>0.706</td><td rowspan=1 colspan=1>0.824</td></tr></table>
321
+
322
+ # 5.3 Ablation Study
323
+
324
+ # How useful are the proposed self-supervised tasks?
325
+
326
+ To evaluate the contribution of our pre-training strategies, we compare the the performance of the pre-trained model by HGC and AdaM, with the model without any pre-training, each of which shares the same hyper-parameter setting. Results are summarized in Table 4 for backbone GIN. It can be seen clearly that all GIN models benefit from self-supervised pre-training tasks on all datasets. To be more specific, for GIN, absolute $1 7 . 9 \%$ ROC-AUC increase is observed on the dataset BACE, $1 6 . 5 \%$ on ClinTox, and $6 . 9 6 \%$ on SIDER, leading to $7 . 5 3 \%$ on average. Furthermore, pre-trained models gain larger improve
327
+
328
+ Table 4: Effectiveness of the pretraining on GIN. Bold numbers for absolute improvements larger than 0.05.
329
+
330
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>No-Pret.</td><td rowspan=1 colspan=1>SS-Pret.</td><td rowspan=1 colspan=1>Abs.Imp.</td></tr><tr><td rowspan=1 colspan=1>SIDER</td><td rowspan=1 colspan=1>0.5637</td><td rowspan=1 colspan=1>0.6333</td><td rowspan=1 colspan=1>+0.0696</td></tr><tr><td rowspan=1 colspan=1>ClinTox</td><td rowspan=1 colspan=1>0.6480</td><td rowspan=1 colspan=1>0.8134</td><td rowspan=1 colspan=1>+0.1654</td></tr><tr><td rowspan=1 colspan=1>BACE</td><td rowspan=1 colspan=1>0.6653</td><td rowspan=1 colspan=1>0.8442</td><td rowspan=2 colspan=1>+0.1789+0.0378</td></tr><tr><td rowspan=1 colspan=1>HIV</td><td rowspan=1 colspan=1>0.7475</td><td rowspan=1 colspan=1>0.7853</td></tr><tr><td rowspan=1 colspan=1>BBBP</td><td rowspan=1 colspan=1>0.6939</td><td rowspan=1 colspan=1>0.7273</td><td rowspan=1 colspan=1>+0.0334</td></tr><tr><td rowspan=1 colspan=1>Tox21</td><td rowspan=1 colspan=1>0.7580</td><td rowspan=1 colspan=1>0.7770</td><td rowspan=1 colspan=1>+0.0190</td></tr><tr><td rowspan=1 colspan=1>ToxCast</td><td rowspan=1 colspan=1>0.6370</td><td rowspan=1 colspan=1>0.6603</td><td rowspan=1 colspan=1>+0.0233</td></tr></table>
331
+
332
+ 356 ment on datasets of relatively small size (e.g., BACE, ClinTox and SIDER), which is also observed in [28]. It indicates that self-supervised pre-training helps GNN models learn more inherent graph properties, thus getting better performance in small downstream datasets where labeled graphs are scarce.
333
+
334
+ Can we transfer pre-trained models to downstream datasets that are dramatically different from the pre-training one? It has long been known that the pre-trained model can be generalized to unseen data in pretraining dataset [25, 15, 6, 28, 40]. However, previous literature [25, 15, 40] largely focuses on transferring the pre-trained model to downstream
335
+
336
+ Table 5: Results for pretraining transferability on graph classification datasets. Numbers in red are the negative transfer cases.
337
+
338
+ <table><tr><td>Pretraining Type</td><td>Strategy</td><td>IMDB-B</td><td>IMDB-M</td><td>RDT-B</td><td>RDT-M</td></tr><tr><td>None</td><td>GIN(No-Pret.)</td><td>0.734</td><td>0.433</td><td>0.885</td><td>0.635</td></tr><tr><td rowspan="3">Social</td><td>GIN_GCC(best)</td><td>0.756</td><td>0.509</td><td>0.898</td><td>0.530</td></tr><tr><td>HGC(SocS_NF)</td><td>0.765</td><td>0.474</td><td>0.913</td><td>0.657</td></tr><tr><td>HGC(SocL_NF)</td><td>0.756</td><td>0.490</td><td>0.914</td><td>0.652</td></tr><tr><td rowspan="4">Molecular</td><td>Context_Pred (MolD)</td><td>0.734</td><td>0.473</td><td>0.875</td><td>0.635</td></tr><tr><td>S_Context_Pred (MolD)</td><td>0.763</td><td>0.460</td><td>0.818</td><td>0.625</td></tr><tr><td>HGC(MolD)</td><td>0.768</td><td>0.504</td><td>0.912</td><td>0.656</td></tr><tr><td>AdaM(MolD)</td><td>0.740</td><td>0.486</td><td>0.880</td><td>0.654</td></tr></table>
339
+
340
+ HGC_AdaM(MolD) 0.743 0.509 0.896 0.665 datasets with similar type of data. Here, what we are interested in asking is can we transfer the pre-trained model to the downstream datasets with clearly different type of graphs compared to the ones in the pre-training dataset? To show this, we demonstrate the case from molecular graph to social network graph classification. We pre-train GIN in two different ways: one is pretrained by HGC on two social network graph datasets: SocS_NF and SocL_NF, the other is by HGC, AdaM or HGC_AdaM as well as Context_Pred or S_Context_Pred [15] on the molecular dataset MolD.
341
+
342
+ 376 The results are summarized in Table 5, which offers the following observations: (1). Perhaps
343
+ 377 surprisingly, our methods including HGC and HGC_AdaM enable the models pre-trained on molec
344
+ 378 ular graphs to even outperform those pre-trained on social graphs. For example, the accuracy of
345
+ 379 HGC_AdaM on IMDB-M (0.509) and RDT-M (0.665) is much better than that of HGC(SocS_NF)
346
+ 380 and HGC(SocL_NF). Apart from the universal graph-level properties, the results also inform that
347
+ 381 larger pre-training datasets can help the model learn such inherent properties better. (2). Different pre
348
+ 382 training strategies could deliver different performance. Models pre-trained by graph-level pre-training
349
+ 383 strategies or combined strategies (i.e., HGC(MolD) and HGC_AdaM(MolD)) can always get better
350
+ 384 results than those pre-trained by node-level strategies (i.e., AdaM(MolD) and Context_Pred(MolD)),
351
+ 385 which indicates that graph-level pre-training strategies can help the model learn global graph-level
352
+ 386 properties that can be easily transferred to other domains. (3). We also observe the negative transfer
353
+ 387 brought by the supervised pretraining in some cases. For instance, S_Context_Pred $( { \mathsf { M o l D } } ) ^ { 3 }$ get
354
+ 388 worse performance than its no supervised trained version Context_Pred (MolD) on two datasets:
355
+ 389 RDT-B and RDT-M. It indicates that simple efforts to learn graph-level properties, such as training
356
+ 390 with labeled graphs, is probable to be limited in the certain domain, thus performing bad in such
357
+ 391 cross-domain transfer tasks. Despite this, our HGC and HGC_AdaM still consistently lead to better
358
+ 392 performance compared to other pretraining strategies, which, once again, versifies our assumption
359
+ 393 that our proposed graph contrastive learning strategy can learn more universal, even cross-domain,
360
+ 394 graph-level patterns.
361
+
362
+ # 395 6 Conclusion
363
+
364
+ 396
365
+ 397
366
+ 398
367
+ 399
368
+ 400
369
+ 401
370
+ 402
371
+ 403
372
+ 404
373
+ 405
374
+ 406
375
+ 407
376
+ 408
377
+ 409
378
+
379
+ In this work, we focus on developing an effective, efficient and more universal positive instances sampling method that can be applied on many different kinds of graph data for graph instance contrastive learning. We also propose an improvement for a widely used node-level pre-training strategy to adaptively select nodes to mask for an even distribution (AdaM). Moreover, we also discover the potential cross-domain transferring ability for the pre-trained GNN models. However, there are still some limitations in our work: 1). Though high-order graph sampling can get positive instances of better quality than those obtained by first-order sampling in our analysis, it cannot always outperform the model pre-trained by first-order sampling process. We guess that it is relevant with the pre-training dataset. 2). Just combining HGC and AdaM in a simple manner leads to no significant improvement. Though we make no further investigation into a more effective combination method since it is not the keypoint of the paper, it is a meaningful research direction. 3). We discover the potential cross-domain transferring ability for pre-trained GNN models. It is an interesting point but no further discussion is made in this paper. However, further relevant investigation is interesting and meaningful.
380
+
381
+ 410 References [1] Sanjeev Arora, Hrishikesh Khandeparkar, Mikhail Khodak, Orestis Plevrakis, and Nikunj Saunshi. A theoretical analysis of contrastive unsupervised representation learning. arXiv preprint arXiv:1902.09229, 2019. [2] David Arthur and Sergei Vassilvitskii. k-means $^ { + + }$ : The advantages of careful seeding. Technical report, Stanford, 2006. [3] Guy W Bemis and Mark A Murcko. The properties of known drugs. 1. molecular frameworks. Journal of medicinal chemistry, 39(15):2887–2893, 1996. [4] Smriti Bhagat, Graham Cormode, and S Muthukrishnan. Node classification in social networks. In Social network data analytics. 2011. [5] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020. [6] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. [7] Claire Donnat, Marinka Zitnik, David Hallac, and Jure Leskovec. Learning structural node embeddings via diffusion wavelets. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1320–1329, 2018. [8] Greg Landrum et al. Rdkit: Open-source cheminformatics. 2006. [9] Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019. [10] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International Conference on Machine Learning, pages 1263–1272. PMLR, 2017. [11] Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge discovery and data mining, pages 855–864, 2016. [12] William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. arXiv preprint arXiv:1706.02216, 2017. [13] Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive multi-view representation learning on graphs. In International Conference on Machine Learning, pages 4116–4126. PMLR, 2020. [14] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9729–9738, 2020. [15] Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay Pande, and Jure Leskovec. Strategies for pre-training graph neural networks. arXiv preprint arXiv:1905.12265, 2019. [16] Max Jaderberg, Valentin Dalibard, Simon Osindero, Wojciech M Czarnecki, Jeff Donahue, Ali Razavi, Oriol Vinyals, Tim Green, Iain Dunning, Karen Simonyan, et al. Population based training of neural networks. arXiv preprint arXiv:1711.09846, 2017. [17] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. [18] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
382
+
383
+ [19] Christopher Morris, Nils M. Kriege, Franka Bause, Kristian Kersting, Petra Mutzel, and Marion Neumann. Tudataset: A collection of benchmark datasets for learning with graphs. In ICML 2020 Workshop on Graph Representation Learning and Beyond (GRL+ 2020), 2020. URL www.graphlearning.io.
384
+ [20] Annamalai Narayanan, Mahinthan Chandramohan, Rajasekar Venkatesan, Lihui Chen, Yang Liu, and Shantanu Jaiswal. graph2vec: Learning distributed representations of graphs. arXiv preprint arXiv:1707.05005, 2017.
385
+ [21] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. arXiv preprint arXiv:1912.01703, 2019.
386
+ [22] Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pages 701–710, 2014.
387
+ [23] Jiezhong Qiu, Yuxiao Dong, Hao Ma, Jian Li, Kuansan Wang, and Jie Tang. Network embedding as matrix factorization: Unifying deepwalk, line, pte, and node2vec. In Proceedings of the eleventh ACM international conference on web search and data mining, pages 459–467, 2018.
388
+ [24] Jiezhong Qiu, Yuxiao Dong, Hao Ma, Jian Li, Chi Wang, Kuansan Wang, and Jie Tang. Netsmf: Large-scale network embedding as sparse matrix factorization. In The World Wide Web Conference, pages 1509–1520, 2019.
389
+ [25] Jiezhong Qiu, Qibin Chen, Yuxiao Dong, Jing Zhang, Hongxia Yang, Ming Ding, Kuansan Wang, and Jie Tang. Gcc: Graph contrastive coding for graph neural network pre-training. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1150–1160, 2020.
390
+ [26] Leonardo FR Ribeiro, Pedro HP Saverese, and Daniel R Figueiredo. struc2vec: Learning node representations from structural identity. In Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, pages 385–394, 2017.
391
+ [27] David Rogers and Mathew Hahn. Extended-connectivity fingerprints. Journal of chemical information and modeling, 50(5):742–754, 2010.
392
+ [28] Yu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie, Ying Wei, Wenbing Huang, and Junzhou Huang. Grover: Self-supervised message passing transformer on large-scale molecular data. arXiv preprint arXiv:2007.02835, 2020.
393
+ [29] Nino Shervashidze, Pascal Schweitzer, Erik Jan Van Leeuwen, Kurt Mehlhorn, and Karsten M Borgwardt. Weisfeiler-lehman graph kernels. Journal of Machine Learning Research, 12(9), 2011.
394
+ [30] Teague Sterling and John J Irwin. Zinc 15–ligand discovery for everyone. Journal of chemical information and modeling, 55(11):2324–2337, 2015.
395
+ [31] Fan-Yun Sun, Jordan Hoffmann, Vikas Verma, and Jian Tang. Infograph: Unsupervised and semi-supervised graph-level representation learning via mutual information maximization. arXiv preprint arXiv:1908.01000, 2019.
396
+ [32] Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Largescale information network embedding. In Proceedings of the 24th international conference on world wide web, pages 1067–1077, 2015.
397
+ [33] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
398
+ [34] Petar Velickovic, William Fedus, William L Hamilton, Pietro Liò, Yoshua Bengio, and R Devon Hjelm. Deep graph infomax. In ICLR (Poster), 2019.
399
+ [35] Minjie Wang, Lingfan Yu, Da Zheng, Quan Gan, Yu Gai, Zihao Ye, Mufei Li, Jinjing Zhou, Qi Huang, Chao Ma, et al. Deep graph library: Towards efficient and scalable deep learning on graphs. 2019.
400
+
401
+ 504 [36] Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma,
402
+ 505 Lingfan Yu, Yu Gai, Tianjun Xiao, Tong He, George Karypis, Jinyang Li, and Zheng Zhang.
403
+ 506 Deep graph library: A graph-centric, highly-performant package for graph neural networks.
404
+ 507 arXiv preprint arXiv:1909.01315, 2019.
405
+ 508 [37] Zhenqin Wu, Bharath Ramsundar, Evan N Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S
406
+ 509 Pappu, Karl Leswing, and Vijay Pande. Moleculenet: a benchmark for molecular machine
407
+ 510 learning. Chemical science, 9(2):513–530, 2018.
408
+ 511 [38] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural
409
+ 512 networks? arXiv preprint arXiv:1810.00826, 2018.
410
+ 513 [39] Pinar Yanardag and SVN Vishwanathan. Deep graph kernels. In Proceedings of the 21th ACM
411
+ 514 SIGKDD international conference on knowledge discovery and data mining, pages 1365–1374,
412
+ 515 2015.
413
+ 516 [40] Yuning You, Tianlong Chen, Yongduo Sui, Ting Chen, Zhangyang Wang, and Yang Shen.
414
+ 517 Graph contrastive learning with augmentations. Advances in Neural Information Processing
415
+ 518 Systems, 33, 2020.
416
+ 519 [41] Fanjin Zhang, Xiao Liu, Jie Tang, Yuxiao Dong, Peiran Yao, Jie Zhang, Xiaotao Gu, Yan Wang,
417
+ 520 Bin Shao, Rui Li, et al. Oag: Toward linking large-scale heterogeneous entity graphs. In
418
+ 521 Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery &
419
+ 522 Data Mining, pages 2585–2595, 2019.
420
+ 523 [42] Jie Zhang, Yuxiao Dong, Yan Wang, Jie Tang, and Ming Ding. Prone: Fast and scalable network
421
+ 524 representation learning. In IJCAI, volume 19, pages 4278–4284, 2019.
422
+ 525 [43] Muhan Zhang, Zhicheng Cui, Marion Neumann, and Yixin Chen. An end-to-end deep learning
423
+ 526 architecture for graph classification. In Proceedings of the AAAI Conference on Artificial
424
+ 527 Intelligence, volume 32, 2018.
425
+ 528 [44] Shenghuo Zhu, Kai Yu, Yun Chi, and Yihong Gong. Combining content and link for classifica
426
+ 529 tion using matrix factorization. In SIGIR, 2007.
427
+
428
+ 1. For all authors...
429
+
430
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] The main contribution of this paper is the proposal of an effective and more universal positive instance selection strategy that can be applied on various kinds of graph data in the contrastive learning process. We also propose an improvement of the a widely used node-level pre-training strategy to adaptively choose nodes to make them distributed evenly in the graph. Moreover, we discover the potential possibility of the cross-domain transferable ability of the pre-trained GNN models.
431
+ (b) Did you describe the limitations of your work? [Yes] See Sec. 6.
432
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See Sec. C.
433
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
434
+
435
+ 2. If you are including theoretical results...
436
+
437
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] See Sec. A.7. We make reasonable assumptions on the possibility density function of the approximate similarity function on the ground-truth positive graph set and negative graph set. Some reasonable approximations are made in the derivation process.
438
+ (b) Did you include complete proofs of all theoretical results? [Yes] See Sec. A.7.
439
+
440
+ 3. If you ran experiments...
441
+
442
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] See Sec. A.1 for descriptions and download links for datasets. Download links for our pre-processed data are shared along with the code. Code is provided with supplemental material. Instructions for reproduction are stated in README.md file in the supplemental material.
443
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Sec. A.2 for implementation details, including pre-training and fine-tuning configuration and hyper-parameter selection. See Sec. A.1 for descriptions for datasets and the splitting methods.
444
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We report mean and std values for 3 independently random initialized run for each evaluation process on molecular graph datasets. See Table 1 and Table 12 for details.
445
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Sec. A.2 for hardware configurations.
446
+
447
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
448
+
449
+ (a) If your work uses existing assets, did you citep the creators? [Yes] We provide links for data and code that are from public respiratory we used in our project. We also cite related papers. See Sec. A.1 and Sec. A.3.
450
+ (b) Did you mention the license of the assets? [Yes] Datasets obtained from published works are with related papers cited. See Sec. A.1
451
+ (c) Did you include any new assets either in the supplemental material or as a URL? [No] No new datasets are proposed.
452
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] Download links for public datasets we used are provided. Datasets obtained from published works are with related papers cited. See Sec. A.1
453
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] Datasets we use are obtained from public datasets, containing no such information. We provide links for them in Sec. A.1. .
454
+
455
+ 5. If you used crowdsourcing or conducted research with human subjects...
456
+
457
+ 583 (a) Did you include the full text of instructions given to participants and screenshots, if
458
+ 584 applicable? [N/A]
459
+ 585 (b) Did you describe any potential participant risks, with links to Institutional Review
460
+ 586 Board (IRB) approvals, if applicable? [N/A]
461
+ 587 (c) Did you include the estimated hourly wage paid to participants and the total amount
462
+ 588 spent on participant compensation? [N/A]
parse/train/MRYuRHsHzK4/MRYuRHsHzK4_content_list.json ADDED
@@ -0,0 +1,1237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Similarity-aware Positive Instance Sampling for Graph Contrastive Pre-training ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 210,
8
+ 122,
9
+ 787,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 226,
20
+ 580,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 318,
32
+ 535,
33
+ 334
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Graph instance contrastive learning has been proved as an effective task for Graph Neural Network (GNN) pre-training. However, one key issue may seriously impede the representative power in existing works: Positive instances created by current methods often miss crucial information of graphs or even yield illegal instances (such as non-chemically-aware graphs in molecular generation). To remedy this issue, we propose to select positive graph instances directly from existing graphs in the training set, which ultimately maintains the legality and similarity to the target graphs. Our selection is based on certain domain-specific pair-wise similarity measurements as well as sampling from a hierarchical graph encoding similarity relations among graphs. Besides, we develop an adaptive node-level pre-training method to dynamically mask nodes to distribute them evenly in the graph. We conduct extensive experiments on 13 graph classification and node classification benchmark datasets from various domains. The results demonstrate that the GNN models pre-trained by our strategies can outperform those trained-from-scratch models as well as the variants obtained by existing methods. ",
40
+ "bbox": [
41
+ 148,
42
+ 349,
43
+ 766,
44
+ 558
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "16 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 584,
55
+ 312,
56
+ 602
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "17 Pre-training on graph data has received wide interests in recent years, with a large range of insightful \n18 works focused on learning universal graph structural patterns lying in different kinds of graph \n19 data [25, 15, 40, 28]. For instance, Hu et al. [15] pre-train graph neural networks on molecules \n20 and transfer the learned model to molecular graph classification tasks, while Qiu et al. [25] pioneer \n21 pre-training on big graphs. Compared with traditional semi-supervised or supervised training methods \n22 for graph neural networks [12, 18, 38, 10, 33], pre-training tasks formulate the training objective \n23 without the access of training labels, and they empower graph neural networks to be generalized to \n24 unseen graphs or nodes with no or minor fine-tuning training cost. How to define proper pre-training \n25 tasks comes as the principal and also the most challenging part in graph self-supervised learning. \n26 Among current works, graph instance contrastive learning based pre-training tasks have been proved \n27 effective to learn graph strcutrual information [25, 40]. It preforms contrast between positive/negative \n28 instance pairs extracted from real graphs observed in the dataset. Though positive pairs for graph \n29 contrastive learning seems easy to define for those tasks not performed on graph instances, like \n30 DeepWalk [22], node2vec [11], where near node-node pairs are treated as positive pairs and Infomax \n31 based models like DGI [34], InfoGraph [31], where node-graph pairs from a same graph are treated \n32 as positive pairs, it is not the case for graph instance contrastive learning. Attempts from previous \n33 literature mainly focus on devising suitable graph augmentation methods, such as graph sampling [25, \n34 40], node dropping [40], edge perturbation [40], and diffusion graph [13] to get positive graph \n35 instances from the original graph. Despite the achievements they have made using such graph data \n36 augmentation strategies, we assume that such perturbation based graph data augmentation methods \n37 are not universal strategies to get ideal positive samples preserving necessary information for graph \n38 contrastive learning for various kinds of graph data such as molecular graphs, social graphs, and \n39 academic graphs. \n40 We make our assumptions on the necessary in \n41 formation that should be preserved in positive in \n42 stances in the contrastive learning process, which \n43 though have not been proved theoretically, are rea \n44 sonable and are arrived from the re-thinking of the \n45 purpose and inherent principle of the contrastive \n46 learning and what should positive samples pre \n47 serve to get an effective method. Such unproved \n48 but reasonable assumptions for positive instances \n49 are as follows: ",
63
+ "bbox": [
64
+ 147,
65
+ 617,
66
+ 825,
67
+ 741
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 145,
76
+ 747,
77
+ 825,
78
+ 900
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 147,
87
+ 92,
88
+ 825,
89
+ 133
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 147,
98
+ 140,
99
+ 498,
100
+ 277
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "• Positive instances should be semantically similar with the target instance; • Positive samples for the same target instance should also be similar with each other; • Positive instances should preserve certain domain information if necessary. ",
107
+ "bbox": [
108
+ 181,
109
+ 284,
110
+ 498,
111
+ 367
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/13d38801a2f1f29601d38a7afe3b2605083fea5c809ac5c60539b3f80d673180.jpg",
118
+ "image_caption": [
119
+ "Figure 1: The fingerprint similarity scores (in orange) and percent of legal molecular outputs (in blue) generated by graph data augmentation strategies: dropping nodes and dropping edges from a same molecule w.r.t. the ratio of nodes / edges being dropped on 1000 molecular graphs. The fingerprint similarity and the percent of legal molecular outputs decreased dramatically even for the small proportion of nod/edge dropping. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 516,
124
+ 140,
125
+ 820,
126
+ 250
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "56 Based on such assumptions, we can see that some widely used graph data augmentation strategies \n57 cannot always get positive instances with such properties preserved when being applied on different \n58 kinds of graph data. As shown in Fig. 1, simple edge-perturbation or node-dropping for molecular \n59 graph contrastive learning strategies can hardly get legal graph instances given the fact that molecules \n60 are specifically formulated in accordance to strict chemical constraints which will be easily broken if \n61 some edges/nodes, even of a very small number, are perturbed. Moreover, subgraph sampling strategy, \n62 though effective when applied on graphs without node/edge attributes, may always lead to positive \n63 instances that are dissimilar with the target instance when applied on molecular graphs. Statistical \n64 results for subgraph sampling and another data augmentation strategy suffering from similar problems \n65 – attribute masking, are presented in Appendix A.5.1. \n66 Thus, in this paper, we move beyond the widely used graph data augmentation strategies for an \n67 effective and more universal method to get positive graph instances for graph instance contrastive \n68 learning. We propose a simple but effective similarity based positive instances sampling strategy that \n69 can be applied on various kinds of graph data. Unlike previous methods that construct contrastive \n70 pairs by graph augmentation, our method encodes the pair-wise similarity information, measured by \n71 certain domain-specific similarity/proximity, into a hierarchical structure and selects positive graph \n72 instances from such a structure which ultimately maintains the legality of the sampled instances \n73 and high similarity to the target graphs (see Appendix C for details). Moreover, we also propose \n74 an improvement for a widely-used node-level pre-training strategy [15], which, together with our \n75 similarity aware graph positive sampling strategy, brings us an upper strategy design philosophy. That \n76 is, the necessary of introducing prior knowledge or bias in random strategies. \n77 We conduct extensive experiments on three representative kinds of graph data: molecular graphs, \n78 social graphs as well as big social and academic graphs where nodes are of interest to demonstrate the \n79 effectiveness and superiority of our proposed sampling based strategy over previous graph contrastive \n80 learning strategies and also some other strategies not based on contrastive learning for different \n81 kinds of graph data. Besides, some additional experiments which try to transfer the GNN models \n82 pre-trained on molecular graph dataset to downstream social graph classification task let us have \n83 a glimpse of the potential possibility of the pre-trained models’ ability to capture universal graph \n84 structural information underlying different kinds of graph data as well as the possibility to get such \n85 a universally transferable pre-trained model. Similar things have been explored in other domains \n86 such as multi-lingual language models. However, to our best knowledge, we are the first to propose \n87 such possibility for pre-trained GNN models, which, though lacks further and thorough exploration \n88 in the paper, can probably point out a new possibly meaningful research direction and cast light on \n89 successive work. \n91 Graph Representation Learning. How to generate expressive representation vectors for nodes or \n92 graphs that can capture both node-level information, like node attributes and node proximities [32, \n93 22, 11], as well as graph-level information, like structural proximity between nodes [26] and graph \n94 property [10], is a vital question and has aroused great interests from graph learning community. \n95 Common approaches include unsupervised manners [22, 11, 32, 31, 34, 42, 24, 23], which always \n96 adopt a shallow architecture, semi-supervised and supervised approaches [33, 18, 12, 10, 38], which \n97 always leverage expressive graph neural networks to capture critical information from both graph \n98 structure and node/edge attributes. In this work, we adopt graph neural networks as our graph encoder \n99 to generate expressive representations for nodes or graphs. \n100 Contrastive Learning. Contrastive learning has proved its efficiency to learn highly expressive \n101 representations in Computer Vision domain [5, 14]. Moreover, contrastive learning has also been \n102 used in graph learning for a long time, like doing contrast between node-node pairs [22, 11] to \n103 encode various node proximities into node representations. Recently, there are also efforts focusing \n104 on using contrastive learning on graph instances to learn instance-level representations that can be \n105 aware of critical graph structural information [25, 40]. In this work, we also focus on graph instance \n106 contrastive learning, but turn to approach this problem in a new manner. \n107 Graph Pre-training. Pre-trained models have proved their highly transferable ability when being \n108 applied on downstream datasets in other domains, such as the language models [6] in NLP domain. \n109 Famous pre-training strategies for GNNs on graph data largely fall into two genres: node-level and \n110 graph-level strategies. Node-level strategies aim to design proper tasks that can help GNNs learn \n111 node/edge attribute distribution information [15, 28]. More universally, graph-level strategies try to \n112 learn design tasks that can learn structural information for both nodes and graphs [25, 40]. In this \n113 work, we aim to design more powerful pre-training strategies for graph data from both graph-level \n114 and node-level. ",
133
+ "bbox": [
134
+ 145,
135
+ 375,
136
+ 825,
137
+ 512
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "",
144
+ "bbox": [
145
+ 145,
146
+ 518,
147
+ 825,
148
+ 671
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "",
155
+ "bbox": [
156
+ 145,
157
+ 678,
158
+ 825,
159
+ 856
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "",
166
+ "bbox": [
167
+ 145,
168
+ 125,
169
+ 825,
170
+ 251
171
+ ],
172
+ "page_idx": 2
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "",
177
+ "bbox": [
178
+ 142,
179
+ 262,
180
+ 825,
181
+ 361
182
+ ],
183
+ "page_idx": 2
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "",
188
+ "bbox": [
189
+ 140,
190
+ 372,
191
+ 825,
192
+ 483
193
+ ],
194
+ "page_idx": 2
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "115 3 Preliminary ",
199
+ "text_level": 1,
200
+ "bbox": [
201
+ 143,
202
+ 501,
203
+ 305,
204
+ 518
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "116 We denote an attributed graph as $G ( \\nu , \\mathcal { E } , \\mathcal { X } )$ , where $| \\nu | = n$ refers to a set of $n$ nodes and $| { \\mathcal { E } } | = m$ \n117 refers to a set of $m$ edges. We denote $\\pmb { x } _ { v } \\in \\mathbb { R } ^ { d }$ as the initial feature of node $v$ and $e _ { u v }$ as the initial \n118 feature of edge $( u , v )$ . \n119 Graph Neural Networks (GNNs) can be modeled as the a messaging passing process, which involves \n120 neighborhood aggregation among nodes in graph and message updating to the next layer. Namely, \n121 the general message passing process is defined as: ",
211
+ "bbox": [
212
+ 142,
213
+ 531,
214
+ 825,
215
+ 577
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "",
222
+ "bbox": [
223
+ 142,
224
+ 580,
225
+ 826,
226
+ 623
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "equation",
232
+ "img_path": "images/a8bf15fe02c6fe1c02c765fc43f69e8fe8c03ab76cf52e74ddc4663423e9dac6.jpg",
233
+ "text": "$$\n\\begin{array} { r l } & { \\pmb { m } _ { v } ^ { ( l + 1 ) } = \\mathrm { A G G R E G A T E } ( \\{ ( \\pmb { h } _ { v } ^ { ( l ) } , \\pmb { h } _ { u } ^ { ( l ) } , \\pmb { e } _ { u v } ) | u \\in \\mathcal { N } _ { v } \\} ) , } \\\\ & { \\quad \\pmb { h } _ { v } ^ { l + 1 } = \\sigma ( \\pmb { W } ^ { ( l ) } \\pmb { m } _ { v } ^ { ( l + 1 ) } + \\pmb { b } ^ { ( l ) } ) , } \\end{array}\n$$",
234
+ "text_format": "latex",
235
+ "bbox": [
236
+ 316,
237
+ 623,
238
+ 678,
239
+ 665
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "122 where $h _ { v } ^ { l + 1 }$ refers to the hidden state of $v$ at $( l + 1 )$ -th layer with $\\pmb { h } _ { v } ^ { ( 0 ) } = \\pmb { x } _ { v }$ and $m _ { v } ^ { ( l + 1 ) }$ refers \n123 to the aggregated message of $v$ at $( l + 1 )$ -th layer. $\\mathcal { N } _ { v }$ denotes the neighbor node set of node $v$ . \n124 AGGREGATE $( \\cdot )$ aggregates the hidden states of $v$ ’s neighbor nodes and edges, such as mean/max \n125 pooling and graph attention[38, 33]. are the trainable parameters. If the m $\\sigma ( \\cdot )$ $\\mathcal { M } _ { L }$ e activaticontains $L$ function, such aslayers, the outpu $\\mathrm { R e L U } ( \\cdot )$ . a $W ^ { ( l ) }$ $\\{ h _ { v } ^ { ( L ) } \\} _ { v \\in v }$ $\\mathbf { \\delta } _ { b } ( l )$ \n127 usually represents the node-level embeddings of input graph. Moreover, the graph-level embedding \n128 $_ { h _ { G } }$ is derived by simply applying a READOUT function as ",
246
+ "bbox": [
247
+ 140,
248
+ 667,
249
+ 826,
250
+ 772
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "equation",
256
+ "img_path": "images/917c23506866b0f7bd2f0c4cf1bbac2fe04f4837eb76bb6a8e94f4489d80a37b.jpg",
257
+ "text": "$$\n\\pmb { h } _ { G } = \\mathrm { R E A D O U T } \\big ( \\{ \\pmb { h } _ { v } ^ { ( L ) } \\} _ { v \\in \\mathcal { N } _ { v } } \\big ) .\n$$",
258
+ "text_format": "latex",
259
+ "bbox": [
260
+ 387,
261
+ 773,
262
+ 607,
263
+ 792
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "129 Representations generated by GNNs over graphs, including node-level and graph-level representa \n130 tions, are meaningful embeddings to perform various downstream graph learning tasks, like node \n131 classification [44, 4], graph classification [31, 15, 28], and so on. ",
270
+ "bbox": [
271
+ 142,
272
+ 792,
273
+ 825,
274
+ 835
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "32 4 Similarity-aware Positive Graph Instance Sampling ",
281
+ "text_level": 1,
282
+ "bbox": [
283
+ 156,
284
+ 852,
285
+ 637,
286
+ 871
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "133 In this section, we propose our similarity-aware hierarchical graph positive instance sampling method \n134 to sample positive graph instances with three kinds of information mentioned in Sec. 1 preserved. We \n135 first explain our motivation w.r.t. why we turn to other graph instances in the pre-training dataset \n136 for positive instances and why it may work for graph data. Then we propose our sampling strategies \n137 as well as two versions of the sampling process. We also give some further discussions for such \n138 two sampling strategies. Moreover, we also propose an improvement of the widely used node-level \n139 pre-training strategy, which is an additional contribution of our work. ",
293
+ "bbox": [
294
+ 143,
295
+ 882,
296
+ 828,
297
+ 912
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "image",
303
+ "img_path": "images/8d52af2eb5d0619a23ae71785a516350e228e907f893e181d09ec1458754f970.jpg",
304
+ "image_caption": [
305
+ "Figure 2: Illustration of the hierarchical graph instance sampling process for the molecular graphs. "
306
+ ],
307
+ "image_footnote": [],
308
+ "bbox": [
309
+ 176,
310
+ 90,
311
+ 826,
312
+ 188
313
+ ],
314
+ "page_idx": 3
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "",
319
+ "bbox": [
320
+ 140,
321
+ 226,
322
+ 825,
323
+ 295
324
+ ],
325
+ "page_idx": 3
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "140 4.1 Motivation: Sampling or Constructing? ",
330
+ "text_level": 1,
331
+ "bbox": [
332
+ 142,
333
+ 310,
334
+ 490,
335
+ 327
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "141 As discussed in Sec. 1, it is hard to design a clean and elegant data augmentation strategy universally \n142 for various kinds of graph data to get positive instances that are similar enough with the target graph \n143 instance and can also preserve necessary domain specific information. Since what we care about \n144 for positive graph instances are their similarity with the target graph instance, rather than the way \n145 to obtaining them, we move beyond popular graph data augmentation skills and propose to sample \n146 positive instances from the pre-training dataset for the target graph instance. Specifically, we propose \n147 to use approximate similarity functions that can reveal the semantic similarity between two graph \n148 instances to some extend to estimate the semantic similarity scores between two graph instances. The \n149 similarity relations between each pair of graphs are then encoded into a similarity hierarchy, which is \n150 then used for positive instance sampling. We also make some further discussions for the proposed \n151 similarity-aware sampling process, which may inspire future design for other sampling strategies. ",
342
+ "bbox": [
343
+ 140,
344
+ 337,
345
+ 825,
346
+ 489
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "152 4.2 Similarity-aware Positive Graph Instance Sampling ",
353
+ "text_level": 1,
354
+ "bbox": [
355
+ 147,
356
+ 505,
357
+ 573,
358
+ 520
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "153 Following [1], we assume that each graph instance $G _ { i } \\in \\mathcal G$ has its semantic class clas $\\mathbf { s } ( G _ { i } ) = c _ { i }$ \n154 Thus, the optimal positive sampling strategy should choose graph instances of the same semantic \n155 class with the graph instance $G _ { i }$ as its positive instances. Formally, the rate for sampling graph $G _ { j }$ as \n156 the positive instance of $G _ { i }$ is: ",
365
+ "bbox": [
366
+ 142,
367
+ 530,
368
+ 825,
369
+ 585
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "equation",
375
+ "img_path": "images/d57d2b5121d6234a2876fbecc19155bd678c9bb373bf2263bb63015af69ed743.jpg",
376
+ "text": "$$\nP _ { i } ^ { + } ( G _ { j } ) = { \\left\\{ \\begin{array} { l l } { { \\frac { 1 } { | \\mathcal { G } _ { i } ^ { + } | } } } & { { \\mathrm { I f } } \\mathrm { c l a s s } ( G _ { i } ) = \\mathrm { c l a s s } ( G _ { j } ) , } \\\\ { 0 } & { { \\mathrm { o t h e r w i s e } } } \\end{array} \\right. }\n$$",
377
+ "text_format": "latex",
378
+ "bbox": [
379
+ 348,
380
+ 592,
381
+ 648,
382
+ 635
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "157 where $\\mathcal { G } _ { i } ^ { + } = \\{ G _ { k } | G _ { k } \\in \\mathcal { G } , \\operatorname { c l a s s } ( G _ { k } ) = \\operatorname { c l a s s } ( G _ { i } ) \\}$ is the set of graph instances of the same class \n158 with graph instance $G _ { i }$ . We can then assume that there exists a ground-truth semantic similarity \n159 function $\\mathrm { s i m } _ { \\mathrm { g t } } ( \\cdot , \\cdot )$ which reveals whether two graph instances belong to a same semantic class \n160 accurately: ",
389
+ "bbox": [
390
+ 140,
391
+ 640,
392
+ 825,
393
+ 696
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "equation",
399
+ "img_path": "images/bd8110f5203f8b28a1a5d2e9e8ed972b4e3b6e5fdd3ff3b13e4aeb3f1030e240.jpg",
400
+ "text": "$$\n\\begin{array} { r } { \\mathrm { s i m } _ { \\mathrm { g t } } ( G _ { i } , G _ { j } ) = \\left\\{ \\begin{array} { l l } { 1 } & { \\mathrm { I f } \\mathrm { c l a s s } ( G _ { i } ) = \\mathrm { c l a s s } ( G _ { j } ) , } \\\\ { 0 } & { \\mathrm { o t h e r w i s e } } \\end{array} \\right. } \\end{array}\n$$",
401
+ "text_format": "latex",
402
+ "bbox": [
403
+ 341,
404
+ 696,
405
+ 653,
406
+ 732
407
+ ],
408
+ "page_idx": 3
409
+ },
410
+ {
411
+ "type": "text",
412
+ "text": "161 However, we have no knowledge of the such ground-truth semantic similarity function since our \n162 pre-training graph datasets are always unlabeled. Thus we propose to use approximate similarity \n163 functions that can be obtained from the real-world and applied in practice easily to estimate the \n164 similarity between two graph instances. We can make some assumptions for the chosen approximate \n165 similarity functions to ensure their good quality, which are deferred to Appendix B.1. ",
413
+ "bbox": [
414
+ 142,
415
+ 741,
416
+ 825,
417
+ 811
418
+ ],
419
+ "page_idx": 3
420
+ },
421
+ {
422
+ "type": "text",
423
+ "text": "Specifically, we choose a similarity score function $\\sin ( \\cdot , \\cdot )$ to estimate the semantic similarity between two graphs. To further use the similarity measurement to perform flexible positive sampling, we propose a two-step approach1 to encode pair-wise similarity into a more abstract and structural hierarchy efficiently – a similarity-based hierarchical graph ${ \\mathcal { H } } ( { \\mathcal { G } } , { \\mathcal { E } } _ { H } )$ , where $\\mathcal { G }$ is the set of graphs in our pre-training dataset, ${ \\mathcal { E } } _ { H }$ is the edge set. Formally, we introduce a similarity threshold $\\tau ( 0 < \\tau <$ ",
424
+ "bbox": [
425
+ 171,
426
+ 818,
427
+ 825,
428
+ 888
429
+ ],
430
+ "page_idx": 3
431
+ },
432
+ {
433
+ "type": "text",
434
+ "text": "171 1), and based on which the edge set is defined as: $\\mathcal { E } _ { H } = \\{ ( G _ { i } , G _ { j } ) | \\mathrm { s i m } ( G _ { i } , G _ { j } ) \\geq \\tau , G _ { i } \\in \\mathcal { G } , G _ { j } \\in$ \n172 $\\dot { \\mathcal { G } } \\rbrace$ . Many similarity functions are good candidates for $\\sin ( \\cdot , \\cdot )$ such as fingerprint similarity [27] for \n173 molecular graphs, Weisfeiler-Lehman Graph Kernel [29] normalized similarity for graphs without \n174 node/edge attributes and node proximity for nodes in a big graph. \n175 The constructed hierarchical graph, which encodes more information beyond pair-wise similarity2, \n176 can be used to design flexible sampling strategies for positive graph instance selection. We propose \n177 two sampling strategies: ",
435
+ "bbox": [
436
+ 142,
437
+ 90,
438
+ 825,
439
+ 147
440
+ ],
441
+ "page_idx": 4
442
+ },
443
+ {
444
+ "type": "text",
445
+ "text": "",
446
+ "bbox": [
447
+ 147,
448
+ 154,
449
+ 826,
450
+ 195
451
+ ],
452
+ "page_idx": 4
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "• First-order neighbourhood sampling. For each graph $G _ { i }$ , sample a one-hop neighbour set of a fixed size as its positive instances. • High-order graph sampling. We perform $l$ -hops random walks starting from graph $G _ { i }$ for $k$ times and choose positive instances according to their appearance frequencies. ",
457
+ "bbox": [
458
+ 183,
459
+ 200,
460
+ 825,
461
+ 257
462
+ ],
463
+ "page_idx": 4
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "An illustration for HGC is presented in Fig. 2. We will give some further discussions w.r.t. why we use similarity for positive instance sampling and how would high-order sampling potentially benefit the sampling process and the resulting positive instances in the next section. ",
468
+ "bbox": [
469
+ 161,
470
+ 263,
471
+ 826,
472
+ 306
473
+ ],
474
+ "page_idx": 4
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "185 4.3 Further Discussion for Similarity-aware Sampling Strategy ",
479
+ "text_level": 1,
480
+ "bbox": [
481
+ 151,
482
+ 321,
483
+ 624,
484
+ 338
485
+ ],
486
+ "page_idx": 4
487
+ },
488
+ {
489
+ "type": "text",
490
+ "text": "86 In this section, we want to answer two questions: Q1: Why we still sample positive instances based on \n7 approximate pair-wise similarity scores, though it may not be an accurate similarity estimation? Q2: \n88 How would high-order sampling potentially benefit the sampling process and the resulting positive \n89 instances? Moreover, we also propose some further discussions for the proposed similarity-aware \n90 positive instance sampling strategy. ",
491
+ "bbox": [
492
+ 155,
493
+ 348,
494
+ 826,
495
+ 419
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "To begin with, we propose a property of the contrastive learning that is intuitively correct: ",
502
+ "bbox": [
503
+ 163,
504
+ 424,
505
+ 759,
506
+ 439
507
+ ],
508
+ "page_idx": 4
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "Property 1. Avoiding false-positives is important in the contrastive learning process. ",
513
+ "bbox": [
514
+ 165,
515
+ 444,
516
+ 733,
517
+ 458
518
+ ],
519
+ "page_idx": 4
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Here, “false-positives” denotes positive instances selected by a non-optimal positive sampling strategy whose semantic classes are not same with the target graph instance. We explain why such a property holds in Appendix B.2 in detail, though it should be correct intuitively. ",
524
+ "bbox": [
525
+ 161,
526
+ 469,
527
+ 825,
528
+ 512
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "Then, Q1 can be answered by proposing the following property of the positive instances sampled according to their similarity scores with the target graph instance: ",
535
+ "bbox": [
536
+ 158,
537
+ 517,
538
+ 825,
539
+ 546
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "Property 2. If the similarity threshold $\\tau$ is changing in a proper range, an instance that has a high similarity score with the target instance will also has a high probability to be a ground-truth positive instance. ",
546
+ "bbox": [
547
+ 169,
548
+ 551,
549
+ 823,
550
+ 593
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "We would explain why this property holds in detail in Appendix B.3, based on our assumptions on 02 good properties of the approximate similarity function (Def. 2). Thus, the answer for Q1 could be: 03 sampling positive instances according to their similarity scores with the target graph instance may 04 help avoid sampling false-positives. ",
557
+ "bbox": [
558
+ 151,
559
+ 604,
560
+ 825,
561
+ 660
562
+ ],
563
+ "page_idx": 4
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "To answer Q2, we first propose one limitation of the first-order similarity sampling strategy by pointing out a crucial property of the ground-truth similarity function that the approximate similarity functions always fail to preserve – the transitivity of the ground-truth similarity function: ",
568
+ "bbox": [
569
+ 169,
570
+ 666,
571
+ 823,
572
+ 709
573
+ ],
574
+ "page_idx": 4
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "Property 3 (Transitivity of the ground-truth similarity function). Ground-truth similarity function is transitive: $i f s i m _ { g t } ( G _ { i } , G _ { j } ) = 1$ and $s i m _ { g t } ( G _ { i } , G _ { k } ) = 1$ , then $s i m _ { g t } ( G _ { j } , G _ { k } ) = 1$ . ",
579
+ "bbox": [
580
+ 166,
581
+ 713,
582
+ 825,
583
+ 743
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "Such transitivity of the ground-truth similarity function ensures the transitivity of the relations between nodes in the hierarchical graph constructed based on the ground-truth similarity measurement. However, it is obvious that relations between nodes in our constructed similarity-based hierarchical graph – represented by edges, are not fully-transitive. It is because that the approximate similarity function we use in practice is not an optimal one. ",
590
+ "bbox": [
591
+ 161,
592
+ 752,
593
+ 825,
594
+ 823
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "215 We introduce the definition of connectivity and connectivity order between nodes in the graph in \n216 Appendix B.4. The transitivity of the ground-truth similarity function ensures that $G _ { i }$ ’s positive \n217 instances sampled by first-order neighbourhood sampling strategy can have connectivity orders with \n218 $G _ { i }$ ranging from 1 to $| \\mathcal { G } _ { i } ^ { + } | - 1$ . It is hard for first-order sampling strategy applied on the hierarchical \n219 graph constructed in practice to get positive instances that also have high-order connectivity (e.g., \n220 second-order connectivity) with the target graph instance. The reason is that first-order information \n221 cannot reveal high-order information (e.g., high-order connectivity with the target graph instance) \n222 in the constructed hierarchical graph, while it can fully reveal higher-order connectivity in the \n223 constructed hierarchical graph based on ground-truth similarity function (i.e., if a graph instance $G _ { j }$ \n224 is 1-connected to $G _ { i }$ , then it is $2 , 3 , . . . , | \\mathcal { G } _ { i } ^ { + } | - 1$ connected to $G _ { i }$ as well). \n25 We can prove that first-order neighbouring positive instances sampled by second-order sampling \n26 process are more likely to be connected with each other (see Appendix B.4 for details). This can \n7 remedy the limitation of the first-order sampling strategy, which cannot guarantee the similarity \n8 between positive instances. Moreover, it can be empirically verified that positive instances that are \n9 both first-order and second-order connected to the target instance are also more similar with the target \n0 instance. More details are deferred to Appendix B.4. We also expect that higher-order sampling \nprocess can bring more benefit to the resulting positive instances and worth trying in practice. ",
601
+ "bbox": [
602
+ 142,
603
+ 829,
604
+ 825,
605
+ 886
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "",
612
+ "bbox": [
613
+ 140,
614
+ 92,
615
+ 825,
616
+ 178
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "",
623
+ "bbox": [
624
+ 155,
625
+ 183,
626
+ 825,
627
+ 280
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "Additionally, we propose further discussions w.r.t. how would the changing similarity threshold $\\tau$ influence the balance between the increasing sampling rate estimation accuracy for ground-truth positive instances and the risk of sampling more false-positive instances. Detailed discussions are deferred to Appendix B.5. ",
634
+ "bbox": [
635
+ 169,
636
+ 286,
637
+ 825,
638
+ 342
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "4.4 Adaptive Masking for Node-level Pre-training ",
645
+ "text_level": 1,
646
+ "bbox": [
647
+ 171,
648
+ 358,
649
+ 531,
650
+ 373
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "In this section, we propose our improvement of the widely used attribute masking node-level pretraining strategy: Adaptive Masking, which is designed for attributed graphs only. As introduced in [15], attribute masking task, which is inspired from “masked language model” (MLM) in NLP, helps the model learn node/edge attribute distribution across the graph. Formally, attribute masking task is defined as: ",
657
+ "bbox": [
658
+ 176,
659
+ 383,
660
+ 825,
661
+ 453
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "Definition 1. (Attribute masking task): Given an attributed graph $G ( \\nu , \\mathcal { E } , \\mathcal { X } )$ , a target node $v \\in \\mathcal V$ and its corresponding feature vector $\\mathbf { \\boldsymbol { x } } _ { v }$ , attribute masking task is first to mask a subset of the features ${ \\pmb x } _ { s u b } \\subseteq { \\pmb x } _ { v }$ in feature vector $\\scriptstyle { \\mathbf { { \\mathit { x } } } } _ { \\mathit { v } }$ and produce a new feature vector $\\pmb { x } _ { v } ^ { \\prime }$ for node $v$ . Then let a model $\\mathcal { M }$ to make the prediction of the masked feature set $\\mathbf { \\mathcal { x } } _ { s u b }$ given the new feature vector $\\pmb { x } _ { v } ^ { \\prime }$ as input. ",
668
+ "bbox": [
669
+ 174,
670
+ 457,
671
+ 823,
672
+ 513
673
+ ],
674
+ "page_idx": 5
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "Hu et al. [15] follows the same protocol in MLM by uniformly selecting the nodes set from graphs to construct the attribute mask task. But, we argue that the uniform selection may break structural relations among nodes in graphs so that the model may miss critical information for node attribute distribution from such relations. We introduce a toy example in the Appendix A.4.2. ",
679
+ "bbox": [
680
+ 173,
681
+ 525,
682
+ 825,
683
+ 580
684
+ ],
685
+ "page_idx": 5
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "Inspired by $\\mathrm { K m e a n } \\substack { + \\mathrm { + } [ 2 ] }$ , which aims to obtain the good initial centroids with widely separated in space, we also adopt the adaptive masking (AdaM) to generate the mask node set within less correlations. In particular, we divide the masking process into $T$ steps. At the first step, we uniformly sample a small mask set. Secondly, the masking weight of each candidate node is adaptive by function PScore. The detail of PScore is demonstrate in Algorithm 2 (see Appendix A.4.2). In PScore, for the candidate node $v$ , we calculate the similarity of model output between before and after masking. High similarity indicates that node $v$ is not influenced by the mask operation at the current step, resulting in the low correlation between node $v$ and current mask set $S _ { \\mathrm { c u r } }$ . Finally, we randomly sample a node set $\\kappa$ with the probability constructed by masking weight. The algorithmic details are provided in the supplementary material. ",
690
+ "bbox": [
691
+ 173,
692
+ 585,
693
+ 825,
694
+ 724
695
+ ],
696
+ "page_idx": 5
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "According to the adaptive masking operation, we can dynamically adjust the importance of nodes during training and obtain a more representative mask node set for the attribute masking task. Such intuition is further discussed in Appendix A.7. ",
701
+ "bbox": [
702
+ 174,
703
+ 732,
704
+ 823,
705
+ 773
706
+ ],
707
+ "page_idx": 5
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "5 Experiments ",
712
+ "text_level": 1,
713
+ "bbox": [
714
+ 173,
715
+ 792,
716
+ 312,
717
+ 809
718
+ ],
719
+ "page_idx": 5
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "5.1 Experimental Configuration ",
724
+ "text_level": 1,
725
+ "bbox": [
726
+ 173,
727
+ 824,
728
+ 410,
729
+ 838
730
+ ],
731
+ "page_idx": 5
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "Pretraining Data Collection. We conduct the pretraining on four datasets from various domains: 1). academic and purchasing graphs: we collect four data sources from Deep Graph Library [36] and merge them into one pretraining dataset dubbed AP_NF. 2). social graphs: we construct two pretraining datasets termed SocS_NF and SocL_NF. SocS_NF contains five data sources, while ",
736
+ "bbox": [
737
+ 173,
738
+ 856,
739
+ 825,
740
+ 911
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "table",
746
+ "img_path": "images/75af0c99b9c58f7faf42177cc32ab61148c8af2233eb3fa767ffea0a313cae06.jpg",
747
+ "table_caption": [
748
+ "Table 1: Experimental results (ROC-AUC) on molecular datasets. The numbers in brackets are standard deviations. Numbers in gray are the best results achieved by backbone models. Bold numbers represent the best results by different backbones. Bold numbers in green represent the best results over all backbones. "
749
+ ],
750
+ "table_footnote": [],
751
+ "table_body": "<table><tr><td rowspan=1 colspan=2>Backbone Strategy</td><td rowspan=1 colspan=1>SIDER</td><td rowspan=1 colspan=1>ClinTox</td><td rowspan=1 colspan=1>BACE</td><td rowspan=1 colspan=1>HIV</td><td rowspan=1 colspan=1>BBBP</td><td rowspan=1 colspan=1>Tox21</td><td rowspan=1 colspan=1>ToxCast</td></tr><tr><td rowspan=1 colspan=2>#Molecules</td><td rowspan=1 colspan=1>1427</td><td rowspan=1 colspan=1>1478</td><td rowspan=1 colspan=1>1513</td><td rowspan=1 colspan=1>41127</td><td rowspan=1 colspan=1>2039</td><td rowspan=1 colspan=1>7831</td><td rowspan=1 colspan=1>8575</td></tr><tr><td rowspan=1 colspan=2>#Prediction tasks</td><td rowspan=1 colspan=1>27</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>617</td></tr><tr><td rowspan=8 colspan=1>GIN</td><td rowspan=1 colspan=1>GraphCL</td><td rowspan=1 colspan=1>0.5946(0.0055)</td><td rowspan=1 colspan=1>0.6592(0.0074)</td><td rowspan=1 colspan=1>0.7713(0.0057)</td><td rowspan=1 colspan=1>0.7754(0.0093)</td><td rowspan=1 colspan=1>0.7050(0.0012)</td><td rowspan=1 colspan=1>0.7562(0.0024)</td><td rowspan=1 colspan=1>0.6289(0.0023)</td></tr><tr><td rowspan=1 colspan=1>C_Subgraph</td><td rowspan=1 colspan=1>0.5838(0.0022)</td><td rowspan=1 colspan=1>0.6390(0.0071)</td><td rowspan=1 colspan=1>0.7736(0.0140)</td><td rowspan=1 colspan=1>0.7341(0.0079)</td><td rowspan=1 colspan=1>0.6901(0.0026)</td><td rowspan=1 colspan=1>0.7521(0.0044)</td><td rowspan=1 colspan=1>0.6263(0.0061)</td></tr><tr><td rowspan=1 colspan=1>Infomax</td><td rowspan=1 colspan=1>0.5755(0.0024)</td><td rowspan=1 colspan=1>0.6944(0.0187)</td><td rowspan=1 colspan=1>0.7571(0.0094)</td><td rowspan=1 colspan=1>0.7653(0.0040)</td><td rowspan=1 colspan=1>0.6929(0.0054)</td><td rowspan=1 colspan=1>0.7674(0.0020)</td><td rowspan=1 colspan=1>0.6302(0.0007)</td></tr><tr><td rowspan=1 colspan=1>Attr_Mask</td><td rowspan=1 colspan=1>0.5947(0.0083)</td><td rowspan=1 colspan=1>0.6685(0.0093)</td><td rowspan=1 colspan=1>0.8064(0.0042)</td><td rowspan=1 colspan=1>0.7668(0.0106)</td><td rowspan=1 colspan=1>0.6316(0.0007)</td><td rowspan=1 colspan=1>0.7657(0.0054)</td><td rowspan=1 colspan=1>0.6463(0.0029)</td></tr><tr><td rowspan=1 colspan=1>Context_Pred</td><td rowspan=1 colspan=1>0.6132(0.0050)</td><td rowspan=1 colspan=1>0.6476(0.0168)</td><td rowspan=1 colspan=1>0.8055(0.0115)</td><td rowspan=1 colspan=1>0.7807(0.0054)</td><td rowspan=1 colspan=1>0.7026(0.0097)</td><td rowspan=1 colspan=1>0.7715(0.0022)</td><td rowspan=1 colspan=1>0.6427(0.0024)</td></tr><tr><td rowspan=1 colspan=1>HGC</td><td rowspan=1 colspan=1>0.6333(0.0121)</td><td rowspan=1 colspan=1>0.8134(0.0115)</td><td rowspan=1 colspan=1>0.8442(0.0138)</td><td rowspan=1 colspan=1>0.7853(0.0072)</td><td rowspan=1 colspan=1>0.7217(0.0042)</td><td rowspan=1 colspan=1>0.7770(0.0022)</td><td rowspan=1 colspan=1>0.6520(0.0052)</td></tr><tr><td rowspan=1 colspan=1>AdaM</td><td rowspan=1 colspan=1>0.6164(0.0051)</td><td rowspan=1 colspan=1>0.7797(0.0040)</td><td rowspan=1 colspan=1>0.8224(0.0041)</td><td rowspan=1 colspan=1>0.7704(0.0073)</td><td rowspan=1 colspan=1>0.7273(0.0146)</td><td rowspan=1 colspan=1>0.7696(0.0014)</td><td rowspan=1 colspan=1>0.6603(0.0004)</td></tr><tr><td rowspan=1 colspan=1>HGC_AdaM</td><td rowspan=1 colspan=1>0.6183(0.0063)</td><td rowspan=1 colspan=1>0.7845(0.0499)</td><td rowspan=1 colspan=1>0.8428(0.0064)</td><td rowspan=1 colspan=1>0.7839(0.0073)</td><td rowspan=1 colspan=1>0.7172(0.0052)</td><td rowspan=1 colspan=1>0.7692(0.0030)</td><td rowspan=1 colspan=1>0.6537(0.0030)</td></tr><tr><td rowspan=3 colspan=1>GCN</td><td rowspan=1 colspan=1>HGC</td><td rowspan=1 colspan=1>0.6243(0.0044)</td><td rowspan=1 colspan=1>0.8638(0.0051)</td><td rowspan=1 colspan=1>0.8405(0.0006)</td><td rowspan=1 colspan=1>0.7724(0.0206)</td><td rowspan=1 colspan=1>0.7168(0.0014)</td><td rowspan=1 colspan=1>0.7581(0.0026)</td><td rowspan=1 colspan=1>0.6490(0.024)</td></tr><tr><td rowspan=1 colspan=1>AdaM</td><td rowspan=1 colspan=1>0.6209(0.0028)</td><td rowspan=1 colspan=1>0.8553(0.0044)</td><td rowspan=1 colspan=1>0.8205(0.0120)</td><td rowspan=1 colspan=1>0.7693(0.0032)</td><td rowspan=1 colspan=1>0.7018(0.0074)</td><td rowspan=1 colspan=1>0.7533(0.0059)</td><td rowspan=1 colspan=1>0.6449(0.0035)</td></tr><tr><td rowspan=1 colspan=1>HGC_AdaM</td><td rowspan=1 colspan=1>0.6164(0.0103)</td><td rowspan=1 colspan=1>0.8231(0.0325)</td><td rowspan=1 colspan=1>0.8249(0.0059)</td><td rowspan=1 colspan=1>0.7946(0.0102)</td><td rowspan=1 colspan=1>0.7189(0.0103)</td><td rowspan=1 colspan=1>0.7636(0.0070)</td><td rowspan=1 colspan=1>0.6525(0.0025)</td></tr><tr><td rowspan=3 colspan=1>GraphSAGE</td><td rowspan=1 colspan=1>HGC</td><td rowspan=1 colspan=1>0.6286(0.0016)</td><td rowspan=1 colspan=1>0.7395(0.0284)</td><td rowspan=1 colspan=1>0.8368(0.0008)</td><td rowspan=1 colspan=1>0.7722(0.0149)</td><td rowspan=1 colspan=1>0.7129(0.0153)</td><td rowspan=1 colspan=1>0.7583(0.0012)</td><td rowspan=1 colspan=1>0.6505(0.0004)</td></tr><tr><td rowspan=1 colspan=1>AdaM</td><td rowspan=1 colspan=1>0.6148(0.0100)</td><td rowspan=1 colspan=1>0.7098(0.0244)</td><td rowspan=1 colspan=1>0.8212(0.0019)</td><td rowspan=1 colspan=1>0.7730(0.0057)</td><td rowspan=1 colspan=1>0.6982(0.0088)</td><td rowspan=1 colspan=1>0.7643(0.0011)</td><td rowspan=1 colspan=1>0.6492(0.0004)</td></tr><tr><td rowspan=1 colspan=1>HGC_AdaM</td><td rowspan=1 colspan=1>0.6250(0.0029)</td><td rowspan=1 colspan=1>0.8127(0.0213)</td><td rowspan=1 colspan=1>0.7812(0.0038)</td><td rowspan=1 colspan=1>0.7708(0.0053)</td><td rowspan=1 colspan=1>0.7187(0.0019)</td><td rowspan=1 colspan=1>0.7610(0.0008)</td><td rowspan=1 colspan=1>0.6442(0.0018)</td></tr></table>",
752
+ "bbox": [
753
+ 174,
754
+ 137,
755
+ 818,
756
+ 311
757
+ ],
758
+ "page_idx": 6
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "269 SocL_NF contains 13 data sources collected from TUDataset [19]. 3). molecular graphs: we use \n270 the same pretraining dataset with 2 million molecules in [15] and denote it as MolD. The suffix NF \n271 indicates “no feature”. Since the data sources have different features, we remove all feature and only \n272 pretrain these datasets with HGC. The details are presented in Appendix A.1. ",
763
+ "bbox": [
764
+ 140,
765
+ 321,
766
+ 825,
767
+ 378
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "Downstream Tasks. We mainly evaluate the peformance on two tasks, node classfication and graph classification. For the node classification, we conduct the experiments on two datasets, US-Airport [26] and H-index [41] following the same splitting protocol in [25]. For the graph classification, we conduct the experiments on 11 datasets from molecular graph (7 datasets from [37]) and social graphs (4 datasets from [39]). Details of those datasets are deferred to Appendix A.1. ",
774
+ "bbox": [
775
+ 169,
776
+ 390,
777
+ 825,
778
+ 460
779
+ ],
780
+ "page_idx": 6
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "Baselines. For molecular graph classification, we comprehensively compare our pre-training strategies with recent 6 self-supervised learning strategies for graphs. Among them, Edge_Pred, Infomax, Attr_Mask, Context_Pred, are proposed in [15], all of which are node-level pre-training strategies. GraphCL [40] and C_Subgraph [25] are graph level contrastive pre-training strategies. For node classification and social network graph classification, we compare our model with the best result of GCC [25] and several other models (i.e., ProNE [42], GraphWave [7], DGK [39], graph2vec [20], InfoGraph [31], DGCNN [43] and GIN [38]). Details for the implementation, pre-training and fine-tuning settings of baseline models will be discussed in the Appendix A.2 and A.3. ",
785
+ "bbox": [
786
+ 169,
787
+ 473,
788
+ 825,
789
+ 583
790
+ ],
791
+ "page_idx": 6
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "Pre-training Settings. We use Adam [17] for optimization with the learning rate of 0.001, $\\beta _ { 1 } =$ $0 . 9 , \\beta _ { 2 } = 0 . 9 9 9$ and weight decay of 0, learning rate warms up over the first $1 0 \\%$ steps and then decays linearly. Gradient norm clipping is applied with range $[ - 1 , 1 ]$ . The temperature $\\tau$ is set to 0.07 in HGC pre-training stage. The batch size of MolD pre-training is 256. For SocL_NF and SocS_NF pre-training, the batch size is 32. For the graph classification task, we use mean-pooling to get graph-level representations following [15]. More pre-training details, including backbones, hyper-parameters and training steps are deferred to Appendix A.2.2. ",
796
+ "bbox": [
797
+ 165,
798
+ 595,
799
+ 825,
800
+ 694
801
+ ],
802
+ "page_idx": 6
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "Fine-tuning Settings. For each fine-tuning task, we train models for 100 epochs. For graph classification tasks (whether social graphs or molecular graphs), we select the best model by their corresponding validation metrics, while the last model after 100 epochs training on downstream training sets are used for further evaluation on downstream evaluation sets, the same with [25]. We adopt micro F1-score and ROC-AUC as the evaluation measures for different tasks. For molecular dataset, as suggested by [37], we apply three independent randomly initialized runs on each dataset and report the mean and standard deviation. More details are are deferred to Appendix A.2.2. ",
807
+ "bbox": [
808
+ 173,
809
+ 705,
810
+ 825,
811
+ 803
812
+ ],
813
+ "page_idx": 6
814
+ },
815
+ {
816
+ "type": "text",
817
+ "text": "5.2 Results of Downstream Tasks ",
818
+ "text_level": 1,
819
+ "bbox": [
820
+ 174,
821
+ 827,
822
+ 416,
823
+ 842
824
+ ],
825
+ "page_idx": 6
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "5.2.1 Graph Classification ",
830
+ "text_level": 1,
831
+ "bbox": [
832
+ 176,
833
+ 856,
834
+ 367,
835
+ 871
836
+ ],
837
+ "page_idx": 6
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "02 We evaluate both HGC and AdaM on 7 popular molecular graph classification datasets and HGC on 4 \n303 social network graph classification datasets. \n304 The result of molecular graph classification. For molecular graph classification datasets, we \n305 report our pre-training strategies on different backbones, including GIN [38], GCN [18], Graph \n306 SAGE [12]. Meanwhile, since only MolD contain node features, we apply both HGC and AdaM \n307 strategies on the molecular datasets. HGC_AdaM indicates the combination of two strategies. \n308 As shown in Table 1, we have the following observations: (1). GIN model pre-trained by \n309 our pre-training strategies can consistently outperform those pre-trained by other existing strate \n310 gies, with large margin on most of them. The overall absolute improvement is $2 . 9 8 \\%$ in av \n311 erage. (2). Specially, HGC can consistently outperform those graph-data-augmentation-based \n312 contrastive learning strategies (i.e., GraphCL and C_Subgraph) . It verifies our stand point that \n313 the graph data augmentation will lose some crucial domain information and compromise the fi \n314 nal performance, while HGC dose not lose such information and leads to better performance. ",
842
+ "bbox": [
843
+ 151,
844
+ 882,
845
+ 826,
846
+ 911
847
+ ],
848
+ "page_idx": 6
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "",
853
+ "bbox": [
854
+ 140,
855
+ 92,
856
+ 826,
857
+ 243
858
+ ],
859
+ "page_idx": 7
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "(3). Even though GCN/GraphSAGE can not surpass the our pre-trained model on GIN pretrained model, they still outperform the other pretraining strategy, which reaffirms the effectiveness of our pre-training strategies. (4). The combined strategy HGC_AdaM achieve more benefits on GCN and GraphSAGE than that of GIN. We conjecture that GIN encodes the additional noise which is introduced by this simple combination due to its strong expressive power. ",
864
+ "bbox": [
865
+ 173,
866
+ 243,
867
+ 485,
868
+ 381
869
+ ],
870
+ "page_idx": 7
871
+ },
872
+ {
873
+ "type": "table",
874
+ "img_path": "images/b2cd18409cb98acd522846f6f9d352460220ef6cc3511d421e6e818c57d85d77.jpg",
875
+ "table_caption": [
876
+ "Table 2: Results on graph classification datasets. The evaluation metric is micro F1-score. "
877
+ ],
878
+ "table_footnote": [],
879
+ "table_body": "<table><tr><td>Strategy</td><td>IMDB-B</td><td>IMDB-M</td><td>RDT-B</td><td>RDT-M</td></tr><tr><td># graphs #classes</td><td>1000 2</td><td>1500 3</td><td>2000 2</td><td>5000 5</td></tr><tr><td>DGK graph2vec InfoGraph</td><td>0.670 0.711</td><td>0.446 0.504</td><td>0.780 0.758</td><td>0.413 0.479</td></tr><tr><td>DGCNN</td><td>0.730 0.700</td><td>0.497 0.478</td><td>0.825 -</td><td>0.535 -</td></tr><tr><td>GIN(No-Pret.)</td><td>0.734</td><td>0.433</td><td>0.885</td><td>0.635</td></tr><tr><td>GIN_GCC(Best)</td><td>0.756</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>0.509</td><td>0.898</td><td>0.530</td></tr><tr><td>GIN_HGC(SocS_NF)</td><td>0.765</td><td>0.474</td><td>0.913</td><td>0.657</td></tr><tr><td>GIN_HGC(SocL_NF)</td><td>0.756</td><td>0.490</td><td>0.914</td><td>0.652</td></tr></table>",
880
+ "bbox": [
881
+ 496,
882
+ 268,
883
+ 821,
884
+ 377
885
+ ],
886
+ "page_idx": 7
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "The result of social graph classification. To check the transferability of HGC, we conduct the finetune experiments on two models pretrained by SocL_NF and SocS_NF. SocL_NF contains the unlabeled data set used in finetune while SocS_NF does not. Table 2 documents the performance of GIN model pre-trained by HGC on SocL_NF and SocS_NF datasets. Such results show that GIN model pre-trained by HGC achieves the best performance on three out of four datasets. The comparison between GIN_HGC and GIN(No-Pret.) also confirms the benefits of HGC. Another interesting observation is that the pretrain model based on SocS_NF can obtain the better performance than than SocL_NF on two out of four datasets. It implies that HGC dose not just memorize the training samples. It can encode the latent structural information from unseen graphs and transfer the knowledge to the downstream tasks. ",
891
+ "bbox": [
892
+ 171,
893
+ 393,
894
+ 825,
895
+ 531
896
+ ],
897
+ "page_idx": 7
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "5.2.2 Node Classification. ",
902
+ "text_level": 1,
903
+ "bbox": [
904
+ 176,
905
+ 550,
906
+ 361,
907
+ 564
908
+ ],
909
+ "page_idx": 7
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "We evaluate our model pre-trained by HGC on AP_NF on two downstream node classification datasets and summarize the results in Table 3. Among different versions of GCC, the best ones are presented. From Table 3, the model pre-trained by our HGC strategy can outperform the best GCC model on both datasets. It is worth noting that the pre-training dataset AP_NF contains only 70k graphs, which is much smaller than that of GCC(9M graphs). This verifies the efficiency of HGC in the information extraction. ",
914
+ "bbox": [
915
+ 174,
916
+ 574,
917
+ 614,
918
+ 685
919
+ ],
920
+ "page_idx": 7
921
+ },
922
+ {
923
+ "type": "table",
924
+ "img_path": "images/4d2ddaa17ae324a088d915cdc0d378210d3e86a3c9bdd4c1dcabcacd53dce283.jpg",
925
+ "table_caption": [
926
+ "Table 3: Results on node classification datasets. The evaluation metric is micro F1-score. "
927
+ ],
928
+ "table_footnote": [],
929
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Datasets</td><td rowspan=1 colspan=1>US-Ariport</td><td rowspan=1 colspan=1>H-index</td></tr><tr><td rowspan=1 colspan=1>V|E</td><td rowspan=1 colspan=1>119013599</td><td rowspan=1 colspan=1>500044020</td></tr><tr><td rowspan=1 colspan=1>ProNE</td><td rowspan=1 colspan=1>0.623</td><td rowspan=1 colspan=1>0.691</td></tr><tr><td rowspan=1 colspan=1>GraphWave</td><td rowspan=1 colspan=1>0.602</td><td rowspan=1 colspan=1>0.703</td></tr><tr><td rowspan=1 colspan=1>Struc2vec</td><td rowspan=1 colspan=1>0.662</td><td rowspan=1 colspan=1>-</td></tr><tr><td rowspan=1 colspan=1>GCC (Best)</td><td rowspan=1 colspan=1>0.683</td><td rowspan=1 colspan=1>0.806</td></tr><tr><td rowspan=1 colspan=1>HGC(AP_NF)</td><td rowspan=1 colspan=1>0.706</td><td rowspan=1 colspan=1>0.824</td></tr></table>",
930
+ "bbox": [
931
+ 625,
932
+ 593,
933
+ 820,
934
+ 680
935
+ ],
936
+ "page_idx": 7
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "5.3 Ablation Study ",
941
+ "text_level": 1,
942
+ "bbox": [
943
+ 171,
944
+ 705,
945
+ 316,
946
+ 719
947
+ ],
948
+ "page_idx": 7
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "How useful are the proposed self-supervised tasks? ",
953
+ "text_level": 1,
954
+ "bbox": [
955
+ 173,
956
+ 738,
957
+ 529,
958
+ 752
959
+ ],
960
+ "page_idx": 7
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "To evaluate the contribution of our pre-training strategies, we compare the the performance of the pre-trained model by HGC and AdaM, with the model without any pre-training, each of which shares the same hyper-parameter setting. Results are summarized in Table 4 for backbone GIN. It can be seen clearly that all GIN models benefit from self-supervised pre-training tasks on all datasets. To be more specific, for GIN, absolute $1 7 . 9 \\%$ ROC-AUC increase is observed on the dataset BACE, $1 6 . 5 \\%$ on ClinTox, and $6 . 9 6 \\%$ on SIDER, leading to $7 . 5 3 \\%$ on average. Furthermore, pre-trained models gain larger improve",
965
+ "bbox": [
966
+ 174,
967
+ 760,
968
+ 581,
969
+ 905
970
+ ],
971
+ "page_idx": 7
972
+ },
973
+ {
974
+ "type": "table",
975
+ "img_path": "images/08d74d097a9b5729a1f5d6ca49d647f5cd666e8f8caad7f96554d92d1be97e9d.jpg",
976
+ "table_caption": [
977
+ "Table 4: Effectiveness of the pretraining on GIN. Bold numbers for absolute improvements larger than 0.05. "
978
+ ],
979
+ "table_footnote": [],
980
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>No-Pret.</td><td rowspan=1 colspan=1>SS-Pret.</td><td rowspan=1 colspan=1>Abs.Imp.</td></tr><tr><td rowspan=1 colspan=1>SIDER</td><td rowspan=1 colspan=1>0.5637</td><td rowspan=1 colspan=1>0.6333</td><td rowspan=1 colspan=1>+0.0696</td></tr><tr><td rowspan=1 colspan=1>ClinTox</td><td rowspan=1 colspan=1>0.6480</td><td rowspan=1 colspan=1>0.8134</td><td rowspan=1 colspan=1>+0.1654</td></tr><tr><td rowspan=1 colspan=1>BACE</td><td rowspan=1 colspan=1>0.6653</td><td rowspan=1 colspan=1>0.8442</td><td rowspan=2 colspan=1>+0.1789+0.0378</td></tr><tr><td rowspan=1 colspan=1>HIV</td><td rowspan=1 colspan=1>0.7475</td><td rowspan=1 colspan=1>0.7853</td></tr><tr><td rowspan=1 colspan=1>BBBP</td><td rowspan=1 colspan=1>0.6939</td><td rowspan=1 colspan=1>0.7273</td><td rowspan=1 colspan=1>+0.0334</td></tr><tr><td rowspan=1 colspan=1>Tox21</td><td rowspan=1 colspan=1>0.7580</td><td rowspan=1 colspan=1>0.7770</td><td rowspan=1 colspan=1>+0.0190</td></tr><tr><td rowspan=1 colspan=1>ToxCast</td><td rowspan=1 colspan=1>0.6370</td><td rowspan=1 colspan=1>0.6603</td><td rowspan=1 colspan=1>+0.0233</td></tr></table>",
981
+ "bbox": [
982
+ 594,
983
+ 803,
984
+ 821,
985
+ 888
986
+ ],
987
+ "page_idx": 7
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "356 ment on datasets of relatively small size (e.g., BACE, ClinTox and SIDER), which is also observed in [28]. It indicates that self-supervised pre-training helps GNN models learn more inherent graph properties, thus getting better performance in small downstream datasets where labeled graphs are scarce. ",
992
+ "bbox": [
993
+ 151,
994
+ 897,
995
+ 823,
996
+ 911
997
+ ],
998
+ "page_idx": 7
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "",
1003
+ "bbox": [
1004
+ 165,
1005
+ 90,
1006
+ 823,
1007
+ 132
1008
+ ],
1009
+ "page_idx": 8
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "Can we transfer pre-trained models to downstream datasets that are dramatically different from the pre-training one? It has long been known that the pre-trained model can be generalized to unseen data in pretraining dataset [25, 15, 6, 28, 40]. However, previous literature [25, 15, 40] largely focuses on transferring the pre-trained model to downstream ",
1014
+ "bbox": [
1015
+ 173,
1016
+ 146,
1017
+ 421,
1018
+ 284
1019
+ ],
1020
+ "page_idx": 8
1021
+ },
1022
+ {
1023
+ "type": "table",
1024
+ "img_path": "images/c13e8f68b781d4b4a6a06ca3b2057fa93a10dbf4967216feecc5106b8d67cb7e.jpg",
1025
+ "table_caption": [
1026
+ "Table 5: Results for pretraining transferability on graph classification datasets. Numbers in red are the negative transfer cases. "
1027
+ ],
1028
+ "table_footnote": [],
1029
+ "table_body": "<table><tr><td>Pretraining Type</td><td>Strategy</td><td>IMDB-B</td><td>IMDB-M</td><td>RDT-B</td><td>RDT-M</td></tr><tr><td>None</td><td>GIN(No-Pret.)</td><td>0.734</td><td>0.433</td><td>0.885</td><td>0.635</td></tr><tr><td rowspan=\"3\">Social</td><td>GIN_GCC(best)</td><td>0.756</td><td>0.509</td><td>0.898</td><td>0.530</td></tr><tr><td>HGC(SocS_NF)</td><td>0.765</td><td>0.474</td><td>0.913</td><td>0.657</td></tr><tr><td>HGC(SocL_NF)</td><td>0.756</td><td>0.490</td><td>0.914</td><td>0.652</td></tr><tr><td rowspan=\"4\">Molecular</td><td>Context_Pred (MolD)</td><td>0.734</td><td>0.473</td><td>0.875</td><td>0.635</td></tr><tr><td>S_Context_Pred (MolD)</td><td>0.763</td><td>0.460</td><td>0.818</td><td>0.625</td></tr><tr><td>HGC(MolD)</td><td>0.768</td><td>0.504</td><td>0.912</td><td>0.656</td></tr><tr><td>AdaM(MolD)</td><td>0.740</td><td>0.486</td><td>0.880</td><td>0.654</td></tr></table>",
1030
+ "bbox": [
1031
+ 431,
1032
+ 191,
1033
+ 821,
1034
+ 286
1035
+ ],
1036
+ "page_idx": 8
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "HGC_AdaM(MolD) 0.743 0.509 0.896 0.665 datasets with similar type of data. Here, what we are interested in asking is can we transfer the pre-trained model to the downstream datasets with clearly different type of graphs compared to the ones in the pre-training dataset? To show this, we demonstrate the case from molecular graph to social network graph classification. We pre-train GIN in two different ways: one is pretrained by HGC on two social network graph datasets: SocS_NF and SocL_NF, the other is by HGC, AdaM or HGC_AdaM as well as Context_Pred or S_Context_Pred [15] on the molecular dataset MolD. ",
1041
+ "bbox": [
1042
+ 171,
1043
+ 285,
1044
+ 825,
1045
+ 367
1046
+ ],
1047
+ "page_idx": 8
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "376 The results are summarized in Table 5, which offers the following observations: (1). Perhaps \n377 surprisingly, our methods including HGC and HGC_AdaM enable the models pre-trained on molec \n378 ular graphs to even outperform those pre-trained on social graphs. For example, the accuracy of \n379 HGC_AdaM on IMDB-M (0.509) and RDT-M (0.665) is much better than that of HGC(SocS_NF) \n380 and HGC(SocL_NF). Apart from the universal graph-level properties, the results also inform that \n381 larger pre-training datasets can help the model learn such inherent properties better. (2). Different pre \n382 training strategies could deliver different performance. Models pre-trained by graph-level pre-training \n383 strategies or combined strategies (i.e., HGC(MolD) and HGC_AdaM(MolD)) can always get better \n384 results than those pre-trained by node-level strategies (i.e., AdaM(MolD) and Context_Pred(MolD)), \n385 which indicates that graph-level pre-training strategies can help the model learn global graph-level \n386 properties that can be easily transferred to other domains. (3). We also observe the negative transfer \n387 brought by the supervised pretraining in some cases. For instance, S_Context_Pred $( { \\mathsf { M o l D } } ) ^ { 3 }$ get \n388 worse performance than its no supervised trained version Context_Pred (MolD) on two datasets: \n389 RDT-B and RDT-M. It indicates that simple efforts to learn graph-level properties, such as training \n390 with labeled graphs, is probable to be limited in the certain domain, thus performing bad in such \n391 cross-domain transfer tasks. Despite this, our HGC and HGC_AdaM still consistently lead to better \n392 performance compared to other pretraining strategies, which, once again, versifies our assumption \n393 that our proposed graph contrastive learning strategy can learn more universal, even cross-domain, \n394 graph-level patterns. ",
1052
+ "bbox": [
1053
+ 140,
1054
+ 373,
1055
+ 826,
1056
+ 636
1057
+ ],
1058
+ "page_idx": 8
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "395 6 Conclusion ",
1063
+ "text_level": 1,
1064
+ "bbox": [
1065
+ 150,
1066
+ 657,
1067
+ 299,
1068
+ 674
1069
+ ],
1070
+ "page_idx": 8
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "396 \n397 \n398 \n399 \n400 \n401 \n402 \n403 \n404 \n405 \n406 \n407 \n408 \n409 ",
1075
+ "bbox": [
1076
+ 140,
1077
+ 689,
1078
+ 161,
1079
+ 883
1080
+ ],
1081
+ "page_idx": 8
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "In this work, we focus on developing an effective, efficient and more universal positive instances sampling method that can be applied on many different kinds of graph data for graph instance contrastive learning. We also propose an improvement for a widely used node-level pre-training strategy to adaptively select nodes to mask for an even distribution (AdaM). Moreover, we also discover the potential cross-domain transferring ability for the pre-trained GNN models. However, there are still some limitations in our work: 1). Though high-order graph sampling can get positive instances of better quality than those obtained by first-order sampling in our analysis, it cannot always outperform the model pre-trained by first-order sampling process. We guess that it is relevant with the pre-training dataset. 2). Just combining HGC and AdaM in a simple manner leads to no significant improvement. Though we make no further investigation into a more effective combination method since it is not the keypoint of the paper, it is a meaningful research direction. 3). We discover the potential cross-domain transferring ability for pre-trained GNN models. It is an interesting point but no further discussion is made in this paper. However, further relevant investigation is interesting and meaningful. ",
1086
+ "bbox": [
1087
+ 173,
1088
+ 689,
1089
+ 825,
1090
+ 882
1091
+ ],
1092
+ "page_idx": 8
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "410 References [1] Sanjeev Arora, Hrishikesh Khandeparkar, Mikhail Khodak, Orestis Plevrakis, and Nikunj Saunshi. A theoretical analysis of contrastive unsupervised representation learning. arXiv preprint arXiv:1902.09229, 2019. [2] David Arthur and Sergei Vassilvitskii. k-means $^ { + + }$ : The advantages of careful seeding. Technical report, Stanford, 2006. [3] Guy W Bemis and Mark A Murcko. The properties of known drugs. 1. molecular frameworks. Journal of medicinal chemistry, 39(15):2887–2893, 1996. [4] Smriti Bhagat, Graham Cormode, and S Muthukrishnan. Node classification in social networks. In Social network data analytics. 2011. [5] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pages 1597–1607. PMLR, 2020. [6] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. [7] Claire Donnat, Marinka Zitnik, David Hallac, and Jure Leskovec. Learning structural node embeddings via diffusion wavelets. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1320–1329, 2018. [8] Greg Landrum et al. Rdkit: Open-source cheminformatics. 2006. [9] Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019. [10] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International Conference on Machine Learning, pages 1263–1272. PMLR, 2017. [11] Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge discovery and data mining, pages 855–864, 2016. [12] William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. arXiv preprint arXiv:1706.02216, 2017. [13] Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive multi-view representation learning on graphs. In International Conference on Machine Learning, pages 4116–4126. PMLR, 2020. [14] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9729–9738, 2020. [15] Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay Pande, and Jure Leskovec. Strategies for pre-training graph neural networks. arXiv preprint arXiv:1905.12265, 2019. [16] Max Jaderberg, Valentin Dalibard, Simon Osindero, Wojciech M Czarnecki, Jeff Donahue, Ali Razavi, Oriol Vinyals, Tim Green, Iain Dunning, Karen Simonyan, et al. Population based training of neural networks. arXiv preprint arXiv:1711.09846, 2017. [17] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. [18] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
1097
+ "bbox": [
1098
+ 147,
1099
+ 77,
1100
+ 828,
1101
+ 919
1102
+ ],
1103
+ "page_idx": 9
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "[19] Christopher Morris, Nils M. Kriege, Franka Bause, Kristian Kersting, Petra Mutzel, and Marion Neumann. Tudataset: A collection of benchmark datasets for learning with graphs. In ICML 2020 Workshop on Graph Representation Learning and Beyond (GRL+ 2020), 2020. URL www.graphlearning.io. \n[20] Annamalai Narayanan, Mahinthan Chandramohan, Rajasekar Venkatesan, Lihui Chen, Yang Liu, and Shantanu Jaiswal. graph2vec: Learning distributed representations of graphs. arXiv preprint arXiv:1707.05005, 2017. \n[21] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. arXiv preprint arXiv:1912.01703, 2019. \n[22] Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pages 701–710, 2014. \n[23] Jiezhong Qiu, Yuxiao Dong, Hao Ma, Jian Li, Kuansan Wang, and Jie Tang. Network embedding as matrix factorization: Unifying deepwalk, line, pte, and node2vec. In Proceedings of the eleventh ACM international conference on web search and data mining, pages 459–467, 2018. \n[24] Jiezhong Qiu, Yuxiao Dong, Hao Ma, Jian Li, Chi Wang, Kuansan Wang, and Jie Tang. Netsmf: Large-scale network embedding as sparse matrix factorization. In The World Wide Web Conference, pages 1509–1520, 2019. \n[25] Jiezhong Qiu, Qibin Chen, Yuxiao Dong, Jing Zhang, Hongxia Yang, Ming Ding, Kuansan Wang, and Jie Tang. Gcc: Graph contrastive coding for graph neural network pre-training. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1150–1160, 2020. \n[26] Leonardo FR Ribeiro, Pedro HP Saverese, and Daniel R Figueiredo. struc2vec: Learning node representations from structural identity. In Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, pages 385–394, 2017. \n[27] David Rogers and Mathew Hahn. Extended-connectivity fingerprints. Journal of chemical information and modeling, 50(5):742–754, 2010. \n[28] Yu Rong, Yatao Bian, Tingyang Xu, Weiyang Xie, Ying Wei, Wenbing Huang, and Junzhou Huang. Grover: Self-supervised message passing transformer on large-scale molecular data. arXiv preprint arXiv:2007.02835, 2020. \n[29] Nino Shervashidze, Pascal Schweitzer, Erik Jan Van Leeuwen, Kurt Mehlhorn, and Karsten M Borgwardt. Weisfeiler-lehman graph kernels. Journal of Machine Learning Research, 12(9), 2011. \n[30] Teague Sterling and John J Irwin. Zinc 15–ligand discovery for everyone. Journal of chemical information and modeling, 55(11):2324–2337, 2015. \n[31] Fan-Yun Sun, Jordan Hoffmann, Vikas Verma, and Jian Tang. Infograph: Unsupervised and semi-supervised graph-level representation learning via mutual information maximization. arXiv preprint arXiv:1908.01000, 2019. \n[32] Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Largescale information network embedding. In Proceedings of the 24th international conference on world wide web, pages 1067–1077, 2015. \n[33] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017. \n[34] Petar Velickovic, William Fedus, William L Hamilton, Pietro Liò, Yoshua Bengio, and R Devon Hjelm. Deep graph infomax. In ICLR (Poster), 2019. \n[35] Minjie Wang, Lingfan Yu, Da Zheng, Quan Gan, Yu Gai, Zihao Ye, Mufei Li, Jinjing Zhou, Qi Huang, Chao Ma, et al. Deep graph library: Towards efficient and scalable deep learning on graphs. 2019. ",
1108
+ "bbox": [
1109
+ 166,
1110
+ 42,
1111
+ 828,
1112
+ 916
1113
+ ],
1114
+ "page_idx": 10
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "504 [36] Minjie Wang, Da Zheng, Zihao Ye, Quan Gan, Mufei Li, Xiang Song, Jinjing Zhou, Chao Ma, \n505 Lingfan Yu, Yu Gai, Tianjun Xiao, Tong He, George Karypis, Jinyang Li, and Zheng Zhang. \n506 Deep graph library: A graph-centric, highly-performant package for graph neural networks. \n507 arXiv preprint arXiv:1909.01315, 2019. \n508 [37] Zhenqin Wu, Bharath Ramsundar, Evan N Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S \n509 Pappu, Karl Leswing, and Vijay Pande. Moleculenet: a benchmark for molecular machine \n510 learning. Chemical science, 9(2):513–530, 2018. \n511 [38] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural \n512 networks? arXiv preprint arXiv:1810.00826, 2018. \n513 [39] Pinar Yanardag and SVN Vishwanathan. Deep graph kernels. In Proceedings of the 21th ACM \n514 SIGKDD international conference on knowledge discovery and data mining, pages 1365–1374, \n515 2015. \n516 [40] Yuning You, Tianlong Chen, Yongduo Sui, Ting Chen, Zhangyang Wang, and Yang Shen. \n517 Graph contrastive learning with augmentations. Advances in Neural Information Processing \n518 Systems, 33, 2020. \n519 [41] Fanjin Zhang, Xiao Liu, Jie Tang, Yuxiao Dong, Peiran Yao, Jie Zhang, Xiaotao Gu, Yan Wang, \n520 Bin Shao, Rui Li, et al. Oag: Toward linking large-scale heterogeneous entity graphs. In \n521 Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & \n522 Data Mining, pages 2585–2595, 2019. \n523 [42] Jie Zhang, Yuxiao Dong, Yan Wang, Jie Tang, and Ming Ding. Prone: Fast and scalable network \n524 representation learning. In IJCAI, volume 19, pages 4278–4284, 2019. \n525 [43] Muhan Zhang, Zhicheng Cui, Marion Neumann, and Yixin Chen. An end-to-end deep learning \n526 architecture for graph classification. In Proceedings of the AAAI Conference on Artificial \n527 Intelligence, volume 32, 2018. \n528 [44] Shenghuo Zhu, Kai Yu, Yun Chi, and Yihong Gong. Combining content and link for classifica \n529 tion using matrix factorization. In SIGIR, 2007. ",
1119
+ "bbox": [
1120
+ 137,
1121
+ 90,
1122
+ 828,
1123
+ 534
1124
+ ],
1125
+ "page_idx": 11
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "1. For all authors... ",
1130
+ "bbox": [
1131
+ 214,
1132
+ 117,
1133
+ 339,
1134
+ 131
1135
+ ],
1136
+ "page_idx": 12
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] The main contribution of this paper is the proposal of an effective and more universal positive instance selection strategy that can be applied on various kinds of graph data in the contrastive learning process. We also propose an improvement of the a widely used node-level pre-training strategy to adaptively choose nodes to make them distributed evenly in the graph. Moreover, we discover the potential possibility of the cross-domain transferable ability of the pre-trained GNN models. \n(b) Did you describe the limitations of your work? [Yes] See Sec. 6. \n(c) Did you discuss any potential negative societal impacts of your work? [Yes] See Sec. C. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1141
+ "bbox": [
1142
+ 238,
1143
+ 137,
1144
+ 825,
1145
+ 311
1146
+ ],
1147
+ "page_idx": 12
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "2. If you are including theoretical results... ",
1152
+ "bbox": [
1153
+ 214,
1154
+ 316,
1155
+ 493,
1156
+ 330
1157
+ ],
1158
+ "page_idx": 12
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] See Sec. A.7. We make reasonable assumptions on the possibility density function of the approximate similarity function on the ground-truth positive graph set and negative graph set. Some reasonable approximations are made in the derivation process. \n(b) Did you include complete proofs of all theoretical results? [Yes] See Sec. A.7. ",
1163
+ "bbox": [
1164
+ 232,
1165
+ 335,
1166
+ 825,
1167
+ 409
1168
+ ],
1169
+ "page_idx": 12
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "3. If you ran experiments... ",
1174
+ "bbox": [
1175
+ 214,
1176
+ 414,
1177
+ 393,
1178
+ 428
1179
+ ],
1180
+ "page_idx": 12
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] See Sec. A.1 for descriptions and download links for datasets. Download links for our pre-processed data are shared along with the code. Code is provided with supplemental material. Instructions for reproduction are stated in README.md file in the supplemental material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Sec. A.2 for implementation details, including pre-training and fine-tuning configuration and hyper-parameter selection. See Sec. A.1 for descriptions for datasets and the splitting methods. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We report mean and std values for 3 independently random initialized run for each evaluation process on molecular graph datasets. See Table 1 and Table 12 for details. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Sec. A.2 for hardware configurations. ",
1185
+ "bbox": [
1186
+ 235,
1187
+ 433,
1188
+ 826,
1189
+ 676
1190
+ ],
1191
+ "page_idx": 12
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1196
+ "bbox": [
1197
+ 215,
1198
+ 681,
1199
+ 823,
1200
+ 695
1201
+ ],
1202
+ "page_idx": 12
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "(a) If your work uses existing assets, did you citep the creators? [Yes] We provide links for data and code that are from public respiratory we used in our project. We also cite related papers. See Sec. A.1 and Sec. A.3. \n(b) Did you mention the license of the assets? [Yes] Datasets obtained from published works are with related papers cited. See Sec. A.1 \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] No new datasets are proposed. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] Download links for public datasets we used are provided. Datasets obtained from published works are with related papers cited. See Sec. A.1 \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [Yes] Datasets we use are obtained from public datasets, containing no such information. We provide links for them in Sec. A.1. . ",
1207
+ "bbox": [
1208
+ 238,
1209
+ 700,
1210
+ 825,
1211
+ 892
1212
+ ],
1213
+ "page_idx": 12
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1218
+ "bbox": [
1219
+ 212,
1220
+ 897,
1221
+ 705,
1222
+ 911
1223
+ ],
1224
+ "page_idx": 12
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "583 (a) Did you include the full text of instructions given to participants and screenshots, if \n584 applicable? [N/A] \n585 (b) Did you describe any potential participant risks, with links to Institutional Review \n586 Board (IRB) approvals, if applicable? [N/A] \n587 (c) Did you include the estimated hourly wage paid to participants and the total amount \n588 spent on participant compensation? [N/A] ",
1229
+ "bbox": [
1230
+ 137,
1231
+ 90,
1232
+ 826,
1233
+ 181
1234
+ ],
1235
+ "page_idx": 13
1236
+ }
1237
+ ]
parse/train/MRYuRHsHzK4/MRYuRHsHzK4_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/MRYuRHsHzK4/MRYuRHsHzK4_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/N33d7wjgzde/N33d7wjgzde.md ADDED
@@ -0,0 +1,383 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # UNIVERSAL WEAKLY SUPERVISED SEGMENTATION BY PIXEL-TO-SEGMENT CONTRASTIVE LEARNING
2
+
3
+ Tsung-Wei Ke Jyh-Jing Hwang Stella X. Yu UC Berkeley / ICSI {twke,jyh,stellayu}@berkeley.edu
4
+
5
+ # ABSTRACT
6
+
7
+ Weakly supervised segmentation requires assigning a label to every pixel based on training instances with partial annotations such as image-level tags, object bounding boxes, labeled points and scribbles. This task is challenging, as coarse annotations (tags, boxes) lack precise pixel localization whereas sparse annotations (points, scribbles) lack broad region coverage. Existing methods tackle these two types of weak supervision differently: Class activation maps are used to localize coarse labels and iteratively refine the segmentation model, whereas conditional random fields are used to propagate sparse labels to the entire image.
8
+
9
+ We formulate weakly supervised segmentation as a semi-supervised metric learning problem, where pixels of the same (different) semantics need to be mapped to the same (distinctive) features. We propose 4 types of contrastive relationships between pixels and segments in the feature space, capturing low-level image similarity, semantic annotation, co-occurrence, and feature affinity. They act as priors; the pixel-wise feature can be learned from training images with any partial annotations in a data-driven fashion. In particular, unlabeled pixels in training images participate not only in data-driven grouping within each image, but also in discriminative feature learning within and across images. We deliver a universal weakly supervised segmenter with significant gains on Pascal VOC and DensePose. Our code is publicly available at https://github.com/twke18/SPML.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Consider the task of learning a semantic segmenter given sparsely labeled training images (Fig. 1): Each body part is labeled with a single seed pixel and the task is to segment out the entire person by individual body parts, even though the ground-truth segmentation is not known during training. This task is challenging, as not only a single body part could contain several visually distinctive areas (e.g., head consists of eyes, nose, mouth, beard), but two adjacent body parts could also have the same visual appearance (e.g., upper arm, lower arm, and hand have the same skin appearance). Once the segmenter is learned, it can be applied to a test image without any annotations.
14
+
15
+ ![](images/fa37bfbc4a4cd059ca8d6709827f3e3ebb972d790524cd4c98ba7c06557fc65b.jpg)
16
+ Figure 1: Our task learns a segmenter given partially labeled training images and applies it to test images. A common baseline is to propagate labels within an image based on feature similarity. We model it as semi-supervised metric learning and learn the pixel-wise feature by contrasting it within and across images. Our results are fuller and more accurate, approaching the ground-truth.
17
+
18
+ Figure 2: We propose a unified framework for weakly supervised semantic segmentation with different types of annotations. We demonstrate consistent performance gains compared to the state-ofthe-art (SOTA) methods: Chang et al. (2020) for image tags, Song et al. (2019) for bounding boxes, and Tang et al. (2018b) for points and scribbles. For tags and boxes, Class Activation Maps (CAM) (Zhou et al., 2016) are often used to localize semantics as an initial mask and iteratively refine the segmentation model, whereas for labeled points and scribbles, Conditional Random Fields (CRF) are used to propagate semantic labels to unlabeled regions based on low-level image similarity.
19
+
20
+ <table><tr><td>image</td><td>image tags</td><td colspan="2">bounding boxes</td><td>labeled points</td><td>scribbles</td></tr><tr><td></td><td rowspan="3">Person Motorbike</td><td></td><td></td><td rowspan="3">.</td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td>·</td></tr><tr><td>SOTA methods</td><td rowspan="2">CAM +refine</td><td></td><td>box-wise CAM</td><td>CRF loss</td><td>CRF loss</td></tr><tr><td>our method</td><td colspan="4">single pixel-to-segment contrastive learning loss formulation</td></tr><tr><td>our relative gain</td><td>+8.6%</td><td colspan="2">+4.7%</td><td>+24.7%</td><td>+1.4%</td></tr></table>
21
+
22
+ This task belongs to a family of weakly supervised segmentation problems, the goal of which is to assign a label to each pixel despite that only partial supervision is available during training. It addresses the practical issue of learning segmentation from minimum annotations. Such weak supervision takes many forms, e.g., image tags (Kolesnikov & Lampert, 2016; Ahn & Kwak, 2018; Huang et al., 2018; Lee et al., 2019), bounding boxes (Dai et al., 2015; Khoreva et al., 2017; Song et al., 2019), keypoints (Bearman et al., 2016), and scribbles (Lin et al., 2016; Tang et al., 2018a;b). Tags and boxes are coarse annotations that lack precise pixel localization whereas points and scribbles are sparse annotations that lack broad region coverage.
23
+
24
+ Weakly supervised semantic segmentation can be regarded as a semi-supervised pixel classification problem: Some pixels or pixel sets have labels, most don’t, and the key is how to propagate and refine annotations from coarsely and sparsely labeled pixels to unlabeled pixels.
25
+
26
+ Existing methods tackle two types of weak supervision differently: Class Activation Maps (CAM) (Zhou et al., 2016) are used to localize coarse labels, generate pseudo pixel-wise labels, and iteratively refine the segmentation model, whereas Conditional Random Fields (CRF) (Krahenb ¨ uhl ¨ & Koltun, 2011) are used to propagate sparse labels to the entire image. These ideas can be incorporated as an additional unsupervised loss on the feature learned for segmentation (Tang et al., 2018b): While labeled pixels receive supervision, unlabeled pixels in different segments shall have distinctive feature representations.
27
+
28
+ We propose a Semi-supervised Pixel-wise Metric Learning (SPML) model that can handle all these weak supervision varieties with a single pixel-to-segment contrastive learning formulation (Fig. 2). Instead of classifying pixels, our metric learning model learns a pixel-wise feature embedding based on common grouping relationships that can be derived from any form of weak supervision.
29
+
30
+ Our key insight is to integrate unlabeled pixels into both supervised labeling and discriminative feature learning. They shall participate not only in data-driven grouping within each image, but also in discriminative feature learning within and more importantly across images. Intuitively, labeled pixels receive supervision not only for themselves, but also for their surround pixels that share visual similarity. On the other hand, unlabeled pixels are not just passively brought into discriminative learning induced by sparsely labeled pixels, they themselves are organized based on bottom-up grouping cues (such as grouping by color similarity and separation by strong contours). When they are examined across images, repeated patterns of frequent occurrences would also form a cluster that demand active discrimination from other patterns.
31
+
32
+ We capture the above insight in a single pixel-wise metric learning objective for segmentation, the goal of which is to map each pixel into a point in the feature space so that pixels in the same (different) semantic groups are close (far) in the feature space. Our model extends SegSort (Hwang et al., 2019) from its fully supervised and unsupervised segmentation settings to a universal weaklysupervised segmentation setting. With a single consistent feature learning criterion, such a model sorts pixels discriminatively within individual images and sorts segment clusters discriminatively across images, both steps minimizing the same feature discrimination loss.
33
+
34
+ Our experiments on Pascal VOC (Everingham et al., 2010) and DensePose (Alp Guler et al., 2018) ¨ demonstrate consistent gains over the state-of-the-art (SOTA), and the gain is substantial especially for the sparsest keypoint supervision.
35
+
36
+ # 2 RELATED WORK
37
+
38
+ Semi-supervised learning. Weston et al. (2012) treats it as a joint learning problem with both labeled and unlabeled data. One way is to capture the underlying structure of unlabeled data with generative models (Kingma et al., 2014; Rasmus et al., 2015). Another way is to regularize feature learning through a consistency loss, e.g., adversarial ensembling (Miyato et al., 2018), imitation learning and distillation (Tarvainen & Valpola, 2017), cross-view ensembling (Clark et al., 2018). These methods are most related to transductive learning (Joachims, 2003; Zhou et al., 2004; Fergus et al., 2009; Liu et al., 2019), where labels are propagated to unlabeled data via clustering in the pretrained feature space. Our work does transductive learning in an adaptively learned feature space.
39
+
40
+ Weakly-supervised semantic segmentation. Partial annotations include scribbles (Lin et al., 2016; Tang et al., 2018a;b; Wang et al., 2019), bounding boxes (Dai et al., 2015; Khoreva et al., 2017; Song et al., 2019), points (Bearman et al., 2016), or image tags (Papandreou et al., 2015; Kolesnikov & Lampert, 2016; Ahn & Kwak, 2018; Huang et al., 2018; Li et al., 2018; Lee et al., 2019; Shimoda & Yanai, 2019; Zhang et al., 2019; Yao & Gong, 2020; Chang et al., 2020; Araslanov & Roth, 2020; Wang et al., 2020; Fan et al., 2020; Sun et al., 2020). Xu et al. (2015) formulates all types of weak supervision as linear constraints on a SVM. Papandreou et al. (2015) bootstraps segmentation predictions via EM-optimization. Recent works (Lin et al., 2016; Kolesnikov & Lampert, 2016; Pathak et al., 2015) typically use CAM (Zhou et al., 2016) to obtain an initial dense mask and then train a model iteratively. GAIN (Li et al., 2018) utilizes image tags or bounding boxes to refine these class-specific activation maps. Sun et al. (2020) considers within-image relationships and explores the idea of co-segmentation. Fan et al. (2020) estimates the foreground and background for each category, with which the network learns to generate more precise CAMs. Regularization is enforced at either the image level (Lin et al., 2016; Kolesnikov & Lampert, 2016; Pathak et al., 2015) or the feature level (Tang et al., 2018a;b) to produce better dense masks. We incorporate this concept into adaptive feature learning and train the model only once. All types of weak annotations are dealt with in a single contrastive learning framework.
41
+
42
+ Non-parametric segmentation. Prior to deep learning, non-parametric models (Russell et al., 2009; Tighe & Lazebnik, 2010; Liu et al., 2011) usually use designed features with statistical or graphical models to segment images. Recently, inspired by non-parametric models for recognition (Wu et al., 2018b;a), SegSort (Hwang et al., 2019) captures pixel-to-segment relationships via a pixel-wise embedding and develops the first deep non-parametric semantic segmentation for supervised and unsupervised settings. Building upon SegSort, our work has the flexibility of a non-parametric model at capturing data relationships and modeling subclusters within a category.
43
+
44
+ # 3 SEMI-SUPERVISED PIXEL-WISE METRIC LEARNING METHOD
45
+
46
+ Metric learning develops a feature representation based on data grouping and separation cues. Our method (Fig. 3) segments an image by learning a pixel-wise embedding with a contrastive loss between pixels and segments: For each pixel $i$ , we learn a latent feature $\phi ( i )$ such that $i$ is close to its positive segments (exemplars) and far from its negative ones in that feature space.
47
+
48
+ In the fully supervised setting, we can define pixel $i$ ’s positive and negative sets, denoted by $\mathcal { C } ^ { + }$ and $\scriptstyle { { \mathcal { C } } ^ { - } }$ respectively, as pixels in the same (different) category. However, this idea is not applicable to weakly- or un-supervised settings where the label is not available on every pixel. In the labeled points setting, $\mathcal { C } ^ { + }$ and $\scriptstyle { { \mathcal { C } } ^ { - } }$ would only contain a few exemplars according to the sparse pixel labels.
49
+
50
+ ![](images/81ee83f2586f6c3a6f60fa8528fffff40a62151178247a07f95ce4a88ce002e5.jpg)
51
+ Figure 3: Overall method diagram. We develop pixel-wise embeddings with contrastive learning between pixels and segments. We derive various forms of positive and negative segments for each pixel. Our goal is to attract (blue inward arrows) the pixel with positive segments, while repelling (red outward arrows) it from negative segments in the feature space.
52
+
53
+ ![](images/5f4d9d5557775ee093d6502f2ad5cfb8fe06ddc1c59d86f7180b5d4ee070c620.jpg)
54
+ Figure 4: Four types of pixel-to-segment attraction and repulsion relationships. A pixel is attracted to (repelled by) segments: a) of similar (different) visual appearances such as color or texture, b) of the same (different) class labels, c) in images with common (distinctive) labels, d) of nearby (far-away) feature embeddings. They form different positive and negative sets.
55
+
56
+ Our basic idea is to enlarge the sets of $\mathcal { C } ^ { + }$ and $\scriptstyle { { \mathcal { C } } ^ { - } }$ to improve the feature learning efficacy. By exploring different relationships and assumptions in the image data, we are able to generate abundant positive and negative segments for any pixel at the same time, providing more supervision in the latent feature space. We propose four types of relationships between pixels and segments (Fig. 4):
57
+
58
+ 1. Low-level image similarity: We impose a spatial smoothness prior on the pixel-wise feature to keep pixels together in visually coherent regions. The segment pixel $i$ belongs to based on low-level image cues is a positive segment to pixel $i$ ; any other segments are negative ones.
59
+
60
+ 2. Semantic annotation: We expand the semantics from labeled points and scribbles to pseudolabels inferred from image- or box-wise CAM. The label of a segment can be estimated by majority vote among pixels; if it is the same as pixel $i$ ’s, the segment is a positive segment to $i$ .
61
+
62
+ 3. Semantic co-occurrence: We expand the semantics by assuming that pixels in similar semantic contexts tend to be grouped together. If a segment appears in an image that shares any of the semantic classes as pixel $i$ ’s image, it is a positive segment to $i$ and otherwise a negative one.
63
+
64
+ 4. Feature affinity: We impose a featural smoothness prior assuming that pixels and segments of the same semantics form a cluster in the feature space. We propagate the semantics within and across images from pixel $i$ to its closest segment $s$ in the feature space.
65
+
66
+ 3.1 PIXEL-TO-SEGMENT CONTRASTIVE GROUPING RELATIONSHIPS
67
+
68
+ Our goal is to propagate known semantics from labeled data $\mathcal { C }$ to unlabeled data $\mathcal { U }$ with the aforementioned priors. $\mathcal { C }$ and $\mathcal { U }$ denote the sets of segment indices respectively. We detail how to augment positive / negative segment sets using both $\mathcal { C }$ and $\mathcal { U }$ for each type of relationships (Fig. 4).
69
+
70
+ Low-level image similarity. To propagate labels within visually coherent regions, we generate a low-level over-segmentation. Following SegSort (Hwang et al., 2019), we use the HED contour detector (Xie & Tu, 2015) (pre-trained on BSDS500 dataset (Arbelaez et al., 2010)) and $\mathrm { g P b }$ -owtucm (Arbelaez et al., 2010) to generate a segmentation without semantic information. We define $i$ ’s positive and negative segments as $i$ ’s own segment and all the other segments, denoted as $\mathcal { V } ^ { + }$ and $\nu ^ { - }$ respectively. We only consider segments in the same image as pixel $i$ ’s. We align the contour-based over-segmentations with segmentations generated by K-Means clustering as in SegSort.
71
+
72
+ Semantic annotation. Image tags and bounding boxes do not provide pixel-wise localization. We derive pseudo labels from image- or box-wise CAM and align them with oversegmentations induced by the pixel-wise feature. Pixel $i$ ’s positive (negative) segments are the ones with the same (different) semantic category, denoted by $\mathcal { C } ^ { + }$ and $\mathcal { C } ^ { - }$ respectively. We ignore all the unlabeled segments.
73
+
74
+ Semantic co-occurrence. Semantic context characterizes the co-occurrences of different objects, which can be used as a prior to group and separate pixels. We define semantic context as the union of object classes in each image. Even without the pixel-wise localization of semantic labels, we can leverage semantic context to impose global regularization on the latent feature: The feature should separate images without any overlapping object categories.
75
+
76
+ Let ${ \mathcal { O } } ^ { + } ~ ( { \mathcal { O } } ^ { - } )$ denote the set of segments in images with (without) overlapping categories as pixel $i$ ’s image. That is, if the image of pixel $i$ and another image share any semantic labels (Fig. 4c: {cat, sofa, table, chair} for the pixel in the Row 2 image vs. $\{ s o f a \}$ for the Row 1 image), then all the segments from that image are positive segments to $i$ and included in $\mathcal { O } ^ { + }$ ; otherwise they are considered negative segments in $\mathcal { O } ^ { - }$ (Fig. 4c: all the segments in the Row 3 image). In particular, all the segments in pixel $i$ ’s image are in ${ \bar { \mathcal { O } } } ^ { + }$ of $i$ . This semantic context relationship does not require localized annotations yet imposes regularization on pixel feature learning.
77
+
78
+ Feature affinity. Our goal is to learn a pixel-wise feature that indicates semantic segmentation. It is thus reasonable to assume that pixels and segments of the same semantics form a cluster in the feature space, and we reinforce such clusters with a featural smoothness prior: We find nearest neighbours in the feature space and propagate labels accordingly.
79
+
80
+ Specifically, we assign a semantic label to each unlabeled segment by finding its nearest labeled segment in the feature space. We denote this expanded labeled set by $\hat { \mathcal { C } }$ . For pixel $i$ , we define its positive (negative) segment set $\hat { \mathcal { C } } ^ { + } \left( \hat { \mathcal { C } } ^ { - } \right)$ according to whether a segment has the same label as $i$ .
81
+
82
+ Our feature affinity relationship works best when: 1) the original labeled set is large enough to cover the feature space, 2) the labeled segments are distributed uniformly in the feature space, and 3) the pixel-wise feature already encodes certain semantic information. We thus only apply to DensePose keypoint annotations in our experiments, where each body part is annotated by a point.
83
+
84
+ # 3.2 PIXEL-WISE METRIC LEARNING LOSS
85
+
86
+ SegSort (Hwang et al., 2019) is an end-to-end segmentation model that generates a pixel-wise feature map and a resulting segmentation. Assuming independent normal distributions for individual segments, SegSort seeks a maximum likelihood estimation of the feature mapping, so that the feature induced partitioning in the image and clustering across images provide maximum discrimination among segments. During inference, the segment label is predicted by K-Nearest Neighbor retrievals.
87
+
88
+ The feature induced partitioning in each image is calculated via spherical K-Means clustering (Banerjee et al., 2005). Let $\boldsymbol { e } _ { i }$ denote the feature vector at pixel $i$ , which contains the mapped feature $\phi ( i )$ and $i$ ’s spatial coordinates. Let $z _ { i }$ denote the index of the segment that pixel $i$ belongs to, $\pmb { R } _ { s }$ the set of pixels in segment $s$ , and $\pmb { \mu } _ { s }$ the segment feature calculated as the spherical cluster centroid of segment $s$ . In the Expectation-Maximization (EM) procedure for spherical $\mathbf { K }$ -means, the E-step calculates the most likely segment pixel $i$ belongs to: $z _ { i } = \arg \operatorname* { m a x } _ { s } \pmb { \mu } _ { s } ^ { \prime } \pmb { e } _ { i }$ , and the M-Step updates the segment feature as the mean pixel-wise feature: µs = Pi∈Rs eik Pi∈R eik .
89
+
90
+ ![](images/4372474c7bac351ff0de33bf8a220f92e739999857b394d6bf78afb530066b22.jpg)
91
+ Figure 5: Our method uses labeled and unlabeled portions of the training data more extensively. a) Training images and their labeled scribbles are sparse and incomplete. b) Existing methods train a pixel-wise classifier using only labeled pixels and propagate labels within each image. c) Our method leverages four types of pixel-to-segment semantic relationships to augment the labeled sets, includes unlabeled pixels (fuller segments than just thin scribbles) and unlabeled segments (e.g. desk outlined in magenta), forms dynamic contrastive relationships between segments (e.g. the desk can be positive, negative, or to be ignored to the sofa in different relations.
92
+
93
+ Let $s$ denote the resulting segment that pixel $i$ belongs to per spherical clustering. The posterior probability of pixel $i$ in segment $s$ can be evaluated over the set of all segments $S$ as:
94
+
95
+ $$
96
+ p ( z _ { i } = s | \pmb { e } _ { i } , \pmb { \mu } ) = \frac { \exp ( \kappa \pmb { \mu } _ { s } ^ { \prime } \pmb { e } _ { i } ) } { \sum _ { t \in S } \exp ( \kappa \pmb { \mu } _ { t } ^ { \prime } \pmb { e } _ { i } ) }
97
+ $$
98
+
99
+ where $\kappa$ is a concentration hyper-parameter. SegSort minimizes the negative log-likelihood loss:
100
+
101
+ $$
102
+ L _ { \mathrm { S e g S o r t } } ( i ) = - \log p ( z _ { i } = s | e _ { i } , \mu ) = - \log \frac { \exp ( \kappa \mu _ { s } ^ { \prime } e _ { i } ) } { \sum _ { t \in S } \exp ( \kappa \mu _ { t } ^ { \prime } e _ { i } ) } .
103
+ $$
104
+
105
+ SegSort adopts soft neighborhood assignment (Goldberger et al., 2005) to further strengthen the grouping of same-category segments. Let ${ \mathcal { C } } ^ { + } \left( { \mathcal { C } } ^ { - } \right)$ denote the index set of segments in the same (different) category as pixel $i$ except $s -$ the segment $i$ belongs to. We have:
106
+
107
+ $$
108
+ L _ { \mathrm { S e g S o r t ^ { + } } } ( i , \mathcal { C } ^ { + } , \mathcal { C } ^ { - } ) = - \log \sum _ { t \in \mathcal { C } ^ { + } } p ( z _ { i } = t | e _ { i } , \mu ) = - \log \frac { \sum _ { t \in \mathcal { C } ^ { + } } \exp ( \kappa \mu _ { t } ^ { \prime } e _ { i } ) } { \sum _ { t \in \mathcal { C } ^ { + } \cup \mathcal { C } ^ { - } } \exp ( \kappa \mu _ { t } ^ { \prime } e _ { i } ) } .
109
+ $$
110
+
111
+ For our weakly supervised segmentation, the total pixel-to-segment contrastive loss for pixel $i$ consists of 4 terms, one for each of the 4 pixel-to-segment attraction and repulsion relationships:
112
+
113
+ $$
114
+ \begin{array} { r l } & { L ( i ) = \lambda _ { I } L _ { \mathrm { S e g S o r t } ^ { + } } ( i , \mathcal { V } ^ { + } , \mathcal { V } ^ { - } ) + \lambda _ { C } L _ { \mathrm { S e g S o r t } ^ { + } } ( i , \mathcal { C } ^ { + } , \mathcal { C } ^ { - } ) } \\ & { \qquad + \lambda _ { O } L _ { \mathrm { S e g S o r t } ^ { + } } ( i , \mathcal { O } ^ { + } , \mathcal { O } ^ { - } ) + \lambda _ { A } L _ { \mathrm { S e g S o r t } ^ { + } } ( i , \mathcal { \hat { C } } ^ { + } , \mathcal { \hat { C } } ^ { - } ) , } \end{array}
115
+ $$
116
+
117
+ where $\lambda _ { C } = 1$ . Fig. 5 shows how our metric learning method utilizes labeled and unlabeled pixels and segments more extensively than existing classification methods: Our pseudo-labeled sets are fuller than labeled thin scribbles and include unlabeled segments; there are 3 more relationships other than semantic annotations; our segments participate in contrastive learning with dynamic roles in different relations. By easily integrating a full range of pixel-to-segment attraction and repulsion relationships from low-level image similarity to mid-level feature affinity, and to high-level semantic co-occurrence, we go far beyond the direct supervision from semantic annotations.
118
+
119
+ # 4 EXPERIMENTS ON PASCAL VOC AND DENSEPOSE
120
+
121
+ Datasets. Pascal VOC 2012 Everingham et al. (2010) includes 20 object categories and one background class. Following Chen et al. (2017), we use the augmented training set with 10,582 images and validation set with 1,449 images. We use the scribble annotations provided by Lin et al.
122
+
123
+ <table><tr><td>Dataset</td><td>Annotation</td><td>入1</td><td>入</td><td>入A</td></tr><tr><td rowspan="4">Pascal</td><td> image tags</td><td>0.3</td><td>1.0</td><td>0.0</td></tr><tr><td>boxes</td><td>0.3</td><td>1.0</td><td>0.0</td></tr><tr><td>points</td><td>1.0</td><td>1.0</td><td>0.0</td></tr><tr><td>scribbles</td><td>0.1</td><td>0.5</td><td>0.0</td></tr><tr><td>DensePose</td><td>points</td><td>0.1</td><td>0.0</td><td>0.5</td></tr></table>
124
+
125
+ Table 1: Hyper-parameters for different types of annotations on Pascal and DensePose dataset.
126
+
127
+ (2016) for training. DensePose (Alp Guler et al., 2018) is a human pose parsing dataset based on ¨ MSCOCO (Lin et al., 2014). The dataset is annotated with 14 body part classes. We extract the keypoints from the center of each part segmentation. The training set includes 26,437 images and we use minival2014 set for testing, which includes 1,508 images. See Appendix for more details.
128
+
129
+ Architecture, training and testing. For all the experiments on PASCAL VOC, we base our architecture on DeepLab (Chen et al., 2017) with ResNet101 (He et al., 2016) as the backbone network. For the experiments on DensePose, we adopt PSPNet (Zhao et al., 2017) as the backbone network. Our models are pre-trained on ImageNet (Deng et al., 2009) dataset. See Appendix for details on our inference procedure and hyper-parameter selection for training and testing.
130
+
131
+ For each type of annotations and dataset, we formulate four types of pixel-to-segment contrastive relationships and jointly optimize them in a single pixel-wise metric learning framework (Fig. 3). Table 1 shows the data-driven selection of hyperparameters $\lambda _ { I } , \lambda _ { O }$ and $\lambda _ { A }$ for different task settings.
132
+
133
+ Pascal: Image tag annotations. Table 2 shows that, without using additional saliency labels, our method outperforms existing methods with saliency by $4 . 4 \%$ , and those without saliency by $5 . 1 \%$ .
134
+
135
+ Pascal: Bounding box annotations. Table 2 shows that, with the same DeepLab/ResNet101 backbone network, our method outperforms existing methods by $3 . 2 \%$ .
136
+
137
+ Table 2: Pascal VOC 2012 dataset with image tag (left) and bounding box (right) annotations.
138
+
139
+ <table><tr><td rowspan=1 colspan=1>Pascal: Image tags</td><td rowspan=1 colspan=1>Saliency</td><td rowspan=1 colspan=1>val</td><td rowspan=1 colspan=1>test</td></tr><tr><td rowspan=1 colspan=1>Huang et al. (2018)Lee et al. (2019)Zhang et al. (2019)Yao&amp;Gong (2020)Chang et al. (2020)</td><td rowspan=1 colspan=1>√√4</td><td rowspan=1 colspan=1>61.464.966.367.166.1</td><td rowspan=1 colspan=1>63.265.366.567.265.9</td></tr><tr><td rowspan=1 colspan=1>Our SPML</td><td rowspan=1 colspan=1>-</td><td rowspan=1 colspan=1>69.5</td><td rowspan=1 colspan=1>71.6</td></tr></table>
140
+
141
+ <table><tr><td rowspan=1 colspan=1>Pascal: Bounding boxes</td><td rowspan=1 colspan=1>val</td><td rowspan=1 colspan=1>test</td></tr><tr><td rowspan=1 colspan=1>Khoreva et al. (2017)Song et al. (2019)</td><td rowspan=1 colspan=1>69.470.2</td><td rowspan=1 colspan=1>1-</td></tr><tr><td rowspan=1 colspan=1>Our SPML</td><td rowspan=1 colspan=1>73.5</td><td rowspan=1 colspan=1>74.7</td></tr></table>
142
+
143
+ ![](images/9fdc4f2b480b8d21b311c6b25e76dffa0d509af1b5856464e461935d96524b53.jpg)
144
+
145
+ Table 3: Pascal VOC 2012 dataset using scribble annotations. Left: mIoU on validataion (white) and test (gray) set. WvF denotes relative mIoU w.r.t full supervision. Right: Relative mIoU performance w.r.t full supervision on different lengths of scribbles.
146
+
147
+ <table><tr><td rowspan=1 colspan=1>Pascal: Scribbles</td><td rowspan=1 colspan=1>CRF</td><td rowspan=1 colspan=1>Full</td><td rowspan=1 colspan=1>Weak WvF</td></tr><tr><td rowspan=2 colspan=1>Tang et al. (2018a)Tang et al. (2018a)Tang et al. (2018b)Tang et al. (2018b)Wang et al. (2019)Wang et al. (2019)</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>75.6</td><td rowspan=1 colspan=1>72.8 96.3</td></tr><tr><td rowspan=1 colspan=1>√√</td><td rowspan=1 colspan=1>76.875.676.875.676.8</td><td rowspan=1 colspan=1>74.5 97.073.0 96.675.0 97.773.2 96.876.0 99.0</td></tr><tr><td rowspan=1 colspan=1>Our SPMLOur SPML</td><td rowspan=1 colspan=1>厂</td><td rowspan=1 colspan=1>76.177.3</td><td rowspan=1 colspan=1>74.2 97.576.1 98.4</td></tr></table>
148
+
149
+ Pascal: Scribble annotations. Table 3 shows that, our method consistently delivers the best performance among methods without or with CRF post-processing. We get ${ \mathrm { 7 4 . 2 \% } }$ $( 7 6 . 1 \% )$ mIoU, achieving $9 7 . 5 \%$ ( $9 8 . 4 \% )$ of full supervision performance in these two categories respectively.
150
+
151
+ Pascal: Varying sparsity of scribble and point annotations. Exploiting metric learning with different relationships in the data frees us from the classification framework and delivers a more powerful approach that requires fewer annotations. Table 3 shows that, as we shorten the length of scribbles from $1 0 0 \%$ , $8 0 \%$ , $5 0 \%$ , $3 0 \%$ to $0 \%$ (points), we reach $9 7 . 5 \%$ , $9 7 . 5 \%$ , $9 6 . 3 \%$ , $9 6 . 5 \%$ and $9 3 . 7 \%$ of full supervision performance. Compared to the full scribble annotations, our accuracy only drops $3 . 7 \%$ with point labels and is significantly better than the baseline.
152
+
153
+ ![](images/2e28ebadfcde0c3871f2ca5ec0c212a1098a100a676e220339644f3f29497d59.jpg)
154
+ Figure 6: Our results on Pascal and DensePose under various weak supervision settings are consistently better aligned with region boundaries and visually closer to fully supervised counterparts.
155
+
156
+ ![](images/b027b65eeabba2085aa8c49537d4a98a06c8c2d606c10c0ee0379a2ceb62ae0f.jpg)
157
+ Figure 7: Our segmentation results get better with more types of regularizations. We compare visual results by adding more regularizations. As we introduce more relationships for regularization, we observe significant improvement and our results are visually closer to fully supervised counterparts.
158
+
159
+ <table><tr><td rowspan=1 colspan=1>DensePose: Points</td><td rowspan=1 colspan=1>mIoU</td><td rowspan=1 colspan=1>WvF</td></tr><tr><td rowspan=1 colspan=1>Tang et al. (2018b)</td><td rowspan=1 colspan=1>31.3</td><td rowspan=1 colspan=1>51.9</td></tr><tr><td rowspan=1 colspan=1>Our SPML</td><td rowspan=1 colspan=1>44.2</td><td rowspan=1 colspan=1>77.1</td></tr></table>
160
+
161
+ Table 4: DensePose minival 2014 set.
162
+
163
+ DensePose: Point annotations. We train our baseline using the code released by Tang et al. (2018b). Table 4 shows that, our method without CRF post-processing outperforms the baseline by $1 2 . 9 \%$ mIoU, reaching $7 7 . 1 \%$ of full supervision performance with only point supervision.
164
+
165
+ Visual quality and ablation study. Fig. 6 shows that our results are better aligned with region boundaries and visually closer to fully-supervised counterparts. Fig. 7 shows that our results improve significantly with different relationships for more regularization. See Appendix for more details and ablation studies.
166
+
167
+ Summary. We propose a novel weakly-supervised semantic segmentation method via Semisupervised Pixel-wise Metric Learning, based on four common types of pixel-to-segment attraction and repulsion relationships. It is universally applicable to various weak supervision settings, whether the training images are coarsely annotated by image tags or bounding boxes, or sparsely annotated by keypoints or scribbles. Our results on PASCAL VOC and DensePose show consistent and substantial gains over SOTA, especially for the sparsest keypoint supervision.
168
+
169
+ Acknowledgements. This work was supported, in part, by Berkeley Deep Drive and Berkeley AI Research Commons with Facebook. This work used the Extreme Science and Engineering Discovery Environment (XSEDE), which is supported by National Science Foundation grant number ACI-1548562. Specifically, it used the Bridges system, which is supported by NSF award number ACI-1445606, at the Pittsburgh Supercomputing Center (PSC).
170
+
171
+ # REFERENCES
172
+
173
+ Jiwoon Ahn and Suha Kwak. Learning pixel-level semantic affinity with image-level supervision for weakly supervised semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4981–4990, 2018.
174
+
175
+ Rıza Alp Guler, Natalia Neverova, and Iasonas Kokkinos. Densepose: Dense human pose estimation ¨ in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7297–7306, 2018.
176
+
177
+ Nikita Araslanov and Stefan Roth. Single-stage semantic segmentation from image labels. Proceedings of the IEEE conference on computer vision and pattern recognition, 2020.
178
+
179
+ Pablo Arbelaez, Michael Maire, Charless Fowlkes, and Jitendra Malik. Contour detection and hierarchical image segmentation. IEEE transactions on pattern analysis and machine intelligence, 33(5):898–916, 2010.
180
+
181
+ Arindam Banerjee, Inderjit S Dhillon, Joydeep Ghosh, and Suvrit Sra. Clustering on the unit hypersphere using von mises-fisher distributions. Journal of Machine Learning Research, 2005.
182
+
183
+ Amy Bearman, Olga Russakovsky, Vittorio Ferrari, and Li Fei-Fei. What’s the point: Semantic segmentation with point supervision. In European conference on computer vision, pp. 549–565. Springer, 2016.
184
+
185
+ Yu-Ting Chang, Qiaosong Wang, Wei-Chih Hung, Robinson Piramuthu, Yi-Hsuan Tsai, and MingHsuan Yang. Weakly-supervised semantic segmentation via sub-category exploration. Proceedings of the IEEE conference on computer vision and pattern recognition, 2020.
186
+
187
+ Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 40(4): 834–848, 2017.
188
+
189
+ Kevin Clark, Thang Luong, and Quoc V Le. Cross-view training for semi-supervised learning. arXiv preprint arXiv:1809.08370, 2018.
190
+
191
+ Jifeng Dai, Kaiming He, and Jian Sun. Boxsup: Exploiting bounding boxes to supervise convolutional networks for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1635–1643, 2015.
192
+
193
+ Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
194
+
195
+ Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. IJCV, 2010.
196
+
197
+ Junsong Fan, Zhaoxiang Zhang, Chunfeng Song, and Tieniu Tan. Learning integral objects with intra-class discriminator for weakly-supervised semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
198
+
199
+ Rob Fergus, Yair Weiss, and Antonio Torralba. Semi-supervised learning in gigantic image collections. In Advances in neural information processing systems, pp. 522–530, 2009.
200
+
201
+ Jacob Goldberger, Geoffrey E Hinton, Sam T Roweis, and Ruslan R Salakhutdinov. Neighbourhood components analysis. In NIPS, 2005.
202
+
203
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
204
+
205
+ Zilong Huang, Xinggang Wang, Jiasi Wang, Wenyu Liu, and Jingdong Wang. Weakly-supervised semantic segmentation network with deep seeded region growing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7014–7023, 2018.
206
+
207
+ Jyh-Jing Hwang, Stella X Yu, Jianbo Shi, Maxwell D Collins, Tien-Ju Yang, Xiao Zhang, and Liang-Chieh Chen. Segsort: Segmentation by discriminative sorting of segments. In ICCV, 2019.
208
+
209
+ Thorsten Joachims. Transductive learning via spectral graph partitioning. In Proceedings of the 20th International Conference on Machine Learning (ICML-03), pp. 290–297, 2003.
210
+
211
+ Anna Khoreva, Rodrigo Benenson, Jan Hosang, Matthias Hein, and Bernt Schiele. Simple does it: Weakly supervised instance and semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 876–885, 2017.
212
+
213
+ Durk P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Advances in neural information processing systems, pp. 3581–3589, 2014.
214
+
215
+ Alexander Kolesnikov and Christoph H Lampert. Seed, expand and constrain: Three principles for weakly-supervised image segmentation. In European Conference on Computer Vision, pp. 695–711. Springer, 2016.
216
+
217
+ Philipp Krahenb ¨ uhl and Vladlen Koltun. Efficient inference in fully connected crfs with gaussian ¨ edge potentials. In Advances in neural information processing systems, pp. 109–117, 2011.
218
+
219
+ Jungbeom Lee, Eunji Kim, Sungmin Lee, Jangho Lee, and Sungroh Yoon. Ficklenet: Weakly and semi-supervised semantic image segmentation using stochastic inference. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5267–5276, 2019.
220
+
221
+ Kunpeng Li, Ziyan Wu, Kuan-Chuan Peng, Jan Ernst, and Yun Fu. Tell me where to look: Guided attention inference network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9215–9223, 2018.
222
+
223
+ Di Lin, Jifeng Dai, Jiaya Jia, Kaiming He, and Jian Sun. Scribblesup: Scribble-supervised convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3159–3167, 2016.
224
+
225
+ Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ´ European conference on computer vision, pp. 740–755. Springer, 2014.
226
+
227
+ Bin Liu, Zhirong Wu, Han Hu, and Stephen Lin. Deep metric transfer for label propagation with limited annotated data. In Proceedings of the IEEE International Conference on Computer Vision Workshops, pp. 0–0, 2019.
228
+
229
+ Ce Liu, Jenny Yuen, and Antonio Torralba. Nonparametric scene parsing via label transfer. PAMI, 2011.
230
+
231
+ Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, and Shin Ishii. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 41(8):1979–1993, 2018.
232
+
233
+ Nicholas A Nystrom, Michael J Levine, Ralph Z Roskies, and J Ray Scott. Bridges: a uniquely flexible hpc resource for new communities and data analytics. In Proceedings of the 2015 XSEDE Conference: Scientific Advancements Enabled by Enhanced Cyberinfrastructure, pp. 1–8, 2015.
234
+
235
+ George Papandreou, Liang-Chieh Chen, Kevin P Murphy, and Alan L Yuille. Weakly-and semisupervised learning of a deep convolutional network for semantic image segmentation. In Proceedings of the IEEE international conference on computer vision, pp. 1742–1750, 2015.
236
+
237
+ Deepak Pathak, Philipp Krahenbuhl, and Trevor Darrell. Constrained convolutional neural networks for weakly supervised segmentation. In Proceedings of the IEEE international conference on computer vision, pp. 1796–1804, 2015.
238
+
239
+ Antti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semisupervised learning with ladder networks. In Advances in neural information processing systems, pp. 3546–3554, 2015.
240
+
241
+ Bryan Russell, Alyosha Efros, Josef Sivic, Bill Freeman, and Andrew Zisserman. Segmenting scenes by matching image composites. In NIPS, 2009.
242
+
243
+ Wataru Shimoda and Keiji Yanai. Self-supervised difference detection for weakly-supervised semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 5208–5217, 2019.
244
+
245
+ Chunfeng Song, Yan Huang, Wanli Ouyang, and Liang Wang. Box-driven class-wise region masking and filling rate guided loss for weakly supervised semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3136–3145, 2019.
246
+
247
+ Guolei Sun, Wenguan Wang, Jifeng Dai, and Luc Van Gool. Mining cross-image semantics for weakly supervised semantic segmentation. In ECCV, 2020.
248
+
249
+ Meng Tang, Abdelaziz Djelouah, Federico Perazzi, Yuri Boykov, and Christopher Schroers. Normalized cut loss for weakly-supervised cnn segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1818–1827, 2018a.
250
+
251
+ Meng Tang, Federico Perazzi, Abdelaziz Djelouah, Ismail Ben Ayed, Christopher Schroers, and Yuri Boykov. On regularized losses for weakly-supervised cnn segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 507–522, 2018b.
252
+
253
+ Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Advances in neural information processing systems, pp. 1195–1204, 2017.
254
+
255
+ Joseph Tighe and Svetlana Lazebnik. Superparsing: scalable nonparametric image parsing with superpixels. In ECCV, 2010.
256
+
257
+ John Towns, Timothy Cockerill, Maytal Dahan, Ian Foster, Kelly Gaither, Andrew Grimshaw, Victor Hazlewood, Scott Lathrop, Dave Lifka, Gregory D Peterson, et al. Xsede: accelerating scientific discovery. Computing in science & engineering, 16(5):62–74, 2014.
258
+
259
+ Bin Wang, Guojun Qi, Sheng Tang, Tianzhu Zhang, Yunchao Wei, Linghui Li, and Yongdong Zhang. Boundary perception guidance: A scribble-supervised semantic segmentation approach. International Joint Conference on Artificial Intelligence, 2019.
260
+
261
+ Yude Wang, Jie Zhang, Meina Kan, Shiguang Shan, and Xilin Chen. Self-supervised equivariant attention mechanism for weakly supervised semantic segmentation. Proceedings of the IEEE International Conference on Computer Vision, 2020.
262
+
263
+ Jason Weston, Fred´ eric Ratle, Hossein Mobahi, and Ronan Collobert. Deep learning via semi- ´ supervised embedding. In Neural networks: Tricks of the trade, pp. 639–655. Springer, 2012.
264
+
265
+ Zhirong Wu, Alexei A Efros, and Stella X Yu. Improving generalization via scalable neighborhood component analysis. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 685–701, 2018a.
266
+
267
+ Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3733–3742, 2018b.
268
+
269
+ Saining Xie and Zhuowen Tu. Holistically-nested edge detection. In Proceedings of the IEEE international conference on computer vision, pp. 1395–1403, 2015.
270
+
271
+ Jia Xu, Alexander G Schwing, and Raquel Urtasun. Learning to segment under various forms of weak supervision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3781–3790, 2015.
272
+
273
+ Qi Yao and Xiaojin Gong. Saliency guided self-attention network for weakly and semi-supervised semantic segmentation. IEEE Access, 8:14413–14423, 2020.
274
+
275
+ Bingfeng Zhang, Jimin Xiao, Yunchao Wei, Mingjie Sun, and Kaizhu Huang. Reliability does matter: An end-to-end weakly supervised semantic segmentation approach. arXiv preprint arXiv:1911.08039, 2019.
276
+
277
+ Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2881–2890, 2017.
278
+
279
+ Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2921–2929, 2016.
280
+
281
+ 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, pp. 321–328, 2004.
282
+
283
+ # A APPENDIX
284
+
285
+ We propose a single pixel-to-segment contrastive learning loss formulation for weakly supervised semantic segmentation. We explore different types of visual relationships to group and separate pixels within and across images. We demonstrate state-of-the-art performance using our proposed method with different types of annotations. Here, we include more details on the following aspects:
286
+
287
+ • We present the visual results of our method in A.1.
288
+ • We showcase the semantic cues generated by CAM for image tag and bounding box annotations in A.2.
289
+ • We illustrate the data pre-processing used for DensePose dataset in A.3.
290
+ • We describe the details of our experimental settings, hyper-parameters and inference procedure in A.4. We present the ablation study regarding hyper-parameters in A.5.
291
+ • We present mIoU performance with varying sparsity of scribble annotations on Pascal dataset in A.6.
292
+ • We present per-category results with Pascal and DensePose dataset in A.7.
293
+
294
+ # A.1 VISUALIZATION
295
+
296
+ We present the visual results on VOC (with image tags, bounding boxes and scribbles) and DensePose (with keypoints) dataset in figure 8. We observe that our segmentation results are better aligned with image boundary. When visual evidence is prominent, our weakly-supervised results are even better than the fully-supervised counterpart.
297
+
298
+ We then demonstrate the efficacy of each visual relationship in figure 9. By adding semantic annotation, low-level image similarity and feature affinity progressively, we observe consistent improvement of our results. The predicted segmentation becomes more coherent and better aligned with image boundary. We lastly showcase that our method implicitly encodes semantic contexts. In figure 10, We observe that retrieved segments appear in the similar semantic context as the query segments. For examples, given a bottle next to a desktop, our model retrieves bottles also next to a desktop; a set of sofas in a living room can be retrieved using one sofa query example; screens of a desktop can also be retrieved likewise.
299
+
300
+ # A.2 SEMANTIC ANNOTATIONS
301
+
302
+ Since image tag and bounding box annotations do not provide any of precisely localized semantic information, we adopt CAM (Zhou et al., 2016) to produce localized semantic cues. Without using additional saliency labels, we use the classifier trained by Wang et al. (2020) to generate CAM. Let $\mathcal { M } _ { c }$ be the activation map of class $c$ .
303
+
304
+ For image tag annotations, we follow Ahn & Kwak (2018) to normalize $\mathcal { M } _ { c }$ of the entire image within the range between 0 and 1, where $\begin{array} { r } { \mathcal { M } _ { c } = \frac { \mathcal { M } _ { c } } { \operatorname* { m a x } _ { c } \mathcal { M } _ { c } } } \end{array}$ . The background confidence $\mathcal { M } _ { b g }$ can then be estimated by $\mathcal { M } _ { b g } = ( 1 - \operatorname* { m a x } _ { c } \mathcal { M } _ { c } ) ^ { \alpha }$ , where $\alpha$ is the hyper-parameter adjusting background confidence. In our experiments, we set $\alpha$ to 6 and confidence threshold to 0.2. The low-confidence pixels are considered as unlabeled regions.
305
+
306
+ For bounding box annotations, we simply normalize the CAM logits within each bounding box to the range between 0 and 1. We then set confidence threshold to 0.5 for selecting foreground pixels and unlabeled regions. We restrict all the regions outside bounding boxes as “background”. See figure 11 for more visual examples.
307
+
308
+ # A.3 DATA PRE-PROCESSING FOR DENSEPOSE DATASET
309
+
310
+ We next illustrate our pre-processing to generate training labels given keypoint annotations in DensePose dataset. As shown in figure 12, we first assume a Gaussian heat map from every keypoint. By thresholding, we derive 3 regions from every Gaussian blob: labelled, unknown and background region. In labelled region, pixels are annotated as each body part. We then propagate labels, including background class, to pixels in the unknown region. The std of Gaussian heat map is estimated from instance size, and we use ground-truth information in our paper.
311
+
312
+ # A.4 HYPER-PARAMETERS AND EXPERIMENTAL SETUP
313
+
314
+ Architecture and training. For all the experiments on VOC, we base our architecture as DeepLab (Chen et al., 2017) with ResNet101 (He et al., 2016) as backbone network. For the experiments on DensePose dataset, we adopt PSPNet (Zhao et al., 2017) as backbone network. We only use models pre-trained on ImageNet (Deng et al., 2009) dataset.
315
+
316
+ ![](images/31ff0b10c84c0836105dd5311860c606b1bae4067ce809fae3be1c90c39aa2ad.jpg)
317
+ Figure 8: Visual comparison of baseline method (c), our SPML (d) and fully-supervised SegSort (e) on VOC and DensePose. On VOC (top 6 rows), our baseline method is based on Lee et al. (2019); Song et al. (2019); Tang et al. (2018b) for image tag, bounding box and scribble annotations, respectively. On DensePose (bottom 2 rows), our baseline is Tang et al. (2018b). The results from our weakly-supervised model is visually very close to its fully-supervised counterpart, or even better when visual cues are prominent.
318
+
319
+ ![](images/4ace0a80edb6b2a964f37d426727f62b7d982e77fff5f57cf9e1b098913b8a3b.jpg)
320
+ Figure 9: Our segmentation results get better with more types of regularizations. We compare visual results by adding more regularizations. As we introduce more relationships for regularization, we observe significant improvement and our results are visually closer to fully supervised counterparts.
321
+
322
+ We next describe the hyper-parameters used for each experiment. On Pascal VOC dataset, we set “batchsize” to 12 and 16 for scribble / point and image tag / bounding box annotations. On DensePose dataset, “batchsize” is set to 16. For all the experiments, we train our models with $5 1 2 \times 5 1 2$ “cropsize”. Following Chen et al. (2017), we adopt poly learning rate policy by multiplying base learning rate by 1 − ( itermax iter ) . We set initial learning rate to 0.003, momentum to 0.9. For the hyper-parameters in SegSort framework, we use unit-length normalized embedding of dimension 64 and 32 on VOC and DensePose, respectively. We iterate K-Means clustering for 10 iterations and generate 36 and 144 clusters on VOC and DensePose dataset. We set the concentration parameter $\kappa$ to different values for semantic annotation, low-level image similarity, semantic co-occurrence and feature affinity, respectively. Moreover, $\lambda _ { I } , \lambda _ { O }$ and $\lambda _ { A }$ are set to different values according to different types of annotations and datasets. $\lambda _ { C }$ is set to 1 among all the experiments. The detailed hyper-parameter settings are summarized in table 5. We train for $3 0 k$ and $4 5 k$ iterations on VOC and DensePose dataset for all the experiments. We use additional memory banks to cache up previous 2 batches. For conducting experiments, we take advantage of XSEDE infrastructure (Towns et al., 2014) that includes Bridges resources (Nystrom et al., 2015).
323
+
324
+ ![](images/813e1b11bb499e261206695e7909433d6a5e7e55109dbb2103d64adbb2098ab5.jpg)
325
+ Figure 10: Visual examples of nearest neighbor segment retrievals. We observe that retrieved segments (right) appear in the similar semantic context as the query segments (left). For examples, given a bottle next to a desktop, our model retrieves bottles also next to a desktop.
326
+
327
+ ![](images/39e3bac3c41bc050d3f62330b600b24a1be213a6931ea2e0ab01605f34258f94.jpg)
328
+ Figure 11: Visual examples of semantic annotations used on VOC. For image tag and bounding box annotation, we use the classifier trained by Wang et al. (2020) to infer CAM as semantic annotation. These semantic annotations are noisy, which do not precisely localize on the objects.
329
+
330
+ Inference and testing. We fix the learned pixel-wise embedding and train an additional softmax classifier for inference. Iterative training is adopted to bootstrap the semantic segmentation prediction. Notably, we do not propagate gradients to the segmentation CNN from the softmax classifier.
331
+
332
+ For scribbles / points $/$ bounding boxes, we first learn an initial softmax classifier $S _ { 1 }$ from the corresponding weak annotations. Following Ahn & Kwak (2018), we apply random walk to refine the semantic logits $\tilde { \mathcal { M } }$ generated by $S _ { 1 }$ . The transition probability matrix $T$ is formulated as follows: $\begin{array} { r } { T _ { i , j } = ( \frac { \exp ( \gamma \pmb { e } _ { i } ^ { \top } \pmb { e } _ { j } ) } { \sum _ { j } \exp ( \gamma \pmb { e } _ { i } ^ { \top } \pmb { e } _ { j } ) } ) ^ { \beta } } \end{array}$ , where $\beta$ and $\gamma$ are 20 and 5, respectively. The label propagation is given by: $\tilde { \mathcal { M } } ^ { \prime } = T ^ { \top } \tilde { \mathcal { M } }$ , where $\tilde { \mathcal { M } } ^ { \prime }$ denotes refined semantic logits. The random walk process is iterated for 6 times. Next, we obtain the corresponding pseudo labels $\mathcal { V } _ { s c } = \arg \operatorname* { m a x } _ { c } \tilde { \mathcal { M } } _ { c } ^ { \prime }$ . The pseudo labels are used to train the final softmax classifier $S _ { 2 }$ for predicting semantic segmentation.
333
+
334
+ For image tag annotations, we adopt both within-image and across-image label propagation to generate optimal pseudo labels. Starting with CAM logits $\mathcal { M }$ , we conduct within-image label propagation thru random walk and obtain refined pseudo labels $\mathcal { \ V } _ { c a m } ^ { 1 }$ . Across-image label propagation is carried out by nearest neighbor search thru the whole training set. We refer to SegSort (Hwang et al., 2019) for more details. We then obtain refined pseudo labels ${ \mathcal { V } } _ { n n } ^ { 1 }$ and train the initial softmax classifier $S _ { 1 }$ . Similarly, we use $S _ { 1 }$ to predict pseudo labels $\mathcal { V } _ { s c } ^ { 2 }$ from the training images. Followed by nearest neighbor search, we obtain our final pseudo labels $\bar { \mathcal { V } } _ { n n } ^ { 2 }$ and train the final semantic classifier $S _ { 2 }$ .
335
+
336
+ ![](images/79f458b4e1b28ecd81e8e4ec124b7f905b836008eb78bf62e74a5382ed13199f.jpg)
337
+ Figure 12: Preparing training labels on DensePose dataset. From left to right are input image, our training labels and ground-truth mask. For each keypoint, a Gaussian heat map is applied to determine labelled, unknown and background region. The white region denotes unknown pixels, to which we propagate labels from annotated or background region.
338
+
339
+ The inference procedures for different annotations are summarized in algorithm 1 and 2, respectively. For image tags, we adopt multi-scale and horizontally flipping as data augmentation for predicting semantic segmentation. For scribbles / points / bounding boxes, we do not employ data augmentation during the final inference.
340
+
341
+ Table 5: Hyper-parameters for different types of annotations on Pascal and DensePose dataset.
342
+
343
+ <table><tr><td>Dataset</td><td>Annotation</td><td></td><td></td><td>K1|Xc</td><td></td><td>Kc|入o</td><td></td><td>KO|入A</td><td></td><td>KA|batchsize</td></tr><tr><td>VOC</td><td>scribbles</td><td>0.1</td><td>16</td><td>1.0</td><td>6</td><td>0.5</td><td>12</td><td>0.0</td><td>1</td><td>12</td></tr><tr><td></td><td>points</td><td>1.0</td><td>16</td><td>1.0</td><td>6</td><td>1.0</td><td>8</td><td>0.0</td><td>1</td><td>12</td></tr><tr><td></td><td>boxes</td><td>0.3</td><td>16</td><td>1.0</td><td>6</td><td>1.0</td><td>8</td><td>0.0</td><td>1</td><td>16</td></tr><tr><td></td><td> image tags</td><td>0.3</td><td>16</td><td>1.0</td><td>6</td><td>1.0</td><td>8</td><td>0.0</td><td>1</td><td>16</td></tr><tr><td>DensePose</td><td>points</td><td>0.1</td><td>16</td><td>1.0</td><td>6</td><td>0.0</td><td>:</td><td>0.5</td><td>12</td><td>16</td></tr></table>
344
+
345
+ Algorithm 1: Inference procedure for semantic segmentation using scribble / point / bounding box annotations. Input: Fixed pixel-wise embedding e of the input image and weak annotations ${ \mathcal { V } } _ { w e a k }$ . Output: Semantic segmentation prediction $\mathcal { V } _ { p r e d }$ . /\* Train the initial softmax classifier $\star$ / 1 Train the softmax classifier $S _ { 1 }$ using $y _ { w e a k }$ . /\* Train the final softmax classifier $\star /$ 2 Predict semantic logits from initial softmax classifier: $\tilde { \mathcal { M } } = S _ { 1 } ( \pmb { e } )$ . 3 Calculate pixel-wise transition probability matrix $T$ from $^ e$ . 4 Refine semantic logits by random walk propagation: $\tilde { \mathcal { M } } ^ { \prime } = T ^ { \top } \circ \ldots \circ T ^ { \top } \tilde { \mathcal { M } }$ . 5 Derive pseudo labels from refined semantic logits: $\mathcal { V } _ { s c } = \arg \operatorname* { m a x } _ { c } \tilde { \mathcal { M } } _ { c } ^ { \prime }$ . 6 Train the softmax classifier $S _ { 2 }$ using $\mathcal { \scriptsize { D } } _ { s c }$ . 7 Predict final semantic segmentation $\mathcal { V } _ { p r e d }$ from $S _ { 2 }$ .
346
+
347
+ <table><tr><td>Algorithm 2: Inference procedure for semantic segmentation using image-level tags.</td></tr><tr><td>Input: Fixed pixel-wise embedding e of the input image and CAMlogits M.</td></tr><tr><td>Output: Semantic segmentation prediction Ypred ·</td></tr><tr><td>/* Train the initial softmax ciassifier */</td></tr><tr><td>Calculate pixel-wise transition probability matrix T from e.</td></tr><tr><td>2 Refine CAM by random walk propagation: M&#x27; = TT 。...o TTM.</td></tr><tr><td>3 Derive pseudo labels from refined CAM: Vlam = arg maxc Mc. 4 Predict new pseudo labels Vnn from Vcam l n using nearest neighbor retrievals.</td></tr><tr><td>5 Train the softmax classifier S1 using Dnn·</td></tr><tr><td>/* Train the final softmax classifier */</td></tr><tr><td>6 Predict pseudo labels V² from initial softmax classifier S1. 7 Predict new pseudo labels Dnn from D2e using nearest neighbor retrievals.</td></tr><tr><td></td></tr><tr><td>9 Predict final semantic segmentation Ypred from S2.</td></tr><tr><td></td></tr></table>
348
+
349
+ # A.5 ABLATION STUDY OF HYPER-PARAMETERS
350
+
351
+ We conduct ablation study over different regularizations on Pascal VOC dataset. As shown in table 6, we achieve the most optimal performance on Pascal VOC dataset with $\lambda _ { I } = 0 . 1$ and $\lambda _ { O } = 0 . 5$ . We also observe performance drops 0.4 of mIoU by adding feature affinity regularization. We argue that scribble/box/point annotations are not uniformly distributed across object instance and background, and results in noisy label propagation.
352
+
353
+ <table><tr><td rowspan=1 colspan=3>xr|入omIoU</td></tr><tr><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>1.0</td><td rowspan=4 colspan=1>74.174.274.172.8</td></tr><tr><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.5</td></tr><tr><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.1</td></tr><tr><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0</td></tr></table>
354
+
355
+ Table 6: Ablation study of different weighting parameters for each objective function on Pascal VOC validation dataset.
356
+
357
+ <table><tr><td rowspan=1 colspan=3>x|入omIoU</td></tr><tr><td rowspan=1 colspan=1>0.3</td><td rowspan=1 colspan=1>0.5</td><td rowspan=4 colspan=1>73.774.273.571.7</td></tr><tr><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.5</td></tr><tr><td rowspan=1 colspan=1>0.05</td><td rowspan=1 colspan=1>0.5</td></tr><tr><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0.5</td></tr></table>
358
+
359
+ <table><tr><td rowspan=1 colspan=1>入1</td><td rowspan=1 colspan=1>入</td><td rowspan=1 colspan=1>入A</td><td rowspan=1 colspan=1>mIoU</td></tr><tr><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>71.2</td></tr><tr><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>72.8</td></tr><tr><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.5</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>74.2</td></tr><tr><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>0.5</td><td rowspan=1 colspan=1>0.1</td><td rowspan=1 colspan=1>73.8</td></tr></table>
360
+
361
+ Table 7: mIoU performance on Pascal VOC 2012 validation set on different lengths of scribble.
362
+
363
+ <table><tr><td>Method</td><td>Backbone</td><td>CRF</td><td>Full</td><td>100%</td><td>80%</td><td>50%</td><td>30%</td><td>0%</td></tr><tr><td>Lin et al. (2016) Tang et al. (2018b)</td><td>DeepLab-MSc-LargeFOV DeepLab-MSc-LargeFOV</td><td>√ √</td><td>68.5 68.7</td><td>63.1 66.0</td><td>61.8 65.5</td><td>58.5 64.2</td><td>54.3 62.7</td><td>51.6 57.2</td></tr><tr><td>Our SPML</td><td>DeepLab/ResNet101</td><td></td><td>76.1</td><td>74.2</td><td>74.2</td><td>73.3</td><td>73.4</td><td>71.3</td></tr><tr><td>Our SPML</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>DeepLab/ResNet101</td><td>√</td><td>77.3</td><td>76.1</td><td>75.8</td><td>74.8</td><td>75.0</td><td>73.2</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
364
+
365
+ <table><tr><td>Backbone</td><td>aero</td><td>bike</td><td>bird</td><td>boat</td><td>bottle</td><td>bus</td><td></td><td>car</td><td>cat</td><td>chair</td><td>Cow</td><td>table</td><td>dog</td><td>horse</td><td>mbike</td><td>person</td><td>plant</td><td>sheep</td><td>sofa</td><td>train</td><td>tv</td><td>mIoU</td></tr><tr><td>Tang et al. (2018b)</td><td>83.2</td><td>35.8</td><td>82.8</td><td>66.8</td><td>75.1</td><td></td><td>90.9</td><td>83.9</td><td>89.2</td><td>35.8</td><td>82.5</td><td>53.7</td><td>83.4</td><td>83.2</td><td>79.5</td><td>82.2</td><td>57.6</td><td>81.9</td><td>41.6</td><td>81.1</td><td>73.5</td><td>73.2</td></tr><tr><td>Our SPML</td><td>85.8</td><td>37.6</td><td>82.8</td><td>69.6</td><td>75.9</td><td>89.3</td><td></td><td>82.8</td><td>89.7</td><td>38.6</td><td>85.7</td><td>56.7</td><td>85.9</td><td>80.1</td><td>78.1</td><td>84.8</td><td>53.9</td><td>83.7</td><td>49.2</td><td>80.9</td><td>74.4</td><td>74.2</td></tr><tr><td>Tang et al. (2018b)</td><td>86.2</td><td>37.3</td><td>85.5</td><td>69.4</td><td>77.8</td><td>91.7</td><td></td><td>85.1</td><td>91.2</td><td>38.8</td><td>85.1</td><td>55.5</td><td>85.6</td><td>85.8</td><td>81.7</td><td>84.1</td><td>61.4</td><td>84.3</td><td>43.1</td><td>81.4</td><td>74.2</td><td>75.2</td></tr><tr><td>Our SPML</td><td>89.0</td><td>38.4</td><td>86.0</td><td>72.6</td><td>77.9</td><td></td><td>90.0</td><td>83.9</td><td>91.0</td><td>40.0</td><td>88.3</td><td>57.7</td><td>87.7</td><td>82.8</td><td>79.1</td><td>86.5</td><td>57.1</td><td>87.4</td><td>50.5</td><td>81.2</td><td>76.9</td><td>76.1</td></tr></table>
366
+
367
+ # Table 8: Per-class results on Pascal VOC 2012 validation set. White- and gray-colored background denotes using without- and with- CRF post-processing for inference.
368
+
369
+ <table><tr><td>Annotations</td><td>aero</td><td>bike</td><td>bird</td><td>boat</td><td>bottle</td><td>bus</td><td>car</td><td>cat</td><td>chair</td><td>cow</td><td>table</td><td>dog</td><td>horse</td><td>mbike</td><td></td><td>person</td><td>plant</td><td>sheep</td><td>sofa</td><td>train</td><td>tv</td><td>mloU</td></tr><tr><td>Full mask</td><td>91.5</td><td>43.5</td><td>83.0</td><td>67.9</td><td>81.7</td><td>89.8</td><td>88.7</td><td>94.6</td><td>37.5</td><td>81.6</td><td></td><td>68.7</td><td>88.8</td><td>82.4</td><td>88.6</td><td>87.6</td><td>64.1</td><td>87.6</td><td>52.7</td><td>76.5</td><td>71.4</td><td>77.3</td></tr><tr><td>Scribbles</td><td>87.0</td><td>36.7</td><td>82.3</td><td>65.5</td><td>79.7</td><td>89.5</td><td>84.8</td><td>90.1</td><td>37.6</td><td>86.3</td><td>63.1</td><td>89.1</td><td>87.8</td><td>83.0</td><td>86.0</td><td></td><td>65.8</td><td>85.8</td><td>60.3</td><td>76.9</td><td>73.0</td><td>76.4</td></tr><tr><td>Points</td><td>83.5</td><td>37.0</td><td>78.4</td><td>61.9</td><td>74.8</td><td>86.4</td><td>83.2</td><td>86.9</td><td>37.9</td><td>85.3</td><td>62.4</td><td>87.2</td><td>84.2</td><td>81.1</td><td>83.1</td><td>64.3</td><td></td><td>85.1</td><td>59.1</td><td>74.0</td><td>66.3</td><td>74.0</td></tr><tr><td>Boxes</td><td>84.1</td><td>36.5</td><td>86.7</td><td>57.6</td><td>75.7</td><td>87.7</td><td>84.8</td><td>89.6</td><td>39.4</td><td>86.4</td><td>57.2</td><td>89.2</td><td>88.0</td><td>82.6</td><td>80.3</td><td></td><td>54.7</td><td>88.2</td><td>55.9</td><td>79.7</td><td>71.6</td><td>74.7</td></tr><tr><td>Tags</td><td>82.1</td><td>38.7</td><td>80.0</td><td>56.9</td><td>73.7</td><td>85.7</td><td>81.0</td><td>86.7</td><td>33.9</td><td>87.7</td><td>60.8</td><td>86.8</td><td>84.9</td><td>81.3</td><td>77.7</td><td>53.2</td><td></td><td>86.5</td><td>50.1</td><td>64.8</td><td>58.4</td><td>71.6</td></tr></table>
370
+
371
+ Table 9: Per-class results on Pascal VOC 2012 testing set. CRF post-processing is used for inference.
372
+
373
+ # A.6 MEAN IOU PERFORMANCE WITH VARYING SPARSITY OF SCRIBBLES.
374
+
375
+ We report absolute mIoU performance by varying sparsity of scribbles on Pascal VOC 2012 validation set. The results are summarized in table 7. Our results are much better with sparser annotation.
376
+
377
+ # A.7 PER-CATEGORY MIOU ON PASCAL VOC AND DENSEPOSE DATASET.
378
+
379
+ We next present per-category results on Pascal VOC and Denspose dataset. In table 8, we compare with Tang et al. (2018b) on VOC validation set. Without- and with CRF post-processing, our method outperform the baseline method among most categories by large margin. We further conduct experiments on VOC testing set, using DeepLab as backbone network. In table 9, we can retrieve most performance w.r.t full supervision. We also compare per-category results on DensePose dataset in table 10. We train our baseline method using the code released by Tang et al. (2018b). We outperform the baseline method by large margin in every category.
380
+
381
+ <table><tr><td>Method</td><td>bg.</td><td>torso</td><td>RHand</td><td>LHand</td><td>LFoot</td><td>RFoot</td><td>RThigh</td><td>LThigh</td><td>RLeg</td><td>LLeg</td><td>LArm</td><td>RArm</td><td>LFarm</td><td>RFarm</td><td>Heaad</td><td>mloU</td><td>WvF</td></tr><tr><td>Softmax</td><td>96.2</td><td>73.7</td><td>61.1</td><td>57.2</td><td>37.2</td><td>37.8</td><td>56.8</td><td>54.8</td><td>49.7</td><td>49.5</td><td>62.0</td><td>63.8</td><td>58.3</td><td>61.5</td><td>84.6</td><td>60.3</td><td></td></tr><tr><td>SegSort</td><td>95.8</td><td>71.9</td><td>57.4</td><td>53.0</td><td>33.4</td><td>33.4</td><td>54.0</td><td>51.8</td><td>46.4</td><td>46.9</td><td>59.2</td><td>61.1</td><td>54.4</td><td>57.9</td><td>83.2</td><td>57.3</td><td>:</td></tr><tr><td>Tang et al. (2018b)</td><td>87.2</td><td>28.3</td><td>37.5</td><td>36.0</td><td>18.9</td><td>19.5</td><td>21.2</td><td>20.8</td><td>16.1</td><td>16.6</td><td>33.9</td><td>35.3</td><td>35.6</td><td>37.6</td><td>25.2</td><td>31.3</td><td>51.9</td></tr><tr><td>OurSPML</td><td>93.8</td><td>57.7</td><td>48.1</td><td>43.2</td><td>22.8</td><td>22.2</td><td>36.6</td><td>35.6</td><td>27.1</td><td>27.6</td><td>42.1</td><td>45.3</td><td>42.0</td><td>45.5</td><td>72.6</td><td>44.2</td><td>77.1</td></tr></table>
382
+
383
+ Table 10: Per-class results on DensePose minival 2014 set with keypoint annotations. White- and gray-colored background indicates using full and point supervision.
parse/train/N33d7wjgzde/N33d7wjgzde_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/N33d7wjgzde/N33d7wjgzde_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/N33d7wjgzde/N33d7wjgzde_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/O9bnihsFfXU/O9bnihsFfXU.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/O9bnihsFfXU/O9bnihsFfXU_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1E3Ko09F7/S1E3Ko09F7.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1E3Ko09F7/S1E3Ko09F7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1E3Ko09F7/S1E3Ko09F7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1E3Ko09F7/S1E3Ko09F7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1l6ITVKPS/S1l6ITVKPS.md ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AN EXPLICITLY RELATIONAL NEURAL NETWORK ARCHITECTURE
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ With a view to bridging the gap between deep learning and symbolic AI, we present a novel end-to-end neural network architecture that learns to form propositional representations with an explicitly relational structure from raw pixel data. In order to evaluate and analyse the architecture, we introduce a family of simple visual relational reasoning tasks of varying complexity. We show that the proposed architecture, when pre-trained on a curriculum of such tasks, learns to generate reusable representations that better facilitate subsequent learning on previously unseen tasks when compared to a number of baseline architectures. The workings of a successfully trained model are visualised to shed some light on how the architecture functions.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ When humans face novel problems, they are able to draw effectively on past experience with other problems that are superficially very different, but that have similarities on a more abstract, structural level. This ability is essential for lifelong, continual learning, and confers on humans a degree of data efficiency, powers of transfer learning, and a capacity for out-of-distribution generalisation that contemporary machine learning has yet to match (Garnelo et al., 2016; Lake et al., 2017; Marcus, 2018; Smith, 2019). A case may be made that all these issues are different facets of the same underlying challenge, namely the challenge of devising systems that learn to construct general-purpose, reusable representations (McCarthy, 1987; Bengio et al., 2013). A representation is general-purpose and reusable to the extent that it contains information whose domain of application exceeds the context within which it was acquired.
12
+
13
+ Representations that are general-purpose and reusable improve data efficiency because a system that already knows how to build representations relevant to a novel task (despite its novelty) doesn’t have to learn that task from scratch. Ideally, a system that efficiently exploits general-purpose, reusable representations in this way should be the very same system that learned how to construct them in the first place. Moreover, in learning to solve a novel task using such representations, we should expect the system to learn further representations that are themselves general-purpose and reusable. So, with the exception of the very first representations the system learns, all learning in such a system would in effect be transfer learning, and the process of learning would be inherently cumulative, continual, and lifelong.
14
+
15
+ One approach to building such a system is to take inspiration from the paradigm of classical, symbolic AI (Garnelo & Shanahan, 2019). Building on the mathematical foundations of first-order predicate calculus, a typical symbolic AI system works by applying logic-like rules of inference to language-like propositional representations whose elements are objects and relations. Thanks to their declarative character and compositional structure, these representations lend themselves naturally to generality and reusability. However, in contrast to contemporary deep learning systems, the representations deployed in classical AI are not usually learned from data but hand-crafted (Harnad, 1990). The aim of the present work is to get the best of both worlds with an end-to-end differentiable neural network architecture that builds in propositional, relational priors in much the same way that a convolutional network builds in spatial and locality priors.
16
+
17
+ The architecture introduced here builds on recent work with non-local network architectures that learn to discover and exploit relational information (Wang et al., 2018), notably relation nets (Santoro et al., 2017; Palm et al., 2018) and architectures based on multi-head attention (Vaswani et al., 2017;
18
+
19
+ ![](images/acbf1ed0a2269cd2c35fb54e2266d14587a8d10a61d982ab809a16e2964290bc.jpg)
20
+ Figure 1: The PrediNet architecture. $W _ { K }$ and $W _ { S }$ are shared across heads, whereas $W _ { Q 1 }$ and $W _ { Q 2 }$ are local to each head. See main text for more details.
21
+
22
+ Santoro et al., 2018; Zambaldi et al., 2019). However, these architectures generate representations that lack explicit structure. There is, in general, no straightforward mapping from the parts of a representation to the usual elements of a symbolic medium such as predicate calculus: propositions, relations, and objects. To the extent that these elements are present, they are smeared across the embedding vector, which makes representations hard to interpret and makes it more difficult for downstream processing to take advantage of compositionality.
23
+
24
+ Here we present an architecture, which we call a PrediNet, that learns representations whose parts map directly onto propositions, relations, and objects. To build a sound, scientific understanding of the proposed architecture, and to facilitate a detailed comparison with other architectures, the present study focuses on simple tasks requiring relatively little data and computation. We develop a family of small, simple visual datasets that can be combined into a variety of multi-task curricula and used to assess the extent to which an architecture learns representations that are general-purpose and reusable. We report the results of a number of experiments using these datasets that demonstrate the potential of an explicitly relational network architecture to improve data efficiency and generalisation, to facilitate transfer, and to learn reusable representations.
25
+
26
+ The main contribution of the present paper is a novel architecture that learns to discover objects and relations in high-dimensional data, and to represent them in a form that is beneficial for downstream processing. The PrediNet architecture does not itself carry out logical inference, but rather extracts relational structure from raw data that has the potential to be exploited by subsequent processing. Here, for the purpose of evaluation, we graft a simple multi-layer perceptron output module to the PrediNet and train it on a simple set of spatial reasoning problems. The aim is to acquire a sufficient scientific understanding of the architecture and its properties in this minimalist setting before applying it to more complex problems using more sophisticated forms of downstream inference.
27
+
28
+ # 2 THE PREDINET ARCHITECTURE
29
+
30
+ The idea that propositions are the building blocks of knowledge dates back to the ancient Greeks, and provides the foundation for symbolic AI, via the $1 9 ^ { \mathrm { t h } }$ century mathematical work of Boole and Frege (Russell & Norvig, 2009). An elementary proposition asserts that a relationship holds between a set of objects. Propositions can be combined using logical connectives (and, or, not, etc), and can participate in inference processes such as deduction. The task of the PrediNet is to (learn to) transform high-dimensional data such as images into propositional representations that are useful for downstream processing. A PrediNet module (Fig. 1) can be thought of as a pipeline comprising three stages: attention, binding, and evaluation. The attention stage selects pairs of objects of interest, the binding stage instantiates the first two arguments of a set of three-place predicates (relations) with selected object pairs, and the evaluation stage computes values for each predicate’s remaining (scalar) argument such that the resulting proposition is true.
31
+
32
+ More precisely, a PrediNet module comprises $k$ heads, each of which computes $j$ relations between pairs of objects (Fig. 1). The input to the PrediNet is a matrix, $L$ , comprising $n$ rows of feature vectors, where each feature vector has length $m$ . In the present work, $L$ is computed by a convolutional neural network (CNN). The CNN outputs a feature map consisting of $n$ feature vectors that tile the input image. The last two elements of the feature vector are the xy co-ordinates of the associated patch in the image. So the length $m$ of each feature vector corresponds to the number of filters in the final CNN layer plus 2 (for the co-ordinates), and the $i ^ { t h }$ element of a feature vector (for $i < m - 2 )$ is the output of the $i ^ { t h }$ filter. For a given input $L$ , each head $h$ computes the same set of relations (using shared weights $W _ { S }$ ) but selects a different pair of objects, using dot-product attention based on key-query matching (Vaswani et al., 2017). Each head computes a separate pair of queries $Q _ { 1 } ^ { h }$ and $Q _ { 2 } ^ { h }$ (via $\dot { W } _ { Q 1 } ^ { \dot { h } }$ and $W _ { . Q 2 } ^ { \tilde { h } } .$ ). But the key space $K$ (defined by $W _ { K }$ ) is shared, so that the set of entities that are candidates for attention is consistent across heads. The whole (flattened) image is used to generate queries, allowing attention masks to depend on the image’s full (non-local) content.
33
+
34
+ $$
35
+ Q _ { 1 } ^ { h } = \mathrm { H a t t e n } ( L ) W _ { Q 1 } ^ { h } ~ . Q _ { 2 } ^ { h } = \mathrm { H a t t e n } ( L ) W _ { Q 2 } ^ { h } ~ K = L W _ { K }
36
+ $$
37
+
38
+ Applying the resulting pair of attention masks directly to $L$ yields a pair of objects $E _ { 1 } ^ { h }$ and $E _ { 2 } ^ { h }$ , each represented by a weighted sum of feature vectors.
39
+
40
+ $$
41
+ E _ { 1 } ^ { h } = \mathrm { s o f t m a x } ( Q _ { 1 } ^ { h } K ^ { \top } ) L \qquad E _ { 2 } ^ { h } = \mathrm { s o f t m a x } ( Q _ { 2 } ^ { h } K ^ { \top } ) L
42
+ $$
43
+
44
+ All $j$ relations between $E _ { 1 } ^ { h }$ and $E _ { 2 } ^ { h }$ are then evaluated. There are many ways to compute a relationship between a pair of objects represented as feature vectors. We chose to compute the values of relations by taking vector differences, which has been shown to be effective in the context of relationally structured knowledge bases (Bordes et al., 2011; Socher et al., 2013). In the current architecture, $E _ { 1 } ^ { \tilde { h } }$ and $E _ { 2 } ^ { h }$ are subject to a linear mapping (via $W _ { S }$ ) into $j$ 1D spaces, one per relation, and the resulting vector is passed through an element-wise comparator, yielding a vector of differences $D ^ { h }$ .
45
+
46
+ $$
47
+ D ^ { h } = E _ { 1 } ^ { h } W _ { S } - E _ { 2 } ^ { h } W _ { S }
48
+ $$
49
+
50
+ The last two elements of $E _ { 1 } ^ { h }$ and $E _ { 2 } ^ { h }$ (the positions $P _ { 1 } ^ { h }$ and $P _ { 2 } ^ { h }$ , respectively) are concatenated to the vector 1 2 1 of differences to give the head’s output $R ^ { h } = \mathsf { \bar { ( } } D ^ { h } , \mathsf { \bar { P } } _ { 1 } ^ { h } , P _ { 2 } ^ { h } )$ . Finally, the outputs of all $k$ heads are concatenated, yielding the output of the PrediNet module, a vector $R ^ { * }$ of length $k ( j + 4 )$ . In predicate calculus terms, the final output of a PrediNet module with $k$ heads and $j$ relations represents the conjunction of elementary propositions
51
+
52
+ $$
53
+ \Psi \equiv \bigwedge _ { h = 1 } ^ { k } \bigwedge _ { i = 1 } ^ { j } \psi _ { i } ( d _ { i } ^ { h } , e _ { 1 } ^ { h } , e _ { 2 } ^ { h } )
54
+ $$
55
+
56
+ where $\psi _ { i } ( d _ { i } ^ { h } , e _ { 1 } ^ { h } , e _ { 2 } ^ { h } )$ asserts that $d _ { i } ^ { h }$ is the distance between objects $e _ { 1 } ^ { h }$ and $e _ { 2 } ^ { h }$ in the 1D space defined by column $i$ of the weight matrix $W _ { S }$ , and the denotations of $e _ { 1 } ^ { h }$ and $e _ { 2 } ^ { h }$ are captured by the vectors $\dot { Q } _ { 1 } ^ { h }$ and $Q _ { 2 } ^ { h }$ respectively, given the key-space defined by $K$ .
57
+
58
+ Equation 1 supplies a semantics for the PrediNet’s final output vector $R ^ { * }$ that maps each of its elements onto a well-defined logical formula, something that cannot be claimed for other architectures, such as the relation net or multi-head attention net. In the experiments reported here, only $R ^ { * }$ is used for downstream processing, and this vector by itself doesn’t have the logical structure described by Equation 1. However, the PrediNet module can easily be extended to deliver an additional output in explicitly propositional form, with a predicate-argument structure corresponding to the RHS of Equation 1. In the present paper, the pared-down vector form facilitates our experimental investigation, but in its explicitly propositional form, the PrediNet’s output could be piped directly to (say) a Prolog interpreter (Fig.7), to an inductive logic programming system, to a statistical relational learning system, or indeed to another differentiable neural module.
59
+
60
+ # 3 DATASETS AND TASKS
61
+
62
+ It would be premature to apply the PrediNet architecture to rich, complex data before we have a basic understanding of its properties and its behaviour. To facilitate in-depth scientific study, we need small, simple datasets that allow the operation of the architecture to be examined in detail and the fundamental premises of its design to be assessed. Our experimental goals in the present paper are 1)
63
+
64
+ to test the hypothesis that the PrediNet architecture learns representations that are general-purpose and reusable, and 2) insofar as this is true, to investigate why. Existing datasets for relational reasoning tasks, such as CLEVR (Johnson et al. (2017)) and sort-of-CLEVR (Santoro et al. (2017)), were ruled out because they include confounding complexities, such as occlusion and shadows or language input, and/or because they don’t lend themselves to the fine-grained task-level splits we required. Consequently, we devised a new configurable family of simple classification tasks that we collectively call the Relations Game.
65
+
66
+ A Relations Game task involves the presentation of an image containing a number of objects laid out on a $3 \times 3$ grid, and the aim (in most tasks) is to label the image as True or False according to whether a given relationship holds among the objects in the image. While the elementary propositions learned by the PrediNet only assert simple relationships between pairs of entities, Relations Game tasks generally involve learning compound relations involving multiple relationships among many objects. The objects in question are drawn from either a training set or one of two held-out sets (Fig. 2a). None of the shapes or colours in the training set occurs in either of the held-out sets. The training object set contains 8 uniformly coloured pentominoes and their rotations and reflections (37 shapes in all) with 25 possible colours. The first held-out object set contains 8 uniformly coloured hexominoes and their rotations and reflections (46 shapes in all) with 25 possible colours, and the second held-out object set contains only squares, but with a striped pattern of held-out colours.
67
+
68
+ Each Relations Game task is tied to a given relation. Even with such a simple setup, the number of definable relations among all possible combinations of objects is astronomical $( 2 ^ { ( n + 1 ) ^ { 9 } }$ for $n$ distinct objects), although only a few of them will make intuitive sense. For the present study, we defined a handful of intuitively meaningful relations and generated corresponding labelled datasets comprising $50 \%$ positive and $50 \%$ negative examples. A selection is shown in Fig. 2c. The ‘between�� relation holds iff the image contains three objects in a line in which the outer two objects have the same shape, orientation, and colour. The ‘occurs’ relation holds iff there is an object in the bottom row of three objects that has the same shape, orientation, and colour as the (single) object in the top row. The ‘same’ relation holds iff the image contains two objects of the same shape, orientation, and colour. In each case, we balanced the set of negative examples to ensure that “tricky” images involving pairs of objects with the same colour but different shape or the same shape but different colour occur just as frequently as those with objects that differ in both colour and shape.
69
+
70
+ # 4 EXPERIMENTAL SETUP
71
+
72
+ At the top level, each architecture we consider in this paper comprises 1) a single convolutional input layer (CNN), 2) a central module (which might be a PrediNet or a baseline), and 3) a small output multi-layer perceptron (MLP) (Fig. 3). A pair of xy co-ordinates is appended to each CNN feature vector, denoting its position in convolved image space and, where applicable, a one-hot task identifier is appended to the output of the central module. For most tasks, the final output of the MLP is a one-hot label denoting True or False. The PrediNet was evaluated by comparing it to several baselines: two MLP baselines (MLP1 and MLP2), a relation net baseline (Santoro et al., 2017) (RN), and a multi-head attention baseline (Vaswani et al., 2017; Zambaldi et al., 2019) (MHA).
73
+
74
+ To facilitate a fair comparison, the top-level schematic is identical for the PrediNet and for all baselines (Fig. 3). All use the same input CNN architecture and the same output MLP architecture, and differ only in the central module. In MLP1, the central module is a single fully-connected layer with ReLu activations, while in MLP2 it has two layers. In RN, the central module computes the set of all possible pairs of feature vectors, each of which is passed through a 2-layer MLP; the resulting vectors are then aggregated by taking their element-wise means to yield the output vector. Finally, MHA comprises multiple heads, each of which generates mappings from the input feature vectors to sets of keys $K$ , queries $Q$ , and values $V$ , and then computes softmax $( Q K ^ { \top } ) V$ . Each head’s output is a weighted sum of the resulting vectors, and the output of the MHA central module is the concatenation of all its heads’ outputs. The PrediNet used here comprises $k = 3 2$ heads and $j = 1 6$ relations (Fig. 1). All reported experiments were carried out using stochastic gradient descent, and all results shown are averages over 10 runs. Further experimental details are given in the Supplementary Material, which also shows results for experiments with different numbers of heads and relations, and with the Adam optimiser, all of which present qualitatively similar results.
75
+
76
+ ![](images/59609ae11a5a459a6bb196384a08bfaf14aedced1451207bee625c15ba01e038.jpg)
77
+ Figure 2: Relations Game object sets and tasks. (a) Example objects from the training set and held-out test sets. (b) There are five possible row / column patterns. In a multi-task setting, recognising each row pattern is a separate task. (c) Three examples tasks for the single-task setting. (d) An example target task (left) and curriculum (right) for the multi-task setting. The curriculum task ids (right) for each of the three examples (2, 4, and 3) correspond to the respective patterns in (b), and the task in each case is to confirm whether or not the column of objects in the image conform to the designated pattern. The aim of the target task (left) is to test whether the two rows of objects have the same pattern according to (b).
78
+
79
+ ![](images/ffea528f48079ce872fba2a4f868b06f50790719756f06c415acd4ebffcd0851.jpg)
80
+ Figure 3: The four-stage experimental protocol for multi-task curriculum training. The same input module (CNN) and output module (MLP) are used for the PrediNet and all baseline architectures; only the central module varies. Task identifiers are appended to the central module’s output vector.
81
+
82
+ Table 1: Data efficiency in a single-task Relations Game setting.
83
+
84
+ <table><tr><td rowspan=1 colspan=1>Relation</td><td rowspan=1 colspan=1> Object set</td><td rowspan=1 colspan=1>MLP1</td><td rowspan=1 colspan=1>MLP2</td><td rowspan=1 colspan=1>RN</td><td rowspan=1 colspan=1>MHA</td><td rowspan=1 colspan=1>PrediNet</td></tr><tr><td rowspan=2 colspan=1>same</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>96.1±0.007</td><td rowspan=1 colspan=1>96.4±0.006</td><td rowspan=1 colspan=1>73.2±0.05</td><td rowspan=1 colspan=1>94.7±0.1</td><td rowspan=1 colspan=1>100±0.0</td></tr><tr><td rowspan=1 colspan=1>Stripes</td><td rowspan=1 colspan=1>93.3±0.01</td><td rowspan=1 colspan=1>94.0±0.01</td><td rowspan=1 colspan=1>72.9±0.05</td><td rowspan=1 colspan=1>93.7±0.1</td><td rowspan=1 colspan=1>100±0.0</td></tr><tr><td rowspan=2 colspan=1>between</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>98.7±0.005</td><td rowspan=1 colspan=1>98.8±0.004</td><td rowspan=1 colspan=1>70.8±0.01</td><td rowspan=1 colspan=1>89.2±0.1</td><td rowspan=1 colspan=1>99.2±0.004</td></tr><tr><td rowspan=1 colspan=1>Stripes</td><td rowspan=1 colspan=1>96.9±0.008</td><td rowspan=1 colspan=1>97.3±0.004</td><td rowspan=1 colspan=1>65.2±0.05</td><td rowspan=1 colspan=1>85.5±0.1</td><td rowspan=1 colspan=1>98.7±0.007</td></tr><tr><td rowspan=2 colspan=1>occurs</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>88.0±0.01</td><td rowspan=1 colspan=1>94.8±0.03</td><td rowspan=1 colspan=1>61.6±0.01</td><td rowspan=1 colspan=1>88.4±0.2</td><td rowspan=1 colspan=1>98.5±0.009</td></tr><tr><td rowspan=1 colspan=1>Stripes</td><td rowspan=1 colspan=1>73.2±0.03</td><td rowspan=1 colspan=1>87.3±0.07</td><td rowspan=1 colspan=1>62.6±0.02</td><td rowspan=1 colspan=1>80.8±0.1</td><td rowspan=1 colspan=1>96.9±0.01</td></tr><tr><td rowspan=2 colspan=1>xoccurs</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>81.5±0.02</td><td rowspan=1 colspan=1>84.4±0.04</td><td rowspan=1 colspan=1>55.0±0.009</td><td rowspan=1 colspan=1>54.7±0.008</td><td rowspan=1 colspan=1>95.4±0.01</td></tr><tr><td rowspan=1 colspan=1>Stripes</td><td rowspan=1 colspan=1>78.2±0.03</td><td rowspan=1 colspan=1>80.8±0.05</td><td rowspan=1 colspan=1>54.0±0.01</td><td rowspan=1 colspan=1>53.6±0.007</td><td rowspan=1 colspan=1>95.5±0.01</td></tr><tr><td rowspan=1 colspan=1>colour/shape</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>53.4±0.07</td><td rowspan=1 colspan=1>55.8±0.05</td><td rowspan=1 colspan=1>45.1±0.05</td><td rowspan=1 colspan=1>88.6±0.03</td><td rowspan=1 colspan=1>94.3±0.01</td></tr></table>
85
+
86
+ To assess the generality and reusability of the representations produced by the PrediNet, we adopted a four-stage experimental protocol wherein 1) the network is pre-trained on a curriculum of one or more tasks, 2) the weights in the input CNN and PrediNet are frozen while the weights in the output MLP are re-initialised with random values, and 3) the network is retrained on a new target task or set of tasks (Fig. 3). In step 3, only the weights in the output MLP change, so the target task can only be learned to the extent that the PrediNet delivers re-usable representations to it, representations the PrediNet has learned to produce without exposure to the target task. To assess this, we can compare the learning curves for the target task with and without pre-training. We expect pre-training to improve data efficiency, so we should see accuracy increasing more quickly with pre-training than without it. For evidence of transfer, and to confirm the hypothesis of reusability, we are also interested in the final performance on the target task after pre-training, given that the weights of the pre-trained input CNN and PrediNet are frozen. This measure indicates how well a network has learned to form useful representations. The more different the target task is from the pre-training curriculum, the more impressed we should be that the network is able to learn the target task.
87
+
88
+ # 5 RESULTS
89
+
90
+ As a prelude to investigating the issues of generality and reusabilty, we studied the data efficiency of the PrediNet architecture in a single-task Relations Game setting. Results obtained on a selection of five tasks – ‘same’, ‘between’, ‘occurs’, ‘xoccurs’, and ‘colour / shape’ – are summarised in Table 1. The first three tasks are as described in Fig. 2. The ‘xoccurs’ relation is similar to occurs. It holds iff the object in the top row occurs in the bottom row and the other two objects in the bottom row are different. The ‘colour / shape’ task involves four labels, rather than the usual two: same-shape / same-colour; different-colour / same-shape; same-colour / different shape; different-colour / different shape. In the dataset for this task, each image contains two objects randomly placed, and one of the four labels must be assigned appropriately. Table 1 shows the accuracy obtained by each of the five architectures after 100,000 batches when tested on the two held-out object sets. The PrediNet is the only architecture that achieves over $90 \%$ accuracy on all tasks with both held-out object sets after 100,000 batches. On the ‘xoccurs’ task, the PrediNet out-performs the baselines by more than $10 \%$ , and on the ‘colour / shape’ task (where chance is $2 5 \%$ ), it out-performs all the baselines except MHA by $2 5 \%$ or more.
91
+
92
+ Next, using the protocol outlined in Fig. 3, we compared the PrediNet’s ability to learn re-usable representations with each of the baselines. We looked at a number of combinations of target tasks and pre-training curriculum tasks. Fig. 4 depicts our findings for one these combinations in detail, specifically three target tasks corresponding to three of the five possible column patterns (ABA, AAB, and ABB (Fig. 2d)), and a pre-training curriculum comprising the single ‘between’ task. The plots present learning curves for each of the five architectures at each of the four stages of the experimental protocol. In all cases, accuracy is shown for the ‘stripes’ held-out object set (not the training set). Of particular interest are the (green) curves corresponding to Stage 3 of the experimental protocol. These show how well each architecture learns the target task(s) after the central module has been pre-trained on the curriculum task(s) and its weights are frozen. The PrediNet learns faster than any of the baselines, and is the only one to achieve an accuracy of $90 \%$ . The rapid reusability of the representations learned by both the MHA baseline and the PrediNet is noteworthy because the ‘between’ relation by itself seems an unpromising curriculum for subsequently learning the AAB and ABB column patterns. As the (red) curve for Stage 4 of the protocol shows, the reusability of the PrediNet’s representations cannot be accounted for by the pre-training of the input CNN alone.
93
+
94
+ ![](images/2860e394458188b798724c270b033684451f5caaf920cc0a6a6e33ddc565e987.jpg)
95
+ Figure 4: Multi-task curriculum training. The target tasks are three column patterns (AAB, ABA, and ABB) and the sole curriculum task is the ‘between’ relation.
96
+
97
+ ![](images/f5423c49fb9436252568f8442c7594e6212ab5715afe91d508fa2b743ef6177b.jpg)
98
+ Figure 5: Reusability of representations learned with a variety of target and pre-training tasks.
99
+
100
+ Fig. 5 shows a larger range of target task / curriculum task combinations, concentrating exclusively on the Stage 3 learning curves. Here a more complete picture emerges. In both Fig. 5a and Fig. 5d the target task is ‘match rows’ (Fig. 2d), but they differ in their pre-training curricula. The curriculum for Fig. 5d is three of the five row patterns (ABA, AAB, and ABB). This is the only case where the PrediNet does not learn representations that are more useful for the target task than those of all the baselines, outperforming only two of the four. However, when the curriculum is the three analogous column patterns rather than row patterns, the performance of all four baselines collapses to chance, while the PrediNet does well, attaining similar performance as for the row-based curriculum (Fig. 5a). This suggests the PrediNet is able to learn representations that are orientation invariant, which aids transfer. This hypothesis is supported by Fig. 5e, where the target tasks are all five row patterns, while the curriculum is all five column patterns. None of the baselines is able to learn reusable representations in this context; all remain at chance, whereas the PrediNet achieves $8 5 \%$ accuracy.
101
+
102
+ ![](images/6a174e4b0e286837ad4ddd2f7eb1246a74bd089edcd7a1df6f13caf5fbbed88f.jpg)
103
+ Figure 6: (a) Attention heat maps for the first four heads of a trained PrediNet. Left: trained on the ‘same’ task. Right: trained on the ‘occurs’ task. (b) Principal component analysis. Left: PCA on the output of a selected head for a PrediNet trained on the ‘colour / shape’ task for pentominoes images (training set). Centre: The same PrediNet applied to hexominoes (held-out test set). Right: PCA applied to a representative head of the MHA baseline with pentominoes (training set). (c) Ablation study. Accuracy for PrediNet and MHA on the ‘colour / shape’ task when random subsets of the heads are used at test time. PrediNet\* only samples from heads that attend to the two objects.
104
+
105
+ To better understand the operation of the PrediNet, we carried out a number of visualisations. One way to find out what the PrediNet’s heads learn to attend is to submit images to a trained network and, for each head $h$ , apply the two attention masks softmax $( Q _ { 1 } ^ { h } K ^ { \top } )$ and softmax $( Q _ { 2 } ^ { h } K ^ { \top } )$ to each of the $n$ feature vectors in the convolved image $L$ . The resulting matrix can then be plotted as a heat map to show how attention is distrubuted over the image. We did this for a number of networks trained in the single-task setting. Fig. 6a shows two examples, and the Supplementary Material contains a more extensive selection. As we might expect, most of the attention focuses on the centres of single objects, and many of the heads pick out pairs of distinct objects in various combinations. But some heads attend to halves or corners of objects. Although most attention is focal, whether directed at object centres or object parts, some heads exhibit diffuse attention, which is possible thanks to the soft key-query matching mechanism. So the PrediNet can (but isn’t forced to) treat the background as a single entity, or to treat an identical pair of objects as a single entity.
106
+
107
+ To gain some insight into how the PrediNet encodes relations, we carried out principal component analysis (PCA) on each head of the central module’s output vectors for a number of trained networks, again in the single-task setting (Fig. 6b). We chose the four-label ‘colour / shape’ task to train on, and mapped 10,000 example images onto the first two principal components, colouring each with their ground-truth label. We found that, for some heads, differences in colour and shape appear to align along separate axes (Fig. 6b). This contrasts with the MHA baseline, whose heads don’t seem to individually cluster the labels in a meaningful way. For the other baselines, which lack the multi-head organisation of the PrediNet and the MHA network, the only option is to carry out PCA on the whole output vector of the central module. Doing this, however, does not produce interpretable results for any of the architectures (Fig.S8). We also identified the heads in the PrediNet that attended to both objects in the image and found that they overlapped almost entirely with those that meaningfully clustered the labels (Fig.S10). Finally, still using the ‘shape / colour task’, we carried out an ablation study, which showed that the PrediNet is significantly more robust than the MHA network to pruning a random subset of heads at test time. Moreover, if pruned to leave only those heads that attended to the two objects, the performance of the full network could be captured with just a handful of heads (Fig. 6c). Taken together, these results are suggestive of something we might term relational disentangling in the PrediNet.
108
+
109
+ Finally, to flesh out the claim that the PrediNet generates explicitly relational representations according to the semantics of Equation 1, we extended the PrediNet module to generate an additional output in the form of a Prolog program (Fig. 7). This involves assigning symbolic identifiers 1) to each of the
110
+
111
+ ![](images/04ed67fab717de2f37c9700c1e7f0782803b63aa4fa13ad6a31a8d6925e2f7c2.jpg)
112
+ Figure 7: PrediNet output in propositional form. (a) A small PrediNet (8 heads, 8 relations) trained on the ‘between’ task is given an image. (b) Mean shift clustering is applied to the set of all attention masks computed by the heads. Each of the resulting 6 clusters is assigned a symbolic identifier. (c) Each relation is also given a symbolic identifier, and all 64 propositions computed by the PrediNet are enumerated in Prolog syntax, in accordance with Equation 1. (A subset is shown.) (d) The results can be combined with further hand-written Prolog clauses. (Upper-case letters denote variables, while constants start with lower-case letters.) (e) Prolog queries can then be submitted. Here we are asking which relations $r$ hold with a small value $v$ between ob_2 and any other object $x$ . (f) The query yields four answers.
113
+
114
+ PrediNet’s $j$ relations, and 2) to every object picked out by its $k$ heads via the attention masks they compute. Then the corresponding $j \times k$ propositions can be enumerated in Prolog syntax. Assigning symbolic identifiers to the relations is trivial. But because attention masks can differ slightly even when they ostensibly pick out the same region of the input image, it’s necessary to cluster them before assigning symbolic identifiers to the corresponding objects. We used mean shift clustering for this. Fig. 7 presents a sample of the PrediNet’s output in Prolog form, along with an example of deductive inference carried out with this program. The example shown is not intended to be especially meaningful; without further analysis, we lack any intuitive understanding of the relations the PrediNet has discovered. But it demonstrates that the representations the PrediNet produces can be understood in predicate calculus terms, and that symbolic deductive inference is one way (though not the only way) in which they might be deployed downstream.
115
+
116
+ # 6 RELATED WORK
117
+
118
+ The need for good representations has long been recognised in AI (McCarthy, 1987; Russell & Norvig, 2009), and is fundamental to deep learning (Bengio et al., 2013). The importance of reusability and abstraction, especially in the context of transfer, is emphasised by Bengio, et al. (Bengio et al., 2013), who argue for feature sets that are “invariant to the irrelevant features and disentangle the relevant features”. Our work here shares this motivation. Other work has looked at learning representations that are disentangled at the feature level (Higgins et al., 2017a; 2018). The novelty of the PrediNet is to incorporate architectural priors that favour representations that are disentangled at the relational and propositional levels. Previous work with relation nets and multi-head attention nets has shown how non-local information can be extracted from raw pixel data and used to solve tasks that require relational reasoning. (Santoro et al., 2017; Palm et al., 2018; Santoro et al., 2018; Zambaldi et al., 2019) But unlike the PrediNet, these networks don’t produce representations with an explicitly relational, propositional structure. By addressing the problem of acquiring structured representations, the PrediNet complements another thread of related work, which is concerned with learning how to carry out inference with structured representations, but which assumes the job of acquiring those representations is done elsewhere (Getoor & Taskar, 2007; Battaglia et al., 2016; Rocktäschel & Riedel, 2017; Evans & Grefenstette, 2018; Dong et al., 2019).
119
+
120
+ In part, the present work is motivated by the conviction that curricula will be essential to lifelong, continual learning in a future generation of RL agents if they are to exhibit more general intelligence, just as they are for human children. Curricular pre-training has a decade-long pedigree in deep learning (Bengio et al., 2009). Closely related to curriculum learning is the topic of transfer (Bengio, 2012), a hallmark of general intelligence and the subject of much recent attention (Higgins et al., 2017b; Kansky et al., 2017; Schwarz et al., 2018). The PrediNet exemplifies a different (though not incompatible) viewpoint on curriculum learning and transfer from that usually found in the neural network literature. Rather than (or as well as) a means to guide the network, step by step, into a favourable portion of weight space, curriculum learning is here viewed in terms of the incremental accumulation of propositional knowledge. This necessitates the development of a different style of architecture, one that supports the acquisition of propositional, relational representations, which also naturally subserve transfer.
121
+
122
+ Asai, whose paper was published while the present work was in progress, describes an architecture with some similarities to the PrediNet, but also some notable differences (Asai, 2019). For example, Asai’s architecture assumes an input representation in symbolic form where the objects have already been segmented. By contrast, in the present architecture, the input CNN and the PrediNet’s dotproduct attention mechanism together learn what constitutes an object.
123
+
124
+ # 7 CONCLUSION AND FURTHER WORK
125
+
126
+ We have presented a neural network architecture capable, in principle, of supporting predicate logic’s powers of abstraction without compromising the ideal of end-to-end learning, where the network itself discovers objects and relations in the raw data and thus avoids the symbol grounding problem entailed by symbolic AI’s practice of hand-crafting representations (Harnad, 1990). Our empirical results support the view that a network architecturally constrained to learn explicitly propositional, relational representations will have beneficial data efficiency, generalisation, and transfer properties. Although, the present experiments don’t use the fully propositional version of the PrediNet output, the concatenated vector form inherits many of its beneficial properties, notably a degree of compositionality. In particular, one important respect in which the PrediNet differs from other network architectures is the extent to which it canalises information flow; at the core of the network, information is organised into small chunks which are processed in parallel channels that limit the ways the chunks can interact. We believe this pressures the network to learn representations where each separate chunk of information (such as a single value in the vector $R *$ ) has independent meaning and utility. (We see evidence of this in the relational disentanglement of Fig. 6.) The result is a representation whose component parts are amenable to recombination, and therefore re-use in a novel task. But the findings reported here are just the first foray into unexplored architectural territory, and much work needs to be done to gauge the architecture’s full potential.
127
+
128
+ The focus of the present paper is the acquisition of propositional representations rather than their use. But thanks to the structural priors of its architecture, representations generated by a PrediNet module have a natural semantics compatible with predicate calculus (Equation 1), which makes them an ideal medium for logic-like downstream processes such as rule-based deduction, causal or counterfactual reasoning, and inference to the best explanation (abduction). One approach here would be to stack PrediNet modules and / or make them recurrent, enabling them to carry out the sort of iterated, sequential computations required for such processes (Palm et al., 2018; Dehghani et al., 2019). Another worthwhile direction for further research would be to develop reinforcement learning (RL) agents using the PrediNet architecture. One form of inference of particular interest in this context is model-based prediction, which can be used to endow an RL agent with look-ahead and planning abilities (Racanière et al., 2017; Zambaldi et al., 2019). Our expectation is that RL agents in which explicitly propositional, relational representations underpin these capacities will manifest more of the beneficial data efficiency, generalisation, and transfer properties suggested by the present results. As a stepping stone to such RL agents, the Relations Game family of datasets could be extended into the temporal domain, and multi-task curricula developed to encourage the acquisition of temporal, as well as spatial, abstractions.
129
+
130
+ # REFERENCES
131
+
132
+ Masataro Asai. Unsupervised grounding of plannable first-order logic representation from images. In International Conference on Automated Planning and Scheduling, 2019.
133
+
134
+ Peter W. Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, and Koray Kavukcuoglu. Interaction networks for learning about objects, relations and physics. In Advances in Neural Information Processing Systems, pp. 4502–4510, 2016.
135
+
136
+ Yoshua Bengio. Deep learning of representations for unsupervised and transfer learning. In Proc. ICML Workshop on Unsupervised and Transfer Learning, volume 27, pp. 17–37, 2012.
137
+
138
+ Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proc. 26th International Conference on Machine Learning, pp. 41–48, 2009.
139
+
140
+ Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013.
141
+
142
+ Antoine Bordes, Jason Weston, Ronan Collobert, and Yoshua Bengio. Learning structured embeddings of knowledge bases. In Proc. AAAI, pp. 301–306, 2011.
143
+
144
+ Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In Proc. International Conference on Learning Representations, 2019.
145
+
146
+ Honghua Dong, Jiayuan Mao, Tian Lin, Chong Wang, Lihong Li, and Denny Zhou. Neural logic machines. In International Conference on Learning Representations, 2019.
147
+
148
+ Richard Evans and Edward Grefenstette. Learning explanatory rules from noisy data. Journal of Artificial Intelligence Research, 61:1–64, 2018.
149
+
150
+ Marta Garnelo and Murray Shanahan. Reconciling deep learning with symbolic artificial intelligence: representing objects and relations. Current Opinion in Behavioral Sciences, 29:17–23, 2019.
151
+
152
+ Marta Garnelo, Kai Arulkumaran, and Murray Shanahan. Towards deep symbolic reinforcement learning. arXiv preprint: 1609.05518, 2016.
153
+
154
+ Lisa Getoor and Ben Taskar (eds.). Introduction to Statistical Relational Learning. MIT Press, 2007.
155
+
156
+ Stevan Harnad. The symbol grounding problem. Physica D: Nonlinear Phenomena, 42(1-3):335–346, 1990.
157
+
158
+ Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations, 2017a.
159
+
160
+ Irina Higgins, Arka Pal, Andrei Rusu, Loïc Matthey, Christopher Burgess, Alexander Pritzel, Matthew Botvinick, Charles Blundell, and Alexander Lerchner. DARLA: improving zero-shot transfer in reinforcement learning. In Proc. 34th International Conference on Machine Learning, pp. 1480–1490, 2017b.
161
+
162
+ Irina Higgins, Nicolas Sonnerat, Loic Matthey, Arka Pal, Christopher P Burgess, Matko Bosnjak, Murray Shanahan, Matthew Botvinick, Demis Hassabis, and Alexander Lerchner. Scan: Learning hierarchical compositional visual concepts. In International Conference on Learning Representations, 2018.
163
+
164
+ Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C. Lawrence Zitnick, and Ross B. Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1988–1997, 2017.
165
+
166
+ Ken Kansky, Tom Silver, David A. Mély, Mohamed Eldawy, Miguel Lázaro-Gredilla, Xinghua Lou, Nimrod Dorfman, Szymon Sidor, Scott Phoenix, and Dileep George. Schema networks: Zero-shot transfer with a generative causal model of intuitive physics. In Proc. 34th International Conference on Machine Learning, volume 70, pp. 1809–1818, 2017.
167
+
168
+ Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and Brain Sciences, 40:e253, 2017.
169
+
170
+ Gary Marcus. Deep learning: a critical appraisal. arXiv preprint arXiv:1801.00631, 2018.
171
+
172
+ John McCarthy. Generality in artificial intelligence. Communications of the ACM, 30(12):1030–1035, 1987.
173
+
174
+ Rasmus Berg Palm, Ulrich Paquet, and Ole Winter. Recurrent relational networks. In Advances in Neural Information Processing Systems, pp. 3368–3378, 2018.
175
+
176
+ Sébastien Racanière, Théophane Weber, David P. Reichert, Lars Buesing, Arthur Guez, Danilo Rezende, Adria Puigdomènech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, Razvan Pascanu, Peter Battaglia, Demis Hassabis, David Silver, and Daan Wierstra. Imagination-augmented agents for deep reinforcement learning. In Advances in Neural Information Processing Systems, pp. 5694–5705, 2017.
177
+
178
+ Tim Rocktäschel and Sebastian Riedel. End-to-end differentiable proving. In Advances in Neural Information Processing Systems, pp. 3788–3800, 2017.
179
+
180
+ Stuart Russell and Peter Norvig. Artificial Intelligence: A Modern Approach. Prentice Hall Press, 3rd edition, 2009.
181
+
182
+ Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Tim Lillicrap. A simple neural network module for relational reasoning. In Advances in Neural Information Processing Systems, pp. 4974–4983, 2017.
183
+
184
+ Adam Santoro, Ryan Faulkner, David Raposo, Rae Jack, Mike Chrzanowski, Théophane Weber, Oriol Vinyals, Razvan Pascanu, and Tim Lillicrap. Relational recurrent neural networks. In Advances in Neural Information Processing Systems, pp. 7299–7310, 2018.
185
+
186
+ Jonathan Schwarz, Wojciech Czarnecki, Jelena Luketina, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. In Proc. 35th International Conference on Machine Learning, volume 80, pp. 4528–4537, 2018.
187
+
188
+ Brian Cantwell Smith. The Promise of Artificial Intelligence: Reckoning and Judgment. MIT Press, 2019.
189
+
190
+ Richard Socher, Danqi Chen, Christopher Manning, and Andrew Ng. Reasoning with neural tensor networks for knowledge base completion. In Advances in Neural Information Processing Systems, pp. 926–934, 2013.
191
+
192
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 5998–6008, 2017.
193
+
194
+ Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, 2018.
195
+
196
+ Vinicius Zambaldi, David Raposo, Adam Santoro, Victor Bapst, Yujia Li, Igor Babuschkin, Karl Tuyls, David Reichert, Timothy Lillicrap, Edward Lockhart, Murray Shanahan, Victoria Langston, Razvan Pascanu, Matthew Botvinick, Oriol Vinyals, and Peter Battaglia. Deep reinforcement learning with relational inductive biases. In International Conference on Learning Representations, 2019.
197
+
198
+ Table S2: Default hyperparameters
199
+
200
+ <table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Input images size L size Runs per experiment Optimiser Learning rate</td><td>36×36×3 25×34 10 Gradient descent</td></tr><tr><td>Batch size Input CNN output channels Input CNN filter size Input CNN stride Input CNN activation</td><td>0.01 10 32 12 6 ReLu</td></tr><tr><td>Bias Output MLP hidden layer size Output MLP output size Output MLP activation</td><td>Yes 8 2(4) ReLu</td></tr><tr><td>Bias MLP1 output size MLP1 activation Bias</td><td>Yes (both) k(j+4) ReLu Yes</td></tr><tr><td>MLP2 hidden layer size MLP2 activations MLP2 output size</td><td>1024 ReLu k(j+4)</td></tr><tr><td>Bias RN MLP hidden layer size (pre-aggregation) RN output size RN activation RN aggregation</td><td>Yes (both) 256 k(j+4) ReLu Element-wise mean</td></tr><tr><td>Bias MHA no. of heads MHA key / query size MHA value size MHA output size MHA attention mechanism</td><td>No k 16 j+4 k(j+4)</td></tr><tr><td>Bias PrediNet no. of heads PrediNet key /query size PrediNet relations PrediNet output size Bias</td><td>softmax(QKT)V No k=32 g=16 j=16 k(j+4) n/a</td></tr></table>
201
+
202
+ # S1 HYPERPARAMETERS
203
+
204
+ Table S2 shows the default hyperparameters used for the experiments reported in the main text.
205
+
206
+ # S2 SUPPLEMENTARY ANALYSIS
207
+
208
+ # S2.1 DIMENSIONALITY REDUCTION ON INTERMEDIATE REPRESENTATIONS
209
+
210
+ To qualitatively assess the nature of the representations produced by each architecture, we performed a dimensionality reduction analysis on the outputs of the central module of each architecture trained on the ‘colour / shape’ task. After training, a batch of 10,000 images (pentominoes) was passed through the network and principal component analysis (PCA) was performed on the resulting representations, which were then projected onto the two largest principal components for visualisation. The projected representations were then colour-coded by the labels for the corresponding images (i.e. different/same shape, different/same colour).
211
+
212
+ ![](images/36b3ab57bcda64ccb6e16a7440f9f151ad5761bef3f81474d0a0e483fae80456.jpg)
213
+ Figure S8: Representative central module outputs for networks trained on the ‘colour / shape’ task when projected onto the two largest principal components.
214
+
215
+ PCA on the full representations (concatenating the head outputs in the case of the PrediNet and MHA models) did not yield any clear clustering of representations according to the labels for any of the models (Figure S8).
216
+
217
+ For the PrediNet and MHA models, we also ran separate PCAs on the output relations of each head in order to see how distributed / disentangled the representations were. While in the MHA model there was no evidence of clustering by label on any of the heads, reflecting a heavily distributed representation, there were several heads in the PrediNet architecture that individually clustered the different labels (Figure S9). In some heads, colour and shape seemed to be projected along separate axes (e.g. heads 5, 26, and 27), while in others objects with different colours seemed to be organised in a hexagonal grid (e.g. heads 9 and 14).
218
+
219
+ We noted that the clustering was preserved (though slightly compressed in PC space) when the held-out set of images (hexominoes) was passed through the PrediNet and projected onto the same principal components derived using the training set. (In Section S2.2, we show that the PrediNet heads that seem to cluster the labels also attend to the two objects in the image rather than the background.)
220
+
221
+ # S2.2 ATTENTION ANALYSIS
222
+
223
+ To assess the extent to which the various PrediNet heads attend to actual objects as opposed to the background, we produced a lower resolution content mask for each image (with the same resolution as the attention mask) containing 0.0s at locations where there are no objects in the corresponding pixels of the full image, 1.0s where more than $9 0 \%$ of the pixels contain an object, and 0.5s otherwise. By applying the attention mask to the content mask, and summing the resulting elements, we produced a scalar indicating whether the attention mask was selecting a region of the image with an object (value close to 1.0), or the background (value close to 0.0). This was tested over 1000 images from the training set (Fig. S10), but similar results are obtained if the held-out set images are used instead. The top plot in Fig. S10 shows that both attention masks of some heads consistently attend to objects, while others to a combination of object and background. Importantly, the heads for which the PCA meaningfully clusters the labels are also the ones in which both attention masks attend to objects (Fig. S9).
224
+
225
+ We additionally provide a similar analysis with a position mask, where each pixel in the mask contains a unique location index. The middle plot in Fig. S10 shows that the attention masks in the majority of the heads do not consistently attend to specific locations. Finally, the mean absolute values of the per-head input weights to the output MLP are shown in the bottom plot of the same figure. Interestingly, the heads that consistently attend only to objects have higher weighting than the rest.
226
+
227
+ ![](images/60fcf6158b9120b47d4d6ec35eb75643d6f7b54b3a4cff11e69a401b4640b8c5.jpg)
228
+ Figure S9: Per-head PCA on the heads of a PrediNet and an MHA trained on the ‘colour / shape’ task. For all networks, PCA was performed using the training data (pentominoes). In (a) and (c), the training data are projected onto the two largest PCs and in (b) the test data (hexominoes) was used.
229
+
230
+ ![](images/b4569f18d7bfab316f74b150c607aad2dc1c6754409abc595880ab63c07791cd.jpg)
231
+ Figure S10: Top: The extent to which the two attention masks of the different heads attend to objects rather than the background. Middle: The extent to which the two attention masks of the different heads attend to specific locations in the image. Bottom: Mean absolute value of the weights from the different PrediNet heads to the output MLP.
232
+
233
+ # S3 EXPERIMENTAL VARIATIONS
234
+
235
+ Further experimental results are provided in this section, including variations in hyper-parameters. Fig. S11 presents test accuracy curves for the ‘stripes’ object set, for which a summary is presented in Table 1 of the main text. Fig. S12 shows the results on the same experiment but using the Adam optimiser instead of SGD, with a learning rate of $1 0 ^ { - 4 }$ . The TensorFlow default values for all other Adam parameters were used. While other learning rate values were also tested, a value of $1 0 ^ { - 4 }$ gave the best overall performance for all architectures. Multi-task experiments were also performed using Adam with the same learning rate (Fig. S14 & S15), yielding an overall similar performance to SGD with a learning rate of $1 0 ^ { - 2 }$ .
236
+
237
+ To assess the extent to which the number of heads and relations plays a role in the performance, we ran experiments with $k = 6 4$ heads and $j = 1 6$ relations (Fig. S16 & S17), as well as $k = 1 6$ heads and $j = 3 2$ relations (Fig. S18 & S19). The results indicate that having a greater number of heads leads to better performance than having a greater number of relations, because they provide more stability during training and, perhaps, a richer propositional representation.
238
+
239
+ ![](images/e55710561f4221861926a9e18d2d5f78c64350ab15660426ad476788bb600088.jpg)
240
+ Figure S11: Relations Game learning curves for the different models. SGD with a learning rate of 0.01 was used with a PrediNet of $k = 3 2$ heads and $j = 1 6$ relations. The top and bottom rows show results for the ‘hexominoes’ held-out object set, while the middle row is for the ‘stripes’ held-out object set. The results for the top 10 batches are summarised in Table 1 of the main manuscript.
241
+
242
+ ![](images/351913f8c8b1f54ae80ce7970dbec2c8500ba8f58a45f23777cbdb5d88d9f8d1.jpg)
243
+ Figure S12: Relations Game learning curves for the different models trained with the Adam optimiser (learning rate: $1 0 ^ { - 4 }$ ). All other experimental parameters are the same as Fig. S11. The top row shows results for the ‘hexominoes’ held-out object set, while the bottom row is for the ‘stripes’ held-out object set
244
+
245
+ ![](images/4b166ce338e6c8c1fb47d4965122c2810e12d1933b5cbc2a4d51ad0cf7f13582.jpg)
246
+ Figure S13: Multi-task curriculum training. The columns correspond to different target / pre-training task combinations, while the rows correspond to the different architectures. SGD with a learning rate of 0.01 was used, with $k = 3 2$ and $j = 1 6$ . Training was performed using the pentominoes object set and testing using the ‘stripes’ object set. From left to right, the combinations of target / pre-training tasks are: (‘match rows’, $^ { 6 } 3$ row patterns’), (‘5 column patterns’, ‘between’), (‘3 column patterns’, ‘between’), (‘match rows’, ‘3 column patterns’) and (‘5 row patterns’, ‘5 column patterns’). From top to bottom, the different architectures are: MLP1, MLP2, relation net (RN), multi-head attention (MHA) and PrediNet.
247
+
248
+ ![](images/438677fc2c32f9264113574e9859491717d1af6cd24f9efd4817231792a1e21f.jpg)
249
+ Figure S14: Multi-task curriculum training. The columns correspond to different target / pre-training task combinations, while the rows correspond to the different architectures, as in Fig. S13. The Adam optimiser with a learning rate of $1 0 ^ { - 4 }$ was used. Training was performed using the pentominoes object set and testing using the ‘stripes’ object set.
250
+
251
+ ![](images/3ae73376016f90ba446129a0675ad8251826ac53c58839895314cca843417074.jpg)
252
+ Figure S15: Reusability of representations learned with a variety of target and pre-training tasks, using the ‘stripes’ object set. All architectures were trained using Adam, with a learning rate of $1 0 ^ { - 4 }$ . The experimental setup is the same as in Fig. S14.
253
+
254
+ ![](images/b3a3f8d5d0f1e66fd8c57d7739e66748a85008026ee7da8ec7e62675a6c6cf0c.jpg)
255
+ Figure S16: Multi-task curriculum training. The columns correspond to different target/pre-training task combinations, while the rows correspond to the different architectures. SGD with a learning rate of 0.01 was used. Training was performed using the pentominoes object set and testing using the ‘stripes’ object set. The experimental setup is the same as for Fig. S13, except that $k = 6 4$ and $j = 1 6$ . Increasing the number of heads for the PrediNet increases the stability during training and overall performance.
256
+
257
+ ![](images/fe3733dde7f98be808bb1cff19aa3b855fd08735c1ecbe79f2227548bebd550b.jpg)
258
+ Figure S17: Reusability of representations learned with a variety of target and pre-training tasks, using the ‘stripes’ object set. All experimental parameters are as in Fig. S16.
259
+
260
+ ![](images/12bbf29c7db9f32ba4885e1dd56886fea9ea2076ae44983130a2c038013eb282.jpg)
261
+ Figure S18: Multi-task curriculum training. The columns correspond to different target / pre-training task combinations, while the rows correspond to the different architectures. SGD with a learning rate of 0.01 was used. Training was performed using the pentominoes object set and testing using the ‘stripes’ object set. The experimental setup is the same as for Fig. S13, except that $k = 1 6$ and $j = 3 2$ . Having fewer heads leads to a decrease in performance, even if the number of relations is increased to maintain network size.
262
+
263
+ ![](images/e49c46ea61614d246526938d200c4e60e0508fd16db4490b45865d1c0c83e83e.jpg)
264
+ Figure S19: Reusability of representations learned with a variety of target and pre-training tasks, using the ‘stripes’ object set. All experimental parameters are as in Fig. S18.
parse/train/S1l6ITVKPS/S1l6ITVKPS_content_list.json ADDED
@@ -0,0 +1,1431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "AN EXPLICITLY RELATIONAL NEURAL NETWORK ARCHITECTURE ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 99,
9
+ 826,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 250
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "With a view to bridging the gap between deep learning and symbolic AI, we present a novel end-to-end neural network architecture that learns to form propositional representations with an explicitly relational structure from raw pixel data. In order to evaluate and analyse the architecture, we introduce a family of simple visual relational reasoning tasks of varying complexity. We show that the proposed architecture, when pre-trained on a curriculum of such tasks, learns to generate reusable representations that better facilitate subsequent learning on previously unseen tasks when compared to a number of baseline architectures. The workings of a successfully trained model are visualised to shed some light on how the architecture functions. ",
40
+ "bbox": [
41
+ 233,
42
+ 263,
43
+ 764,
44
+ 402
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 426,
55
+ 336,
56
+ 443
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "When humans face novel problems, they are able to draw effectively on past experience with other problems that are superficially very different, but that have similarities on a more abstract, structural level. This ability is essential for lifelong, continual learning, and confers on humans a degree of data efficiency, powers of transfer learning, and a capacity for out-of-distribution generalisation that contemporary machine learning has yet to match (Garnelo et al., 2016; Lake et al., 2017; Marcus, 2018; Smith, 2019). A case may be made that all these issues are different facets of the same underlying challenge, namely the challenge of devising systems that learn to construct general-purpose, reusable representations (McCarthy, 1987; Bengio et al., 2013). A representation is general-purpose and reusable to the extent that it contains information whose domain of application exceeds the context within which it was acquired. ",
63
+ "bbox": [
64
+ 174,
65
+ 458,
66
+ 825,
67
+ 597
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Representations that are general-purpose and reusable improve data efficiency because a system that already knows how to build representations relevant to a novel task (despite its novelty) doesn’t have to learn that task from scratch. Ideally, a system that efficiently exploits general-purpose, reusable representations in this way should be the very same system that learned how to construct them in the first place. Moreover, in learning to solve a novel task using such representations, we should expect the system to learn further representations that are themselves general-purpose and reusable. So, with the exception of the very first representations the system learns, all learning in such a system would in effect be transfer learning, and the process of learning would be inherently cumulative, continual, and lifelong. ",
74
+ "bbox": [
75
+ 174,
76
+ 603,
77
+ 825,
78
+ 729
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "One approach to building such a system is to take inspiration from the paradigm of classical, symbolic AI (Garnelo & Shanahan, 2019). Building on the mathematical foundations of first-order predicate calculus, a typical symbolic AI system works by applying logic-like rules of inference to language-like propositional representations whose elements are objects and relations. Thanks to their declarative character and compositional structure, these representations lend themselves naturally to generality and reusability. However, in contrast to contemporary deep learning systems, the representations deployed in classical AI are not usually learned from data but hand-crafted (Harnad, 1990). The aim of the present work is to get the best of both worlds with an end-to-end differentiable neural network architecture that builds in propositional, relational priors in much the same way that a convolutional network builds in spatial and locality priors. ",
85
+ "bbox": [
86
+ 174,
87
+ 734,
88
+ 825,
89
+ 875
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The architecture introduced here builds on recent work with non-local network architectures that learn to discover and exploit relational information (Wang et al., 2018), notably relation nets (Santoro et al., 2017; Palm et al., 2018) and architectures based on multi-head attention (Vaswani et al., 2017; ",
96
+ "bbox": [
97
+ 176,
98
+ 882,
99
+ 823,
100
+ 922
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/acbf1ed0a2269cd2c35fb54e2266d14587a8d10a61d982ab809a16e2964290bc.jpg",
107
+ "image_caption": [
108
+ "Figure 1: The PrediNet architecture. $W _ { K }$ and $W _ { S }$ are shared across heads, whereas $W _ { Q 1 }$ and $W _ { Q 2 }$ are local to each head. See main text for more details. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 179,
113
+ 103,
114
+ 818,
115
+ 301
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Santoro et al., 2018; Zambaldi et al., 2019). However, these architectures generate representations that lack explicit structure. There is, in general, no straightforward mapping from the parts of a representation to the usual elements of a symbolic medium such as predicate calculus: propositions, relations, and objects. To the extent that these elements are present, they are smeared across the embedding vector, which makes representations hard to interpret and makes it more difficult for downstream processing to take advantage of compositionality. ",
122
+ "bbox": [
123
+ 174,
124
+ 372,
125
+ 825,
126
+ 457
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "Here we present an architecture, which we call a PrediNet, that learns representations whose parts map directly onto propositions, relations, and objects. To build a sound, scientific understanding of the proposed architecture, and to facilitate a detailed comparison with other architectures, the present study focuses on simple tasks requiring relatively little data and computation. We develop a family of small, simple visual datasets that can be combined into a variety of multi-task curricula and used to assess the extent to which an architecture learns representations that are general-purpose and reusable. We report the results of a number of experiments using these datasets that demonstrate the potential of an explicitly relational network architecture to improve data efficiency and generalisation, to facilitate transfer, and to learn reusable representations. ",
133
+ "bbox": [
134
+ 174,
135
+ 463,
136
+ 825,
137
+ 589
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "The main contribution of the present paper is a novel architecture that learns to discover objects and relations in high-dimensional data, and to represent them in a form that is beneficial for downstream processing. The PrediNet architecture does not itself carry out logical inference, but rather extracts relational structure from raw data that has the potential to be exploited by subsequent processing. Here, for the purpose of evaluation, we graft a simple multi-layer perceptron output module to the PrediNet and train it on a simple set of spatial reasoning problems. The aim is to acquire a sufficient scientific understanding of the architecture and its properties in this minimalist setting before applying it to more complex problems using more sophisticated forms of downstream inference. ",
144
+ "bbox": [
145
+ 174,
146
+ 595,
147
+ 825,
148
+ 707
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 THE PREDINET ARCHITECTURE ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 734,
159
+ 472,
160
+ 751
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "The idea that propositions are the building blocks of knowledge dates back to the ancient Greeks, and provides the foundation for symbolic AI, via the $1 9 ^ { \\mathrm { t h } }$ century mathematical work of Boole and Frege (Russell & Norvig, 2009). An elementary proposition asserts that a relationship holds between a set of objects. Propositions can be combined using logical connectives (and, or, not, etc), and can participate in inference processes such as deduction. The task of the PrediNet is to (learn to) transform high-dimensional data such as images into propositional representations that are useful for downstream processing. A PrediNet module (Fig. 1) can be thought of as a pipeline comprising three stages: attention, binding, and evaluation. The attention stage selects pairs of objects of interest, the binding stage instantiates the first two arguments of a set of three-place predicates (relations) with selected object pairs, and the evaluation stage computes values for each predicate’s remaining (scalar) argument such that the resulting proposition is true. ",
167
+ "bbox": [
168
+ 174,
169
+ 770,
170
+ 825,
171
+ 924
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "More precisely, a PrediNet module comprises $k$ heads, each of which computes $j$ relations between pairs of objects (Fig. 1). The input to the PrediNet is a matrix, $L$ , comprising $n$ rows of feature vectors, where each feature vector has length $m$ . In the present work, $L$ is computed by a convolutional neural network (CNN). The CNN outputs a feature map consisting of $n$ feature vectors that tile the input image. The last two elements of the feature vector are the xy co-ordinates of the associated patch in the image. So the length $m$ of each feature vector corresponds to the number of filters in the final CNN layer plus 2 (for the co-ordinates), and the $i ^ { t h }$ element of a feature vector (for $i < m - 2 )$ is the output of the $i ^ { t h }$ filter. For a given input $L$ , each head $h$ computes the same set of relations (using shared weights $W _ { S }$ ) but selects a different pair of objects, using dot-product attention based on key-query matching (Vaswani et al., 2017). Each head computes a separate pair of queries $Q _ { 1 } ^ { h }$ and $Q _ { 2 } ^ { h }$ (via $\\dot { W } _ { Q 1 } ^ { \\dot { h } }$ and $W _ { . Q 2 } ^ { \\tilde { h } } .$ ). But the key space $K$ (defined by $W _ { K }$ ) is shared, so that the set of entities that are candidates for attention is consistent across heads. The whole (flattened) image is used to generate queries, allowing attention masks to depend on the image’s full (non-local) content. ",
178
+ "bbox": [
179
+ 173,
180
+ 103,
181
+ 826,
182
+ 285
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "equation",
188
+ "img_path": "images/56549e8712201c948621c1e56a189893b2a72a87637e1dad60349af6ed890f40.jpg",
189
+ "text": "$$\nQ _ { 1 } ^ { h } = \\mathrm { H a t t e n } ( L ) W _ { Q 1 } ^ { h } ~ . Q _ { 2 } ^ { h } = \\mathrm { H a t t e n } ( L ) W _ { Q 2 } ^ { h } ~ K = L W _ { K }\n$$",
190
+ "text_format": "latex",
191
+ "bbox": [
192
+ 243,
193
+ 290,
194
+ 754,
195
+ 311
196
+ ],
197
+ "page_idx": 2
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "Applying the resulting pair of attention masks directly to $L$ yields a pair of objects $E _ { 1 } ^ { h }$ and $E _ { 2 } ^ { h }$ , each represented by a weighted sum of feature vectors. ",
202
+ "bbox": [
203
+ 171,
204
+ 318,
205
+ 823,
206
+ 347
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "equation",
212
+ "img_path": "images/b96b0a9f7c9887d6ceb15facac9114b94a089079d60f0fb6b0aeac13d7b8ecd3.jpg",
213
+ "text": "$$\nE _ { 1 } ^ { h } = \\mathrm { s o f t m a x } ( Q _ { 1 } ^ { h } K ^ { \\top } ) L \\qquad E _ { 2 } ^ { h } = \\mathrm { s o f t m a x } ( Q _ { 2 } ^ { h } K ^ { \\top } ) L\n$$",
214
+ "text_format": "latex",
215
+ "bbox": [
216
+ 276,
217
+ 353,
218
+ 722,
219
+ 372
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "All $j$ relations between $E _ { 1 } ^ { h }$ and $E _ { 2 } ^ { h }$ are then evaluated. There are many ways to compute a relationship between a pair of objects represented as feature vectors. We chose to compute the values of relations by taking vector differences, which has been shown to be effective in the context of relationally structured knowledge bases (Bordes et al., 2011; Socher et al., 2013). In the current architecture, $E _ { 1 } ^ { \\tilde { h } }$ and $E _ { 2 } ^ { h }$ are subject to a linear mapping (via $W _ { S }$ ) into $j$ 1D spaces, one per relation, and the resulting vector is passed through an element-wise comparator, yielding a vector of differences $D ^ { h }$ . ",
226
+ "bbox": [
227
+ 174,
228
+ 380,
229
+ 825,
230
+ 465
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "equation",
236
+ "img_path": "images/ad7c86d0df5bed2ba764e0bd1b85b71b9fac5be20365091f84b584ed26166904.jpg",
237
+ "text": "$$\nD ^ { h } = E _ { 1 } ^ { h } W _ { S } - E _ { 2 } ^ { h } W _ { S }\n$$",
238
+ "text_format": "latex",
239
+ "bbox": [
240
+ 418,
241
+ 470,
242
+ 578,
243
+ 489
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "The last two elements of $E _ { 1 } ^ { h }$ and $E _ { 2 } ^ { h }$ (the positions $P _ { 1 } ^ { h }$ and $P _ { 2 } ^ { h }$ , respectively) are concatenated to the vector 1 2 1 of differences to give the head’s output $R ^ { h } = \\mathsf { \\bar { ( } } D ^ { h } , \\mathsf { \\bar { P } } _ { 1 } ^ { h } , P _ { 2 } ^ { h } )$ . Finally, the outputs of all $k$ heads are concatenated, yielding the output of the PrediNet module, a vector $R ^ { * }$ of length $k ( j + 4 )$ . In predicate calculus terms, the final output of a PrediNet module with $k$ heads and $j$ relations represents the conjunction of elementary propositions ",
250
+ "bbox": [
251
+ 173,
252
+ 497,
253
+ 825,
254
+ 569
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "equation",
260
+ "img_path": "images/614f465df7fc3162f31f92e9b33442d71efab108df6411584f05151172502ceb.jpg",
261
+ "text": "$$\n\\Psi \\equiv \\bigwedge _ { h = 1 } ^ { k } \\bigwedge _ { i = 1 } ^ { j } \\psi _ { i } ( d _ { i } ^ { h } , e _ { 1 } ^ { h } , e _ { 2 } ^ { h } )\n$$",
262
+ "text_format": "latex",
263
+ "bbox": [
264
+ 408,
265
+ 575,
266
+ 589,
267
+ 619
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "where $\\psi _ { i } ( d _ { i } ^ { h } , e _ { 1 } ^ { h } , e _ { 2 } ^ { h } )$ asserts that $d _ { i } ^ { h }$ is the distance between objects $e _ { 1 } ^ { h }$ and $e _ { 2 } ^ { h }$ in the 1D space defined by column $i$ of the weight matrix $W _ { S }$ , and the denotations of $e _ { 1 } ^ { h }$ and $e _ { 2 } ^ { h }$ are captured by the vectors $\\dot { Q } _ { 1 } ^ { h }$ and $Q _ { 2 } ^ { h }$ respectively, given the key-space defined by $K$ . ",
274
+ "bbox": [
275
+ 174,
276
+ 625,
277
+ 825,
278
+ 670
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "Equation 1 supplies a semantics for the PrediNet’s final output vector $R ^ { * }$ that maps each of its elements onto a well-defined logical formula, something that cannot be claimed for other architectures, such as the relation net or multi-head attention net. In the experiments reported here, only $R ^ { * }$ is used for downstream processing, and this vector by itself doesn’t have the logical structure described by Equation 1. However, the PrediNet module can easily be extended to deliver an additional output in explicitly propositional form, with a predicate-argument structure corresponding to the RHS of Equation 1. In the present paper, the pared-down vector form facilitates our experimental investigation, but in its explicitly propositional form, the PrediNet’s output could be piped directly to (say) a Prolog interpreter (Fig.7), to an inductive logic programming system, to a statistical relational learning system, or indeed to another differentiable neural module. ",
285
+ "bbox": [
286
+ 173,
287
+ 676,
288
+ 825,
289
+ 815
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "3 DATASETS AND TASKS ",
296
+ "text_level": 1,
297
+ "bbox": [
298
+ 176,
299
+ 835,
300
+ 393,
301
+ 852
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "It would be premature to apply the PrediNet architecture to rich, complex data before we have a basic understanding of its properties and its behaviour. To facilitate in-depth scientific study, we need small, simple datasets that allow the operation of the architecture to be examined in detail and the fundamental premises of its design to be assessed. Our experimental goals in the present paper are 1) ",
308
+ "bbox": [
309
+ 174,
310
+ 867,
311
+ 825,
312
+ 924
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "to test the hypothesis that the PrediNet architecture learns representations that are general-purpose and reusable, and 2) insofar as this is true, to investigate why. Existing datasets for relational reasoning tasks, such as CLEVR (Johnson et al. (2017)) and sort-of-CLEVR (Santoro et al. (2017)), were ruled out because they include confounding complexities, such as occlusion and shadows or language input, and/or because they don’t lend themselves to the fine-grained task-level splits we required. Consequently, we devised a new configurable family of simple classification tasks that we collectively call the Relations Game. ",
319
+ "bbox": [
320
+ 174,
321
+ 103,
322
+ 825,
323
+ 200
324
+ ],
325
+ "page_idx": 3
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "A Relations Game task involves the presentation of an image containing a number of objects laid out on a $3 \\times 3$ grid, and the aim (in most tasks) is to label the image as True or False according to whether a given relationship holds among the objects in the image. While the elementary propositions learned by the PrediNet only assert simple relationships between pairs of entities, Relations Game tasks generally involve learning compound relations involving multiple relationships among many objects. The objects in question are drawn from either a training set or one of two held-out sets (Fig. 2a). None of the shapes or colours in the training set occurs in either of the held-out sets. The training object set contains 8 uniformly coloured pentominoes and their rotations and reflections (37 shapes in all) with 25 possible colours. The first held-out object set contains 8 uniformly coloured hexominoes and their rotations and reflections (46 shapes in all) with 25 possible colours, and the second held-out object set contains only squares, but with a striped pattern of held-out colours. ",
330
+ "bbox": [
331
+ 174,
332
+ 208,
333
+ 825,
334
+ 361
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "Each Relations Game task is tied to a given relation. Even with such a simple setup, the number of definable relations among all possible combinations of objects is astronomical $( 2 ^ { ( n + 1 ) ^ { 9 } }$ for $n$ distinct objects), although only a few of them will make intuitive sense. For the present study, we defined a handful of intuitively meaningful relations and generated corresponding labelled datasets comprising $50 \\%$ positive and $50 \\%$ negative examples. A selection is shown in Fig. 2c. The ‘between’ relation holds iff the image contains three objects in a line in which the outer two objects have the same shape, orientation, and colour. The ‘occurs’ relation holds iff there is an object in the bottom row of three objects that has the same shape, orientation, and colour as the (single) object in the top row. The ‘same’ relation holds iff the image contains two objects of the same shape, orientation, and colour. In each case, we balanced the set of negative examples to ensure that “tricky” images involving pairs of objects with the same colour but different shape or the same shape but different colour occur just as frequently as those with objects that differ in both colour and shape. ",
341
+ "bbox": [
342
+ 174,
343
+ 367,
344
+ 825,
345
+ 537
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "4 EXPERIMENTAL SETUP ",
352
+ "text_level": 1,
353
+ "bbox": [
354
+ 176,
355
+ 571,
356
+ 395,
357
+ 587
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "At the top level, each architecture we consider in this paper comprises 1) a single convolutional input layer (CNN), 2) a central module (which might be a PrediNet or a baseline), and 3) a small output multi-layer perceptron (MLP) (Fig. 3). A pair of xy co-ordinates is appended to each CNN feature vector, denoting its position in convolved image space and, where applicable, a one-hot task identifier is appended to the output of the central module. For most tasks, the final output of the MLP is a one-hot label denoting True or False. The PrediNet was evaluated by comparing it to several baselines: two MLP baselines (MLP1 and MLP2), a relation net baseline (Santoro et al., 2017) (RN), and a multi-head attention baseline (Vaswani et al., 2017; Zambaldi et al., 2019) (MHA). ",
364
+ "bbox": [
365
+ 174,
366
+ 611,
367
+ 825,
368
+ 723
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "To facilitate a fair comparison, the top-level schematic is identical for the PrediNet and for all baselines (Fig. 3). All use the same input CNN architecture and the same output MLP architecture, and differ only in the central module. In MLP1, the central module is a single fully-connected layer with ReLu activations, while in MLP2 it has two layers. In RN, the central module computes the set of all possible pairs of feature vectors, each of which is passed through a 2-layer MLP; the resulting vectors are then aggregated by taking their element-wise means to yield the output vector. Finally, MHA comprises multiple heads, each of which generates mappings from the input feature vectors to sets of keys $K$ , queries $Q$ , and values $V$ , and then computes softmax $( Q K ^ { \\top } ) V$ . Each head’s output is a weighted sum of the resulting vectors, and the output of the MHA central module is the concatenation of all its heads’ outputs. The PrediNet used here comprises $k = 3 2$ heads and $j = 1 6$ relations (Fig. 1). All reported experiments were carried out using stochastic gradient descent, and all results shown are averages over 10 runs. Further experimental details are given in the Supplementary Material, which also shows results for experiments with different numbers of heads and relations, and with the Adam optimiser, all of which present qualitatively similar results. ",
375
+ "bbox": [
376
+ 174,
377
+ 729,
378
+ 825,
379
+ 924
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "image",
385
+ "img_path": "images/59609ae11a5a459a6bb196384a08bfaf14aedced1451207bee625c15ba01e038.jpg",
386
+ "image_caption": [
387
+ "Figure 2: Relations Game object sets and tasks. (a) Example objects from the training set and held-out test sets. (b) There are five possible row / column patterns. In a multi-task setting, recognising each row pattern is a separate task. (c) Three examples tasks for the single-task setting. (d) An example target task (left) and curriculum (right) for the multi-task setting. The curriculum task ids (right) for each of the three examples (2, 4, and 3) correspond to the respective patterns in (b), and the task in each case is to confirm whether or not the column of objects in the image conform to the designated pattern. The aim of the target task (left) is to test whether the two rows of objects have the same pattern according to (b). "
388
+ ],
389
+ "image_footnote": [],
390
+ "bbox": [
391
+ 186,
392
+ 136,
393
+ 807,
394
+ 440
395
+ ],
396
+ "page_idx": 4
397
+ },
398
+ {
399
+ "type": "image",
400
+ "img_path": "images/ffea528f48079ce872fba2a4f868b06f50790719756f06c415acd4ebffcd0851.jpg",
401
+ "image_caption": [
402
+ "Figure 3: The four-stage experimental protocol for multi-task curriculum training. The same input module (CNN) and output module (MLP) are used for the PrediNet and all baseline architectures; only the central module varies. Task identifiers are appended to the central module’s output vector. "
403
+ ],
404
+ "image_footnote": [],
405
+ "bbox": [
406
+ 184,
407
+ 643,
408
+ 815,
409
+ 830
410
+ ],
411
+ "page_idx": 4
412
+ },
413
+ {
414
+ "type": "table",
415
+ "img_path": "images/cfa576edac8ed0dfeac7ea374936968738b7eed5488d82de7dbc02d2bec605cc.jpg",
416
+ "table_caption": [
417
+ "Table 1: Data efficiency in a single-task Relations Game setting. "
418
+ ],
419
+ "table_footnote": [],
420
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Relation</td><td rowspan=1 colspan=1> Object set</td><td rowspan=1 colspan=1>MLP1</td><td rowspan=1 colspan=1>MLP2</td><td rowspan=1 colspan=1>RN</td><td rowspan=1 colspan=1>MHA</td><td rowspan=1 colspan=1>PrediNet</td></tr><tr><td rowspan=2 colspan=1>same</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>96.1±0.007</td><td rowspan=1 colspan=1>96.4±0.006</td><td rowspan=1 colspan=1>73.2±0.05</td><td rowspan=1 colspan=1>94.7±0.1</td><td rowspan=1 colspan=1>100±0.0</td></tr><tr><td rowspan=1 colspan=1>Stripes</td><td rowspan=1 colspan=1>93.3±0.01</td><td rowspan=1 colspan=1>94.0±0.01</td><td rowspan=1 colspan=1>72.9±0.05</td><td rowspan=1 colspan=1>93.7±0.1</td><td rowspan=1 colspan=1>100±0.0</td></tr><tr><td rowspan=2 colspan=1>between</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>98.7±0.005</td><td rowspan=1 colspan=1>98.8±0.004</td><td rowspan=1 colspan=1>70.8±0.01</td><td rowspan=1 colspan=1>89.2±0.1</td><td rowspan=1 colspan=1>99.2±0.004</td></tr><tr><td rowspan=1 colspan=1>Stripes</td><td rowspan=1 colspan=1>96.9±0.008</td><td rowspan=1 colspan=1>97.3±0.004</td><td rowspan=1 colspan=1>65.2±0.05</td><td rowspan=1 colspan=1>85.5±0.1</td><td rowspan=1 colspan=1>98.7±0.007</td></tr><tr><td rowspan=2 colspan=1>occurs</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>88.0±0.01</td><td rowspan=1 colspan=1>94.8±0.03</td><td rowspan=1 colspan=1>61.6±0.01</td><td rowspan=1 colspan=1>88.4±0.2</td><td rowspan=1 colspan=1>98.5±0.009</td></tr><tr><td rowspan=1 colspan=1>Stripes</td><td rowspan=1 colspan=1>73.2±0.03</td><td rowspan=1 colspan=1>87.3±0.07</td><td rowspan=1 colspan=1>62.6±0.02</td><td rowspan=1 colspan=1>80.8±0.1</td><td rowspan=1 colspan=1>96.9±0.01</td></tr><tr><td rowspan=2 colspan=1>xoccurs</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>81.5±0.02</td><td rowspan=1 colspan=1>84.4±0.04</td><td rowspan=1 colspan=1>55.0±0.009</td><td rowspan=1 colspan=1>54.7±0.008</td><td rowspan=1 colspan=1>95.4±0.01</td></tr><tr><td rowspan=1 colspan=1>Stripes</td><td rowspan=1 colspan=1>78.2±0.03</td><td rowspan=1 colspan=1>80.8±0.05</td><td rowspan=1 colspan=1>54.0±0.01</td><td rowspan=1 colspan=1>53.6±0.007</td><td rowspan=1 colspan=1>95.5±0.01</td></tr><tr><td rowspan=1 colspan=1>colour/shape</td><td rowspan=1 colspan=1>Hexominoes</td><td rowspan=1 colspan=1>53.4±0.07</td><td rowspan=1 colspan=1>55.8±0.05</td><td rowspan=1 colspan=1>45.1±0.05</td><td rowspan=1 colspan=1>88.6±0.03</td><td rowspan=1 colspan=1>94.3±0.01</td></tr></table>",
421
+ "bbox": [
422
+ 240,
423
+ 130,
424
+ 756,
425
+ 324
426
+ ],
427
+ "page_idx": 5
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "To assess the generality and reusability of the representations produced by the PrediNet, we adopted a four-stage experimental protocol wherein 1) the network is pre-trained on a curriculum of one or more tasks, 2) the weights in the input CNN and PrediNet are frozen while the weights in the output MLP are re-initialised with random values, and 3) the network is retrained on a new target task or set of tasks (Fig. 3). In step 3, only the weights in the output MLP change, so the target task can only be learned to the extent that the PrediNet delivers re-usable representations to it, representations the PrediNet has learned to produce without exposure to the target task. To assess this, we can compare the learning curves for the target task with and without pre-training. We expect pre-training to improve data efficiency, so we should see accuracy increasing more quickly with pre-training than without it. For evidence of transfer, and to confirm the hypothesis of reusability, we are also interested in the final performance on the target task after pre-training, given that the weights of the pre-trained input CNN and PrediNet are frozen. This measure indicates how well a network has learned to form useful representations. The more different the target task is from the pre-training curriculum, the more impressed we should be that the network is able to learn the target task. ",
432
+ "bbox": [
433
+ 173,
434
+ 351,
435
+ 825,
436
+ 546
437
+ ],
438
+ "page_idx": 5
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "5 RESULTS ",
443
+ "text_level": 1,
444
+ "bbox": [
445
+ 174,
446
+ 565,
447
+ 281,
448
+ 582
449
+ ],
450
+ "page_idx": 5
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "As a prelude to investigating the issues of generality and reusabilty, we studied the data efficiency of the PrediNet architecture in a single-task Relations Game setting. Results obtained on a selection of five tasks – ‘same’, ‘between’, ‘occurs’, ‘xoccurs’, and ‘colour / shape’ – are summarised in Table 1. The first three tasks are as described in Fig. 2. The ‘xoccurs’ relation is similar to occurs. It holds iff the object in the top row occurs in the bottom row and the other two objects in the bottom row are different. The ‘colour / shape’ task involves four labels, rather than the usual two: same-shape / same-colour; different-colour / same-shape; same-colour / different shape; different-colour / different shape. In the dataset for this task, each image contains two objects randomly placed, and one of the four labels must be assigned appropriately. Table 1 shows the accuracy obtained by each of the five architectures after 100,000 batches when tested on the two held-out object sets. The PrediNet is the only architecture that achieves over $90 \\%$ accuracy on all tasks with both held-out object sets after 100,000 batches. On the ‘xoccurs’ task, the PrediNet out-performs the baselines by more than $10 \\%$ , and on the ‘colour / shape’ task (where chance is $2 5 \\%$ ), it out-performs all the baselines except MHA by $2 5 \\%$ or more. ",
455
+ "bbox": [
456
+ 174,
457
+ 597,
458
+ 826,
459
+ 791
460
+ ],
461
+ "page_idx": 5
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "Next, using the protocol outlined in Fig. 3, we compared the PrediNet’s ability to learn re-usable representations with each of the baselines. We looked at a number of combinations of target tasks and pre-training curriculum tasks. Fig. 4 depicts our findings for one these combinations in detail, specifically three target tasks corresponding to three of the five possible column patterns (ABA, AAB, and ABB (Fig. 2d)), and a pre-training curriculum comprising the single ‘between’ task. The plots present learning curves for each of the five architectures at each of the four stages of the experimental protocol. In all cases, accuracy is shown for the ‘stripes’ held-out object set (not the training set). Of particular interest are the (green) curves corresponding to Stage 3 of the experimental protocol. These show how well each architecture learns the target task(s) after the central module has been pre-trained on the curriculum task(s) and its weights are frozen. The PrediNet learns faster than any of the baselines, and is the only one to achieve an accuracy of $90 \\%$ . The rapid reusability of the representations learned by both the MHA baseline and the PrediNet is noteworthy because the ‘between’ relation by itself seems an unpromising curriculum for subsequently learning the AAB and ABB column patterns. As the (red) curve for Stage 4 of the protocol shows, the reusability of the PrediNet’s representations cannot be accounted for by the pre-training of the input CNN alone. ",
466
+ "bbox": [
467
+ 174,
468
+ 797,
469
+ 825,
470
+ 924
471
+ ],
472
+ "page_idx": 5
473
+ },
474
+ {
475
+ "type": "image",
476
+ "img_path": "images/2860e394458188b798724c270b033684451f5caaf920cc0a6a6e33ddc565e987.jpg",
477
+ "image_caption": [
478
+ "Figure 4: Multi-task curriculum training. The target tasks are three column patterns (AAB, ABA, and ABB) and the sole curriculum task is the ‘between’ relation. "
479
+ ],
480
+ "image_footnote": [],
481
+ "bbox": [
482
+ 207,
483
+ 101,
484
+ 790,
485
+ 324
486
+ ],
487
+ "page_idx": 6
488
+ },
489
+ {
490
+ "type": "image",
491
+ "img_path": "images/f5423c49fb9436252568f8442c7594e6212ab5715afe91d508fa2b743ef6177b.jpg",
492
+ "image_caption": [
493
+ "Figure 5: Reusability of representations learned with a variety of target and pre-training tasks. "
494
+ ],
495
+ "image_footnote": [],
496
+ "bbox": [
497
+ 207,
498
+ 383,
499
+ 790,
500
+ 609
501
+ ],
502
+ "page_idx": 6
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "",
507
+ "bbox": [
508
+ 173,
509
+ 666,
510
+ 825,
511
+ 750
512
+ ],
513
+ "page_idx": 6
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "Fig. 5 shows a larger range of target task / curriculum task combinations, concentrating exclusively on the Stage 3 learning curves. Here a more complete picture emerges. In both Fig. 5a and Fig. 5d the target task is ‘match rows’ (Fig. 2d), but they differ in their pre-training curricula. The curriculum for Fig. 5d is three of the five row patterns (ABA, AAB, and ABB). This is the only case where the PrediNet does not learn representations that are more useful for the target task than those of all the baselines, outperforming only two of the four. However, when the curriculum is the three analogous column patterns rather than row patterns, the performance of all four baselines collapses to chance, while the PrediNet does well, attaining similar performance as for the row-based curriculum (Fig. 5a). This suggests the PrediNet is able to learn representations that are orientation invariant, which aids transfer. This hypothesis is supported by Fig. 5e, where the target tasks are all five row patterns, while the curriculum is all five column patterns. None of the baselines is able to learn reusable representations in this context; all remain at chance, whereas the PrediNet achieves $8 5 \\%$ accuracy. ",
518
+ "bbox": [
519
+ 173,
520
+ 757,
521
+ 825,
522
+ 922
523
+ ],
524
+ "page_idx": 6
525
+ },
526
+ {
527
+ "type": "image",
528
+ "img_path": "images/6a174e4b0e286837ad4ddd2f7eb1246a74bd089edcd7a1df6f13caf5fbbed88f.jpg",
529
+ "image_caption": [
530
+ "Figure 6: (a) Attention heat maps for the first four heads of a trained PrediNet. Left: trained on the ‘same’ task. Right: trained on the ‘occurs’ task. (b) Principal component analysis. Left: PCA on the output of a selected head for a PrediNet trained on the ‘colour / shape’ task for pentominoes images (training set). Centre: The same PrediNet applied to hexominoes (held-out test set). Right: PCA applied to a representative head of the MHA baseline with pentominoes (training set). (c) Ablation study. Accuracy for PrediNet and MHA on the ‘colour / shape’ task when random subsets of the heads are used at test time. PrediNet\\* only samples from heads that attend to the two objects. "
531
+ ],
532
+ "image_footnote": [],
533
+ "bbox": [
534
+ 176,
535
+ 99,
536
+ 820,
537
+ 324
538
+ ],
539
+ "page_idx": 7
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "To better understand the operation of the PrediNet, we carried out a number of visualisations. One way to find out what the PrediNet’s heads learn to attend is to submit images to a trained network and, for each head $h$ , apply the two attention masks softmax $( Q _ { 1 } ^ { h } K ^ { \\top } )$ and softmax $( Q _ { 2 } ^ { h } K ^ { \\top } )$ to each of the $n$ feature vectors in the convolved image $L$ . The resulting matrix can then be plotted as a heat map to show how attention is distrubuted over the image. We did this for a number of networks trained in the single-task setting. Fig. 6a shows two examples, and the Supplementary Material contains a more extensive selection. As we might expect, most of the attention focuses on the centres of single objects, and many of the heads pick out pairs of distinct objects in various combinations. But some heads attend to halves or corners of objects. Although most attention is focal, whether directed at object centres or object parts, some heads exhibit diffuse attention, which is possible thanks to the soft key-query matching mechanism. So the PrediNet can (but isn’t forced to) treat the background as a single entity, or to treat an identical pair of objects as a single entity. ",
544
+ "bbox": [
545
+ 174,
546
+ 465,
547
+ 825,
548
+ 632
549
+ ],
550
+ "page_idx": 7
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "To gain some insight into how the PrediNet encodes relations, we carried out principal component analysis (PCA) on each head of the central module’s output vectors for a number of trained networks, again in the single-task setting (Fig. 6b). We chose the four-label ‘colour / shape’ task to train on, and mapped 10,000 example images onto the first two principal components, colouring each with their ground-truth label. We found that, for some heads, differences in colour and shape appear to align along separate axes (Fig. 6b). This contrasts with the MHA baseline, whose heads don’t seem to individually cluster the labels in a meaningful way. For the other baselines, which lack the multi-head organisation of the PrediNet and the MHA network, the only option is to carry out PCA on the whole output vector of the central module. Doing this, however, does not produce interpretable results for any of the architectures (Fig.S8). We also identified the heads in the PrediNet that attended to both objects in the image and found that they overlapped almost entirely with those that meaningfully clustered the labels (Fig.S10). Finally, still using the ‘shape / colour task’, we carried out an ablation study, which showed that the PrediNet is significantly more robust than the MHA network to pruning a random subset of heads at test time. Moreover, if pruned to leave only those heads that attended to the two objects, the performance of the full network could be captured with just a handful of heads (Fig. 6c). Taken together, these results are suggestive of something we might term relational disentangling in the PrediNet. ",
555
+ "bbox": [
556
+ 174,
557
+ 638,
558
+ 825,
559
+ 875
560
+ ],
561
+ "page_idx": 7
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "Finally, to flesh out the claim that the PrediNet generates explicitly relational representations according to the semantics of Equation 1, we extended the PrediNet module to generate an additional output in the form of a Prolog program (Fig. 7). This involves assigning symbolic identifiers 1) to each of the ",
566
+ "bbox": [
567
+ 176,
568
+ 882,
569
+ 823,
570
+ 924
571
+ ],
572
+ "page_idx": 7
573
+ },
574
+ {
575
+ "type": "image",
576
+ "img_path": "images/04ed67fab717de2f37c9700c1e7f0782803b63aa4fa13ad6a31a8d6925e2f7c2.jpg",
577
+ "image_caption": [
578
+ "Figure 7: PrediNet output in propositional form. (a) A small PrediNet (8 heads, 8 relations) trained on the ‘between’ task is given an image. (b) Mean shift clustering is applied to the set of all attention masks computed by the heads. Each of the resulting 6 clusters is assigned a symbolic identifier. (c) Each relation is also given a symbolic identifier, and all 64 propositions computed by the PrediNet are enumerated in Prolog syntax, in accordance with Equation 1. (A subset is shown.) (d) The results can be combined with further hand-written Prolog clauses. (Upper-case letters denote variables, while constants start with lower-case letters.) (e) Prolog queries can then be submitted. Here we are asking which relations $r$ hold with a small value $v$ between ob_2 and any other object $x$ . (f) The query yields four answers. "
579
+ ],
580
+ "image_footnote": [],
581
+ "bbox": [
582
+ 179,
583
+ 99,
584
+ 820,
585
+ 366
586
+ ],
587
+ "page_idx": 8
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "PrediNet’s $j$ relations, and 2) to every object picked out by its $k$ heads via the attention masks they compute. Then the corresponding $j \\times k$ propositions can be enumerated in Prolog syntax. Assigning symbolic identifiers to the relations is trivial. But because attention masks can differ slightly even when they ostensibly pick out the same region of the input image, it’s necessary to cluster them before assigning symbolic identifiers to the corresponding objects. We used mean shift clustering for this. Fig. 7 presents a sample of the PrediNet’s output in Prolog form, along with an example of deductive inference carried out with this program. The example shown is not intended to be especially meaningful; without further analysis, we lack any intuitive understanding of the relations the PrediNet has discovered. But it demonstrates that the representations the PrediNet produces can be understood in predicate calculus terms, and that symbolic deductive inference is one way (though not the only way) in which they might be deployed downstream. ",
592
+ "bbox": [
593
+ 174,
594
+ 531,
595
+ 825,
596
+ 685
597
+ ],
598
+ "page_idx": 8
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "6 RELATED WORK ",
603
+ "text_level": 1,
604
+ "bbox": [
605
+ 176,
606
+ 709,
607
+ 344,
608
+ 726
609
+ ],
610
+ "page_idx": 8
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "The need for good representations has long been recognised in AI (McCarthy, 1987; Russell & Norvig, 2009), and is fundamental to deep learning (Bengio et al., 2013). The importance of reusability and abstraction, especially in the context of transfer, is emphasised by Bengio, et al. (Bengio et al., 2013), who argue for feature sets that are “invariant to the irrelevant features and disentangle the relevant features”. Our work here shares this motivation. Other work has looked at learning representations that are disentangled at the feature level (Higgins et al., 2017a; 2018). The novelty of the PrediNet is to incorporate architectural priors that favour representations that are disentangled at the relational and propositional levels. Previous work with relation nets and multi-head attention nets has shown how non-local information can be extracted from raw pixel data and used to solve tasks that require relational reasoning. (Santoro et al., 2017; Palm et al., 2018; Santoro et al., 2018; Zambaldi et al., 2019) But unlike the PrediNet, these networks don’t produce representations with an explicitly relational, propositional structure. By addressing the problem of acquiring structured representations, the PrediNet complements another thread of related work, which is concerned with learning how to carry out inference with structured representations, but which assumes the job of acquiring those representations is done elsewhere (Getoor & Taskar, 2007; Battaglia et al., 2016; Rocktäschel & Riedel, 2017; Evans & Grefenstette, 2018; Dong et al., 2019). ",
615
+ "bbox": [
616
+ 174,
617
+ 743,
618
+ 825,
619
+ 922
620
+ ],
621
+ "page_idx": 8
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "",
626
+ "bbox": [
627
+ 176,
628
+ 103,
629
+ 823,
630
+ 146
631
+ ],
632
+ "page_idx": 9
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "In part, the present work is motivated by the conviction that curricula will be essential to lifelong, continual learning in a future generation of RL agents if they are to exhibit more general intelligence, just as they are for human children. Curricular pre-training has a decade-long pedigree in deep learning (Bengio et al., 2009). Closely related to curriculum learning is the topic of transfer (Bengio, 2012), a hallmark of general intelligence and the subject of much recent attention (Higgins et al., 2017b; Kansky et al., 2017; Schwarz et al., 2018). The PrediNet exemplifies a different (though not incompatible) viewpoint on curriculum learning and transfer from that usually found in the neural network literature. Rather than (or as well as) a means to guide the network, step by step, into a favourable portion of weight space, curriculum learning is here viewed in terms of the incremental accumulation of propositional knowledge. This necessitates the development of a different style of architecture, one that supports the acquisition of propositional, relational representations, which also naturally subserve transfer. ",
637
+ "bbox": [
638
+ 174,
639
+ 154,
640
+ 825,
641
+ 319
642
+ ],
643
+ "page_idx": 9
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "Asai, whose paper was published while the present work was in progress, describes an architecture with some similarities to the PrediNet, but also some notable differences (Asai, 2019). For example, Asai’s architecture assumes an input representation in symbolic form where the objects have already been segmented. By contrast, in the present architecture, the input CNN and the PrediNet’s dotproduct attention mechanism together learn what constitutes an object. ",
648
+ "bbox": [
649
+ 174,
650
+ 327,
651
+ 825,
652
+ 396
653
+ ],
654
+ "page_idx": 9
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "7 CONCLUSION AND FURTHER WORK ",
659
+ "text_level": 1,
660
+ "bbox": [
661
+ 174,
662
+ 424,
663
+ 504,
664
+ 439
665
+ ],
666
+ "page_idx": 9
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "We have presented a neural network architecture capable, in principle, of supporting predicate logic’s powers of abstraction without compromising the ideal of end-to-end learning, where the network itself discovers objects and relations in the raw data and thus avoids the symbol grounding problem entailed by symbolic AI’s practice of hand-crafting representations (Harnad, 1990). Our empirical results support the view that a network architecturally constrained to learn explicitly propositional, relational representations will have beneficial data efficiency, generalisation, and transfer properties. Although, the present experiments don’t use the fully propositional version of the PrediNet output, the concatenated vector form inherits many of its beneficial properties, notably a degree of compositionality. In particular, one important respect in which the PrediNet differs from other network architectures is the extent to which it canalises information flow; at the core of the network, information is organised into small chunks which are processed in parallel channels that limit the ways the chunks can interact. We believe this pressures the network to learn representations where each separate chunk of information (such as a single value in the vector $R *$ ) has independent meaning and utility. (We see evidence of this in the relational disentanglement of Fig. 6.) The result is a representation whose component parts are amenable to recombination, and therefore re-use in a novel task. But the findings reported here are just the first foray into unexplored architectural territory, and much work needs to be done to gauge the architecture’s full potential. ",
671
+ "bbox": [
672
+ 174,
673
+ 459,
674
+ 825,
675
+ 695
676
+ ],
677
+ "page_idx": 9
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "The focus of the present paper is the acquisition of propositional representations rather than their use. But thanks to the structural priors of its architecture, representations generated by a PrediNet module have a natural semantics compatible with predicate calculus (Equation 1), which makes them an ideal medium for logic-like downstream processes such as rule-based deduction, causal or counterfactual reasoning, and inference to the best explanation (abduction). One approach here would be to stack PrediNet modules and / or make them recurrent, enabling them to carry out the sort of iterated, sequential computations required for such processes (Palm et al., 2018; Dehghani et al., 2019). Another worthwhile direction for further research would be to develop reinforcement learning (RL) agents using the PrediNet architecture. One form of inference of particular interest in this context is model-based prediction, which can be used to endow an RL agent with look-ahead and planning abilities (Racanière et al., 2017; Zambaldi et al., 2019). Our expectation is that RL agents in which explicitly propositional, relational representations underpin these capacities will manifest more of the beneficial data efficiency, generalisation, and transfer properties suggested by the present results. As a stepping stone to such RL agents, the Relations Game family of datasets could be extended into the temporal domain, and multi-task curricula developed to encourage the acquisition of temporal, as well as spatial, abstractions. ",
682
+ "bbox": [
683
+ 174,
684
+ 703,
685
+ 825,
686
+ 922
687
+ ],
688
+ "page_idx": 9
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "REFERENCES ",
693
+ "text_level": 1,
694
+ "bbox": [
695
+ 176,
696
+ 102,
697
+ 287,
698
+ 118
699
+ ],
700
+ "page_idx": 10
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "Masataro Asai. Unsupervised grounding of plannable first-order logic representation from images. In International Conference on Automated Planning and Scheduling, 2019. ",
705
+ "bbox": [
706
+ 171,
707
+ 126,
708
+ 823,
709
+ 156
710
+ ],
711
+ "page_idx": 10
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "Peter W. Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, and Koray Kavukcuoglu. Interaction networks for learning about objects, relations and physics. In Advances in Neural Information Processing Systems, pp. 4502–4510, 2016. ",
716
+ "bbox": [
717
+ 173,
718
+ 166,
719
+ 823,
720
+ 209
721
+ ],
722
+ "page_idx": 10
723
+ },
724
+ {
725
+ "type": "text",
726
+ "text": "Yoshua Bengio. Deep learning of representations for unsupervised and transfer learning. In Proc. ICML Workshop on Unsupervised and Transfer Learning, volume 27, pp. 17–37, 2012. ",
727
+ "bbox": [
728
+ 173,
729
+ 220,
730
+ 825,
731
+ 250
732
+ ],
733
+ "page_idx": 10
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proc. 26th International Conference on Machine Learning, pp. 41–48, 2009. ",
738
+ "bbox": [
739
+ 174,
740
+ 261,
741
+ 825,
742
+ 291
743
+ ],
744
+ "page_idx": 10
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798–1828, 2013. ",
749
+ "bbox": [
750
+ 176,
751
+ 301,
752
+ 823,
753
+ 343
754
+ ],
755
+ "page_idx": 10
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Antoine Bordes, Jason Weston, Ronan Collobert, and Yoshua Bengio. Learning structured embeddings of knowledge bases. In Proc. AAAI, pp. 301–306, 2011. ",
760
+ "bbox": [
761
+ 171,
762
+ 356,
763
+ 825,
764
+ 385
765
+ ],
766
+ "page_idx": 10
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In Proc. International Conference on Learning Representations, 2019. ",
771
+ "bbox": [
772
+ 174,
773
+ 395,
774
+ 825,
775
+ 425
776
+ ],
777
+ "page_idx": 10
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "Honghua Dong, Jiayuan Mao, Tian Lin, Chong Wang, Lihong Li, and Denny Zhou. Neural logic machines. In International Conference on Learning Representations, 2019. ",
782
+ "bbox": [
783
+ 173,
784
+ 435,
785
+ 825,
786
+ 465
787
+ ],
788
+ "page_idx": 10
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "Richard Evans and Edward Grefenstette. Learning explanatory rules from noisy data. Journal of Artificial Intelligence Research, 61:1–64, 2018. ",
793
+ "bbox": [
794
+ 169,
795
+ 476,
796
+ 826,
797
+ 506
798
+ ],
799
+ "page_idx": 10
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Marta Garnelo and Murray Shanahan. Reconciling deep learning with symbolic artificial intelligence: representing objects and relations. Current Opinion in Behavioral Sciences, 29:17–23, 2019. ",
804
+ "bbox": [
805
+ 171,
806
+ 516,
807
+ 826,
808
+ 545
809
+ ],
810
+ "page_idx": 10
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "Marta Garnelo, Kai Arulkumaran, and Murray Shanahan. Towards deep symbolic reinforcement learning. arXiv preprint: 1609.05518, 2016. ",
815
+ "bbox": [
816
+ 174,
817
+ 556,
818
+ 823,
819
+ 585
820
+ ],
821
+ "page_idx": 10
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "Lisa Getoor and Ben Taskar (eds.). Introduction to Statistical Relational Learning. MIT Press, 2007. ",
826
+ "bbox": [
827
+ 173,
828
+ 597,
829
+ 825,
830
+ 612
831
+ ],
832
+ "page_idx": 10
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "Stevan Harnad. The symbol grounding problem. Physica D: Nonlinear Phenomena, 42(1-3):335–346, 1990. ",
837
+ "bbox": [
838
+ 173,
839
+ 622,
840
+ 826,
841
+ 651
842
+ ],
843
+ "page_idx": 10
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations, 2017a. ",
848
+ "bbox": [
849
+ 174,
850
+ 662,
851
+ 826,
852
+ 719
853
+ ],
854
+ "page_idx": 10
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "Irina Higgins, Arka Pal, Andrei Rusu, Loïc Matthey, Christopher Burgess, Alexander Pritzel, Matthew Botvinick, Charles Blundell, and Alexander Lerchner. DARLA: improving zero-shot transfer in reinforcement learning. In Proc. 34th International Conference on Machine Learning, pp. 1480–1490, 2017b. ",
859
+ "bbox": [
860
+ 174,
861
+ 731,
862
+ 825,
863
+ 787
864
+ ],
865
+ "page_idx": 10
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "Irina Higgins, Nicolas Sonnerat, Loic Matthey, Arka Pal, Christopher P Burgess, Matko Bosnjak, Murray Shanahan, Matthew Botvinick, Demis Hassabis, and Alexander Lerchner. Scan: Learning hierarchical compositional visual concepts. In International Conference on Learning Representations, 2018. ",
870
+ "bbox": [
871
+ 173,
872
+ 799,
873
+ 826,
874
+ 856
875
+ ],
876
+ "page_idx": 10
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C. Lawrence Zitnick, and Ross B. Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1988–1997, 2017. ",
881
+ "bbox": [
882
+ 173,
883
+ 867,
884
+ 825,
885
+ 924
886
+ ],
887
+ "page_idx": 10
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "Ken Kansky, Tom Silver, David A. Mély, Mohamed Eldawy, Miguel Lázaro-Gredilla, Xinghua Lou, Nimrod Dorfman, Szymon Sidor, Scott Phoenix, and Dileep George. Schema networks: Zero-shot transfer with a generative causal model of intuitive physics. In Proc. 34th International Conference on Machine Learning, volume 70, pp. 1809–1818, 2017. ",
892
+ "bbox": [
893
+ 174,
894
+ 103,
895
+ 825,
896
+ 160
897
+ ],
898
+ "page_idx": 11
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and Brain Sciences, 40:e253, 2017. ",
903
+ "bbox": [
904
+ 169,
905
+ 169,
906
+ 825,
907
+ 196
908
+ ],
909
+ "page_idx": 11
910
+ },
911
+ {
912
+ "type": "text",
913
+ "text": "Gary Marcus. Deep learning: a critical appraisal. arXiv preprint arXiv:1801.00631, 2018. ",
914
+ "bbox": [
915
+ 173,
916
+ 207,
917
+ 764,
918
+ 222
919
+ ],
920
+ "page_idx": 11
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "John McCarthy. Generality in artificial intelligence. Communications of the ACM, 30(12):1030–1035, 1987. ",
925
+ "bbox": [
926
+ 173,
927
+ 231,
928
+ 825,
929
+ 258
930
+ ],
931
+ "page_idx": 11
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "Rasmus Berg Palm, Ulrich Paquet, and Ole Winter. Recurrent relational networks. In Advances in Neural Information Processing Systems, pp. 3368–3378, 2018. ",
936
+ "bbox": [
937
+ 173,
938
+ 268,
939
+ 825,
940
+ 296
941
+ ],
942
+ "page_idx": 11
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "Sébastien Racanière, Théophane Weber, David P. Reichert, Lars Buesing, Arthur Guez, Danilo Rezende, Adria Puigdomènech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, Razvan Pascanu, Peter Battaglia, Demis Hassabis, David Silver, and Daan Wierstra. Imagination-augmented agents for deep reinforcement learning. In Advances in Neural Information Processing Systems, pp. 5694–5705, 2017. ",
947
+ "bbox": [
948
+ 174,
949
+ 306,
950
+ 826,
951
+ 376
952
+ ],
953
+ "page_idx": 11
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "Tim Rocktäschel and Sebastian Riedel. End-to-end differentiable proving. In Advances in Neural Information Processing Systems, pp. 3788–3800, 2017. ",
958
+ "bbox": [
959
+ 174,
960
+ 385,
961
+ 823,
962
+ 414
963
+ ],
964
+ "page_idx": 11
965
+ },
966
+ {
967
+ "type": "text",
968
+ "text": "Stuart Russell and Peter Norvig. Artificial Intelligence: A Modern Approach. Prentice Hall Press, 3rd edition, 2009. ",
969
+ "bbox": [
970
+ 173,
971
+ 422,
972
+ 825,
973
+ 452
974
+ ],
975
+ "page_idx": 11
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Tim Lillicrap. A simple neural network module for relational reasoning. In Advances in Neural Information Processing Systems, pp. 4974–4983, 2017. ",
980
+ "bbox": [
981
+ 174,
982
+ 460,
983
+ 825,
984
+ 503
985
+ ],
986
+ "page_idx": 11
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "Adam Santoro, Ryan Faulkner, David Raposo, Rae Jack, Mike Chrzanowski, Théophane Weber, Oriol Vinyals, Razvan Pascanu, and Tim Lillicrap. Relational recurrent neural networks. In Advances in Neural Information Processing Systems, pp. 7299–7310, 2018. ",
991
+ "bbox": [
992
+ 176,
993
+ 512,
994
+ 825,
995
+ 555
996
+ ],
997
+ "page_idx": 11
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "Jonathan Schwarz, Wojciech Czarnecki, Jelena Luketina, Agnieszka Grabska-Barwinska, Yee Whye Teh, Razvan Pascanu, and Raia Hadsell. Progress & compress: A scalable framework for continual learning. In Proc. 35th International Conference on Machine Learning, volume 80, pp. 4528–4537, 2018. ",
1002
+ "bbox": [
1003
+ 174,
1004
+ 563,
1005
+ 826,
1006
+ 619
1007
+ ],
1008
+ "page_idx": 11
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Brian Cantwell Smith. The Promise of Artificial Intelligence: Reckoning and Judgment. MIT Press, 2019. ",
1013
+ "bbox": [
1014
+ 171,
1015
+ 628,
1016
+ 825,
1017
+ 659
1018
+ ],
1019
+ "page_idx": 11
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Richard Socher, Danqi Chen, Christopher Manning, and Andrew Ng. Reasoning with neural tensor networks for knowledge base completion. In Advances in Neural Information Processing Systems, pp. 926–934, 2013. ",
1024
+ "bbox": [
1025
+ 171,
1026
+ 666,
1027
+ 825,
1028
+ 709
1029
+ ],
1030
+ "page_idx": 11
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 5998–6008, 2017. ",
1035
+ "bbox": [
1036
+ 173,
1037
+ 718,
1038
+ 825,
1039
+ 761
1040
+ ],
1041
+ "page_idx": 11
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proc. IEEE Conference on Computer Vision and Pattern Recognition, 2018. ",
1046
+ "bbox": [
1047
+ 174,
1048
+ 770,
1049
+ 823,
1050
+ 799
1051
+ ],
1052
+ "page_idx": 11
1053
+ },
1054
+ {
1055
+ "type": "text",
1056
+ "text": "Vinicius Zambaldi, David Raposo, Adam Santoro, Victor Bapst, Yujia Li, Igor Babuschkin, Karl Tuyls, David Reichert, Timothy Lillicrap, Edward Lockhart, Murray Shanahan, Victoria Langston, Razvan Pascanu, Matthew Botvinick, Oriol Vinyals, and Peter Battaglia. Deep reinforcement learning with relational inductive biases. In International Conference on Learning Representations, 2019. ",
1057
+ "bbox": [
1058
+ 176,
1059
+ 808,
1060
+ 825,
1061
+ 877
1062
+ ],
1063
+ "page_idx": 11
1064
+ },
1065
+ {
1066
+ "type": "table",
1067
+ "img_path": "images/89535ddb8059ff6c8b5bf8fc4f4f63b9d652027f787189ecb55ac10b05e16671.jpg",
1068
+ "table_caption": [
1069
+ "Table S2: Default hyperparameters "
1070
+ ],
1071
+ "table_footnote": [],
1072
+ "table_body": "<table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Input images size L size Runs per experiment Optimiser Learning rate</td><td>36×36×3 25×34 10 Gradient descent</td></tr><tr><td>Batch size Input CNN output channels Input CNN filter size Input CNN stride Input CNN activation</td><td>0.01 10 32 12 6 ReLu</td></tr><tr><td>Bias Output MLP hidden layer size Output MLP output size Output MLP activation</td><td>Yes 8 2(4) ReLu</td></tr><tr><td>Bias MLP1 output size MLP1 activation Bias</td><td>Yes (both) k(j+4) ReLu Yes</td></tr><tr><td>MLP2 hidden layer size MLP2 activations MLP2 output size</td><td>1024 ReLu k(j+4)</td></tr><tr><td>Bias RN MLP hidden layer size (pre-aggregation) RN output size RN activation RN aggregation</td><td>Yes (both) 256 k(j+4) ReLu Element-wise mean</td></tr><tr><td>Bias MHA no. of heads MHA key / query size MHA value size MHA output size MHA attention mechanism</td><td>No k 16 j+4 k(j+4)</td></tr><tr><td>Bias PrediNet no. of heads PrediNet key /query size PrediNet relations PrediNet output size Bias</td><td>softmax(QKT)V No k=32 g=16 j=16 k(j+4) n/a</td></tr></table>",
1073
+ "bbox": [
1074
+ 266,
1075
+ 121,
1076
+ 730,
1077
+ 731
1078
+ ],
1079
+ "page_idx": 12
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "S1 HYPERPARAMETERS ",
1084
+ "text_level": 1,
1085
+ "bbox": [
1086
+ 174,
1087
+ 752,
1088
+ 390,
1089
+ 768
1090
+ ],
1091
+ "page_idx": 12
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "Table S2 shows the default hyperparameters used for the experiments reported in the main text. ",
1096
+ "bbox": [
1097
+ 171,
1098
+ 785,
1099
+ 794,
1100
+ 800
1101
+ ],
1102
+ "page_idx": 12
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "S2 SUPPLEMENTARY ANALYSIS ",
1107
+ "text_level": 1,
1108
+ "bbox": [
1109
+ 176,
1110
+ 821,
1111
+ 455,
1112
+ 838
1113
+ ],
1114
+ "page_idx": 12
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "S2.1 DIMENSIONALITY REDUCTION ON INTERMEDIATE REPRESENTATIONS ",
1119
+ "text_level": 1,
1120
+ "bbox": [
1121
+ 176,
1122
+ 856,
1123
+ 705,
1124
+ 869
1125
+ ],
1126
+ "page_idx": 12
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "To qualitatively assess the nature of the representations produced by each architecture, we performed a dimensionality reduction analysis on the outputs of the central module of each architecture trained on the ‘colour / shape’ task. After training, a batch of 10,000 images (pentominoes) was passed through the network and principal component analysis (PCA) was performed on the resulting representations, which were then projected onto the two largest principal components for visualisation. The projected representations were then colour-coded by the labels for the corresponding images (i.e. different/same shape, different/same colour). ",
1131
+ "bbox": [
1132
+ 176,
1133
+ 881,
1134
+ 823,
1135
+ 924
1136
+ ],
1137
+ "page_idx": 12
1138
+ },
1139
+ {
1140
+ "type": "image",
1141
+ "img_path": "images/36b3ab57bcda64ccb6e16a7440f9f151ad5761bef3f81474d0a0e483fae80456.jpg",
1142
+ "image_caption": [
1143
+ "Figure S8: Representative central module outputs for networks trained on the ‘colour / shape’ task when projected onto the two largest principal components. "
1144
+ ],
1145
+ "image_footnote": [],
1146
+ "bbox": [
1147
+ 176,
1148
+ 99,
1149
+ 823,
1150
+ 210
1151
+ ],
1152
+ "page_idx": 13
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "",
1157
+ "bbox": [
1158
+ 174,
1159
+ 306,
1160
+ 825,
1161
+ 362
1162
+ ],
1163
+ "page_idx": 13
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "PCA on the full representations (concatenating the head outputs in the case of the PrediNet and MHA models) did not yield any clear clustering of representations according to the labels for any of the models (Figure S8). ",
1168
+ "bbox": [
1169
+ 174,
1170
+ 369,
1171
+ 825,
1172
+ 411
1173
+ ],
1174
+ "page_idx": 13
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "For the PrediNet and MHA models, we also ran separate PCAs on the output relations of each head in order to see how distributed / disentangled the representations were. While in the MHA model there was no evidence of clustering by label on any of the heads, reflecting a heavily distributed representation, there were several heads in the PrediNet architecture that individually clustered the different labels (Figure S9). In some heads, colour and shape seemed to be projected along separate axes (e.g. heads 5, 26, and 27), while in others objects with different colours seemed to be organised in a hexagonal grid (e.g. heads 9 and 14). ",
1179
+ "bbox": [
1180
+ 174,
1181
+ 417,
1182
+ 825,
1183
+ 516
1184
+ ],
1185
+ "page_idx": 13
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "We noted that the clustering was preserved (though slightly compressed in PC space) when the held-out set of images (hexominoes) was passed through the PrediNet and projected onto the same principal components derived using the training set. (In Section S2.2, we show that the PrediNet heads that seem to cluster the labels also attend to the two objects in the image rather than the background.) ",
1190
+ "bbox": [
1191
+ 174,
1192
+ 522,
1193
+ 825,
1194
+ 593
1195
+ ],
1196
+ "page_idx": 13
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "S2.2 ATTENTION ANALYSIS ",
1201
+ "text_level": 1,
1202
+ "bbox": [
1203
+ 176,
1204
+ 642,
1205
+ 379,
1206
+ 655
1207
+ ],
1208
+ "page_idx": 13
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "To assess the extent to which the various PrediNet heads attend to actual objects as opposed to the background, we produced a lower resolution content mask for each image (with the same resolution as the attention mask) containing 0.0s at locations where there are no objects in the corresponding pixels of the full image, 1.0s where more than $9 0 \\%$ of the pixels contain an object, and 0.5s otherwise. By applying the attention mask to the content mask, and summing the resulting elements, we produced a scalar indicating whether the attention mask was selecting a region of the image with an object (value close to 1.0), or the background (value close to 0.0). This was tested over 1000 images from the training set (Fig. S10), but similar results are obtained if the held-out set images are used instead. The top plot in Fig. S10 shows that both attention masks of some heads consistently attend to objects, while others to a combination of object and background. Importantly, the heads for which the PCA meaningfully clusters the labels are also the ones in which both attention masks attend to objects (Fig. S9). ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 680,
1216
+ 825,
1217
+ 847
1218
+ ],
1219
+ "page_idx": 13
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "We additionally provide a similar analysis with a position mask, where each pixel in the mask contains a unique location index. The middle plot in Fig. S10 shows that the attention masks in the majority of the heads do not consistently attend to specific locations. Finally, the mean absolute values of the per-head input weights to the output MLP are shown in the bottom plot of the same figure. Interestingly, the heads that consistently attend only to objects have higher weighting than the rest. ",
1224
+ "bbox": [
1225
+ 174,
1226
+ 854,
1227
+ 825,
1228
+ 924
1229
+ ],
1230
+ "page_idx": 13
1231
+ },
1232
+ {
1233
+ "type": "image",
1234
+ "img_path": "images/60fcf6158b9120b47d4d6ec35eb75643d6f7b54b3a4cff11e69a401b4640b8c5.jpg",
1235
+ "image_caption": [
1236
+ "Figure S9: Per-head PCA on the heads of a PrediNet and an MHA trained on the ‘colour / shape’ task. For all networks, PCA was performed using the training data (pentominoes). In (a) and (c), the training data are projected onto the two largest PCs and in (b) the test data (hexominoes) was used. "
1237
+ ],
1238
+ "image_footnote": [],
1239
+ "bbox": [
1240
+ 207,
1241
+ 11,
1242
+ 792,
1243
+ 873
1244
+ ],
1245
+ "page_idx": 14
1246
+ },
1247
+ {
1248
+ "type": "image",
1249
+ "img_path": "images/b4569f18d7bfab316f74b150c607aad2dc1c6754409abc595880ab63c07791cd.jpg",
1250
+ "image_caption": [
1251
+ "Figure S10: Top: The extent to which the two attention masks of the different heads attend to objects rather than the background. Middle: The extent to which the two attention masks of the different heads attend to specific locations in the image. Bottom: Mean absolute value of the weights from the different PrediNet heads to the output MLP. "
1252
+ ],
1253
+ "image_footnote": [],
1254
+ "bbox": [
1255
+ 174,
1256
+ 94,
1257
+ 823,
1258
+ 324
1259
+ ],
1260
+ "page_idx": 15
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "S3 EXPERIMENTAL VARIATIONS ",
1265
+ "text_level": 1,
1266
+ "bbox": [
1267
+ 176,
1268
+ 416,
1269
+ 459,
1270
+ 433
1271
+ ],
1272
+ "page_idx": 15
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "Further experimental results are provided in this section, including variations in hyper-parameters. Fig. S11 presents test accuracy curves for the ‘stripes’ object set, for which a summary is presented in Table 1 of the main text. Fig. S12 shows the results on the same experiment but using the Adam optimiser instead of SGD, with a learning rate of $1 0 ^ { - 4 }$ . The TensorFlow default values for all other Adam parameters were used. While other learning rate values were also tested, a value of $1 0 ^ { - 4 }$ gave the best overall performance for all architectures. Multi-task experiments were also performed using Adam with the same learning rate (Fig. S14 & S15), yielding an overall similar performance to SGD with a learning rate of $1 0 ^ { - 2 }$ . ",
1277
+ "bbox": [
1278
+ 173,
1279
+ 446,
1280
+ 825,
1281
+ 559
1282
+ ],
1283
+ "page_idx": 15
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "text": "To assess the extent to which the number of heads and relations plays a role in the performance, we ran experiments with $k = 6 4$ heads and $j = 1 6$ relations (Fig. S16 & S17), as well as $k = 1 6$ heads and $j = 3 2$ relations (Fig. S18 & S19). The results indicate that having a greater number of heads leads to better performance than having a greater number of relations, because they provide more stability during training and, perhaps, a richer propositional representation. ",
1288
+ "bbox": [
1289
+ 174,
1290
+ 566,
1291
+ 825,
1292
+ 637
1293
+ ],
1294
+ "page_idx": 15
1295
+ },
1296
+ {
1297
+ "type": "image",
1298
+ "img_path": "images/e55710561f4221861926a9e18d2d5f78c64350ab15660426ad476788bb600088.jpg",
1299
+ "image_caption": [
1300
+ "Figure S11: Relations Game learning curves for the different models. SGD with a learning rate of 0.01 was used with a PrediNet of $k = 3 2$ heads and $j = 1 6$ relations. The top and bottom rows show results for the ‘hexominoes’ held-out object set, while the middle row is for the ‘stripes’ held-out object set. The results for the top 10 batches are summarised in Table 1 of the main manuscript. "
1301
+ ],
1302
+ "image_footnote": [],
1303
+ "bbox": [
1304
+ 174,
1305
+ 133,
1306
+ 823,
1307
+ 455
1308
+ ],
1309
+ "page_idx": 16
1310
+ },
1311
+ {
1312
+ "type": "image",
1313
+ "img_path": "images/351913f8c8b1f54ae80ce7970dbec2c8500ba8f58a45f23777cbdb5d88d9f8d1.jpg",
1314
+ "image_caption": [
1315
+ "Figure S12: Relations Game learning curves for the different models trained with the Adam optimiser (learning rate: $1 0 ^ { - 4 }$ ). All other experimental parameters are the same as Fig. S11. The top row shows results for the ‘hexominoes’ held-out object set, while the bottom row is for the ‘stripes’ held-out object set "
1316
+ ],
1317
+ "image_footnote": [],
1318
+ "bbox": [
1319
+ 174,
1320
+ 603,
1321
+ 823,
1322
+ 818
1323
+ ],
1324
+ "page_idx": 16
1325
+ },
1326
+ {
1327
+ "type": "image",
1328
+ "img_path": "images/4b166ce338e6c8c1fb47d4965122c2810e12d1933b5cbc2a4d51ad0cf7f13582.jpg",
1329
+ "image_caption": [
1330
+ "Figure S13: Multi-task curriculum training. The columns correspond to different target / pre-training task combinations, while the rows correspond to the different architectures. SGD with a learning rate of 0.01 was used, with $k = 3 2$ and $j = 1 6$ . Training was performed using the pentominoes object set and testing using the ‘stripes’ object set. From left to right, the combinations of target / pre-training tasks are: (‘match rows’, $^ { 6 } 3$ row patterns’), (‘5 column patterns’, ‘between’), (‘3 column patterns’, ‘between’), (‘match rows’, ‘3 column patterns’) and (‘5 row patterns’, ‘5 column patterns’). From top to bottom, the different architectures are: MLP1, MLP2, relation net (RN), multi-head attention (MHA) and PrediNet. "
1331
+ ],
1332
+ "image_footnote": [],
1333
+ "bbox": [
1334
+ 176,
1335
+ 188,
1336
+ 816,
1337
+ 707
1338
+ ],
1339
+ "page_idx": 17
1340
+ },
1341
+ {
1342
+ "type": "image",
1343
+ "img_path": "images/438677fc2c32f9264113574e9859491717d1af6cd24f9efd4817231792a1e21f.jpg",
1344
+ "image_caption": [
1345
+ "Figure S14: Multi-task curriculum training. The columns correspond to different target / pre-training task combinations, while the rows correspond to the different architectures, as in Fig. S13. The Adam optimiser with a learning rate of $1 0 ^ { - 4 }$ was used. Training was performed using the pentominoes object set and testing using the ‘stripes’ object set. "
1346
+ ],
1347
+ "image_footnote": [],
1348
+ "bbox": [
1349
+ 176,
1350
+ 217,
1351
+ 816,
1352
+ 734
1353
+ ],
1354
+ "page_idx": 18
1355
+ },
1356
+ {
1357
+ "type": "image",
1358
+ "img_path": "images/3ae73376016f90ba446129a0675ad8251826ac53c58839895314cca843417074.jpg",
1359
+ "image_caption": [
1360
+ "Figure S15: Reusability of representations learned with a variety of target and pre-training tasks, using the ‘stripes’ object set. All architectures were trained using Adam, with a learning rate of $1 0 ^ { - 4 }$ . The experimental setup is the same as in Fig. S14. "
1361
+ ],
1362
+ "image_footnote": [],
1363
+ "bbox": [
1364
+ 176,
1365
+ 377,
1366
+ 820,
1367
+ 587
1368
+ ],
1369
+ "page_idx": 19
1370
+ },
1371
+ {
1372
+ "type": "image",
1373
+ "img_path": "images/b3a3f8d5d0f1e66fd8c57d7739e66748a85008026ee7da8ec7e62675a6c6cf0c.jpg",
1374
+ "image_caption": [
1375
+ "Figure S16: Multi-task curriculum training. The columns correspond to different target/pre-training task combinations, while the rows correspond to the different architectures. SGD with a learning rate of 0.01 was used. Training was performed using the pentominoes object set and testing using the ‘stripes’ object set. The experimental setup is the same as for Fig. S13, except that $k = 6 4$ and $j = 1 6$ . Increasing the number of heads for the PrediNet increases the stability during training and overall performance. "
1376
+ ],
1377
+ "image_footnote": [],
1378
+ "bbox": [
1379
+ 174,
1380
+ 203,
1381
+ 816,
1382
+ 719
1383
+ ],
1384
+ "page_idx": 20
1385
+ },
1386
+ {
1387
+ "type": "image",
1388
+ "img_path": "images/fe3733dde7f98be808bb1cff19aa3b855fd08735c1ecbe79f2227548bebd550b.jpg",
1389
+ "image_caption": [
1390
+ "Figure S17: Reusability of representations learned with a variety of target and pre-training tasks, using the ‘stripes’ object set. All experimental parameters are as in Fig. S16. "
1391
+ ],
1392
+ "image_footnote": [],
1393
+ "bbox": [
1394
+ 174,
1395
+ 385,
1396
+ 820,
1397
+ 593
1398
+ ],
1399
+ "page_idx": 21
1400
+ },
1401
+ {
1402
+ "type": "image",
1403
+ "img_path": "images/12bbf29c7db9f32ba4885e1dd56886fea9ea2076ae44983130a2c038013eb282.jpg",
1404
+ "image_caption": [
1405
+ "Figure S18: Multi-task curriculum training. The columns correspond to different target / pre-training task combinations, while the rows correspond to the different architectures. SGD with a learning rate of 0.01 was used. Training was performed using the pentominoes object set and testing using the ‘stripes’ object set. The experimental setup is the same as for Fig. S13, except that $k = 1 6$ and $j = 3 2$ . Having fewer heads leads to a decrease in performance, even if the number of relations is increased to maintain network size. "
1406
+ ],
1407
+ "image_footnote": [],
1408
+ "bbox": [
1409
+ 174,
1410
+ 203,
1411
+ 816,
1412
+ 719
1413
+ ],
1414
+ "page_idx": 22
1415
+ },
1416
+ {
1417
+ "type": "image",
1418
+ "img_path": "images/e49c46ea61614d246526938d200c4e60e0508fd16db4490b45865d1c0c83e83e.jpg",
1419
+ "image_caption": [
1420
+ "Figure S19: Reusability of representations learned with a variety of target and pre-training tasks, using the ‘stripes’ object set. All experimental parameters are as in Fig. S18. "
1421
+ ],
1422
+ "image_footnote": [],
1423
+ "bbox": [
1424
+ 176,
1425
+ 385,
1426
+ 820,
1427
+ 593
1428
+ ],
1429
+ "page_idx": 23
1430
+ }
1431
+ ]
parse/train/S1l6ITVKPS/S1l6ITVKPS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1l6ITVKPS/S1l6ITVKPS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJJQVZW0b/SJJQVZW0b.md ADDED
@@ -0,0 +1,357 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HIERARCHICAL AND INTERPRETABLE SKILL ACQUISITION IN MULTI-TASK REINFORCEMENT LEARNING
2
+
3
+ Tianmin Shu∗ University of California, Los Angeles tianmin.shu@ucla.edu
4
+
5
+ Caiming Xiong†& Richard Socher Salesforce Research {cxiong, rsocher}@salesforce.com
6
+
7
+ # ABSTRACT
8
+
9
+ Learning policies for complex tasks that require multiple different skills is a major challenge in reinforcement learning (RL). It is also a requirement for its deployment in real-world scenarios. This paper proposes a novel framework for efficient multi-task reinforcement learning. Our framework trains agents to employ hierarchical policies that decide when to use a previously learned policy and when to learn a new skill. This enables agents to continually acquire new skills during different stages of training. Each learned task corresponds to a human language description. Because agents can only access previously learned skills through these descriptions, the agent can always provide a human-interpretable description of its choices. In order to help the agent learn the complex temporal dependencies necessary for the hierarchical policy, we provide it with a stochastic temporal grammar that modulates when to rely on previously learned skills and when to execute new skills. We validate our approach on Minecraft games designed to explicitly test the ability to reuse previously learned skills while simultaneously learning new skills.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Deep reinforcement learning has demonstrated success in policy search for tasks in domains like game playing (Mnih et al., 2015; Silver et al., 2016; 2017; Kempka et al., 2016; Mirowski et al., 2017) and robotic control (Levine et al., 2016a;b; Pinto & Gupta, 2016). However, it is very difficult to accumulate multiple skills using just one policy network Teh et al. (2017). Knowledge transfer techniques like distillation (Bengio, 2012; Rusu et al., 2016; Parisotto et al., 2016; Teh et al., 2017) have been applied to train a policy network both to learn new skills while preserving previously learned skill as well as to combine single-task policies into a multi-task policy. Existing approaches usually treat all tasks independently. This often prevents full exploration of the underlying relations between different tasks. They also typically assume that all policies share the same state space and action space. This precludes transfer of previously learned simple skills to a new policy defined over a space with differing states or actions.
14
+
15
+ When humans learn new skills, we often take advantage of our existing skills and build new capacities by composing or combining simpler ones. For instance, learning multi-digit multiplication relies on the knowledge of single-digit multiplication; learning how to properly prepare individual ingredients facilitates cooking dishes based on complex recipes.
16
+
17
+ Inspired by this observation, we propose a hierarchical policy network which can reuse previously learned skills alongside and as subcomponents of new skills. It achieves this by discovering the underlying relations between skills.
18
+
19
+ To represent the skills and their relations in an interpretable way, we also encode all tasks using human instructions such as “put down.” This allows the agent to communicate its policy and generate plans using human language. Figure 1 illustrates an example: given the instruction “Stack blue,” our hierarchical policy learns to compose instructions and take multiple actions through a multi-level hierarchy in order to stack two blue blocks together. Steps from the top-level policy $\pi _ { 3 }$ (i.e., the red branches) outline a learned high-level plan – “Get blue Find blue Put blue.” In addition, from lower level policies, we may also clearly see composed plans for other tasks. Based on policy $\pi _ { 2 }$ , for instance, the task “Get blue” has two steps – “Find blue action: turn left,” whereas “Put blue” can be executed by a single action “put down” according to $\pi _ { 3 }$ . Through this hierarchical model, we may i) accumulate tasks progressively from a terminal policy to a top-level policy and ii) unfold the global policy from top-level to basic actions.
20
+
21
+ ![](images/4413927ac73dea13f3fbeb9963537490bbf5769bcca990701fd8974a57a20a6b.jpg)
22
+ Figure 1: Example of our multi-level hierarchical policy for a given task – stacking two blue blocks. Each arrow represents one step generated by a certain policy and the colors of arrows indicate the source policies. Note that at each step, a policy either utters an instruction for the lower-level policy or directly takes an action.
23
+
24
+ In order to better track temporal relationships between tasks, we train a stochastic temporal grammar (STG) model on the sequence of policy selections (previously learned skill or new skill) for positive episodes. The STG focuses on modeling priorities of tasks: for example, it is necessary to obtain an object before putting it down. Integrating the STG into the hierarchical policy boosts efficiency and accuracy by explicitly modeling such commonsense world knowledge.
25
+
26
+ We validated our approach by testing it on object manipulation tasks implemented in a Minecraft world. Our experimental results demonstrate that this framework can (i) efficiently learn hierarchical policies and representations for multi-task RL; (ii) learn to utter human instructions to deploy pretrained policies, improve their explainability and reuse skills; and (iii) learn a stochastic temporal grammar via self-supervision to predict future actions.
27
+
28
+ # 2 RELATED WORK
29
+
30
+ Multi-task Reinforcement Learning. Previous work on multi-task reinforcement learning mainly falls into two families: knowledge transfer through distillation (Rusu et al., 2016; Parisotto et al., 2016; Teh et al., 2017; Tessler et al., 2017) or modular policy design through 2-layer hierarchical policy (Andreas et al., 2017). Our multi-level policy is more similar to the latter approach. The main differences between our model and the one in Andreas et al. (2017) are two-fold: i) we do not assume that a global task can be executed by only performing predefined sub-tasks; ii) in our multi-level policy, global tasks at a lower-level layer may also be used as sub-tasks by global tasks carried out at higher-levels.
31
+
32
+ Hierarchical Reinforcement Learning. Complex policies often require the modeling of longer temporal dependencies than what standard Markov decision processes (MDPs) can capture. To combat this, hierarchical reinforcement learning was introduced to extend MDPs to semi-MDPs (Sutton et al., 1999), where options (or macro actions) are introduced on top of primitive actions to decompose the goal of a task into multiple subgoals. In hierarchical RL, two sets of policies are trained: local policies that map states to primitive actions for achieving subgoals, and a global policy that initiates suitable subgoals in a sequence to achieve the final goal of a task (Bacon & Precup, 2015; Kulkarni et al., 2016; Vezhnevets et al., 2016; Tessler et al., 2017; Andreas et al.,
33
+
34
+ 2017). This two-layer hierarchical policy design significantly improves the ability of discovering complex policies which can not be learned by flat policies. However, it also often makes some strict assumptions that limit its flexibility: i) a task’s global policy cannot use a simpler task’s policy as part of its base policies; ii) a global policy is assumed to be executable by only using local policies over specific options, e.g., (Kulkarni et al., 2016; Andreas et al., 2017). In this work, we aim to learn a multi-level global policy which does not have these two assumptions. In addition, previous work usually uses a latent variable to represent a task. In our work, we encode a task by a human instruction to learn a task-oriented language grounding as well as to improve the interpretability of plans composed by our hierarchical policies.
35
+
36
+ Language grounding via reinforcement learning. Recently, there has been work on grounding human language in 3D game environments (Hermann et al., 2017; Chaplot et al., 2017) or in text-based games (Narasimhan et al., 2015) via reinforcement learning. In these games agents are instructed to pick up an item described by a sentence. Besides visual grounding, Andreas et al. (2017) grounded instructions (not necessarily using human language) to local policies in hierarchical reinforcement learning. Our approach not only learns the language grounding for both visual knowledge and policies, but is also trained to utter human instructions as an explicit explanation of its decisions to humans. To our knowledge, this is the first model that learns to compose plans for complex tasks based on simpler ones which have human descriptions.
37
+
38
+ # 3 MODEL
39
+
40
+ In this section, we discuss our multi-task RL setting, hierarchical policy, stochastic temporal grammar, and how interaction of these components can achieve plan composition.
41
+
42
+ # 3.1 MULTITASK RL SETTING
43
+
44
+ Let $\mathcal { G }$ be a task set, where each task $g$ is uniquely described by a human instruction. For simplicity, we assume a two-word tuple template consisting of a skill and an item for such a phrase, i.e., $\langle u _ { \mathrm { s k i l l } } , u _ { \mathrm { i t e m } } \rangle$ . Each tuple describes an object manipulation task. In this paper, we define $g = \langle u _ { \mathrm { s k i l l } } , u _ { \mathrm { i t e m } } \rangle$ by default, thus tasks and instructions are treated as interchangeable concepts.
45
+
46
+ For each task, we define a Markov decision process (MDP) represented by states $s \in S$ and primitive actions $a \in { \mathcal { A } }$ . Rewards are specified for goals of different tasks, thus we use a function $R ( s , g )$ to signal the reward when performing any given task $g$ .
47
+
48
+ We assume that as a starting point, we have a terminal policy $\pi _ { 0 }$ (as shown in Figure 2a) trained for a set of basic tasks (i.e., a terminal task set $\mathcal { G } _ { 0 }$ ). The task set is then progressively increased as the agent is instructed to do more tasks by humans at multiple stages, such that ${ \mathcal { G } } _ { 0 } \subset { \mathcal { G } } _ { 1 } \subset \cdots \subset { \mathcal { G } } _ { K }$ , which results in life-long learning of polices from $\pi _ { 0 }$ for $\mathcal { G } _ { 0 }$ to $\pi _ { K }$ for $\mathcal { G } _ { K }$ as illustrated by the “task accumulation” direction in Figure 1. At stage $k > 0$ , $\mathcal { G } _ { k - 1 }$ is defined as the base task set of $\mathcal { G } _ { k }$ . The tasks in $\mathcal { G } _ { k - 1 }$ are named as base tasks at this stage and $\pi _ { k - 1 }$ becomes the base policy of $\pi _ { k }$ . Here, we utilize weak supervision from humans to define what tasks shall be augmented to the previous task set at each new stage.
49
+
50
+ # 3.2 HIERARCHICAL POLICY
51
+
52
+ One of our key ideas is that a new task in current task set $\mathcal { G } _ { k }$ may be decomposed into several simpler subtasks, some of which can be base tasks in $\mathcal { G } _ { k - 1 }$ executable by base policy $\pi _ { k - 1 }$ . Therefore, instead of using a flat policy (Figure 2a) as $\pi _ { 0 }$ that directly maps state and human instruction to a primitive action, we propose a hierarchical design (Figure 2b) with the ability to reuse the base policy (i.e., $\pi _ { k - 1 }$ ) for performing base tasks as subtasks. Namely, at stage $k$ , the global policy $\pi _ { k }$ is defined by a hierarchical policy. This hierarchy consists of four sub-policies: a base policy for executing previously learned tasks, an instruction policy that manages communication between the global policy and the base policy, an augmented flat policy which allows the global policy to directly execute actions, and a switch policy that decides whether the global policy will primarily rely on the base policy or the augmented flat policy.
53
+
54
+ The base policy is defined to be the global policy at the previous stage $k - 1$ . The instruction policy maps state $s$ and task $g \in { \mathcal { G } } _ { k }$ to a base task $g ^ { \prime } \in \mathcal { G } _ { k - 1 }$ . The purpose of this policy is to inform base policy $\pi _ { k - 1 }$ which base tasks it needs to execute. Since an instruction is represented by two words, −we define the instruction policy using two conditionally independent distributions, i.e., $\pi _ { k } ^ { \mathrm { i n s t } } ( g ^ { \prime } =$ $\langle u _ { \mathrm { s k i l l } } , u _ { \mathrm { i t e m } } \rangle | s , g ) = p _ { k } ^ { \mathrm { s k i l l } } ( u _ { \mathrm { s k i l l } } | s , g ) p _ { k } ^ { \mathrm { i t e m } } ( u _ { \mathrm { i t e m } } | s , g )$ . An augmented flat policy, $\pi _ { k } ^ { \mathrm { a u g } } ( a | s , \tilde { g } )$ , maps state $s$ and task $g$ to a primitive action $a$ for ensuring that the global policy is able to perform novel tasks in $\mathcal { G } _ { k }$ that can not be achieved by only reusing the base policy. To determine whether to perform a base task or directly perform a primitive action at each step, the global policy further includes a switch policy, $\pi _ { k } ^ { \mathrm { s w } } ( e | \bar { s } , \bar { g } )$ , where $e$ is a binary variable indicating the selection of the branches, $\pi _ { k } ^ { \mathrm { i n s t } }$ $e = 0$ ) or $\pi _ { k } ^ { \mathrm { a u g } }$ $( e = 1 )$ ).
55
+
56
+ ![](images/2a893964c5f174ad83afb2c3b4400b746dba3bee5f8ec8a7d2533674a304ac37.jpg)
57
+ Figure 2: Flat and hierarchical policy architectures. $V ( s , g )$ and $V ^ { \mathrm { S W } } ( s , e , g )$ are value functions defined in Section 4.1.
58
+
59
+ Note that the above description of the hierarchical policy does not account for an STG. The instruction policy and switch policy introduced here are simplified from the ones in the full model (see Section 3.3).
60
+
61
+ At each time step, we first sample $e _ { t }$ from our switch policy $\pi _ { k } ^ { \mathrm { s w } }$ to decide whether the global policy $\pi _ { k }$ will rely on the base policy $\pi _ { k - 1 }$ or the augmented flat policy $\pi _ { k } ^ { \mathrm { a u g } }$ . We also sample a new instruction $g _ { t } ^ { \prime }$ from our instruction policy $\pi _ { k } ^ { \mathrm { i n s t } }$ in order to sample actions from the base policy. This can be summarized as:
62
+
63
+ $$
64
+ \begin{array} { r } { e _ { t } \sim \pi _ { k } ^ { \mathrm { s w } } ( e _ { t } | s _ { t } , g ) , } \end{array}
65
+ $$
66
+
67
+ $$
68
+ g _ { t } ^ { \prime } \sim \pi _ { k } ^ { \mathrm { i n s t } } ( g _ { t } ^ { \prime } | s _ { t } , g ) ,
69
+ $$
70
+
71
+ and finally
72
+
73
+ $$
74
+ a _ { t } \sim \pi _ { k } ( a _ { t } | s _ { t } , g ) = \pi _ { k - 1 } ( a _ { t } | s _ { t } , g _ { t } ^ { \prime } ) ^ { ( 1 - e _ { t } ) } \pi _ { k } ^ { \mathrm { a u g } } ( a _ { t } | s _ { t } , g ) ^ { e _ { t } } ,
75
+ $$
76
+
77
+ where $\pi _ { k }$ and $\pi _ { k - 1 }$ are the global policies at stage $k$ and $k - 1$ respectively. After each step, we will also obtain a reward $r _ { t } = R ( s _ { t } , g )$ .
78
+
79
+ # 3.3 STOCHASTIC TEMPORAL GRAMMAR
80
+
81
+ Different tasks may have temporal relations. For instance, to move an object, one needs to first find and pick up that object. There has been previous research (Si et al., 2011; Pirsiavash & Ramanan, 2014) using stochastic grammar models to capture such temporal relations. Inspired by this, we summarize temporal transitions between various tasks with a stochastic temporal grammar (STG). In our full model, the STG interacts with the hierarchical policy described above through the modified switch policy and instruction policy by using the STG as a prior. This amounts to treating the past history of switches and instructions in positive episodes as a guidance on whether the hierarchical policy should defer to the base policy to execute a specific base task or employ its own augmented flat policy to take a primitive action.
82
+
83
+ In an episode, the temporal sequence of $e _ { t }$ and $g _ { t } ^ { \prime }$ , i.e., $\{ \langle e _ { t } , g _ { t } ^ { \prime } \rangle ; t \geq 0 \}$ , can be seen as a finite state Markov chain (Baum & Petrie, 1966). Note that the state here is referred to the tuple $\langle e _ { t } , g _ { t } ^ { \prime } \rangle$ , which is not the state of the game $s _ { t } \in S$ defined in Section 3.1. Consequently, at each level $k > 0$ , we may define an STG of a task $g$ by i) transition probabilities, $\rho _ { k } ( e _ { t } , \bar { g } _ { t } ^ { \prime } | e _ { t - 1 } , g _ { t - 1 } ^ { \prime } , g )$ , and ii) the distribution of $\left. { e _ { 0 } , g _ { 0 } ^ { \prime } } \right.$ , $q _ { k } ( e _ { 0 } , g _ { 0 } ^ { \prime } | g )$ , all of which follow categorical distributions.
84
+
85
+ With the estimated probabilities, we sample $e _ { t }$ and $g _ { t } ^ { \prime }$ in an episode at level $k > 0$ w.r.t. to reshaped policies $\pi _ { k } ^ { s w ^ { \prime } }$ and $\pi _ { k } ^ { \mathrm { i n s t } ^ { \prime } }$ respectively:
86
+
87
+ • If $t = 0$ ,
88
+
89
+ $$
90
+ e _ { 0 } \sim \pi _ { k } ^ { \mathrm { s w \it / } } ( e _ { 0 } | s _ { t } , g ) \propto \pi _ { k } ^ { \mathrm { s w } } \big ( e _ { 0 } | s _ { t } , g \big ) \sum _ { g ^ { \prime } \in \mathcal { G } _ { k - 1 } } q _ { k } \big ( e _ { 0 } , g ^ { \prime } | g \big ) ,
91
+ $$
92
+
93
+ $$
94
+ g _ { 0 } ^ { \prime } \sim \pi _ { k } ^ { \mathrm { i n s t } ^ { \prime } } ( g _ { 0 } ^ { \prime } | s _ { t } , g ) \propto \pi _ { k } ^ { \mathrm { i n s t } } ( g _ { 0 } ^ { \prime } | s _ { t } , g ) q _ { k } ( e _ { 0 } = 0 , g _ { 0 } ^ { \prime } | g ) ;
95
+ $$
96
+
97
+ • Otherwise,
98
+
99
+ $$
100
+ e _ { t } \sim \pi _ { k } ^ { \mathrm { s w \prime } } ( e _ { t } | e _ { t - 1 } , g _ { t - 1 } ^ { \prime } , s _ { t } , g ) \propto \pi _ { k } ^ { \mathrm { s w } } \big ( e _ { t } | s _ { t } , g \big ) \sum _ { g ^ { \prime } \in \mathcal { G } _ { k - 1 } } \rho _ { k } ( e _ { t } , g ^ { \prime } | e _ { t - 1 } , g _ { t - 1 } ^ { \prime } , g ) ,
101
+ $$
102
+
103
+ $$
104
+ g _ { t } ^ { \prime } \sim \pi _ { k } ^ { \mathrm { i n s t ^ { \prime } } } ( g _ { t } ^ { \prime } | e _ { t - 1 } , g _ { t - 1 } ^ { \prime } , s _ { t } , g ) \propto \pi _ { k } ^ { \mathrm { i n s t } } ( g _ { t } ^ { \prime } | s _ { t } , g ) \rho _ { k } ( e _ { t } = 0 , g _ { t } ^ { \prime } | e _ { t - 1 } , g _ { t - 1 } ^ { \prime } , g ) .
105
+ $$
106
+
107
+ Note that primitive action sampling is not affected by the STG.
108
+
109
+ # 3.4 PLAN COMPOSITION
110
+
111
+ Combined with our hierarchical policy and STG defined above, we are able to run an episode to compose a plan for a task specified by a human instruction. Algorithm 1 in Appendix A summarized this procedure with respect to the policy and STG at level $k$ . Note that to fully utilize the base policy, we assume that once triggered, a base policy will play to the end before the global policy considers the next move.
112
+
113
+ # 4 LEARNING
114
+
115
+ The learning algorithm is outlined in Algorithm 2 in Appendix A. We learn our final hierarchical policy through $k$ stages of skill acquisition. Each of these stages is broken down into a base skill acquisition phase and a novel skill acquisition phase in a 2-phase curriculum learning.
116
+
117
+ In the base skill acquisition phase, we only sample tasks from the base task set $\mathcal { G } _ { k - 1 }$ . This ensures that the global policy learns how to use previously learned skills by issuing instructions to the base policy. In other words, this phase teaches the agent how to connect its instruction policy to its base policy. Once the average reward for all base tasks exceeds a certain threshold, we proceed to the next phase.
118
+
119
+ In the novel skill acquisition phase, we sample tasks from the full task set, $\mathcal { G } _ { k }$ , for the $k \mathrm { . }$ -th stage of skill acquisition. It is in this phase that the agent can learn when to rely on the base policy and when to rely on the augmented flat policy for executing novel tasks.
120
+
121
+ In each of these phases, all policies are trained with advantage actor-critic (A2C) (Section 4.1) and distributions in the STG are estimated based on accumulated positive episodes (Section 4.2).
122
+
123
+ # 4.1 POLICY OPTIMIZATION BY ADVANTAGE ACTOR-CRITIC
124
+
125
+ We use advantage actor-critic (A2C) for policy optimization with off-policy learning (Su et al., 2017). Here, we only consider the gradient for global policies (i.e., $k > 0 ,$ ) as we assume the terminal policy has been trained as initial condition. Let $V _ { k } ( s _ { t } , g )$ be a value function indicating the expected return given state $s _ { t }$ and task $g$ . To reflect the nature of the branch switching in our model, we introduce another value function $V _ { k } ^ { \operatorname { s w } } ( s _ { t } , e _ { t } , g )$ to represent the expected return given state $s _ { t }$ , task $g$ and current branch selection $e _ { t }$ .
126
+
127
+ Thus, given a trajectory $\Gamma ~ = ~ \{ \langle s _ { t } , e _ { t } , g _ { t } ^ { \prime } , a _ { t } , r _ { t } , \mu _ { k } ^ { \mathrm { s w } } ( \cdot | s _ { t } ) , \mu _ { k } ^ { \mathrm { i n s t } } ( \cdot | s _ { t } , g ) , \mu _ { k } ^ { \mathrm { a u g } } ( \cdot | s _ { t } , g ) , g \rangle ~ : ~ t ~ =$ $0 , 1 , \cdots , T \}$ generated by old policies $\mu _ { k } ^ { \mathrm { s w } } ( \cdot | s _ { t } ) , \mu _ { k } ^ { \mathrm { i n s t } } ( \cdot | s _ { t } , g )$ , and $\mu _ { k } ^ { \mathrm { a u g } } ( \cdot | s _ { t } , g )$ , the policy gradient reweighted by importance sampling can be formulated as
128
+
129
+ $$
130
+ \begin{array} { r l } & { \underbrace { \omega _ { t } ^ { \mathrm { s w } } \nabla _ { \theta ^ { \mathrm { s w } } } \log \pi _ { k } ^ { \mathrm { s w } } ( e _ { t } | s _ { t } , g ) A ( s _ { t } , g , e _ { t } ) } _ { \mathrm { 1 s t ~ t e r m : ~ s w i t c h ~ p o l i c y ~ g r a d i e n t } } } \\ { + } & { \underbrace { ( 1 - e _ { t } ) \omega _ { t } ^ { \mathrm { i n s t } } \nabla _ { \theta ^ { \mathrm { i n s t } } } \log \pi _ { k } ^ { \mathrm { i n s t } } ( g _ { t } ^ { \prime } | s _ { t } , g ) A ( s _ { t } , g , e _ { t } , g _ { t } ^ { \prime } ) } _ { \mathrm { 2 n d ~ t e r m : ~ i n s t r u c t i o n ~ p o l i c y ~ g r a d i e n t } } } \\ { + } & { \underbrace { e _ { t } \omega _ { t } ^ { \mathrm { a u g } } \nabla _ { \theta ^ { \mathrm { a u g } } } \log \pi _ { k } ^ { \mathrm { a u g } } ( a _ { t } | s _ { t } , g ) A ( s _ { t } , g , e _ { t } , a _ { t } ) } _ { \mathrm { . } } , } \end{array}
131
+ $$
132
+
133
+ where $\begin{array} { r } { \omega _ { t } ^ { \mathrm { s w } } = \frac { \pi _ { k } ^ { \mathrm { s w } } ( e _ { t } | s _ { t } , g ) } { \mu _ { k } ^ { \mathrm { s w } } ( e _ { t } | s _ { t } , g ) } } \end{array}$ , $\begin{array} { r } { \omega _ { t } ^ { \mathrm { i n s t } } ~ = ~ \frac { \pi _ { k } ^ { \mathrm { i n s t } } ( g _ { t } ^ { \prime } | s _ { t } , g ) } { \mu _ { k } ^ { \mathrm { i n s t } } ( g _ { t } ^ { \prime } | s _ { t } , g ) } } \end{array}$ , and $\begin{array} { r } { \omega _ { t } ^ { \mathrm { a u g } } = \frac { \pi _ { k } ^ { \mathrm { a u g } } ( a _ { t } | s _ { t } , g ) } { \mu _ { k } ^ { \mathrm { a u g } } ( a _ { t } | s _ { t } , g ) } } \end{array}$ are importance sampling weights for the three terms respectively; $A ( s _ { t } , g , e _ { t } )$ , $A ( s _ { t } , g , e _ { t } , g _ { t } ^ { \prime } )$ , and $A ( s _ { t } , g , e _ { t } , a _ { t } )$ are estimates of advantage functions, which have multiple possible definitions. In this paper, we define e, $A ( s _ { t } , g , e _ { t } ) =$ ${ \sum } _ { \tau = 0 } ^ { \infty } \overset { \cdot } { \gamma } { \tilde { F } } ( s _ { t + \tau } , g ) \ - \ V _ { k } ( s _ { t } , g )$ $\begin{array} { r c l } { { \hat { A ( \boldsymbol { s } _ { t } , \boldsymbol { g } , \boldsymbol { e } _ { t } , \boldsymbol { g } _ { t } ^ { \prime } ) } ~ = ~ { \cal A ( \boldsymbol { s } _ { t } , \boldsymbol { g } , \boldsymbol { e } _ { t } , \boldsymbol { a } _ { t } ) } ~ = ~ \sum _ { \tau = 0 } ^ { \infty } \gamma ^ { \tau } \hat { R } ( \boldsymbol { s } _ { t + \tau } , \boldsymbol { g } ) ~ - } } \end{array}$ $V _ { k } ^ { \mathrm { s w } } ( s _ { t } , g , e _ { t } )$ , where $\gamma$ tis the discounted coefficient.
134
+
135
+ Finally, the value functions can be updated using the following gradient:
136
+
137
+ $$
138
+ \nabla _ { \theta _ { v } } \frac { 1 } { 2 } \left[ \sum _ { \tau = 0 } ^ { \infty } \gamma ^ { \tau } R ( s _ { t + \tau } , g ) - V _ { k } ( s _ { t } , g ) \right] ^ { 2 } + \nabla _ { \theta _ { v } ^ { \mathrm { s w } } } \frac { 1 } { 2 } \left[ \sum _ { \tau = 0 } ^ { \infty } \gamma ^ { \tau } R ( s _ { t + \tau } , g ) - V _ { k } ^ { \mathrm { s w } } ( s _ { t } , e _ { t } , g ) \right] ^ { 2 } .
139
+ $$
140
+
141
+ To increase the episode efficiency, after running an episode, we conduct $n$ mini-batch updates where $n$ is sampled from a Poisson distribution with $\lambda = 4$ , similar to Wang et al. (2017). Note that one can also apply other common policy optimization methods, e.g., A3C (Mnih et al., 2016), to our model. We leave this as future work to evaluate the efficiency of different methods when using our model.
142
+
143
+ Optimizing all three sub-policies together leads to unstable learning. To avoid this, we apply a simple alternating update procedure. For each set of $M$ iterations, we keep two of the sub-policies fixed and train only the single policy that remains. When we reach $M$ iterations, we switch the policy that is trained. For all experiments in this paper, we use $M = 5 0 0$ . This alternating update procedure is used within both phases of curriculum learning.
144
+
145
+ # 4.2 LEARNING AN STG
146
+
147
+ If at any point in the aforementioned training process the agent receives a positive reward after an episode, we update the stochastic temporal grammar. $\rho _ { k }$ and $q _ { k }$ of the STG are both initialized to be uniform distributions. Since the STG is a finite state Markov chain over tuples $\left. { e _ { t } , g _ { t } ^ { \prime } } \right.$ , we use maximum likelihood estimation (MLE) to update the distributions (Baum & Petrie, 1966). As the training progresses, the STG starts to guide the exploration.
148
+
149
+ To avoid falling into local minima in the early stages of training, it is important to encourage random exploration in early episodes. Based on our experiments, we find that using $\epsilon$ -greedy suffices.
150
+
151
+ # 5 EXPERIMENTS
152
+
153
+ # 5.1 GAME ENVIRONMENT AND TASK SPECIFICATIONS
154
+
155
+ Figure 3 (left) shows the two room environment in Minecraft that we created using the Malmo platform (Johnson et al., 2016). In each episode, an arbitrary number of blocks with different colors (totaling 6 colors in our experiments) are randomly placed in one of the two rooms. The agent is initially placed in the same room with the items. We consider five sets of tasks: i) ${ \mathcal { G } } ^ { ( 0 ) } = \{ { } ^ { { } } \mathrm { F i n d } \mathrm { x } ^ { } \}$ , walking to the front of a block with color $\mathbf { X }$ , ii) $\mathcal { G } ^ { ( 1 ) } = \{ { \bf \ddot { \Phi } } { \bf G e t x } ^ { , * } \}$ , picking up a block with color $\mathbf { X }$ , iii) $\mathcal { G } ^ { ( 2 ) } = \{ { ^ { } \mathrm { P u t } } \mathrm { x } ^ { , , * } \}$ , putting down a block with color $\mathbf { X }$ , iv) $\mathcal { G } ^ { ( 3 ) } = \{ ^ { \cdots } \mathrm { S t a c k } \mathrm { x } ^ { \cdots } \}$ , stacking two blocks with color $\mathbf { X }$ together, and v) $\mathcal { G } ^ { ( 4 ) } = \{ { ^ { \mathrm { ? P u t ~ x ~ o n ~ y } } } \}$ , putting a block with color $\mathbf { X }$ on top of a block with a different color y. In total, there are 54 tasks. An agent can perform the following actions: “move forward,” “move backward,” “move left,” “move right,” “turn left,” “turn right,” “pick up,” “put down.”
156
+
157
+ ![](images/cf57cf2f333bf44708a29c1875358f75f741052352aafc00f4400f2bb462ec1a.jpg)
158
+ Figure 3: Room layout. Left: training environment; right: unseen rooms for testing.
159
+
160
+ Without loss of generality, we assume the following skill acquisition order: $\mathcal { G } _ { k } = \cup _ { \kappa = 1 } ^ { k } \mathcal { G } ^ { ( \kappa ) }$ , $\forall k =$ $0 , 1 , 2 , 3 , 4$ , which is a natural way to increase skill sets. One may also alter the order, and the main conclusions shall still hold. This results in policies $\{ \pi _ { k } : k = \dot { 0 , } 1 , 2 , 3 , 4 \}$ for these four task sets. For the last task set, we hold out 6 tasks out of all 30 tasks (i.e., 3 pairs of colors out of 15 color combinations) for testing and the agent will not be trained on these 6 tasks.
161
+
162
+ We adopt a sparse reward function: when reaching the goal of a task, the agent gets a $+ 1$ reward; when generating an instruction $g ^ { \prime }$ that is not executable in current game (e.g., trying to find an object that does not exist in the environment), we give a $- 0 . 5$ reward; otherwise, no reward will be given. Whenever a non-zero reward is given, the game terminates. Note that the negative reward is only given during training.
163
+
164
+ # 5.2 IMPLEMENTATION DETAILS
165
+
166
+ We specify the architecture of the modules in our model in Appendix B, where the visual and instruction encoding modules have the same architectures as the ones in Hermann et al. (2017). We train the network with RMSProp (Tieleman & Hinton, 2012) with a learning rate of 0.0001. We set the batch size to be 36 and clip the gradient to a unit norm. For all tasks, the discounted coefficient is $\gamma = 0 . 9 5$ . For the 2-phase curriculum learning, we set the average reward threshold to be 0.9 (average rewards are estimated from the most recent 200 episodes of each task).
167
+
168
+ To encourage random exploration, we apply $\epsilon$ -greedy to the decision sampling for the global policy (i.e., only at the top level $k$ at each stage $k > 0$ ), where $\epsilon$ gradually decreases from 0.1 to 0.
169
+
170
+ ![](images/175631828543a6110950c7ec8016ac45f5e9a471c97beadfd6ead1193e4ee11a.jpg)
171
+ Figure 4: Comparison of learning efficiency on two task sets: (a) $\mathcal { G } _ { 1 }$ for global policy $\pi _ { 1 }$ and (b) $\mathcal { G } _ { 3 }$ for global policy $\pi _ { 3 }$ respectively.
172
+
173
+ # 5.3 LEARNING EFFICIENCY
174
+
175
+ To evaluate the learning efficiency, we compare our full model with 1) a flat policy (Figure 2a) as in Hermann et al. (2017) fine-tuned on the terminal policy $\pi _ { 0 }$ , 2) H-DRLN (Tessler et al., 2017) and variants of our approach: 3) ours without STG, 4) ours without alternating policy optimization, and 5) ours without $V _ { k } ^ { \mathrm { s w } } ( s , e , g )$ (replaced by $V _ { k } ( s , g )$ instead). Note that all the rewards have been converted to the same range, i.e., $[ 0 , 1 ]$ for the sake of fair comparison.
176
+
177
+ ![](images/395abc0c2629ae8cf2f89ef88a8c0ffcb82e634d6590d88ddd19764c2ea9b7a3.jpg)
178
+ Figure 5: Effects of different training protocols.
179
+
180
+ Table 1: Success rates in different game settings including scenarios seen during training, new environments and new tasks. All policies are trained in the same environment in seen scenarios.
181
+
182
+ <table><tr><td rowspan="2">Method</td><td colspan="5">Seen scenarios</td><td colspan="4">Unseen environments</td><td>Unseen tasks</td></tr><tr><td>Find x</td><td>Get x</td><td>Put x</td><td>Stack x</td><td>Put x on y</td><td>Find x</td><td>Get x</td><td>Put x</td><td>Stack x</td><td>Put x on y</td></tr><tr><td>Full model</td><td>0.995</td><td>0.970</td><td>1.00</td><td>0.955</td><td>0.873</td><td>0.723</td><td>0.648</td><td>1.00</td><td>0.613</td><td>0.792</td></tr><tr><td>Flat policy</td><td>0.980</td><td>0.965</td><td>1.00</td><td>0</td><td>0</td><td>0.515</td><td>0.450</td><td>1.00</td><td>0</td><td>0</td></tr></table>
183
+
184
+ In Figure 4a, we use various methods to train policy $\pi _ { 1 }$ for the task set $\mathcal { G } _ { 1 }$ based on the same base policy $\pi _ { 0 }$ . The large dip in the reward indicates that the curriculum learning switches from phase 1 to phase 2. From Figure 4a, we may clearly see that our full model and variants can all converge within 22,000 episodes, whereas the average reward of the flat policy is still below 0.8 given the same amount of episodes. In addition, our full model finishes phase 1 significantly faster than other methods and its curve of average reward maintains notably higher than the remaining ones.
185
+
186
+ To further examine the learning efficiency during phase 2 when new tasks are added into the training process, we first pretrain $\pi _ { 3 }$ using our full model following our definition of phase 1 in the curriculum learning. We then proceed to learning phase 2 using different approaches all based on this pretrained policy. As shown in Figure 4b, our full model has the fastest convergence and the highest average reward upon convergence. By comparing Figure 4a and Figure 4b, we further show that our full model has a bigger advantage when learning more complex tasks.
187
+
188
+ Since we have a large number of previously learned tasks, H-DRLN is clearly not able to learn a descent policy according the results. Note that an H-DRLN can only learn one task at a time, each of its curves in Figure 4 is for a single task (i.e., “Get white” and “Stack white” respectively).
189
+
190
+ To demonstrate the effects of our 2-phase curriculum learning and the $- 0 . 5$ penalty on the training efficiency, we visualize the learning curves of our model trained without the curriculum learning or without the penalty along with the one trained with the full protocol in Figure 5. According to the results, the curriculum learning indeed helps accelerate the convergence, which empirically proves the importance of encouraging a global policy to reuse relevant skills learned by its base policy. It also appears that adding the penalty is an insignificant factor on learning efficiency except that it helps shorten the episode lengths as an episode ends whenever a penalty is given.
191
+
192
+ # 5.4 POLICY GENERALIZATION
193
+
194
+ Finally, we evaluate how the hierarchical design and encoding tasks by human instructions benefit the generalization of learned policies in the following three ways.
195
+
196
+ First, we train $\pi _ { 1 }$ in a simpler setting where in each episode, only one item (i.e, the target item of the given task) is present. We then test the policy $\pi _ { 1 }$ for “Get $\mathbf { X } ^ { \prime \prime }$ tasks in a room where there will be multiple items serving as distraction and the agent must interact with the correct one. Both the flat policy and the hierarchical policy can achieve near perfect testing success rate in the simple setting. However, in the more complex setting, flat policy can not differentiate the target item from other items that are also placed in the room (the success rate drops to $2 9 \%$ ), whereas our hierarchical policy still maintains a high success rate $( 9 4 \% )$ . This finding suggests that the hierarchical policy not only picks up the concept of “find” and “get” skills as the flat policy does, but also inherits the concept of items from the base policy by learning to utter correct instructions to deploy “find” skill in the base policy.
197
+
198
+ Second, we reconfigure the room layout in Figure 3 (left) and test the flat policy and our full model in the new rooms shown in Figure 3 (right) for various tasks. Both policies are trained in the same environment. There are multiple items in a room for both training and testing cases. The success rates are summarized in Table 1. Using the flat policy results in a much bigger drop in the testing success rate compared to using out full model. This is mainly because that our global policy will repeatedly call its base policy to execute the same task until the agent finally achieves the goal even though the trained agent is unable to reach the goal by just one shot due to the simplicity of the training environment.
199
+
200
+ Third, we evaluate the learned policy on the 6 unseen tasks for the “Put x on y” tasks as a zeroshort evaluation. The success rate reported in Table 1 suggests that our model is able to learn the decomposition of human instructions and generate correct hierarchical plans to perform unseen tasks.
201
+
202
+ # 5.5 POLICY INTERPRETABILITY
203
+
204
+ We visualize typical hierarchical plans of several tasks generated by global policies learned by our full model in Appendix C (Figure 6 and Figure 7)1. It can been seen from the examples that our global policies adjust the composed plans in different scenarios. For instance, in the second plan on the first row, $\pi _ { 1 }$ did not deploy base policy $\pi _ { 0 }$ as the agent was already in front of the target item at the beginning of the episode, whereas in the plan on the second row, $\pi _ { 1 }$ deployed $\pi _ { 0 }$ for the “Find $\mathbf { X } ^ { \prime \prime }$ base task twice consecutively, as it did not finish the base task in the first call.
205
+
206
+ # 6 CONCLUSION
207
+
208
+ In this work, we have proposed a hierarchal policy modulated by a stochastic temporal grammar as a novel framework for efficient multi-task reinforcement learning through multiple training stages. Each task in our settings is described by a human instruction. The resulting global policy is able to reuse previously learned skills for new tasks by generating corresponding human instructions to inform base policies to execute relevant base tasks. We evaluate this framework in Minecraft games and have shown that our full model i) has a significantly higher learning efficiency than a flat policy does, ii) generalizes well in unseen environments, and iii) is capable of composing hierarchical plans in an interpretable manner.
209
+
210
+ Currently, we rely on weak supervision from humans to define what skills to be learned in each training stage. In the future, we plan to automatically discover the optimal training procedures to increase the task set.
211
+
212
+ # REFERENCES
213
+
214
+ Jacob Andreas, Dan Klein, and Sergey Levine. Modular multitask reinforcement learning with policy sketches. In International Conference on Machine Learning (ICML), 2017.
215
+
216
+ Pierre-Luc Bacon and Doina Precup. The option-critic architecture. In NIPS Deep Reinforcement Learning Workshop, 2015.
217
+
218
+ Leonard E. Baum and Ted Petrie. Statistical inference for probabilistic functions of finite state markov chains. The Annals of Mathematical Statistics, 37(6):1554–1563, 1966.
219
+
220
+ Yoshua Bengio. Deep learning of representations for unsupervised and transfer learning. In JMLR: Workshop on Unsupervised and Transfer Learning, 2012.
221
+
222
+ Devendra Singh Chaplot, Kanthashree Mysore Sathyendra, Rama Kumar Pasumarthi, Dheeraj Rajagopal, and Ruslan Salakhutdinov. Gated-attention architectures for task-oriented language grounding. arXiv preprint arXiv:1706.0723, 2017.
223
+
224
+ Karl Moritz Hermann, Felix Hill, Simon Green, Fumin Wang, Ryan Faulkner, Hubert Soyer, David Szepesvari, Wojtek Czarnecki, Max Jaderberg, Denis Teplyashin, Marcus Wainwright, Chris Apps, Demis Hassabis, and Phil Blunsom. Grounded language learning in a simulated 3d world. arXiv preprint arXiv:1706.06551, 2017.
225
+
226
+ Matthew Johnson, Katja Hofmann, Tim Hutton, and David Bignell. The malmo platform for artificial intelligence experimentation. In International Joint Conference on Artificial Intelligence (IJCAI), 2016.
227
+
228
+ Michał Kempka, Marek Wydmuch, Grzegorz Runc, Jakub Tocze, and Wojciech Jaskowski. Viz- ´ doom: A doom-based ai research platform for visual reinforcement learning. In IEEE Conference on Computational Intelligence and Games (CIG), 2016.
229
+
230
+ Tejas D. Kulkarni, Karthik Narasimhan, Ardavan Saeedi, , and Josh Tenenbaum. Hierarchical deep reinforcement learning: Integrating temporal abstraction and intrinsic motivation. In Advances in Neural Information Processing Systems (NIPS), 2016.
231
+
232
+ Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. Journal of Machine Learning Research, 17(39):1–40, 2016a.
233
+
234
+ Sergey Levine, Peter Pastor, Alex Krizhevsky, Julian Ibarz, , and Deirdre Quillen. Learning handeye coordination for robotic grasping with deep learning and large-scale data collection. In ” International Symposium on Experimental Robotics (ISER), 2016b.
235
+
236
+ Piotr Mirowski, Razvan Pascanu, Fabio Viola, Hubert Soyer, Andy Ballard, Andrea Banino, Misha Denil, Ross Goroshin, Laurent Sifre, Koray Kavukcuoglu, Dharshan Kumaran, and Raia Hadsell. Learning to navigate in complex environments. In International Conference on Learning Representations (ICLR), 2017.
237
+
238
+ 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, 2015.
239
+
240
+ Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning (ICML), 2016.
241
+
242
+ Karthik Narasimhan, Tejas Kulkarni, and Regina Barzilay. Language understanding for text-based games using deep reinforcement learning. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2015.
243
+
244
+ Emilio Parisotto, Jimmy Lei Ba, and Ruslan Salakhutdinov. Actor-mimic: Deep multitask and transfer reinforcement learning. In International Conference on Learning Representations (ICLR), 2016.
245
+
246
+ Lerrel Pinto and Abhinav Gupta. Supersizing self-supervision: Learning to grasp from 50k tries and 700 robot hours. In IEEE Conference on Robotics and Automation (ICRA), 2016.
247
+
248
+ Hamed Pirsiavash and Deva Ramanan. Parsing videos of actions with segmental grammars. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2014.
249
+
250
+ Andrei A Rusu, Sergio Gomez Colmenarejo, Caglar Gulcehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu, Volodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. Policy distillation. In International Conference on Learning Representations (ICLR), 2016.
251
+
252
+ Zhangzhang Si, Mingtao Pei, Benjamin Yao, and Song-Chun Zhu. Unsupervised learning of event and-or grammar and semantics from video. In IEEE International Conference on Computer Vision (ICCV), 2011.
253
+
254
+ David Silver, Aja Huang, Chris J. Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, and Julian Schrittwieser et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016.
255
+
256
+ David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, Yutian Chen, Timothy Lillicrap, Fan Hui, Laurent Sifre, George Van Den Driessche, Thore Graepel, and Demis Hassabis. Mastering the game of go without human knowledge. Nature, 550(7676):354–359, 2017.
257
+
258
+ Pei-Hao Su, Pawel Budzianowski, Stefan Ultes, Milica Gasic, and Steve Young. Sample-efficient actor-critic reinforcement learning with supervised data for dialogue management. In The 18th Annual SIGdial Meeting on Discourse and Dialogue (SIGDIAL), 2017.
259
+
260
+ Richard S. Sutton, Doina Precup, and Satinder Singh. Between mdps anad semi-mdps: A framework fro temporal abstraction in reinforcement learning. Artificial Intelligence, 112:181–211, 1999.
261
+
262
+ Yee Whye Teh, Victor Bapst, Wojciech Marian Czarnecki, John Quan, James Kirkpatrick, Raia Hadsell, Nicolas Heess, and Razvan Pascanu. Distral: Robust multitask reinforcement learning. In International Conference on Learning Representations (ICLR), 2017.
263
+
264
+ Chen Tessler, Shahar Givony, Tom Zahavy, Daniel J. Mankowitz, and Shie Mannor. A deep hierarchical approach to lifelong learning in Minecraft. In AAAI Conference on Artificial Intelligence (AAAI), 2017.
265
+
266
+ Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012.
267
+
268
+ Alexander (Sasha) Vezhnevets, Volodymyr Mnih, John Agapiou, Simon Osindero, Alex Graves, Orial Vinyals, and Koray Kavukcuoglu. Strategic attentive writer for learning macro-actions. In Advances in Neural Information Processing Systems (NIPS), 2016.
269
+
270
+ Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando de Freitas. Sample efficient actor-critic with experience replay. In International Conference on Learning Representations (ICLR), 2017.
271
+
272
+ # A PSEUDO CODE OF OUR ALGORITHMS
273
+
274
+ # Algorithm $1 \mathrm { R U N } ( k , g )$
275
+
276
+ Input: Policy level $k$ , task $g \in { \mathcal { G } } _ { k }$
277
+ Output: Episode trajectory $\Gamma$ at the top level policy
278
+ 1: $t \gets 0$
279
+ 2: $\Gamma = \emptyset$
280
+ 3: Get initial state $s _ { 0 }$
281
+ 4: repeat
282
+ 5: if ${ \bf k } = = 1$ then
283
+ 6: Sample $a _ { t } \sim \pi _ { k } ( \cdot | s _ { t } , g )$ and execute $a _ { t }$
284
+ 7: Get current state st+1
285
+ 8: $r _ { t } \gets R ( s _ { t + 1 } , g )$
286
+ 9: Add $\langle s _ { t } , a _ { t } , r _ { t } , \pi _ { k } ( \cdot | s _ { t } , g ) , g \rangle$ to $\Gamma$
287
+ 10: else
288
+ 11: Sample $e _ { t }$ and $g _ { t } ^ { \prime }$ as in Section 3.3 for using STG as guidance
289
+ 12: Sample at ∼ πauk $a _ { t } \sim \pi _ { k } ^ { \mathrm { a u g } } ( \cdot | s _ { t } , g )$
290
+ 13: if $e _ { t } = 0$ then
291
+ 14: // Execute base policy $\pi _ { k - 1 }$ by giving instruction $g _ { t } ^ { \prime }$
292
+ 15: $\mathrm { R U N } ( k - 1 , g _ { t } ^ { \prime } )$ 5
293
+ 16: else
294
+ 17: Execute $a _ { t }$
295
+ 18: end if
296
+ 19: Get current state st+1
297
+ 20: $r _ { t } \gets R ( s _ { t + 1 } , g )$
298
+ 21: Add $\langle s _ { t } , e _ { t } , g _ { t } ^ { \prime } , a _ { t } , r _ { t } , \pi _ { k } ^ { \mathrm { s w } } \big ( \cdot | s _ { t } \big ) , \pi _ { k } ^ { \mathrm { i n s t } } \big ( \cdot | s _ { t } , g \big ) , \pi _ { k } ^ { \mathrm { a u g } } \big ( \cdot | s _ { t } , g \big ) , g \rangle$ to Γ
299
+ 22: end if
300
+ 23: t ← t + 1
301
+ 24: until t > T or $\boldsymbol r _ { t } \neq 0$
302
+
303
+ # Algorithm 2 Learning global policy and STG at stage $k > 0$
304
+
305
+ 1: Specify $\lambda$ , maximum training iterations $N$ , alternating update rotation frequency $M$ , and reward threshold
306
+ $R _ { \mathrm { m i n } }$
307
+ 2: Initialize total replay memory $D \gets \emptyset$ and its subset for positive episodes $D _ { + } \emptyset$
308
+ 3: Initialize current iteration id $i \gets 0$ and set current updating term to be $\tau \gets 1$
309
+ 4: Initialize parameters of policies and value functions $\mathrm { { \dot { \Theta } } } = \langle \theta ^ { \mathrm { s w } } , \theta ^ { \mathrm { i n s t } } , \theta ^ { \mathrm { a u g } } , \theta _ { v } , \theta _ { v } ^ { \mathrm { s w } } \rangle$
310
+ 5: Initialize distributions of the STG as uniform distributions
311
+ 6: repeat
312
+ 7: Determine current learning phase by comparing average rewards of tasks in $\mathcal { G } _ { k - 1 }$ with $R _ { \mathrm { m i n } }$
313
+ 8: if in curriculum learning phase 1 then
314
+ 9: Sample a task $g$ from base task set $\mathcal { G } _ { k - 1 }$
315
+ 10: else
316
+ 11: Sample a task $g$ from global task set $\mathcal { G } _ { k }$
317
+ 12: end if
318
+ 13: //Run an episode
319
+ 15: 14: $\Gamma \operatorname { R U N } ( k , g )$
320
+ 16: if the maximum reward in $\Gamma$ is $+ 1$ then
321
+ 17: $D _ { + } \gets D _ { + } \cup \Gamma$
322
+ 18: Re-estimate the distributions of the STG based on updated $D _ { + }$ by MLE
323
+ 19: end if
324
+ 20: Sample $n \sim \mathrm { P o s s i o n } ( \lambda )$
325
+ 21: for $\bar { j } \in \{ 1 , \cdots , n \}$ do
326
+ 22: Sample a mini-batch $S$ from $D$
327
+ 23: Update $\Theta$ based on (9) and the $\tau$ -th term in (8)
328
+ 24: $i \stackrel { - } { } i + 1$
329
+ 25: if $i \% M = 0$ then
330
+ 26: $\tau \tau \% 3 + 1$
331
+ 27: end if
332
+ 28: end for
333
+ 29: until $i \geq N$
334
+
335
+ # B ARCHITECTURES OF MODULES
336
+
337
+ The architecture designs of all modules in our model shown in Figure 2 are as follows:
338
+
339
+ Visual Encoder extracts feature maps from an input RGB frame with the size of $8 4 \times 8 4$ through three convolutional layers: i) the first layer has 32 filters with kernel size of $8 \times 8$ and stride of 4; ii) the second layer has 64 filters with kernel size of $4 \times 4$ and stride of 2; iii) the last layer includes 64 filters with kernel size of $3 \times 3$ and stride of 1. The feature maps are flatten into a 3136-dim vector. We reduce the dimension of this vector to 256 by a fully connected (FC) layer resulting a 256-dim visual feature as the final output of this module.
340
+
341
+ Instruction Encoder first embeds each word into a 128-dim vector and combines them into a single vector by bag-of-words (BOW). Thus the output of this module is a 128-dim vector. For more complex instructions such as “Put $\mathbf { X }$ on y”, we replace BOW by a GRU with 128 hidden units.
342
+
343
+ Fusion layer simply concatenates the encoded visual and language representations together and outputs 384-dim fused representation. We then feed this 384-dim vector into an LSTM with 256 hidden units. The hidden layer output of the LSTM is served as the input of all policy modules and value function modules.
344
+
345
+ Switch Policy module has a FC layer with output dimension of 2 and a softmax activation to get $\pi _ { k } ^ { \mathrm { s w } } ( e | s , g )$ . Instruction Policy module has two separate FC layers, both of which are activated by softmax to output the distribution of skill, $p _ { k } ^ { \mathrm { s k i l l } } ( u _ { \mathrm { s k i l l } } | s , g )$ , and the distribution of item, $p _ { k } ^ { \mathrm { i t e m } } ( u _ { \mathrm { i t e m } } | s , g )$ , respectively. Augmented Policy module outputs $\pi _ { \mathrm { a u g } } ( a | s , g )$ also through a FC layer and softmax activation. The two Value Function modules, $V ( s , \bar { g } )$ and $\dot { V } ^ { \mathrm { s w } } ( s , e , g )$ , all have a scalar output through a FC layer.
346
+
347
+ Finally, the Selector module selects the action sampled from Augmented Policy module or Base Policy module based on the switching decision sampled from the Switch Policy module.
348
+
349
+ # C COMPOSED HIERARCHICAL PLANS
350
+
351
+ Figure 6 and Figure 7 show several plans for different tasks composed by executing our hierarchical policies.
352
+
353
+ ![](images/befdfbb5ae792734629bcca3d43768eaf0b510d8afdd69983060b44d6a65c07d.jpg)
354
+ Figure 6: Samples of typical hierarchical plans for different tasks composed by our global policies. Note that all tasks must start from the top-level policy. The branches are ordered from left to right in time indicating consecutive steps carried out by a policy. We also show the egocentric view and the item in hands at critical moments for a real episode example.
355
+
356
+ ![](images/b6448093b4a41c6d19f74c7174a7e08647dad5d2a95334aaf5cfe1fb5320b506.jpg)
357
+ Figure 7: Hierarchical plans for “Put x on y” tasks. Top: an example of performing trained tasks; bottom: an example of generalizing the plan composition to unseen tasks.
parse/train/SJJQVZW0b/SJJQVZW0b_content_list.json ADDED
@@ -0,0 +1,1651 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "HIERARCHICAL AND INTERPRETABLE SKILL ACQUISITION IN MULTI-TASK REINFORCEMENT LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Tianmin Shu∗ University of California, Los Angeles tianmin.shu@ucla.edu ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 431,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Caiming Xiong†& Richard Socher Salesforce Research {cxiong, rsocher}@salesforce.com ",
28
+ "bbox": [
29
+ 475,
30
+ 170,
31
+ 787,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 250,
43
+ 544,
44
+ 263
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Learning policies for complex tasks that require multiple different skills is a major challenge in reinforcement learning (RL). It is also a requirement for its deployment in real-world scenarios. This paper proposes a novel framework for efficient multi-task reinforcement learning. Our framework trains agents to employ hierarchical policies that decide when to use a previously learned policy and when to learn a new skill. This enables agents to continually acquire new skills during different stages of training. Each learned task corresponds to a human language description. Because agents can only access previously learned skills through these descriptions, the agent can always provide a human-interpretable description of its choices. In order to help the agent learn the complex temporal dependencies necessary for the hierarchical policy, we provide it with a stochastic temporal grammar that modulates when to rely on previously learned skills and when to execute new skills. We validate our approach on Minecraft games designed to explicitly test the ability to reuse previously learned skills while simultaneously learning new skills. ",
51
+ "bbox": [
52
+ 233,
53
+ 281,
54
+ 764,
55
+ 488
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 515,
66
+ 336,
67
+ 530
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Deep reinforcement learning has demonstrated success in policy search for tasks in domains like game playing (Mnih et al., 2015; Silver et al., 2016; 2017; Kempka et al., 2016; Mirowski et al., 2017) and robotic control (Levine et al., 2016a;b; Pinto & Gupta, 2016). However, it is very difficult to accumulate multiple skills using just one policy network Teh et al. (2017). Knowledge transfer techniques like distillation (Bengio, 2012; Rusu et al., 2016; Parisotto et al., 2016; Teh et al., 2017) have been applied to train a policy network both to learn new skills while preserving previously learned skill as well as to combine single-task policies into a multi-task policy. Existing approaches usually treat all tasks independently. This often prevents full exploration of the underlying relations between different tasks. They also typically assume that all policies share the same state space and action space. This precludes transfer of previously learned simple skills to a new policy defined over a space with differing states or actions. ",
74
+ "bbox": [
75
+ 174,
76
+ 546,
77
+ 825,
78
+ 699
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "When humans learn new skills, we often take advantage of our existing skills and build new capacities by composing or combining simpler ones. For instance, learning multi-digit multiplication relies on the knowledge of single-digit multiplication; learning how to properly prepare individual ingredients facilitates cooking dishes based on complex recipes. ",
85
+ "bbox": [
86
+ 174,
87
+ 705,
88
+ 823,
89
+ 762
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Inspired by this observation, we propose a hierarchical policy network which can reuse previously learned skills alongside and as subcomponents of new skills. It achieves this by discovering the underlying relations between skills. ",
96
+ "bbox": [
97
+ 174,
98
+ 768,
99
+ 825,
100
+ 810
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "To represent the skills and their relations in an interpretable way, we also encode all tasks using human instructions such as “put down.” This allows the agent to communicate its policy and generate plans using human language. Figure 1 illustrates an example: given the instruction “Stack blue,” our hierarchical policy learns to compose instructions and take multiple actions through a multi-level hierarchy in order to stack two blue blocks together. Steps from the top-level policy $\\pi _ { 3 }$ (i.e., the red branches) outline a learned high-level plan – “Get blue Find blue Put blue.” In addition, from lower level policies, we may also clearly see composed plans for other tasks. Based on policy $\\pi _ { 2 }$ , for instance, the task “Get blue” has two steps – “Find blue action: turn left,” whereas “Put blue” can be executed by a single action “put down” according to $\\pi _ { 3 }$ . Through this hierarchical model, we may i) accumulate tasks progressively from a terminal policy to a top-level policy and ii) unfold the global policy from top-level to basic actions. ",
107
+ "bbox": [
108
+ 174,
109
+ 818,
110
+ 825,
111
+ 887
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/4413927ac73dea13f3fbeb9963537490bbf5769bcca990701fd8974a57a20a6b.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Example of our multi-level hierarchical policy for a given task – stacking two blue blocks. Each arrow represents one step generated by a certain policy and the colors of arrows indicate the source policies. Note that at each step, a policy either utters an instruction for the lower-level policy or directly takes an action. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 223,
124
+ 102,
125
+ 776,
126
+ 308
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 174,
135
+ 402,
136
+ 825,
137
+ 486
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "In order to better track temporal relationships between tasks, we train a stochastic temporal grammar (STG) model on the sequence of policy selections (previously learned skill or new skill) for positive episodes. The STG focuses on modeling priorities of tasks: for example, it is necessary to obtain an object before putting it down. Integrating the STG into the hierarchical policy boosts efficiency and accuracy by explicitly modeling such commonsense world knowledge. ",
144
+ "bbox": [
145
+ 174,
146
+ 493,
147
+ 823,
148
+ 563
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "We validated our approach by testing it on object manipulation tasks implemented in a Minecraft world. Our experimental results demonstrate that this framework can (i) efficiently learn hierarchical policies and representations for multi-task RL; (ii) learn to utter human instructions to deploy pretrained policies, improve their explainability and reuse skills; and (iii) learn a stochastic temporal grammar via self-supervision to predict future actions. ",
155
+ "bbox": [
156
+ 174,
157
+ 570,
158
+ 823,
159
+ 640
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "2 RELATED WORK ",
166
+ "text_level": 1,
167
+ "bbox": [
168
+ 176,
169
+ 661,
170
+ 343,
171
+ 678
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Multi-task Reinforcement Learning. Previous work on multi-task reinforcement learning mainly falls into two families: knowledge transfer through distillation (Rusu et al., 2016; Parisotto et al., 2016; Teh et al., 2017; Tessler et al., 2017) or modular policy design through 2-layer hierarchical policy (Andreas et al., 2017). Our multi-level policy is more similar to the latter approach. The main differences between our model and the one in Andreas et al. (2017) are two-fold: i) we do not assume that a global task can be executed by only performing predefined sub-tasks; ii) in our multi-level policy, global tasks at a lower-level layer may also be used as sub-tasks by global tasks carried out at higher-levels. ",
178
+ "bbox": [
179
+ 173,
180
+ 694,
181
+ 825,
182
+ 805
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "Hierarchical Reinforcement Learning. Complex policies often require the modeling of longer temporal dependencies than what standard Markov decision processes (MDPs) can capture. To combat this, hierarchical reinforcement learning was introduced to extend MDPs to semi-MDPs (Sutton et al., 1999), where options (or macro actions) are introduced on top of primitive actions to decompose the goal of a task into multiple subgoals. In hierarchical RL, two sets of policies are trained: local policies that map states to primitive actions for achieving subgoals, and a global policy that initiates suitable subgoals in a sequence to achieve the final goal of a task (Bacon & Precup, 2015; Kulkarni et al., 2016; Vezhnevets et al., 2016; Tessler et al., 2017; Andreas et al., ",
189
+ "bbox": [
190
+ 174,
191
+ 811,
192
+ 825,
193
+ 924
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "2017). This two-layer hierarchical policy design significantly improves the ability of discovering complex policies which can not be learned by flat policies. However, it also often makes some strict assumptions that limit its flexibility: i) a task’s global policy cannot use a simpler task’s policy as part of its base policies; ii) a global policy is assumed to be executable by only using local policies over specific options, e.g., (Kulkarni et al., 2016; Andreas et al., 2017). In this work, we aim to learn a multi-level global policy which does not have these two assumptions. In addition, previous work usually uses a latent variable to represent a task. In our work, we encode a task by a human instruction to learn a task-oriented language grounding as well as to improve the interpretability of plans composed by our hierarchical policies. ",
200
+ "bbox": [
201
+ 174,
202
+ 103,
203
+ 825,
204
+ 229
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Language grounding via reinforcement learning. Recently, there has been work on grounding human language in 3D game environments (Hermann et al., 2017; Chaplot et al., 2017) or in text-based games (Narasimhan et al., 2015) via reinforcement learning. In these games agents are instructed to pick up an item described by a sentence. Besides visual grounding, Andreas et al. (2017) grounded instructions (not necessarily using human language) to local policies in hierarchical reinforcement learning. Our approach not only learns the language grounding for both visual knowledge and policies, but is also trained to utter human instructions as an explicit explanation of its decisions to humans. To our knowledge, this is the first model that learns to compose plans for complex tasks based on simpler ones which have human descriptions. ",
211
+ "bbox": [
212
+ 174,
213
+ 236,
214
+ 825,
215
+ 361
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "3 MODEL ",
222
+ "text_level": 1,
223
+ "bbox": [
224
+ 176,
225
+ 381,
226
+ 267,
227
+ 397
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "In this section, we discuss our multi-task RL setting, hierarchical policy, stochastic temporal grammar, and how interaction of these components can achieve plan composition. ",
234
+ "bbox": [
235
+ 174,
236
+ 412,
237
+ 823,
238
+ 440
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "3.1 MULTITASK RL SETTING ",
245
+ "text_level": 1,
246
+ "bbox": [
247
+ 176,
248
+ 457,
249
+ 390,
250
+ 472
251
+ ],
252
+ "page_idx": 2
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "Let $\\mathcal { G }$ be a task set, where each task $g$ is uniquely described by a human instruction. For simplicity, we assume a two-word tuple template consisting of a skill and an item for such a phrase, i.e., $\\langle u _ { \\mathrm { s k i l l } } , u _ { \\mathrm { i t e m } } \\rangle$ . Each tuple describes an object manipulation task. In this paper, we define $g = \\langle u _ { \\mathrm { s k i l l } } , u _ { \\mathrm { i t e m } } \\rangle$ by default, thus tasks and instructions are treated as interchangeable concepts. ",
257
+ "bbox": [
258
+ 174,
259
+ 483,
260
+ 823,
261
+ 540
262
+ ],
263
+ "page_idx": 2
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "For each task, we define a Markov decision process (MDP) represented by states $s \\in S$ and primitive actions $a \\in { \\mathcal { A } }$ . Rewards are specified for goals of different tasks, thus we use a function $R ( s , g )$ to signal the reward when performing any given task $g$ . ",
268
+ "bbox": [
269
+ 174,
270
+ 546,
271
+ 825,
272
+ 588
273
+ ],
274
+ "page_idx": 2
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "We assume that as a starting point, we have a terminal policy $\\pi _ { 0 }$ (as shown in Figure 2a) trained for a set of basic tasks (i.e., a terminal task set $\\mathcal { G } _ { 0 }$ ). The task set is then progressively increased as the agent is instructed to do more tasks by humans at multiple stages, such that ${ \\mathcal { G } } _ { 0 } \\subset { \\mathcal { G } } _ { 1 } \\subset \\cdots \\subset { \\mathcal { G } } _ { K }$ , which results in life-long learning of polices from $\\pi _ { 0 }$ for $\\mathcal { G } _ { 0 }$ to $\\pi _ { K }$ for $\\mathcal { G } _ { K }$ as illustrated by the “task accumulation” direction in Figure 1. At stage $k > 0$ , $\\mathcal { G } _ { k - 1 }$ is defined as the base task set of $\\mathcal { G } _ { k }$ . The tasks in $\\mathcal { G } _ { k - 1 }$ are named as base tasks at this stage and $\\pi _ { k - 1 }$ becomes the base policy of $\\pi _ { k }$ . Here, we utilize weak supervision from humans to define what tasks shall be augmented to the previous task set at each new stage. ",
279
+ "bbox": [
280
+ 174,
281
+ 595,
282
+ 825,
283
+ 707
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "3.2 HIERARCHICAL POLICY ",
290
+ "text_level": 1,
291
+ "bbox": [
292
+ 176,
293
+ 723,
294
+ 382,
295
+ 738
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "One of our key ideas is that a new task in current task set $\\mathcal { G } _ { k }$ may be decomposed into several simpler subtasks, some of which can be base tasks in $\\mathcal { G } _ { k - 1 }$ executable by base policy $\\pi _ { k - 1 }$ . Therefore, instead of using a flat policy (Figure 2a) as $\\pi _ { 0 }$ that directly maps state and human instruction to a primitive action, we propose a hierarchical design (Figure 2b) with the ability to reuse the base policy (i.e., $\\pi _ { k - 1 }$ ) for performing base tasks as subtasks. Namely, at stage $k$ , the global policy $\\pi _ { k }$ is defined by a hierarchical policy. This hierarchy consists of four sub-policies: a base policy for executing previously learned tasks, an instruction policy that manages communication between the global policy and the base policy, an augmented flat policy which allows the global policy to directly execute actions, and a switch policy that decides whether the global policy will primarily rely on the base policy or the augmented flat policy. ",
302
+ "bbox": [
303
+ 174,
304
+ 750,
305
+ 825,
306
+ 888
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "The base policy is defined to be the global policy at the previous stage $k - 1$ . The instruction policy maps state $s$ and task $g \\in { \\mathcal { G } } _ { k }$ to a base task $g ^ { \\prime } \\in \\mathcal { G } _ { k - 1 }$ . The purpose of this policy is to inform base policy $\\pi _ { k - 1 }$ which base tasks it needs to execute. Since an instruction is represented by two words, −we define the instruction policy using two conditionally independent distributions, i.e., $\\pi _ { k } ^ { \\mathrm { i n s t } } ( g ^ { \\prime } =$ $\\langle u _ { \\mathrm { s k i l l } } , u _ { \\mathrm { i t e m } } \\rangle | s , g ) = p _ { k } ^ { \\mathrm { s k i l l } } ( u _ { \\mathrm { s k i l l } } | s , g ) p _ { k } ^ { \\mathrm { i t e m } } ( u _ { \\mathrm { i t e m } } | s , g )$ . An augmented flat policy, $\\pi _ { k } ^ { \\mathrm { a u g } } ( a | s , \\tilde { g } )$ , maps state $s$ and task $g$ to a primitive action $a$ for ensuring that the global policy is able to perform novel tasks in $\\mathcal { G } _ { k }$ that can not be achieved by only reusing the base policy. To determine whether to perform a base task or directly perform a primitive action at each step, the global policy further includes a switch policy, $\\pi _ { k } ^ { \\mathrm { s w } } ( e | \\bar { s } , \\bar { g } )$ , where $e$ is a binary variable indicating the selection of the branches, $\\pi _ { k } ^ { \\mathrm { i n s t } }$ $e = 0$ ) or $\\pi _ { k } ^ { \\mathrm { a u g } }$ $( e = 1 )$ ). ",
313
+ "bbox": [
314
+ 174,
315
+ 895,
316
+ 823,
317
+ 924
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "image",
323
+ "img_path": "images/2a893964c5f174ad83afb2c3b4400b746dba3bee5f8ec8a7d2533674a304ac37.jpg",
324
+ "image_caption": [
325
+ "Figure 2: Flat and hierarchical policy architectures. $V ( s , g )$ and $V ^ { \\mathrm { S W } } ( s , e , g )$ are value functions defined in Section 4.1. "
326
+ ],
327
+ "image_footnote": [],
328
+ "bbox": [
329
+ 264,
330
+ 98,
331
+ 797,
332
+ 349
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "",
339
+ "bbox": [
340
+ 174,
341
+ 415,
342
+ 825,
343
+ 531
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "Note that the above description of the hierarchical policy does not account for an STG. The instruction policy and switch policy introduced here are simplified from the ones in the full model (see Section 3.3). ",
350
+ "bbox": [
351
+ 174,
352
+ 536,
353
+ 825,
354
+ 579
355
+ ],
356
+ "page_idx": 3
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "At each time step, we first sample $e _ { t }$ from our switch policy $\\pi _ { k } ^ { \\mathrm { s w } }$ to decide whether the global policy $\\pi _ { k }$ will rely on the base policy $\\pi _ { k - 1 }$ or the augmented flat policy $\\pi _ { k } ^ { \\mathrm { a u g } }$ . We also sample a new instruction $g _ { t } ^ { \\prime }$ from our instruction policy $\\pi _ { k } ^ { \\mathrm { i n s t } }$ in order to sample actions from the base policy. This can be summarized as: ",
361
+ "bbox": [
362
+ 174,
363
+ 585,
364
+ 823,
365
+ 643
366
+ ],
367
+ "page_idx": 3
368
+ },
369
+ {
370
+ "type": "equation",
371
+ "img_path": "images/0e5e66ffddd59eedeb9ac2a755af2199358a65b085a59389220a5b3f626df5ab.jpg",
372
+ "text": "$$\n\\begin{array} { r } { e _ { t } \\sim \\pi _ { k } ^ { \\mathrm { s w } } ( e _ { t } | s _ { t } , g ) , } \\end{array}\n$$",
373
+ "text_format": "latex",
374
+ "bbox": [
375
+ 434,
376
+ 642,
377
+ 560,
378
+ 660
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "equation",
384
+ "img_path": "images/7594395664ee7092527a8b4342ece637c4d6e3dae15b625843fc30d20165fa40.jpg",
385
+ "text": "$$\ng _ { t } ^ { \\prime } \\sim \\pi _ { k } ^ { \\mathrm { i n s t } } ( g _ { t } ^ { \\prime } | s _ { t } , g ) ,\n$$",
386
+ "text_format": "latex",
387
+ "bbox": [
388
+ 433,
389
+ 674,
390
+ 563,
391
+ 693
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "and finally ",
398
+ "bbox": [
399
+ 174,
400
+ 694,
401
+ 245,
402
+ 708
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "equation",
408
+ "img_path": "images/c5763204452be61ebdb77d7a4f67a10ebb6969e725678608fb4d674007428060.jpg",
409
+ "text": "$$\na _ { t } \\sim \\pi _ { k } ( a _ { t } | s _ { t } , g ) = \\pi _ { k - 1 } ( a _ { t } | s _ { t } , g _ { t } ^ { \\prime } ) ^ { ( 1 - e _ { t } ) } \\pi _ { k } ^ { \\mathrm { a u g } } ( a _ { t } | s _ { t } , g ) ^ { e _ { t } } ,\n$$",
410
+ "text_format": "latex",
411
+ "bbox": [
412
+ 307,
413
+ 707,
414
+ 689,
415
+ 726
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "where $\\pi _ { k }$ and $\\pi _ { k - 1 }$ are the global policies at stage $k$ and $k - 1$ respectively. After each step, we will also obtain a reward $r _ { t } = R ( s _ { t } , g )$ . ",
422
+ "bbox": [
423
+ 176,
424
+ 728,
425
+ 820,
426
+ 757
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "3.3 STOCHASTIC TEMPORAL GRAMMAR ",
433
+ "text_level": 1,
434
+ "bbox": [
435
+ 176,
436
+ 772,
437
+ 467,
438
+ 787
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "Different tasks may have temporal relations. For instance, to move an object, one needs to first find and pick up that object. There has been previous research (Si et al., 2011; Pirsiavash & Ramanan, 2014) using stochastic grammar models to capture such temporal relations. Inspired by this, we summarize temporal transitions between various tasks with a stochastic temporal grammar (STG). In our full model, the STG interacts with the hierarchical policy described above through the modified switch policy and instruction policy by using the STG as a prior. This amounts to treating the past history of switches and instructions in positive episodes as a guidance on whether the hierarchical policy should defer to the base policy to execute a specific base task or employ its own augmented flat policy to take a primitive action. ",
445
+ "bbox": [
446
+ 173,
447
+ 797,
448
+ 825,
449
+ 924
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "In an episode, the temporal sequence of $e _ { t }$ and $g _ { t } ^ { \\prime }$ , i.e., $\\{ \\langle e _ { t } , g _ { t } ^ { \\prime } \\rangle ; t \\geq 0 \\}$ , can be seen as a finite state Markov chain (Baum & Petrie, 1966). Note that the state here is referred to the tuple $\\langle e _ { t } , g _ { t } ^ { \\prime } \\rangle$ , which is not the state of the game $s _ { t } \\in S$ defined in Section 3.1. Consequently, at each level $k > 0$ , we may define an STG of a task $g$ by i) transition probabilities, $\\rho _ { k } ( e _ { t } , \\bar { g } _ { t } ^ { \\prime } | e _ { t - 1 } , g _ { t - 1 } ^ { \\prime } , g )$ , and ii) the distribution of $\\left. { e _ { 0 } , g _ { 0 } ^ { \\prime } } \\right.$ , $q _ { k } ( e _ { 0 } , g _ { 0 } ^ { \\prime } | g )$ , all of which follow categorical distributions. ",
456
+ "bbox": [
457
+ 174,
458
+ 103,
459
+ 825,
460
+ 175
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "With the estimated probabilities, we sample $e _ { t }$ and $g _ { t } ^ { \\prime }$ in an episode at level $k > 0$ w.r.t. to reshaped policies $\\pi _ { k } ^ { s w ^ { \\prime } }$ and $\\pi _ { k } ^ { \\mathrm { i n s t } ^ { \\prime } }$ respectively: ",
467
+ "bbox": [
468
+ 173,
469
+ 180,
470
+ 823,
471
+ 213
472
+ ],
473
+ "page_idx": 4
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "• If $t = 0$ , ",
478
+ "bbox": [
479
+ 215,
480
+ 223,
481
+ 290,
482
+ 238
483
+ ],
484
+ "page_idx": 4
485
+ },
486
+ {
487
+ "type": "equation",
488
+ "img_path": "images/7d49892b65e094a5a19ae3a738e837580d7f612d2058a2f42a99ea5aa76ff64c.jpg",
489
+ "text": "$$\ne _ { 0 } \\sim \\pi _ { k } ^ { \\mathrm { s w \\it / } } ( e _ { 0 } | s _ { t } , g ) \\propto \\pi _ { k } ^ { \\mathrm { s w } } \\big ( e _ { 0 } | s _ { t } , g \\big ) \\sum _ { g ^ { \\prime } \\in \\mathcal { G } _ { k - 1 } } q _ { k } \\big ( e _ { 0 } , g ^ { \\prime } | g \\big ) ,\n$$",
490
+ "text_format": "latex",
491
+ "bbox": [
492
+ 341,
493
+ 237,
494
+ 712,
495
+ 273
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "equation",
501
+ "img_path": "images/e60d53b37c28d96b7f65a692ede18c95ca9a6fc406930fff2b36e18d402eac46.jpg",
502
+ "text": "$$\ng _ { 0 } ^ { \\prime } \\sim \\pi _ { k } ^ { \\mathrm { i n s t } ^ { \\prime } } ( g _ { 0 } ^ { \\prime } | s _ { t } , g ) \\propto \\pi _ { k } ^ { \\mathrm { i n s t } } ( g _ { 0 } ^ { \\prime } | s _ { t } , g ) q _ { k } ( e _ { 0 } = 0 , g _ { 0 } ^ { \\prime } | g ) ;\n$$",
503
+ "text_format": "latex",
504
+ "bbox": [
505
+ 348,
506
+ 279,
507
+ 707,
508
+ 301
509
+ ],
510
+ "page_idx": 4
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "• Otherwise, ",
515
+ "bbox": [
516
+ 217,
517
+ 308,
518
+ 305,
519
+ 321
520
+ ],
521
+ "page_idx": 4
522
+ },
523
+ {
524
+ "type": "equation",
525
+ "img_path": "images/896543d46a2b9aa610bc26f927df966e0f3db01bc815b75e5ec5e7fa3a771324.jpg",
526
+ "text": "$$\ne _ { t } \\sim \\pi _ { k } ^ { \\mathrm { s w \\prime } } ( e _ { t } | e _ { t - 1 } , g _ { t - 1 } ^ { \\prime } , s _ { t } , g ) \\propto \\pi _ { k } ^ { \\mathrm { s w } } \\big ( e _ { t } | s _ { t } , g \\big ) \\sum _ { g ^ { \\prime } \\in \\mathcal { G } _ { k - 1 } } \\rho _ { k } ( e _ { t } , g ^ { \\prime } | e _ { t - 1 } , g _ { t - 1 } ^ { \\prime } , g ) ,\n$$",
527
+ "text_format": "latex",
528
+ "bbox": [
529
+ 269,
530
+ 329,
531
+ 784,
532
+ 364
533
+ ],
534
+ "page_idx": 4
535
+ },
536
+ {
537
+ "type": "equation",
538
+ "img_path": "images/fda08b0473cca6c6a907d017715d6b883a5bb2d373a3fee94c746f645201b6ab.jpg",
539
+ "text": "$$\ng _ { t } ^ { \\prime } \\sim \\pi _ { k } ^ { \\mathrm { i n s t ^ { \\prime } } } ( g _ { t } ^ { \\prime } | e _ { t - 1 } , g _ { t - 1 } ^ { \\prime } , s _ { t } , g ) \\propto \\pi _ { k } ^ { \\mathrm { i n s t } } ( g _ { t } ^ { \\prime } | s _ { t } , g ) \\rho _ { k } ( e _ { t } = 0 , g _ { t } ^ { \\prime } | e _ { t - 1 } , g _ { t - 1 } ^ { \\prime } , g ) .\n$$",
540
+ "text_format": "latex",
541
+ "bbox": [
542
+ 279,
543
+ 375,
544
+ 777,
545
+ 396
546
+ ],
547
+ "page_idx": 4
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "Note that primitive action sampling is not affected by the STG. ",
552
+ "bbox": [
553
+ 174,
554
+ 409,
555
+ 586,
556
+ 424
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "3.4 PLAN COMPOSITION ",
563
+ "text_level": 1,
564
+ "bbox": [
565
+ 176,
566
+ 441,
567
+ 357,
568
+ 455
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "Combined with our hierarchical policy and STG defined above, we are able to run an episode to compose a plan for a task specified by a human instruction. Algorithm 1 in Appendix A summarized this procedure with respect to the policy and STG at level $k$ . Note that to fully utilize the base policy, we assume that once triggered, a base policy will play to the end before the global policy considers the next move. ",
575
+ "bbox": [
576
+ 174,
577
+ 468,
578
+ 825,
579
+ 537
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "4 LEARNING ",
586
+ "text_level": 1,
587
+ "bbox": [
588
+ 174,
589
+ 559,
590
+ 295,
591
+ 575
592
+ ],
593
+ "page_idx": 4
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "The learning algorithm is outlined in Algorithm 2 in Appendix A. We learn our final hierarchical policy through $k$ stages of skill acquisition. Each of these stages is broken down into a base skill acquisition phase and a novel skill acquisition phase in a 2-phase curriculum learning. ",
598
+ "bbox": [
599
+ 176,
600
+ 592,
601
+ 823,
602
+ 633
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "In the base skill acquisition phase, we only sample tasks from the base task set $\\mathcal { G } _ { k - 1 }$ . This ensures that the global policy learns how to use previously learned skills by issuing instructions to the base policy. In other words, this phase teaches the agent how to connect its instruction policy to its base policy. Once the average reward for all base tasks exceeds a certain threshold, we proceed to the next phase. ",
609
+ "bbox": [
610
+ 173,
611
+ 641,
612
+ 825,
613
+ 710
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "In the novel skill acquisition phase, we sample tasks from the full task set, $\\mathcal { G } _ { k }$ , for the $k \\mathrm { . }$ -th stage of skill acquisition. It is in this phase that the agent can learn when to rely on the base policy and when to rely on the augmented flat policy for executing novel tasks. ",
620
+ "bbox": [
621
+ 174,
622
+ 717,
623
+ 823,
624
+ 761
625
+ ],
626
+ "page_idx": 4
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "In each of these phases, all policies are trained with advantage actor-critic (A2C) (Section 4.1) and distributions in the STG are estimated based on accumulated positive episodes (Section 4.2). ",
631
+ "bbox": [
632
+ 171,
633
+ 766,
634
+ 823,
635
+ 796
636
+ ],
637
+ "page_idx": 4
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "4.1 POLICY OPTIMIZATION BY ADVANTAGE ACTOR-CRITIC ",
642
+ "text_level": 1,
643
+ "bbox": [
644
+ 173,
645
+ 813,
646
+ 602,
647
+ 828
648
+ ],
649
+ "page_idx": 4
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "We use advantage actor-critic (A2C) for policy optimization with off-policy learning (Su et al., 2017). Here, we only consider the gradient for global policies (i.e., $k > 0 ,$ ) as we assume the terminal policy has been trained as initial condition. Let $V _ { k } ( s _ { t } , g )$ be a value function indicating the expected return given state $s _ { t }$ and task $g$ . To reflect the nature of the branch switching in our model, we introduce another value function $V _ { k } ^ { \\operatorname { s w } } ( s _ { t } , e _ { t } , g )$ to represent the expected return given state $s _ { t }$ , task $g$ and current branch selection $e _ { t }$ . ",
654
+ "bbox": [
655
+ 174,
656
+ 839,
657
+ 825,
658
+ 924
659
+ ],
660
+ "page_idx": 4
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "Thus, given a trajectory $\\Gamma ~ = ~ \\{ \\langle s _ { t } , e _ { t } , g _ { t } ^ { \\prime } , a _ { t } , r _ { t } , \\mu _ { k } ^ { \\mathrm { s w } } ( \\cdot | s _ { t } ) , \\mu _ { k } ^ { \\mathrm { i n s t } } ( \\cdot | s _ { t } , g ) , \\mu _ { k } ^ { \\mathrm { a u g } } ( \\cdot | s _ { t } , g ) , g \\rangle ~ : ~ t ~ =$ $0 , 1 , \\cdots , T \\}$ generated by old policies $\\mu _ { k } ^ { \\mathrm { s w } } ( \\cdot | s _ { t } ) , \\mu _ { k } ^ { \\mathrm { i n s t } } ( \\cdot | s _ { t } , g )$ , and $\\mu _ { k } ^ { \\mathrm { a u g } } ( \\cdot | s _ { t } , g )$ , the policy gradient reweighted by importance sampling can be formulated as ",
665
+ "bbox": [
666
+ 174,
667
+ 102,
668
+ 823,
669
+ 147
670
+ ],
671
+ "page_idx": 5
672
+ },
673
+ {
674
+ "type": "equation",
675
+ "img_path": "images/f9c89bfe5436972d58b038ee5f7bcb7745c22e3f98f19cf05349d5ae52bd7b7a.jpg",
676
+ "text": "$$\n\\begin{array} { r l } & { \\underbrace { \\omega _ { t } ^ { \\mathrm { s w } } \\nabla _ { \\theta ^ { \\mathrm { s w } } } \\log \\pi _ { k } ^ { \\mathrm { s w } } ( e _ { t } | s _ { t } , g ) A ( s _ { t } , g , e _ { t } ) } _ { \\mathrm { 1 s t ~ t e r m : ~ s w i t c h ~ p o l i c y ~ g r a d i e n t } } } \\\\ { + } & { \\underbrace { ( 1 - e _ { t } ) \\omega _ { t } ^ { \\mathrm { i n s t } } \\nabla _ { \\theta ^ { \\mathrm { i n s t } } } \\log \\pi _ { k } ^ { \\mathrm { i n s t } } ( g _ { t } ^ { \\prime } | s _ { t } , g ) A ( s _ { t } , g , e _ { t } , g _ { t } ^ { \\prime } ) } _ { \\mathrm { 2 n d ~ t e r m : ~ i n s t r u c t i o n ~ p o l i c y ~ g r a d i e n t } } } \\\\ { + } & { \\underbrace { e _ { t } \\omega _ { t } ^ { \\mathrm { a u g } } \\nabla _ { \\theta ^ { \\mathrm { a u g } } } \\log \\pi _ { k } ^ { \\mathrm { a u g } } ( a _ { t } | s _ { t } , g ) A ( s _ { t } , g , e _ { t } , a _ { t } ) } _ { \\mathrm { . } } , } \\end{array}\n$$",
677
+ "text_format": "latex",
678
+ "bbox": [
679
+ 318,
680
+ 154,
681
+ 679,
682
+ 248
683
+ ],
684
+ "page_idx": 5
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "where $\\begin{array} { r } { \\omega _ { t } ^ { \\mathrm { s w } } = \\frac { \\pi _ { k } ^ { \\mathrm { s w } } ( e _ { t } | s _ { t } , g ) } { \\mu _ { k } ^ { \\mathrm { s w } } ( e _ { t } | s _ { t } , g ) } } \\end{array}$ , $\\begin{array} { r } { \\omega _ { t } ^ { \\mathrm { i n s t } } ~ = ~ \\frac { \\pi _ { k } ^ { \\mathrm { i n s t } } ( g _ { t } ^ { \\prime } | s _ { t } , g ) } { \\mu _ { k } ^ { \\mathrm { i n s t } } ( g _ { t } ^ { \\prime } | s _ { t } , g ) } } \\end{array}$ , and $\\begin{array} { r } { \\omega _ { t } ^ { \\mathrm { a u g } } = \\frac { \\pi _ { k } ^ { \\mathrm { a u g } } ( a _ { t } | s _ { t } , g ) } { \\mu _ { k } ^ { \\mathrm { a u g } } ( a _ { t } | s _ { t } , g ) } } \\end{array}$ are importance sampling weights for the three terms respectively; $A ( s _ { t } , g , e _ { t } )$ , $A ( s _ { t } , g , e _ { t } , g _ { t } ^ { \\prime } )$ , and $A ( s _ { t } , g , e _ { t } , a _ { t } )$ are estimates of advantage functions, which have multiple possible definitions. In this paper, we define e, $A ( s _ { t } , g , e _ { t } ) =$ ${ \\sum } _ { \\tau = 0 } ^ { \\infty } \\overset { \\cdot } { \\gamma } { \\tilde { F } } ( s _ { t + \\tau } , g ) \\ - \\ V _ { k } ( s _ { t } , g )$ $\\begin{array} { r c l } { { \\hat { A ( \\boldsymbol { s } _ { t } , \\boldsymbol { g } , \\boldsymbol { e } _ { t } , \\boldsymbol { g } _ { t } ^ { \\prime } ) } ~ = ~ { \\cal A ( \\boldsymbol { s } _ { t } , \\boldsymbol { g } , \\boldsymbol { e } _ { t } , \\boldsymbol { a } _ { t } ) } ~ = ~ \\sum _ { \\tau = 0 } ^ { \\infty } \\gamma ^ { \\tau } \\hat { R } ( \\boldsymbol { s } _ { t + \\tau } , \\boldsymbol { g } ) ~ - } } \\end{array}$ $V _ { k } ^ { \\mathrm { s w } } ( s _ { t } , g , e _ { t } )$ , where $\\gamma$ tis the discounted coefficient. ",
689
+ "bbox": [
690
+ 174,
691
+ 265,
692
+ 826,
693
+ 359
694
+ ],
695
+ "page_idx": 5
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "Finally, the value functions can be updated using the following gradient: ",
700
+ "bbox": [
701
+ 174,
702
+ 366,
703
+ 647,
704
+ 381
705
+ ],
706
+ "page_idx": 5
707
+ },
708
+ {
709
+ "type": "equation",
710
+ "img_path": "images/af389ea56bc8853d3f1325594040632d368f19f905720d6db9b79974dff1190c.jpg",
711
+ "text": "$$\n\\nabla _ { \\theta _ { v } } \\frac { 1 } { 2 } \\left[ \\sum _ { \\tau = 0 } ^ { \\infty } \\gamma ^ { \\tau } R ( s _ { t + \\tau } , g ) - V _ { k } ( s _ { t } , g ) \\right] ^ { 2 } + \\nabla _ { \\theta _ { v } ^ { \\mathrm { s w } } } \\frac { 1 } { 2 } \\left[ \\sum _ { \\tau = 0 } ^ { \\infty } \\gamma ^ { \\tau } R ( s _ { t + \\tau } , g ) - V _ { k } ^ { \\mathrm { s w } } ( s _ { t } , e _ { t } , g ) \\right] ^ { 2 } .\n$$",
712
+ "text_format": "latex",
713
+ "bbox": [
714
+ 192,
715
+ 387,
716
+ 784,
717
+ 433
718
+ ],
719
+ "page_idx": 5
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "To increase the episode efficiency, after running an episode, we conduct $n$ mini-batch updates where $n$ is sampled from a Poisson distribution with $\\lambda = 4$ , similar to Wang et al. (2017). Note that one can also apply other common policy optimization methods, e.g., A3C (Mnih et al., 2016), to our model. We leave this as future work to evaluate the efficiency of different methods when using our model. ",
724
+ "bbox": [
725
+ 174,
726
+ 445,
727
+ 825,
728
+ 516
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "Optimizing all three sub-policies together leads to unstable learning. To avoid this, we apply a simple alternating update procedure. For each set of $M$ iterations, we keep two of the sub-policies fixed and train only the single policy that remains. When we reach $M$ iterations, we switch the policy that is trained. For all experiments in this paper, we use $M = 5 0 0$ . This alternating update procedure is used within both phases of curriculum learning. ",
735
+ "bbox": [
736
+ 173,
737
+ 522,
738
+ 825,
739
+ 593
740
+ ],
741
+ "page_idx": 5
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "4.2 LEARNING AN STG ",
746
+ "text_level": 1,
747
+ "bbox": [
748
+ 176,
749
+ 609,
750
+ 351,
751
+ 625
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "If at any point in the aforementioned training process the agent receives a positive reward after an episode, we update the stochastic temporal grammar. $\\rho _ { k }$ and $q _ { k }$ of the STG are both initialized to be uniform distributions. Since the STG is a finite state Markov chain over tuples $\\left. { e _ { t } , g _ { t } ^ { \\prime } } \\right.$ , we use maximum likelihood estimation (MLE) to update the distributions (Baum & Petrie, 1966). As the training progresses, the STG starts to guide the exploration. ",
758
+ "bbox": [
759
+ 173,
760
+ 636,
761
+ 825,
762
+ 707
763
+ ],
764
+ "page_idx": 5
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "To avoid falling into local minima in the early stages of training, it is important to encourage random exploration in early episodes. Based on our experiments, we find that using $\\epsilon$ -greedy suffices. ",
769
+ "bbox": [
770
+ 173,
771
+ 712,
772
+ 825,
773
+ 742
774
+ ],
775
+ "page_idx": 5
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "5 EXPERIMENTS ",
780
+ "text_level": 1,
781
+ "bbox": [
782
+ 174,
783
+ 762,
784
+ 326,
785
+ 777
786
+ ],
787
+ "page_idx": 5
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "5.1 GAME ENVIRONMENT AND TASK SPECIFICATIONS ",
792
+ "text_level": 1,
793
+ "bbox": [
794
+ 174,
795
+ 792,
796
+ 563,
797
+ 808
798
+ ],
799
+ "page_idx": 5
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Figure 3 (left) shows the two room environment in Minecraft that we created using the Malmo platform (Johnson et al., 2016). In each episode, an arbitrary number of blocks with different colors (totaling 6 colors in our experiments) are randomly placed in one of the two rooms. The agent is initially placed in the same room with the items. We consider five sets of tasks: i) ${ \\mathcal { G } } ^ { ( 0 ) } = \\{ { } ^ { { } } \\mathrm { F i n d } \\mathrm { x } ^ { } \\}$ , walking to the front of a block with color $\\mathbf { X }$ , ii) $\\mathcal { G } ^ { ( 1 ) } = \\{ { \\bf \\ddot { \\Phi } } { \\bf G e t x } ^ { , * } \\}$ , picking up a block with color $\\mathbf { X }$ , iii) $\\mathcal { G } ^ { ( 2 ) } = \\{ { ^ { } \\mathrm { P u t } } \\mathrm { x } ^ { , , * } \\}$ , putting down a block with color $\\mathbf { X }$ , iv) $\\mathcal { G } ^ { ( 3 ) } = \\{ ^ { \\cdots } \\mathrm { S t a c k } \\mathrm { x } ^ { \\cdots } \\}$ , stacking two blocks with color $\\mathbf { X }$ together, and v) $\\mathcal { G } ^ { ( 4 ) } = \\{ { ^ { \\mathrm { ? P u t ~ x ~ o n ~ y } } } \\}$ , putting a block with color $\\mathbf { X }$ on top of a block with a different color y. In total, there are 54 tasks. An agent can perform the following actions: “move forward,” “move backward,” “move left,” “move right,” “turn left,” “turn right,” “pick up,” “put down.” ",
804
+ "bbox": [
805
+ 173,
806
+ 819,
807
+ 825,
808
+ 925
809
+ ],
810
+ "page_idx": 5
811
+ },
812
+ {
813
+ "type": "image",
814
+ "img_path": "images/cf57cf2f333bf44708a29c1875358f75f741052352aafc00f4400f2bb462ec1a.jpg",
815
+ "image_caption": [
816
+ "Figure 3: Room layout. Left: training environment; right: unseen rooms for testing. "
817
+ ],
818
+ "image_footnote": [],
819
+ "bbox": [
820
+ 400,
821
+ 101,
822
+ 596,
823
+ 161
824
+ ],
825
+ "page_idx": 6
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "",
830
+ "bbox": [
831
+ 174,
832
+ 205,
833
+ 825,
834
+ 247
835
+ ],
836
+ "page_idx": 6
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "Without loss of generality, we assume the following skill acquisition order: $\\mathcal { G } _ { k } = \\cup _ { \\kappa = 1 } ^ { k } \\mathcal { G } ^ { ( \\kappa ) }$ , $\\forall k =$ $0 , 1 , 2 , 3 , 4$ , which is a natural way to increase skill sets. One may also alter the order, and the main conclusions shall still hold. This results in policies $\\{ \\pi _ { k } : k = \\dot { 0 , } 1 , 2 , 3 , 4 \\}$ for these four task sets. For the last task set, we hold out 6 tasks out of all 30 tasks (i.e., 3 pairs of colors out of 15 color combinations) for testing and the agent will not be trained on these 6 tasks. ",
841
+ "bbox": [
842
+ 173,
843
+ 256,
844
+ 825,
845
+ 325
846
+ ],
847
+ "page_idx": 6
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "We adopt a sparse reward function: when reaching the goal of a task, the agent gets a $+ 1$ reward; when generating an instruction $g ^ { \\prime }$ that is not executable in current game (e.g., trying to find an object that does not exist in the environment), we give a $- 0 . 5$ reward; otherwise, no reward will be given. Whenever a non-zero reward is given, the game terminates. Note that the negative reward is only given during training. ",
852
+ "bbox": [
853
+ 174,
854
+ 333,
855
+ 825,
856
+ 404
857
+ ],
858
+ "page_idx": 6
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "5.2 IMPLEMENTATION DETAILS ",
863
+ "text_level": 1,
864
+ "bbox": [
865
+ 176,
866
+ 424,
867
+ 406,
868
+ 438
869
+ ],
870
+ "page_idx": 6
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "We specify the architecture of the modules in our model in Appendix B, where the visual and instruction encoding modules have the same architectures as the ones in Hermann et al. (2017). We train the network with RMSProp (Tieleman & Hinton, 2012) with a learning rate of 0.0001. We set the batch size to be 36 and clip the gradient to a unit norm. For all tasks, the discounted coefficient is $\\gamma = 0 . 9 5$ . For the 2-phase curriculum learning, we set the average reward threshold to be 0.9 (average rewards are estimated from the most recent 200 episodes of each task). ",
875
+ "bbox": [
876
+ 173,
877
+ 452,
878
+ 825,
879
+ 535
880
+ ],
881
+ "page_idx": 6
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "To encourage random exploration, we apply $\\epsilon$ -greedy to the decision sampling for the global policy (i.e., only at the top level $k$ at each stage $k > 0$ ), where $\\epsilon$ gradually decreases from 0.1 to 0. ",
886
+ "bbox": [
887
+ 173,
888
+ 542,
889
+ 821,
890
+ 571
891
+ ],
892
+ "page_idx": 6
893
+ },
894
+ {
895
+ "type": "image",
896
+ "img_path": "images/175631828543a6110950c7ec8016ac45f5e9a471c97beadfd6ead1193e4ee11a.jpg",
897
+ "image_caption": [
898
+ "Figure 4: Comparison of learning efficiency on two task sets: (a) $\\mathcal { G } _ { 1 }$ for global policy $\\pi _ { 1 }$ and (b) $\\mathcal { G } _ { 3 }$ for global policy $\\pi _ { 3 }$ respectively. "
899
+ ],
900
+ "image_footnote": [],
901
+ "bbox": [
902
+ 279,
903
+ 599,
904
+ 725,
905
+ 752
906
+ ],
907
+ "page_idx": 6
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "5.3 LEARNING EFFICIENCY ",
912
+ "text_level": 1,
913
+ "bbox": [
914
+ 174,
915
+ 827,
916
+ 377,
917
+ 840
918
+ ],
919
+ "page_idx": 6
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "To evaluate the learning efficiency, we compare our full model with 1) a flat policy (Figure 2a) as in Hermann et al. (2017) fine-tuned on the terminal policy $\\pi _ { 0 }$ , 2) H-DRLN (Tessler et al., 2017) and variants of our approach: 3) ours without STG, 4) ours without alternating policy optimization, and 5) ours without $V _ { k } ^ { \\mathrm { s w } } ( s , e , g )$ (replaced by $V _ { k } ( s , g )$ instead). Note that all the rewards have been converted to the same range, i.e., $[ 0 , 1 ]$ for the sake of fair comparison. ",
924
+ "bbox": [
925
+ 174,
926
+ 853,
927
+ 825,
928
+ 924
929
+ ],
930
+ "page_idx": 6
931
+ },
932
+ {
933
+ "type": "image",
934
+ "img_path": "images/395abc0c2629ae8cf2f89ef88a8c0ffcb82e634d6590d88ddd19764c2ea9b7a3.jpg",
935
+ "image_caption": [
936
+ "Figure 5: Effects of different training protocols. "
937
+ ],
938
+ "image_footnote": [],
939
+ "bbox": [
940
+ 271,
941
+ 112,
942
+ 727,
943
+ 265
944
+ ],
945
+ "page_idx": 7
946
+ },
947
+ {
948
+ "type": "table",
949
+ "img_path": "images/0b135e086c30816ce88006a0b085672256a40d1c89cfc1ee81b51bd1fe89cf59.jpg",
950
+ "table_caption": [
951
+ "Table 1: Success rates in different game settings including scenarios seen during training, new environments and new tasks. All policies are trained in the same environment in seen scenarios. "
952
+ ],
953
+ "table_footnote": [],
954
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Seen scenarios</td><td colspan=\"4\">Unseen environments</td><td>Unseen tasks</td></tr><tr><td>Find x</td><td>Get x</td><td>Put x</td><td>Stack x</td><td>Put x on y</td><td>Find x</td><td>Get x</td><td>Put x</td><td>Stack x</td><td>Put x on y</td></tr><tr><td>Full model</td><td>0.995</td><td>0.970</td><td>1.00</td><td>0.955</td><td>0.873</td><td>0.723</td><td>0.648</td><td>1.00</td><td>0.613</td><td>0.792</td></tr><tr><td>Flat policy</td><td>0.980</td><td>0.965</td><td>1.00</td><td>0</td><td>0</td><td>0.515</td><td>0.450</td><td>1.00</td><td>0</td><td>0</td></tr></table>",
955
+ "bbox": [
956
+ 199,
957
+ 354,
958
+ 810,
959
+ 409
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "In Figure 4a, we use various methods to train policy $\\pi _ { 1 }$ for the task set $\\mathcal { G } _ { 1 }$ based on the same base policy $\\pi _ { 0 }$ . The large dip in the reward indicates that the curriculum learning switches from phase 1 to phase 2. From Figure 4a, we may clearly see that our full model and variants can all converge within 22,000 episodes, whereas the average reward of the flat policy is still below 0.8 given the same amount of episodes. In addition, our full model finishes phase 1 significantly faster than other methods and its curve of average reward maintains notably higher than the remaining ones. ",
966
+ "bbox": [
967
+ 174,
968
+ 443,
969
+ 825,
970
+ 526
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "To further examine the learning efficiency during phase 2 when new tasks are added into the training process, we first pretrain $\\pi _ { 3 }$ using our full model following our definition of phase 1 in the curriculum learning. We then proceed to learning phase 2 using different approaches all based on this pretrained policy. As shown in Figure 4b, our full model has the fastest convergence and the highest average reward upon convergence. By comparing Figure 4a and Figure 4b, we further show that our full model has a bigger advantage when learning more complex tasks. ",
977
+ "bbox": [
978
+ 174,
979
+ 534,
980
+ 825,
981
+ 617
982
+ ],
983
+ "page_idx": 7
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Since we have a large number of previously learned tasks, H-DRLN is clearly not able to learn a descent policy according the results. Note that an H-DRLN can only learn one task at a time, each of its curves in Figure 4 is for a single task (i.e., “Get white” and “Stack white” respectively). ",
988
+ "bbox": [
989
+ 174,
990
+ 625,
991
+ 825,
992
+ 666
993
+ ],
994
+ "page_idx": 7
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "To demonstrate the effects of our 2-phase curriculum learning and the $- 0 . 5$ penalty on the training efficiency, we visualize the learning curves of our model trained without the curriculum learning or without the penalty along with the one trained with the full protocol in Figure 5. According to the results, the curriculum learning indeed helps accelerate the convergence, which empirically proves the importance of encouraging a global policy to reuse relevant skills learned by its base policy. It also appears that adding the penalty is an insignificant factor on learning efficiency except that it helps shorten the episode lengths as an episode ends whenever a penalty is given. ",
999
+ "bbox": [
1000
+ 174,
1001
+ 672,
1002
+ 825,
1003
+ 771
1004
+ ],
1005
+ "page_idx": 7
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "5.4 POLICY GENERALIZATION ",
1010
+ "text_level": 1,
1011
+ "bbox": [
1012
+ 176,
1013
+ 791,
1014
+ 398,
1015
+ 805
1016
+ ],
1017
+ "page_idx": 7
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Finally, we evaluate how the hierarchical design and encoding tasks by human instructions benefit the generalization of learned policies in the following three ways. ",
1022
+ "bbox": [
1023
+ 173,
1024
+ 818,
1025
+ 823,
1026
+ 847
1027
+ ],
1028
+ "page_idx": 7
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "First, we train $\\pi _ { 1 }$ in a simpler setting where in each episode, only one item (i.e, the target item of the given task) is present. We then test the policy $\\pi _ { 1 }$ for “Get $\\mathbf { X } ^ { \\prime \\prime }$ tasks in a room where there will be multiple items serving as distraction and the agent must interact with the correct one. Both the flat policy and the hierarchical policy can achieve near perfect testing success rate in the simple setting. However, in the more complex setting, flat policy can not differentiate the target item from other items that are also placed in the room (the success rate drops to $2 9 \\%$ ), whereas our hierarchical policy still maintains a high success rate $( 9 4 \\% )$ . This finding suggests that the hierarchical policy not only picks up the concept of “find” and “get” skills as the flat policy does, but also inherits the concept of items from the base policy by learning to utter correct instructions to deploy “find” skill in the base policy. ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 854,
1036
+ 823,
1037
+ 924
1038
+ ],
1039
+ "page_idx": 7
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "",
1044
+ "bbox": [
1045
+ 174,
1046
+ 103,
1047
+ 823,
1048
+ 174
1049
+ ],
1050
+ "page_idx": 8
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Second, we reconfigure the room layout in Figure 3 (left) and test the flat policy and our full model in the new rooms shown in Figure 3 (right) for various tasks. Both policies are trained in the same environment. There are multiple items in a room for both training and testing cases. The success rates are summarized in Table 1. Using the flat policy results in a much bigger drop in the testing success rate compared to using out full model. This is mainly because that our global policy will repeatedly call its base policy to execute the same task until the agent finally achieves the goal even though the trained agent is unable to reach the goal by just one shot due to the simplicity of the training environment. ",
1055
+ "bbox": [
1056
+ 174,
1057
+ 180,
1058
+ 825,
1059
+ 291
1060
+ ],
1061
+ "page_idx": 8
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Third, we evaluate the learned policy on the 6 unseen tasks for the “Put x on y” tasks as a zeroshort evaluation. The success rate reported in Table 1 suggests that our model is able to learn the decomposition of human instructions and generate correct hierarchical plans to perform unseen tasks. ",
1066
+ "bbox": [
1067
+ 174,
1068
+ 299,
1069
+ 825,
1070
+ 354
1071
+ ],
1072
+ "page_idx": 8
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "5.5 POLICY INTERPRETABILITY ",
1077
+ "text_level": 1,
1078
+ "bbox": [
1079
+ 176,
1080
+ 373,
1081
+ 406,
1082
+ 387
1083
+ ],
1084
+ "page_idx": 8
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "We visualize typical hierarchical plans of several tasks generated by global policies learned by our full model in Appendix C (Figure 6 and Figure 7)1. It can been seen from the examples that our global policies adjust the composed plans in different scenarios. For instance, in the second plan on the first row, $\\pi _ { 1 }$ did not deploy base policy $\\pi _ { 0 }$ as the agent was already in front of the target item at the beginning of the episode, whereas in the plan on the second row, $\\pi _ { 1 }$ deployed $\\pi _ { 0 }$ for the “Find $\\mathbf { X } ^ { \\prime \\prime }$ base task twice consecutively, as it did not finish the base task in the first call. ",
1089
+ "bbox": [
1090
+ 174,
1091
+ 400,
1092
+ 825,
1093
+ 483
1094
+ ],
1095
+ "page_idx": 8
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "6 CONCLUSION ",
1100
+ "text_level": 1,
1101
+ "bbox": [
1102
+ 174,
1103
+ 506,
1104
+ 318,
1105
+ 521
1106
+ ],
1107
+ "page_idx": 8
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "In this work, we have proposed a hierarchal policy modulated by a stochastic temporal grammar as a novel framework for efficient multi-task reinforcement learning through multiple training stages. Each task in our settings is described by a human instruction. The resulting global policy is able to reuse previously learned skills for new tasks by generating corresponding human instructions to inform base policies to execute relevant base tasks. We evaluate this framework in Minecraft games and have shown that our full model i) has a significantly higher learning efficiency than a flat policy does, ii) generalizes well in unseen environments, and iii) is capable of composing hierarchical plans in an interpretable manner. ",
1112
+ "bbox": [
1113
+ 174,
1114
+ 537,
1115
+ 825,
1116
+ 650
1117
+ ],
1118
+ "page_idx": 8
1119
+ },
1120
+ {
1121
+ "type": "text",
1122
+ "text": "Currently, we rely on weak supervision from humans to define what skills to be learned in each training stage. In the future, we plan to automatically discover the optimal training procedures to increase the task set. ",
1123
+ "bbox": [
1124
+ 176,
1125
+ 656,
1126
+ 825,
1127
+ 699
1128
+ ],
1129
+ "page_idx": 8
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "REFERENCES ",
1134
+ "text_level": 1,
1135
+ "bbox": [
1136
+ 176,
1137
+ 722,
1138
+ 285,
1139
+ 737
1140
+ ],
1141
+ "page_idx": 8
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Jacob Andreas, Dan Klein, and Sergey Levine. Modular multitask reinforcement learning with policy sketches. In International Conference on Machine Learning (ICML), 2017. ",
1146
+ "bbox": [
1147
+ 173,
1148
+ 746,
1149
+ 823,
1150
+ 773
1151
+ ],
1152
+ "page_idx": 8
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Pierre-Luc Bacon and Doina Precup. The option-critic architecture. In NIPS Deep Reinforcement Learning Workshop, 2015. ",
1157
+ "bbox": [
1158
+ 173,
1159
+ 786,
1160
+ 823,
1161
+ 815
1162
+ ],
1163
+ "page_idx": 8
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Leonard E. Baum and Ted Petrie. Statistical inference for probabilistic functions of finite state markov chains. The Annals of Mathematical Statistics, 37(6):1554–1563, 1966. ",
1168
+ "bbox": [
1169
+ 171,
1170
+ 827,
1171
+ 823,
1172
+ 856
1173
+ ],
1174
+ "page_idx": 8
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "Yoshua Bengio. Deep learning of representations for unsupervised and transfer learning. In JMLR: Workshop on Unsupervised and Transfer Learning, 2012. ",
1179
+ "bbox": [
1180
+ 176,
1181
+ 868,
1182
+ 823,
1183
+ 897
1184
+ ],
1185
+ "page_idx": 8
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Devendra Singh Chaplot, Kanthashree Mysore Sathyendra, Rama Kumar Pasumarthi, Dheeraj Rajagopal, and Ruslan Salakhutdinov. Gated-attention architectures for task-oriented language grounding. arXiv preprint arXiv:1706.0723, 2017. ",
1190
+ "bbox": [
1191
+ 176,
1192
+ 103,
1193
+ 821,
1194
+ 146
1195
+ ],
1196
+ "page_idx": 9
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "Karl Moritz Hermann, Felix Hill, Simon Green, Fumin Wang, Ryan Faulkner, Hubert Soyer, David Szepesvari, Wojtek Czarnecki, Max Jaderberg, Denis Teplyashin, Marcus Wainwright, Chris Apps, Demis Hassabis, and Phil Blunsom. Grounded language learning in a simulated 3d world. arXiv preprint arXiv:1706.06551, 2017. ",
1201
+ "bbox": [
1202
+ 174,
1203
+ 154,
1204
+ 825,
1205
+ 210
1206
+ ],
1207
+ "page_idx": 9
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "Matthew Johnson, Katja Hofmann, Tim Hutton, and David Bignell. The malmo platform for artificial intelligence experimentation. In International Joint Conference on Artificial Intelligence (IJCAI), 2016. ",
1212
+ "bbox": [
1213
+ 173,
1214
+ 219,
1215
+ 825,
1216
+ 261
1217
+ ],
1218
+ "page_idx": 9
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "Michał Kempka, Marek Wydmuch, Grzegorz Runc, Jakub Tocze, and Wojciech Jaskowski. Viz- ´ doom: A doom-based ai research platform for visual reinforcement learning. In IEEE Conference on Computational Intelligence and Games (CIG), 2016. ",
1223
+ "bbox": [
1224
+ 174,
1225
+ 270,
1226
+ 825,
1227
+ 313
1228
+ ],
1229
+ "page_idx": 9
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "Tejas D. Kulkarni, Karthik Narasimhan, Ardavan Saeedi, , and Josh Tenenbaum. Hierarchical deep reinforcement learning: Integrating temporal abstraction and intrinsic motivation. In Advances in Neural Information Processing Systems (NIPS), 2016. ",
1234
+ "bbox": [
1235
+ 174,
1236
+ 320,
1237
+ 825,
1238
+ 364
1239
+ ],
1240
+ "page_idx": 9
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. Journal of Machine Learning Research, 17(39):1–40, 2016a. ",
1245
+ "bbox": [
1246
+ 173,
1247
+ 371,
1248
+ 821,
1249
+ 401
1250
+ ],
1251
+ "page_idx": 9
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "Sergey Levine, Peter Pastor, Alex Krizhevsky, Julian Ibarz, , and Deirdre Quillen. Learning handeye coordination for robotic grasping with deep learning and large-scale data collection. In ” International Symposium on Experimental Robotics (ISER), 2016b. ",
1256
+ "bbox": [
1257
+ 174,
1258
+ 409,
1259
+ 825,
1260
+ 452
1261
+ ],
1262
+ "page_idx": 9
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "Piotr Mirowski, Razvan Pascanu, Fabio Viola, Hubert Soyer, Andy Ballard, Andrea Banino, Misha Denil, Ross Goroshin, Laurent Sifre, Koray Kavukcuoglu, Dharshan Kumaran, and Raia Hadsell. Learning to navigate in complex environments. In International Conference on Learning Representations (ICLR), 2017. ",
1267
+ "bbox": [
1268
+ 174,
1269
+ 459,
1270
+ 825,
1271
+ 516
1272
+ ],
1273
+ "page_idx": 9
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "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, 2015. ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 523,
1281
+ 825,
1282
+ 594
1283
+ ],
1284
+ "page_idx": 9
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning (ICML), 2016. ",
1289
+ "bbox": [
1290
+ 174,
1291
+ 603,
1292
+ 823,
1293
+ 646
1294
+ ],
1295
+ "page_idx": 9
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "Karthik Narasimhan, Tejas Kulkarni, and Regina Barzilay. Language understanding for text-based games using deep reinforcement learning. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2015. ",
1300
+ "bbox": [
1301
+ 176,
1302
+ 654,
1303
+ 823,
1304
+ 698
1305
+ ],
1306
+ "page_idx": 9
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "Emilio Parisotto, Jimmy Lei Ba, and Ruslan Salakhutdinov. Actor-mimic: Deep multitask and transfer reinforcement learning. In International Conference on Learning Representations (ICLR), 2016. ",
1311
+ "bbox": [
1312
+ 174,
1313
+ 705,
1314
+ 825,
1315
+ 747
1316
+ ],
1317
+ "page_idx": 9
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "Lerrel Pinto and Abhinav Gupta. Supersizing self-supervision: Learning to grasp from 50k tries and 700 robot hours. In IEEE Conference on Robotics and Automation (ICRA), 2016. ",
1322
+ "bbox": [
1323
+ 169,
1324
+ 756,
1325
+ 823,
1326
+ 785
1327
+ ],
1328
+ "page_idx": 9
1329
+ },
1330
+ {
1331
+ "type": "text",
1332
+ "text": "Hamed Pirsiavash and Deva Ramanan. Parsing videos of actions with segmental grammars. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2014. ",
1333
+ "bbox": [
1334
+ 171,
1335
+ 792,
1336
+ 823,
1337
+ 821
1338
+ ],
1339
+ "page_idx": 9
1340
+ },
1341
+ {
1342
+ "type": "text",
1343
+ "text": "Andrei A Rusu, Sergio Gomez Colmenarejo, Caglar Gulcehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu, Volodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. Policy distillation. In International Conference on Learning Representations (ICLR), 2016. ",
1344
+ "bbox": [
1345
+ 176,
1346
+ 829,
1347
+ 821,
1348
+ 873
1349
+ ],
1350
+ "page_idx": 9
1351
+ },
1352
+ {
1353
+ "type": "text",
1354
+ "text": "Zhangzhang Si, Mingtao Pei, Benjamin Yao, and Song-Chun Zhu. Unsupervised learning of event and-or grammar and semantics from video. In IEEE International Conference on Computer Vision (ICCV), 2011. ",
1355
+ "bbox": [
1356
+ 174,
1357
+ 881,
1358
+ 823,
1359
+ 924
1360
+ ],
1361
+ "page_idx": 9
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "text": "David Silver, Aja Huang, Chris J. Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, and Julian Schrittwieser et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016. ",
1366
+ "bbox": [
1367
+ 176,
1368
+ 103,
1369
+ 821,
1370
+ 146
1371
+ ],
1372
+ "page_idx": 10
1373
+ },
1374
+ {
1375
+ "type": "text",
1376
+ "text": "David Silver, Julian Schrittwieser, Karen Simonyan, Ioannis Antonoglou, Aja Huang, Arthur Guez, Thomas Hubert, Lucas Baker, Matthew Lai, Adrian Bolton, Yutian Chen, Timothy Lillicrap, Fan Hui, Laurent Sifre, George Van Den Driessche, Thore Graepel, and Demis Hassabis. Mastering the game of go without human knowledge. Nature, 550(7676):354–359, 2017. ",
1377
+ "bbox": [
1378
+ 173,
1379
+ 155,
1380
+ 825,
1381
+ 212
1382
+ ],
1383
+ "page_idx": 10
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "Pei-Hao Su, Pawel Budzianowski, Stefan Ultes, Milica Gasic, and Steve Young. Sample-efficient actor-critic reinforcement learning with supervised data for dialogue management. In The 18th Annual SIGdial Meeting on Discourse and Dialogue (SIGDIAL), 2017. ",
1388
+ "bbox": [
1389
+ 173,
1390
+ 219,
1391
+ 823,
1392
+ 263
1393
+ ],
1394
+ "page_idx": 10
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "Richard S. Sutton, Doina Precup, and Satinder Singh. Between mdps anad semi-mdps: A framework fro temporal abstraction in reinforcement learning. Artificial Intelligence, 112:181–211, 1999. ",
1399
+ "bbox": [
1400
+ 173,
1401
+ 271,
1402
+ 823,
1403
+ 301
1404
+ ],
1405
+ "page_idx": 10
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "Yee Whye Teh, Victor Bapst, Wojciech Marian Czarnecki, John Quan, James Kirkpatrick, Raia Hadsell, Nicolas Heess, and Razvan Pascanu. Distral: Robust multitask reinforcement learning. In International Conference on Learning Representations (ICLR), 2017. ",
1410
+ "bbox": [
1411
+ 174,
1412
+ 309,
1413
+ 825,
1414
+ 353
1415
+ ],
1416
+ "page_idx": 10
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "Chen Tessler, Shahar Givony, Tom Zahavy, Daniel J. Mankowitz, and Shie Mannor. A deep hierarchical approach to lifelong learning in Minecraft. In AAAI Conference on Artificial Intelligence (AAAI), 2017. ",
1421
+ "bbox": [
1422
+ 174,
1423
+ 361,
1424
+ 825,
1425
+ 404
1426
+ ],
1427
+ "page_idx": 10
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012. ",
1432
+ "bbox": [
1433
+ 173,
1434
+ 412,
1435
+ 825,
1436
+ 441
1437
+ ],
1438
+ "page_idx": 10
1439
+ },
1440
+ {
1441
+ "type": "text",
1442
+ "text": "Alexander (Sasha) Vezhnevets, Volodymyr Mnih, John Agapiou, Simon Osindero, Alex Graves, Orial Vinyals, and Koray Kavukcuoglu. Strategic attentive writer for learning macro-actions. In Advances in Neural Information Processing Systems (NIPS), 2016. ",
1443
+ "bbox": [
1444
+ 176,
1445
+ 450,
1446
+ 823,
1447
+ 493
1448
+ ],
1449
+ "page_idx": 10
1450
+ },
1451
+ {
1452
+ "type": "text",
1453
+ "text": "Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando de Freitas. Sample efficient actor-critic with experience replay. In International Conference on Learning Representations (ICLR), 2017. ",
1454
+ "bbox": [
1455
+ 176,
1456
+ 502,
1457
+ 823,
1458
+ 545
1459
+ ],
1460
+ "page_idx": 10
1461
+ },
1462
+ {
1463
+ "type": "text",
1464
+ "text": "A PSEUDO CODE OF OUR ALGORITHMS ",
1465
+ "text_level": 1,
1466
+ "bbox": [
1467
+ 176,
1468
+ 102,
1469
+ 524,
1470
+ 118
1471
+ ],
1472
+ "page_idx": 11
1473
+ },
1474
+ {
1475
+ "type": "text",
1476
+ "text": "Algorithm $1 \\mathrm { R U N } ( k , g )$ ",
1477
+ "text_level": 1,
1478
+ "bbox": [
1479
+ 174,
1480
+ 138,
1481
+ 336,
1482
+ 154
1483
+ ],
1484
+ "page_idx": 11
1485
+ },
1486
+ {
1487
+ "type": "text",
1488
+ "text": "Input: Policy level $k$ , task $g \\in { \\mathcal { G } } _ { k }$ \nOutput: Episode trajectory $\\Gamma$ at the top level policy \n1: $t \\gets 0$ \n2: $\\Gamma = \\emptyset$ \n3: Get initial state $s _ { 0 }$ \n4: repeat \n5: if ${ \\bf k } = = 1$ then \n6: Sample $a _ { t } \\sim \\pi _ { k } ( \\cdot | s _ { t } , g )$ and execute $a _ { t }$ \n7: Get current state st+1 \n8: $r _ { t } \\gets R ( s _ { t + 1 } , g )$ \n9: Add $\\langle s _ { t } , a _ { t } , r _ { t } , \\pi _ { k } ( \\cdot | s _ { t } , g ) , g \\rangle$ to $\\Gamma$ \n10: else \n11: Sample $e _ { t }$ and $g _ { t } ^ { \\prime }$ as in Section 3.3 for using STG as guidance \n12: Sample at ∼ πauk $a _ { t } \\sim \\pi _ { k } ^ { \\mathrm { a u g } } ( \\cdot | s _ { t } , g )$ \n13: if $e _ { t } = 0$ then \n14: // Execute base policy $\\pi _ { k - 1 }$ by giving instruction $g _ { t } ^ { \\prime }$ \n15: $\\mathrm { R U N } ( k - 1 , g _ { t } ^ { \\prime } )$ 5 \n16: else \n17: Execute $a _ { t }$ \n18: end if \n19: Get current state st+1 \n20: $r _ { t } \\gets R ( s _ { t + 1 } , g )$ \n21: Add $\\langle s _ { t } , e _ { t } , g _ { t } ^ { \\prime } , a _ { t } , r _ { t } , \\pi _ { k } ^ { \\mathrm { s w } } \\big ( \\cdot | s _ { t } \\big ) , \\pi _ { k } ^ { \\mathrm { i n s t } } \\big ( \\cdot | s _ { t } , g \\big ) , \\pi _ { k } ^ { \\mathrm { a u g } } \\big ( \\cdot | s _ { t } , g \\big ) , g \\rangle$ to Γ \n22: end if \n23: t ← t + 1 \n24: until t > T or $\\boldsymbol r _ { t } \\neq 0$ ",
1489
+ "bbox": [
1490
+ 173,
1491
+ 157,
1492
+ 630,
1493
+ 488
1494
+ ],
1495
+ "page_idx": 11
1496
+ },
1497
+ {
1498
+ "type": "text",
1499
+ "text": "Algorithm 2 Learning global policy and STG at stage $k > 0$ ",
1500
+ "text_level": 1,
1501
+ "bbox": [
1502
+ 173,
1503
+ 513,
1504
+ 573,
1505
+ 529
1506
+ ],
1507
+ "page_idx": 11
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "text": "1: Specify $\\lambda$ , maximum training iterations $N$ , alternating update rotation frequency $M$ , and reward threshold \n$R _ { \\mathrm { m i n } }$ \n2: Initialize total replay memory $D \\gets \\emptyset$ and its subset for positive episodes $D _ { + } \\emptyset$ \n3: Initialize current iteration id $i \\gets 0$ and set current updating term to be $\\tau \\gets 1$ \n4: Initialize parameters of policies and value functions $\\mathrm { { \\dot { \\Theta } } } = \\langle \\theta ^ { \\mathrm { s w } } , \\theta ^ { \\mathrm { i n s t } } , \\theta ^ { \\mathrm { a u g } } , \\theta _ { v } , \\theta _ { v } ^ { \\mathrm { s w } } \\rangle$ \n5: Initialize distributions of the STG as uniform distributions \n6: repeat \n7: Determine current learning phase by comparing average rewards of tasks in $\\mathcal { G } _ { k - 1 }$ with $R _ { \\mathrm { m i n } }$ \n8: if in curriculum learning phase 1 then \n9: Sample a task $g$ from base task set $\\mathcal { G } _ { k - 1 }$ \n10: else \n11: Sample a task $g$ from global task set $\\mathcal { G } _ { k }$ \n12: end if \n13: //Run an episode \n15: 14: $\\Gamma \\operatorname { R U N } ( k , g )$ \n16: if the maximum reward in $\\Gamma$ is $+ 1$ then \n17: $D _ { + } \\gets D _ { + } \\cup \\Gamma$ \n18: Re-estimate the distributions of the STG based on updated $D _ { + }$ by MLE \n19: end if \n20: Sample $n \\sim \\mathrm { P o s s i o n } ( \\lambda )$ \n21: for $\\bar { j } \\in \\{ 1 , \\cdots , n \\}$ do \n22: Sample a mini-batch $S$ from $D$ \n23: Update $\\Theta$ based on (9) and the $\\tau$ -th term in (8) \n24: $i \\stackrel { - } { } i + 1$ \n25: if $i \\% M = 0$ then \n26: $\\tau \\tau \\% 3 + 1$ \n27: end if \n28: end for \n29: until $i \\geq N$ ",
1512
+ "bbox": [
1513
+ 171,
1514
+ 532,
1515
+ 820,
1516
+ 914
1517
+ ],
1518
+ "page_idx": 11
1519
+ },
1520
+ {
1521
+ "type": "text",
1522
+ "text": "B ARCHITECTURES OF MODULES ",
1523
+ "text_level": 1,
1524
+ "bbox": [
1525
+ 178,
1526
+ 102,
1527
+ 468,
1528
+ 118
1529
+ ],
1530
+ "page_idx": 12
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "The architecture designs of all modules in our model shown in Figure 2 are as follows: ",
1535
+ "bbox": [
1536
+ 176,
1537
+ 133,
1538
+ 738,
1539
+ 148
1540
+ ],
1541
+ "page_idx": 12
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "text": "Visual Encoder extracts feature maps from an input RGB frame with the size of $8 4 \\times 8 4$ through three convolutional layers: i) the first layer has 32 filters with kernel size of $8 \\times 8$ and stride of 4; ii) the second layer has 64 filters with kernel size of $4 \\times 4$ and stride of 2; iii) the last layer includes 64 filters with kernel size of $3 \\times 3$ and stride of 1. The feature maps are flatten into a 3136-dim vector. We reduce the dimension of this vector to 256 by a fully connected (FC) layer resulting a 256-dim visual feature as the final output of this module. ",
1546
+ "bbox": [
1547
+ 174,
1548
+ 155,
1549
+ 825,
1550
+ 238
1551
+ ],
1552
+ "page_idx": 12
1553
+ },
1554
+ {
1555
+ "type": "text",
1556
+ "text": "Instruction Encoder first embeds each word into a 128-dim vector and combines them into a single vector by bag-of-words (BOW). Thus the output of this module is a 128-dim vector. For more complex instructions such as “Put $\\mathbf { X }$ on y”, we replace BOW by a GRU with 128 hidden units. ",
1557
+ "bbox": [
1558
+ 174,
1559
+ 246,
1560
+ 825,
1561
+ 287
1562
+ ],
1563
+ "page_idx": 12
1564
+ },
1565
+ {
1566
+ "type": "text",
1567
+ "text": "Fusion layer simply concatenates the encoded visual and language representations together and outputs 384-dim fused representation. We then feed this 384-dim vector into an LSTM with 256 hidden units. The hidden layer output of the LSTM is served as the input of all policy modules and value function modules. ",
1568
+ "bbox": [
1569
+ 174,
1570
+ 295,
1571
+ 825,
1572
+ 351
1573
+ ],
1574
+ "page_idx": 12
1575
+ },
1576
+ {
1577
+ "type": "text",
1578
+ "text": "Switch Policy module has a FC layer with output dimension of 2 and a softmax activation to get $\\pi _ { k } ^ { \\mathrm { s w } } ( e | s , g )$ . Instruction Policy module has two separate FC layers, both of which are activated by softmax to output the distribution of skill, $p _ { k } ^ { \\mathrm { s k i l l } } ( u _ { \\mathrm { s k i l l } } | s , g )$ , and the distribution of item, $p _ { k } ^ { \\mathrm { i t e m } } ( u _ { \\mathrm { i t e m } } | s , g )$ , respectively. Augmented Policy module outputs $\\pi _ { \\mathrm { a u g } } ( a | s , g )$ also through a FC layer and softmax activation. The two Value Function modules, $V ( s , \\bar { g } )$ and $\\dot { V } ^ { \\mathrm { s w } } ( s , e , g )$ , all have a scalar output through a FC layer. ",
1579
+ "bbox": [
1580
+ 174,
1581
+ 357,
1582
+ 825,
1583
+ 444
1584
+ ],
1585
+ "page_idx": 12
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "text": "Finally, the Selector module selects the action sampled from Augmented Policy module or Base Policy module based on the switching decision sampled from the Switch Policy module. ",
1590
+ "bbox": [
1591
+ 173,
1592
+ 452,
1593
+ 823,
1594
+ 479
1595
+ ],
1596
+ "page_idx": 12
1597
+ },
1598
+ {
1599
+ "type": "text",
1600
+ "text": "C COMPOSED HIERARCHICAL PLANS ",
1601
+ "text_level": 1,
1602
+ "bbox": [
1603
+ 173,
1604
+ 500,
1605
+ 501,
1606
+ 516
1607
+ ],
1608
+ "page_idx": 12
1609
+ },
1610
+ {
1611
+ "type": "text",
1612
+ "text": "Figure 6 and Figure 7 show several plans for different tasks composed by executing our hierarchical policies. ",
1613
+ "bbox": [
1614
+ 174,
1615
+ 531,
1616
+ 823,
1617
+ 560
1618
+ ],
1619
+ "page_idx": 12
1620
+ },
1621
+ {
1622
+ "type": "image",
1623
+ "img_path": "images/befdfbb5ae792734629bcca3d43768eaf0b510d8afdd69983060b44d6a65c07d.jpg",
1624
+ "image_caption": [
1625
+ "Figure 6: Samples of typical hierarchical plans for different tasks composed by our global policies. Note that all tasks must start from the top-level policy. The branches are ordered from left to right in time indicating consecutive steps carried out by a policy. We also show the egocentric view and the item in hands at critical moments for a real episode example. "
1626
+ ],
1627
+ "image_footnote": [],
1628
+ "bbox": [
1629
+ 204,
1630
+ 123,
1631
+ 792,
1632
+ 818
1633
+ ],
1634
+ "page_idx": 13
1635
+ },
1636
+ {
1637
+ "type": "image",
1638
+ "img_path": "images/b6448093b4a41c6d19f74c7174a7e08647dad5d2a95334aaf5cfe1fb5320b506.jpg",
1639
+ "image_caption": [
1640
+ "Figure 7: Hierarchical plans for “Put x on y” tasks. Top: an example of performing trained tasks; bottom: an example of generalizing the plan composition to unseen tasks. "
1641
+ ],
1642
+ "image_footnote": [],
1643
+ "bbox": [
1644
+ 205,
1645
+ 231,
1646
+ 789,
1647
+ 750
1648
+ ],
1649
+ "page_idx": 14
1650
+ }
1651
+ ]