ZHANGYUXUAN-zR commited on
Commit
5032865
·
verified ·
1 Parent(s): 7b8d8f9

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/5jaqt-Hsqir/5jaqt-Hsqir.md +447 -0
  2. parse/train/5jaqt-Hsqir/5jaqt-Hsqir_content_list.json +1154 -0
  3. parse/train/5jaqt-Hsqir/5jaqt-Hsqir_middle.json +0 -0
  4. parse/train/5jaqt-Hsqir/5jaqt-Hsqir_model.json +0 -0
  5. parse/train/7dpmlkBuJFC/7dpmlkBuJFC.md +0 -0
  6. parse/train/7dpmlkBuJFC/7dpmlkBuJFC_content_list.json +0 -0
  7. parse/train/7dpmlkBuJFC/7dpmlkBuJFC_middle.json +0 -0
  8. parse/train/7dpmlkBuJFC/7dpmlkBuJFC_model.json +0 -0
  9. parse/train/BklhAj09K7/BklhAj09K7.md +431 -0
  10. parse/train/BklhAj09K7/BklhAj09K7_content_list.json +0 -0
  11. parse/train/BklhAj09K7/BklhAj09K7_middle.json +0 -0
  12. parse/train/BklhAj09K7/BklhAj09K7_model.json +0 -0
  13. parse/train/ByeWogStDS/ByeWogStDS.md +378 -0
  14. parse/train/ByeWogStDS/ByeWogStDS_content_list.json +1879 -0
  15. parse/train/ByeWogStDS/ByeWogStDS_middle.json +0 -0
  16. parse/train/ByeWogStDS/ByeWogStDS_model.json +0 -0
  17. parse/train/HkUfnZFt1Rw/HkUfnZFt1Rw_middle.json +0 -0
  18. parse/train/HkUfnZFt1Rw/HkUfnZFt1Rw_model.json +0 -0
  19. parse/train/J_pvI6ap5Mn/J_pvI6ap5Mn.md +488 -0
  20. parse/train/J_pvI6ap5Mn/J_pvI6ap5Mn_content_list.json +0 -0
  21. parse/train/J_pvI6ap5Mn/J_pvI6ap5Mn_middle.json +0 -0
  22. parse/train/J_pvI6ap5Mn/J_pvI6ap5Mn_model.json +0 -0
  23. parse/train/SJxu5iR9KQ/SJxu5iR9KQ.md +398 -0
  24. parse/train/SJxu5iR9KQ/SJxu5iR9KQ_content_list.json +0 -0
  25. parse/train/SJxu5iR9KQ/SJxu5iR9KQ_middle.json +0 -0
  26. parse/train/SJxu5iR9KQ/SJxu5iR9KQ_model.json +0 -0
  27. parse/train/X76iqnUbBjz/X76iqnUbBjz.md +0 -0
  28. parse/train/X76iqnUbBjz/X76iqnUbBjz_content_list.json +0 -0
  29. parse/train/X76iqnUbBjz/X76iqnUbBjz_middle.json +0 -0
  30. parse/train/X76iqnUbBjz/X76iqnUbBjz_model.json +0 -0
  31. parse/train/XwATtbX3oCz/XwATtbX3oCz.md +296 -0
  32. parse/train/XwATtbX3oCz/XwATtbX3oCz_content_list.json +1626 -0
  33. parse/train/XwATtbX3oCz/XwATtbX3oCz_middle.json +0 -0
  34. parse/train/XwATtbX3oCz/XwATtbX3oCz_model.json +0 -0
  35. parse/train/h8flNv9x8v-/h8flNv9x8v-.md +422 -0
  36. parse/train/h8flNv9x8v-/h8flNv9x8v-_content_list.json +0 -0
  37. parse/train/h8flNv9x8v-/h8flNv9x8v-_middle.json +0 -0
  38. parse/train/h8flNv9x8v-/h8flNv9x8v-_model.json +0 -0
  39. parse/train/iaO86DUuKi/iaO86DUuKi.md +0 -0
  40. parse/train/iaO86DUuKi/iaO86DUuKi_middle.json +0 -0
  41. parse/train/kFJoj7zuDVi/kFJoj7zuDVi.md +361 -0
  42. parse/train/kFJoj7zuDVi/kFJoj7zuDVi_content_list.json +1490 -0
  43. parse/train/kFJoj7zuDVi/kFJoj7zuDVi_middle.json +0 -0
  44. parse/train/kFJoj7zuDVi/kFJoj7zuDVi_model.json +0 -0
  45. parse/train/r1lq1hRqYQ/r1lq1hRqYQ.md +249 -0
  46. parse/train/r1lq1hRqYQ/r1lq1hRqYQ_content_list.json +1356 -0
  47. parse/train/r1lq1hRqYQ/r1lq1hRqYQ_middle.json +0 -0
  48. parse/train/r1lq1hRqYQ/r1lq1hRqYQ_model.json +0 -0
  49. parse/train/rJg8TeSFDH/rJg8TeSFDH.md +0 -0
  50. parse/train/rJg8TeSFDH/rJg8TeSFDH_middle.json +0 -0
parse/train/5jaqt-Hsqir/5jaqt-Hsqir.md ADDED
@@ -0,0 +1,447 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Black-Box Dissector: Towards Erasing-based Hard-Label Model Stealing Attack
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ Previous studies have verified that the functionality of black-box models can be stolen with full probability outputs. However, under the more practical hard-label setting, we observe that existing methods suffer from catastrophic performance degradation. We argue this is due to the lack of rich information in the probability prediction and the overfitting caused by hard labels. To this end, we propose a novel hard-label model stealing method termed black-box dissector, which consists of two erasing-based modules. One is a CAM-driven erasing strategy that is designed to increase the information capacity hidden in hard labels from the victim model. The other is a random-erasing-based self-knowledge distillation module that utilizes soft labels from the substitute model to mitigate overfitting. Extensive experiments on four widely-used datasets consistently demonstrate that our method outperforms state-of-the-art methods, with an improvement of at most $8 . 2 7 \%$ . We also validate the effectiveness and practical potential of our method on real-world APIs and defense methods. Furthermore, our method promotes other downstream tasks, i.e., transfer adversarial attacks.
11
+
12
+ # 16 1 Introduction
13
+
14
+ 17 Machine learning models deployed on the cloud can serve users through the application program
15
+ 18 interfaces (APIs) to improve productivity. Since developing these cloud models is a product of
16
+ 19 intensive labor and monetary effort, these models are valuable intellectual property and AI companies
17
+ 20 try to keep them private. However, the exposure of the model’s predictions represents a significant
18
+ 21 risk as an adversary can leverage this information to steal the model’s functionality, a.k.a. model
19
+ 22 stealing attack [22, 20, 21]. With such an attack, adversaries are able to not only use the stolen model
20
+ 23 to make a profit, but also mount further adversarial attacks [34, 29]. Besides, the model stealing
21
+ 24 attacks is a kind of black-box knowledge distillation which is a hot research topic. Studying various
22
+ 25 mechanisms of model stealing attack is of great interest both to AI companies and researchers.
23
+ 26 Previous methods [20, 34, 21] mainly assume the complete probability predictions of the victim
24
+ 27 model available, while the real-world APIs usually only return partial probability values (top- $k$
25
+ 28 predictions) or even the top-1 prediction (i.e., hard label). In this paper, we focus on the more
26
+ 29 challenging and realistic scenario, i.e., the victim model only outputs the hard labels. However, under
27
+ 30 this setting, existing methods suffer from a significant performance degradation, even by $3 0 . 5 0 \%$ (as
28
+ 31 shown in the Fig. 1 (a) and the appendix Tab. I).
29
+ 32 To investigate the reason for the degradation, we evaluate the performance of attack methods with
30
+ 33 different numbers of prediction probability categories available and hard labels as in Fig. 1 (b). With
31
+ 34 the observation that the performance degrades when the top- $k$ information missing, we conclude
32
+ 35 that the top- $k$ predictions are informative as it indicates the similarity of different categories or
33
+ 36 multiple objects in the picture, and previous attack methods suffer from such information obscured
34
+ 37 by the top-1 prediction under the hard-label setting. It motivates us to re-mine this information by
35
+ 38 eliminating the top-1 prediction. Particularly, we design a novel CAM-based erasing method, which
36
+ 39 erases the important area on the pictures based on the substitute model’s top-1 class activation maps
37
+ 40 (CAM) [24, 33] and queries the victim model for a new prediction. Note that we can dig out other
38
+ 41 class information in this sample if the new prediction changes. Otherwise, it proves that the substitute
39
+ 42 model pays attention to the wrong area. Then we can align the attention of the substitute and the
40
+ 43 victim model by learning clean samples and the corresponding erased samples simultaneously.
41
+ 4 Besides, previous works on the
42
+ 45 self-Knowledge Distillation (self
43
+ 46 KD) [15], calibration [8], and noisy
44
+ 47 label [31] have pointed out the
45
+ 48 hard and noisy labels will introduce
46
+ 49 overfitting and miscalibration. More
47
+ 50 specifically, the attack algorithms
48
+ 51 cannot access the training data, and
49
+ 52 thus can only use the synthetic data or
50
+ 53 other datasets as a substitute, which
51
+ 54 is noisy. Therefore, the hard-label
52
+ 55 setting will suffer from overfitting,
53
+ 56 which leads to worse performance,
54
+ 57 and we verify it by plotting the loss
55
+ 58 curves in Fig. 1 (c). To mitigate
56
+ 59 this problem, we introduce a simple
57
+ 60 self-knowledge distillation module
58
+ 61 with random erasing $( R E )$ to utilize
59
+ 62 soft labels for generalization. Partic
60
+ 63 ularly, we randomly erase one sample
61
+ 64 a certain number of times, query
62
+ 65 the substitute model for soft-label
63
+ 66 outputs, and take the average value
64
+ 67 of these outputs as the pseudo-label.
65
+ 68 After that, we use both hard labels
66
+
67
+ ![](images/57d39e95c20569e8951b065bee0a280df2a9efb4bec0e20510253a11377359f2.jpg)
68
+ Figure 1: (a) The test accuracies of previous methods with hard labels are much lower than the ones with soft labels. (KN: KnockoffNets, ‘AT’: ActiveThief, $\mathbf { \hat { E } } ^ { \prime }$ : entropy, ‘K’: $\mathbf { k }$ -Center, ‘D’: DFAL) (b) The performance decreases as the number of available classes decreases (dotted line : hardlabel setting). (c) & (d) Loss curves for training/test set during model training without and with self-KD. All results are on the CIFAR10 dataset.
69
+
70
+ from the victim model and pseudo labels from the previous substitute model to train a new substitute model. Therefore, we can also consider the ensemble of the two models as the teacher in knowledge distillation. As in Fig. 1 (d), such a module helps generalization and better performance.
71
+
72
+ 72 In summary, we propose a novel model stealing framework termed black-box dissector, which
73
+ 73 includes a CAM-driven erasing strategy and a RE-based self-KD module. Our method is orthogonal
74
+ 74 to previous approaches [20, 21] and can be integrated with them. The experiments on four widely
75
+ 75 used datasets demonstrate our method achieves $4 3 . 0 4 - 9 0 . 5 7 \%$ test accuracy $( 4 7 . 6 0 - 9 1 . 3 7 \%$
76
+ 76 agreement) to the victim model, which is at most $8 . 2 7 \%$ higher than the state of the art method.
77
+ 77 We also proved that our method can defeat popular defense methods and is effective for real-world
78
+ 78 APIs like services provided by Amazon Web Services (AWS). Furthermore, our method promotes
79
+ 79 downstream tasks, i.e., transfer adversarial attack, with $4 . 9 1 \% - 1 6 . 2 0 \%$ improvement.
80
+
81
+ # 80 2 Background and Notions
82
+
83
+ 81 Model stealing attack is aim to find a substitute model $\hat { f } \colon [ 0 , 1 ] ^ { d } \mapsto \mathbb { R } ^ { N }$ that performs as similarly
84
+ 82 as possible to the black-box victim model $f \colon [ 0 , 1 ] ^ { d } \mapsto \mathbb { R } ^ { N }$ (with only outputs accessed). Papernot
85
+ 83 et al. [22] first observed that online models could be stolen through multiple queries. After that, due
86
+ 84 to the practical threat to real-world APIs, several studies paid attention to this problem and proposed
87
+ 85 many attack algorithms.
88
+ 86 These algorithms consist of two stages: 1) constructing a transfer dataset $D _ { T }$ (step 1 in Fig. 2) and
89
+ 87 2) training a substitute model. The transfer dataset is constructed based on data synthesis or data
90
+ 88 selection and then feed into the victim model for labels. Methods based on data synthesis [34, 14, 2]
91
+ 89 adopt the GAN-based models to generate a virtual dataset. And the substitute model and the GAN
92
+ 90 model are trained alternatively on this virtual dataset by querying the victim model iteratively. The
93
+ 91 data selection methods prepare an attack dataset as the data pool, and then sample the most informative
94
+ 92 data via machine learning algorithms, e.g., reinforcement learning [20] or active learning strategy [21],
95
+ 93 uncertainty-based strategy [17], k-Center strategy [25], and DFAL strategy [5]. Considering that
96
+ 94 querying the victim model will be costly, the attacker usually sets a budget on the number of the
97
+ 95 queries, so the size of the transfer dataset should be limited as well. Previous methods assume the
98
+ 96 victim model returns a complete probability prediction $f ( x )$ , which is less practical.
99
+ 97 In this paper, we focus on a more practical scenario that is about hard-label $\phi ( f ( x ) )$ setting, where $\phi$
100
+ 98 is the truncation function used to truncate the information contained in the victim’s output and return
101
+ 99 the corresponding one-hot vector:
102
+
103
+ ![](images/6580de836653139a0778be4cd12a5c4ed0c61b4f161900ec361366e026646038.jpg)
104
+ Figure 2: Details of our proposed black-box dissector with a CAM-driven erasing strategy (step 2.1) and a RE-based self-KD module (step 2.2). In step 2.1, the images in transfer set $D _ { T }$ are erased according to the Grad-CAM, and we selected the erased images with the largest difference from the original images according to the substitute model’s outputs. In step 2.2, we randomly erase the unlabeled image $N$ times, and then average the outputs of the $N$ erased images by the substitute model as the pseudo-label.
105
+
106
+ $$
107
+ \phi ( f ( x ) ) _ { i } : = { \left\{ \begin{array} { l l } { 1 } & { { \mathrm { i f ~ } } i = \arg \operatorname* { m a x } _ { n } f ( x ) _ { n } ; } \\ { 0 } & { { \mathrm { o t h e r w i s e } } . } \end{array} \right. }
108
+ $$
109
+
110
+ 100 With the transfer dataset, the substitute model is optimized by minimizing a loss function $\mathcal { L }$ (e.g.,
111
+ 101 cross-entropy loss function):
112
+
113
+ $$
114
+ \left\{ \begin{array} { l l } { \mathbb { E } _ { x \sim \mathcal { D } _ { T } } \left[ \mathcal { L } \big ( f ( x ) , \hat { f } ( x ) \big ) \right] , } & { \mathrm { f o r ~ s o f t ~ l a b e l s ; } } \\ { \mathbb { E } _ { x \sim \mathcal { D } _ { T } } \left[ \mathcal { L } \big ( \phi ( f ( x ) ) , \hat { f } ( x ) \big ) \right] , } & { \mathrm { f o r ~ h a r d ~ l a b e l s . } } \end{array} \right.
115
+ $$
116
+
117
+ 102 Knowledge distillation (KD) has been widely studied in machine learning [10, 1, 6], which transfers
118
+ 103 the knowledge from a teacher model to a student model. Model stealing attacks can be regarded as a
119
+ 104 black-box KD problem where the victim model is the teacher with only outputs accessible and the
120
+ 105 substitute model is the student. The main reason for the success of KD is the valuable information
121
+ 106 that defines a rich similarity structure over the data in the probability prediction [10]. However,
122
+ 107 for the hard-label setting discussed in this paper, this valuable information is lost. Inspired by KD,
123
+ 108 our method tries to dig out the hidden information in the data and models, and then transfers more
124
+ 109 knowledge to the substitute model.
125
+ 110 The erasing-based method, e.g., random erasing (RE) [32, 3], is currently one of the widely used
126
+ 111 data augmentation methods, which generates training images with various levels of occlusion, thereby
127
+ 112 reducing the risk of over-fitting and improving the robustness of the model. Our work is inspired
128
+ 113 by RE and designs a prior-driven erasing operation, which erases the area corresponding to the hard
129
+ 114 label to re-mine missing information.
130
+ 116 The overview of our proposed black-box dissector is shown in Fig. 2. In addition to the conventional
131
+ 117 process (i.e., the transfer dataset $D _ { T }$ constructing in step 1 and the substitute model training in the
132
+ 118 right), we introduce two key modules: a CAM-driven erasing strategy (step 2.1) and a RE-based
133
+ 119 self-KD module (step 2.2).
134
+
135
+ # 20 3.1 A CAM-driven erasing strategy
136
+
137
+ 121 Since the lack of class similarity infor
138
+ 122 mation degrades the performance of
139
+ 123 previous methods under the hard-label
140
+ 124 setting, we try to re-dig out such hid
141
+ 125 den information. Taking an example
142
+ 126 from the ILSVRC-2012 dataset for il
143
+ 127 lustration as in Fig. 3. Querying the
144
+ 128 CUBS200 trained victim model with
145
+ 129 this image, we get two classes with
146
+ 130 the highest confidence score: “Anna
147
+ 131 hummingbird" (0.1364) and “Com
148
+ 132 mon yellowthroat" (0.1165), and show
149
+ 133 their corresponding attention map in
150
+ 134 the first column of Fig. 3. It is easy to
151
+ 135 conclude that two different attention
152
+ 136 regions response for different classes
153
+ 137 according to the attention map. When
154
+ 138 training the substitute model with the
155
+ 139 hard label “Anna hummingbird" and
156
+ 140 without the class similarity informa
157
+
158
+ ![](images/96fc3450a533eeb97226572a27ca1d168a7cefcf39bb07ad10603539c78f7c73.jpg)
159
+ Figure 3: An example from the ILSVRC-2012 dataset and its attention map corresponding to two most likely class “Anna humming bird" and “Common yellow throat" on the CUBS200 trained model. The attention areas share similar visual apparent with images of “Anna humming bird" and “Common yellow throat", respectively.
160
+
161
+ tion, the model can not learn from the area related to the “Common yellowthroat" class, which means this area is wasted. To re-dig out the information about the “Common yellowthroat" class, we need to erase the impact of the “Anna hummingbird" class.
162
+
163
+ 144 To this end, a natural idea is to erase the response area corresponding to the hard label. Since the
164
+ 145 victim model is a black-box model, we use the substitute model to approximately calculate the
165
+ 146 attention map instead. If the attention map calculated by the substitute model is inaccurate and the
166
+ 147 victim model’s prediction on the erased image does not change, we can also align the attention map of
167
+ 148 two models by letting the substitute model learn the original image and the erased one simultaneously.
168
+ 149 The attention map is also a kind of supervision signal pushing two models to be similar [30]. To
169
+ 150 get the attention map, we utilize the Grad-CAM [24] in this paper. With the input image $x \in [ 0 , 1 ] ^ { d }$
170
+ 151 and the trained DNN $\mathcal { F } \colon [ 0 , 1 ] ^ { d } \mapsto \mathbb { R } ^ { N }$ , we let $\alpha _ { k } ^ { c }$ denote the weight of class $c$ corresponding to the
171
+ 152 k-th feature map, and calculate it as αck = 1Z Pi Pj , where $Z$ is the number of pixels in the
172
+ 153 feature map, $\mathcal { F } ( x ) ^ { c }$ is the score of class $c$ and $A _ { i j } ^ { k }$ is the value of pixel at $( i , j )$ in the $k$ -th feature
173
+ 154 map. After obtaining the weights corresponding to all feature maps, the final attention map can be
174
+ 155 obtained as $\begin{array} { r } { S _ { \mathrm { G r a d - C A M } } ^ { c } = \tilde { \mathrm { R e L U } } ( \sum _ { k } \hat { \alpha _ { k } ^ { c } } A ^ { k } ) } \end{array}$ via weighted summation.
175
+ 156 To erase the corresponding area, inspired by [32], we define a prior-driven erasing operation as
176
+ 157 $\psi ( I , P )$ , shown in Alg. 1, which randomly erases a rectangle region in the image $I$ with random
177
+ 158 values while the central position of the rectangle region is randomly selected following the prior
178
+ 159 probability $P$ . The prior probability $P$ is of the same size as the input image and is used to determine
179
+ 160 161 the prior. Let the probability of different pixels being erased. Here, we use the attention map from Grad-CAM as $x \in [ 0 , 1 ] ^ { d }$ denote the input image from the transfer set and $S _ { \mathrm { G r a d - C A M } } ^ { \mathrm { a r g m a x } \hat { f } ( x ) } ( x , \hat { f } )$ denote
180
+ 162 the attention map of the substitute model $\hat { f }$ . This CAM-driven erasing operation can be represented:
181
+
182
+ $$
183
+ \psi \left( x , S _ { \mathrm { G r a d - C A M } } ^ { \mathrm { a r g m a x } \hat { f } ( x ) } ( x , \hat { f } ) \right) .
184
+ $$
185
+
186
+ 163 We abbreviate it as $\psi ( x , S ( x , { \hat { f } } ) )$ . To alleviate the impact of inaccurate CAM caused by the difference
187
+ 164 between the substitute model and the victim one, for each image, we perform this operation $N$ times
188
+ 165 $\psi _ { i }$ means the $i$ -th erasing) and select the one with the largest difference from the original label.
189
+
190
+ # Algorithm 1: Prior-driven Erasing Operation $\psi ( I , P )$
191
+
192
+ Input: Input image $I$ , prior probability $P$ , image size $W$ and $H$ , area of image $S$ , erasing area ratio range $s _ { l }$ and $s _ { h }$ , erasing aspect ratio range $r _ { 1 }$ and $r _ { 2 }$ .
193
+
194
+ Output: Erased image $I ^ { \prime }$
195
+
196
+ $S _ { e } \overset { \bar { \mathbf { \sigma } } } { } \operatorname { R a n d } ( s _ { l } , s _ { h } ) \overset { \bar { \mathbf { \sigma } } } { \times } S$ , $r _ { e } \gets \mathrm { R a n d } ( r _ { 1 } , r _ { 2 } ) ^ { 1 }$
197
+
198
+ 3 $x _ { e } , y _ { e }$ sampled randomly according to $P$
199
+ 4 $I _ { e } \gets ( x _ { e } - W _ { e } , y _ { e } - H _ { e } , x _ { e } + W _ { e } , y _ { e } + H _ { e } )$
200
+ 5 $I ( I _ { e } ) \gets \mathrm { R a n d } ( 0 , 2 5 5 )$
201
+ 6 $I ^ { \prime } I$
202
+ 166 Such a data augment operation helps the erasing process to be more robust. We use the cross-entropy
203
+ 167 to calculate the difference between the new label and the original label, and we want to select the
204
+ 168 sample with the biggest difference. Formally, we define $\Pi ( x )$ as the function to select the most
205
+ 169 different variation of image $x$ :
206
+
207
+ $$
208
+ \begin{array} { r l r } { { \Pi ( x ) : = \psi _ { k } ( x , S ( x , \hat { f } ) ) , } } \\ & { } & { \quad \mathrm { w h e r e } \ k : = \underset { i \in [ N ] } { \arg \operatorname* { m a x } } - \sum _ { j } \phi ( f ( x ) ) _ { j } \cdot \log \Big ( \hat { f } \big ( \psi _ { i } ( x , S ( x , \hat { f } ) ) \big ) _ { j } \Big ) } \\ & { } & { = \underset { i \in [ N ] } { \arg \operatorname* { m a x } } - \log \bigg ( \hat { f } \big ( \psi _ { i } ( x , S ( x , \hat { f } ) ) \big ) _ { \arg \operatorname* { m a x } \phi \big ( f ( x ) \big ) } \bigg ) } \\ & { } & { = \underset { i \in [ N ] } { \arg \operatorname* { m i n } } \hat { f } ( \psi _ { i } ( x , S ( x , \hat { f } ) ) ) _ { \arg \operatorname* { m a x } \phi \big ( f ( x ) \big ) } . } \end{array}
209
+ $$
210
+
211
+ 170 Due to the limitation of the number of queries, we cannot query the victim model for each erased
212
+ 171 image to obtain a new label. We continuously choose the erased image with the highest substitute’s
213
+ 172 confidence until reaching the budget. To measure the confidence of the model, we adopt the Maximum
214
+ 173 Softmax Probability (MSP) for its simplicity:
215
+
216
+ $$
217
+ \begin{array} { r l } & { \underset { x \sim \mathcal { D } _ { T } } { \arg \operatorname* { m a x } } M S P \left( \hat { f } \left( \Pi \left( x \right) \right) \right) } \\ & { = \underset { x \sim \mathcal { D } _ { T } } { \arg \operatorname* { m a x } } \hat { f } \left( \Pi \left( x \right) \right) _ { \mathrm { a r g m a x } } \hat { f } ( \Pi ( x ) ) , } \end{array}
218
+ $$
219
+
220
+ 174 where $D _ { T }$ is the transfer set. The erased images selected in this way are most likely to change the
221
+ 175 prediction class. Then, we query the victim model to get these erased images’ labels and construct
222
+ 176 an erased sample set $D _ { E }$ . Note that when the victim model’s predictions on the erased images
223
+ 177 change, it means our erasing method does dig out other related class information in the sample. With
224
+ 178 the unchanged predictions, it points out the attentions of the substitute model and the victim are
225
+ 179 inconsistent. Though wrong attention areas erased, training with these samples benefits aligning the
226
+ 180 attentions of two models. As [30] stated, the attention alignment can help more powerful KD.
227
+
228
+ # 181 3.2 A random-erasing-based self-KD module
229
+
230
+ 182 We also find that in training with limited hard-label OOD samples, the substitute model is likely
231
+ 183 to overfit the training set, which damages its generalization ability [15, 31]. Therefore, based on
232
+ 184 the above erasing operation, we further design a simple RE-based self-KD method to improve the
233
+ 185 generalization ability of the substitute model.
234
+ 186 Formally, let $x \in [ 0 , 1 ] ^ { d }$ denote the unlabeled input image. We perform the erasing operation with a
235
+ 187 uniform prior $U$ on it $N$ times, and then average the substitute’s outputs on these erased images as
236
+ 188 the pseudo-label of the original image:
237
+
238
+ $$
239
+ y _ { p } ( x , \hat { f } ) = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \hat { f } \big ( \psi _ { i } ( x , U ) \big ) .
240
+ $$
241
+
242
+ ${ } ^ { 1 } \mathrm { R a n d } ( a , b )$ returns an evenly distributed random real number in the range of $a$ to $b$ .
243
+
244
+ # Algorithm 2: Black-box Dissector
245
+
246
+ Input: Unlabeled pool $D _ { U }$ , victim model $f$ , maximum number of queries $Q$ .
247
+ Output: Substitute model $\hat { f }$ .
248
+ 1 Initialize $q 0 , D _ { T } \emptyset , D _ { E } \emptyset$
249
+ 2 while $q < Q$ do
250
+ 3 // Step 1
251
+ 4 Select samples from $D _ { U }$ according to budget and query $f$ to updata $D _ { T }$
252
+ 5 $q = q +$ budget
253
+ 6 $\begin{array} { r } { \mathcal { L } = \sum _ { x \in D _ { T } } \mathcal { L } ^ { \prime } \big ( \phi ( f ( x ) ) , \hat { f } ( x ) \big ) } \end{array}$
254
+ 7 $\hat { f } \gets u p d a t e ( \hat { f } , \mathcal { L } )$
255
+ 8 // A CAM-driven erasing strategy (step 2.1)
256
+ 9 Erase samples in $D _ { T }$ according to Eq. 4
257
+ 10 Choose samples from erased samples according to Eq. 5 and budget
258
+ 11 Query $f$ to get labels and updata $D _ { E }$
259
+ 12 $\begin{array} { r } { \mathcal { L } = \sum _ { x \in D _ { T } \cup D _ { E } } \mathcal { L } ^ { \prime } \big ( \phi ( f ( x ) ) , \hat { f } ( x ) \big ) } \end{array}$
260
+ 13 $\hat { f } \gets u p d a t e ( \hat { f } , \mathcal { L } )$
261
+ 14 $q = q +$ budget
262
+ 15 // A random-erasing-based self-KD (step 2.2)
263
+ 16 Select samples from $D _ { U }$
264
+ 17 Get pseudo-labels according to Eq. 6 and construct a pseudo-label set $D _ { P }$
265
+ 18 $\begin{array} { r l } & { \mathcal { L } = \sum _ { x \in D _ { T } \cup D _ { E } } \mathcal { L } ^ { \prime } \big ( \phi ( f ( x ) ) , \hat { f } ( x ) \big ) + \sum _ { x \in D _ { P } } \mathcal { L } ^ { \prime } \big ( y _ { p } ( x , \hat { f } ) , \hat { f } ( x ) \big ) } \\ & { \hat { f } u p d a t e ( \hat { f } , \mathcal { L } ) } \end{array}$
266
+ 19
267
+ 20 end
268
+ 189 This is a type of consistency regularization, which enforces the model to have the same predictions
269
+ 190 for the perturbed images and enhances the generalization ability. With Eq.6, we construct a new soft
270
+ 191 pseudo label set $D _ { P } = \{ { \bigl ( } x , y _ { p } ( x , { \hat { f } } ) { \bigr ) } , \ldots \}$ .
271
+ 192 With the transfer set $D _ { T }$ , the erased sample set $D _ { E }$ , and the pseudo-label set $D _ { P }$ , we train a new
272
+ 193 substitute model using the ensemble of the victim model and the previous substitute model as the
273
+ 194 teacher. Our final objective function is:
274
+
275
+ $$
276
+ \operatorname* { m i n } \mathcal { L } = \operatorname* { m i n } \big [ \sum _ { x \in D _ { T } \cup D _ { E } } \mathcal { L } ^ { \prime } \big ( \phi ( f ( x ) ) , \hat { f } ( x ) \big ) + \sum _ { x \in D _ { P } } \mathcal { L } ^ { \prime } \big ( y _ { p } ( x , \hat { f } ) , \hat { f } ( x ) \big ) \big ] .
277
+ $$
278
+
279
+ where 195 $\mathcal { L } ^ { \prime }$ can be commonly used loss functions, e.g., cross-entropy loss function.
280
+
281
+ 196 To sum up, we built our method on the conventional process of the model stealing attack (step
282
+ 197 1), and proposed a CAM-driven erasing strategy (step 2.1) and a RE-based self-KD module (step
283
+ 198 2.2) unified by a novel erasing method. The former strategy digs out missing information between
284
+ 199 classes and aligns the attention while the latter module helps to mitigate overfitting and enhance the
285
+ 200 generalization. We name the whole framework as black-box dissector and present the algorithm
286
+ 201 detail of it in Alg. 2.
287
+
288
+ # 4 Experiment
289
+
290
+ # 4.1 Experiment settings
291
+
292
+ Victim model. The victim models we used (ResNet-34 [9]) are trained on four datasets, namely, CIFAR10 [16], SVHN [19], Caltech256 [7], and CUBS200 [28], and their test accuracy are $9 1 . 5 6 \%$ , $9 6 . 4 5 \%$ , $7 8 . 4 0 \%$ , and $7 7 . 1 0 \%$ , respectively. All models are trained using the SGD optimizer with momentum (of 0.5) for 200 epochs with a base learning rate of 0.1 decayed by a factor of 0.1 every 30 epochs. Following [20, 21, 34], we use the same architecture for the substitute model and will analyze the impact of different architectures in the supplementary.
293
+
294
+ 210 Attack dataset. We use $1 . 2 M$ images without labels from the ILSVRC-2012 challenge [23] as the
295
+ 211 attack dataset. In a real attack scenario, the attacker may use pictures collected from the Internet, and
296
+ 212 the ILSVRC-2012 dataset can simulate this scenario well. Note that we resize all images in the attack
297
+ 213 dataset to fit the size of the target datasets, which is similar to the existing setting [20, 21, 34].
298
+
299
+ Table 1: The agreement and test accuracy (in $\%$ ) of each method under $3 0 \mathrm { k }$ queries. For our model, we report the average accuracy as well as the standard deviation computed over 5 runs. (Boldface: the best value, italics: the second best value.)
300
+
301
+ <table><tr><td rowspan="2">Method</td><td colspan="2">CIFAR10</td><td colspan="2">SVHN</td><td colspan="2">Caltech256</td><td colspan="2">CUBS200</td></tr><tr><td>Agreement</td><td>Acc</td><td>Agreement</td><td>Acc</td><td>Agreement</td><td>Acc</td><td>Agreement</td><td>Acc</td></tr><tr><td>KnockoffNets</td><td>75.32</td><td>74.44</td><td>85.00</td><td>84.50</td><td>57.64</td><td>55.28</td><td>30.01</td><td>28.03</td></tr><tr><td>ActiveThief(Entropy)</td><td>75.26</td><td>74.21</td><td>90.47</td><td>89.85</td><td>56.28</td><td>54.14</td><td>32.05</td><td>29.43</td></tr><tr><td>ActiveThief(k-Center)</td><td>75.71</td><td>74.24</td><td>81.45</td><td>80.79</td><td>61.19</td><td>58.84</td><td>37.68</td><td>34.64</td></tr><tr><td>ActiveThief(DFAL)</td><td>76.72</td><td>75.62</td><td>84.79</td><td>84.17</td><td>46.92</td><td>44.91</td><td>20.31</td><td>18.69</td></tr><tr><td>ActiveThief(DFAL+k-Center)</td><td>74.97</td><td>73.98</td><td>81.40</td><td>80.86</td><td>55.70</td><td>53.69</td><td>26.60</td><td>24.42</td></tr><tr><td>Ours+Random</td><td>82.14±0.16</td><td>80.47±0.02</td><td>92.33±0.47</td><td>91.57±0.29</td><td>62.15±0.52</td><td>59.91±0.58</td><td>38.28±0.31</td><td>35.24±0.49</td></tr><tr><td>Ours+k-Center</td><td>80.84±0.21</td><td>79.27±0.15</td><td>91.47±0.09</td><td>90.68±0.14</td><td>65.12±0.56</td><td>62.72±0.57</td><td>46.69±0.87</td><td>42.91±0.46</td></tr></table>
302
+
303
+ ![](images/2bac624872db9b5c764a32c26a8ace18d0db089797185f4c817042cd0158bb85.jpg)
304
+ Figure 4: Curves of the test accuracy versus the number of queries.
305
+
306
+ Training process. We use the SGD optimizer with momentum (of 0.9) for 200 epochs and a base learning rate of $\begin{array} { r } { 0 . 0 2 \times \frac { b a t c h s i z e } { 1 2 8 } } \end{array}$ decayed by a factor of 0.1 every 60 epochs. The weight decay is set to $5 \times 1 0 ^ { - 4 }$ for small datasets (CIFAR10 [16] and SVHN [19]) and 0 for others. We set up a query sequence {0.1K, 0.2K, 0.5K, 0.8K, 1K, 2K, 5K, 10K, 20K, $\mathrm { 3 0 K } \}$ as the iterative maximum query budget, and stop the sampling stage whenever reaching the budget at each iteration.
307
+
308
+ Baselines and evaluation metric. We mainly compare our method with KnockoffNets [20] and ActiveThief [21]. Follow Jagielski et al. [12], we mainly report the test accuracy (Acc) as the evaluation metric. We also report the Agreement metric proposed by Pal et al. [21] which counts how often the prediction of the substitute model is the same as the victim’s as a supplement.
309
+
310
+ # 4.2 Experiment results
311
+
312
+ We first report the performance of our method compared with previous methods. After that, we conduct ablation experiments to analyze the contribution of each module. Finally, we also analyze the performance of our method when encountering defense methods and real-world online APIs. More experiments (e.g., adversarial attack and overfitting analysis) can be found in our supplementary.
313
+
314
+ Effectiveness of our method. As in Tab. 1, the test accuracy and agreement of our method are all better than the previous methods. We also plot the curves of the test accuracy versus the number of queries in Fig. 4. The performance of our method consistently outperforms other methods throughout the process. Since our method does not conflict with the previous sample selection strategy, they can be used simultaneously to further improve the performance of these attacks. Here, we take the $\mathbf { k }$ -Center algorithm as an example. Note that, with or without the sample selection strategy, our method beats the previous methods by a large margin. Particularly, the test accuracies of our method are $4 . 8 5 \%$ , $1 . 7 2 \%$ , $3 . 8 8 \%$ , and $8 . 2 7 \%$ higher than the previous best method, respectively. And the agreement metric shares similar results. It is also interesting that it is less necessary to use the $\mathbf { k }$ -Center algorithm on datasets with a small number of classes (i.e., CIFAR10 and SVHN). While for the datasets with a large number of classes, the k-Center algorithm can make the selected samples better cover each class and improve the effectiveness of the method.
315
+
316
+ 240 Ability to evade the SOTA defense method. The SOTA perturbation-based defense method, adap
317
+ 241 tive misinformation [13], introduces an Out-Of-Distribution (OOD) detection module based on the
318
+ 242 maximum predicted value and punishes the OOD samples with a perturbed model $f ^ { \prime } ( \cdot ; \theta ^ { \prime } )$ . The
319
+ 243 model $f ^ { \prime } ( \cdot ; \bar { \theta } ^ { \prime } )$ is trained with arg minθ0 $\mathbb { E } _ { ( x , y ) } [ - \log ( 1 - f ^ { \prime } ( x ; \theta ^ { \prime } ) _ { y } ) ]$ to minimize the probability of
320
+
321
+ Table 2: Ability to evade the state-of-the-art defense method (adaptive misinformation) on CIFAR10 dataset. The larger the threshold, the better the defence effect while the low victim model’s accuracy (threshold 0 means no defence). Our method evades the defense best, and the self-KD part makes a great difference.
322
+
323
+ <table><tr><td rowspan="2">Method</td><td colspan="4">Threshold</td></tr><tr><td>0</td><td>0.5</td><td>0.7</td><td>0.9</td></tr><tr><td>KnockoffNets</td><td>74.44%</td><td>74.13%</td><td>73.61%</td><td>54.98%</td></tr><tr><td>ActiveThief(k-Center)</td><td>74.24%</td><td>69.14%</td><td>59.78%</td><td>50.19%</td></tr><tr><td>ActiveThief(Entropy)</td><td>74.21%</td><td>71.61%</td><td>64.84%</td><td>51.07%</td></tr><tr><td>Ours</td><td>80.47 %</td><td>79.95%</td><td>78.25%</td><td>74.40 %</td></tr><tr><td>Ours w/o self-KD</td><td>79.02%</td><td>78.66%</td><td>73.61%</td><td>61.81%</td></tr><tr><td>victimmodel</td><td>91.56%</td><td>91.23%</td><td>89.10%</td><td>85.14%</td></tr></table>
324
+
325
+ 244 the correct class. Finally, the output will be:
326
+
327
+ $$
328
+ y ^ { \prime } = ( 1 - \alpha ) f ( x ; \theta ) + ( \alpha ) f ^ { \prime } ( x ; \theta ^ { \prime } ) ,
329
+ $$
330
+
331
+ 245 where $\alpha = 1 / ( 1 + e ^ { \nu ( \operatorname* { m a x } f ( x ; \theta ) - \tau ) } )$ with a hyper-parameter $\nu$ is the coefficient to control how
332
+ 246 much correct results will be returned, and $\tau$ is the threshold used for OOD detection. The model
333
+ 247 returns incorrect predictions for the OOD samples without having much impact on the in-distribution
334
+ 248 samples.
335
+ 49 We choose four values of the threshold $\tau$ to compare the effects of our method with the previous
336
+ 50 methods. The threshold value of 0 means no defence. The result is shown in Tab. 2. Compared
337
+ 51 with other methods, adaptive misinformation is almost invalid to our method. Furthermore, we find
338
+ 52 that if we remove the self-KD in our method, the performance is greatly reduced. We conclude that
339
+ 53 this is because adaptive misinformation adds noise labels to the substitute model’s training dataset,
340
+ 54 and self-KD can alleviate the overfitting of the substitute model to the training dataset, making this
341
+ 55 defence method not effective enough.
342
+
343
+ Ablation study. To evaluate the contribution of different modules in our method, we conduct the ablation study on CUBS200 dataset and plot the results in Fig. 5. If the CAM-driven erasing strategy is removed, the performance of our method will be greatly reduced, showing that it has an indispensable position in our method. We also give some visual examples in Fig. 7 to demonstrate that this strategy can help align the attention of two models. As depicted in the Fig. 7, at the beginning time, the substitute model learns the wrong attention map. Along with the iterative training stages, the attention area of the substitute model tends to fit the victim model’s, which conforms to our intention. We further remove the self-KD module to evaluate its performance. It can be found from Fig. 1 and Fig. 5 that the self-KD can improve the generalization of our method and further improve the performance.
344
+
345
+ ![](images/422f0249cb08516bac5147a376079b7cae97c37d1c6e95548f1260ea1f225012.jpg)
346
+ Figure 5: Ablation study on CUBS200 dataset for the contribution of the CAM-driven erasing and the self-KD in our method.
347
+
348
+ Stealing functionality of a real-world API. We validate our method is applicable to real-world APIs. The AWS Marketplace is an online store that provides a variety of trained ML models for users. It can only be used in the form of a black-box setting. We choose a popular model (waste classifier 2) as the victim model. We use ILSVRC-2012 dataset as the attack dataset and choose another small public waste classifier dataset 3, containing 2, 527 images as the test dataset. As in Fig. 6, the substitute model obtained by our method achieves $1 2 . 6 3 \%$ and $7 . 3 2 \%$ improvements in test accuracy compared with two previous methods, which show our method has stronger practicality in the real world.
349
+
350
+ ![](images/f68d411ac8b069ce7d038c7675b82dab953585e2c8df673559e86e1af0b345de.jpg)
351
+ Figure 6: The experiment on AWS online API.
352
+
353
+ Table 3: Transferability of adversarial samples generated with PGD attack on the substitute models.
354
+ Substitute’s CAM of different stages
355
+
356
+ <table><tr><td rowspan="2">Method</td><td colspan="5">Substitute&#x27;sarchitecture</td></tr><tr><td>ResNet-34</td><td>ResNet-18</td><td>ResNet-50</td><td>VGG-16</td><td>DenseNet</td></tr><tr><td>KnockoffNets</td><td>57.85%</td><td>63.33%</td><td>52.04%</td><td>42.88%</td><td>60.77%</td></tr><tr><td>ActiveThief(k-Center)</td><td>57.44%</td><td>57.90%</td><td>57.01%</td><td>16.49%</td><td>60.72%</td></tr><tr><td>ActiveThief(Entropy)</td><td>63.56%</td><td>66.76%</td><td>58.19%</td><td>55.43%</td><td>62.05%</td></tr><tr><td>Ours</td><td>76.63%</td><td>74.10%</td><td>74.28%</td><td>67.03%</td><td>66.96%</td></tr></table>
357
+
358
+ Victim’s CAM
359
+
360
+ ![](images/73e4a57a663fe6f033f3426daadadb7feab4fd28c4410ec52a22855617ac7911.jpg)
361
+ Figure 7: The visualized attention maps of the victim model and different stages substitute models using the Grad-CAM. Along with the training stages, the attention map of the substitute model tends to fit the victim model’s.
362
+
363
+ Transferability of adversarial samples. Though with the dominant performance on a wide range of tasks, deep neural networks are shown to be vulnerable to imperceptible perturbations, i.e., adversarial examples [27]. Since the model stealing attack can obtain a functionally similar substitute model, some previous works (e.g., JBDA [22], DaST [34] and ActiveThief [21]) used this substitute model to generate adversarial samples and then performed the transferable adversarial attack on the victim model. We argue that a more similar substitute model leads to a more successful adversarial attacks. We test the transferability of adversarial samples on the test set of the CIFAR10 dataset. Keeping the architecture of the victim model as the ResNet-34, we evaluate the attack success rate of adversarial samples generated from different substitute models (i.e., ResNet-34, ResNet-18, ResNet-50 [9], VGG16 [26], DenseNet [11]). All adversarial samples are generated using Projected Gradient Descent (PGD) attack [18] with maximum $L _ { \infty }$ -norm of perturbations as 8/255. As shown in Tab. 3, the adversarial samples generated by our substitute models have stronger transferability in all substitute’s architectures. This again proves that our method is more practical in real-world scenarios.
364
+
365
+ # 296 5 Conclusion
366
+
367
+ 297 We investigated the problem of model stealing attacks under the hard-label setting and pointed out
368
+ 298 why previous methods are not effective enough. We presented a new method, termed black-box
369
+ 299 dissector, which contains a CAM-driven erasing strategy and a RE-based self-KD module. We
370
+ 300 showed its superiority on four widely-used datasets and verified the effectiveness of our method
371
+ 301 with defense methods, real-world APIs, and the downstream adversarial attack. Though focusing
372
+ 302 on image data in this paper, our method is general for other tasks as long as the CAM and similar
373
+ 303 erasing method work, e.g., synonym saliency words replacement for NLP tasks [4]. We believe our
374
+ 304 method can be easily extended to other fields and inspire future researchers. Model stealing attack
375
+ 305 poses a threat to the deployed machine learning models. We hope this work will draw attention to
376
+ 306 the protection of deployed models and furthermore shed more light on the attack mechanisms and
377
+ 307 prevention methods.
378
+
379
+ # 308 References
380
+
381
+ frey E Hinton. Large scale distributed neural network training through online distillation. arXiv preprint arXiv:1804.03235, 2018.
382
+ [2] Antonio Barbalau, Adrian Cosma, Radu Tudor Ionescu, and Marius Popescu. Black-box ripper: Copying black-box models using generative evolutionary algorithms. In NeurIPS, 2020.
383
+ [3] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017.
384
+ [4] Xinshuai Dong, Anh Tuan Luu, Rongrong Ji, and Hong Liu. Towards robustness against natural language word substitutions. In ICLR, 2021.
385
+ [5] Melanie Ducoffe and Frederic Precioso. Adversarial active learning for deep networks: a margin based approach. In ICML, 2018.
386
+ [6] Tommaso Furlanello, Zachary C Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. In ICML, 2018.
387
+ [7] Gregory Griffin, Alex Holub, and Pietro Perona. Caltech-256 object category dataset. 2007.
388
+ [8] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In ICML, 2017.
389
+ [9] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
390
+ [10] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. In NIPS Deep Learning Workshop, 2015.
391
+ [11] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017.
392
+ [12] Matthew Jagielski, Nicholas Carlini, David Berthelot, Alex Kurakin, and Nicolas Papernot. High accuracy and high fidelity extraction of neural networks. In 29th Usenix Security, 2020.
393
+ [13] Sanjay Kariyappa and Moinuddin K Qureshi. Defending against model stealing attacks with adaptive misinformation. In CVPR, 2020.
394
+ [14] Sanjay Kariyappa, Atul Prakash, and Moinuddin Qureshi. Maze: Data-free model stealing attack using zeroth-order gradient estimation. arXiv preprint arXiv:2005.03161, 2020.
395
+ [15] Kyungyul Kim, ByeongMoon Ji, Doyoung Yoon, and Sangheum Hwang. Self-knowledge distillation: A simple way for better generalization. arXiv preprint arXiv:2006.12000, 2020.
396
+ [16] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
397
+ [17] David D Lewis and William A Gale. A sequential algorithm for training text classifiers. In SIGIR, 1994.
398
+ [18] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018.
399
+ [19] Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2011.
400
+ [20] Tribhuvanesh Orekondy, Bernt Schiele, and Mario Fritz. Knockoff nets: Stealing functionality of black-box models. In CVPR, 2019.
401
+ [21] Soham Pal, Yash Gupta, Aditya Shukla, Aditya Kanade, Shirish Shevade, and Vinod Ganapathy. Activethief: Model extraction using active learning and unannotated public data. In AAAI, 2020.
402
+ [22] Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In ACM AsiACCS, 2017.
403
+ [23] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 2015.
404
+ [24] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In ICCV, 2017.
405
+ [25] Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach. In ICLR, 2018.
406
+ [26] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
407
+ [27] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2014.
408
+ [28] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011.
409
+ [29] Jiancheng Yang, Yangzhou Jiang, Xiaoyang Huang, Bingbing Ni, and Chenglong Zhao. Learning black-box attackers with transferable priors and query feedback. In NeurIPS, 2020.
410
+ [30] Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In ICLR, 2017.
411
+ [31] Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017.
412
+ [32] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. In AAAI, 2020.
413
+ [33] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016.
414
+ [34] Mingyi Zhou, Jing Wu, Yipeng Liu, Shuaicheng Liu, and Ce Zhu. Dast: Data-free substitute training for adversarial attacks. In CVPR, 2020.
415
+
416
+ # Checklist
417
+
418
+ 1. For all authors...
419
+
420
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
421
+ (b) Did you describe the limitations of your work? [Yes] See section 3
422
+ (c) Did you discuss any potential negative societal impacts of your work? [Yes] See section 5
423
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
424
+
425
+ 2. If you are including theoretical results...
426
+
427
+ (a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
428
+
429
+ 3. If you ran experiments...
430
+
431
+ (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 the supplemental material
432
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See section 4.1
433
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Tab. 1
434
+ (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)? [No]
435
+
436
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
437
+
438
+ (a) If your work uses existing assets, did you cite the creators? [Yes] See section 4.1 (b) Did you mention the license of the assets? [No] (c) Did you include any new assets either in the supplemental material or as a URL? [No]
439
+
440
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No]
441
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No]
442
+
443
+ 5. If you used crowdsourcing or conducted research with human subjects...
444
+
445
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
446
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
447
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/5jaqt-Hsqir/5jaqt-Hsqir_content_list.json ADDED
@@ -0,0 +1,1154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Black-Box Dissector: Towards Erasing-based Hard-Label Model Stealing Attack ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 225,
8
+ 122,
9
+ 772,
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": "Previous studies have verified that the functionality of black-box models can be stolen with full probability outputs. However, under the more practical hard-label setting, we observe that existing methods suffer from catastrophic performance degradation. We argue this is due to the lack of rich information in the probability prediction and the overfitting caused by hard labels. To this end, we propose a novel hard-label model stealing method termed black-box dissector, which consists of two erasing-based modules. One is a CAM-driven erasing strategy that is designed to increase the information capacity hidden in hard labels from the victim model. The other is a random-erasing-based self-knowledge distillation module that utilizes soft labels from the substitute model to mitigate overfitting. Extensive experiments on four widely-used datasets consistently demonstrate that our method outperforms state-of-the-art methods, with an improvement of at most $8 . 2 7 \\%$ . We also validate the effectiveness and practical potential of our method on real-world APIs and defense methods. Furthermore, our method promotes other downstream tasks, i.e., transfer adversarial attacks. ",
40
+ "bbox": [
41
+ 148,
42
+ 348,
43
+ 766,
44
+ 555
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "16 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 580,
55
+ 312,
56
+ 598
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "17 Machine learning models deployed on the cloud can serve users through the application program \n18 interfaces (APIs) to improve productivity. Since developing these cloud models is a product of \n19 intensive labor and monetary effort, these models are valuable intellectual property and AI companies \n20 try to keep them private. However, the exposure of the model’s predictions represents a significant \n21 risk as an adversary can leverage this information to steal the model’s functionality, a.k.a. model \n22 stealing attack [22, 20, 21]. With such an attack, adversaries are able to not only use the stolen model \n23 to make a profit, but also mount further adversarial attacks [34, 29]. Besides, the model stealing \n24 attacks is a kind of black-box knowledge distillation which is a hot research topic. Studying various \n25 mechanisms of model stealing attack is of great interest both to AI companies and researchers. \n26 Previous methods [20, 34, 21] mainly assume the complete probability predictions of the victim \n27 model available, while the real-world APIs usually only return partial probability values (top- $k$ \n28 predictions) or even the top-1 prediction (i.e., hard label). In this paper, we focus on the more \n29 challenging and realistic scenario, i.e., the victim model only outputs the hard labels. However, under \n30 this setting, existing methods suffer from a significant performance degradation, even by $3 0 . 5 0 \\%$ (as \n31 shown in the Fig. 1 (a) and the appendix Tab. I). \n32 To investigate the reason for the degradation, we evaluate the performance of attack methods with \n33 different numbers of prediction probability categories available and hard labels as in Fig. 1 (b). With \n34 the observation that the performance degrades when the top- $k$ information missing, we conclude \n35 that the top- $k$ predictions are informative as it indicates the similarity of different categories or \n36 multiple objects in the picture, and previous attack methods suffer from such information obscured \n37 by the top-1 prediction under the hard-label setting. It motivates us to re-mine this information by \n38 eliminating the top-1 prediction. Particularly, we design a novel CAM-based erasing method, which \n39 erases the important area on the pictures based on the substitute model’s top-1 class activation maps \n40 (CAM) [24, 33] and queries the victim model for a new prediction. Note that we can dig out other \n41 class information in this sample if the new prediction changes. Otherwise, it proves that the substitute \n42 model pays attention to the wrong area. Then we can align the attention of the substitute and the \n43 victim model by learning clean samples and the corresponding erased samples simultaneously. \n4 Besides, previous works on the \n45 self-Knowledge Distillation (self \n46 KD) [15], calibration [8], and noisy \n47 label [31] have pointed out the \n48 hard and noisy labels will introduce \n49 overfitting and miscalibration. More \n50 specifically, the attack algorithms \n51 cannot access the training data, and \n52 thus can only use the synthetic data or \n53 other datasets as a substitute, which \n54 is noisy. Therefore, the hard-label \n55 setting will suffer from overfitting, \n56 which leads to worse performance, \n57 and we verify it by plotting the loss \n58 curves in Fig. 1 (c). To mitigate \n59 this problem, we introduce a simple \n60 self-knowledge distillation module \n61 with random erasing $( R E )$ to utilize \n62 soft labels for generalization. Partic \n63 ularly, we randomly erase one sample \n64 a certain number of times, query \n65 the substitute model for soft-label \n66 outputs, and take the average value \n67 of these outputs as the pseudo-label. \n68 After that, we use both hard labels ",
63
+ "bbox": [
64
+ 147,
65
+ 612,
66
+ 825,
67
+ 736
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 742,
77
+ 825,
78
+ 825
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 147,
87
+ 832,
88
+ 823,
89
+ 901
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 145,
98
+ 92,
99
+ 825,
100
+ 189
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 153,
109
+ 195,
110
+ 419,
111
+ 537
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/57d39e95c20569e8951b065bee0a280df2a9efb4bec0e20510253a11377359f2.jpg",
118
+ "image_caption": [
119
+ "Figure 1: (a) The test accuracies of previous methods with hard labels are much lower than the ones with soft labels. (KN: KnockoffNets, ‘AT’: ActiveThief, $\\mathbf { \\hat { E } } ^ { \\prime }$ : entropy, ‘K’: $\\mathbf { k }$ -Center, ‘D’: DFAL) (b) The performance decreases as the number of available classes decreases (dotted line : hardlabel setting). (c) & (d) Loss curves for training/test set during model training without and with self-KD. All results are on the CIFAR10 dataset. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 436,
124
+ 198,
125
+ 818,
126
+ 409
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "from the victim model and pseudo labels from the previous substitute model to train a new substitute model. Therefore, we can also consider the ensemble of the two models as the teacher in knowledge distillation. As in Fig. 1 (d), such a module helps generalization and better performance. ",
133
+ "bbox": [
134
+ 163,
135
+ 540,
136
+ 821,
137
+ 582
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "72 In summary, we propose a novel model stealing framework termed black-box dissector, which \n73 includes a CAM-driven erasing strategy and a RE-based self-KD module. Our method is orthogonal \n74 to previous approaches [20, 21] and can be integrated with them. The experiments on four widely \n75 used datasets demonstrate our method achieves $4 3 . 0 4 - 9 0 . 5 7 \\%$ test accuracy $( 4 7 . 6 0 - 9 1 . 3 7 \\%$ \n76 agreement) to the victim model, which is at most $8 . 2 7 \\%$ higher than the state of the art method. \n77 We also proved that our method can defeat popular defense methods and is effective for real-world \n78 APIs like services provided by Amazon Web Services (AWS). Furthermore, our method promotes \n79 downstream tasks, i.e., transfer adversarial attack, with $4 . 9 1 \\% - 1 6 . 2 0 \\%$ improvement. ",
144
+ "bbox": [
145
+ 147,
146
+ 587,
147
+ 825,
148
+ 699
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "80 2 Background and Notions ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 151,
158
+ 717,
159
+ 413,
160
+ 734
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "81 Model stealing attack is aim to find a substitute model $\\hat { f } \\colon [ 0 , 1 ] ^ { d } \\mapsto \\mathbb { R } ^ { N }$ that performs as similarly \n82 as possible to the black-box victim model $f \\colon [ 0 , 1 ] ^ { d } \\mapsto \\mathbb { R } ^ { N }$ (with only outputs accessed). Papernot \n83 et al. [22] first observed that online models could be stolen through multiple queries. After that, due \n84 to the practical threat to real-world APIs, several studies paid attention to this problem and proposed \n85 many attack algorithms. \n86 These algorithms consist of two stages: 1) constructing a transfer dataset $D _ { T }$ (step 1 in Fig. 2) and \n87 2) training a substitute model. The transfer dataset is constructed based on data synthesis or data \n88 selection and then feed into the victim model for labels. Methods based on data synthesis [34, 14, 2] \n89 adopt the GAN-based models to generate a virtual dataset. And the substitute model and the GAN \n90 model are trained alternatively on this virtual dataset by querying the victim model iteratively. The \n91 data selection methods prepare an attack dataset as the data pool, and then sample the most informative \n92 data via machine learning algorithms, e.g., reinforcement learning [20] or active learning strategy [21], \n93 uncertainty-based strategy [17], k-Center strategy [25], and DFAL strategy [5]. Considering that \n94 querying the victim model will be costly, the attacker usually sets a budget on the number of the \n95 queries, so the size of the transfer dataset should be limited as well. Previous methods assume the \n96 victim model returns a complete probability prediction $f ( x )$ , which is less practical. \n97 In this paper, we focus on a more practical scenario that is about hard-label $\\phi ( f ( x ) )$ setting, where $\\phi$ \n98 is the truncation function used to truncate the information contained in the victim’s output and return \n99 the corresponding one-hot vector: ",
167
+ "bbox": [
168
+ 147,
169
+ 750,
170
+ 825,
171
+ 821
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "",
178
+ "bbox": [
179
+ 147,
180
+ 828,
181
+ 823,
182
+ 911
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "image",
188
+ "img_path": "images/6580de836653139a0778be4cd12a5c4ed0c61b4f161900ec361366e026646038.jpg",
189
+ "image_caption": [
190
+ "Figure 2: Details of our proposed black-box dissector with a CAM-driven erasing strategy (step 2.1) and a RE-based self-KD module (step 2.2). In step 2.1, the images in transfer set $D _ { T }$ are erased according to the Grad-CAM, and we selected the erased images with the largest difference from the original images according to the substitute model’s outputs. In step 2.2, we randomly erase the unlabeled image $N$ times, and then average the outputs of the $N$ erased images by the substitute model as the pseudo-label. "
191
+ ],
192
+ "image_footnote": [],
193
+ "bbox": [
194
+ 176,
195
+ 87,
196
+ 823,
197
+ 297
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "",
204
+ "bbox": [
205
+ 145,
206
+ 428,
207
+ 825,
208
+ 498
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "",
215
+ "bbox": [
216
+ 143,
217
+ 503,
218
+ 828,
219
+ 546
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "equation",
225
+ "img_path": "images/94419c59aa7eee1b4ad57cb7881e93be9486270b6418c5b86710651be2a43d7e.jpg",
226
+ "text": "$$\n\\phi ( f ( x ) ) _ { i } : = { \\left\\{ \\begin{array} { l l } { 1 } & { { \\mathrm { i f ~ } } i = \\arg \\operatorname* { m a x } _ { n } f ( x ) _ { n } ; } \\\\ { 0 } & { { \\mathrm { o t h e r w i s e } } . } \\end{array} \\right. }\n$$",
227
+ "text_format": "latex",
228
+ "bbox": [
229
+ 356,
230
+ 564,
231
+ 640,
232
+ 599
233
+ ],
234
+ "page_idx": 2
235
+ },
236
+ {
237
+ "type": "text",
238
+ "text": "100 With the transfer dataset, the substitute model is optimized by minimizing a loss function $\\mathcal { L }$ (e.g., \n101 cross-entropy loss function): ",
239
+ "bbox": [
240
+ 140,
241
+ 614,
242
+ 826,
243
+ 645
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "equation",
249
+ "img_path": "images/4294df8d7bff68671c89428c1a267accd16d754af7e5a1e89b6c6f60e2666cfd.jpg",
250
+ "text": "$$\n\\left\\{ \\begin{array} { l l } { \\mathbb { E } _ { x \\sim \\mathcal { D } _ { T } } \\left[ \\mathcal { L } \\big ( f ( x ) , \\hat { f } ( x ) \\big ) \\right] , } & { \\mathrm { f o r ~ s o f t ~ l a b e l s ; } } \\\\ { \\mathbb { E } _ { x \\sim \\mathcal { D } _ { T } } \\left[ \\mathcal { L } \\big ( \\phi ( f ( x ) ) , \\hat { f } ( x ) \\big ) \\right] , } & { \\mathrm { f o r ~ h a r d ~ l a b e l s . } } \\end{array} \\right.\n$$",
251
+ "text_format": "latex",
252
+ "bbox": [
253
+ 339,
254
+ 660,
255
+ 655,
256
+ 702
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "102 Knowledge distillation (KD) has been widely studied in machine learning [10, 1, 6], which transfers \n103 the knowledge from a teacher model to a student model. Model stealing attacks can be regarded as a \n104 black-box KD problem where the victim model is the teacher with only outputs accessible and the \n105 substitute model is the student. The main reason for the success of KD is the valuable information \n106 that defines a rich similarity structure over the data in the probability prediction [10]. However, \n107 for the hard-label setting discussed in this paper, this valuable information is lost. Inspired by KD, \n108 our method tries to dig out the hidden information in the data and models, and then transfers more \n109 knowledge to the substitute model. \n110 The erasing-based method, e.g., random erasing (RE) [32, 3], is currently one of the widely used \n111 data augmentation methods, which generates training images with various levels of occlusion, thereby \n112 reducing the risk of over-fitting and improving the robustness of the model. Our work is inspired \n113 by RE and designs a prior-driven erasing operation, which erases the area corresponding to the hard \n114 label to re-mine missing information. \n116 The overview of our proposed black-box dissector is shown in Fig. 2. In addition to the conventional \n117 process (i.e., the transfer dataset $D _ { T }$ constructing in step 1 and the substitute model training in the \n118 right), we introduce two key modules: a CAM-driven erasing strategy (step 2.1) and a RE-based \n119 self-KD module (step 2.2). ",
263
+ "bbox": [
264
+ 140,
265
+ 723,
266
+ 825,
267
+ 835
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "",
274
+ "bbox": [
275
+ 142,
276
+ 842,
277
+ 825,
278
+ 911
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "",
285
+ "bbox": [
286
+ 145,
287
+ 119,
288
+ 825,
289
+ 176
290
+ ],
291
+ "page_idx": 3
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "20 3.1 A CAM-driven erasing strategy ",
296
+ "text_level": 1,
297
+ "bbox": [
298
+ 156,
299
+ 191,
300
+ 431,
301
+ 207
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "121 Since the lack of class similarity infor \n122 mation degrades the performance of \n123 previous methods under the hard-label \n124 setting, we try to re-dig out such hid \n125 den information. Taking an example \n126 from the ILSVRC-2012 dataset for il \n127 lustration as in Fig. 3. Querying the \n128 CUBS200 trained victim model with \n129 this image, we get two classes with \n130 the highest confidence score: “Anna \n131 hummingbird\" (0.1364) and “Com \n132 mon yellowthroat\" (0.1165), and show \n133 their corresponding attention map in \n134 the first column of Fig. 3. It is easy to \n135 conclude that two different attention \n136 regions response for different classes \n137 according to the attention map. When \n138 training the substitute model with the \n139 hard label “Anna hummingbird\" and \n140 without the class similarity informa",
308
+ "bbox": [
309
+ 145,
310
+ 215,
311
+ 419,
312
+ 492
313
+ ],
314
+ "page_idx": 3
315
+ },
316
+ {
317
+ "type": "image",
318
+ "img_path": "images/96fc3450a533eeb97226572a27ca1d168a7cefcf39bb07ad10603539c78f7c73.jpg",
319
+ "image_caption": [
320
+ "Figure 3: An example from the ILSVRC-2012 dataset and its attention map corresponding to two most likely class “Anna humming bird\" and “Common yellow throat\" on the CUBS200 trained model. The attention areas share similar visual apparent with images of “Anna humming bird\" and “Common yellow throat\", respectively. "
321
+ ],
322
+ "image_footnote": [],
323
+ "bbox": [
324
+ 436,
325
+ 222,
326
+ 818,
327
+ 386
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "tion, the model can not learn from the area related to the “Common yellowthroat\" class, which means this area is wasted. To re-dig out the information about the “Common yellowthroat\" class, we need to erase the impact of the “Anna hummingbird\" class. ",
334
+ "bbox": [
335
+ 163,
336
+ 492,
337
+ 823,
338
+ 535
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "144 To this end, a natural idea is to erase the response area corresponding to the hard label. Since the \n145 victim model is a black-box model, we use the substitute model to approximately calculate the \n146 attention map instead. If the attention map calculated by the substitute model is inaccurate and the \n147 victim model’s prediction on the erased image does not change, we can also align the attention map of \n148 two models by letting the substitute model learn the original image and the erased one simultaneously. \n149 The attention map is also a kind of supervision signal pushing two models to be similar [30]. To \n150 get the attention map, we utilize the Grad-CAM [24] in this paper. With the input image $x \\in [ 0 , 1 ] ^ { d }$ \n151 and the trained DNN $\\mathcal { F } \\colon [ 0 , 1 ] ^ { d } \\mapsto \\mathbb { R } ^ { N }$ , we let $\\alpha _ { k } ^ { c }$ denote the weight of class $c$ corresponding to the \n152 k-th feature map, and calculate it as αck = 1Z Pi Pj , where $Z$ is the number of pixels in the \n153 feature map, $\\mathcal { F } ( x ) ^ { c }$ is the score of class $c$ and $A _ { i j } ^ { k }$ is the value of pixel at $( i , j )$ in the $k$ -th feature \n154 map. After obtaining the weights corresponding to all feature maps, the final attention map can be \n155 obtained as $\\begin{array} { r } { S _ { \\mathrm { G r a d - C A M } } ^ { c } = \\tilde { \\mathrm { R e L U } } ( \\sum _ { k } \\hat { \\alpha _ { k } ^ { c } } A ^ { k } ) } \\end{array}$ via weighted summation. \n156 To erase the corresponding area, inspired by [32], we define a prior-driven erasing operation as \n157 $\\psi ( I , P )$ , shown in Alg. 1, which randomly erases a rectangle region in the image $I$ with random \n158 values while the central position of the rectangle region is randomly selected following the prior \n159 probability $P$ . The prior probability $P$ is of the same size as the input image and is used to determine \n160 161 the prior. Let the probability of different pixels being erased. Here, we use the attention map from Grad-CAM as $x \\in [ 0 , 1 ] ^ { d }$ denote the input image from the transfer set and $S _ { \\mathrm { G r a d - C A M } } ^ { \\mathrm { a r g m a x } \\hat { f } ( x ) } ( x , \\hat { f } )$ denote \n162 the attention map of the substitute model $\\hat { f }$ . This CAM-driven erasing operation can be represented: ",
345
+ "bbox": [
346
+ 140,
347
+ 541,
348
+ 826,
349
+ 720
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "",
356
+ "bbox": [
357
+ 140,
358
+ 724,
359
+ 825,
360
+ 833
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "equation",
366
+ "img_path": "images/be277cedaccdadd712cfd798348a61819d3d90de99006679c8b5c0ecb5c0f2cb.jpg",
367
+ "text": "$$\n\\psi \\left( x , S _ { \\mathrm { G r a d - C A M } } ^ { \\mathrm { a r g m a x } \\hat { f } ( x ) } ( x , \\hat { f } ) \\right) .\n$$",
368
+ "text_format": "latex",
369
+ "bbox": [
370
+ 408,
371
+ 835,
372
+ 589,
373
+ 863
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "163 We abbreviate it as $\\psi ( x , S ( x , { \\hat { f } } ) )$ . To alleviate the impact of inaccurate CAM caused by the difference \n164 between the substitute model and the victim one, for each image, we perform this operation $N$ times \n165 $\\psi _ { i }$ means the $i$ -th erasing) and select the one with the largest difference from the original label. ",
380
+ "bbox": [
381
+ 142,
382
+ 867,
383
+ 825,
384
+ 912
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "Algorithm 1: Prior-driven Erasing Operation $\\psi ( I , P )$ ",
391
+ "text_level": 1,
392
+ "bbox": [
393
+ 173,
394
+ 95,
395
+ 529,
396
+ 111
397
+ ],
398
+ "page_idx": 4
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "Input: Input image $I$ , prior probability $P$ , image size $W$ and $H$ , area of image $S$ , erasing area ratio range $s _ { l }$ and $s _ { h }$ , erasing aspect ratio range $r _ { 1 }$ and $r _ { 2 }$ . ",
403
+ "bbox": [
404
+ 173,
405
+ 113,
406
+ 794,
407
+ 142
408
+ ],
409
+ "page_idx": 4
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "Output: Erased image $I ^ { \\prime }$ ",
414
+ "bbox": [
415
+ 173,
416
+ 142,
417
+ 344,
418
+ 155
419
+ ],
420
+ "page_idx": 4
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "$S _ { e } \\overset { \\bar { \\mathbf { \\sigma } } } { } \\operatorname { R a n d } ( s _ { l } , s _ { h } ) \\overset { \\bar { \\mathbf { \\sigma } } } { \\times } S$ , $r _ { e } \\gets \\mathrm { R a n d } ( r _ { 1 } , r _ { 2 } ) ^ { 1 }$ ",
425
+ "bbox": [
426
+ 165,
427
+ 155,
428
+ 475,
429
+ 170
430
+ ],
431
+ "page_idx": 4
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "3 $x _ { e } , y _ { e }$ sampled randomly according to $P$ \n4 $I _ { e } \\gets ( x _ { e } - W _ { e } , y _ { e } - H _ { e } , x _ { e } + W _ { e } , y _ { e } + H _ { e } )$ \n5 $I ( I _ { e } ) \\gets \\mathrm { R a n d } ( 0 , 2 5 5 )$ \n6 $I ^ { \\prime } I$ \n166 Such a data augment operation helps the erasing process to be more robust. We use the cross-entropy \n167 to calculate the difference between the new label and the original label, and we want to select the \n168 sample with the biggest difference. Formally, we define $\\Pi ( x )$ as the function to select the most \n169 different variation of image $x$ : ",
436
+ "bbox": [
437
+ 158,
438
+ 195,
439
+ 478,
440
+ 250
441
+ ],
442
+ "page_idx": 4
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "",
447
+ "bbox": [
448
+ 142,
449
+ 281,
450
+ 825,
451
+ 338
452
+ ],
453
+ "page_idx": 4
454
+ },
455
+ {
456
+ "type": "equation",
457
+ "img_path": "images/435cc187c297b4487cce8377718fe6601780d2d55ca46ebb9b4ced8dfcf524f4.jpg",
458
+ "text": "$$\n\\begin{array} { r l r } { { \\Pi ( x ) : = \\psi _ { k } ( x , S ( x , \\hat { f } ) ) , } } \\\\ & { } & { \\quad \\mathrm { w h e r e } \\ k : = \\underset { i \\in [ N ] } { \\arg \\operatorname* { m a x } } - \\sum _ { j } \\phi ( f ( x ) ) _ { j } \\cdot \\log \\Big ( \\hat { f } \\big ( \\psi _ { i } ( x , S ( x , \\hat { f } ) ) \\big ) _ { j } \\Big ) } \\\\ & { } & { = \\underset { i \\in [ N ] } { \\arg \\operatorname* { m a x } } - \\log \\bigg ( \\hat { f } \\big ( \\psi _ { i } ( x , S ( x , \\hat { f } ) ) \\big ) _ { \\arg \\operatorname* { m a x } \\phi \\big ( f ( x ) \\big ) } \\bigg ) } \\\\ & { } & { = \\underset { i \\in [ N ] } { \\arg \\operatorname* { m i n } } \\hat { f } ( \\psi _ { i } ( x , S ( x , \\hat { f } ) ) ) _ { \\arg \\operatorname* { m a x } \\phi \\big ( f ( x ) \\big ) } . } \\end{array}\n$$",
459
+ "text_format": "latex",
460
+ "bbox": [
461
+ 281,
462
+ 342,
463
+ 712,
464
+ 472
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "170 Due to the limitation of the number of queries, we cannot query the victim model for each erased \n171 image to obtain a new label. We continuously choose the erased image with the highest substitute’s \n172 confidence until reaching the budget. To measure the confidence of the model, we adopt the Maximum \n173 Softmax Probability (MSP) for its simplicity: ",
471
+ "bbox": [
472
+ 140,
473
+ 474,
474
+ 825,
475
+ 531
476
+ ],
477
+ "page_idx": 4
478
+ },
479
+ {
480
+ "type": "equation",
481
+ "img_path": "images/6165f18ecdb4a741cf976d58d79b4de4a3f3e4246af1bf230173d5bf39c7217c.jpg",
482
+ "text": "$$\n\\begin{array} { r l } & { \\underset { x \\sim \\mathcal { D } _ { T } } { \\arg \\operatorname* { m a x } } M S P \\left( \\hat { f } \\left( \\Pi \\left( x \\right) \\right) \\right) } \\\\ & { = \\underset { x \\sim \\mathcal { D } _ { T } } { \\arg \\operatorname* { m a x } } \\hat { f } \\left( \\Pi \\left( x \\right) \\right) _ { \\mathrm { a r g m a x } } \\hat { f } ( \\Pi ( x ) ) , } \\end{array}\n$$",
483
+ "text_format": "latex",
484
+ "bbox": [
485
+ 377,
486
+ 534,
487
+ 617,
488
+ 597
489
+ ],
490
+ "page_idx": 4
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "174 where $D _ { T }$ is the transfer set. The erased images selected in this way are most likely to change the \n175 prediction class. Then, we query the victim model to get these erased images’ labels and construct \n176 an erased sample set $D _ { E }$ . Note that when the victim model’s predictions on the erased images \n177 change, it means our erasing method does dig out other related class information in the sample. With \n178 the unchanged predictions, it points out the attentions of the substitute model and the victim are \n179 inconsistent. Though wrong attention areas erased, training with these samples benefits aligning the \n180 attentions of two models. As [30] stated, the attention alignment can help more powerful KD. ",
495
+ "bbox": [
496
+ 140,
497
+ 599,
498
+ 825,
499
+ 698
500
+ ],
501
+ "page_idx": 4
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "181 3.2 A random-erasing-based self-KD module ",
506
+ "text_level": 1,
507
+ "bbox": [
508
+ 148,
509
+ 712,
510
+ 498,
511
+ 728
512
+ ],
513
+ "page_idx": 4
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "182 We also find that in training with limited hard-label OOD samples, the substitute model is likely \n183 to overfit the training set, which damages its generalization ability [15, 31]. Therefore, based on \n184 the above erasing operation, we further design a simple RE-based self-KD method to improve the \n185 generalization ability of the substitute model. \n186 Formally, let $x \\in [ 0 , 1 ] ^ { d }$ denote the unlabeled input image. We perform the erasing operation with a \n187 uniform prior $U$ on it $N$ times, and then average the substitute’s outputs on these erased images as \n188 the pseudo-label of the original image: ",
518
+ "bbox": [
519
+ 142,
520
+ 738,
521
+ 826,
522
+ 794
523
+ ],
524
+ "page_idx": 4
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "",
529
+ "bbox": [
530
+ 142,
531
+ 799,
532
+ 825,
533
+ 843
534
+ ],
535
+ "page_idx": 4
536
+ },
537
+ {
538
+ "type": "equation",
539
+ "img_path": "images/d1af20ee9193d1f640bf24fdf9c6bf9b936914d45c17f79720f9ee1c66d1f7f6.jpg",
540
+ "text": "$$\ny _ { p } ( x , \\hat { f } ) = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\hat { f } \\big ( \\psi _ { i } ( x , U ) \\big ) .\n$$",
541
+ "text_format": "latex",
542
+ "bbox": [
543
+ 392,
544
+ 847,
545
+ 606,
546
+ 890
547
+ ],
548
+ "page_idx": 4
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "${ } ^ { 1 } \\mathrm { R a n d } ( a , b )$ returns an evenly distributed random real number in the range of $a$ to $b$ . ",
553
+ "bbox": [
554
+ 192,
555
+ 897,
556
+ 692,
557
+ 911
558
+ ],
559
+ "page_idx": 4
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "Algorithm 2: Black-box Dissector ",
564
+ "text_level": 1,
565
+ "bbox": [
566
+ 174,
567
+ 94,
568
+ 403,
569
+ 109
570
+ ],
571
+ "page_idx": 5
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "Input: Unlabeled pool $D _ { U }$ , victim model $f$ , maximum number of queries $Q$ . \nOutput: Substitute model $\\hat { f }$ . \n1 Initialize $q 0 , D _ { T } \\emptyset , D _ { E } \\emptyset$ \n2 while $q < Q$ do \n3 // Step 1 \n4 Select samples from $D _ { U }$ according to budget and query $f$ to updata $D _ { T }$ \n5 $q = q +$ budget \n6 $\\begin{array} { r } { \\mathcal { L } = \\sum _ { x \\in D _ { T } } \\mathcal { L } ^ { \\prime } \\big ( \\phi ( f ( x ) ) , \\hat { f } ( x ) \\big ) } \\end{array}$ \n7 $\\hat { f } \\gets u p d a t e ( \\hat { f } , \\mathcal { L } )$ \n8 // A CAM-driven erasing strategy (step 2.1) \n9 Erase samples in $D _ { T }$ according to Eq. 4 \n10 Choose samples from erased samples according to Eq. 5 and budget \n11 Query $f$ to get labels and updata $D _ { E }$ \n12 $\\begin{array} { r } { \\mathcal { L } = \\sum _ { x \\in D _ { T } \\cup D _ { E } } \\mathcal { L } ^ { \\prime } \\big ( \\phi ( f ( x ) ) , \\hat { f } ( x ) \\big ) } \\end{array}$ \n13 $\\hat { f } \\gets u p d a t e ( \\hat { f } , \\mathcal { L } )$ \n14 $q = q +$ budget \n15 // A random-erasing-based self-KD (step 2.2) \n16 Select samples from $D _ { U }$ \n17 Get pseudo-labels according to Eq. 6 and construct a pseudo-label set $D _ { P }$ \n18 $\\begin{array} { r l } & { \\mathcal { L } = \\sum _ { x \\in D _ { T } \\cup D _ { E } } \\mathcal { L } ^ { \\prime } \\big ( \\phi ( f ( x ) ) , \\hat { f } ( x ) \\big ) + \\sum _ { x \\in D _ { P } } \\mathcal { L } ^ { \\prime } \\big ( y _ { p } ( x , \\hat { f } ) , \\hat { f } ( x ) \\big ) } \\\\ & { \\hat { f } u p d a t e ( \\hat { f } , \\mathcal { L } ) } \\end{array}$ \n19 \n20 end \n189 This is a type of consistency regularization, which enforces the model to have the same predictions \n190 for the perturbed images and enhances the generalization ability. With Eq.6, we construct a new soft \n191 pseudo label set $D _ { P } = \\{ { \\bigl ( } x , y _ { p } ( x , { \\hat { f } } ) { \\bigr ) } , \\ldots \\}$ . \n192 With the transfer set $D _ { T }$ , the erased sample set $D _ { E }$ , and the pseudo-label set $D _ { P }$ , we train a new \n193 substitute model using the ensemble of the victim model and the previous substitute model as the \n194 teacher. Our final objective function is: ",
576
+ "bbox": [
577
+ 155,
578
+ 113,
579
+ 681,
580
+ 446
581
+ ],
582
+ "page_idx": 5
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "",
587
+ "bbox": [
588
+ 140,
589
+ 477,
590
+ 825,
591
+ 523
592
+ ],
593
+ "page_idx": 5
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "",
598
+ "bbox": [
599
+ 143,
600
+ 527,
601
+ 826,
602
+ 569
603
+ ],
604
+ "page_idx": 5
605
+ },
606
+ {
607
+ "type": "equation",
608
+ "img_path": "images/24b267c08daba11dc8b407898c1653a455f2259a166732ee3770a77cc325a3f3.jpg",
609
+ "text": "$$\n\\operatorname* { m i n } \\mathcal { L } = \\operatorname* { m i n } \\big [ \\sum _ { x \\in D _ { T } \\cup D _ { E } } \\mathcal { L } ^ { \\prime } \\big ( \\phi ( f ( x ) ) , \\hat { f } ( x ) \\big ) + \\sum _ { x \\in D _ { P } } \\mathcal { L } ^ { \\prime } \\big ( y _ { p } ( x , \\hat { f } ) , \\hat { f } ( x ) \\big ) \\big ] .\n$$",
610
+ "text_format": "latex",
611
+ "bbox": [
612
+ 251,
613
+ 574,
614
+ 743,
615
+ 609
616
+ ],
617
+ "page_idx": 5
618
+ },
619
+ {
620
+ "type": "text",
621
+ "text": "where 195 $\\mathcal { L } ^ { \\prime }$ can be commonly used loss functions, e.g., cross-entropy loss function. ",
622
+ "bbox": [
623
+ 147,
624
+ 614,
625
+ 704,
626
+ 630
627
+ ],
628
+ "page_idx": 5
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "196 To sum up, we built our method on the conventional process of the model stealing attack (step \n197 1), and proposed a CAM-driven erasing strategy (step 2.1) and a RE-based self-KD module (step \n198 2.2) unified by a novel erasing method. The former strategy digs out missing information between \n199 classes and aligns the attention while the latter module helps to mitigate overfitting and enhance the \n200 generalization. We name the whole framework as black-box dissector and present the algorithm \n201 detail of it in Alg. 2. ",
633
+ "bbox": [
634
+ 140,
635
+ 635,
636
+ 825,
637
+ 719
638
+ ],
639
+ "page_idx": 5
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "4 Experiment ",
644
+ "text_level": 1,
645
+ "bbox": [
646
+ 165,
647
+ 737,
648
+ 303,
649
+ 755
650
+ ],
651
+ "page_idx": 5
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "4.1 Experiment settings ",
656
+ "text_level": 1,
657
+ "bbox": [
658
+ 171,
659
+ 768,
660
+ 351,
661
+ 784
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "Victim model. The victim models we used (ResNet-34 [9]) are trained on four datasets, namely, CIFAR10 [16], SVHN [19], Caltech256 [7], and CUBS200 [28], and their test accuracy are $9 1 . 5 6 \\%$ , $9 6 . 4 5 \\%$ , $7 8 . 4 0 \\%$ , and $7 7 . 1 0 \\%$ , respectively. All models are trained using the SGD optimizer with momentum (of 0.5) for 200 epochs with a base learning rate of 0.1 decayed by a factor of 0.1 every 30 epochs. Following [20, 21, 34], we use the same architecture for the substitute model and will analyze the impact of different architectures in the supplementary. ",
668
+ "bbox": [
669
+ 173,
670
+ 794,
671
+ 825,
672
+ 877
673
+ ],
674
+ "page_idx": 5
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "210 Attack dataset. We use $1 . 2 M$ images without labels from the ILSVRC-2012 challenge [23] as the \n211 attack dataset. In a real attack scenario, the attacker may use pictures collected from the Internet, and \n212 the ILSVRC-2012 dataset can simulate this scenario well. Note that we resize all images in the attack \n213 dataset to fit the size of the target datasets, which is similar to the existing setting [20, 21, 34]. ",
679
+ "bbox": [
680
+ 145,
681
+ 882,
682
+ 825,
683
+ 911
684
+ ],
685
+ "page_idx": 5
686
+ },
687
+ {
688
+ "type": "table",
689
+ "img_path": "images/5331fcb83fd2695d6c809e4825055cc0d60bc89743405f3a8572a782f09219b5.jpg",
690
+ "table_caption": [
691
+ "Table 1: The agreement and test accuracy (in $\\%$ ) of each method under $3 0 \\mathrm { k }$ queries. For our model, we report the average accuracy as well as the standard deviation computed over 5 runs. (Boldface: the best value, italics: the second best value.) "
692
+ ],
693
+ "table_footnote": [],
694
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">CIFAR10</td><td colspan=\"2\">SVHN</td><td colspan=\"2\">Caltech256</td><td colspan=\"2\">CUBS200</td></tr><tr><td>Agreement</td><td>Acc</td><td>Agreement</td><td>Acc</td><td>Agreement</td><td>Acc</td><td>Agreement</td><td>Acc</td></tr><tr><td>KnockoffNets</td><td>75.32</td><td>74.44</td><td>85.00</td><td>84.50</td><td>57.64</td><td>55.28</td><td>30.01</td><td>28.03</td></tr><tr><td>ActiveThief(Entropy)</td><td>75.26</td><td>74.21</td><td>90.47</td><td>89.85</td><td>56.28</td><td>54.14</td><td>32.05</td><td>29.43</td></tr><tr><td>ActiveThief(k-Center)</td><td>75.71</td><td>74.24</td><td>81.45</td><td>80.79</td><td>61.19</td><td>58.84</td><td>37.68</td><td>34.64</td></tr><tr><td>ActiveThief(DFAL)</td><td>76.72</td><td>75.62</td><td>84.79</td><td>84.17</td><td>46.92</td><td>44.91</td><td>20.31</td><td>18.69</td></tr><tr><td>ActiveThief(DFAL+k-Center)</td><td>74.97</td><td>73.98</td><td>81.40</td><td>80.86</td><td>55.70</td><td>53.69</td><td>26.60</td><td>24.42</td></tr><tr><td>Ours+Random</td><td>82.14±0.16</td><td>80.47±0.02</td><td>92.33±0.47</td><td>91.57±0.29</td><td>62.15±0.52</td><td>59.91±0.58</td><td>38.28±0.31</td><td>35.24±0.49</td></tr><tr><td>Ours+k-Center</td><td>80.84±0.21</td><td>79.27±0.15</td><td>91.47±0.09</td><td>90.68±0.14</td><td>65.12±0.56</td><td>62.72±0.57</td><td>46.69±0.87</td><td>42.91±0.46</td></tr></table>",
695
+ "bbox": [
696
+ 176,
697
+ 136,
698
+ 821,
699
+ 219
700
+ ],
701
+ "page_idx": 6
702
+ },
703
+ {
704
+ "type": "image",
705
+ "img_path": "images/2bac624872db9b5c764a32c26a8ace18d0db089797185f4c817042cd0158bb85.jpg",
706
+ "image_caption": [
707
+ "Figure 4: Curves of the test accuracy versus the number of queries. "
708
+ ],
709
+ "image_footnote": [],
710
+ "bbox": [
711
+ 179,
712
+ 244,
713
+ 818,
714
+ 349
715
+ ],
716
+ "page_idx": 6
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "",
721
+ "bbox": [
722
+ 150,
723
+ 404,
724
+ 823,
725
+ 433
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "Training process. We use the SGD optimizer with momentum (of 0.9) for 200 epochs and a base learning rate of $\\begin{array} { r } { 0 . 0 2 \\times \\frac { b a t c h s i z e } { 1 2 8 } } \\end{array}$ decayed by a factor of 0.1 every 60 epochs. The weight decay is set to $5 \\times 1 0 ^ { - 4 }$ for small datasets (CIFAR10 [16] and SVHN [19]) and 0 for others. We set up a query sequence {0.1K, 0.2K, 0.5K, 0.8K, 1K, 2K, 5K, 10K, 20K, $\\mathrm { 3 0 K } \\}$ as the iterative maximum query budget, and stop the sampling stage whenever reaching the budget at each iteration. ",
732
+ "bbox": [
733
+ 173,
734
+ 439,
735
+ 825,
736
+ 512
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "Baselines and evaluation metric. We mainly compare our method with KnockoffNets [20] and ActiveThief [21]. Follow Jagielski et al. [12], we mainly report the test accuracy (Acc) as the evaluation metric. We also report the Agreement metric proposed by Pal et al. [21] which counts how often the prediction of the substitute model is the same as the victim’s as a supplement. ",
743
+ "bbox": [
744
+ 171,
745
+ 518,
746
+ 825,
747
+ 574
748
+ ],
749
+ "page_idx": 6
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "4.2 Experiment results ",
754
+ "text_level": 1,
755
+ "bbox": [
756
+ 165,
757
+ 594,
758
+ 344,
759
+ 609
760
+ ],
761
+ "page_idx": 6
762
+ },
763
+ {
764
+ "type": "text",
765
+ "text": "We first report the performance of our method compared with previous methods. After that, we conduct ablation experiments to analyze the contribution of each module. Finally, we also analyze the performance of our method when encountering defense methods and real-world online APIs. More experiments (e.g., adversarial attack and overfitting analysis) can be found in our supplementary. ",
766
+ "bbox": [
767
+ 173,
768
+ 621,
769
+ 825,
770
+ 678
771
+ ],
772
+ "page_idx": 6
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "Effectiveness of our method. As in Tab. 1, the test accuracy and agreement of our method are all better than the previous methods. We also plot the curves of the test accuracy versus the number of queries in Fig. 4. The performance of our method consistently outperforms other methods throughout the process. Since our method does not conflict with the previous sample selection strategy, they can be used simultaneously to further improve the performance of these attacks. Here, we take the $\\mathbf { k }$ -Center algorithm as an example. Note that, with or without the sample selection strategy, our method beats the previous methods by a large margin. Particularly, the test accuracies of our method are $4 . 8 5 \\%$ , $1 . 7 2 \\%$ , $3 . 8 8 \\%$ , and $8 . 2 7 \\%$ higher than the previous best method, respectively. And the agreement metric shares similar results. It is also interesting that it is less necessary to use the $\\mathbf { k }$ -Center algorithm on datasets with a small number of classes (i.e., CIFAR10 and SVHN). While for the datasets with a large number of classes, the k-Center algorithm can make the selected samples better cover each class and improve the effectiveness of the method. ",
777
+ "bbox": [
778
+ 173,
779
+ 683,
780
+ 825,
781
+ 849
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "240 Ability to evade the SOTA defense method. The SOTA perturbation-based defense method, adap \n241 tive misinformation [13], introduces an Out-Of-Distribution (OOD) detection module based on the \n242 maximum predicted value and punishes the OOD samples with a perturbed model $f ^ { \\prime } ( \\cdot ; \\theta ^ { \\prime } )$ . The \n243 model $f ^ { \\prime } ( \\cdot ; \\bar { \\theta } ^ { \\prime } )$ is trained with arg minθ0 $\\mathbb { E } _ { ( x , y ) } [ - \\log ( 1 - f ^ { \\prime } ( x ; \\theta ^ { \\prime } ) _ { y } ) ]$ to minimize the probability of ",
788
+ "bbox": [
789
+ 142,
790
+ 856,
791
+ 825,
792
+ 912
793
+ ],
794
+ "page_idx": 6
795
+ },
796
+ {
797
+ "type": "table",
798
+ "img_path": "images/1ef16364636bc1485746807703f06bf97d0bc89a5d73d50173a2a9c5e39a7833.jpg",
799
+ "table_caption": [
800
+ "Table 2: Ability to evade the state-of-the-art defense method (adaptive misinformation) on CIFAR10 dataset. The larger the threshold, the better the defence effect while the low victim model’s accuracy (threshold 0 means no defence). Our method evades the defense best, and the self-KD part makes a great difference. "
801
+ ],
802
+ "table_footnote": [],
803
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"4\">Threshold</td></tr><tr><td>0</td><td>0.5</td><td>0.7</td><td>0.9</td></tr><tr><td>KnockoffNets</td><td>74.44%</td><td>74.13%</td><td>73.61%</td><td>54.98%</td></tr><tr><td>ActiveThief(k-Center)</td><td>74.24%</td><td>69.14%</td><td>59.78%</td><td>50.19%</td></tr><tr><td>ActiveThief(Entropy)</td><td>74.21%</td><td>71.61%</td><td>64.84%</td><td>51.07%</td></tr><tr><td>Ours</td><td>80.47 %</td><td>79.95%</td><td>78.25%</td><td>74.40 %</td></tr><tr><td>Ours w/o self-KD</td><td>79.02%</td><td>78.66%</td><td>73.61%</td><td>61.81%</td></tr><tr><td>victimmodel</td><td>91.56%</td><td>91.23%</td><td>89.10%</td><td>85.14%</td></tr></table>",
804
+ "bbox": [
805
+ 264,
806
+ 150,
807
+ 727,
808
+ 266
809
+ ],
810
+ "page_idx": 7
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "244 the correct class. Finally, the output will be: ",
815
+ "bbox": [
816
+ 143,
817
+ 289,
818
+ 462,
819
+ 304
820
+ ],
821
+ "page_idx": 7
822
+ },
823
+ {
824
+ "type": "equation",
825
+ "img_path": "images/edd5b018104223f06f1c44ef7dac9cb0afd04ad99085e998b082c682529b80e2.jpg",
826
+ "text": "$$\ny ^ { \\prime } = ( 1 - \\alpha ) f ( x ; \\theta ) + ( \\alpha ) f ^ { \\prime } ( x ; \\theta ^ { \\prime } ) ,\n$$",
827
+ "text_format": "latex",
828
+ "bbox": [
829
+ 377,
830
+ 308,
831
+ 617,
832
+ 325
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "245 where $\\alpha = 1 / ( 1 + e ^ { \\nu ( \\operatorname* { m a x } f ( x ; \\theta ) - \\tau ) } )$ with a hyper-parameter $\\nu$ is the coefficient to control how \n246 much correct results will be returned, and $\\tau$ is the threshold used for OOD detection. The model \n247 returns incorrect predictions for the OOD samples without having much impact on the in-distribution \n248 samples. \n49 We choose four values of the threshold $\\tau$ to compare the effects of our method with the previous \n50 methods. The threshold value of 0 means no defence. The result is shown in Tab. 2. Compared \n51 with other methods, adaptive misinformation is almost invalid to our method. Furthermore, we find \n52 that if we remove the self-KD in our method, the performance is greatly reduced. We conclude that \n53 this is because adaptive misinformation adds noise labels to the substitute model’s training dataset, \n54 and self-KD can alleviate the overfitting of the substitute model to the training dataset, making this \n55 defence method not effective enough. ",
839
+ "bbox": [
840
+ 140,
841
+ 330,
842
+ 825,
843
+ 388
844
+ ],
845
+ "page_idx": 7
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "",
850
+ "bbox": [
851
+ 151,
852
+ 393,
853
+ 825,
854
+ 492
855
+ ],
856
+ "page_idx": 7
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Ablation study. To evaluate the contribution of different modules in our method, we conduct the ablation study on CUBS200 dataset and plot the results in Fig. 5. If the CAM-driven erasing strategy is removed, the performance of our method will be greatly reduced, showing that it has an indispensable position in our method. We also give some visual examples in Fig. 7 to demonstrate that this strategy can help align the attention of two models. As depicted in the Fig. 7, at the beginning time, the substitute model learns the wrong attention map. Along with the iterative training stages, the attention area of the substitute model tends to fit the victim model’s, which conforms to our intention. We further remove the self-KD module to evaluate its performance. It can be found from Fig. 1 and Fig. 5 that the self-KD can improve the generalization of our method and further improve the performance. ",
861
+ "bbox": [
862
+ 173,
863
+ 497,
864
+ 581,
865
+ 704
866
+ ],
867
+ "page_idx": 7
868
+ },
869
+ {
870
+ "type": "image",
871
+ "img_path": "images/422f0249cb08516bac5147a376079b7cae97c37d1c6e95548f1260ea1f225012.jpg",
872
+ "image_caption": [
873
+ "Figure 5: Ablation study on CUBS200 dataset for the contribution of the CAM-driven erasing and the self-KD in our method. "
874
+ ],
875
+ "image_footnote": [],
876
+ "bbox": [
877
+ 596,
878
+ 501,
879
+ 820,
880
+ 618
881
+ ],
882
+ "page_idx": 7
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "Stealing functionality of a real-world API. We validate our method is applicable to real-world APIs. The AWS Marketplace is an online store that provides a variety of trained ML models for users. It can only be used in the form of a black-box setting. We choose a popular model (waste classifier 2) as the victim model. We use ILSVRC-2012 dataset as the attack dataset and choose another small public waste classifier dataset 3, containing 2, 527 images as the test dataset. As in Fig. 6, the substitute model obtained by our method achieves $1 2 . 6 3 \\%$ and $7 . 3 2 \\%$ improvements in test accuracy compared with two previous methods, which show our method has stronger practicality in the real world. ",
887
+ "bbox": [
888
+ 173,
889
+ 712,
890
+ 581,
891
+ 877
892
+ ],
893
+ "page_idx": 7
894
+ },
895
+ {
896
+ "type": "image",
897
+ "img_path": "images/f68d411ac8b069ce7d038c7675b82dab953585e2c8df673559e86e1af0b345de.jpg",
898
+ "image_caption": [
899
+ "Figure 6: The experiment on AWS online API. "
900
+ ],
901
+ "image_footnote": [],
902
+ "bbox": [
903
+ 596,
904
+ 714,
905
+ 820,
906
+ 832
907
+ ],
908
+ "page_idx": 7
909
+ },
910
+ {
911
+ "type": "table",
912
+ "img_path": "images/af5354d5bd906182a3d6f917c8efb1c156f59c545c60b338fc938a757c7a3318.jpg",
913
+ "table_caption": [
914
+ "Table 3: Transferability of adversarial samples generated with PGD attack on the substitute models. ",
915
+ "Substitute’s CAM of different stages "
916
+ ],
917
+ "table_footnote": [],
918
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Substitute&#x27;sarchitecture</td></tr><tr><td>ResNet-34</td><td>ResNet-18</td><td>ResNet-50</td><td>VGG-16</td><td>DenseNet</td></tr><tr><td>KnockoffNets</td><td>57.85%</td><td>63.33%</td><td>52.04%</td><td>42.88%</td><td>60.77%</td></tr><tr><td>ActiveThief(k-Center)</td><td>57.44%</td><td>57.90%</td><td>57.01%</td><td>16.49%</td><td>60.72%</td></tr><tr><td>ActiveThief(Entropy)</td><td>63.56%</td><td>66.76%</td><td>58.19%</td><td>55.43%</td><td>62.05%</td></tr><tr><td>Ours</td><td>76.63%</td><td>74.10%</td><td>74.28%</td><td>67.03%</td><td>66.96%</td></tr></table>",
919
+ "bbox": [
920
+ 199,
921
+ 108,
922
+ 795,
923
+ 196
924
+ ],
925
+ "page_idx": 8
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Victim’s CAM ",
930
+ "bbox": [
931
+ 717,
932
+ 218,
933
+ 800,
934
+ 229
935
+ ],
936
+ "page_idx": 8
937
+ },
938
+ {
939
+ "type": "image",
940
+ "img_path": "images/73e4a57a663fe6f033f3426daadadb7feab4fd28c4410ec52a22855617ac7911.jpg",
941
+ "image_caption": [
942
+ "Figure 7: The visualized attention maps of the victim model and different stages substitute models using the Grad-CAM. Along with the training stages, the attention map of the substitute model tends to fit the victim model’s. "
943
+ ],
944
+ "image_footnote": [],
945
+ "bbox": [
946
+ 173,
947
+ 236,
948
+ 823,
949
+ 438
950
+ ],
951
+ "page_idx": 8
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Transferability of adversarial samples. Though with the dominant performance on a wide range of tasks, deep neural networks are shown to be vulnerable to imperceptible perturbations, i.e., adversarial examples [27]. Since the model stealing attack can obtain a functionally similar substitute model, some previous works (e.g., JBDA [22], DaST [34] and ActiveThief [21]) used this substitute model to generate adversarial samples and then performed the transferable adversarial attack on the victim model. We argue that a more similar substitute model leads to a more successful adversarial attacks. We test the transferability of adversarial samples on the test set of the CIFAR10 dataset. Keeping the architecture of the victim model as the ResNet-34, we evaluate the attack success rate of adversarial samples generated from different substitute models (i.e., ResNet-34, ResNet-18, ResNet-50 [9], VGG16 [26], DenseNet [11]). All adversarial samples are generated using Projected Gradient Descent (PGD) attack [18] with maximum $L _ { \\infty }$ -norm of perturbations as 8/255. As shown in Tab. 3, the adversarial samples generated by our substitute models have stronger transferability in all substitute’s architectures. This again proves that our method is more practical in real-world scenarios. ",
956
+ "bbox": [
957
+ 163,
958
+ 520,
959
+ 825,
960
+ 699
961
+ ],
962
+ "page_idx": 8
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "296 5 Conclusion ",
967
+ "text_level": 1,
968
+ "bbox": [
969
+ 151,
970
+ 724,
971
+ 297,
972
+ 741
973
+ ],
974
+ "page_idx": 8
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "297 We investigated the problem of model stealing attacks under the hard-label setting and pointed out \n298 why previous methods are not effective enough. We presented a new method, termed black-box \n299 dissector, which contains a CAM-driven erasing strategy and a RE-based self-KD module. We \n300 showed its superiority on four widely-used datasets and verified the effectiveness of our method \n301 with defense methods, real-world APIs, and the downstream adversarial attack. Though focusing \n302 on image data in this paper, our method is general for other tasks as long as the CAM and similar \n303 erasing method work, e.g., synonym saliency words replacement for NLP tasks [4]. We believe our \n304 method can be easily extended to other fields and inspire future researchers. Model stealing attack \n305 poses a threat to the deployed machine learning models. We hope this work will draw attention to \n306 the protection of deployed models and furthermore shed more light on the attack mechanisms and \n307 prevention methods. ",
979
+ "bbox": [
980
+ 140,
981
+ 758,
982
+ 825,
983
+ 911
984
+ ],
985
+ "page_idx": 8
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "308 References ",
990
+ "text_level": 1,
991
+ "bbox": [
992
+ 148,
993
+ 89,
994
+ 267,
995
+ 106
996
+ ],
997
+ "page_idx": 9
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "frey E Hinton. Large scale distributed neural network training through online distillation. arXiv preprint arXiv:1804.03235, 2018. \n[2] Antonio Barbalau, Adrian Cosma, Radu Tudor Ionescu, and Marius Popescu. Black-box ripper: Copying black-box models using generative evolutionary algorithms. In NeurIPS, 2020. \n[3] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. \n[4] Xinshuai Dong, Anh Tuan Luu, Rongrong Ji, and Hong Liu. Towards robustness against natural language word substitutions. In ICLR, 2021. \n[5] Melanie Ducoffe and Frederic Precioso. Adversarial active learning for deep networks: a margin based approach. In ICML, 2018. \n[6] Tommaso Furlanello, Zachary C Lipton, Michael Tschannen, Laurent Itti, and Anima Anandkumar. Born again neural networks. In ICML, 2018. \n[7] Gregory Griffin, Alex Holub, and Pietro Perona. Caltech-256 object category dataset. 2007. \n[8] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In ICML, 2017. \n[9] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. \n[10] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. In NIPS Deep Learning Workshop, 2015. \n[11] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017. \n[12] Matthew Jagielski, Nicholas Carlini, David Berthelot, Alex Kurakin, and Nicolas Papernot. High accuracy and high fidelity extraction of neural networks. In 29th Usenix Security, 2020. \n[13] Sanjay Kariyappa and Moinuddin K Qureshi. Defending against model stealing attacks with adaptive misinformation. In CVPR, 2020. \n[14] Sanjay Kariyappa, Atul Prakash, and Moinuddin Qureshi. Maze: Data-free model stealing attack using zeroth-order gradient estimation. arXiv preprint arXiv:2005.03161, 2020. \n[15] Kyungyul Kim, ByeongMoon Ji, Doyoung Yoon, and Sangheum Hwang. Self-knowledge distillation: A simple way for better generalization. arXiv preprint arXiv:2006.12000, 2020. \n[16] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. \n[17] David D Lewis and William A Gale. A sequential algorithm for training text classifiers. In SIGIR, 1994. \n[18] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018. \n[19] Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning, 2011. \n[20] Tribhuvanesh Orekondy, Bernt Schiele, and Mario Fritz. Knockoff nets: Stealing functionality of black-box models. In CVPR, 2019. \n[21] Soham Pal, Yash Gupta, Aditya Shukla, Aditya Kanade, Shirish Shevade, and Vinod Ganapathy. Activethief: Model extraction using active learning and unannotated public data. In AAAI, 2020. \n[22] Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In ACM AsiACCS, 2017. \n[23] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 2015. \n[24] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In ICCV, 2017. \n[25] Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach. In ICLR, 2018. \n[26] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. \n[27] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2014. \n[28] Catherine Wah, Steve Branson, Peter Welinder, Pietro Perona, and Serge Belongie. The caltech-ucsd birds-200-2011 dataset. 2011. \n[29] Jiancheng Yang, Yangzhou Jiang, Xiaoyang Huang, Bingbing Ni, and Chenglong Zhao. Learning black-box attackers with transferable priors and query feedback. In NeurIPS, 2020. \n[30] Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In ICLR, 2017. \n[31] Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In ICLR, 2017. \n[32] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. In AAAI, 2020. \n[33] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, 2016. \n[34] Mingyi Zhou, Jing Wu, Yipeng Liu, Shuaicheng Liu, and Ce Zhu. Dast: Data-free substitute training for adversarial attacks. In CVPR, 2020. ",
1002
+ "bbox": [
1003
+ 173,
1004
+ 125,
1005
+ 828,
1006
+ 914
1007
+ ],
1008
+ "page_idx": 9
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "",
1013
+ "bbox": [
1014
+ 171,
1015
+ 92,
1016
+ 826,
1017
+ 458
1018
+ ],
1019
+ "page_idx": 10
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Checklist ",
1024
+ "text_level": 1,
1025
+ "bbox": [
1026
+ 163,
1027
+ 483,
1028
+ 254,
1029
+ 500
1030
+ ],
1031
+ "page_idx": 10
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "1. For all authors... ",
1036
+ "bbox": [
1037
+ 214,
1038
+ 511,
1039
+ 339,
1040
+ 525
1041
+ ],
1042
+ "page_idx": 10
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See section 3 \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] ",
1047
+ "bbox": [
1048
+ 238,
1049
+ 529,
1050
+ 825,
1051
+ 633
1052
+ ],
1053
+ "page_idx": 10
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "2. If you are including theoretical results... ",
1058
+ "bbox": [
1059
+ 214,
1060
+ 637,
1061
+ 493,
1062
+ 652
1063
+ ],
1064
+ "page_idx": 10
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
1069
+ "bbox": [
1070
+ 236,
1071
+ 656,
1072
+ 738,
1073
+ 688
1074
+ ],
1075
+ "page_idx": 10
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "3. If you ran experiments... ",
1080
+ "bbox": [
1081
+ 214,
1082
+ 691,
1083
+ 393,
1084
+ 705
1085
+ ],
1086
+ "page_idx": 10
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "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 the supplemental material \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See section 4.1 \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] See Tab. 1 \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)? [No] ",
1091
+ "bbox": [
1092
+ 238,
1093
+ 709,
1094
+ 825,
1095
+ 842
1096
+ ],
1097
+ "page_idx": 10
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1102
+ "bbox": [
1103
+ 215,
1104
+ 847,
1105
+ 825,
1106
+ 861
1107
+ ],
1108
+ "page_idx": 10
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] See section 4.1 (b) Did you mention the license of the assets? [No] (c) Did you include any new assets either in the supplemental material or as a URL? [No] ",
1113
+ "bbox": [
1114
+ 238,
1115
+ 864,
1116
+ 821,
1117
+ 912
1118
+ ],
1119
+ "page_idx": 10
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [No] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] ",
1124
+ "bbox": [
1125
+ 238,
1126
+ 92,
1127
+ 825,
1128
+ 150
1129
+ ],
1130
+ "page_idx": 11
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1135
+ "bbox": [
1136
+ 214,
1137
+ 154,
1138
+ 707,
1139
+ 169
1140
+ ],
1141
+ "page_idx": 11
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1146
+ "bbox": [
1147
+ 238,
1148
+ 172,
1149
+ 825,
1150
+ 262
1151
+ ],
1152
+ "page_idx": 11
1153
+ }
1154
+ ]
parse/train/5jaqt-Hsqir/5jaqt-Hsqir_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/5jaqt-Hsqir/5jaqt-Hsqir_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/7dpmlkBuJFC/7dpmlkBuJFC.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/7dpmlkBuJFC/7dpmlkBuJFC_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/7dpmlkBuJFC/7dpmlkBuJFC_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/7dpmlkBuJFC/7dpmlkBuJFC_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BklhAj09K7/BklhAj09K7.md ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # UNSUPERVISED DOMAIN ADAPTATION FOR DISTANCE METRIC LEARNING
2
+
3
+ Kihyuk Sohn1 Wenling Shang2 Xiang $\mathbf { Y u } ^ { 1 }$ Manmohan Chandraker1,3 1NEC Labs America 2University of Amsterdam 3UC San Diego
4
+
5
+ # ABSTRACT
6
+
7
+ Unsupervised domain adaptation is a promising avenue to enhance the performance of deep neural networks on a target domain, using labels only from a source domain. However, the two predominant methods, domain discrepancy reduction learning and semi-supervised learning, are not readily applicable when source and target domains do not share a common label space. This paper addresses the above scenario by learning a representation space that retains discriminative power on both the (labeled) source and (unlabeled) target domains while keeping representations for the two domains well-separated. Inspired by a theoretical analysis, we first reformulate the disjoint classification task, where the source and target domains correspond to non-overlapping class labels, to a verification one. To handle both within and cross domain verifications, we propose a Feature Transfer Network (FTN) to separate the target feature space from the original source space while aligned with a transformed source space. Moreover, we present a non-parametric multi-class entropy minimization loss to further boost the discriminative power of FTNs on the target domain. In experiments, we first illustrate how FTN works in a controlled setting of adapting from MNIST-M to MNIST with disjoint digit classes between the two domains and then demonstrate the effectiveness of FTNs through state-of-the-art performances on a cross-ethnicity face recognition problem.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Despite strong performances on facial analysis using deep neural networks (Taigman et al., 2014; Sun et al., 2014; Schroff et al., 2015; Parkhi et al., 2015), learning a model that generalizes across variations in attributes like ethnicity, gender or age remains a challenge. For example, it is reported by Buolamwini & Gebru (2018) that commercial engines tend to make mistakes at detecting gender for images of darker-skinned females. Such biases have enormous social consequences, such as conscious or unconscious discrimination in law enforcement, surveillance or security (WIRED, 2018a;b; NYTimes, 2018; GIZMODO, 2018). A typical solution is to collect and annotate more data along the underrepresented dimension, but such efforts are laborious and time consuming. This paper proposes a novel deep unsupervised domain adaptation approach to overcome such biases in face verification and identification.
12
+
13
+ Deep domain adaptation (Long et al., 2013; 2015; 2016; Tzeng et al., 2015; Ganin et al., 2016; Sohn et al., 2017; Haeusser et al., 2017; Luo et al., 2017) allows porting a deep neural network to a target domain without extensive labeling efforts. Currently, there are two predominant approaches to deep domain adaptation. The first approach, domain divergence reduction learning, is motivated by the works of (Ben-David et al., 2007; 2010). It aims to reduce the source-target domain divergence using domain adversarial training (Ganin et al., 2016; Sohn et al., 2017; Tran et al., 2018) or maximum mean discrepancy minimization (Tzeng et al., 2015; Long et al., 2015; 2016), while leveraging supervised loss from labeled source examples to maintain feature space discriminative power. Since the theoretical basis of this approach (Ben-David et al., 2007) assumes a common task between domains, it is usually applied to a classification problem where the source and target domains share the same label space and task definition. The second approach considers domain adaptation as a semi-supervised learning problem and applies techniques such as entropy minimization (Grandvalet & Bengio, 2005) or self-ensembling (Laine & Aila, 2017; Tarvainen & Valpola, 2017; French et al., 2018) on target examples to encourage decisive and consistent predictions.
14
+
15
+ However, neither of those are applicable if the label spaces of source and target domains do not align. As a motivating example, consider a cross-ethnicity generalization of face recognition problem, where the source ethnicity (e.g., Caucasian) contains labeled examples and the target ethnicity (e.g., African-American) contains only unlabeled examples. When it is cast as a classification problem, the tasks of the two domains are different due to disjoint label spaces. Moreover, examples from different ethnicity domains almost certainly belong to different identity classes. To satisfy such additional label constraints, representations of examples from different domains should ideally be distant from each other in the embedding space, which conflicts with the requirements of domain divergence reduction learning as well as entropy minimization on target examples with source domain class labels.
16
+
17
+ In this work, we aim at learning a shared representation space between a source and target domain with disjoint label spaces that not only remains discriminative over both domains but also keep representations of examples from different domains well-separated, when provided with additional label constraints. Firstly, to overcome the limitation of domain adversarial neural network (DANN) (Ganin et al., 2016), we propose to convert disjoint classification tasks (i.e., the source and target domains correspond to non-overlapping class labels) into a unified binary verification task. We term adaptation across such source and target domains as cross-domain distance metric adaptation (CD2MA). We demonstrate a generalization of the theory of domain adaptation (Ben-David et al., 2007) to our setup, which bounds the empirical risk for within-domain verification of two examples drawn from the unlabeled target domain. While the theory does not guarantee verification between examples from different domains, we propose approaches that also address such cross-domain verification tasks.
18
+
19
+ To this end, we introduce a Feature Transfer Network (FTN) that separates the target features from the source features while simultaneously aligning them with an auxiliary domain of transformed source features. Specifically, we learn a shared feature extractor that maps examples from different domains to representations far apart. Simultaneously, we learn a feature transfer module that transforms the source representation space to another space used to align with the target representation space through a domain adversarial loss. By forging this alignment, the discriminative power from the augmented source representation space would ideally be transferred to the target representation space. The verification setup also allows us to introduce a novel entropy minimization loss in the form of $N$ -pair metric loss (Sohn, 2016), termed multi-class entropy minimization (MCEM), to further leverage unlabeled target examples whose label structure is not known. MCEM samples pairs of examples from a discovered label structure within the target domain using an offline hierarchical clustering algorithm such as HDBSCAN (Campello et al., 2013), computes the $N$ -pair metric loss among these examples (Sohn, 2016), and backpropagates the resulting error derivatives.
20
+
21
+ In experiments, we first perform on a controlled setting by adapting between disjoint sets of digit classes. Specifically, we adapt from 0–4 of MNIST-M (Ganin et al., 2016) dataset to 5–9 of MNIST dataset and demonstrate the effectiveness of FTN in learning to align and separate domains. Then, we assess the impact of our proposed unsupervised CD2MA method on a challenging cross-ethnicity face recognition task, whose source domain contains face images of Caucasian identities and the target domain of non-Caucasian identities, such as African-American or East-Asian. This is an important problem since existing face recognition datasets show significant label biases towards Caucasian ethnicity, leading to sub-optimal recognition performance for other ethnicities. The proposed method demonstrates significant improvement in face verification and identification compared to a source-only baseline model and a standard DANN. Our proposed method also closely matches the performance upper bounds obtained by training with fully labeled source and target domains.
22
+
23
+ # 2 RELATED WORK
24
+
25
+ Research efforts in deep domain adaptation have explored a proper metric to measure the variational distance between two domains and subsequently regularize neural networks to minimize this distance. For example, maximum mean discrepancy (Long et al., 2013; 2016; Tzeng et al., 2014; Fernando et al., 2015; Tzeng et al., 2015; Sun & Saenko, 2016) estimates the domain difference based on kernels. As another example, domain adversarial neural networks (Ganin et al., 2016; Bousmalis et al., 2016; 2017; Sohn et al., 2017; Luo et al., 2017; Tran et al., 2018), measuring the distance using a trainable and flexible discriminator often parameterized by an MLP, have been successfully adopted for several computer vision applications, such as semantic segmentation (Hoffman et al., 2016; Tsai et al., 2018; Zhang et al., 2018) and object detection (Chen et al., 2018). Most of those works assume a common classification task between two domains, whereas we tackle a cross-domain distance metric adaptation problem where label spaces of source and target domains are different.
26
+
27
+ Moreover, our problem setting, an adaptation from labeled source to unlabeled target with disjoint label spaces, contains flavors from both domain adaptation (DA) and transfer learning (TL), following the nomenclature of (Pan et al., 2010). The difference in input distribution between source and target domains and the lack of labels in the target domain are similar to that of DA or transductive TL (Pan et al., 2010), while the difference in label distribution and task definitions between two domains is akin to inductive TL (Pan et al., 2010; Daumé III, 2007). In our work, we formalize this problem in domain adaptation framework using verification as a common task. This is a key contribution that allows theoretical analysis on the generalization bound as presented in Section 3 and Appendix A, while allowing novel applications like cross-ethnicity face recognition.
28
+
29
+ In terms of task objective, (Hu et al., 2015; Ganin et al., 2016; Sohn et al., 2017) also deal with domain adaptation in distance metric learning, but neither learns a representation space capable of separating the source and target domains. Resembling CD2MA, Luo et al. (2017) considers domain adaptation with disjoint label spaces, but the problem is still cast as classification with an assumption that the target label space is known and a few labeled target examples are provided for training.
30
+
31
+ In terms of network design, residual transfer network (Long et al., 2016), which learns two classifiers differ by a residual function for the source and the target domain, is closely related. However, it only tackles the scenario where source and target domains share a common label space for classification.
32
+
33
+ # 3 REVISITING THE THEORY OF DOMAIN ADAPTATION FOR VERIFICATION
34
+
35
+ Under the domain adaptation assumption, Ben-David et al. (2007) show that the empirical risk on the target domain $\mathcal { X } _ { T }$ is bounded by the empirical risk on the source domain $\chi _ { S }$ and the variational distance between the two domains, provided that the source and the target domains share the classifiers. Therefore, this bound is not applicable to our CD2MA setup where the label spaces of two domains are often different. To generalize those theoretical results to our setting, we reformulate the verification task as a binary classification task shared across two domains. This new binary classification task takes a pair of images as an input and predicts the label of 1 if the pair of images shares the same identity and 0 otherwise. Furthermore, if we now define the new source domain to be pairs of source images and the new target domain to be pairs of target images, then Theorem 1 and 2 from (Ben-David et al., 2007) can be directly carried over to bound the new target domain binary classification error in the same manner. That is, the empirical with-in target domain verification loss is bounded by with-in source domain verification loss and the variational distance between $\mathcal { X } _ { S } \times \mathcal { X } _ { S }$ and $\mathscr { X } _ { T } \times \mathscr { X } _ { T }$ .1 Note that inputs to the binary classifier are pairs of images from the same domain. Thus, this setup only addresses adaptation of within-domain verification to unlabeled target domains.
36
+
37
+ There are two implications from the theoretical insights on domain adaptation using verification as a shared classification task. Firstly, domain adversarial training, reducing the discrepancy between the source and the target product spaces, coupled with supervised source domain binary classification loss (i.e., verification loss using source domain labels) can yield target representations with high discriminative power when performing within-domain verification. Note that in practice we approximately reduce the product space discrepancy by generic adversarial learning as done in (Ganin et al., 2016; Sohn et al., 2017). Secondly, there is no guarantee that the aligned source and target feature spaces possess any discriminative power for cross-domain verification task. Thus, additional actions in the form of a feature transfer module and domain separation objective are required to address this issue. These two consequences together motivate the design of our proposed framework, which is introduced in the next section.
38
+
39
+ # 4 FEATURE TRANSFER NET: LEARNING TO ALIGN AND SEPARATE DOMAINS
40
+
41
+ In this section, we first define the CD2MA problem setup and motivate our proposed feature transfer network (FTN). Then we elaborate on the training objectives that help our model achieve its desired properties. Lastly, we provide practical considerations to implement our proposed algorithm.
42
+
43
+ # 4.1 PROBLEM STATEMENT AND ALGORITHM OVERVIEW
44
+
45
+ Recall the description of CD2MA, given source and target domain data distributions $\chi _ { S }$ and $\mathcal { X } _ { T }$ , our goal is to verify whether two random samples $x , x ^ { \prime }$ drawn from either of the two distributions (and we do not know which distribution $x$ or $x ^ { \prime }$ come from a priori) belong to the same class.
46
+
47
+ There are 3 scenarios of constructing a pair: $x , x ^ { \prime } \in \mathcal { X } _ { S }$ , $x , x ^ { \prime } \in \mathcal { X } _ { T }$ , or $x \in \mathcal { X } _ { S } , x ^ { \prime } \in \mathcal { X } _ { T }$ . We refer the task of the first two cases as within-domain verification and the last as cross-domain verification.
48
+
49
+ ![](images/8cfeb16e958c5f11cf1c6ec4dcf6ae64daf6322ef950f6bc112c510328987eef.jpg)
50
+ Figure 1: Training of Feature Transfer Network (FTN) for verification, composed of feature generation module (Gen; $f )$ , feature transfer module $( \operatorname { T x } ; g )$ , and two domain discriminators $D _ { 1 }$ and $D _ { 2 }$ . Verification objective ${ \mathcal { L } } _ { \mathrm { v r f } }$ ’s are applied to source $( f _ { s } )$ pairs and transformed source $( g ( f _ { s } ) ) ,$ ) pairs. Our FTN applies domain adversarial objective ${ \mathcal { L } } _ { \mathrm { a d v } }$ for domain alignment between transformed source and target domains by $D _ { 1 }$ and applies $\mathcal { L } _ { \mathrm { s e p } }$ to distinguish source domain from both target and transformed source domains by $D _ { 2 }$ .
51
+
52
+ If $x , x ^ { \prime } \in \mathcal { X } _ { S }$ (or $\chi _ { T } .$ ), we need a source (or target) domain classifier2. For the source domain, we are provided with adequate labeled training examples to learn a competent classifier. For the target domain, we are only given unlabeled examples. However, with our extension of Theorem 1 and 2 from (Ben-David et al., 2007), discriminative power of the classifier can be transferred to the target domain by adapting the representation spaces of $\mathcal { X } _ { T } \times \mathcal { X } _ { T }$ and $\mathcal { X } _ { S } \times \mathcal { X } _ { S }$ , that is, we can utilize the same competent classifier from the source domain to verify target domain pairs if two domains are well-aligned. For the third scenario where $x \in X _ { S }$ but $x ^ { \prime } \in X _ { T }$ , we assume that the two examples cannot be of the same class, which is true for problems such as cross-ethnicity face verification.
53
+
54
+ Our proposed framework, Feature Transfer Network (FTN), is designed to solve all these verification scenarios in an unified framework. FTN is composed of multiple modules as illustrated in Figure 1. First, a feature generation module $f : \mathcal { X } \to \mathcal { Z }$ denoted as “Gen” in Figure 1 ideally maps $\chi _ { S }$ and $\mathcal { X } _ { T }$ to distinguishable representation spaces, that is, $f ( \mathcal { X } _ { S } )$ and $f ( \mathcal { X } _ { T } )$ are far apart. To achieve this, we introduce a domain separation objective.3 Next, the feature transfer module $g : { \mathcal { Z } } \to { \mathcal { Z } }$ denoted as “Tx” in Figure 1 transforms $f ( \mathcal { X } _ { S } )$ to $g ( f ( \mathcal { X } _ { S } ) )$ for it to be aligned with $f ( \mathcal { X } _ { T } )$ . To achieve this, we introduce a domain adversarial objective. Finally, we apply verification losses on $f ( \mathcal { X } _ { S } )$ and $g ( f ( \mathcal { X } _ { S } ) )$ using classifiers $h _ { f } , h _ { g } : \mathcal { Z } \times \mathcal { Z } \{ 0 , 1 \}$ . During testing, we compare the metric distance between ${ \dot { f } } ( x )$ and $f ( x ^ { \prime } )$ . Overall, we achieve the following desired capabilities:
55
+
56
+ • If $x , x ^ { \prime }$ are from different domains, $f ( x )$ and $f ( x ^ { \prime } )$ will be far away due to the functionality of the feature generation module. • If $x , x ^ { \prime } \in \mathcal { X } _ { S }$ , then $f ( x )$ and $f ( x ^ { \prime } )$ will be close if they belong to the same class and far away otherwise, due to the discriminative power acquired from optimizing $h _ { f }$ . • If $x , x ^ { \prime } \in \mathcal { X } _ { T }$ , then $f ( x )$ and $f ( x ^ { \prime } )$ will be close if they belong to the same class and far otherwise, due to the discriminative power acquired by optimizing $h _ { g }$ with domain adversarial training.
57
+
58
+ # 4.2 TRAINING OBJECTIVES
59
+
60
+ We first define individual learning objectives of the proposed Feature Transfer Network and then present overall training objectives of FTN. For ease of exposition, all objectives are to be maximized.
61
+
62
+ Verification Objective. For a pair of source examples, we evaluate the verification losses at two representations spaces $f ( \mathcal { X } _ { S } )$ and $g ( f ( \mathcal { X } _ { S } ) )$ using classifiers $h _ { f }$ and $h _ { g }$ as follows:
63
+
64
+ $$
65
+ \begin{array} { r l } & { \mathcal { L } _ { \mathrm { v r f } } ( f ) = \mathbb { E } _ { ( x _ { 1 } , x _ { 2 } ) \in \mathcal { X } _ { S } \times \mathcal { X } _ { S } } \left[ y _ { 1 2 } \log h _ { f } ( f _ { 1 } , f _ { 2 } ) + ( 1 \mathrm { - } y _ { 1 2 } ) \log ( 1 - h _ { f } ( f _ { 1 } , f _ { 2 } ) ) \right] } \\ & { \mathcal { L } _ { \mathrm { v r f } } ( g ) = \mathbb { E } _ { ( x _ { 1 } , x _ { 2 } ) \in \mathcal { X } _ { S } \times \mathcal { X } _ { S } } \left[ y _ { 1 2 } \log h _ { g } ( g _ { 1 } , g _ { 2 } ) + ( 1 \mathrm { - } y _ { 1 2 } ) \log ( 1 - h _ { g } ( g _ { 1 } , g _ { 2 } ) ) \right] } \end{array}
66
+ $$
67
+
68
+ where $g _ { i } = g ( f ( x _ { i } ) ) , f _ { i } = f ( x _ { i } )$ and $y _ { 1 2 } = 1$ if $x _ { 1 }$ and $x _ { 2 }$ are from the same class and 0 otherwise. While classifiers $h _ { f } , h _ { g }$ can be parameterized by neural networks, we aim to learn a generator $f$ and $g$ whose embeddings can be directly used as a distance metric. Therefore, we use non-parameteric classifiers hf = σ(f >1 f2), hg = σ(g>1 g2) where σ(a) = 11+exp(−a) .
69
+
70
+ Domain Adversarial Objective. Let $D _ { 1 } : \mathcal { Z } \to ( 0 , 1 )$ be a domain discriminator. As mentioned earlier, $D _ { 1 }$ is trained to discriminate distributions $f ( \mathcal { X } _ { T } )$ and $g ( f ( \mathcal { X } _ { S } ) )$ and then produces gradient for them to be indistinguishable. The learning objectives are written as follows:
71
+
72
+ $$
73
+ \mathcal { L } _ { D _ { 1 } } = \mathbb { E } _ { x \in \mathcal { X } _ { S } } \log D _ { 1 } ( g ) + \mathbb { E } _ { x \in \mathcal { X } _ { T } } \log \left( 1 - D _ { 1 } ( f ) \right) , \ \mathcal { L } _ { \mathrm { a d v } } = \mathbb { E } _ { x \in \mathcal { X } _ { T } } \log D _ { 1 } ( f )
74
+ $$
75
+
76
+ Note that when feature transform module is an identity mapping, i.e., $g ( f ( x ) ) = f ( x )$ , Equation (3) defines the training objective of standard DANN.
77
+
78
+ Domain Separation Objective. The goal of this objective is to distinguish between source and target at representation spaces of generation module. To this end, we formulate the objective using another domain discriminator $D _ { 2 } : \mathcal { Z } \to ( 0 , 1 )$ :
79
+
80
+ $$
81
+ \mathcal { L } _ { \mathrm { s e p } } = \mathbb { E } _ { x \in \mathcal { X } _ { S } } \log D _ { 2 } ( f ) + \frac { 1 } { 2 } \big [ \mathbb { E } _ { x \in \mathcal { X } _ { S } } \log ( 1 - D _ { 2 } ( g ) ) + \mathbb { E } _ { x \in \mathcal { X } _ { T } } \log ( 1 - D _ { 2 } ( f ) ) \big ]
82
+ $$
83
+
84
+ Note that, in $\mathcal { L } _ { \mathrm { s e p } }$ , the source space $f ( \mathcal { X } _ { S } )$ is not only pushed apart from the target space $f ( \mathcal { X } _ { T } )$ but also from the augmented source space $g ( f ( \mathcal { X } _ { S } ) )$ to ensure that $g$ learns meaningful transformation of source domain representation beyond identity transformation.
85
+
86
+ Training FTN. Now we are ready to present the overall training objectives $\mathcal { L } _ { f }$ and $\mathcal { L } _ { g }$ :
87
+
88
+ $$
89
+ \mathcal { L } _ { f } = \frac { 1 } { 2 } \big [ \mathcal { L } _ { \mathrm { v r f } } ( g ) + \mathcal { L } _ { \mathrm { v r f } } ( f ) \big ] + \lambda _ { 1 } \mathcal { L } _ { \mathrm { a d v } } + \lambda _ { 2 } \mathcal { L } _ { \mathrm { s e p } } , \mathcal { L } _ { g } = \mathcal { L } _ { \mathrm { v r f } } ( g ) + \lambda _ { 2 } \mathbb { E } _ { \mathcal { X } _ { S } } \log ( 1 - D _ { 2 } ( g ) )
90
+ $$
91
+
92
+ with $\lambda _ { 1 }$ for domain adversarial objective and $\lambda _ { 2 }$ for domain separation objective. We use $\mathcal { L } _ { D _ { 1 } }$ in Equation (3) for $D _ { 1 }$ and $\mathcal { L } _ { D _ { 2 } } = \mathcal { L } _ { \mathrm { s e p } }$ for $D _ { 2 }$ . We alternate updating between $D _ { 1 }$ and $( f , g , D _ { 2 } )$ .
93
+
94
+ # 4.3 PRACTICAL CONSIDERATIONS
95
+
96
+ Preventing Mode Collapse via Feature Reconstruction Loss. The mode collapsing phenomenon with generative adversarial networks (GANs) (Goodfellow et al., 2014) has received much attention (Salimans et al., 2016). In the context of domain adaptation, we also find it critical to treat the domain adversarial objective with care to avoid similar optimization instability.
97
+
98
+ In this work, we prevent the mode collapse issue for domain adversarial learning with an additional regularization method similar to (Sohn et al., 2017). Assuming the representation of the source domain is already close to optimal, we regularize the features of source examples to be similar to those from the reference network $f _ { \mathrm { r e f } } : \mathcal { X } \xrightarrow { } \mathcal { Z }$ , which is pretrained on labeled source data and fixed during the training of $f$ . Furthermore, we add a similar but less emphasized $( \lambda _ { 4 } < \lambda _ { 3 } )$ regularization to target examples, simultaneously avoiding collapsing and allowing more room for target features to diverge from the original representations. Finally, the feature reconstruction loss is written as follows:
99
+
100
+ $$
101
+ \begin{array} { r } { \mathcal { L } _ { \mathrm { r e c o n } } = - \big [ \lambda _ { 3 } \mathbb { E } _ { x \in \mathcal { X } _ { S } } \| f ( x ) - f _ { \mathrm { r e f } } ( x ) \| _ { 2 } ^ { 2 } + \lambda _ { 4 } \mathbb { E } _ { x \in \mathcal { X } _ { T } } \| f ( x ) - f _ { \mathrm { r e f } } ( x ) \| _ { 2 } ^ { 2 } \big ] } \end{array}
102
+ $$
103
+
104
+ We empirically find that without the feature reconstruction loss, the training would become unstable, reach an early local optimum and lead to suboptimal performance (see Section 6 and Appendix C). Thus, we always include the feature reconstruction loss to train DANN or FTN models unless stated otherwise.
105
+
106
+ Replacing Verification Loss with $N$ -pair Loss. Our theoretical analysis in Section 3 (and Appendix A) suggests to use a verification loss that compares similarity between a pair of images. In practice, however, the pairwise verification loss is too weak to learn a good deep distance metric. Following (Sohn, 2016), we propose to replace the verification loss with an $N$ -pair loss, defined as follows:
107
+
108
+ $$
109
+ \mathcal { L } _ { N } ( f ) = \mathbb { E } _ { \{ x _ { n } , x _ { n } ^ { + } \} _ { n = 1 } ^ { N } , x _ { n } , x _ { n } ^ { + } \in \mathcal { X } _ { S } } \Big [ \sum _ { n = 1 } ^ { N } \log p _ { n } ( f ) \Big ] , \ p _ { n } ( f ) = \frac { \exp ( f ( x _ { n } ) ^ { \top } f ( x _ { n } ^ { + } ) ) } { \sum _ { k = 1 } ^ { N } \exp ( f ( x _ { n } ) ^ { \top } f ( x _ { k } ^ { + } ) ) }
110
+ $$
111
+
112
+ where $x _ { n }$ and $x _ { n } ^ { + }$ are from the same class and $x _ { n }$ and $x _ { k } ^ { + }$ , $n \neq k$ , are from different classes. Replacing ${ \mathcal { L } } _ { \mathrm { v r f } }$ into $\mathcal { L } _ { N }$ , the training objective of FTN with $N$ -pair loss is written as follows:
113
+
114
+ $$
115
+ \mathcal { L } _ { f } = \frac { 1 } { 2 } \big [ \mathcal { L } _ { N } ( g ) + \mathcal { L } _ { N } ( f ) \big ] + \lambda _ { 1 } \mathcal { L } _ { \mathrm { a d v } } + \lambda _ { 2 } \mathcal { L } _ { \mathrm { s e p } } + \mathcal { L } _ { \mathrm { r e c o n } } , \ \mathcal { L } _ { g } = \mathcal { L } _ { N } ( g ) + \lambda _ { 2 } \mathbb { E } _ { \mathcal { X } _ { S } } \log ( 1 - D _ { 2 } ( g ) )
116
+ $$
117
+
118
+ ![](images/615d4cd79fd19165dc5663fa4acc13f4c916387923ea7b2e30633301e743bb85.jpg)
119
+ Figure 2: t-SNE visualizations of source (0–4 from MNIST-M) and target (5–9 from MNIST) representations by different learning methods: (a) deep neural network without adaptation, (b) domain adversarial neural network (DANN) and (c) our feature transfer network (FTN). While domain adversarial learning results in significant confusion of digits classes between source and target domains (e.g., 3/5, 2/8, 4/9, or 0/6 in (b)), the proposed FTN transfers discriminative power to target domain while successfully separating them from the source domain.
120
+
121
+ # 5 ENTROPY MINIMIZATION VIA HIERARCHICAL CLUSTERING
122
+
123
+ Entropy minimization (Grandvalet & Bengio, 2005) is a popular training objective in unsupervised domain adaptation: unlabeled data is trained to minimize entropy of a class prediction distribution so as to form features that convey confident decision rules. However, it is less straightforward how to apply entropy minimization when label spaces for source and target are disjoint. Motivated from Section 3, we extend entropy minimization for distance metric adaptation using verification as a common task for both domains:
124
+
125
+ $$
126
+ \begin{array} { r } { \mathcal { L } _ { \mathrm { v r f } } ^ { \mathrm { e n t } } ( f ) = \mathbb { E } _ { x _ { i } , x _ { j } \in \mathcal { X } _ { T } } \left[ p _ { i j } \log p _ { i j } + ( 1 - p _ { i j } ) \log ( 1 - p _ { i j } ) \right] } \end{array}
127
+ $$
128
+
129
+ where $p _ { i j } \triangleq p _ { i j } ( f ) = \sigma ( f ( x _ { i } ) ^ { \top } f ( x _ { j } ) )$ . This formulation encourages a more confident prediction for verifying two unlabeled images, whether or not coming from the same class.
130
+
131
+ However, recall that for the source domain, we use $N$ -pair loss instead of pair-wise verification loss for better representation learning. Therefore, we would like to similarly incorporate the concept of $N$ - pair loss on the target domain by forging a multi-class entropy minimization (MCEM) objective. This demands $N$ pair examples to be sampled from the target domain. As the target domain is unlabeled, we ought to first discover a plausible label structure, which is done off-line via HDBSCAN (Campello et al., 2013; McInnes et al., 2017), a fast and scalable density-based hierarchical clustering algorithm. The returned clusters provide pseudo-labels to individual examples of the target domain, allowing us to sample $N$ pair examples to evaluate the following MCEM objective:
132
+
133
+ $$
134
+ \mathcal { L } _ { N } ^ { \mathrm { e n t } } ( f ) = \mathbb { E } _ { \{ x _ { n } , x _ { n } ^ { + } \} _ { n = 1 } ^ { N } , x _ { n } , x _ { n } ^ { + } \in \mathcal { X } _ { T } } \Big [ \sum _ { n = 1 } ^ { N } \big \{ \sum _ { m = 1 } ^ { N } p _ { n m } \log p _ { n m } \big \} \Big ] , \ p _ { n m } ( f ) = \frac { \exp \bigl ( f _ { n } ^ { \top } f _ { m } ^ { + } \bigr ) } { \sum _ { k = 1 } ^ { N } \exp \bigl ( f _ { n } ^ { \top } f _ { k } ^ { + } \bigr ) }
135
+ $$
136
+
137
+ where $x _ { n }$ and $x _ { n } ^ { + }$ are from the same cluster and $x _ { n }$ and $x _ { k } ^ { + }$ , $n \neq k$ are from different clusters. The objective can be combined with $\mathcal { L } _ { f }$ in Equation (8) to optimize $f$ .
138
+
139
+ # 6 EXPERIMENTS
140
+
141
+ In this section, we first experiment on digit datasets as a proof of concept and compare our proposed FTN to DANN. Then, we tackle the problem of cross-ethnicity generalization in the context of face recognition to demonstrate the effectiveness of FTN. In all experiments, we use $N$ -pair loss as defined in Equation (8) to update $f$ and $g$ for better convergence and improved performance. We also use the same learning objectives for DANN while fixing $g$ to the identity mapping and $\lambda _ { 2 } = 0$ .
142
+
143
+ # 6.1 PROOF OF CONCEPT: MNIST-M (0–4) TO MNIST (5–9)
144
+
145
+ To provide insights on the functionality of FTN, we conduct an experiment adapting the digits 0–4 from MNIST-M (Ganin et al., 2016) to 5–9 from MNIST. In other words, the two domains in our setting not only differ in foreground and background patterns but also contain non-overlapping digit classes, contrasting the usual adaptation setup with a shared label space. Our goal is to learn a feature space that separates the digit classes not only within each domain, but also across the two.
146
+
147
+ We construct a feature generator $f$ composed of a CNN encoder followed by two fully-connected (FC) layers and a feature transfer module $g$ composed of MLP with residual connections. Outputs of $f$ and $g$ are then fed to discriminators $D _ { 1 }$ and $D _ { 2 }$ parameterized by MLPs to induce domain adversarial and domain separation losses respectively. We provide more architecture details in Appendix B.1.
148
+
149
+ We visualize t-SNE plots of generator features in Figure 2. Without an adaptation (Figure 2(a)), features of digits from the target domain are heavily mixed with those from the source domain as well as one another. The model reaches $1 . 3 \%$ verification error in the source domain but as high as $2 7 . 3 \%$ in the target domain. Though DANN in Figure 2(b) shows better separation with a reduced target verification error of $2 . 2 \%$ , there still exists significant overlap between digit classes across two domains, such as 3/5, 4/9, 0/6 and 2/8. As a result, a domain classifier trained to distinguish source and target on top of generator features can only attain $1 1 . 5 \%$ classification error. In contrast, the proposed FTN in Figure 2(c) shows 10 clean clusters without any visual overlap among 10 digits classes from either source or target domain, implying that it not only separates digits within the target domain ( $2 . 1 \%$ verification error), but also differentiates them across domains $( 0 . 3 \%$ domain classification error).
150
+
151
+ Table 1: Verification and identification accuracy on the Cross Ethnicity Faces (CEF) dataset. For supervised models, we report results trained on labeled CAU $( \mathrm { S u p } ^ { \mathrm { C } } )$ or on labeled CAU, AA, EA domains $( \mathbf { S } \mathbf { u p } ^ { \mathbf { C } , \mathrm { A } , \mathrm { E } } )$ ; for adaptation, we evaluate DANN and FTN, without and with multi-class entropy minimization (MCEM).
152
+
153
+ <table><tr><td rowspan="2">Model</td><td colspan="4">Verification</td><td colspan="4">Identification</td></tr><tr><td>CAU</td><td>AA</td><td>EA</td><td>ALL</td><td>CAU</td><td>AA</td><td>EA</td><td>ALL</td></tr><tr><td>SupC</td><td>98.39</td><td>92.24</td><td>93.41</td><td>95.58</td><td>90.07</td><td>69.64</td><td>76.37</td><td>77.97</td></tr><tr><td>SupCA.E</td><td>98.43</td><td>97.16</td><td>97.05</td><td>98.15</td><td>90.16</td><td>84.02</td><td>84.38</td><td>85.75</td></tr><tr><td>DANN\Lrecon</td><td>98.36</td><td>94.54</td><td>95.02</td><td>96.84</td><td>90.01</td><td>73.05</td><td>74.94</td><td>77.99</td></tr><tr><td>DANN</td><td>98.36</td><td>95.37</td><td>96.36</td><td>97.34</td><td>90.34</td><td>74.88</td><td>79.39</td><td>79.83</td></tr><tr><td>FTN</td><td>98.36</td><td>95.62</td><td>96.64</td><td>97.68</td><td>90.54</td><td>75.35</td><td>80.69</td><td>81.28</td></tr><tr><td>DANN+MCEM</td><td>98.39</td><td>96.36</td><td>97.34</td><td>97.88</td><td>90.77</td><td>80.30</td><td>83.07</td><td>82.69</td></tr><tr><td>FTN+MCEM</td><td>98.37</td><td>96.76</td><td>97.40</td><td>98.08</td><td>90.95</td><td>80.75</td><td>83.71</td><td>84.16</td></tr></table>
154
+
155
+ Table 2: Cross domain identification accuracy on CEF, with CAU evaluated against AA $^ +$ EA combined, AA against CAU and EA against CAU.
156
+
157
+ <table><tr><td>Model</td><td>CAU vs. AA, EA</td><td>AA vs. CAU</td><td>EA vs. CAU</td></tr><tr><td>SupC</td><td>91.67</td><td>95.42</td><td>94.87</td></tr><tr><td>DANN</td><td>89.91</td><td>84.78</td><td>91.47</td></tr><tr><td>FTN</td><td>92.29</td><td>88.09</td><td>92.07</td></tr></table>
158
+
159
+ # 6.2 CROSS ETHNICITY FACE VERIFICATION AND RECOGNITION
160
+
161
+ The performances of face recognition engines have significantly improved thanks to recent advances in deep learning for image recognition (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; Szegedy et al., 2015; He et al., 2016) and publicly available large-scale face recognition datasets (Yi et al., 2014; Guo et al., 2016). However, most public datasets are collected from the web by querying celebrities, with significant label bias towards Caucasian ethnicity. For example, more than $\bar { 8 } 5 \%$ of identities are Caucasian for CASIA Web face dataset (Yi et al., 2014). Similarly, $8 2 \%$ are Caucasian (CAU) for MS-Celeb-1M (MS-1M) dataset (Guo et al., 2016), while there are only $9 . 7 \%$ African-American (AA), $6 . 4 \%$ East-Asian (EA) and less than $2 \%$ Latino and South-Asian combined.4
162
+
163
+ Such imbalance across ethnicity in labeled training data can result in significant drop in identification performance on data-scarce minorities: the second row of Table 1 shows a model trained on Caucasian dominated dataset performs poorly on the other ethnicities. As expected, if the training data is composed of only Caucasian identities as source domain, the performance over the target domains consisting of the other ethnicities further deteriorates (see row 1 of Table 1). Provided the available labeled source domain contains only Caucasian identities, we subsequently demonstrate that our method can effectively leverage unlabeled data from the non-Caucasian target ethnicity to substantially improve their face verification performances.
164
+
165
+ Experimental Setup. We perform an adaptation from CAU to a mixture of AA and EA. Our experiments use the MS-1M dataset. We first remove identities that both appear in the training and testing sets. The resulting training set consists of $4 . 0 4 M$ images from $6 0 K$ CAU identities, $3 9 8 K$ images from $7 K$ AA identities, and $3 0 8 K$ images from $4 . 6 K$ EA identities. For domain adaptation experiments, we use labeled CAU images and unlabeled AA, EA images for training. For supervised experiments to obtain performance lower and upper bound, we use labeled CAU images to train $\mathrm { S u p ^ { C } }$ and labeled CAU, AA, EA images to train $\mathrm { S u p } ^ { \mathrm { \hat { C } , A , E } }$ .
166
+
167
+ We adopt a 38-layer ResNet (He et al., 2016) for the feature generation module. Feature transfer module and discriminators are parameterized with MLPs similarly to Section 6.1. We use 4096-pair loss for training, including for the supervised CNNs. It is worth mentioning that our network architecture and training scheme result in strongly competitive face recognition performance, comparing to other state-of-the-art methods such as FaceNet (Schroff et al., 2015) on YouTube Faces (Wolf et al., 2011) $( 9 7 . 3 2 \%$ (ours) vs $9 5 . 1 2 \%$ ) and Neural Aggregation Network (Yang et al., 2017) on IJB-A (see row 2 of Table 3). The complete network architecture and training details are provided in Appendix B.2.
168
+
169
+ Evaluation. We report the performance of the baseline and our proposed models on two standard face recognition benchmarks LFW (Huang et al., 2007) and IJB-A (Klare et al., 2015). Note that these datasets also exhibit significant ethnicity bias.5
170
+
171
+ To highlight the effectiveness of the proposed adaptation approach, we construct individual test set for CAU, AA, EA, each of which contains 10 face images from 200 identities. We refer to our testing set as the Cross-Ethnicity Faces (CEF) dataset. We apply two evaluation metrics on CEF dataset, verification accuracy and identification accuracy. For verification, following the standard protocol (Huang et al., 2007), we construct 10 splits, each containing 900 positive and 900 negative pairs, and compute the accuracy on each split using the threshold found from the other 9 splits. For identification, a pair composed of the reference and the query images from the same identity is considered correct if there is no image from different identity that has higher similarity to the reference image than the query image. We evaluate identification accuracy per ethnicity (200-way) as well as across all ethnicities (600-way).
172
+
173
+ Results. The results on CEF are summarized in Table 1. Cross domain identification accuracy is reported in Table 2, where we use AA and EA as negative classes when evaluating accuracy on CAU and vice versa, as a measure to indicate domain discrepancy. Among adaptation models, DANN without feature reconstruction loss $\left( \mathrm { D A N N } \backslash \mathcal { L } _ { \mathrm { r e c o n } } \right)$ shows unstable training and easily degenerate, which leads to only marginal improvement upon $\mathrm { S u p ^ { C } }$ . Similar trend is observed while training FTN. Therefore, to ensure training stability, we impose ${ \mathcal { L } } _ { \mathrm { r e c o n } }$ as a regularization term for all adaptation models. More analysis on the effectiveness of $\scriptstyle { \mathcal { L } } _ { \mathrm { r e c o n } }$ is provided in Appendix C.
174
+
175
+ When testing on AA and EA with model trained on only the labeled source CAU domain $( \mathrm { S u p } ^ { \mathrm { C } } )$ , we observe significant performance drops in Table 1. Meanwhile, in Table 2, cross domain identification accuracy is much higher than within domain identification accuracy, i.e., $9 6 . 1 4 \%$ of AA vs. CAU is much higher than $7 1 . 9 2 \%$ of AA identification in Table 1, indicating 1) significant discrepancy between the feature spaces of the source and target domains and 2) lack of discriminative power for within domain verification task on target ethnicity.
176
+
177
+ Comparing to $\mathrm { S u p ^ { C } }$ , both DANN and FTN show moderate improvement when testing on AA and EA from CEF (Table 1), demonstrating the effectiveness of domain adversarial learning in transferring within domain verification capability from labeled source domain to unlabeled target domain. Despite the improvement, DANN suffers a notable drawback from adversarial objective which attempts to align identities from different domains, resulting a poor cross domain identification accuracy as shown in Table 2. In contrast, the proposed FTN achieves much higher cross domain identification accuracy, demonstrating both within and cross domain discriminative power.
178
+
179
+ Additionally, in combination with the multi-class entropy minimization $\mathbf { ( F T N + M C E M ) }$ ), we further boost the verification and identification accuracy over FTN on AA and EA as well as approach the accuracy of $\operatorname { S u p } ^ { \mathrm { C , A , E } }$ , the performance upper bound. This indicates that the HDBSCAN-based hierarchical clustering provides high quality pseudo-class labels for MCEM to be effective. Indeed, the clustering algorithm achieves F-score as high as $9 6 . 3 1 \%$ and $9 6 . 3 4 \%$ on AA and EA. We provide more in-depth analysis on the clustering strategy in Appendix D.
180
+
181
+ Finally, Table 3 reports the performance of face recognition models on standard verification and recognition benchmarks. We observe similar improvements with our proposed distance metric adaptation when only using labeled CAU, i.e., source domain, as training data. Once the task becomes more challenging thus demands more discriminative power, the advantage of our method becomes more evident, such as in the case of open-set recognition and verification at low FAR.
182
+
183
+ # 7 CONCLUSION
184
+
185
+ We address the challenge of unsupervised domain adaptation when the source and the target domains have disjoint label spaces by formulating the classification problem into a verification task. We propose a Feature Transfer Network, allowing simultaneous optimization of domain adversarial loss and domain separation loss, as well as a variant of $N$ -pair metric loss for entropy minimization on the target domain where the ground-truth label structure is unknown, to further improve the adaptation quality. Our proposed framework excels at both within-domain and cross-domain verification tasks. As an application, we demonstrate cross-ethnicity face verification that overcomes label biases in training data, achieving high accuracy even for unlabeled ethnicity domains, which we believe is a result with vital social significance.
186
+
187
+ Table 3: Face verification and recognition performance on LFW and IJB-A. From left to right, verification (VRF), closed-set (CLS) and open-set recognition at $\mathrm { F A R } = 0 . 0 1$ and 0.001 (Best-Rowden et al., 2014) on LFW, and verification at different FAR and identification (id.) at rank- $k$ on IJB-A are reported.
188
+
189
+ <table><tr><td rowspan="2">Model</td><td colspan="4">LFW</td><td colspan="3">IJB-A (verification)</td><td colspan="2">IJB-A (id.)</td></tr><tr><td>VRF</td><td>CLS</td><td>0.01</td><td>0.001</td><td>0.01</td><td>0.001</td><td>0.0001</td><td>rank-1</td><td>rank-5</td></tr><tr><td>SupC</td><td>99.57</td><td>98.95</td><td>86.07</td><td>66.61</td><td>92.67</td><td>76.65</td><td>50.32</td><td>94.31</td><td>97.25</td></tr><tr><td>SupCA.E</td><td>99.72</td><td>98.79</td><td>96.81</td><td>91.11</td><td>95.57</td><td>87.45</td><td>76.45</td><td>94.73</td><td>97.19</td></tr><tr><td>DANN\Lrecon</td><td>99.43</td><td>98.98</td><td>96.81</td><td>91.44</td><td>94.23</td><td>86.87</td><td>73.80</td><td>94.27</td><td>97.03</td></tr><tr><td>DANN</td><td>99.63</td><td>98.95</td><td>97.15</td><td>93.46</td><td>95.54</td><td>88.64</td><td>77.13</td><td>94.59</td><td>97.31</td></tr><tr><td>FTN</td><td>99.63</td><td>99.11</td><td>97.15</td><td>92.95</td><td>95.07</td><td>88.45</td><td>77.70</td><td>94.48</td><td>97.19</td></tr><tr><td>DANN+MCEM</td><td>99.63</td><td>99.08</td><td>97.65</td><td>94.97</td><td>95.28</td><td>88.78</td><td>77.30</td><td>94.75</td><td>97.30</td></tr><tr><td>FTN+MCEM</td><td>99.65</td><td>99.14</td><td>96.98</td><td>93.46</td><td>94.63</td><td>88.28</td><td>77.98</td><td>94.79</td><td>97.00</td></tr></table>
190
+
191
+ # REFERENCES
192
+
193
+ Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. In NIPS, 2007. 1, 2, 3, 4
194
+
195
+ Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. A theory of learning from different domains. Machine learning, 79(1):151–175, 2010. 1
196
+
197
+ Lacey Best-Rowden, Hu Han, Christina Otto, Brendan F Klare, and Anubhav K Jain. Unconstrained face recognition: Identifying a person of interest from a media collection. IEEE Transactions on Information Forensics and Security, 9(12):2144–2157, 2014. 9
198
+
199
+ Konstantinos Bousmalis, George Trigeorgis, Nathan Silberman, Dilip Krishnan, and Dumitru Erhan. Domain separation networks. In NIPS, 2016. 2, 4
200
+
201
+ Konstantinos Bousmalis, Nathan Silberman, David Dohan, Dumitru Erhan, and Dilip Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. In CVPR, July 2017. 2
202
+
203
+ Joy Buolamwini and Timnit Gebru. Gender shades: Intersectional accuracy disparities in commercial gender classification. In Conference on Fairness, Accountability and Transparency, 2018. 1
204
+
205
+ Ricardo JGB Campello, Davoud Moulavi, and Jörg Sander. Density-based clustering based on hierarchical density estimates. In Pacific-Asia conference on knowledge discovery and data mining, pp. 160–172. Springer, 2013. 2, 6
206
+
207
+ Yuhua Chen, Wen Li, Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Domain adaptive faster r-cnn for object detection in the wild. In CVPR, 2018. 2
208
+
209
+ Hal Daumé III. Domain adaptation vs. transfer learning. https://nlpers.blogspot.com/ 2007/11/domain-adaptation-vs-transfer-learning.html, 2007. 3
210
+
211
+ Basura Fernando, Tatiana Tommasi, and Tinne Tuytelaars. Joint cross-domain classification and subspace learning for unsupervised adaptation. Pattern Recognition Letters, 65:60–66, 2015. 2
212
+
213
+ Brian Forrest. Math 451 course note. 1
214
+
215
+ Geoffrey French, Michal Mackiewicz, and Mark Fisher. Self-ensembling for visual domain adaptation. In ICLR, 2018. 1
216
+
217
+ Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. Journal of Machine Learning Research, 17(59):1–35, 2016. 1, 2, 3, 6
218
+
219
+ GIZMODO. How apple says it prevented face id from being racist. https://gizmodo.com/ how-apple-says-it-prevented-face-id-from-being-racist-1819557448, 2018. 1
220
+
221
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, 2014. 5
222
+
223
+ Ian J Goodfellow, David Warde-Farley, Mehdi Mirza, Aaron Courville, and Yoshua Bengio. Maxout networks. In ICML, 2013. 2
224
+
225
+ Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In NIPS, 2005. 1, 6
226
+
227
+ Yandong Guo, Lei Zhang, Yuxiao Hu, Xiaodong He, and Jianfeng Gao. MS-Celeb-1M: A dataset and benchmark for large scale face recognition. In ECCV, 2016. 7
228
+
229
+ Philip Haeusser, Thomas Frerix, Alexander Mordvintsev, and Daniel Cremers. Associative domain adaptation. In ICCV, 2017. 1, 2
230
+
231
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 7
232
+
233
+ Judy Hoffman, Dequan Wang, Fisher Yu, and Trevor Darrell. FCNs in the wild: Pixel-level adversarial and constraint-based adaptation. arXiv preprint arXiv:1612.02649, 2016. 2
234
+
235
+ Junlin Hu, Jiwen Lu, and Yap-Peng Tan. Deep transfer metric learning. In CVPR, pp. 325–333, 2015. 3
236
+
237
+ Gary B. Huang, Manu Ramesh, Tamara Berg, and Erik Learned-Miller. Labeled faces in the wild: A database for studying face recognition in unconstrained environments. Technical report, University of Massachusetts, Amherst, 2007. 8
238
+
239
+ Daniel Kifer, Shai Ben-David, and Johannes Gehrke. Detecting change in data streams. In Proceedings of the Thirtieth international conference on Very large data bases-Volume 30, pp. 180–191. VLDB Endowment, 2004. 1
240
+
241
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. 3
242
+
243
+ Brendan F Klare, Ben Klein, Emma Taborsky, Austin Blanton, Jordan Cheney, Kristen Allen, Patrick Grother, Alan Mah, and Anil K Jain. Pushing the frontiers of unconstrained face detection and recognition: IARPA Janus Benchmark A. In CVPR, 2015. 8
244
+
245
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In NIPS, 2012. 7
246
+
247
+ Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. In ICLR, 2017. 1
248
+
249
+ Steven P Lalley. Measure-theoretic probability I, 2017. 1
250
+
251
+ Mingsheng Long, Jianmin Wang, Guiguang Ding, Jiaguang Sun, and Philip S Yu. Transfer feature learning with joint distribution adaptation. In ICCV, 2013. 1, 2
252
+
253
+ Mingsheng Long, Yue Cao, Jianmin Wang, and Michael Jordan. Learning transferable features with deep adaptation networks. In ICML, 2015. 1
254
+
255
+ Mingsheng Long, Han Zhu, Jianmin Wang, and Michael I Jordan. Unsupervised domain adaptation with residual transfer networks. In NIPS, 2016. 1, 2, 3
256
+
257
+ Zelun Luo, Yuliang Zou, Judy Hoffman, and Li Fei-Fei. Label efficient learning of transferable representations across domains and tasks. In NIPS, 2017. 1, 2, 3, 4
258
+
259
+ Leland McInnes, John Healy, and Steve Astels. hdbscan: Hierarchical density based clustering. The Journal of Open Source Software, 2(11):205, 2017. 6
260
+
261
+ Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In ICML, 2010. 2
262
+
263
+ NYTimes. Facial recognition is accurate, if you’re a white guy. https://www.nytimes.com/2018/02/09/technology/ facial-recognition-race-artificial-intelligence.html, 2018. 1
264
+
265
+ Sinno Jialin Pan, Qiang Yang, et al. A survey on transfer learning. IEEE Transactions on knowledge and data engineering, 22(10):1345–1359, 2010. 3
266
+
267
+ O. M. Parkhi, A. Vedaldi, and A. Zisserman. Deep face recognition. In BMVC, 2015. 1
268
+
269
+ Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In NIPS, 2016. 5
270
+
271
+ Florian Schroff, Dmitry Kalenichenko, and James Philbin. FaceNet: A unified embedding for face recognition and clustering. In CVPR, 2015. 1, 8
272
+
273
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 7
274
+
275
+ Kihyuk Sohn. Improved deep metric learning with multi-class N-pair loss objective. In NIPS, 2016. 2, 5
276
+
277
+ Kihyuk Sohn, Sifei Liu, Guangyu Zhong, Xiang Yu, Ming-Hsuan Yang, and Manmohan Chandraker. Unsupervised domain adaptation for face recognition in unlabeled videos. In ICCV, 2017. 1, 2, 3, 5
278
+
279
+ Baochen Sun and Kate Saenko. Deep coral: Correlation alignment for deep domain adaptation. In ECCV Workshop, 2016. 2
280
+
281
+ Yi Sun, Yuheng Chen, Xiaogang Wang, and Xiaoou Tang. Deep learning face representation by joint identification-verification. In NIPS, 2014. 1
282
+
283
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2015. 7
284
+
285
+ Yaniv Taigman, Ming Yang, Marc’Aurelio Ranzato, and Lior Wolf. Deepface: Closing the gap to human-level performance in face verification. In CVPR, 2014. 1
286
+
287
+ Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In NIPS, 2017. 1
288
+
289
+ Luan Tran, Kihyuk Sohn, Xiang Yu, Xiaoming Liu, and Manmohan Chandraker. Joint pixel and feature-level domain adaptation in the wild. arXiv preprint arXiv:1803.00068, 2018. 1, 2
290
+
291
+ Yi-Hsuan Tsai, Wei-Chih Hung, Samuel Schulter, Kihyuk Sohn, Ming-Hsuan Yang, and Manmohan Chandraker. Learning to adapt structured output space for semantic segmentation. In CVPR, 2018. 2
292
+
293
+ Eric Tzeng, Judy Hoffman, Ning Zhang, Kate Saenko, and Trevor Darrell. Deep domain confusion: Maximizing for domain invariance. arXiv preprint arXiv:1412.3474, 2014. 2
294
+
295
+ Eric Tzeng, Judy Hoffman, Trevor Darrell, and Kate Saenko. Simultaneous deep transfer across domains and tasks. In ICCV, 2015. 1, 2
296
+
297
+ Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In NIPS, 2016. 4
298
+
299
+ WIRED. Lawmakers can’t ignore facial recognition’s bias anymore. https://www.wired.com/ story/amazon-facial-recognition-congress-bias-law-enforcement/, 2018a. 1
300
+
301
+ WIRED. When it comes to gorillas, google photos remains blind. https://www.wired.com/ story/when-it-comes-to-gorillas-google-photos-remains-blind/, 2018b. 1
302
+
303
+ Lior Wolf, Tal Hassner, and Itay Maoz. Face recognition in unconstrained videos with matched background similarity. In CVPR, 2011. 8
304
+
305
+ Fan Yang, Wongun Choi, and Yuanqing Lin. Exploit all the layers: Fast and accurate cnn object detector with scale dependent pooling and cascaded rejection classifiers. In CVPR, 2016. 2
306
+
307
+ Jiaolong Yang, Peiran Ren, Dongqing Zhang, Dong Chen, Fang Wen, Hongdong Li, and Gang Hua. Neural aggregation network for video face recognition. In CVPR, 2017. 8
308
+
309
+ Dong Yi, Zhen Lei, Shengcai Liao, and Stan Z Li. Learning face representation from scratch. arXiv preprint:1411.7923, 2014. 7
310
+
311
+ Xiang Yu, Feng Zhou, and Manmohan Chandraker. Deep deformation network for object landmark localization. In ECCV, 2016. 2
312
+
313
+ Yiheng Zhang, Zhaofan Qiu, Ting Yao, Dong Liu, and Tao Mei. Fully convolutional adaptation networks for semantic segmentation. In CVPR, 2018. 2
314
+
315
+ # Appendix
316
+
317
+ # A DERIVATION FOR GENERALIZATION BOUND OF TARGET DOMAIN VERIFICATION LOSS
318
+
319
+ Let $( \mathcal { X } , \mathcal { F } )$ and $( { \mathcal { Z } } , { \mathcal { G } } )$ be measurable input and feature spaces respectively and a feature extractor $R : { \mathcal { X } } \to { \mathcal { Z } }$ be a measurable function. Let $\mu$ be a probability measure on $\mathcal { X }$ corresponding to the data distribution. Let $( \mathcal { X } _ { 1 } , \mathcal { F } , \mu _ { 1 } ) = ( \mathcal { X } _ { 2 } , \mathcal { F } , \mu _ { 2 } ) = ( \mathcal { X } , \mathcal { F } , \mu )$ and $\mu _ { 1 2 } = \mu _ { 1 } \times \mu _ { 2 }$ on $\mathcal { X } _ { 1 } \times \mathcal { X } _ { 2 }$ be the unique product measure (Forrest). Similarly, we construct $\mathcal { Z } _ { 1 } \times \mathcal { Z } _ { 2 }$ where $( \mathcal { Z } _ { 1 } , \mathcal { G } ) = ( \mathcal { Z } _ { 2 } , \mathcal { G } ) = ( \mathcal { Z } , \mathcal { G } )$ . Since $R$ is measurable, $R ^ { 2 } : \mathcal { X } _ { 1 } \times \mathcal { X } _ { 2 } \to \mathcal { Z } _ { 1 } \times \mathcal { Z } _ { 2 }$ where $R ^ { 2 } ( x _ { 1 } , x _ { 2 } ) = ( R ( x _ { 1 } ) , R ( x _ { 2 } ) )$ is also measurable (see Lemma 1 for the proof). Then we can obtain an induced probability measure for $\mathcal { Z } _ { 1 } \times \mathcal { Z } _ { 2 }$ from $R ^ { 2 }$ , denoted as ${ \tilde { \mu } _ { 1 2 } } = \mu _ { 1 2 } \circ ( R ^ { 2 } ) ^ { - 1 }$ (Proposition 1.34 from (Lalley, 2017)).
320
+
321
+ Let $Y : \mathcal { X } _ { 1 } \times \mathcal { X } _ { 2 } \{ 0 , 1 \}$ , where 1 represents the pair from the same identity and 0 otherwise,6 be the stochastic target function for ground truth labeling, $\phi ( x _ { 1 } , x _ { 2 } ) = \mathbb { E } \left[ Y ( \dot { x _ { 1 } } , x _ { 2 } ) \right]$ be the expectation of the label at $( x _ { 1 } , x _ { 2 } )$ , and $\tilde { \phi } ( z _ { 1 } , z _ { 2 } ) = \mathbb { E } \left[ \phi ( x _ { 1 } , x _ { 2 } ) | R ( x _ { 1 } ) { = } z _ { 1 } , R ( x _ { 2 } ) { = } z _ { 2 } \right]$ be the conditional expectation of $\phi$ given the value of $R ^ { 2 } ( x _ { 1 } , x _ { 2 } ) = ( z _ { 1 } , z _ { 2 } )$ . Now, consider two domains, namely the source domain with probability measure $\mu ^ { S }$ over $\mathcal { X }$ and induced probability measure $\tilde { \mu } ^ { S }$ over $\mathcal { Z } _ { 1 } \times \mathcal { Z } _ { 2 }$ , as well as target domain counterparts $\mu ^ { T }$ and $\tilde { \mu } ^ { T }$ . Provided with a deterministic hypothesis class $\mathcal { H } \subseteq \left\{ g : \mathcal { Z } _ { 1 } \times \mathcal { Z } _ { 2 } \overset { \cdot } { \to } \left\{ 0 , 1 \right\} \right\}$ of VC-dimension $d$ , suppose there exists a function $h \in \mathcal H$ that can predict both source and target domains reasonably well. Then, we can quantify $\tilde { \phi }$ to be $\lambda$ -close to $\mathcal { H }$ :
322
+
323
+ $$
324
+ \operatorname* { i n f } _ { h \in \mathcal { H } } \epsilon _ { S } ( h ) + \epsilon _ { T } ( h ) \leq \lambda , \mathrm { w h e r e } \epsilon _ { i } ( h ) = \int | \tilde { \phi } ( z _ { 1 } , z _ { 2 } ) - h ( z _ { 1 } , z _ { 2 } ) | d \tilde { \mu } ^ { i } .
325
+ $$
326
+
327
+ We are ready to define the variational distance between the two domains with respect to $\mathcal { H }$ :
328
+
329
+ $$
330
+ \begin{array} { r } { d _ { \mathcal { H } } ( \tilde { \mu } ^ { S } , \tilde { \mu } ^ { T } ) = 2 \underset { A \in \mathcal { A } } { \operatorname* { s u p } } | \tilde { \mu } ^ { S } ( A ) - \tilde { \mu } ^ { T } ( A ) | , \ A = \{ A _ { h } = \{ ( z _ { 1 } , z _ { 2 } ) \in \mathcal { Z } _ { 1 } \times \mathcal { Z } _ { 2 } : h ( z _ { 1 } , z _ { 2 } ) = 1 \} , h \in \mathcal { H } \} . } \end{array}
331
+ $$
332
+
333
+ So far, we have successfully prepared the components in our verification setup to meet the assumptions and the format required by Theorem 1 from (Ben-David et al., 2007). We may now directly apply the theorem:
334
+
335
+ Theorem 1. Randomly sample a labeled set of size m by applying $R ^ { 2 }$ to samples from $\mathcal { X } _ { 1 } \times \mathcal { X } _ { 2 }$ with labels defined according to $Y$ , with probability at least $1 - \delta$ , $\forall h \in { \mathcal { H } }$
336
+
337
+ $$
338
+ \epsilon _ { T } ( h ) \leq \hat { \epsilon } _ { S } ( h ) + \sqrt { \frac { 4 } { m } ( d \log \frac { 2 m } { d } + d + \log \frac { 4 } { \delta } } ) + d _ { \mathcal { H } } ( \tilde { \mu } ^ { S } , \tilde { \mu } ^ { T } ) + \lambda .
339
+ $$
340
+
341
+ Furthermore, $d _ { \mathcal { H } } ( \tilde { \mu } ^ { S } , \tilde { \mu } ^ { T } )$ can be empirically approximated by finite samples from both domain (Kifer et al., 2004), using the binary classifier from $\mathcal { H }$ that can best distinguishes pairs of samples between two domains. Following Theorem 2 from (Ben-David et al., 2007), let $\tilde { U } _ { S }$ and $\tilde { U } _ { T }$ consist of $n$ random pairs of samples from source and target each, with probability at least $1 - \delta$ , we have :
342
+
343
+ $$
344
+ \begin{array} { r l } & { d _ { \mathcal { H } } ( \tilde { \mu } ^ { S } , \tilde { \mu } ^ { T } ) \leq d _ { \mathcal { H } } ( \tilde { U } _ { S } , \tilde { U } _ { T } ) + \sqrt { \frac { d \log ( 2 n ) + \log \frac { 4 } { \delta } } { n } } , } \\ & { \cdot d _ { \mathcal { H } } ( \tilde { U } _ { S } , \tilde { U } _ { T } ) = 2 \left( 1 - 2 \operatorname* { m i n } _ { h \in \mathcal { H } } \frac { 1 } { 2 n } \sum _ { i = 1 } ^ { 2 n } \big | h \big ( z _ { 1 , i } , z _ { 2 , i } \big ) - \mathbf { 1 } \big \{ \big ( z _ { 1 , i } , z _ { 2 , i } \big ) \in \tilde { U } _ { S } \big \} \big | \right) . } \end{array}
345
+ $$
346
+
347
+ For completeness of our analysis, we formalize and prove in Lemma 1 that $R ^ { 2 }$ is measurable.
348
+
349
+ Lemma 1. Let $( \mathcal { X } , \mathcal { F } , \mu )$ and $( \mathcal { Z } , \mathcal { G } , \tilde { \mu } )$ be measurable spaces and let $( \boldsymbol { \mathcal { X } } \times \boldsymbol { \mathcal { X } } , \sigma ( \boldsymbol { \mathcal { F } } \times \boldsymbol { \mathcal { F } } ) , \mu \times \mu )$ , $( \mathcal { Z } \times \mathcal { Z } , \sigma ( \mathcal { G } \times \mathcal { G } ) , \tilde { \mu } \times \tilde { \mu } )$ be their product spaces with the product measures. Let $R : { \mathcal { X } } \to { \mathcal { Z } }$ be $a$ measurable function, then $R ^ { 2 } : \mathcal { X } \times \mathcal { X } \to \mathcal { Z } \times \mathcal { Z }$ where $R ^ { 2 } \bar { ( x _ { 1 } , x _ { 2 } ) } = ( R ( x _ { 1 } ) , R ( x _ { 2 } ) )$ is also measurable.
350
+
351
+ Proof. As the $\sigma$ -algebra of $\mathcal { Z } \times \mathcal { Z }$ is generated by $\mathcal { G } \times \mathcal { G }$ , we only need to show that the pre-image of any generator is measurable. Let $G _ { 1 } \times G _ { 2 } \in \mathcal { G } \times \mathcal { G }$ , then it is easy to see that $\hat { ( } R ^ { 2 } ) ^ { - 1 } \bar { ( } G _ { 1 } \times G _ { 2 } \bar { ) } \stackrel { - } { = } R ^ { - 1 } ( G _ { 1 } ) \times R ^ { - 1 } ( G _ { 2 } )$ . Since $R$ is a measurable function, hence $\overline { { R } } ^ { - 1 } ( G _ { 1 } )$ and $R ^ { - 1 } ( G _ { 2 } )$ are measurable and so is $R ^ { - 1 } ( G _ { 1 } ) \times R ^ { - 1 } ( G _ { 2 } )$ measurable. □
352
+
353
+ ![](images/feabfc061fb298eb630fbc66b69a6ffa2ac433469c82c5673bdc6aba18120b73.jpg)
354
+ Figure S1: Network architecture of feature transfer module and domain discriminators.
355
+
356
+ ![](images/c0a4d56878dd80fee9680f7f001096706ad75341901b73053839ce0bfae6f53a.jpg)
357
+ (b) domain discriminator
358
+
359
+ (a) feature transfer module
360
+
361
+ Table S1: Network architecture for digit experiments.
362
+
363
+ <table><tr><td rowspan=1 colspan=1>operation</td><td rowspan=1 colspan=1>kernel</td><td rowspan=1 colspan=1>output size</td></tr><tr><td rowspan=1 colspan=1>Conv1-1+ReLUConv1-2 +ReLU max pooling</td><td rowspan=1 colspan=1>3×33×32×2</td><td rowspan=1 colspan=1>32×32×3232×32×3216×16×32</td></tr><tr><td rowspan=1 colspan=1>Conv2-1 +ReLUConv2-2 +ReLUmax pooling</td><td rowspan=1 colspan=1>3×33×32×2</td><td rowspan=1 colspan=1>16×16×6416×16×648×8×64</td></tr><tr><td rowspan=1 colspan=1>Conv3-1+ReLUConv3-2+ReLUmax pooling</td><td rowspan=1 colspan=1>3×33×32×2</td><td rowspan=1 colspan=1>8×8×1288×8×1284×4×128</td></tr><tr><td rowspan=1 colspan=1>FC1+ReLUFC2Normalize and Scale (2)</td><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>128128128</td></tr></table>
364
+
365
+ # B NETWORK ARCHITECTURE AND TRAINING DETAILS
366
+
367
+ B.1 TOY EXPERIMENTS: MNIST-M $( 0 - 4 )$ TO MNIST $( 5 - 9 )$
368
+
369
+ Following (Haeusser et al., 2017), we preprocess the data by subtracting a channel-wise pixel mean and dividing by channel-wise standard deviation of pixel values. For MNIST examples, we also apply color-intensity inversion. All images are resized into $3 2 \times 3 2$ with 3 channels.
370
+
371
+ Our feature generator module is composed of 6 convolution layers and 3 max-pooling layers followed by 2 fully-connected layers. We use ReLU (Nair & Hinton, 2010) after convolution layers. The output dimension of the feature generator module is 128 and is normalized to have L2-norm of 2. The full description of the generator module is in Table S1.
372
+
373
+ The feature transfer module maps 128 dimensional vector into the same dimensional vector using two fully-connected layers $( 1 2 8 - 2 5 6 - 2 5 6 - 1 2 8 )$ and residual connection as in Figure 1(a). Discriminator architectures are similar to that in Figure 1(b) but with fully-connected layers whose output dimensions are 128 instead of 256.
374
+
375
+ We use Adam stochastic optimizer with learning rate of 0.0003, $\lambda _ { 1 } = 0 . 3$ and $\lambda _ { 2 } = 0 . 0 3$ to train FTN.
376
+
377
+ # B.2 CROSS ETHNICITY FACE VERIFICATION AND RECOGNITION
378
+
379
+ Our experimental protocols, such as data preprocessing and network architecture, closely follow those of (Sohn et al., 2017). We preprocess face images by detecting (Yang et al., 2016), aligning (Yu et al., 2016), and cropping to provide face images of size $1 1 0 \times 1 1 0$ . The data is prepared for network training by random cropping into $1 0 0 \times 1 0 0$ with horizontal flip with a $5 0 \%$ chance and converting into gray-scale.
380
+
381
+ Our feature generation module contains 38 layers of convolution with several residual blocks and max pooling layers. We use ReLU (Nair & Hinton, 2010) for most of the layers in combination with maxout nonlinearities (Goodfellow et al., 2013). We add $7 \times 7$ average pooling layer on top of the last convolution layer. The output of the feature generation module is 320 dimensional vector and is normalized to have L2-norm of size 12. The full description of the model is in Table S2.
382
+
383
+ The feature transfer module maps 320 dimensional output vector from feature generation module into the same dimensional vector using two fully-connected layers and residual connection. The architecture of feature transfer module is described in Figure 1(a). Discriminators have similar network architecture besides different numbers of neurons and omitted residual connection.
384
+
385
+ All models, including supervised CNNs $\mathrm { \langle S u p ^ { C } }$ , $\operatorname { S u p } ^ { \mathrm { C , A , E } }$ ), are trained with 4096-pair loss. For SupC and $\operatorname { S u p } ^ { \mathrm { C , A , E } }$ , we use Adam stochastic optimizer (Kingma & Ba, 2015) with the learning rate of 0.0003 for the first $1 2 K$ updates and 0.0001 and 0.00003 for the next two subsequent $3 K$ updates.
386
+
387
+ Our feature generation module is initialized with the $\mathrm { S u p ^ { C } }$ model, which is also used as a reference network for feature reconstruction loss as described in Section 4.3. Other modules of our model, such as feature generation module and discriminators, are initialized randomly. All modules are then updated with the learning rate of 0.00003. Hyperparameters of different models are summarized in Table S3.
388
+
389
+ Table S2: Network architecture for face experiments.
390
+
391
+ <table><tr><td rowspan=1 colspan=1>operation</td><td rowspan=1 colspan=1>kernel</td><td rowspan=1 colspan=1>output size</td></tr><tr><td rowspan=1 colspan=1>Conv1-1+ReLUConv1-2 + Maxout (2)max pooling</td><td rowspan=1 colspan=1>3×33×32×2</td><td rowspan=1 colspan=1>100×100×32100×100×6450×50×64</td></tr><tr><td rowspan=1 colspan=1>ResBlock+ReLU×2Conv2 + Maxout (2)max pooling</td><td rowspan=1 colspan=1>3×3,64-64-643×32×2</td><td rowspan=1 colspan=1>50×50×6450×50×12825×25×128</td></tr><tr><td rowspan=1 colspan=1>ResBlock+ReLU×4Conv3 + Maxout (2) max pooling</td><td rowspan=1 colspan=1>3×3,128-96-1283×32×2</td><td rowspan=1 colspan=1>25×25×12825×25×19213×13×192</td></tr><tr><td rowspan=1 colspan=1>ResBlock + ReLU ×8Conv4 + Maxout (2)max pooling</td><td rowspan=1 colspan=1>3×3,192-128-1923×32×2</td><td rowspan=1 colspan=1>13×13×19213×13×2567×7×256</td></tr><tr><td rowspan=1 colspan=1>ResBlock + ReLU ×2Conv5 + Maxout (2)avg poolingNormalize and Scale (12)</td><td rowspan=1 colspan=1>3×3,256-160-2563×37×71</td><td rowspan=1 colspan=1>7×7×2567×7×3201×1×320320</td></tr></table>
392
+
393
+ Table S3: Optimal hyperparameter settings of different adaptation models.
394
+
395
+ <table><tr><td></td><td>入1</td><td>入2</td><td>入3</td><td>入4</td></tr><tr><td>DANN</td><td>0.1</td><td>1</td><td>0.1</td><td>0.01</td></tr><tr><td>FTN</td><td>0.03</td><td>0.1</td><td>0.03</td><td>0.01</td></tr><tr><td>FTN+MCEM</td><td>0.03</td><td>0.1</td><td>0.03</td><td>0.003</td></tr></table>
396
+
397
+ # C IMPACT OF FEATURE RECONSTRUCTION LOSS ON DOMAIN ADVERSARIALTRAINING
398
+
399
+ We demonstrate the effectiveness of feature reconstruction loss in stabilizing the domain adversarial training in DANN framework. We train four different DANN models with different configurations of $\lambda _ { 3 }$ and $\lambda _ { 4 }$ . We visualize in Figure S2 the performance curves of identification accuracy evaluated on the AA, EA, and CAU ethnicities of CEF dataset. Note that we stop training early on when the performance start to degrade significantly. Therefore, $x$ -axis, the number of training epoch, of different curves are different. $y$ -axis represents the identification accuracy.
400
+
401
+ As we see in Figure S2, the performance of all models on the target ethnicities start to improve in the beginning of training from those of the pretrained reference network. Soon after, however, the accuracy starts to drop when values of either $\lambda _ { 3 }$ or $\lambda _ { 4 }$ are set to 0. Note that even in that situation the performance on the CAU set still remains high, which implies the failure of discriminative information transfer. On the other hand, our proposed feature reconstruction loss with non-zero values of $\lambda _ { 3 }$ and $\lambda _ { 4 }$ (Figure 2(d)) shows much more stable performance curve. Nonetheless, values of $\lambda _ { 3 }$ and $\lambda _ { 4 }$ should be carefully selected since the feature generation module of DANNs or FTNs will remain almost the same to the reference network when they are set too strong and the effectiveness of the domain adversarial loss will be reduced. In our experiment, we use $\lambda _ { 3 } = 0 . 1$ and $\lambda _ { 4 } = 0 . 0 1$ for DANN, $\lambda _ { 3 } = 0 . 0 3$ and $\lambda _ { 4 } = 0 . 0 1$ for FTN. For FTN with entropy minimization we further reduce $\lambda _ { 4 } = 0 . 0 0 3$ to give more flexibility in updating model parameters based on entropy loss.
402
+
403
+ ![](images/9f2925f537752b9feccf5b37c8a6a65271f7e1ef3ba71f846ae7406be68620aa.jpg)
404
+ Figure S2: Performance curves of identification accuracy per ethnicity subset on the CEF datasets. The accuracy of DANNs with different values of $\lambda _ { 3 }$ for $\lambda _ { 4 }$ are visualized.
405
+
406
+ # D PERFORMANCE OF UNSUPERVISED HIERARCHICAL CLUSTERING
407
+
408
+ In this section, we provide analysis on the performance of our clustering strategy by measuring the clustering accuracy. Specifically, we measure the verification precision and recall as follows:
409
+
410
+ $$
411
+ \mathrm { P r e c i s i o n } = \frac { \sum _ { x _ { 1 } , x _ { 2 } \in \mathcal { X } _ { T } } 1 \big \{ y _ { 1 } = y _ { 2 } , \hat { y } _ { 1 } = \hat { y } _ { 2 } \big \} } { \sum _ { x _ { 1 } , x _ { 2 } \in \mathcal { X } _ { T } } 1 \big \{ \hat { y } _ { 1 } = \hat { y } _ { 2 } \big \} } , \ \mathrm { R e c a l l } = \frac { \sum _ { x _ { 1 } , x _ { 2 } \in \mathcal { X } _ { T } } 1 \big \{ y _ { 1 } = y _ { 2 } , \hat { y } _ { 1 } = \hat { y } _ { 2 } \big \} } { \sum _ { x _ { 1 } , x _ { 2 } \in \mathcal { X } _ { T } } 1 \big \{ y _ { 1 } = y _ { 2 } \big \} }
412
+ $$
413
+
414
+ where $y _ { i }$ is the ground-truth class label of an example $x _ { i }$ , and $\hat { y } _ { i }$ is an index of an assigned cluster. Precision computes the proportion of positive pairs among pairs assigned to the same cluster, i.e., purity of returned clusters, and recall computes the proportion of positive pairs assigned to the same cluster. Ideally, we expect high precision and high recall, i.e., high F-score, to ensure examples with the same class labels are assigned to the same cluster. Note that we only use clusters of size 5 or larger as new target classes and discard examples assigned to a cluster whose size is less than 5.
415
+
416
+ Here, in addition to our proposed clustering strategy, we also evaluate the clustering performance that clusters target examples by finding a nearest classes or examples from the source domain, which are shown to be effective for zero-shot learning (Vinyals et al., 2016) or semi-supervised domain adaptation with disjoint source and target classes (Luo et al., 2017). In this case, we call two examples from the target domain are assigned to the same cluster if the nearest source examples are the same. We also measure the clustering performance by matching the nearest source classes.
417
+
418
+ The summary result is provided in Table S4. Firstly, we observe extremely low precision when using source domain examples or clusters as a proxy to relate target examples. We believe that this idea of “clustering by finding the nearest source classes” works under a cross-category similarity assumption between disjoint classes of source and target domains. In other words, it assumes that there exists a certain source class closer to examples from certain target class, so that those examples from the same target class can be clustered around that source class, even though those matching source and target classes are indeed different (e.g., 3/5, 2/8, 4/9, and 0/6 in Section 6.1). Unfortunately, such an assumption does not hold for our problem, maybe due to the huge number of identity classes $( 6 0 K )$ in the source domain.
419
+
420
+ On the other hand, using hierarchical clustering on target features achieves significantly higher precision and recall. Especially, when using embedding vectors of $\mathrm { S u p ^ { C } }$ , we achieve $1 0 0 \%$ precision, which means that all clusters are pure even though some ground-truth classes might be separated into multiple clusters. We observe slightly lower precision using FTN features but much higher recall, achieving higher F-score overall. Further, the number of examples returned with FTN feature $2 5 3 K$ and $1 9 5 K$ for AA and EA, respectively) is higher than with $\mathrm { S u p ^ { C } }$ feature $2 1 7 K$ and $1 6 5 K _ { , }$ ). Repeating the process using feature of FTN+MCEM model improves the F-score while returning more target examples that are with cluster assignment ( $2 7 6 K$ and $2 1 4 K$ ). This not only shows the
421
+
422
+ <table><tr><td rowspan="3"></td><td colspan="2">source example</td><td colspan="2">source center</td><td colspan="2">HDBSCAN</td><td colspan="2">FTN</td><td colspan="2">FTN+MCEM</td></tr><tr><td>AA</td><td>EA</td><td>AA</td><td>EA</td><td>AA</td><td>EA</td><td>AA</td><td>EA</td><td>AA</td><td>EA</td></tr><tr><td>Precision</td><td>0.11</td><td>0.12</td><td>0.30</td><td>0.08</td><td>100</td><td>100</td><td>95.36</td><td>96.23</td><td>95.79</td><td>96.10</td></tr><tr><td>Recall</td><td>25.64</td><td>31.11</td><td>22.54</td><td>48.60</td><td>88.66</td><td>81.74</td><td>97.29</td><td>96.46</td><td>97.81</td><td>96.89</td></tr><tr><td>F-score</td><td>0.22</td><td>0.25</td><td>0.58</td><td>0.16</td><td>93.99</td><td>89.95</td><td>96.31</td><td>96.34</td><td>96.79</td><td>96.49</td></tr></table>
423
+
424
+ Table S4: Verification precision and recall of clustering methods, such as projection to source example or source class center, or hierarchical clustering using embeddings of $\mathrm { { S u p } ^ { C } }$ (HDBSCAN) or our proposed FTN model. Furthermore, we repeat the clustering using the FTN with multi-class entropy minimization model $\left( \mathrm { F T N + M C E M } \right)$ and report the clustering accuracy.
425
+
426
+ improved discriminative quality of features by FTNs, but also suggests a potential tool for automatic labeling of unlabeled data by iterative training of FTN model and hierarchical clustering.
427
+
428
+ # E VISUALIZATION OF ETHNICITY ANNOTATED IMAGE SAMPLES
429
+
430
+ ![](images/13fd2f997473f27a70c6ad3585a72aa49d7970f3d27566f7b5b1accdcef89cd0.jpg)
431
+ Figure S3: Face images of Caucasian, African-American, and East-Asian sampled from MS-1M dataset.
parse/train/BklhAj09K7/BklhAj09K7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BklhAj09K7/BklhAj09K7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BklhAj09K7/BklhAj09K7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByeWogStDS/ByeWogStDS.md ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SUB-POLICY ADAPTATION FOR HIERARCHICALREINFORCEMENT LEARNING
2
+
3
+ Alexander C. Li∗, Carlos Florensa∗, Ignasi Clavera, Pieter Abbeel University of California, Berkeley {alexli1, florensa, iclavera, pabbeel}@berkeley.edu
4
+
5
+ # ABSTRACT
6
+
7
+ Hierarchical reinforcement learning is a promising approach to tackle long-horizon decision-making problems with sparse rewards. Unfortunately, most methods still decouple the lower-level skill acquisition process and the training of a higher level that controls the skills in a new task. Leaving the skills fixed can lead to significant sub-optimality in the transfer setting. In this work, we propose a novel algorithm to discover a set of skills and continuously adapt them along with the higher level even when training on a new task. Our main contributions are two-fold. First, we derive a new hierarchical policy gradient with an unbiased latent-dependent baseline, and we introduce Hierarchical Proximal Policy Optimization (HiPPO), an on-policy method to efficiently train all levels of the hierarchy jointly. Second, we propose a method of training time-abstractions that improves the robustness of the obtained skills to environment changes. Code and videos are available. 1.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Reinforcement learning (RL) has made great progress in a variety of domains, from playing games such as Pong and Go (Mnih et al., 2015; Silver et al., 2017) to automating robotic locomotion (Schulman et al., 2015; Heess et al., 2017), dexterous manipulation (Florensa et al., 2017b; OpenAI et al., 2018), and perception (Nair et al., 2018; Florensa et al., 2018). Yet, most work in RL is still learning from scratch when faced with a new problem. This is particularly inefficient when tackling multiple related tasks that are hard to solve due to sparse rewards or long horizons.
12
+
13
+ A promising technique to overcome this limitation is hierarchical reinforcement learning (HRL) (Sutton et al., 1999). In this paradigm, policies have several modules of abstraction, allowing to reuse subsets of the modules. The most common case consists of temporal hierarchies (Precup, 2000; Dayan & Hinton, 1993), where a higher-level policy (manager) takes actions at a lower frequency, and its actions condition the behavior of some lower level skills or sub-policies. When transferring knowledge to a new task, most prior works fix the skills and train a new manager on top. Despite having a clear benefit in kick-starting the learning in the new task, having fixed skills can considerably cap the final performance on the new task (Florensa et al., 2017a). Little work has been done on adapting pre-trained sub-policies to be optimal for a new task.
14
+
15
+ In this paper, we develop a new framework for simultaneously adapting all levels of temporal hierarchies. First, we derive an efficient approximated hierarchical policy gradient. The key insight is that, despite the decisions of the manager being unobserved latent variables from the point of view of the Markovian environment, from the perspective of the sub-policies they can be considered as part of the observation. We show that this provides a decoupling of the manager and sub-policy gradients, which greatly simplifies the computation in a principled way. It also theoretically justifies a technique used in other prior works (Frans et al., 2018). Second, we introduce a sub-policy specific baseline for our hierarchical policy gradient. We prove that this baseline is unbiased, and our experiments reveal faster convergence, suggesting efficient gradient variance reduction. Then, we introduce a more stable way of using this gradient, Hierarchical Proximal Policy Optimization (HiPPO). This method helps us take more conservative steps in our policy space (Schulman et al., 2017), critical in hierarchies because of the interdependence of each layer. Results show that HiPPO is highly efficient both when learning from scratch, i.e. adapting randomly initialized skills, and when adapting pretrained skills on a new task. Finally, we evaluate the benefit of randomizing the time-commitment of the sub-policies, and show it helps both in terms of final performance and zero-shot adaptation on similar tasks.
16
+
17
+ # 2 PRELIMINARIES
18
+
19
+ We define a discrete-time finitehorizon discounted Markov decision process (MDP) by a tuple $\begin{array} { r l } { M } & { { } = } \end{array}$ $( \boldsymbol { \bar { s } } , \boldsymbol { \mathcal { A } } , \mathcal { P } , \boldsymbol { r } , \rho _ { 0 } , \gamma , \boldsymbol { \dot { H } } )$ , where $s$ is a state set, $\mathcal { A }$ is an action set, $\mathcal { P } :$ $S \times \mathcal { A } \times \mathcal { S } \to \mathbb { R } _ { + }$ is the transition probability distribution, $\gamma ~ \in ~ [ 0 , 1 ]$ is a discount factor, and $H$ the horizon. Our objective is to find a stochastic policy $\pi _ { \theta }$ that maximizes the expected discounted return within the MDP, $\begin{array} { r } { \eta ( \pi _ { \theta } ) = \mathbb { E } _ { \tau } [ \sum _ { t = 0 } ^ { H } \gamma ^ { t } r ( s _ { t } , a _ { t } ) ] } \end{array}$ We use ${ \boldsymbol \tau } = ( s _ { 0 } , a _ { 0 } , . . . , )$ to denote the entire state-action trajectory, where $s _ { 0 } ~ \sim ~ \rho _ { 0 } ( s _ { 0 } )$ , $a _ { t } \sim \dot { \pi } _ { \theta } ( a _ { t } | s _ { t } )$ , and $s _ { t + 1 } \sim \mathcal { P } ( s _ { t + 1 } | s _ { t } , a _ { t } )$ .
20
+
21
+ ![](images/7ba3bb08e3131bf7c0453118b8ce8cd1f7c6946bcc17a481702825cd49f02921.jpg)
22
+ Figure 1: Temporal hierarchy studied in this paper. A latent code $z _ { t }$ is sampled from the manager policy $\bar { \pi _ { \boldsymbol { \theta } _ { h } } ( \boldsymbol { z } _ { t } | \boldsymbol { s } _ { t } ) }$ every $p$ time-steps, using the current observation $s _ { k p }$ . The actions $a _ { t }$ are sampled from the sub-policy $\pi _ { \boldsymbol { \theta } _ { l } } ( a _ { t } | \bar { s } _ { t } , z _ { k p } )$ conditioned on the same latent code from $t = k p$ to $( k \bar { + } 1 ) p - 1$
23
+
24
+ In this work, we propose a method to learn a hierarchical policy and efficiently adapt all the levels in the hierarchy to perform a new task. We study hierarchical policies composed of a higher level, or manager $\pi _ { \boldsymbol { \theta } _ { h } } \big ( \boldsymbol { z } _ { t } | \boldsymbol { s } _ { t } \big )$ , and a lower level, or sub-policy $\pi _ { \theta _ { l } } ( a _ { t ^ { \prime } } | z _ { t } , s _ { t ^ { \prime } } )$ . The higher level does not take actions in the environment directly, but rather outputs a command, or latent variable $z _ { t } \in \mathcal { Z }$ , that conditions the behavior of the lower level. We focus on the common case where ${ \mathcal { Z } } = \mathbb { Z } _ { n }$ making the manager choose among $n$ sub-policies, or skills, to execute. The manager typically operates at a lower frequency than the sub-policies, only observing the environment every $p$ time-steps. When the manager receives a new observation, it decides which low level policy to commit to for $p$ environment steps by the means of a latent code $z$ . Figure 1 depicts this framework where the high level frequency $p$ is a random variable, which is one of the contribution of this paper as described in Section 4.4. Note that the class of hierarchical policies we work with is more restrictive than others like the options framework, where the time-commitment is also decided by the policy. Nevertheless, we show that this loss in policy expressivity acts as a regularizer and does not prevent our algorithm from surpassing other state-of-the art methods.
25
+
26
+ # 3 RELATED WORK
27
+
28
+ There has been growing interest in HRL for the past few decades (Sutton et al., 1999; Precup, 2000), but only recently has it been applied to high-dimensional continuous domains as we do in this work (Kulkarni et al., 2016; Daniel et al., 2016). To obtain the lower level policies, or skills, most methods exploit some additional assumptions, like access to demonstrations (Le et al., 2018; Merel et al., 2019; Ranchod et al., 2015; Sharma et al., 2018), policy sketches (Andreas et al., 2017), or task decomposition into sub-tasks (Ghavamzadeh & Mahadevan, 2003; Sohn et al., 2018). Other methods use a different reward for the lower level, often constraining it to be a “goal reacher” policy, where the signal from the higher level is the goal to reach (Nachum et al., 2018; Levy et al., 2019; Vezhnevets et al., 2017). These methods are very promising for state-reaching tasks, but might require access to goal-reaching reward systems not defined in the original MDP, and are more limited when training on tasks beyond state-reaching. Our method does not require any additional supervision, and the obtained skills are not constrained to be goal-reaching.
29
+
30
+ When transferring skills to a new environment, most HRL methods keep them fixed and simply train a new higher-level on top (Hausman et al., 2018; Heess et al., 2016). Other work allows for building on previous skills by constantly supplementing the set of skills with new ones (Shu et al., 2018), but they require a hand-defined curriculum of tasks, and the previous skills are never fine-tuned.
31
+
32
+ Our algorithm allows for seamless adaptation of the skills, showing no trade-off between leveraging the power of the hierarchy and the final performance in a new task. Other methods use invertible functions as skills (Haarnoja et al., 2018), and therefore a fixed skill can be fully overwritten when a new layer of hierarchy is added on top. This kind of “fine-tuning” is promising, although similar to other works (Peng et al., 2019), they do not apply it to temporally extended skills as we do here.
33
+
34
+ One of the most general frameworks to define temporally extended hierarchies is the options framework (Sutton et al., 1999), and it has recently been applied to continuous state spaces (Bacon et al., 2017). One of the most delicate parts of this formulation is the termination policy, and it requires several regularizers to avoid skill collapse (Harb et al., 2017; Vezhnevets et al., 2016). This modification of the objective may be difficult to tune and affects the final performance. Instead of adding such penalties, we propose to have skills of a random length, not controlled by the agent during training of the skills. The benefit is two-fold: no termination policy to train, and more stable skills that transfer better. Furthermore, these works only used discrete action MDPs. We lift this assumption, and show good performance of our algorithm in complex locomotion tasks. There are other algorithms recently proposed that go in the same direction, but we found them more complex, less principled (their per-action marginalization cannot capture well the temporal correlation within each option), and without available code or evidence of outperforming non-hierarchical methods (Smith et al., 2018).
35
+
36
+ The closest work to ours in terms of final algorithm structure is the one proposed by Frans et al. (2018). Their method can be included in our framework, and hence benefits from our new theoretical insights. We introduce a modification that is shown to be highly beneficial: the random timecommitment mentioned above, and find that our method can learn in difficult environments without their complicated training scheme.
37
+
38
+ # 4 EFFICIENT HIERARCHICAL POLICY GRADIENTS
39
+
40
+ When using a hierarchical policy, the intermediate decision taken by the higher level is not directly applied in the environment. Therefore, technically it should not be incorporated into the trajectory description as an observed variable, like the actions. This makes the policy gradient considerably harder to compute. In this section we first prove that, under mild assumptions, the hierarchical policy gradient can be accurately approximated without needing to marginalize over this latent variable. Then, we derive an unbiased baseline for the policy gradient that can reduce the variance of its estimate. Finally, with these findings, we present our method, Hierarchical Proximal Policy Optimization (HiPPO), an on-policy algorithm for hierarchical policies, allowing learning at all levels of the policy jointly and preventing sub-policy collapse.
41
+
42
+ # 4.1 APPROXIMATE HIERARCHICAL POLICY GRADIENT
43
+
44
+ Policy gradient algorithms are based on the likelihood ratio trick (Williams, 1992) to estimate the gradient of returns with respect to the policy parameters as
45
+
46
+ $$
47
+ \begin{array} { c l } { \displaystyle \nabla _ { \theta } \eta ( \pi _ { \theta } ) = \mathbb E _ { \tau } \big [ \nabla _ { \theta } \log P ( \tau ) R ( \tau ) \big ] \approx \frac { 1 } { N } \sum _ { i = 1 } ^ { n } \nabla _ { \theta } \log P ( \tau _ { i } ) R ( \tau _ { i } ) } \\ { \displaystyle = \frac { 1 } { N } \sum _ { i = 1 } ^ { n } \frac { 1 } { H } \sum _ { t = 1 } ^ { H } \nabla _ { \theta } \log \pi _ { \theta } ( a _ { t } | s _ { t } ) R ( \tau _ { i } ) } \end{array}
48
+ $$
49
+
50
+ In a temporal hierarchy, a hierarchical policy with a manager $\pi _ { \boldsymbol { \theta } _ { h } } \big ( \boldsymbol { z } _ { t } | \boldsymbol { s } _ { t } \big )$ selects every $p$ time-steps one of $n$ sub-policies to execute. These sub-policies, indexed by $z \in \mathbb { Z } _ { n }$ , can be represented as a single conditional probability distribution over actions $\pi _ { \boldsymbol { \theta } _ { l } } ( a _ { t } | \boldsymbol { z } _ { t } , \boldsymbol { s } _ { t } )$ . This allows us to not only use a given set of sub-policies, but also leverage skills learned with Stochastic Neural Networks (SNNs) (Florensa et al., 2017a). Under this framework, the probability of a trajectory $\tau = ( s _ { 0 } , a _ { 0 } , s _ { 1 } , \dots , s _ { H } )$ can be written as
51
+
52
+ $$
53
+ P ( \tau ) = \Bigg ( \prod _ { k = 0 } ^ { H / p } \Big [ \sum _ { j = 1 } ^ { n } \pi _ { \theta _ { h } } ( z _ { j } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \Big ] \Bigg ) \Bigg [ P ( s _ { 0 } ) \prod _ { t = 1 } ^ { H } P ( s _ { t + 1 } | s _ { t } , a _ { t } ) \Bigg ] .
54
+ $$
55
+
56
+ The mixture action distribution, which presents itself as an additional summation over skills, prevents additive factorization when taking the logarithm, as from Eq. 1 to 2. This can yield numerical instabilities due to the product of the $p$ sub-policy probabilities. For instance, in the case where all the skills are distinguishable all the sub-policies’ probabilities but one will have small values, resulting in an exponentially small value. In the following Lemma, we derive an approximation of the policy gradient, whose error tends to zero as the skills become more diverse, and draw insights on the interplay of the manager actions.
57
+
58
+ Lemma 1. If the skills are sufficiently differentiated, then the latent variable can be treated as part of the observation to compute the gradient of the trajectory probability. Let $\pi _ { \boldsymbol { \theta } _ { h } } ( z | s )$ and $\pi _ { \boldsymbol { \theta } _ { l } } ( a | s , z )$ be Lipschitz functions w.r.t. their parameters, and assume that $0 < \pi _ { \theta _ { l } } ( a | s , z _ { j } ) < \epsilon \forall j \neq k p$ , then
59
+
60
+ $$
61
+ \nabla _ { \theta } \log P ( \tau ) = \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log \pi _ { \theta _ { h } } ( z _ { k p } | s _ { k p } ) + \sum _ { t = 0 } ^ { H } \nabla _ { \theta } \log \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) + \mathcal { O } ( n H \epsilon ^ { p - 1 } )
62
+ $$
63
+
64
+ Proof. See Appendix.
65
+
66
+ Our assumption can be seen as having diverse skills. Namely, for each action there is just one sub-policy that gives it high probability. In this case, the latent variable can be treated as part of the observation to compute the gradient of the trajectory probability. Many algorithms to extract lowerlevel skills are based on promoting diversity among the skills (Florensa et al., 2017a; Eysenbach et al., 2019), therefore usually satisfying our assumption. We further analyze how well this assumption holds in our experiments section and Table 2.
67
+
68
+ # 4.2 UNBIASED SUB-POLICY BASELINE
69
+
70
+ The policy gradient estimate obtained when applying the log-likelihood ratio trick as derived above is known to have large variance. A very common approach to mitigate this issue without biasing the estimate is to subtract a baseline from the returns (Peters & Schaal, 2008). It is well known that such baselines can be made state-dependent without incurring any bias. However, it is still unclear how to formulate a baseline for all the levels in a hierarchical policy, since an action dependent baseline does introduce bias in the gradient (Tucker et al., 2018). It has been recently proposed to use latent-conditioned baselines (Weber et al., 2019). Here we go further and prove that, under the assumptions of Lemma 1, we can formulate an unbiased latent dependent baseline for the approximate gradient (Eq. 5).
71
+
72
+ Lemma 2. For any functions $b _ { h } : S \mathbb { R }$ and $b _ { l } : \mathcal { S } \times \mathcal { Z } \to \mathbb { R }$ we have:
73
+
74
+ $$
75
+ \mathbb { E } _ { \tau } [ \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log P ( z _ { k p } | s _ { k p } ) b _ { h } ( s _ { k p } ) ] = 0 \quad a n d \quad \mathbb { E } _ { \tau } [ \sum _ { t = 0 } ^ { H } \nabla _ { \theta } \log \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) b _ { l } ( s _ { t } , z _ { k p } ) ] = 0
76
+ $$
77
+
78
+ Proof. See Appendix.
79
+
80
+ Now we apply Lemma 1 and Lemma 2 to Eq. 1. By using the corresponding value functions as the function baseline, the return can be replaced by the Advantage function $A ( s _ { k p } , z _ { k p } )$ (see details in Schulman et al. (2016)), and we obtain the following approximate policy gradient expression:
81
+
82
+ $$
83
+ \hat { g } = \mathbb { E } _ { \tau } \Big [ \big ( \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log \pi _ { \theta _ { h } } ( z _ { k p } | s _ { k p } ) A ( s _ { k p } , z _ { k p } ) \big ) + \big ( \sum _ { t = 0 } ^ { H } \nabla _ { \theta } \log \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) A ( s _ { t } , a _ { t } , z _ { k p } ) \big ) \Big ]
84
+ $$
85
+
86
+ This hierarchical policy gradient estimate can have lower variance than without baselines, but using it for policy optimization through stochastic gradient descent still yields an unstable algorithm. In the next section, we further improve the stability and sample efficiency of the policy optimization by incorporating techniques from Proximal Policy Optimization (Schulman et al., 2017).
87
+
88
+ # 4.3 HIERARCHICAL PROXIMAL POLICY OPTIMIZATION
89
+
90
+ Using an appropriate step size in policy space is critical for stable policy learning. Modifying the policy parameters in some directions may have a minimal impact on the distribution over actions, whereas small changes in other directions might change its behavior drastically and hurt training
91
+
92
+ # Algorithm 1 HiPPO Rollout
93
+
94
+ # Algorithm 2 HiPPO
95
+
96
+ 1: Input: skills $\pi _ { \boldsymbol { \theta } _ { l } } ( a | s , z )$ , manager $\pi _ { \boldsymbol { \theta } _ { h } } ( z | s )$ , time
97
+ commitment bounds $P _ { \mathrm { m i n } }$ and $P _ { \mathrm { m a x } }$ , horizon $H$
98
+ 2: Reset environment: $s _ { 0 } \sim \rho _ { 0 }$ , $t = 0$ .
99
+ 3: while $t < H$ do
100
+ 4: Sample time-commitment $p \sim \mathsf { C a t } ( [ P _ { \operatorname* { m i n } } , P _ { \operatorname* { m a x } } ] )$
101
+ 5: Sample skill $z _ { t } \sim \pi _ { \theta _ { h } } ( \cdot | s _ { t } )$
102
+ 6: for $t ^ { \prime } = t \ldots ( t + p )$ do
103
+ 7: Sample action $a _ { t ^ { \prime } } \sim \pi _ { \theta _ { l } } ( \cdot | s _ { t ^ { \prime } } , z _ { t } )$
104
+ 8: Observe new state $s _ { t ^ { \prime } + 1 }$ and reward $\boldsymbol { r } _ { t ^ { \prime } }$
105
+ 9: end for
106
+ 10: $t \gets t + p$
107
+ 11: end while
108
+ 12: Output: $\left( s _ { 0 } , z _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , \ldots , s _ { H } , z _ { H } , a _ { H } , s _ { H + 1 } \right)$
109
+
110
+ 1: Input: skills $\pi _ { \boldsymbol { \theta } _ { l } } ( a | s , z )$ , manager $\pi _ { \boldsymbol { \theta } _ { h } } ( z | s )$ , horizon $H$ , learning rate $\alpha$
111
+ 2: while not done do
112
+ 3: for actor $= 1$ , 2, ..., N do
113
+ 4: Obtain trajectory with HiPPO Rollout
114
+ 5: Estimate advantages $\hat { A } ( a _ { t ^ { \prime } } , s _ { t ^ { \prime } } , z _ { t } )$ and $\bar { A } ( z _ { t } , s _ { t } )$
115
+ 6: 7: $\theta \theta + \alpha \nabla _ { \theta } L _ { H i P P O } ^ { C L I P } ( \theta )$
116
+ 8: end while
117
+
118
+ efficiency (Kakade, 2002). Trust region policy optimization (TRPO) uses a constraint on the KLdivergence between the old policy and the new policy to prevent this issue (Schulman et al., 2015). Unfortunately, hierarchical policies are generally represented by complex distributions without closed form expressions for the KL-divergence. Therefore, to improve the stability of our hierarchical policy gradient we turn towards Proximal Policy Optimization (PPO) (Schulman et al., 2017). PPO is a more flexible and compute-efficient algorithm. In a nutshell, it replaces the KL-divergence constraint with a cost function that achieves the same trust region benefits, but only requires the computation of the likelihood. Letting $\begin{array} { r } { w _ { t } ( \theta ) = \frac { \pi _ { \theta } \left( a _ { t } | s _ { t } \right) } { \pi _ { \theta _ { o l d } } \left( a _ { t } | s _ { t } \right) } } \end{array}$ , the PPO objective is:
119
+
120
+ $$
121
+ L ^ { C L I P } ( \theta ) = \mathbb { E } _ { t } \operatorname* { m i n } \left\{ w _ { t } ( \theta ) A _ { t } , \mathrm { ~ c ~ l ~ i p } ( w _ { t } ( \theta ) , 1 - \epsilon , 1 + \epsilon ) A _ { t } \right\}
122
+ $$
123
+
124
+ We can adapt our approximated hierarchical policy gradient with the same approach by letting $\begin{array} { r } { w _ { h , k p } ( \theta ) \ = \ \frac { \pi _ { \theta _ { h } } ( z _ { k p } | s _ { k p } ) } { \pi _ { \theta _ { h , o l d } } ( z _ { k p } | s _ { k p } ) } } \end{array}$ and $\begin{array} { r } { w _ { l , t } ( \theta ) = \frac { \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) } { \pi _ { \theta _ { l , o l d } } ( a _ { t } | s _ { t } , z _ { k p } ) } } \end{array}$ , and using the super-index clip to denote the clipped objective version, we obtain the new surrogate objective:
125
+
126
+ $$
127
+ \begin{array} { c } { { { \displaystyle { \cal L } _ { H i P P O } ^ { C L I P } } ( \theta ) = \mathbb { E } _ { \tau } \Big [ \displaystyle { \sum _ { k = 0 } ^ { H / p } \operatorname* { m i n } \left\{ w _ { h , k p } ( \theta ) A ( s _ { k p } , z _ { k p } ) , w _ { h , k p } ^ { \mathrm { c l i p } } ( \theta ) A ( s _ { k p } , z _ { k p } ) \right\} } \qquad } } \\ { { + \displaystyle { \sum _ { t = 0 } ^ { H } \operatorname* { m i n } \left\{ w _ { l , t } ( \theta ) A ( s _ { t } , a _ { t } , z _ { k p } ) , w _ { l , t } ^ { \mathrm { c l i p } } ( \theta ) A ( s _ { t } , a _ { t } , z _ { k p } ) \right\} } \Big ] } } \end{array}
128
+ $$
129
+
130
+ We call this algorithm Hierarchical Proximal Policy Optimization (HiPPO). Next, we introduce a critical additions: a switching of the time-commitment between skills.
131
+
132
+ # 4.4 VARYING TIME-COMMITMENT
133
+
134
+ Most hierarchical methods either consider a fixed time-commitment to the lower level skills (Florensa et al., 2017a; Frans et al., 2018), or implement the complex options framework (Precup, 2000; Bacon et al., 2017). In this work we propose an in-between, where the time-commitment to the skills is a random variable sampled from a fixed distribution Categorical $( T _ { \mathrm { m i n } } , T _ { \mathrm { m a x } } )$ just before the manager takes a decision. This modification does not hinder final performance, and we show it improves zero-shot adaptation to a new task. This approach to sampling rollouts is detailed in Algorithm 1. The full algorithm is detailed in Algorithm 2.
135
+
136
+ # 5 EXPERIMENTS
137
+
138
+ We designed our experiments to answer the following questions: 1) How does HiPPO compare against a flat policy when learning from scratch? 2) Does it lead to policies more robust to environment changes? 3) How well does it adapt already learned skills? and 4) Does our skill diversity assumption hold in practice?
139
+
140
+ ![](images/698cac3c55e1a99afc5dbc3e8a69b575139080c5784a5c1282ae08d45458591a.jpg)
141
+ Figure 2: Environments used to evaluate the performance of our method. Every episode has a different configuration: wall heights for (a)-(b), ball positions for (c)-(d)
142
+
143
+ ![](images/6630bd4ec4adf24f9991b32a9c529630605655bc9ee9e48e1f0804e13fee17ac.jpg)
144
+ Figure 3: Analysis of different time-commitment strategies on learning from scratch.
145
+
146
+ # 5.1 TASKS
147
+
148
+ We evaluate our approach on a variety of robotic locomotion and navigation tasks. The Block environments, depicted in Fig. 2a-2b, have walls of random heights at regular intervals, and the objective is to learn a gait for the Hopper and Half-Cheetah robots to jump over them. The agents observe the height of the wall ahead and their proprioceptive information (joint positions and velocities), receiving a reward of $+ 1$ for each wall cleared. The Gather environments, described by Duan et al. (2016), require agents to collect apples (green balls, $+ 1$ reward) while avoiding bombs (red balls, -1 reward). The only available perception beyond proprioception is through a LIDAR-type sensor indicating at what distance are the objects in different directions, and their type, as depicted in the bottom left corner of Fig. 2c-2d. This is challenging hierarchical task with sparse rewards that requires simultaneously learning perception, locomotion, and higher-level planning capabilities. We use the Snake and Ant robots in Gather. Details for all robotic agents are provided in Appendix B.
149
+
150
+ # 5.2 LEARNING FROM SCRATCH AND TIME-COMMITMENT
151
+
152
+ In this section, we study the benefit of using our HiPPO algorithm instead of standard PPO on a flat policy (Schulman et al., 2017). The results, reported in Figure 3, demonstrate that training from scratch with HiPPO leads to faster learning and better performance than flat PPO. Furthermore, we show that the benefit of HiPPO does not just come from having temporally correlated exploration: PPO with action repeat converges at a lower performance than our method. HiPPO leverages the time-commitment more efficiently, as suggested by the poor performance of the ablation where we set $p = 1$ , when the manager takes an action every environment step as well. Finally, Figure 4 shows the effectiveness of using the presented skill-dependent baseline.
153
+
154
+ # 5.3 COMPARISON TO OTHER METHODS
155
+
156
+ We compare HiPPO to current state-of-the-art hierarchical methods. First, we evaluate HIRO (Nachum et al., 2018), an off-policy RL method based on training a goal-reaching lower level policy. Fig. 5 shows that HIRO achieves poor performance on our tasks. As further detailed in Appendix D, this algorithm is sensitive to access to ground-truth information, like the exact $( x , y )$ position of the robot in Gather. In contrast, our method is able to perform well directly from the raw sensory inputs described in Section 5.1. We evaluate Option-Critic (Bacon et al., 2017), a variant of the options framework (Sutton et al., 1999) that can be used for continuous action-spaces. It fails to learn, and we hypothesize that their algorithm provides less time-correlated exploration and learns less diverse skills. We also compare against MLSH (Frans et al., 2018), which repeatedly samples new environment configurations to learn primitive skills. We take these hyperparameters from their Ant Twowalk experiment: resetting the environment configuration every 60 iterations, a warmup period of 20 during which only the manager is trained, and a joint training period of 40 during which both manager and skills are trained. Our results show that such a training scheme does not provide any benefits. Finally, we provide a comparison to a direct application of our Hierarchical Vanilla Policy Gradient (HierVPG) algorithm, and we see that the algorithm is unstable without PPO’s trust-region-like technique.
157
+
158
+ ![](images/104a04a5797b71d11aafffde40d1191b91b356cc7b5c8611ac4e6b31f18c96b0.jpg)
159
+ Figure 4: Using a skill-conditioned baseline, as defined in Section 4.2, generally improves performance of HiPPO when learning from scratch.
160
+
161
+ ![](images/09aff31033112d9cd52a822e7e3b242507e89a86d92aef55e0b80822e72c1caa.jpg)
162
+ Figure 5: Comparison of HiPPO and HierVPG to prior hierarchical methods on learning from scratch.
163
+
164
+ # 5.4 ROBUSTNESS TO DYNAMICS PERTURBATIONS
165
+
166
+ We investigate the robustness of HiPPO to changes in the dynamics of the environment. We perform several modifications to the base Snake Gather and Ant Gather environments. One at a time, we change the body mass, dampening of the joints, body inertia, and friction characteristics of both robots. The results, presented in Table 1, show that HiPPO with randomized period Categorical $( [ T _ { \operatorname* { m i n } } , T _ { \operatorname* { m a x } } ] )$ is able to better handle these dynamics changes. In terms of the drop in policy performance between the training environment and test environment, it outperforms HiPPO with fixed period on 6 out of 8 related tasks. These results suggest that the randomized period exposes the policy to a wide range of scenarios, which makes it easier to adapt when the environment changes.
167
+
168
+ <table><tr><td>Gather</td><td>Algorithm</td><td>Initial</td><td>Mass</td><td>Dampening</td><td>Inertia</td><td>Friction</td></tr><tr><td rowspan="3">Snake</td><td>Flat PPO</td><td>2.72</td><td>3.16 (+16%)</td><td>2.75 (+1%)</td><td>2.11 (-22%)</td><td>2.75 (+1%)</td></tr><tr><td>HiPPO,p = 10</td><td>4.38</td><td>3.28 (-25%)</td><td>3.27 (-25%)</td><td>3.03 (-31%)</td><td>3.27 (-25%)</td></tr><tr><td>HiPPO random p</td><td>5.11</td><td>4.09 (-20%)</td><td>4.03 (-21%)</td><td>3.21 (-37%)</td><td>4.03 (-21%)</td></tr><tr><td rowspan="3">Ant</td><td>Flat PPO</td><td>2.25</td><td>2.53 (+12%)</td><td>2.13 (-5%)</td><td>2.36 (+5%)</td><td>1.96 (-13%)</td></tr><tr><td>HiPPO,p = 10</td><td>3.84</td><td>3.31 (-14%)</td><td>3.37 (-12%)</td><td>2.88 (-25%)</td><td>3.07 (-20%)</td></tr><tr><td>HiPPO random p</td><td>3.22</td><td>3.37 (+5%)</td><td>2.57 (-20%)</td><td>3.36 (+4%)</td><td>2.84 (-12%)</td></tr></table>
169
+
170
+ Table 1: Zero-shot transfer performance. The final return in the initial environment is shown, as well as the average return over 25 rollouts in each new modified environment.
171
+
172
+ # 5.5 ADAPTATION OF PRE-TRAINED SKILLS
173
+
174
+ For the Block task, we use DIAYN (Eysenbach et al., 2019) to train 6 differentiated subpolicies in an environment without any walls. Here, we see if these diverse skills can improve performance on a downstream task that’s out of the training distribution. For Gather, we take 6 pretrained subpolicies encoded by a Stochastic Neural Network (Tang & Salakhutdinov, 2013) that was trained in a diversity-promoting environment (Florensa et al., 2017a). We fine-tune them with HiPPO on the Gather environment, but with an extra penalty on the velocity of the Center of Mass. This can be understood as a preference for cautious behavior. This requires adjustment of the sub-policies, which were trained with a proxy reward encouraging them to move as far as possible (and hence quickly). Fig. 6 shows that using HiPPO to simultaneously train a manager and fine-tune the skills achieves higher final performance than fixing the sub-policies and only training a manager with PPO. The two initially learn at the same rate, but HiPPO’s ability to adjust to the new dynamics allows it to reach a higher final performance. Fig. 6 also shows that HiPPO can fine-tune the same given skills better than Option-Critic (Bacon et al., 2017), MLSH (Frans et al., 2018), and HIRO (Nachum et al., 2018).
175
+
176
+ ![](images/70943baaa443c6192a1e00d29a7bad11943570b86e84a71b5f3b01009b4b31d7.jpg)
177
+ Figure 6: Benefit of adapting some given skills when the preferences of the environment are different from those of the environment where the skills were originally trained. Adapting skills with HiPPO has better learning performance than leaving the skills fixed or learning from scratch.
178
+
179
+ # 5.6 SKILL DIVERSITY ASSUMPTION
180
+
181
+ In Lemma 1, we derived a more efficient and numerically stable gradient by assuming that the sub-policies are diverse. In this section, we empirically test the validity of our assumption and the quality of our approximation. We run the HiPPO algorithm on Ant Gather and Snake Gather both from scratch and with given pretrained skills, as done in the previous section. In Table 2, we report the average maximum probability under other sub-policies, corresponding to $\epsilon$ from the assumption. In all settings, this is on the order of magnitude of 0.1. Therefore, under the $p \approx 1 0$ that we use in our experiments, the term we neglect has a factor $\epsilon ^ { p - 1 } = 1 0 ^ { - 1 0 }$ . It is not surprising then that the average cosine similarity between the full gradient and our approximation is almost 1, as reported in Table 2.
182
+
183
+ <table><tr><td>Gather</td><td>Algorithm</td><td>Cosine Sim.</td><td>maxz&#x27;+zkp T0((at|st,2&#x27;)</td><td>π0(at|st,2kp)</td></tr><tr><td rowspan="2">Snake</td><td>HiPPO on given skills</td><td>0.98±0.01</td><td>0.09± 0.04</td><td>0.44 ± 0.03</td></tr><tr><td>HiPPO on random skills</td><td>0.97 ± 0.03</td><td>0.12 ± 0.03</td><td>0.32 ± 0.04</td></tr><tr><td rowspan="2">Ant</td><td>HiPPO on given skills</td><td>0.96±0.04</td><td>0.11 ± 0.05</td><td>0.40±0.08</td></tr><tr><td>HiPPO on random skills</td><td>0.94 ± 0.03</td><td>0.13 ± 0.05</td><td>0.31 ± 0.09</td></tr></table>
184
+
185
+ Table 2: Empirical evaluation of Lemma 1. In the middle and right columns, we evaluate the quality of our assumption by computing the largest probability of a certain action under other skills (), and the action probability under the actual latent. We also report the cosine similarity between our approximate gradient and the exact gradient from Eq. 3. The mean and standard deviation of these values are computed over the full batch collected at iteration 10.
186
+
187
+ # 6 CONCLUSIONS AND FUTURE WORK
188
+
189
+ In this paper, we examined how to effectively adapt temporal hierarchies. We began by deriving a hierarchical policy gradient and its approximation. We then proposed a new method, HiPPO, that can stably train multiple layers of a hierarchy jointly. The adaptation experiments suggest that we can optimize pretrained skills for downstream environments, and learn emergent skills without any unsupervised pre-training. We also demonstrate that HiPPO with randomized period can learn from scratch on sparse-reward and long time horizon tasks, while outperforming non-hierarchical methods on zero-shot transfer.
190
+
191
+ # REFERENCES
192
+
193
+ Jacob Andreas, Dan Klein, and Sergey Levine. Modular Multitask Reinforcement Learning with Policy Sketches. International Conference in Machine Learning, 2017. URL http://github. com/.
194
+
195
+ Pierre-Luc Bacon, Jean Harb, and Doina Precup. The Option-Critic Architecture. AAAI, pp. 1726– 1734, 2017. URL http://arxiv.org/abs/1609.05140.
196
+
197
+ Christian Daniel, Herke van Hoof, Jan Peters, Gerhard Neumann, Thomas Gärtner, Mirco Nanni, Andrea Passerini, and Celine B Robardet Christian Daniel ChristianDaniel. Probabilistic inference for determining options in reinforcement learning. Machine Learning, 104(104), 2016. doi: 10.1007/s10994-016-5580-x.
198
+
199
+ Peter Dayan and Geoffrey E. Hinton. Feudal Reinforcement Learning. Advances in Neural Information Processing Systems, pp. 271–278, 1993. ISSN 0143991X. doi: 10.1108/IR-08-2017-0143. URL http://www.cs.toronto.edu/\~fritz/absps/dh93.pdf.
200
+
201
+ Yan Duan, Xi Chen, John Schulman, and Pieter Abbeel. Benchmarking Deep Reinforcement Learning for Continuous Control. International Conference in Machine Learning, 2016. URL http://arxiv.org/abs/1604.06778.
202
+
203
+ Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is All You Need: Learning Skills without a Reward Function. International Conference in Learning Representations, 2019. URL http://arxiv.org/abs/1802.06070.
204
+
205
+ Carlos Florensa, Yan Duan, and Pieter Abbeel. Stochastic Neural Networks for Hierarchical Reinforcement Learning. International Conference in Learning Representations, pp. 1–17, 2017a. ISSN 14779129. doi: 10.1002/rcm.765. URL http://arxiv.org/abs/1704.03012.
206
+
207
+ Carlos Florensa, David Held, Markus Wulfmeier, Michael Zhang, and Pieter Abbeel. Reverse Curriculum Generation for Reinforcement Learning. Conference on Robot Learning, pp. 1–16, 2017b. ISSN 1938-7228. doi: 10.1080/00908319208908727. URL http://arxiv.org/ abs/1707.05300.
208
+
209
+ Carlos Florensa, Jonas Degrave, Nicolas Heess, Jost Tobias Springenberg, and Martin Riedmiller. Self-supervised Learning of Image Embedding for Continuous Control. In Workshop on Inference to Control at NeurIPS, 2018. URL http://arxiv.org/abs/1901.00943.
210
+
211
+ Kevin Frans, Jonathan Ho, Xi Chen, Pieter Abbeel, and John Schulman. Meta Learning Shared Hierarchies. International Conference in Learning Representations, pp. 1–11, 2018. ISSN 14639076. doi: 10.1039/b203755f. URL http://arxiv.org/abs/1710.09767.
212
+
213
+ Mohammad Ghavamzadeh and Sridhar Mahadevan. Hierarchical Policy Gradient Algorithms. International Conference in Machine Learning, 2003. URL http://chercheurs.lille. inria.fr/\~ghavamza/my_website/Publications_files/icml03.pdf.
214
+
215
+ Tuomas Haarnoja, Kristian Hartikainen, Pieter Abbeel, and Sergey Levine. Latent Space Policies for Hierarchical Reinforcement Learning. Internation Conference in Machine Learning, 2018. URL http://arxiv.org/abs/1804.02808.
216
+
217
+ Jean Harb, Pierre-Luc Bacon, Martin Klissarov, and Doina Precup. When Waiting is not an Option : Learning Options with a Deliberation Cost. AAAI, 9 2017. URL http://arxiv.org/abs/ 1709.04571.
218
+
219
+ Karol Hausman, Jost Tobias Springenberg, Ziyu Wang, Nicolas Heess, and Martin Riedmiller. Learning an Embedding Space for Transferable Robot Skills. International Conference in Learning Representations, pp. 1–16, 2018.
220
+
221
+ Nicolas Heess, Greg Wayne, Yuval Tassa, Timothy Lillicrap, Martin Riedmiller, David Silver, and Google Deepmind. Learning and Transfer of Modulated Locomotor Controllers. 2016. URL https://arxiv.org/abs/1610.05182.
222
+
223
+ Nicolas Heess, Dhruva TB, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, S. M. Ali Eslami, Martin Riedmiller, and David Silver. Emergence of Locomotion Behaviours in Rich Environments. 7 2017. URL http://arxiv.org/abs/ 1707.02286.
224
+
225
+ Sham Kakade. A Natural Policy Gradient. Advances in Neural Information Processing Systems, 2002.
226
+
227
+ Tejas D Kulkarni, Karthik R Narasimhan, Ardavan Saeedi CSAIL, and Joshua B Tenenbaum BCS. Hierarchical Deep Reinforcement Learning: Integrating Temporal Abstraction and Intrinsic Motivation. Advances in Neural Information Processing Systems, pp. 1–13, 2016.
228
+
229
+ Hoang M Le, Nan Jiang, Alekh Agarwal, Miroslav Dud, and Yue Hal. Hierarchical Imitation and Reinforcement Learning. International Conference in Machine Learning, 2018.
230
+
231
+ Andrew Levy, Robert Platt, and Kate Saenko. Hierarchical Actor-Critic. arXiv:1712.00948, 12 2017. URL http://arxiv.org/abs/1712.00948.
232
+
233
+ Andrew Levy, Robert Platt, and Kate Saenko. Hierarchical Reinforcement Learning with Hindsight. International Conference on Learning Representations, 5 2019. URL http://arxiv.org/ abs/1805.08180.
234
+
235
+ Josh Merel, Arun Ahuja, Vu Pham, Saran Tunyasuvunakool, Siqi Liu, Dhruva Tirumala, Nicolas Heess, and Greg Wayne. Hierarchical visuomotor control of humanoids. International Conference in Learning Representations, 2019. URL http://arxiv.org/abs/1811.09656.
236
+
237
+ 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.
238
+
239
+ Ofir Nachum, Honglak Lee, Shane Gu, and Sergey Levine. Data-Efficient Hierarchical Reinforcement Learning. Advances in Neural Information Processing Systems, 2018.
240
+
241
+ Ashvin Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual Reinforcement Learning with Imagined Goals. Adavances in Neural Information Processing Systems, 2018.
242
+
243
+ OpenAI, Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, and Alex Ray. Learning Dexterous In-Hand Manipulation. pp. 1–27, 2018.
244
+
245
+ Xue Bin Peng, Michael Chang, Grace Zhang, Pieter Abbeel, and Sergey Levine. MCP: Learning Composable Hierarchical Control with Multiplicative Compositional Policies. 5 2019. URL http://arxiv.org/abs/1905.09808.
246
+
247
+ Jan Peters and Stefan Schaal. Natural Actor-Critic. Neurocomputing, 71(7-9):1180–1190, 2008. ISSN 09252312. doi: 10.1016/j.neucom.2007.11.026.
248
+
249
+ Doina Precup. Temporal abstraction in reinforcement learning, 1 2000. URL https:// scholarworks.umass.edu/dissertations/AAI9978540.
250
+
251
+ Pravesh Ranchod, Benjamin Rosman, and George Konidaris. Nonparametric Bayesian Reward Segmentation for Skill Discovery Using Inverse Reinforcement Learning. 2015. ISSN 21530866. doi: 10.1109/IROS.2015.7353414.
252
+
253
+ John Schulman, Philipp Moritz, Michael Jordan, and Pieter Abbeel. Trust Region Policy Optimization. International Conference in Machine Learning, 2015.
254
+
255
+ John Schulman, Philipp Moritz, Sergey Levine, Michael I Jordan, and Pieter Abbeel. HIGHDIMENSIONAL CONTINUOUS CONTROL USING GENERALIZED ADVANTAGE ESTIMATION. International Conference in Learning Representations, pp. 1–14, 2016.
256
+
257
+ John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal Policy Optimization Algorithms. 2017. URL https://openai-public.s3-us-west-2. amazonaws.com/blog/2017-07/ppo/ppo-arxiv.pdf.
258
+
259
+ Arjun Sharma, Mohit Sharma, Nicholas Rhinehart, and Kris M Kitani. Directed-Info GAIL: Learning Hierarchical Policies from Unsegmented Demonstrations using Directed Information. International Conference in Learning Representations, 2018. URL http://arxiv.org/abs/1810. 01266.
260
+
261
+ Tianmin Shu, Caiming Xiong, and Richard Socher. Hierarchical and interpretable skill acquisition in multi-task reinforcement Learning. International Conference in Learning Representations, 3:1–13, 2018. doi: 10.1109/MWC.2016.7553036.
262
+
263
+ 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, 10 2017. ISSN 14764687. doi: 10.1038/nature24270. URL http://arxiv.org/abs/1610.00633.
264
+
265
+ Matthew J. A. Smith, Herke van Hoof, and Joelle Pineau. An inference-based policy gradient method for learning options, 2 2018. URL https://openreview.net/forum?id $=$ rJIgf7bAZ.
266
+
267
+ Sungryull Sohn, Junhyuk Oh, and Honglak Lee. Multitask Reinforcement Learning for Zero-shot Generalization with Subtask Dependencies. Advances in Neural Information Processing Systems, 2018.
268
+
269
+ Richard S Sutton, Doina Precup, and Satinder Singh. Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning. Artificial Intelligence, 112: 181–211, 1999. URL http://www-anw.cs.umass.edu/\~barto/courses/cs687/ Sutton-Precup-Singh-AIJ99.pdf.
270
+
271
+ Yichuan Tang and Ruslan Salakhutdinov. Learning Stochastic Feedforward Neural Networks. Advances in Neural Information Processing Systems, 2:530–538, 2013. doi: 10.1.1.63.1777.
272
+
273
+ Emanuel Todorov, Tom Erez, and Yuval Tassa. MuJoCo $:$ A physics engine for model-based control. pp. 5026–5033, 2012.
274
+
275
+ George Tucker, Surya Bhupatiraju, Shixiang Gu, Richard E Turner, Zoubin Ghahramani, and Sergey Levine. The Mirage of Action-Dependent Baselines in Reinforcement Learning. Internation Conference in Machine Learning, 2018. URL http://arxiv.org/abs/1802.10031.
276
+
277
+ Alexander Vezhnevets, Volodymyr Mnih, John Agapiou, Simon Osindero, Alex Graves, Oriol Vinyals, and Koray Kavukcuoglu Google DeepMind. Strategic Attentive Writer for Learning Macro-Actions. Advances in Neural Information Processing Systems, 2016.
278
+
279
+ Alexander Sasha Vezhnevets, Simon Osindero, Tom Schaul, Nicolas Heess, Max Jaderberg, David Silver, and Koray Kavukcuoglu. Feudal Networks for Hierarchical Reinforcement Learning. International Conference in Machine Learning, 2017. URL https://arxiv.org/pdf/ 1703.01161.pdf.
280
+
281
+ Théophane Weber, Nicolas Heess, Lars Buesing, and David Silver. Credit Assignment Techniques in Stochastic Computation Graphs. 1 2019. URL http://arxiv.org/abs/1901.01761.
282
+
283
+ Ronald J Williams. Simple Statistical Gradient-Following Algorithms for Connectionist Reinforcement Learning. Machine Learning, 8(3-4):229–256, 1992.
284
+
285
+ # A HYPERPARAMETERS AND ARCHITECTURES
286
+
287
+ The Block environments used a horizon of 1000 and a batch size of 50,000, while Gather used a batch size of 100,000. Ant Gather has a horizon of 5000, while Snake Gather has a horizon of 8000 due to its larger size. For all experiments, both PPO and HiPPO used learning rate $3 \times 1 0 ^ { - 3 }$ , clipping parameter $\epsilon = 0 . 1$ , 10 gradient updates per iteration, and discount $\gamma = 0 . 9 9 9$ . The learning rate, clipping parameter, and number of gradient updates come from the OpenAI Baselines implementation.
288
+
289
+ HiPPO used $n = 6$ sub-policies. HiPPO uses a manager network with 2 hidden layers of 32 units, and a skill network with 2 hidden layers of 64 units. In order to have roughly the same number of parameters for each algorithm, flat PPO uses a network with 2 hidden layers with 256 and 64 units respectively. For HiPPO with randomized period, we resample $p \sim \mathrm { U n i f o r m } \{ 5 , 1 5 \}$ every time the manager network outputs a latent, and provide the number of timesteps until the next latent selection as an input into both the manager and skill networks. The single baselines and skill-dependent baselines used a MLP with 2 hidden layers of 32 units to fit the value function. The skill-dependent baseline receives, in addition to the full observation, the active latent code and the time remaining until the next skill sampling. All runs used five random seeds.
290
+
291
+ # B ROBOT AGENT DESCRIPTION
292
+
293
+ Hopper is a 3-link robot with a 14-dimensional observation space and a 3-dimensional action space. Half-Cheetah has a 20-dimensional observation space and a 6-dimensional action space. We evaluate both of these agents on a sparse block hopping task. In addition to observing their own joint angles and positions, they observe the height and length of the next wall, the $\mathbf { X }$ -position of the next wall, and the distance to the wall from the agent. We also provide the same wall observations for the previous wall, which the agent can still interact with.
294
+
295
+ Snake is a 5-link robot with a 17-dimensional observation space and a 4-dimensional action space. Ant is a quadrupedal robot with a 27-dimensional observation space and a 8-dimensional action space. Both Ant and Snake can move and rotate in all directions, and Ant faces the added challenge of avoiding falling over irrecoverably. In the Gather environment, agents also receive 2 sets of 10-dimensional lidar observations, whcih correspond to separate apple and bomb observations. The observation displays the distance to the nearest apple or bomb in each $3 6 ^ { \circ }$ bin, respectively. All environments are simulated with the physics engine MuJoCo (Todorov et al., 2012).
296
+
297
+ # C PROOFS
298
+
299
+ Lemma 1. If the skills are sufficiently differentiated, then the latent variable can be treated as part of the observation to compute the gradient of the trajectory probability. Concretely, if $\pi _ { \boldsymbol { \theta } _ { h } } ( z | s )$ and $\pi _ { \boldsymbol { \theta } _ { l } } ( a | s , z )$ are Lipschitz in their parameters, and $0 \overset { \cdot } { < } \pi _ { \theta _ { l } } ( \bar { a } _ { t } \vert s _ { t } , z _ { j } ) < \epsilon \forall j \neq k p$ , then
300
+
301
+ $$
302
+ \nabla _ { \theta } \log P ( \tau ) = \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log \pi _ { \theta _ { h } } ( z _ { k p } | s _ { k p } ) + \sum _ { t = 1 } ^ { p } \nabla _ { \theta } \log \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) + \mathcal { O } ( n H \epsilon ^ { p - 1 } )
303
+ $$
304
+
305
+ Proof. From the point of view of the MDP, a trajectory is a sequence $\begin{array} { r l } { \tau } & { { } = } \end{array}$ $( s _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , \ldots , a _ { H - 1 } , s _ { H } )$ . Let’s assume we use the hierarchical policy introduced above, with a higher-level policy modeled as a parameterized discrete distribution with $n$ possible outcomes $\pi _ { \boldsymbol { \theta } _ { h } } ( \bar { z } | s ) = C \bar { a } t e g o r i c a l _ { \boldsymbol { \theta } _ { h } } ( n )$ . We can expand $P ( \tau )$ into the product of policy and environment dynamics terms, with $z _ { j }$ denoting the $j$ th possible value out of the $n$ choices,
306
+
307
+ $$
308
+ P ( \tau ) = \Bigg ( \prod _ { k = 0 } ^ { H / p } \Big [ \sum _ { j = 1 } ^ { n } \pi _ { \theta _ { h } } ( z _ { j } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \Big ] \Bigg ) \Bigg [ P ( s _ { 0 } ) \prod _ { t = 1 } ^ { H } P ( s _ { t + 1 } | s _ { t } , a _ { t } ) \Bigg ]
309
+ $$
310
+
311
+ Taking the gradient of $\log { P ( \tau ) }$ with respect to the policy parameters $\theta = [ \theta _ { h } , \theta _ { l } ]$ , the dynamics terms disappear, leaving:
312
+
313
+ $$
314
+ \begin{array} { l } { { \displaystyle 7 _ { \theta } \log P ( \tau ) = \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log \Big ( \sum _ { j = 1 } ^ { n } \pi _ { \theta _ { l } } ( z _ { j } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { s , \theta } ( a _ { t } | s _ { t } , z _ { j } ) \Big ) } } \\ { { \displaystyle \qquad = \sum _ { k = 0 } ^ { H / p } \frac { 1 } { \sum _ { j = 1 } ^ { n } \pi _ { \theta _ { h } } ( z _ { j } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) } \sum _ { j = 1 } ^ { n } \nabla _ { \theta } \Big ( \pi _ { \theta _ { h } } ( z _ { j } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \Big ) } } \end{array}
315
+ $$
316
+
317
+ The sum over possible values of $z$ prevents the logarithm from splitting the product over the $p$ -step sub-trajectories. This term is problematic, as this product quickly approaches 0 as $p$ increases, and suffers from considerable numerical instabilities. Instead, we want to approximate this sum of products by a single one of the terms, which can then be decomposed into a sum of logs. For this we study each of the terms in the sum: the gradient of a sub-trajectory probability under a specific latent $\begin{array} { r } { \nabla _ { \theta } \Big ( \pi _ { \theta _ { h } } ( z _ { j } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , \bar { z } _ { j } ) \Big ) } \end{array}$ . Now we can use the assumption that the skills are easy to distinguish, $0 < \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) < \epsilon \forall j \neq k p$ . Therefore, the probability of the sub-trajectory under a latent different than the one that was originally sampled $z _ { j } \neq z _ { k p }$ , is upper bounded by $\epsilon ^ { p }$ . Taking the gradient, applying the product rule, and the Lipschitz continuity of the policies, we obtain that for all $z _ { j } \neq z _ { k p }$ ,
318
+
319
+ $$
320
+ \begin{array} { l l } { { \displaystyle 7 _ { \theta } \Big ( \pi _ { \theta _ { h } } ( z _ { j } | s _ { k p } ) } } & { { \displaystyle \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \Big ) = \nabla _ { \theta } \pi _ { \theta _ { h } } ( z _ { j } | s _ { k p } ) } } & { { \displaystyle \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) } + } \\ { { } } & { { \displaystyle \sum _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { h } } ( z _ { j } | s _ { k p } ) \big ( \nabla _ { \theta } \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \big ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { l } } ( a _ { t ^ { \prime } } | s _ { t ^ { \prime } } ) \Big \} } } \\ { { } } & { { \displaystyle = \mathcal { O } ( p \epsilon ^ { p - 1 } ) } } \end{array}
321
+ $$
322
+
323
+ Thus, we can across the board replace the summation over latents by the single term corresponding to the latent that was sampled at that time.
324
+
325
+ $$
326
+ \begin{array} { l } { { \displaystyle \zeta _ { \theta } \log P ( \tau ) = \sum _ { k = 0 } ^ { H / p } \frac { 1 } { \pi _ { \theta _ { h } } ( z _ { k p } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { t } } ( a _ { t } | s _ { t } , z _ { k p } ) } \nabla _ { \theta } \Big ( P ( z _ { k p } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { t } } ( a _ { t } | s _ { t } , z _ { k p } ) \Big ) } } \\ { { \displaystyle \qquad = \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log \Big ( \pi _ { \theta _ { h } } ( z _ { k p } | s _ { k p } ) \prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \pi _ { \theta _ { t } } ( a _ { t } | s _ { t } , z _ { k p } ) \Big ) + \mathcal { O } ( n H \epsilon ^ { p - 1 } ) } } \\ { { \displaystyle \qquad = \mathbb { E } _ { \tau } \bigg [ \Big ( \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log \pi _ { \theta _ { h } } \big ( z _ { k p } | s _ { k p } ) + \sum _ { t = 1 } ^ { H } \nabla _ { \theta } \log \pi _ { \theta _ { t } } ( a _ { t } | s _ { t } , z _ { k p } ) \Big ) \bigg ] + \mathcal { O } ( n H \epsilon ^ { p - 1 } ) } } \end{array}
327
+ $$
328
+
329
+ Interestingly, this is exactly $\nabla _ { \theta } P ( s _ { 0 } , z _ { 0 } , a _ { 0 } , s _ { 1 } , \dots )$ . In other words, it’s the gradient of the probability of that trajectory, where the trajectory now includes the variables $z$ as if they were observed.
330
+
331
+ Lemma 2. For any functions $b _ { h } : S \mathbb { R }$ and $b _ { l } : \mathcal { S } \times \mathcal { Z } \to \mathbb { R }$ we have:
332
+
333
+ $$
334
+ \mathbb { E } _ { \tau } [ \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log P ( z _ { k p } | s _ { k p } ) b ( s _ { k p } ) ] = 0
335
+ $$
336
+
337
+ $$
338
+ \mathbb { E } _ { \tau } [ \sum _ { t = 0 } ^ { H } \nabla _ { \theta } \log \pi _ { \theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) b ( s _ { t } , z _ { k p } ) ] = 0
339
+ $$
340
+
341
+ Proof. We can use the tower property as well as the fact that the interior expression only depends on $s _ { k p }$ and $z _ { k p }$ :
342
+
343
+ $$
344
+ \begin{array} { r l } { \mathbb { E } _ { \tau } [ \displaystyle \sum _ { k = 0 } ^ { H / p } \nabla _ { \theta } \log P ( z _ { k p } | s _ { k p } ) b ( s _ { k p } ) ] = \displaystyle \sum _ { k = 0 } ^ { H / p } \mathbb { E } _ { s _ { k p } , z _ { k p } } [ \mathbb { E } _ { \tau \setminus s _ { k p } , z _ { k p } } [ \nabla _ { \theta } \log P ( z _ { k p } | s _ { k p } ) b ( s _ { k p } ) ] } & { } \\ { \displaystyle } & { ~ = \displaystyle \sum _ { k = 0 } ^ { H / p } \mathbb { E } _ { s _ { k p } , z _ { k p } } [ \nabla _ { \theta } \log P ( z _ { k p } | s _ { k p } ) b ( s _ { k p } ) ] } \end{array}
345
+ $$
346
+
347
+ Then, we can write out the definition of the expectation and undo the gradient-log trick to prove that the baseline is unbiased.
348
+
349
+ $$
350
+ \begin{array} { r l } { \nabla _ { \theta } \log \mathfrak { A } _ { \theta _ { 1 } } ( \mathfrak { L } _ { \mathcal { F } _ { 1 } } | \mathfrak { L } _ { \mathcal { F } _ { 1 } } ) \hat { \mathfrak { H } } ( \mathfrak { L } _ { \mathcal { F } _ { 1 } } ) \rVert ( \mathfrak { L } _ { \mathcal { F } _ { 1 } } ) } & { = \displaystyle \operatorname* { l i m } _ { \le t \le j } \int _ { ( s _ { \phi _ { 1 } , \phi _ { 2 } } , \mathfrak { L } _ { \mathcal { F } _ { 2 } } ) \in \mathcal { L } _ { \mathcal { F } _ { 1 } } } \nabla _ { ( s _ { \phi _ { 2 } } , \mathfrak { L } _ { \mathcal { F } _ { 2 } } ) \in \mathcal { L } _ { \mathcal { F } _ { 1 } } } \left. \mathfrak { L } _ { \mathcal { F } _ { 1 } } ( \mathcal { L } _ { \mathcal { F } _ { 2 } } | \mathfrak { L } _ { \mathcal { F } _ { 1 } } ) \hat { \mathfrak { H } } ( \mathfrak { L } _ { \mathcal { F } _ { 2 } } ) \hat { \mathfrak { H } } ( \mathfrak { L } _ { \mathcal { F } _ { 2 } } ) \hat { \mathfrak { H } } ( \mathfrak { L } _ { \mathcal { F } _ { 2 } } ) \hat { \mathfrak { H } } ( \mathfrak { L } _ { \mathcal { F } _ { 2 } } ) \right. } \\ & = \displaystyle \sum _ { s = 0 } ^ { \mathcal { N } _ { 0 } } \int _ { s _ { \phi _ { 2 } } \in \mathcal { L } _ { \mathcal { F } _ { 2 } } } P ( s _ { \phi _ { 3 } , \phi _ { 3 } } ) \hat { \mathfrak { H } } ( s _ { \phi _ { 3 } } ) \int _ { s _ { \phi _ { 2 } } \le s _ { \phi _ { 1 } } } \left( \mathfrak { L } _ { \mathcal { F } _ { 2 } } | \mathfrak { L } _ { \mathcal { F } _ { 3 } } \right) \nabla _ { \phi } \log \mathfrak { L } _ { \mathcal { F } _ { 3 } } ( \mathcal { L } _ { \mathcal { F } _ { 1 } } | \mathfrak { L } _ { \mathcal { F } _ { 3 } } ) \hat { \mathfrak { H } } ( \mathfrak { L } _ { \mathcal { F } _ { 2 } } | \hat { \mathfrak { L } } _ { \mathcal { F } _ { 3 } } ) \hat { \mathfrak { H } } ( \mathcal { L } _ { \mathcal { F } _ { 1 } } | \mathfrak { L } _ { \mathcal { F } _ { 1 } } ) \prod _ { s = 0 } \end{array}
351
+ $$
352
+
353
+ Subtracting a state- and subpolicy- dependent baseline from the second term is also unbiased, i.e.
354
+
355
+ $$
356
+ \mathbb { E } _ { \tau } [ \sum _ { t = 0 } ^ { H } \nabla _ { \theta } \log \pi _ { s , \theta } ( a _ { t } | s _ { t } , z _ { k p } ) b ( s _ { t } , z _ { k p } ) ] = 0
357
+ $$
358
+
359
+ We’ll follow the same strategy to prove the second equality: apply the tower property, express the expectation as an integral, and undo the gradient-log trick.
360
+
361
+ $$
362
+ \begin{array} { r l } & { \mathbb { E } _ { x } | \displaystyle \sum _ { t = 1 } ^ { M } \nabla \cdot \nabla ^ { \theta } \log \pi _ { \theta } \{ \alpha _ { t } | s _ { t } , z _ { t , p } \} b ( s _ { t } , z _ { t , p } ) \Big | } \\ & \begin{array} { r l } & \displaystyle = \sum _ { t = 0 } ^ { H } \sum _ { \alpha _ { t } , \alpha _ { t } , z _ { t , p } \} \mathbb { E } _ { \Gamma ( s ) \cup \mathcal { L } _ { q } \cup \mathcal { L } _ { q } } [ \nabla _ { s } \log \pi _ { \theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) ] \Big | } \\ & \displaystyle = \sum _ { t = 0 } ^ { H } \sum _ { \alpha _ { t } , \alpha _ { t } , z _ { t , p } \} \big [ \nabla _ { s } \log \pi _ { \theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) \big ] \big ( \nabla _ { s } \log \pi _ { \theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) \big ) \big | } \\ & \displaystyle = \sum _ { t = 0 } ^ { H } \mathbb { E } _ { \kappa _ { t } , \alpha _ { t } , z _ { t , p } \} \big [ \nabla _ { s } \log \pi _ { \theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) \big ] \big ( \nabla _ { s } \log \pi _ { \theta } ( a _ { t } | s _ { t } , z _ { t , p } ) \big ) } \\ & { \displaystyle = \sum _ { t = 0 } ^ { H } \int _ { ( a _ { t } , z _ { t , p } ) } P ( s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) \int _ { a _ { t } } \pi _ { \theta } ( a _ { t } | s _ { t } , z _ { t , p } ) \nabla _ { \theta } \log \pi _ { \theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( a _ { t } | s _ { t } , z _ { t , p } ) d a _ { t } d a _ { t } d a _ { t } d a _ { t } } \\ & \displaystyle = \sum _ { t = 0 } ^ { H } \int _ { ( a _ { t } , z _ { t , p } ) } P ( s _ { t } , z _ { t , p } \end{array} \end{array}
363
+ $$
364
+
365
+ ![](images/ee0ef8b7d618f7c26e204fd303b0f1de7942fc7e9d8b5b2ff23a13be001b23f1.jpg)
366
+ Figure 7: HIRO performance on Ant Gather with and without access to the ground truth $( x , y )$ , which it needs to communicate useful goals.
367
+
368
+ # D HIRO SENSITIVITY TO OBSERVATION-SPACE
369
+
370
+ In this section we provide a more detailed explanation of why HIRO (Nachum et al., 2018) performs poorly under our environments. As explained in our related work section, HIRO belongs to the general category of algorithms that train goal-reaching policies as lower levels of the hierarchy (Vezhnevets et al., 2017; Levy et al., 2017). These methods rely on having a goal-space that is meaningful for the task at hand. For example, in navigation tasks they require having access to the $( x , y )$ position of the agent such that deltas in that space can be given as meaningful goals to move in the environment. Unfortunately, in many cases the only readily available information (if there’s no GPS signal or other positioning system installed) are raw sensory inputs, like cameras or the LIDAR sensors we mimic in our environments. In such cases, our method still performs well because it doesn’t rely on the goal-reaching extra supervision that is leveraged (and detrimental in this case) in HIRO and similar methods. In Figure 7, we show that knowing the ground truth location is critical for its success. We have reproduced the HIRO results in Fig. 7 using the published codebase, so we are convinced that our results showcase a failure mode of HIRO.
371
+
372
+ # E HYPERPARAMETER SENSITIVITY PLOTS
373
+
374
+ ![](images/bf71f0947b79c1dacc6adb6a4abac4033bdc6c446907c6564290d12f3e9db82b.jpg)
375
+ Figure 8: Sensitivity of HiPPO to variation in the time-commitment.
376
+
377
+ ![](images/6e231db06c188eafb086f33848ba035a6839f3368bff333cca0e31a26f509a6d.jpg)
378
+ Figure 9: Sensitivity of HiPPO to variation in the number of skills.
parse/train/ByeWogStDS/ByeWogStDS_content_list.json ADDED
@@ -0,0 +1,1879 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SUB-POLICY ADAPTATION FOR HIERARCHICALREINFORCEMENT LEARNING",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 745,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Alexander C. Li∗, Carlos Florensa∗, Ignasi Clavera, Pieter Abbeel University of California, Berkeley {alexli1, florensa, iclavera, pabbeel}@berkeley.edu ",
17
+ "bbox": [
18
+ 184,
19
+ 169,
20
+ 684,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 250,
32
+ 544,
33
+ 263
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Hierarchical reinforcement learning is a promising approach to tackle long-horizon decision-making problems with sparse rewards. Unfortunately, most methods still decouple the lower-level skill acquisition process and the training of a higher level that controls the skills in a new task. Leaving the skills fixed can lead to significant sub-optimality in the transfer setting. In this work, we propose a novel algorithm to discover a set of skills and continuously adapt them along with the higher level even when training on a new task. Our main contributions are two-fold. First, we derive a new hierarchical policy gradient with an unbiased latent-dependent baseline, and we introduce Hierarchical Proximal Policy Optimization (HiPPO), an on-policy method to efficiently train all levels of the hierarchy jointly. Second, we propose a method of training time-abstractions that improves the robustness of the obtained skills to environment changes. Code and videos are available. 1. ",
40
+ "bbox": [
41
+ 233,
42
+ 281,
43
+ 766,
44
+ 448
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 477,
55
+ 336,
56
+ 492
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Reinforcement learning (RL) has made great progress in a variety of domains, from playing games such as Pong and Go (Mnih et al., 2015; Silver et al., 2017) to automating robotic locomotion (Schulman et al., 2015; Heess et al., 2017), dexterous manipulation (Florensa et al., 2017b; OpenAI et al., 2018), and perception (Nair et al., 2018; Florensa et al., 2018). Yet, most work in RL is still learning from scratch when faced with a new problem. This is particularly inefficient when tackling multiple related tasks that are hard to solve due to sparse rewards or long horizons. ",
63
+ "bbox": [
64
+ 174,
65
+ 510,
66
+ 823,
67
+ 593
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "A promising technique to overcome this limitation is hierarchical reinforcement learning (HRL) (Sutton et al., 1999). In this paradigm, policies have several modules of abstraction, allowing to reuse subsets of the modules. The most common case consists of temporal hierarchies (Precup, 2000; Dayan & Hinton, 1993), where a higher-level policy (manager) takes actions at a lower frequency, and its actions condition the behavior of some lower level skills or sub-policies. When transferring knowledge to a new task, most prior works fix the skills and train a new manager on top. Despite having a clear benefit in kick-starting the learning in the new task, having fixed skills can considerably cap the final performance on the new task (Florensa et al., 2017a). Little work has been done on adapting pre-trained sub-policies to be optimal for a new task. ",
74
+ "bbox": [
75
+ 174,
76
+ 599,
77
+ 825,
78
+ 726
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper, we develop a new framework for simultaneously adapting all levels of temporal hierarchies. First, we derive an efficient approximated hierarchical policy gradient. The key insight is that, despite the decisions of the manager being unobserved latent variables from the point of view of the Markovian environment, from the perspective of the sub-policies they can be considered as part of the observation. We show that this provides a decoupling of the manager and sub-policy gradients, which greatly simplifies the computation in a principled way. It also theoretically justifies a technique used in other prior works (Frans et al., 2018). Second, we introduce a sub-policy specific baseline for our hierarchical policy gradient. We prove that this baseline is unbiased, and our experiments reveal faster convergence, suggesting efficient gradient variance reduction. Then, we introduce a more stable way of using this gradient, Hierarchical Proximal Policy Optimization (HiPPO). This method helps us take more conservative steps in our policy space (Schulman et al., 2017), critical in hierarchies because of the interdependence of each layer. Results show that HiPPO is highly efficient both when learning from scratch, i.e. adapting randomly initialized skills, and when adapting pretrained skills on a new task. Finally, we evaluate the benefit of randomizing the time-commitment of the sub-policies, and show it helps both in terms of final performance and zero-shot adaptation on similar tasks. ",
85
+ "bbox": [
86
+ 174,
87
+ 732,
88
+ 825,
89
+ 885
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 825,
100
+ 160
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "2 PRELIMINARIES ",
107
+ "text_level": 1,
108
+ "bbox": [
109
+ 176,
110
+ 181,
111
+ 338,
112
+ 196
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "We define a discrete-time finitehorizon discounted Markov decision process (MDP) by a tuple $\\begin{array} { r l } { M } & { { } = } \\end{array}$ $( \\boldsymbol { \\bar { s } } , \\boldsymbol { \\mathcal { A } } , \\mathcal { P } , \\boldsymbol { r } , \\rho _ { 0 } , \\gamma , \\boldsymbol { \\dot { H } } )$ , where $s$ is a state set, $\\mathcal { A }$ is an action set, $\\mathcal { P } :$ $S \\times \\mathcal { A } \\times \\mathcal { S } \\to \\mathbb { R } _ { + }$ is the transition probability distribution, $\\gamma ~ \\in ~ [ 0 , 1 ]$ is a discount factor, and $H$ the horizon. Our objective is to find a stochastic policy $\\pi _ { \\theta }$ that maximizes the expected discounted return within the MDP, $\\begin{array} { r } { \\eta ( \\pi _ { \\theta } ) = \\mathbb { E } _ { \\tau } [ \\sum _ { t = 0 } ^ { H } \\gamma ^ { t } r ( s _ { t } , a _ { t } ) ] } \\end{array}$ We use ${ \\boldsymbol \\tau } = ( s _ { 0 } , a _ { 0 } , . . . , )$ to denote the entire state-action trajectory, where $s _ { 0 } ~ \\sim ~ \\rho _ { 0 } ( s _ { 0 } )$ , $a _ { t } \\sim \\dot { \\pi } _ { \\theta } ( a _ { t } | s _ { t } )$ , and $s _ { t + 1 } \\sim \\mathcal { P } ( s _ { t + 1 } | s _ { t } , a _ { t } )$ . ",
119
+ "bbox": [
120
+ 174,
121
+ 214,
122
+ 421,
123
+ 440
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "image",
129
+ "img_path": "images/7ba3bb08e3131bf7c0453118b8ce8cd1f7c6946bcc17a481702825cd49f02921.jpg",
130
+ "image_caption": [
131
+ "Figure 1: Temporal hierarchy studied in this paper. A latent code $z _ { t }$ is sampled from the manager policy $\\bar { \\pi _ { \\boldsymbol { \\theta } _ { h } } ( \\boldsymbol { z } _ { t } | \\boldsymbol { s } _ { t } ) }$ every $p$ time-steps, using the current observation $s _ { k p }$ . The actions $a _ { t }$ are sampled from the sub-policy $\\pi _ { \\boldsymbol { \\theta } _ { l } } ( a _ { t } | \\bar { s } _ { t } , z _ { k p } )$ conditioned on the same latent code from $t = k p$ to $( k \\bar { + } 1 ) p - 1$ "
132
+ ],
133
+ "image_footnote": [],
134
+ "bbox": [
135
+ 454,
136
+ 189,
137
+ 810,
138
+ 347
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "In this work, we propose a method to learn a hierarchical policy and efficiently adapt all the levels in the hierarchy to perform a new task. We study hierarchical policies composed of a higher level, or manager $\\pi _ { \\boldsymbol { \\theta } _ { h } } \\big ( \\boldsymbol { z } _ { t } | \\boldsymbol { s } _ { t } \\big )$ , and a lower level, or sub-policy $\\pi _ { \\theta _ { l } } ( a _ { t ^ { \\prime } } | z _ { t } , s _ { t ^ { \\prime } } )$ . The higher level does not take actions in the environment directly, but rather outputs a command, or latent variable $z _ { t } \\in \\mathcal { Z }$ , that conditions the behavior of the lower level. We focus on the common case where ${ \\mathcal { Z } } = \\mathbb { Z } _ { n }$ making the manager choose among $n$ sub-policies, or skills, to execute. The manager typically operates at a lower frequency than the sub-policies, only observing the environment every $p$ time-steps. When the manager receives a new observation, it decides which low level policy to commit to for $p$ environment steps by the means of a latent code $z$ . Figure 1 depicts this framework where the high level frequency $p$ is a random variable, which is one of the contribution of this paper as described in Section 4.4. Note that the class of hierarchical policies we work with is more restrictive than others like the options framework, where the time-commitment is also decided by the policy. Nevertheless, we show that this loss in policy expressivity acts as a regularizer and does not prevent our algorithm from surpassing other state-of-the art methods. ",
145
+ "bbox": [
146
+ 173,
147
+ 445,
148
+ 825,
149
+ 640
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "3 RELATED WORK ",
156
+ "text_level": 1,
157
+ "bbox": [
158
+ 176,
159
+ 661,
160
+ 344,
161
+ 678
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "There has been growing interest in HRL for the past few decades (Sutton et al., 1999; Precup, 2000), but only recently has it been applied to high-dimensional continuous domains as we do in this work (Kulkarni et al., 2016; Daniel et al., 2016). To obtain the lower level policies, or skills, most methods exploit some additional assumptions, like access to demonstrations (Le et al., 2018; Merel et al., 2019; Ranchod et al., 2015; Sharma et al., 2018), policy sketches (Andreas et al., 2017), or task decomposition into sub-tasks (Ghavamzadeh & Mahadevan, 2003; Sohn et al., 2018). Other methods use a different reward for the lower level, often constraining it to be a “goal reacher” policy, where the signal from the higher level is the goal to reach (Nachum et al., 2018; Levy et al., 2019; Vezhnevets et al., 2017). These methods are very promising for state-reaching tasks, but might require access to goal-reaching reward systems not defined in the original MDP, and are more limited when training on tasks beyond state-reaching. Our method does not require any additional supervision, and the obtained skills are not constrained to be goal-reaching. ",
168
+ "bbox": [
169
+ 173,
170
+ 694,
171
+ 825,
172
+ 861
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "When transferring skills to a new environment, most HRL methods keep them fixed and simply train a new higher-level on top (Hausman et al., 2018; Heess et al., 2016). Other work allows for building on previous skills by constantly supplementing the set of skills with new ones (Shu et al., 2018), but they require a hand-defined curriculum of tasks, and the previous skills are never fine-tuned. ",
179
+ "bbox": [
180
+ 174,
181
+ 867,
182
+ 825,
183
+ 924
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Our algorithm allows for seamless adaptation of the skills, showing no trade-off between leveraging the power of the hierarchy and the final performance in a new task. Other methods use invertible functions as skills (Haarnoja et al., 2018), and therefore a fixed skill can be fully overwritten when a new layer of hierarchy is added on top. This kind of “fine-tuning” is promising, although similar to other works (Peng et al., 2019), they do not apply it to temporally extended skills as we do here. ",
190
+ "bbox": [
191
+ 174,
192
+ 103,
193
+ 825,
194
+ 174
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "One of the most general frameworks to define temporally extended hierarchies is the options framework (Sutton et al., 1999), and it has recently been applied to continuous state spaces (Bacon et al., 2017). One of the most delicate parts of this formulation is the termination policy, and it requires several regularizers to avoid skill collapse (Harb et al., 2017; Vezhnevets et al., 2016). This modification of the objective may be difficult to tune and affects the final performance. Instead of adding such penalties, we propose to have skills of a random length, not controlled by the agent during training of the skills. The benefit is two-fold: no termination policy to train, and more stable skills that transfer better. Furthermore, these works only used discrete action MDPs. We lift this assumption, and show good performance of our algorithm in complex locomotion tasks. There are other algorithms recently proposed that go in the same direction, but we found them more complex, less principled (their per-action marginalization cannot capture well the temporal correlation within each option), and without available code or evidence of outperforming non-hierarchical methods (Smith et al., 2018). ",
201
+ "bbox": [
202
+ 174,
203
+ 180,
204
+ 825,
205
+ 347
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "The closest work to ours in terms of final algorithm structure is the one proposed by Frans et al. (2018). Their method can be included in our framework, and hence benefits from our new theoretical insights. We introduce a modification that is shown to be highly beneficial: the random timecommitment mentioned above, and find that our method can learn in difficult environments without their complicated training scheme. ",
212
+ "bbox": [
213
+ 174,
214
+ 354,
215
+ 825,
216
+ 424
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "4 EFFICIENT HIERARCHICAL POLICY GRADIENTS ",
223
+ "text_level": 1,
224
+ "bbox": [
225
+ 174,
226
+ 443,
227
+ 602,
228
+ 459
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "When using a hierarchical policy, the intermediate decision taken by the higher level is not directly applied in the environment. Therefore, technically it should not be incorporated into the trajectory description as an observed variable, like the actions. This makes the policy gradient considerably harder to compute. In this section we first prove that, under mild assumptions, the hierarchical policy gradient can be accurately approximated without needing to marginalize over this latent variable. Then, we derive an unbiased baseline for the policy gradient that can reduce the variance of its estimate. Finally, with these findings, we present our method, Hierarchical Proximal Policy Optimization (HiPPO), an on-policy algorithm for hierarchical policies, allowing learning at all levels of the policy jointly and preventing sub-policy collapse. ",
235
+ "bbox": [
236
+ 173,
237
+ 474,
238
+ 825,
239
+ 599
240
+ ],
241
+ "page_idx": 2
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "4.1 APPROXIMATE HIERARCHICAL POLICY GRADIENT ",
246
+ "text_level": 1,
247
+ "bbox": [
248
+ 173,
249
+ 616,
250
+ 566,
251
+ 631
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "Policy gradient algorithms are based on the likelihood ratio trick (Williams, 1992) to estimate the gradient of returns with respect to the policy parameters as ",
258
+ "bbox": [
259
+ 173,
260
+ 641,
261
+ 823,
262
+ 671
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "equation",
268
+ "img_path": "images/19460e68894e2a01fbb52ab7b6bd9fcaeb7d7d5ed53b22bc602da293098f807a.jpg",
269
+ "text": "$$\n\\begin{array} { c l } { \\displaystyle \\nabla _ { \\theta } \\eta ( \\pi _ { \\theta } ) = \\mathbb E _ { \\tau } \\big [ \\nabla _ { \\theta } \\log P ( \\tau ) R ( \\tau ) \\big ] \\approx \\frac { 1 } { N } \\sum _ { i = 1 } ^ { n } \\nabla _ { \\theta } \\log P ( \\tau _ { i } ) R ( \\tau _ { i } ) } \\\\ { \\displaystyle = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { n } \\frac { 1 } { H } \\sum _ { t = 1 } ^ { H } \\nabla _ { \\theta } \\log \\pi _ { \\theta } ( a _ { t } | s _ { t } ) R ( \\tau _ { i } ) } \\end{array}\n$$",
270
+ "text_format": "latex",
271
+ "bbox": [
272
+ 250,
273
+ 674,
274
+ 746,
275
+ 761
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "In a temporal hierarchy, a hierarchical policy with a manager $\\pi _ { \\boldsymbol { \\theta } _ { h } } \\big ( \\boldsymbol { z } _ { t } | \\boldsymbol { s } _ { t } \\big )$ selects every $p$ time-steps one of $n$ sub-policies to execute. These sub-policies, indexed by $z \\in \\mathbb { Z } _ { n }$ , can be represented as a single conditional probability distribution over actions $\\pi _ { \\boldsymbol { \\theta } _ { l } } ( a _ { t } | \\boldsymbol { z } _ { t } , \\boldsymbol { s } _ { t } )$ . This allows us to not only use a given set of sub-policies, but also leverage skills learned with Stochastic Neural Networks (SNNs) (Florensa et al., 2017a). Under this framework, the probability of a trajectory $\\tau = ( s _ { 0 } , a _ { 0 } , s _ { 1 } , \\dots , s _ { H } )$ can be written as ",
282
+ "bbox": [
283
+ 174,
284
+ 761,
285
+ 825,
286
+ 844
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "equation",
292
+ "img_path": "images/11ad076417ec9919c11a60634cea9cc17c0260275d1d48b28bf5d29bdfd18a9f.jpg",
293
+ "text": "$$\nP ( \\tau ) = \\Bigg ( \\prod _ { k = 0 } ^ { H / p } \\Big [ \\sum _ { j = 1 } ^ { n } \\pi _ { \\theta _ { h } } ( z _ { j } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \\Big ] \\Bigg ) \\Bigg [ P ( s _ { 0 } ) \\prod _ { t = 1 } ^ { H } P ( s _ { t + 1 } | s _ { t } , a _ { t } ) \\Bigg ] .\n$$",
294
+ "text_format": "latex",
295
+ "bbox": [
296
+ 214,
297
+ 847,
298
+ 784,
299
+ 892
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "The mixture action distribution, which presents itself as an additional summation over skills, prevents additive factorization when taking the logarithm, as from Eq. 1 to 2. This can yield numerical instabilities due to the product of the $p$ sub-policy probabilities. For instance, in the case where all the skills are distinguishable all the sub-policies’ probabilities but one will have small values, resulting in an exponentially small value. In the following Lemma, we derive an approximation of the policy gradient, whose error tends to zero as the skills become more diverse, and draw insights on the interplay of the manager actions. ",
306
+ "bbox": [
307
+ 173,
308
+ 895,
309
+ 825,
310
+ 924
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "",
317
+ "bbox": [
318
+ 173,
319
+ 103,
320
+ 825,
321
+ 174
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Lemma 1. If the skills are sufficiently differentiated, then the latent variable can be treated as part of the observation to compute the gradient of the trajectory probability. Let $\\pi _ { \\boldsymbol { \\theta } _ { h } } ( z | s )$ and $\\pi _ { \\boldsymbol { \\theta } _ { l } } ( a | s , z )$ be Lipschitz functions w.r.t. their parameters, and assume that $0 < \\pi _ { \\theta _ { l } } ( a | s , z _ { j } ) < \\epsilon \\forall j \\neq k p$ , then ",
328
+ "bbox": [
329
+ 171,
330
+ 178,
331
+ 826,
332
+ 222
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "equation",
338
+ "img_path": "images/ed339299a39e6e949895b23aa338b11023c6c6915a8ebdf1ecfa3867b0af6638.jpg",
339
+ "text": "$$\n\\nabla _ { \\theta } \\log P ( \\tau ) = \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { h } } ( z _ { k p } | s _ { k p } ) + \\sum _ { t = 0 } ^ { H } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) + \\mathcal { O } ( n H \\epsilon ^ { p - 1 } )\n$$",
340
+ "text_format": "latex",
341
+ "bbox": [
342
+ 220,
343
+ 228,
344
+ 779,
345
+ 273
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "Proof. See Appendix. ",
352
+ "bbox": [
353
+ 174,
354
+ 286,
355
+ 320,
356
+ 301
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "Our assumption can be seen as having diverse skills. Namely, for each action there is just one sub-policy that gives it high probability. In this case, the latent variable can be treated as part of the observation to compute the gradient of the trajectory probability. Many algorithms to extract lowerlevel skills are based on promoting diversity among the skills (Florensa et al., 2017a; Eysenbach et al., 2019), therefore usually satisfying our assumption. We further analyze how well this assumption holds in our experiments section and Table 2. ",
363
+ "bbox": [
364
+ 173,
365
+ 315,
366
+ 826,
367
+ 400
368
+ ],
369
+ "page_idx": 3
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "4.2 UNBIASED SUB-POLICY BASELINE",
374
+ "text_level": 1,
375
+ "bbox": [
376
+ 176,
377
+ 416,
378
+ 459,
379
+ 431
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "The policy gradient estimate obtained when applying the log-likelihood ratio trick as derived above is known to have large variance. A very common approach to mitigate this issue without biasing the estimate is to subtract a baseline from the returns (Peters & Schaal, 2008). It is well known that such baselines can be made state-dependent without incurring any bias. However, it is still unclear how to formulate a baseline for all the levels in a hierarchical policy, since an action dependent baseline does introduce bias in the gradient (Tucker et al., 2018). It has been recently proposed to use latent-conditioned baselines (Weber et al., 2019). Here we go further and prove that, under the assumptions of Lemma 1, we can formulate an unbiased latent dependent baseline for the approximate gradient (Eq. 5). ",
386
+ "bbox": [
387
+ 173,
388
+ 443,
389
+ 826,
390
+ 569
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "Lemma 2. For any functions $b _ { h } : S \\mathbb { R }$ and $b _ { l } : \\mathcal { S } \\times \\mathcal { Z } \\to \\mathbb { R }$ we have: ",
397
+ "bbox": [
398
+ 173,
399
+ 571,
400
+ 651,
401
+ 588
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "equation",
407
+ "img_path": "images/15614f02bd2e16641269ff3847d5e81509a85f9391271d87d9af82980c2e296f.jpg",
408
+ "text": "$$\n\\mathbb { E } _ { \\tau } [ \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log P ( z _ { k p } | s _ { k p } ) b _ { h } ( s _ { k p } ) ] = 0 \\quad a n d \\quad \\mathbb { E } _ { \\tau } [ \\sum _ { t = 0 } ^ { H } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) b _ { l } ( s _ { t } , z _ { k p } ) ] = 0\n$$",
409
+ "text_format": "latex",
410
+ "bbox": [
411
+ 191,
412
+ 594,
413
+ 807,
414
+ 638
415
+ ],
416
+ "page_idx": 3
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "Proof. See Appendix. ",
421
+ "bbox": [
422
+ 174,
423
+ 652,
424
+ 320,
425
+ 667
426
+ ],
427
+ "page_idx": 3
428
+ },
429
+ {
430
+ "type": "text",
431
+ "text": "Now we apply Lemma 1 and Lemma 2 to Eq. 1. By using the corresponding value functions as the function baseline, the return can be replaced by the Advantage function $A ( s _ { k p } , z _ { k p } )$ (see details in Schulman et al. (2016)), and we obtain the following approximate policy gradient expression: ",
432
+ "bbox": [
433
+ 176,
434
+ 681,
435
+ 823,
436
+ 726
437
+ ],
438
+ "page_idx": 3
439
+ },
440
+ {
441
+ "type": "equation",
442
+ "img_path": "images/08b5da05b2a61fecfabcab3afd9d5210d474c3c70592f59bc2962c149ec37134.jpg",
443
+ "text": "$$\n\\hat { g } = \\mathbb { E } _ { \\tau } \\Big [ \\big ( \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { h } } ( z _ { k p } | s _ { k p } ) A ( s _ { k p } , z _ { k p } ) \\big ) + \\big ( \\sum _ { t = 0 } ^ { H } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) A ( s _ { t } , a _ { t } , z _ { k p } ) \\big ) \\Big ]\n$$",
444
+ "text_format": "latex",
445
+ "bbox": [
446
+ 192,
447
+ 732,
448
+ 803,
449
+ 776
450
+ ],
451
+ "page_idx": 3
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "This hierarchical policy gradient estimate can have lower variance than without baselines, but using it for policy optimization through stochastic gradient descent still yields an unstable algorithm. In the next section, we further improve the stability and sample efficiency of the policy optimization by incorporating techniques from Proximal Policy Optimization (Schulman et al., 2017). ",
456
+ "bbox": [
457
+ 176,
458
+ 782,
459
+ 823,
460
+ 839
461
+ ],
462
+ "page_idx": 3
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "4.3 HIERARCHICAL PROXIMAL POLICY OPTIMIZATION ",
467
+ "text_level": 1,
468
+ "bbox": [
469
+ 173,
470
+ 854,
471
+ 570,
472
+ 871
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "Using an appropriate step size in policy space is critical for stable policy learning. Modifying the policy parameters in some directions may have a minimal impact on the distribution over actions, whereas small changes in other directions might change its behavior drastically and hurt training ",
479
+ "bbox": [
480
+ 174,
481
+ 881,
482
+ 825,
483
+ 924
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "Algorithm 1 HiPPO Rollout ",
490
+ "text_level": 1,
491
+ "bbox": [
492
+ 174,
493
+ 118,
494
+ 390,
495
+ 132
496
+ ],
497
+ "page_idx": 4
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "Algorithm 2 HiPPO ",
502
+ "text_level": 1,
503
+ "bbox": [
504
+ 575,
505
+ 118,
506
+ 710,
507
+ 132
508
+ ],
509
+ "page_idx": 4
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "1: Input: skills $\\pi _ { \\boldsymbol { \\theta } _ { l } } ( a | s , z )$ , manager $\\pi _ { \\boldsymbol { \\theta } _ { h } } ( z | s )$ , time \ncommitment bounds $P _ { \\mathrm { m i n } }$ and $P _ { \\mathrm { m a x } }$ , horizon $H$ \n2: Reset environment: $s _ { 0 } \\sim \\rho _ { 0 }$ , $t = 0$ . \n3: while $t < H$ do \n4: Sample time-commitment $p \\sim \\mathsf { C a t } ( [ P _ { \\operatorname* { m i n } } , P _ { \\operatorname* { m a x } } ] )$ \n5: Sample skill $z _ { t } \\sim \\pi _ { \\theta _ { h } } ( \\cdot | s _ { t } )$ \n6: for $t ^ { \\prime } = t \\ldots ( t + p )$ do \n7: Sample action $a _ { t ^ { \\prime } } \\sim \\pi _ { \\theta _ { l } } ( \\cdot | s _ { t ^ { \\prime } } , z _ { t } )$ \n8: Observe new state $s _ { t ^ { \\prime } + 1 }$ and reward $\\boldsymbol { r } _ { t ^ { \\prime } }$ \n9: end for \n10: $t \\gets t + p$ \n11: end while \n12: Output: $\\left( s _ { 0 } , z _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , \\ldots , s _ { H } , z _ { H } , a _ { H } , s _ { H + 1 } \\right)$ ",
514
+ "bbox": [
515
+ 178,
516
+ 137,
517
+ 558,
518
+ 321
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "1: Input: skills $\\pi _ { \\boldsymbol { \\theta } _ { l } } ( a | s , z )$ , manager $\\pi _ { \\boldsymbol { \\theta } _ { h } } ( z | s )$ , horizon $H$ , learning rate $\\alpha$ \n2: while not done do \n3: for actor $= 1$ , 2, ..., N do \n4: Obtain trajectory with HiPPO Rollout \n5: Estimate advantages $\\hat { A } ( a _ { t ^ { \\prime } } , s _ { t ^ { \\prime } } , z _ { t } )$ and $\\bar { A } ( z _ { t } , s _ { t } )$ \n6: 7: $\\theta \\theta + \\alpha \\nabla _ { \\theta } L _ { H i P P O } ^ { C L I P } ( \\theta )$ \n8: end while ",
525
+ "bbox": [
526
+ 578,
527
+ 137,
528
+ 821,
529
+ 309
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "efficiency (Kakade, 2002). Trust region policy optimization (TRPO) uses a constraint on the KLdivergence between the old policy and the new policy to prevent this issue (Schulman et al., 2015). Unfortunately, hierarchical policies are generally represented by complex distributions without closed form expressions for the KL-divergence. Therefore, to improve the stability of our hierarchical policy gradient we turn towards Proximal Policy Optimization (PPO) (Schulman et al., 2017). PPO is a more flexible and compute-efficient algorithm. In a nutshell, it replaces the KL-divergence constraint with a cost function that achieves the same trust region benefits, but only requires the computation of the likelihood. Letting $\\begin{array} { r } { w _ { t } ( \\theta ) = \\frac { \\pi _ { \\theta } \\left( a _ { t } | s _ { t } \\right) } { \\pi _ { \\theta _ { o l d } } \\left( a _ { t } | s _ { t } \\right) } } \\end{array}$ , the PPO objective is: ",
536
+ "bbox": [
537
+ 173,
538
+ 338,
539
+ 826,
540
+ 458
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "equation",
546
+ "img_path": "images/a4ea783cffefe4f30f89170f2c960bc5113bd09deb55a6087f21e4398edacf82.jpg",
547
+ "text": "$$\nL ^ { C L I P } ( \\theta ) = \\mathbb { E } _ { t } \\operatorname* { m i n } \\left\\{ w _ { t } ( \\theta ) A _ { t } , \\mathrm { ~ c ~ l ~ i p } ( w _ { t } ( \\theta ) , 1 - \\epsilon , 1 + \\epsilon ) A _ { t } \\right\\}\n$$",
548
+ "text_format": "latex",
549
+ "bbox": [
550
+ 287,
551
+ 470,
552
+ 709,
553
+ 491
554
+ ],
555
+ "page_idx": 4
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "We can adapt our approximated hierarchical policy gradient with the same approach by letting $\\begin{array} { r } { w _ { h , k p } ( \\theta ) \\ = \\ \\frac { \\pi _ { \\theta _ { h } } ( z _ { k p } | s _ { k p } ) } { \\pi _ { \\theta _ { h , o l d } } ( z _ { k p } | s _ { k p } ) } } \\end{array}$ and $\\begin{array} { r } { w _ { l , t } ( \\theta ) = \\frac { \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) } { \\pi _ { \\theta _ { l , o l d } } ( a _ { t } | s _ { t } , z _ { k p } ) } } \\end{array}$ , and using the super-index clip to denote the clipped objective version, we obtain the new surrogate objective: ",
560
+ "bbox": [
561
+ 174,
562
+ 497,
563
+ 825,
564
+ 549
565
+ ],
566
+ "page_idx": 4
567
+ },
568
+ {
569
+ "type": "equation",
570
+ "img_path": "images/d289e3c67898d45d0d1073e28454ecb3f38aafc2eaf3e9232db60a11898a18e9.jpg",
571
+ "text": "$$\n\\begin{array} { c } { { { \\displaystyle { \\cal L } _ { H i P P O } ^ { C L I P } } ( \\theta ) = \\mathbb { E } _ { \\tau } \\Big [ \\displaystyle { \\sum _ { k = 0 } ^ { H / p } \\operatorname* { m i n } \\left\\{ w _ { h , k p } ( \\theta ) A ( s _ { k p } , z _ { k p } ) , w _ { h , k p } ^ { \\mathrm { c l i p } } ( \\theta ) A ( s _ { k p } , z _ { k p } ) \\right\\} } \\qquad } } \\\\ { { + \\displaystyle { \\sum _ { t = 0 } ^ { H } \\operatorname* { m i n } \\left\\{ w _ { l , t } ( \\theta ) A ( s _ { t } , a _ { t } , z _ { k p } ) , w _ { l , t } ^ { \\mathrm { c l i p } } ( \\theta ) A ( s _ { t } , a _ { t } , z _ { k p } ) \\right\\} } \\Big ] } } \\end{array}\n$$",
572
+ "text_format": "latex",
573
+ "bbox": [
574
+ 241,
575
+ 551,
576
+ 754,
577
+ 642
578
+ ],
579
+ "page_idx": 4
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "We call this algorithm Hierarchical Proximal Policy Optimization (HiPPO). Next, we introduce a critical additions: a switching of the time-commitment between skills. ",
584
+ "bbox": [
585
+ 173,
586
+ 648,
587
+ 823,
588
+ 678
589
+ ],
590
+ "page_idx": 4
591
+ },
592
+ {
593
+ "type": "text",
594
+ "text": "4.4 VARYING TIME-COMMITMENT ",
595
+ "text_level": 1,
596
+ "bbox": [
597
+ 176,
598
+ 694,
599
+ 426,
600
+ 708
601
+ ],
602
+ "page_idx": 4
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "Most hierarchical methods either consider a fixed time-commitment to the lower level skills (Florensa et al., 2017a; Frans et al., 2018), or implement the complex options framework (Precup, 2000; Bacon et al., 2017). In this work we propose an in-between, where the time-commitment to the skills is a random variable sampled from a fixed distribution Categorical $( T _ { \\mathrm { m i n } } , T _ { \\mathrm { m a x } } )$ just before the manager takes a decision. This modification does not hinder final performance, and we show it improves zero-shot adaptation to a new task. This approach to sampling rollouts is detailed in Algorithm 1. The full algorithm is detailed in Algorithm 2. ",
607
+ "bbox": [
608
+ 173,
609
+ 719,
610
+ 825,
611
+ 819
612
+ ],
613
+ "page_idx": 4
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "5 EXPERIMENTS ",
618
+ "text_level": 1,
619
+ "bbox": [
620
+ 174,
621
+ 837,
622
+ 326,
623
+ 853
624
+ ],
625
+ "page_idx": 4
626
+ },
627
+ {
628
+ "type": "text",
629
+ "text": "We designed our experiments to answer the following questions: 1) How does HiPPO compare against a flat policy when learning from scratch? 2) Does it lead to policies more robust to environment changes? 3) How well does it adapt already learned skills? and 4) Does our skill diversity assumption hold in practice? ",
630
+ "bbox": [
631
+ 174,
632
+ 867,
633
+ 825,
634
+ 924
635
+ ],
636
+ "page_idx": 4
637
+ },
638
+ {
639
+ "type": "image",
640
+ "img_path": "images/698cac3c55e1a99afc5dbc3e8a69b575139080c5784a5c1282ae08d45458591a.jpg",
641
+ "image_caption": [
642
+ "Figure 2: Environments used to evaluate the performance of our method. Every episode has a different configuration: wall heights for (a)-(b), ball positions for (c)-(d) "
643
+ ],
644
+ "image_footnote": [],
645
+ "bbox": [
646
+ 199,
647
+ 99,
648
+ 802,
649
+ 219
650
+ ],
651
+ "page_idx": 5
652
+ },
653
+ {
654
+ "type": "image",
655
+ "img_path": "images/6630bd4ec4adf24f9991b32a9c529630605655bc9ee9e48e1f0804e13fee17ac.jpg",
656
+ "image_caption": [
657
+ "Figure 3: Analysis of different time-commitment strategies on learning from scratch. "
658
+ ],
659
+ "image_footnote": [],
660
+ "bbox": [
661
+ 181,
662
+ 266,
663
+ 820,
664
+ 391
665
+ ],
666
+ "page_idx": 5
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "5.1 TASKS ",
671
+ "text_level": 1,
672
+ "bbox": [
673
+ 174,
674
+ 434,
675
+ 261,
676
+ 448
677
+ ],
678
+ "page_idx": 5
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "We evaluate our approach on a variety of robotic locomotion and navigation tasks. The Block environments, depicted in Fig. 2a-2b, have walls of random heights at regular intervals, and the objective is to learn a gait for the Hopper and Half-Cheetah robots to jump over them. The agents observe the height of the wall ahead and their proprioceptive information (joint positions and velocities), receiving a reward of $+ 1$ for each wall cleared. The Gather environments, described by Duan et al. (2016), require agents to collect apples (green balls, $+ 1$ reward) while avoiding bombs (red balls, -1 reward). The only available perception beyond proprioception is through a LIDAR-type sensor indicating at what distance are the objects in different directions, and their type, as depicted in the bottom left corner of Fig. 2c-2d. This is challenging hierarchical task with sparse rewards that requires simultaneously learning perception, locomotion, and higher-level planning capabilities. We use the Snake and Ant robots in Gather. Details for all robotic agents are provided in Appendix B. ",
683
+ "bbox": [
684
+ 173,
685
+ 460,
686
+ 825,
687
+ 613
688
+ ],
689
+ "page_idx": 5
690
+ },
691
+ {
692
+ "type": "text",
693
+ "text": "5.2 LEARNING FROM SCRATCH AND TIME-COMMITMENT ",
694
+ "text_level": 1,
695
+ "bbox": [
696
+ 174,
697
+ 631,
698
+ 584,
699
+ 645
700
+ ],
701
+ "page_idx": 5
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "In this section, we study the benefit of using our HiPPO algorithm instead of standard PPO on a flat policy (Schulman et al., 2017). The results, reported in Figure 3, demonstrate that training from scratch with HiPPO leads to faster learning and better performance than flat PPO. Furthermore, we show that the benefit of HiPPO does not just come from having temporally correlated exploration: PPO with action repeat converges at a lower performance than our method. HiPPO leverages the time-commitment more efficiently, as suggested by the poor performance of the ablation where we set $p = 1$ , when the manager takes an action every environment step as well. Finally, Figure 4 shows the effectiveness of using the presented skill-dependent baseline. ",
706
+ "bbox": [
707
+ 174,
708
+ 656,
709
+ 825,
710
+ 768
711
+ ],
712
+ "page_idx": 5
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "5.3 COMPARISON TO OTHER METHODS ",
717
+ "text_level": 1,
718
+ "bbox": [
719
+ 176,
720
+ 786,
721
+ 460,
722
+ 800
723
+ ],
724
+ "page_idx": 5
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "We compare HiPPO to current state-of-the-art hierarchical methods. First, we evaluate HIRO (Nachum et al., 2018), an off-policy RL method based on training a goal-reaching lower level policy. Fig. 5 shows that HIRO achieves poor performance on our tasks. As further detailed in Appendix D, this algorithm is sensitive to access to ground-truth information, like the exact $( x , y )$ position of the robot in Gather. In contrast, our method is able to perform well directly from the raw sensory inputs described in Section 5.1. We evaluate Option-Critic (Bacon et al., 2017), a variant of the options framework (Sutton et al., 1999) that can be used for continuous action-spaces. It fails to learn, and we hypothesize that their algorithm provides less time-correlated exploration and learns less diverse skills. We also compare against MLSH (Frans et al., 2018), which repeatedly samples new environment configurations to learn primitive skills. We take these hyperparameters from their Ant Twowalk experiment: resetting the environment configuration every 60 iterations, a warmup period of 20 during which only the manager is trained, and a joint training period of 40 during which both manager and skills are trained. Our results show that such a training scheme does not provide any benefits. Finally, we provide a comparison to a direct application of our Hierarchical Vanilla Policy Gradient (HierVPG) algorithm, and we see that the algorithm is unstable without PPO’s trust-region-like technique. ",
729
+ "bbox": [
730
+ 174,
731
+ 811,
732
+ 825,
733
+ 924
734
+ ],
735
+ "page_idx": 5
736
+ },
737
+ {
738
+ "type": "image",
739
+ "img_path": "images/104a04a5797b71d11aafffde40d1191b91b356cc7b5c8611ac4e6b31f18c96b0.jpg",
740
+ "image_caption": [
741
+ "Figure 4: Using a skill-conditioned baseline, as defined in Section 4.2, generally improves performance of HiPPO when learning from scratch. "
742
+ ],
743
+ "image_footnote": [],
744
+ "bbox": [
745
+ 183,
746
+ 90,
747
+ 821,
748
+ 212
749
+ ],
750
+ "page_idx": 6
751
+ },
752
+ {
753
+ "type": "image",
754
+ "img_path": "images/09aff31033112d9cd52a822e7e3b242507e89a86d92aef55e0b80822e72c1caa.jpg",
755
+ "image_caption": [
756
+ "Figure 5: Comparison of HiPPO and HierVPG to prior hierarchical methods on learning from scratch. "
757
+ ],
758
+ "image_footnote": [],
759
+ "bbox": [
760
+ 183,
761
+ 251,
762
+ 823,
763
+ 372
764
+ ],
765
+ "page_idx": 6
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "",
770
+ "bbox": [
771
+ 173,
772
+ 401,
773
+ 825,
774
+ 513
775
+ ],
776
+ "page_idx": 6
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "5.4 ROBUSTNESS TO DYNAMICS PERTURBATIONS ",
781
+ "text_level": 1,
782
+ "bbox": [
783
+ 174,
784
+ 531,
785
+ 532,
786
+ 545
787
+ ],
788
+ "page_idx": 6
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "We investigate the robustness of HiPPO to changes in the dynamics of the environment. We perform several modifications to the base Snake Gather and Ant Gather environments. One at a time, we change the body mass, dampening of the joints, body inertia, and friction characteristics of both robots. The results, presented in Table 1, show that HiPPO with randomized period Categorical $( [ T _ { \\operatorname* { m i n } } , T _ { \\operatorname* { m a x } } ] )$ is able to better handle these dynamics changes. In terms of the drop in policy performance between the training environment and test environment, it outperforms HiPPO with fixed period on 6 out of 8 related tasks. These results suggest that the randomized period exposes the policy to a wide range of scenarios, which makes it easier to adapt when the environment changes. ",
793
+ "bbox": [
794
+ 173,
795
+ 556,
796
+ 826,
797
+ 669
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "table",
803
+ "img_path": "images/4aa529dfea3339771499e88ba42aa16a8b23eecda41ebb950b6f99f8dc6cbc67.jpg",
804
+ "table_caption": [],
805
+ "table_footnote": [
806
+ "Table 1: Zero-shot transfer performance. The final return in the initial environment is shown, as well as the average return over 25 rollouts in each new modified environment. "
807
+ ],
808
+ "table_body": "<table><tr><td>Gather</td><td>Algorithm</td><td>Initial</td><td>Mass</td><td>Dampening</td><td>Inertia</td><td>Friction</td></tr><tr><td rowspan=\"3\">Snake</td><td>Flat PPO</td><td>2.72</td><td>3.16 (+16%)</td><td>2.75 (+1%)</td><td>2.11 (-22%)</td><td>2.75 (+1%)</td></tr><tr><td>HiPPO,p = 10</td><td>4.38</td><td>3.28 (-25%)</td><td>3.27 (-25%)</td><td>3.03 (-31%)</td><td>3.27 (-25%)</td></tr><tr><td>HiPPO random p</td><td>5.11</td><td>4.09 (-20%)</td><td>4.03 (-21%)</td><td>3.21 (-37%)</td><td>4.03 (-21%)</td></tr><tr><td rowspan=\"3\">Ant</td><td>Flat PPO</td><td>2.25</td><td>2.53 (+12%)</td><td>2.13 (-5%)</td><td>2.36 (+5%)</td><td>1.96 (-13%)</td></tr><tr><td>HiPPO,p = 10</td><td>3.84</td><td>3.31 (-14%)</td><td>3.37 (-12%)</td><td>2.88 (-25%)</td><td>3.07 (-20%)</td></tr><tr><td>HiPPO random p</td><td>3.22</td><td>3.37 (+5%)</td><td>2.57 (-20%)</td><td>3.36 (+4%)</td><td>2.84 (-12%)</td></tr></table>",
809
+ "bbox": [
810
+ 173,
811
+ 683,
812
+ 839,
813
+ 791
814
+ ],
815
+ "page_idx": 6
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "5.5 ADAPTATION OF PRE-TRAINED SKILLS ",
820
+ "text_level": 1,
821
+ "bbox": [
822
+ 176,
823
+ 854,
824
+ 486,
825
+ 869
826
+ ],
827
+ "page_idx": 6
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "For the Block task, we use DIAYN (Eysenbach et al., 2019) to train 6 differentiated subpolicies in an environment without any walls. Here, we see if these diverse skills can improve performance on a downstream task that’s out of the training distribution. For Gather, we take 6 pretrained subpolicies encoded by a Stochastic Neural Network (Tang & Salakhutdinov, 2013) that was trained in a diversity-promoting environment (Florensa et al., 2017a). We fine-tune them with HiPPO on the Gather environment, but with an extra penalty on the velocity of the Center of Mass. This can be understood as a preference for cautious behavior. This requires adjustment of the sub-policies, which were trained with a proxy reward encouraging them to move as far as possible (and hence quickly). Fig. 6 shows that using HiPPO to simultaneously train a manager and fine-tune the skills achieves higher final performance than fixing the sub-policies and only training a manager with PPO. The two initially learn at the same rate, but HiPPO’s ability to adjust to the new dynamics allows it to reach a higher final performance. Fig. 6 also shows that HiPPO can fine-tune the same given skills better than Option-Critic (Bacon et al., 2017), MLSH (Frans et al., 2018), and HIRO (Nachum et al., 2018). ",
832
+ "bbox": [
833
+ 176,
834
+ 882,
835
+ 825,
836
+ 924
837
+ ],
838
+ "page_idx": 6
839
+ },
840
+ {
841
+ "type": "image",
842
+ "img_path": "images/70943baaa443c6192a1e00d29a7bad11943570b86e84a71b5f3b01009b4b31d7.jpg",
843
+ "image_caption": [
844
+ "Figure 6: Benefit of adapting some given skills when the preferences of the environment are different from those of the environment where the skills were originally trained. Adapting skills with HiPPO has better learning performance than leaving the skills fixed or learning from scratch. "
845
+ ],
846
+ "image_footnote": [],
847
+ "bbox": [
848
+ 178,
849
+ 98,
850
+ 823,
851
+ 218
852
+ ],
853
+ "page_idx": 7
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "",
858
+ "bbox": [
859
+ 173,
860
+ 284,
861
+ 825,
862
+ 422
863
+ ],
864
+ "page_idx": 7
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "5.6 SKILL DIVERSITY ASSUMPTION ",
869
+ "text_level": 1,
870
+ "bbox": [
871
+ 176,
872
+ 445,
873
+ 436,
874
+ 460
875
+ ],
876
+ "page_idx": 7
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "In Lemma 1, we derived a more efficient and numerically stable gradient by assuming that the sub-policies are diverse. In this section, we empirically test the validity of our assumption and the quality of our approximation. We run the HiPPO algorithm on Ant Gather and Snake Gather both from scratch and with given pretrained skills, as done in the previous section. In Table 2, we report the average maximum probability under other sub-policies, corresponding to $\\epsilon$ from the assumption. In all settings, this is on the order of magnitude of 0.1. Therefore, under the $p \\approx 1 0$ that we use in our experiments, the term we neglect has a factor $\\epsilon ^ { p - 1 } = 1 0 ^ { - 1 0 }$ . It is not surprising then that the average cosine similarity between the full gradient and our approximation is almost 1, as reported in Table 2. ",
881
+ "bbox": [
882
+ 173,
883
+ 474,
884
+ 825,
885
+ 587
886
+ ],
887
+ "page_idx": 7
888
+ },
889
+ {
890
+ "type": "table",
891
+ "img_path": "images/4d67f6dc4e5ab93ac4dd7aa6cd52ca18a1f5d02786d3e925c40e6246048ce4bd.jpg",
892
+ "table_caption": [],
893
+ "table_footnote": [],
894
+ "table_body": "<table><tr><td>Gather</td><td>Algorithm</td><td>Cosine Sim.</td><td>maxz&#x27;+zkp T0((at|st,2&#x27;)</td><td>π0(at|st,2kp)</td></tr><tr><td rowspan=\"2\">Snake</td><td>HiPPO on given skills</td><td>0.98±0.01</td><td>0.09± 0.04</td><td>0.44 ± 0.03</td></tr><tr><td>HiPPO on random skills</td><td>0.97 ± 0.03</td><td>0.12 ± 0.03</td><td>0.32 ± 0.04</td></tr><tr><td rowspan=\"2\">Ant</td><td>HiPPO on given skills</td><td>0.96±0.04</td><td>0.11 ± 0.05</td><td>0.40±0.08</td></tr><tr><td>HiPPO on random skills</td><td>0.94 ± 0.03</td><td>0.13 ± 0.05</td><td>0.31 ± 0.09</td></tr></table>",
895
+ "bbox": [
896
+ 174,
897
+ 604,
898
+ 823,
899
+ 685
900
+ ],
901
+ "page_idx": 7
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "Table 2: Empirical evaluation of Lemma 1. In the middle and right columns, we evaluate the quality of our assumption by computing the largest probability of a certain action under other skills (\u000f), and the action probability under the actual latent. We also report the cosine similarity between our approximate gradient and the exact gradient from Eq. 3. The mean and standard deviation of these values are computed over the full batch collected at iteration 10. ",
906
+ "bbox": [
907
+ 173,
908
+ 694,
909
+ 825,
910
+ 763
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "6 CONCLUSIONS AND FUTURE WORK ",
917
+ "text_level": 1,
918
+ "bbox": [
919
+ 174,
920
+ 791,
921
+ 504,
922
+ 808
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "In this paper, we examined how to effectively adapt temporal hierarchies. We began by deriving a hierarchical policy gradient and its approximation. We then proposed a new method, HiPPO, that can stably train multiple layers of a hierarchy jointly. The adaptation experiments suggest that we can optimize pretrained skills for downstream environments, and learn emergent skills without any unsupervised pre-training. We also demonstrate that HiPPO with randomized period can learn from scratch on sparse-reward and long time horizon tasks, while outperforming non-hierarchical methods on zero-shot transfer. ",
929
+ "bbox": [
930
+ 173,
931
+ 825,
932
+ 825,
933
+ 924
934
+ ],
935
+ "page_idx": 7
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "REFERENCES ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 176,
943
+ 103,
944
+ 287,
945
+ 117
946
+ ],
947
+ "page_idx": 8
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Jacob Andreas, Dan Klein, and Sergey Levine. Modular Multitask Reinforcement Learning with Policy Sketches. International Conference in Machine Learning, 2017. URL http://github. com/. ",
952
+ "bbox": [
953
+ 173,
954
+ 126,
955
+ 825,
956
+ 169
957
+ ],
958
+ "page_idx": 8
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Pierre-Luc Bacon, Jean Harb, and Doina Precup. The Option-Critic Architecture. AAAI, pp. 1726– 1734, 2017. URL http://arxiv.org/abs/1609.05140. ",
963
+ "bbox": [
964
+ 173,
965
+ 179,
966
+ 825,
967
+ 208
968
+ ],
969
+ "page_idx": 8
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Christian Daniel, Herke van Hoof, Jan Peters, Gerhard Neumann, Thomas Gärtner, Mirco Nanni, Andrea Passerini, and Celine B Robardet Christian Daniel ChristianDaniel. Probabilistic inference for determining options in reinforcement learning. Machine Learning, 104(104), 2016. doi: 10.1007/s10994-016-5580-x. ",
974
+ "bbox": [
975
+ 173,
976
+ 218,
977
+ 826,
978
+ 273
979
+ ],
980
+ "page_idx": 8
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Peter Dayan and Geoffrey E. Hinton. Feudal Reinforcement Learning. Advances in Neural Information Processing Systems, pp. 271–278, 1993. ISSN 0143991X. doi: 10.1108/IR-08-2017-0143. URL http://www.cs.toronto.edu/\\~fritz/absps/dh93.pdf. ",
985
+ "bbox": [
986
+ 173,
987
+ 285,
988
+ 826,
989
+ 329
990
+ ],
991
+ "page_idx": 8
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Yan Duan, Xi Chen, John Schulman, and Pieter Abbeel. Benchmarking Deep Reinforcement Learning for Continuous Control. International Conference in Machine Learning, 2016. URL http://arxiv.org/abs/1604.06778. ",
996
+ "bbox": [
997
+ 176,
998
+ 338,
999
+ 825,
1000
+ 381
1001
+ ],
1002
+ "page_idx": 8
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is All You Need: Learning Skills without a Reward Function. International Conference in Learning Representations, 2019. URL http://arxiv.org/abs/1802.06070. ",
1007
+ "bbox": [
1008
+ 174,
1009
+ 390,
1010
+ 825,
1011
+ 434
1012
+ ],
1013
+ "page_idx": 8
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "Carlos Florensa, Yan Duan, and Pieter Abbeel. Stochastic Neural Networks for Hierarchical Reinforcement Learning. International Conference in Learning Representations, pp. 1–17, 2017a. ISSN 14779129. doi: 10.1002/rcm.765. URL http://arxiv.org/abs/1704.03012. ",
1018
+ "bbox": [
1019
+ 174,
1020
+ 443,
1021
+ 826,
1022
+ 487
1023
+ ],
1024
+ "page_idx": 8
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Carlos Florensa, David Held, Markus Wulfmeier, Michael Zhang, and Pieter Abbeel. Reverse Curriculum Generation for Reinforcement Learning. Conference on Robot Learning, pp. 1–16, 2017b. ISSN 1938-7228. doi: 10.1080/00908319208908727. URL http://arxiv.org/ abs/1707.05300. ",
1029
+ "bbox": [
1030
+ 173,
1031
+ 496,
1032
+ 826,
1033
+ 554
1034
+ ],
1035
+ "page_idx": 8
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "Carlos Florensa, Jonas Degrave, Nicolas Heess, Jost Tobias Springenberg, and Martin Riedmiller. Self-supervised Learning of Image Embedding for Continuous Control. In Workshop on Inference to Control at NeurIPS, 2018. URL http://arxiv.org/abs/1901.00943. ",
1040
+ "bbox": [
1041
+ 174,
1042
+ 564,
1043
+ 823,
1044
+ 607
1045
+ ],
1046
+ "page_idx": 8
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Kevin Frans, Jonathan Ho, Xi Chen, Pieter Abbeel, and John Schulman. Meta Learning Shared Hierarchies. International Conference in Learning Representations, pp. 1–11, 2018. ISSN 14639076. doi: 10.1039/b203755f. URL http://arxiv.org/abs/1710.09767. ",
1051
+ "bbox": [
1052
+ 176,
1053
+ 616,
1054
+ 825,
1055
+ 660
1056
+ ],
1057
+ "page_idx": 8
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Mohammad Ghavamzadeh and Sridhar Mahadevan. Hierarchical Policy Gradient Algorithms. International Conference in Machine Learning, 2003. URL http://chercheurs.lille. inria.fr/\\~ghavamza/my_website/Publications_files/icml03.pdf. ",
1062
+ "bbox": [
1063
+ 174,
1064
+ 669,
1065
+ 828,
1066
+ 712
1067
+ ],
1068
+ "page_idx": 8
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "Tuomas Haarnoja, Kristian Hartikainen, Pieter Abbeel, and Sergey Levine. Latent Space Policies for Hierarchical Reinforcement Learning. Internation Conference in Machine Learning, 2018. URL http://arxiv.org/abs/1804.02808. ",
1073
+ "bbox": [
1074
+ 173,
1075
+ 722,
1076
+ 826,
1077
+ 765
1078
+ ],
1079
+ "page_idx": 8
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Jean Harb, Pierre-Luc Bacon, Martin Klissarov, and Doina Precup. When Waiting is not an Option : Learning Options with a Deliberation Cost. AAAI, 9 2017. URL http://arxiv.org/abs/ 1709.04571. ",
1084
+ "bbox": [
1085
+ 173,
1086
+ 775,
1087
+ 825,
1088
+ 818
1089
+ ],
1090
+ "page_idx": 8
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Karol Hausman, Jost Tobias Springenberg, Ziyu Wang, Nicolas Heess, and Martin Riedmiller. Learning an Embedding Space for Transferable Robot Skills. International Conference in Learning Representations, pp. 1–16, 2018. ",
1095
+ "bbox": [
1096
+ 178,
1097
+ 828,
1098
+ 825,
1099
+ 871
1100
+ ],
1101
+ "page_idx": 8
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Nicolas Heess, Greg Wayne, Yuval Tassa, Timothy Lillicrap, Martin Riedmiller, David Silver, and Google Deepmind. Learning and Transfer of Modulated Locomotor Controllers. 2016. URL https://arxiv.org/abs/1610.05182. ",
1106
+ "bbox": [
1107
+ 174,
1108
+ 882,
1109
+ 825,
1110
+ 924
1111
+ ],
1112
+ "page_idx": 8
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Nicolas Heess, Dhruva TB, Srinivasan Sriram, Jay Lemmon, Josh Merel, Greg Wayne, Yuval Tassa, Tom Erez, Ziyu Wang, S. M. Ali Eslami, Martin Riedmiller, and David Silver. Emergence of Locomotion Behaviours in Rich Environments. 7 2017. URL http://arxiv.org/abs/ 1707.02286. ",
1117
+ "bbox": [
1118
+ 174,
1119
+ 103,
1120
+ 826,
1121
+ 159
1122
+ ],
1123
+ "page_idx": 9
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Sham Kakade. A Natural Policy Gradient. Advances in Neural Information Processing Systems, 2002. ",
1128
+ "bbox": [
1129
+ 174,
1130
+ 169,
1131
+ 823,
1132
+ 198
1133
+ ],
1134
+ "page_idx": 9
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "Tejas D Kulkarni, Karthik R Narasimhan, Ardavan Saeedi CSAIL, and Joshua B Tenenbaum BCS. Hierarchical Deep Reinforcement Learning: Integrating Temporal Abstraction and Intrinsic Motivation. Advances in Neural Information Processing Systems, pp. 1–13, 2016. ",
1139
+ "bbox": [
1140
+ 174,
1141
+ 207,
1142
+ 823,
1143
+ 251
1144
+ ],
1145
+ "page_idx": 9
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Hoang M Le, Nan Jiang, Alekh Agarwal, Miroslav Dud, and Yue Hal. Hierarchical Imitation and Reinforcement Learning. International Conference in Machine Learning, 2018. ",
1150
+ "bbox": [
1151
+ 174,
1152
+ 258,
1153
+ 821,
1154
+ 289
1155
+ ],
1156
+ "page_idx": 9
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Andrew Levy, Robert Platt, and Kate Saenko. Hierarchical Actor-Critic. arXiv:1712.00948, 12 2017. URL http://arxiv.org/abs/1712.00948. ",
1161
+ "bbox": [
1162
+ 174,
1163
+ 297,
1164
+ 823,
1165
+ 327
1166
+ ],
1167
+ "page_idx": 9
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Andrew Levy, Robert Platt, and Kate Saenko. Hierarchical Reinforcement Learning with Hindsight. International Conference on Learning Representations, 5 2019. URL http://arxiv.org/ abs/1805.08180. ",
1172
+ "bbox": [
1173
+ 174,
1174
+ 335,
1175
+ 826,
1176
+ 378
1177
+ ],
1178
+ "page_idx": 9
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Josh Merel, Arun Ahuja, Vu Pham, Saran Tunyasuvunakool, Siqi Liu, Dhruva Tirumala, Nicolas Heess, and Greg Wayne. Hierarchical visuomotor control of humanoids. International Conference in Learning Representations, 2019. URL http://arxiv.org/abs/1811.09656. ",
1183
+ "bbox": [
1184
+ 173,
1185
+ 388,
1186
+ 823,
1187
+ 431
1188
+ ],
1189
+ "page_idx": 9
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "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. ",
1194
+ "bbox": [
1195
+ 174,
1196
+ 439,
1197
+ 826,
1198
+ 511
1199
+ ],
1200
+ "page_idx": 9
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "Ofir Nachum, Honglak Lee, Shane Gu, and Sergey Levine. Data-Efficient Hierarchical Reinforcement Learning. Advances in Neural Information Processing Systems, 2018. ",
1205
+ "bbox": [
1206
+ 173,
1207
+ 520,
1208
+ 821,
1209
+ 549
1210
+ ],
1211
+ "page_idx": 9
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "Ashvin Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual Reinforcement Learning with Imagined Goals. Adavances in Neural Information Processing Systems, 2018. ",
1216
+ "bbox": [
1217
+ 173,
1218
+ 558,
1219
+ 825,
1220
+ 601
1221
+ ],
1222
+ "page_idx": 9
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "OpenAI, Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, and Alex Ray. Learning Dexterous In-Hand Manipulation. pp. 1–27, 2018. ",
1227
+ "bbox": [
1228
+ 173,
1229
+ 609,
1230
+ 826,
1231
+ 654
1232
+ ],
1233
+ "page_idx": 9
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Xue Bin Peng, Michael Chang, Grace Zhang, Pieter Abbeel, and Sergey Levine. MCP: Learning Composable Hierarchical Control with Multiplicative Compositional Policies. 5 2019. URL http://arxiv.org/abs/1905.09808. ",
1238
+ "bbox": [
1239
+ 173,
1240
+ 662,
1241
+ 825,
1242
+ 705
1243
+ ],
1244
+ "page_idx": 9
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "Jan Peters and Stefan Schaal. Natural Actor-Critic. Neurocomputing, 71(7-9):1180–1190, 2008. ISSN 09252312. doi: 10.1016/j.neucom.2007.11.026. ",
1249
+ "bbox": [
1250
+ 169,
1251
+ 714,
1252
+ 825,
1253
+ 743
1254
+ ],
1255
+ "page_idx": 9
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Doina Precup. Temporal abstraction in reinforcement learning, 1 2000. URL https:// scholarworks.umass.edu/dissertations/AAI9978540. ",
1260
+ "bbox": [
1261
+ 171,
1262
+ 752,
1263
+ 825,
1264
+ 781
1265
+ ],
1266
+ "page_idx": 9
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "Pravesh Ranchod, Benjamin Rosman, and George Konidaris. Nonparametric Bayesian Reward Segmentation for Skill Discovery Using Inverse Reinforcement Learning. 2015. ISSN 21530866. doi: 10.1109/IROS.2015.7353414. ",
1271
+ "bbox": [
1272
+ 173,
1273
+ 791,
1274
+ 826,
1275
+ 833
1276
+ ],
1277
+ "page_idx": 9
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "John Schulman, Philipp Moritz, Michael Jordan, and Pieter Abbeel. Trust Region Policy Optimization. International Conference in Machine Learning, 2015. ",
1282
+ "bbox": [
1283
+ 169,
1284
+ 843,
1285
+ 825,
1286
+ 872
1287
+ ],
1288
+ "page_idx": 9
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "John Schulman, Philipp Moritz, Sergey Levine, Michael I Jordan, and Pieter Abbeel. HIGHDIMENSIONAL CONTINUOUS CONTROL USING GENERALIZED ADVANTAGE ESTIMATION. International Conference in Learning Representations, pp. 1–14, 2016. ",
1293
+ "bbox": [
1294
+ 174,
1295
+ 882,
1296
+ 826,
1297
+ 924
1298
+ ],
1299
+ "page_idx": 9
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal Policy Optimization Algorithms. 2017. URL https://openai-public.s3-us-west-2. amazonaws.com/blog/2017-07/ppo/ppo-arxiv.pdf. ",
1304
+ "bbox": [
1305
+ 174,
1306
+ 103,
1307
+ 825,
1308
+ 147
1309
+ ],
1310
+ "page_idx": 10
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "Arjun Sharma, Mohit Sharma, Nicholas Rhinehart, and Kris M Kitani. Directed-Info GAIL: Learning Hierarchical Policies from Unsegmented Demonstrations using Directed Information. International Conference in Learning Representations, 2018. URL http://arxiv.org/abs/1810. 01266. ",
1315
+ "bbox": [
1316
+ 174,
1317
+ 155,
1318
+ 828,
1319
+ 210
1320
+ ],
1321
+ "page_idx": 10
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "Tianmin Shu, Caiming Xiong, and Richard Socher. Hierarchical and interpretable skill acquisition in multi-task reinforcement Learning. International Conference in Learning Representations, 3:1–13, 2018. doi: 10.1109/MWC.2016.7553036. ",
1326
+ "bbox": [
1327
+ 174,
1328
+ 219,
1329
+ 826,
1330
+ 262
1331
+ ],
1332
+ "page_idx": 10
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "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, 10 2017. ISSN 14764687. doi: 10.1038/nature24270. URL http://arxiv.org/abs/1610.00633. ",
1337
+ "bbox": [
1338
+ 173,
1339
+ 272,
1340
+ 826,
1341
+ 343
1342
+ ],
1343
+ "page_idx": 10
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "Matthew J. A. Smith, Herke van Hoof, and Joelle Pineau. An inference-based policy gradient method for learning options, 2 2018. URL https://openreview.net/forum?id $=$ rJIgf7bAZ. ",
1348
+ "bbox": [
1349
+ 171,
1350
+ 351,
1351
+ 825,
1352
+ 381
1353
+ ],
1354
+ "page_idx": 10
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "Sungryull Sohn, Junhyuk Oh, and Honglak Lee. Multitask Reinforcement Learning for Zero-shot Generalization with Subtask Dependencies. Advances in Neural Information Processing Systems, 2018. ",
1359
+ "bbox": [
1360
+ 174,
1361
+ 388,
1362
+ 825,
1363
+ 431
1364
+ ],
1365
+ "page_idx": 10
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Richard S Sutton, Doina Precup, and Satinder Singh. Between MDPs and semi-MDPs: A framework for temporal abstraction in reinforcement learning. Artificial Intelligence, 112: 181–211, 1999. URL http://www-anw.cs.umass.edu/\\~barto/courses/cs687/ Sutton-Precup-Singh-AIJ99.pdf. ",
1370
+ "bbox": [
1371
+ 174,
1372
+ 440,
1373
+ 826,
1374
+ 497
1375
+ ],
1376
+ "page_idx": 10
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "Yichuan Tang and Ruslan Salakhutdinov. Learning Stochastic Feedforward Neural Networks. Advances in Neural Information Processing Systems, 2:530–538, 2013. doi: 10.1.1.63.1777. ",
1381
+ "bbox": [
1382
+ 171,
1383
+ 506,
1384
+ 825,
1385
+ 535
1386
+ ],
1387
+ "page_idx": 10
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "Emanuel Todorov, Tom Erez, and Yuval Tassa. MuJoCo $:$ A physics engine for model-based control. pp. 5026–5033, 2012. ",
1392
+ "bbox": [
1393
+ 171,
1394
+ 542,
1395
+ 825,
1396
+ 571
1397
+ ],
1398
+ "page_idx": 10
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "George Tucker, Surya Bhupatiraju, Shixiang Gu, Richard E Turner, Zoubin Ghahramani, and Sergey Levine. The Mirage of Action-Dependent Baselines in Reinforcement Learning. Internation Conference in Machine Learning, 2018. URL http://arxiv.org/abs/1802.10031. ",
1403
+ "bbox": [
1404
+ 174,
1405
+ 580,
1406
+ 826,
1407
+ 625
1408
+ ],
1409
+ "page_idx": 10
1410
+ },
1411
+ {
1412
+ "type": "text",
1413
+ "text": "Alexander Vezhnevets, Volodymyr Mnih, John Agapiou, Simon Osindero, Alex Graves, Oriol Vinyals, and Koray Kavukcuoglu Google DeepMind. Strategic Attentive Writer for Learning Macro-Actions. Advances in Neural Information Processing Systems, 2016. ",
1414
+ "bbox": [
1415
+ 174,
1416
+ 632,
1417
+ 826,
1418
+ 676
1419
+ ],
1420
+ "page_idx": 10
1421
+ },
1422
+ {
1423
+ "type": "text",
1424
+ "text": "Alexander Sasha Vezhnevets, Simon Osindero, Tom Schaul, Nicolas Heess, Max Jaderberg, David Silver, and Koray Kavukcuoglu. Feudal Networks for Hierarchical Reinforcement Learning. International Conference in Machine Learning, 2017. URL https://arxiv.org/pdf/ 1703.01161.pdf. ",
1425
+ "bbox": [
1426
+ 174,
1427
+ 684,
1428
+ 826,
1429
+ 741
1430
+ ],
1431
+ "page_idx": 10
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "Théophane Weber, Nicolas Heess, Lars Buesing, and David Silver. Credit Assignment Techniques in Stochastic Computation Graphs. 1 2019. URL http://arxiv.org/abs/1901.01761. ",
1436
+ "bbox": [
1437
+ 174,
1438
+ 750,
1439
+ 823,
1440
+ 780
1441
+ ],
1442
+ "page_idx": 10
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "Ronald J Williams. Simple Statistical Gradient-Following Algorithms for Connectionist Reinforcement Learning. Machine Learning, 8(3-4):229–256, 1992. ",
1447
+ "bbox": [
1448
+ 171,
1449
+ 787,
1450
+ 825,
1451
+ 816
1452
+ ],
1453
+ "page_idx": 10
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "A HYPERPARAMETERS AND ARCHITECTURES ",
1458
+ "text_level": 1,
1459
+ "bbox": [
1460
+ 174,
1461
+ 102,
1462
+ 570,
1463
+ 118
1464
+ ],
1465
+ "page_idx": 11
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "The Block environments used a horizon of 1000 and a batch size of 50,000, while Gather used a batch size of 100,000. Ant Gather has a horizon of 5000, while Snake Gather has a horizon of 8000 due to its larger size. For all experiments, both PPO and HiPPO used learning rate $3 \\times 1 0 ^ { - 3 }$ , clipping parameter $\\epsilon = 0 . 1$ , 10 gradient updates per iteration, and discount $\\gamma = 0 . 9 9 9$ . The learning rate, clipping parameter, and number of gradient updates come from the OpenAI Baselines implementation. ",
1470
+ "bbox": [
1471
+ 174,
1472
+ 137,
1473
+ 825,
1474
+ 208
1475
+ ],
1476
+ "page_idx": 11
1477
+ },
1478
+ {
1479
+ "type": "text",
1480
+ "text": "HiPPO used $n = 6$ sub-policies. HiPPO uses a manager network with 2 hidden layers of 32 units, and a skill network with 2 hidden layers of 64 units. In order to have roughly the same number of parameters for each algorithm, flat PPO uses a network with 2 hidden layers with 256 and 64 units respectively. For HiPPO with randomized period, we resample $p \\sim \\mathrm { U n i f o r m } \\{ 5 , 1 5 \\}$ every time the manager network outputs a latent, and provide the number of timesteps until the next latent selection as an input into both the manager and skill networks. The single baselines and skill-dependent baselines used a MLP with 2 hidden layers of 32 units to fit the value function. The skill-dependent baseline receives, in addition to the full observation, the active latent code and the time remaining until the next skill sampling. All runs used five random seeds. ",
1481
+ "bbox": [
1482
+ 174,
1483
+ 214,
1484
+ 825,
1485
+ 340
1486
+ ],
1487
+ "page_idx": 11
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "B ROBOT AGENT DESCRIPTION ",
1492
+ "text_level": 1,
1493
+ "bbox": [
1494
+ 176,
1495
+ 368,
1496
+ 450,
1497
+ 385
1498
+ ],
1499
+ "page_idx": 11
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "Hopper is a 3-link robot with a 14-dimensional observation space and a 3-dimensional action space. Half-Cheetah has a 20-dimensional observation space and a 6-dimensional action space. We evaluate both of these agents on a sparse block hopping task. In addition to observing their own joint angles and positions, they observe the height and length of the next wall, the $\\mathbf { X }$ -position of the next wall, and the distance to the wall from the agent. We also provide the same wall observations for the previous wall, which the agent can still interact with. ",
1504
+ "bbox": [
1505
+ 174,
1506
+ 404,
1507
+ 825,
1508
+ 488
1509
+ ],
1510
+ "page_idx": 11
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "Snake is a 5-link robot with a 17-dimensional observation space and a 4-dimensional action space. Ant is a quadrupedal robot with a 27-dimensional observation space and a 8-dimensional action space. Both Ant and Snake can move and rotate in all directions, and Ant faces the added challenge of avoiding falling over irrecoverably. In the Gather environment, agents also receive 2 sets of 10-dimensional lidar observations, whcih correspond to separate apple and bomb observations. The observation displays the distance to the nearest apple or bomb in each $3 6 ^ { \\circ }$ bin, respectively. All environments are simulated with the physics engine MuJoCo (Todorov et al., 2012). ",
1515
+ "bbox": [
1516
+ 174,
1517
+ 494,
1518
+ 825,
1519
+ 593
1520
+ ],
1521
+ "page_idx": 11
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "C PROOFS ",
1526
+ "text_level": 1,
1527
+ "bbox": [
1528
+ 174,
1529
+ 621,
1530
+ 276,
1531
+ 637
1532
+ ],
1533
+ "page_idx": 11
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "Lemma 1. If the skills are sufficiently differentiated, then the latent variable can be treated as part of the observation to compute the gradient of the trajectory probability. Concretely, if $\\pi _ { \\boldsymbol { \\theta } _ { h } } ( z | s )$ and $\\pi _ { \\boldsymbol { \\theta } _ { l } } ( a | s , z )$ are Lipschitz in their parameters, and $0 \\overset { \\cdot } { < } \\pi _ { \\theta _ { l } } ( \\bar { a } _ { t } \\vert s _ { t } , z _ { j } ) < \\epsilon \\forall j \\neq k p$ , then ",
1538
+ "bbox": [
1539
+ 174,
1540
+ 656,
1541
+ 825,
1542
+ 700
1543
+ ],
1544
+ "page_idx": 11
1545
+ },
1546
+ {
1547
+ "type": "equation",
1548
+ "img_path": "images/8236ffd329f35ab1a4e2bbf2be468b118543ccd8771a64769daab5478937d004.jpg",
1549
+ "text": "$$\n\\nabla _ { \\theta } \\log P ( \\tau ) = \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { h } } ( z _ { k p } | s _ { k p } ) + \\sum _ { t = 1 } ^ { p } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) + \\mathcal { O } ( n H \\epsilon ^ { p - 1 } )\n$$",
1550
+ "text_format": "latex",
1551
+ "bbox": [
1552
+ 220,
1553
+ 715,
1554
+ 779,
1555
+ 760
1556
+ ],
1557
+ "page_idx": 11
1558
+ },
1559
+ {
1560
+ "type": "text",
1561
+ "text": "Proof. From the point of view of the MDP, a trajectory is a sequence $\\begin{array} { r l } { \\tau } & { { } = } \\end{array}$ $( s _ { 0 } , a _ { 0 } , s _ { 1 } , a _ { 1 } , \\ldots , a _ { H - 1 } , s _ { H } )$ . Let’s assume we use the hierarchical policy introduced above, with a higher-level policy modeled as a parameterized discrete distribution with $n$ possible outcomes $\\pi _ { \\boldsymbol { \\theta } _ { h } } ( \\bar { z } | s ) = C \\bar { a } t e g o r i c a l _ { \\boldsymbol { \\theta } _ { h } } ( n )$ . We can expand $P ( \\tau )$ into the product of policy and environment dynamics terms, with $z _ { j }$ denoting the $j$ th possible value out of the $n$ choices, ",
1562
+ "bbox": [
1563
+ 173,
1564
+ 796,
1565
+ 825,
1566
+ 867
1567
+ ],
1568
+ "page_idx": 11
1569
+ },
1570
+ {
1571
+ "type": "equation",
1572
+ "img_path": "images/4839a99401af73d6ff79c4b0652b05affe740477308089090578cf66fc05d14c.jpg",
1573
+ "text": "$$\nP ( \\tau ) = \\Bigg ( \\prod _ { k = 0 } ^ { H / p } \\Big [ \\sum _ { j = 1 } ^ { n } \\pi _ { \\theta _ { h } } ( z _ { j } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \\Big ] \\Bigg ) \\Bigg [ P ( s _ { 0 } ) \\prod _ { t = 1 } ^ { H } P ( s _ { t + 1 } | s _ { t } , a _ { t } ) \\Bigg ]\n$$",
1574
+ "text_format": "latex",
1575
+ "bbox": [
1576
+ 215,
1577
+ 882,
1578
+ 781,
1579
+ 928
1580
+ ],
1581
+ "page_idx": 11
1582
+ },
1583
+ {
1584
+ "type": "text",
1585
+ "text": "Taking the gradient of $\\log { P ( \\tau ) }$ with respect to the policy parameters $\\theta = [ \\theta _ { h } , \\theta _ { l } ]$ , the dynamics terms disappear, leaving: ",
1586
+ "bbox": [
1587
+ 171,
1588
+ 102,
1589
+ 825,
1590
+ 133
1591
+ ],
1592
+ "page_idx": 12
1593
+ },
1594
+ {
1595
+ "type": "equation",
1596
+ "img_path": "images/8f276b6f27c4dc828b0831b7c849b0d43aa95a8b015db1c03dbfa182471890c1.jpg",
1597
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle 7 _ { \\theta } \\log P ( \\tau ) = \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log \\Big ( \\sum _ { j = 1 } ^ { n } \\pi _ { \\theta _ { l } } ( z _ { j } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { s , \\theta } ( a _ { t } | s _ { t } , z _ { j } ) \\Big ) } } \\\\ { { \\displaystyle \\qquad = \\sum _ { k = 0 } ^ { H / p } \\frac { 1 } { \\sum _ { j = 1 } ^ { n } \\pi _ { \\theta _ { h } } ( z _ { j } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) } \\sum _ { j = 1 } ^ { n } \\nabla _ { \\theta } \\Big ( \\pi _ { \\theta _ { h } } ( z _ { j } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \\Big ) } } \\end{array}\n$$",
1598
+ "text_format": "latex",
1599
+ "bbox": [
1600
+ 181,
1601
+ 138,
1602
+ 839,
1603
+ 236
1604
+ ],
1605
+ "page_idx": 12
1606
+ },
1607
+ {
1608
+ "type": "text",
1609
+ "text": "The sum over possible values of $z$ prevents the logarithm from splitting the product over the $p$ -step sub-trajectories. This term is problematic, as this product quickly approaches 0 as $p$ increases, and suffers from considerable numerical instabilities. Instead, we want to approximate this sum of products by a single one of the terms, which can then be decomposed into a sum of logs. For this we study each of the terms in the sum: the gradient of a sub-trajectory probability under a specific latent $\\begin{array} { r } { \\nabla _ { \\theta } \\Big ( \\pi _ { \\theta _ { h } } ( z _ { j } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , \\bar { z } _ { j } ) \\Big ) } \\end{array}$ . Now we can use the assumption that the skills are easy to distinguish, $0 < \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) < \\epsilon \\forall j \\neq k p$ . Therefore, the probability of the sub-trajectory under a latent different than the one that was originally sampled $z _ { j } \\neq z _ { k p }$ , is upper bounded by $\\epsilon ^ { p }$ . Taking the gradient, applying the product rule, and the Lipschitz continuity of the policies, we obtain that for all $z _ { j } \\neq z _ { k p }$ , ",
1610
+ "bbox": [
1611
+ 173,
1612
+ 239,
1613
+ 826,
1614
+ 391
1615
+ ],
1616
+ "page_idx": 12
1617
+ },
1618
+ {
1619
+ "type": "equation",
1620
+ "img_path": "images/b9a34f2fdf068bcd97ef37491aa402bf723c3fe42170b8de2f627b0edde54f95.jpg",
1621
+ "text": "$$\n\\begin{array} { l l } { { \\displaystyle 7 _ { \\theta } \\Big ( \\pi _ { \\theta _ { h } } ( z _ { j } | s _ { k p } ) } } & { { \\displaystyle \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \\Big ) = \\nabla _ { \\theta } \\pi _ { \\theta _ { h } } ( z _ { j } | s _ { k p } ) } } & { { \\displaystyle \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) } + } \\\\ { { } } & { { \\displaystyle \\sum _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { h } } ( z _ { j } | s _ { k p } ) \\big ( \\nabla _ { \\theta } \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { j } ) \\big ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { l } } ( a _ { t ^ { \\prime } } | s _ { t ^ { \\prime } } ) \\Big \\} } } \\\\ { { } } & { { \\displaystyle = \\mathcal { O } ( p \\epsilon ^ { p - 1 } ) } } \\end{array}\n$$",
1622
+ "text_format": "latex",
1623
+ "bbox": [
1624
+ 181,
1625
+ 415,
1626
+ 839,
1627
+ 542
1628
+ ],
1629
+ "page_idx": 12
1630
+ },
1631
+ {
1632
+ "type": "text",
1633
+ "text": "Thus, we can across the board replace the summation over latents by the single term corresponding to the latent that was sampled at that time. ",
1634
+ "bbox": [
1635
+ 171,
1636
+ 553,
1637
+ 825,
1638
+ 582
1639
+ ],
1640
+ "page_idx": 12
1641
+ },
1642
+ {
1643
+ "type": "equation",
1644
+ "img_path": "images/ef9c9b65e495366dbe304e726544603ed27c5738be621feb6ee872f115d9e45d.jpg",
1645
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle \\zeta _ { \\theta } \\log P ( \\tau ) = \\sum _ { k = 0 } ^ { H / p } \\frac { 1 } { \\pi _ { \\theta _ { h } } ( z _ { k p } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { t } } ( a _ { t } | s _ { t } , z _ { k p } ) } \\nabla _ { \\theta } \\Big ( P ( z _ { k p } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { t } } ( a _ { t } | s _ { t } , z _ { k p } ) \\Big ) } } \\\\ { { \\displaystyle \\qquad = \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log \\Big ( \\pi _ { \\theta _ { h } } ( z _ { k p } | s _ { k p } ) \\prod _ { t = k p } ^ { ( k + 1 ) p - 1 } \\pi _ { \\theta _ { t } } ( a _ { t } | s _ { t } , z _ { k p } ) \\Big ) + \\mathcal { O } ( n H \\epsilon ^ { p - 1 } ) } } \\\\ { { \\displaystyle \\qquad = \\mathbb { E } _ { \\tau } \\bigg [ \\Big ( \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { h } } \\big ( z _ { k p } | s _ { k p } ) + \\sum _ { t = 1 } ^ { H } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { t } } ( a _ { t } | s _ { t } , z _ { k p } ) \\Big ) \\bigg ] + \\mathcal { O } ( n H \\epsilon ^ { p - 1 } ) } } \\end{array}\n$$",
1646
+ "text_format": "latex",
1647
+ "bbox": [
1648
+ 181,
1649
+ 588,
1650
+ 839,
1651
+ 732
1652
+ ],
1653
+ "page_idx": 12
1654
+ },
1655
+ {
1656
+ "type": "text",
1657
+ "text": "Interestingly, this is exactly $\\nabla _ { \\theta } P ( s _ { 0 } , z _ { 0 } , a _ { 0 } , s _ { 1 } , \\dots )$ . In other words, it’s the gradient of the probability of that trajectory, where the trajectory now includes the variables $z$ as if they were observed. ",
1658
+ "bbox": [
1659
+ 173,
1660
+ 743,
1661
+ 826,
1662
+ 773
1663
+ ],
1664
+ "page_idx": 12
1665
+ },
1666
+ {
1667
+ "type": "text",
1668
+ "text": "Lemma 2. For any functions $b _ { h } : S \\mathbb { R }$ and $b _ { l } : \\mathcal { S } \\times \\mathcal { Z } \\to \\mathbb { R }$ we have: ",
1669
+ "bbox": [
1670
+ 173,
1671
+ 810,
1672
+ 651,
1673
+ 827
1674
+ ],
1675
+ "page_idx": 12
1676
+ },
1677
+ {
1678
+ "type": "equation",
1679
+ "img_path": "images/d658fe55923c196dddf6427886448d1366293efde6af85508c2f627767c0722a.jpg",
1680
+ "text": "$$\n\\mathbb { E } _ { \\tau } [ \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log P ( z _ { k p } | s _ { k p } ) b ( s _ { k p } ) ] = 0\n$$",
1681
+ "text_format": "latex",
1682
+ "bbox": [
1683
+ 370,
1684
+ 833,
1685
+ 625,
1686
+ 878
1687
+ ],
1688
+ "page_idx": 12
1689
+ },
1690
+ {
1691
+ "type": "equation",
1692
+ "img_path": "images/93686aac62a5346e912db3a7431a869e39e9fca59f62cf53945e81803eb84c26.jpg",
1693
+ "text": "$$\n\\mathbb { E } _ { \\tau } [ \\sum _ { t = 0 } ^ { H } \\nabla _ { \\theta } \\log \\pi _ { \\theta _ { l } } ( a _ { t } | s _ { t } , z _ { k p } ) b ( s _ { t } , z _ { k p } ) ] = 0\n$$",
1694
+ "text_format": "latex",
1695
+ "bbox": [
1696
+ 351,
1697
+ 885,
1698
+ 647,
1699
+ 928
1700
+ ],
1701
+ "page_idx": 12
1702
+ },
1703
+ {
1704
+ "type": "text",
1705
+ "text": "Proof. We can use the tower property as well as the fact that the interior expression only depends on $s _ { k p }$ and $z _ { k p }$ : ",
1706
+ "bbox": [
1707
+ 169,
1708
+ 103,
1709
+ 825,
1710
+ 133
1711
+ ],
1712
+ "page_idx": 13
1713
+ },
1714
+ {
1715
+ "type": "equation",
1716
+ "img_path": "images/612e4018f601b97f6ed88be6fd0b1187923e9c922a75bbba9c27054c209db0a2.jpg",
1717
+ "text": "$$\n\\begin{array} { r l } { \\mathbb { E } _ { \\tau } [ \\displaystyle \\sum _ { k = 0 } ^ { H / p } \\nabla _ { \\theta } \\log P ( z _ { k p } | s _ { k p } ) b ( s _ { k p } ) ] = \\displaystyle \\sum _ { k = 0 } ^ { H / p } \\mathbb { E } _ { s _ { k p } , z _ { k p } } [ \\mathbb { E } _ { \\tau \\setminus s _ { k p } , z _ { k p } } [ \\nabla _ { \\theta } \\log P ( z _ { k p } | s _ { k p } ) b ( s _ { k p } ) ] } & { } \\\\ { \\displaystyle } & { ~ = \\displaystyle \\sum _ { k = 0 } ^ { H / p } \\mathbb { E } _ { s _ { k p } , z _ { k p } } [ \\nabla _ { \\theta } \\log P ( z _ { k p } | s _ { k p } ) b ( s _ { k p } ) ] } \\end{array}\n$$",
1718
+ "text_format": "latex",
1719
+ "bbox": [
1720
+ 209,
1721
+ 140,
1722
+ 787,
1723
+ 233
1724
+ ],
1725
+ "page_idx": 13
1726
+ },
1727
+ {
1728
+ "type": "text",
1729
+ "text": "Then, we can write out the definition of the expectation and undo the gradient-log trick to prove that the baseline is unbiased. ",
1730
+ "bbox": [
1731
+ 173,
1732
+ 256,
1733
+ 825,
1734
+ 285
1735
+ ],
1736
+ "page_idx": 13
1737
+ },
1738
+ {
1739
+ "type": "equation",
1740
+ "img_path": "images/1947b0d6b536b0fc78749386a818df6ba5d7a6e7fc59e264d57fb28517339a61.jpg",
1741
+ "text": "$$\n\\begin{array} { r l } { \\nabla _ { \\theta } \\log \\mathfrak { A } _ { \\theta _ { 1 } } ( \\mathfrak { L } _ { \\mathcal { F } _ { 1 } } | \\mathfrak { L } _ { \\mathcal { F } _ { 1 } } ) \\hat { \\mathfrak { H } } ( \\mathfrak { L } _ { \\mathcal { F } _ { 1 } } ) \\rVert ( \\mathfrak { L } _ { \\mathcal { F } _ { 1 } } ) } & { = \\displaystyle \\operatorname* { l i m } _ { \\le t \\le j } \\int _ { ( s _ { \\phi _ { 1 } , \\phi _ { 2 } } , \\mathfrak { L } _ { \\mathcal { F } _ { 2 } } ) \\in \\mathcal { L } _ { \\mathcal { F } _ { 1 } } } \\nabla _ { ( s _ { \\phi _ { 2 } } , \\mathfrak { L } _ { \\mathcal { F } _ { 2 } } ) \\in \\mathcal { L } _ { \\mathcal { F } _ { 1 } } } \\left. \\mathfrak { L } _ { \\mathcal { F } _ { 1 } } ( \\mathcal { L } _ { \\mathcal { F } _ { 2 } } | \\mathfrak { L } _ { \\mathcal { F } _ { 1 } } ) \\hat { \\mathfrak { H } } ( \\mathfrak { L } _ { \\mathcal { F } _ { 2 } } ) \\hat { \\mathfrak { H } } ( \\mathfrak { L } _ { \\mathcal { F } _ { 2 } } ) \\hat { \\mathfrak { H } } ( \\mathfrak { L } _ { \\mathcal { F } _ { 2 } } ) \\hat { \\mathfrak { H } } ( \\mathfrak { L } _ { \\mathcal { F } _ { 2 } } ) \\right. } \\\\ & = \\displaystyle \\sum _ { s = 0 } ^ { \\mathcal { N } _ { 0 } } \\int _ { s _ { \\phi _ { 2 } } \\in \\mathcal { L } _ { \\mathcal { F } _ { 2 } } } P ( s _ { \\phi _ { 3 } , \\phi _ { 3 } } ) \\hat { \\mathfrak { H } } ( s _ { \\phi _ { 3 } } ) \\int _ { s _ { \\phi _ { 2 } } \\le s _ { \\phi _ { 1 } } } \\left( \\mathfrak { L } _ { \\mathcal { F } _ { 2 } } | \\mathfrak { L } _ { \\mathcal { F } _ { 3 } } \\right) \\nabla _ { \\phi } \\log \\mathfrak { L } _ { \\mathcal { F } _ { 3 } } ( \\mathcal { L } _ { \\mathcal { F } _ { 1 } } | \\mathfrak { L } _ { \\mathcal { F } _ { 3 } } ) \\hat { \\mathfrak { H } } ( \\mathfrak { L } _ { \\mathcal { F } _ { 2 } } | \\hat { \\mathfrak { L } } _ { \\mathcal { F } _ { 3 } } ) \\hat { \\mathfrak { H } } ( \\mathcal { L } _ { \\mathcal { F } _ { 1 } } | \\mathfrak { L } _ { \\mathcal { F } _ { 1 } } ) \\prod _ { s = 0 } \\end{array}\n$$",
1742
+ "text_format": "latex",
1743
+ "bbox": [
1744
+ 225,
1745
+ 290,
1746
+ 883,
1747
+ 537
1748
+ ],
1749
+ "page_idx": 13
1750
+ },
1751
+ {
1752
+ "type": "text",
1753
+ "text": "Subtracting a state- and subpolicy- dependent baseline from the second term is also unbiased, i.e. ",
1754
+ "bbox": [
1755
+ 171,
1756
+ 574,
1757
+ 807,
1758
+ 590
1759
+ ],
1760
+ "page_idx": 13
1761
+ },
1762
+ {
1763
+ "type": "equation",
1764
+ "img_path": "images/0319122e3f168ce1f984ac3a17226570906a297f34d4709ad5b0fee7782177d5.jpg",
1765
+ "text": "$$\n\\mathbb { E } _ { \\tau } [ \\sum _ { t = 0 } ^ { H } \\nabla _ { \\theta } \\log \\pi _ { s , \\theta } ( a _ { t } | s _ { t } , z _ { k p } ) b ( s _ { t } , z _ { k p } ) ] = 0\n$$",
1766
+ "text_format": "latex",
1767
+ "bbox": [
1768
+ 348,
1769
+ 595,
1770
+ 648,
1771
+ 640
1772
+ ],
1773
+ "page_idx": 13
1774
+ },
1775
+ {
1776
+ "type": "text",
1777
+ "text": "We’ll follow the same strategy to prove the second equality: apply the tower property, express the expectation as an integral, and undo the gradient-log trick. ",
1778
+ "bbox": [
1779
+ 171,
1780
+ 652,
1781
+ 825,
1782
+ 683
1783
+ ],
1784
+ "page_idx": 13
1785
+ },
1786
+ {
1787
+ "type": "equation",
1788
+ "img_path": "images/e0bcd0c01c8a3bd5291666c428ad09de4e7cc78a3e475cd0f57bc559647919e8.jpg",
1789
+ "text": "$$\n\\begin{array} { r l } & { \\mathbb { E } _ { x } | \\displaystyle \\sum _ { t = 1 } ^ { M } \\nabla \\cdot \\nabla ^ { \\theta } \\log \\pi _ { \\theta } \\{ \\alpha _ { t } | s _ { t } , z _ { t , p } \\} b ( s _ { t } , z _ { t , p } ) \\Big | } \\\\ & \\begin{array} { r l } & \\displaystyle = \\sum _ { t = 0 } ^ { H } \\sum _ { \\alpha _ { t } , \\alpha _ { t } , z _ { t , p } \\} \\mathbb { E } _ { \\Gamma ( s ) \\cup \\mathcal { L } _ { q } \\cup \\mathcal { L } _ { q } } [ \\nabla _ { s } \\log \\pi _ { \\theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) ] \\Big | } \\\\ & \\displaystyle = \\sum _ { t = 0 } ^ { H } \\sum _ { \\alpha _ { t } , \\alpha _ { t } , z _ { t , p } \\} \\big [ \\nabla _ { s } \\log \\pi _ { \\theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) \\big ] \\big ( \\nabla _ { s } \\log \\pi _ { \\theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) \\big ) \\big | } \\\\ & \\displaystyle = \\sum _ { t = 0 } ^ { H } \\mathbb { E } _ { \\kappa _ { t } , \\alpha _ { t } , z _ { t , p } \\} \\big [ \\nabla _ { s } \\log \\pi _ { \\theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) \\big ] \\big ( \\nabla _ { s } \\log \\pi _ { \\theta } ( a _ { t } | s _ { t } , z _ { t , p } ) \\big ) } \\\\ & { \\displaystyle = \\sum _ { t = 0 } ^ { H } \\int _ { ( a _ { t } , z _ { t , p } ) } P ( s _ { t } , z _ { t , p } ) b ( s _ { t } , z _ { t , p } ) \\int _ { a _ { t } } \\pi _ { \\theta } ( a _ { t } | s _ { t } , z _ { t , p } ) \\nabla _ { \\theta } \\log \\pi _ { \\theta } ( a _ { t } | s _ { t } , z _ { t , p } ) b ( a _ { t } | s _ { t } , z _ { t , p } ) d a _ { t } d a _ { t } d a _ { t } d a _ { t } } \\\\ & \\displaystyle = \\sum _ { t = 0 } ^ { H } \\int _ { ( a _ { t } , z _ { t , p } ) } P ( s _ { t } , z _ { t , p } \\end{array} \\end{array}\n$$",
1790
+ "text_format": "latex",
1791
+ "bbox": [
1792
+ 183,
1793
+ 688,
1794
+ 813,
1795
+ 928
1796
+ ],
1797
+ "page_idx": 13
1798
+ },
1799
+ {
1800
+ "type": "image",
1801
+ "img_path": "images/ee0ef8b7d618f7c26e204fd303b0f1de7942fc7e9d8b5b2ff23a13be001b23f1.jpg",
1802
+ "image_caption": [
1803
+ "Figure 7: HIRO performance on Ant Gather with and without access to the ground truth $( x , y )$ , which it needs to communicate useful goals. "
1804
+ ],
1805
+ "image_footnote": [],
1806
+ "bbox": [
1807
+ 385,
1808
+ 99,
1809
+ 611,
1810
+ 229
1811
+ ],
1812
+ "page_idx": 14
1813
+ },
1814
+ {
1815
+ "type": "text",
1816
+ "text": "D HIRO SENSITIVITY TO OBSERVATION-SPACE ",
1817
+ "text_level": 1,
1818
+ "bbox": [
1819
+ 174,
1820
+ 295,
1821
+ 578,
1822
+ 310
1823
+ ],
1824
+ "page_idx": 14
1825
+ },
1826
+ {
1827
+ "type": "text",
1828
+ "text": "In this section we provide a more detailed explanation of why HIRO (Nachum et al., 2018) performs poorly under our environments. As explained in our related work section, HIRO belongs to the general category of algorithms that train goal-reaching policies as lower levels of the hierarchy (Vezhnevets et al., 2017; Levy et al., 2017). These methods rely on having a goal-space that is meaningful for the task at hand. For example, in navigation tasks they require having access to the $( x , y )$ position of the agent such that deltas in that space can be given as meaningful goals to move in the environment. Unfortunately, in many cases the only readily available information (if there’s no GPS signal or other positioning system installed) are raw sensory inputs, like cameras or the LIDAR sensors we mimic in our environments. In such cases, our method still performs well because it doesn’t rely on the goal-reaching extra supervision that is leveraged (and detrimental in this case) in HIRO and similar methods. In Figure 7, we show that knowing the ground truth location is critical for its success. We have reproduced the HIRO results in Fig. 7 using the published codebase, so we are convinced that our results showcase a failure mode of HIRO. ",
1829
+ "bbox": [
1830
+ 173,
1831
+ 325,
1832
+ 826,
1833
+ 506
1834
+ ],
1835
+ "page_idx": 14
1836
+ },
1837
+ {
1838
+ "type": "text",
1839
+ "text": "E HYPERPARAMETER SENSITIVITY PLOTS ",
1840
+ "text_level": 1,
1841
+ "bbox": [
1842
+ 173,
1843
+ 527,
1844
+ 542,
1845
+ 542
1846
+ ],
1847
+ "page_idx": 14
1848
+ },
1849
+ {
1850
+ "type": "image",
1851
+ "img_path": "images/bf71f0947b79c1dacc6adb6a4abac4033bdc6c446907c6564290d12f3e9db82b.jpg",
1852
+ "image_caption": [
1853
+ "Figure 8: Sensitivity of HiPPO to variation in the time-commitment. "
1854
+ ],
1855
+ "image_footnote": [],
1856
+ "bbox": [
1857
+ 266,
1858
+ 559,
1859
+ 723,
1860
+ 693
1861
+ ],
1862
+ "page_idx": 14
1863
+ },
1864
+ {
1865
+ "type": "image",
1866
+ "img_path": "images/6e231db06c188eafb086f33848ba035a6839f3368bff333cca0e31a26f509a6d.jpg",
1867
+ "image_caption": [
1868
+ "Figure 9: Sensitivity of HiPPO to variation in the number of skills. "
1869
+ ],
1870
+ "image_footnote": [],
1871
+ "bbox": [
1872
+ 269,
1873
+ 737,
1874
+ 720,
1875
+ 869
1876
+ ],
1877
+ "page_idx": 14
1878
+ }
1879
+ ]
parse/train/ByeWogStDS/ByeWogStDS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByeWogStDS/ByeWogStDS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkUfnZFt1Rw/HkUfnZFt1Rw_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkUfnZFt1Rw/HkUfnZFt1Rw_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/J_pvI6ap5Mn/J_pvI6ap5Mn.md ADDED
@@ -0,0 +1,488 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TRANSFER LEARNING OF GRAPH NEURAL NETWORKS WITH EGO-GRAPH INFORMATION MAXIMIZATION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Graph neural networks (GNNs) have been shown with superior performance in various applications, but training dedicated GNNs can be costly for large-scale graphs. Some recent work started to study the pre-training of GNNs. However, none of them provide theoretical insights into the design of their frameworks, or clear requirements and guarantees towards the transferability of GNNs. In this work, we establish a theoretically grounded and practically useful framework for the transfer learning of GNNs. Firstly, we propose a novel view towards the essential graph information and advocate the capturing of it as the goal of transferable GNN training, which motivates the design of EGI (ego-graph information maximization) to analytically achieve this goal. Secondly, we specify the requirement of structurerespecting node features as the GNN input, and conduct a rigorous analysis of GNN transferability based on the difference between the local graph Laplacians of the source and target graphs. Finally, we conduct controlled synthetic experiments to directly justify our theoretical conclusions. Extensive experiments on realworld networks towards role identification show consistent results in the rigorously analyzed setting of direct-transfering (freezing parameters), while those towards large-scale relation prediction show promising results in the more generalized and practical setting of transfering with fine-tuning.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Graph neural networks (GNNs) have been intensively studied recently (Kipf & Welling, 2017; Keriven & Peyré, 2019; Chen et al., 2019; Oono & Suzuki, 2020; Huang et al., 2018), due to their established performance towards various real-world tasks (Hamilton et al., 2017; Ying et al., 2018b; Velickovic et al., 2018), as well as close connections to spectral graph theory (Defferrard et al., 2016; Bruna et al., 2014; Hammond et al., 2011). While most GNN architectures are not very complicated, the training of GNNs can still be costly regarding both memory and computation resources on real-world large-scale graphs (Chen et al., 2018; Ying et al., 2018a). Moreover, it is intriguing to transfer learned structural information across different graphs and even domains in settings like few-shot learning (Vinyals et al., 2016; Finn et al., 2017; Ravi & Larochelle, 2017). Therefore, several very recent studies have been conducted on the transferability of GNNs, which focus on the setting of pre-training plus fine-tuning (Hu et al., 2019a,b, 2020; Wu et al., 2020). However, it is unclear in what situations the models will excel or fail especially when the pre-training and fine-tuning tasks are different. To provide rigorous analysis and guarantee on the transferability of GNNs, we focus on the setting of direct-transfering between the source and target graphs, under an analogous setting of “domain adaptation” (Ben-David et al., 2007).
12
+
13
+ In this work, we establish a theoretically grounded framework for the transfer learning of GNNs, and leverage it to design a practically transferable GNN model. Figure 1 gives an overview of our framework. It is based on a novel view of a graph as samples from the joint distribution of its $\mathbf { k }$ -hop ego-graph structures and node features, which allows us to define graph information and similarity, so as to analyze GNN transferability (§2). This view motivates us to design EGI, a novel GNN model based on ego-graph information maximization, which is effective in capturing the graph information as we define $( \ S 2 . 1 )$ . Then we further specify the requirement on transferable node features and analyze the transferability of EGI that is dependent on the local graph Laplacians of source and target graphs (§2.2).
14
+
15
+ ![](images/945736827b0c6721f1d4f23fa94eac30328beb3559853d5752b261a4480d6aba.jpg)
16
+ Figure 1: Overview of our GNN transfer learning framework: (1) we represent graph as a combination of its 1-hop ego-graph and node feature distributions; (2) we design a transferable GNN regarding the capturing of such essential graph information; (3) we establish a rigorous guarantee of GNN transferability based on the requirement on nodes features and difference between graph structures.
17
+
18
+ All of our theoretical conclusions have been directly validated through controlled synthetic experiments (Table 1), where we use structural-equivalent role identification in a direct-transfering setting to analyze the impacts of different model designs, node features and source-target structure similarities on GNN transferability. In $\ S 3$ , we conduct real-world experiments on multiple publicly available network datasets. On the Airport and Gene graphs (§3.1), we closely follow the settings of our synthetic experiments and observe consistent but more detailed results supporting the design of EGI and the utility of our theoretical analysis. On the YAGO graphs (§3.2), we further evaluate EGI on the more generalized and practical setting of transfer learning with task-specific fine-tuning. We find our theoretical insights still indicative in such scenarios, where EGI consistently outperforms state-of-the-art GNN models and transfer learning frameworks with significant margins.
19
+
20
+ # 2 TRANSFERABLE GRAPH NEURAL NETWORKS
21
+
22
+ Based on the connection between GNN and spectral graph theory (Kipf & Welling, 2017), we describe the output of a GNN as a combination of its input node features, fixed graph Laplacian and learnable graph filters. The goal of training a GNN is then to improve its utility by learning the graph filters that are compatible with the other two components towards specific tasks.
23
+
24
+ In the graph transfer learning setting where downstream tasks are often unknown during pre-training, we argue that the general utility of a GNN should be optimized and quantified w.r.t. its ability of capturing the essential graph information in terms of the joint distribution of its link structures and node features, which motivates us to design a novel ego-graph information maximization model (EGI) (§2.1). The general transferability of a GNN is then quantified by the gap between its abilities to model the source and target graphs. Under reasonable requirements such as using structure-respecting node features as the GNN input, we analyze this gap for EGI based on the structural difference between two graphs $w . r . t .$ . their local graph Laplacians $( \ S 2 . 2 )$ .
25
+
26
+ # 2.1 TRANSFERABLE GNN VIA EGO-GRAPH INFORMATION MAXIMIZATION
27
+
28
+ In this work, we focus on the direct-transfering setting where a GNN is pre-trained on a source graph $G _ { a }$ in an unsupervised fashion and applied on a target graph $G _ { b }$ without fine-tuning.1 Consider a graph $G = \{ \bar { V , } E \}$ , where the set of nodes $V$ are associated with certain features and the set of links $E$ form certain structures. Intuitively, the transfer learning will be successful only if both the features and structures of $G _ { a }$ and $G _ { b }$ are similar in some ways, so that the graph filters of a GNN learned on $G _ { a }$ are compatible with the features and structures of $G _ { b }$ .
29
+
30
+ Motivated by the concept of $\mathbf { k }$ -layer expansion sub-graph in (Bai & Hancock, 2016), we introduce a novel view of a graph as samples from the joint distribution of its $k$ -hop ego-graph structures and node features. This view allows us to give concrete definitions towards structural information of graphs in the transfer learning setting, which facilitates the measuring of similarity (difference) among graphs.
31
+
32
+ Definition 2.1 (K-hop ego-graph). We call $a$ graph $g _ { i } = \{ V ( g _ { i } ) , E ( g _ { i } ) \}$ a $k$ -hop ego-graph centered at $v _ { i }$ if it has a $k$ -layer centroid expansion (Bai & Hancock, 2016) such that the greatest shortest path rooted from $v _ { i }$ has length $k ,$ , i.e., $k = \mathrm { m a x } _ { v _ { j } \in V } | S ( v _ { i } , v _ { j } ) |$ , where $S ( v _ { i } , v _ { j } )$ is the shortest path between $v _ { i }$ and $v _ { j }$ .
33
+
34
+ For an ordered $\mathrm { k }$ -hop ego-graph, we denote $v _ { p , q }$ as the $q$ -th node in the $p$ -th layer of the ego-graph (i.e., $| S _ { i } ( v _ { i } , v _ { p , q } ) | = \bar { p } )$ , where $p = 0 , \ldots , k$ , and $e _ { v v ^ { \prime } }$ as the edge between $v _ { p , q }$ and $v _ { p + 1 , q ^ { \prime } }$ .
35
+
36
+ Definition 2.2 (Structural information). Let $\mathcal { G }$ be a topological space of sub-graphs (Verma & Zhang, 2019). We view a graph $G$ as samples of $k$ -hop ego-graphs $G = \{ g _ { i } \} _ { i = 1 } ^ { n }$ drawn i.i.d. from $\mathcal { G }$ with probability $\mu ,$ , i.e., $g _ { i } \stackrel { \mathrm { i . i . d . } } { \sim } \mu \forall i = 1 , \cdots , n .$ . The structural information of $G$ is then defined to be the combination of the distribution $\mu$ and the set of spectrum of $\{ g _ { i } \} _ { i = 1 } ^ { n }$ .
37
+
38
+ The structural information of a graph $G$ can be characterized by $\{ g _ { i } \} _ { v _ { i } \in V }$ and its empirical distribution, where each $g _ { i }$ is a $\mathbf { k }$ -hop ego-graph of $G$ centered at node $v _ { i }$ with $V ( g _ { i } ) = \{ u \in V ( G ) :$ $S ( u , v _ { i } ) \leq k \}$ , and edges $E ( g _ { i } ) \stackrel { - } { = } \{ \bar { e } _ { u v } \stackrel { - } { \in } E ( G ) : u , v \in V ( g _ { i } ) \}$ . As shown in Figure 1, three graphs $G _ { 0 }$ , $G _ { 1 }$ and $G _ { 2 }$ are characterized by a set of 1-hop ego-graphs and their empirical distributions, which allows us to quantify the structural similarity among graphs as shown in $\ S 2 . 2$ (i.e., $G _ { 0 }$ is more similar to $G _ { 1 }$ than $G _ { 2 }$ under such characterization).
39
+
40
+ In practice, the nodes in a graph $G$ are characterized not only by their $\mathbf { k }$ -hop ego-graph structures but also their associated node features. Therefore, $G$ should be regarded as samples $\{ ( g _ { i } , x _ { i } ) \} ^ { n } \in \mathcal { G } \times \mathcal { X }$ , drawn with the joint distribution $p$ on the product space of $\mathcal { G }$ and a node feature space $\mathcal { X }$ . To capture such joint distributions of structural information and node features, we design ego-graph information maximization (EGI), which recursively reconstructs the $\mathbf { k }$ -hop ego-graph of each node based on their features in an unsupervised fashion.
41
+
42
+ Ego-Graph Information Maximization. Assume we are given a set of ego-graphs $\{ ( g _ { i } , x _ { i } ) \} _ { i }$ with empirical joint distribution $\mathbb { P }$ . Similarly with the “local” version of DIM (Hjelm et al., 2019), we define $\mathbb { U } _ { \Psi ( g _ { i } , x _ { i } ) }$ as the empirical distribution of the embedding produced by the GNN encoder $\Psi$ for the the center node $v _ { i }$ of ego-graph $g _ { i }$ . Unlike DGI (Velickovic et al., 2019) that models the local-global mutual information (MI), EGI optimizes $\Psi$ to maximize the $\mathbf { M I }$ of ${ \mathcal { T } } ( g _ { i } , \Psi ( g _ { i } , x _ { i } ) )$ , which is directly between the structural input and output of GNN, with a focus on the structural information $g _ { i }$ . Specifically, we use the Jensen-Shannon MI estimator in (Hjelm et al., 2019),
43
+
44
+ $\mathcal { L } _ { \mathrm { E G I } } = - \mathcal { T } ^ { \mathrm { ( J S D ) } } \left( \boldsymbol { \mathcal { G } } , \boldsymbol { \Psi } \right) = \mathbb { E } _ { \mathbb { P } \times \tilde { \mathbb { U } } } \left[ \mathrm { s p } \left( T _ { \mathcal { D } , \Psi } \big ( g _ { i } , \Psi \big ( g _ { i } ^ { \prime } , x _ { i } ^ { \prime } \big ) \big ) \right) \right] - \mathbb { E } _ { \mathbb { P } } \left[ - \mathrm { s p } \left( - T _ { \mathcal { D } , \Psi } \big ( g _ { i } , \Psi \big ( g _ { i } , x _ { i } \big ) \big ) \right) \right] ,$ (1) $T _ { \mathcal { D } , \Psi } = \mathcal { D } \circ ( g _ { i } , \Psi ( g _ { i } , x _ { i } ) )$ , where $\mathcal { D }$ is a discriminator ${ \mathcal { D } } : g _ { i } \times \Psi ( g _ { i } , x _ { i } ) \to \mathbb { R } ^ { + }$ . In Eq. 1, during the training of $\mathcal { D }$ , the input space of $\mathcal { D }$ is at least as large as the number of graph permutations $| V ( g _ { i } ) | !$ . Instead of enumerating all possible graphs $g _ { i } ^ { \prime }$ , we fix $g _ { i }$ and sample GNN’s output $\Psi ( g _ { i } ^ { \prime } , x _ { i } ^ { \prime } )$ from the marginal distribution $\tilde { \mathbb { U } }$ by uniformly sampling $( g _ { i } ^ { \prime } , x _ { i } ^ { \prime } ) \sim \tilde { \mathbb { P } } , \tilde { \mathbb { P } } = \mathbb { P }$ . The correspondence between sampling $( g _ { i } ^ { \prime } , x _ { i } ^ { \prime } ) \sim \tilde { \mathbb { P } }$ and $g _ { i } ^ { \prime } \sim \mathcal { G }$ is discussed in Remark 2 when node features are strcuture-respecting (Def. 2.3).
45
+
46
+ Formally, we characterize the decision process of $\mathcal { D }$ with a fixed graph ordering, i.e., BFS-ordering $\pi$ over edges $E ( g _ { i } )$ . $\mathcal { D }$ is a GNN scoring function over an edge sequence $E ^ { \pi } : \left\{ e _ { 1 } , e _ { 2 } , . . . , e _ { n } \right\}$ , which makes predictions on BFS-ordered edges. Let $z _ { i } = \Psi ( g _ { i } , x _ { i } )$ , then we have,
47
+
48
+ $$
49
+ \mathcal { D } ( g _ { i } , z _ { i } ) = \sum _ { p = 0 } ^ { k } \sum _ { q = 1 } ^ { | V _ { p } ( g _ { i } ) | } \log \mathcal { D } ( e _ { \tilde { v } v } | h _ { p , q } ^ { \tilde { q } } , x _ { p , q } ^ { i } , z _ { i } ) ,
50
+ $$
51
+
52
+ where $h$ is the hidden representation output by $\mathcal { D }$ , $e _ { \tilde { v } v } \in E ( g _ { i } )$ is an edge between node $\tilde { v }$ in layer $p$ and $v$ in layer $p + 1$ , following the notation defined below Def 2.1. More specifically, we have
53
+
54
+ $$
55
+ \begin{array} { r } { \mathcal { D } ( e _ { \tilde { v } v } | h _ { p , q } ^ { \tilde { q } } , x _ { p , q } ^ { i } , z _ { i } ) = \sigma \left( U ^ { T } \cdot \tau \left( W ^ { T } [ h _ { p , q } ^ { \tilde { q } } | | x _ { p , q } ^ { i } | | z _ { i } ] \right) \right) , } \end{array}
56
+ $$
57
+
58
+ where $\sigma$ and $\tau$ are Sigmoid and ReLU activation functions, respectively. Thus, the discriminator is asked to distinguish positive $( e _ { \tilde { v } v } , \Psi ( g _ { i } , x _ { i } ) )$ and negative pair $( e _ { \tilde { v } v } , \Psi ( g _ { i } ^ { \prime } , x _ { i } ^ { \prime } ) )$ that consists of an observed edge and positive/negative center node embeddings $\Psi ( \cdot )$ .
59
+
60
+ Due to the fact that the output of a $\mathbf { k }$ -layer GNN only depends on a $\mathbf { k }$ -hop ego-graphs, EGI can be trained in parallel by sampling batches of $g _ { i }$ ’s. Besides, the training objective of EGI is transferable as long as $( g _ { i } , x _ { i } )$ across source graph $G _ { a }$ and $G _ { b }$ satisfies the conditions given in $\ S 2 . 2$ . More details about the model are in Appendix $\ S _ { \mathbf { B } }$ and source code in the Supplementary Materials.
61
+
62
+ Connection with existing work. To provide more insights into the EGI objective, we also present it as a dual problem of ego-graph reconstruction. Recall our definition of ego-graph mutual information ${ \mathcal { T } } ( g _ { i } , \Psi ( g _ { i } , x _ { i } ) )$ . It can be related to an ego-graph reconstruction loss $R ( g _ { i } | \Psi ( g _ { i } , x _ { i } ) )$ as
63
+
64
+ When EGI is maximizing the mutual information, it simultaneously minimizes the upper error bound of reconstructing an ego-graph $g _ { i }$ . In this view, the key difference between EGI and GVAE (Kipf & Welling, 2016) is they assume each edge in a graph to be observed independently during the reconstruction, while we assume the edges in an ego-graph to be observed jointly. Moreover, existing mutual information based GNNs such as DGI (Velickovic et al., 2019) and GMI (Peng et al., 2020) explicitly measure the mutual information between node features $x$ and GNN output $\Psi$ . In this way, they tend to capture node features instead of graph structures, which we deem more essential in graph transfer learning as discussed in $\ S 2 . 2$ .
65
+
66
+ Supportive observations. In the first three columns of Table 1, in both cases of transfering GNNs between similar graphs (F-F) and dissimilar graphs (B-F), EGI significantly outperforms all competitors when using node degree one-hot encoding as transferable node features. In particular, the performance gains over the untrained GIN and GCN show the effectiveness of training and transfering, and our gains are always larger than the two state-of-the-art unsupervised GNNs. Such results clearly indicate advantageous structure preserving capability and transferability of EGI.
67
+
68
+ # 2.2 TRANSFERABILITY ANALYSI BASED ON LOCAL GRAPH LAPLACIANS
69
+
70
+ We now study the transferability of a GNN (in particular, EGI) between the source graph $G _ { a }$ and target graph $G _ { b }$ based on the graph similarity between $G _ { a }$ and $G _ { b }$ . We firstly establish the requirement towards node features, under which we then focus on analyzing the transferability of EGI w.r.t. the structural information of $G _ { a }$ and $G _ { b }$ .
71
+
72
+ Recall our view of the GNN output as a combination of its input node features, fixed graph Laplacian and learnable graph filters. The utility of a GNN is determined by the compatibility among the three. In order to fulfill such compatibility, we require the node features to be structure-respecting:
73
+
74
+ node Then with a set of node featuree say the node features on , where respect $g _ { i }$ -th hop of or any no $v _ { i }$ $\bar { \{ x _ { p , q } ^ { i } \} } _ { p = 0 , q = 1 } ^ { k , | V _ { p } ( g _ { i } ) | }$ $V _ { p } ( g _ { i } )$ $p$ $g _ { i }$ $g _ { i }$ $\dot { x } _ { p , q } ^ { i } = [ f ( g _ { i } ) ] _ { p , q } \in \mathbb { R } ^ { d }$ $v _ { q } \in V _ { p } ( g _ { i } )$ , where $f : \mathcal { G } \mathbb { R } ^ { d \times \lvert V ( g _ { i } ) \rvert }$ is a function. In the strict case, $f$ should be injective.
75
+
76
+ In its essence, Def 2.3 requires the node features to be a function of the graph structures, which is sensitive to changes in the graph structures, and in an ideal case, injective to the graph structures. In this way, when the learned graph filters of a transfered GNN is compatible to the structure of $G$ , they are also compatible to the node features of $G$ . As we will explain in Remark 2 of Theorem 2.1, this requirement is also essential for the analysis of our GNN transferability which eventually only depends on the structural difference between two graphs.
77
+
78
+ In practice, commonly used node features like node degrees, PageRank scores (Page et al., 1999), spectral embeddings (Chung & Graham, 1997), and many pre-computed unsupervised network embeddings (Perozzi et al., 2014; Tang et al., 2015; Grover & Leskovec, 2016) are all structurerespecting in nature. However, other commonly used node features like random vectors (Yang et al., 2019) or uniform vectors (Xu et al., 2019) are not and thus non-transferable. When organic node attributes are available, they are transferable as long as the concept of homophily (McPherson et al., 2001) applies, which also implies Def 2.3, but we do not have a rigorous analysis on it yet.
79
+
80
+ Supportive observations. In the fifth and sixth columns in Table 1, where we use uniform embedding as non-transferable node features to contrast with the first three columns, there is almost no or even negative transferability for all compared methods when non-transferable features are used, as the performance of trained GNNs are similar to or worse than their untrained baselines.
81
+
82
+ With our view of graphs and requirement on node features both established, now we derive the following theorem by characterizing the performance difference of EGI on two graphs based on Eq. 1.
83
+
84
+ Theorem 2.1 (GNN transferability). Let ${ \cal G } _ { a } = \{ ( g _ { i } , x _ { i } ) \} _ { i = 1 } ^ { n }$ and $G _ { b } = \{ ( g _ { i ^ { \prime } } , x _ { i ^ { \prime } } ) \} _ { i ^ { \prime } = 1 } ^ { m }$ be two graphs. Then denote $L _ { g _ { i } }$ as the (normalised) graph Laplacian of $g _ { i } \forall i = 1 , \cdot \cdot \cdot , n$ , and let the node features of $g _ { i }$ be structure-respecting and normalized (similarly for $g _ { i ^ { \prime } }$ ). Consider GNN $\Psi _ { \theta }$ with $k$ layers and a $I$ -hop polynomial filter $\phi _ { \theta }$ . With reasonable assumptions on the local spectrum of $G _ { a }$ and $G _ { b }$ , the empirical performance difference of $\Psi _ { \theta }$ with $\phi _ { \theta }$ evaluated on $\mathcal { L } _ { \mathrm { E G I } }$ satisfies
85
+
86
+ $$
87
+ | \mathcal { L } _ { \mathrm { E G I } } ( G _ { a } ) - \mathcal { L } _ { \mathrm { E G I } } ( G _ { b } ) | \leq \mathcal { O } \left( M + \frac { 1 } { n m } \sum _ { i = 1 } ^ { n } \sum _ { i ^ { \prime } = 1 } ^ { m } \| \lambda ( L _ { g _ { i } } ) - \lambda ( L _ { g _ { i ^ { \prime } } } ) \| _ { 2 } \right) ,
88
+ $$
89
+
90
+ where $M$ is a constant dependant on $k$ $, \phi _ { \theta } , \{ L _ { g _ { i } } \} , \{ L _ { g _ { i ^ { \prime } } } \} , \{ x _ { i } \} , \{ x _ { i ^ { \prime } } \} ,$ , and finally $\lambda ( L _ { g _ { i } } )$ denotes the ordered eigenvalues of the graph Laplacian of $g _ { i } \in G _ { a }$ (similarly for $g _ { i ^ { \prime } }$ ).
91
+
92
+ Proof. The full proof is detailed in Appendix $\ S \mathrm { A }$ .
93
+
94
+ Remark 1. Our view of a graph $G$ as samples of $k$ -hop ego-graphs is important, as it allows us to make node-wise characterization of GNN similarly as in (Verma & Zhang, 2019). It also allows us to set the depth of ego-graphs in the analysis to be the same as the number of GNN layers $( k )$ , since the GNN embedding of each node mostly depends on its $k$ -hop ego-graph instead of the whole graph.
95
+
96
+ Remark 2. For Eq. 1, Def 2.3 ensures the sampling of GNN embedding at a node always corresponds to sampling an ego-graph from $\mathcal { G }$ , which reduces to uniformly sampling from $G = \{ g _ { i } \} _ { i = 1 } ^ { n }$ under the setting of Theorem 2.1. Therefore, the requirement of Def 2.3 in the context of Theorem 2.1 guarantees the analysis to be only depending on the structural information of the graph.
97
+
98
+ The analysis in Theorem 2.1 naturally instantiates our insight about the correspondence between structural similarity and GNN transferability. It tells us how well a GNN trained on $G _ { a }$ can work on $G _ { b }$ by only checking the local graph Laplacians of $G _ { a }$ and $G _ { b }$ without actually training the model.
99
+
100
+ In practice, the computation of eigenvalues on the small ego-graphs can be rather efficient (Arora et al., 2005), and we do not need to enumerate all pairs of ego-graphs. Suppose we need to sample $M$ pairs of $\mathrm { k }$ -hop ego-graphs to compare two large graphs, and the average size of ego-graphs are $L$ , then the overall complexity of computing Eq. 5 is $\bar { \mathcal { O } } ( \bar { M } L ^ { 2 } )$ , where $M$ is often less than 1K and $L$ less than 50.
101
+
102
+ Supportive observations. In Table 1, in the $\bar { d }$ columns, we compute the average structural difference between two Forest-fire graphs $( \bar { d } ( F , F ) )$ and between Barabasi and Forest-fire graphs $( \bar { d } ( B , F ) )$ , based on the RHS of Eq. 5. The results validate our usage of the two graph models to generate structurally different graphs, while also verify our novel view of graphs and the way we propose based on it to characterize structural information of graphs. We further highlight in the $\Delta$ columns the performance difference between the GNNs transfered from Forest-fire graphs and Barabasi graphs to Forest-fire graphs. Since Forest-fire graphs are more similar to Forest-fire graphs than Barabasi graphs (as verified in the $\bar { d }$ columns), we expect $\Delta$ to be positive and large, indicating more positive transfer between the more similar graphs. Indeed, the behaviors of EGI align well with the expectation, which indicates its well-understood transferability and the utility of our theoretical analysis.
103
+
104
+ Table 1: Synthetic experiments of identifying structural equivalent nodes. We randomly generate 40 graphs with the Forest-fire model (F) (Leskovec et al., 2005) and 40 graphs with the Barabasi model (B) (Albert & Barabási, 2002), The GNN models we use include the untrained encoders of GCN (Kipf & Welling, 2017) and GIN (Xu et al., 2019) with random parameters (baselines with only the neighborhood aggregation function), GVAE with GCN encoder (Kipf & Welling, 2016), DGI with GIN encoder (Velickovic et al., 2019), and EGI with GIN encoder. We train GVAE, DGI and EGI on one graph from either set (F and B), and test them on the rest of Forest-fire graphs (F). More details about the results and dataset can be found in Appendix $\ S { \bf C } . 1$ .
105
+
106
+ <table><tr><td rowspan="2">Method</td><td colspan="3">transferable features</td><td colspan="3">non-transferable feature</td><td rowspan="2">structural difference d(F,F)</td><td rowspan="2">d(B.F)</td></tr><tr><td>F-F</td><td>B-F</td><td>△</td><td>F-F</td><td>B-F</td><td>△</td></tr><tr><td>GCN (untrained)</td><td>0.478</td><td>0.478</td><td>/</td><td>0.229</td><td>0.229</td><td>1</td><td rowspan="4"></td><td rowspan="4"></td></tr><tr><td>GIN (untrained)</td><td>0.572</td><td>0.572</td><td>/</td><td>0.358</td><td>0.358</td><td>/</td></tr><tr><td>GVAE (GCN)</td><td>0.498</td><td>0.432</td><td>+0.066</td><td>0.240</td><td>0.239</td><td>0.001</td></tr><tr><td>DGI (GIN)</td><td>0.578</td><td>0.591</td><td>-0.013</td><td>0.394</td><td>0.213</td><td>+0.181</td></tr><tr><td>EGI (GIN)</td><td>0.710</td><td>0.616</td><td>+0.094</td><td>0.376</td><td>0.346</td><td>+0.03</td><td rowspan="2"></td><td rowspan="2"></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
107
+
108
+ # 3 REAL DATA EXPERIMENTS
109
+
110
+ Baselines. We compare the proposed model with existing unsupervised GNNs and pre-training GNN frameworks. The unsupervised GNNs are the same as used in our synthetic experiments, i.e., GVAE with GCN encoder (Kipf & Welling, 2016) and DGI with GIN encoder (Velickovic et al., 2019). The pre-training GNN frameworks include Mask-GIN and ContextPred-GIN, two node-level pre-training models proposed in (Hu et al., 2019a)2. Besides, Structural Pre-train (Hu et al., 2019b) also conducts unsupervised node-level pre-training with structural features like node degrees and clustering coefficients.
111
+
112
+ Protocols. By default, we use node degree one-hot encoding as the transferable feature across all different graphs. As stated before, other transferable features like spectral and other pre-computed node embeddings are also applicable. We focus on the setting where the downstream tasks on target graphs are unspecified but assumed to be structure-relevant, and thus pre-train the GNNs on source graphs in an unsupervised fashion.3 In terms of evaluation, we design two realistic experimental settings: (1) Direct-transfering on the more structure-relevant task of role identification without given node features to directly evaluate the utility and transferability of EGI. (2) Few-shot learning on relation prediction with task-specific node features to evaluate the generalization ability of EGI.
113
+
114
+ # 3.1 DIRECT-TRANSFERING ON ROLE IDENTIFICATION
115
+
116
+ First, we use the role identification without node features in a direct-transfering setting as a reliable proxy to evaluate transfer learning performance regarding different pre-training objectives. Role in a network is defined as nodes with similar structural behaviors, such as clique members, hub and bridge (Henderson et al., 2012). Across graphs in the same domain, we assume the definition of role to be consistent, and the task of role identification is highly structure-relevant, which can directly reflect the transferability of different methods and allows us to conduct the analysis according to Theorem 2.1. Upon convergence of pre-training each model on the source graphs, we directly apply them on the target graphs and further train a multi-layer perceptron (MLP) upon their outputs. The GNN parameters are freezing during the MLP training. We refer to this strategy as direct-transfering since there is no fine-tuning of the models after transfering to the target graphs.
117
+
118
+ We use two real-world network datasets with role-based node labels: (1) Airport (Ribeiro et al., 2017) contains three networks from different regions– Brazil, USA and Europe. Each node is an airport and each link is the flight between airports. The airports are assigned with external labels based on their level of popularity. (2) Gene (Yang et al., 2019) contains the gene interactions regarding 50 different cancers. Each gene has a binary label indicating whether it is a transcription factor.
119
+
120
+ The experimental setup on the Airport dataset closely resembles that of our synthetic experiments in Table 1, but with real data and more detailed comparisons. We train all models (except for the untrained ones) on the Europe network, and test them on all three networks. The results are presented in Table 2. We notice that the node degree features themselves (with MLP) show reasonable performance in all three networks, which is not surprising since the popularity-based airport role labels are highly relevant to node degrees. The untrained GIN encoder yields a significant margin over both node degrees and the untrained vanilla GCN encoder, indicating the importance of proper aggregation mechanisms. While training of the GCN (through GVAE) and GIN (through DGI) can further improve the performance on the source graph, EGI shows the best performance there with the structure-respecting node degree features (59.15), corroborating the claimed effectiveness of EGI in capturing the essential graph information as we stress in $\ S 2$ .
121
+
122
+ When transfering the models to USA and Brazil networks, EGI further achieves the best performance compared with all baselines when node degree features are used (64.55 and 73.15), which reflects the most significant positive transfer. Interestingly, direct application of GVAE and DGI without the consideration of essential graph information as we stress leads to rather limited and even negative transferrability (through comparison against the untrained GCN and GIN encoders). The recently proposed transfer learning frameworks for GNN like Mask-GIN and Structural Pre-train are able to mitigate negative transfer to some extent, but their performances are still inferior to EGI. We believe this is because their models do not aim to capture the underlying ego-graph distributions as we deem important, so they are prune to learn the graph-specific information that is less transferable across different graphs. Similarly as in Table 1, we also compute the structural difference among three networks $w . r . t .$ . to RHS of Eq. 5. The structural difference is 12.03 between the Europe and USA networks, and 12.14 between the Europe and Brazil datasets, which are pretty close. Consequently, the transferability of EGI regarding its performance gain over the untrained GIN baseline is $4 . 8 \%$ on the USA network and $4 . 4 \%$ on the Brazil network, which are also pretty close. Such observations once again align well with our conclusion in Theorem 2.1 that the transferability of EGI is closely related to the structural different between source and target graphs.
123
+
124
+ ![](images/1190e57a9ca7bf124e98a12cc3fb78d2e3b3878e0b9c2f02170f2472a94b6e90.jpg)
125
+ Figure 2: Role identification on the Gene dataset. Due to severe label imbalance that vanishes the performance gaps, we only use the 7 brain cancer networks that have a more consistent balance of labels. We visualize the source graph $G _ { 0 }$ and two example target graphs that are relatively more similar $\left( G _ { 5 } \right)$ and different $\left( G _ { 6 } \right)$ with $G _ { 0 }$
126
+
127
+ Table 2: Results of role identification with direct-transfering on the Airport dataset. The performance reported $( \% )$ are the average over $1 0 0 \mathrm { r u n s }$ . The scores marked with ∗∗ passed t-test with $\mathsf { p } < 0 . 0 1$ over the second best results. More details about the results and dataset can be found in Appendix $\ S { \bf C } . 2$ .
128
+
129
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Europe (source)</td><td colspan="2">USA (target)</td><td colspan="2">Brazil (target)</td></tr><tr><td>node degree</td><td>uniform</td><td>node degree</td><td>uniform</td><td>node degree</td><td>uniform</td></tr><tr><td>MLP</td><td>52.81</td><td>20.59</td><td>55.67</td><td>20.22</td><td>67.11</td><td>19.63</td></tr><tr><td>GCN (untrained)</td><td>52.96</td><td>20.11</td><td>55.30</td><td>22.07</td><td>68.30</td><td>17.63</td></tr><tr><td>GIN (untrained)</td><td>55.75</td><td>53.88</td><td>61.56</td><td>58.32</td><td>70.04</td><td>70.37</td></tr><tr><td>GVAE(GCN) (Kipf &amp; Welling,2016)</td><td>53.90</td><td>21.12</td><td>55.51</td><td>22.39</td><td>66.33</td><td>17.70</td></tr><tr><td>DGI (GIN) (Velickovic et al.,2019)</td><td>57.75</td><td>22.13</td><td>54.90</td><td>21.76</td><td>67.93</td><td>18.78</td></tr><tr><td>Mask-GIN(Hu et al.,2019a)</td><td>56.37</td><td>55.53</td><td>60.82</td><td>54.64</td><td>66.71</td><td>74.54</td></tr><tr><td>ContextPred-GIN (Hu et al., 2019a)</td><td>52.69</td><td>49.95</td><td>50.38</td><td>54.75</td><td>62.11</td><td>70.66</td></tr><tr><td>Structural Pre-train (Hu et al.,2019b)</td><td>56.00</td><td>53.83</td><td>62.17</td><td>57.49</td><td>68.78</td><td>72.41</td></tr><tr><td>EGI (GIN)</td><td>59.15**</td><td>54.98</td><td>64.55**</td><td>57.40</td><td>73.15**</td><td>70.00</td></tr></table>
130
+
131
+ On the Gene dataset, with more graphs available, we focus on EGI to further analyze the utility of Eq. 5 in Theorem 2.1, regarding the connection between the structural difference of two graphs and the performance gap of EGI on them. As shown in Figure 2, we train EGI on one graph and test it on six different graphs. The $x$ -axis shows the structural difference measured w.r.t. the RHS of Eq. 5, and $y$ -axis shows the performance loss compared with an untrained GIN. The positive correlation between two quantities is obvious. Specifically, when the structural difference is small, positive transfer is observed as the performance of transfered EGI is better than untrained GIN, and when the structural difference becomes large, negative transfer is observed. Note that, at its current stage, Eq. 5 in Theorem 5 mainly gives a relative indication on the transferability of EGI, because the absolute values of structural difference may vary a lot across different datasets.
132
+
133
+ # 3.2 FEW-SHOT LEARNING ON RELATION PREDICTION
134
+
135
+ Here we evaluate EGI in the more generalized and practical setting of few-shot learning on the less structure-relevant task of relation prediction, with task-specific node features and fine-tuning. The source graph contains a cleaned full dump of 579K entities from YAGO (Suchanek et al., 2007), and we investigate 20-shot relation prediction on a target graph with 24 relation types, which is a sub-graph of 115K entities sampled from the same dump. In post-fine-tuning, the models are pre-trained with an unsupervised loss on the source graph and fine-tuned with the task-specific loss on the target graph. In joint-fine-tuning, the same pre-trained models are jointly optimized w.r.t. the unsupervised pre-training loss and task-specific fine-tuning loss on the target graph. In Table 3, we observe most of the existing models fail to transfer across pre-training and fine-tuning tasks, especially in the joint-fine-tuning setting. In particular, both Mask-GIN and ContextPred-GIN rely a lot on task-specific fine-tuning, while EGI focuses on the capturing of similar ego-graph structures that are transferable across graphs. As a consequence, EGI significantly outperforms all compared methods in both settings.
136
+
137
+ Table 3: Performance of few-shot relation prediction on YAGO. Structural Pre-train (Hu et al., 2019b) can not scale to the YAGO graphs with $1 0 0 \mathrm { K } +$ nodes. More details can be found in Appendix $\ S { \bf C } . 3$ .
138
+
139
+ <table><tr><td rowspan="2">Method</td><td colspan="2">post-fine-tuning</td><td colspan="2"> joint-fine-tuning</td></tr><tr><td>AUROC</td><td>MRR</td><td>AUROC</td><td>MRR</td></tr><tr><td>No pre-train</td><td>0.6866</td><td>0.5962</td><td>N.A.</td><td>N.A</td></tr><tr><td>GVAE (Kipf &amp; Welling,2016)</td><td>0.7009</td><td>0.6009</td><td>0.6786</td><td>0.5676</td></tr><tr><td>DGI (Velickovic et al., 2019)</td><td>0.6885</td><td>0.5861</td><td>0.6880</td><td>0.5366</td></tr><tr><td>Mask-GIN (Hu et al.,2019a)</td><td>0.7041</td><td>0.6242</td><td>0.6720</td><td>0.5603</td></tr><tr><td>ContextPred-GIN (Hu et al., 2019a)</td><td>0.6882</td><td>0.6589</td><td>0.5293</td><td>0.3367</td></tr><tr><td>EGI</td><td>0.7389**</td><td>0.6695</td><td>0.7870**</td><td>0.7289**</td></tr></table>
140
+
141
+ # 4 RELATED WORK
142
+
143
+ Representation learning on graphs has been studied for decades, with earlier spectral-based methods (Belkin & Niyogi, 2002; Roweis & Saul, 2000; Tenenbaum et al., 2000) theoretically grounded but hardly scaling up to graphs with over a thousand of nodes. With the emergence of neural networks, unsupervised network embedding methods based on the Skip-gram objective (Mikolov et al., 2013) have replenished the field (Tang et al., 2015; Grover & Leskovec, 2016; Perozzi et al., 2014; Ribeiro et al., 2017). Equipped with efficient structural sampling (random walk, neighborhood, etc.) and negative sampling schemes, these methods are easily parallelizable and scalable to graphs with thousands to millions of nodes. However, these models are essentially transductive as they compute fully parameterized embeddings only for nodes seen during training, which are impossible to be transfered to unseen graphs.
144
+
145
+ More recently, researchers introduce the family of graph neural networks (GNNs) that are capable of inductive learning and generalizing to unseen nodes given meaningful node features (Kipf & Welling, 2017; Defferrard et al., 2016; Hamilton et al., 2017). Yet, most existing GNNs require task-specific labels for training in a semi-supervised fashion to achieve satisfactory performance (Kipf & Welling, 2017; Hamilton et al., 2017; Velickovic et al., 2018; Chen et al., 2018), and their usage is limited to single graphs where the downstream task is fixed. To this end, several unsupervised GNNs are presented, such as the auto-encoder-based ones like GVAE (Kipf & Welling, 2016) and GNFs (Liu et al., 2019), as well as the deep-infomax-based ones like DGI (Velickovic et al., 2019) and InfoGraph (Sun et al., 2019). Their potential in the transfer learning of GNN remains unclear when the node features and link structures vary across different graphs.
146
+
147
+ Although the architectures of GNNs are not very complicated, training a dedicated model for each graph can still be cumbersome (Chen et al., 2018; Ying et al., 2018a). Moreover, as pre-training neural networks are proven to be successful in other domains (Devlin et al., 2019; He et al., 2016), the idea is intriguing to transfer well-trained GNNs from relevant source graphs to improve the modeling of target graphs or enable few-shot learning (Vinyals et al., 2016; Finn et al., 2017; Ravi & Larochelle, 2017) when labeled data are scarce. In the light of this, pioneering works have studied both generative (Hu et al., 2020) and discriminative (Hu et al., 2019a,b) GNN pre-training schemes. Among these work, though Graph Contrastive Coding (Qiu et al., 2020) shares similar structural view as ours, it utilizes contrastive learning in the embedding space instead of structural space as EGI. Unsupervised domain adaptive GCNs (Wu et al., 2020) study the domain adaption problem while source and target tasks are homogenous. Previous pre-training and self-supervised GNNs lack a rigorous analysis towards their transferability and thus have unpredictable effectiveness.
148
+
149
+ # 5 CONCLUSION
150
+
151
+ To the best of our knowledge, this is the first research effort towards establishing a theoretically grounded framework to analyze GNN transferability, which we also demonstrate to be practically useful for guiding the design and conduct of transfer learning with GNNs. For future work, it is intriguing to further strengthen the bound with relaxed assumptions, rigorously extend it to the more complicated and less restricted settings regarding node features and downstream tasks, as well as analyze and improve the proposed framework over more transfer learning scenarios and datasets.
152
+
153
+ REFERENCES
154
+ Réka Albert and Albert-László Barabási. Statistical mechanics of complex networks. Reviews of modern physics, 74(1):47, 2002.
155
+ Sanjeev Arora, Elad Hazan, and Satyen Kale. Fast algorithms for approximate semidefinite programming using the multiplicative weights update method. In ${ } _ { . = F O C S }$ , pp. 339–348, 2005.
156
+ Lu Bai and Edwin R Hancock. Fast depth-based subgraph kernels for unattributed graphs. Pattern Recognition, 50:233–245, 2016.
157
+ Albert-László Barabási and Réka Albert. Emergence of scaling in random networks. science, 286 (5439):509–512, 1999.
158
+ Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps and spectral techniques for embedding and clustering. In NIPS, pp. 585–591, 2002.
159
+ Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. In NIPS, pp. 137–144, 2007.
160
+ Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. In ICLR, 2014.
161
+ Jie Chen, Tengfei Ma, and Cao Xiao. Fastgcn: fast learning with graph convolutional networks via importance sampling. In ICLR, 2018.
162
+ Zhengdao Chen, Soledad Villar, Lei Chen, and Joan Bruna. On the equivalence between graph isomorphism testing and function approximation with gnns. In NIPS, pp. 15868–15876, 2019.
163
+ Fan RK Chung and Fan Chung Graham. Spectral graph theory. Number 92. American Mathematical Soc., 1997.
164
+ Michaël Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. In NIPS, pp. 3844–3852, 2016.
165
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In ACL, pp. 4171–4186, 2019.
166
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICLR, 2017.
167
+ Rolf Dieter Grigorieff. A note on von neumann’s trace inequalitv. Mathematische Nachrichten, 151 (1):327–328, 1991.
168
+ Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In KDD, pp. 855–864, 2016.
169
+ Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NIPS, pp. 1024–1034, 2017.
170
+ David K Hammond, Pierre Vandergheynst, and Rémi Gribonval. Wavelets on graphs via spectral graph theory. ACHA, 30(2):129–150, 2011.
171
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016.
172
+ Keith Henderson, Brian Gallagher, Tina Eliassi-Rad, Hanghang Tong, Sugato Basu, Leman Akoglu, Danai Koutra, Christos Faloutsos, and Lei Li. Rolx: structural role extraction & mining in large graphs. In KDD, pp. 1231–1239, 2012.
173
+ 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 ICLR, 2019.
174
+ Weihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik, Percy Liang, Vijay Pande, and Jure Leskovec. Strategies for pre-training graph neural networks. In ICLR, 2019a.
175
+
176
+ Ziniu Hu, Changjun Fan, Ting Chen, Kai-Wei Chang, and Yizhou Sun. Pre-training graph neural networks for generic structural feature extraction. arXiv preprint arXiv:1905.13728, 2019b.
177
+
178
+ Ziniu Hu, Yuxiao Dong, Kuansan Wang, Kai-Wei Chang, and Yizhou Sun. Gpt-gnn: Generative pre-training of graph neural networks. In KDD, pp. 1857–1867, 2020.
179
+
180
+ Wenbing Huang, Tong Zhang, Yu Rong, and Junzhou Huang. Adaptive sampling towards fast graph representation learning. In NIPS, 2018.
181
+
182
+ Suk-Geun Hwang. Cauchy’s interlace theorem for eigenvalues of hermitian matrices. The American Mathematical Monthly, 111(2):157–159, 2004.
183
+
184
+ Nicolas Keriven and Gabriel Peyré. Universal invariant and equivariant graph neural networks. In NIPS, pp. 7090–7099, 2019.
185
+
186
+ Thomas N Kipf and Max Welling. Variational graph auto-encoders. arXiv preprint arXiv:1611.07308, 2016.
187
+
188
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
189
+
190
+ Jure Leskovec, Jon Kleinberg, and Christos Faloutsos. Graphs over time: densification laws, shrinking diameters and possible explanations. In Proceedings of the eleventh ACM SIGKDD international conference on Knowledge discovery in data mining, pp. 177–187, 2005.
191
+
192
+ Jenny Liu, Aviral Kumar, Jimmy Ba, Jamie Kiros, and Kevin Swersky. Graph normalizing flows. In Advances in Neural Information Processing Systems, pp. 13556–13566, 2019.
193
+
194
+ Miller McPherson, Lynn Smith-Lovin, and James M Cook. Birds of a feather: Homophily in social networks. Annual review of sociology, 27(1):415–444, 2001.
195
+
196
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In NIPS, pp. 3111–3119, 2013.
197
+
198
+ Kenta Oono and Taiji Suzuki. Graph neural networks exponentially lose expressive power for node classification. In ICLR, 2020.
199
+
200
+ Lawrence Page, Sergey Brin, Rajeev Motwani, and Terry Winograd. The pagerank citation ranking: Bringing order to the web. Technical report, Stanford InfoLab, 1999.
201
+
202
+ Zhen Peng, Wenbing Huang, Minnan Luo, Qinghua Zheng, Yu Rong, Tingyang Xu, and Junzhou Huang. Graph representation learning via graphical mutual information maximization. In WWW, pp. 259–270, 2020.
203
+
204
+ Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In KDD, pp. 701–710, 2014.
205
+
206
+ 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 KDD, pp. 1150–1160, 2020.
207
+
208
+ Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. In ICLR, 2017.
209
+
210
+ Leonardo FR Ribeiro, Pedro HP Saverese, and Daniel R Figueiredo. struc2vec: Learning node representations from structural identity. In KDD, pp. 385–394, 2017.
211
+
212
+ Sam T Roweis and Lawrence K Saul. Nonlinear dimensionality reduction by locally linear embedding. Science, 290(5500):2323–2326, 2000.
213
+
214
+ Yu Shi, Qi Zhu, Fang Guo, Chao Zhang, and Jiawei Han. Easing embedding learning by comprehensive transcription of heterogeneous information networks. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 2190–2199, 2018.
215
+
216
+ Fabian M Suchanek, Gjergji Kasneci, and Gerhard Weikum. Yago: a core of semantic knowledge. In WWW, pp. 697–706, 2007.
217
+
218
+ Fan-Yun Sun, Jordan Hoffman, Vikas Verma, and Jian Tang. Infograph: Unsupervised and semisupervised graph-level representation learning via mutual information maximization. In ICLR, 2019.
219
+
220
+ Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In WWW, pp. 1067–1077, 2015.
221
+
222
+ Joshua B Tenenbaum, Vin De Silva, and John C Langford. A global geometric framework for nonlinear dimensionality reduction. Science, 290(5500):2319–2323, 2000.
223
+
224
+ Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. In ICLR, 2018.
225
+
226
+ Petar Velickovic, William Fedus, William L Hamilton, Pietro Lio, Yoshua Bengio, and R Devon Hjelm. Deep graph infomax. In ICLR, 2019.
227
+
228
+ Saurabh Verma and Zhi-Li Zhang. Stability and generalization of graph convolutional neural networks. In KDD, 2019.
229
+
230
+ Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In NIPS, pp. 3630–3638, 2016.
231
+
232
+ Boris Weisfeiler and Andrei A Lehman. A reduction of a graph to a canonical form and an algebra arising during this reduction. Nauchno-Technicheskaya Informatsia, 2(9):12–16, 1968.
233
+
234
+ Man Wu, Shirui Pan, Chuan Zhou, Xiaojun Chang, and Xingquan Zhu. Unsupervised domain adaptive graph convolutional networks. In WWW, pp. 1457–1467, 2020.
235
+
236
+ Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In ICLR, 2019.
237
+
238
+ Bishan Yang, Wen-tau Yih, Xiaodong He, Jianfeng Gao, and Li Deng. Embedding entities and relations for learning and inference in knowledge bases. arXiv preprint arXiv:1412.6575, 2014.
239
+
240
+ Carl Yang, Peiye Zhuang, Wenhan Shi, Alan Luu, and Pan Li. Conditional structure generation through graph variational generative adversarial nets. In NIPS, pp. 1338–1349, 2019.
241
+
242
+ Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In KDD, 2018a.
243
+
244
+ Zhitao Ying, Jiaxuan You, Christopher Morris, Xiang Ren, Will Hamilton, and Jure Leskovec. Hierarchical graph representation learning with differentiable pooling. In NIPS, 2018b.
245
+
246
+ # A THEORY DETAILS
247
+
248
+ From the $\mathcal { L } _ { \mathrm { E G I } }$ objective, we have assumed $g _ { i } \stackrel { i . i . d . } { \sim } \mu , x _ { i } \stackrel { i . i . d . } { \sim } \nu$ , and $( g _ { i } , x _ { i } ) \stackrel { i . i . d . } { \sim } p$ . Then with graph $G$ , we have access to the empirical distributions of the three. So the sampling reduces to bootstrapping in the procedure of evaluating the objective.
249
+
250
+ Note that, in Eq. 2 of the main paper, we used a $d$ dimensional hidden state $h _ { p , q } ^ { \tilde { q } }$ , specified in Eq. 13 to denote an edge encoding derived from the structure of the ego-graph and the associated source node feature from $( p - 1 )$ -th layer. For simplicity, we consider the concatenated vector $f ( x ^ { i } ) \| z _ { i }$ , where $f ( x ^ { i } ) = h _ { p , q } ^ { \tilde { q } } \lVert x _ { p , q } ^ { i }$ and $\dot { h _ { p , q } ^ { q } } , x _ { p , q } ^ { i }$ are as defined in the EGI model and in 13. Additionally, since both of $h _ { p , q } ^ { \tilde { q } }$ and $x _ { p , q } ^ { i }$ are normalised, $f$ is bounded.
251
+
252
+ Finally, as we are considering GNN with $k$ layers, its computation only depends on the $\mathbf { k }$ -hop egographs of $G$ , which is an important consideration when unfolding the embedding of GNN at a centre node.
253
+
254
+ # A.1 PROOF FOR THEOREM 3.1
255
+
256
+ Lemma A.1. For any $A \in \mathbb { R } ^ { m \times n }$ , where $m \geq n$ , and $A$ is a submatrix of $B \in \mathbb { R } ^ { m ^ { \prime } \times n }$ , where $m < m ^ { \prime }$ , we have
257
+
258
+ $$
259
+ \| A \| _ { 2 } \leq \| B \| _ { 2 } .
260
+ $$
261
+
262
+ Proof. Note that, $A A ^ { T }$ is a principle matrix of $B B ^ { T }$ , i.e., $A A ^ { T }$ is obtained by removing the same set of rows and columns from $B B ^ { \hat { T } }$ . Then, by Eigenvalue Interlacing Theorem (Hwang (2004)) and the fact that $A ^ { T } A$ and $A A ^ { T }$ have the same set of non-zero singular values, the matrix operator norm satisfies $\| A \| _ { 2 } = \sqrt { \lambda _ { \operatorname* { m a x } } ( A ^ { T } A ) } = \sqrt { \lambda _ { \operatorname* { m a x } } ( A A ^ { T } ) } \leq \sqrt { \lambda _ { \operatorname* { m a x } } ( B B ^ { T } ) } = \| B \| _ { 2 } .$ □
263
+
264
+ We restate Theorem 3.1 from the main paper as below.
265
+
266
+ Theorem A.2 (GNN transferability). Let ${ \cal G } _ { a } = \{ ( g _ { i } , x _ { i } ) \} _ { i = 1 } ^ { n }$ and $G _ { b } = \{ ( g _ { i ^ { \prime } } , x _ { i ^ { \prime } } ) \} _ { i ^ { \prime } = 1 } ^ { m }$ be two graphs. Then denote $L _ { g _ { i } }$ as the (normalised) graph Laplacian of $g _ { i } \ \forall i = 1 , \cdot \cdot \cdot , n$ , and let the node features of $g _ { i }$ be structure-respecting and normalized (similarly for $g _ { i ^ { \prime } }$ ). Consider GNN $\Psi _ { \theta }$ with $k$ layers and a $^ { l }$ -hop polynomial filter $\phi _ { \theta }$ , the empirical performance difference of $\Psi _ { \theta }$ with $\phi _ { \theta }$ evaluated on $\mathcal { L } _ { \mathrm { E G I } }$ satisfies
267
+
268
+ $$
269
+ | \mathcal { L } _ { \mathrm { E G I } } ( G _ { a } ) - \mathcal { L } _ { \mathrm { E G I } } ( G _ { b } ) | \leq \mathcal { O } \left( M + \frac { 1 } { n m } \sum _ { i = 1 } ^ { n } \sum _ { i ^ { \prime } = 1 } ^ { m } \lambda _ { \operatorname* { m a x } } ( L _ { g _ { i } } - L _ { g _ { i ^ { \prime } } } ) ^ { 1 / 2 } \right) ,
270
+ $$
271
+
272
+ where $M$ is a constant dependant on $k$ $~ ; ~ \phi _ { \theta } , ~ \{ L _ { g _ { i } } \} , ~ \{ L _ { g _ { i ^ { \prime } } } \} , ~ \{ x _ { i } \} , ~ \{ x _ { i ^ { \prime } } \}$ . In addition, $i f \exists U \in$ $O ( n \vee m ) ^ { 4 } s . t .$ .,
273
+
274
+ $$
275
+ U L _ { g _ { i } } U ^ { T } = D i a g ( \lambda ( L _ { g _ { i } } ) ) , U L _ { g _ { i ^ { \prime } } } U ^ { T } = D i a g ( \lambda ( L _ { g _ { i ^ { \prime } } } ) )
276
+ $$
277
+
278
+ we have $\begin{array} { r } { \mathcal { O } \left( M + \frac { 1 } { n m } \sum _ { i = 1 } ^ { n } \sum _ { i ^ { \prime } = 1 } ^ { m } \| \lambda ( L _ { g _ { i } } ) - \lambda ( L _ { g _ { i ^ { \prime } } } ) \| _ { 2 } \right) } \end{array}$ , where $\lambda ( L _ { g _ { i } } )$ denotes the ordered eigenvalues of the graph Laplacian of $g _ { i } \in G _ { a }$ (similarly for $g _ { i ^ { \prime } }$ ).
279
+
280
+ Proof. We denote $\sigma _ { s } ( t ) = \log ( 1 + e ^ { t } )$ , the softplus activation function, which is 1-Lipschitz continuous. Now,
281
+
282
+ $$
283
+ \begin{array} { l } { | \mathcal { L } _ { \mathrm { E G I } } ( G ) - \mathcal { L } _ { \mathrm { E G I } } ( G ^ { \prime } ) | } \\ { = \displaystyle \left| \frac { 1 } { n ^ { 2 } } \sum _ { i , j = 1 } ^ { n } ( \mathcal { D } ( g _ { i } , z _ { j } ) ) - \frac { 1 } { n } \sum _ { i = 1 } ^ { n } ( - ( - \mathcal { D } ( g _ { i } , z _ { i } ) ) - ( \frac { 1 } { m ^ { 2 } } \sum _ { i ^ { \prime } , j ^ { \prime } = 1 } ^ { m } ( \mathcal { D } ( g _ { i ^ { \prime } } , z _ { j ^ { \prime } } ) ) - \frac { 1 } { m } \sum _ { i ^ { \prime } = 1 } ^ { m } ( - \mathcal { D } ( g _ { i ^ { \prime } } , z _ { i ^ { \prime } } ) ) ) \right| } \\ { \displaystyle \lesssim \frac { 1 } { n ^ { 2 } m ^ { 2 } } \sum _ { i , j = 1 } ^ { n } \sum _ { i ^ { \prime } , j ^ { \prime } = 1 } ^ { m } | \mathcal { D } ( g _ { i } , z _ { j } ) - \mathcal { D } ( g _ { i ^ { \prime } } , z _ { j ^ { \prime } } ) | + \frac { 1 } { n m } \sum _ { i = 1 } ^ { n } \sum _ { i ^ { \prime } = 1 } ^ { m } | \mathcal { D } ( g _ { i } , z _ { i } ) - \mathcal { D } ( g _ { i ^ { \prime } } , z _ { i ^ { \prime } } ) | } \\ { = \displaystyle \frac { 1 } { n ^ { 2 } m ^ { 2 } } \sum _ { i , j = 1 } ^ { n } \sum _ { i ^ { \prime } , j ^ { \prime } = 1 } ^ { m } A + \frac { 1 } { n m } \sum _ { i = 1 } ^ { n } \sum _ { i ^ { \prime } = 1 } ^ { m } B . } \end{array}
284
+ $$
285
+
286
+ First we consider $B$ . Recall that, $V _ { p } ( g _ { i } )$ is the set of nodes in layer $p$ of $g _ { i }$ ,
287
+
288
+ $$
289
+ \mathcal { D } ( g _ { i } , z _ { i } ) = \sum _ { p = 1 } ^ { k } \sum _ { q = 1 } ^ { | V _ { p } ( g _ { i } ) | } \log ( \sigma _ { s i g } \left( U ^ { T } \tau \left( W ^ { T } [ f ( x ^ { i } ) \| z _ { i } ] \right) \right) ) ,
290
+ $$
291
+
292
+ where $\begin{array} { r } { \sigma _ { s i g } ( t ) = \frac { 1 } { 1 + e ^ { - t } } } \end{array}$ is the sigmoid function, $\tau$ is some $\gamma _ { \tau }$ -Lipschitz activation function and [·k·] denotes the concatenation of two vectors. Then we have
293
+
294
+ $$
295
+ U ^ { T } \tau \left( W ^ { T } [ f ( x ^ { i } ) \| z _ { i } ] \right) = U ^ { T } \tau \left( W _ { 1 } ^ { T } f ( x ^ { i } ) + W _ { 2 } ^ { T } z _ { i } \right) .
296
+ $$
297
+
298
+ WLOG, assume $d _ { p } = | V _ { p } ( g _ { i } ) | = | V _ { p } ( g _ { i ^ { \prime } } ) | \ \forall u = 1 , \cdots , k$ . In addition, since $\log ( \sigma _ { s i g } ( t ) ) =$ $- \log ( 1 + e ^ { - t } ) = { \dot { - } } \sigma _ { s } ( { \dot { - t } } )$ , which is 1-Lipschitz, it gives
299
+
300
+ $$
301
+ \begin{array} { r l } & { B \leq \displaystyle \sum _ { p = 1 } ^ { k } \displaystyle \sum _ { q = 1 } ^ { d _ { p } } | U ^ { T } \tau \left( W _ { 1 } ^ { T } f ( x ^ { i } ) + W _ { 2 } ^ { T } z _ { i } \right) - U ^ { T } \tau \left( W _ { 1 } ^ { T } f ( x ^ { i ^ { \prime } } ) + W _ { 2 } ^ { T } z _ { i ^ { \prime } } \right) | } \\ & { \quad \leq \gamma _ { \tau } s _ { U } \displaystyle \sum _ { p = 1 } ^ { k } \sum _ { q = 1 } ^ { d _ { p } } ( \| W _ { 1 } ^ { T } f ( x ^ { i } ) - W _ { 1 } ^ { T } f ( x ^ { i ^ { \prime } } ) \| _ { 2 } + \| W _ { 2 } ^ { T } z _ { i } - W _ { 2 } ^ { T } z _ { i ^ { \prime } } \| _ { 2 } ) } \\ & { \qquad \leq \gamma _ { \tau } s _ { U } s _ { W } \displaystyle \sum _ { p = 1 } ^ { k } \sum _ { q = 1 } ^ { d _ { p } } ( \| f ( x ^ { i } ) - f ( x ^ { i ^ { \prime } } ) \| _ { 2 } + \| z _ { i } - z _ { i ^ { \prime } } \| _ { 2 } ) , } \end{array}
302
+ $$
303
+
304
+ where $s _ { U }$ is the largest singular value of $U$ , and similarly $s _ { W } = s _ { W _ { 1 } } \vee s _ { W _ { 2 } }$ . Since we assumed the node features are normalised, then $\| f ( x ^ { i } ) - f ( x ^ { i ^ { \prime } } ) \| _ { 2 } \leq c _ { D }$ .
305
+
306
+ From Eq. 7, we only care about $x _ { i }$ ’s embedding obtained from a $k$ -layer GNN with 1-hop polynomial (linear in $L$ ) filter. Inspired by the characterization of GNN from a node-wise view in Verma & Zhang (2019), we similarly denote the embedding of node $x _ { i } \forall i = 1 , \cdots , n$ in the final layer of the GNN as
307
+
308
+ $$
309
+ z _ { i } ^ { k } = z _ { i } = \Psi _ { \theta } ( x _ { i } ) = \sigma ( \sum _ { j \in \mathcal { N } ( x _ { i } ) } e . _ { j } z _ { j } ^ { k - 1 } ) \in \mathbb { R } ^ { d } ,
310
+ $$
311
+
312
+ where $e _ { \cdot j } = [ \phi _ { \theta } ( L ) ] _ { \cdot j } \in \mathbb { R }$ . We may denote $z _ { i } ^ { \ell } \in \mathbb { R } ^ { d }$ similarly for $\ell = 1 , \cdots , k - 1$ , and $z _ { i } ^ { 0 } = x _ { i } \in$ $\mathbb { S } ^ { d - 1 }$ the node feature of node $x _ { i }$ . With the assumption of GNN stated in the statement, it is clear that only the $\mathrm { k }$ -hop ego-graph $g _ { i }$ centered at $x _ { i }$ is needed to compute $z _ { i } ^ { k }$ for any $i = 1 , \cdots , n$ instead of the whole of $G$ . With such observation in mind, let us denote the matrix of node embeddings of $g _ { i }$ at the $\ell$ th layer as $( z _ { p , q } ^ { i ( \ell ) } ) \in \mathbb { R } ^ { | V ( g _ { i } ) | \times d }$ , for $\ell = 1 , \cdots , k$ ; and let $( z _ { p , q } ^ { i ( 0 ) } ) \equiv ( x _ { p , q } ^ { i } ) \in ( \mathbb { S } ^ { d - 1 } ) ^ { | \bar { V } ( g _ { i } ) | }$ denote the matrix of node features in the $k$ -hop ego-graph $g _ { i }$ . In addition, we denote $( z _ { p , q } ^ { i ( \ell ) } ) _ { p \leq t }$ to be the submatrix that is obtained by selecting rows that corresponds to $v \in V _ { p } ( g _ { i } )$ for $p = 0 , \cdots , t \leq k$ Similarly for $g _ { i ^ { \prime } }$ .
313
+
314
+ Moreover, let us denote $\phi _ { \theta } ( L _ { g _ { i } } ) \equiv [ \phi _ { \theta } ( L ) ] _ { g _ { i } }$ , i.e., the filtered full graph Laplacian of $G$ subsetted by the $\mathbf { k }$ -hop ego-graph $g _ { i }$ . Then, let $\phi _ { \theta } ( L _ { g _ { i } } ) _ { p \leq t }$ denotes the submatrix that is obtained by selecting rows and columns that corresponds to $v \in V _ { p } ( g _ { i } )$ for $p = 0 , \cdots , t \leq k$ . Similarly for $g _ { i ^ { \prime } }$ .
315
+
316
+ Therefore, by Lemma A.1, for any $\ell = 1 , \cdots , k$ , the following holds
317
+
318
+ $$
319
+ \| ( z _ { p , q } ^ { i ^ { \prime } ( \ell ) } ) _ { p \leq t } - ( z _ { p , q } ^ { i ^ { \prime } ( \ell ) } ) _ { p \leq t } \| _ { 2 } \leq \| ( z _ { p , q } ^ { i ^ { \prime } ( \ell ) } ) _ { p \leq t + 1 } - ( z _ { p , q } ^ { i ^ { \prime } ( \ell ) } ) _ { p \leq t + 1 } \| _ { 2 } .
320
+ $$
321
+
322
+ Assume $\| ( z _ { p , q } ^ { i ^ { \prime } ( \ell - 1 ) } ) \| _ { 2 } \leq c _ { z } < \infty \forall \ell$ . Now, at the final layer,
323
+
324
+ $$
325
+ \begin{array} { r l } & { \| z _ { i } - z _ { i ^ { \prime } } \| _ { 2 } = \| ( z _ { p , q } ^ { i ^ { \prime } ( k ) } ) _ { p = 0 } - ( z _ { p , q } ^ { i ^ { \prime } ( k ) } ) _ { p = 0 } \| _ { 2 } } \\ & { \le \| [ \sigma ( \phi _ { \theta } ( L _ { g _ { i } } ) _ { p \le 1 } ( z _ { p , q } ^ { i ( k - 1 ) } ) _ { p \le 1 } ) - \sigma ( \phi _ { \theta } ( L _ { g _ { i ^ { \prime } } } ) _ { p \le 1 } ( z _ { p , q } ^ { i ^ { \prime } ( k - 1 ) } ) _ { p \le 1 } ) ] _ { p = 0 } \| _ { 2 } } \\ & { \le \gamma _ { \sigma } \| \phi _ { \theta } ( L _ { g _ { i } } ) _ { p \le 1 } ( z _ { p , q } ^ { i ( k - 1 ) } ) _ { p \le 1 } - \phi _ { \theta } ( L _ { g _ { i ^ { \prime } } } ) _ { p \le 1 } ( z _ { p , q } ^ { i ^ { \prime } ( k - 1 ) } ) _ { p \le 1 } \| _ { 2 } } \\ & { \le \gamma _ { \sigma } \| \phi _ { \theta } ( L _ { g _ { i } } ) _ { p \le 1 } \| _ { 2 } \| ( z _ { p , q } ^ { i ( k - 1 ) } ) _ { p \le 1 } - ( z _ { p , q } ^ { i ^ { \prime } ( k - 1 ) } ) _ { p \le 1 } \| _ { 2 } } \\ & { + \gamma _ { \sigma } \| ( z _ { p , q } ^ { i ^ { \prime } ( k - 1 ) } ) _ { p \le 1 } \| _ { 2 } \| \phi _ { \theta } ( L _ { g _ { i } } ) _ { p \le 1 } - \phi _ { \theta } ( L _ { g _ { i ^ { \prime } } } ) _ { p \le 1 } \| _ { 2 } } \\ & { \le \gamma _ { \sigma } \| \phi _ { \theta } ( L _ { g _ { i } } ) \| _ { 2 } \| ( z _ { p , q } ^ { i ( k - 1 ) } ) _ { p \le 1 } - ( z _ { p , q } ^ { i ^ { \prime } ( k - 1 ) } ) _ { p \le 1 } \| _ { 2 } . } \end{array}
326
+ $$
327
+
328
+ In general, for $\ell = 1 , \cdots , k - 1$ , the following holds with $t = k - \ell$ ,
329
+
330
+ $$
331
+ \begin{array} { r l } & { \quad \| ( z _ { p , q } ^ { i ^ { \prime } ( \ell ) } ) _ { p \leq t } - ( z _ { p , q } ^ { i ^ { \prime } ( \ell ) } ) _ { p \leq t } \| _ { 2 } } \\ & { \leq \gamma _ { \sigma } \| \phi _ { \theta } ( L _ { g _ { i } } ) _ { p \leq t + 1 } ( z _ { p , q } ^ { i ( \ell - 1 ) } ) _ { p \leq t + 1 } - \phi _ { \theta } ( L _ { g _ { i ^ { \prime } } } ) _ { p \leq t + 1 } ( z _ { p , q } ^ { i ^ { \prime } ( \ell - 1 ) } ) _ { p \leq t + 1 } \| _ { 2 } } \\ & { \leq \gamma _ { \sigma } \| \phi _ { \theta } ( L _ { g _ { i } } ) \| _ { 2 } \| ( z _ { p , q } ^ { i ( \ell - 1 ) } ) _ { p \leq t + 1 } - ( z _ { p , q } ^ { i ^ { \prime } ( \ell - 1 ) } ) _ { p \leq t + 1 } \| _ { 2 } + \gamma _ { \sigma } c _ { z } \| \phi _ { \theta } ( L _ { g _ { i } } ) - \phi _ { \theta } ( L _ { g _ { i ^ { \prime } } } ) \| _ { 2 } . } \end{array}
332
+ $$
333
+
334
+ Then we equivalently write Eq. 9 as $E _ { \ell } \leq b E _ { \ell - 1 } + a$ , which gives
335
+
336
+ $$
337
+ E _ { \ell } \leq b ^ { \ell } E _ { 1 } + \frac { b ^ { \ell } + 1 } { b - 1 } a .
338
+ $$
339
+
340
+ Then, with $( x _ { p , q } ^ { i } ) = ( z _ { p , q } ^ { i ( 0 ) } )$ , we see the following is only dependant on the structure of $g _ { i }$ and $g _ { i ^ { \prime } }$
341
+
342
+ $$
343
+ \begin{array} { r l } & { \| ( \boldsymbol { z } _ { p , q } ^ { i ^ { \prime } ( \ell ) } ) - ( \boldsymbol { z } _ { p , q } ^ { i ^ { \prime } ( \ell ) } ) \| _ { 2 } \leq \gamma _ { \sigma } ^ { \ell } \| \phi _ { \theta } ( L _ { g _ { i } } ) \| _ { 2 } ^ { \ell } \| ( \boldsymbol { x } _ { p , q } ^ { i } ) - ( \boldsymbol { x } _ { p , q } ^ { i ^ { \prime } } ) \| _ { 2 } } \\ & { \phantom { = } + \frac { \gamma _ { \sigma } ^ { \ell } \| \phi _ { \theta } ( L _ { g _ { i } } ) \| _ { 2 } ^ { \ell } + 1 } { \gamma _ { \sigma } \| \phi _ { \theta } ( L _ { g _ { i } } ) \| _ { 2 } - 1 } \gamma _ { \sigma } c _ { z } \| \phi _ { \theta } ( L _ { g _ { i } } ) - \phi _ { \theta } ( L _ { g _ { i ^ { \prime } } } ) \| _ { 2 } . } \end{array}
344
+ $$
345
+
346
+ Since the features are normalised, and so are the graph Laplacians, we have $\| \phi _ { \theta } ( L _ { g _ { i } } ) \| _ { 2 } \leq c _ { L }$ and $\| ( x _ { p , q } ^ { i } ) - ( x _ { p , q } ^ { i ^ { \prime } } ) ) \| _ { 2 } \leq c _ { x }$ . Then with Eq. 8, we have
347
+
348
+ $$
349
+ \begin{array} { r l } & { \| z _ { i } - z _ { i ^ { \prime } } \| _ { 2 } \leq \gamma _ { \sigma } ^ { k } c _ { L } ^ { k } c _ { x } + \frac { \gamma _ { \sigma } ^ { k } c _ { L } ^ { k } + 1 } { \gamma _ { \sigma } c _ { L } - 1 } \gamma _ { \sigma } \gamma _ { \theta } c _ { z } \| L _ { g _ { i } } - L _ { g _ { i ^ { \prime } } } \| _ { 2 } } \\ & { \qquad \leq c _ { \gamma , \Psi } ( M + \| L _ { g _ { i } } - L _ { g _ { i ^ { \prime } } } \| _ { 2 } ) } \\ & { \qquad = c _ { \gamma , \Psi } ( M + \lambda _ { \operatorname* { m a x } } ( L _ { g _ { i } } - L _ { g _ { i ^ { \prime } } } ) ^ { 1 / 2 } ) . } \end{array}
350
+ $$
351
+
352
+ Now, by Eq. 7, we have
353
+
354
+ $$
355
+ B \leq k d _ { \operatorname* { m a x } } \gamma _ { \tau } s ( c _ { D } + c _ { \gamma , \Psi } ( M + \lambda _ { \operatorname* { m a x } } ( L _ { g _ { i } } - L _ { g _ { i ^ { \prime } } } ) ^ { 1 / 2 } ) ) ,
356
+ $$
357
+
358
+ where $d _ { \operatorname* { m a x } } = \operatorname* { m a x } _ { p } d _ { p }$ . Similarly, the above holds for $A$ , since from Eq. 8, the node features and embedded features are bounded by separate terms. We therefore arrive at
359
+
360
+ $$
361
+ \begin{array} { r l } { | \mathcal { L } _ { \mathrm { E G I } } ( G ) - \mathcal { L } _ { \mathrm { E G I } } ( G ^ { \prime } ) | \leq 2 k d _ { \operatorname* { m a x } } \gamma _ { \tau } c _ { \gamma , \Psi } s ( M ^ { \prime } + \cfrac { 1 } { n m } \displaystyle \sum _ { i = 1 } ^ { n } \displaystyle \sum _ { i ^ { \prime } = 1 } ^ { m } \lambda _ { \operatorname* { m a x } } ( L _ { g _ { i } } - L _ { g _ { i ^ { \prime } } } ) ^ { 1 / 2 } ) ) } & { } \\ { \leq 2 k d _ { \operatorname* { m a x } } \gamma _ { \tau } c _ { \gamma , \Psi } s ( M ^ { \prime } + \cfrac { 1 } { n m } \displaystyle \sum _ { i = 1 } ^ { n } \displaystyle \sum _ { i ^ { \prime } = 1 } ^ { m } \| L _ { g _ { i } } - L _ { g _ { i ^ { \prime } } } \| _ { F } ) ) . } & { } \end{array}
362
+ $$
363
+
364
+ Moreover, by Von Neumann’s Trace Inequality Grigorieff (1991), if $\exists U \in O ( \beta ) ^ { 5 }$ , where $\beta =$ $\textstyle \sum _ { p = 0 } ^ { k } d _ { p }$ , s.t.
365
+
366
+ $$
367
+ U L _ { g _ { i } } U ^ { T } = \mathrm { D i a g } ( \lambda ( L _ { g _ { i } } ) ) , \quad U L _ { g _ { i ^ { \prime } } } U ^ { T } = \mathrm { D i a g } ( \lambda ( L _ { g _ { i ^ { \prime } } } ) ) ,
368
+ $$
369
+
370
+ we have $\Vert L _ { g _ { i } } - L _ { g _ { i ^ { \prime } } } \Vert _ { F } = \Vert \lambda ( L _ { g _ { i } } ) - \lambda ( L _ { g _ { i ^ { \prime } } } ) \Vert _ { 2 }$ , then E $q . \ 1 1 \leq c _ { \gamma , \Psi } ( M + \| \lambda ( L _ { g _ { i } } ) - \lambda ( L _ { g _ { i ^ { \prime } } } ) \| _ { 2 } ) .$
371
+
372
+ Therefore Eq. 11 becomes
373
+
374
+ $$
375
+ | \mathcal { L } _ { \mathrm { E G I } } ( G ) - \mathcal { L } _ { \mathrm { E G I } } ( G ^ { \prime } ) | \leq 2 k d _ { \operatorname* { m a x } } \gamma _ { \tau } c _ { \gamma , \Psi } s ( M ^ { \prime } + \frac { 1 } { n m } \sum _ { i = 1 } ^ { n } \sum _ { i ^ { \prime } = 1 } ^ { m } \| \lambda ( L _ { g _ { i } } ) - \lambda ( L _ { g _ { i ^ { \prime } } } ) \| _ { 2 } ) .
376
+ $$
377
+
378
+ Note that, our view of structural information is closely related to graph kernels (Bai & Hancock, 2016) and graph perturbation (Verma & Zhang, 2019). Specifically, our Def 2.1 is motivated by the concept of k-layer expansion sub-graph in (Bai & Hancock, 2016). However, (Bai & Hancock, 2016) used the Jensen-Shannon divergence between pairwise representations of sub-graphs to define a depth-based sub-graph kernel, while we depict $G$ as samples of its ego-graphs. In this sense, our view is related to the setup in (Verma & Zhang, 2019), which derived a uniform algorithmic stability bound of a 1-layer GNN under 1-hop structure perturbation of $G$ .
379
+
380
+ In the setting of domain adaptation, (Ben-David et al., 2007) draws a connection between the difference in the distributions of source and target domains and the model transferability, and learns a transferable model by minimizing such distribution differences. This coincides with our approach of connecting the structure difference of two graphs in terms of k-hop subgraph distributions and the transferability of GNNs in the above theory.
381
+
382
+ # B MODEL DETAILS
383
+
384
+ Following the same notations used in the paper, EGI consists of a GNN encoder $\Psi$ and a GNN discriminator $\mathcal { D }$ . In general, the GNN encoder $\Psi$ and decoder $\mathcal { D }$ can be any existing GNN models. For each ego-graph and its node features $\{ g _ { i } , x _ { i } \}$ , the GNN encoder returns node embedding $z _ { i }$
385
+
386
+ for the center node $v _ { i }$ . As mentioned in Eq. 2 in the main paper, the GNN discriminator $\mathcal { D }$ makes edge-level predictions as follows,
387
+
388
+ $$
389
+ \begin{array} { r } { \mathcal { D } ( e _ { \tilde { v } v } | h _ { p , q } ^ { \tilde { q } } , x _ { p , q } ^ { i } , z _ { i } ) = \sigma \left( U ^ { T } \cdot \tau \left( W ^ { T } [ h _ { p , q } ^ { \tilde { q } } | | x _ { p , q } ^ { i } | | z _ { i } ] \right) \right) , } \end{array}
390
+ $$
391
+
392
+ where $e _ { \tilde { v } v } \in E ( g _ { i } )$ and $h _ { p , q } ^ { \tilde { q } } \in \mathbb { R } ^ { d }$ is the representation for edge $e _ { \tilde { v } v }$ between node $v _ { p - 1 , \tilde { q } }$ in hop $p - 1$ and $v _ { p , q }$ in hop $p$ . Specifically, we denote the source node at $p - 1$ hop as $\tilde { q } \in \tilde { Q } _ { p , q } , \tilde { Q } _ { p , q } = \{ \tilde { q } :$ $v _ { p - 1 , \tilde { q } } \in \mathring { V _ { p - 1 } } ( g _ { i } ) , e _ { ( p - 1 , \tilde { q } ) ( p , q ) } \in E ( g _ { i } ) \} .$ . Hence, the edge prediction relies on the combination of center node embedding $z _ { i }$ , destination node feature $x _ { p , q } ^ { i }$ and edge message $h _ { p , q } ^ { \tilde { q } }$ .
393
+
394
+ ![](images/78244400e465c2f93dcfab6aaa6d1990ba9d87a58f167864090264378f9cd696.jpg)
395
+ Figure 3: The overall EGI training framework.
396
+
397
+ In Figure 3, $\{ g _ { i } , x _ { i } \}$ and $\{ g _ { i } ^ { \prime } , x _ { i } ^ { \prime } \}$ are the positive and negative training samples w.r.t ego-graph topology $g _ { i }$ . The discriminator $\mathcal { D }$ operates on a reversed ego-graph $\tilde { g } _ { i }$ comparing encoder’s forward propagation on $g _ { i }$ . It starts from the center node $v _ { i }$ and compute the hidden representation $m _ { p - 1 , \tilde { q } }$ for node $v _ { p - 1 , q }$ at each hop. The edge message $h _ { p , q } ^ { \tilde { q } }$ is calculated between source node’s hidden representation $m _ { p - 1 , \tilde { q } }$ and destination node features $x _ { p , q }$ .
398
+
399
+ $$
400
+ h _ { p , q } ^ { \tilde { q } } = \mathrm { R e L U } \left( W _ { p } ^ { T } \left( m _ { p - 1 , \tilde { q } } + x _ { p , q } ^ { i } \right) \right) , m _ { p - 1 , \tilde { q } } = \frac { 1 } { | \tilde { Q } _ { p - 1 , \tilde { q } } | } \sum _ { q ^ { \prime } \in \tilde { Q } _ { p - 1 \tilde { q } } } h _ { p - 1 , \tilde { q } } ^ { q ^ { \prime } }
401
+ $$
402
+
403
+ When $p = 1$ , every edge origins from the center node $v _ { i }$ and $m _ { 0 , q ^ { \prime } }$ is the center node feature $\boldsymbol { x } _ { v _ { i } }$
404
+
405
+ In every batch, we sample a set of ego-graphs and their node features $\{ g _ { i } , x _ { i } \}$ . During the forward pass of encoder $\Psi$ , it aggregates from neighbor nodes to the center node $v _ { i }$ . Then, the discriminator calculates the edge embedding in Eq. 12 from center node $v _ { i }$ to its neighbors and make edge-level predictions– fake or true. The training framework of EGI is depicted in Figure 3 and Algorithm 1.
406
+
407
+ We implement our method and all of the baselines using the same encoders $\Psi \colon 2 \cdot$ -layer GIN ( $\mathrm { X u }$ et al., 2019) for synthetic and role identification experiments, 2-layer GraphSAGE (Hamilton et al., 2017) for the relation prediction experiments. We set hidden dimension as 32 for both synthetic and role identification experiments, For relation prediction fine-tuning task, we set hidden dimension as 256. We train EGI in a mini-batch fashion since all the information for encoder and discriminators are within the $\mathbf { k }$ -hop ego-graph $g _ { i }$ and its features $x _ { i }$ . Further, we conduct neighborhood sampling and set maximum neighbors as 10 to speed up the parrallel training. The space and time complexity of EGI is $O ( B N ^ { K } )$ , where $B$ is the batch size, $N$ is the number of the neighbors and $\mathrm { k }$ is the number of hops of ego-graphs. Notice that both the encoder $\Psi$ and discriminator $\mathcal { D }$ propagate message on the $\mathbf { k }$ -hop ego-graphs, so the extra computation cost of $\mathcal { D }$ compared with a common GNN module is a constant multiplier over the original one. The scalability of EGI on million scale YAGO network is reported in section C.3.
408
+
409
+ # B.1 TRANSFER LEARNING SETTINGS
410
+
411
+ The goal of transfer learning is to train a model on a dataset or task, and use it on another. In our graph learning setting, we focus on training the model on one graph and using it on another. In particular, we focus our study on the setting of direct-transfering, where the model learned on the source graph is directly applied on the target graph without fine-tuning. We study this setting because
412
+
413
+ # Algorithm 1: Pseudo code for training EGI
414
+
415
+ 1 The GNN encoder $\Psi$ and the GNN discriminator $\mathcal { D }$ , k-hop ego graph and features $\{ g _ { i } , x _ { i } \}$ ;
416
+ 2 $/ *$ EGI-training starts $^ { * }$
417
+ 3 while $\mathcal { L } _ { \mathrm { E G I } }$ not converges do
418
+ 4 Sample M ego-graphs $\{ ( g _ { 1 } , x _ { 1 } ) , . . . , ( g _ { M } , x _ { M } ) \}$ from empirical distribution $\mathbb { P }$ without
419
+ replacement, and obtained their positive and negative node embeddings $z _ { i } , z _ { i } ^ { \prime }$ through $\Psi$
420
+ $z _ { i } = \Psi ( g _ { i } , x _ { i } ) , z _ { i } ^ { \prime } = \Psi ( g _ { i } ^ { \prime } , x _ { i } ^ { \prime } )$ ,
421
+ $/ *$ Initialize positive and negative expectation in Eq. 1 in the main paper\*/
422
+ 5 $E _ { p o s } = 0 , E _ { n e g } = 0$
423
+ 6 for $p = { \cal I }$ to $k$ do
424
+ 7 $/ { } ^ { * }$ Compute JSD on edges at each hop\*/
425
+ 8 for $e _ { ( p - 1 , \tilde { q } ) ( p , q ) } \in E ( g _ { i } )$ do
426
+ 9 generate edge embedding $h _ { p , q } ^ { \tilde { q } }$ in Eq. (13) ;
427
+ 10 $E _ { \mathrm { p o s } } = E _ { \mathrm { p o s } } + \sigma \left( U ^ { T } \cdot \tau \left( \dot { W } ^ { \bar { T } } [ h _ { p , q } ^ { \tilde { q } } | | x _ { p , q } ^ { i } | | z _ { i } ] \right) \right)$
428
+ 11 $E _ { \mathrm { n e g } } = E _ { \mathrm { n e g } } + \sigma \left( U ^ { T } \cdot \tau \left( W ^ { T } [ h _ { p , q } ^ { \tilde { q } } | | x _ { p , q } ^ { i } | | z _ { i } ^ { \prime } ] \right) \right)$
429
+ 12 end
430
+ 13 end
431
+ 14 $/ { * }$ Compute batch loss\*/
432
+ 15 $\mathcal { L } _ { \mathrm { E G I } } = E _ { \mathrm { n e g } } - E _ { \mathrm { p o s } }$
433
+ 16 $/ { * }$ Update Ψ, D \*/
434
+ 17 $\theta _ { \Psi } \stackrel { + } { } - \nabla _ { \Psi } \mathcal { L } _ { \mathrm { E G I } } , \theta _ { \mathcal { D } } \stackrel { + } { } - \nabla _ { \mathcal { D } } \mathcal { L } _ { \mathrm { E G I } }$
435
+ 18 end
436
+
437
+ it allows us to directly measure the transferability of GNNs, which is not affected by the fine-tuning process on the target graph. In other words, the fine-tuning process introduces significant uncertainty to the analysis, because there is no guarantee on how much the fine-tuned GNN is different from the pre-trained one. Depending on specific tasks and labels distributions on the two graphs, the fine-tuned GNN might be quite similar to the pre-trained one, or it can be significantly different. It is then very hard to analyze how much the pre-trained GNN itself is able to help. Another reason is about efficiency. The fine-tuning of GNNs requires the same environment set-up and computation resource as training GNNs from scratch, although it may take less training time eventually if pre-training is effective. It is intriguing if this whole process can be eliminated when we guarantee the performance with direct-transfering.
438
+
439
+ In our experiments, we also study the setting of transfer learning with fine-tuning, particularly on the real-world large-scale YAGO graphs. Since we aim to study the general transferability of GNNs not bounded to specific tasks, we always pre-train GNNs with the unsupervised pre-training objective on source graphs. Then we enable two types of fine-tuning. The first one is post-fine-tuning $\mathcal { L } = \mathcal { L } _ { s } $ ), where the pre-trained GNNs are fine-tuned with the supervised task specific objective $\mathcal { L } _ { s }$ on the target graphs. The second on is joint-fine-tuning $\mathcal { L } = \mathcal { L } _ { s } + \mathcal { L } _ { u } )$ , where pre-training is the same, but fine-tuning is done w.r.t. both the pre-training objective $\mathcal { L } _ { u }$ and task specific objective $\mathcal { L } _ { s }$ on target graphs in a semi-supervised learning fashion. The unsupervised pre-training objective $\mathcal { L } _ { u }$ of EGI is Algorithm 1, while those of the compared algorithms are as defined in their papers. The supervised fine-tuning objective $\mathcal { L } _ { s }$ is the same as in the DistMult paper (Yang et al., 2014) for all algorithms.
440
+
441
+ # C EXPERIMENT DETAILS
442
+
443
+ # C.1 SYNTHETIC EXPERIMENTS
444
+
445
+ Data. As mentioned in the main paper, we use two traditional graph generation models for synthetic data generation: (1) barabasi-albert graph (Barabási & Albert, 1999) and (2) forest-fire graph (Leskovec et al., 2005). We generate 40 graphs each with 100 nodes with each model. We control the parameters of two models to generate two graphs with different ego-graph distributions. Specifically, we set the number of attached edges as 2 for barabasi-albert model and set $p _ { \mathrm { f o r w a r d } } = 0 . 4$ $p _ { \mathrm { b a c k w a r d } } = 0 . 3$ for forest-fire model. In Figure 4a and 4b, we show example graphs from two families in our datasets. They have the same size but different appearance which leads to our study on the transferability gap in Table 1 in the main paper. The accuracy of this task defined as the percentage of nearest neighbors for target node in the embedding space that are structure-equivalent, i.e. #correct $\mathbf { k }$ -nn neighbors / #ground truth equivalent nodes.
446
+
447
+ ![](images/d3a15bcb740875167a635a7c53285ffefcd70103039cef540b267f21d00debab.jpg)
448
+ Figure 4: Visualizations of the graphs and labels we use in the synthetic experiments.
449
+
450
+ Results. The structural equivalence label is obtained by a 2-hop WL-test (Weisfeiler & Lehman, 1968) on the ego-graphs. If two nodes have the same 2-hop ego-graphs, they will be assigned the same label. In the example of Figure 4c, the nodes labeled with same number (e.g. 2, 4) have the isomorphic 2-hop ego-graphs. Note that this task is exactly solvable when node features and GNN architectures are powerful enough like GIN (Xu et al., 2019). In order to show the performance difference among different methods, we set the length of one-hot node degree encoding to 3 (all nodes with degrees higher than 3 have the same encoding). Here, we present the performance comparison with different length of degree encodings (d) in Table 4. When the capacity of initial node features is high $\mathrm { ( d = 1 0 }$ ), the transfer learning gap diminishes between different methods and different graphs because the structural equivalence problem can be exactly solved by neighborhood aggregations. However, when the information in initial node features is limited, the advantage of EGI in learning and transfering the graph structural information is obvious. In Table 5, we also show the performance of different transferable and non-transferable features, i.e. node embedding (Perozzi et al., 2014) and random feature vectors. The observation is similar with Table 1 in the main paper: the transferable feature can reflect the performance gap between similar and dissimilar graphs while non-transferable features can not.
451
+
452
+ In both Table 4 and 7 here as well as Table 1 in the main paper, we report the structural difference among graphs in the two sets ( ¯d) calculated w.r.t. the term 1nm Pni=1 Pmi0=1 kλ(Lgi ) − λ(Lgi0 )k2 on similar to the other Forest fire graphs, while less similar to the Barabasi graphs, as can be verified from Figure 4a and 4b. Our bound in Theorem 3.1 then tells us that the GNNs (in particular, EGI) should be more transferable in the F-F case than B-F. This is verified in Table 4 and 5 when using the transferable node features of degree encoding with limited dimension $\left( \mathrm { d } \mathrm { = } 3 \right)$ as well as DeepWalk embedding, as EGI trained on Forest fire graphs performs significantly better on Forest fire graphs than on Barabasi graphs (with $+ 0 . 0 9 4$ and $+ 0 . 0 5 7$ differences, respectively).
453
+
454
+ Table 4: Synthetic experiments of identifying structural-equivalent nodes with different degree encoding dimensions.
455
+
456
+ <table><tr><td rowspan="2">Method</td><td colspan="3">#dim degree encoding d= 3</td><td colspan="3"># dim degree encoding d = 10</td><td colspan="2">structural difference</td></tr><tr><td>F-F</td><td>B-F</td><td>△</td><td>F-F</td><td>B-F</td><td>△</td><td>d(F,F)</td><td>d(B,F)</td></tr><tr><td>GCN (untrained)</td><td>0.478</td><td>0.478</td><td>/</td><td>0.940</td><td>0.940</td><td>/</td><td></td><td></td></tr><tr><td>GIN (untrained)</td><td>0.572</td><td>0.572</td><td>/</td><td>0.940</td><td>0.940</td><td>/</td><td></td><td></td></tr><tr><td>GVAE (GCN)</td><td>0.498</td><td>0.432</td><td>+0.066</td><td>0.939</td><td>0.937</td><td>0.002</td><td>1.78</td><td>2.17</td></tr><tr><td>DGI (GIN)</td><td>0.578</td><td>0.591</td><td>-0.013</td><td>0.939</td><td>0.941</td><td>-0.002</td><td></td><td></td></tr><tr><td>EGI (GIN)</td><td>0.710</td><td>0.616</td><td>+0.094</td><td>0.942</td><td>0.942</td><td>0</td><td></td><td></td></tr></table>
457
+
458
+ # C.2 REAL-WORLD ROLE IDENTIFICATION EXPERIMENTS
459
+
460
+ Data. We report the number of nodes, edges and classes for both airport and gene dataset. The numbers for the Gene dataset are the aggregations of the total 52 gene networks in the dataset. For the three airport networks, Figure 5 shows the power-law degree distribution on log-log scale. The class labels are between 0 to 3 reflecting the level of the airport activities (Ribeiro et al., 2017). For the Gene dataset, we matched the gene names in the TCGA dataset (Yang et al., 2019) to the list of transcription factors on wikipedia6. $7 5 \%$ of the genes are marked as 1 (transcription factors) and some gene graphs have extremely imbalanced class distributions. So we conduct experiments on the relatively balanced gene graphs of brain cancers (Figure 2 in the main paper). Both datasets do not have organic node attributes. The role-based node labels are highly relevant to their local graph structures, but are not trivially computable such as from node degrees.
461
+
462
+ Table 5: Synthetic experiments of identifying structural-equivalent nodes with different transferable and nontransferable features.
463
+
464
+ <table><tr><td rowspan="2">Method</td><td colspan="3">Deep Walk embedding</td><td colspan="3">random vectors</td><td rowspan="2">structural difference d(F,F)</td><td rowspan="2">d(B.F)</td></tr><tr><td>F-F</td><td>B-F</td><td>△</td><td>F-F</td><td>B-F</td><td>△</td></tr><tr><td>GCN (untrained)</td><td>0.658</td><td>0.658</td><td>/</td><td>0.246</td><td>0.246</td><td>1</td><td rowspan="4"></td><td rowspan="4">2.17</td></tr><tr><td>GIN (untrained)</td><td>0.663</td><td>0.663</td><td>/</td><td>0.520</td><td>0.520</td><td>/</td></tr><tr><td>GVAE (GCN)</td><td>0.713</td><td>0.659</td><td>+0.054</td><td>0.266</td><td>0.264</td><td>0.002</td></tr><tr><td>DGI (GIN)</td><td>0.640</td><td>0.613</td><td>+0.027</td><td>0.512</td><td>0.576</td><td>-0.064</td></tr><tr><td>EGI (GIN)</td><td>0.772</td><td>0.715</td><td>+0.057</td><td>0.507</td><td>0.485</td><td>+0.022</td><td rowspan="2"></td><td rowspan="2"></td></tr></table>
465
+
466
+ Table 6: Overall Dataset Statistics
467
+
468
+ <table><tr><td>Dataset</td><td>#Nodes</td><td>#Edges</td><td># Classes</td></tr><tr><td>Europe</td><td>399</td><td>5,995</td><td>4</td></tr><tr><td>USA</td><td>1,190</td><td>13,599</td><td>4</td></tr><tr><td>Brazil</td><td>131</td><td>1,074</td><td>4</td></tr><tr><td>Gene</td><td>9,228</td><td>57,029</td><td>2</td></tr></table>
469
+
470
+ ![](images/6fccec6456a027a0fdad1ea2e71561d242a41cb1b551cbda7aec9a273a7a7c0f.jpg)
471
+ Figure 5: Visualizations of power-law degree distribution on three airport dataset.
472
+
473
+ Results. As we can observe from Figure 5, the three airport graphs have quite different sizes and structures (e.g., regarding edge density and connectivity pattern). Thus, the absolute classification accuracy in both Table 2 in the main paper and Table 7 here varies across different graphs. However, as we mention in the main paper, the structural difference we compute based on Eq. 5 in Theorem 3.1 is close among the Europe-USA and Europe-Brazil graph pairs (12.03 and 12.14), which leads to close transferability of EGI from Europe to USA and Brazil. This indicates the effectiveness of our view over essential structural information.
474
+
475
+ Note that, the results present in Table 7 are the accuracy of GNNs directly trained and evaluated on each network without transfering. Therefore, only the Europe column has the same results as in Table 2 in the main paper, while the USA and Brazil columns can be regarded as providing an upper-bound performance of GNN transfered from other graphs. As we can see, EGI gives the closest results from Table 2 in the main paper to Table 7 here, demonstrating the its plausible transferability. The scores are so close, showing a possibility to skip fine-tuning when the source and target graphs are similar enough. Also note that, although the variances are pretty large (which is also observed in other works like (Ribeiro et al., 2017) since the networks are small), our t-tests have shown the improvements of EGI to be significant.
476
+
477
+ Table 7: Role identification that identifies structurally similar nodes on real-world networks. The performance reported are the average and standard deviation for 10 runs. Our classification accuracy on three datasets all passed the t-test $_ { ( \mathrm { p < 0 . 0 1 } ) }$ with the second best result in the table.
478
+ C.3 REAL-WORLD LARGE-SCALE RELATION PREDICTION EXPERIMENTS
479
+
480
+ <table><tr><td rowspan="2">Method</td><td colspan="3">Airport (Ribeiro et al., 2017)</td></tr><tr><td>Europe</td><td>USA</td><td>Brazil</td></tr><tr><td>node degree</td><td>52.81% ± 5.81%</td><td>55.67% ± 3.63%</td><td>67.11% ± 7.58%</td></tr><tr><td>GCN (random-init)</td><td>52.96% ± 4.51%</td><td>56.18% ± 3.82%</td><td>55.93% ±1.38%</td></tr><tr><td>GIN (random-init)</td><td>55.75% ± 5.84%</td><td>62.77% ± 2.35%</td><td>69.26% ± 9.08%</td></tr><tr><td>GVAE(GIN) (Kipf &amp;Welling,2016)</td><td>53.90% ±4.65%</td><td>58.99% ±2.44%</td><td>55.56% ± 6.83%</td></tr><tr><td>DGI (GIN) (Velickovic et al.,2019)</td><td>57.75% ± 4.47%</td><td>62.44% ± 4.46%</td><td>68.15% ± 6.24%</td></tr><tr><td>Mask-GIN (Hu et al.,2019a)</td><td>56.37% ± 5.07%</td><td>63.78% ± 2.79%</td><td>61.85% ±10.74%</td></tr><tr><td>ContextPred-GIN (Hu et al.,2019a)</td><td>52.69% ±6.12%</td><td>56.22% ± 4.05%</td><td>58.52% ±10.18%</td></tr><tr><td>Structural Pre-train (Hu et al.,2019b)</td><td>56.00% ± 4.58%</td><td>62.29% ± 3.51%</td><td>71.48% ± 9.38 %</td></tr><tr><td>EGI (GIN)</td><td>59.15% ± 4.44%</td><td>65.88% ± 3.65%</td><td>74.07% ± 5.49%</td></tr></table>
481
+
482
+ Data. As shown in Table 8, the source graph we use to pre-train GNNs is the full graph cleaned from the YAGO dump (Suchanek et al., 2007), where we assume the relations among entities are unknown. The target graph we use is a subgraph uniformed sampled from the same YAGO dump (we sample the nodes and then include all edges among the sampled nodes). The similar ratio between number of nodes and edges can be observed in Table 8. On the target graph, we also have the access to 24 different relations (Shi et al., 2018) such as isAdvisedBy, isMarriedTo and so on. Such relation labels are still relevant to the graph structures, but the relevance is lower compared with the structural role labels. We use the 256-dim degree encoding as node features for pre-training on the source graph, then we use the 128-dim positional embedding generated by LINE (Tang et al., 2015) for fine-tuning on the target graph, to explicitly make the features differ across source and target graphs.
483
+
484
+ Results. In Section B.1, we introduced two different types of fine-tuning, i.e., post-fine-tuning and joint-fine-tuning. For both types of fine-tuning, we add one feature encoder $\mathcal { E }$ before feeding it into the GNNs for two purposes. First, the target graph fine-tuning feature usually has different dimensions with the pre-training features, such as the node degree encoding we use. Second, the semantics and distributions of fine-tuning features can be different from pre-training features. The feature encoder aims to bridge the gap between feature difference in practice. The supervised loss used in this experiment is the same as in DistMult (Yang et al., 2014). In particular, the bilinear score function is calculated as $s ( h , r , t ) = z _ { h } ^ { T } M _ { r } z _ { t }$ , where $M _ { r }$ is a diagonal matrix for each relation $r$ , $z _ { h }$ and $z _ { t }$ the the embedding of GNN encoder $\Psi$ for head and tail entities. The experiments were run on GTX1080 with 12G memories. We report the average training time per epoch of our algorithm in pre-training and fine-tuning stage in Table 8 as well. The pre-training and fine-tuning takes about 40 epochs and 10 epochs to converge, respectively. In Table 8, we also present the per-epoch training time of EGI. EGI takes about 338 seconds per epoch for optimizing the ego-graph information maximization objective on YAGO-source. As we can see, fine-tuning also takes significant time compared to pre-training, which strengthens our arguments about avoiding or reducing fine-tuning through structural analysis. We implement all baselines within the same pipeline, and the runtimes are all at the same scale.
485
+
486
+ Table 8: dataset statistics and running time of EGI
487
+
488
+ <table><tr><td>Dataset</td><td># Nodes</td><td>#Edges</td><td>#Relations</td><td># Train/Test</td><td>Training time per epoch</td></tr><tr><td>YAGO-Source</td><td>579,721</td><td>2,191,464</td><td>/</td><td>/</td><td>338 seconds</td></tr><tr><td>YAGO-Target</td><td>115,186</td><td>409,952</td><td>24</td><td>480/409,472</td><td>134 seconds</td></tr></table>
parse/train/J_pvI6ap5Mn/J_pvI6ap5Mn_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/J_pvI6ap5Mn/J_pvI6ap5Mn_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/J_pvI6ap5Mn/J_pvI6ap5Mn_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJxu5iR9KQ/SJxu5iR9KQ.md ADDED
@@ -0,0 +1,398 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING TO SCHEDULE COMMUNICATION IN MULTI-AGENT REINFORCEMENT LEARNING
2
+
3
+ Daewoo Kim, Sangwoo Moon, David Hostallero, Wan Ju Kang, Taeyoung Lee,
4
+ Kyunghwan Son & Yung Yi
5
+ School of Electrical Engineering, KAIST
6
+ Daejeon, South Korea
7
+ {dwkim, swmoon, ddhostallero, wjkang, taeyoung.lee, khson}@lanada.kaist. ac.kr, yiyung@kaist.edu
8
+
9
+ # ABSTRACT
10
+
11
+ Many real-world reinforcement learning tasks require multiple agents to make sequential decisions under the agents’ interaction, where well-coordinated actions among the agents are crucial to achieve the target goal better at these tasks. One way to accelerate the coordination effect is to enable multiple agents to communicate with each other in a distributed manner and behave as a group. In this paper, we study a practical scenario when $( i )$ the communication bandwidth is limited and (ii) the agents share the communication medium so that only a restricted number of agents are able to simultaneously use the medium, as in the state-of-the-art wireless networking standards. This calls for a certain form of communication scheduling. In that regard, we propose a multi-agent deep reinforcement learning framework, called SchedNet, in which agents learn how to schedule themselves, how to encode the messages, and how to select actions based on received messages. SchedNet is capable of deciding which agents should be entitled to broadcasting their (encoded) messages, by learning the importance of each agent’s partially observed information. We evaluate SchedNet against multiple baselines under two different applications, namely, cooperative communication and navigation, and predator-prey. Our experiments show a non-negligible performance gap between SchedNet and other mechanisms such as the ones without communication and with vanilla scheduling methods, e.g., round robin, ranging from $32 \%$ to $43 \%$ .
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Reinforcement Learning (RL) has garnered renewed interest in recent years. Playing the game of Go (Mnih et al., 2015), robotics control (Gu et al., 2017; Lillicrap et al., 2015), and adaptive video streaming (Mao et al., 2017) constitute just a few of the vast range of RL applications. Combined with developments in deep learning, deep reinforcement learning (Deep RL) has emerged as an accelerator in related fields. From the well-known success in single-agent deep reinforcement learning, such as Mnih et al. (2015), we now witness growing interest in its multi-agent extension, the multi-agent reinforcement learning (MARL), exemplified in Gupta et al. (2017); Lowe et al. (2017); Foerster et al. (2017a); Omidshafiei et al. (2017); Foerster et al. (2016); Sukhbaatar et al. (2016); Mordatch & Abbeel (2017); Havrylov & Titov (2017); Palmer et al. (2017); Peng et al. (2017); Foerster et al. (2017c); Tampuu et al. (2017); Leibo et al. (2017); Foerster et al. (2017b). In the MARL problem commonly addressed in these works, multiple agents interact in a single environment repeatedly and improve their policy iteratively by learning from observations to achieve a common goal. Of particular interest is the distinction between two lines of research: one fostering the direct communication among agents themselves, as in Foerster et al. (2016); Sukhbaatar et al. (2016) and the other coordinating their cooperative behavior without direct communication, as in Foerster et al. (2017b); Palmer et al. (2017); Leibo et al. (2017).
16
+
17
+ In this work, we concern ourselves with the former. We consider MARL scenarios wherein the task at hand is of a cooperative nature and agents are situated in a partially observable environment, but each endowed with different observation power. We formulate this scenario into a multi-agent sequential decision-making problem, such that all agents share the goal of maximizing the same discounted sum of rewards. For the agents to directly communicate with each other and behave as a coordinated group rather than merely coexisting individuals, they must carefully determine the information they exchange under a practical bandwidth-limited environment and/or in the case of high-communication cost. To coordinate this exchange of messages, we adopt the centralized training and distributed execution paradigm popularized in recent works, e.g., Foerster et al. (2017a); Lowe et al. (2017); Sunehag et al. (2018); Rashid et al. (2018); Gupta et al. (2017).
18
+
19
+ In addition to bandwidth-related constraints, we take the issues of sharing the communication medium into consideration, especially when agents communicate over wireless channels. The stateof-the-art standards on wireless communication such as Wi-Fi and LTE specify the way of scheduling users as one of the basic functions. However, as elaborated in Related work, MARL problems involving scheduling of only a restricted set of agents have not yet been extensively studied. The key challenges in this problem are: (i) that limited bandwidth implies that agents must exchange succinct information: something concise and yet meaningful and (ii) that the shared medium means that potential contenders must be appropriately arbitrated for proper collision avoidance, necessitating a certain form of communication scheduling, popularly referred to as MAC (Medium Access Control) in the area of wireless communication. While stressing the coupled nature of the encoding/decoding and the scheduling issue, we zero in on the said communication channel-based concerns and construct our neural network accordingly.
20
+
21
+ Contributions In this paper, we propose a new deep multi-agent reinforcement learning architecture, called SchedNet, with the rationale of centralized training and distributed execution in order to achieve a common goal better via decentralized cooperation. During distributed execution, agents are allowed to communicate over wireless channels where messages are broadcast to all agents in each agent’s communication range. This broadcasting feature of wireless communication necessitates a Medium Access Control (MAC) protocol to arbitrate contending communicators in a shared medium. CSMA (Collision Sense Multiple Access) in Wi-Fi is one such MAC protocol. While prior work on MARL to date considers only the limited bandwidth constraint, we additionally address the shared medium contention issue in what we believe is the first work of its kind: which nodes are granted access to the shared medium. Intuitively, nodes with more important observations should be chosen, for which we adopt a simple yet powerful mechanism called weight-based scheduler (WSA), designed to reconcile simplicity in training with integrity of reflecting real-world MAC protocols in use (e.g., 802.11 Wi-Fi). We evaluate SchedNet for two applications: cooperative communication and navigation and predator/prey and demonstrate that SchedNet outperforms other baseline mechanisms such as the one without any communication or with a simple scheduling mechanism such as round robin. We comment that SchedNet is not intended for competing with other algorithms for cooperative multi-agent tasks without considering scheduling, but a complementary one. We believe that adding our idea of agent scheduling makes those algorithms much more practical and valuable.
22
+
23
+ Related work We now discuss the body of relevant literature. Busoniu et al. (2008) and Tan (1993) have studied MARL with decentralized execution extensively. However, these are based on tabular methods so that they are restricted to simple environments. Combined with developments in deep learning, deep MARL algorithms have emerged (Tampuu et al., 2017; Foerster et al., 2017a; Lowe et al., 2017). Tampuu et al. (2017) uses a combination of DQN with independent Q-learning. This independent learning does not perform well because each agent considers the others as a part of environment and ignores them. Foerster et al. (2017a); Lowe et al. (2017); Gupta et al. (2017); Sunehag et al. (2018), and Foerster et al. (2017b) adopt the framework of centralized training with decentralized execution, empowering the agent to learn cooperative behavior considering other agents’ policies without any communication in distributed execution.
24
+
25
+ It is widely accepted that communication can further enhance the collective intelligence of learning agents in their attempt to complete cooperative tasks. To this end, a number of papers have previously studied the learning of communication protocols and languages to use among multiple agents in reinforcement learning. We explore those bearing the closest resemblance to our research. Foerster et al. (2016); Sukhbaatar et al. (2016); Peng et al. (2017); Guestrin et al. (2002), and Zhang & Lesser (2013) train multiple agents to learn a communication protocol, and have shown that communicating agents achieve better rewards at various tasks. Mordatch & Abbeel (2017) and Havrylov & Titov (2017) investigate the possibility of the artificial emergence of language. Coordinated RL by Guestrin et al. (2002) is an earlier work demonstrating the feasibility of structured communication and the agents’ selection of jointly optimal action.
26
+
27
+ Only DIAL (Foerster et al., 2016) and Zhang & Lesser (2013) explicitly address bandwidth-related concerns. In DIAL, the communication channel of the training environment has a limited bandwidth, such that the agents being trained are urged to establish more resource-efficient communication protocols. The environment in Zhang & Lesser (2013) also has a limited-bandwidth channel in effect, due to the large amount of exchanged information in running a distributed constraint optimization algorithm. Recently, Jiang & Lu (2018) proposes an attentional communication model that allows some agents who request additional information from others to gather observation from neighboring agents. However, they do not explicitly consider the constraints imposed by limited communication bandwidth and/or scheduling due to communication over a shared medium.
28
+
29
+ To the best of our knowledge, there is no prior work that incorporates an intelligent scheduling entity in order to facilitate inter-agent communication in both a limited-bandwidth and shared medium access scenarios. As outlined in the introduction, intelligent scheduling among learning agents is pivotal in the orchestration of their communication to better utilize the limited available bandwidth as well as in the arbitration of agents contending for shared medium access.
30
+
31
+ # 2 BACKGROUND
32
+
33
+ Reinforcement Learning We consider a standard RL formulation based on Markov Decision Process (MDP). An MDP is a tuple $< S , { \mathcal { A } } , r , P , \gamma >$ where $s$ and $\mathcal { A }$ are the sets of states and actions, respectively, and $\gamma \in [ 0 , 1 ]$ is the discount factor. A transition probability function $P : \mathcal { S } \times \mathcal { A } \mathcal { S }$ maps states and actions to a probability distribution over next states, and $r : S \times \mathcal { A } \mathbb { R }$ denotes the reward. The goal of RL is toing the expected discounted return $\pi : { \mathcal { S } } A$ that solves the MDP by maximiz-The policy induces a value function $\begin{array} { r } { R _ { t } = \mathbb { E } [ \sum _ { k = 0 } ^ { \infty } \gamma ^ { k } r _ { t + k } | \pi ] } \end{array}$ $V ^ { \bar { \pi } } ( s ) = \mathbb { E } _ { \pi } [ R _ { t } | s _ { t } = s ]$ , and an action value function $Q ^ { \pi } ( \bar { s , a } ) = \mathbb { E } _ { \pi } [ R _ { t } | s _ { t } = s , a _ { t } = a ]$ .
34
+
35
+ Actor-critic Method The main idea of the policy gradient method is to optimize the policy, parametrized by $\theta ^ { \pi }$ , in order to maximize the objective $J ( \theta ) = \mathbb { E } _ { s \sim p ^ { \pi } , a \sim \pi _ { \theta } } [ R ]$ by directly adjusting the parameters in the direction of the gradient. By the policy gradient theorem Sutton et al. (2000), the gradient of the objective is:
36
+
37
+ $$
38
+ \nabla _ { \theta } J ( \pi _ { \theta } ) = \mathbb { E } _ { s \sim \rho ^ { \pi } , a \sim \pi _ { \theta } } [ \nabla _ { \theta } \log \pi _ { \theta } ( a | s ) Q ^ { \pi } ( s , a ) ] ,
39
+ $$
40
+
41
+ where $\rho ^ { \pi }$ is the state distribution. Our baseline algorithmic framework is the actor-critic approach Konda & Tsitsiklis (2003). In this approach, an actor adjusts the parameters $\theta$ of the policy $\pi _ { \boldsymbol { \theta } } ( s )$ by gradient ascent. Instead of the unknown true action-value function $Q ^ { \pi } ( s , a )$ , its approximated version $Q ^ { w } ( s , a )$ is used with parameter $w$ . A critic estimates the action-value function $Q ^ { w } ( s , a )$ using an appropriate policy evaluation algorithm such as temporal-difference learning Tesauro (1995). To reduce the variance of the gradient updates, some baseline function $b ( s )$ is often subtracted from the action value, thereby resulting in $Q ^ { \pi } ( s , a ) - b ( s )$ Sutton $\&$ Barto (1998). A popular choice for this baseline function is the state value $V ( s )$ , which indicates the inherent “goodness” of the state. This difference between the action value and the state value is often dubbed as the advantage $A ( s , a )$ whose TD-error-based substitute $\delta _ { t } = r _ { t } + \gamma V \left( s _ { t + 1 } \right) - V \left( s _ { t } \right)$ is an unbiased estimate of the advantage as in Mnih et al. (2016). The actor-critic algorithm can also be applied to a deterministic policy $\mu _ { \theta } : { \mathcal { S } } A$ . By the deterministic policy gradient theorem Silver et al. (2014), we update the parameters as follows:
42
+
43
+ $$
44
+ \nabla _ { \theta } J ( \mu _ { \theta } ) = \mathbb { E } _ { s \sim \rho ^ { \mu } } [ \nabla _ { \theta } \mu _ { \theta } ( s ) \nabla _ { a } Q ^ { \mu } ( s , a ) | _ { a = \mu _ { \theta } ( s ) } ] .
45
+ $$
46
+
47
+ MARL: Centralized Critic and Distributed Actor (CCDA) We formalize MARL using DECPOMDP (Oliehoek et al., 2016), which is a generalization of MDP to allow a distributed control by multiple agents who may be incapable of observing the global state. A DEC-POMDP is described by a tuple $< \ S , { \mathcal { A } } , r , P , \Omega , { \mathcal { O } } , \gamma \ >$ . We use bold-face fonts in some notations to highlight the context of multi-agents. Each agent $i \in \mathcal N$ chooses an action $a _ { i } ~ \in ~ { \mathcal { A } }$ , forming a joint action vector $\mathbf { \sigma } _ { a } = [ a _ { i } ] \in \mathbf { \bar { \mathcal { A } } } ^ { n }$ and has partial observations $o _ { i } \in \Omega$ according to some observation function $\mathcal { O } ( s , i ) : \mathcal { S } \times \mathcal { N } \mapsto \Omega$ . $P ( s ^ { \prime } | s , a ) : \mathcal { S } \times \mathcal { A } ^ { n } \mapsto [ 0 , 1 ]$ is the transition probability function. All agents share the same reward $r ( s , u ) : \mathcal { S } \times \mathcal { A } ^ { n } \mapsto \mathbb { R }$ . Each agent $i$ takes action $a _ { i }$ based on its own policy $\pi ^ { i } ( a _ { i } | o _ { i } )$ . As mentioned in Section 1, our particular focus is on the centralized training and distributed execution paradigm, where the actor-critic approach is a good fit to such a paradigm. Since the agents should execute in a distributed setting, each agent, say $i$ , maintains its own actor that selects $i$ ’s action based only on what is partially observed by $i$ . The critic is naturally responsible for centralized training, and thus works in a centralized manner. Thus, the critic is allowed to have the global state $\pmb { s }$ as its input, which includes all agents’ observations and extra information from the environment. The role of the critic is to “criticize” individual agent’s actions. This centralized nature of the critic helps in providing more accurate feedback to the individual actors with limited observation horizon. In this case, each agent’s policy, $\pi ^ { i }$ , is updated by a variant of (1) as:
48
+
49
+ $$
50
+ \nabla _ { \theta } J ( \pi _ { \theta } ^ { i } ) = \mathbb { E } _ { s \sim \rho ^ { \pi } , a \sim \pi _ { \theta } } [ \nabla _ { \theta } \log \pi _ { \theta } ^ { i } ( a _ { i } | o _ { i } ) ( r + \gamma V ( s _ { t + 1 } ) - V ( s _ { t } ) ) ] .
51
+ $$
52
+
53
+ # 3 METHOD
54
+
55
+ # 3.1 COMMUNICATION ENVIRONMENT AND PROBLEM
56
+
57
+ In practical scenarios where agents are typically separated but are able to communicate over a shared medium, e.g., a frequency channel in wireless communications, two important constraints are imposed: bandwidth and contention for medium access (Rappaport, 2001). The bandwidth constraint entails a limited amount of bits per unit time, and the contention constraint involves having to avoid collision among multiple transmissions due to the natural aspect of signal broadcasting in wireless communication. Thus, only a restricted number of agents are allowed to transmit their messages each time step for a reliable message transfer. In this paper, we use a simple model to incorporate that the aggregate information size per time step is limited by $L _ { \mathrm { b a n d } }$ bits and that only $K _ { \mathrm { s c h e d } }$ out of $n$ agents may broadcast their messages.
58
+
59
+ Weight-based Scheduling Noting that distributed execution of agents is of significant importance, there may exist a variety of scheduling mechanisms to schedule $K _ { \mathrm { s c h e d } }$ agents in a distributed manner. In this paper, we adopt a simple algorithm that is weight-based, which we call WSA (Weightbased Scheduling Algorithm). Once each agent decides its own weight, the agents are scheduled based on their weights following a class of the pre-defined rules. We consider the following two specific ones among many different proposals due to simplicity, but more importantly, good approximation of wireless scheduling protocols in practice.
60
+
61
+ $\circ \ T o p ( k )$ . Selecting top $k$ agents in terms of their weight values. ◦ Softmax $( k )$ . Computing softmax values $\begin{array} { r } { \sigma _ { i } ( \pmb { w } ) = \frac { e ^ { w _ { i } } } { \sum _ { j = 1 } ^ { n } e ^ { w _ { j } } } } \end{array}$ for each agent $i$ , and then randomly selecting $k$ agents acoording to the probability distribution $[ \sigma _ { i } ( { \pmb w } ) ] _ { i = 1 } ^ { n }$ .
62
+
63
+ Since distributed execution is one of our major operational constraints in SchedNet or other CTDEbased MARL algorithms, $\mathrm { T o p } ( k )$ and Softmax $( k )$ should be realizable via a weight-based mechanism in a distributed manner. In fact, this has been an active research topic to date in wireless networking, where many algorithms exist (Tassiulas & Ephremides, 1992; Yi et al., 2008; Jiang & Walrand, 2010). Due to space limitation, we present how to obtain distributed versions of those two rules based on weights in our supplementary material. To summarize, using so-called CSMA (Carrier Sense Multiple Access) (Kurose, 2005), which is a fully distributed MAC scheduler and forms a basis of Wi-Fi, given agents’ weight values, it is possible to implement $\mathrm { T o p } ( k )$ and Softmax $( k )$ .
64
+
65
+ Our goal is to train agents so that every time each agent takes an action, only $K _ { \mathrm { s c h e d } }$ agents can broadcast their messages with limited size $L _ { \mathrm { b a n d } }$ with the goal of receiving the highest cumulative reward via cooperation. Each agent should determine a policy described by its scheduling weights, encoded communication messages, and actions.
66
+
67
+ # 3.2 ARCHITECTURE
68
+
69
+ To this end, we propose a new deep MARL framework with scheduled communications, called SchedNet, whose overall architecture is depicted in Figure 1. SchedNet consists of the following three components: $( i )$ actor network, (ii) scheduler, and (iii) critic network. This section is devoted to presenting the architecture only, whose details are presented in the subsequent sections.
70
+
71
+ Neural networks The actor network is the collection of $n$ per-agent individual actor networks, where each agent $i$ ’s individual actor network consists of a triple of the following networks: a
72
+
73
+ message encoder, an action selector, and a weight generator, as specified by:
74
+
75
+ message encoder $f _ { \mathrm { e n c } } ^ { i } : o _ { i } \mapsto m _ { i }$ , action selector $f _ { \mathrm { a s } } ^ { i } : \left( o _ { i } , m \otimes c \right) \mapsto u _ { i }$ weight generator $f _ { \mathrm { w g } } ^ { i } : o _ { i } \mapsto { w } _ { i }$ .
76
+
77
+ Here, $m = [ m _ { i } ] _ { n } ^ { 1 }$ is the vector of each $i$ ’s encoded message $m _ { i }$ . An agent schedule vector $c = [ c _ { i } ] _ { n }$ , $c _ { i } \in \{ 0 , \bar { 1 } \}$ represents whether each agent is scheduled. Note that agent $i$ ’s encoded message $m _ { i }$ is generated by a neural network $f _ { \mathrm { e n c } } ^ { i } : o _ { i } \mapsto m _ { i }$ . The operator “ $\mathbf { \vec { \otimes } } ^ { , }$ ” concatenates all the sched
78
+
79
+ ![](images/0b09eba9fc5256f5eb0c04d6fb816892e9f95d8e9ee835b551f1b08022a7efdf.jpg)
80
+ Figure 1: Architecture of SchedNet with three agents. Agents 1 and 3 have been scheduled for this time step.
81
+
82
+ uled agents’ messages. For example, for $m = [ 0 1 0 , 1 1 1 , 1 0 1 ]$ and $c = [ 1 1 0 ]$ , $\pmb { m } \otimes \pmb { c } = 0 1 0 1 1 1$ . This concatenation with the schedule profile $^ c$ means that only those agents scheduled in $^ c$ may broadcast their messages to all other agents. We denote by $\dot { \theta _ { \mathrm { a s } } ^ { i } } , \ : \theta _ { \mathrm { w g } } ^ { i } .$ , and $\theta _ { \mathrm { e n c } } ^ { i }$ the parameters of the action selector, the weight generator, and the encoder of agent $i$ , respectively, where we let $\theta _ { \mathrm { a s } } = [ \theta _ { \mathrm { a s } } ^ { i } ] _ { n }$ , and similarly define $\theta _ { \mathrm { w g } }$ and $\theta _ { \mathrm { e n c } }$ .
83
+
84
+ Coupling: Actor and Scheduler Encoder, weight generator and the scheduler are the modules for handling the constraints of limited bandwidth and shared medium access. Their common goal is to learn the state-dependent “importance” of individual agent’s observation, encoders for generating compressed messages and the scheduler for being used as a basis of an external scheduling mechanism based on the weights generated by per-agent weight generators. These three modules work together to smartly respond to time-varying states. The action selector is trained to decode the incoming message, and consequently, to take a good action for maximizing the reward. At every time step, the schedule profile $^ c$ varies depending on the observation of each agent, so the incoming message $_ { \mathbf { \nabla } } \mathbf { m }$ comes from a different combination of agents. Since the agents can be heterogeneous and they have their own encoder, the action selector must be able to make sense of incoming messages from different senders. However, the weight generator’s policy changes, the distribution of incoming messages also changes, which is in turn affected by the pre-defined WSA. Thus, the action selector should adjust to this changed scheduling. This also affects the encoder in turn. The updates of the encoder and the action selector trigger the update of the scheduler again. Hence, weight generators, message encoders, and action selectors are strongly coupled with dependence on a specific WSA, and we train those three networks at the same time with a common critic.
85
+
86
+ Scheduling logic The schedule profile $^ c$ is determined by the WSA module, which is mathematically a mapping from all agents’ weights $\textbf { \em w }$ (generated by $f _ { \mathrm { w g } } ^ { i } )$ to $^ c$ . Typical examples of these mappings are $T o p ( k )$ and Softmax $( k )$ , as mentioned above. The scheduler of each agent is trained appropriately depending on the employed WSA algorithm.
87
+
88
+ # 3.3 TRAINING AND EXECUTION
89
+
90
+ In the centralized training with distributed execution, for a given WSA, we include all components and modules in Figure 1 to search for $\pmb { \theta } _ { \mathrm { a s } }$ , $\theta _ { \mathrm { w g } }$ , and $\pmb { \theta } _ { \mathrm { e n c } }$ , whereas in execution, each agent $i$ runs a certain shared medium access mechanism, well-modeled by a weightbased scheduler, and just needs three agent-specific parameters $\mathsf { \bar { \theta } } _ { \mathrm { a s } } ^ { i }$ $\theta _ { \mathrm { w g } } ^ { i }$ , and $\theta _ { \mathrm { e n c } } ^ { i }$ .
91
+
92
+ # 3.3.1 CENTRALIZED TRAINING
93
+
94
+ Centralized critic The actor is trained by dividing it into two parts: $( i )$ message encoders and action selectors, and $( i i )$ weight generators. This partitioning is motivated by the fact that it is hard to update both parts with one backpropagation since WSA is not differentiable. To update the actor, we use a centralized critic parametrized by $\theta _ { \mathrm { c } }$ to estimate the state value function $V _ { \theta _ { \mathrm { c } } } ( s )$ for the action selectors and message encoders, and the action-value function $Q _ { \theta _ { \mathrm { c } } } ^ { \pi } ( s , w )$ for the weight generators. The critic is used only when training, and it can use the global state $\pmb { s }$ , which includes the observation of all agents. All networks in the actor are trained with gradient-based on temporal difference backups. To share common features between $V _ { \theta _ { \mathrm { c } } } ( s )$ and $Q _ { \theta _ { \mathrm { c } } } ^ { \pi } ( s , w )$ and perform efficient training, we use shared parameters in the lower layers of the neural network between the two functions, as shown in Figure 2.
95
+
96
+ ![](images/798880e218eb956e11efe3aab637ba7f35e47f1fc2322d9f353d68b513abc12a.jpg)
97
+ Figure 2: Architecture of the critic. FC stands for fully connected neural network.
98
+
99
+ Weight generators We consider the collection of all agents’ WGs as a single neural network $\mu _ { \theta _ { \mathrm { w g } } } ( o )$ mapping from $^ o$ to $\pmb { w }$ , parametrized by $\theta _ { \mathrm { w g } }$ . Noting that $w _ { i }$ is a continuous value, we apply the DDPG algorithm (Lillicrap et al., 2015), where the entire policy gradient of the collection of WGs is given by:
100
+
101
+ $$
102
+ \nabla _ { \theta _ { \mathrm { w g } } } J ( \theta _ { \mathrm { w g } } , \cdot ) = \mathbb { E } _ { w \sim \mu _ { \theta _ { \mathrm { w g } } } } [ \nabla _ { \theta _ { \mathrm { w g } } } \mu _ { \theta _ { \mathrm { w g } } } ( o ) \nabla _ { w } Q _ { \theta _ { \mathrm { c } } } ( s , w ) | _ { w = \mu _ { \theta _ { \mathrm { w g } } } ( o ) } ] .
103
+ $$
104
+
105
+ We sample the policy gradient for sufficient amount of experience in the set of all scheduling profiles, i.e., $\begin{array} { r } { \mathcal { C } = \{ c \vert \bar { \sum _ { c _ { i } } } \dot { \leq k } \} } \end{array}$ . The values of $Q _ { \theta _ { \mathrm { c } } } ( \pmb { s } , \pmb { w } )$ are estimated by the centralized critic, where $\pmb { s }$ is the global state corresponding to $^ o$ in a sample.
106
+
107
+ Message encoders and action selectors The observation of each agent travels through the encoder and the action selector. We thus serialize $f _ { \mathrm { e n c } } ^ { i }$ and $f _ { \mathrm { a s } } ^ { i }$ together and merge the encoders and actions selectors of all agents into one aggregate network $\mathbf { \bar { \pi } } _ { \theta _ { \mathrm { u } } } ( \pmb { u } | \mathbf { o } , \mathbf { c } )$ , which is parametrized by $\theta _ { \mathrm { { u } } } ~ = $ $\{ \theta _ { \mathrm { e n c } } , \theta _ { \mathrm { a s } } \}$ . This aggregate network $\pi _ { \pmb { \theta } _ { \mathrm { u } } }$ learns via backpropagation of actor-critic policy gradients, described below. The gradient of this objective function, which is a variant of (3), is given by
108
+
109
+ $$
110
+ \begin{array} { r } { \nabla _ { \theta _ { \mathfrak { u } } } J ( \cdot , \theta _ { \mathfrak { u } } ) = \mathbb { E } _ { s \sim \rho ^ { \pi } , { \boldsymbol u } \sim \pi _ { \theta _ { \mathfrak { u } } } } [ \nabla _ { \theta _ { \mathfrak { u } } } \log \pi _ { \theta _ { \mathfrak { u } } } ( { \boldsymbol u } | o , c ) [ r + \gamma V _ { \theta _ { \mathrm { c } } } ( { \boldsymbol s } ^ { \prime } ) - V _ { \theta _ { \mathrm { c } } } ( { \boldsymbol s } ) ] ] , } \end{array}
111
+ $$
112
+
113
+ where $\pmb { s }$ and $s ^ { \prime }$ are the global states corresponding to the observations at current and next time step. We can get the value of state $V _ { \theta _ { \mathrm { c } } } ( s )$ from the centralized critic and then adjust the parameters $\theta _ { \mathrm { u } }$ via gradient ascent accordingly.
114
+
115
+ # 3.3.2 DISTRIBUTED EXECUTION
116
+
117
+ In execution, each agent $i$ should be able to determine the scheduling weight $w _ { i }$ , encoded message $m _ { i }$ , and action selection $u _ { i }$ in a distributed manner. This process must be based on its own observation, and the weights generated by its own action selector, message encoder, and weight generator with the parameters ${ \bar { \theta } _ { \mathrm { a s } } ^ { i } }$ , $\theta _ { \mathrm { e n c } } ^ { i }$ , and $\theta _ { \mathrm { w g } } ^ { i }$ , respectively. After each agent determines its scheduling weight, $K _ { \mathrm { s c h e d } }$ agents are scheduled by WSA, which leads the encoded messages of scheduled agents to be broadcast to all agents. Finally, each agent finally selects an action by using received messages. This process is sequentially repeated under different observations over time.
118
+
119
+ # 4 EXPERIMENT
120
+
121
+ Environments To evaluate SchedNet2, we consider two different environments for demonstrative purposes: Predator and Prey (PP) which is used in Stone & Veloso (2000), and Cooperative Communication and Navigation (CCN) which is the simplified version of the one in Lowe et al. (2017). The detailed experimental environments are elaborated in the following subsections as well as in supplementary material. We take the communication environment into our consideration as follows. $k$ out of all agents can have the chance to broadcast the message whose bandwidth3 is limited by $l$ .
122
+
123
+ Tested algorithms and setup We perform experiments in aforementioned environments. We compare SchedNet with a variant of DIAL,4 (Foerster et al., 2016) which allows communication with limited bandwidth. During the execution of DIAL, the limited number $( k )$ of agents are scheduled following a simple round robin scheduling algorithm, and the agent reuses the outdated messages of non-scheduled agents to make a decision on the action to take, which is called $\mathrm { D I A L } ( k )$ . The other baselines are independent DQN (IDQN) (Tampuu et al., 2017) and COMA (Foerster et al., 2017a) in which no agent is allowed to communicate. To see the impact of scheduling in SchedNet, we compare SchedNet with $( i )$ RR (round robin), which is a canonical scheduling method in communication systems where all agents are sequentially scheduled, and (ii) FC (full communication), which is the ideal configuration, wherein all the agents can send their messages without any scheduling or bandwidth constraints. We also diversify the WSA in SchedNet into: $( i )$ Sched-Softmax(1) and (ii) Sched-Top(1) whose details are in Section 3.1. We train our models until convergence, and then evaluate them by averaging metrics for 1,000 iterations. The shaded area in each plot denotes $9 5 \%$ confidence intervals based on 6-10 runs with different seeds.
124
+
125
+ ![](images/e6b822eda9e2ee339a2ab4a81e3255c547131604a1e9e4a2e2b68aa389b293ea.jpg)
126
+ Figure 3: Learning curves during the learning of the PP and CCN tasks. The plots show the average time taken to complete the task, where shorter time is better for the agents.
127
+
128
+ # 4.1 PREDATOR AND PREY
129
+
130
+ In this task, there are multiple agents who must capture a randomly moving prey. Agents’ observations include position of themselves and the relative positions of prey, if observed. We employ four agents, and they have different observation horizons, where only agent 1 has a $5 \times 5$ view while agents 2, 3, and 4 have a smaller, $3 \times 3$ view. The predators are rewarded when they capture the prey, and thus the performance metric is the number of time steps taken to capture the prey.
131
+
132
+ Result in PP Figure 3a illustrates the learning curve of 750,000 steps in PP. In FC, since the agents can use full state information even during execution, they achieve the best performance. SchedNet outperforms IDQN and COMA in which communication is not allowed. It is observed that agents first find the prey, and then follow it until all other agents also eventually observe the prey. An agent successfully learns to follow the prey after it observes the prey but that it takes a long time to meet the prey for the first time. If the agent broadcasts a message that includes the location information of the prey, then other agents can find the prey more quickly. Thus, it is natural that SchedNet and DIAL perform better than IDQN or COMA, because they are trained to work with communication. However, DIAL is not trained for working under medium contention constraints. Although DIAL works well when there is no contention constraints, under the condition where only one agent is scheduled to broadcast the message by a simple scheduling algorithm (i.e., RR), the average number of steps to capture the prey in DIAL(1) is larger than that of SchedNet-Top(1), because the outdated messages of non-scheduled agents is noisy for the agents to decide on actions. Thus, we should consider the scheduling from when we train the agents to make them work in a demanding environment.
133
+
134
+ Impact of intelligent scheduling In Figure 3b, we observe that IDQN, RR, and SchedNetSoftmax(1) lie more or less on a comparable performance tier, with SchedNet-Softmax(1) as the best in the tier. SchedNet-Top(1) demonstrates a non-negligible gap better than the said tier, implying that a deterministic selection improves the agents’ collective rewards the best. In particular, SchedNet-Top(1) improves the performance by $43 \%$ compared to RR. Figure 3b lets us infer that, while all the agents are trained under the same conditions except for the scheduler, the difference in the scheduler is the sole determining factor for the variation in the performance levels. Thus, ablating away the benefit from smart encoding, the intelligent scheduling element in SchedNet can be accredited with the better performance.
135
+
136
+ Weight-based Scheduling We attempt to explain the internal behavior of SchedNet by investigating instances of temporal scheduling profiles obtained during the execution. We observe that SchedNet has learned to schedule those agents with a farther observation horizon, realizing the rationale of importance-based assignment of scheduling priority also for the PP scenario. Recall that Agent 1 has a wider view and thus tends to obtain valuable observation more frequently. In Figure 4, we see that scheduling chances are distributed over (14, 3, 4, 4) where corresponding average weights are (0.74, 0.27, 0.26, 0.26), implying that those with greater observation power tend to be scheduled more often.
137
+
138
+ Message encoding We now attempt to understand what the predator agents communicate when performing the task. Figure 5 shows the projections of the messages onto a 2D plane, which is generated by the scheduled agent under SchedNetTop(1) with $l = 2$ . When the agent does not observe the prey (blue circle in Figure), most of the messages reside in the bottom or the left partition of the plot. On the other hand, the messages have large variance when it observes the prey (red $\mathbf { \acute { x } } )$ . This is because the agent should transfer more informative messages that implicitly include the location of the prey, when it observes the prey. Further analysis of the messages is presented in our supplementary material.
139
+
140
+ ![](images/850745e7fceadc7d3b641265f04b0380cb7072c69746ce82cd0412f5bc7c7e99.jpg)
141
+ Figure 4: Instances of scheduling results over 25 time steps in PP
142
+
143
+ # 4.2 COOPERATIVE COMMUNICATION AND NAVIGATION
144
+
145
+ In this task, each agent’s goal is to arrive at a pre-specified destination on its one-dimensional world, and they collect a joint reward when both agents reach their respective destination. Each agent has a zero observation horizon around itself, but it can observe the situation of the other agent. We introduce heterogeneity into the scenario, where the agent-destination distance at the beginning of the task differs across agents. The metric used to gauge the performance is the number of time steps taken to complete the CCN task.
146
+
147
+ ![](images/1654eeaaf861f0438f69594dff4ba9b7d1068969a5a21f02af7785af9e21e2d8.jpg)
148
+ Figure 5: Encoded messages projected onto 2D plane in PP task
149
+
150
+ Result in CCN We examine the CCN environment whose results are shown in Figure 3c. SchedNet and other baselines were trained for 200,000 steps. As expected, IDQN takes the longest time, and FC takes the shortest time. RR exhibits mediocre performance, better than IDQN, because agents at least take turns in obtaining the communication opportunity. Of particular interest is SchedNet, outperforming both IDQN and RR with a non-negligible gap. We remark that the deterministic selection with SchedNet-Top(1) slightly beats the probabilistic counterpart, SchedNet-Softmax(1). The $32 \%$ improved gap between RR and SchedNet clearly portrays the effects of intelligent scheduling, as the carefully learned scheduling method of SchedNet was shown to complete the CCN task faster than the simplistic RR.
151
+
152
+ Scheduling in CCN As Agent 2 is farther from its destination than Agent 1, we observe that Agent 1 is scheduled more frequently to drive Agent 2 to its destination (7 vs. 18), as shown in Figure 6. This evidences that SchedNet flexibly adapts to heterogeneity of agents via scheduling. Towards more efficient completion of the task, a rationale of more scheduling for more important agents should be implemented. This is in accordance with the results obtained from PP environments: more important agents are scheduled more.
153
+
154
+ ![](images/d44ae670a74130e5abba6f6532fb53583eccf90d6394771bbf283d81e80af5a6.jpg)
155
+ Figure 6: Instances of scheduling results over 25 time steps in CCN
156
+
157
+ # 5 CONCLUSION
158
+
159
+ We have proposed SchedNet for learning to schedule inter-agent communications in fullycooperative multi-agent tasks. In SchedNet, we have the centralized critic giving feedback to the actor, which consists of message encoders, action selectors, and weight generators of each individual agent. The message encoders and action selectors are criticized towards compressing observations more efficiently and selecting actions that are more rewarding in view of the cooperative task at hand. Meanwhile, the weight generators are criticized such that $k$ agents with apparently more valuable observation are allowed to access the shared medium and broadcast their messages to all other agents. Empirical results and an accompanying ablation study indicate that the learnt encoding and scheduling behavior each significantly improve the agents’ performance. We have observed that an intelligent, distributed communication scheduling can aid in a more efficient, coordinated, and rewarding behavior of learning agents in the MARL setting.
160
+
161
+ # ACKNOWLEDGE
162
+
163
+ This work was supported by Institute for Information communications Technology Promotion(IITP) grant funded by the Korea government(MSIT) (No.2018-0-00170, Virtual Presence in Moving Objects through 5G)
164
+
165
+ # REFERENCES
166
+
167
+ Herve Bourlard and Yves Kamp. Auto-association by multilayer perceptrons and singular value ´ decomposition. Biological cybernetics, 59(4-5):291–294, 1988.
168
+
169
+ Lucian Busoniu, Robert Babuska, and Bart De Schutter. A comprehensive survey of multiagent reinforcement learning. IEEE Transactions on Systems, Man, And Cybernetics, 2008.
170
+
171
+ Adam Dunkels, Bjorn Gronvall, and Thiemo Voigt. Contiki-a lightweight and flexible operating system for tiny networked sensors. In Proceedings of Local Computer Networks (LCN), 2004.
172
+
173
+ Jakob Foerster, Ioannis Alexandros Assael, Nando de Freitas, and Shimon Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In Proceedings of Advances in Neural Information Processing Systems, pp. 2137–2145, 2016.
174
+
175
+ Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients. arXiv preprint arXiv:1705.08926, 2017a.
176
+
177
+ Jakob Foerster, Nantas Nardelli, Gregory Farquhar, Philip Torr, Pushmeet Kohli, Shimon Whiteson, et al. Stabilising experience replay for deep multi-agent reinforcement learning. arXiv preprint arXiv:1702.08887, 2017b.
178
+
179
+ Jakob N. Foerster, Richard Y. Chen, Maruan Al-Shedivat, Shimon Whiteson, Pieter Abbeel, and Igor Mordatch. Learning with opponent-learning awareness. arxiv preprint arXiv:1709.04326, 2017c.
180
+
181
+ Shixiang Gu, Ethan Holly, Timothy Lillicrap, and Sergey Levine. Deep reinforcement learning for robotic manipulation with asynchronous off-policy updates. In Proceedings of IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2017.
182
+
183
+ Carlos Guestrin, Michail Lagoudakis, and R Parr. Coordinated reinforcement learning. In Proceedings of International Conference on Machine Learning, 2002.
184
+
185
+ Jayesh K Gupta, Maxim Egorov, and Mykel Kochenderfer. Cooperative multi-agent control using deep reinforcement learning. In Proceedings of International Conference on Autonomous Agents and Multiagent Systems, 2017.
186
+
187
+ Serhii Havrylov and Ivan Titov. Emergence of language with multi-agent games: learning to communicate with sequences of symbols. In Proceedings of Advances in Neural Information Processing Systems, pp. 2146–2156, 2017.
188
+
189
+ Geoffrey E Hinton and Richard S Zemel. Autoencoders, minimum description length and helmholtz free energy. In Proceedings of Advances in Neural Information Processing Systems, pp. 3–10, 1994.
190
+
191
+ Hyeryung Jang, Se-Young Yun, Jinwoo Shin, and Yung Yi. Distributed learning for utility maximization over csma-based wireless multihop networks. In Proceedings of IEEE INFOCOM, 2014.
192
+
193
+ Jiechuan Jiang and Zongqing Lu. Learning attentional communication for multi-agent cooperation. arXiv preprint arXiv:1805.07733, 2018.
194
+
195
+ Libin Jiang and Jean Walrand. A distributed csma algorithm for throughput and utility maximization in wireless networks. IEEE/ACM Transactions on Networking (ToN), 18(3):960–972, 2010.
196
+
197
+ Vijay R Konda and John N Tsitsiklis. Actor-critic algorithms. Control Optimization, 42(4):1143– 1166, 2003.
198
+
199
+ James F Kurose. Computer networking: A top-down approach featuring the internet. Pearson Education India, 2005.
200
+
201
+ Joel Z Leibo, Vinicius Zambaldi, Marc Lanctot, Janusz Marecki, and Thore Graepel. Multi-agent reinforcement learning in sequential social dilemmas. In Proceedings of International Conference on Autonomous Agents and MultiAgent Systems, pp. 464–473, 2017.
202
+
203
+ 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.
204
+
205
+ Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, Pieter Abbeel, and Igor Mordatch. Multi-agent actorcritic for mixed cooperative-competitive environments. arXiv preprint arXiv:1706.02275, 2017.
206
+
207
+ Hongzi Mao, Ravi Netravali, and Mohammad Alizadeh. Neural adaptive video streaming with pensieve. In Proceedings of ACM Sigcomm, pp. 197–210, 2017.
208
+
209
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529, 2015.
210
+
211
+ 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 Proceedings of International Conference on Machine Learning, pp. 1928–1937, 2016.
212
+
213
+ Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. arxiv preprint arXiv:1703.10069, 2017.
214
+
215
+ Frans A Oliehoek, Christopher Amato, et al. A concise introduction to decentralized POMDPs, volume 1. Springer, 2016.
216
+
217
+ Shayegan Omidshafiei, Jason Pazis, Christopher Amato, Jonathan P How, and John Vian. Deep decentralized multi-task multi-agent RL under partial observability. arXiv preprint arXiv:1703.06182, 2017.
218
+
219
+ Gregory Palmer, Karl Tuyls, Daan Bloembergen, and Rahul Savani. Lenient multi-agent deep reinforcement learning. arxiv preprint arXiv:1707.04402, 2017.
220
+
221
+ Peng Peng, Quan Yuan, Ying Wen, Yaodong Yang, Zhenkun Tang, Haitao Long, and Jun Wang. Multiagent bidirectionally-coordinated nets for learning to play starcraft combat games. arxiv preprint arXiv:1703.10069, 2017.
222
+
223
+ Theodore Rappaport. Wireless Communications: Principles and Practice. Prentice Hall PTR, Upper Saddle River, NJ, USA, 2nd edition, 2001. ISBN 0130422320.
224
+
225
+ Tabish Rashid, Mikayel Samvelyan, Christian Schroeder, Gregory Farquhar, Jakob Foerster, and Shimon Whiteson. QMIX: Monotonic value function factorisation for deep multi-agent reinforcement learning. In Proceedings of International Conference on Machine Learning, 2018.
226
+
227
+ David Silver, Guy Lever, Nicolas Heess, Thomas Degris, Daan Wierstra, and Martin Riedmiller. Deterministic policy gradient algorithms. In Proceedings of International Conference on Machine Learning, 2014.
228
+
229
+ Peter Stone and Manuela Veloso. Multiagent systems: A survey from a machine learning perspective. Autonomous Robots, 8(3):345–383, 2000.
230
+
231
+ Sainbayar Sukhbaatar, Rob Fergus, et al. Learning multiagent communication with backpropagation. In Proceedings of Advances in Neural Information Processing Systems, pp. 2244–2252, 2016.
232
+
233
+ Peter Sunehag, Guy Lever, Audrunas Gruslys, Wojciech Marian Czarnecki, Vin´ıcius Flores Zambaldi, Max Jaderberg, Marc Lanctot, Nicolas Sonnerat, Joel Z. Leibo, Karl Tuyls, and Thore Graepel. Value-decomposition networks for cooperative multi-agent learning based on team reward. In Proceeding of AAMAS, 2018.
234
+
235
+ Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press Cambridge, 1998.
236
+
237
+ Richard S Sutton, David A McAllester, Satinder P Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. In Proceedings of Advances in Neural Information Processing Systems, 2000.
238
+
239
+ Ardi Tampuu, Tambet Matiisen, Dorian Kodelja, Ilya Kuzovkin, Kristjan Korjus, Juhan Aru, Jaan Aru, and Raul Vicente. Multiagent cooperation and competition with deep reinforcement learning. PloS one, 12(4):e0172395, 2017.
240
+
241
+ Ming Tan. Multi-agent reinforcement learning: Independent vs. cooperative agents. In Proceedings of International Conference on Machine Learning, pp. 330–337, 1993.
242
+
243
+ Leandros Tassiulas and Anthony Ephremides. Stability properties of constrained queueing systems and scheduling policies for maximum throughput in multihop radio networks. IEEE transactions on automatic control, 37(12):1936–1948, 1992.
244
+
245
+ Gerald Tesauro. Temporal difference learning and td-gammon. Communications of the ACM, 38(3): 58–68, 1995.
246
+
247
+ Yung Yi, Alexandre Proutiere, and Mung Chiang. Complexity in wireless scheduling: Impact and \` tradeoffs. In Proceedings of ACM Mobihoc, 2008.
248
+
249
+ Chongjie Zhang and Victor Lesser. Coordinating multi-agent reinforcement learning with limited communication. In Proceedings of International conference on Autonomous agents and multiagent systems, 2013.
250
+
251
+ SUPPLEMENTARY MATERIAL
252
+
253
+ # A SCHEDNET TRAINING ALGORITHM
254
+
255
+ The training algorithm for SchedNet is provided in Algorithm 1. The parameters of the message encoder are assumed to be included in the actor network. Thus, we use the notation $f _ { \mathrm { a s } } ^ { i } ( o ^ { i } , c ) \stackrel { \smile } { = }$ $f _ { \mathrm { a s } } ^ { i } \left( o ^ { i } , f _ { \mathrm { e n c } } ^ { i } \left( o ^ { i } \right) \otimes c \right)$ to simplify the presentation.
256
+
257
+ # Algorithm 1 SchedNet
258
+
259
+ 1: Initialize actor parameters $\theta _ { u }$ , scheduler parameters $\theta _ { \mathrm { w g } }$ , and critic parameters $\theta _ { c }$
260
+ 2: Initialize target scheduler parameters $\theta _ { \mathrm { w g } } ^ { \prime }$ , and target critic parameters $\theta _ { c } ^ { \prime }$
261
+ 3: for episode $= 1$ to $M$ do
262
+ 4: Observe initial state $\pmb { s }$
263
+ 5: for $t = 1$ to $T$ do
264
+ 6: $\mathbf { } w _ { t } \gets$ the priority $w ^ { i } = f _ { \mathrm { w g } } ^ { i } ( o ^ { i } )$ of each agent $i$
265
+ 7: Get schedule $c _ { t }$ from ${ \pmb w } _ { t }$
266
+ 8: $\mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf \mathbf { } \mathbf { } \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf { } \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf \mathbf$ the action $u ^ { i } = f _ { \mathrm { a s } } ^ { i } ( o ^ { i } , \pmb { c } _ { t } )$ of each agent $i$
267
+ 9: Execute the actions $\mathbf { \Delta } \mathbf { u } _ { t }$ and observe the reward $r _ { t }$ and next state $\mathbf { } s _ { t + 1 }$
268
+ 10: Store $( s _ { t } , u _ { t } , r _ { t } , s _ { t + 1 } , c _ { t } , w _ { t } )$ in the replay buffer $B$
269
+ 11: Sample a minibatch of $S$ samples $( s _ { k } , u _ { k } , r _ { k } , s _ { k + 1 } , c _ { k } , { \pmb w } _ { k } )$ from $B$
270
+ 12: Set $\begin{array} { r } { \dot { y } _ { k } = r _ { k } + \gamma \bar { V } ( s _ { k + 1 } ) } \end{array}$
271
+ 13: Set $\begin{array} { r } { \hat { y } _ { k } = r _ { k } + \gamma \bar { Q } \big ( \pmb { s } _ { k + 1 } , \bar { f } _ { \mathrm { w g } } ^ { i } \big ( \pmb { o } _ { k + 1 } , \pmb { c } _ { k + 1 } \big ) \big ) } \end{array}$
272
+ 14: Update the critic by minimizing the loss:
273
+
274
+ $$
275
+ L = \frac { 1 } { S } \sum _ { k } ( ( y _ { k } - V ( s _ { k } ) ) ^ { 2 } + ( \hat { y } _ { k } - Q ( \pmb { s } , \pmb { w } _ { k } ) ) ^ { 2 } )
276
+ $$
277
+
278
+ Update the actor along with the encoder using sampled policy gradient:
279
+
280
+ $$
281
+ \nabla _ { \theta _ { \mathrm { u } } } J ( \cdot , \theta _ { \mathrm { u } } ) = \mathbb { E } _ { s \sim \rho ^ { \pi } , u \sim \pi } [ \nabla _ { \theta _ { \mathrm { u } } } \log \pi ( u | o , c ) [ r + \gamma V _ { \theta _ { \mathrm { c } } } ( s ^ { \prime } ) - V _ { \theta _ { \mathrm { c } } } ( s ) ] ]
282
+ $$
283
+
284
+ Update scheduler using sampled policy gradient:
285
+
286
+ $$
287
+ \nabla _ { \theta _ { \mathrm { w g } } } J ( \theta _ { \mathrm { w g } } , \cdot ) = \mathbb { E } _ { w \sim \mu } \big [ \nabla _ { \theta _ { \mathrm { w g } } } \mu ( o ) \nabla _ { w } Q _ { \theta _ { \mathrm { c } } } ( s , w ) | _ { w = \mu ( o ) } \big ]
288
+ $$
289
+
290
+ 17: Update target network parameters:
291
+
292
+ $$
293
+ \begin{array} { r l r } { { \theta _ { \mathrm { w g } } ^ { \prime } \tau \theta _ { \mathrm { w g } } + ( 1 - \tau ) \theta _ { \mathrm { w g } } ^ { \prime } } } \\ & { } & { \theta _ { c } ^ { \prime } \tau \theta _ { c } + ( 1 - \tau ) \theta _ { c } ^ { \prime } } \end{array}
294
+ $$
295
+
296
+ 18: end for
297
+ 19: end for
298
+
299
+ # B DETAILS OF ENVIRONMENTS AND IMPLEMENTATION
300
+
301
+ ![](images/a8c51b379422ff426a458ab6afa9b36fb546b892af79b1d7da7be41fa7af6e77.jpg)
302
+ Figure 7: Illustrations of the experimental environment
303
+
304
+ # B.1 ENVIRONMENTS: PP AND CCN
305
+
306
+ Predator and prey We assess SchedNet in this predator-prey setting as in Stone & Veloso (2000), illustrated in Figure 7a. This setting involves a discretized grid world and multiple cooperating predators who must capture a randomly moving prey. Agents’ observations include position of themselves and the relative positions of the prey, if observed. The observation horizon of each predator is limited, thereby emphasizing the need for communication. The termination criterion for the task is that all agents observe the prey, as in the right of Figure 7a. The predators are rewarded when the task is terminated. We note that agents may be endowed with different observation horizons, making them heterogeneous. We employ four agents in our experiment, where only agent 1 has a $5 \times 5$ view while agents 2, 3, and 4 have a smaller, $3 \times 3$ view. The performance metric is the number of time steps taken to capture the prey.
307
+
308
+ Cooperative communication and navigation We adopt and modify the cooperative communication and navigation task in Lowe et al. (2017), where we test SchedNet in a simple one-dimensional grid as in Figure 7b. In CCN, each of the two agents resides in its one-dimensional grid world. Each agent’s goal is to arrive at a pre-specified destination (denoted by the square with a star or a heart for Agents 1 and 2, respectively), and they collect a joint reward when both agents reach their target destination. Each agent has a zero observation horizon around itself, but it can observe the situation of the other agent. We introduce heterogeneity into the scenario, where the agent-destination distance at the beginning of the task differs across agents. In our example, Agent 2 is initially located at a farther place from its destination, as illustrated in Figure 7b. The metric used to gauge the performance of SchedNet is the number of time steps taken to complete the CCN task.
309
+
310
+ # B.2 EXPERIMENT DETAILS
311
+
312
+ Table 1 shows the values of the hyperparameters for the CCN and the PP task. We use Adam optimizer to update network parameters and soft target update to update target network. The structure of the networks is the same across tasks. For the critic, we used three hidden layers, and the critic between the scheduler and the action selector shares the first two layers. For the actor, we use one hidden layer; for the encoder and the weight generator, three hidden layers each. Networks use rectified linear units for all hidden layers. Because the complexity of the two tasks differ, we sized the hidden layers differently. The actor network and the critic network for the CCN have hidden layers with 8 units and 16 units, respectively. The actor network and the critic network for the PP have hidden layers with 32 units and 64 units, respectively.
313
+
314
+ Table 1: List of hyperparameters
315
+
316
+ <table><tr><td>Hyperparameter</td><td>Value</td><td>Description</td></tr><tr><td>training step</td><td>750000</td><td>Maximum time steps until the end of training</td></tr><tr><td>episode length</td><td>1000</td><td>Maximum time steps per episode</td></tr><tr><td>discount factor</td><td>0.9</td><td>Importance of future rewards</td></tr><tr><td>learning rate for actor</td><td>0.00001</td><td>Actor network learning rate used by Adam optimizer</td></tr><tr><td>learning rate for critic</td><td>0.0001</td><td>Critic network learning rate used by Adam optimizer</td></tr><tr><td>target update rate</td><td>0.05</td><td>Target network update rate to track learned network</td></tr><tr><td>entropy regularization weight</td><td>0.01</td><td>Weight of regularization to encourage exploration</td></tr></table>
317
+
318
+ ![](images/b234f28f3af394f32d707c8f9b07324b849dcf5700f9b727da648d8fe610602e.jpg)
319
+ Figure 8: Performance evaluation of SchedNet. The graphs show the average time taken to complete the task, where shorter time is better for the agents.
320
+
321
+ # C ADDITIONAL EXPERIMENT RESULTS
322
+
323
+ # C.1 PREDATOR AND PREY
324
+
325
+ Impact of bandwidth $( L )$ and number of schedulable agents $( K )$ Due to communication constraints, only $k$ agents can communicate and scheduled agents can broadcast their message, each of which has a limited size $l$ due to bandwidth constraints. We see the impact of $l$ and $k$ on the performance in Figure 8a. As $L$ increases, more information can be encoded into the message, which can be used by other agents to take action. Since the encoder and the actor are trained to maximize the shared goal of all agents, they can achieve higher performance with increasing $l$ . In Figure 8b, we compare the cases where $k = 1 , 2 , 3$ , and FC in which all agents can access the medium, with $l = 1$ . As we can expect, the general tendency is that the performance grows as $k$ increases.
326
+
327
+ Table 2: Performance with/without encoder
328
+
329
+ <table><tr><td>FC</td><td>SchedNet -Top(1)</td><td>Schedule w/ auto-encoder</td></tr><tr><td>1</td><td>2.030</td><td>3.408</td></tr></table>
330
+
331
+ Impact of joint scheduling and encoding To study the effect of jointly coupling scheduling and encoding, we devise a comparison against a pre-trained auto-encoder (Bourlard & Kamp, 1988; Hinton & Zemel, 1994). An auto-encoder was trained ahead of time, and the encoder part of this auto-encoder was placed in the Actor’s ENC module in Figure 1. The encoder part is not trained further while training the other parts of network. Henceforth, we name this modified Actor “AE”. Figure 8c shows the learning curve of AE and other baselines. Table 2 highlights the impact of joint scheduling and encoding. The numbers shown are the performance metric normalized to the FC case in the PP environment. While SchedNet-Top(1) took only 2.030 times as long as FC to finish the PP task, the AE-equipped actor took 3.408 times as long as FC. This lets us ascertain that utilizing a pre-trained auto-encoder deprives the agent of the benefit of joint the scheduler and encoder neural network in SchedNet.
332
+
333
+ What messages agents broadcast In Section 4.1, we attempted to understand what the predator agents communicate when performing PP task where $k = 1$ and $l = 2$ . In this section, we look into the message in detail. Figure 9 shows the projections of the messages generated by the scheduled agent based on its own observation. In the PP task, the most important information is the location of the prey, and this can be estimated from the observation of other agents. Thus, we are interested in the location information of the prey and other agents. We classify the message into four classes based on which quadrant the prey and the predator are included, and mark each class with different colors. Figure 9a shows the messages for different relative location of prey for agents’ observation, and Figure 9b shows the messages for different locations of the agent who sends the message. We can observe that there is some general trend in the message according to the class. We thus conclude that if the agents observe the prey, they encode into the message the relevant information that is helpful to estimate the location of the prey. The agents who receive this message interpret the message to select action.
334
+
335
+ ![](images/43538fe12aecd8b68a5ab3741ec2cebbbd9826febe138e719171e823a127d3ab.jpg)
336
+ Figure 9: Projection of encoded messages into 2D plane in PP.
337
+
338
+ # C.2 PARTIAL OBSERVABILITY ISSUE IN SCHEDNET
339
+
340
+ In MARL, partial observability issue is one of the major problems, and there are two typical ways to tackle this issue. First, using RNN structure to indirectly remember the history can alleviate the partial observability issues. Another way is to use the observations of other agents through communication among them. In this paper, we focused more on the latter because the goal of this paper is to show the importance of learning to schedule in a practical communication environment in which the shared medium contention is inevitable.
341
+
342
+ Enlarging the observation through communication is somewhat orthogonal to considering temporal correlation. Thus, we can easily merge SchedNet with RNN which can be appropriate to some partially observable environments. We add one GRU layer into each of individual encoder, action selector, and weight generator of each agent, where each GRU cell has 64 hidden nodes.
343
+
344
+ Figure 10 shows the result of applying RNN. We implement IDQN with RNN, and the results show that the average steps to complete tasks of IDQN with RNN is slightly smaller than that of IDQN with feed-forward network. In this case, RNN helps to improve the performance by tackling the partial observable issue. On the other hand, SchedNet-RNN and SchedNet achieve similar performance. We think that the communication in SchedNet somewhat resolves the partial observable issues, so the impact of considering temporal correlation with RNN is relatively small. Although applying RNN to SchedNet is not really that helpful in this simple environment, we expect that in a more complex environment, using the recurrent connection is more helpful.
345
+
346
+ ![](images/959c23c61980c5faeb8ec4e9b2916345afd797c70441c2b8132388d179758f3f.jpg)
347
+ Figure 10: Impact of applying RNN $k =$ 1 and $l = 2$ )
348
+
349
+ # C.3 COOPERATIVE COMMUNICATION AND NAVIGATION
350
+
351
+ Result in CCN Figure 11 illustrates the learning curve of 200,000 steps in CCN. In FC, since all agents can broadcast their message during execution, they achieve the best performance. IDQN and COMA in which no communication is allowed, take a longer time to complete the task compared to other baselines. The performances of both are similar because no cooperation can be achieved without the exchange of observations in this environment. As expected, SchedNet and DIAL outperform IDQN and COMA. Although DIAL works well when there is no contention constraint, under the contention constraint, the average number of steps to complete the task in DIAL(1) is larger than that of SchedNet-Top(1). This result shows the same tendency with the result in PP environment.
352
+
353
+ ![](images/975df2cf0801f9d4ac1f2f8188e6bd06b5915ab12a1a7cd4ae2e61fdfa6859ad.jpg)
354
+ Figure 11: Comparison with other baselines
355
+
356
+ # D SCHEDULER FOR DISTRIBUTED EXECUTION
357
+
358
+ Issues. The role of the scheduler is to consider the constraint due to accessing a shared medium, so that only $k < n$ agents may broadcast their encoded messages. $k$ is determined by the wireless communication environment. For example, under a single wireless channel environment where each agent is located in other agents’ interference range, $k = 1$ . Although the number of agents that can be simultaneously scheduled is somewhat more complex, we abstract it with a single number $k$ because the goal of this paper lies in studying the importance of considering scheduling constraints.
359
+
360
+ There are two key challenges in designing the scheduler: $( i )$ how to schedule agents in a distributed manner for decentralized execution, and $( i i )$ how to strike a good balance between simplicity in implementation and training, and the integrity of reflecting the current practice of MAC (Medium Access Control) protocols.
361
+
362
+ ![](images/76e58b66862e0e6034d6d3244bfc54efafc14af427479450703eba92c6492305.jpg)
363
+ Figure 12: Proposed scheduling architecture. Each agent $i$ calculates its scheduling weight $w _ { i }$ from weight generator (WG), and the corresponding scheduling profile $c \in \{ 0 , 1 \} ^ { n }$ is determined by the scheduling algorithm (k) (WSA(k)), satisfying the condition $| | \boldsymbol { c } | | _ { 1 } = k$ .
364
+
365
+ Weight-based scheduling To tackle the challenges addressed in the previous paragraph, we propose a scheduler, called weight-based scheduler (WSA), that works based on each agent’s individual weight coming from its observation. As shown in Figure 12, the role of WSA is to map from ${ \pmb w } = [ \bar { w _ { i } } ] _ { n }$ to $^ c$ . This scheduling is extremely simple, but more importantly, highly amenable to the philosophy of distributed execution. The remaining checkpoint is whether this principle is capable of efficiently approximating practical wireless scheduling protocols. To this end, we consider the following two weight-based scheduling algorithms among many different protocols that could be devised:
366
+
367
+ $\circ \ T o p ( k )$ . Selecting top $k$ agents in terms of their weight values. ◦ Softmax $( k )$ . Computing softmax values $\begin{array} { r } { \sigma ( \boldsymbol { w } ) _ { i } = \frac { \boldsymbol { e ^ { w _ { i } } } } { \sum _ { j = 1 } ^ { n } e ^ { w _ { j } } } } \end{array}$ for each agent $i$ , and then randomly selecting $k$ agents with probability in proportion to their softmax values.
368
+
369
+ $\mathrm { T o p } ( k )$ can be a nice abstraction of the MaxWeight (Tassiulas & Ephremides, 1992) scheduling principle or its distributed approximation (Yi et al., 2008), in which case it is known that different choices of weight values result in achieving different performance metrics, e.g., using the amount of messages queued for being transmitted as weight. Softmax $( k )$ can be a simplified model of CSMA (Carrier Sense Multiple Access), which forms a basis of 802.11 Wi-Fi. Due to space limitation, we refer the reader to Jiang & Walrand (2010) for detail. We now present how $T o p ( k )$ and Softmax(k) work.
370
+
371
+ # D.1 CARRIER SENSE MULTIPLE ACCESS (CSMA)
372
+
373
+ CSMA is the one of typical distributed MAC scheduling in wireless communication system. To show the feasibility of scheduling $T o p ( k )$ and Softmax $( k )$ in a distributed manner, we will explain the variant of CSMA. In this section, we first present the concept of CSMA.
374
+
375
+ How does CSMA work? The key idea of CSMA is “listen before transmit”. Under a CSMA algorithm, prior to trying to transmit a packet, senders first check whether the medium is busy or idle, and then transmit the packet only when the medium is sensed as idle, i.e., no one is using the channel. To control the aggressiveness of such medium access, each sender maintains a backoff timer, which is set to a certain value based on a pre-defined rule. The timer runs only when the medium is idle, and stops otherwise. With the backoff timer, links try to avoid collisions by the following procedure:
376
+
377
+ • Each sender does not start transmission immediately when the medium is sensed idle, but keeps silent until its backoff timer expires.
378
+ • After a sender grabs the channel, it holds the channel for some duration, called the holding time.
379
+
380
+ Depending on how to choose the backoff and holding times, there can be many variants of CSMA that work for various purposes such as fairness and throughput. Two examples of these, $T o p ( k )$ and Softmax $( k )$ , are introduced in the following sections.
381
+
382
+ # D.2 A VERSION OF Distributed Top(k)
383
+
384
+ In this subsection, we introduce a simple distributed scheduling algorithm, called Distributed $T o p ( k )$ , which can work with SchedNet-Top $( k )$ . It is based on CSMA where each sender determines backoff and holding times as follows. In SchedNet, each agent generates the scheduling weight $w$ based on its own observation. The agent sets its backoff time as $1 - w$ where $w$ is its schedule weight, and it waits for backoff time before it tries to broadcast its message. Once it successfully broadcasts the message, it immediately releases the channel. Thus, the agent with the highest $w$ can grab the channel in a decentralized manner without any message passing. By repeating this for $k$ times, we can realize decentralized $\mathrm { T o p } ( k )$ scheduling.
385
+
386
+ To show the feasibility of distributed scheduling, we implemented the Distributed $\mathrm { T o p } ( k )$ on Contiki network simulator (Dunkels et al., 2004) and run the trained agents for the PP task. In our experiment, $\mathrm { T o p } ( k )$ agents are successfully scheduled $98 \%$ of the time, and the $2 \%$ failures are due to probabilistic collisions in which one of the colliding agents is randomly scheduled by the default collision avoidance mechanism implemented in Contiki. In this case, agents achieve $9 8 . 9 \%$ performance compared to the case where $\mathrm { T o p } ( k )$ agents are ideally scheduled.
387
+
388
+ # D.3 OCSMA ALGORITHM AND Softmax(k)
389
+
390
+ In this section, we explain the relation between Softmax $( k )$ and the existing CSMA-based wireless MAC protocols, called oCSMA. When we use Softmax $( k )$ in the case of $k = 1$ , the scheduling algorithm directly relates to the channel selection probability of oCSMA algorithms. First, we explain how it works and show that the resulting channel access probability has a same form with Softmax $( k )$ .
391
+
392
+ How does oCSMA work? It is also based on the basic CSMA algorithm. Once each agent generates its scheduling weight $w _ { i }$ , it sets $b _ { i }$ and $h _ { i }$ to satisfy $w _ { i } = \log ( b _ { i } h _ { i } )$ . It sets its backoff and holding times following exponential distributions with means $1 / b _ { i }$ and $h _ { i }$ , respectively. Based on these backoff and holding times, each agent runs the oCSMA algorithm. In this case, if all agents are in the communication range, the probability that agent $i$ is scheduled over time is as follows:
393
+
394
+ $$
395
+ s _ { i } ( \pmb { w } ) = \frac { \exp ( w _ { i } ) } { \sum _ { j = 1 } ^ { n } \exp ( w _ { j } ) } .
396
+ $$
397
+
398
+ We refer the readers to Jang et al. (2014) for detail.
parse/train/SJxu5iR9KQ/SJxu5iR9KQ_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJxu5iR9KQ/SJxu5iR9KQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJxu5iR9KQ/SJxu5iR9KQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/X76iqnUbBjz/X76iqnUbBjz.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/X76iqnUbBjz/X76iqnUbBjz_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/X76iqnUbBjz/X76iqnUbBjz_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/X76iqnUbBjz/X76iqnUbBjz_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/XwATtbX3oCz/XwATtbX3oCz.md ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # REVISITING POINT CLOUD CLASSIFICATION WITH ASIMPLE AND EFFECTIVE BASELINE
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Processing point cloud data is an important component of many real-world systems. As such, a wide variety of point-based approaches have been proposed, reporting steady benchmark improvements over time. We study the key ingredients of this progress and uncover two critical results. First, we find that auxiliary factors like different evaluation schemes, data augmentation strategies, and loss functions, which are independent of the model architecture, make a large difference in performance. The differences are large enough that they obscure the effect of architecture. When these factors are controlled for, PointNet++, a relatively older network, performs competitively with recent methods. Second, a very simple projection-based method, which we refer to as SimpleView, performs surprisingly well. It achieves on par or better results than sophisticated state-ofthe-art methods on ModelNet40 while being half the size of PointNet $^ { + + }$ . It also outperforms state-of-the-art methods on ScanObjectNN, a real-world point cloud benchmark, and demonstrates better cross-dataset generalization.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Processing 3D point cloud data accurately is crucial in many applications including autonomous driving (Navarro-Serment et al., 2010) and robotics (Rusu et al., 2009). In these settings, sensors like LIDAR produce unordered sets of points that correspond to object surfaces. Correctly classifying objects from this data is important for 3D scene understanding (Uy et al., 2019). While classical approaches for this problem have relied on hand-crafted features (Arras et al., 2007), recent efforts have focused on the design of deep neural networks (DNNs) to learn features directly from raw point cloud data (Qi et al., 2017a). Deep learning-based methods have proven effective in aggregating information across a set of 3D points to accurately classify objects.
12
+
13
+ The most widely adopted benchmark for comparing methods for point cloud classification has been ModelNet40 (Wu et al., 2015b). The accuracy on ModelNet40 has steadily improved over the last few years from $8 9 . 2 \%$ by PointNet (Qi et al., 2017a) to $9 3 . 6 \%$ by RSCNN (Liu et al., 2019c) (Fig. 1). This progress is commonly perceived to be a result of better designs of network architectures. However, after performing a careful analysis of recent works we find two surprising results. First, we find that auxiliary factors including differing evaluation schemes, data augmentation strategies, and loss functions affect performance to such a degree that it can be difficult to disentangle improvements due to the network architecture. Second, we find that a very simple projection-based architecture works surprisingly well, outperforming state-of-the-art point-based architectures.
14
+
15
+ In deep learning, as results improve on a benchmark, attention is generally focused on the novel architectures used to achieve those results. However, there are many factors beyond architecture design that influence performance including data augmentation and evaluation procedure. We refer to these additional factors as a method’s protocol. A protocol defines all details orthogonal to the network architecture that can be controlled to compare differing architectures. Note that it is possible for some specific form of loss or data augmentation to be tied to a specific architecture and inapplicable to other architectures. In these cases, it would be inappropriate to treat them as part of the protocol. However, for all the methods we consider in this paper, their losses and augmentation schemes are fully compatible with each other and can be considered independently.
16
+
17
+ We do experiments to study the effect of protocol and discover that it accounts for a large difference in performance, so large as to obscure the contribution of a novel architecture. For example, the performance of the PointNe $^ { + + }$ architecture (Qi et al., 2017b) jumps from $9 0 . 0 { \pm } 0 . 3 $ to $9 3 . 3 { \pm } 0 . 3 $ , when switching from its original protocol to RSCNN’s protocol (Liu et al., 2019c). We further find that the protocols that lead to the strongest performance rely on feedback from the test set, which differs from conventional evaluation setups. We re-evaluate prior architectures using the best augmentation and loss functions, while not using any feedback from the test set. We find that by taking protocol into account, the PointNet+ $^ { - + }$ architecture performs competitively with more recent ones in various settings.
18
+
19
+ ![](images/66a78d68df7e5c9b9390ab71fe25ac55b4de36a395b6b5ee0ae24744c87118db.jpg)
20
+ Figure 1: Performance of point-based models on ModelNet40. Those using $> 1 0 2 4$ points or normals are marked with triangle. Line joins the topperforming models across times.
21
+
22
+ ![](images/fffc0bda7909a68a6101500cd83fbf982bc671ddf80ebc3aa5cfdd2c8ab5b377.jpg)
23
+ Figure 2: The SimpleView Architecture. The depth images are colored only for illustration. SimpleView takes in single channel depth images as input.
24
+
25
+ In addition to the surprising importance of protocol, in reviewing past approaches, another surprising discovery is that a very simple projection based baseline works very well. One needs to simply project the points to depth maps along the orthogonal views, pass them through a light-weight CNN and fuse the features. We refer to this baseline as SimpleView.
26
+
27
+ Compared to previous projection-based method (Roveri et al., 2018; Sarkar et al., 2018) for pointcloud classification, SimpleView is very simple. Prior methods have developed special modules for view selection, rendering, and feature merging, as well as use larger CNN backbones that are pretrained on ImageNet (refer to Sec. 2 for more details). In contrast, SimpleView has no such special operations, and only requires simple point projections, a much smaller CNN backbone, and no ImageNet pretraining.
28
+
29
+ The discovery of SimpleView is surprising because recent state-of-the-art results have all been achieved by point-based architectures of increasing sophistication. In recent literature, it is often assumed that point-based methods are the superior choice for point-cloud processing as they “do not introduce explicit information loss” (Guo et al., 2020). Prior work has stated that “convolution operation of these methods lacks the ability to capture nonlocally geometric features” (Yan et al., 2020), that a projection-base method “often demands a huge number of views for decent performance” (Liu et al., 2019c), and that projection-based methods often “fine-tune a pre-trained image-based architecture for accurate recognition” (Liu et al., 2019c). It is thus surprising that a projection-based method could achieve state-of-the-art results with a simple architecture, only a few views, and no pretraining.
30
+
31
+ On ModelNet40, SimpleView performs on par or better than more sophisticated state-of-the-art networks across various protocols, which includes the ones used by prior methods (Table. 3) as well as our protocol (Table. 5). At the same time, SimpleView outperforms state-of-the-art architectures on ScanObjectNN (Uy et al., 2019), a real-world dataset where point clouds are noisy (background points, occlusions, holes in objects) and are not axis-aligned. SimpleView also demonstrates better cross-dataset generalization than prior works. Furthermore, SimpleView uses less parameters than state-of-the-art networks (Table. 5).
32
+
33
+ Note that we are not proposing a new architecture or method, but simply evaluating a simple and strong projection-based baseline for point-cloud classification that is largely ignored in the literature. We do not claim any novelty in the design of SimpleView because all of its components have appeared in the literature. Our contribution is showing that such a simple baseline works surprisingly well, which is a result absent in existing literature.
34
+
35
+ It is worth noting that one might think that projection-based methods are not directly comparable with point-based methods because projection-based methods may have the full mesh as input, as opposed to just a point cloud. While this is true for existing results in the literature, it is not the case with SimpleView, whose input is the exact same point cloud given to a point-based method. In other words, SimpleView is directly comparable to a point-based method because they solve the exact same task.
36
+
37
+ In summary, our contributions are threefold:
38
+
39
+ • We show that training and evaluation factors independent of network architecture have a large impact on point-cloud classification performance. With these factors controlled for, PointNet++ performs as well as more recent architectures. We demonstrate how SimpleView, a very simple projection based baseline performs surprisingly well on point-cloud classification. It performs on par with or better than prior networks on ModelNet40 while using fewer parameters. It also outperforms state-of-the-art methods on real-world point-cloud classification and achieves better cross-dataset generalization.
40
+
41
+ # 2 RELATED WORK
42
+
43
+ Point-Based Methods for Point-Cloud Analysis: A broad class of DNNs have emerged to process 3D points directly (Simonovsky & Komodakis, 2017; Zaheer et al., 2017; Klokov & Lempitsky, 2017; Xu et al., 2018; Atzmon et al., 2018; Wang et al., 2018a; Li et al., 2018a; Groh et al., 2018; Ben-Shabat et al., 2018; Xie et al., 2018; Li et al., 2018b; Liu et al., 2019a; Thomas et al., 2019; Komarichev et al., 2019; Liu et al., 2019b; Yan et al., 2020; Su et al., 2018; Zhang et al., 2019; Liu et al., 2019a; Atzmon et al., 2018). PointNet (Qi et al., 2017a) proposed one of the first strategies, where features are updated for each point with MLP layers, and aggregated with global max pooling. However, no local comparisons are performed in PointNet, which motivates PointNet+ $^ +$ (Qi et al., 2017b). PointNet $^ { - + }$ breaks subsets of points into local regions that are processed first. More explicit modeling of the spatial relations between points is performed with more recent methods (Li et al., 2018b; Liu et al., 2019c; Wu et al., 2019). For example, PointConv learns functions to define continuous 3D convolutions that can be applied to arbitrary sets of points in a neighborhood (Wu et al., 2019). RSCNN uses MLPs conditioned on the spatial relationship of two points to update and aggregate features around an individual sampled point (Liu et al., 2019c). There exist many variations to these methods, but the emerging trend is an increase in sophistication.
44
+
45
+ Projection-Based Methods for Point-Cloud Classification: Projection-based methods for point cloud classification have been proposed in the literature. Notably, Roveri et al. (2018) learn to predict viewing angles and classify images in an end-to-end differentiable way. They use the ResNet50 model, pretrained on ImageNet as their backbone and a depth-image generation pipeline. Sarkar et al. (2018) propose a special multi-height rendering and feature merging scheme, and use a larger backbone network pretrained on ImageNet. Ahmed et al. (2019) manually define important views for each object category, create binary edge maps, and train an ensemble of PointNet+ $^ +$ and CNN. However, numbers in Ahmed et al. (2019) are not directly comparable to other approaches as there is a manual alignment of objects in the test set which is different from the standard ModelNet40 test set. This was confirmed with the authors. It is worth noting that even though prior work has shown sophisticated operations to be useful for achieving good results, we find that when controlling for method protocols, strong performance can be achieved with fixed orthogonal views, a smaller network, no ImageNet pretraining, and simpler rendering of points.
46
+
47
+ Projection-Based Methods for Other Point-Cloud Analysis Tasks: There is a rich literature for using projection-based methods on various point-cloud analysis problems like segmentation (Ladicky et al., 2010; Tighe & Lazebnik, 2010; Riemenschneider et al., 2014; Qin et al., 2018; \` Dai & Nießner, 2018; Kalogerakis et al., 2017; Tatarchenko et al., 2018), reconstruction (Pittaluga et al., 2019) and rendering (Aliev et al., 2019). Notably, Boulch et al. (2017) use point cloud density to create scene meshes, which are then put into a mesh renderer to generate many image views at different scales. Lawin et al. (2017) render a scene point cloud from 120 views for different modalities like color, depth, and surface normal. Information from multiple modalities is then fused to generate point-wise predictions. For a detailed survey of various projection approaches on different point-cloud processing tasks, we encourage readers to check the recent survey paper by (Guo et al., 2020). In this work, SimpleView serves as a stripped-down projection-based baseline for point-cloud classification that uses a few orthogonal views and simple point projections.
48
+
49
+ Table 1: Summary of various protocols.
50
+
51
+ <table><tr><td>Protocol</td><td>Data Augmentation</td><td>Model Selection</td><td>Loss</td><td>Ensemble</td><td>Training Points</td></tr><tr><td>PointNet++</td><td>jitter, random rotation, random scaling and trans.</td><td>final model</td><td>cross-entropy</td><td>Rotation Vote</td><td>fixed</td></tr><tr><td>DGCNN</td><td>random scaling and trans.</td><td>best test model</td><td>smooth-loss</td><td>No vote</td><td>fixed</td></tr><tr><td>RSCNN</td><td>random scaling and trans.</td><td>best test model</td><td>cross-entropy</td><td>Repeated Scaling Vote</td><td>resampled</td></tr><tr><td>SimpleView</td><td>random scaling and trans.</td><td>final model</td><td>smooth-loss</td><td>No vote</td><td>fixed</td></tr></table>
52
+
53
+ 3D shape Analysis using Rendered Images and Voxels: Many works use images rendered from object meshes for 3D shape analysis (Maturana & Scherer, 2015; Wu et al., 2015b; Yu et al., 2018; Guo et al., 2016; Shi et al., 2015; Hackel et al., 2017; Song & Xiao, 2016; 2014; Huang & You, 2016; Tchapmi et al., 2017). MVCNN exemplifies this strategy by applying a shared CNN to many rendered views and max-pooling to aggregate features (Su et al., 2015). Subsequent approaches include RotationNet which trains the network to also predict the viewpoint for each image (Kanezaki et al., 2018), GVCNN which groups features from subsets of views together before aggregating into a final prediction (Feng et al., 2018), and hypergraph methods that consider the correlation across training samples (Zhang et al., 2018; Feng et al., 2019). One notable exception is Qi et al. (2016), who use a multi-resolution variant of MVCNN, but instead of object meshes, use a voxelized version of the object for rendering. In contrast to the prior view-based methods that use object meshes with point connectivity information, and render images using basic shading and/or depth; SimpleView takes as input raw point clouds.
54
+
55
+ Another class of methods is voxel-based methods that convert points to a fixed 3D grid instead, which enables the use of 3D CNNs (Qi et al., 2016; Wu et al., 2015a; Maturana & Scherer, 2015). Given the added dimension, such methods are usually restricted to a much lower resolution to represent objects. Though some strategies such as octrees have been used to address those limitations (Wang et al., 2017), the advantages to processing 3D data directly in this manner do not yet appear to outweigh the additional overhead introduced.
56
+
57
+ # 3 METHOD OVERVIEW
58
+
59
+ # 3.1 VARIATIONS IN EXISTING PROTOCOLS
60
+
61
+ We analyze the key ingredients in the progress in point-cloud classification. Critical to our study is controlling for factors which are independent of network architecture. We refer to the factors as a method’s protocol. A protocol used by one method can be transferred to another. For our study, we analyze a subset of the highest performing methods over the past few years. This choice was further based on availability and usability of official source-code. Specifically, we choose PointNet (Qi et al., 2017a), PointNet+ $^ +$ (Qi et al., 2017b), DGCNN (Wang et al., 2018b) and RSCNN (Liu et al., 2019c). Note that we also do direct comparisons to networks apart from the ones mentioned here (Table 4).
62
+
63
+ For our purposes, we do not consider any variations in input, namely the use of surface normals or more than 1024 points. Using normals or more points have been shown to improve performance in the literature. Our objective is to study factors that are not commonly perceived as a major source of performance increase. So we scope our analysis to the most widely adopted input scheme which uses 1024 points with only $x , y , z$ coordinates.
64
+
65
+ Data Augmentation: Various data augmentation strategies like jittering, random rotation along y-axis, random scaling and random translation. Different methods use different combinations of these augmentations. PointNet and PointNet+ $^ +$ use all the above augmentations. However, as objects in ModelNet40 are aligned, random rotation along y-axis adversely affects the performance of a model. Hence recent methods, including RSCNN and DGCNN, do not use it. They use only random translation and random scaling. Some methods including PointCNN make a distinction between whether or not random rotation along y-axis is used, but it is not a common practice.
66
+
67
+ Input Points: PointNet and PointNet+ $^ +$ use a fixed set of 1024 points per object to train the network. We refer to it as the fixed points strategy. RSCNN and PointCNN randomly sample points during each epoch, effectively exposing the model to more than 1024 points per object during the training process. We refer to this as the resampled points strategy.
68
+
69
+ Table 2: DGCNN aug. and smooth loss improve the performance of all architectures
70
+
71
+ <table><tr><td colspan="2">Data Augmentation</td><td colspan="2">Model Selection</td><td colspan="2">Loss</td><td colspan="4">Architecture</td></tr><tr><td>PN++</td><td>DGCNN</td><td>Final</td><td>Best Test</td><td>C.E.</td><td>Smooth</td><td>PointNet</td><td>PN++</td><td>DGCNN</td><td>RSCNN</td></tr><tr><td></td><td></td><td></td><td>√</td><td>?</td><td></td><td>89.7±0.3</td><td>91.0±0.3</td><td>90.5±0.2</td><td>90.4±0.3</td></tr><tr><td>√</td><td></td><td>&gt;&gt;&gt;</td><td></td><td></td><td></td><td>89.0±0.2</td><td>89.8±0.2</td><td>90.0±0.4</td><td>89.4±0.1</td></tr><tr><td></td><td>√</td><td></td><td></td><td>√</td><td></td><td>89.1±0.2</td><td>92.1±0.1</td><td>91.1±0.3</td><td>91.1±0.3</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>√</td><td>89.2±0.9</td><td>92.7±0.1</td><td>91.9±0.2</td><td>91.7±0.3</td></tr></table>
72
+
73
+ Loss Function: cross-entropy (CE) is used by most of the methods. However, DGCNN uses smooth-loss, where the ground-truth labels are smoothed out before calculating cross-entropy. We observe that smooth-loss improves the performance of all network architectures.
74
+
75
+ Selecting Model for Testing: PointNet and PointNet+ $^ { - + }$ use the final converged model to evaluate on the test set. Since the number of epochs is a hyper-parameter that depends on factors like data, model, optimizer, and loss, in our experiments, we create a validation set from the training set to tune the number of epochs. We then retrain the model with the complete training set to the tuned number of epochs. We refer to this strategy as final model selection. We find that some methods including DGCNN and RSCNN evaluate the model on the test set after every epoch and use the best test performance as the final performance. We refer to this strategy as best test model selection.
76
+
77
+ Ensemble Scheme: Some methods use an ensemble to further improve the performance. PointNet and PointNet+ $^ +$ apply the final network to multiple rotated and shuffled versions of the point cloud, and average the predictions to make the final prediction. We refer to this strategy as Rotation Vote. The shuffling operation induces randomness in prediction for PointNet $^ { + + }$ and RSCNN as they are not strictly invariant to the order of the points (Sec. 3.3 in Qi et al. (2017b)). Hence, while evaluating Rotation Vote, we do the inference 10 times per run for PointNet $^ { + + }$ and RSCNN, and report mean and standard deviation. SimpleView and PointNet are invariant to the order of the points and hence are not affected by shuffling. Some methods, including RSCNN and DensePoint, create multiple randomly scaled and randomly sampled versions of a test object. They then evaluate the final network on these multiple versions of the object and average the prediction. Since the scaling is random, it makes the test set performance random as well. RSCNN and DensePoint repeat this procedure 300 times on the test set and report the best accuracy. We refer to it as Repeated Scaling Vote. DGCNN does not use any ensemble.
78
+
79
+ Table 1 summarizes the PointNet $^ { + + }$ , DGCNN and RSCNN protocols. Besides these three protocols, we also include variants of these protocols in table 3 and table 4, such as PointNet $^ { + + }$ no Vote (i.e. PointNe $^ { + + }$ but without the Rotation Vote), DGCNN CE (i.e. DGCNN but with CE loss intead of smooth loss), DGCNN CE Final (i.e. DGCNN CE but with final model selection instead of best test model selection) and RSCNN no Vote (i.e. RSCNN but without the Rotation Vote). These protocols represent prototypical settings and have been used with slight modifications in many other prior works.
80
+
81
+ For example, DeepSets (Zaheer et al., 2017) used the PointNet $^ { + + }$ no Vote protocol without jittering and translation; SO-Net (Li et al., 2018a) used the DGCNN CE protocol with jittering and random scaling instead of random scaling and translation; 3DmFV (Ben-Shabat et al., 2018) used the DGCNN $C E$ protocol with additional jittering; PCNN (Atzmon et al., 2018) used the DGCNN CE Final protcol1; PointCNN (Li et al., 2018b) used the DGCNN CE protocol with randomly sampled points and small $( 1 0 ^ { \circ } )$ rotation augmentation; DensePoint (Liu et al., 2019b) used the RSCNN protocol; PointASL (Yan et al., 2020) used the DGCNN CE protocol but with additional point jittering augmentation and voting.
82
+
83
+ Our Protocol: Based on our findings, we define our SimpleView protocol, which uses the best augmentation and loss functions while not using any information from the test set. Table 2 shows that
84
+
85
+ Table 3: Performance of various architectures on ModelNet40. Protocol affects performance by a large amount. SimpleView performs on par or better than prior architectures across protocols.
86
+
87
+ <table><tr><td rowspan="2">Protocol→ Architecture ↓</td><td colspan="2">PointNet++</td><td colspan="2">RSCNN</td><td colspan="2">DGCNN</td></tr><tr><td>no Vote</td><td>Vote</td><td>no Vote</td><td>Vote</td><td>CE</td><td>Smooth</td></tr><tr><td>PointNet</td><td>89.0 ± 0.2</td><td>89.1 ± 0.2</td><td>90.0 ± 0.3</td><td>90.1 ± 0.2</td><td>90.1 ± 0.2</td><td>90.5 ± 0.1</td></tr><tr><td>PointNet++</td><td>89.8 ± 0.2</td><td>90.0 ± 0.3</td><td>92.7 ± 0.1</td><td>93.3 ± 0.3</td><td>92.6 ± 0.2</td><td>93.1 ± 0.2</td></tr><tr><td>DGCNN</td><td>90.0 ± 0.4</td><td>90.5 ± 0.4</td><td>92.2 ± 0.1</td><td>92.8 ± 0.5</td><td>91.9 ± 0.2</td><td>92.7 ± 0.1</td></tr><tr><td>RSCNN</td><td>89.4 ± 0.1</td><td>90.2 ± 0.2</td><td>92.1 ± 0.1</td><td>92.5 ± 0.2</td><td>91.9 ± 0.2</td><td>92.5 ± 0.1</td></tr><tr><td>SimpleView</td><td>90.7 ± 0.3</td><td>91.0 ± 0.2</td><td>92.9 ± 0.2</td><td>93.2 ± 0.1</td><td>93.1 ± 0.1</td><td>93.6 ± 0.3</td></tr></table>
88
+
89
+ Table 4: Performance of various architectures on ModelNet40. Includes prior works not in Table 3. \* indicates small differences in protocol as identified in Sec. 3.1
90
+
91
+ <table><tr><td>Architecture</td><td>#Points</td><td>Closest Protocol</td><td>Acc.</td><td>PN++ Acc.</td><td>SimpleView Acc.</td></tr><tr><td>DeepSets (Zaheer et al.)</td><td>5000</td><td>PointNet++ no Vote*</td><td>90.0 ± 0.3</td><td>89.8 ± 0.2</td><td>90.7 ± 0.3</td></tr><tr><td>SO-Net (Li et al.)</td><td>2048</td><td>DGCNN CE*</td><td>90.9</td><td>92.6 ± 0.2</td><td>93.1 ± 0.1</td></tr><tr><td>3DmFV (Ben-Shabat et al.)</td><td>1024</td><td>DGCNN CE*</td><td>91.4</td><td>92.6 ± 0.2</td><td>93.1 ± 0.1</td></tr><tr><td>PCNN (Atzmon et al.)</td><td>1024</td><td>DCNN CE Final*</td><td>92.3</td><td>92.1 ± 0.1</td><td>92.5 ± 0.3</td></tr><tr><td>PointCNN (Li et al.)</td><td>1024</td><td>DGCNN CE*</td><td>92.5</td><td>92.6 ± 0.2</td><td>93.1 ± 0.1</td></tr><tr><td>DensePoint (Liu et al.)</td><td>1024</td><td>RSCNN no Vote</td><td>92.8</td><td>92.7 ± 0.1</td><td>92.9 ± 0.2</td></tr><tr><td>RSCNN-Multi (Liu et al.)</td><td>1024</td><td>RSCNN no Vote</td><td>92.9</td><td>92.7 ± 0.1</td><td>92.9 ± 0.2</td></tr><tr><td>PointANSL (Yan et al.)</td><td>1024</td><td>DGCNN CE*</td><td>92.9</td><td>92.6 ± 0.2</td><td>93.1 ± 0.1</td></tr></table>
92
+
93
+ DGCNN’s augmentation (i.e random translation and scaling) and smooth-loss improve performance of all prior networks, so we use them in the SimpleView protocol. Further, similar to PointNet, PointNet $^ { + + }$ and DGCNN, we use the fixed dataset of 1024 points instead of re-sampling different points at each epoch. Re-sampling points for each epoch effectively increases the training dataset of points, making numbers incomparable to methods using a fixed dataset. We avoid any feedback from the test set and use the final model selection, where we first tune the number of epochs on the validation set then retrain the model on the entire train set. Lastly, similar to DGCNN, we do not use ensemble as it is more standard in Machine Learning to compare models without ensemble.
94
+
95
+ # 3.2 SIMPLEVIEW
96
+
97
+ Given a set of points SimpleView, projects them onto the six orthogonal planes to create sparse depth images. It then extracts features from the depth images using a CNN and fuses, which is then used to classify the point-cloud as shown in Fig. 1.
98
+
99
+ Generating Depth Images from Point Cloud: Let $( x , y , z )$ be the coordinates of a point in the point cloud with respect to the camera. We apply perspective projection to get the 2D coordinate $( \tilde { x } \ = \ x / z , \tilde { y } \ = \ y / z )$ of $\mathbf { p }$ at depth $z$ . We also do ablations with orthographic projection and found perspective projection to work better (Table. 7). Since coordinates on image plane have to be discrete, we use $( \bar { \lceil x \rceil } , \bar { \lceil y \rceil } )$ to be the final coordinate of $\mathbf { p }$ on the image plane. Multiple points may be projected to the same discrete location on the image plane. To produce depth value at an image location, we do ablations on two choices, one the minimum depth of all points, and other weighted average depth with more weight $\textstyle { \binom { 1 } { z } }$ given to closer points (Table. 7). Empirically, we find both perform similar with the later performing slightly better. This could be because of reduction in noise due to the averaging of nearby pixels on the surface. The depth images are of resolution $1 2 8 \mathrm { ~ X ~ } 1 2 8$ .
100
+
101
+ SimpleView Architecture: To make the number of parameters comparable to point-based methods, we use ResNet18 with one-fourth filters (ResNet18/4) as the backbone. For fusing features, we do ablation with two choices, pooling and concatenation. Empirically, we find concatenation to work better than pooling them (Table. 7). This could be because pooling features throws away the view information like which views are adjacent to one another. One concern could be that concatenation could make features sensitive to viewpoint, and hence the network could fail on rotated objects.
102
+
103
+ Table 5: Performance of various architectures on ModelNet40 when using the best dataaugmentation and loss function; and not using any feedback from test set. SimpleView outperforms prior architectures, while having fewest parameters and comparable inference time.
104
+
105
+ <table><tr><td>Architecture ↓</td><td>Acc.</td><td>Class Acc.</td><td>Para. (M)</td><td>Time (ms)</td></tr><tr><td>PointNet</td><td>89.2 ± 0.9</td><td>85.1 ± 0.6</td><td>3.5</td><td>3.0</td></tr><tr><td>PointNet++</td><td>92.7 ± 0.1</td><td>90.0± 0.3</td><td>1.7</td><td>20.7</td></tr><tr><td>DGCNN</td><td>92.3 ± 0.3</td><td>89.1 ± 0.3</td><td>1.8</td><td>7.3</td></tr><tr><td>RSCNN</td><td>91.7 ± 0.3</td><td>88.5 ± 0.4</td><td>1.3</td><td>4.3</td></tr><tr><td>SimpleView</td><td>93.0 ± 0.4</td><td>90.5 ± 0.8</td><td>0.8</td><td>5.0</td></tr></table>
106
+
107
+ Table 6: Performance of various architectures on ScanObjectNN, and cross-dataset generalization. SimpleView achieves state-of-the-art results and shows better cross dataset generalization. Numbers for prior works are from (Uy et al., 2019).
108
+
109
+ <table><tr><td>Architecture ↓</td><td>TR: SONN TE: SONN</td><td>TR:MN40 TE: SONN</td><td>TR: SONN TE: MN40</td></tr><tr><td>3DmFV (Shabat et al.)</td><td>63.0</td><td>24.9</td><td>51.5</td></tr><tr><td>PointNet (Qi et al.)</td><td>68.2</td><td>31.1</td><td>50.9</td></tr><tr><td>SpiderCNN (Xu et al.)</td><td>73.7</td><td>30.9</td><td>46.6</td></tr><tr><td>PointNet++ (Qi et al.)</td><td>77.9</td><td>32.0</td><td>47.4</td></tr><tr><td>DGCNN (Wang et al.)</td><td>78.1</td><td>36.8</td><td>54.7</td></tr><tr><td>PointCNN (Li et al.)</td><td>78.5</td><td>24.6</td><td>49.2</td></tr><tr><td>SimpleView</td><td>79.5±0.5</td><td>40.5±1.4</td><td>57.9±2.1</td></tr></table>
110
+
111
+ Table 7: Ablation of various choices for SimpleView on ModelNet40. The performance is evaluatated on the validation set.
112
+
113
+ <table><tr><td rowspan="2"></td><td colspan="3">Number of Views</td><td colspan="2">Image Projection</td><td colspan="2">Feature Fusion</td><td colspan="2">Image Depth</td></tr><tr><td>1</td><td>3</td><td>6</td><td>Orthographic</td><td>Perspective</td><td>Pool</td><td>Concat</td><td>Minimum</td><td>Weighted Avg.</td></tr><tr><td>Accuracy</td><td>90.7±0.1</td><td>92.1 ± 0.2</td><td>92.9±0.3</td><td>92.7 ± 0.3</td><td>92.9±0.3</td><td>91.8± 0.3</td><td>92.9± 0.3</td><td>92.8± 0.4</td><td>92.9± 0.3</td></tr></table>
114
+
115
+ However, empirically, we observe that this issue is largely mitigated by rotation augmentation and SimpleView is able to achieve state-of-the-art performance on ScanObjectNN where objects are rotated. The point-clouds are scaled to be in $[ \hat { 1 } , - 1 ] ^ { 3 }$ , we keep the cameras at a distance of 1.4 units from the center with $9 0 °$ fov. We also do ablations with different number of views, comparing only front views, three orthogonal views and six orthogonal views. We find that using all six views performs the best (Table 7). We do not use ImageNet pretraining, thus making the comparison with point-based methods strictly fair, without any additional data.
116
+
117
+ # 4 EXPERIMENTS
118
+
119
+ ModelNet40: ModelNet40 is a the most widely adopted benchmark for point-cloud classification. It contains objects from 40 common categories. There are 9840 objects in the training set and 2468 in the test set. Objects are aligned to a common up and front direction.
120
+
121
+ ScanObjectNN: ScanObjectNN is a recent real-world point cloud classification dataset. It consists of 15 classes, 11 of which are also in ModelNet40. There are a total of $1 5 \mathrm { k }$ objects in the dataset. Unlike ModelNet40, the objects in ScanObjectNN are obtained from real-world 3D scans. Hence, point clouds are noisy (occlusions, background points) and have geometric distortions such as holes. Also, unlike ModelNet40, the objects are not axis-aligned.
122
+
123
+ # 4.1 EXPERIMENTS ON MODELNET40
124
+
125
+ Implementation Details: We use PyTorch (Paszke et al., 2019) to implement all models and protocols while reusing the official code wherever possible. We use the official version of DGCNN and RSCNN. We confirm with the authors that the code for RSCNN-Multi, another version of RSCNN, is yet to be released. Hence we use the reported numbers of RSCNN-Multi in Table 4. PointNet and PointNet $^ { + + }$ are officially released in TensorFlow (Abadi et al., 2015). For PointNet, we adapt our code from PointNet.pytorch (Xia, accessed June, 2020) as recommended in the official repository. For PointNet++, we adapt the model code from Pointnet2 PyTorch (Wijmans, accessed June, 2020). We further make sure that the third party PyTorch code closely matches the official TensorFlow code.
126
+
127
+ We use Adam (Kingma & Ba, 2014) with an initial learning rate of 1e-3 and a decay-on-plateau learning rate scheduler. The batch size and weight decay for each model are kept the same as the official version in Table 3. We use a batch size of 18 and no weight decay for SimpleView. To give the prior models the best chance on our protocol (Table 5), we additionally tune their hyperparameters on the validation set. We find that the official hyper-parameters already perform close to optimal. We train each model for 1000 epochs. Since there are small variations in final performance across different runs, we do 4 runs and report the mean and standard deviation.
128
+
129
+ ![](images/8b40ab61d4067d6d54c88f0a10b5099143d8f8d1f0873543ec9e9d09ffed3114.jpg)
130
+ Figure 3: Failure Cases for SimpleView and PointNet++. The first row shows cases where both SimpleView and PointNe $^ { + + }$ fail; the second row shows cases where SimpleView succeeds but PointNet+ $^ +$ fails; the third row shows cases where SimpleView fails but PointNet++ succeeds.
131
+
132
+ Performance under various Prior Protocols: Table 3 shows the performance different architectures under various protocols. The mean performance of PointNet $^ { + + }$ improves from $8 9 . 8 \%$ to $9 3 . 3 \%$ when we switch from the PointNet $^ { + + }$ no Vote to the RSCNN Vote protocol. Similarly the performance of SimpleView improves from $9 0 . 7 \%$ to $9 3 . 6 \%$ when we switch from PointNet $^ { + + }$ no Vote to DGCNN Smooth. Since there is variance in performance across runs, we refrain from making any claims about absolute ordering between prior works. However, we do observe that in terms of mean performance, SimpleView performs on par or better than other methods under all protocols. Note that in RSCNN Vote, voting on the test set is done 300 times with reshuffled and randomly augmented points, from which the highest accuracy is selected. Hence models that have the largest variance in prediction, i.e. PointNet++ and RSCNN gain the most from it, as they are not strictly invariant to the order of points (Sec. 3.3 in Qi et al. (2017b)).
133
+
134
+ Performance under the SimpleView Protocol: Table 5 shows that SimpleView outperforms prior architectures on our controlled protocol in terms of mean performance. SimpleView has the fewest number of parameters and a competitive inference speed. Inference speed is measured on an NVIDIA 2080Ti averaged across 100 runs.
135
+
136
+ Fig. 3 show examples where both SimpleView and PointNet $^ { + + }$ fail, as well as examples where one of them fails and the other succeeds. Qualitatively, we find that the failure modes of SimpleView and PointNet+ $^ { \cdot + }$ are similar. We also find that a major failure mode in both SimpleView and PointNet+ $^ +$ is the confusion between the ‘flower pot’ and ‘plant’ category (see Sec. A Fig. I and Fig. II). This could be because of the lack of color information.
137
+
138
+ Comparison with More Methods: In Table 4, we do one-on-one comparison between SimpleView and recent state-of-the-art methods, other than PointNet, PointNet++, RSCNN and DGCNN. We identify the closest protocol to the one used in the paper from the ones we evaluate. Table 4 shows the competitiveness of PointNet+ $^ +$ and SimpleView with other recent state-of-the-art methods.
139
+
140
+ # 4.2 EXPERIMENTS ON SCANOBJECTNN
141
+
142
+ Implementation Details: ScanObjectNN’s official repository trains and evaluates the state-of-theart models under the same protocol. We implement SimpleView in TensorFlow and use the official ScanObjectNN protocol for fairness. This protocol is different from the SimpleView protocol as it normalizes the point clouds and randomly samples points. We optimize our model with Adam. We use a batch size of 20 and no weight decay to train SimpleView for 300 epochs with an initial learning rate 0.001, and use the final model for testing. We use standard image-based cropping and scaling augmentation to prevent over-fitting. The hyper-parameter for cropping and scaling is found on a validation set made from ScanObjecNN’s train set. We conduct 4 runs for SimpleView. ScanObjectNN does not use a fixed set of points during test time. It instead randomly samples points from the point cloud, which adds randomness to test set performance. Hence, we evaluate each run 10 times. We report the final performance as the mean and variance of the 40 evaluations (4 runs $\times$ 10 evaluations per run).
143
+
144
+ Performance on ScanObjectNN: As shown in Table 6, SimpleView outperforms prior networks on ScanObjectNN. This shows the SimpleView is effective in real world settings, with noisy and misaligned point clouds. We also perform transfer experiments to test generalizability of SimpleView. We train on ScanObjectNN and test on ModelNet40 and vice versa. Table 6 shows that SimpleView transfers across datasets better than prior methods.
145
+
146
+ # 5 DISCUSSION
147
+
148
+ In this work, we demonstrate how auxiliary factors orthogonal to the network architecture have a large effect on performance for point-cloud classification. When controlling for these factors, we find that a relatively older method, PointNet $^ { - + }$ (Qi et al., 2017b), performs competitively with more recent ones. Furthermore, we show that a simple baseline performs on par or better than state-ofthe-art architectures.
149
+
150
+ Our results show that for future progress we should control for protocols while comparing network architectures. Our code base could serve as a useful resource for developing new models and comparing them with prior works. Our results show that the existing evidence for point-based methods is not as strong when auxiliary factors are properly controlled for, and that SimpleView is a strong baseline. But our results are not meant to discourage future research on point-based methods. It is still entirely possible that point-based methods come out ahead with additional innovations. We believe it is beneficial to explore competing approaches, including the ones that are underperforming at a particular time, as long as the results are compared in a controlled manner.
151
+
152
+ Our analysis in this work was limited to point cloud classification, which is an important problem in 3D scene understanding and forms a critical part of object detection and retrieval systems. An exciting future direction would be to expand this analysis to other problems that involve point cloud data such as scene and part segmentation.
153
+
154
+ # REFERENCES
155
+
156
+ Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, ´ Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Watten- ´ berg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow.org/. Software available from tensorflow.org.
157
+
158
+ Syeda Mariam Ahmed, Pan Liang, and Chee Meng Chew. Epn: Edge-aware pointnet for object recognition from multi-view $2 . 5 \ : \mathrm { d }$ point clouds. IROS, 2019.
159
+
160
+ Kara-Ali Aliev, Artem Sevastopolsky, Maria Kolos, Dmitry Ulyanov, and Victor Lempitsky. Neural point-based graphics. arXiv preprint arXiv:1906.08240, 2019.
161
+
162
+ Kai O Arras, Oscar Martinez Mozos, and Wolfram Burgard. Using boosted features for the detection of people in 2d range data. In Proceedings 2007 IEEE International Conference on Robotics and Automation, pp. 3402–3407. IEEE, 2007.
163
+
164
+ Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. arXiv preprint arXiv:1803.10091, 2018.
165
+
166
+ Yizhak Ben-Shabat, Michael Lindenbaum, and Anath Fischer. 3dmfv: Three-dimensional point cloud classification in real-time using convolutional neural networks. IEEE Robotics and Automation Letters, 2018.
167
+
168
+ Alexandre Boulch, Bertrand Le Saux, and Nicolas Audebert. Unstructured point cloud semantic labeling using deep segmentation networks. 3DOR, 2:7, 2017.
169
+
170
+ Angela Dai and Matthias Nießner. 3dmv: Joint 3d-multi-view prediction for 3d semantic scene segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 452– 468, 2018.
171
+
172
+ Yifan Feng, Zizhao Zhang, Xibin Zhao, Rongrong Ji, and Yue Gao. Gvcnn: Group-view convolutional neural networks for 3d shape recognition. In CVPR, pp. 264–272, 2018.
173
+
174
+ Yifan Feng, Haoxuan You, Zizhao Zhang, Rongrong Ji, and Yue Gao. Hypergraph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 3558–3565, 2019.
175
+
176
+ Fabian Groh, Patrick Wieschollek, and Hendrik P. A. Lensch. Flex-convolution (million-scale pointcloud learning beyond grid-worlds). In ACCV, 2018.
177
+
178
+ Haiyun Guo, Jinqiao Wang, Yue Gao, Jianqiang Li, and Hanqing Lu. Multi-view 3d object retrieval with deep embedding network. IEEE Transactions on Image Processing, 25(12):5526–5537, 2016.
179
+
180
+ Yulan Guo, Hanyun Wang, Qingyong Hu, Hao Liu, Li Liu, and Mohammed Bennamoun. Deep learning for 3d point clouds: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020.
181
+
182
+ Timo Hackel, Nikolay Savinov, Lubor Ladicky, Jan D Wegner, Konrad Schindler, and Marc Pollefeys. Semantic3d. net: A new large-scale point cloud classification benchmark. arXiv preprint arXiv:1704.03847, 2017.
183
+
184
+ Jing Huang and Suya You. Point cloud labeling using 3d convolutional neural network. In 2016 23rd International Conference on Pattern Recognition (ICPR), pp. 2670–2675. IEEE, 2016.
185
+
186
+ Evangelos Kalogerakis, Melinos Averkiou, Subhransu Maji, and Siddhartha Chaudhuri. 3d shape segmentation with projective convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3779–3788, 2017.
187
+
188
+ Asako Kanezaki, Yasuyuki Matsushita, and Yoshifumi Nishida. Rotationnet: Joint object categorization and pose estimation using multiviews from unsupervised viewpoints. In CVPR, 2018.
189
+
190
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
191
+
192
+ Roman Klokov and Victor Lempitsky. Escape from cells: Deep kd-networks for the recognition of 3d point cloud models. In ICCV, 2017.
193
+
194
+ Artem Komarichev, Zichun Zhong, and Jing Hua. A-cnn: Annularly convolutional neural networks on point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7421–7430, 2019.
195
+
196
+ L’ubor Ladicky, Paul Sturgess, Karteek Alahari, Chris Russell, and Philip HS Torr. What, where \` and how many? combining object detectors and crfs. In European conference on computer vision, pp. 424–437. Springer, 2010.
197
+
198
+ Felix Jaremo Lawin, Martin Danelljan, Patrik Tosteberg, Goutam Bhat, Fahad Shahbaz Khan, and ¨ Michael Felsberg. Deep projective 3d semantic segmentation. In International Conference on Computer Analysis of Images and Patterns, pp. 95–107. Springer, 2017.
199
+
200
+ Jiaxin Li, Ben M Chen, and Gim Hee Lee. So-net: Self-organizing network for point cloud analysis. In CVPR, 2018a.
201
+
202
+ Yangyan Li, Rui Bu, Mingchao Sun, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. Advances in Neural Information Processing Systems, 2018b.
203
+
204
+ Xinhai Liu, Zhizhong Han, Yu-Shen Liu, and Matthias Zwicker. Point2sequence: Learning the shape representation of 3d point clouds with an attention-based sequence to sequence network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 8778–8785, 2019a.
205
+
206
+ Yongcheng Liu, Bin Fan, Gaofeng Meng, Jiwen Lu, Shiming Xiang, and Chunhong Pan. Densepoint: Learning densely contextual representation for efficient point cloud processing. In Proceedings of the IEEE International Conference on Computer Vision, pp. 5239–5248, 2019b.
207
+
208
+ Yongcheng Liu, Bin Fan, Shiming Xiang, and Chunhong Pan. Relation-shape convolutional neural network for point cloud analysis. In CVPR, pp. 8895–8904, 2019c.
209
+
210
+ D. Maturana and S. Scherer. VoxNet: A 3D Convolutional Neural Network for Real-Time Object Recognition. In IROS, 2015.
211
+
212
+ Luis E Navarro-Serment, Christoph Mertz, and Martial Hebert. Pedestrian detection and tracking using three-dimensional ladar data. The International Journal of Robotics Research, 29(12): 1516–1528, 2010.
213
+
214
+ Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32, pp. 8024–8035. 2019.
215
+
216
+ Francesco Pittaluga, Sanjeev J Koppal, Sing Bing Kang, and Sudipta N Sinha. Revealing scenes by inverting structure from motion reconstructions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 145–154, 2019.
217
+
218
+ Charles R. Qi, Hao Su, Matthias Niessner, Angela Dai, Mengyuan Yan, and Leonidas J. Guibas. Volumetric and multi-view cnns for object classification on 3d data. In CVPR, 2016.
219
+
220
+ Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. CVPR, 2017a.
221
+
222
+ Charles R Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointne $^ { + + }$ : Deep hierarchical feature learning on point sets in a metric space. Advances in Neural Information Processing Systems, 2017b.
223
+
224
+ Nannan Qin, Xiangyun Hu, and Hengming Dai. Deep fusion of multi-view and multimodal representation of als point cloud for 3d terrain scene recognition. ISPRS journal of photogrammetry and remote sensing, 143:205–212, 2018.
225
+
226
+ Hayko Riemenschneider, Andras B ´ odis-Szomor ´ u, Julien Weissenberg, and Luc Van Gool. Learning ´ where to classify in multi-view semantic segmentation. In European Conference on Computer Vision, pp. 516–532. Springer, 2014.
227
+
228
+ Riccardo Roveri, Lukas Rahmann, Cengiz Oztireli, and Markus Gross. A network architecture for point cloud classification via automatic depth images generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4176–4184, 2018.
229
+
230
+ Radu Bogdan Rusu, Nico Blodow, Zoltan Csaba Marton, and Michael Beetz. Close-range scene segmentation and reconstruction of 3d point cloud maps for mobile manipulation in domestic environments. In 2009 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 1–6. IEEE, 2009.
231
+
232
+ Kripasindhu Sarkar, Basavaraj Hampiholi, Kiran Varanasi, and Didier Stricker. Learning 3d shapes as multi-layered height-maps using 2d convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 71–86, 2018.
233
+
234
+ Baoguang Shi, Song Bai, Zhichao Zhou, and Xiang Bai. Deeppano: Deep panoramic representation for 3-d shape recognition. Signal Processing Letters, IEEE, 22(12):2339–2343, 2015.
235
+
236
+ Martin Simonovsky and Nikos Komodakis. Dynamic edge-conditioned filters in convolutional neural networks on graphs. In CVPR, 2017.
237
+
238
+ Shuran Song and Jianxiong Xiao. Sliding shapes for 3d object detection in depth images. In European conference on computer vision, pp. 634–651. Springer, 2014.
239
+
240
+ Shuran Song and Jianxiong Xiao. Deep sliding shapes for amodal 3d object detection in rgb-d images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 808–816, 2016.
241
+
242
+ Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik G. Learned-Miller. Multi-view convolutional neural networks for 3d shape recognition. In ICCV, 2015.
243
+
244
+ Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. Splatnet: Sparse lattice networks for point cloud processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2530–2539, 2018.
245
+
246
+ Maxim Tatarchenko, Jaesik Park, Vladlen Koltun, and Qian-Yi Zhou. Tangent convolutions for dense prediction in 3d. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3887–3896, 2018.
247
+
248
+ Lyne Tchapmi, Christopher Choy, Iro Armeni, JunYoung Gwak, and Silvio Savarese. Segcloud: Semantic segmentation of 3d point clouds. In 2017 international conference on 3D vision (3DV), pp. 537–547. IEEE, 2017.
249
+
250
+ Hugues Thomas, Charles R Qi, Jean-Emmanuel Deschaud, Beatriz Marcotegui, Franc¸ois Goulette, and Leonidas J Guibas. Kpconv: Flexible and deformable convolution for point clouds. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6411–6420, 2019.
251
+
252
+ Joseph Tighe and Svetlana Lazebnik. Scalable nonparametric image parsing with superpixels. ECCV, 2010.
253
+
254
+ Mikaela Angelina Uy, Quang-Hieu Pham, Binh-Son Hua, Thanh Nguyen, and Sai-Kit Yeung. Revisiting point cloud classification: A new benchmark dataset and classification model on real-world data. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1588–1597, 2019.
255
+
256
+ Chu Wang, Babak Samari, and Kaleem Siddiqi. Local spectral graph convolution for point set feature learning. ECCV, 2018a.
257
+
258
+ Peng-Shuai Wang, Yang Liu, Yu-Xiao Guo, Chun-Yu Sun, and Xin Tong. O-cnn: Octree-based convolutional neural networks for 3d shape analysis. ACM Transactions on Graphics (TOG), 36 (4):1–11, 2017.
259
+
260
+ Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph cnn for learning on point clouds. arXiv preprint arXiv:1801.07829, 2018b.
261
+
262
+ Erik Wijmans. PointNet2 pytorch, accessed June, 2020. URL https://github.com/ erikwijmans/Pointnet2_PyTorch.
263
+
264
+ Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9621–9630, 2019.
265
+
266
+ Zhirong Wu, Shuran Song, Aditya Khosla, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In CVPR, 2015a.
267
+
268
+ Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1912–1920, 2015b.
269
+
270
+ Fei Xia. PointNet.pytorch, accessed June, 2020. URL https://github.com/fxia22/ pointnet.pytorch.
271
+
272
+ Saining Xie, Sainan Liu, Zeyu Chen, and Zhuowen Tu. Attentional shapecontextnet for point cloud recognition. In CVPR, 2018.
273
+
274
+ Yifan Xu, Tianqi Fan, Mingye Xu, Long Zeng, and Yu Qiao. Spidercnn: Deep learning on point sets with parameterized convolutional filters. In ECCV, 2018.
275
+
276
+ Xu Yan, Chaoda Zheng, Zhen Li, Sheng Wang, and Shuguang Cui. Pointasnl: Robust point clouds processing using nonlocal neural networks with adaptive sampling. CVPR, 2020.
277
+
278
+ Tan Yu, Jingjing Meng, and Junsong Yuan. Multi-view harmonized bilinear network for 3d object recognition. In CVPR, 2018.
279
+
280
+ Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In Advances in Neural Information Processing Systems, 2017.
281
+
282
+ Kuangen Zhang, Ming Hao, Jing Wang, Clarence W de Silva, and Chenglong Fu. Linked dynamic graph cnn: Learning on point cloud via linking hierarchical features. arXiv preprint arXiv:1904.10014, 2019.
283
+
284
+ Zizhao Zhang, Haojie Lin, Xibin Zhao, Rongrong Ji, and Yue Gao. Inductive multi-hypergraph learning and its application on view-based 3d object classification. IEEE Transactions on Image Processing, 27(12):5957–5968, 2018.
285
+
286
+ # A APPENDIX
287
+
288
+ ![](images/5f0f28b05536c705d795036eb13399fa271ef793a5d576ab9384fb248a23d99e.jpg)
289
+ Figure I: Confusion matrix for SimpleView when trained under our protocol
290
+
291
+ ![](images/74d59f4eb55d04b38c5570c36a9863bc1a14d979aff009a5cca933d3e66ad187.jpg)
292
+ Figure II: Confusion matrix for PointNet++ when trained under our protocol
293
+
294
+ Table I: Performance of various architectures on ModelNet40 when using different amount of training data.
295
+
296
+ <table><tr><td>Per. of Training Data</td><td>RSCNN</td><td>DGCNN</td><td>PointNet</td><td>PointNet++</td><td>SimpleView</td></tr><tr><td>25%</td><td>88.2 ± 0.4</td><td>89.1 ± 0.2</td><td>86.3 ± 0.4</td><td>89.6 ± 0.4</td><td>89.7 ± 0.3</td></tr><tr><td>50%</td><td>90.4 ± 0.4</td><td>91.0 ± 0.3</td><td>88.2 ± 0.3</td><td>91.5 ± 0.2</td><td>92.1 ± 0.3</td></tr><tr><td>100 %</td><td>91.7 ± 0.3</td><td>92.3 ± 0.3</td><td>89.2 ± 0.9</td><td>92.7 ± 0.3</td><td>93.0 ± 0.4</td></tr></table>
parse/train/XwATtbX3oCz/XwATtbX3oCz_content_list.json ADDED
@@ -0,0 +1,1626 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "REVISITING POINT CLOUD CLASSIFICATION WITH ASIMPLE AND EFFECTIVE BASELINE",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
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
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Processing point cloud data is an important component of many real-world systems. As such, a wide variety of point-based approaches have been proposed, reporting steady benchmark improvements over time. We study the key ingredients of this progress and uncover two critical results. First, we find that auxiliary factors like different evaluation schemes, data augmentation strategies, and loss functions, which are independent of the model architecture, make a large difference in performance. The differences are large enough that they obscure the effect of architecture. When these factors are controlled for, PointNet++, a relatively older network, performs competitively with recent methods. Second, a very simple projection-based method, which we refer to as SimpleView, performs surprisingly well. It achieves on par or better results than sophisticated state-ofthe-art methods on ModelNet40 while being half the size of PointNet $^ { + + }$ . It also outperforms state-of-the-art methods on ScanObjectNN, a real-world point cloud benchmark, and demonstrates better cross-dataset generalization. ",
40
+ "bbox": [
41
+ 233,
42
+ 265,
43
+ 764,
44
+ 458
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 482,
55
+ 336,
56
+ 498
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Processing 3D point cloud data accurately is crucial in many applications including autonomous driving (Navarro-Serment et al., 2010) and robotics (Rusu et al., 2009). In these settings, sensors like LIDAR produce unordered sets of points that correspond to object surfaces. Correctly classifying objects from this data is important for 3D scene understanding (Uy et al., 2019). While classical approaches for this problem have relied on hand-crafted features (Arras et al., 2007), recent efforts have focused on the design of deep neural networks (DNNs) to learn features directly from raw point cloud data (Qi et al., 2017a). Deep learning-based methods have proven effective in aggregating information across a set of 3D points to accurately classify objects. ",
63
+ "bbox": [
64
+ 174,
65
+ 512,
66
+ 825,
67
+ 625
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "The most widely adopted benchmark for comparing methods for point cloud classification has been ModelNet40 (Wu et al., 2015b). The accuracy on ModelNet40 has steadily improved over the last few years from $8 9 . 2 \\%$ by PointNet (Qi et al., 2017a) to $9 3 . 6 \\%$ by RSCNN (Liu et al., 2019c) (Fig. 1). This progress is commonly perceived to be a result of better designs of network architectures. However, after performing a careful analysis of recent works we find two surprising results. First, we find that auxiliary factors including differing evaluation schemes, data augmentation strategies, and loss functions affect performance to such a degree that it can be difficult to disentangle improvements due to the network architecture. Second, we find that a very simple projection-based architecture works surprisingly well, outperforming state-of-the-art point-based architectures. ",
74
+ "bbox": [
75
+ 174,
76
+ 631,
77
+ 825,
78
+ 756
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In deep learning, as results improve on a benchmark, attention is generally focused on the novel architectures used to achieve those results. However, there are many factors beyond architecture design that influence performance including data augmentation and evaluation procedure. We refer to these additional factors as a method’s protocol. A protocol defines all details orthogonal to the network architecture that can be controlled to compare differing architectures. Note that it is possible for some specific form of loss or data augmentation to be tied to a specific architecture and inapplicable to other architectures. In these cases, it would be inappropriate to treat them as part of the protocol. However, for all the methods we consider in this paper, their losses and augmentation schemes are fully compatible with each other and can be considered independently. ",
85
+ "bbox": [
86
+ 174,
87
+ 763,
88
+ 825,
89
+ 888
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "We do experiments to study the effect of protocol and discover that it accounts for a large difference in performance, so large as to obscure the contribution of a novel architecture. For example, the performance of the PointNe $^ { + + }$ architecture (Qi et al., 2017b) jumps from $9 0 . 0 { \\pm } 0 . 3 $ to $9 3 . 3 { \\pm } 0 . 3 $ , when switching from its original protocol to RSCNN’s protocol (Liu et al., 2019c). We further find that the protocols that lead to the strongest performance rely on feedback from the test set, which differs from conventional evaluation setups. We re-evaluate prior architectures using the best augmentation and loss functions, while not using any feedback from the test set. We find that by taking protocol into account, the PointNet+ $^ { - + }$ architecture performs competitively with more recent ones in various settings. ",
96
+ "bbox": [
97
+ 174,
98
+ 895,
99
+ 821,
100
+ 922
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/66a78d68df7e5c9b9390ab71fe25ac55b4de36a395b6b5ee0ae24744c87118db.jpg",
107
+ "image_caption": [
108
+ "Figure 1: Performance of point-based models on ModelNet40. Those using $> 1 0 2 4$ points or normals are marked with triangle. Line joins the topperforming models across times. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 181,
113
+ 99,
114
+ 485,
115
+ 256
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "image",
121
+ "img_path": "images/fffc0bda7909a68a6101500cd83fbf982bc671ddf80ebc3aa5cfdd2c8ab5b377.jpg",
122
+ "image_caption": [
123
+ "Figure 2: The SimpleView Architecture. The depth images are colored only for illustration. SimpleView takes in single channel depth images as input. "
124
+ ],
125
+ "image_footnote": [],
126
+ "bbox": [
127
+ 513,
128
+ 103,
129
+ 808,
130
+ 253
131
+ ],
132
+ "page_idx": 1
133
+ },
134
+ {
135
+ "type": "text",
136
+ "text": "",
137
+ "bbox": [
138
+ 174,
139
+ 345,
140
+ 825,
141
+ 444
142
+ ],
143
+ "page_idx": 1
144
+ },
145
+ {
146
+ "type": "text",
147
+ "text": "In addition to the surprising importance of protocol, in reviewing past approaches, another surprising discovery is that a very simple projection based baseline works very well. One needs to simply project the points to depth maps along the orthogonal views, pass them through a light-weight CNN and fuse the features. We refer to this baseline as SimpleView. ",
148
+ "bbox": [
149
+ 173,
150
+ 450,
151
+ 823,
152
+ 506
153
+ ],
154
+ "page_idx": 1
155
+ },
156
+ {
157
+ "type": "text",
158
+ "text": "Compared to previous projection-based method (Roveri et al., 2018; Sarkar et al., 2018) for pointcloud classification, SimpleView is very simple. Prior methods have developed special modules for view selection, rendering, and feature merging, as well as use larger CNN backbones that are pretrained on ImageNet (refer to Sec. 2 for more details). In contrast, SimpleView has no such special operations, and only requires simple point projections, a much smaller CNN backbone, and no ImageNet pretraining. ",
159
+ "bbox": [
160
+ 173,
161
+ 512,
162
+ 825,
163
+ 597
164
+ ],
165
+ "page_idx": 1
166
+ },
167
+ {
168
+ "type": "text",
169
+ "text": "The discovery of SimpleView is surprising because recent state-of-the-art results have all been achieved by point-based architectures of increasing sophistication. In recent literature, it is often assumed that point-based methods are the superior choice for point-cloud processing as they “do not introduce explicit information loss” (Guo et al., 2020). Prior work has stated that “convolution operation of these methods lacks the ability to capture nonlocally geometric features” (Yan et al., 2020), that a projection-base method “often demands a huge number of views for decent performance” (Liu et al., 2019c), and that projection-based methods often “fine-tune a pre-trained image-based architecture for accurate recognition” (Liu et al., 2019c). It is thus surprising that a projection-based method could achieve state-of-the-art results with a simple architecture, only a few views, and no pretraining. ",
170
+ "bbox": [
171
+ 173,
172
+ 603,
173
+ 825,
174
+ 742
175
+ ],
176
+ "page_idx": 1
177
+ },
178
+ {
179
+ "type": "text",
180
+ "text": "On ModelNet40, SimpleView performs on par or better than more sophisticated state-of-the-art networks across various protocols, which includes the ones used by prior methods (Table. 3) as well as our protocol (Table. 5). At the same time, SimpleView outperforms state-of-the-art architectures on ScanObjectNN (Uy et al., 2019), a real-world dataset where point clouds are noisy (background points, occlusions, holes in objects) and are not axis-aligned. SimpleView also demonstrates better cross-dataset generalization than prior works. Furthermore, SimpleView uses less parameters than state-of-the-art networks (Table. 5). ",
181
+ "bbox": [
182
+ 173,
183
+ 750,
184
+ 825,
185
+ 847
186
+ ],
187
+ "page_idx": 1
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "Note that we are not proposing a new architecture or method, but simply evaluating a simple and strong projection-based baseline for point-cloud classification that is largely ignored in the literature. We do not claim any novelty in the design of SimpleView because all of its components have appeared in the literature. Our contribution is showing that such a simple baseline works surprisingly well, which is a result absent in existing literature. ",
192
+ "bbox": [
193
+ 174,
194
+ 854,
195
+ 823,
196
+ 924
197
+ ],
198
+ "page_idx": 1
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "It is worth noting that one might think that projection-based methods are not directly comparable with point-based methods because projection-based methods may have the full mesh as input, as opposed to just a point cloud. While this is true for existing results in the literature, it is not the case with SimpleView, whose input is the exact same point cloud given to a point-based method. In other words, SimpleView is directly comparable to a point-based method because they solve the exact same task. ",
203
+ "bbox": [
204
+ 174,
205
+ 103,
206
+ 825,
207
+ 188
208
+ ],
209
+ "page_idx": 2
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "In summary, our contributions are threefold: ",
214
+ "bbox": [
215
+ 176,
216
+ 194,
217
+ 464,
218
+ 208
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "• We show that training and evaluation factors independent of network architecture have a large impact on point-cloud classification performance. With these factors controlled for, PointNet++ performs as well as more recent architectures. We demonstrate how SimpleView, a very simple projection based baseline performs surprisingly well on point-cloud classification. It performs on par with or better than prior networks on ModelNet40 while using fewer parameters. It also outperforms state-of-the-art methods on real-world point-cloud classification and achieves better cross-dataset generalization. ",
225
+ "bbox": [
226
+ 174,
227
+ 208,
228
+ 825,
229
+ 305
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "2 RELATED WORK ",
236
+ "text_level": 1,
237
+ "bbox": [
238
+ 176,
239
+ 324,
240
+ 344,
241
+ 340
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "Point-Based Methods for Point-Cloud Analysis: A broad class of DNNs have emerged to process 3D points directly (Simonovsky & Komodakis, 2017; Zaheer et al., 2017; Klokov & Lempitsky, 2017; Xu et al., 2018; Atzmon et al., 2018; Wang et al., 2018a; Li et al., 2018a; Groh et al., 2018; Ben-Shabat et al., 2018; Xie et al., 2018; Li et al., 2018b; Liu et al., 2019a; Thomas et al., 2019; Komarichev et al., 2019; Liu et al., 2019b; Yan et al., 2020; Su et al., 2018; Zhang et al., 2019; Liu et al., 2019a; Atzmon et al., 2018). PointNet (Qi et al., 2017a) proposed one of the first strategies, where features are updated for each point with MLP layers, and aggregated with global max pooling. However, no local comparisons are performed in PointNet, which motivates PointNet+ $^ +$ (Qi et al., 2017b). PointNet $^ { - + }$ breaks subsets of points into local regions that are processed first. More explicit modeling of the spatial relations between points is performed with more recent methods (Li et al., 2018b; Liu et al., 2019c; Wu et al., 2019). For example, PointConv learns functions to define continuous 3D convolutions that can be applied to arbitrary sets of points in a neighborhood (Wu et al., 2019). RSCNN uses MLPs conditioned on the spatial relationship of two points to update and aggregate features around an individual sampled point (Liu et al., 2019c). There exist many variations to these methods, but the emerging trend is an increase in sophistication. ",
248
+ "bbox": [
249
+ 173,
250
+ 354,
251
+ 825,
252
+ 563
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "Projection-Based Methods for Point-Cloud Classification: Projection-based methods for point cloud classification have been proposed in the literature. Notably, Roveri et al. (2018) learn to predict viewing angles and classify images in an end-to-end differentiable way. They use the ResNet50 model, pretrained on ImageNet as their backbone and a depth-image generation pipeline. Sarkar et al. (2018) propose a special multi-height rendering and feature merging scheme, and use a larger backbone network pretrained on ImageNet. Ahmed et al. (2019) manually define important views for each object category, create binary edge maps, and train an ensemble of PointNet+ $^ +$ and CNN. However, numbers in Ahmed et al. (2019) are not directly comparable to other approaches as there is a manual alignment of objects in the test set which is different from the standard ModelNet40 test set. This was confirmed with the authors. It is worth noting that even though prior work has shown sophisticated operations to be useful for achieving good results, we find that when controlling for method protocols, strong performance can be achieved with fixed orthogonal views, a smaller network, no ImageNet pretraining, and simpler rendering of points. ",
259
+ "bbox": [
260
+ 174,
261
+ 569,
262
+ 825,
263
+ 750
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "text",
269
+ "text": "Projection-Based Methods for Other Point-Cloud Analysis Tasks: There is a rich literature for using projection-based methods on various point-cloud analysis problems like segmentation (Ladicky et al., 2010; Tighe & Lazebnik, 2010; Riemenschneider et al., 2014; Qin et al., 2018; \\` Dai & Nießner, 2018; Kalogerakis et al., 2017; Tatarchenko et al., 2018), reconstruction (Pittaluga et al., 2019) and rendering (Aliev et al., 2019). Notably, Boulch et al. (2017) use point cloud density to create scene meshes, which are then put into a mesh renderer to generate many image views at different scales. Lawin et al. (2017) render a scene point cloud from 120 views for different modalities like color, depth, and surface normal. Information from multiple modalities is then fused to generate point-wise predictions. For a detailed survey of various projection approaches on different point-cloud processing tasks, we encourage readers to check the recent survey paper by (Guo et al., 2020). In this work, SimpleView serves as a stripped-down projection-based baseline for point-cloud classification that uses a few orthogonal views and simple point projections. ",
270
+ "bbox": [
271
+ 173,
272
+ 757,
273
+ 825,
274
+ 924
275
+ ],
276
+ "page_idx": 2
277
+ },
278
+ {
279
+ "type": "table",
280
+ "img_path": "images/5da264f3aa4417efcada4433a79a46282e57b420c20638b9c276950a334af201.jpg",
281
+ "table_caption": [
282
+ "Table 1: Summary of various protocols. "
283
+ ],
284
+ "table_footnote": [],
285
+ "table_body": "<table><tr><td>Protocol</td><td>Data Augmentation</td><td>Model Selection</td><td>Loss</td><td>Ensemble</td><td>Training Points</td></tr><tr><td>PointNet++</td><td>jitter, random rotation, random scaling and trans.</td><td>final model</td><td>cross-entropy</td><td>Rotation Vote</td><td>fixed</td></tr><tr><td>DGCNN</td><td>random scaling and trans.</td><td>best test model</td><td>smooth-loss</td><td>No vote</td><td>fixed</td></tr><tr><td>RSCNN</td><td>random scaling and trans.</td><td>best test model</td><td>cross-entropy</td><td>Repeated Scaling Vote</td><td>resampled</td></tr><tr><td>SimpleView</td><td>random scaling and trans.</td><td>final model</td><td>smooth-loss</td><td>No vote</td><td>fixed</td></tr></table>",
286
+ "bbox": [
287
+ 176,
288
+ 127,
289
+ 825,
290
+ 207
291
+ ],
292
+ "page_idx": 3
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "3D shape Analysis using Rendered Images and Voxels: Many works use images rendered from object meshes for 3D shape analysis (Maturana & Scherer, 2015; Wu et al., 2015b; Yu et al., 2018; Guo et al., 2016; Shi et al., 2015; Hackel et al., 2017; Song & Xiao, 2016; 2014; Huang & You, 2016; Tchapmi et al., 2017). MVCNN exemplifies this strategy by applying a shared CNN to many rendered views and max-pooling to aggregate features (Su et al., 2015). Subsequent approaches include RotationNet which trains the network to also predict the viewpoint for each image (Kanezaki et al., 2018), GVCNN which groups features from subsets of views together before aggregating into a final prediction (Feng et al., 2018), and hypergraph methods that consider the correlation across training samples (Zhang et al., 2018; Feng et al., 2019). One notable exception is Qi et al. (2016), who use a multi-resolution variant of MVCNN, but instead of object meshes, use a voxelized version of the object for rendering. In contrast to the prior view-based methods that use object meshes with point connectivity information, and render images using basic shading and/or depth; SimpleView takes as input raw point clouds. ",
297
+ "bbox": [
298
+ 173,
299
+ 232,
300
+ 825,
301
+ 412
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "Another class of methods is voxel-based methods that convert points to a fixed 3D grid instead, which enables the use of 3D CNNs (Qi et al., 2016; Wu et al., 2015a; Maturana & Scherer, 2015). Given the added dimension, such methods are usually restricted to a much lower resolution to represent objects. Though some strategies such as octrees have been used to address those limitations (Wang et al., 2017), the advantages to processing 3D data directly in this manner do not yet appear to outweigh the additional overhead introduced. ",
308
+ "bbox": [
309
+ 174,
310
+ 420,
311
+ 825,
312
+ 502
313
+ ],
314
+ "page_idx": 3
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "3 METHOD OVERVIEW ",
319
+ "text_level": 1,
320
+ "bbox": [
321
+ 176,
322
+ 523,
323
+ 379,
324
+ 540
325
+ ],
326
+ "page_idx": 3
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "3.1 VARIATIONS IN EXISTING PROTOCOLS ",
331
+ "text_level": 1,
332
+ "bbox": [
333
+ 176,
334
+ 555,
335
+ 480,
336
+ 570
337
+ ],
338
+ "page_idx": 3
339
+ },
340
+ {
341
+ "type": "text",
342
+ "text": "We analyze the key ingredients in the progress in point-cloud classification. Critical to our study is controlling for factors which are independent of network architecture. We refer to the factors as a method’s protocol. A protocol used by one method can be transferred to another. For our study, we analyze a subset of the highest performing methods over the past few years. This choice was further based on availability and usability of official source-code. Specifically, we choose PointNet (Qi et al., 2017a), PointNet+ $^ +$ (Qi et al., 2017b), DGCNN (Wang et al., 2018b) and RSCNN (Liu et al., 2019c). Note that we also do direct comparisons to networks apart from the ones mentioned here (Table 4). ",
343
+ "bbox": [
344
+ 174,
345
+ 582,
346
+ 825,
347
+ 694
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "For our purposes, we do not consider any variations in input, namely the use of surface normals or more than 1024 points. Using normals or more points have been shown to improve performance in the literature. Our objective is to study factors that are not commonly perceived as a major source of performance increase. So we scope our analysis to the most widely adopted input scheme which uses 1024 points with only $x , y , z$ coordinates. ",
354
+ "bbox": [
355
+ 174,
356
+ 700,
357
+ 825,
358
+ 770
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "Data Augmentation: Various data augmentation strategies like jittering, random rotation along y-axis, random scaling and random translation. Different methods use different combinations of these augmentations. PointNet and PointNet+ $^ +$ use all the above augmentations. However, as objects in ModelNet40 are aligned, random rotation along y-axis adversely affects the performance of a model. Hence recent methods, including RSCNN and DGCNN, do not use it. They use only random translation and random scaling. Some methods including PointCNN make a distinction between whether or not random rotation along y-axis is used, but it is not a common practice. ",
365
+ "bbox": [
366
+ 174,
367
+ 777,
368
+ 825,
369
+ 888
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "text",
375
+ "text": "Input Points: PointNet and PointNet+ $^ +$ use a fixed set of 1024 points per object to train the network. We refer to it as the fixed points strategy. RSCNN and PointCNN randomly sample points during each epoch, effectively exposing the model to more than 1024 points per object during the training process. We refer to this as the resampled points strategy. ",
376
+ "bbox": [
377
+ 173,
378
+ 895,
379
+ 823,
380
+ 924
381
+ ],
382
+ "page_idx": 3
383
+ },
384
+ {
385
+ "type": "table",
386
+ "img_path": "images/35ab2b5ea16bef0ac8cab9ed9abd8e9abbae99f4da4423b3162f1ebbb063629c.jpg",
387
+ "table_caption": [
388
+ "Table 2: DGCNN aug. and smooth loss improve the performance of all architectures "
389
+ ],
390
+ "table_footnote": [],
391
+ "table_body": "<table><tr><td colspan=\"2\">Data Augmentation</td><td colspan=\"2\">Model Selection</td><td colspan=\"2\">Loss</td><td colspan=\"4\">Architecture</td></tr><tr><td>PN++</td><td>DGCNN</td><td>Final</td><td>Best Test</td><td>C.E.</td><td>Smooth</td><td>PointNet</td><td>PN++</td><td>DGCNN</td><td>RSCNN</td></tr><tr><td></td><td></td><td></td><td>√</td><td>?</td><td></td><td>89.7±0.3</td><td>91.0±0.3</td><td>90.5±0.2</td><td>90.4±0.3</td></tr><tr><td>√</td><td></td><td>&gt;&gt;&gt;</td><td></td><td></td><td></td><td>89.0±0.2</td><td>89.8±0.2</td><td>90.0±0.4</td><td>89.4±0.1</td></tr><tr><td></td><td>√</td><td></td><td></td><td>√</td><td></td><td>89.1±0.2</td><td>92.1±0.1</td><td>91.1±0.3</td><td>91.1±0.3</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>√</td><td>89.2±0.9</td><td>92.7±0.1</td><td>91.9±0.2</td><td>91.7±0.3</td></tr></table>",
392
+ "bbox": [
393
+ 178,
394
+ 127,
395
+ 825,
396
+ 222
397
+ ],
398
+ "page_idx": 4
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "",
403
+ "bbox": [
404
+ 176,
405
+ 246,
406
+ 823,
407
+ 275
408
+ ],
409
+ "page_idx": 4
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "Loss Function: cross-entropy (CE) is used by most of the methods. However, DGCNN uses smooth-loss, where the ground-truth labels are smoothed out before calculating cross-entropy. We observe that smooth-loss improves the performance of all network architectures. ",
414
+ "bbox": [
415
+ 174,
416
+ 281,
417
+ 825,
418
+ 324
419
+ ],
420
+ "page_idx": 4
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "Selecting Model for Testing: PointNet and PointNet+ $^ { - + }$ use the final converged model to evaluate on the test set. Since the number of epochs is a hyper-parameter that depends on factors like data, model, optimizer, and loss, in our experiments, we create a validation set from the training set to tune the number of epochs. We then retrain the model with the complete training set to the tuned number of epochs. We refer to this strategy as final model selection. We find that some methods including DGCNN and RSCNN evaluate the model on the test set after every epoch and use the best test performance as the final performance. We refer to this strategy as best test model selection. ",
425
+ "bbox": [
426
+ 173,
427
+ 330,
428
+ 825,
429
+ 441
430
+ ],
431
+ "page_idx": 4
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "Ensemble Scheme: Some methods use an ensemble to further improve the performance. PointNet and PointNet+ $^ +$ apply the final network to multiple rotated and shuffled versions of the point cloud, and average the predictions to make the final prediction. We refer to this strategy as Rotation Vote. The shuffling operation induces randomness in prediction for PointNet $^ { + + }$ and RSCNN as they are not strictly invariant to the order of the points (Sec. 3.3 in Qi et al. (2017b)). Hence, while evaluating Rotation Vote, we do the inference 10 times per run for PointNet $^ { + + }$ and RSCNN, and report mean and standard deviation. SimpleView and PointNet are invariant to the order of the points and hence are not affected by shuffling. Some methods, including RSCNN and DensePoint, create multiple randomly scaled and randomly sampled versions of a test object. They then evaluate the final network on these multiple versions of the object and average the prediction. Since the scaling is random, it makes the test set performance random as well. RSCNN and DensePoint repeat this procedure 300 times on the test set and report the best accuracy. We refer to it as Repeated Scaling Vote. DGCNN does not use any ensemble. ",
436
+ "bbox": [
437
+ 173,
438
+ 449,
439
+ 825,
440
+ 628
441
+ ],
442
+ "page_idx": 4
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "Table 1 summarizes the PointNet $^ { + + }$ , DGCNN and RSCNN protocols. Besides these three protocols, we also include variants of these protocols in table 3 and table 4, such as PointNet $^ { + + }$ no Vote (i.e. PointNe $^ { + + }$ but without the Rotation Vote), DGCNN CE (i.e. DGCNN but with CE loss intead of smooth loss), DGCNN CE Final (i.e. DGCNN CE but with final model selection instead of best test model selection) and RSCNN no Vote (i.e. RSCNN but without the Rotation Vote). These protocols represent prototypical settings and have been used with slight modifications in many other prior works. ",
447
+ "bbox": [
448
+ 174,
449
+ 636,
450
+ 825,
451
+ 734
452
+ ],
453
+ "page_idx": 4
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "For example, DeepSets (Zaheer et al., 2017) used the PointNet $^ { + + }$ no Vote protocol without jittering and translation; SO-Net (Li et al., 2018a) used the DGCNN CE protocol with jittering and random scaling instead of random scaling and translation; 3DmFV (Ben-Shabat et al., 2018) used the DGCNN $C E$ protocol with additional jittering; PCNN (Atzmon et al., 2018) used the DGCNN CE Final protcol1; PointCNN (Li et al., 2018b) used the DGCNN CE protocol with randomly sampled points and small $( 1 0 ^ { \\circ } )$ rotation augmentation; DensePoint (Liu et al., 2019b) used the RSCNN protocol; PointASL (Yan et al., 2020) used the DGCNN CE protocol but with additional point jittering augmentation and voting. ",
458
+ "bbox": [
459
+ 173,
460
+ 741,
461
+ 825,
462
+ 853
463
+ ],
464
+ "page_idx": 4
465
+ },
466
+ {
467
+ "type": "text",
468
+ "text": "Our Protocol: Based on our findings, we define our SimpleView protocol, which uses the best augmentation and loss functions while not using any information from the test set. Table 2 shows that ",
469
+ "bbox": [
470
+ 174,
471
+ 859,
472
+ 821,
473
+ 887
474
+ ],
475
+ "page_idx": 4
476
+ },
477
+ {
478
+ "type": "table",
479
+ "img_path": "images/22d8c94af4c62a2b3bb85af40d250701527c94e89bc1ebf73966c03dc0f3f2cb.jpg",
480
+ "table_caption": [
481
+ "Table 3: Performance of various architectures on ModelNet40. Protocol affects performance by a large amount. SimpleView performs on par or better than prior architectures across protocols. "
482
+ ],
483
+ "table_footnote": [],
484
+ "table_body": "<table><tr><td rowspan=\"2\">Protocol→ Architecture ↓</td><td colspan=\"2\">PointNet++</td><td colspan=\"2\">RSCNN</td><td colspan=\"2\">DGCNN</td></tr><tr><td>no Vote</td><td>Vote</td><td>no Vote</td><td>Vote</td><td>CE</td><td>Smooth</td></tr><tr><td>PointNet</td><td>89.0 ± 0.2</td><td>89.1 ± 0.2</td><td>90.0 ± 0.3</td><td>90.1 ± 0.2</td><td>90.1 ± 0.2</td><td>90.5 ± 0.1</td></tr><tr><td>PointNet++</td><td>89.8 ± 0.2</td><td>90.0 ± 0.3</td><td>92.7 ± 0.1</td><td>93.3 ± 0.3</td><td>92.6 ± 0.2</td><td>93.1 ± 0.2</td></tr><tr><td>DGCNN</td><td>90.0 ± 0.4</td><td>90.5 ± 0.4</td><td>92.2 ± 0.1</td><td>92.8 ± 0.5</td><td>91.9 ± 0.2</td><td>92.7 ± 0.1</td></tr><tr><td>RSCNN</td><td>89.4 ± 0.1</td><td>90.2 ± 0.2</td><td>92.1 ± 0.1</td><td>92.5 ± 0.2</td><td>91.9 ± 0.2</td><td>92.5 ± 0.1</td></tr><tr><td>SimpleView</td><td>90.7 ± 0.3</td><td>91.0 ± 0.2</td><td>92.9 ± 0.2</td><td>93.2 ± 0.1</td><td>93.1 ± 0.1</td><td>93.6 ± 0.3</td></tr></table>",
485
+ "bbox": [
486
+ 176,
487
+ 140,
488
+ 823,
489
+ 251
490
+ ],
491
+ "page_idx": 5
492
+ },
493
+ {
494
+ "type": "table",
495
+ "img_path": "images/4c039c152428d524c219eea1e4aa48cf6356af06c61066ee85caf706cb137f16.jpg",
496
+ "table_caption": [
497
+ "Table 4: Performance of various architectures on ModelNet40. Includes prior works not in Table 3. \\* indicates small differences in protocol as identified in Sec. 3.1 "
498
+ ],
499
+ "table_footnote": [],
500
+ "table_body": "<table><tr><td>Architecture</td><td>#Points</td><td>Closest Protocol</td><td>Acc.</td><td>PN++ Acc.</td><td>SimpleView Acc.</td></tr><tr><td>DeepSets (Zaheer et al.)</td><td>5000</td><td>PointNet++ no Vote*</td><td>90.0 ± 0.3</td><td>89.8 ± 0.2</td><td>90.7 ± 0.3</td></tr><tr><td>SO-Net (Li et al.)</td><td>2048</td><td>DGCNN CE*</td><td>90.9</td><td>92.6 ± 0.2</td><td>93.1 ± 0.1</td></tr><tr><td>3DmFV (Ben-Shabat et al.)</td><td>1024</td><td>DGCNN CE*</td><td>91.4</td><td>92.6 ± 0.2</td><td>93.1 ± 0.1</td></tr><tr><td>PCNN (Atzmon et al.)</td><td>1024</td><td>DCNN CE Final*</td><td>92.3</td><td>92.1 ± 0.1</td><td>92.5 ± 0.3</td></tr><tr><td>PointCNN (Li et al.)</td><td>1024</td><td>DGCNN CE*</td><td>92.5</td><td>92.6 ± 0.2</td><td>93.1 ± 0.1</td></tr><tr><td>DensePoint (Liu et al.)</td><td>1024</td><td>RSCNN no Vote</td><td>92.8</td><td>92.7 ± 0.1</td><td>92.9 ± 0.2</td></tr><tr><td>RSCNN-Multi (Liu et al.)</td><td>1024</td><td>RSCNN no Vote</td><td>92.9</td><td>92.7 ± 0.1</td><td>92.9 ± 0.2</td></tr><tr><td>PointANSL (Yan et al.)</td><td>1024</td><td>DGCNN CE*</td><td>92.9</td><td>92.6 ± 0.2</td><td>93.1 ± 0.1</td></tr></table>",
501
+ "bbox": [
502
+ 176,
503
+ 306,
504
+ 825,
505
+ 429
506
+ ],
507
+ "page_idx": 5
508
+ },
509
+ {
510
+ "type": "text",
511
+ "text": "DGCNN’s augmentation (i.e random translation and scaling) and smooth-loss improve performance of all prior networks, so we use them in the SimpleView protocol. Further, similar to PointNet, PointNet $^ { + + }$ and DGCNN, we use the fixed dataset of 1024 points instead of re-sampling different points at each epoch. Re-sampling points for each epoch effectively increases the training dataset of points, making numbers incomparable to methods using a fixed dataset. We avoid any feedback from the test set and use the final model selection, where we first tune the number of epochs on the validation set then retrain the model on the entire train set. Lastly, similar to DGCNN, we do not use ensemble as it is more standard in Machine Learning to compare models without ensemble. ",
512
+ "bbox": [
513
+ 174,
514
+ 458,
515
+ 825,
516
+ 583
517
+ ],
518
+ "page_idx": 5
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "3.2 SIMPLEVIEW ",
523
+ "text_level": 1,
524
+ "bbox": [
525
+ 174,
526
+ 603,
527
+ 307,
528
+ 617
529
+ ],
530
+ "page_idx": 5
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "Given a set of points SimpleView, projects them onto the six orthogonal planes to create sparse depth images. It then extracts features from the depth images using a CNN and fuses, which is then used to classify the point-cloud as shown in Fig. 1. ",
535
+ "bbox": [
536
+ 174,
537
+ 631,
538
+ 825,
539
+ 674
540
+ ],
541
+ "page_idx": 5
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "Generating Depth Images from Point Cloud: Let $( x , y , z )$ be the coordinates of a point in the point cloud with respect to the camera. We apply perspective projection to get the 2D coordinate $( \\tilde { x } \\ = \\ x / z , \\tilde { y } \\ = \\ y / z )$ of $\\mathbf { p }$ at depth $z$ . We also do ablations with orthographic projection and found perspective projection to work better (Table. 7). Since coordinates on image plane have to be discrete, we use $( \\bar { \\lceil x \\rceil } , \\bar { \\lceil y \\rceil } )$ to be the final coordinate of $\\mathbf { p }$ on the image plane. Multiple points may be projected to the same discrete location on the image plane. To produce depth value at an image location, we do ablations on two choices, one the minimum depth of all points, and other weighted average depth with more weight $\\textstyle { \\binom { 1 } { z } }$ given to closer points (Table. 7). Empirically, we find both perform similar with the later performing slightly better. This could be because of reduction in noise due to the averaging of nearby pixels on the surface. The depth images are of resolution $1 2 8 \\mathrm { ~ X ~ } 1 2 8$ . ",
546
+ "bbox": [
547
+ 173,
548
+ 680,
549
+ 825,
550
+ 820
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "SimpleView Architecture: To make the number of parameters comparable to point-based methods, we use ResNet18 with one-fourth filters (ResNet18/4) as the backbone. For fusing features, we do ablation with two choices, pooling and concatenation. Empirically, we find concatenation to work better than pooling them (Table. 7). This could be because pooling features throws away the view information like which views are adjacent to one another. One concern could be that concatenation could make features sensitive to viewpoint, and hence the network could fail on rotated objects. ",
557
+ "bbox": [
558
+ 174,
559
+ 840,
560
+ 825,
561
+ 922
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "table",
567
+ "img_path": "images/79266b18597927e8163f1fd5e42c63e82f859cf163d3c17a259060775d498385.jpg",
568
+ "table_caption": [
569
+ "Table 5: Performance of various architectures on ModelNet40 when using the best dataaugmentation and loss function; and not using any feedback from test set. SimpleView outperforms prior architectures, while having fewest parameters and comparable inference time. "
570
+ ],
571
+ "table_footnote": [],
572
+ "table_body": "<table><tr><td>Architecture ↓</td><td>Acc.</td><td>Class Acc.</td><td>Para. (M)</td><td>Time (ms)</td></tr><tr><td>PointNet</td><td>89.2 ± 0.9</td><td>85.1 ± 0.6</td><td>3.5</td><td>3.0</td></tr><tr><td>PointNet++</td><td>92.7 ± 0.1</td><td>90.0± 0.3</td><td>1.7</td><td>20.7</td></tr><tr><td>DGCNN</td><td>92.3 ± 0.3</td><td>89.1 ± 0.3</td><td>1.8</td><td>7.3</td></tr><tr><td>RSCNN</td><td>91.7 ± 0.3</td><td>88.5 ± 0.4</td><td>1.3</td><td>4.3</td></tr><tr><td>SimpleView</td><td>93.0 ± 0.4</td><td>90.5 ± 0.8</td><td>0.8</td><td>5.0</td></tr></table>",
573
+ "bbox": [
574
+ 176,
575
+ 181,
576
+ 493,
577
+ 272
578
+ ],
579
+ "page_idx": 6
580
+ },
581
+ {
582
+ "type": "table",
583
+ "img_path": "images/add2a7673441e4264cd37481ef995c80d11108425bdfc8312a73296c90cb238c.jpg",
584
+ "table_caption": [
585
+ "Table 6: Performance of various architectures on ScanObjectNN, and cross-dataset generalization. SimpleView achieves state-of-the-art results and shows better cross dataset generalization. Numbers for prior works are from (Uy et al., 2019). "
586
+ ],
587
+ "table_footnote": [],
588
+ "table_body": "<table><tr><td>Architecture ↓</td><td>TR: SONN TE: SONN</td><td>TR:MN40 TE: SONN</td><td>TR: SONN TE: MN40</td></tr><tr><td>3DmFV (Shabat et al.)</td><td>63.0</td><td>24.9</td><td>51.5</td></tr><tr><td>PointNet (Qi et al.)</td><td>68.2</td><td>31.1</td><td>50.9</td></tr><tr><td>SpiderCNN (Xu et al.)</td><td>73.7</td><td>30.9</td><td>46.6</td></tr><tr><td>PointNet++ (Qi et al.)</td><td>77.9</td><td>32.0</td><td>47.4</td></tr><tr><td>DGCNN (Wang et al.)</td><td>78.1</td><td>36.8</td><td>54.7</td></tr><tr><td>PointCNN (Li et al.)</td><td>78.5</td><td>24.6</td><td>49.2</td></tr><tr><td>SimpleView</td><td>79.5±0.5</td><td>40.5±1.4</td><td>57.9±2.1</td></tr></table>",
589
+ "bbox": [
590
+ 509,
591
+ 169,
592
+ 826,
593
+ 271
594
+ ],
595
+ "page_idx": 6
596
+ },
597
+ {
598
+ "type": "table",
599
+ "img_path": "images/3870818572f5accd35f17f6fdd7f0989690a26fa33f4b7351bc52c9e078bf75a.jpg",
600
+ "table_caption": [
601
+ "Table 7: Ablation of various choices for SimpleView on ModelNet40. The performance is evaluatated on the validation set. "
602
+ ],
603
+ "table_footnote": [],
604
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"3\">Number of Views</td><td colspan=\"2\">Image Projection</td><td colspan=\"2\">Feature Fusion</td><td colspan=\"2\">Image Depth</td></tr><tr><td>1</td><td>3</td><td>6</td><td>Orthographic</td><td>Perspective</td><td>Pool</td><td>Concat</td><td>Minimum</td><td>Weighted Avg.</td></tr><tr><td>Accuracy</td><td>90.7±0.1</td><td>92.1 ± 0.2</td><td>92.9±0.3</td><td>92.7 ± 0.3</td><td>92.9±0.3</td><td>91.8± 0.3</td><td>92.9± 0.3</td><td>92.8± 0.4</td><td>92.9± 0.3</td></tr></table>",
605
+ "bbox": [
606
+ 176,
607
+ 327,
608
+ 825,
609
+ 371
610
+ ],
611
+ "page_idx": 6
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "However, empirically, we observe that this issue is largely mitigated by rotation augmentation and SimpleView is able to achieve state-of-the-art performance on ScanObjectNN where objects are rotated. The point-clouds are scaled to be in $[ \\hat { 1 } , - 1 ] ^ { 3 }$ , we keep the cameras at a distance of 1.4 units from the center with $9 0 °$ fov. We also do ablations with different number of views, comparing only front views, three orthogonal views and six orthogonal views. We find that using all six views performs the best (Table 7). We do not use ImageNet pretraining, thus making the comparison with point-based methods strictly fair, without any additional data. ",
616
+ "bbox": [
617
+ 173,
618
+ 398,
619
+ 825,
620
+ 497
621
+ ],
622
+ "page_idx": 6
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "4 EXPERIMENTS ",
627
+ "text_level": 1,
628
+ "bbox": [
629
+ 176,
630
+ 521,
631
+ 326,
632
+ 536
633
+ ],
634
+ "page_idx": 6
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "ModelNet40: ModelNet40 is a the most widely adopted benchmark for point-cloud classification. It contains objects from 40 common categories. There are 9840 objects in the training set and 2468 in the test set. Objects are aligned to a common up and front direction. ",
639
+ "bbox": [
640
+ 174,
641
+ 554,
642
+ 821,
643
+ 597
644
+ ],
645
+ "page_idx": 6
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "ScanObjectNN: ScanObjectNN is a recent real-world point cloud classification dataset. It consists of 15 classes, 11 of which are also in ModelNet40. There are a total of $1 5 \\mathrm { k }$ objects in the dataset. Unlike ModelNet40, the objects in ScanObjectNN are obtained from real-world 3D scans. Hence, point clouds are noisy (occlusions, background points) and have geometric distortions such as holes. Also, unlike ModelNet40, the objects are not axis-aligned. ",
650
+ "bbox": [
651
+ 174,
652
+ 603,
653
+ 825,
654
+ 674
655
+ ],
656
+ "page_idx": 6
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "4.1 EXPERIMENTS ON MODELNET40 ",
661
+ "text_level": 1,
662
+ "bbox": [
663
+ 176,
664
+ 694,
665
+ 444,
666
+ 708
667
+ ],
668
+ "page_idx": 6
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "Implementation Details: We use PyTorch (Paszke et al., 2019) to implement all models and protocols while reusing the official code wherever possible. We use the official version of DGCNN and RSCNN. We confirm with the authors that the code for RSCNN-Multi, another version of RSCNN, is yet to be released. Hence we use the reported numbers of RSCNN-Multi in Table 4. PointNet and PointNet $^ { + + }$ are officially released in TensorFlow (Abadi et al., 2015). For PointNet, we adapt our code from PointNet.pytorch (Xia, accessed June, 2020) as recommended in the official repository. For PointNet++, we adapt the model code from Pointnet2 PyTorch (Wijmans, accessed June, 2020). We further make sure that the third party PyTorch code closely matches the official TensorFlow code. ",
673
+ "bbox": [
674
+ 173,
675
+ 720,
676
+ 825,
677
+ 847
678
+ ],
679
+ "page_idx": 6
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "We use Adam (Kingma & Ba, 2014) with an initial learning rate of 1e-3 and a decay-on-plateau learning rate scheduler. The batch size and weight decay for each model are kept the same as the official version in Table 3. We use a batch size of 18 and no weight decay for SimpleView. To give the prior models the best chance on our protocol (Table 5), we additionally tune their hyperparameters on the validation set. We find that the official hyper-parameters already perform close to optimal. We train each model for 1000 epochs. Since there are small variations in final performance across different runs, we do 4 runs and report the mean and standard deviation. ",
684
+ "bbox": [
685
+ 174,
686
+ 854,
687
+ 823,
688
+ 924
689
+ ],
690
+ "page_idx": 6
691
+ },
692
+ {
693
+ "type": "image",
694
+ "img_path": "images/8b40ab61d4067d6d54c88f0a10b5099143d8f8d1f0873543ec9e9d09ffed3114.jpg",
695
+ "image_caption": [
696
+ "Figure 3: Failure Cases for SimpleView and PointNet++. The first row shows cases where both SimpleView and PointNe $^ { + + }$ fail; the second row shows cases where SimpleView succeeds but PointNet+ $^ +$ fails; the third row shows cases where SimpleView fails but PointNet++ succeeds. "
697
+ ],
698
+ "image_footnote": [],
699
+ "bbox": [
700
+ 181,
701
+ 99,
702
+ 815,
703
+ 434
704
+ ],
705
+ "page_idx": 7
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "",
710
+ "bbox": [
711
+ 176,
712
+ 532,
713
+ 821,
714
+ 561
715
+ ],
716
+ "page_idx": 7
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "Performance under various Prior Protocols: Table 3 shows the performance different architectures under various protocols. The mean performance of PointNet $^ { + + }$ improves from $8 9 . 8 \\%$ to $9 3 . 3 \\%$ when we switch from the PointNet $^ { + + }$ no Vote to the RSCNN Vote protocol. Similarly the performance of SimpleView improves from $9 0 . 7 \\%$ to $9 3 . 6 \\%$ when we switch from PointNet $^ { + + }$ no Vote to DGCNN Smooth. Since there is variance in performance across runs, we refrain from making any claims about absolute ordering between prior works. However, we do observe that in terms of mean performance, SimpleView performs on par or better than other methods under all protocols. Note that in RSCNN Vote, voting on the test set is done 300 times with reshuffled and randomly augmented points, from which the highest accuracy is selected. Hence models that have the largest variance in prediction, i.e. PointNet++ and RSCNN gain the most from it, as they are not strictly invariant to the order of points (Sec. 3.3 in Qi et al. (2017b)). ",
721
+ "bbox": [
722
+ 173,
723
+ 568,
724
+ 825,
725
+ 722
726
+ ],
727
+ "page_idx": 7
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "Performance under the SimpleView Protocol: Table 5 shows that SimpleView outperforms prior architectures on our controlled protocol in terms of mean performance. SimpleView has the fewest number of parameters and a competitive inference speed. Inference speed is measured on an NVIDIA 2080Ti averaged across 100 runs. ",
732
+ "bbox": [
733
+ 174,
734
+ 728,
735
+ 823,
736
+ 784
737
+ ],
738
+ "page_idx": 7
739
+ },
740
+ {
741
+ "type": "text",
742
+ "text": "Fig. 3 show examples where both SimpleView and PointNet $^ { + + }$ fail, as well as examples where one of them fails and the other succeeds. Qualitatively, we find that the failure modes of SimpleView and PointNet+ $^ { \\cdot + }$ are similar. We also find that a major failure mode in both SimpleView and PointNet+ $^ +$ is the confusion between the ‘flower pot’ and ‘plant’ category (see Sec. A Fig. I and Fig. II). This could be because of the lack of color information. ",
743
+ "bbox": [
744
+ 173,
745
+ 790,
746
+ 825,
747
+ 861
748
+ ],
749
+ "page_idx": 7
750
+ },
751
+ {
752
+ "type": "text",
753
+ "text": "Comparison with More Methods: In Table 4, we do one-on-one comparison between SimpleView and recent state-of-the-art methods, other than PointNet, PointNet++, RSCNN and DGCNN. We identify the closest protocol to the one used in the paper from the ones we evaluate. Table 4 shows the competitiveness of PointNet+ $^ +$ and SimpleView with other recent state-of-the-art methods. ",
754
+ "bbox": [
755
+ 174,
756
+ 867,
757
+ 823,
758
+ 924
759
+ ],
760
+ "page_idx": 7
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "4.2 EXPERIMENTS ON SCANOBJECTNN ",
765
+ "text_level": 1,
766
+ "bbox": [
767
+ 178,
768
+ 103,
769
+ 462,
770
+ 117
771
+ ],
772
+ "page_idx": 8
773
+ },
774
+ {
775
+ "type": "text",
776
+ "text": "Implementation Details: ScanObjectNN’s official repository trains and evaluates the state-of-theart models under the same protocol. We implement SimpleView in TensorFlow and use the official ScanObjectNN protocol for fairness. This protocol is different from the SimpleView protocol as it normalizes the point clouds and randomly samples points. We optimize our model with Adam. We use a batch size of 20 and no weight decay to train SimpleView for 300 epochs with an initial learning rate 0.001, and use the final model for testing. We use standard image-based cropping and scaling augmentation to prevent over-fitting. The hyper-parameter for cropping and scaling is found on a validation set made from ScanObjecNN’s train set. We conduct 4 runs for SimpleView. ScanObjectNN does not use a fixed set of points during test time. It instead randomly samples points from the point cloud, which adds randomness to test set performance. Hence, we evaluate each run 10 times. We report the final performance as the mean and variance of the 40 evaluations (4 runs $\\times$ 10 evaluations per run). ",
777
+ "bbox": [
778
+ 174,
779
+ 130,
780
+ 825,
781
+ 296
782
+ ],
783
+ "page_idx": 8
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "Performance on ScanObjectNN: As shown in Table 6, SimpleView outperforms prior networks on ScanObjectNN. This shows the SimpleView is effective in real world settings, with noisy and misaligned point clouds. We also perform transfer experiments to test generalizability of SimpleView. We train on ScanObjectNN and test on ModelNet40 and vice versa. Table 6 shows that SimpleView transfers across datasets better than prior methods. ",
788
+ "bbox": [
789
+ 174,
790
+ 303,
791
+ 825,
792
+ 372
793
+ ],
794
+ "page_idx": 8
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "5 DISCUSSION ",
799
+ "text_level": 1,
800
+ "bbox": [
801
+ 176,
802
+ 393,
803
+ 310,
804
+ 410
805
+ ],
806
+ "page_idx": 8
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "In this work, we demonstrate how auxiliary factors orthogonal to the network architecture have a large effect on performance for point-cloud classification. When controlling for these factors, we find that a relatively older method, PointNet $^ { - + }$ (Qi et al., 2017b), performs competitively with more recent ones. Furthermore, we show that a simple baseline performs on par or better than state-ofthe-art architectures. ",
811
+ "bbox": [
812
+ 174,
813
+ 426,
814
+ 825,
815
+ 494
816
+ ],
817
+ "page_idx": 8
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "Our results show that for future progress we should control for protocols while comparing network architectures. Our code base could serve as a useful resource for developing new models and comparing them with prior works. Our results show that the existing evidence for point-based methods is not as strong when auxiliary factors are properly controlled for, and that SimpleView is a strong baseline. But our results are not meant to discourage future research on point-based methods. It is still entirely possible that point-based methods come out ahead with additional innovations. We believe it is beneficial to explore competing approaches, including the ones that are underperforming at a particular time, as long as the results are compared in a controlled manner. ",
822
+ "bbox": [
823
+ 174,
824
+ 502,
825
+ 825,
826
+ 613
827
+ ],
828
+ "page_idx": 8
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "Our analysis in this work was limited to point cloud classification, which is an important problem in 3D scene understanding and forms a critical part of object detection and retrieval systems. An exciting future direction would be to expand this analysis to other problems that involve point cloud data such as scene and part segmentation. ",
833
+ "bbox": [
834
+ 174,
835
+ 621,
836
+ 825,
837
+ 676
838
+ ],
839
+ "page_idx": 8
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "REFERENCES ",
844
+ "text_level": 1,
845
+ "bbox": [
846
+ 174,
847
+ 699,
848
+ 285,
849
+ 713
850
+ ],
851
+ "page_idx": 8
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, ´ Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Watten- ´ berg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow.org/. Software available from tensorflow.org. ",
856
+ "bbox": [
857
+ 176,
858
+ 722,
859
+ 825,
860
+ 847
861
+ ],
862
+ "page_idx": 8
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "Syeda Mariam Ahmed, Pan Liang, and Chee Meng Chew. Epn: Edge-aware pointnet for object recognition from multi-view $2 . 5 \\ : \\mathrm { d }$ point clouds. IROS, 2019. ",
867
+ "bbox": [
868
+ 171,
869
+ 856,
870
+ 823,
871
+ 886
872
+ ],
873
+ "page_idx": 8
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "Kara-Ali Aliev, Artem Sevastopolsky, Maria Kolos, Dmitry Ulyanov, and Victor Lempitsky. Neural point-based graphics. arXiv preprint arXiv:1906.08240, 2019. ",
878
+ "bbox": [
879
+ 176,
880
+ 895,
881
+ 821,
882
+ 922
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "Kai O Arras, Oscar Martinez Mozos, and Wolfram Burgard. Using boosted features for the detection of people in 2d range data. In Proceedings 2007 IEEE International Conference on Robotics and Automation, pp. 3402–3407. IEEE, 2007. ",
889
+ "bbox": [
890
+ 176,
891
+ 103,
892
+ 823,
893
+ 146
894
+ ],
895
+ "page_idx": 9
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "Matan Atzmon, Haggai Maron, and Yaron Lipman. Point convolutional neural networks by extension operators. arXiv preprint arXiv:1803.10091, 2018. ",
900
+ "bbox": [
901
+ 171,
902
+ 155,
903
+ 823,
904
+ 185
905
+ ],
906
+ "page_idx": 9
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Yizhak Ben-Shabat, Michael Lindenbaum, and Anath Fischer. 3dmfv: Three-dimensional point cloud classification in real-time using convolutional neural networks. IEEE Robotics and Automation Letters, 2018. ",
911
+ "bbox": [
912
+ 174,
913
+ 194,
914
+ 825,
915
+ 237
916
+ ],
917
+ "page_idx": 9
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Alexandre Boulch, Bertrand Le Saux, and Nicolas Audebert. Unstructured point cloud semantic labeling using deep segmentation networks. 3DOR, 2:7, 2017. ",
922
+ "bbox": [
923
+ 171,
924
+ 246,
925
+ 823,
926
+ 275
927
+ ],
928
+ "page_idx": 9
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "Angela Dai and Matthias Nießner. 3dmv: Joint 3d-multi-view prediction for 3d semantic scene segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 452– 468, 2018. ",
933
+ "bbox": [
934
+ 174,
935
+ 284,
936
+ 826,
937
+ 327
938
+ ],
939
+ "page_idx": 9
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Yifan Feng, Zizhao Zhang, Xibin Zhao, Rongrong Ji, and Yue Gao. Gvcnn: Group-view convolutional neural networks for 3d shape recognition. In CVPR, pp. 264–272, 2018. ",
944
+ "bbox": [
945
+ 173,
946
+ 337,
947
+ 823,
948
+ 367
949
+ ],
950
+ "page_idx": 9
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Yifan Feng, Haoxuan You, Zizhao Zhang, Rongrong Ji, and Yue Gao. Hypergraph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 3558–3565, 2019. ",
955
+ "bbox": [
956
+ 176,
957
+ 375,
958
+ 823,
959
+ 417
960
+ ],
961
+ "page_idx": 9
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Fabian Groh, Patrick Wieschollek, and Hendrik P. A. Lensch. Flex-convolution (million-scale pointcloud learning beyond grid-worlds). In ACCV, 2018. ",
966
+ "bbox": [
967
+ 171,
968
+ 428,
969
+ 823,
970
+ 457
971
+ ],
972
+ "page_idx": 9
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Haiyun Guo, Jinqiao Wang, Yue Gao, Jianqiang Li, and Hanqing Lu. Multi-view 3d object retrieval with deep embedding network. IEEE Transactions on Image Processing, 25(12):5526–5537, 2016. ",
977
+ "bbox": [
978
+ 174,
979
+ 465,
980
+ 823,
981
+ 508
982
+ ],
983
+ "page_idx": 9
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "Yulan Guo, Hanyun Wang, Qingyong Hu, Hao Liu, Li Liu, and Mohammed Bennamoun. Deep learning for 3d point clouds: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020. ",
988
+ "bbox": [
989
+ 174,
990
+ 517,
991
+ 825,
992
+ 560
993
+ ],
994
+ "page_idx": 9
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Timo Hackel, Nikolay Savinov, Lubor Ladicky, Jan D Wegner, Konrad Schindler, and Marc Pollefeys. Semantic3d. net: A new large-scale point cloud classification benchmark. arXiv preprint arXiv:1704.03847, 2017. ",
999
+ "bbox": [
1000
+ 174,
1001
+ 570,
1002
+ 825,
1003
+ 613
1004
+ ],
1005
+ "page_idx": 9
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "Jing Huang and Suya You. Point cloud labeling using 3d convolutional neural network. In 2016 23rd International Conference on Pattern Recognition (ICPR), pp. 2670–2675. IEEE, 2016. ",
1010
+ "bbox": [
1011
+ 171,
1012
+ 622,
1013
+ 825,
1014
+ 652
1015
+ ],
1016
+ "page_idx": 9
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Evangelos Kalogerakis, Melinos Averkiou, Subhransu Maji, and Siddhartha Chaudhuri. 3d shape segmentation with projective convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3779–3788, 2017. ",
1021
+ "bbox": [
1022
+ 173,
1023
+ 661,
1024
+ 825,
1025
+ 704
1026
+ ],
1027
+ "page_idx": 9
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "Asako Kanezaki, Yasuyuki Matsushita, and Yoshifumi Nishida. Rotationnet: Joint object categorization and pose estimation using multiviews from unsupervised viewpoints. In CVPR, 2018. ",
1032
+ "bbox": [
1033
+ 169,
1034
+ 713,
1035
+ 823,
1036
+ 742
1037
+ ],
1038
+ "page_idx": 9
1039
+ },
1040
+ {
1041
+ "type": "text",
1042
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1043
+ "bbox": [
1044
+ 171,
1045
+ 752,
1046
+ 823,
1047
+ 781
1048
+ ],
1049
+ "page_idx": 9
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "text": "Roman Klokov and Victor Lempitsky. Escape from cells: Deep kd-networks for the recognition of 3d point cloud models. In ICCV, 2017. ",
1054
+ "bbox": [
1055
+ 169,
1056
+ 790,
1057
+ 825,
1058
+ 819
1059
+ ],
1060
+ "page_idx": 9
1061
+ },
1062
+ {
1063
+ "type": "text",
1064
+ "text": "Artem Komarichev, Zichun Zhong, and Jing Hua. A-cnn: Annularly convolutional neural networks on point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7421–7430, 2019. ",
1065
+ "bbox": [
1066
+ 174,
1067
+ 829,
1068
+ 823,
1069
+ 872
1070
+ ],
1071
+ "page_idx": 9
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "L’ubor Ladicky, Paul Sturgess, Karteek Alahari, Chris Russell, and Philip HS Torr. What, where \\` and how many? combining object detectors and crfs. In European conference on computer vision, pp. 424–437. Springer, 2010. ",
1076
+ "bbox": [
1077
+ 174,
1078
+ 881,
1079
+ 825,
1080
+ 924
1081
+ ],
1082
+ "page_idx": 9
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Felix Jaremo Lawin, Martin Danelljan, Patrik Tosteberg, Goutam Bhat, Fahad Shahbaz Khan, and ¨ Michael Felsberg. Deep projective 3d semantic segmentation. In International Conference on Computer Analysis of Images and Patterns, pp. 95–107. Springer, 2017. ",
1087
+ "bbox": [
1088
+ 176,
1089
+ 103,
1090
+ 823,
1091
+ 147
1092
+ ],
1093
+ "page_idx": 10
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "Jiaxin Li, Ben M Chen, and Gim Hee Lee. So-net: Self-organizing network for point cloud analysis. In CVPR, 2018a. ",
1098
+ "bbox": [
1099
+ 173,
1100
+ 155,
1101
+ 823,
1102
+ 184
1103
+ ],
1104
+ "page_idx": 10
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "text": "Yangyan Li, Rui Bu, Mingchao Sun, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. Advances in Neural Information Processing Systems, 2018b. ",
1109
+ "bbox": [
1110
+ 173,
1111
+ 193,
1112
+ 823,
1113
+ 222
1114
+ ],
1115
+ "page_idx": 10
1116
+ },
1117
+ {
1118
+ "type": "text",
1119
+ "text": "Xinhai Liu, Zhizhong Han, Yu-Shen Liu, and Matthias Zwicker. Point2sequence: Learning the shape representation of 3d point clouds with an attention-based sequence to sequence network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 8778–8785, 2019a. ",
1120
+ "bbox": [
1121
+ 174,
1122
+ 231,
1123
+ 825,
1124
+ 275
1125
+ ],
1126
+ "page_idx": 10
1127
+ },
1128
+ {
1129
+ "type": "text",
1130
+ "text": "Yongcheng Liu, Bin Fan, Gaofeng Meng, Jiwen Lu, Shiming Xiang, and Chunhong Pan. Densepoint: Learning densely contextual representation for efficient point cloud processing. In Proceedings of the IEEE International Conference on Computer Vision, pp. 5239–5248, 2019b. ",
1131
+ "bbox": [
1132
+ 174,
1133
+ 284,
1134
+ 825,
1135
+ 327
1136
+ ],
1137
+ "page_idx": 10
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "Yongcheng Liu, Bin Fan, Shiming Xiang, and Chunhong Pan. Relation-shape convolutional neural network for point cloud analysis. In CVPR, pp. 8895–8904, 2019c. ",
1142
+ "bbox": [
1143
+ 174,
1144
+ 335,
1145
+ 823,
1146
+ 366
1147
+ ],
1148
+ "page_idx": 10
1149
+ },
1150
+ {
1151
+ "type": "text",
1152
+ "text": "D. Maturana and S. Scherer. VoxNet: A 3D Convolutional Neural Network for Real-Time Object Recognition. In IROS, 2015. ",
1153
+ "bbox": [
1154
+ 174,
1155
+ 373,
1156
+ 823,
1157
+ 404
1158
+ ],
1159
+ "page_idx": 10
1160
+ },
1161
+ {
1162
+ "type": "text",
1163
+ "text": "Luis E Navarro-Serment, Christoph Mertz, and Martial Hebert. Pedestrian detection and tracking using three-dimensional ladar data. The International Journal of Robotics Research, 29(12): 1516–1528, 2010. ",
1164
+ "bbox": [
1165
+ 173,
1166
+ 411,
1167
+ 825,
1168
+ 455
1169
+ ],
1170
+ "page_idx": 10
1171
+ },
1172
+ {
1173
+ "type": "text",
1174
+ "text": "Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32, pp. 8024–8035. 2019. ",
1175
+ "bbox": [
1176
+ 174,
1177
+ 464,
1178
+ 825,
1179
+ 535
1180
+ ],
1181
+ "page_idx": 10
1182
+ },
1183
+ {
1184
+ "type": "text",
1185
+ "text": "Francesco Pittaluga, Sanjeev J Koppal, Sing Bing Kang, and Sudipta N Sinha. Revealing scenes by inverting structure from motion reconstructions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 145–154, 2019. ",
1186
+ "bbox": [
1187
+ 173,
1188
+ 544,
1189
+ 821,
1190
+ 587
1191
+ ],
1192
+ "page_idx": 10
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Charles R. Qi, Hao Su, Matthias Niessner, Angela Dai, Mengyuan Yan, and Leonidas J. Guibas. Volumetric and multi-view cnns for object classification on 3d data. In CVPR, 2016. ",
1197
+ "bbox": [
1198
+ 173,
1199
+ 595,
1200
+ 823,
1201
+ 626
1202
+ ],
1203
+ "page_idx": 10
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. CVPR, 2017a. ",
1208
+ "bbox": [
1209
+ 173,
1210
+ 633,
1211
+ 823,
1212
+ 664
1213
+ ],
1214
+ "page_idx": 10
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Charles R Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointne $^ { + + }$ : Deep hierarchical feature learning on point sets in a metric space. Advances in Neural Information Processing Systems, 2017b. ",
1219
+ "bbox": [
1220
+ 173,
1221
+ 672,
1222
+ 825,
1223
+ 702
1224
+ ],
1225
+ "page_idx": 10
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Nannan Qin, Xiangyun Hu, and Hengming Dai. Deep fusion of multi-view and multimodal representation of als point cloud for 3d terrain scene recognition. ISPRS journal of photogrammetry and remote sensing, 143:205–212, 2018. ",
1230
+ "bbox": [
1231
+ 174,
1232
+ 710,
1233
+ 823,
1234
+ 753
1235
+ ],
1236
+ "page_idx": 10
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "Hayko Riemenschneider, Andras B ´ odis-Szomor ´ u, Julien Weissenberg, and Luc Van Gool. Learning ´ where to classify in multi-view semantic segmentation. In European Conference on Computer Vision, pp. 516–532. Springer, 2014. ",
1241
+ "bbox": [
1242
+ 173,
1243
+ 762,
1244
+ 823,
1245
+ 806
1246
+ ],
1247
+ "page_idx": 10
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "text": "Riccardo Roveri, Lukas Rahmann, Cengiz Oztireli, and Markus Gross. A network architecture for point cloud classification via automatic depth images generation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4176–4184, 2018. ",
1252
+ "bbox": [
1253
+ 174,
1254
+ 814,
1255
+ 823,
1256
+ 858
1257
+ ],
1258
+ "page_idx": 10
1259
+ },
1260
+ {
1261
+ "type": "text",
1262
+ "text": "Radu Bogdan Rusu, Nico Blodow, Zoltan Csaba Marton, and Michael Beetz. Close-range scene segmentation and reconstruction of 3d point cloud maps for mobile manipulation in domestic environments. In 2009 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 1–6. IEEE, 2009. ",
1263
+ "bbox": [
1264
+ 174,
1265
+ 867,
1266
+ 825,
1267
+ 924
1268
+ ],
1269
+ "page_idx": 10
1270
+ },
1271
+ {
1272
+ "type": "text",
1273
+ "text": "Kripasindhu Sarkar, Basavaraj Hampiholi, Kiran Varanasi, and Didier Stricker. Learning 3d shapes as multi-layered height-maps using 2d convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 71–86, 2018. ",
1274
+ "bbox": [
1275
+ 176,
1276
+ 103,
1277
+ 823,
1278
+ 146
1279
+ ],
1280
+ "page_idx": 11
1281
+ },
1282
+ {
1283
+ "type": "text",
1284
+ "text": "Baoguang Shi, Song Bai, Zhichao Zhou, and Xiang Bai. Deeppano: Deep panoramic representation for 3-d shape recognition. Signal Processing Letters, IEEE, 22(12):2339–2343, 2015. ",
1285
+ "bbox": [
1286
+ 173,
1287
+ 154,
1288
+ 823,
1289
+ 184
1290
+ ],
1291
+ "page_idx": 11
1292
+ },
1293
+ {
1294
+ "type": "text",
1295
+ "text": "Martin Simonovsky and Nikos Komodakis. Dynamic edge-conditioned filters in convolutional neural networks on graphs. In CVPR, 2017. ",
1296
+ "bbox": [
1297
+ 173,
1298
+ 191,
1299
+ 823,
1300
+ 220
1301
+ ],
1302
+ "page_idx": 11
1303
+ },
1304
+ {
1305
+ "type": "text",
1306
+ "text": "Shuran Song and Jianxiong Xiao. Sliding shapes for 3d object detection in depth images. In European conference on computer vision, pp. 634–651. Springer, 2014. ",
1307
+ "bbox": [
1308
+ 171,
1309
+ 229,
1310
+ 823,
1311
+ 260
1312
+ ],
1313
+ "page_idx": 11
1314
+ },
1315
+ {
1316
+ "type": "text",
1317
+ "text": "Shuran Song and Jianxiong Xiao. Deep sliding shapes for amodal 3d object detection in rgb-d images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 808–816, 2016. ",
1318
+ "bbox": [
1319
+ 174,
1320
+ 267,
1321
+ 823,
1322
+ 310
1323
+ ],
1324
+ "page_idx": 11
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Hang Su, Subhransu Maji, Evangelos Kalogerakis, and Erik G. Learned-Miller. Multi-view convolutional neural networks for 3d shape recognition. In ICCV, 2015. ",
1329
+ "bbox": [
1330
+ 173,
1331
+ 319,
1332
+ 823,
1333
+ 348
1334
+ ],
1335
+ "page_idx": 11
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "Hang Su, Varun Jampani, Deqing Sun, Subhransu Maji, Evangelos Kalogerakis, Ming-Hsuan Yang, and Jan Kautz. Splatnet: Sparse lattice networks for point cloud processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2530–2539, 2018. ",
1340
+ "bbox": [
1341
+ 173,
1342
+ 356,
1343
+ 826,
1344
+ 400
1345
+ ],
1346
+ "page_idx": 11
1347
+ },
1348
+ {
1349
+ "type": "text",
1350
+ "text": "Maxim Tatarchenko, Jaesik Park, Vladlen Koltun, and Qian-Yi Zhou. Tangent convolutions for dense prediction in 3d. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3887–3896, 2018. ",
1351
+ "bbox": [
1352
+ 173,
1353
+ 409,
1354
+ 825,
1355
+ 452
1356
+ ],
1357
+ "page_idx": 11
1358
+ },
1359
+ {
1360
+ "type": "text",
1361
+ "text": "Lyne Tchapmi, Christopher Choy, Iro Armeni, JunYoung Gwak, and Silvio Savarese. Segcloud: Semantic segmentation of 3d point clouds. In 2017 international conference on 3D vision (3DV), pp. 537–547. IEEE, 2017. ",
1362
+ "bbox": [
1363
+ 173,
1364
+ 459,
1365
+ 825,
1366
+ 502
1367
+ ],
1368
+ "page_idx": 11
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "Hugues Thomas, Charles R Qi, Jean-Emmanuel Deschaud, Beatriz Marcotegui, Franc¸ois Goulette, and Leonidas J Guibas. Kpconv: Flexible and deformable convolution for point clouds. In Proceedings of the IEEE International Conference on Computer Vision, pp. 6411–6420, 2019. ",
1373
+ "bbox": [
1374
+ 173,
1375
+ 511,
1376
+ 825,
1377
+ 554
1378
+ ],
1379
+ "page_idx": 11
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "Joseph Tighe and Svetlana Lazebnik. Scalable nonparametric image parsing with superpixels. ECCV, 2010. ",
1384
+ "bbox": [
1385
+ 173,
1386
+ 561,
1387
+ 821,
1388
+ 590
1389
+ ],
1390
+ "page_idx": 11
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "text": "Mikaela Angelina Uy, Quang-Hieu Pham, Binh-Son Hua, Thanh Nguyen, and Sai-Kit Yeung. Revisiting point cloud classification: A new benchmark dataset and classification model on real-world data. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1588–1597, 2019. ",
1395
+ "bbox": [
1396
+ 173,
1397
+ 599,
1398
+ 825,
1399
+ 656
1400
+ ],
1401
+ "page_idx": 11
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "Chu Wang, Babak Samari, and Kaleem Siddiqi. Local spectral graph convolution for point set feature learning. ECCV, 2018a. ",
1406
+ "bbox": [
1407
+ 171,
1408
+ 665,
1409
+ 823,
1410
+ 694
1411
+ ],
1412
+ "page_idx": 11
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "Peng-Shuai Wang, Yang Liu, Yu-Xiao Guo, Chun-Yu Sun, and Xin Tong. O-cnn: Octree-based convolutional neural networks for 3d shape analysis. ACM Transactions on Graphics (TOG), 36 (4):1–11, 2017. ",
1417
+ "bbox": [
1418
+ 173,
1419
+ 703,
1420
+ 825,
1421
+ 746
1422
+ ],
1423
+ "page_idx": 11
1424
+ },
1425
+ {
1426
+ "type": "text",
1427
+ "text": "Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph cnn for learning on point clouds. arXiv preprint arXiv:1801.07829, 2018b. ",
1428
+ "bbox": [
1429
+ 176,
1430
+ 753,
1431
+ 823,
1432
+ 797
1433
+ ],
1434
+ "page_idx": 11
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "Erik Wijmans. PointNet2 pytorch, accessed June, 2020. URL https://github.com/ erikwijmans/Pointnet2_PyTorch. ",
1439
+ "bbox": [
1440
+ 171,
1441
+ 805,
1442
+ 821,
1443
+ 835
1444
+ ],
1445
+ "page_idx": 11
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9621–9630, 2019. ",
1450
+ "bbox": [
1451
+ 173,
1452
+ 843,
1453
+ 823,
1454
+ 886
1455
+ ],
1456
+ "page_idx": 11
1457
+ },
1458
+ {
1459
+ "type": "text",
1460
+ "text": "Zhirong Wu, Shuran Song, Aditya Khosla, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In CVPR, 2015a. ",
1461
+ "bbox": [
1462
+ 173,
1463
+ 895,
1464
+ 821,
1465
+ 924
1466
+ ],
1467
+ "page_idx": 11
1468
+ },
1469
+ {
1470
+ "type": "text",
1471
+ "text": "Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1912–1920, 2015b. ",
1472
+ "bbox": [
1473
+ 176,
1474
+ 103,
1475
+ 821,
1476
+ 146
1477
+ ],
1478
+ "page_idx": 12
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "text": "Fei Xia. PointNet.pytorch, accessed June, 2020. URL https://github.com/fxia22/ pointnet.pytorch. ",
1483
+ "bbox": [
1484
+ 173,
1485
+ 155,
1486
+ 821,
1487
+ 184
1488
+ ],
1489
+ "page_idx": 12
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "Saining Xie, Sainan Liu, Zeyu Chen, and Zhuowen Tu. Attentional shapecontextnet for point cloud recognition. In CVPR, 2018. ",
1494
+ "bbox": [
1495
+ 173,
1496
+ 193,
1497
+ 823,
1498
+ 222
1499
+ ],
1500
+ "page_idx": 12
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "Yifan Xu, Tianqi Fan, Mingye Xu, Long Zeng, and Yu Qiao. Spidercnn: Deep learning on point sets with parameterized convolutional filters. In ECCV, 2018. ",
1505
+ "bbox": [
1506
+ 173,
1507
+ 231,
1508
+ 823,
1509
+ 260
1510
+ ],
1511
+ "page_idx": 12
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "Xu Yan, Chaoda Zheng, Zhen Li, Sheng Wang, and Shuguang Cui. Pointasnl: Robust point clouds processing using nonlocal neural networks with adaptive sampling. CVPR, 2020. ",
1516
+ "bbox": [
1517
+ 171,
1518
+ 267,
1519
+ 823,
1520
+ 297
1521
+ ],
1522
+ "page_idx": 12
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "Tan Yu, Jingjing Meng, and Junsong Yuan. Multi-view harmonized bilinear network for 3d object recognition. In CVPR, 2018. ",
1527
+ "bbox": [
1528
+ 171,
1529
+ 305,
1530
+ 825,
1531
+ 334
1532
+ ],
1533
+ "page_idx": 12
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In Advances in Neural Information Processing Systems, 2017. ",
1538
+ "bbox": [
1539
+ 171,
1540
+ 343,
1541
+ 823,
1542
+ 372
1543
+ ],
1544
+ "page_idx": 12
1545
+ },
1546
+ {
1547
+ "type": "text",
1548
+ "text": "Kuangen Zhang, Ming Hao, Jing Wang, Clarence W de Silva, and Chenglong Fu. Linked dynamic graph cnn: Learning on point cloud via linking hierarchical features. arXiv preprint arXiv:1904.10014, 2019. ",
1549
+ "bbox": [
1550
+ 173,
1551
+ 381,
1552
+ 821,
1553
+ 424
1554
+ ],
1555
+ "page_idx": 12
1556
+ },
1557
+ {
1558
+ "type": "text",
1559
+ "text": "Zizhao Zhang, Haojie Lin, Xibin Zhao, Rongrong Ji, and Yue Gao. Inductive multi-hypergraph learning and its application on view-based 3d object classification. IEEE Transactions on Image Processing, 27(12):5957–5968, 2018. ",
1560
+ "bbox": [
1561
+ 174,
1562
+ 433,
1563
+ 825,
1564
+ 476
1565
+ ],
1566
+ "page_idx": 12
1567
+ },
1568
+ {
1569
+ "type": "text",
1570
+ "text": "A APPENDIX ",
1571
+ "text_level": 1,
1572
+ "bbox": [
1573
+ 176,
1574
+ 103,
1575
+ 297,
1576
+ 117
1577
+ ],
1578
+ "page_idx": 13
1579
+ },
1580
+ {
1581
+ "type": "image",
1582
+ "img_path": "images/5f0f28b05536c705d795036eb13399fa271ef793a5d576ab9384fb248a23d99e.jpg",
1583
+ "image_caption": [
1584
+ "Figure I: Confusion matrix for SimpleView when trained under our protocol "
1585
+ ],
1586
+ "image_footnote": [],
1587
+ "bbox": [
1588
+ 173,
1589
+ 136,
1590
+ 759,
1591
+ 464
1592
+ ],
1593
+ "page_idx": 13
1594
+ },
1595
+ {
1596
+ "type": "image",
1597
+ "img_path": "images/74d59f4eb55d04b38c5570c36a9863bc1a14d979aff009a5cca933d3e66ad187.jpg",
1598
+ "image_caption": [
1599
+ "Figure II: Confusion matrix for PointNet++ when trained under our protocol "
1600
+ ],
1601
+ "image_footnote": [],
1602
+ "bbox": [
1603
+ 173,
1604
+ 512,
1605
+ 758,
1606
+ 840
1607
+ ],
1608
+ "page_idx": 13
1609
+ },
1610
+ {
1611
+ "type": "table",
1612
+ "img_path": "images/c06bbc72e6afb3031a7639c7a00b80b0fe3064b269c002ee09f23e669eb0b1d4.jpg",
1613
+ "table_caption": [
1614
+ "Table I: Performance of various architectures on ModelNet40 when using different amount of training data. "
1615
+ ],
1616
+ "table_footnote": [],
1617
+ "table_body": "<table><tr><td>Per. of Training Data</td><td>RSCNN</td><td>DGCNN</td><td>PointNet</td><td>PointNet++</td><td>SimpleView</td></tr><tr><td>25%</td><td>88.2 ± 0.4</td><td>89.1 ± 0.2</td><td>86.3 ± 0.4</td><td>89.6 ± 0.4</td><td>89.7 ± 0.3</td></tr><tr><td>50%</td><td>90.4 ± 0.4</td><td>91.0 ± 0.3</td><td>88.2 ± 0.3</td><td>91.5 ± 0.2</td><td>92.1 ± 0.3</td></tr><tr><td>100 %</td><td>91.7 ± 0.3</td><td>92.3 ± 0.3</td><td>89.2 ± 0.9</td><td>92.7 ± 0.3</td><td>93.0 ± 0.4</td></tr></table>",
1618
+ "bbox": [
1619
+ 174,
1620
+ 141,
1621
+ 787,
1622
+ 212
1623
+ ],
1624
+ "page_idx": 14
1625
+ }
1626
+ ]
parse/train/XwATtbX3oCz/XwATtbX3oCz_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/XwATtbX3oCz/XwATtbX3oCz_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/h8flNv9x8v-/h8flNv9x8v-.md ADDED
@@ -0,0 +1,422 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gradient Starvation: A Learning Proclivity in Neural Networks
2
+
3
+ Mohammad Pezeshki1,2 Sékou-Oumar Kaba1,3 Yoshua Bengio1,2 Aaron Courville1,2 Doina Precup1,3,4 Guillaume Lajoie1,2
4
+ 1Mila 2Université de Montréal 3McGill University 4Google DeepMind
5
+ corresponding authors:{pezeshki, guillaume.lajoie}@mila.quebec
6
+
7
+ # Abstract
8
+
9
+ We identify and formalize a fundamental gradient descent phenomenon leading to a learning proclivity in over-parameterized neural networks. Gradient Starvation arises when cross-entropy loss is minimized by capturing only a subset of features relevant for the task, despite the presence of other predictive features that fail to be discovered. This work provides a theoretical explanation for the emergence of such feature imbalances in neural networks. Using tools from Dynamical Systems theory, we identify simple properties of learning dynamics during gradient descent that lead to this imbalance, and prove that such a situation can be expected given certain statistical structure in training data. Based on our proposed formalism, we develop guarantees for a novel but simple regularization method aimed at decoupling feature learning dynamics, improving accuracy and robustness in cases hindered by gradient starvation. We illustrate our findings with simple and realworld out-of-distribution (OOD) generalization experiments.
10
+
11
+ # 1 Introduction
12
+
13
+ In 1904, a horse named Hans attracted worldwide attention due to the belief that it was capable of doing arithmetic calculations [81]. Its trainer would ask Hans a question, and Hans would reply by tapping on the ground with its hoof. However, it was later revealed that the horse was only noticing subtle but distinctive signals in its trainer’s unconscious behavior, unbeknown to him, and not actually performing arithmetic. An analogous phenomenon has been noticed when training neural networks [e.g. 85, 109, 54, 39, 17, 14, 37, 51, 107, 76, 48, 19, 61, 77]. In many cases, state-of-the-art neural networks appear to focus on low-level superficial correlations, rather than more abstract and robustly informative features of interest [16, 88, 40, 68, 30].
14
+
15
+ The rationale behind this phenomenon is well known by practitioners: given strongly-correlated and fast-to-learn features in training data, gradient descent is biased towards learning them first. However, the precise conditions leading to such learning dynamics, and how one might intervene to control this feature imbalance are not entirely understood. Recent work aims at identifying the reasons behind this phenomenon [97, 70, 22, 73, 51, 76, 100, 92, 83, 105, 42, 79, 4], while complementary work quantifies resulting shortcomings, including poor generalization to out-of-distribution (OOD) test data, reliance upon spurious correlations, and lack of robustness [30, 68, 77, 41, 63, 64, 9]. However most established work focuses on squared-error loss and its particularities, where results do not readily generalize to other objective forms. This is especially problematic since for several classification applications, cross-entropy is the loss function of choice, yielding very distinct learning dynamics. In this paper, we argue that Gradient Starvation, first coined in [26], is a leading cause for this feature imbalance in neural networks trained with cross-entropy, and propose a simple approach to mitigate it.
16
+
17
+ ![](images/9f945eaedc28dc850b70ed0f5a00c0d50de39ab2ea581ed85082d9da4e26613b.jpg)
18
+ Figure 1: Diagram illustrating the effect of gradient starvation in a simple 2-D classification task. (a) Data is not linearly separable and the learned decision boundary is curved. (b) Data is linearly separable by a small margin $\Delta = \mathrm { 0 . 1 }$ ). This small margin allows the network to discriminate confidently only along the horizontal axis and ignore the vertical axis. (c) Data is linearly separable as in (b). However, with the proposed Spectral decoupling (SD), a curved decision boundary with a large margin is learned. (d) Diagram shows the evolution of two of the features (Eq. 4) of the dynamics in three cases shown as dotted, dashed and solid lines. Analysis: (dotted) vs (dashed): Linear separability of the data results in an increase in $z _ { 1 }$ and a decrease (starvation) of $z _ { 2 }$ . (dashed) vs (solid): SD suppresses $z _ { 1 }$ and hence allows $z _ { 2 }$ to grow. Decision boundaries are averaged over ten runs. More experiments with common regularization methods are provided in App. B.
19
+
20
+ Here we summarize our contributions:
21
+
22
+ We provide a theoretical framework to study the learning dynamics of linearized neural networks trained with cross-entropy loss in a dual space. Using perturbation analysis, we formalize Gradient Starvation (GS) in view of the coupling between the dynamics of orthogonal directions in the feature space (Thm. 2). We leverage our theory to introduce Spectral Decoupling (SD) (Eq. 17) and prove this simple regularizer helps to decouple learning dynamics, mitigating GS. We support our findings with extensive empirical results on a variety of classification and adversarial attack tasks. All code and experiment details available at GitHub repository.
23
+
24
+ In the rest of the paper, we first present a simple example to outline the consequences of GS. We then present our theoretical results before outlining a number of numerical experiments. We close with a review of related work followed by a discussion.
25
+
26
+ # 2 Gradient Starvation: A simple example
27
+
28
+ Consider a 2-D classification task with a training set consisting of two classes, as shown in Figure 1. A two-layer ReLU network with 500 hidden units is trained with cross-entropy loss for two different arrangements of the training points. The difference between the two arrangements is that, in one setting, the data is not linearly separable, but a slight shift makes it linearly separable in the other setting. This small shift allows the network to achieve a negligible loss by only learning to discriminate along the horizontal axis, ignoring the other. This contrasts with the other case, where both features contribute to the learned classification boundary, which arguably matches the data structure better. We observe that training longer or using different regularizers, including weight decay [58], dropout [95], batch normalization [49], as well as changing the optimization algorithm to Adam [56] or changing the network architecture or the coordinate system, do not encourage the network to learn a curved decision boundary. (See App. B for more details.)
29
+
30
+ We argue that this occurs because cross-entropy loss leads to gradients “starved” of information from vertical features. Simply put, when one feature is learned faster than the others, the gradient contribution of examples containing that feature is diminished (i.e., they are correctly processed based on that feature alone). This results in a lack of sufficient gradient signal, and hence prevents any remaining features from being learned. This simple mechanism has potential consequences, which we outline below.
31
+
32
+ # 2.1 Consequences of Gradient Starvation
33
+
34
+ Lack of robustness. In the example above, even in the right plot, the training loss is nearly zero, and the network is very confident in its predictions. However, the decision boundary is located very close to the data points. This could lead to adversarial vulnerability as well as lack of robustness when generalizing to out-of-distribution data.
35
+
36
+ Excessive invariance. GS could also result in neural networks that are invariant to task-relevant changes in the input. In the example above, it is possible to obtain a data point with low probability under the data distribution, but that would still be classified with high confidence.
37
+
38
+ Implicit regularization. One might argue that according to Occam’s razor, a simpler decision boundary should generalize better. In fact, if both training and test sets share the same dominant feature (in this example, the feature along the horizontal axis), GS naturally prevents the learning of less dominant features that could otherwise result in overfitting. Therefore, depending on our assumptions on the training and test distributions, GS could also act as an implicit regularizer. We provide further discussion on the implicit regularization aspect of GS in Section 5.
39
+
40
+ # 3 Theoretical Results
41
+
42
+ In this section, we study the learning dynamics of neural networks trained with cross-entropy loss. Particularly, we seek to decompose the learning dynamics along orthogonal directions in the feature space of neural networks, to provide a formal definition of GS, and to derive a simple regularization method to mitigate it. For analytical tractability, we make three key assumptions: (1) we study deep networks in the Neural Tangent Kernel (NTK) regime, (2) we treat a binary classification task, (3) we decompose the interaction between two features. In Section 4, we demonstrate our results hold beyond these simplifying assumptions, for a wide range of practical settings. All derivation details can be found in $\mathbf { S M C }$ .
43
+
44
+ # 3.1 Problem Setup and Gradient Starvation Definition
45
+
46
+ Let ${ \mathcal { D } } = \{ { \bf X } , { \bf y } \}$ denote a training set containing $n$ datapoints with $d$ dimensions, where, $\mathbf { X } =$ $[ \mathbf { x } _ { 1 } , . . . , \mathbf { x } _ { n } ] \in \mathbb { R } ^ { n \times d }$ and their corresponding class label $\mathbf { y } \in \{ - 1 , + 1 \} ^ { n }$ . Also let $\hat { \mathbf { y } } ( \mathbf { X } ) : = f ^ { ( L ) } ( \mathbf { X } ) :$ $\mathbb { R } ^ { n \times d } \to \mathbb { R } ^ { n }$ represent the logits of an $\mathrm { L }$ -layer fully-connected neural network where each hidden layer $h ^ { ( l ) } ( x ) \in \mathbf { \bar { \mathbb { R } } } ^ { d _ { l } }$ is defined as follows,
47
+
48
+ $$
49
+ \begin{array} { r } { \left\{ \begin{array} { l l } { \boldsymbol { f } ^ { ( l ) } ( \mathbf { x } _ { i } ) = \mathbf { W } ^ { ( l ) } h ^ { ( l - 1 ) } ( \mathbf { x } _ { i } ) } \\ { h ^ { ( l ) } ( \mathbf { x } _ { i } ) = \sqrt { \frac { \gamma } { d _ { l } } } \boldsymbol { \xi } ( \boldsymbol { f } ^ { ( l ) } ( \mathbf { x } _ { i } ) ) } \end{array} \right. , l \in \{ 0 , 1 , . . . , L \} , } \end{array}
50
+ $$
51
+
52
+ in which $\mathbf { W } ^ { ( l ) } \in \mathbb { R } ^ { d _ { l } \times d _ { l - 1 } }$ is a weight matrix drawn from $\mathcal { N } ( 0 , \bf { I } )$ and $\gamma$ is a scaling factor to ensure that norm of each $\boldsymbol { h } ^ { ( l - 1 ) }$ is preserved at initialization (See [28] for a formal treatment). The function $\xi ( . )$ is also an element-wise non-linear activation function.
53
+
54
+ Let $\pmb \theta = \mathrm { c o n c a t } \big ( \cup _ { l = 1 } ^ { L } \mathrm { v e c } ( \mathbf W ^ { ( l ) } ) \big ) \in \mathbb { R } ^ { m }$ be the concatenation of all vectorized weight matrices with $m$ as the total number of parameters. In the NTK regime [52], in the limit of infinite width, the output of the neural network can be approximated as a linear function of its parameters governed by the neural tangent random feature (NTRF) matrix [23],
55
+
56
+ $$
57
+ \Phi \left( \mathbf { X } , \theta \right) = \frac { \partial \hat { \mathbf { y } } \left( \mathbf { X } , \theta \right) } { \partial \theta } \in \mathbb { R } ^ { n \times m } .
58
+ $$
59
+
60
+ In the wide-width regime, the NTRF changes very little during training [62], and the output of the neural network can be approximated by a first order Taylor expansion around the initialization parameters $\pmb { \theta } _ { 0 }$ . Setting $\Phi _ { 0 } \equiv \Phi \left( \mathbf { X } , \pmb { \theta } _ { 0 } \right)$ and then, without loss of generality, centering parameters and the output coordinates to their value at the initialization ${ \bf \delta _ { \theta } }$ and $\hat { \mathbf { y } } _ { 0 , }$ ), we get
61
+
62
+ $$
63
+ \hat { \mathbf { y } } \left( \mathbf { X } , \pmb { \theta } \right) = \Phi _ { 0 } \pmb { \theta } .
64
+ $$
65
+
66
+ Dominant directions in the feature space as well as the parameter space are given by principal components of the NTRF matrix $\Phi _ { 0 }$ , which are the same as those of the NTK Gram matrix [106]. We therefore introduce the following definition.
67
+
68
+ Definition 1 (Features and Responses). Consider the singular value decomposition (SVD) of the matrix $\mathbf { Y } \Phi _ { 0 } = \mathbf { U } \mathbf { S } \mathbf { V } ^ { T }$ , where $\mathbf { Y } = d i a g \left( \mathbf { y } \right)$ . The jth feature is given by $( \mathbf { \dot { V } } ^ { T } ) _ { j . }$ .. The strength of jth feature is represented by $s _ { j } = ( \mathbf { S } ) _ { j j }$ . Also, $( \mathbf { U } ) _ { \cdot j }$ contains the weights of this feature in all examples. A neural network’s response to a feature $j$ is given by $z _ { j }$ where,
69
+
70
+ $$
71
+ \mathbf { z } : = \mathbf { U } ^ { T } \mathbf { Y } \hat { \mathbf { y } } = \mathbf { S } \mathbf { V } ^ { T } \pmb { \theta } .
72
+ $$
73
+
74
+ In Eq. 4, the response to feature $j$ is the sum of the responses to every example in $( \mathbf { Y } \hat { \mathbf { y } } )$ multiplied by the weight of the feature in that example $( \mathbf { U } ^ { T } )$ . For example, if all elements of $( \mathbf { U } ) _ { \cdot j }$ are positive, it indicates a perfect correlation between this feature and class labels. We are now equipped to formally define GS.
75
+
76
+ Definition 2 (Gradient Starvation). Recall the the model prescribed by Eq. 3. Let $z _ { j } ^ { \ast }$ denote the model’s response to feature $j$ at training optimum $\pmb { \theta } ^ { * 1 }$ . Feature $i$ starves the gradient for feature $j$ $i f d z _ { j } ^ { * } / d ( s _ { i } ^ { 2 } ) < 0$ .
77
+
78
+ This definition of GS implies that an increase in the strength of feature $i$ has a detrimental effect on the learning of feature $j$ . We now derive conditions for which learning dynamics of system 3 suffer from GS.
79
+
80
+ # 3.2 Training Dynamics
81
+
82
+ We consider the widely used ridge-regularized cross-entropy loss function,
83
+
84
+ $$
85
+ \mathcal { L } \left( \pmb { \theta } \right) = \mathbf { 1 } \cdot \log \left[ 1 + \exp \left( - \mathbf { Y } \hat { \mathbf { y } } \right) \right] + \frac { \lambda } { 2 } \| \pmb { \theta } \| ^ { 2 } ,
86
+ $$
87
+
88
+ where 1 is a vector of size $n$ with all its elements equal to 1. This vector form simply represents a summation over all the elements of the vector it is multiplied to. $\lambda \in [ 0 , \infty )$ denotes the weight decay coefficient.
89
+
90
+ Direct minimization of this loss function using the gradient descent obeys coupled dynamics and is difficult to treat directly [26]. To overcome this problem, we call on a variational approach that leverages the Legendre transformation of the loss function. This allows tractable dynamics that can directly incorporate rates of learning in different feature directions. Following [50], we note the following inequality,
91
+
92
+ $$
93
+ \begin{array} { r } { \log \left[ 1 + \exp \left( - \mathbf { Y } \hat { \mathbf { y } } \right) \right] \geq H ( \alpha ) - \alpha \odot \mathbf { Y } \hat { \mathbf { y } } , } \end{array}
94
+ $$
95
+
96
+ where $H ( \pmb { \alpha } ) = - \left[ \pmb { \alpha } \log \pmb { \alpha } + ( 1 - \pmb { \alpha } ) \log \left( 1 - \pmb { \alpha } \right) \right]$ is Shannon’s binary entropy function, $\alpha \in$ $( 0 , 1 ) ^ { n }$ is a variational parameter defined for each training example, and $\odot$ denotes the element-wise vector product. Crucially, the equality holds when the maximum of r.h.s. w.r.t $_ \alpha$ is achieved at $\begin{array} { r } { \pmb { \alpha } ^ { * } = \frac { \bar { { \partial \mathcal { L } } } } { \partial ( \mathbf { Y } \hat { \mathbf { y } } ) ^ { T } } } \end{array}$ , which leads to the following optimization problem,
97
+
98
+ $$
99
+ \operatorname* { m i n } _ { \pmb { \theta } } \mathcal { L } \left( \pmb { \theta } \right) = \operatorname* { m i n } _ { \pmb { \theta } } \operatorname* { m a x } _ { \pmb { \alpha } } \left( \mathbf { 1 } \cdot H ( \pmb { \alpha } ) - \pmb { \alpha } \mathbf { Y } \hat { \mathbf { y } } + \frac { \lambda } { 2 } \| \pmb { \theta } \| ^ { 2 } \right) ,
100
+ $$
101
+
102
+ where the order of min and max can be swapped (see Lemma 3 of [50]). Since the neural network’s output is approximated by a linear function of $\pmb \theta$ , the minimization can be performed analytically with an critical value $\pmb { \theta } _ { . } ^ { \ast T } = \triangleq \frac { 1 } { \lambda } \pmb { \alpha } \mathbf { Y } \pmb { \Phi } _ { 0 }$ , given by a weighted sum of the training examples. This results in the following maximization problem on the dual variable, i.e., $\operatorname* { m i n } _ { \theta } { \mathcal { L } } \left( \theta \right)$ is equivalent to,
103
+
104
+ $$
105
+ \operatorname* { m i n } _ { \pmb { \theta } } \mathcal { L } \left( \pmb { \theta } \right) = \operatorname* { m a x } _ { \pmb { \alpha } } \left( \mathbf { 1 } \cdot H ( \pmb { \alpha } ) - \frac { 1 } { 2 \lambda } \pmb { \alpha } \mathbf { Y } \pmb { \Phi } _ { 0 } \pmb { \Phi } _ { 0 } ^ { T } \mathbf { Y } ^ { T } \pmb { \alpha } ^ { T } \right) .
106
+ $$
107
+
108
+ By applying continuous-time gradient ascent on this optimization problem, we derive an autonomous differential equation for the evolution of $_ { \pmb { \alpha } }$ , which can be written in terms of features (see Definition 1),
109
+
110
+ $$
111
+ \dot { \pmb { \alpha } } = \eta \left( - \log \pmb { \alpha } + \log \left( \mathbf { 1 } - \pmb { \alpha } \right) - \frac { 1 } { \lambda } \pmb { \alpha } \mathbf { U } \mathbf { S } ^ { 2 } \mathbf { U } ^ { T } \right) ,
112
+ $$
113
+
114
+ where $\eta$ is the learning rate (see $\mathrm { S M } \mathrm { C } . 1$ for more details). For this dynamical system, we see that the logarithm term acts as barriers that keep $\alpha _ { i } \in ( 0 , 1 )$ . The other term depends on the matrix $\mathbf { U S ^ { 2 } U } ^ { T }$ , which is positive definite, and thus pushes the system towards the origin and therefore drives learning.
115
+
116
+ When $\lambda \ll s _ { k } ^ { 2 }$ , where $k$ is an index over the singular values, the linear term dominates Eq. 9, and the fixed point is drawn closer towards the origin. Approximating dynamics with a first order Taylor expansion around the origin of the second term in Eq. 9, we get
117
+
118
+ $$
119
+ \dot { \boldsymbol { \alpha } } \approx \eta \left( - \log \boldsymbol { \alpha } - \frac { 1 } { \lambda } \boldsymbol { \alpha } \mathbf { U } \left( \mathbf { S } ^ { 2 } + \lambda \mathbf { I } \right) \mathbf { U } ^ { T } \right) ,
120
+ $$
121
+
122
+ with stability given by the following theorem with proof in $\mathbf { S M C }$ .
123
+
124
+ Theorem 1. Any fixed points of the system in Eq. 10 is attractive in the domain $\alpha _ { i } \in ( 0 , 1 )$ .
125
+
126
+ At the fixed point $\ b { \alpha } ^ { * }$ , corresponding to the optimum of Eq. 8, the feature response of the neural network is given by,
127
+
128
+ $$
129
+ \mathbf { z } ^ { \ast } = \frac { 1 } { \lambda } \mathbf { S } ^ { 2 } \mathbf { U } ^ { T } \pmb { \alpha } ^ { \ast T } .
130
+ $$
131
+
132
+ See App. A for further discussions on the distinction between "feature space" and "parameter space". Below, we study how the strength of one feature could impact the response of the network to another feature which leads to GS.
133
+
134
+ # 3.3 Gradient Starvation Regime
135
+
136
+ In general, we do not expect to find an analytical solution for the dynamics of the coupled non-linear dynamical system of Eq. 10. However, there are at least two cases where a decoupled form for the dynamics allows to find an exact solution. We first introduce these cases and then study their perturbation to outline general lessons.
137
+
138
+ 1. If the matrix of singular values $\mathbf { S } ^ { 2 }$ is proportional to the identity: This is the case where all the features have the same strength $s ^ { 2 }$ . The fixed points are then given by,
139
+
140
+ $$
141
+ \alpha _ { i } ^ { * } = \frac { \lambda \mathcal { W } ( \lambda ^ { - 1 } s ^ { 2 } + 1 ) } { s ^ { 2 } + \lambda } , \qquad z _ { j } ^ { * } = \frac { s ^ { 2 } \mathcal { W } ( \lambda ^ { - 1 } s ^ { 2 } + 1 ) } { s ^ { 2 } + \lambda } \sum _ { i } u _ { i j } ,
142
+ $$
143
+
144
+ where $\mathcal { W }$ is the Lambert W function.
145
+
146
+ 2. If the matrix $\mathbf { U }$ is a permutation matrix: This is the case in which each feature is associated with a single example only. The fixed points are then given by,
147
+
148
+ $$
149
+ \alpha _ { i } ^ { * } = \frac { \lambda \mathcal { W } ( \lambda ^ { - 1 } s _ { i } ^ { 2 } + 1 ) } { s _ { i } ^ { 2 } + \lambda } , \ ~ \ z _ { j } ^ { * } = \frac { s _ { i } ^ { 2 } \mathcal { W } ( \lambda ^ { - 1 } s _ { i } ^ { 2 } + 1 ) } { s _ { i } ^ { 2 } + \lambda } .
150
+ $$
151
+
152
+ To study a minimal case of starvation, we consider a variation of case 2 with the following assumption which implies that each feature is not associated with a single example anymore.
153
+
154
+ Lemma 1. Assume $\mathbf { U }$ is a perturbed identity matrix (a special case of a permutation matrix) in which the off-diagonal elements are proportional to a small parameter $\delta > 0$ . Then, the fixed point of the dynamical system in Eq. 10 can be approximated by,
155
+
156
+ $$
157
+ \begin{array} { r } { { \pmb \alpha } ^ { * } = ( 1 - \log \left( { \pmb \alpha } _ { 0 } ^ { * } \right) ) \left[ { \pmb A } + d i a g \left( { \pmb \alpha } _ { 0 } ^ { * } ^ { - 1 } \right) \right] ^ { - 1 } , } \end{array}
158
+ $$
159
+
160
+ where $\mathbf { A } = \lambda ^ { - 1 } \mathbf { U } ( \mathbf { S } ^ { 2 } + \lambda \mathbf { I } ) \mathbf { U } ^ { T }$ and $\alpha _ { 0 } ^ { * }$ is the fixed point of the uncoupled system with $\delta = 0$
161
+
162
+ For sake of ease of derivations, we consider the two dimensional case where,
163
+
164
+ $$
165
+ \mathbf { U } = \left( \begin{array} { c c } { \sqrt { 1 - \delta ^ { 2 } } } & { - \delta } \\ { \delta } & { \sqrt { 1 - \delta ^ { 2 } } } \end{array} \right) ,
166
+ $$
167
+
168
+ which is equivalent to a $U$ matrix with two blocks of features with no intra-block coupling and $\delta$ amount of inter-block coupling.
169
+
170
+ Theorem 2 (Gradient Starvation Regime). Consider a neural network in the linear regime, trained under cross-entropy loss for a binary classification task. With definition $^ { l }$ , assuming coupling between features 1 and 2 as in Eq. 15 and $s _ { 1 } ^ { 2 } > s _ { 2 } ^ { 2 }$ , we have,
171
+
172
+ $$
173
+ \frac { \mathrm { d } z _ { 2 } ^ { * } } { \mathrm { d } s _ { 1 } ^ { 2 } } < 0 ,
174
+ $$
175
+
176
+ which implies GS.
177
+
178
+ While Thm. 2 outlines conditions for GS in two dimensional feature space, we note that the same rationale naturally extends to higher dimensions, where GS is defined pairwise over feature directions. For a classification task, Thm. 2 indicates that gradient starvation occurs when the data admits different feature strengths, and coupled learning dynamics. GS is thus naturally expected with cross-entropy loss. Its detrimental effects however (as outlined in Sect. 2) arise in settings with large discrepancies between feature strengths, along with network connectivity that couples these features’ directions. This phenomenon readily extends to multi-class settings, and we validate this case with experiments in Sect. 4. Next, we introduce a simple regularizer that encourages feature decoupling, thus mitigating GS by insulating strong features from weaker ones.
179
+
180
+ # 3.4 Spectral Decoupling
181
+
182
+ By tracing back the equations of the previous section, one may realize that the term $U ^ { T } S ^ { 2 } U$ in Eq. 9 is not diagonal in the general case, and consequently introduces coupling between $\alpha _ { i }$ ’s and hence, between the features $z _ { i }$ ’s. We would like to discourage solutions that couple features in this way. To that end, we introduce a simple regularizer: Spectral Decoupling (SD). SD replaces the general L2 weight decay term in Eq. 5 with an L2 penalty exclusively on the network’s logits, yielding
183
+
184
+ $$
185
+ \mathcal { L } \left( \pmb { \theta } \right) = \mathbf { 1 } \cdot \log \left[ 1 + \exp \left( - \mathbf { Y } \hat { \mathbf { y } } \right) \right] + \frac { \lambda } { 2 } \| \hat { \mathbf { y } } \| ^ { 2 } .
186
+ $$
187
+
188
+ Repeating the same analysis steps taken above, but with SD instead of general L2 penalty, the critical value for $\pmb { \theta } ^ { * }$ becomes $\begin{array} { r } { \pmb { \theta } ^ { \ast } = \frac { 1 } { \lambda } \pmb { \alpha } \pmb { Y } \pmb { \Phi } _ { 0 } V \mathbf { S } ^ { - 2 } V ^ { T } } \end{array}$ . This new expression for $\pmb { \theta } ^ { * }$ results in the following modification of Eq. 9,
189
+
190
+ $$
191
+ \dot { \alpha } = \eta \left( \log \frac { \mathbf { 1 } - \alpha } { \alpha } - \frac { 1 } { \lambda } \alpha \mathbf { U } \mathbf { S } ^ { 2 } \mathbf { S } ^ { - 2 } \mathbf { U } ^ { T } \right) = \eta \left( \log \frac { \mathbf { 1 } - \alpha } { \alpha } - \frac { 1 } { \lambda } \alpha \right) ,
192
+ $$
193
+
194
+ where as earlier, log and division are taken element-wise on the coordinates of $_ { \pmb { \alpha } }$
195
+
196
+ Note that in contrast to Eq. 9 the matrix multiplication involving $U$ and $S$ in Eq. 18 cancels out, leaving $\alpha _ { i }$ independent of other $\alpha _ { j \neq i }$ ’s. We point out this is true for any initial coupling, without simplifying assumptions. Thus, a simple penalty on output weights promotes decoupled dynamics across the dual parameter $\alpha _ { i }$ ’s, which track learning dynamics of feature responses (see Eq. 7). Together with Thm. 2, Eq. 18 suggests SD should mitigate GS and promote balanced learning dynamics across features. We now verify this in numerical experiments. For further intuition, we provide a simple experiment, summarized in Fig. 5, where directly visualizes the primal vs. the dual dynamics as well as the effect of the proposed spectral decoupling method.
197
+
198
+ # 4 Experiments
199
+
200
+ The experiments presented here are designed to outline the presence of GS and its consequences, as well as the efficacy of our proposed regularization method to alleviate them. Consequently, we highlight that achieving state-of-the-art results is not the objective. For more details including the scheme for hyper-parameter tuning, see App. B.
201
+
202
+ # 4.1 Two-Moon classification and the margin
203
+
204
+ Recall the simple 2-D classification task between red and blue data points in Fig. 1. Fig. 1 (c) demonstrates the learned decision boundary when SD is used. SD leads to learning a curved decision boundary with a larger margin in the input space. See App. B for additional details and experiments.
205
+
206
+ # 4.2 CIFAR classification and adversarial robustness
207
+
208
+ To study the classification margin in deeper networks, we conduct a classification experiment on CIFAR-10, CIFAR-100, and CIFAR-2 (cats vs dogs of CIFAR-10) [57] using a convolutional network with ReLU non-linearity. Unlike linear models, the margin to a non-linear decision boundary cannot be computed analytically. Therefore, following the approach in [72], we use "the norm of inputdisturbance required to cross the decision boundary" as a proxy for the margin. The disturbance on the input is computed by projected gradient descent (PGD) [84], a well-known adversarial attack.
209
+
210
+ Table 1: Table compares adversarial robustness of ERM (vanilla cross-entropy) vs SD with a CNN trained on CIFAR-2, 10, and 100 (setup of [72]). SD consistently achieves a better OOD performance.
211
+
212
+ <table><tr><td>Dataset</td><td>Method</td><td>Train*</td><td>Test IID</td><td>Test OOD†</td></tr><tr><td rowspan="2">Cifar-2</td><td>w/o SD</td><td></td><td>100.0% ±0.0 95.2%±0.12</td><td>42.3% ±3.0</td></tr><tr><td></td><td></td><td>w/ SD(a=0.01)100.0%±0.0 95.3%±0.17</td><td>69.7% ± 2.9</td></tr><tr><td rowspan="2">Cifar-10</td><td>w/o SD</td><td>99.9% ± 0.01</td><td>92.8%±0.15</td><td>30.1% ± 2.1</td></tr><tr><td></td><td></td><td>w/ SD(=0.01)99.9%±0.01 92.9% ±0.16</td><td>67.7% ± 1.5</td></tr><tr><td rowspan="2">Cifar-100</td><td>w/o SD</td><td></td><td>99.7% ± 0.01 69.2% ±0.29</td><td>14.3% ± 2.0</td></tr><tr><td></td><td></td><td>w/SD(a=0.05)99.7%±0.0270.5%±0.26</td><td>24.9% ± 1.9</td></tr></table>
213
+
214
+ † Accuracy (± std) for 10 runs.
215
+
216
+ ![](images/bf195fd7cc5efdd1fa50f433f2b3afcfca326e622b21c20b2e591316e226f770.jpg)
217
+ Figure 2: The plot shows the cumulative distribution function (CDF) of the margin for the CIFAR-2 binary classification. SD appears to improve the margin considerably.
218
+
219
+ Table 1 includes the results for IID (original test set) and OOD (perturbed test set by $\epsilon _ { \mathrm { P G D } } = 0 . 0 5 )$ . Fig. 2 shows the percentange of mis-classifications as the norm of disturbance is increased for the Cifar-2 dataset. This plot can be interpreted as the cumulative distribution function (CDF) of the margin and hence a lower curve reads as a more robust network with a larger margin. This experiment suggests that when trained with vanilla cross-entropy, even slight disturbances in the input deteriorates the network’s classification accuracy. That is while spectral decoupling (SD) improves the margin considerably. Importantly, this improvement in robustness does not seem to compromise the noise-free test performance. It should also be highlighted that SD does not explicitly aim at maximizing the margin and the observed improvement is in fact a by-product of decoupled learning of latent features. See Section 5 for a discussion on why cross-entropy results in a poor margin while being considered a max-margin classifier in the literature [94].
220
+
221
+ # 4.3 Colored MNIST with color bias
222
+
223
+ We conduct experiments on the Colored MNIST Dataset, proposed in [9]. The task is to predict binary labels $y = - 1$ for digits 0 to 4 and $y = + 1$ for digits 5 to 9. A color channel (red, green) is artificially added to each example to deliberately impose a spurious correlation between the color and the label. The task has three environments:
224
+
225
+ • Training env. 1: Color is correlated with the labels with 0.9 probability. • Training env. 2: Color is correlated with the labels with 0.8 probability. • Testing env.: Color is correlated with the labels with 0.1 probability (0.9 reversely corre
226
+
227
+ Because of the opposite correlation between the color and the label in the test set, only learning to classify based on color would be disastrous at testing. For this reason, Empirical Risk Minimization (ERM) performs very poorly on the test set $( 2 3 . 7 \%$ accuracy) as shown in Tab. 2.
228
+
229
+ <table><tr><td>Method</td><td>Train Accuracy</td><td>Test Accuracy</td></tr><tr><td>ERM(Vanilla Cross-Entropy)</td><td>91.1 % (±0.4)</td><td>23.7 % (±0.8)</td></tr><tr><td>REx[59]</td><td>71.5 % (±1.0)</td><td>68.7% (±0.9)</td></tr><tr><td>IRM[9]</td><td>70.5% (±0.6)</td><td>67.1 % (±1.4)</td></tr><tr><td>SD (this work)</td><td>70.0 % (±0.9)</td><td>68.4% (±1.2)</td></tr><tr><td>Oracle - (grayscale images)</td><td>73.5 % (±0.2)</td><td>73.0 % (±0.4)</td></tr><tr><td>RandomGuess</td><td>50%</td><td>50%</td></tr></table>
230
+
231
+ Table 2: Test accuracy on test examples of the Colored MNIST after training for 1k epochs. The standard deviation over 10 runs is reported in parenthesis. ERM stands for the empirical risk minimization. Oracle is an ERM trained on grayscale images. Note that due to $25 \%$ label noise, a hypothetical optimum achieves $75 \%$ accuracy (the upper bound).
232
+
233
+ Invariant Risk Minimization (IRM) [9] on the other hand, performs well on the test set with $( 6 7 . 1 \%$ accuracy). However, IRM requires access to multiple (two in this case) separate training environments with varying amount of spurious correlations. IRM uses the variance between environments as a signal for learning to be “invariant” to spurious correlations. Risk Extrapolation (REx) [59] is a related training method that encourages learning invariant representations. Similar to IRM, it requires access to multiple training environments in order to quantify the concept of “invariance”.
234
+
235
+ SD achieves an accuracy of $6 8 . 4 \%$ . Its performance is remarkable because unlike IRM and REx, SD does not require access to multiple environments and yet performs well when trained on a single environment (in this case the aggregation of both of the training environments).
236
+
237
+ A natural question that arises is “How does SD learn to ignore the color feature without having access to multiple environments?” The short answer is that it does not! In fact, we argue that SD learns the color feature but it also learns other predictive features, i.e., the digit shape features. At test time, the predictions resulting from the shape features prevail over the color feature. To validate this hypothesis, we study a trained model with each of these methods (ERM, IRM, SD) on four variants of the test environment: 1) grayscale-digits: No color channel is provided and the network should rely on shape features only. 2) colored-digits: Both color and digit are provided however the color is negatively correlated (opposite of the training set) with the label. 3) grayscaleblank: All images are grayscale and blank and hence do not provide any information. 4) colored-blank: Digit features are removed and only the color feature is kept, also with reverse label compared to training. Fig. 3 summarizes the results. For more discussions see SM B.
238
+
239
+ As a final remark, we should highlight that, by design, this task assumes access to the test environment for hyperparameter tuning for all the reported methods. This is not a valid assumption in general, and hence the results should be only interpreted as a probe that shows that SD could provide an important level of control over what features are learned.
240
+
241
+ ![](images/d0fa5d396174a94eb275513da009f1f33178a40f2dbc241ce7dfa391f7e566f2.jpg)
242
+ Figure 3: Diagram comparing ERM, SD, and IRM on four different test environments on which we evaluate a pre-trained model. Top and bottom rows show the accuracy and the entropy (inverse of confidence), respectively. Analysis: Compare three values of $\mathfrak { C } \sharp \sharp \sharp \sharp \sharp \cdot$ , 9.4 % , and $4 9 . 6 \%$ : Both ERM and SD have learned the color feature but since it is inversely correlated with the label, when only the color feature is provided, as expected both ERM and SD performs poorly. Now compare $\mathbf { G } \mathbf { M } \mathbf { 0 }$ and $0 . 4 1$ : Although both ERM and SD have learned the color feature, ERM is much more confident on its predictions (zero entropy). As a consequence, when digit features are provided along with the color feature (colored-digit environment), ERM still performs poorly $( \overbrace { 2 3 . 9 \ \% } )$ but SD achieves significantly better results $( 6 7 . 2 \% )$ ). IRM ignores the color feature altogether but it requires access to multiple training environments.
243
+
244
+ ![](images/78aab33fb5d05d81db549ed8560e9bd995cca1540e7ae465d6c4ea573f439933.jpg)
245
+ Figure 4: CelebA: blond vs dark hair classification. The HairColor and the Gender are spuriously correlated which leads to poor OOD performance with ERM, however SD significantly improves performance. ERM’s worst group accuracy is significantly lower than SD.
246
+
247
+ Table 3: CelebA: blond vs dark hair classification with spurious correlation. We report test performance over ten runs. SD significantly improves upon ERM. ∗Group DRO [89] requires explicit information about the spurious correlation. LfF [71] requires simultaneous training of two networks.
248
+
249
+ <table><tr><td>Method</td><td>Average Acc.</td><td>Worst Group Acc.</td></tr><tr><td>ERM</td><td>94.61 % (±0.67)</td><td>40.35 % (±1.68)</td></tr><tr><td>SD (this work)</td><td>91.64 % (±0.61)</td><td>83.24 % (±2.01)</td></tr><tr><td>LfF</td><td>N/A</td><td>81.24 % (±1.38)</td></tr><tr><td>Group DRO*</td><td>91.76 % (±0.28)</td><td>87.78 % (±0.96)</td></tr></table>
250
+
251
+ # 4.4 CelebA with gender bias
252
+
253
+ The CelebA dataset [65] contains $1 6 2 \mathrm { k }$ celebrity faces with binary attributes associated with each image. Following the setup of [89], the task is to classify images with respect to their hair color into two classes of blond or dark hair. However, the Gender $\in$ {Male, Female} is spuriously correlated with the $\mathtt { H a i r C o l o r } \in \{ \mathtt { B l o n d } , \mathtt { D a r k } \}$ in the training data. The rarest group which is blond males represents only $0 . 8 5 \%$ of the training data (1387 out of $1 6 2 \mathrm { k }$ examples). We train a ResNet-50 model [38] on this task. Tab. 3 summarizes the results and compares the performance of several methods. A model with vanilla cross-entropy (ERM) appears to generalize well on average but fails to generalize to the rarest group (blond males) which can be considered as “weakly" out-of-distribution (OOD). Our proposed SD improves the performance more than twofold. It should be highlighted that for this task, we use a variant of SD in which, $\frac { \lambda } { 2 } | | \hat { y } - \gamma | | _ { 2 } ^ { 2 }$ is added to the original cross-entropy loss. The hyper-parameters $\lambda$ and $\gamma$ are tuned separately for each class (a total of four hyper-parameters). This variant of SD does provably decouple the dynamics too but appears to perform better than the original SD in Eq. 17 in this task.
254
+
255
+ Other proposed methods presented in Tab. 3 also show significant improvements on the performance of the worst group accuracy. The recently proposed “Learning from failure” (LfF) [71] achieves comparable results to SD, but it requires simultaneous training of two networks. Group DRO [89] is another successful method for this task. However, unlike SD, Group DRO requires explicit information about the spuriously correlated attributes. In most practical tasks, information about the spurious correlations is not provided and, dependence on the spurious correlation goes unrecognized.2
256
+
257
+ # 5 Related Work and Discussion
258
+
259
+ Here, we discuss the related work. Due to space constraints, further discussions are in App. A.
260
+
261
+ On learning dynamics and Loss Choice. Several works including [90, 91, 1, 60] investigate the dynamics of deep linear networks trained with squared-error loss. Different decompositions of the learning process for neural networks have been used: [83, 104, 87, 105] study the learning in the Fourier domain and show that low-frequency functions are learned earlier than high-frequency ones. [90, 2, 32] provide closed-form equations for the dynamics of linear networks in terms of the principal components of the input covariance matrix. More recently, with the introduction of neural tangent kernel (NTK) [52, 62], a new line of research is to study the convergence properties of gradient descent [e.g. 8, 69, 25, 29, 7, 44, 33, 110, 11, 99]. Among them, [12, 106, 18, 22] decompose the learning process along the principal components of the NTK. The message in these works is that the training process can be decomposed into independent learning dynamics along the orthogonal directions.
262
+
263
+ Most of the studies mentioned above focus on the particular squared-error loss. For a linearized network, the squared-error loss results in linear learning dynamics, which often admit an analytical solution. However, the de-facto loss function for many of the practical applications of neural networks is the cross-entropy. Using the cross-entropy as the loss function leads to significantly more complicated and non-linear dynamics, even for a linear neural network. In this work, our focus was the cross-entropy loss.
264
+
265
+ On reliance upon spurious correlations and robustness. In the context of robustness in neural networks, state-of-the-art neural networks appear to naturally focus on low-level superficial correlations rather than more abstract and robustly informative features of interest (e.g. [30]). As we argue in this work, Gradient Starvation is likely an important factor contributing to this phenomenon and can result in adversarial vulnerability. There is a rich research literature on adversarial attacks and neural networks’ vulnerability [96, 34, 48, 67, 5, 47]. Interestingly, [73], [72] and [51] draw a similar conclusion and argue that “an insufficiency of the cross-entropy loss” causes excessive invariances to predictive features. Perhaps [92] is the closest to our work in which authors study the simplicity bias (SB) in stochastic gradient descent. They demonstrate that neural networks exhibit extreme bias that could lead to adversarial vulnerability.
266
+
267
+ On implicit bias. Despite being highly-overparameterized, modern neural networks seem to generalize very well [108]. Modern neural networks generalize surprisingly well in numerous machine tasks. This is despite the fact that neural networks typically contain orders of magnitude more parameters than the number of examples in a training set and have sufficient capacity to fit a totally randomized dataset perfectly [108]. The widespread explanation is that the gradient descent has a form of implicit bias towards learning simpler functions that generalize better according to Occam’s razor. Our exposition of GS reinforces this explanation. In essence, when training and test data points are drawn from the same distribution, the top salient features are predictive in both sets. We conjecture that in such a scenario, by not learning the less salient features, GS naturally protects the network from overfitting.
268
+
269
+ The same phenomenon is referred to as implicit bias, implicit regularization, simplicity bias and spectral bias in several works [83, 75, 36, 74, 70, 53, 94, 10, 13, 35, 82, 66].
270
+
271
+ As an active line of research, numerous studies have provided different explanations for this phenomenon. For example, [70] justifies the implicit bias of neural networks by showing that stochastic gradient descent learns simpler functions first. [15, 78] suggests that a form of implicit regularization is induced by an alignment between NTK’s principal components and only a few task-relevant directions. Several other works such as [20, 35, 94, 25] recognize the convergence of gradient descent to maximum-margin solution as the essential factor for the generalizability of neural networks. It should be stressed that these work refer to the margin in the hidden space and not in the input space as pointed out in [55]. Indeed, as observed in our experiments, the maximum-margin classifier in the hidden space can be achieved at the expense of a small margin in the input space.
272
+
273
+ On Gradient Starvation and no free lunch theorem. The no free lunch theorem [93, 102] states that “learning is impossible without making assumptions about training and test distributions”. Perhaps, the most commonly used assumption of machine learning is the i.i.d. assumption [98], which assumes that training and test data are identically distributed. However, in general, this assumption might not hold, and in many practical applications, there are predictive features in the training set that do not generalize to the test set. A natural question that arises is how to favor generalizable features over spurious features? The most common approaches include data augmentation, controlling the inductive biases, using regularizations, and more recently training using multiple environments.
274
+
275
+ Here, we would like to elaborate on an interesting thought experiment of [79]: Suppose a neural network is provided with a chess book containing examples of chess games with the best movements indicated by a red arrow. The network can take two approaches: 1) learn how to play chess, or 2) learn just the red arrows. Either of these solutions results in zero training loss on the games in the book while only the former is generalizable to new games. With no external knowledge, the network typically learns the simpler solution.
276
+
277
+ Recent work aims to leverage the invariance principle across several environments to improve robust learning. This is akin to present several chess books to a network, each with markings indicating the best moves for different sets of games. In several studies [9, 59, 79, 3], methods are developed to aggregate information from multiple training environments in a way that favors the generalizable / domain-agnostic / invariant solution. We argue that even with having access to only one training environment, there is useful information in the training set that fails to be discovered due to Gradient Starvation. The information on how to actually play chess is already available in any of the chess books. Still, as soon as the network learns the red arrows, the network has no incentive for further learning. Therefore, learning the red arrows is not an issue per se, but not learning to play chess is.
278
+
279
+ Gradient Starvation: friend or foe? Here, we would like to remind the reader that GS can have both adverse and beneficial consequences. If the learned features are sufficient to generalize to the test data, gradient starvation can be viewed as an implicit regularizer. Otherwise, Gradient Starvation could have an unfavorable effect, which we observe empirically when some predictive features fail to be learned. A better understanding and control of Gradient Starvation and its impact on generalization offers promising avenues to address this issue with minimal assumptions. Indeed, our Spectral Decoupling method requires an assumption about feature imbalance but not to pinpoint them exactly, relying on modulated learning dynamics to achieve balance.
280
+
281
+ GS social impact Modern neural networks are being deployed extensively in numerous machine learning tasks. Our models are used in critical applications such as autonomous driving, medical prediction, and even justice system where human lives are at stake. However, neural networks appear to base their predictions on superficial biases in the dataset. Unfortunately, biases in datasets could be neglected and pose negative impacts on our society. In fact, our Celeb-A experiment is an example of the existence of such a bias in the data. As shown in the paper, the gender-specific bias could lead to a superficial high performance and is indeed very hard to detect. Our analysis, although mostly on the theory side, could pave the path for researchers to build machine learning systems that are robust to biases and helps towards fairness in our predictions.
282
+
283
+ # 6 Conclusion
284
+
285
+ In this paper, we formalized Gradient Starvation (GS) as a phenomenon that emerges when training with cross-entropy loss in neural networks. By analyzing the dynamical system corresponding to the learning process in a dual space, we showed that GS could slow down the learning of certain features, even if they are present in the training set. We derived spectral decoupling (SD) regularization as a possible remedy to GS.
286
+
287
+ # Acknowledgments and Disclosure of Funding
288
+
289
+ The authors are grateful to Samsung Electronics Co., Ldt., CIFAR, and IVADO for their funding and Calcul Québec and Compute Canada for providing us with the computing resources. We would further like to acknowledge the significance of discussions and supports from Reyhane Askari Hemmat and Faruk Ahmed. MP would like to thank Aristide Baratin, Kostiantyn Lapchevskyi, Seyed Mohammad Mehdi Ahmadpanah, Milad Aghajohari, Kartik Ahuja, Shagun Sodhani, and Emmanuel Bengio for their invaluable help.
290
+
291
+ # References
292
+
293
+ [1] Madhu S Advani and Andrew M Saxe. High-dimensional dynamics of generalization error in neural networks. arXiv preprint arXiv:1710.03667, 2017.
294
+ [2] Madhu S Advani, Andrew M Saxe, and Haim Sompolinsky. High-dimensional dynamics of generalization error in neural networks. Neural Networks, 2020.
295
+ [3] Kartik Ahuja, Karthikeyan Shanmugam, and Amit Dhurandhar. Linear regression games: Convergence guarantees to approximate out-of-distribution solutions. arXiv preprint arXiv:2010.15234, 2020. [4] Kartik Ahuja, Karthikeyan Shanmugam, Kush Varshney, and Amit Dhurandhar. Invariant risk minimization games. arXiv preprint arXiv:2002.04692, 2020.
296
+ [5] Naveed Akhtar and Ajmal Mian. Threat of adversarial attacks on deep learning in computer vision: A survey. IEEE Access, 6:14410–14430, 2018.
297
+ [6] Adelin Albert and John A Anderson. On the existence of maximum likelihood estimates in logistic regression models. Biometrika, 71(1):1–10, 1984.
298
+ [7] Zeyuan Allen-Zhu, Yuanzhi Li, and Yingyu Liang. Learning and generalization in overparameterized neural networks, going beyond two layers. In Advances in neural information processing systems, pages 6158–6169, 2019.
299
+ [8] Zeyuan Allen-Zhu, Yuanzhi Li, and Zhao Song. A convergence theory for deep learning via over-parameterization. In International Conference on Machine Learning, pages 242–252. PMLR, 2019.
300
+ [9] Martin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019.
301
+ [10] Sanjeev Arora, Nadav Cohen, Wei Hu, and Yuping Luo. Implicit regularization in deep matrix factorization. In Advances in Neural Information Processing Systems, pages 7413–7424, 2019.
302
+ [11] Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, Russ R Salakhutdinov, and Ruosong Wang. On exact computation with an infinitely wide neural net. In Advances in Neural Information Processing Systems, pages 8141–8150, 2019.
303
+ [12] Sanjeev Arora, Simon S Du, Wei Hu, Zhiyuan Li, and Ruosong Wang. Fine-grained analysis of optimization and generalization for overparameterized two-layer neural networks. arXiv preprint arXiv:1901.08584, 2019.
304
+ [13] Devansh Arpit, Stanisław Jastrz˛ebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. A closer look at memorization in deep networks. arXiv preprint arXiv:1706.05394, 2017.
305
+ [14] Nicholas Baker, Hongjing Lu, Gennady Erlikhman, and Philip J Kellman. Deep convolutional networks do not classify based on global object shape. PLoS computational biology, 14(12):e1006613, 2018.
306
+ [15] Aristide Baratin, Thomas George, César Laurent, R Devon Hjelm, Guillaume Lajoie, Pascal Vincent, and Simon Lacoste-Julien. Implicit regularization in deep learning: A view from function space. arXiv preprint arXiv:2008.00938, 2020.
307
+ [16] Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In Proceedings of the European Conference on Computer Vision (ECCV), pages 456–473, 2018.
308
+ [17] Yonatan Belinkov and Yonatan Bisk. Synthetic and natural noise both break neural machine translation. arXiv preprint arXiv:1711.02173, 2017.
309
+ [18] Alberto Bietti and Julien Mairal. On the inductive bias of neural tangent kernels. In Advances in Neural Information Processing Systems, pages 12893–12904, 2019.
310
+ [19] Wieland Brendel and Matthias Bethge. Approximating cnns with bag-of-local-features models works surprisingly well on imagenet. arXiv preprint arXiv:1904.00760, 2019.
311
+ [20] Alon Brutzkus, Amir Globerson, Eran Malach, and Shai Shalev-Shwartz. Sgd learns overparameterized networks that provably generalize on linearly separable data. arXiv preprint arXiv:1710.10174, 2017.
312
+ [21] Christopher JC Burges and David J Crisp. Uniqueness of the svm solution. Advances in neural information processing systems, 12:223–229, 2000.
313
+ [22] Yuan Cao, Zhiying Fang, Yue Wu, Ding-Xuan Zhou, and Quanquan Gu. Towards understanding the spectral bias of deep learning. arXiv preprint arXiv:1912.01198, 2019.
314
+ [23] Yuan Cao and Quanquan Gu. Generalization bounds of stochastic gradient descent for wide and deep neural networks. In Advances in Neural Information Processing Systems, pages 10836–10846, 2019.
315
+ [24] Zixiang Chen, Yuan Cao, Quanquan Gu, and Tong Zhang. A generalized neural tangent kernel analysis for two-layer neural networks. arXiv preprint arXiv:2002.04026, 2020.
316
+ [25] Lenaic Chizat and Francis Bach. A note on lazy training in supervised differentiable programming. arXiv preprint arXiv:1812.07956, 1, 2018.
317
+ [26] Remi Tachet des Combes, Mohammad Pezeshki, Samira Shabanian, Aaron Courville, and Yoshua Bengio. On the learning dynamics of deep neural networks. arXiv preprint arXiv:1809.06848, 2018.
318
+ [27] Thomas M Cover. Geometrical and statistical properties of systems of linear inequalities with applications in pattern recognition. IEEE transactions on electronic computers, 0(3):326–334, 1965.
319
+ [28] Simon S Du, Wei Hu, and Jason D Lee. Algorithmic regularization in learning deep homogeneous models: Layers are automatically balanced. In Advances in Neural Information Processing Systems, pages 384–395, 2018.
320
+ [29] Simon S Du, Xiyu Zhai, Barnabas Poczos, and Aarti Singh. Gradient descent provably optimizes over-parameterized neural networks. arXiv preprint arXiv:1810.02054, 2018.
321
+ [30] Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, and Felix A Wichmann. Shortcut learning in deep neural networks. arXiv preprint arXiv:2004.07780, 2020.
322
+ [31] Thomas George. Nngeometry: Easy and fast fisher information matrices and neural tangent kernels in pytorch. 0, 2020.
323
+ [32] Gauthier Gidel, Francis Bach, and Simon Lacoste-Julien. Implicit regularization of discrete gradient dynamics in linear neural networks. In Advances in Neural Information Processing Systems, pages 3202–3211, 2019.
324
+ [33] Sebastian Goldt, Madhu Advani, Andrew M Saxe, Florent Krzakala, and Lenka Zdeborová. Dynamics of stochastic gradient descent for two-layer neural networks in the teacher-student setup. In Advances in Neural Information Processing Systems, pages 6981–6991, 2019.
325
+ [34] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
326
+ [35] Suriya Gunasekar, Jason D Lee, Daniel Soudry, and Nati Srebro. Implicit bias of gradient descent on linear convolutional networks. In Advances in Neural Information Processing Systems, pages 9461–9471, 2018.
327
+ [36] Suriya Gunasekar, Blake E Woodworth, Srinadh Bhojanapalli, Behnam Neyshabur, and Nati Srebro. Implicit regularization in matrix factorization. In Advances in Neural Information Processing Systems, pages 6151–6159, 2017.
328
+ [37] Suchin Gururangan, Swabha Swayamdipta, Omer Levy, Roy Schwartz, Samuel R Bowman, and Noah A Smith. Annotation artifacts in natural language inference data. arXiv preprint arXiv:1803.02324, 2018.
329
+ [38] 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, pages 770–778, 2016.
330
+ [39] Christina Heinze-Deml and Nicolai Meinshausen. Conditional variance penalties and domain shift robustness. arXiv preprint arXiv:1710.11469, 2017.
331
+ [40] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019.
332
+ [41] Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-ofdistribution examples in neural networks. arXiv preprint arXiv:1610.02136, 2016.
333
+ [42] Katherine L Hermann and Andrew K Lampinen. What shapes feature representations? exploring datasets, architectures, and training. arXiv preprint arXiv:2006.12433, 2020.
334
+ [43] Cho-Jui Hsieh, Kai-Wei Chang, Chih-Jen Lin, S Sathiya Keerthi, and Sellamanickam Sundararajan. A dual coordinate descent method for large-scale linear svm. In Proceedings of the 25th international conference on Machine learning, pages 408–415, 2008.
335
+ [44] Jiaoyang Huang and Horng-Tzer Yau. Dynamics of deep neural networks and neural tangent hierarchy. arXiv preprint arXiv:1909.08156, 2019.
336
+ [45] Kaixuan Huang, Yuqing Wang, Molei Tao, and Tuo Zhao. Why do deep residual networks generalize better than deep feedforward networks?—a neural tangent kernel perspective. Advances in Neural Information Processing Systems, 33, 2020.
337
+ [46] Like Hui and Mikhail Belkin. Evaluation of neural architectures trained with square loss vs cross-entropy in classification tasks. arXiv preprint arXiv:2006.07322, 2020.
338
+ [47] Andrew Ilyas, Logan Engstrom, Anish Athalye, and Jessy Lin. Black-box adversarial attacks with limited queries and information. arXiv preprint arXiv:1804.08598, 2018.
339
+ [48] Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. In Advances in Neural Information Processing Systems, pages 125–136, 2019.
340
+ [49] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
341
+ [50] Tommi S Jaakkola and David Haussler. Probabilistic kernel regression models. In AISTATS, 1999.
342
+ [51] Jörn-Henrik Jacobsen, Jens Behrmann, Richard Zemel, and Matthias Bethge. Excessive invariance causes adversarial vulnerability. arXiv preprint arXiv:1811.00401, 2018.
343
+ [52] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in neural information processing systems, pages 8571–8580, 2018.
344
+ [53] Ziwei Ji and Matus Telgarsky. The implicit bias of gradient descent on nonseparable data. In Conference on Learning Theory, pages 1772–1798, 2019.
345
+ [54] Jason Jo and Yoshua Bengio. Measuring the tendency of cnns to learn surface statistical regularities. arXiv preprint arXiv:1711.11561, 2017.
346
+ [55] Alexia Jolicoeur-Martineau and Ioannis Mitliagkas. Connections between support vector machines, wasserstein distance and gradient-penalty gans. arXiv preprint arXiv:1910.06922, 2019.
347
+ [56] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
348
+ [57] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 0, 2009.
349
+ [58] Anders Krogh and John A Hertz. A simple weight decay can improve generalization. In Advances in neural information processing systems, pages 950–957, 1992.
350
+ [59] David Krueger, Ethan Caballero, Joern-Henrik Jacobsen, Amy Zhang, Jonathan Binas, Remi Le Priol, and Aaron Courville. Out-of-distribution generalization via risk extrapolation (rex). arXiv preprint arXiv:2003.00688, 2020.
351
+ [60] Andrew K Lampinen and Surya Ganguli. An analytic theory of generalization dynamics and transfer learning in deep linear networks. arXiv preprint arXiv:1809.10374, 2018.
352
+ [61] Sebastian Lapuschkin, Stephan Wäldchen, Alexander Binder, Grégoire Montavon, Wojciech Samek, and Klaus-Robert Müller. Unmasking clever hans predictors and assessing what machines really learn. Nature communications, 10(1):1–8, 2019.
353
+ [62] Jaehoon Lee, Lechao Xiao, Samuel Schoenholz, Yasaman Bahri, Roman Novak, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. In Advances in neural information processing systems, pages 8570–8581, 2019.
354
+ [63] Kimin Lee, Kibok Lee, Honglak Lee, and Jinwoo Shin. A simple unified framework for detecting out-of-distribution samples and adversarial attacks. In Advances in Neural Information Processing Systems, pages 7167–7177, 2018.
355
+ [64] Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. Enhancing the reliability of out-ofdistribution image detection in neural networks. arXiv preprint arXiv:1706.02690, 2017.
356
+ [65] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), December 2015.
357
+ [66] Cong Ma, Kaizheng Wang, Yuejie Chi, and Yuxin Chen. Implicit regularization in nonconvex statistical estimation: Gradient descent converges linearly for phase retrieval and matrix completion. In International Conference on Machine Learning, pages 3345–3354. PMLR, 2018.
358
+ [67] 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.
359
+ [68] R Thomas McCoy, Ellie Pavlick, and Tal Linzen. Right for the wrong reasons: Diagnosing syntactic heuristics in natural language inference. arXiv preprint arXiv:1902.01007, 2019.
360
+ [69] Song Mei and Andrea Montanari. The generalization error of random features regression: Precise asymptotics and double descent curve. arXiv preprint arXiv:1908.05355, 2019.
361
+ [70] Preetum Nakkiran, Gal Kaplun, Dimitris Kalimeris, Tristan Yang, Benjamin L Edelman, Fred Zhang, and Boaz Barak. Sgd on neural networks learns functions of increasing complexity. arXiv preprint arXiv:1905.11604, 2019.
362
+ [71] Junhyun Nam, Hyuntak Cha, Sungsoo Ahn, Jaeho Lee, and Jinwoo Shin. Learning from failure: Training debiased classifier from biased classifier. arXiv preprint arXiv:2007.02561, 2020.
363
+ [72] Kamil Nar, Orhan Ocal, S Shankar Sastry, and Kannan Ramchandran. Cross-entropy loss and low-rank features have responsibility for adversarial examples. arXiv preprint arXiv:1901.08360, 2019.
364
+ [73] Kamil Nar and S Shankar Sastry. Persistency of excitation for robustness of neural networks. arXiv preprint arXiv:1911.01043, 2019.
365
+ [74] Behnam Neyshabur, Ryota Tomioka, Ruslan Salakhutdinov, and Nathan Srebro. Geometry of optimization and implicit regularization in deep learning. arXiv preprint arXiv:1705.03071, 2017.
366
+ [75] Behnam Neyshabur, Ryota Tomioka, and Nathan Srebro. In search of the real inductive bias: On the role of implicit regularization in deep learning. arXiv preprint arXiv:1412.6614, 2014.
367
+ [76] Timothy Niven and Hung-Yu Kao. Probing neural network comprehension of natural language arguments. arXiv preprint arXiv:1907.07355, 2019.
368
+ [77] Luke Oakden-Rayner, Jared Dunnmon, Gustavo Carneiro, and Christopher Ré. Hidden stratification causes clinically meaningful failures in machine learning for medical imaging. In Proceedings of the ACM Conference on Health, Inference, and Learning, pages 151–159, 2020.
369
+ [78] Samet Oymak, Zalan Fabian, Mingchen Li, and Mahdi Soltanolkotabi. Generalization guarantees for neural networks via harnessing the low-rank structure of the jacobian. arXiv preprint arXiv:1906.05392, 2019.
370
+ [79] Giambattista Parascandolo, Alexander Neitz, Antonio Orvieto, Luigi Gresele, and Bernhard Schölkopf. Learning explanations that are hard to vary. arXiv preprint arXiv:2009.00329, 2020.
371
+ [80] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. openreview id=BJJsrmfCZ, 2017.
372
+ [81] Oskar Pfungst. Clever Hans:(the horse of Mr. Von Osten.) a contribution to experimental animal and human psychology. Holt, Rinehart and Winston, 1911.
373
+ [82] Tomaso Poggio, Kenji Kawaguchi, Qianli Liao, Brando Miranda, Lorenzo Rosasco, Xavier Boix, Jack Hidary, and Hrushikesh Mhaskar. Theory of deep learning iii: explaining the non-overfitting puzzle. arXiv preprint arXiv:1801.00173, 2017.
374
+ [83] Nasim Rahaman, Aristide Baratin, Devansh Arpit, Felix Draxler, Min Lin, Fred Hamprecht, Yoshua Bengio, and Aaron Courville. On the spectral bias of neural networks. In International Conference on Machine Learning, pages 5301–5310. PMLR, 2019.
375
+ [84] Jonas Rauber, Wieland Brendel, and Matthias Bethge. Foolbox: A python toolbox to benchmark the robustness of machine learning models. arXiv preprint arXiv:1707.04131, 2017.
376
+ [85] Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. " why should i trust you?" explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pages 1135–1144, 2016.
377
+ [86] Michael Roberts. Machine learning for covid-19 diagnosis: Promising, but still too flawed, Mar 2021.
378
+ [87] Basri Ronen, David Jacobs, Yoni Kasten, and Shira Kritchman. The convergence rate of neural networks for learned functions of different frequencies. In Advances in Neural Information Processing Systems, pages 4761–4771, 2019.
379
+ [88] Amir Rosenfeld, Richard Zemel, and John K Tsotsos. The elephant in the room. arXiv preprint arXiv:1808.03305, 2018.
380
+ [89] Shiori Sagawa, Pang Wei Koh, Tatsunori B Hashimoto, and Percy Liang. Distributionally robust neural networks for group shifts: On the importance of regularization for worst-case generalization. arXiv preprint arXiv:1911.08731, 2019.
381
+
382
+ [90] Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2013.
383
+
384
+ [91] Andrew M Saxe, James L McClelland, and Surya Ganguli. A mathematical theory of semantic development in deep neural networks. Proceedings of the National Academy of Sciences, 116(23):11537–11546, 2019.
385
+
386
+ [92] Harshay Shah, Kaustav Tamuly, Aditi Raghunathan, Prateek Jain, and Praneeth Netrapalli. The pitfalls of simplicity bias in neural networks. arXiv preprint arXiv:2006.07710, 2020.
387
+
388
+ [93] Shai Shalev-Shwartz and Shai Ben-David. Understanding machine learning: From theory to algorithms. Cambridge university press, 2014.
389
+
390
+ [94] Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The implicit bias of gradient descent on separable data. The Journal of Machine Learning Research, 19(1):2822–2878, 2018.
391
+
392
+ [95] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929–1958, 2014.
393
+
394
+ [96] 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.
395
+
396
+ [97] Guillermo Valle-Pérez, Chico Q Camargo, and Ard A Louis. Deep learning generalizes because the parameter-function map is biased towards simple functions. arXiv preprint arXiv:1805.08522, 2018.
397
+
398
+ [98] Vladimir Vapnik and Vlamimir Vapnik. Statistical learning theory wiley. New York, 1:624, 1998.
399
+
400
+ [99] Santosh Vempala and John Wilmes. Gradient descent for one-hidden-layer neural networks: Polynomial convergence and sq lower bounds. In Conference on Learning Theory, pages 3115–3117, 2019.
401
+
402
+ [100] Haohan Wang, Zexue He, Zachary C Lipton, and Eric P Xing. Learning robust representations by projecting superficial statistics out. arXiv preprint arXiv:1903.06256, 2019.
403
+
404
+ [101] Sifan Wang, Xinling Yu, and Paris Perdikaris. When and why pinns fail to train: A neural tangent kernel perspective. Journal of Computational Physics, page 110768, 2021.
405
+
406
+ [102] David H Wolpert. The lack of a priori distinctions between learning algorithms. Neural computation, 8(7):1341–1390, 1996.
407
+
408
+ [103] Xin Xu and Eibe Frank. Logistic regression and boosting for labeled bags of instances. In Pacific-Asia conference on knowledge discovery and data mining, pages 272–281. Springer, 2004.
409
+
410
+ [104] Zhi-Qin John Xu, Yaoyu Zhang, Tao Luo, Yanyang Xiao, and Zheng Ma. Frequency principle: Fourier analysis sheds light on deep neural networks. arXiv preprint arXiv:1901.06523, 2019.
411
+
412
+ [105] Zhi-Qin John Xu, Yaoyu Zhang, and Yanyang Xiao. Training behavior of deep neural network in frequency domain. In International Conference on Neural Information Processing, pages 264–274. Springer, 2019.
413
+
414
+ [106] Greg Yang and Hadi Salman. A fine-grained spectral perspective on neural networks. arXiv preprint arXiv:1907.10599, 2019.
415
+
416
+ [107] John R Zech, Marcus A Badgeley, Manway Liu, Anthony B Costa, Joseph J Titano, and Eric K Oermann. Confounding variables can degrade generalization performance of radiological deep learning models. arXiv preprint arXiv:1807.00431, 2018.
417
+
418
+ [108] Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. arXiv preprint arXiv:1611.03530, 2016.
419
+
420
+ [109] Jieyu Zhao, Tianlu Wang, Mark Yatskar, Vicente Ordonez, and Kai-Wei Chang. Men also like shopping: Reducing gender bias amplification using corpus-level constraints. arXiv preprint arXiv:1707.09457, 2017.
421
+
422
+ [110] Difan Zou, Yuan Cao, Dongruo Zhou, and Quanquan Gu. Gradient descent optimizes overparameterized deep relu networks. Machine Learning, 109(3):467–492, 2020.
parse/train/h8flNv9x8v-/h8flNv9x8v-_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/h8flNv9x8v-/h8flNv9x8v-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/h8flNv9x8v-/h8flNv9x8v-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/iaO86DUuKi/iaO86DUuKi.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/iaO86DUuKi/iaO86DUuKi_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/kFJoj7zuDVi/kFJoj7zuDVi.md ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Towards a Theoretical Framework of Out-of-Distribution Generalization
2
+
3
+ Chuanlong XieHuawei Noah’s Ark Labxie.chuanlong@huawei.com
4
+
5
+ Haotian Ye
6
+ Peking University
7
+ Pazhou Lab
8
+ haotianye@pku.edu.cn
9
+
10
+ Tianle Cai Peking University caitianle1998@pku.edu.cn
11
+
12
+ # Ruichen Li
13
+
14
+ # Zhenguo Li
15
+
16
+ # Liwei Wang
17
+
18
+ Peking University xk-lrc@pku.edu.cn
19
+
20
+ Huawei Noah’s Ark Lab Li.Zhenguo@huawei.com
21
+
22
+ Key Laboratory of Machine Perception, MOE, School of EECS, Institute for Artificial Intelligence, Peking University wanglw@cis.pku.edu.cn
23
+
24
+ # Abstract
25
+
26
+ Generalization to out-of-distribution (OOD) data is one of the central problems in modern machine learning. Recently, there is a surge of attempts to propose algorithms that mainly build upon the idea of extracting invariant features. Although intuitively reasonable, theoretical understanding of what kind of invariance can guarantee OOD generalization is still limited, and generalization to arbitrary out-of-distribution is clearly impossible. In this work, we take the first step towards rigorous and quantitative definitions of 1) what is OOD; and 2) what does it mean by saying an OOD problem is learnable. We also introduce a new concept of expansion function, which characterizes to what extent the variance is amplified in the test domains over the training domains, and therefore give a quantitative meaning of invariant features. Based on these, we prove OOD generalization error bounds. It turns out that OOD generalization largely depends on the expansion function. As recently pointed out by [21], any OOD learning algorithm without a model selection module is incomplete. Our theory naturally induces a model selection criterion. Extensive experiments on benchmark OOD datasets demonstrate that our model selection criterion has a significant advantage over baselines.
27
+
28
+ # 1 Introduction
29
+
30
+ One of the most fundamental assumptions of classic supervised learning is the “i.i.d. assumption”, which states that the training and the test data are independent and identically distributed. However, this assumption can be easily violated in a reality [8, 10, 11, 17, 38, 48, 56] where the test data usually have a different distribution than the training data. This motivates the research on the out-ofdistribution (OOD) generalization, or domain generalization problem, which assumes access only to data drawn from a set $\mathcal { E } _ { a v a i l }$ of available domains during training, and the goal is to generalize to a larger domain set ${ \mathcal { E } } _ { a l l }$ including unseen domains.
31
+
32
+ To generalize to OOD data, most existing algorithms attempt to learn features that are invariant to a certain extent across training domains in the hope that such invariance also holds in unseen domains. For example, distributional matching-based methods [20, 35, 55] seek to learn features that have the same distribution across different domains; IRM [5] and its variants [1, 32, 33] learn feature representations such that the optimal linear classifier on top of the representation matches across domains.
33
+
34
+ 35th Conference on Neural Information Processing Systems (NeurIPS 2021).
35
+
36
+ Though the idea of learning invariant features is intuitively reasonable, there is only limited theoretical understanding of what kind of invariance can guarantee OOD generalization. Clearly, generalization to an arbitrary out-of-distribution domain is impossible and in practice, the features can hardly be absolutely invariant from $\mathcal { E } _ { a v a i l }$ to ${ \mathcal { E } } _ { a l l }$ unless all the domains are identical. So it is necessary to first formulate what OOD data can be generalized to, or, what is the relation between the available training domain set $\mathcal { E } _ { a v a i l }$ and the entire domain set ${ \mathcal { E } } _ { a l l }$ . Meanwhile, to what extent the invariance of features on $\mathcal { E } _ { a v a i l }$ can be preserved in ${ \mathcal { E } } _ { a l l }$ should be rigorously characterized.
37
+
38
+ In this paper, we take the first step towards a general OOD framework by quantitatively formalizing the relationship between $\mathcal { E } _ { a v a i l }$ and ${ \mathcal { E } } _ { a l l }$ in terms of the distributions of features and provide OOD generalization guarantees based on our quantification of the difficulty of OOD generalization problem. Specifically, we first rigorously formulate the intuition of invariant features used in previous works by introducing the “variation” and “informativeness” (Definition 3.1 and 3.2) of each feature. Our theoretical insight can then be informally stated as: for learnable OOD problems, if a feature is informative for the classification task as well as invariant over $\mathcal { E } _ { a v a i l }$ , then it is still invariant over ${ \mathcal { E } } _ { a l l }$ . In other words, invariance of informative features in $\mathcal { E } _ { a v a i l }$ can be preserved in ${ \mathcal { E } } _ { a l l }$ . We further introduce a class of functions, dubbed expansion function (Definition 3.3), to quantitatively characterize to what extent the variance of features on $\mathcal { E } _ { a v a i l }$ is amplified on ${ \mathcal { E } } _ { a l l }$ .
39
+
40
+ Based on our formulation, we derive theoretical guarantees on the OOD generalization error, i.e., the gap of largest error between the domain in $\mathcal { E } _ { a v a i l }$ and domain in ${ \mathcal { E } } _ { a l l }$ . Specifically, we prove the upper and lower bound of OOD generalization error in terms of the expansion function and the variation of learned features over $\mathcal { E } _ { a v a i l }$ . Our results theoretically confirm that 1) the expansion function can reflect the difficulty of OOD generalization problem, i.e., problems with more rapidly increasing expansion functions are harder and have worse generalization guarantees; 2) the generalization error gap can tend to zero when the variation of learned features tend to zero, so minimizing the variation in $\mathcal { E } _ { a v a i l }$ can reduce the generalization error.
41
+
42
+ As pointed out by Gulrajani and Lopez-Paz [21], any OOD algorithm without a specified model selection criterion is not complete. Since ${ \mathcal { E } } _ { a l l }$ is unseen, hyper-parameters can only be chosen according to $\mathcal { E } _ { a v a i l }$ . Previous selection methods mainly focus on validation accuracy over $\mathcal { E } _ { a v a i l }$ which is only a biased metric of OOD performance. On the contrary, a promising model selection method should instead be predictive of OOD performance. Inspired by our bounds, we propose a model selection method to select models with high validation accuracy and low variation, which corresponds to the upper bound of OOD error. The introduction of a model’s variation relieves the problem of classic selection methods, in which models that overfit $\mathcal { E } _ { a v a i l }$ tend to be selected. Experimental results show that our method can outperform baselines and select models with higher OOD accuracy.
43
+
44
+ Contributions. We summarize our major contributions here:
45
+
46
+ • We introduce a quantitative and rigorous formulation of OOD generalization problem that characterizes the relation of invariance over the training domain set $\mathcal { E } _ { a v a i l }$ and test domain set ${ \mathcal { E } } _ { a l l }$ . The core quantity in our characterization, the expansion function, determines the difficulty of an OOD generalization problem.
47
+
48
+ • We prove novel OOD generalization error bounds based on our formulation. The upper and lower bounds together indicate that the expansion function well characterizes the OOD generalization ability of features with different levels of variation.
49
+
50
+ • We design a model selection criterion that is inspired by our generalization bounds. Our criterion takes both the performance on training domains and the variation of models into consideration and is predictive of OOD performance according to our bounds. Experimental results demonstrate our selection criterion can choose models with higher OOD accuracy.
51
+
52
+ The rest of the paper is organized as follows: Section 2 is our preliminary. In Section 3, we give our theoretical formulation. Section 4 gives our generalization bound. We propose our model selection method in Section 5. In Section 6 we conduct experiments on expansion function and model selection. We review more related works in Section 7 and conclude our work in Section 8.
53
+
54
+ # 2 Preliminary
55
+
56
+ Throughout the paper, we consider a multi-class classification task $\mathcal { X } \to \mathcal { Y } = \{ 1 , . . . , K \}$ .1 Let ${ \mathcal { E } } _ { a l l }$ be the domain set we want to generalize to, and $\mathcal { E } _ { a v a i l } \subseteq \mathcal { E } _ { a l l }$ be the available domain set, i.e., all domains we have during the training procedure. We denote $( X ^ { e } , Y ^ { e } )$ to be the input-label pair drawn from the data distribution of domain $e$ . The OOD generalization goal is to find a classifier $f ^ { * }$ that minimizes the worst-domain loss on ${ \mathcal { E } } _ { a l l }$ :
57
+
58
+ $$
59
+ f ^ { * } = \underset { f \in \mathcal { F } } { \mathrm { a r g m i n } } \mathcal { L } ( \mathcal { E } _ { a l l } , f ) , \mathcal { L } ( \mathcal { E } , f ) \triangleq \underset { e \in \mathcal { E } } { \mathrm { m a x } } \mathbb { E } \big [ \ell \big ( f ( X ^ { e } ) , Y ^ { e } \big ) \big ]
60
+ $$
61
+
62
+ where $\mathcal { F } : \mathcal { X } \xrightarrow { } \mathbb { R } ^ { K }$ is the the hypothetical space and $\ell ( \cdot , \cdot )$ is a loss function. Similar to previous works [5, 16, 27, 33], we assume that $f$ can be decomposed into $g \circ h$ , where $g \in \mathcal { G } : \mathbb { R } ^ { d } \mathbb { R } ^ { K }$ is the top classifier and $h : \mathcal { X } \mathbb { R } ^ { d }$ is a $d$ -dimensional feature extractor, i.e.,
63
+
64
+ $$
65
+ h ( x ) = ( \phi _ { 1 } ( x ) , \phi _ { 2 } ( x ) , \ldots , \phi _ { d } ( x ) ) ^ { \top } , \quad \phi _ { i } \in \Phi .
66
+ $$
67
+
68
+ Here $\Phi$ is the set of scalar feature maps which map $\mathcal { X }$ to $\mathbb { R }$ and $d$ is fixed. We will call each $\phi \in \Phi$ a feature for simplicity. Given a domain $e$ , we denote the $d$ -dimensional random vector $h ( X ^ { e } )$ as $h ^ { e }$ , one-dimensional feature $\phi ( X ^ { e } )$ as $\phi ^ { e }$ , and the conditional distribution of $h ^ { e } , \phi ^ { e }$ given $Y ^ { e } = y$ as $\mathbb { P } ( h ^ { e } | y ) , \mathbb { P } ( \phi ^ { e } | y )$ . For simplicity, we assume the data distribution is balanced in every domain, i.e., $P ( Y ^ { e } = y ) = \frac { 1 } { K } , \forall y \in \mathcal { Y } , e \in \mathcal { E } _ { a l l }$ . Our framework can be easily extended to the case where the balanced assumption is removed, with an additional term corresponding to the imbalance adding to the generalization bounds.
69
+
70
+ # 3 Framework of OOD Generalization Problem
71
+
72
+ The main challenge of formalizing the OOD generalization problem is to mathematically describe the connection between $\mathcal { E } _ { a v a i l }$ and ${ \mathcal { E } } _ { a l l }$ and how generalization depends on this relation. Towards this goal, we introduce several quantities to characterize the relation of feature distributions over different domains and bridge $\mathcal { E } _ { a v a i l }$ and ${ \mathcal { E } } _ { a l l }$ by expansion function (Definition 3.3) over the quantities we have introduced. Our framework is motivated by the understanding that, in an OOD generalization task, certain “property” of “good” features in $\mathcal { E } _ { a v a i l }$ should be “preserved” in ${ \mathcal { E } } _ { a l l }$ (the reason is described in Section 1). In Section 3.1, we will go into details on what we mean by “property” (variation, Definition 3.1), “good” (informativeness, Definition 3.2), and “preserved” (measured by expansion function). In Section 6.2, we further illustrate the key concepts in our framework by a real-world OOD problem.
73
+
74
+ # 3.1 Formalizing OOD Problem by Quantifying Feature Distribution
75
+
76
+ We first introduce the concepts “variation" and “informativeness" of a feature $\phi$ . The first one is what we expect to be preserved in ${ \mathcal { E } } _ { a l l }$ and the second one characterizes what features will be considered. Specifically, let $\rho ( \mathbb { P } , \mathbb { Q } )$ be a symmetric “distance” of two distributions. Note that $\rho$ can have many choices, like $L _ { 2 }$ Distance, Total Variation and symmetric KL-divergence, etc. The variation and informativeness are defined as follows:
77
+
78
+ Definition 3.1 (Variation). The variation of feature $\phi ( \cdot )$ across a domain set $\mathcal { E }$ is
79
+
80
+ $$
81
+ \mathcal { V } _ { \rho } ( \phi , \mathcal { E } ) = \operatorname* { m a x } _ { y \in \mathcal { V } } \operatorname* { s u p } _ { e , e ^ { \prime } \in \mathcal { E } } \rho \big ( \mathbb { P } ( \phi ^ { e } | y ) , \mathbb { P } ( \phi ^ { e ^ { \prime } } | y ) \big ) .
82
+ $$
83
+
84
+ A feature $\phi ( \cdot )$ is $\varepsilon$ -invariant across $\mathcal { E }$ , $i f \varepsilon \geq \mathcal { V } ( \phi , \mathcal { E } )$ (We omit the subscript $\rho$ in case of no ambiguity). Definition 3.2 (Informativeness). The informativeness of feature $\phi ( \cdot )$ across a domain set $\mathcal { E }$ is
85
+
86
+ $$
87
+ \mathcal { T } _ { \rho } ( \phi , \mathcal { E } ) = \frac { 1 } { K ( K - 1 ) } \sum _ { \stackrel { y \neq y ^ { \prime } } { y , y ^ { \prime } \in y } } \operatorname* { m i n } _ { e \in \mathcal { E } } \rho \big ( \mathbb { P } ( \phi ^ { e } | y ) , \mathbb { P } ( \phi ^ { e } | y ^ { \prime } ) \big ) .
88
+ $$
89
+
90
+ A feature $\phi ( \cdot )$ is $\delta$ -informative across $\varepsilon$ , if $\quad \delta \leq { \mathcal { I } } ( \phi , { \mathcal { E } } )$ .
91
+
92
+ The variation $\mathcal { V } ( \phi , \mathcal { E } )$ measures the stability of $\phi ( \cdot )$ over the domains in $\mathcal { E }$ and the informativeness ${ \mathcal { T } } ( \phi , { \mathcal { E } } )$ captures the ability of $\phi ( \cdot )$ to distinguish different labels. We would like to highlight that the variation and informativeness are defined on each one-dimensional feature $\phi ( \cdot )$ . Unlike previous distance between distributions defined in $d$ -dimensional space, our definitions are more reasonable and practical, since it can be easily calculated and analyzed.
93
+
94
+ We are now ready to introduce the core quantity for connecting $\mathcal { E } _ { a v a i l }$ and ${ \mathcal { E } } _ { a l l }$ . Our motivation, as elaborated in the introduction section, is that, if a feature is informative for the classification task and invariant over $\mathcal { E } _ { a v a i l }$ , then to enable OOD generalization from $\mathcal { E } _ { a v a i l }$ to ${ \mathcal { E } } _ { a l l }$ , it should be still invariant over ${ \mathcal { E } } _ { a l l }$ . So the relation between $\mathcal { V } ( \phi , \mathcal { E } _ { a v a i l } )$ and $\mathinner { \gamma \mathopen { \left( \phi , \mathcal { E } _ { a l l } \right) } }$ of an informative feature captures the feasibility and difficulty of OOD generalization. To quantitatively measure this relation, we define the following function class:
95
+
96
+ Definition 3.3 (Expansion Function). We say a function $s : \mathbb { R } ^ { + } \cup \{ 0 \} \mathbb { R } ^ { + } \cup \{ 0 , + \infty \}$ is an expansion function, iff the following properties hold: 1) $s ( \cdot )$ is monotonically increasing and $s ( x ) \geq x , \forall x \geq 0 ; 2 ,$ ) $\begin{array} { r } { \operatorname* { l i m } _ { x 0 ^ { + } } s ( x ) = s ( 0 ) = 0 } \end{array}$ .
97
+
98
+ This function class gives a full characterization of how the variation between $\mathcal { E } _ { a v a i l }$ and ${ \mathcal { E } } _ { a l l }$ is related. Based on this function class, we can introduce our formulation of the learnability of OOD generalization as follows:
99
+
100
+ Definition 3.4 (Learnability). Let $\Phi$ be the feature space and $\rho$ be a distribution distance. We say an OOD generalization problem from $\mathcal { E } _ { a v a i l }$ to ${ \mathcal { E } } _ { a l l }$ is learnable if there exists an expansion function $s ( \cdot )$ and $\delta \geq 0$ , such that: for all $\phi \in \Phi$ satisfying ${ \mathcal { T } } _ { \rho } ( \phi , { \mathcal { E } } _ { a v a i l } ) \geq \delta$ , we have $s ( \mathcal { V } _ { \rho } ( \phi , \mathcal { E } _ { a v a i l } ) ) \geq$ $\mathcal { V } _ { \rho } \big ( \phi , \mathcal { E } _ { a l l } \big )$ . If such $s ( \cdot )$ and $\delta$ exist, we further call this problem $( s ( \cdot ) , \delta )$ -learnable. If an $o o D$ generalization problem is not learnable, we call $i t$ unlearnable.
101
+
102
+ To understand the intuition and rationality of our formulation, several discussions are in order.
103
+
104
+ Properties of the expansion function. In Definition 3.3, we highlight two properties of the expansion function. The first property comes naturally from the monotonicity properties of variation: any $\varepsilon _ { 1 }$ -invariant feature is also $\varepsilon _ { 2 }$ -invariant for $\varepsilon _ { 2 } \geq \varepsilon _ { 1 }$ ; and $\mathcal { V } ( \phi , \mathcal { E } _ { 1 } ) \leq \mathcal { V } ( \phi , \mathcal { E } _ { 2 } )$ for any ${ \mathcal { E } } _ { 1 } \subseteq { \mathcal { E } } _ { 2 }$ . The monotonicity also implies that larger ${ \mathcal { E } } _ { a l l }$ will induce larger $s ( \cdot ) ^ { 2 }$ and it is also harder to be generalized to. From this view, we can see that the scale of $s ( \cdot )$ can reflect the difficulty of OOD generalization. The second property is more crucial since it formulates the intuition that if an informative feature is almost invariant in $\mathcal { E } _ { a v a i l }$ , it should remain invariant in ${ \mathcal { E } } _ { a l l }$ . Without this assumption, OOD generalization can never be guaranteed because we cannot predict whether an invariant and informative feature in $\mathcal { E } _ { a v a i l }$ will vary severely in unseen ${ \mathcal { E } } _ { a l l }$ .
105
+
106
+ Necessity of informativeness. We include a seemingly redundant quantity informativeness in the definition of learnability. However, this term is necessary because only informative features are responsible for the performance of classification. Non-informative but invariant features over $\mathcal { E } _ { a v a i l }$ may only capture some noise that is irrelevant to the classification problem, and we shall not expect the noise to be invariant over ${ \mathcal { E } } _ { a l l }$ . Moreover, we show in Figure 1 that in practice, many invariant but useless features in $\mathcal { E } _ { a v a i l }$ vary a lot in ${ \mathcal { E } } _ { a l l }$ , and adding the constraint of informativeness makes the expansion function reasonable. In addition, there are multiple choices of $( s ( \cdot ) , \delta )$ to make an OOD generalization problem learnable: larger $\delta$ will filter out more features, and so $\dot { s } ( \cdot )$ can be smaller (flatter). This multiplicity will result in a trade-off between $s ( \cdot )$ and $\delta$ , which will be discussed in Section 6.2.
107
+
108
+ Two extreme cases: i.i.d. & unlearnable. To better understand the concept of learnability, we consider two extreme cases. (1) The first example is when all data from different $\textit { e } \in \mathcal { E } _ { a l l }$ are identically distributed, i.e., the classic supervised learning setting. This problem is $( s ( \cdot ) , 0 )$ -learnable with $s ( x ) = x$ , implying no extra difficulty in OOD generalization. (2) As an example of unlearnable, consider the following case (modified from Colored MNIST [5]): For $e \in \mathcal { E } _ { a v a i l }$ , images with label 0 always has a red background while images with label 1 has a blue background. For $e \in \mathcal { E } _ { a l l } \ \backslash \ \mathcal { E } _ { a v a i l }$ , this relationship is entirely inverse. Since data from different $e \in \mathcal { E } _ { a v a i l }$ are identically distributed but different from other $e \in \mathcal { E } _ { a l l }$ , no expansion function can make it learnable, i.e., it is OOD-unlearnable.
109
+
110
+ The unlearnability of this case also coincides with our intuition: Without prior knowledge, it is not clear from merely the training data, whether the task is to distinguish digit 0 from 1, or to distinguish color red from blue. As a result, generalization to ${ \mathcal { E } } _ { a l l }$ cannot be guaranteed.
111
+
112
+ # 4 Generalization Bound
113
+
114
+ In this section, we consider an OOD generalization problem from $\mathcal { E } _ { a v a i l }$ to ${ \mathcal { E } } _ { a l l }$ , and our goal is to analyze the OOD generalization error of classifier $f = g \circ h$ defined by
115
+
116
+ $$
117
+ \mathrm { e r r } ( f ) = \mathcal { L } ( \mathcal { E } _ { a l l } , f ) - \mathcal { L } ( \mathcal { E } _ { a v a i l } , f ) ,
118
+ $$
119
+
120
+ where we assume the loss function $l ( \cdot , \cdot )$ is bounded by $[ 0 , C ]$ . We prove two upper bounds (4.1, 4.2) as well as a lower bound (4.3) for $\operatorname { e r r } ( f )$ based on our formulation. Our bounds together provide a complete characterization of the difficulty of OOD generalization. Since we expect that an invariant classifier can generalize to unseen domains, we hope to bound $\operatorname { e r r } ( f )$ in terms of the certain variation of $f$ . To this end, we define the variation and informativeness of $f$ in terms of its features, i.e.,
121
+
122
+ $$
123
+ \begin{array} { r l r } { \mathcal { V } ^ { \operatorname* { s u p } } ( h , \mathcal { E } _ { a v a i l } ) } & { \triangleq } & { \underset { \beta \in S ^ { d - 1 } } { \operatorname* { s u p } } \mathcal { V } ( \beta ^ { \top } h , \mathcal { E } _ { a v a i l } ) , } \\ { \mathcal { T } ^ { \operatorname* { i n f } } ( h , \mathcal { E } _ { a v a i l } ) } & { \triangleq } & { \underset { \beta \in S ^ { d - 1 } } { \operatorname* { i n f } } \mathcal { T } ( \beta ^ { \top } h , \mathcal { E } _ { a v a i l } ) , } \end{array}
124
+ $$
125
+
126
+ where $( \beta ^ { \top } h ) ( x ) = \beta ^ { \top } h ( x )$ is a feature and $S ^ { d - 1 } = \{ \beta \in \mathbb { R } ^ { d } : \| \beta \| _ { 2 } = 1 \}$ is the unit $( d - 1 )$ -sphere.
127
+
128
+ Necessity of using supremum over linear combination. One seemingly plausible definition of the variation of a classifier $f$ can be the supremum over all $\mathcal { V } ( \phi _ { i } , \mathcal { E } _ { a v a i l } ) , i \in [ d ]$ . However, as is shown in Appendix 1, it is possible that two high-dimensional joint distributions have close marginal distribution in each dimension, while they do not overlap. In other words, there exist cases where $\mathcal { V } ( \phi _ { i } , \mathcal { E } _ { a l l } ) = 0 , \forall i \in [ d ]$ but after applying the top model $g$ over $\phi _ { i }$ ’s, the distribution varies a lot in $\mathcal { E } _ { a v a i l }$ . Our definition comes from the simple idea that the class of top model $\mathcal { G }$ is at least a linear space, so we should at least consider the variation of every (normalized) linear combination of $h ( \cdot )$ With this, we can guarantee the joint distribution distance is still small.
129
+
130
+ Theorem 4.1 (Main Theorem). Suppose we have learned a classifier $f ( x ) = g ( h ( x ) )$ such that $\forall e \in \mathcal { E } _ { a l l }$ and $\forall y \in \mathcal { V } ;$ $, p _ { h ^ { e } | Y ^ { e } } ( h | y ) \in L ^ { 2 } ( \mathbb R ^ { d } )$ . Denote the characteristic function of random variable $h ^ { e } | Y ^ { e }$ as $\hat { p } _ { h ^ { e } | Y ^ { e } } ( t | y ) = \mathbb { E } [ \exp \{ i \langle t , h ^ { e } \rangle \} | Y ^ { e } = y ]$ . Assume the hypothetical space $\mathcal { F }$ satisfies the following regularity conditions that $\exists \alpha , M _ { 1 } , M _ { 2 } > 0 , \forall f \in \mathcal { F } , \forall e \in \mathcal { E } _ { a l l } , y \in \mathcal { V }$ ,
131
+
132
+ $$
133
+ \int _ { h \in \mathbb { R } ^ { d } } p _ { h ^ { e } | Y ^ { e } } ( h | y ) | h | ^ { \alpha } \mathrm { d } h \leq M _ { 1 } \quad a n d \quad \int _ { t \in \mathbb { R } ^ { d } } | \hat { p } _ { h ^ { e } | Y ^ { e } } ( t | y ) | | t | ^ { \alpha } \mathrm { d } t \leq M _ { 2 } .
134
+ $$
135
+
136
+ $I f ( \mathcal { E } _ { a v a i l } , \mathcal { E } _ { a l l } )$ is $\left( s ( \cdot ) , \mathcal { T } ^ { i n f } ( h , \mathcal { E } _ { a v a i l } ) \right)$ -learnable under $\Phi$ with Total Variation $\rho ^ { 3 }$ , then we have
137
+
138
+ $$
139
+ \operatorname { e r r } ( f ) \leq O \left( s \left( \mathcal { V } _ { \rho } ^ { s u p } ( h , \mathcal { E } _ { a v a i l } ) \right) ^ { \frac { \alpha ^ { 2 } } { ( \alpha + d ) ^ { 2 } } } \right) .
140
+ $$
141
+
142
+ Here $\rho$ is total variation distance, and $O ( \cdot )$ depends on $d , C , \alpha , M _ { 1 } , M _ { 2 }$ .
143
+
144
+ The above theorem holds for a general classifier learned by any algorithms. Due to its generality, we need to introduce some technical regularity conditions on the density function. The assumption (4) assume the decay rate of density and its characteristic function, which is common in the literature, e.g. [14]. This theorem demonstrates that, the generalization error can be bounded by a function of the variation of $h$ , and it converges to 0 as the variation approaches to 0. Under some special but typical case where the top model $g$ is linear, we can further show that even without the regularity conditions in Theorem 4.1, we have a much better (linear) convergence rate.
145
+
146
+ Theorem 4.2 (Linear Top Model). Consider any loss satisfying $\begin{array} { r } { \ell ( \hat { y } , y ) = \sum _ { k = 1 } ^ { K } \ell _ { 0 } ( \hat { y } _ { k } , y _ { k } ) } \end{array}$ .4 For any classifier with linear top model $g$ , i.e.,
147
+
148
+ $$
149
+ f ( x ) = A h ( x ) + b w i t h A \in \mathbb { R } ^ { K \times d } , b \in \mathbb { R } ^ { K } ,
150
+ $$
151
+
152
+ $i f ( \mathcal { E } _ { a v a i l } , \mathcal { E } _ { a l l } )$ is $\left( s ( \cdot ) , \mathcal { T } ^ { i n f } ( h , \mathcal { E } _ { a v a i l } ) \right)$ -learnable under $\Phi$ with Total Variation $\rho$ , then we have
153
+
154
+ $$
155
+ \mathrm { e r r } ( f ) \leq O \Bigl ( s \bigl ( \mathcal { V } ^ { s u p } ( h , \mathcal { E } _ { a v a i l } ) \bigr ) \Bigr ) .
156
+ $$
157
+
158
+ Here $O ( \cdot )$ depends only on d and $C$ .
159
+
160
+ Discussion. Theorem 4.1 shows that, for any model, the generalization gap depends largely on the model’s variation captured by $\mathcal { V } ^ { \mathrm { s u p } } ( h , \mathcal { E } _ { a v a i l } )$ . The result is irrelevant to the algorithm and provides a guarantee for the generalization gap from $\mathcal { E } _ { a v a i l }$ to ${ \mathcal { E } } _ { a l l }$ , so long as the learned model $f$ is invariant, i.e. $\mathcal { V } ^ { \mathrm { s u p } } ( h , \mathcal { E } _ { a v a i l } )$ is small. When $s ( \cdot )$ is fixed, a model with smaller $\mathcal { V } ^ { \mathrm { s u p } } ( h , \mathcal { E } _ { a v a i l } )$ results in a smaller gap, which matches our understanding that invariant features in $\mathcal { E } _ { a v a i l }$ are somehow invariant in ${ \mathcal { E } } _ { a l l }$ . When $\mathcal { V } ^ { \mathrm { s u p } } ( h , \mathcal { E } _ { a v a i l } )$ is fixed, more difficult generalization will generate a larger expansion function, which leads to a larger gap. For the Gaussian class with bounded mean and variance, $\alpha \gg d$ and the convergent rate is almost linear.
161
+
162
+ However, without any constraint to $g$ , the convergent rate might be small. Theorem 4.2 then offers a generalization bound with a linear convergent rate under mild assumptions when $g$ is linear, which is common in reality. It relaxes the concentration assumption (Formula 4) and asks only for the integrability of the density. The convergent rate is identical to the convergent rate of the expansion function, showing that $s ( \cdot )$ captures the generalization quite well.
163
+
164
+ Proof Sketch of Theorem 4.1. The proof of the main result, Theorem 4.1, is decomposed into the following steps. First, we transform $\operatorname { e r r } ( f )$ into the Total Variation of joint distributions of features in different domains (Step 1). To bound the Total Variation, it is sufficient to bound the distance of the corresponding Fourier transform, and further, it is equivalent to bound the Radon transform of joint distributions (Step 2). Eventually, we show that $\mathcal { V } ^ { \mathrm { s u p } } ( \beta ^ { \top } h , \mathcal { E } _ { a v a i l } )$ can be used to bound the Radon transform, which finishes the proof (Step 3).
165
+
166
+ Step 1. The OOD generalization error can be bounded as:
167
+
168
+ $$
169
+ \mathrm { e r r } ( f ) \le \operatorname* { s u p } _ { ( e , e ^ { \prime } ) \in ( \mathcal { E } _ { a v a i l } , \mathcal { E } _ { a l l } ) } \frac { C } { K } \sum _ { y \in \mathcal { Y } } \int _ { h \in \mathbb { R } ^ { d } } \big | p _ { h ^ { e } | Y ^ { e } } ( h | y ) - p _ { h ^ { e ^ { \prime } } | Y ^ { e ^ { \prime } } } ( h | y ) ) \big | \mathrm { d } h .
170
+ $$
171
+
172
+ Step 2. According to the assumption (4), the dominant term in (7) is
173
+
174
+ $$
175
+ \int _ { | h | \leq r _ { 1 } } \Big | \int _ { | t | \leq r _ { 2 } } e ^ { - i \langle h , t \rangle } \big ( \hat { p } _ { h ^ { e } | Y ^ { e } } ( t | y ) - \hat { p } _ { h ^ { e ^ { \prime } } | Y ^ { e ^ { \prime } } } ( t | y ) \big ) \big ) \mathrm { d } t \Big | \mathrm { d } t ,
176
+ $$
177
+
178
+ where $r _ { 1 }$ and $r _ { 2 }$ are well-selected scalars that depend on $s \big ( \mathcal { V } _ { \rho } ^ { \mathrm { s u p } } ( h , \mathcal { E } _ { a v a i l } ) \big )$ . By the Projection Theorem [31, 42] and the Fourier Inversion Formula, (8) is bounded above by
179
+
180
+ $$
181
+ O ( r _ { 1 } ^ { d } r _ { 2 } ^ { d } ) \times \int _ { u \in \mathbb { R } } \big | \mathscr { R } _ { e ^ { \prime } } ( \beta , u ) - \mathscr { R } _ { e } ( \beta , u ) \big | \mathrm { d } u ,
182
+ $$
183
+
184
+ where $\mathcal { R } _ { e } ( \beta , u )$ is the Radon transform of $p _ { h ^ { e } | Y ^ { e } } ( t | y )$ .
185
+
186
+ Step 3. The right-hand side of Formula 8 can be bounded by $O \big ( r _ { 1 } ^ { d } r _ { 2 } ^ { d } s \big ( \mathcal { V } _ { \rho } ^ { \mathrm { s u p } } ( h , \mathcal { E } _ { a v a i l } ) \big ) \big )$ . We finish the proof by selecting appropriate $r _ { 1 }$ and $r _ { 2 }$ to balance the rate of the dominant term and other minor terms. For more details, please see Appendix 2 for the complete proofs.
187
+
188
+ Now we turn to the lower bound of $\operatorname { e r r } ( f )$
189
+
190
+ Theorem 4.3 (Lower Bound). Consider 0-1 loss: $\ell ( \hat { y } , y ) = \mathbb { I } ( \hat { y } \neq y )$ . For any $\delta > 0$ and any exps.t. $k x \leq s ( x ) < + \infty , x \in [ 0 , t ]$ $\begin{array} { r } { s _ { + } ^ { \prime } ( 0 ) \triangleq \operatorname* { l i m } _ { x \to 0 ^ { + } } \frac { s ( x ) - s ( 0 ) } { x } \in ( 1 , + \infty ) } \end{array}$ s(x)−s(0) ∈ (1, +∞); 2) exists k > 1, t > 0, $C _ { 0 }$ $O O D$ generaliz $( \mathcal { E } _ { a v a i l } , \mathcal { E } _ { a l l } )$ that is $( s ( \cdot ) , \delta )$ -learnable under linear feature space $\Phi$ w.r.t symmetric $K L$ -divergence $\rho$ , s.t. $\forall \varepsilon \ \in \ [ 0 , \frac { t } { 2 } ] .$ , the optimal classifier $f$ satisfying $\mathcal { V } ^ { s u p } ( h , \mathcal { E } _ { a v a i l } ) = \varepsilon$ will have the OOD generalization error lower bounded by
191
+
192
+ $$
193
+ \mathrm { e r r } ( f ) \geq C _ { 0 } \cdot s ( \mathcal { V } ^ { s u p } ( h , \mathcal { E } _ { a v a i l } ) ) .
194
+ $$
195
+
196
+ Theorem 4.3 shows that $\operatorname { e r r } ( f )$ of optimal classifier $f$ is lower bounded by its variation. Here “optimal” means the classifier that minimize $\mathcal { L } ( f , \mathcal { E } _ { a v a i l } )$ . Altogether, the above three theorems offer a bidirectional control of OOD generalization error, showing that our formulation can offer a fine-grained description of most OOD generalization problem in a theoretical way. To pursue a good OOD performance, OOD algorithm should focus on improving predictive performance on $\mathcal { E } _ { a v a i l }$ and controlling the variation $\mathcal { V } ^ { \mathrm { s u p } } ( h , \mathcal { E } _ { a v a i l } )$ simultaneously. Note that this bound starts from population error, and we call for future works to combine our generalization bound and traditional bound from data samples to population error, giving a more complete characterization of the problem.
197
+
198
+ # 5 Variation as a Factor of Model Selection Criterion
199
+
200
+ As is pointed out in [21], model selection has a significant effect on domain generalization, and any OOD algorithm without a model selection criterion is not complete. [21] trained more than 45,900 models with different algorithms, and results show that when traditional selection methods are applied, none of OOD algorithms can outperform ERM [58] by a significant margin. This result is not strange, since traditional selection methods focus mainly on (validation) accuracy, which is biased in OOD generalization [21, 63]. A very typical example is Colored MNIST [5], where the image is colored according to the label, but the relationship varies across domains. As explained in [5], ERM principle will only capture this spurious feature (color) and performs badly in ${ \mathcal { E } } _ { a l l }$ . Since ERM is exactly minimizing loss in $\mathcal { E } _ { a v a i l }$ , any model selection method using validation accuracy alone is likely to choose ERM rather than any other OOD algorithm [63]. Thus no algorithm will have a significant improvement compared to ERM.
201
+
202
+ A natural question arises: what else can we use, in addition to accuracy? Theorem 4.1 points out that, learning feature with small variation across $\mathcal { E } _ { a v a i l }$ is important for decreasing OOD generalization error. Once a model $f$ achieves a small $\mathcal { V } ^ { \mathrm { s u p } } ( h , \mathcal { E } _ { a v a i l } )$ , then $\operatorname { e r r } ( f )$ will be small. If the validation accuracy is also high, we shall know that the OOD accuracy will remain high. To this end, we propose our heuristic selection criterion (Algorithm 1). Instead of considering validation accuracy alone, we combine it with feature variation and select the model with high validation accuracy as well as low variation.
203
+
204
+ # Algorithm 1: Model Selection
205
+
206
+ Input: available dataset $\mathcal { X } _ { a v a i l } = ( \mathcal { X } _ { t r a i n } , \mathcal { X } _ { v a l } )$ , candidate models set $\mathcal { M }$ , var_acc_rate $r _ { 0 }$ .
207
+ for $f = g \circ h$ in $\mathcal { M }$ do for $i$ in $[ d ]$ do $\hat { \mathcal { V } } _ { i } \gets \operatorname* { m a x } _ { y \in \mathcal { V } , \mathcal { X } ^ { e } \neq \mathcal { X } ^ { e ^ { \prime } } \in \mathcal { X } _ { a v a i l } }$ Total Variation $( \mathbb { P } ( \phi _ { i } ^ { e } | y ) , \mathbb { P } ( \phi _ { i } ^ { e ^ { \prime } } | y ) )$ ; .Use GPU KDE end $\mathcal { V } _ { f } \gets \mathrm { m e a n } _ { i \in [ d ] } \hat { \mathcal { V } } _ { i }$ $\operatorname { A c c } _ { f } $ compute validation accuracy of $f$ using $\mathcal { X } _ { v a l }$
208
+ end
209
+ Retur ${ \mathfrak { n } } \operatorname { a r g m a x } _ { f \in { \mathcal { M } } } ( \operatorname { A c c } _ { f } - r _ { 0 } \mathcal { V } _ { f } )$
210
+
211
+ We briefly explain Algorithm 1 here. For each candidate model, we calculate its variation using the average of each feature’s variation, i.e., $\begin{array} { r } { \frac { 1 } { d } \sum _ { i \in [ d ] } \mathcal { V } ( \phi _ { i } , \mathcal { X } _ { a v a i l } ) } \end{array}$ . When deriving the bounds, we use $\mathcal { V } ^ { \mathrm { s u p } }$ instead of their average because we need to consider the worst case, i.e., the worst top model. In practice, we find out that the average of $\mathcal { V } ( \phi _ { i } , \mathcal { X } _ { a v a i l } )$ is enough to improve selection.
212
+
213
+ Our criterion of model selection is
214
+
215
+ $$
216
+ \operatorname { A c c } _ { f } { - r _ { 0 } \gamma _ { f } } ,
217
+ $$
218
+
219
+ i.e., we select a model with high validation accuracy and low variation simultaneously. Here $r _ { 0 }$ is a hyper-parameter representing the concrete relationship between $\operatorname { e r r } ( f )$ and $\mathcal { V } _ { f }$ . Although we have already used one hyper-parameter to help select multiple hyper-parameter combinations, it is natural to ask whether we can further get rid of the selection of $r _ { 0 }$ . Since $r _ { 0 }$ represents the relationship between variation and accuracy, which is actually determined by the unknown expansion function, explicitly calculating $r _ { 0 }$ is not possible. However, we can empirically estimate $r _ { 0 }$ using $\begin{array} { r } { r _ { 0 } = \frac { \mathrm { S t d } _ { f \in \hat { \mathcal { M } } } \mathrm { A c c } _ { f } } { \mathrm { S t d } _ { f \in \hat { \mathcal { M } } } \mathcal { V } _ { f } } } \end{array}$ where $\hat { \mathcal { M } } \subset \mathcal { M }$ is the model with not bad validation accuracy. We do not use the whole set $\mathcal { M }$ because some OOD algorithms will perform extremely bad when the penalty is huge, and these models will influence our estimation of the ratio. Since high validation means large informativeness in learned features, the use of $\hat { \mathcal { M } }$ is an implicit application of informative assumption.
220
+
221
+ As shown in Section 6.1, our method can select models with higher OOD accuracy in various OOD datasets. We also explain in Appendix 3 why our method can outperform the traditional method in Color MNIST, where the dataset is hand-make and simple enough to calculate the expansion function.
222
+
223
+ # 6 Experiments
224
+
225
+ In this section, we conduct experiments to compare our model selection criterion (Section 5) with the baseline method5 [21]. Since both the variation and informativeness in Definition 3.1 are based on one-dimensional features, we can directly estimate these quantities feature-by-feature and design model selection method based on them. To verify the existence of the expansion function and to see what it’s like in a real-world dataset, we plot nearly 2 million features trained in a common-used OOD dataset and compute their variation and informativeness. We then draw the expansion function for this problem.
226
+
227
+ # 6.1 Experiments on Model Selection
228
+
229
+ In this section, we conduct experiments to compare the performance of models selected by our method and by validation accuracy. We train models on different datasets, different $\mathcal { E } _ { a v a i l }$ , and select models according to a different selection criteria. We then compare the OOD accuracy of selected models.
230
+
231
+ Settings We train our model on three benchmark OOD datasets (PACS [34], OfficeHome [59], VLCS [57]) and consider all possible selections of $( \mathcal { E } _ { a v a i l } , \mathcal { E } _ { a l l } )$ . We choose ResNet–50 as our network architecture. We use ERM [58] and four common-used OOD algorithms (CORAL [55], Inter-domain Mixup [62], Group DRO [51], and IRM [5]). For each environment setup, we train 200 models using different algorithms, penalties, learning rates, and epoch. After training, we employ different selection methods and compare the OOD accuracy of the selected models. As stated in Section 5, we use the standard deviation of $\nu$ and validation accuracy in $\hat { \mathcal { M } }$ to estimate $r _ { 0 }$ , where ${ \hat { \mathcal { M } } } = \{ f \in { \mathcal { M } } : \operatorname { A c c } _ { f } \geq \operatorname* { m a x } _ { \hat { f } } \operatorname { A c c } _ { \hat { f } } - 0 . 1 \}$ . Note that calculating $\mathcal { V } ( \phi _ { i } , \mathcal { X } _ { a v a i l } )$ takes calculus many times, so we design a parallel GPU kernel density estimation to speed up the whole process a hundred times and manage to finish one model in seconds. For more details about the experiments, see Appendix 4.
232
+
233
+ Table 1: Model Selection Result. “Env” denotes the unseen domain during training. “Val” denotes the OOD accuracy of model selected by validation accuracy.
234
+
235
+ <table><tr><td rowspan="3">PACS</td><td>Env</td><td>A</td><td>C</td><td>P</td><td>S</td><td>avg</td><td>acc inc</td></tr><tr><td>Val</td><td>85.20%</td><td>80.42%</td><td>96.17%</td><td>77.86%</td><td>84.91%</td><td>1</td></tr><tr><td>Ours</td><td>88.72%</td><td>81.74%</td><td>96.83%</td><td>79.00%</td><td>86.57%</td><td>1.66%↑</td></tr><tr><td rowspan="3">OfficeHome</td><td>Env</td><td>A</td><td>C</td><td>P</td><td>R</td><td>avg</td><td>acc inc</td></tr><tr><td>Val</td><td>61.85%</td><td>55.56%</td><td>74.72%</td><td>76.25%</td><td>67.09%</td><td>-</td></tr><tr><td>Ours</td><td>65.76%</td><td>55.07%</td><td>75.20%</td><td>76.31%</td><td>68.09%</td><td>1.00%↑</td></tr><tr><td rowspan="3">VLCS</td><td>Env</td><td>C</td><td>L</td><td>S</td><td>V</td><td>avg</td><td>acc inc</td></tr><tr><td>Val</td><td>97.46%</td><td>64.83%</td><td>69.50%6</td><td>70.97%</td><td>75.69%</td><td>1</td></tr><tr><td>Ours</td><td>97.81%</td><td>66.98%</td><td>69.50%</td><td>70.97%</td><td>76.32%</td><td>0.63%↑</td></tr></table>
236
+
237
+ Result We summarize our experimental results in Table 1. For each environment setup, we select the best model according to Algorithm 1 and validation accuracy. The results show that on all datasets, our selection criterion significantly outperforms the validation accuracy in average OOD accuracy. For a more detailed comparison, our method improves the OOD accuracy in most of the 12 setups. Our experiments demonstrate that our criterion can help select models with higher OOD accuracy.
238
+
239
+ ![](images/c514b7d4698237506faccba2638407d1bd68cc2a61ac79a424f03d7abc31b464.jpg)
240
+ Figure 1: The expansion function of the OOD generalization problem on Office-Home. The $\mathbf { X } ^ { } -$ -axis stands for $\mathcal { V } ( \phi , \mathcal { E } _ { a v a i l } )$ and the y-axis for $\mathcal { V } ( \phi , \mathcal { E } _ { a l l } )$ . There are approximately 2 million points in each image, with each point representing a feature, and its color represents its informativeness. The solid red line stands for the expansion function under the corresponding $\delta$ . When $\delta$ increases, the expansion function decreases. When $\delta = 0$ , no expansion function can make it learnable.
241
+
242
+ One may wonder if the expansion function really exists and what it will look like for a real-world OOD generalization task. In this section, we consider the OOD dataset Office-Home [59]. We explicitly plot millions of features’ $\mathcal { V } _ { \rho } \big ( \phi , \mathcal { E } _ { a v a i l } \big )$ and $\mathcal { V } _ { \rho } \big ( \phi , \mathcal { E } _ { a l l } \big )$ with Total Variation $\rho$ to see what the expansion function is like in this task. We take the architecture as ResNet-50 [23], and we trained thousands of models with more than five algorithms, obtaining about 2 million features. The results are in Figure 1.
243
+
244
+ Existence of $s ( \cdot )$ . When $\delta = 0$ , some non-informative features are nearly 0-invariant across $\mathcal { E } _ { a v a i l }$ but are varying across ${ \mathcal { E } } _ { a l l }$ , so no expansion function can make this task learnable, i.e., this task is NOT $( s ( \cdot ) , 0 )$ for any expansion function. But as $\delta$ increases, only informative features are left, and now we can find appropriate $s ( \cdot )$ to make it learnable. We can clearly realize from the figure that $s ( \cdot )$ do exist when $\delta \geq 0 . 1 5$ .
245
+
246
+ Trade-off between $s ( \cdot )$ and $\delta$ . The second phenomenon is that the slope of $s ( \cdot )$ decreases as $\delta$ increases, showing a trade-off between $s ( \cdot )$ and $\delta$ . Although this trade-off comes naturally from the definition of learnability, it has a deep meaning. As is shown in Section 4, $\operatorname { e r r } ( f )$ is bounded by $O ( s ( \varepsilon ) )$ where $\varepsilon$ is the variation of the model. To make the bound tighter, a natural idea is to choose a flatter $s ( \cdot )$ . However, a flatter $s ( \cdot )$ corresponds to a larger $\delta$ . Typically, learning a model to meet this higher informativeness requirement is more difficult, and it is possible that the algorithm achieves this by capturing more domain-specific features, which will therefore increase the variation of the model, $\varepsilon$ . As a result, we are not sure whether $s ( \varepsilon )$ will increase or decrease. We believe this is also the essence of model selection: i.e., to trade-off between the variation and informativeness of a model, which is done in Formula 11.
247
+
248
+ # 7 More Related Works
249
+
250
+ Domain generalization [12, 39], or OOD generalization, has drawn much attention recently [21, 30]. The goal is to learn a model from several training domains and expect good performance on unseen test domains. [60, 64] offer a comprehensive survey. A popular solution is to extract domain-invariant feature representation. [45] and [49] proved that when the model is linear, the invariance under training domains can help discover invariant features on test domains. [5] introduces the invariant prediction into neural networks and proposes a practical objective function. After that, a lot of works arise from the view of causal discovery, distributional robustness and conditional independence [1, 7, 16, 15, 26, 32, 33, 43, 51, 61]. On the other hand, some works point out the weakness of existing methods from the theoretical and experimental perspectives [2, 21, 29, 41, 50].
251
+
252
+ The OOD generalization requires restrictions on how the target domains may differ. A straightforward approach is to define a set of test domains around the training domain using some distribution distance measure [6, 13, 19, 25, 51, 53, 54, 61]. Another feasible route is the causal framework which is robust to the test distributions caused by interventions[44, 46] on variables, e.g., [5, 24, 36, 37, 40, 47, 49, 52]. The principle of these methods is that a causal model is invariant and can achieve the minimal worstcase risk [4, 22, 44, 49]. Since the test distribution is unknown, additional assumptions are required for generalization analysis. [12, 18, 39] assume that the domains are generated from a hyper-distribution and measures the average risk estimation error bound. [3] derives a risk bound for any linear combination of training domains. For more related results in domain adaptation, a closed field where the test domains can be seen but are unlabeled, please see [9, 10, 28].
253
+
254
+ # 8 Conclusion
255
+
256
+ In this paper, we take the first step towards a rigorous theoretical framework of OOD generalization. We propose a mathematical formulation to characterize the learnability of OOD generalization problem. Based on our framework, we prove generalization bounds and give guarantees for OOD generalization error. Inspired by our bound, we design a model selection criterion to check the model’s variation and validation accuracy simultaneously. Experiments show that our metric has a significant advantage over the traditional selection method.
257
+
258
+ # Acknowledgments and Disclosure of Funding
259
+
260
+ Authors are thankful to the anonymous reviewers for their helpful and constructive feedback.
261
+
262
+ # References
263
+
264
+ [1] Kartik Ahuja, Karthikeyan Shanmugam, Kush Varshney, and Amit Dhurandhar. Invariant risk minimization games. arXiv preprint arXiv:2002.04692, 2020.
265
+ [2] Kartik Ahuja, Jun Wang, Amit Dhurandhar, Karthikeyan Shanmugam, and Kush R Varshney. Empirical or invariant risk minimization? a sample complexity perspective. arXiv preprint arXiv:2010.16412, 2020.
266
+ [3] Isabela Albuquerque, João Monteiro, Tiago H Falk, and Ioannis Mitliagkas. Adversarial target-invariant representation learning for domain generalization. arXiv preprint arXiv:1911.00804, 2019.
267
+ [4] John Aldrich. Autonomy. Oxford Economic Papers, 41(1):15–34, 1989.
268
+ [5] Martin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019.
269
+ [6] J Andrew Bagnell. Robust supervised learning. In Proceedings of the national conference on artificial intelligence, volume 20, page 714. Menlo Park, CA; Cambridge, MA; London; AAAI Press; MIT Press; 1999, 2005.
270
+ [7] Haoyue Bai, Rui Sun, Lanqing Hong, Fengwei Zhou, Nanyang Ye, Han-Jia Ye, S-H Gary Chan, and Zhenguo Li. Decaug: Out-of-distribution generalization via decomposed feature representation and semantic augmentation. arXiv preprint arXiv:2012.09382, 2020.
271
+ [8] Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In Proceedings of the European Conference on Computer Vision (ECCV), September 2018.
272
+ [9] Shai Ben-David, John Blitzer, Koby Crammer, Fernando Pereira, et al. Analysis of representations for domain adaptation. Advances in neural information processing systems, 19:137, 2007.
273
+ [10] Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. A theory of learning from different domains. Machine learning, 79(1):151–175, 2010.
274
+ [11] Yoshua Bengio, Tristan Deleu, Nasim Rahaman, Nan Rosemary Ke, Sebastien Lachapelle, Olexa Bilaniuk, Anirudh Goyal, and Christopher Pal. A meta-transfer objective for learning to disentangle causal mechanisms. In International Conference on Learning Representations, 2019.
275
+ [12] Gilles Blanchard, Gyemin Lee, and Clayton Scott. Generalizing from several related classification tasks to a new unlabeled sample. Advances in neural information processing systems, 24:2178–2186, 2011.
276
+ [13] Jose Blanchet, Yang Kang, Karthyek Murthy, and Fan Zhang. Data-driven optimal transport cost selection for distributionally robust optimization. In 2019 Winter Simulation Conference (WSC), pages 3740–3751. IEEE, 2019.
277
+ [14] Laurent Cavalier. Efficient estimation of a density in a problem of tomography. Annals of Statistics, pages 630–647, 2000.
278
+ [15] Shiyu Chang, Yang Zhang, Mo Yu, and Tommi Jaakkola. Invariant rationalization. In International Conference on Machine Learning, pages 1448–1458. PMLR, 2020.
279
+ [16] Elliot Creager, Joern-Henrik Jacobsen, and Richard Zemel. Exchanging lessons between algorithmic fairness and domain generalization, 2021. URL https://openreview.net/forum?id=DC1Im3MkGG.
280
+ [17] Alex J DeGrave, Joseph D Janizek, and Su-In Lee. Ai for radiographic covid-19 detection selects shortcuts over signal. medRxiv, 2020.
281
+ [18] Aniket Anand Deshmukh, Yunwen Lei, Srinagesh Sharma, Urun Dogan, James W Cutler, and Clayton Scott. A generalization error bound for multi-class domain generalization. arXiv preprint arXiv:1905.10392, 2019.
282
+ [19] Peyman Mohajerin Esfahani and Daniel Kuhn. Data-driven distributionally robust optimization using the wasserstein metric: Performance guarantees and tractable reformulations. Mathematical Programming, 171(1-2):115–166, 2018.
283
+ [20] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The journal of machine learning research, 17(1):2096–2030, 2016.
284
+ [21] Ishaan Gulrajani and David Lopez-Paz. In search of lost domain generalization. arXiv preprint arXiv:2007.01434, 2020.
285
+ [22] Trygve Haavelmo. The probability approach in econometrics. Econometrica: Journal of the Econometric Society, pages iii–115, 1944.
286
+ [23] 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 (CVPR), June 2016.
287
+ [24] Christina Heinze-Deml and Nicolai Meinshausen. Conditional variance penalties and domain shift robustness. Machine Learning, 110(2):303–348, 2021.
288
+ [25] Zhaolin Hu and L Jeff Hong. Kullback-leibler divergence constrained distributionally robust optimization. Available at Optimization Online, 2013.
289
+ [26] Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Domain extrapolation via regret minimization. arXiv preprint arXiv:2006.03908, 2020.
290
+ [27] Wengong Jin, Regina Barzilay, and Tommi S. Jaakkola. Enforcing predictive invariance across structured biomedical domains, 2021. URL https://openreview.net/forum?id $=$ JywMsiz_NtO.
291
+ [28] Fredrik D Johansson, David Sontag, and Rajesh Ranganath. Support and invertibility in domain-invariant representations. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 527–536. PMLR, 2019.
292
+ [29] Pritish Kamath, Akilesh Tangella, Danica J Sutherland, and Nathan Srebro. Does invariant risk minimization capture invariance? arXiv preprint arXiv:2101.01134, 2021.
293
+ [30] Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Weihua Hu, Michihiro Yasunaga, Richard Lanas Phillips, Sara Beery, et al. Wilds: A benchmark of in-the-wild distribution shifts. arXiv preprint arXiv:2012.07421, 2020.
294
+ [31] Aleksandr Petrovich Korostelev and Alexandre B Tsybakov. Minimax theory of image reconstruction, volume 82. Springer Science & Business Media, 2012.
295
+ [32] Masanori Koyama and Shoichiro Yamaguchi. Out-of-distribution generalization with maximal invariant predictor. arXiv preprint arXiv:2008.01883, 2020.
296
+ [33] David Krueger, Ethan Caballero, Joern-Henrik Jacobsen, Amy Zhang, Jonathan Binas, Remi Le Priol, and Aaron Courville. Out-of-distribution generalization via risk extrapolation (rex). arXiv preprint arXiv:2003.00688, 2020.
297
+ [34] Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M Hospedales. Deeper, broader and artier domain generalization. In Proceedings of the IEEE international conference on computer vision, pages 5542–5550, 2017.
298
+ [35] Haoliang Li, Sinno Jialin Pan, Shiqi Wang, and Alex C Kot. Domain generalization with adversarial feature learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5400–5409, 2018.
299
+ [36] Sara Magliacane, Thijs van Ommen, Tom Claassen, Stephan Bongers, Philip Versteeg, and Joris M Mooij. Domain adaptation by using causal inference to predict invariant conditional distributions. arXiv preprint arXiv:1707.06422, 2017.
300
+ [37] Nicolai Meinshausen. Causality from a distributional robustness point of view. In 2018 IEEE Data Science Workshop (DSW), pages 6–10. IEEE, 2018.
301
+ [38] Jose G Moreno-Torres, Troy Raeder, Rocío Alaiz-Rodríguez, Nitesh V Chawla, and Francisco Herrera. A unifying view on dataset shift in classification. Pattern recognition, 45(1):521–530, 2012.
302
+ [39] Krikamol Muandet, David Balduzzi, and Bernhard Schölkopf. Domain generalization via invariant feature representation. In International Conference on Machine Learning, pages 10–18, 2013.
303
+ [40] Jens Müller, Robert Schmier, Lynton Ardizzone, Carsten Rother, and Ullrich Köthe. Learning robust models using the principle of independent causal mechanisms. arXiv preprint arXiv:2010.07167, 2020.
304
+ [41] Vaishnavh Nagarajan, Anders Andreassen, and Behnam Neyshabur. Understanding the failure modes of out-of-distribution generalization. arXiv preprint arXiv:2010.15775, 2020.
305
+ [42] Frank Natterer. The mathematics of computerized tomography. SIAM, 2001.
306
+ [43] Giambattista Parascandolo, Alexander Neitz, Antonio Orvieto, Luigi Gresele, and Bernhard Schölkopf. Learning explanations that are hard to vary. arXiv preprint arXiv:2009.00329, 2020.
307
+ [44] Judea Pearl. Causality. Cambridge university press, 2009.
308
+ [45] Jonas Peters, Peter Bühlmann, and Nicolai Meinshausen. Causal inference by using invariant prediction: identification and confidence intervals. Journal of the Royal Statistical Society. Series B (Statistical Methodology), pages 947–1012, 2016.
309
+ [46] Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. Elements of causal inference: foundations and learning algorithms. The MIT Press, 2017.
310
+ [47] Niklas Pfister, Evan G Williams, Jonas Peters, Ruedi Aebersold, and Peter Bühlmann. Stabilizing variable selection and regression. arXiv preprint arXiv:1911.01850, 2019.
311
+ [48] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In International Conference on Machine Learning, pages 5389–5400. PMLR, 2019.
312
+ [49] Mateo Rojas-Carulla, Bernhard Schölkopf, Richard Turner, and Jonas Peters. Invariant models for causal transfer learning. The Journal of Machine Learning Research, 19(1):1309–1342, 2018.
313
+ [50] Elan Rosenfeld, Pradeep Ravikumar, and Andrej Risteski. The risks of invariant risk minimization. arXiv preprint arXiv:2010.05761, 2020.
314
+ [51] Shiori Sagawa, Pang Wei Koh, Tatsunori B Hashimoto, and Percy Liang. Distributionally robust neural networks. In International Conference on Learning Representations, 2019.
315
+ [52] Bernhard Schölkopf, Dominik Janzing, Jonas Peters, Eleni Sgouritsa, Kun Zhang, and Joris Mooij. On causal and anticausal learning. arXiv preprint arXiv:1206.6471, 2012.
316
+ [53] Soroosh Shafieezadeh Abadeh, Peyman M Mohajerin Esfahani, and Daniel Kuhn. Distributionally robust logistic regression. Advances in Neural Information Processing Systems, 28:1576–1584, 2015.
317
+ [54] Aman Sinha, Hongseok Namkoong, and John Duchi. Certifying some distributional robustness with principled adversarial training. In International Conference on Learning Representations, 2018.
318
+ [55] Baochen Sun and Kate Saenko. Deep coral: Correlation alignment for deep domain adaptation. In European conference on computer vision, pages 443–450. Springer, 2016.
319
+ [56] Rohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini, Benjamin Recht, and Ludwig Schmidt. Measuring robustness to natural distribution shifts in image classification. Advances in Neural Information Processing Systems, 33, 2020.
320
+ [57] Antonio Torralba and Alexei A Efros. Unbiased look at dataset bias. In CVPR 2011, pages 1521–1528. IEEE, 2011.
321
+ [58] Vladimir Vapnik. Principles of risk minimization for learning theory. In Advances in neural information processing systems, pages 831–838, 1992.
322
+ [59] Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5018–5027, 2017.
323
+ [60] Jindong Wang, Cuiling Lan, Chang Liu, Yidong Ouyang, Wenjun Zeng, and Tao Qin. Generalizing to unseen domains: A survey on domain generalization. arXiv preprint arXiv:2103.03097, 2021.
324
+ [61] Chuanlong Xie, Fei Chen, Yue Liu, and Zhenguo Li. Risk variance penalization. arXiv preprint arXiv:2006.07544, 2020.
325
+ [62] Shen Yan, Huan Song, Nanxiang Li, Lincan Zou, and Liu Ren. Improve unsupervised domain adaptation with mixup training. arXiv preprint arXiv:2001.00677, 2020.
326
+ [63] Haotian Ye, Chuanlong Xie, Yue Liu, and Zhenguo Li. Out-of-distribution generalization analysis via influence function. arXiv preprint arXiv:2101.08521, 2021.
327
+ [64] Kaiyang Zhou, Ziwei Liu, Yu Qiao, Tao Xiang, and Chen Change Loy. Domain generalization: A survey. arXiv preprint arXiv:2103.02503, 2021.
328
+
329
+ # Checklist
330
+
331
+ 1. For all authors...
332
+
333
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
334
+ (b) Did you describe the limitations of your work? [Yes] See Section 5.
335
+ (c) Did you discuss any potential negative societal impacts of your work? [N/A]
336
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
337
+
338
+ 2. If you are including theoretical results...
339
+
340
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes]
341
+
342
+ 3. If you ran experiments...
343
+
344
+ (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]
345
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] In the appendix.
346
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A]
347
+ (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]
348
+
349
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
350
+
351
+ (a) If your work uses existing assets, did you cite the creators? [Yes] We use [21] and we cite it in Section 6.
352
+ (b) Did you mention the license of the assets? [N/A]
353
+ (c) Did you include any new assets either in the supplemental material or as a URL? [No]
354
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes]
355
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
356
+
357
+ 5. If you used crowdsourcing or conducted research with human subjects...
358
+
359
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
360
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
361
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/kFJoj7zuDVi/kFJoj7zuDVi_content_list.json ADDED
@@ -0,0 +1,1490 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Towards a Theoretical Framework of Out-of-Distribution Generalization ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 272,
8
+ 122,
9
+ 725,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Chuanlong XieHuawei Noah’s Ark Labxie.chuanlong@huawei.com",
17
+ "bbox": [
18
+ 377,
19
+ 215,
20
+ 584,
21
+ 257
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Haotian Ye \nPeking University \nPazhou Lab \nhaotianye@pku.edu.cn ",
28
+ "bbox": [
29
+ 184,
30
+ 215,
31
+ 359,
32
+ 271
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Tianle Cai Peking University caitianle1998@pku.edu.cn ",
39
+ "bbox": [
40
+ 604,
41
+ 215,
42
+ 812,
43
+ 257
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Ruichen Li ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 218,
53
+ 292,
54
+ 297,
55
+ 305
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Zhenguo Li ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 400,
65
+ 292,
66
+ 483,
67
+ 306
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Liwei Wang ",
74
+ "text_level": 1,
75
+ "bbox": [
76
+ 637,
77
+ 292,
78
+ 725,
79
+ 306
80
+ ],
81
+ "page_idx": 0
82
+ },
83
+ {
84
+ "type": "text",
85
+ "text": "Peking University xk-lrc@pku.edu.cn ",
86
+ "bbox": [
87
+ 184,
88
+ 306,
89
+ 331,
90
+ 333
91
+ ],
92
+ "page_idx": 0
93
+ },
94
+ {
95
+ "type": "text",
96
+ "text": "Huawei Noah’s Ark Lab Li.Zhenguo@huawei.com ",
97
+ "bbox": [
98
+ 352,
99
+ 306,
100
+ 532,
101
+ 333
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "Key Laboratory of Machine Perception, MOE, School of EECS, Institute for Artificial Intelligence, Peking University wanglw@cis.pku.edu.cn ",
108
+ "bbox": [
109
+ 552,
110
+ 305,
111
+ 812,
112
+ 376
113
+ ],
114
+ "page_idx": 0
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "Abstract ",
119
+ "text_level": 1,
120
+ "bbox": [
121
+ 462,
122
+ 411,
123
+ 535,
124
+ 426
125
+ ],
126
+ "page_idx": 0
127
+ },
128
+ {
129
+ "type": "text",
130
+ "text": "Generalization to out-of-distribution (OOD) data is one of the central problems in modern machine learning. Recently, there is a surge of attempts to propose algorithms that mainly build upon the idea of extracting invariant features. Although intuitively reasonable, theoretical understanding of what kind of invariance can guarantee OOD generalization is still limited, and generalization to arbitrary out-of-distribution is clearly impossible. In this work, we take the first step towards rigorous and quantitative definitions of 1) what is OOD; and 2) what does it mean by saying an OOD problem is learnable. We also introduce a new concept of expansion function, which characterizes to what extent the variance is amplified in the test domains over the training domains, and therefore give a quantitative meaning of invariant features. Based on these, we prove OOD generalization error bounds. It turns out that OOD generalization largely depends on the expansion function. As recently pointed out by [21], any OOD learning algorithm without a model selection module is incomplete. Our theory naturally induces a model selection criterion. Extensive experiments on benchmark OOD datasets demonstrate that our model selection criterion has a significant advantage over baselines. ",
131
+ "bbox": [
132
+ 233,
133
+ 441,
134
+ 766,
135
+ 662
136
+ ],
137
+ "page_idx": 0
138
+ },
139
+ {
140
+ "type": "text",
141
+ "text": "1 Introduction ",
142
+ "text_level": 1,
143
+ "bbox": [
144
+ 174,
145
+ 686,
146
+ 310,
147
+ 704
148
+ ],
149
+ "page_idx": 0
150
+ },
151
+ {
152
+ "type": "text",
153
+ "text": "One of the most fundamental assumptions of classic supervised learning is the “i.i.d. assumption”, which states that the training and the test data are independent and identically distributed. However, this assumption can be easily violated in a reality [8, 10, 11, 17, 38, 48, 56] where the test data usually have a different distribution than the training data. This motivates the research on the out-ofdistribution (OOD) generalization, or domain generalization problem, which assumes access only to data drawn from a set $\\mathcal { E } _ { a v a i l }$ of available domains during training, and the goal is to generalize to a larger domain set ${ \\mathcal { E } } _ { a l l }$ including unseen domains. ",
154
+ "bbox": [
155
+ 174,
156
+ 718,
157
+ 825,
158
+ 815
159
+ ],
160
+ "page_idx": 0
161
+ },
162
+ {
163
+ "type": "text",
164
+ "text": "To generalize to OOD data, most existing algorithms attempt to learn features that are invariant to a certain extent across training domains in the hope that such invariance also holds in unseen domains. For example, distributional matching-based methods [20, 35, 55] seek to learn features that have the same distribution across different domains; IRM [5] and its variants [1, 32, 33] learn feature representations such that the optimal linear classifier on top of the representation matches across domains. ",
165
+ "bbox": [
166
+ 174,
167
+ 821,
168
+ 825,
169
+ 904
170
+ ],
171
+ "page_idx": 0
172
+ },
173
+ {
174
+ "type": "text",
175
+ "text": "35th Conference on Neural Information Processing Systems (NeurIPS 2021). ",
176
+ "bbox": [
177
+ 174,
178
+ 922,
179
+ 629,
180
+ 936
181
+ ],
182
+ "page_idx": 0
183
+ },
184
+ {
185
+ "type": "text",
186
+ "text": "Though the idea of learning invariant features is intuitively reasonable, there is only limited theoretical understanding of what kind of invariance can guarantee OOD generalization. Clearly, generalization to an arbitrary out-of-distribution domain is impossible and in practice, the features can hardly be absolutely invariant from $\\mathcal { E } _ { a v a i l }$ to ${ \\mathcal { E } } _ { a l l }$ unless all the domains are identical. So it is necessary to first formulate what OOD data can be generalized to, or, what is the relation between the available training domain set $\\mathcal { E } _ { a v a i l }$ and the entire domain set ${ \\mathcal { E } } _ { a l l }$ . Meanwhile, to what extent the invariance of features on $\\mathcal { E } _ { a v a i l }$ can be preserved in ${ \\mathcal { E } } _ { a l l }$ should be rigorously characterized. ",
187
+ "bbox": [
188
+ 174,
189
+ 92,
190
+ 825,
191
+ 188
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "In this paper, we take the first step towards a general OOD framework by quantitatively formalizing the relationship between $\\mathcal { E } _ { a v a i l }$ and ${ \\mathcal { E } } _ { a l l }$ in terms of the distributions of features and provide OOD generalization guarantees based on our quantification of the difficulty of OOD generalization problem. Specifically, we first rigorously formulate the intuition of invariant features used in previous works by introducing the “variation” and “informativeness” (Definition 3.1 and 3.2) of each feature. Our theoretical insight can then be informally stated as: for learnable OOD problems, if a feature is informative for the classification task as well as invariant over $\\mathcal { E } _ { a v a i l }$ , then it is still invariant over ${ \\mathcal { E } } _ { a l l }$ . In other words, invariance of informative features in $\\mathcal { E } _ { a v a i l }$ can be preserved in ${ \\mathcal { E } } _ { a l l }$ . We further introduce a class of functions, dubbed expansion function (Definition 3.3), to quantitatively characterize to what extent the variance of features on $\\mathcal { E } _ { a v a i l }$ is amplified on ${ \\mathcal { E } } _ { a l l }$ . ",
198
+ "bbox": [
199
+ 174,
200
+ 194,
201
+ 825,
202
+ 333
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "Based on our formulation, we derive theoretical guarantees on the OOD generalization error, i.e., the gap of largest error between the domain in $\\mathcal { E } _ { a v a i l }$ and domain in ${ \\mathcal { E } } _ { a l l }$ . Specifically, we prove the upper and lower bound of OOD generalization error in terms of the expansion function and the variation of learned features over $\\mathcal { E } _ { a v a i l }$ . Our results theoretically confirm that 1) the expansion function can reflect the difficulty of OOD generalization problem, i.e., problems with more rapidly increasing expansion functions are harder and have worse generalization guarantees; 2) the generalization error gap can tend to zero when the variation of learned features tend to zero, so minimizing the variation in $\\mathcal { E } _ { a v a i l }$ can reduce the generalization error. ",
209
+ "bbox": [
210
+ 174,
211
+ 339,
212
+ 825,
213
+ 449
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "As pointed out by Gulrajani and Lopez-Paz [21], any OOD algorithm without a specified model selection criterion is not complete. Since ${ \\mathcal { E } } _ { a l l }$ is unseen, hyper-parameters can only be chosen according to $\\mathcal { E } _ { a v a i l }$ . Previous selection methods mainly focus on validation accuracy over $\\mathcal { E } _ { a v a i l }$ which is only a biased metric of OOD performance. On the contrary, a promising model selection method should instead be predictive of OOD performance. Inspired by our bounds, we propose a model selection method to select models with high validation accuracy and low variation, which corresponds to the upper bound of OOD error. The introduction of a model’s variation relieves the problem of classic selection methods, in which models that overfit $\\mathcal { E } _ { a v a i l }$ tend to be selected. Experimental results show that our method can outperform baselines and select models with higher OOD accuracy. ",
220
+ "bbox": [
221
+ 174,
222
+ 457,
223
+ 825,
224
+ 594
225
+ ],
226
+ "page_idx": 1
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "Contributions. We summarize our major contributions here: ",
231
+ "bbox": [
232
+ 174,
233
+ 622,
234
+ 583,
235
+ 636
236
+ ],
237
+ "page_idx": 1
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "• We introduce a quantitative and rigorous formulation of OOD generalization problem that characterizes the relation of invariance over the training domain set $\\mathcal { E } _ { a v a i l }$ and test domain set ${ \\mathcal { E } } _ { a l l }$ . The core quantity in our characterization, the expansion function, determines the difficulty of an OOD generalization problem. ",
242
+ "bbox": [
243
+ 173,
244
+ 654,
245
+ 826,
246
+ 709
247
+ ],
248
+ "page_idx": 1
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "• We prove novel OOD generalization error bounds based on our formulation. The upper and lower bounds together indicate that the expansion function well characterizes the OOD generalization ability of features with different levels of variation. ",
253
+ "bbox": [
254
+ 174,
255
+ 724,
256
+ 823,
257
+ 766
258
+ ],
259
+ "page_idx": 1
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "• We design a model selection criterion that is inspired by our generalization bounds. Our criterion takes both the performance on training domains and the variation of models into consideration and is predictive of OOD performance according to our bounds. Experimental results demonstrate our selection criterion can choose models with higher OOD accuracy. ",
264
+ "bbox": [
265
+ 173,
266
+ 782,
267
+ 825,
268
+ 838
269
+ ],
270
+ "page_idx": 1
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "The rest of the paper is organized as follows: Section 2 is our preliminary. In Section 3, we give our theoretical formulation. Section 4 gives our generalization bound. We propose our model selection method in Section 5. In Section 6 we conduct experiments on expansion function and model selection. We review more related works in Section 7 and conclude our work in Section 8. ",
275
+ "bbox": [
276
+ 176,
277
+ 856,
278
+ 825,
279
+ 911
280
+ ],
281
+ "page_idx": 1
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "2 Preliminary ",
286
+ "text_level": 1,
287
+ "bbox": [
288
+ 173,
289
+ 88,
290
+ 305,
291
+ 107
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Throughout the paper, we consider a multi-class classification task $\\mathcal { X } \\to \\mathcal { Y } = \\{ 1 , . . . , K \\}$ .1 Let ${ \\mathcal { E } } _ { a l l }$ be the domain set we want to generalize to, and $\\mathcal { E } _ { a v a i l } \\subseteq \\mathcal { E } _ { a l l }$ be the available domain set, i.e., all domains we have during the training procedure. We denote $( X ^ { e } , Y ^ { e } )$ to be the input-label pair drawn from the data distribution of domain $e$ . The OOD generalization goal is to find a classifier $f ^ { * }$ that minimizes the worst-domain loss on ${ \\mathcal { E } } _ { a l l }$ : ",
298
+ "bbox": [
299
+ 174,
300
+ 119,
301
+ 825,
302
+ 190
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "equation",
308
+ "img_path": "images/92ece3d80a18d8b09d86d490b1aa6271dee39a3b130e884626dc355a67e41bdf.jpg",
309
+ "text": "$$\nf ^ { * } = \\underset { f \\in \\mathcal { F } } { \\mathrm { a r g m i n } } \\mathcal { L } ( \\mathcal { E } _ { a l l } , f ) , \\mathcal { L } ( \\mathcal { E } , f ) \\triangleq \\underset { e \\in \\mathcal { E } } { \\mathrm { m a x } } \\mathbb { E } \\big [ \\ell \\big ( f ( X ^ { e } ) , Y ^ { e } \\big ) \\big ]\n$$",
310
+ "text_format": "latex",
311
+ "bbox": [
312
+ 300,
313
+ 195,
314
+ 696,
315
+ 224
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "where $\\mathcal { F } : \\mathcal { X } \\xrightarrow { } \\mathbb { R } ^ { K }$ is the the hypothetical space and $\\ell ( \\cdot , \\cdot )$ is a loss function. Similar to previous works [5, 16, 27, 33], we assume that $f$ can be decomposed into $g \\circ h$ , where $g \\in \\mathcal { G } : \\mathbb { R } ^ { d } \\mathbb { R } ^ { K }$ is the top classifier and $h : \\mathcal { X } \\mathbb { R } ^ { d }$ is a $d$ -dimensional feature extractor, i.e., ",
322
+ "bbox": [
323
+ 173,
324
+ 232,
325
+ 825,
326
+ 276
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "equation",
332
+ "img_path": "images/ee0a57e21bd4e230b25e434833fe9ced52367d0fd15ac040eda84f95a58b070d.jpg",
333
+ "text": "$$\nh ( x ) = ( \\phi _ { 1 } ( x ) , \\phi _ { 2 } ( x ) , \\ldots , \\phi _ { d } ( x ) ) ^ { \\top } , \\quad \\phi _ { i } \\in \\Phi .\n$$",
334
+ "text_format": "latex",
335
+ "bbox": [
336
+ 323,
337
+ 284,
338
+ 640,
339
+ 303
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Here $\\Phi$ is the set of scalar feature maps which map $\\mathcal { X }$ to $\\mathbb { R }$ and $d$ is fixed. We will call each $\\phi \\in \\Phi$ a feature for simplicity. Given a domain $e$ , we denote the $d$ -dimensional random vector $h ( X ^ { e } )$ as $h ^ { e }$ , one-dimensional feature $\\phi ( X ^ { e } )$ as $\\phi ^ { e }$ , and the conditional distribution of $h ^ { e } , \\phi ^ { e }$ given $Y ^ { e } = y$ as $\\mathbb { P } ( h ^ { e } | y ) , \\mathbb { P } ( \\phi ^ { e } | y )$ . For simplicity, we assume the data distribution is balanced in every domain, i.e., $P ( Y ^ { e } = y ) = \\frac { 1 } { K } , \\forall y \\in \\mathcal { Y } , e \\in \\mathcal { E } _ { a l l }$ . Our framework can be easily extended to the case where the balanced assumption is removed, with an additional term corresponding to the imbalance adding to the generalization bounds. ",
346
+ "bbox": [
347
+ 173,
348
+ 309,
349
+ 826,
350
+ 407
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "3 Framework of OOD Generalization Problem ",
357
+ "text_level": 1,
358
+ "bbox": [
359
+ 173,
360
+ 426,
361
+ 580,
362
+ 444
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "The main challenge of formalizing the OOD generalization problem is to mathematically describe the connection between $\\mathcal { E } _ { a v a i l }$ and ${ \\mathcal { E } } _ { a l l }$ and how generalization depends on this relation. Towards this goal, we introduce several quantities to characterize the relation of feature distributions over different domains and bridge $\\mathcal { E } _ { a v a i l }$ and ${ \\mathcal { E } } _ { a l l }$ by expansion function (Definition 3.3) over the quantities we have introduced. Our framework is motivated by the understanding that, in an OOD generalization task, certain “property” of “good” features in $\\mathcal { E } _ { a v a i l }$ should be “preserved” in ${ \\mathcal { E } } _ { a l l }$ (the reason is described in Section 1). In Section 3.1, we will go into details on what we mean by “property” (variation, Definition 3.1), “good” (informativeness, Definition 3.2), and “preserved” (measured by expansion function). In Section 6.2, we further illustrate the key concepts in our framework by a real-world OOD problem. ",
369
+ "bbox": [
370
+ 173,
371
+ 457,
372
+ 826,
373
+ 597
374
+ ],
375
+ "page_idx": 2
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "3.1 Formalizing OOD Problem by Quantifying Feature Distribution ",
380
+ "text_level": 1,
381
+ "bbox": [
382
+ 174,
383
+ 612,
384
+ 658,
385
+ 628
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "We first introduce the concepts “variation\" and “informativeness\" of a feature $\\phi$ . The first one is what we expect to be preserved in ${ \\mathcal { E } } _ { a l l }$ and the second one characterizes what features will be considered. Specifically, let $\\rho ( \\mathbb { P } , \\mathbb { Q } )$ be a symmetric “distance” of two distributions. Note that $\\rho$ can have many choices, like $L _ { 2 }$ Distance, Total Variation and symmetric KL-divergence, etc. The variation and informativeness are defined as follows: ",
392
+ "bbox": [
393
+ 173,
394
+ 638,
395
+ 825,
396
+ 708
397
+ ],
398
+ "page_idx": 2
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "Definition 3.1 (Variation). The variation of feature $\\phi ( \\cdot )$ across a domain set $\\mathcal { E }$ is ",
403
+ "bbox": [
404
+ 173,
405
+ 712,
406
+ 705,
407
+ 728
408
+ ],
409
+ "page_idx": 2
410
+ },
411
+ {
412
+ "type": "equation",
413
+ "img_path": "images/b5e6d90d4f6e707f43d0a5fd09cd50b46b59f7364145ae7e58a3a5a8d9599fbf.jpg",
414
+ "text": "$$\n\\mathcal { V } _ { \\rho } ( \\phi , \\mathcal { E } ) = \\operatorname* { m a x } _ { y \\in \\mathcal { V } } \\operatorname* { s u p } _ { e , e ^ { \\prime } \\in \\mathcal { E } } \\rho \\big ( \\mathbb { P } ( \\phi ^ { e } | y ) , \\mathbb { P } ( \\phi ^ { e ^ { \\prime } } | y ) \\big ) .\n$$",
415
+ "text_format": "latex",
416
+ "bbox": [
417
+ 348,
418
+ 736,
419
+ 648,
420
+ 765
421
+ ],
422
+ "page_idx": 2
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "A feature $\\phi ( \\cdot )$ is $\\varepsilon$ -invariant across $\\mathcal { E }$ , $i f \\varepsilon \\geq \\mathcal { V } ( \\phi , \\mathcal { E } )$ (We omit the subscript $\\rho$ in case of no ambiguity). Definition 3.2 (Informativeness). The informativeness of feature $\\phi ( \\cdot )$ across a domain set $\\mathcal { E }$ is ",
427
+ "bbox": [
428
+ 171,
429
+ 772,
430
+ 828,
431
+ 808
432
+ ],
433
+ "page_idx": 2
434
+ },
435
+ {
436
+ "type": "equation",
437
+ "img_path": "images/b5d2d9f29351ffd114b5530974aa3d8ba7d34f3c8275c029e6a978717a1c0731.jpg",
438
+ "text": "$$\n\\mathcal { T } _ { \\rho } ( \\phi , \\mathcal { E } ) = \\frac { 1 } { K ( K - 1 ) } \\sum _ { \\stackrel { y \\neq y ^ { \\prime } } { y , y ^ { \\prime } \\in y } } \\operatorname* { m i n } _ { e \\in \\mathcal { E } } \\rho \\big ( \\mathbb { P } ( \\phi ^ { e } | y ) , \\mathbb { P } ( \\phi ^ { e } | y ^ { \\prime } ) \\big ) .\n$$",
439
+ "text_format": "latex",
440
+ "bbox": [
441
+ 292,
442
+ 813,
443
+ 671,
444
+ 864
445
+ ],
446
+ "page_idx": 2
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "A feature $\\phi ( \\cdot )$ is $\\delta$ -informative across $\\varepsilon$ , if $\\quad \\delta \\leq { \\mathcal { I } } ( \\phi , { \\mathcal { E } } )$ . ",
451
+ "bbox": [
452
+ 171,
453
+ 871,
454
+ 539,
455
+ 887
456
+ ],
457
+ "page_idx": 2
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "The variation $\\mathcal { V } ( \\phi , \\mathcal { E } )$ measures the stability of $\\phi ( \\cdot )$ over the domains in $\\mathcal { E }$ and the informativeness ${ \\mathcal { T } } ( \\phi , { \\mathcal { E } } )$ captures the ability of $\\phi ( \\cdot )$ to distinguish different labels. We would like to highlight that the variation and informativeness are defined on each one-dimensional feature $\\phi ( \\cdot )$ . Unlike previous distance between distributions defined in $d$ -dimensional space, our definitions are more reasonable and practical, since it can be easily calculated and analyzed. ",
462
+ "bbox": [
463
+ 174,
464
+ 90,
465
+ 825,
466
+ 161
467
+ ],
468
+ "page_idx": 3
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "We are now ready to introduce the core quantity for connecting $\\mathcal { E } _ { a v a i l }$ and ${ \\mathcal { E } } _ { a l l }$ . Our motivation, as elaborated in the introduction section, is that, if a feature is informative for the classification task and invariant over $\\mathcal { E } _ { a v a i l }$ , then to enable OOD generalization from $\\mathcal { E } _ { a v a i l }$ to ${ \\mathcal { E } } _ { a l l }$ , it should be still invariant over ${ \\mathcal { E } } _ { a l l }$ . So the relation between $\\mathcal { V } ( \\phi , \\mathcal { E } _ { a v a i l } )$ and $\\mathinner { \\gamma \\mathopen { \\left( \\phi , \\mathcal { E } _ { a l l } \\right) } }$ of an informative feature captures the feasibility and difficulty of OOD generalization. To quantitatively measure this relation, we define the following function class: ",
473
+ "bbox": [
474
+ 174,
475
+ 166,
476
+ 825,
477
+ 251
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "Definition 3.3 (Expansion Function). We say a function $s : \\mathbb { R } ^ { + } \\cup \\{ 0 \\} \\mathbb { R } ^ { + } \\cup \\{ 0 , + \\infty \\}$ is an expansion function, iff the following properties hold: 1) $s ( \\cdot )$ is monotonically increasing and $s ( x ) \\geq x , \\forall x \\geq 0 ; 2 ,$ ) $\\begin{array} { r } { \\operatorname* { l i m } _ { x 0 ^ { + } } s ( x ) = s ( 0 ) = 0 } \\end{array}$ . ",
484
+ "bbox": [
485
+ 174,
486
+ 255,
487
+ 825,
488
+ 297
489
+ ],
490
+ "page_idx": 3
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "This function class gives a full characterization of how the variation between $\\mathcal { E } _ { a v a i l }$ and ${ \\mathcal { E } } _ { a l l }$ is related. Based on this function class, we can introduce our formulation of the learnability of OOD generalization as follows: ",
495
+ "bbox": [
496
+ 174,
497
+ 309,
498
+ 825,
499
+ 351
500
+ ],
501
+ "page_idx": 3
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "Definition 3.4 (Learnability). Let $\\Phi$ be the feature space and $\\rho$ be a distribution distance. We say an OOD generalization problem from $\\mathcal { E } _ { a v a i l }$ to ${ \\mathcal { E } } _ { a l l }$ is learnable if there exists an expansion function $s ( \\cdot )$ and $\\delta \\geq 0$ , such that: for all $\\phi \\in \\Phi$ satisfying ${ \\mathcal { T } } _ { \\rho } ( \\phi , { \\mathcal { E } } _ { a v a i l } ) \\geq \\delta$ , we have $s ( \\mathcal { V } _ { \\rho } ( \\phi , \\mathcal { E } _ { a v a i l } ) ) \\geq$ $\\mathcal { V } _ { \\rho } \\big ( \\phi , \\mathcal { E } _ { a l l } \\big )$ . If such $s ( \\cdot )$ and $\\delta$ exist, we further call this problem $( s ( \\cdot ) , \\delta )$ -learnable. If an $o o D$ generalization problem is not learnable, we call $i t$ unlearnable. ",
506
+ "bbox": [
507
+ 174,
508
+ 356,
509
+ 825,
510
+ 425
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "To understand the intuition and rationality of our formulation, several discussions are in order. ",
517
+ "bbox": [
518
+ 171,
519
+ 436,
520
+ 787,
521
+ 452
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "Properties of the expansion function. In Definition 3.3, we highlight two properties of the expansion function. The first property comes naturally from the monotonicity properties of variation: any $\\varepsilon _ { 1 }$ -invariant feature is also $\\varepsilon _ { 2 }$ -invariant for $\\varepsilon _ { 2 } \\geq \\varepsilon _ { 1 }$ ; and $\\mathcal { V } ( \\phi , \\mathcal { E } _ { 1 } ) \\leq \\mathcal { V } ( \\phi , \\mathcal { E } _ { 2 } )$ for any ${ \\mathcal { E } } _ { 1 } \\subseteq { \\mathcal { E } } _ { 2 }$ . The monotonicity also implies that larger ${ \\mathcal { E } } _ { a l l }$ will induce larger $s ( \\cdot ) ^ { 2 }$ and it is also harder to be generalized to. From this view, we can see that the scale of $s ( \\cdot )$ can reflect the difficulty of OOD generalization. The second property is more crucial since it formulates the intuition that if an informative feature is almost invariant in $\\mathcal { E } _ { a v a i l }$ , it should remain invariant in ${ \\mathcal { E } } _ { a l l }$ . Without this assumption, OOD generalization can never be guaranteed because we cannot predict whether an invariant and informative feature in $\\mathcal { E } _ { a v a i l }$ will vary severely in unseen ${ \\mathcal { E } } _ { a l l }$ . ",
528
+ "bbox": [
529
+ 173,
530
+ 467,
531
+ 826,
532
+ 592
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "Necessity of informativeness. We include a seemingly redundant quantity informativeness in the definition of learnability. However, this term is necessary because only informative features are responsible for the performance of classification. Non-informative but invariant features over $\\mathcal { E } _ { a v a i l }$ may only capture some noise that is irrelevant to the classification problem, and we shall not expect the noise to be invariant over ${ \\mathcal { E } } _ { a l l }$ . Moreover, we show in Figure 1 that in practice, many invariant but useless features in $\\mathcal { E } _ { a v a i l }$ vary a lot in ${ \\mathcal { E } } _ { a l l }$ , and adding the constraint of informativeness makes the expansion function reasonable. In addition, there are multiple choices of $( s ( \\cdot ) , \\delta )$ to make an OOD generalization problem learnable: larger $\\delta$ will filter out more features, and so $\\dot { s } ( \\cdot )$ can be smaller (flatter). This multiplicity will result in a trade-off between $s ( \\cdot )$ and $\\delta$ , which will be discussed in Section 6.2. ",
539
+ "bbox": [
540
+ 174,
541
+ 607,
542
+ 825,
543
+ 746
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "Two extreme cases: i.i.d. & unlearnable. To better understand the concept of learnability, we consider two extreme cases. (1) The first example is when all data from different $\\textit { e } \\in \\mathcal { E } _ { a l l }$ are identically distributed, i.e., the classic supervised learning setting. This problem is $( s ( \\cdot ) , 0 )$ -learnable with $s ( x ) = x$ , implying no extra difficulty in OOD generalization. (2) As an example of unlearnable, consider the following case (modified from Colored MNIST [5]): For $e \\in \\mathcal { E } _ { a v a i l }$ , images with label 0 always has a red background while images with label 1 has a blue background. For $e \\in \\mathcal { E } _ { a l l } \\ \\backslash \\ \\mathcal { E } _ { a v a i l }$ , this relationship is entirely inverse. Since data from different $e \\in \\mathcal { E } _ { a v a i l }$ are identically distributed but different from other $e \\in \\mathcal { E } _ { a l l }$ , no expansion function can make it learnable, i.e., it is OOD-unlearnable. ",
550
+ "bbox": [
551
+ 173,
552
+ 761,
553
+ 825,
554
+ 873
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "The unlearnability of this case also coincides with our intuition: Without prior knowledge, it is not clear from merely the training data, whether the task is to distinguish digit 0 from 1, or to distinguish color red from blue. As a result, generalization to ${ \\mathcal { E } } _ { a l l }$ cannot be guaranteed. ",
561
+ "bbox": [
562
+ 173,
563
+ 90,
564
+ 825,
565
+ 133
566
+ ],
567
+ "page_idx": 4
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "4 Generalization Bound ",
572
+ "text_level": 1,
573
+ "bbox": [
574
+ 174,
575
+ 151,
576
+ 390,
577
+ 170
578
+ ],
579
+ "page_idx": 4
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "In this section, we consider an OOD generalization problem from $\\mathcal { E } _ { a v a i l }$ to ${ \\mathcal { E } } _ { a l l }$ , and our goal is to analyze the OOD generalization error of classifier $f = g \\circ h$ defined by ",
584
+ "bbox": [
585
+ 173,
586
+ 183,
587
+ 823,
588
+ 212
589
+ ],
590
+ "page_idx": 4
591
+ },
592
+ {
593
+ "type": "equation",
594
+ "img_path": "images/f61601e575911b7b38e2ff41bc91c80f1ca3bdfad17110177fbe71a235a390ce.jpg",
595
+ "text": "$$\n\\mathrm { e r r } ( f ) = \\mathcal { L } ( \\mathcal { E } _ { a l l } , f ) - \\mathcal { L } ( \\mathcal { E } _ { a v a i l } , f ) ,\n$$",
596
+ "text_format": "latex",
597
+ "bbox": [
598
+ 362,
599
+ 217,
600
+ 599,
601
+ 234
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "text",
607
+ "text": "where we assume the loss function $l ( \\cdot , \\cdot )$ is bounded by $[ 0 , C ]$ . We prove two upper bounds (4.1, 4.2) as well as a lower bound (4.3) for $\\operatorname { e r r } ( f )$ based on our formulation. Our bounds together provide a complete characterization of the difficulty of OOD generalization. Since we expect that an invariant classifier can generalize to unseen domains, we hope to bound $\\operatorname { e r r } ( f )$ in terms of the certain variation of $f$ . To this end, we define the variation and informativeness of $f$ in terms of its features, i.e., ",
608
+ "bbox": [
609
+ 173,
610
+ 238,
611
+ 825,
612
+ 309
613
+ ],
614
+ "page_idx": 4
615
+ },
616
+ {
617
+ "type": "equation",
618
+ "img_path": "images/37ed4f7a0dc7d2319bdc5086f2478da0e7cc992b3f71f92313ccf9703cd17289.jpg",
619
+ "text": "$$\n\\begin{array} { r l r } { \\mathcal { V } ^ { \\operatorname* { s u p } } ( h , \\mathcal { E } _ { a v a i l } ) } & { \\triangleq } & { \\underset { \\beta \\in S ^ { d - 1 } } { \\operatorname* { s u p } } \\mathcal { V } ( \\beta ^ { \\top } h , \\mathcal { E } _ { a v a i l } ) , } \\\\ { \\mathcal { T } ^ { \\operatorname* { i n f } } ( h , \\mathcal { E } _ { a v a i l } ) } & { \\triangleq } & { \\underset { \\beta \\in S ^ { d - 1 } } { \\operatorname* { i n f } } \\mathcal { T } ( \\beta ^ { \\top } h , \\mathcal { E } _ { a v a i l } ) , } \\end{array}\n$$",
620
+ "text_format": "latex",
621
+ "bbox": [
622
+ 348,
623
+ 313,
624
+ 647,
625
+ 372
626
+ ],
627
+ "page_idx": 4
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "where $( \\beta ^ { \\top } h ) ( x ) = \\beta ^ { \\top } h ( x )$ is a feature and $S ^ { d - 1 } = \\{ \\beta \\in \\mathbb { R } ^ { d } : \\| \\beta \\| _ { 2 } = 1 \\}$ is the unit $( d - 1 )$ -sphere. ",
632
+ "bbox": [
633
+ 171,
634
+ 376,
635
+ 825,
636
+ 395
637
+ ],
638
+ "page_idx": 4
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "Necessity of using supremum over linear combination. One seemingly plausible definition of the variation of a classifier $f$ can be the supremum over all $\\mathcal { V } ( \\phi _ { i } , \\mathcal { E } _ { a v a i l } ) , i \\in [ d ]$ . However, as is shown in Appendix 1, it is possible that two high-dimensional joint distributions have close marginal distribution in each dimension, while they do not overlap. In other words, there exist cases where $\\mathcal { V } ( \\phi _ { i } , \\mathcal { E } _ { a l l } ) = 0 , \\forall i \\in [ d ]$ but after applying the top model $g$ over $\\phi _ { i }$ ’s, the distribution varies a lot in $\\mathcal { E } _ { a v a i l }$ . Our definition comes from the simple idea that the class of top model $\\mathcal { G }$ is at least a linear space, so we should at least consider the variation of every (normalized) linear combination of $h ( \\cdot )$ With this, we can guarantee the joint distribution distance is still small. ",
643
+ "bbox": [
644
+ 173,
645
+ 406,
646
+ 825,
647
+ 518
648
+ ],
649
+ "page_idx": 4
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "Theorem 4.1 (Main Theorem). Suppose we have learned a classifier $f ( x ) = g ( h ( x ) )$ such that $\\forall e \\in \\mathcal { E } _ { a l l }$ and $\\forall y \\in \\mathcal { V } ;$ $, p _ { h ^ { e } | Y ^ { e } } ( h | y ) \\in L ^ { 2 } ( \\mathbb R ^ { d } )$ . Denote the characteristic function of random variable $h ^ { e } | Y ^ { e }$ as $\\hat { p } _ { h ^ { e } | Y ^ { e } } ( t | y ) = \\mathbb { E } [ \\exp \\{ i \\langle t , h ^ { e } \\rangle \\} | Y ^ { e } = y ]$ . Assume the hypothetical space $\\mathcal { F }$ satisfies the following regularity conditions that $\\exists \\alpha , M _ { 1 } , M _ { 2 } > 0 , \\forall f \\in \\mathcal { F } , \\forall e \\in \\mathcal { E } _ { a l l } , y \\in \\mathcal { V }$ , ",
654
+ "bbox": [
655
+ 173,
656
+ 521,
657
+ 825,
658
+ 582
659
+ ],
660
+ "page_idx": 4
661
+ },
662
+ {
663
+ "type": "equation",
664
+ "img_path": "images/ee4b4c076d84f9c894a2e146552ae306c55f38d76c671d508d171889b7b12f9f.jpg",
665
+ "text": "$$\n\\int _ { h \\in \\mathbb { R } ^ { d } } p _ { h ^ { e } | Y ^ { e } } ( h | y ) | h | ^ { \\alpha } \\mathrm { d } h \\leq M _ { 1 } \\quad a n d \\quad \\int _ { t \\in \\mathbb { R } ^ { d } } | \\hat { p } _ { h ^ { e } | Y ^ { e } } ( t | y ) | | t | ^ { \\alpha } \\mathrm { d } t \\leq M _ { 2 } .\n$$",
666
+ "text_format": "latex",
667
+ "bbox": [
668
+ 251,
669
+ 585,
670
+ 745,
671
+ 619
672
+ ],
673
+ "page_idx": 4
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "$I f ( \\mathcal { E } _ { a v a i l } , \\mathcal { E } _ { a l l } )$ is $\\left( s ( \\cdot ) , \\mathcal { T } ^ { i n f } ( h , \\mathcal { E } _ { a v a i l } ) \\right)$ -learnable under $\\Phi$ with Total Variation $\\rho ^ { 3 }$ , then we have ",
678
+ "bbox": [
679
+ 174,
680
+ 625,
681
+ 802,
682
+ 641
683
+ ],
684
+ "page_idx": 4
685
+ },
686
+ {
687
+ "type": "equation",
688
+ "img_path": "images/47d72154cd89cf0c6271de3f68baa90e658deea6245d64bec4f750c758b38256.jpg",
689
+ "text": "$$\n\\operatorname { e r r } ( f ) \\leq O \\left( s \\left( \\mathcal { V } _ { \\rho } ^ { s u p } ( h , \\mathcal { E } _ { a v a i l } ) \\right) ^ { \\frac { \\alpha ^ { 2 } } { ( \\alpha + d ) ^ { 2 } } } \\right) .\n$$",
690
+ "text_format": "latex",
691
+ "bbox": [
692
+ 349,
693
+ 647,
694
+ 616,
695
+ 676
696
+ ],
697
+ "page_idx": 4
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "Here $\\rho$ is total variation distance, and $O ( \\cdot )$ depends on $d , C , \\alpha , M _ { 1 } , M _ { 2 }$ . ",
702
+ "bbox": [
703
+ 176,
704
+ 681,
705
+ 648,
706
+ 696
707
+ ],
708
+ "page_idx": 4
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "The above theorem holds for a general classifier learned by any algorithms. Due to its generality, we need to introduce some technical regularity conditions on the density function. The assumption (4) assume the decay rate of density and its characteristic function, which is common in the literature, e.g. [14]. This theorem demonstrates that, the generalization error can be bounded by a function of the variation of $h$ , and it converges to 0 as the variation approaches to 0. Under some special but typical case where the top model $g$ is linear, we can further show that even without the regularity conditions in Theorem 4.1, we have a much better (linear) convergence rate. ",
713
+ "bbox": [
714
+ 173,
715
+ 705,
716
+ 826,
717
+ 804
718
+ ],
719
+ "page_idx": 4
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "Theorem 4.2 (Linear Top Model). Consider any loss satisfying $\\begin{array} { r } { \\ell ( \\hat { y } , y ) = \\sum _ { k = 1 } ^ { K } \\ell _ { 0 } ( \\hat { y } _ { k } , y _ { k } ) } \\end{array}$ .4 For any classifier with linear top model $g$ , i.e., ",
724
+ "bbox": [
725
+ 173,
726
+ 809,
727
+ 823,
728
+ 839
729
+ ],
730
+ "page_idx": 4
731
+ },
732
+ {
733
+ "type": "equation",
734
+ "img_path": "images/fd483c8cfb69d41c51abea8bfcbef01bb15ff1bdd62fa9a0e20893ef0103bc4c.jpg",
735
+ "text": "$$\nf ( x ) = A h ( x ) + b w i t h A \\in \\mathbb { R } ^ { K \\times d } , b \\in \\mathbb { R } ^ { K } ,\n$$",
736
+ "text_format": "latex",
737
+ "bbox": [
738
+ 318,
739
+ 843,
740
+ 647,
741
+ 862
742
+ ],
743
+ "page_idx": 4
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "$i f ( \\mathcal { E } _ { a v a i l } , \\mathcal { E } _ { a l l } )$ is $\\left( s ( \\cdot ) , \\mathcal { T } ^ { i n f } ( h , \\mathcal { E } _ { a v a i l } ) \\right)$ -learnable under $\\Phi$ with Total Variation $\\rho$ , then we have ",
748
+ "bbox": [
749
+ 171,
750
+ 90,
751
+ 797,
752
+ 108
753
+ ],
754
+ "page_idx": 5
755
+ },
756
+ {
757
+ "type": "equation",
758
+ "img_path": "images/bff65b7e956cd09791c5ed2c8933cda9684cbbae3c4dc554a897bdb02f4ed4da.jpg",
759
+ "text": "$$\n\\mathrm { e r r } ( f ) \\leq O \\Bigl ( s \\bigl ( \\mathcal { V } ^ { s u p } ( h , \\mathcal { E } _ { a v a i l } ) \\bigr ) \\Bigr ) .\n$$",
760
+ "text_format": "latex",
761
+ "bbox": [
762
+ 369,
763
+ 113,
764
+ 594,
765
+ 140
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "Here $O ( \\cdot )$ depends only on d and $C$ . ",
772
+ "bbox": [
773
+ 174,
774
+ 145,
775
+ 413,
776
+ 160
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "Discussion. Theorem 4.1 shows that, for any model, the generalization gap depends largely on the model’s variation captured by $\\mathcal { V } ^ { \\mathrm { s u p } } ( h , \\mathcal { E } _ { a v a i l } )$ . The result is irrelevant to the algorithm and provides a guarantee for the generalization gap from $\\mathcal { E } _ { a v a i l }$ to ${ \\mathcal { E } } _ { a l l }$ , so long as the learned model $f$ is invariant, i.e. $\\mathcal { V } ^ { \\mathrm { s u p } } ( h , \\mathcal { E } _ { a v a i l } )$ is small. When $s ( \\cdot )$ is fixed, a model with smaller $\\mathcal { V } ^ { \\mathrm { s u p } } ( h , \\mathcal { E } _ { a v a i l } )$ results in a smaller gap, which matches our understanding that invariant features in $\\mathcal { E } _ { a v a i l }$ are somehow invariant in ${ \\mathcal { E } } _ { a l l }$ . When $\\mathcal { V } ^ { \\mathrm { s u p } } ( h , \\mathcal { E } _ { a v a i l } )$ is fixed, more difficult generalization will generate a larger expansion function, which leads to a larger gap. For the Gaussian class with bounded mean and variance, $\\alpha \\gg d$ and the convergent rate is almost linear. ",
783
+ "bbox": [
784
+ 173,
785
+ 174,
786
+ 826,
787
+ 286
788
+ ],
789
+ "page_idx": 5
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "However, without any constraint to $g$ , the convergent rate might be small. Theorem 4.2 then offers a generalization bound with a linear convergent rate under mild assumptions when $g$ is linear, which is common in reality. It relaxes the concentration assumption (Formula 4) and asks only for the integrability of the density. The convergent rate is identical to the convergent rate of the expansion function, showing that $s ( \\cdot )$ captures the generalization quite well. ",
794
+ "bbox": [
795
+ 173,
796
+ 291,
797
+ 825,
798
+ 362
799
+ ],
800
+ "page_idx": 5
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "Proof Sketch of Theorem 4.1. The proof of the main result, Theorem 4.1, is decomposed into the following steps. First, we transform $\\operatorname { e r r } ( f )$ into the Total Variation of joint distributions of features in different domains (Step 1). To bound the Total Variation, it is sufficient to bound the distance of the corresponding Fourier transform, and further, it is equivalent to bound the Radon transform of joint distributions (Step 2). Eventually, we show that $\\mathcal { V } ^ { \\mathrm { s u p } } ( \\beta ^ { \\top } h , \\mathcal { E } _ { a v a i l } )$ can be used to bound the Radon transform, which finishes the proof (Step 3). ",
805
+ "bbox": [
806
+ 173,
807
+ 375,
808
+ 825,
809
+ 460
810
+ ],
811
+ "page_idx": 5
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "Step 1. The OOD generalization error can be bounded as: ",
816
+ "bbox": [
817
+ 173,
818
+ 464,
819
+ 553,
820
+ 479
821
+ ],
822
+ "page_idx": 5
823
+ },
824
+ {
825
+ "type": "equation",
826
+ "img_path": "images/9c22961cf79642649ac7052d3371c49427c7a1ab896566ae2ddd688515f2d0dd.jpg",
827
+ "text": "$$\n\\mathrm { e r r } ( f ) \\le \\operatorname* { s u p } _ { ( e , e ^ { \\prime } ) \\in ( \\mathcal { E } _ { a v a i l } , \\mathcal { E } _ { a l l } ) } \\frac { C } { K } \\sum _ { y \\in \\mathcal { Y } } \\int _ { h \\in \\mathbb { R } ^ { d } } \\big | p _ { h ^ { e } | Y ^ { e } } ( h | y ) - p _ { h ^ { e ^ { \\prime } } | Y ^ { e ^ { \\prime } } } ( h | y ) ) \\big | \\mathrm { d } h .\n$$",
828
+ "text_format": "latex",
829
+ "bbox": [
830
+ 232,
831
+ 484,
832
+ 733,
833
+ 525
834
+ ],
835
+ "page_idx": 5
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "Step 2. According to the assumption (4), the dominant term in (7) is ",
840
+ "bbox": [
841
+ 173,
842
+ 536,
843
+ 622,
844
+ 551
845
+ ],
846
+ "page_idx": 5
847
+ },
848
+ {
849
+ "type": "equation",
850
+ "img_path": "images/8d84abc42db5ac0bce20ba33a361ed49a07b3c2d298320a7da3642158de97201.jpg",
851
+ "text": "$$\n\\int _ { | h | \\leq r _ { 1 } } \\Big | \\int _ { | t | \\leq r _ { 2 } } e ^ { - i \\langle h , t \\rangle } \\big ( \\hat { p } _ { h ^ { e } | Y ^ { e } } ( t | y ) - \\hat { p } _ { h ^ { e ^ { \\prime } } | Y ^ { e ^ { \\prime } } } ( t | y ) \\big ) \\big ) \\mathrm { d } t \\Big | \\mathrm { d } t ,\n$$",
852
+ "text_format": "latex",
853
+ "bbox": [
854
+ 281,
855
+ 555,
856
+ 681,
857
+ 592
858
+ ],
859
+ "page_idx": 5
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "where $r _ { 1 }$ and $r _ { 2 }$ are well-selected scalars that depend on $s \\big ( \\mathcal { V } _ { \\rho } ^ { \\mathrm { s u p } } ( h , \\mathcal { E } _ { a v a i l } ) \\big )$ . By the Projection Theorem [31, 42] and the Fourier Inversion Formula, (8) is bounded above by ",
864
+ "bbox": [
865
+ 173,
866
+ 597,
867
+ 826,
868
+ 627
869
+ ],
870
+ "page_idx": 5
871
+ },
872
+ {
873
+ "type": "equation",
874
+ "img_path": "images/49950396e3d8096d0baf981fde2f0be38a8c185cda445644133fe0a23d73c6a7.jpg",
875
+ "text": "$$\nO ( r _ { 1 } ^ { d } r _ { 2 } ^ { d } ) \\times \\int _ { u \\in \\mathbb { R } } \\big | \\mathscr { R } _ { e ^ { \\prime } } ( \\beta , u ) - \\mathscr { R } _ { e } ( \\beta , u ) \\big | \\mathrm { d } u ,\n$$",
876
+ "text_format": "latex",
877
+ "bbox": [
878
+ 333,
879
+ 632,
880
+ 630,
881
+ 666
882
+ ],
883
+ "page_idx": 5
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "where $\\mathcal { R } _ { e } ( \\beta , u )$ is the Radon transform of $p _ { h ^ { e } | Y ^ { e } } ( t | y )$ . ",
888
+ "bbox": [
889
+ 174,
890
+ 671,
891
+ 534,
892
+ 688
893
+ ],
894
+ "page_idx": 5
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Step 3. The right-hand side of Formula 8 can be bounded by $O \\big ( r _ { 1 } ^ { d } r _ { 2 } ^ { d } s \\big ( \\mathcal { V } _ { \\rho } ^ { \\mathrm { s u p } } ( h , \\mathcal { E } _ { a v a i l } ) \\big ) \\big )$ . We finish the proof by selecting appropriate $r _ { 1 }$ and $r _ { 2 }$ to balance the rate of the dominant term and other minor terms. For more details, please see Appendix 2 for the complete proofs. ",
899
+ "bbox": [
900
+ 173,
901
+ 694,
902
+ 825,
903
+ 737
904
+ ],
905
+ "page_idx": 5
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Now we turn to the lower bound of $\\operatorname { e r r } ( f )$ ",
910
+ "bbox": [
911
+ 174,
912
+ 742,
913
+ 452,
914
+ 757
915
+ ],
916
+ "page_idx": 5
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Theorem 4.3 (Lower Bound). Consider 0-1 loss: $\\ell ( \\hat { y } , y ) = \\mathbb { I } ( \\hat { y } \\neq y )$ . For any $\\delta > 0$ and any exps.t. $k x \\leq s ( x ) < + \\infty , x \\in [ 0 , t ]$ $\\begin{array} { r } { s _ { + } ^ { \\prime } ( 0 ) \\triangleq \\operatorname* { l i m } _ { x \\to 0 ^ { + } } \\frac { s ( x ) - s ( 0 ) } { x } \\in ( 1 , + \\infty ) } \\end{array}$ s(x)−s(0) ∈ (1, +∞); 2) exists k > 1, t > 0, $C _ { 0 }$ $O O D$ generaliz $( \\mathcal { E } _ { a v a i l } , \\mathcal { E } _ { a l l } )$ that is $( s ( \\cdot ) , \\delta )$ -learnable under linear feature space $\\Phi$ w.r.t symmetric $K L$ -divergence $\\rho$ , s.t. $\\forall \\varepsilon \\ \\in \\ [ 0 , \\frac { t } { 2 } ] .$ , the optimal classifier $f$ satisfying $\\mathcal { V } ^ { s u p } ( h , \\mathcal { E } _ { a v a i l } ) = \\varepsilon$ will have the OOD generalization error lower bounded by ",
921
+ "bbox": [
922
+ 173,
923
+ 761,
924
+ 825,
925
+ 848
926
+ ],
927
+ "page_idx": 5
928
+ },
929
+ {
930
+ "type": "equation",
931
+ "img_path": "images/b71427ee15ff225ca02625e3250ad817c12b27937efe9a03a49e7ec1eee529f3.jpg",
932
+ "text": "$$\n\\mathrm { e r r } ( f ) \\geq C _ { 0 } \\cdot s ( \\mathcal { V } ^ { s u p } ( h , \\mathcal { E } _ { a v a i l } ) ) .\n$$",
933
+ "text_format": "latex",
934
+ "bbox": [
935
+ 372,
936
+ 853,
937
+ 593,
938
+ 871
939
+ ],
940
+ "page_idx": 5
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Theorem 4.3 shows that $\\operatorname { e r r } ( f )$ of optimal classifier $f$ is lower bounded by its variation. Here “optimal” means the classifier that minimize $\\mathcal { L } ( f , \\mathcal { E } _ { a v a i l } )$ . Altogether, the above three theorems offer a bidirectional control of OOD generalization error, showing that our formulation can offer a fine-grained description of most OOD generalization problem in a theoretical way. To pursue a good OOD performance, OOD algorithm should focus on improving predictive performance on $\\mathcal { E } _ { a v a i l }$ and controlling the variation $\\mathcal { V } ^ { \\mathrm { s u p } } ( h , \\mathcal { E } _ { a v a i l } )$ simultaneously. Note that this bound starts from population error, and we call for future works to combine our generalization bound and traditional bound from data samples to population error, giving a more complete characterization of the problem. ",
945
+ "bbox": [
946
+ 171,
947
+ 882,
948
+ 823,
949
+ 912
950
+ ],
951
+ "page_idx": 5
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "",
956
+ "bbox": [
957
+ 173,
958
+ 90,
959
+ 825,
960
+ 175
961
+ ],
962
+ "page_idx": 6
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "5 Variation as a Factor of Model Selection Criterion ",
967
+ "text_level": 1,
968
+ "bbox": [
969
+ 173,
970
+ 194,
971
+ 622,
972
+ 212
973
+ ],
974
+ "page_idx": 6
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "As is pointed out in [21], model selection has a significant effect on domain generalization, and any OOD algorithm without a model selection criterion is not complete. [21] trained more than 45,900 models with different algorithms, and results show that when traditional selection methods are applied, none of OOD algorithms can outperform ERM [58] by a significant margin. This result is not strange, since traditional selection methods focus mainly on (validation) accuracy, which is biased in OOD generalization [21, 63]. A very typical example is Colored MNIST [5], where the image is colored according to the label, but the relationship varies across domains. As explained in [5], ERM principle will only capture this spurious feature (color) and performs badly in ${ \\mathcal { E } } _ { a l l }$ . Since ERM is exactly minimizing loss in $\\mathcal { E } _ { a v a i l }$ , any model selection method using validation accuracy alone is likely to choose ERM rather than any other OOD algorithm [63]. Thus no algorithm will have a significant improvement compared to ERM. ",
979
+ "bbox": [
980
+ 173,
981
+ 227,
982
+ 825,
983
+ 380
984
+ ],
985
+ "page_idx": 6
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "A natural question arises: what else can we use, in addition to accuracy? Theorem 4.1 points out that, learning feature with small variation across $\\mathcal { E } _ { a v a i l }$ is important for decreasing OOD generalization error. Once a model $f$ achieves a small $\\mathcal { V } ^ { \\mathrm { s u p } } ( h , \\mathcal { E } _ { a v a i l } )$ , then $\\operatorname { e r r } ( f )$ will be small. If the validation accuracy is also high, we shall know that the OOD accuracy will remain high. To this end, we propose our heuristic selection criterion (Algorithm 1). Instead of considering validation accuracy alone, we combine it with feature variation and select the model with high validation accuracy as well as low variation. ",
990
+ "bbox": [
991
+ 173,
992
+ 386,
993
+ 825,
994
+ 482
995
+ ],
996
+ "page_idx": 6
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Algorithm 1: Model Selection ",
1001
+ "text_level": 1,
1002
+ "bbox": [
1003
+ 174,
1004
+ 501,
1005
+ 377,
1006
+ 515
1007
+ ],
1008
+ "page_idx": 6
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "Input: available dataset $\\mathcal { X } _ { a v a i l } = ( \\mathcal { X } _ { t r a i n } , \\mathcal { X } _ { v a l } )$ , candidate models set $\\mathcal { M }$ , var_acc_rate $r _ { 0 }$ . \nfor $f = g \\circ h$ in $\\mathcal { M }$ do for $i$ in $[ d ]$ do $\\hat { \\mathcal { V } } _ { i } \\gets \\operatorname* { m a x } _ { y \\in \\mathcal { V } , \\mathcal { X } ^ { e } \\neq \\mathcal { X } ^ { e ^ { \\prime } } \\in \\mathcal { X } _ { a v a i l } }$ Total Variation $( \\mathbb { P } ( \\phi _ { i } ^ { e } | y ) , \\mathbb { P } ( \\phi _ { i } ^ { e ^ { \\prime } } | y ) )$ ; .Use GPU KDE end $\\mathcal { V } _ { f } \\gets \\mathrm { m e a n } _ { i \\in [ d ] } \\hat { \\mathcal { V } } _ { i }$ $\\operatorname { A c c } _ { f } $ compute validation accuracy of $f$ using $\\mathcal { X } _ { v a l }$ \nend \nRetur ${ \\mathfrak { n } } \\operatorname { a r g m a x } _ { f \\in { \\mathcal { M } } } ( \\operatorname { A c c } _ { f } - r _ { 0 } \\mathcal { V } _ { f } )$ ",
1013
+ "bbox": [
1014
+ 173,
1015
+ 517,
1016
+ 810,
1017
+ 657
1018
+ ],
1019
+ "page_idx": 6
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "We briefly explain Algorithm 1 here. For each candidate model, we calculate its variation using the average of each feature’s variation, i.e., $\\begin{array} { r } { \\frac { 1 } { d } \\sum _ { i \\in [ d ] } \\mathcal { V } ( \\phi _ { i } , \\mathcal { X } _ { a v a i l } ) } \\end{array}$ . When deriving the bounds, we use $\\mathcal { V } ^ { \\mathrm { s u p } }$ instead of their average because we need to consider the worst case, i.e., the worst top model. In practice, we find out that the average of $\\mathcal { V } ( \\phi _ { i } , \\mathcal { X } _ { a v a i l } )$ is enough to improve selection. ",
1024
+ "bbox": [
1025
+ 174,
1026
+ 679,
1027
+ 825,
1028
+ 738
1029
+ ],
1030
+ "page_idx": 6
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "Our criterion of model selection is ",
1035
+ "bbox": [
1036
+ 174,
1037
+ 744,
1038
+ 400,
1039
+ 758
1040
+ ],
1041
+ "page_idx": 6
1042
+ },
1043
+ {
1044
+ "type": "equation",
1045
+ "img_path": "images/f4a8d3348d12ad167259139dedde77e64f96549c3f99a91438c1b14e5a3f0957.jpg",
1046
+ "text": "$$\n\\operatorname { A c c } _ { f } { - r _ { 0 } \\gamma _ { f } } ,\n$$",
1047
+ "text_format": "latex",
1048
+ "bbox": [
1049
+ 434,
1050
+ 767,
1051
+ 531,
1052
+ 784
1053
+ ],
1054
+ "page_idx": 6
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "i.e., we select a model with high validation accuracy and low variation simultaneously. Here $r _ { 0 }$ is a hyper-parameter representing the concrete relationship between $\\operatorname { e r r } ( f )$ and $\\mathcal { V } _ { f }$ . Although we have already used one hyper-parameter to help select multiple hyper-parameter combinations, it is natural to ask whether we can further get rid of the selection of $r _ { 0 }$ . Since $r _ { 0 }$ represents the relationship between variation and accuracy, which is actually determined by the unknown expansion function, explicitly calculating $r _ { 0 }$ is not possible. However, we can empirically estimate $r _ { 0 }$ using $\\begin{array} { r } { r _ { 0 } = \\frac { \\mathrm { S t d } _ { f \\in \\hat { \\mathcal { M } } } \\mathrm { A c c } _ { f } } { \\mathrm { S t d } _ { f \\in \\hat { \\mathcal { M } } } \\mathcal { V } _ { f } } } \\end{array}$ where $\\hat { \\mathcal { M } } \\subset \\mathcal { M }$ is the model with not bad validation accuracy. We do not use the whole set $\\mathcal { M }$ because some OOD algorithms will perform extremely bad when the penalty is huge, and these models will influence our estimation of the ratio. Since high validation means large informativeness in learned features, the use of $\\hat { \\mathcal { M } }$ is an implicit application of informative assumption. ",
1059
+ "bbox": [
1060
+ 173,
1061
+ 791,
1062
+ 825,
1063
+ 912
1064
+ ],
1065
+ "page_idx": 6
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "",
1070
+ "bbox": [
1071
+ 171,
1072
+ 90,
1073
+ 825,
1074
+ 122
1075
+ ],
1076
+ "page_idx": 7
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "As shown in Section 6.1, our method can select models with higher OOD accuracy in various OOD datasets. We also explain in Appendix 3 why our method can outperform the traditional method in Color MNIST, where the dataset is hand-make and simple enough to calculate the expansion function. ",
1081
+ "bbox": [
1082
+ 174,
1083
+ 127,
1084
+ 825,
1085
+ 170
1086
+ ],
1087
+ "page_idx": 7
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "6 Experiments ",
1092
+ "text_level": 1,
1093
+ "bbox": [
1094
+ 174,
1095
+ 188,
1096
+ 312,
1097
+ 205
1098
+ ],
1099
+ "page_idx": 7
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "In this section, we conduct experiments to compare our model selection criterion (Section 5) with the baseline method5 [21]. Since both the variation and informativeness in Definition 3.1 are based on one-dimensional features, we can directly estimate these quantities feature-by-feature and design model selection method based on them. To verify the existence of the expansion function and to see what it’s like in a real-world dataset, we plot nearly 2 million features trained in a common-used OOD dataset and compute their variation and informativeness. We then draw the expansion function for this problem. ",
1104
+ "bbox": [
1105
+ 174,
1106
+ 218,
1107
+ 825,
1108
+ 315
1109
+ ],
1110
+ "page_idx": 7
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "6.1 Experiments on Model Selection ",
1115
+ "text_level": 1,
1116
+ "bbox": [
1117
+ 174,
1118
+ 330,
1119
+ 437,
1120
+ 345
1121
+ ],
1122
+ "page_idx": 7
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "In this section, we conduct experiments to compare the performance of models selected by our method and by validation accuracy. We train models on different datasets, different $\\mathcal { E } _ { a v a i l }$ , and select models according to a different selection criteria. We then compare the OOD accuracy of selected models. ",
1127
+ "bbox": [
1128
+ 174,
1129
+ 356,
1130
+ 825,
1131
+ 411
1132
+ ],
1133
+ "page_idx": 7
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Settings We train our model on three benchmark OOD datasets (PACS [34], OfficeHome [59], VLCS [57]) and consider all possible selections of $( \\mathcal { E } _ { a v a i l } , \\mathcal { E } _ { a l l } )$ . We choose ResNet–50 as our network architecture. We use ERM [58] and four common-used OOD algorithms (CORAL [55], Inter-domain Mixup [62], Group DRO [51], and IRM [5]). For each environment setup, we train 200 models using different algorithms, penalties, learning rates, and epoch. After training, we employ different selection methods and compare the OOD accuracy of the selected models. As stated in Section 5, we use the standard deviation of $\\nu$ and validation accuracy in $\\hat { \\mathcal { M } }$ to estimate $r _ { 0 }$ , where ${ \\hat { \\mathcal { M } } } = \\{ f \\in { \\mathcal { M } } : \\operatorname { A c c } _ { f } \\geq \\operatorname* { m a x } _ { \\hat { f } } \\operatorname { A c c } _ { \\hat { f } } - 0 . 1 \\}$ . Note that calculating $\\mathcal { V } ( \\phi _ { i } , \\mathcal { X } _ { a v a i l } )$ takes calculus many times, so we design a parallel GPU kernel density estimation to speed up the whole process a hundred times and manage to finish one model in seconds. For more details about the experiments, see Appendix 4. ",
1138
+ "bbox": [
1139
+ 173,
1140
+ 425,
1141
+ 826,
1142
+ 584
1143
+ ],
1144
+ "page_idx": 7
1145
+ },
1146
+ {
1147
+ "type": "table",
1148
+ "img_path": "images/cb2470f47e4fb512f2684a9e17c4e49890f16f65e01308e130f28a69279cde8a.jpg",
1149
+ "table_caption": [
1150
+ "Table 1: Model Selection Result. “Env” denotes the unseen domain during training. “Val” denotes the OOD accuracy of model selected by validation accuracy. "
1151
+ ],
1152
+ "table_footnote": [],
1153
+ "table_body": "<table><tr><td rowspan=\"3\">PACS</td><td>Env</td><td>A</td><td>C</td><td>P</td><td>S</td><td>avg</td><td>acc inc</td></tr><tr><td>Val</td><td>85.20%</td><td>80.42%</td><td>96.17%</td><td>77.86%</td><td>84.91%</td><td>1</td></tr><tr><td>Ours</td><td>88.72%</td><td>81.74%</td><td>96.83%</td><td>79.00%</td><td>86.57%</td><td>1.66%↑</td></tr><tr><td rowspan=\"3\">OfficeHome</td><td>Env</td><td>A</td><td>C</td><td>P</td><td>R</td><td>avg</td><td>acc inc</td></tr><tr><td>Val</td><td>61.85%</td><td>55.56%</td><td>74.72%</td><td>76.25%</td><td>67.09%</td><td>-</td></tr><tr><td>Ours</td><td>65.76%</td><td>55.07%</td><td>75.20%</td><td>76.31%</td><td>68.09%</td><td>1.00%↑</td></tr><tr><td rowspan=\"3\">VLCS</td><td>Env</td><td>C</td><td>L</td><td>S</td><td>V</td><td>avg</td><td>acc inc</td></tr><tr><td>Val</td><td>97.46%</td><td>64.83%</td><td>69.50%6</td><td>70.97%</td><td>75.69%</td><td>1</td></tr><tr><td>Ours</td><td>97.81%</td><td>66.98%</td><td>69.50%</td><td>70.97%</td><td>76.32%</td><td>0.63%↑</td></tr></table>",
1154
+ "bbox": [
1155
+ 200,
1156
+ 643,
1157
+ 797,
1158
+ 775
1159
+ ],
1160
+ "page_idx": 7
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Result We summarize our experimental results in Table 1. For each environment setup, we select the best model according to Algorithm 1 and validation accuracy. The results show that on all datasets, our selection criterion significantly outperforms the validation accuracy in average OOD accuracy. For a more detailed comparison, our method improves the OOD accuracy in most of the 12 setups. Our experiments demonstrate that our criterion can help select models with higher OOD accuracy. ",
1165
+ "bbox": [
1166
+ 173,
1167
+ 792,
1168
+ 826,
1169
+ 863
1170
+ ],
1171
+ "page_idx": 7
1172
+ },
1173
+ {
1174
+ "type": "image",
1175
+ "img_path": "images/c514b7d4698237506faccba2638407d1bd68cc2a61ac79a424f03d7abc31b464.jpg",
1176
+ "image_caption": [
1177
+ "Figure 1: The expansion function of the OOD generalization problem on Office-Home. The $\\mathbf { X } ^ { } -$ -axis stands for $\\mathcal { V } ( \\phi , \\mathcal { E } _ { a v a i l } )$ and the y-axis for $\\mathcal { V } ( \\phi , \\mathcal { E } _ { a l l } )$ . There are approximately 2 million points in each image, with each point representing a feature, and its color represents its informativeness. The solid red line stands for the expansion function under the corresponding $\\delta$ . When $\\delta$ increases, the expansion function decreases. When $\\delta = 0$ , no expansion function can make it learnable. "
1178
+ ],
1179
+ "image_footnote": [],
1180
+ "bbox": [
1181
+ 191,
1182
+ 121,
1183
+ 810,
1184
+ 234
1185
+ ],
1186
+ "page_idx": 8
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "One may wonder if the expansion function really exists and what it will look like for a real-world OOD generalization task. In this section, we consider the OOD dataset Office-Home [59]. We explicitly plot millions of features’ $\\mathcal { V } _ { \\rho } \\big ( \\phi , \\mathcal { E } _ { a v a i l } \\big )$ and $\\mathcal { V } _ { \\rho } \\big ( \\phi , \\mathcal { E } _ { a l l } \\big )$ with Total Variation $\\rho$ to see what the expansion function is like in this task. We take the architecture as ResNet-50 [23], and we trained thousands of models with more than five algorithms, obtaining about 2 million features. The results are in Figure 1. ",
1191
+ "bbox": [
1192
+ 174,
1193
+ 327,
1194
+ 825,
1195
+ 411
1196
+ ],
1197
+ "page_idx": 8
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Existence of $s ( \\cdot )$ . When $\\delta = 0$ , some non-informative features are nearly 0-invariant across $\\mathcal { E } _ { a v a i l }$ but are varying across ${ \\mathcal { E } } _ { a l l }$ , so no expansion function can make this task learnable, i.e., this task is NOT $( s ( \\cdot ) , 0 )$ for any expansion function. But as $\\delta$ increases, only informative features are left, and now we can find appropriate $s ( \\cdot )$ to make it learnable. We can clearly realize from the figure that $s ( \\cdot )$ do exist when $\\delta \\geq 0 . 1 5$ . ",
1202
+ "bbox": [
1203
+ 174,
1204
+ 424,
1205
+ 825,
1206
+ 494
1207
+ ],
1208
+ "page_idx": 8
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Trade-off between $s ( \\cdot )$ and $\\delta$ . The second phenomenon is that the slope of $s ( \\cdot )$ decreases as $\\delta$ increases, showing a trade-off between $s ( \\cdot )$ and $\\delta$ . Although this trade-off comes naturally from the definition of learnability, it has a deep meaning. As is shown in Section 4, $\\operatorname { e r r } ( f )$ is bounded by $O ( s ( \\varepsilon ) )$ where $\\varepsilon$ is the variation of the model. To make the bound tighter, a natural idea is to choose a flatter $s ( \\cdot )$ . However, a flatter $s ( \\cdot )$ corresponds to a larger $\\delta$ . Typically, learning a model to meet this higher informativeness requirement is more difficult, and it is possible that the algorithm achieves this by capturing more domain-specific features, which will therefore increase the variation of the model, $\\varepsilon$ . As a result, we are not sure whether $s ( \\varepsilon )$ will increase or decrease. We believe this is also the essence of model selection: i.e., to trade-off between the variation and informativeness of a model, which is done in Formula 11. ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 508,
1216
+ 825,
1217
+ 647
1218
+ ],
1219
+ "page_idx": 8
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "7 More Related Works ",
1224
+ "text_level": 1,
1225
+ "bbox": [
1226
+ 174,
1227
+ 665,
1228
+ 379,
1229
+ 683
1230
+ ],
1231
+ "page_idx": 8
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Domain generalization [12, 39], or OOD generalization, has drawn much attention recently [21, 30]. The goal is to learn a model from several training domains and expect good performance on unseen test domains. [60, 64] offer a comprehensive survey. A popular solution is to extract domain-invariant feature representation. [45] and [49] proved that when the model is linear, the invariance under training domains can help discover invariant features on test domains. [5] introduces the invariant prediction into neural networks and proposes a practical objective function. After that, a lot of works arise from the view of causal discovery, distributional robustness and conditional independence [1, 7, 16, 15, 26, 32, 33, 43, 51, 61]. On the other hand, some works point out the weakness of existing methods from the theoretical and experimental perspectives [2, 21, 29, 41, 50]. ",
1236
+ "bbox": [
1237
+ 173,
1238
+ 696,
1239
+ 825,
1240
+ 821
1241
+ ],
1242
+ "page_idx": 8
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "The OOD generalization requires restrictions on how the target domains may differ. A straightforward approach is to define a set of test domains around the training domain using some distribution distance measure [6, 13, 19, 25, 51, 53, 54, 61]. Another feasible route is the causal framework which is robust to the test distributions caused by interventions[44, 46] on variables, e.g., [5, 24, 36, 37, 40, 47, 49, 52]. The principle of these methods is that a causal model is invariant and can achieve the minimal worstcase risk [4, 22, 44, 49]. Since the test distribution is unknown, additional assumptions are required for generalization analysis. [12, 18, 39] assume that the domains are generated from a hyper-distribution and measures the average risk estimation error bound. [3] derives a risk bound for any linear combination of training domains. For more related results in domain adaptation, a closed field where the test domains can be seen but are unlabeled, please see [9, 10, 28]. ",
1247
+ "bbox": [
1248
+ 174,
1249
+ 828,
1250
+ 825,
1251
+ 911
1252
+ ],
1253
+ "page_idx": 8
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "",
1258
+ "bbox": [
1259
+ 174,
1260
+ 92,
1261
+ 825,
1262
+ 147
1263
+ ],
1264
+ "page_idx": 9
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "8 Conclusion ",
1269
+ "text_level": 1,
1270
+ "bbox": [
1271
+ 174,
1272
+ 166,
1273
+ 299,
1274
+ 184
1275
+ ],
1276
+ "page_idx": 9
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "In this paper, we take the first step towards a rigorous theoretical framework of OOD generalization. We propose a mathematical formulation to characterize the learnability of OOD generalization problem. Based on our framework, we prove generalization bounds and give guarantees for OOD generalization error. Inspired by our bound, we design a model selection criterion to check the model’s variation and validation accuracy simultaneously. Experiments show that our metric has a significant advantage over the traditional selection method. ",
1281
+ "bbox": [
1282
+ 174,
1283
+ 198,
1284
+ 825,
1285
+ 280
1286
+ ],
1287
+ "page_idx": 9
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Acknowledgments and Disclosure of Funding ",
1292
+ "text_level": 1,
1293
+ "bbox": [
1294
+ 174,
1295
+ 299,
1296
+ 553,
1297
+ 318
1298
+ ],
1299
+ "page_idx": 9
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "text": "Authors are thankful to the anonymous reviewers for their helpful and constructive feedback. ",
1304
+ "bbox": [
1305
+ 171,
1306
+ 332,
1307
+ 779,
1308
+ 347
1309
+ ],
1310
+ "page_idx": 9
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "References ",
1315
+ "text_level": 1,
1316
+ "bbox": [
1317
+ 174,
1318
+ 364,
1319
+ 266,
1320
+ 381
1321
+ ],
1322
+ "page_idx": 9
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "[1] Kartik Ahuja, Karthikeyan Shanmugam, Kush Varshney, and Amit Dhurandhar. Invariant risk minimization games. arXiv preprint arXiv:2002.04692, 2020. \n[2] Kartik Ahuja, Jun Wang, Amit Dhurandhar, Karthikeyan Shanmugam, and Kush R Varshney. Empirical or invariant risk minimization? a sample complexity perspective. arXiv preprint arXiv:2010.16412, 2020. \n[3] Isabela Albuquerque, João Monteiro, Tiago H Falk, and Ioannis Mitliagkas. Adversarial target-invariant representation learning for domain generalization. arXiv preprint arXiv:1911.00804, 2019. \n[4] John Aldrich. Autonomy. Oxford Economic Papers, 41(1):15–34, 1989. \n[5] Martin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019. \n[6] J Andrew Bagnell. Robust supervised learning. In Proceedings of the national conference on artificial intelligence, volume 20, page 714. Menlo Park, CA; Cambridge, MA; London; AAAI Press; MIT Press; 1999, 2005. \n[7] Haoyue Bai, Rui Sun, Lanqing Hong, Fengwei Zhou, Nanyang Ye, Han-Jia Ye, S-H Gary Chan, and Zhenguo Li. Decaug: Out-of-distribution generalization via decomposed feature representation and semantic augmentation. arXiv preprint arXiv:2012.09382, 2020. \n[8] Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In Proceedings of the European Conference on Computer Vision (ECCV), September 2018. \n[9] Shai Ben-David, John Blitzer, Koby Crammer, Fernando Pereira, et al. Analysis of representations for domain adaptation. Advances in neural information processing systems, 19:137, 2007. \n[10] Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. A theory of learning from different domains. Machine learning, 79(1):151–175, 2010. \n[11] Yoshua Bengio, Tristan Deleu, Nasim Rahaman, Nan Rosemary Ke, Sebastien Lachapelle, Olexa Bilaniuk, Anirudh Goyal, and Christopher Pal. A meta-transfer objective for learning to disentangle causal mechanisms. In International Conference on Learning Representations, 2019. \n[12] Gilles Blanchard, Gyemin Lee, and Clayton Scott. Generalizing from several related classification tasks to a new unlabeled sample. Advances in neural information processing systems, 24:2178–2186, 2011. \n[13] Jose Blanchet, Yang Kang, Karthyek Murthy, and Fan Zhang. Data-driven optimal transport cost selection for distributionally robust optimization. In 2019 Winter Simulation Conference (WSC), pages 3740–3751. IEEE, 2019. \n[14] Laurent Cavalier. Efficient estimation of a density in a problem of tomography. Annals of Statistics, pages 630–647, 2000. \n[15] Shiyu Chang, Yang Zhang, Mo Yu, and Tommi Jaakkola. Invariant rationalization. In International Conference on Machine Learning, pages 1448–1458. PMLR, 2020. \n[16] Elliot Creager, Joern-Henrik Jacobsen, and Richard Zemel. Exchanging lessons between algorithmic fairness and domain generalization, 2021. URL https://openreview.net/forum?id=DC1Im3MkGG. \n[17] Alex J DeGrave, Joseph D Janizek, and Su-In Lee. Ai for radiographic covid-19 detection selects shortcuts over signal. medRxiv, 2020. \n[18] Aniket Anand Deshmukh, Yunwen Lei, Srinagesh Sharma, Urun Dogan, James W Cutler, and Clayton Scott. A generalization error bound for multi-class domain generalization. arXiv preprint arXiv:1905.10392, 2019. \n[19] Peyman Mohajerin Esfahani and Daniel Kuhn. Data-driven distributionally robust optimization using the wasserstein metric: Performance guarantees and tractable reformulations. Mathematical Programming, 171(1-2):115–166, 2018. \n[20] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The journal of machine learning research, 17(1):2096–2030, 2016. \n[21] Ishaan Gulrajani and David Lopez-Paz. In search of lost domain generalization. arXiv preprint arXiv:2007.01434, 2020. \n[22] Trygve Haavelmo. The probability approach in econometrics. Econometrica: Journal of the Econometric Society, pages iii–115, 1944. \n[23] 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 (CVPR), June 2016. \n[24] Christina Heinze-Deml and Nicolai Meinshausen. Conditional variance penalties and domain shift robustness. Machine Learning, 110(2):303–348, 2021. \n[25] Zhaolin Hu and L Jeff Hong. Kullback-leibler divergence constrained distributionally robust optimization. Available at Optimization Online, 2013. \n[26] Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Domain extrapolation via regret minimization. arXiv preprint arXiv:2006.03908, 2020. \n[27] Wengong Jin, Regina Barzilay, and Tommi S. Jaakkola. Enforcing predictive invariance across structured biomedical domains, 2021. URL https://openreview.net/forum?id $=$ JywMsiz_NtO. \n[28] Fredrik D Johansson, David Sontag, and Rajesh Ranganath. Support and invertibility in domain-invariant representations. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 527–536. PMLR, 2019. \n[29] Pritish Kamath, Akilesh Tangella, Danica J Sutherland, and Nathan Srebro. Does invariant risk minimization capture invariance? arXiv preprint arXiv:2101.01134, 2021. \n[30] Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Weihua Hu, Michihiro Yasunaga, Richard Lanas Phillips, Sara Beery, et al. Wilds: A benchmark of in-the-wild distribution shifts. arXiv preprint arXiv:2012.07421, 2020. \n[31] Aleksandr Petrovich Korostelev and Alexandre B Tsybakov. Minimax theory of image reconstruction, volume 82. Springer Science & Business Media, 2012. \n[32] Masanori Koyama and Shoichiro Yamaguchi. Out-of-distribution generalization with maximal invariant predictor. arXiv preprint arXiv:2008.01883, 2020. \n[33] David Krueger, Ethan Caballero, Joern-Henrik Jacobsen, Amy Zhang, Jonathan Binas, Remi Le Priol, and Aaron Courville. Out-of-distribution generalization via risk extrapolation (rex). arXiv preprint arXiv:2003.00688, 2020. \n[34] Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M Hospedales. Deeper, broader and artier domain generalization. In Proceedings of the IEEE international conference on computer vision, pages 5542–5550, 2017. \n[35] Haoliang Li, Sinno Jialin Pan, Shiqi Wang, and Alex C Kot. Domain generalization with adversarial feature learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5400–5409, 2018. \n[36] Sara Magliacane, Thijs van Ommen, Tom Claassen, Stephan Bongers, Philip Versteeg, and Joris M Mooij. Domain adaptation by using causal inference to predict invariant conditional distributions. arXiv preprint arXiv:1707.06422, 2017. \n[37] Nicolai Meinshausen. Causality from a distributional robustness point of view. In 2018 IEEE Data Science Workshop (DSW), pages 6–10. IEEE, 2018. \n[38] Jose G Moreno-Torres, Troy Raeder, Rocío Alaiz-Rodríguez, Nitesh V Chawla, and Francisco Herrera. A unifying view on dataset shift in classification. Pattern recognition, 45(1):521–530, 2012. \n[39] Krikamol Muandet, David Balduzzi, and Bernhard Schölkopf. Domain generalization via invariant feature representation. In International Conference on Machine Learning, pages 10–18, 2013. \n[40] Jens Müller, Robert Schmier, Lynton Ardizzone, Carsten Rother, and Ullrich Köthe. Learning robust models using the principle of independent causal mechanisms. arXiv preprint arXiv:2010.07167, 2020. \n[41] Vaishnavh Nagarajan, Anders Andreassen, and Behnam Neyshabur. Understanding the failure modes of out-of-distribution generalization. arXiv preprint arXiv:2010.15775, 2020. \n[42] Frank Natterer. The mathematics of computerized tomography. SIAM, 2001. \n[43] Giambattista Parascandolo, Alexander Neitz, Antonio Orvieto, Luigi Gresele, and Bernhard Schölkopf. Learning explanations that are hard to vary. arXiv preprint arXiv:2009.00329, 2020. \n[44] Judea Pearl. Causality. Cambridge university press, 2009. \n[45] Jonas Peters, Peter Bühlmann, and Nicolai Meinshausen. Causal inference by using invariant prediction: identification and confidence intervals. Journal of the Royal Statistical Society. Series B (Statistical Methodology), pages 947–1012, 2016. \n[46] Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. Elements of causal inference: foundations and learning algorithms. The MIT Press, 2017. \n[47] Niklas Pfister, Evan G Williams, Jonas Peters, Ruedi Aebersold, and Peter Bühlmann. Stabilizing variable selection and regression. arXiv preprint arXiv:1911.01850, 2019. \n[48] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In International Conference on Machine Learning, pages 5389–5400. PMLR, 2019. \n[49] Mateo Rojas-Carulla, Bernhard Schölkopf, Richard Turner, and Jonas Peters. Invariant models for causal transfer learning. The Journal of Machine Learning Research, 19(1):1309–1342, 2018. \n[50] Elan Rosenfeld, Pradeep Ravikumar, and Andrej Risteski. The risks of invariant risk minimization. arXiv preprint arXiv:2010.05761, 2020. \n[51] Shiori Sagawa, Pang Wei Koh, Tatsunori B Hashimoto, and Percy Liang. Distributionally robust neural networks. In International Conference on Learning Representations, 2019. \n[52] Bernhard Schölkopf, Dominik Janzing, Jonas Peters, Eleni Sgouritsa, Kun Zhang, and Joris Mooij. On causal and anticausal learning. arXiv preprint arXiv:1206.6471, 2012. \n[53] Soroosh Shafieezadeh Abadeh, Peyman M Mohajerin Esfahani, and Daniel Kuhn. Distributionally robust logistic regression. Advances in Neural Information Processing Systems, 28:1576–1584, 2015. \n[54] Aman Sinha, Hongseok Namkoong, and John Duchi. Certifying some distributional robustness with principled adversarial training. In International Conference on Learning Representations, 2018. \n[55] Baochen Sun and Kate Saenko. Deep coral: Correlation alignment for deep domain adaptation. In European conference on computer vision, pages 443–450. Springer, 2016. \n[56] Rohan Taori, Achal Dave, Vaishaal Shankar, Nicholas Carlini, Benjamin Recht, and Ludwig Schmidt. Measuring robustness to natural distribution shifts in image classification. Advances in Neural Information Processing Systems, 33, 2020. \n[57] Antonio Torralba and Alexei A Efros. Unbiased look at dataset bias. In CVPR 2011, pages 1521–1528. IEEE, 2011. \n[58] Vladimir Vapnik. Principles of risk minimization for learning theory. In Advances in neural information processing systems, pages 831–838, 1992. \n[59] Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5018–5027, 2017. \n[60] Jindong Wang, Cuiling Lan, Chang Liu, Yidong Ouyang, Wenjun Zeng, and Tao Qin. Generalizing to unseen domains: A survey on domain generalization. arXiv preprint arXiv:2103.03097, 2021. \n[61] Chuanlong Xie, Fei Chen, Yue Liu, and Zhenguo Li. Risk variance penalization. arXiv preprint arXiv:2006.07544, 2020. \n[62] Shen Yan, Huan Song, Nanxiang Li, Lincan Zou, and Liu Ren. Improve unsupervised domain adaptation with mixup training. arXiv preprint arXiv:2001.00677, 2020. \n[63] Haotian Ye, Chuanlong Xie, Yue Liu, and Zhenguo Li. Out-of-distribution generalization analysis via influence function. arXiv preprint arXiv:2101.08521, 2021. \n[64] Kaiyang Zhou, Ziwei Liu, Yu Qiao, Tao Xiang, and Chen Change Loy. Domain generalization: A survey. arXiv preprint arXiv:2103.02503, 2021. ",
1327
+ "bbox": [
1328
+ 174,
1329
+ 380,
1330
+ 826,
1331
+ 912
1332
+ ],
1333
+ "page_idx": 9
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "",
1338
+ "bbox": [
1339
+ 171,
1340
+ 50,
1341
+ 828,
1342
+ 920
1343
+ ],
1344
+ "page_idx": 10
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "",
1349
+ "bbox": [
1350
+ 171,
1351
+ 61,
1352
+ 828,
1353
+ 922
1354
+ ],
1355
+ "page_idx": 11
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "",
1360
+ "bbox": [
1361
+ 171,
1362
+ 92,
1363
+ 828,
1364
+ 308
1365
+ ],
1366
+ "page_idx": 12
1367
+ },
1368
+ {
1369
+ "type": "text",
1370
+ "text": "Checklist ",
1371
+ "text_level": 1,
1372
+ "bbox": [
1373
+ 173,
1374
+ 332,
1375
+ 254,
1376
+ 348
1377
+ ],
1378
+ "page_idx": 12
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "1. For all authors... ",
1383
+ "bbox": [
1384
+ 169,
1385
+ 359,
1386
+ 295,
1387
+ 373
1388
+ ],
1389
+ "page_idx": 12
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See Section 5. \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1394
+ "bbox": [
1395
+ 174,
1396
+ 377,
1397
+ 825,
1398
+ 455
1399
+ ],
1400
+ "page_idx": 12
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "2. If you are including theoretical results... ",
1405
+ "bbox": [
1406
+ 168,
1407
+ 459,
1408
+ 449,
1409
+ 473
1410
+ ],
1411
+ "page_idx": 12
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] ",
1416
+ "bbox": [
1417
+ 174,
1418
+ 478,
1419
+ 669,
1420
+ 508
1421
+ ],
1422
+ "page_idx": 12
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "3. If you ran experiments... ",
1427
+ "bbox": [
1428
+ 168,
1429
+ 513,
1430
+ 348,
1431
+ 527
1432
+ ],
1433
+ "page_idx": 12
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "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] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] In the appendix. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] \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] ",
1438
+ "bbox": [
1439
+ 174,
1440
+ 531,
1441
+ 826,
1442
+ 650
1443
+ ],
1444
+ "page_idx": 12
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1449
+ "bbox": [
1450
+ 166,
1451
+ 655,
1452
+ 782,
1453
+ 669
1454
+ ],
1455
+ "page_idx": 12
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We use [21] and we cite it in Section 6. \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [Yes] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1460
+ "bbox": [
1461
+ 173,
1462
+ 672,
1463
+ 826,
1464
+ 794
1465
+ ],
1466
+ "page_idx": 12
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1471
+ "bbox": [
1472
+ 169,
1473
+ 797,
1474
+ 661,
1475
+ 813
1476
+ ],
1477
+ "page_idx": 12
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1482
+ "bbox": [
1483
+ 173,
1484
+ 816,
1485
+ 826,
1486
+ 906
1487
+ ],
1488
+ "page_idx": 12
1489
+ }
1490
+ ]
parse/train/kFJoj7zuDVi/kFJoj7zuDVi_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/kFJoj7zuDVi/kFJoj7zuDVi_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1lq1hRqYQ/r1lq1hRqYQ.md ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FROM LANGUAGE TO GOALS: INVERSE REINFORCE-MENT LEARNING FOR VISION-BASED INSTRUCTIONFOLLOWING
2
+
3
+ Justin Fu ∗, Anoop Korattikara, Sergey Levine, Sergio Guadarrama Google AI {justinfu,kbanoop,slevine,sguada}@google.com
4
+
5
+ # ABSTRACT
6
+
7
+ Reinforcement learning is a promising framework for solving control problems, but its use in practical situations is hampered by the fact that reward functions are often difficult to engineer. Specifying goals and tasks for autonomous machines, such as robots, is a significant challenge: conventionally, reward functions and goal states have been used to communicate objectives. But people can communicate objectives to each other simply by describing or demonstrating them. How can we build learning algorithms that will allow us to tell machines what we want them to do? In this work, we investigate the problem of grounding language commands as reward functions using inverse reinforcement learning, and argue that language-conditioned rewards are more transferable than language-conditioned policies to new environments. We propose language-conditioned reward learning (LC-RL), which grounds language commands as a reward function represented by a deep neural network. We demonstrate that our model learns rewards that transfer to novel tasks and environments on realistic, high-dimensional visual environments with natural language commands, whereas directly learning a languageconditioned policy leads to poor performance.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ While reinforcement learning provides a powerful and flexible framework for describing and solving control tasks, it requires the practitioner to specify objectives in terms of reward functions. Engineering reward functions is often done by experienced practitioners and researchers, and even then can pose a significant challenge, such as when working with complex image-based observations. While researchers have investigated alternative means of specifying objectives, such as learning from demonstration (Argall et al., 2009), or through binary preferences (Christiano et al., 2017), language is often a more natural and desirable way for humans to communicate goals.
12
+
13
+ A common approach to building natural language interfaces for reinforcement learning agents is to build language-conditioned policies
14
+
15
+ ![](images/5e71170ca08fb2257826210ece6f73ff54f1ace30220b36c57506856bd504733.jpg)
16
+ Figure 1: A task where an agent (green triangle) must execute the command “go to the fruit bowl.” This is a simple example where the reward function is easier to specify than the policy.
17
+
18
+ that directly map observations and language commands to a sequence of actions that perform the desired task. However, this requires the policy to solve two challenging problems together: understanding how to plan and solve tasks in the physical world, and understanding the language command itself. The trained policy must simultaneously interpret a command and plan through possibly complicated environment dynamics. The performance of the system then hinges entirely on its ability to generalize to new environments - if either the language interpretation or the physical control fail to generalize, the entire system will fail. We can recognize instead that the role of language in such a system is to communicate the goal, and rather than mapping language directly to policies, we propose to learn how to convert language-defined goals into reward functions. In this manner, the agent can learn how to plan and perform the task on its own via reinforcement learning, directly interacting with the environment, without relying on zero-shot transfer of policies. A simple example is shown in Figure 1, where an agent is tasked with navigating through a house. If an agent is commanded “go to the fruit bowl”, a valid reward function could simply be a fruit bowl detector from first-person views of the agent. However, if we were to learn a mapping from language to actions, given the same goal description, the model would need to generate a different plan for each house.
19
+
20
+ In this work, we investigate the feasibility of grounding free-form natural language commands as reward functions using inverse reinforcement learning (IRL). Learning language-conditioned rewards poses unique computational problems. IRL methods generally require solving a reinforcement learning problem as an inner-loop (Ziebart, 2010), or rely on potentially unstable adversarial optimization procedures (Finn et al., 2016; Fu et al., 2018). This is compounded by the fact that we wish to train our model across multiple tasks, meaning the IRL problem itself is an inner-loop. In order to isolate the language-learning problem from the difficulties in solving reinforcement learning and adversarial learning problems, we base our method on an exact MaxEnt IRL (Ziebart, 2010) procedure, which requires full knowledge of environment dynamics to train a language-conditioned reward function represented by a deep neural network. While using exact IRL procedures may seem limiting, in many cases (such as indoor robotic navigation) full environment dynamics are available, and this formulation allows us to remove the difficulty of using RL from the training procedure. The crucial insight is that we can use dynamic programming methods during training to learn a reward function that maps from observations, but we do not need knowledge of dynamics to use the reward function, meaning during test time we can evaluate using a reinforcement learning agent without knowledge of the underlying environment dynamics. We evaluate our method on a dataset of realistic indoor house navigation and pick-and-place tasks using the SUNCG dataset, with natural language commands. We demonstrate that our approach generalizes not only to novel tasks, but also to entirely new scenes, while directly learning a language-conditioned policy leads to poor performance and fails to generalize.
21
+
22
+ # 2 RELATED WORK
23
+
24
+ A popular class of approaches to language grounding in reinforcement learning is to directly train a policy that consumes language as an input. Several works adopt a behavioral cloning approach, where the model is trained using supervised learning with language-action sequences pairs (Anderson et al., 2018; Mei et al., 2016; Sung et al., 2015). A second approach is to forego demonstrations but instead reward an agent whenever the desired task is completed (Shah et al., 2018; Misra et al., 2017; Hermann et al., 2017; Branavan et al., 2009). This approach requires reward functions (the task completion detector) to be hand-designed for the training tasks considered. Another related approach is semantic parsing, which has also been used to convert language into an executable form that corresponds to actions within an environment (Forbes et al., 2015; Misra et al., 2014; Tellex et al., 2011). In a related task to instruction following, Das et al. (2018) consider an embodied question-answering task where an agent must produce an answer to a question, where the relevant information lies within the environment. They adopt a hybrid approach, where they pretrain with supervised learning but also give the agent reward for completing intermediate tasks. Overall, our experiments show that policy-based approaches have worse generalization performance to new environments, because the policy must rely on zero-shot generalization at test time as we show in Section 6.3. While in this paper we argue for the performance benefits of a reward-based approach, a reason one may want to adopt a policy-based approach over a reward-based one is if one cannot run RL to train a new policy in a new environment, such as for time or safety reasons.
25
+
26
+ A second approach to the language grounding problem is to learn a mapping from language to reward functions. There are several other works that apply IRL or IRL-like procedures to the problem of language grounding. Perhaps most closely related to our work is MacGlashan et al. (2015), which also aims to learn a language-conditioned reward function via IRL. However, this method requires an extensively hand-designed, symbolic reward function class, whereas we use generic, differentiable function approximators that can handle arbitrary observations, including raw images. Bahdanau et al. (2018); Tung et al. (2018) also learn language-conditioned reward functions, but do not perform IRL, meaning that the objective does not correspond to matching the expert’s trajectory distribution. Tung et al. (2018) train a task-completion classifier, but do not evaluate their reward on control problems. The strategy they use is similar to directly regressing onto a ground-truth reward function, which we include a comparison to in Section 6 to as an oracle baseline. Bahdanau et al. (2018) adopt an adversarial approach similar to GAIL (Ho & Ermon, 2016), and use the learned discriminator as the reward function. While this produces a reward function, it does not provide any guarantees that the resulting reward function can be reoptimized in new environments to yield behavior similar to the expert. We believe our work is the first to apply language-conditioned inverse reinforcement learning to environments with image observations and deep neural networks, and we show that our rewards generalize to novel tasks and environments.
27
+
28
+ # 3 BACKGROUND
29
+
30
+ We build off of the MaxEnt IRL model (Ziebart et al., 2008), which considers an entropy-regularized Markov decision process (MDP), defined by the tuple $( S , \mathcal { A } , \mathcal { T } , r , \gamma , \rho _ { 0 } )$ . $s , A$ are the state and action spaces respectively and $\gamma \in ( 0 , 1 )$ is the discount factor. $\mathcal { T } ( s ^ { \prime } | s , a )$ represents the transition distribution or dynamics. We additionally consider partially-observed environments, where each state is associated with an observation within an observations space $o \in \mathcal { O }$ .
31
+
32
+ The goal of ”forward” reinforcement learning is to find the optimal policy $\pi ^ { * }$ . Let $r ( \tau ) \ =$ $\scriptstyle \sum _ { t = 0 } ^ { T } \gamma ^ { t } r ( s _ { t } , a _ { t } )$ denote the returns of a trajectory, where $\tau$ denotes a sequence of states and actions $( s _ { 0 } , a _ { 0 } , . . . s _ { T } , a _ { T } )$ . The MaxEnt RL objective is then to find $\begin{array} { r } { \pi ^ { * } = \arg \operatorname* { m i n } _ { \pi } { E _ { \tau \sim \pi } [ r ( \tau ) + H ( \tau ) ] } } \end{array}$ .
33
+
34
+ Inverse reinforcement learning (IRL) seeks to infer the reward function $r ( s , a )$ given a set of expert demonstrations $\mathcal { D } = \{ \tau _ { 1 } , . . . , \tau _ { N } \} .$ ,. In IRL, we assume the demonstrations are drawn from an optimal policy $\pi ^ { * } ( a | s )$ . We can interpret the IRL problem as solving the maximum likelihood problem:
35
+
36
+ $$
37
+ \operatorname * { m a x } _ { \theta } E _ { \tau \sim \mathcal { D } } \left[ \log p _ { \theta } ( \tau ) \right] ,
38
+ $$
39
+
40
+ In the MaxEnt IRL framework, optimal trajectories are observed with probabilities proportional to the exponentiated returns, meaning $p ( \tau ) \propto \exp \{ r ( \tau ) \}$ (Ziebart et al., 2008). Thus, learning a reward function $r _ { \theta } ( \tau )$ is equivalent to fitting an energy-based model $p _ { \theta } ( \tau ) \propto \exp \{ r _ { \theta } ( \tau ) \}$ to the maximum likelihood objective in Eqn 1. The gradient to update the reward function is (Ziebart, 2010):
41
+
42
+ $$
43
+ \nabla _ { \theta } E [ \log p _ { \theta } ( \tau ) ] = \sum _ { s , a } ( \rho ^ { \mathcal { D } } ( s , a ) - \rho _ { \theta } ^ { * } ( s , a ) ) \nabla _ { \theta } r _ { \theta } ( s , a ) ,
44
+ $$
45
+
46
+ where $\rho ^ { \mathcal { D } } ( s , a )$ represents the state-action marginal of the demonstrations, and $\rho _ { \theta } ^ { * } ( s , a )$ represents the state-action marginal of the optimal policy under reward $r _ { \theta } ( s , a )$ .
47
+
48
+ # 4 MULTI-TASK IRL
49
+
50
+ A unique challenge of the language-conditioned IRL problem, compared to standard IRL, is that the goal is to learn a reward function that generalizes across multiple tasks. While standard IRL methods are typically trained and evaluated on the same task, we want our language-conditioned reward function to produce correct behavior when presented with new tasks. Several previous works consider a multi-task scenario, such as in a Bayesian or meta-learning setting (Li & Burdick, 2017; Dimitrakakis & Rothkopf, 2012; Choi & Kim, 2012). We adopt a similar approach adapted for the language-IRL problem, and formalize the notion of a task, denoted by $\xi$ , as an MDP, where individual tasks may not share the same state spaces, dynamics or reward functions. Each task is associated with a context $c _ { \xi }$ which is a unique identifier (i.e. an indicator vector) for that task. Thus, we wish to optimize the following multi-task objective, where $\tau _ { \xi }$ denotes expert demonstrations for that task:
51
+
52
+ $$
53
+ \operatorname* { m a x } _ { \theta } E _ { \xi } [ E _ { \tau _ { \xi } } [ \log p _ { \theta } ( \tau _ { \xi } , c _ { \xi } ) ] ]
54
+ $$
55
+
56
+ Algorithm 1 Language-Conditioned Reward Learning (LC-RL)
57
+
58
+ <table><tr><td>1: Obtain expert demonstrations and language describing the goal.</td></tr><tr><td>2: Initialize reward function rθ .</td></tr><tr><td>3: for step t in {1,...,N} do</td></tr><tr><td>4: Sample task ε, demonstrations dg ,and language Lg.</td></tr><tr><td>5: Compute optimal q*(s,a) using q-iteration and p*(s,a) using the forward algorithm</td></tr><tr><td></td></tr><tr><td>6: Update reward rθ with the gradient (ρdε(s,a) - p*(s,a)) Vre(o,a,Lg) 7: end for</td></tr></table>
59
+
60
+ In order to optimize this objective, we first require that all tasks share the same observation space and action space, and the reward to be a function of the observation, rather than of the state. For example, in our experiments, all observations are in the form of $3 2 \mathrm { x } 2 4$ images taken from simulated houses, but the state space for each house is allowed to differ (i.e., the houses have different layouts). This means the same reward can be used across all MDPs even though the state spaces differ.
61
+
62
+ Second, we share the reward function across all tasks, but substitute a language command $\mathcal { L } _ { \xi }$ as a proxy for the context $c _ { \xi }$ , resulting in a model $p _ { \theta } ( \tau _ { \xi } , \mathcal { L } _ { \xi } )$ that takes as input language, states, and actions. For computational efficiency we run stochastic gradient descent on the objective in Eqn. 3 by sampling over the set of environments on each iteration.
63
+
64
+ # 5 LANGUAGE-CONDITIONED REWARD LEARNING (LC-RL)
65
+
66
+ We learn language-conditioned reward functions using maximum causal entropy IRL, adapted for a multi-task setting and rewards represented by language-conditioned convolutional neural networks. While during training we use dynamic programming methods that require dynamics knowledge, we do not need knowledge of dynamics to evaluate the reward function. Thus, at test time we can use standard model-free RL algorithms to learn the task from the inferred reward function in new environments. Our algorithm is briefly summarized in Algorithm 1.
67
+
68
+ # 5.1 COMPUTING EXACT IRL GRADIENT UPDATES
69
+
70
+ In order to take gradient steps on the objective of Eqn. 3, we update our reward function in terms of the Maximum Entropy IRL gradient (Ziebart, 2010) according to Eqn. 2. The stochastic gradient update (for a single task $\xi$ ) adapted to our case is:
71
+
72
+ $$
73
+ \nabla _ { \theta } E _ { \tau } [ \log p _ { \theta } ( \tau _ { \xi } , \mathcal { L } _ { \xi } ) ] = \sum _ { s , a } ( \rho ^ { d } ( s , a ) - \rho _ { \theta } ^ { * } ( s , a ) ) \nabla _ { \theta } r _ { \theta } ( o ( s ) , a , \mathcal { L } _ { \xi } )
74
+ $$
75
+
76
+ Where $o ( s )$ denotes the observation for state $s$ . Note that during training we need access to the ground truth states $s$ . While the update depends on the underlying state, the reward itself is only a function of the observation, the action, and the language. This enables us to evaluate the reward without knowing the underlying state space and dynamics of the environment. While requiring dynamics knowledge during training may seem limiting, in practice many environments we may wish to train a robot in can easily be mapped. This training strategy is analogous to training a robot in only known environments such as a laboratory, but the resulting reward can be used in unknown environments.
77
+
78
+ In order to compute $\rho _ { \theta } ^ { * } ( s , a )$ , one normally has to first compute the optimal policy with respect to reward $r _ { \theta } ( o , a )$ using reinforcement learning, and then compute the occupancy measure using the forward algorithm for Markov chains to compute the state visitation distributions at each time-step. Because this embeds a difficult RL optimization problem within nested inner-loops, this quickly becomes computationally intractable. Thus, we train in tabular environments with known dynamics, where we can compute optimal policies exactly using Q-iteration. However, we emphasize that this is only a training time restriction, and knowledge of dynamics is not required to evaluate the rewards.
79
+
80
+ ![](images/f3cb66f02a1107fd18e35bab67acccca5473dba6383bdc7079370bdcbbbd5bd5.jpg)
81
+ Figure 2: Our reward function architecture. Our network receives as input a panoramic semantic image (4 views) and a language command represented as a sequence of one-hot word vectors, and outputs a scalar reward.
82
+
83
+ # 5.2 ARCHITECTURE
84
+
85
+ Our network architecture is shown in Figure 2. The network has two main modalities of input: a variable-length language input represented by a sequence of one-hot vectors (one vector for each tokenized word), and a panoramic image observation.
86
+
87
+ The language embedding is formed by processing the language input sequence through an LSTM network, and the final time-step of the topmost layer is used as a fixed-dimensional embedding elanguage of the input command.
88
+
89
+ The agent receives image observations in the form of four $3 2 \mathrm { x } 2 4$ image observations, one for each cardinal direction view (N, S, E, W). The convolutional neural network (CNN) consists of a sequence of convolutional and max pool layers, with the final operation being a channel-wise global pooling operation that produces an image embedding of the same length as the language embedding. Each image is passed through an identical CNN with shared weights, and the outputs are summed together to form the image embedding. That is, $e _ { \mathrm { i m a g e } } = \mathbf { C N N } ( \mathrm { i m } \mathbf { g } _ { N } ) + \mathbf { C N N } ( \mathrm { i m } \mathbf { g } _ { S } ) + \mathbf { C N N } ( \mathrm { i m } \mathbf { g } _ { E } ) +$ $\mathbf { C N N } ( \mathrm { i m g } _ { W } )$ .
90
+
91
+ Finally, these two embeddings are element-wise multiplied and passed through a fully-connected network (FC) to produce a reward output. Letting $\odot$ denote elementwise multiplication, we have $r = \mathrm { F C } ( e _ { \mathrm { i m a g e } } \odot e _ { \mathrm { l a n g u a g e } } )$ .
92
+
93
+ We found that the max global-pooling architecture in the CNN was able to select out objects from a scene and allow the language embedding to modulate which features to attend to. We selected our architecture via a hyper-parameter search, and found that the choice of using an element-wise multiplication versus a concatenation for combining embeddings had no appreciable performance difference, but a global pooling architecture performed significantly better than using a fully connected layer at the end of the CNN.
94
+
95
+ # 6 EVALUATION
96
+
97
+ We evaluate our method within a collection of simulated indoor house environments, built on top of the SUNCG (Song et al., 2017) dataset. The SUNCG dataset provides a large repository of complex and realistic 3D environments which we find very suitable for our goals. An example task from our environment is shown in Figures 3 and 4. An example of a successful execution of a task is showin in Fig. 5.
98
+
99
+ # 6.1 ENVIRONMENT
100
+
101
+ We consider two typical kinds of tasks that an indoor robot may wish to perform:
102
+
103
+ • Navigation (NAV): In the navigation task, the agent is given a location which corresponds to a room or object, and the agent must navigate through the house to reach the target location. For example, in Fig. 3, the target could be ”cup” or ”laptop” or ”living room”.
104
+
105
+ ![](images/cdace129ad738b81b305696edad646670941ae49887c617f761c225c048e1dc5.jpg)
106
+ Figure 3: An example task. The green segment corresponds to the solution of a NAV task, ”go to the cup”, where the cup is circled in green. The green plus blue segments represents a path for the PICK task, ”move the cup to the bed”, where the bed is circled in blue.
107
+
108
+ ![](images/28ca2602fae11df6b47ce7b36c7d39de637ba4b5a4bc8160c0e57e228da93603.jpg)
109
+ Figure 4: Example first-person RGB (left) and semantic (right) images from the bedroom inside the house depicted in Figure 3. We only use the semantic labels as input to our model.
110
+
111
+ ![](images/d1a108a7bf4b6d49ce6fd1915455ff10baca4541408a9db638895372665a8140.jpg)
112
+ Figure 5: Top row: First-person view of an agent executing the task: “move vase to living room”. The vase is circled in green in the 3rd image. Bottom row: A bird’s eye view of the initial (left) and final (right) positions of the agent (green triangle) and the vase (green outline).
113
+
114
+ • Pick-and-place (PICK): In the pick and place task, the agent must move an object from one location to another. For example, in Fig. 1 the task could be to move the cup from to the sink to the kitchen table.
115
+
116
+ Each environment corresponds to one 3D scene, which is discretized into a grid to form a tabular environment where the grid coordinates plus agent orientation (N, S, E, W) correspond to the state of the agent. The agent receives observations with two components: one is a free-form language command, and one is a first-person panoramic image of the environment. Because the agent can move objects without directly looking at them, the panoramic view gives the agent a full view of its surroundings. The panoramic image is formed from 4 semantic image observations, one for each orientation of the agent. Each semantic image observation is $3 2 \mathrm { x } 3 2 $ pixels and contains 61 channels, one per semantic image class. Each agent is equipped with 4 actions: step forward one grid tile, turn left or right, or interact with an object.
117
+
118
+ We generate language commands based on a preset grammar, and using names of objects and locations associated with the task. These are of the form ”go to $X ^ { \ast }$ for NAV tasks, or ”move X to $\mathbf { Y } ^ { \prime \prime }$ for PICK tasks, where X and $\mathrm { Y }$ stand for names of locations and objects within the environment. We explicitly do not use step-by-step instruction language such as ”turn left, walk down the hallway, go through the door”, as these commands remove the planning aspect of the problem and tell the agent directly which actions to take in order to solve the problem.
119
+
120
+ The interact action only has meaning within the PICK task. Executing this action will either pick up an object if the agent is within a 1 meter of an object, or drop an object if the agent is currently holding an object. To limit the size of the state space, within a single task, there is only one object an agent may interact with and two locations the object can be in. This setup only increases the size of the state-space by a factor of 3. However, different objects may be placed in different locations across environments, meaning the model still must learn to detect the object in the correct location rather than memorizing the specific object and location associated with a single task.
121
+
122
+ # 6.2 EXPERIMENTAL PROCEDURE
123
+
124
+ In order to evaluate how well different methods generalize, we split our dataset of tasks into three segments: a training set, and two test sets – “task” and “house”. The ”task” test set contains tasks within the same houses as training, but requires the agent to interact with novel combinations of objects and locations. The ”house” test set contains tasks on entirely new houses that were not in the training set. The purpose of this split is to investigate varying degrees of generalization: the ”task” test set requires the model to execute novel language commands, but using landmarks and objects which were seen during training. The ”house” test set adds another layer of difficulty, requiring the model to detect familiar objects situated in entirely new scenes.
125
+
126
+ In total, our dataset contains 1413 tasks (716 PICK, 697 NAV). Across all tasks, there are 14 objects, and 76 different house layouts. There are 1004 tasks $( 7 1 \% )$ in the training set, 236 $( 1 7 \% )$ in the ”task” test set, and 173 $( 1 2 \% )$ in the ”house” test set.
127
+
128
+ We evaluate two methods for reward learning. LC-RL refers to the language-conditioned IRL method outlined in Section 5, which takes as input demonstration and language pairs and learns a shared reward function across all tasks. In particular, we use 10 demonstrations per task, sampled from the computed optimal policy. To provide an upper bound for performance, we can also regress directly onto the ground-truth rewards, a method we label as “Reward Regression”. While this is not possible in a practical scenario, this evaluation serves to show oracle performance on our task. Note that our method does not require access to ground-truth rewards, and only uses demonstrations.
129
+
130
+ Success rates for each reward-learning method are evaluated using two policy learning procedures. Q-iteration (QI) computes the optimal policy exactly using dynamic programming, which we report in Table 1. We also experiment with reoptimizing the learned reward using DQN (Mnih et al., 2015), a sample-based RL method that does not require ground-truth knowledge of the environment dynamics. We use the position, orientation, and whether an object is held as the observation (this is identical to the state representation). This experiment represents the testing use-case where we can evaluate the reward at test-time in novel, unmapped environments despite the fact that at training time we require dynamics knowledge. However, because the probability that the random policy receives rewards on our task is tiny, we found that epsilon-greedy exploration was not enough. Thus, we also report results using a reward shaping term with a state-based potential equal to the optimal value function $\mathrm { N g }$ et al., 1999). We note that this shaping term does require dynamics knowledge compute, but we include this result to highlight the difficulty of the RL problem even if reward learning is done properly.
131
+
132
+ We also compare against two baselines derived from GAIL (Ho & Ermon, 2016), using the learned discriminator as the “reward” function. We first compare to AGILE (Bahdanau et al., 2018), which modifies GAIL to use a goal-based discriminator and false negative filtering, using DQN as a policy optimizer and $\rho \ : = \ : 0 . 2 5$ . We found it difficult to learn rewards using a reinforcement learningbased policy optimizer, and the model was only able to solve the simpler NAV environments. This experiment emphasizes the gap between using a sampling-based solver and an exact solver during the training of reward-based methods. To create a more fair comparison, we also compare against GAIL using a dynamic programming solver (labeled GAIL-Exact), and we see that the performance is comparable to LC-RL on training environments, but performs significantly worse on test environments. These results are in line with our intuitions - GAIL and IRL are equivalent in training scenarios (Ho & Ermon, 2016), but the discriminator of GAIL does not correspond to the true reward function, and thus performs worse when evaluated in novel environments.
133
+
134
+ In order compare against a policy-learning approach, we compare against an optimal behavioral cloning baseline. We train the optimal cloning baseline by computing the exact optimal policy using Q-iteration, and perform supervised learning to regress directly on to the optimal action probabilities. To make a fair comparison, we keep the policy architecture identical to the reward architecture, except we add two additional inputs: the orientation indicator and and indicator on whether the object (during PICK tasks) is held by the agent or not. Each indicator is transformed by an embedding lookup, and all embeddings are element-wise multiplied along with with the language and image embeddings in the original architecture.
135
+
136
+ Table 1: Success rates (in percentages) across task categories. Each result is averaged over 3 seeds. Test-Task refers to testing on novel tasks within the same houses as training, whereas Test-House refers to testing novel tasks in novel houses. The AGILE method is described in (Bahdanau et al., 2018)
137
+
138
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=9>Train Test-Task Test-House</td></tr><tr><td rowspan=3 colspan=1>Optimal Policy CloningAGILE</td><td rowspan=1 colspan=1>PICK</td><td rowspan=1 colspan=1>NAV</td><td rowspan=1 colspan=1>Total</td><td rowspan=1 colspan=1>PICK</td><td rowspan=1 colspan=1>NAV</td><td rowspan=1 colspan=1>Total</td><td rowspan=1 colspan=1>PICK</td><td rowspan=1 colspan=1>NAV</td><td rowspan=1 colspan=1>Total</td></tr><tr><td rowspan=1 colspan=1>20.7</td><td rowspan=1 colspan=1>61.6</td><td rowspan=1 colspan=1>40.3</td><td rowspan=1 colspan=1>10.1</td><td rowspan=1 colspan=1>29.4</td><td rowspan=1 colspan=1>19.6</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>17.2</td><td rowspan=1 colspan=1>8.5</td></tr><tr><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>40.9</td><td rowspan=1 colspan=1>18.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>34.1</td><td rowspan=1 colspan=1>16.8</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>30.6</td><td rowspan=1 colspan=1>15.1</td></tr><tr><td rowspan=1 colspan=1>GAIL-Exact</td><td rowspan=1 colspan=1>59.4</td><td rowspan=1 colspan=1>73.5</td><td rowspan=1 colspan=1>66.9</td><td rowspan=1 colspan=1>49.1</td><td rowspan=1 colspan=1>50.4</td><td rowspan=1 colspan=1>49.8</td><td rowspan=1 colspan=1>23.5</td><td rowspan=1 colspan=1>35.4</td><td rowspan=1 colspan=1>28.3</td></tr><tr><td rowspan=1 colspan=1>LC-RL(ours)</td><td rowspan=1 colspan=1>63.8</td><td rowspan=1 colspan=1>69.7</td><td rowspan=1 colspan=1>66.9</td><td rowspan=1 colspan=1>56.7</td><td rowspan=1 colspan=1>47.8</td><td rowspan=1 colspan=1>51.9</td><td rowspan=1 colspan=1>32.1</td><td rowspan=1 colspan=1>39.4</td><td rowspan=1 colspan=1>36.4</td></tr><tr><td rowspan=1 colspan=1>Reward Reg. (Oracle)</td><td rowspan=1 colspan=1>87.0</td><td rowspan=1 colspan=1>85.0</td><td rowspan=1 colspan=1>86.1</td><td rowspan=1 colspan=1>82.5</td><td rowspan=1 colspan=1>67.0</td><td rowspan=1 colspan=1>74.1</td><td rowspan=1 colspan=1>70.6</td><td rowspan=1 colspan=1>62.3</td><td rowspan=1 colspan=1>65.7</td></tr></table>
139
+
140
+ Table 2: Success rates (in percentages) on using DQN to re-optimize learned rewards. For reference, we also include Q-iteration results (labeled QI) from Table 1 as an oracle comparison.
141
+
142
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Shaping</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test-Task</td><td rowspan=1 colspan=1>Test-House</td></tr><tr><td rowspan=2 colspan=1>LC-RL (DQN)LC-RL(QI)</td><td rowspan=1 colspan=1>YesNo</td><td rowspan=1 colspan=1>12.98.0</td><td rowspan=1 colspan=1>14.17.7</td><td rowspan=1 colspan=1>14.98.0</td></tr><tr><td rowspan=1 colspan=1>=</td><td rowspan=1 colspan=1>66.9</td><td rowspan=1 colspan=1>51.9</td><td rowspan=1 colspan=1>36.4</td></tr><tr><td rowspan=2 colspan=1>Reward Regression (DQN)Reward Regression (QI)</td><td rowspan=1 colspan=1>YesNo</td><td rowspan=1 colspan=1>54.77.5</td><td rowspan=1 colspan=1>58.98.3</td><td rowspan=1 colspan=1>57.59.2</td></tr><tr><td rowspan=1 colspan=1>=</td><td rowspan=1 colspan=1>86.1</td><td rowspan=1 colspan=1>74.1</td><td rowspan=1 colspan=1>65.7</td></tr></table>
143
+
144
+ # 6.3 EXPERIMENTAL RESULTS
145
+
146
+ Our main experimental results on reward learning are reported in Table 1, and experiments in reoptimizing the learned reward function are reported in Table 2. Qualitative results with diagrams of learned reward functions can be found in Appendix B. Additional supplementary material can be viewed at https://sites.google.com/view/language-irl, and experiment hyperparameters are detailed in Appendix A.
147
+
148
+ We found that both LC-RL and Reward Regression were able to learn reward functions which generalize to both novel tasks and novel house layouts, and both achieve significant performance over the policy-based approach. As expected, we found that Reward Regression has superior performance when compared to LC-RL, due to the fact that it uses oracle ground-truth supervision.
149
+
150
+ We include examples of learned reward functions for both methods in Appendix B. We found that a common error made by the learned rewards, aside from simply misidentifying objects and locations, was rewarding the agent for reaching the goal position without placing the object down on PICK tasks. This is reflected in the results as the performance on PICK tasks is much lower than that of NAV tasks. Additionally, there is some ambiguity in the language commands, as the same environment may contain multiple copies of a single object or location, and we do not consider the case when agents can ask for additional clarification (for example, there are 2 beds in Fig. 3).
151
+
152
+ We observed especially poor performance from the cloning baseline on both training as well as testing environments, even though it was trained by directly regressing onto the optimal policy. We suspect that it is significantly more difficult for the cloning baseline to learn across multiple environments. Our language is high-level and only consists of descriptions of the goal task (such as ”move the cup to the bathroom”) rather than step-by-step instructions used in other work such as Mei et al. (2016) that allow the policy to follow a sequence of instructions. This makes the task much more difficult for a policy-learning agent as it needs to learn a mapping from language to house layouts instead of blindly following the actions specified in the language command.
153
+
154
+ Regarding re-optimization of the learned rewards, we found that DQN with epsilon-greedy exploration alone achieved poor performance compared to the exact solver and comparable performance to the cloning baseline (however, note that our cloning baseline was regressing onto the exact optimal actions). Adding a shaping term based on the value-function improves results, but computing this shaping term requires ground-truth knowledge of the environment dynamics. We also note that it appears that rewards learned through regression are easier to re-optimize than rewards learned through IRL. One explanation for this is that IRL rewards appear more “noisy” (for example, see reward plots in Appendix B, because small variations in the reward may not affect the trajectories taken by the optimal policy if a large reward occurs at the goal position. However, while RL is training it may never see the large reward and thus is heavily influenced by small, spurious variations in the reward. Nevertheless, with proper exploration methods, we believe that language-conditioned reward learning provides a performant and conceptually simple method for grounding language as concrete tasks an agent can perform within an interactive environment.
155
+
156
+ # 7 CONCLUSION
157
+
158
+ In this paper, we introduced LC-RL, an algorithm for scalable training of language-conditioned reward functions represented by neural networks. Our method restricts training to tractable domains with known dynamics, but learns a reward function which can be used with standard RL methods in environments with unknown dynamics. We demonstrate that the reward-learning approach to instruction following outperforms the policy-learning when evaluated in test environments, because the reward-learning enables an agent to learn and interact within the test environment rather than relying on zero-shot policy transfer.
159
+
160
+ # REFERENCES
161
+
162
+ Peter Anderson, Qi Wu, Damien Teney, Jake Bruce, Mark Johnson, Niko Sunderhauf, Ian D. ¨ Reid, Stephen Gould, and Anton van den Hengel. Vision-and-language navigation: Interpreting visually-grounded navigation instructions in real environments. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
163
+ Brenna D. Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 57(5):469–483, 2009.
164
+ D. Bahdanau, F. Hill, J. Leike, E. Hughes, P. Kohli, and E. Grefenstette. Learning to Follow Language Instructions with Adversarial Reward Induction. ArXiv e-prints, June 2018.
165
+ S. R. K. Branavan, Harr Chen, Luke S. Zettlemoyer, and Regina Barzilay. Reinforcement learning for mapping instructions to actions. In Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP, 2009.
166
+ Jaedeug Choi and Kee-eung Kim. Nonparametric bayesian inverse reinforcement learning for multiple reward functions. In Advances in Neural Information Processing Systems (NIPS). 2012.
167
+ P. Christiano, J. Leike, T. B. Brown, M. Martic, S. Legg, and D. Amodei. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems (NIPS), 2017.
168
+ Abhishek Das, Samyak Datta, Georgia Gkioxari, Stefan Lee, Devi Parikh, and Dhruv Batra. Embodied question answering. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
169
+ Christos Dimitrakakis and Constantin A. Rothkopf. European conference on recent advances in reinforcement learning (ewrl). In Scott Sanner and Marcus Hutter (eds.), Recent Advances in Reinforcement Learning, 2012.
170
+
171
+ Chelsea Finn, Paul Christiano, Pieter Abbeel, and Sergey Levine. A connection between generative adversarial networks, inverse reinforcement learning, and energy-based models. CoRR, abs/1611.03852, 2016.
172
+
173
+ Maxwell Forbes, Rajesh P. N. Rao, Luke Zettlemoyer, and Maya Cakmak. Robot programming by demonstration with situated spatial language understanding. In IEEE International Conference on Robotics and Automation (ICRA), 2015.
174
+
175
+ Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. In International Conference on Learning Representations (ICLR), 2018.
176
+
177
+ Karl Moritz Hermann, Felix Hill, Simon Green, Fumin Wang, Ryan Faulkner, Hubert Soyer, David Szepesvari, Wojciech Marian Czarnecki, Max Jaderberg, Denis Teplyashin, Marcus Wainwright, Chris Apps, Demis Hassabis, and Phil Blunsom. Grounded language learning in a simulated 3d world. CoRR, abs/1706.06551, 2017. URL http://arxiv.org/abs/1706.06551.
178
+
179
+ Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems (NIPS), 2016.
180
+
181
+ Kun Li and Joel W. Burdick. Meta inverse reinforcement learning via maximum reward sharing for human motion analysis. CoRR, abs/1710.03592, 2017.
182
+
183
+ James MacGlashan, Monica Babes-Vroman, Marie desJardins, Michael L. Littman, Smaranda Muresan, Shawn Squire, Stefanie Tellex, Dilip Arumugam, and Lei Yang. Grounding english commands to reward functions. In Robotics: Science and Systems (RSS), 2015.
184
+
185
+ Hongyuan Mei, Mohit Bansal, and Matthew R. Walter. Listen, attend, and walk: Neural mapping of navigational instructions to action sequences. In AAAI Conference on Artificial Intelligence (AAAI), 2016.
186
+
187
+ Dipendra Kumar Misra, Jaeyong Sung, Kevin Lee, and Ashutosh Saxena. Tell me dave: Contextsensitive grounding of natural language to manipulation instructions. In Robotics: Science and Systems (RSS), 2014.
188
+
189
+ Dipendra Kumar Misra, John Langford, and Yoav Artzi. Mapping instructions and visual observations to actions with reinforcement learning. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2017.
190
+
191
+ 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, feb 2015. ISSN 0028-0836.
192
+
193
+ Andrew Ng, Daishi Harada, and Stuart Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In International Conference on Machine Learning (ICML), 1999.
194
+
195
+ Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. Film: Visual reasoning with a general conditioning layer. 2018.
196
+
197
+ Pararth Shah, Marek Fiser, Aleksandra Faust, J. Chase Kew, and Dilek Hakkani-Tur. Follownet: ¨ Robot navigation by following natural language directions with deep reinforcement learning. CoRR, abs/1805.06150, 2018.
198
+
199
+ Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. Proceedings of 29th IEEE Conference on Computer Vision and Pattern Recognition, 2017.
200
+
201
+ Jaeyong Sung, Seok Hyun Jin, and Ashutosh Saxena. Robobarista: Object part based transfer of manipulation trajectories from crowd-sourcing in 3d pointclouds. In International Symposium on Robotics Research (ISRR), 2015.
202
+
203
+ Stefanie Tellex, Thomas Kollar, Steven Dickerson, Matthew R. Walter, Ashis Gopal Banerjee, Seth Teller, and Nicholas Roy. Understanding natural language commands for robotic navigation and mobile manipulation. In Proceedings of the Twenty-Fifth AAAI Conference on Artificial Intelligence, AAAI’11, pp. 1507–1514. AAAI Press, 2011. URL http://dl.acm.org/ citation.cfm?id=2900423.2900661.
204
+
205
+ Hsiao-Yu Fish Tung, Adam W. Harley, Liang-Kang Huang, and Katerina Fragkiadaki. Reward learning from narrated demonstrations. CoRR, abs/1804.10692, 2018.
206
+
207
+ Brian Ziebart. Modeling purposeful adaptive behavior with the principle of maximum causal entropy. PhD thesis, Carnegie Mellon University, 2010.
208
+
209
+ Brian Ziebart, Andrew Maas, Andrew Bagnell, and Anind Dey. Maximum entropy inverse reinforcement learning. In AAAI Conference on Artificial Intelligence (AAAI), 2008.
210
+
211
+ # APPENDICES
212
+
213
+ # A EXPERIMENT HYPERPARAMETERS
214
+
215
+ For our environment, we give the agent a time limit 30 time-steps to complete a task. For the purpose of reward regression and generating demonstrations, the environment gives a reward of 10 when the agent successfully completes the task. We sample demonstrations from the optimal policy using this ground-truth reward. Our MDP solvers use a discount of $\gamma = 0 . 9 9$ .
216
+
217
+ For our model, we used 10 demonstrations per environment to train IRL, and optimized with Adam using a learning rate of $5 * 1 0 ^ { - 4 }$ .
218
+
219
+ For our convolutional neural network, we used a 5x5 convolution with 16 filters, followed by a $3 \mathrm { x } 3$ convolution with 32 filters. The size of each embedding was 32. The final fully connected layer had sizes of 32, and 1 (for the final output). We did not find significant performance differences increasing the number of filters or embedding sizes.
220
+
221
+ We selected our architecture through a hyper-parameter sweep, with train and test accuracies presented below (averaged over 3 seeds each). The main architectures we swept through were whether to produce the image embedding via a global pooling layer (labeled Pooling) versus a single fully connected layer (labeled FC) versus FiLM (Perez et al., 2018), and whether to combine the language and image embeddings using a point-wise multiplication or a pooling operation (labeled Mult) versus concatenation (labeled Concat).
222
+
223
+ <table><tr><td></td><td>Train</td><td>Test-Task</td></tr><tr><td>Pooling, Mult</td><td>67.3</td><td>49.7</td></tr><tr><td>Pooling,Add</td><td>64.1</td><td>45.5</td></tr><tr><td>Pooling,Concat</td><td>65.8</td><td>48.5</td></tr><tr><td>FiLM,Mult</td><td>60.6</td><td>43.2</td></tr><tr><td>FiLM, Add</td><td>67.0</td><td>49.1</td></tr><tr><td>FiLM, Concat</td><td>63.2</td><td>44.6</td></tr><tr><td>FC,Mult</td><td>53.1</td><td>38.4</td></tr><tr><td>FC,Add</td><td>55.2</td><td>39.1</td></tr><tr><td>FC,Concat</td><td>48.1</td><td>35.2</td></tr></table>
224
+
225
+ We also conducted a single ablation study over the size of the image below, using the Pooling, Mult architecture. We found that the impact of the image size between (32 by 24) and (64 by 64) was negligible, so we selected the smaller image size for computational reasons.
226
+
227
+ <table><tr><td></td><td>Train</td><td>Test-Task</td></tr><tr><td>32 by 24</td><td>67.3</td><td>49.7</td></tr><tr><td>64by 64</td><td>70.6</td><td>51.1</td></tr></table>
228
+
229
+ # B LEARNED REWARDS AND QUALITATIVE RESULTS
230
+
231
+ Below is an example of a learned reward (and the computed value function) from our IRL model. The task presented here is to bring the fruit bowl (green arrow) to the bathroom (red arrow). In the top row, we plot the reward function, and in the bottom row we plot the resulting value function. The left column shows the rewards/values before the object (fruit bowl) is acquired, and the right column shows the rewards/values after. Note that before the object is acquired, the value directs the agent to the fruit bowl, and once the object is found, the value directs the agent to the bathroom.
232
+
233
+ In these figures, a blue shaded square means a high values and red means low. The green-outlined tiles correspond to all locations within a 1-meter radius of the fruit bowl, or all tiles an agent can pick up the bowl from. The red-outlined tile likewise represents all tiles within a 1-meter radius of the drop-off location in the bathroom. The blue-outlined square represents the starting location of the agent.
234
+
235
+ ![](images/a3f722a784f488063d9086586d1cbe549962be9ed605ab14a2e19cbeb2bd93e1.jpg)
236
+
237
+ Next, we show rewards learned by 3 different methods: inverse reinforcement learning (IRL), GAIL, and reward regression. Again, low rewards are denoted by red squares and high rewards are denoted by blue squares. For each task, we also include a birds-eye view of task, where the object is highlighted in green and the agent is denoted by a green triangle.
238
+
239
+ In general, we find that rewards learned by IRL and GAIL tend to be noisy and contain small artifacts. This is not unexpected, as both of these methods are sample-based and observe demonstrations instead of ground-truth rewards as supervision. We believe that such artifacts are detrimental when using RL to reoptimize the learned reward, as without adequate exploration RL cannot find the large reward at the true goal state, and instead ends up finding local minima.
240
+
241
+ ![](images/9180e6a22420e96b242aac03f10d95d6219aaf028879cf0568e02b4784659c54.jpg)
242
+ Figure 6: Learned rewards and a corresponding birds-eye view rollout for the task ”go to fruit bowl”.
243
+
244
+ ![](images/1bcfa437dfe95c994d4815721d6b7f50a47b95fd2802cc4e2dbacbc407a79f24.jpg)
245
+ Figure 7: Learned rewards and a corresponding birds-eye view rollout for the task ”move pan to living room”.
246
+
247
+ # C OBSERVATION CACHING
248
+
249
+ The running time for dynamic programming algorithms for solving MDPs (such as q-iteration) scales with the size of the state space, and in our environments we found reward evaluation becoming a major bottleneck in runtime. One major optimization we make to our algorithm is to cache computation on repeated observations. Computation-wise, the main bottleneck in Algorithm 1 is evaluating and back-propagating the reward function at all states and actions, rather than Q-iteration itself (even though it carries a cubic run-time dependency on the size of the state space). However, in many environments this is extremely wasteful. For example, in the house depicted in Figure 3, information about where the cup is located must be included in the state. However, if our observations are images of what the robot sees, whether the cup is in the kitchen or in the bathroom has no impact on the images inside the living room. This means that we should only need to evaluate our reward in each living room images once for both locations of the cup. A major factor in speeding up our computation was to cache such repeated computation. In practice we found this to be significant, resulting in 10-100 times speedups on reward computation depending on the structure of the environment.
parse/train/r1lq1hRqYQ/r1lq1hRqYQ_content_list.json ADDED
@@ -0,0 +1,1356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "FROM LANGUAGE TO GOALS: INVERSE REINFORCE-MENT LEARNING FOR VISION-BASED INSTRUCTIONFOLLOWING",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 823,
10
+ 171
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Justin Fu ∗, Anoop Korattikara, Sergey Levine, Sergio Guadarrama Google AI {justinfu,kbanoop,slevine,sguada}@google.com ",
17
+ "bbox": [
18
+ 183,
19
+ 195,
20
+ 650,
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": "Reinforcement learning is a promising framework for solving control problems, but its use in practical situations is hampered by the fact that reward functions are often difficult to engineer. Specifying goals and tasks for autonomous machines, such as robots, is a significant challenge: conventionally, reward functions and goal states have been used to communicate objectives. But people can communicate objectives to each other simply by describing or demonstrating them. How can we build learning algorithms that will allow us to tell machines what we want them to do? In this work, we investigate the problem of grounding language commands as reward functions using inverse reinforcement learning, and argue that language-conditioned rewards are more transferable than language-conditioned policies to new environments. We propose language-conditioned reward learning (LC-RL), which grounds language commands as a reward function represented by a deep neural network. We demonstrate that our model learns rewards that transfer to novel tasks and environments on realistic, high-dimensional visual environments with natural language commands, whereas directly learning a languageconditioned policy leads to poor performance. ",
40
+ "bbox": [
41
+ 233,
42
+ 306,
43
+ 764,
44
+ 527
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 555,
55
+ 334,
56
+ 571
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "While reinforcement learning provides a powerful and flexible framework for describing and solving control tasks, it requires the practitioner to specify objectives in terms of reward functions. Engineering reward functions is often done by experienced practitioners and researchers, and even then can pose a significant challenge, such as when working with complex image-based observations. While researchers have investigated alternative means of specifying objectives, such as learning from demonstration (Argall et al., 2009), or through binary preferences (Christiano et al., 2017), language is often a more natural and desirable way for humans to communicate goals. ",
63
+ "bbox": [
64
+ 174,
65
+ 588,
66
+ 482,
67
+ 795
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "A common approach to building natural language interfaces for reinforcement learning agents is to build language-conditioned policies ",
74
+ "bbox": [
75
+ 174,
76
+ 803,
77
+ 483,
78
+ 844
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/5e71170ca08fb2257826210ece6f73ff54f1ace30220b36c57506856bd504733.jpg",
85
+ "image_caption": [
86
+ "Figure 1: A task where an agent (green triangle) must execute the command “go to the fruit bowl.” This is a simple example where the reward function is easier to specify than the policy. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 529,
91
+ 592,
92
+ 792,
93
+ 755
94
+ ],
95
+ "page_idx": 0
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "that directly map observations and language commands to a sequence of actions that perform the desired task. However, this requires the policy to solve two challenging problems together: understanding how to plan and solve tasks in the physical world, and understanding the language command itself. The trained policy must simultaneously interpret a command and plan through possibly complicated environment dynamics. The performance of the system then hinges entirely on its ability to generalize to new environments - if either the language interpretation or the physical control fail to generalize, the entire system will fail. We can recognize instead that the role of language in such a system is to communicate the goal, and rather than mapping language directly to policies, we propose to learn how to convert language-defined goals into reward functions. In this manner, the agent can learn how to plan and perform the task on its own via reinforcement learning, directly interacting with the environment, without relying on zero-shot transfer of policies. A simple example is shown in Figure 1, where an agent is tasked with navigating through a house. If an agent is commanded “go to the fruit bowl”, a valid reward function could simply be a fruit bowl detector from first-person views of the agent. However, if we were to learn a mapping from language to actions, given the same goal description, the model would need to generate a different plan for each house. ",
100
+ "bbox": [
101
+ 174,
102
+ 844,
103
+ 825,
104
+ 901
105
+ ],
106
+ "page_idx": 0
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "",
111
+ "bbox": [
112
+ 174,
113
+ 103,
114
+ 825,
115
+ 268
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "In this work, we investigate the feasibility of grounding free-form natural language commands as reward functions using inverse reinforcement learning (IRL). Learning language-conditioned rewards poses unique computational problems. IRL methods generally require solving a reinforcement learning problem as an inner-loop (Ziebart, 2010), or rely on potentially unstable adversarial optimization procedures (Finn et al., 2016; Fu et al., 2018). This is compounded by the fact that we wish to train our model across multiple tasks, meaning the IRL problem itself is an inner-loop. In order to isolate the language-learning problem from the difficulties in solving reinforcement learning and adversarial learning problems, we base our method on an exact MaxEnt IRL (Ziebart, 2010) procedure, which requires full knowledge of environment dynamics to train a language-conditioned reward function represented by a deep neural network. While using exact IRL procedures may seem limiting, in many cases (such as indoor robotic navigation) full environment dynamics are available, and this formulation allows us to remove the difficulty of using RL from the training procedure. The crucial insight is that we can use dynamic programming methods during training to learn a reward function that maps from observations, but we do not need knowledge of dynamics to use the reward function, meaning during test time we can evaluate using a reinforcement learning agent without knowledge of the underlying environment dynamics. We evaluate our method on a dataset of realistic indoor house navigation and pick-and-place tasks using the SUNCG dataset, with natural language commands. We demonstrate that our approach generalizes not only to novel tasks, but also to entirely new scenes, while directly learning a language-conditioned policy leads to poor performance and fails to generalize. ",
122
+ "bbox": [
123
+ 174,
124
+ 277,
125
+ 825,
126
+ 554
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2 RELATED WORK ",
133
+ "text_level": 1,
134
+ "bbox": [
135
+ 176,
136
+ 578,
137
+ 344,
138
+ 593
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "A popular class of approaches to language grounding in reinforcement learning is to directly train a policy that consumes language as an input. Several works adopt a behavioral cloning approach, where the model is trained using supervised learning with language-action sequences pairs (Anderson et al., 2018; Mei et al., 2016; Sung et al., 2015). A second approach is to forego demonstrations but instead reward an agent whenever the desired task is completed (Shah et al., 2018; Misra et al., 2017; Hermann et al., 2017; Branavan et al., 2009). This approach requires reward functions (the task completion detector) to be hand-designed for the training tasks considered. Another related approach is semantic parsing, which has also been used to convert language into an executable form that corresponds to actions within an environment (Forbes et al., 2015; Misra et al., 2014; Tellex et al., 2011). In a related task to instruction following, Das et al. (2018) consider an embodied question-answering task where an agent must produce an answer to a question, where the relevant information lies within the environment. They adopt a hybrid approach, where they pretrain with supervised learning but also give the agent reward for completing intermediate tasks. Overall, our experiments show that policy-based approaches have worse generalization performance to new environments, because the policy must rely on zero-shot generalization at test time as we show in Section 6.3. While in this paper we argue for the performance benefits of a reward-based approach, a reason one may want to adopt a policy-based approach over a reward-based one is if one cannot run RL to train a new policy in a new environment, such as for time or safety reasons. ",
145
+ "bbox": [
146
+ 174,
147
+ 611,
148
+ 825,
149
+ 861
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "A second approach to the language grounding problem is to learn a mapping from language to reward functions. There are several other works that apply IRL or IRL-like procedures to the problem of language grounding. Perhaps most closely related to our work is MacGlashan et al. (2015), which also aims to learn a language-conditioned reward function via IRL. However, this method requires an extensively hand-designed, symbolic reward function class, whereas we use generic, differentiable function approximators that can handle arbitrary observations, including raw images. Bahdanau et al. (2018); Tung et al. (2018) also learn language-conditioned reward functions, but do not perform IRL, meaning that the objective does not correspond to matching the expert’s trajectory distribution. Tung et al. (2018) train a task-completion classifier, but do not evaluate their reward on control problems. The strategy they use is similar to directly regressing onto a ground-truth reward function, which we include a comparison to in Section 6 to as an oracle baseline. Bahdanau et al. (2018) adopt an adversarial approach similar to GAIL (Ho & Ermon, 2016), and use the learned discriminator as the reward function. While this produces a reward function, it does not provide any guarantees that the resulting reward function can be reoptimized in new environments to yield behavior similar to the expert. We believe our work is the first to apply language-conditioned inverse reinforcement learning to environments with image observations and deep neural networks, and we show that our rewards generalize to novel tasks and environments. ",
156
+ "bbox": [
157
+ 176,
158
+ 868,
159
+ 823,
160
+ 922
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "",
167
+ "bbox": [
168
+ 174,
169
+ 103,
170
+ 825,
171
+ 284
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "3 BACKGROUND ",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 176,
181
+ 304,
182
+ 326,
183
+ 320
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "We build off of the MaxEnt IRL model (Ziebart et al., 2008), which considers an entropy-regularized Markov decision process (MDP), defined by the tuple $( S , \\mathcal { A } , \\mathcal { T } , r , \\gamma , \\rho _ { 0 } )$ . $s , A$ are the state and action spaces respectively and $\\gamma \\in ( 0 , 1 )$ is the discount factor. $\\mathcal { T } ( s ^ { \\prime } | s , a )$ represents the transition distribution or dynamics. We additionally consider partially-observed environments, where each state is associated with an observation within an observations space $o \\in \\mathcal { O }$ . ",
190
+ "bbox": [
191
+ 174,
192
+ 334,
193
+ 825,
194
+ 405
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "The goal of ”forward” reinforcement learning is to find the optimal policy $\\pi ^ { * }$ . Let $r ( \\tau ) \\ =$ $\\scriptstyle \\sum _ { t = 0 } ^ { T } \\gamma ^ { t } r ( s _ { t } , a _ { t } )$ denote the returns of a trajectory, where $\\tau$ denotes a sequence of states and actions $( s _ { 0 } , a _ { 0 } , . . . s _ { T } , a _ { T } )$ . The MaxEnt RL objective is then to find $\\begin{array} { r } { \\pi ^ { * } = \\arg \\operatorname* { m i n } _ { \\pi } { E _ { \\tau \\sim \\pi } [ r ( \\tau ) + H ( \\tau ) ] } } \\end{array}$ . ",
201
+ "bbox": [
202
+ 174,
203
+ 411,
204
+ 825,
205
+ 458
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Inverse reinforcement learning (IRL) seeks to infer the reward function $r ( s , a )$ given a set of expert demonstrations $\\mathcal { D } = \\{ \\tau _ { 1 } , . . . , \\tau _ { N } \\} .$ ,. In IRL, we assume the demonstrations are drawn from an optimal policy $\\pi ^ { * } ( a | s )$ . We can interpret the IRL problem as solving the maximum likelihood problem: ",
212
+ "bbox": [
213
+ 174,
214
+ 463,
215
+ 825,
216
+ 506
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "equation",
222
+ "img_path": "images/aa0fd58f9222c7708294772a3a3feffa29b7f59c8f976972089defff2df0acc6.jpg",
223
+ "text": "$$\n\\operatorname * { m a x } _ { \\theta } E _ { \\tau \\sim \\mathcal { D } } \\left[ \\log p _ { \\theta } ( \\tau ) \\right] ,\n$$",
224
+ "text_format": "latex",
225
+ "bbox": [
226
+ 418,
227
+ 510,
228
+ 580,
229
+ 532
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "In the MaxEnt IRL framework, optimal trajectories are observed with probabilities proportional to the exponentiated returns, meaning $p ( \\tau ) \\propto \\exp \\{ r ( \\tau ) \\}$ (Ziebart et al., 2008). Thus, learning a reward function $r _ { \\theta } ( \\tau )$ is equivalent to fitting an energy-based model $p _ { \\theta } ( \\tau ) \\propto \\exp \\{ r _ { \\theta } ( \\tau ) \\}$ to the maximum likelihood objective in Eqn 1. The gradient to update the reward function is (Ziebart, 2010): ",
236
+ "bbox": [
237
+ 174,
238
+ 536,
239
+ 825,
240
+ 593
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "equation",
246
+ "img_path": "images/69b2b8daed3e4674bbcf5ecaccd3a9c8d52d4bb357f36a3dce35ca8d80b853f7.jpg",
247
+ "text": "$$\n\\nabla _ { \\theta } E [ \\log p _ { \\theta } ( \\tau ) ] = \\sum _ { s , a } ( \\rho ^ { \\mathcal { D } } ( s , a ) - \\rho _ { \\theta } ^ { * } ( s , a ) ) \\nabla _ { \\theta } r _ { \\theta } ( s , a ) ,\n$$",
248
+ "text_format": "latex",
249
+ "bbox": [
250
+ 312,
251
+ 608,
252
+ 684,
253
+ 643
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "where $\\rho ^ { \\mathcal { D } } ( s , a )$ represents the state-action marginal of the demonstrations, and $\\rho _ { \\theta } ^ { * } ( s , a )$ represents the state-action marginal of the optimal policy under reward $r _ { \\theta } ( s , a )$ . ",
260
+ "bbox": [
261
+ 171,
262
+ 652,
263
+ 823,
264
+ 683
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "4 MULTI-TASK IRL ",
271
+ "text_level": 1,
272
+ "bbox": [
273
+ 176,
274
+ 702,
275
+ 352,
276
+ 717
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "A unique challenge of the language-conditioned IRL problem, compared to standard IRL, is that the goal is to learn a reward function that generalizes across multiple tasks. While standard IRL methods are typically trained and evaluated on the same task, we want our language-conditioned reward function to produce correct behavior when presented with new tasks. Several previous works consider a multi-task scenario, such as in a Bayesian or meta-learning setting (Li & Burdick, 2017; Dimitrakakis & Rothkopf, 2012; Choi & Kim, 2012). We adopt a similar approach adapted for the language-IRL problem, and formalize the notion of a task, denoted by $\\xi$ , as an MDP, where individual tasks may not share the same state spaces, dynamics or reward functions. Each task is associated with a context $c _ { \\xi }$ which is a unique identifier (i.e. an indicator vector) for that task. Thus, we wish to optimize the following multi-task objective, where $\\tau _ { \\xi }$ denotes expert demonstrations for that task: ",
283
+ "bbox": [
284
+ 173,
285
+ 731,
286
+ 825,
287
+ 886
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "equation",
293
+ "img_path": "images/3db1845f532b51a7bac21922374c9151bf92a1d4c99d774b384751031e76c55d.jpg",
294
+ "text": "$$\n\\operatorname* { m a x } _ { \\theta } E _ { \\xi } [ E _ { \\tau _ { \\xi } } [ \\log p _ { \\theta } ( \\tau _ { \\xi } , c _ { \\xi } ) ] ]\n$$",
295
+ "text_format": "latex",
296
+ "bbox": [
297
+ 406,
298
+ 905,
299
+ 594,
300
+ 926
301
+ ],
302
+ "page_idx": 2
303
+ },
304
+ {
305
+ "type": "table",
306
+ "img_path": "images/e1e66da165ca2ad5f53a8bc6dc1d6c415b53fd6b0c954df81209f925d6738dee.jpg",
307
+ "table_caption": [
308
+ "Algorithm 1 Language-Conditioned Reward Learning (LC-RL) "
309
+ ],
310
+ "table_footnote": [],
311
+ "table_body": "<table><tr><td>1: Obtain expert demonstrations and language describing the goal.</td></tr><tr><td>2: Initialize reward function rθ .</td></tr><tr><td>3: for step t in {1,...,N} do</td></tr><tr><td>4: Sample task ε, demonstrations dg ,and language Lg.</td></tr><tr><td>5: Compute optimal q*(s,a) using q-iteration and p*(s,a) using the forward algorithm</td></tr><tr><td></td></tr><tr><td>6: Update reward rθ with the gradient (ρdε(s,a) - p*(s,a)) Vre(o,a,Lg) 7: end for</td></tr></table>",
312
+ "bbox": [
313
+ 179,
314
+ 119,
315
+ 776,
316
+ 219
317
+ ],
318
+ "page_idx": 3
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "In order to optimize this objective, we first require that all tasks share the same observation space and action space, and the reward to be a function of the observation, rather than of the state. For example, in our experiments, all observations are in the form of $3 2 \\mathrm { x } 2 4$ images taken from simulated houses, but the state space for each house is allowed to differ (i.e., the houses have different layouts). This means the same reward can be used across all MDPs even though the state spaces differ. ",
323
+ "bbox": [
324
+ 174,
325
+ 252,
326
+ 825,
327
+ 323
328
+ ],
329
+ "page_idx": 3
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "Second, we share the reward function across all tasks, but substitute a language command $\\mathcal { L } _ { \\xi }$ as a proxy for the context $c _ { \\xi }$ , resulting in a model $p _ { \\theta } ( \\tau _ { \\xi } , \\mathcal { L } _ { \\xi } )$ that takes as input language, states, and actions. For computational efficiency we run stochastic gradient descent on the objective in Eqn. 3 by sampling over the set of environments on each iteration. ",
334
+ "bbox": [
335
+ 174,
336
+ 329,
337
+ 825,
338
+ 386
339
+ ],
340
+ "page_idx": 3
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "5 LANGUAGE-CONDITIONED REWARD LEARNING (LC-RL) ",
345
+ "text_level": 1,
346
+ "bbox": [
347
+ 174,
348
+ 412,
349
+ 684,
350
+ 429
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "We learn language-conditioned reward functions using maximum causal entropy IRL, adapted for a multi-task setting and rewards represented by language-conditioned convolutional neural networks. While during training we use dynamic programming methods that require dynamics knowledge, we do not need knowledge of dynamics to evaluate the reward function. Thus, at test time we can use standard model-free RL algorithms to learn the task from the inferred reward function in new environments. Our algorithm is briefly summarized in Algorithm 1. ",
357
+ "bbox": [
358
+ 174,
359
+ 448,
360
+ 825,
361
+ 534
362
+ ],
363
+ "page_idx": 3
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "5.1 COMPUTING EXACT IRL GRADIENT UPDATES ",
368
+ "text_level": 1,
369
+ "bbox": [
370
+ 174,
371
+ 556,
372
+ 537,
373
+ 571
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "In order to take gradient steps on the objective of Eqn. 3, we update our reward function in terms of the Maximum Entropy IRL gradient (Ziebart, 2010) according to Eqn. 2. The stochastic gradient update (for a single task $\\xi$ ) adapted to our case is: ",
380
+ "bbox": [
381
+ 174,
382
+ 585,
383
+ 825,
384
+ 627
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "equation",
390
+ "img_path": "images/e76417de215c3130d36d9269e9dcfb87bd62710f7e84259358fd0158e0d8acd4.jpg",
391
+ "text": "$$\n\\nabla _ { \\theta } E _ { \\tau } [ \\log p _ { \\theta } ( \\tau _ { \\xi } , \\mathcal { L } _ { \\xi } ) ] = \\sum _ { s , a } ( \\rho ^ { d } ( s , a ) - \\rho _ { \\theta } ^ { * } ( s , a ) ) \\nabla _ { \\theta } r _ { \\theta } ( o ( s ) , a , \\mathcal { L } _ { \\xi } )\n$$",
392
+ "text_format": "latex",
393
+ "bbox": [
394
+ 276,
395
+ 652,
396
+ 722,
397
+ 688
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Where $o ( s )$ denotes the observation for state $s$ . Note that during training we need access to the ground truth states $s$ . While the update depends on the underlying state, the reward itself is only a function of the observation, the action, and the language. This enables us to evaluate the reward without knowing the underlying state space and dynamics of the environment. While requiring dynamics knowledge during training may seem limiting, in practice many environments we may wish to train a robot in can easily be mapped. This training strategy is analogous to training a robot in only known environments such as a laboratory, but the resulting reward can be used in unknown environments. ",
404
+ "bbox": [
405
+ 174,
406
+ 707,
407
+ 825,
408
+ 819
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "In order to compute $\\rho _ { \\theta } ^ { * } ( s , a )$ , one normally has to first compute the optimal policy with respect to reward $r _ { \\theta } ( o , a )$ using reinforcement learning, and then compute the occupancy measure using the forward algorithm for Markov chains to compute the state visitation distributions at each time-step. Because this embeds a difficult RL optimization problem within nested inner-loops, this quickly becomes computationally intractable. Thus, we train in tabular environments with known dynamics, where we can compute optimal policies exactly using Q-iteration. However, we emphasize that this is only a training time restriction, and knowledge of dynamics is not required to evaluate the rewards. ",
415
+ "bbox": [
416
+ 173,
417
+ 825,
418
+ 825,
419
+ 924
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "image",
425
+ "img_path": "images/f3cb66f02a1107fd18e35bab67acccca5473dba6383bdc7079370bdcbbbd5bd5.jpg",
426
+ "image_caption": [
427
+ "Figure 2: Our reward function architecture. Our network receives as input a panoramic semantic image (4 views) and a language command represented as a sequence of one-hot word vectors, and outputs a scalar reward. "
428
+ ],
429
+ "image_footnote": [],
430
+ "bbox": [
431
+ 285,
432
+ 101,
433
+ 720,
434
+ 252
435
+ ],
436
+ "page_idx": 4
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "5.2 ARCHITECTURE ",
441
+ "text_level": 1,
442
+ "bbox": [
443
+ 174,
444
+ 332,
445
+ 326,
446
+ 345
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "Our network architecture is shown in Figure 2. The network has two main modalities of input: a variable-length language input represented by a sequence of one-hot vectors (one vector for each tokenized word), and a panoramic image observation. ",
453
+ "bbox": [
454
+ 174,
455
+ 358,
456
+ 825,
457
+ 400
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "The language embedding is formed by processing the language input sequence through an LSTM network, and the final time-step of the topmost layer is used as a fixed-dimensional embedding elanguage of the input command. ",
464
+ "bbox": [
465
+ 174,
466
+ 407,
467
+ 825,
468
+ 449
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "The agent receives image observations in the form of four $3 2 \\mathrm { x } 2 4$ image observations, one for each cardinal direction view (N, S, E, W). The convolutional neural network (CNN) consists of a sequence of convolutional and max pool layers, with the final operation being a channel-wise global pooling operation that produces an image embedding of the same length as the language embedding. Each image is passed through an identical CNN with shared weights, and the outputs are summed together to form the image embedding. That is, $e _ { \\mathrm { i m a g e } } = \\mathbf { C N N } ( \\mathrm { i m } \\mathbf { g } _ { N } ) + \\mathbf { C N N } ( \\mathrm { i m } \\mathbf { g } _ { S } ) + \\mathbf { C N N } ( \\mathrm { i m } \\mathbf { g } _ { E } ) +$ $\\mathbf { C N N } ( \\mathrm { i m g } _ { W } )$ . ",
475
+ "bbox": [
476
+ 174,
477
+ 457,
478
+ 825,
479
+ 555
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "Finally, these two embeddings are element-wise multiplied and passed through a fully-connected network (FC) to produce a reward output. Letting $\\odot$ denote elementwise multiplication, we have $r = \\mathrm { F C } ( e _ { \\mathrm { i m a g e } } \\odot e _ { \\mathrm { l a n g u a g e } } )$ . ",
486
+ "bbox": [
487
+ 174,
488
+ 560,
489
+ 825,
490
+ 604
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "We found that the max global-pooling architecture in the CNN was able to select out objects from a scene and allow the language embedding to modulate which features to attend to. We selected our architecture via a hyper-parameter search, and found that the choice of using an element-wise multiplication versus a concatenation for combining embeddings had no appreciable performance difference, but a global pooling architecture performed significantly better than using a fully connected layer at the end of the CNN. ",
497
+ "bbox": [
498
+ 174,
499
+ 609,
500
+ 825,
501
+ 693
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "6 EVALUATION ",
508
+ "text_level": 1,
509
+ "bbox": [
510
+ 174,
511
+ 713,
512
+ 315,
513
+ 728
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "We evaluate our method within a collection of simulated indoor house environments, built on top of the SUNCG (Song et al., 2017) dataset. The SUNCG dataset provides a large repository of complex and realistic 3D environments which we find very suitable for our goals. An example task from our environment is shown in Figures 3 and 4. An example of a successful execution of a task is showin in Fig. 5. ",
520
+ "bbox": [
521
+ 174,
522
+ 744,
523
+ 825,
524
+ 814
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "6.1 ENVIRONMENT ",
531
+ "text_level": 1,
532
+ "bbox": [
533
+ 174,
534
+ 830,
535
+ 320,
536
+ 844
537
+ ],
538
+ "page_idx": 4
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "We consider two typical kinds of tasks that an indoor robot may wish to perform: ",
543
+ "bbox": [
544
+ 176,
545
+ 856,
546
+ 704,
547
+ 871
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "• Navigation (NAV): In the navigation task, the agent is given a location which corresponds to a room or object, and the agent must navigate through the house to reach the target location. For example, in Fig. 3, the target could be ”cup” or ”laptop” or ”living room”. ",
554
+ "bbox": [
555
+ 217,
556
+ 882,
557
+ 823,
558
+ 924
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "image",
564
+ "img_path": "images/cdace129ad738b81b305696edad646670941ae49887c617f761c225c048e1dc5.jpg",
565
+ "image_caption": [
566
+ "Figure 3: An example task. The green segment corresponds to the solution of a NAV task, ”go to the cup”, where the cup is circled in green. The green plus blue segments represents a path for the PICK task, ”move the cup to the bed”, where the bed is circled in blue. "
567
+ ],
568
+ "image_footnote": [],
569
+ "bbox": [
570
+ 217,
571
+ 106,
572
+ 457,
573
+ 229
574
+ ],
575
+ "page_idx": 5
576
+ },
577
+ {
578
+ "type": "image",
579
+ "img_path": "images/28ca2602fae11df6b47ce7b36c7d39de637ba4b5a4bc8160c0e57e228da93603.jpg",
580
+ "image_caption": [
581
+ "Figure 4: Example first-person RGB (left) and semantic (right) images from the bedroom inside the house depicted in Figure 3. We only use the semantic labels as input to our model. "
582
+ ],
583
+ "image_footnote": [],
584
+ "bbox": [
585
+ 509,
586
+ 119,
587
+ 808,
588
+ 236
589
+ ],
590
+ "page_idx": 5
591
+ },
592
+ {
593
+ "type": "image",
594
+ "img_path": "images/d1a108a7bf4b6d49ce6fd1915455ff10baca4541408a9db638895372665a8140.jpg",
595
+ "image_caption": [
596
+ "Figure 5: Top row: First-person view of an agent executing the task: “move vase to living room”. The vase is circled in green in the 3rd image. Bottom row: A bird’s eye view of the initial (left) and final (right) positions of the agent (green triangle) and the vase (green outline). "
597
+ ],
598
+ "image_footnote": [],
599
+ "bbox": [
600
+ 199,
601
+ 343,
602
+ 799,
603
+ 558
604
+ ],
605
+ "page_idx": 5
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "• Pick-and-place (PICK): In the pick and place task, the agent must move an object from one location to another. For example, in Fig. 1 the task could be to move the cup from to the sink to the kitchen table. ",
610
+ "bbox": [
611
+ 217,
612
+ 617,
613
+ 821,
614
+ 659
615
+ ],
616
+ "page_idx": 5
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "Each environment corresponds to one 3D scene, which is discretized into a grid to form a tabular environment where the grid coordinates plus agent orientation (N, S, E, W) correspond to the state of the agent. The agent receives observations with two components: one is a free-form language command, and one is a first-person panoramic image of the environment. Because the agent can move objects without directly looking at them, the panoramic view gives the agent a full view of its surroundings. The panoramic image is formed from 4 semantic image observations, one for each orientation of the agent. Each semantic image observation is $3 2 \\mathrm { x } 3 2 $ pixels and contains 61 channels, one per semantic image class. Each agent is equipped with 4 actions: step forward one grid tile, turn left or right, or interact with an object. ",
621
+ "bbox": [
622
+ 173,
623
+ 672,
624
+ 825,
625
+ 797
626
+ ],
627
+ "page_idx": 5
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "We generate language commands based on a preset grammar, and using names of objects and locations associated with the task. These are of the form ”go to $X ^ { \\ast }$ for NAV tasks, or ”move X to $\\mathbf { Y } ^ { \\prime \\prime }$ for PICK tasks, where X and $\\mathrm { Y }$ stand for names of locations and objects within the environment. We explicitly do not use step-by-step instruction language such as ”turn left, walk down the hallway, go through the door”, as these commands remove the planning aspect of the problem and tell the agent directly which actions to take in order to solve the problem. ",
632
+ "bbox": [
633
+ 174,
634
+ 805,
635
+ 825,
636
+ 888
637
+ ],
638
+ "page_idx": 5
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "The interact action only has meaning within the PICK task. Executing this action will either pick up an object if the agent is within a 1 meter of an object, or drop an object if the agent is currently holding an object. To limit the size of the state space, within a single task, there is only one object an agent may interact with and two locations the object can be in. This setup only increases the size of the state-space by a factor of 3. However, different objects may be placed in different locations across environments, meaning the model still must learn to detect the object in the correct location rather than memorizing the specific object and location associated with a single task. ",
643
+ "bbox": [
644
+ 174,
645
+ 895,
646
+ 821,
647
+ 924
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "",
654
+ "bbox": [
655
+ 174,
656
+ 103,
657
+ 825,
658
+ 174
659
+ ],
660
+ "page_idx": 6
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "6.2 EXPERIMENTAL PROCEDURE ",
665
+ "text_level": 1,
666
+ "bbox": [
667
+ 176,
668
+ 194,
669
+ 415,
670
+ 208
671
+ ],
672
+ "page_idx": 6
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "In order to evaluate how well different methods generalize, we split our dataset of tasks into three segments: a training set, and two test sets – “task” and “house”. The ”task” test set contains tasks within the same houses as training, but requires the agent to interact with novel combinations of objects and locations. The ”house” test set contains tasks on entirely new houses that were not in the training set. The purpose of this split is to investigate varying degrees of generalization: the ”task” test set requires the model to execute novel language commands, but using landmarks and objects which were seen during training. The ”house” test set adds another layer of difficulty, requiring the model to detect familiar objects situated in entirely new scenes. ",
677
+ "bbox": [
678
+ 174,
679
+ 220,
680
+ 825,
681
+ 333
682
+ ],
683
+ "page_idx": 6
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "In total, our dataset contains 1413 tasks (716 PICK, 697 NAV). Across all tasks, there are 14 objects, and 76 different house layouts. There are 1004 tasks $( 7 1 \\% )$ in the training set, 236 $( 1 7 \\% )$ in the ”task” test set, and 173 $( 1 2 \\% )$ in the ”house” test set. ",
688
+ "bbox": [
689
+ 176,
690
+ 339,
691
+ 820,
692
+ 381
693
+ ],
694
+ "page_idx": 6
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "We evaluate two methods for reward learning. LC-RL refers to the language-conditioned IRL method outlined in Section 5, which takes as input demonstration and language pairs and learns a shared reward function across all tasks. In particular, we use 10 demonstrations per task, sampled from the computed optimal policy. To provide an upper bound for performance, we can also regress directly onto the ground-truth rewards, a method we label as “Reward Regression”. While this is not possible in a practical scenario, this evaluation serves to show oracle performance on our task. Note that our method does not require access to ground-truth rewards, and only uses demonstrations. ",
699
+ "bbox": [
700
+ 174,
701
+ 388,
702
+ 825,
703
+ 486
704
+ ],
705
+ "page_idx": 6
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Success rates for each reward-learning method are evaluated using two policy learning procedures. Q-iteration (QI) computes the optimal policy exactly using dynamic programming, which we report in Table 1. We also experiment with reoptimizing the learned reward using DQN (Mnih et al., 2015), a sample-based RL method that does not require ground-truth knowledge of the environment dynamics. We use the position, orientation, and whether an object is held as the observation (this is identical to the state representation). This experiment represents the testing use-case where we can evaluate the reward at test-time in novel, unmapped environments despite the fact that at training time we require dynamics knowledge. However, because the probability that the random policy receives rewards on our task is tiny, we found that epsilon-greedy exploration was not enough. Thus, we also report results using a reward shaping term with a state-based potential equal to the optimal value function $\\mathrm { N g }$ et al., 1999). We note that this shaping term does require dynamics knowledge compute, but we include this result to highlight the difficulty of the RL problem even if reward learning is done properly. ",
710
+ "bbox": [
711
+ 174,
712
+ 492,
713
+ 825,
714
+ 674
715
+ ],
716
+ "page_idx": 6
717
+ },
718
+ {
719
+ "type": "text",
720
+ "text": "We also compare against two baselines derived from GAIL (Ho & Ermon, 2016), using the learned discriminator as the “reward” function. We first compare to AGILE (Bahdanau et al., 2018), which modifies GAIL to use a goal-based discriminator and false negative filtering, using DQN as a policy optimizer and $\\rho \\ : = \\ : 0 . 2 5$ . We found it difficult to learn rewards using a reinforcement learningbased policy optimizer, and the model was only able to solve the simpler NAV environments. This experiment emphasizes the gap between using a sampling-based solver and an exact solver during the training of reward-based methods. To create a more fair comparison, we also compare against GAIL using a dynamic programming solver (labeled GAIL-Exact), and we see that the performance is comparable to LC-RL on training environments, but performs significantly worse on test environments. These results are in line with our intuitions - GAIL and IRL are equivalent in training scenarios (Ho & Ermon, 2016), but the discriminator of GAIL does not correspond to the true reward function, and thus performs worse when evaluated in novel environments. ",
721
+ "bbox": [
722
+ 174,
723
+ 680,
724
+ 825,
725
+ 847
726
+ ],
727
+ "page_idx": 6
728
+ },
729
+ {
730
+ "type": "text",
731
+ "text": "In order compare against a policy-learning approach, we compare against an optimal behavioral cloning baseline. We train the optimal cloning baseline by computing the exact optimal policy using Q-iteration, and perform supervised learning to regress directly on to the optimal action probabilities. To make a fair comparison, we keep the policy architecture identical to the reward architecture, except we add two additional inputs: the orientation indicator and and indicator on whether the object (during PICK tasks) is held by the agent or not. Each indicator is transformed by an embedding lookup, and all embeddings are element-wise multiplied along with with the language and image embeddings in the original architecture. ",
732
+ "bbox": [
733
+ 174,
734
+ 854,
735
+ 823,
736
+ 924
737
+ ],
738
+ "page_idx": 6
739
+ },
740
+ {
741
+ "type": "table",
742
+ "img_path": "images/3f7871d3428abd72d1bfaef8acebed94633fa298a124a5ce82583950dc6587e8.jpg",
743
+ "table_caption": [
744
+ "Table 1: Success rates (in percentages) across task categories. Each result is averaged over 3 seeds. Test-Task refers to testing on novel tasks within the same houses as training, whereas Test-House refers to testing novel tasks in novel houses. The AGILE method is described in (Bahdanau et al., 2018) "
745
+ ],
746
+ "table_footnote": [],
747
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=9>Train Test-Task Test-House</td></tr><tr><td rowspan=3 colspan=1>Optimal Policy CloningAGILE</td><td rowspan=1 colspan=1>PICK</td><td rowspan=1 colspan=1>NAV</td><td rowspan=1 colspan=1>Total</td><td rowspan=1 colspan=1>PICK</td><td rowspan=1 colspan=1>NAV</td><td rowspan=1 colspan=1>Total</td><td rowspan=1 colspan=1>PICK</td><td rowspan=1 colspan=1>NAV</td><td rowspan=1 colspan=1>Total</td></tr><tr><td rowspan=1 colspan=1>20.7</td><td rowspan=1 colspan=1>61.6</td><td rowspan=1 colspan=1>40.3</td><td rowspan=1 colspan=1>10.1</td><td rowspan=1 colspan=1>29.4</td><td rowspan=1 colspan=1>19.6</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>17.2</td><td rowspan=1 colspan=1>8.5</td></tr><tr><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>40.9</td><td rowspan=1 colspan=1>18.0</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>34.1</td><td rowspan=1 colspan=1>16.8</td><td rowspan=1 colspan=1>0.0</td><td rowspan=1 colspan=1>30.6</td><td rowspan=1 colspan=1>15.1</td></tr><tr><td rowspan=1 colspan=1>GAIL-Exact</td><td rowspan=1 colspan=1>59.4</td><td rowspan=1 colspan=1>73.5</td><td rowspan=1 colspan=1>66.9</td><td rowspan=1 colspan=1>49.1</td><td rowspan=1 colspan=1>50.4</td><td rowspan=1 colspan=1>49.8</td><td rowspan=1 colspan=1>23.5</td><td rowspan=1 colspan=1>35.4</td><td rowspan=1 colspan=1>28.3</td></tr><tr><td rowspan=1 colspan=1>LC-RL(ours)</td><td rowspan=1 colspan=1>63.8</td><td rowspan=1 colspan=1>69.7</td><td rowspan=1 colspan=1>66.9</td><td rowspan=1 colspan=1>56.7</td><td rowspan=1 colspan=1>47.8</td><td rowspan=1 colspan=1>51.9</td><td rowspan=1 colspan=1>32.1</td><td rowspan=1 colspan=1>39.4</td><td rowspan=1 colspan=1>36.4</td></tr><tr><td rowspan=1 colspan=1>Reward Reg. (Oracle)</td><td rowspan=1 colspan=1>87.0</td><td rowspan=1 colspan=1>85.0</td><td rowspan=1 colspan=1>86.1</td><td rowspan=1 colspan=1>82.5</td><td rowspan=1 colspan=1>67.0</td><td rowspan=1 colspan=1>74.1</td><td rowspan=1 colspan=1>70.6</td><td rowspan=1 colspan=1>62.3</td><td rowspan=1 colspan=1>65.7</td></tr></table>",
748
+ "bbox": [
749
+ 173,
750
+ 184,
751
+ 846,
752
+ 289
753
+ ],
754
+ "page_idx": 7
755
+ },
756
+ {
757
+ "type": "table",
758
+ "img_path": "images/d49199b43fd86ab56a08aa0f95c409273f026c347c3dd4c0050b8450b7efe38d.jpg",
759
+ "table_caption": [
760
+ "Table 2: Success rates (in percentages) on using DQN to re-optimize learned rewards. For reference, we also include Q-iteration results (labeled QI) from Table 1 as an oracle comparison. "
761
+ ],
762
+ "table_footnote": [],
763
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Shaping</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test-Task</td><td rowspan=1 colspan=1>Test-House</td></tr><tr><td rowspan=2 colspan=1>LC-RL (DQN)LC-RL(QI)</td><td rowspan=1 colspan=1>YesNo</td><td rowspan=1 colspan=1>12.98.0</td><td rowspan=1 colspan=1>14.17.7</td><td rowspan=1 colspan=1>14.98.0</td></tr><tr><td rowspan=1 colspan=1>=</td><td rowspan=1 colspan=1>66.9</td><td rowspan=1 colspan=1>51.9</td><td rowspan=1 colspan=1>36.4</td></tr><tr><td rowspan=2 colspan=1>Reward Regression (DQN)Reward Regression (QI)</td><td rowspan=1 colspan=1>YesNo</td><td rowspan=1 colspan=1>54.77.5</td><td rowspan=1 colspan=1>58.98.3</td><td rowspan=1 colspan=1>57.59.2</td></tr><tr><td rowspan=1 colspan=1>=</td><td rowspan=1 colspan=1>86.1</td><td rowspan=1 colspan=1>74.1</td><td rowspan=1 colspan=1>65.7</td></tr></table>",
764
+ "bbox": [
765
+ 245,
766
+ 359,
767
+ 753,
768
+ 462
769
+ ],
770
+ "page_idx": 7
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "",
775
+ "bbox": [
776
+ 174,
777
+ 500,
778
+ 825,
779
+ 542
780
+ ],
781
+ "page_idx": 7
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "6.3 EXPERIMENTAL RESULTS ",
786
+ "text_level": 1,
787
+ "bbox": [
788
+ 174,
789
+ 566,
790
+ 392,
791
+ 582
792
+ ],
793
+ "page_idx": 7
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "Our main experimental results on reward learning are reported in Table 1, and experiments in reoptimizing the learned reward function are reported in Table 2. Qualitative results with diagrams of learned reward functions can be found in Appendix B. Additional supplementary material can be viewed at https://sites.google.com/view/language-irl, and experiment hyperparameters are detailed in Appendix A. ",
798
+ "bbox": [
799
+ 174,
800
+ 595,
801
+ 823,
802
+ 666
803
+ ],
804
+ "page_idx": 7
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "We found that both LC-RL and Reward Regression were able to learn reward functions which generalize to both novel tasks and novel house layouts, and both achieve significant performance over the policy-based approach. As expected, we found that Reward Regression has superior performance when compared to LC-RL, due to the fact that it uses oracle ground-truth supervision. ",
809
+ "bbox": [
810
+ 174,
811
+ 672,
812
+ 825,
813
+ 728
814
+ ],
815
+ "page_idx": 7
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "We include examples of learned reward functions for both methods in Appendix B. We found that a common error made by the learned rewards, aside from simply misidentifying objects and locations, was rewarding the agent for reaching the goal position without placing the object down on PICK tasks. This is reflected in the results as the performance on PICK tasks is much lower than that of NAV tasks. Additionally, there is some ambiguity in the language commands, as the same environment may contain multiple copies of a single object or location, and we do not consider the case when agents can ask for additional clarification (for example, there are 2 beds in Fig. 3). ",
820
+ "bbox": [
821
+ 174,
822
+ 734,
823
+ 825,
824
+ 833
825
+ ],
826
+ "page_idx": 7
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "We observed especially poor performance from the cloning baseline on both training as well as testing environments, even though it was trained by directly regressing onto the optimal policy. We suspect that it is significantly more difficult for the cloning baseline to learn across multiple environments. Our language is high-level and only consists of descriptions of the goal task (such as ”move the cup to the bathroom”) rather than step-by-step instructions used in other work such as Mei et al. (2016) that allow the policy to follow a sequence of instructions. This makes the task much more difficult for a policy-learning agent as it needs to learn a mapping from language to house layouts instead of blindly following the actions specified in the language command. ",
831
+ "bbox": [
832
+ 174,
833
+ 840,
834
+ 825,
835
+ 924
836
+ ],
837
+ "page_idx": 7
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "",
842
+ "bbox": [
843
+ 171,
844
+ 103,
845
+ 821,
846
+ 132
847
+ ],
848
+ "page_idx": 8
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "Regarding re-optimization of the learned rewards, we found that DQN with epsilon-greedy exploration alone achieved poor performance compared to the exact solver and comparable performance to the cloning baseline (however, note that our cloning baseline was regressing onto the exact optimal actions). Adding a shaping term based on the value-function improves results, but computing this shaping term requires ground-truth knowledge of the environment dynamics. We also note that it appears that rewards learned through regression are easier to re-optimize than rewards learned through IRL. One explanation for this is that IRL rewards appear more “noisy” (for example, see reward plots in Appendix B, because small variations in the reward may not affect the trajectories taken by the optimal policy if a large reward occurs at the goal position. However, while RL is training it may never see the large reward and thus is heavily influenced by small, spurious variations in the reward. Nevertheless, with proper exploration methods, we believe that language-conditioned reward learning provides a performant and conceptually simple method for grounding language as concrete tasks an agent can perform within an interactive environment. ",
853
+ "bbox": [
854
+ 173,
855
+ 140,
856
+ 825,
857
+ 319
858
+ ],
859
+ "page_idx": 8
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "7 CONCLUSION ",
864
+ "text_level": 1,
865
+ "bbox": [
866
+ 176,
867
+ 340,
868
+ 318,
869
+ 357
870
+ ],
871
+ "page_idx": 8
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "In this paper, we introduced LC-RL, an algorithm for scalable training of language-conditioned reward functions represented by neural networks. Our method restricts training to tractable domains with known dynamics, but learns a reward function which can be used with standard RL methods in environments with unknown dynamics. We demonstrate that the reward-learning approach to instruction following outperforms the policy-learning when evaluated in test environments, because the reward-learning enables an agent to learn and interact within the test environment rather than relying on zero-shot policy transfer. ",
876
+ "bbox": [
877
+ 174,
878
+ 373,
879
+ 825,
880
+ 470
881
+ ],
882
+ "page_idx": 8
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "REFERENCES ",
887
+ "text_level": 1,
888
+ "bbox": [
889
+ 174,
890
+ 493,
891
+ 285,
892
+ 508
893
+ ],
894
+ "page_idx": 8
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Peter Anderson, Qi Wu, Damien Teney, Jake Bruce, Mark Johnson, Niko Sunderhauf, Ian D. ¨ Reid, Stephen Gould, and Anton van den Hengel. Vision-and-language navigation: Interpreting visually-grounded navigation instructions in real environments. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. \nBrenna D. Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 57(5):469–483, 2009. \nD. Bahdanau, F. Hill, J. Leike, E. Hughes, P. Kohli, and E. Grefenstette. Learning to Follow Language Instructions with Adversarial Reward Induction. ArXiv e-prints, June 2018. \nS. R. K. Branavan, Harr Chen, Luke S. Zettlemoyer, and Regina Barzilay. Reinforcement learning for mapping instructions to actions. In Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP, 2009. \nJaedeug Choi and Kee-eung Kim. Nonparametric bayesian inverse reinforcement learning for multiple reward functions. In Advances in Neural Information Processing Systems (NIPS). 2012. \nP. Christiano, J. Leike, T. B. Brown, M. Martic, S. Legg, and D. Amodei. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems (NIPS), 2017. \nAbhishek Das, Samyak Datta, Georgia Gkioxari, Stefan Lee, Devi Parikh, and Dhruv Batra. Embodied question answering. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. \nChristos Dimitrakakis and Constantin A. Rothkopf. European conference on recent advances in reinforcement learning (ewrl). In Scott Sanner and Marcus Hutter (eds.), Recent Advances in Reinforcement Learning, 2012. ",
899
+ "bbox": [
900
+ 171,
901
+ 518,
902
+ 826,
903
+ 925
904
+ ],
905
+ "page_idx": 8
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Chelsea Finn, Paul Christiano, Pieter Abbeel, and Sergey Levine. A connection between generative adversarial networks, inverse reinforcement learning, and energy-based models. CoRR, abs/1611.03852, 2016. ",
910
+ "bbox": [
911
+ 173,
912
+ 103,
913
+ 823,
914
+ 146
915
+ ],
916
+ "page_idx": 9
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Maxwell Forbes, Rajesh P. N. Rao, Luke Zettlemoyer, and Maya Cakmak. Robot programming by demonstration with situated spatial language understanding. In IEEE International Conference on Robotics and Automation (ICRA), 2015. ",
921
+ "bbox": [
922
+ 173,
923
+ 156,
924
+ 825,
925
+ 199
926
+ ],
927
+ "page_idx": 9
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Justin Fu, Katie Luo, and Sergey Levine. Learning robust rewards with adversarial inverse reinforcement learning. In International Conference on Learning Representations (ICLR), 2018. ",
932
+ "bbox": [
933
+ 171,
934
+ 208,
935
+ 820,
936
+ 238
937
+ ],
938
+ "page_idx": 9
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Karl Moritz Hermann, Felix Hill, Simon Green, Fumin Wang, Ryan Faulkner, Hubert Soyer, David Szepesvari, Wojciech Marian Czarnecki, Max Jaderberg, Denis Teplyashin, Marcus Wainwright, Chris Apps, Demis Hassabis, and Phil Blunsom. Grounded language learning in a simulated 3d world. CoRR, abs/1706.06551, 2017. URL http://arxiv.org/abs/1706.06551. ",
943
+ "bbox": [
944
+ 173,
945
+ 247,
946
+ 826,
947
+ 304
948
+ ],
949
+ "page_idx": 9
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Jonathan Ho and Stefano Ermon. Generative adversarial imitation learning. In Advances in Neural Information Processing Systems (NIPS), 2016. ",
954
+ "bbox": [
955
+ 169,
956
+ 314,
957
+ 823,
958
+ 343
959
+ ],
960
+ "page_idx": 9
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Kun Li and Joel W. Burdick. Meta inverse reinforcement learning via maximum reward sharing for human motion analysis. CoRR, abs/1710.03592, 2017. ",
965
+ "bbox": [
966
+ 171,
967
+ 353,
968
+ 823,
969
+ 382
970
+ ],
971
+ "page_idx": 9
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "James MacGlashan, Monica Babes-Vroman, Marie desJardins, Michael L. Littman, Smaranda Muresan, Shawn Squire, Stefanie Tellex, Dilip Arumugam, and Lei Yang. Grounding english commands to reward functions. In Robotics: Science and Systems (RSS), 2015. ",
976
+ "bbox": [
977
+ 173,
978
+ 392,
979
+ 823,
980
+ 435
981
+ ],
982
+ "page_idx": 9
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Hongyuan Mei, Mohit Bansal, and Matthew R. Walter. Listen, attend, and walk: Neural mapping of navigational instructions to action sequences. In AAAI Conference on Artificial Intelligence (AAAI), 2016. ",
987
+ "bbox": [
988
+ 173,
989
+ 444,
990
+ 826,
991
+ 488
992
+ ],
993
+ "page_idx": 9
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Dipendra Kumar Misra, Jaeyong Sung, Kevin Lee, and Ashutosh Saxena. Tell me dave: Contextsensitive grounding of natural language to manipulation instructions. In Robotics: Science and Systems (RSS), 2014. ",
998
+ "bbox": [
999
+ 173,
1000
+ 497,
1001
+ 826,
1002
+ 540
1003
+ ],
1004
+ "page_idx": 9
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Dipendra Kumar Misra, John Langford, and Yoav Artzi. Mapping instructions and visual observations to actions with reinforcement learning. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2017. ",
1009
+ "bbox": [
1010
+ 173,
1011
+ 550,
1012
+ 823,
1013
+ 593
1014
+ ],
1015
+ "page_idx": 9
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "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, feb 2015. ISSN 0028-0836. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 603,
1023
+ 825,
1024
+ 674
1025
+ ],
1026
+ "page_idx": 9
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Andrew Ng, Daishi Harada, and Stuart Russell. Policy invariance under reward transformations: Theory and application to reward shaping. In International Conference on Machine Learning (ICML), 1999. ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 684,
1034
+ 825,
1035
+ 727
1036
+ ],
1037
+ "page_idx": 9
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. Film: Visual reasoning with a general conditioning layer. 2018. ",
1042
+ "bbox": [
1043
+ 171,
1044
+ 737,
1045
+ 823,
1046
+ 766
1047
+ ],
1048
+ "page_idx": 9
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Pararth Shah, Marek Fiser, Aleksandra Faust, J. Chase Kew, and Dilek Hakkani-Tur. Follownet: ¨ Robot navigation by following natural language directions with deep reinforcement learning. CoRR, abs/1805.06150, 2018. ",
1053
+ "bbox": [
1054
+ 173,
1055
+ 775,
1056
+ 823,
1057
+ 818
1058
+ ],
1059
+ "page_idx": 9
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Shuran Song, Fisher Yu, Andy Zeng, Angel X Chang, Manolis Savva, and Thomas Funkhouser. Semantic scene completion from a single depth image. Proceedings of 29th IEEE Conference on Computer Vision and Pattern Recognition, 2017. ",
1064
+ "bbox": [
1065
+ 173,
1066
+ 828,
1067
+ 823,
1068
+ 871
1069
+ ],
1070
+ "page_idx": 9
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Jaeyong Sung, Seok Hyun Jin, and Ashutosh Saxena. Robobarista: Object part based transfer of manipulation trajectories from crowd-sourcing in 3d pointclouds. In International Symposium on Robotics Research (ISRR), 2015. ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 882,
1078
+ 825,
1079
+ 924
1080
+ ],
1081
+ "page_idx": 9
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Stefanie Tellex, Thomas Kollar, Steven Dickerson, Matthew R. Walter, Ashis Gopal Banerjee, Seth Teller, and Nicholas Roy. Understanding natural language commands for robotic navigation and mobile manipulation. In Proceedings of the Twenty-Fifth AAAI Conference on Artificial Intelligence, AAAI’11, pp. 1507–1514. AAAI Press, 2011. URL http://dl.acm.org/ citation.cfm?id=2900423.2900661. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 103,
1089
+ 825,
1090
+ 174
1091
+ ],
1092
+ "page_idx": 10
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Hsiao-Yu Fish Tung, Adam W. Harley, Liang-Kang Huang, and Katerina Fragkiadaki. Reward learning from narrated demonstrations. CoRR, abs/1804.10692, 2018. ",
1097
+ "bbox": [
1098
+ 173,
1099
+ 183,
1100
+ 823,
1101
+ 212
1102
+ ],
1103
+ "page_idx": 10
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Brian Ziebart. Modeling purposeful adaptive behavior with the principle of maximum causal entropy. PhD thesis, Carnegie Mellon University, 2010. ",
1108
+ "bbox": [
1109
+ 174,
1110
+ 219,
1111
+ 821,
1112
+ 250
1113
+ ],
1114
+ "page_idx": 10
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Brian Ziebart, Andrew Maas, Andrew Bagnell, and Anind Dey. Maximum entropy inverse reinforcement learning. In AAAI Conference on Artificial Intelligence (AAAI), 2008. ",
1119
+ "bbox": [
1120
+ 173,
1121
+ 257,
1122
+ 820,
1123
+ 286
1124
+ ],
1125
+ "page_idx": 10
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "APPENDICES ",
1130
+ "text_level": 1,
1131
+ "bbox": [
1132
+ 176,
1133
+ 102,
1134
+ 282,
1135
+ 118
1136
+ ],
1137
+ "page_idx": 11
1138
+ },
1139
+ {
1140
+ "type": "text",
1141
+ "text": "A EXPERIMENT HYPERPARAMETERS ",
1142
+ "text_level": 1,
1143
+ "bbox": [
1144
+ 174,
1145
+ 136,
1146
+ 498,
1147
+ 152
1148
+ ],
1149
+ "page_idx": 11
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "For our environment, we give the agent a time limit 30 time-steps to complete a task. For the purpose of reward regression and generating demonstrations, the environment gives a reward of 10 when the agent successfully completes the task. We sample demonstrations from the optimal policy using this ground-truth reward. Our MDP solvers use a discount of $\\gamma = 0 . 9 9$ . ",
1154
+ "bbox": [
1155
+ 174,
1156
+ 167,
1157
+ 825,
1158
+ 224
1159
+ ],
1160
+ "page_idx": 11
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "For our model, we used 10 demonstrations per environment to train IRL, and optimized with Adam using a learning rate of $5 * 1 0 ^ { - 4 }$ . ",
1165
+ "bbox": [
1166
+ 171,
1167
+ 231,
1168
+ 823,
1169
+ 258
1170
+ ],
1171
+ "page_idx": 11
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "For our convolutional neural network, we used a 5x5 convolution with 16 filters, followed by a $3 \\mathrm { x } 3$ convolution with 32 filters. The size of each embedding was 32. The final fully connected layer had sizes of 32, and 1 (for the final output). We did not find significant performance differences increasing the number of filters or embedding sizes. ",
1176
+ "bbox": [
1177
+ 174,
1178
+ 266,
1179
+ 825,
1180
+ 321
1181
+ ],
1182
+ "page_idx": 11
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "We selected our architecture through a hyper-parameter sweep, with train and test accuracies presented below (averaged over 3 seeds each). The main architectures we swept through were whether to produce the image embedding via a global pooling layer (labeled Pooling) versus a single fully connected layer (labeled FC) versus FiLM (Perez et al., 2018), and whether to combine the language and image embeddings using a point-wise multiplication or a pooling operation (labeled Mult) versus concatenation (labeled Concat). ",
1187
+ "bbox": [
1188
+ 174,
1189
+ 329,
1190
+ 825,
1191
+ 412
1192
+ ],
1193
+ "page_idx": 11
1194
+ },
1195
+ {
1196
+ "type": "table",
1197
+ "img_path": "images/90c6698fc133027d828a9c8b185479d4f0b064539a1c10d3d61d7dbc7970b52c.jpg",
1198
+ "table_caption": [],
1199
+ "table_footnote": [],
1200
+ "table_body": "<table><tr><td></td><td>Train</td><td>Test-Task</td></tr><tr><td>Pooling, Mult</td><td>67.3</td><td>49.7</td></tr><tr><td>Pooling,Add</td><td>64.1</td><td>45.5</td></tr><tr><td>Pooling,Concat</td><td>65.8</td><td>48.5</td></tr><tr><td>FiLM,Mult</td><td>60.6</td><td>43.2</td></tr><tr><td>FiLM, Add</td><td>67.0</td><td>49.1</td></tr><tr><td>FiLM, Concat</td><td>63.2</td><td>44.6</td></tr><tr><td>FC,Mult</td><td>53.1</td><td>38.4</td></tr><tr><td>FC,Add</td><td>55.2</td><td>39.1</td></tr><tr><td>FC,Concat</td><td>48.1</td><td>35.2</td></tr></table>",
1201
+ "bbox": [
1202
+ 364,
1203
+ 426,
1204
+ 632,
1205
+ 573
1206
+ ],
1207
+ "page_idx": 11
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "We also conducted a single ablation study over the size of the image below, using the Pooling, Mult architecture. We found that the impact of the image size between (32 by 24) and (64 by 64) was negligible, so we selected the smaller image size for computational reasons. ",
1212
+ "bbox": [
1213
+ 174,
1214
+ 594,
1215
+ 825,
1216
+ 636
1217
+ ],
1218
+ "page_idx": 11
1219
+ },
1220
+ {
1221
+ "type": "table",
1222
+ "img_path": "images/ec2661195e908fd9964e4338cdefcd9bccfefa5025f6383c2076b17bc58708f8.jpg",
1223
+ "table_caption": [],
1224
+ "table_footnote": [],
1225
+ "table_body": "<table><tr><td></td><td>Train</td><td>Test-Task</td></tr><tr><td>32 by 24</td><td>67.3</td><td>49.7</td></tr><tr><td>64by 64</td><td>70.6</td><td>51.1</td></tr></table>",
1226
+ "bbox": [
1227
+ 388,
1228
+ 650,
1229
+ 607,
1230
+ 696
1231
+ ],
1232
+ "page_idx": 11
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "B LEARNED REWARDS AND QUALITATIVE RESULTS ",
1237
+ "text_level": 1,
1238
+ "bbox": [
1239
+ 173,
1240
+ 731,
1241
+ 622,
1242
+ 747
1243
+ ],
1244
+ "page_idx": 11
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "Below is an example of a learned reward (and the computed value function) from our IRL model. The task presented here is to bring the fruit bowl (green arrow) to the bathroom (red arrow). In the top row, we plot the reward function, and in the bottom row we plot the resulting value function. The left column shows the rewards/values before the object (fruit bowl) is acquired, and the right column shows the rewards/values after. Note that before the object is acquired, the value directs the agent to the fruit bowl, and once the object is found, the value directs the agent to the bathroom. ",
1249
+ "bbox": [
1250
+ 173,
1251
+ 762,
1252
+ 825,
1253
+ 847
1254
+ ],
1255
+ "page_idx": 11
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "In these figures, a blue shaded square means a high values and red means low. The green-outlined tiles correspond to all locations within a 1-meter radius of the fruit bowl, or all tiles an agent can pick up the bowl from. The red-outlined tile likewise represents all tiles within a 1-meter radius of the drop-off location in the bathroom. The blue-outlined square represents the starting location of the agent. ",
1260
+ "bbox": [
1261
+ 174,
1262
+ 853,
1263
+ 825,
1264
+ 924
1265
+ ],
1266
+ "page_idx": 11
1267
+ },
1268
+ {
1269
+ "type": "image",
1270
+ "img_path": "images/a3f722a784f488063d9086586d1cbe549962be9ed605ab14a2e19cbeb2bd93e1.jpg",
1271
+ "image_caption": [],
1272
+ "image_footnote": [],
1273
+ "bbox": [
1274
+ 272,
1275
+ 113,
1276
+ 723,
1277
+ 380
1278
+ ],
1279
+ "page_idx": 12
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Next, we show rewards learned by 3 different methods: inverse reinforcement learning (IRL), GAIL, and reward regression. Again, low rewards are denoted by red squares and high rewards are denoted by blue squares. For each task, we also include a birds-eye view of task, where the object is highlighted in green and the agent is denoted by a green triangle. ",
1284
+ "bbox": [
1285
+ 174,
1286
+ 410,
1287
+ 825,
1288
+ 467
1289
+ ],
1290
+ "page_idx": 12
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "In general, we find that rewards learned by IRL and GAIL tend to be noisy and contain small artifacts. This is not unexpected, as both of these methods are sample-based and observe demonstrations instead of ground-truth rewards as supervision. We believe that such artifacts are detrimental when using RL to reoptimize the learned reward, as without adequate exploration RL cannot find the large reward at the true goal state, and instead ends up finding local minima. ",
1295
+ "bbox": [
1296
+ 173,
1297
+ 473,
1298
+ 825,
1299
+ 544
1300
+ ],
1301
+ "page_idx": 12
1302
+ },
1303
+ {
1304
+ "type": "image",
1305
+ "img_path": "images/9180e6a22420e96b242aac03f10d95d6219aaf028879cf0568e02b4784659c54.jpg",
1306
+ "image_caption": [
1307
+ "Figure 6: Learned rewards and a corresponding birds-eye view rollout for the task ”go to fruit bowl”. "
1308
+ ],
1309
+ "image_footnote": [],
1310
+ "bbox": [
1311
+ 173,
1312
+ 559,
1313
+ 810,
1314
+ 757
1315
+ ],
1316
+ "page_idx": 12
1317
+ },
1318
+ {
1319
+ "type": "image",
1320
+ "img_path": "images/1bcfa437dfe95c994d4815721d6b7f50a47b95fd2802cc4e2dbacbc407a79f24.jpg",
1321
+ "image_caption": [
1322
+ "Figure 7: Learned rewards and a corresponding birds-eye view rollout for the task ”move pan to living room”. "
1323
+ ],
1324
+ "image_footnote": [],
1325
+ "bbox": [
1326
+ 174,
1327
+ 101,
1328
+ 812,
1329
+ 313
1330
+ ],
1331
+ "page_idx": 13
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "C OBSERVATION CACHING ",
1336
+ "text_level": 1,
1337
+ "bbox": [
1338
+ 176,
1339
+ 392,
1340
+ 411,
1341
+ 409
1342
+ ],
1343
+ "page_idx": 13
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "The running time for dynamic programming algorithms for solving MDPs (such as q-iteration) scales with the size of the state space, and in our environments we found reward evaluation becoming a major bottleneck in runtime. One major optimization we make to our algorithm is to cache computation on repeated observations. Computation-wise, the main bottleneck in Algorithm 1 is evaluating and back-propagating the reward function at all states and actions, rather than Q-iteration itself (even though it carries a cubic run-time dependency on the size of the state space). However, in many environments this is extremely wasteful. For example, in the house depicted in Figure 3, information about where the cup is located must be included in the state. However, if our observations are images of what the robot sees, whether the cup is in the kitchen or in the bathroom has no impact on the images inside the living room. This means that we should only need to evaluate our reward in each living room images once for both locations of the cup. A major factor in speeding up our computation was to cache such repeated computation. In practice we found this to be significant, resulting in 10-100 times speedups on reward computation depending on the structure of the environment. ",
1348
+ "bbox": [
1349
+ 174,
1350
+ 424,
1351
+ 825,
1352
+ 617
1353
+ ],
1354
+ "page_idx": 13
1355
+ }
1356
+ ]
parse/train/r1lq1hRqYQ/r1lq1hRqYQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1lq1hRqYQ/r1lq1hRqYQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJg8TeSFDH/rJg8TeSFDH.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJg8TeSFDH/rJg8TeSFDH_middle.json ADDED
The diff for this file is too large to render. See raw diff