Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/1ODSsnoMBav/1ODSsnoMBav_content_list.json +1183 -0
- parse/train/1ODSsnoMBav/1ODSsnoMBav_middle.json +0 -0
- parse/train/1ODSsnoMBav/1ODSsnoMBav_model.json +0 -0
- parse/train/HXjt-kRBzvu/HXjt-kRBzvu_middle.json +0 -0
- parse/train/HkmaTz-0W/HkmaTz-0W.md +334 -0
- parse/train/HkmaTz-0W/HkmaTz-0W_content_list.json +1823 -0
- parse/train/HkmaTz-0W/HkmaTz-0W_middle.json +0 -0
- parse/train/HkmaTz-0W/HkmaTz-0W_model.json +0 -0
- parse/train/S1FQEfZA-/S1FQEfZA-.md +230 -0
- parse/train/S1FQEfZA-/S1FQEfZA-_content_list.json +1298 -0
- parse/train/S1FQEfZA-/S1FQEfZA-_middle.json +0 -0
- parse/train/S1FQEfZA-/S1FQEfZA-_model.json +0 -0
- parse/train/_61Qh8tULj_/_61Qh8tULj_.md +286 -0
- parse/train/_61Qh8tULj_/_61Qh8tULj__content_list.json +1225 -0
- parse/train/_61Qh8tULj_/_61Qh8tULj__middle.json +0 -0
- parse/train/_61Qh8tULj_/_61Qh8tULj__model.json +0 -0
- parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF.md +163 -0
- parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_content_list.json +829 -0
- parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_middle.json +0 -0
- parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_model.json +0 -0
parse/train/1ODSsnoMBav/1ODSsnoMBav_content_list.json
ADDED
|
@@ -0,0 +1,1183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
"text": "Ankit Singh ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
457,
|
| 19 |
+
226,
|
| 20 |
+
540,
|
| 21 |
+
239
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Department of Computer Science Indian Institute of Technology, Madras singh.ankit@cse.iitm.ac.in ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
370,
|
| 30 |
+
241,
|
| 31 |
+
625,
|
| 32 |
+
281
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
318,
|
| 43 |
+
535,
|
| 44 |
+
334
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Unsupervised Domain Adaptation (UDA) aims to align the labeled source distribution with the unlabeled target distribution to obtain domain invariant predictive models. However, the application of well-known UDA approaches does not generalize well in Semi-Supervised Domain Adaptation (SSDA) scenarios where few labeled samples from the target domain are available. This paper proposes a simple Contrastive Learning framework for semi-supervised Domain Adaptation (CLDA) that attempts to bridge the intra-domain gap between the labeled and unlabeled target distributions and the inter-domain gap between source and unlabeled target distribution in SSDA. We suggest employing class-wise contrastive learning to reduce the inter-domain gap and instance-level contrastive alignment between the original(input image) and strongly augmented unlabeled target images to minimize the intra-domain discrepancy. We have empirically shown that both of these modules complement each other to achieve superior performance. Experiments on three well-known domain adaptation benchmark datasets, namely DomainNet, Office-Home, and Office31, demonstrate the effectiveness of our approach. CLDA achieves state-of-the-art results on all the above datasets. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
348,
|
| 54 |
+
766,
|
| 55 |
+
569
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
593,
|
| 66 |
+
310,
|
| 67 |
+
611
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Deep Convolutional networks [30, 52] have shown impressive performance in various computer vision tasks, e.g., image classification [19, 22] and action recognition [48, 23, 57, 32]. However, there is an inherent problem of generalizability with deep-learning models, i.e., models trained on one dataset(source domain) does not perform well on another domain. This loss of generalization is due to the presence of domain shift [11, 55] across the dataset. Recent works [46, 29] have shown that the presence of few labeled data from the target domain can significantly boost the performance of the convolutional neural network(CNN) based models. This observation led to the formulation of Semi-Supervised Domain Adaption (SSDA), which is a variant of Unsupervised Domain Adaptation where we have access to a few labeled samples from the target domain. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
625,
|
| 77 |
+
825,
|
| 78 |
+
750
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Unsupervised domain adaptation methods [42, 12, 36, 51, 35] try to transfer knowledge from the label rich source domain to the unlabeled target domain. Many such existing domain adaptation approaches [42, 12, 51] align the features of the source distribution with the target distribution without considering the category of the samples. These class-agnostic methods fail to generate discriminative features when aligning global distributions. Recently, owing to the success of contrastive approaches [6, 18, 39], in self-representation learning, some recent works [26, 28] have turned to instance-based contrastive approaches to reduce discrepancies across domains. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
756,
|
| 88 |
+
825,
|
| 89 |
+
853
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "[46] reveals that the direct application of the well-known UDA approaches in Semi-Supervised Domain Adaptation yields sub-optimal performance. [29] has shown that supervision from labeled source and target samples can only ensure the partial cross-domain feature alignment. This creates aligned and unaligned sub-distributions of the target domain, causing intra-domain discrepancy apart from inter-domain discrepancy in SSDA. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
859,
|
| 99 |
+
823,
|
| 100 |
+
901
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/6b685103502be02c0b22dad148a39834efc5e2349ac431e7ecf24318a048e14e.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Conceptual description of CLDA approach. (a) Intial distribution of samples from both domain .(b) Instance Contrastive Alignment ensures unlabeled target samples move into the low entropy area forming robust clusters (c) Inter-Domain Contrastive Alignment minimizes the distance between the clusters of same class from both domain (d) The clusters of both domain are well aligned and samples are far away from decision boundary. "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
88,
|
| 114 |
+
823,
|
| 115 |
+
222
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
176,
|
| 124 |
+
344,
|
| 125 |
+
821,
|
| 126 |
+
373
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "In this work, we propose CLDA, a simple single-stage novel contrastive learning framework to address the aforementioned problem. Our framework contains two significant components to learn domain agnostic representation. First, Inter-Domain Contrastive Alignment reduces the discrepancy between centroids of the same class from the source and the target domain while increasing the distance between the class centroids of different classes from both source and target domain. This ensures clusters of the same class from both domains are near each other in latent space than the clusters of the other classes from both domains. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
378,
|
| 136 |
+
825,
|
| 137 |
+
477
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "Second, inspired by the success of self-representation learning in semi-supervised settings [17, 6, 49], we propose to use Instance Contrastive Alignment to reduce the intra-domain discrepancy. In this, we first generate the augmented views of the unlabeled target images using image augmentation methods. Alignment of the features of the original and augmented images of the unlabeled samples from the target domain ensures that they are closer to each other in latent space. The alignment between two variants of the same image ensures that the classifier boundary lies in the low-density regions assuring that the feature representations of two variants of the unlabeled target images are similar, which helps to generate better clusters for the target domain. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
483,
|
| 147 |
+
825,
|
| 148 |
+
594
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "In summary, our key contributions are as follows. 1) We propose a novel, simple single-stage training framework for Semi-supervised Domain Adaptation. 2)We propose using alignment at class centroids and instance levels to reduce inter and intra domain discrepancies present in SSDA. 3)We evaluate the effectiveness of different augmentation approaches, for instance-based contrastive alignment in the SSDA setting. 4)We evaluate our approach over three well-known Domain Adaptation datasets (DomainNet, Office-Home, and Office31) to gain insights. Our approach achieves the state of the art results across multiple datasets showing its effectiveness. We perform extensive ablation experiments highlighting the role of different components of our framework. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
599,
|
| 158 |
+
825,
|
| 159 |
+
710
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "2 Related Works ",
|
| 166 |
+
"text_level": 1,
|
| 167 |
+
"bbox": [
|
| 168 |
+
176,
|
| 169 |
+
729,
|
| 170 |
+
328,
|
| 171 |
+
747
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "2.1 Unsupervised Domain Adaptation ",
|
| 178 |
+
"text_level": 1,
|
| 179 |
+
"bbox": [
|
| 180 |
+
176,
|
| 181 |
+
761,
|
| 182 |
+
449,
|
| 183 |
+
776
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Unsupervised Domain Adaptation (UDA) [14] is a well-studied problem, and most UDA algorithms reduce the domain gap by matching the features of the sources and target domain [16, 4, 24, 36, 51, 27]. Feature-based alignment methods reduce the global divergence [16, 51] between source and target distribution. Adversarial learning [12, 5, 34, 35, 42, 41] based approaches have shown impressive performance in reducing the divergence between source and target domains. It involves training the model to generate features to deceive the domain classifier, invariantly making the generated features domain agnostic. Recently, Image translation methods [20, 21, 38] have been explored in UDA where an image from the target domain is translated to the source domain to be treated as an image from the source domain to overcome the divergence present across domains. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
786,
|
| 193 |
+
825,
|
| 194 |
+
911
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Despite remarkable progress in UDA, [46] shows the UDA approaches do not perform well in the SSDA setting, which we consider in this work. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
92,
|
| 204 |
+
823,
|
| 205 |
+
119
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "2.2 Semi-Supervised Learning ",
|
| 212 |
+
"text_level": 1,
|
| 213 |
+
"bbox": [
|
| 214 |
+
176,
|
| 215 |
+
143,
|
| 216 |
+
398,
|
| 217 |
+
159
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "Semi-Supervised Learning(SSL) aims to leverage the vast amount of unlabeled data with limited labeled data to improve classifier performance. The main difference between SSL and SSDA is that SSL uses data sampled from the same distribution while SSDA deals with data sampled from two domains with inherent domain discrepancy. The current line of work in SSL [50, 3, 31, 10] follows consistency-based approaches to reduce the intra-domain gap. Mean teacher [53] uses two copies of the same model (student model and teacher model) to ensure consistency across augmented views of the images. Weights of the teacher model are updated as the exponential moving average of the weights of the student model. Mix-Match [3] and ReMixMatch [2] use interpolation between labeled and unlabeled data to generate perturbed features. Recently introduced FixMatch [50] achieves impressive performance using the confident pseudo labels of the unlabeled samples and treating them as labels for the strongly perturbed samples. However, direct application of SSL in the SSDA setting yields sub-optimal performance as the presumption in the SSL is that distributions of labeled and unlabeled data are identical, which is not the case in SSDA. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
172,
|
| 227 |
+
825,
|
| 228 |
+
352
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "2.3 Contrastive Learning ",
|
| 235 |
+
"text_level": 1,
|
| 236 |
+
"bbox": [
|
| 237 |
+
176,
|
| 238 |
+
377,
|
| 239 |
+
362,
|
| 240 |
+
392
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "Contrastive Learning(CL) has shown impressive performance in self-representation learning [6, 1, 18, 54, 39]. Most contrastive learning methods align the representations of the positive pair (similar images) to be close to each other while making negative pairs apart. In semantic segmentation, [33] uses patch-wise contrastive learning to reduce the domain divergence by aligning the similar patches across domains. In domain adaptation, contrastive learning [28, 26] has been applied for alignment at the instance level to learn domain agnostic representations. [26, 28] use samples from the same class as positive pairs, and samples from different classes are counted as negative pairs. [26] modifies Maximum Mean Discrepancy (MMD) [16] loss to be used as a contrastive loss. In contrast to [28, 26], our work proposes to use contrastive learning in SSDA setting both at the class and instance level (across perturbed samples of the same image) to learn the semantic structure of the data better. ",
|
| 247 |
+
"bbox": [
|
| 248 |
+
173,
|
| 249 |
+
406,
|
| 250 |
+
825,
|
| 251 |
+
545
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "2.4 Semi-Supervised Domain Adaptation ",
|
| 258 |
+
"text_level": 1,
|
| 259 |
+
"bbox": [
|
| 260 |
+
176,
|
| 261 |
+
569,
|
| 262 |
+
472,
|
| 263 |
+
584
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "Semi-Supervised Domain Adaptation (SSDA) aims to reduce the discrepancy between the source and target distribution in the presence of limited labeled target samples. [46] first proposed to align the source and target distributions using adversarial training. [29] shows the presence of intra domain discrepancy in the target distribution and introduces a framework to mitigate it. [25] uses consistency alongside multiple adversarial strategies on top of MME [46]. [9] introduced the meta-learning framework for Semi-Supervised Domain Adaptation. [58] breaks down the SSDA problem into two subproblems, namely, SSL in the target domain and UDA problem across the source and target domains, and learn the optimal weights of the network using co-training. [37] proposed to use pretraining of the feature extractor and consistency across perturbed samples as a simple yet effective strategy for SSDA. [44] introduces a framework for SSDA consisting of a shared feature extractor and two classifiers with opposite purposes, which are trained in an alternative fashion; where one classifier tries to cluster the target samples while the other scatter the source samples, so that target features are well aligned with source domain features. Most of the above approaches are based on adversarial training, while our work proposes to use contrastive learning-based feature alignment at the class level and the instance level to reduce discrepancy across domains. ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
598,
|
| 273 |
+
825,
|
| 274 |
+
805
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "3 Methodology ",
|
| 281 |
+
"text_level": 1,
|
| 282 |
+
"bbox": [
|
| 283 |
+
174,
|
| 284 |
+
832,
|
| 285 |
+
313,
|
| 286 |
+
851
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "In this section, we present our novel Semi-Supervised Domain Adaptation approach to learn domain agnostic representation. We will first introduce the background and notations used in our work and then describe our approach and its components in detail. ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
176,
|
| 295 |
+
869,
|
| 296 |
+
823,
|
| 297 |
+
911
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "image",
|
| 303 |
+
"img_path": "images/e51ffd9d13deb32f523a10afdc3af7280418f9b75dd1bbf0946ee7f544d92b65.jpg",
|
| 304 |
+
"image_caption": [
|
| 305 |
+
"Figure 2: Outline of our CLDA Framework Our approach consists of aligning the outputs of the neural network at two levels. At the instance level, we try to maximize the similarity between features of unlabeled target images and strongly augmented unlabeled target images using Instance Contrastive Alignment. At the class level, we pass the images from both domains through the network, where we assign the labels to features of unlabeled target images and compute the centroids of each class of the target domain. Similarly, we compute the centroids for source domain features using their class labels. Finally, we maximize the similarity between centroids of the same class across domains by employing Inter-Domain Contrastive Alignment. We also used cross-entropy loss on the labeled source and target images, apart from the above components in our framework. "
|
| 306 |
+
],
|
| 307 |
+
"image_footnote": [],
|
| 308 |
+
"bbox": [
|
| 309 |
+
171,
|
| 310 |
+
88,
|
| 311 |
+
825,
|
| 312 |
+
291
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 3
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "3.1 Problem Formulation ",
|
| 319 |
+
"text_level": 1,
|
| 320 |
+
"bbox": [
|
| 321 |
+
174,
|
| 322 |
+
469,
|
| 323 |
+
362,
|
| 324 |
+
484
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "In Semi-Supervised Domain Adaptation, we have datasets sampled from two domains. The source dataset contains labeled images $\\mathcal { D } _ { s } = \\{ ( x _ { i } ^ { s } , y _ { i } ^ { s } ) \\} _ { i = 1 } ^ { N _ { s } } \\subset \\mathcal { R } ^ { d } \\times \\mathbf { \\bar { \\mathcal { V } } }$ sampled from some distribution $P _ { S } ( X , Y )$ . Besides that, we have two sets of data sampled from target domain distribution $P _ { T } ( X , Y )$ . We denote the labeled set of images sampled from the target domain as $\\mathcal { D } _ { l t } = \\{ ( x _ { i } ^ { l t } , y _ { i } ^ { l t } ) \\} _ { i = 1 } ^ { N _ { l t } }$ . The unlabeled set sampled from target domain $\\mathcal { D } _ { t } = \\{ ( x _ { i } ^ { t } ) \\} _ { i = 1 } ^ { N _ { t } }$ contains large number of images $( N _ { t } \\gg N _ { l t } )$ without any corresponding labels associated with them. We also denote the labeled data from both domains as $\\mathcal { D } _ { l } = \\mathcal { D } _ { s } \\cup \\mathcal { D } _ { l t }$ . Labels $y _ { i } ^ { s }$ and $y _ { i } ^ { l t }$ of the samples from source and labeled target set correspond to one of the categories of the dataset having $K$ different classes/categories $i . e$ $\\bar { Y = \\{ 1 , 2 , . . . \\bar { K } \\} }$ . Our goal is to learn a task specific classifier using $D _ { s } , D _ { l t }$ and $D _ { t }$ to accurately predict labels on test data from target domain. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
173,
|
| 333 |
+
494,
|
| 334 |
+
826,
|
| 335 |
+
641
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "3.2 Supervised Training ",
|
| 342 |
+
"text_level": 1,
|
| 343 |
+
"bbox": [
|
| 344 |
+
174,
|
| 345 |
+
657,
|
| 346 |
+
354,
|
| 347 |
+
672
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 3
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "Labeled source and target samples are passed through the CNN-based feature extractor $\\mathcal { G } ( . )$ to obtain corresponding features, which are then passed through task-specific classifier $\\mathcal F ( . )$ to minimize the well-known cross-entropy loss on the labeled images from both source and target domains. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
174,
|
| 356 |
+
683,
|
| 357 |
+
825,
|
| 358 |
+
727
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 3
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "equation",
|
| 364 |
+
"img_path": "images/6ad462806f90acc7495b4054ba58388eaf979f97f17cd95276ad58b5043df9d4.jpg",
|
| 365 |
+
"text": "$$\n\\mathcal { L } _ { s u p } = - \\sum _ { k = 1 } ^ { K } ( y ^ { i } ) _ { k } \\log ( \\mathcal { F } ( \\mathcal { G } ( ( x _ { l } ^ { i } ) ) _ { k }\n$$",
|
| 366 |
+
"text_format": "latex",
|
| 367 |
+
"bbox": [
|
| 368 |
+
379,
|
| 369 |
+
736,
|
| 370 |
+
619,
|
| 371 |
+
780
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 3
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "3.3 Inter-Domain Contrastive Alignment ",
|
| 378 |
+
"text_level": 1,
|
| 379 |
+
"bbox": [
|
| 380 |
+
174,
|
| 381 |
+
801,
|
| 382 |
+
472,
|
| 383 |
+
818
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "Our method is based on the observation that the samples from the same category across domains must cluster in the latent space. However, this is observed only for the source domain due to the availability of the labels. Samples from the target domain do not align to form clusters due to the domain shift between the target and the source distributions. This discrepancy between the cluster of the same category across domains is reduced by aligning the centroids of each class of source and target domain. [6, 17] have shown that having a separate projection space is beneficial for contrastive training. Instead of using a separate projection, we have used the outputs from the task-specific classifier as features to align the clusters across the domain. ",
|
| 390 |
+
"bbox": [
|
| 391 |
+
174,
|
| 392 |
+
827,
|
| 393 |
+
825,
|
| 394 |
+
912
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 3
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "",
|
| 401 |
+
"bbox": [
|
| 402 |
+
171,
|
| 403 |
+
90,
|
| 404 |
+
823,
|
| 405 |
+
119
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 4
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "We represent the centroid of the images from the source domain belonging to class $k$ as the mean of their features, which can be written as ",
|
| 412 |
+
"bbox": [
|
| 413 |
+
173,
|
| 414 |
+
126,
|
| 415 |
+
825,
|
| 416 |
+
154
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 4
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "equation",
|
| 422 |
+
"img_path": "images/7a592ec5fa5a41cd2cee8867897545cacdbb35c75cf4f7f125ba4946b73f5655.jpg",
|
| 423 |
+
"text": "$$\nC _ { k } ^ { s } = \\frac { \\displaystyle \\sum _ { i = 1 } ^ { i = B } \\mathbb { 1 } _ { \\{ y _ { i } ^ { s } = k \\} } \\mathcal { F } ( \\mathcal { G } ( x _ { i } ^ { s } ) ) } { \\displaystyle \\sum _ { i = 1 } ^ { i = B } \\mathbb { 1 } _ { \\{ y _ { i } ^ { s } = k \\} } }\n$$",
|
| 424 |
+
"text_format": "latex",
|
| 425 |
+
"bbox": [
|
| 426 |
+
400,
|
| 427 |
+
156,
|
| 428 |
+
598,
|
| 429 |
+
229
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 4
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "where $B$ is the size of batch. We maintain a memory bank $\\displaystyle C ^ { s } = [ C _ { 1 } ^ { s } , C _ { 2 } ^ { s } , . . . . C _ { K } ^ { s } ] )$ to store the centroids of each class from source domain. We use exponential moving average to update these centroid values during the training ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
173,
|
| 438 |
+
233,
|
| 439 |
+
825,
|
| 440 |
+
276
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 4
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "equation",
|
| 446 |
+
"img_path": "images/108d56bcfbc3761ab0da004d1aaeef3c428782f5c30c58a6b410722dd9560192.jpg",
|
| 447 |
+
"text": "$$\nC _ { k } ^ { s } = \\rho ( C _ { k } ^ { s } ) _ { s t e p } + ( 1 - \\rho ) ( C _ { k } ^ { s } ) _ { s t e p - 1 }\n$$",
|
| 448 |
+
"text_format": "latex",
|
| 449 |
+
"bbox": [
|
| 450 |
+
370,
|
| 451 |
+
286,
|
| 452 |
+
625,
|
| 453 |
+
304
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 4
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "where $\\rho$ is a momentum term, and $( C _ { k } ^ { s } ) _ { s t e p }$ and $( C _ { k } ^ { s } ) _ { s t e p - 1 }$ are the centroid values of class $k$ at the current and previous step, respectively. ",
|
| 460 |
+
"bbox": [
|
| 461 |
+
173,
|
| 462 |
+
314,
|
| 463 |
+
823,
|
| 464 |
+
343
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 4
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "We also need to cluster the unlabeled target samples for Inter-Domain Contrastive Alignment. The pseudo labels obtained from the task specific classifier as shown in Eq (3) is used as the class labels for the corresponding unlabeled target samples. ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
173,
|
| 473 |
+
349,
|
| 474 |
+
825,
|
| 475 |
+
391
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 4
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "equation",
|
| 481 |
+
"img_path": "images/5b08c952c1b05ac646d9446c37e36e22fc4eb113b72b0a8cbdac3cbab42e6a64.jpg",
|
| 482 |
+
"text": "$$\n\\hat { y _ { i } ^ { t } } = a r g m a x ( ( \\mathcal { F } ( \\mathcal { G } ( x _ { i } ^ { t } ) ) )\n$$",
|
| 483 |
+
"text_format": "latex",
|
| 484 |
+
"bbox": [
|
| 485 |
+
408,
|
| 486 |
+
395,
|
| 487 |
+
589,
|
| 488 |
+
416
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "Similar to the source domain , we also calculate the separate cluster centroid $C _ { k } ^ { t }$ for each of the class $k$ of the target samples present in the minibatch as per the Eq (2) where unlabeled target images replace the images from the source domain with their corresponding pseudo label. The model is then trained to maximize the similarity between the cluster representation of each class $k$ from the source and the target domain. $C _ { k } ^ { s }$ and $C _ { k } ^ { t }$ form the positive pair while the remaining cluster centroids from both domains form the negative pairs. The remaining clusters from both domains are pushed apart in the latent space. This is achieved through employing a modified NT-Xent (normalized temperature-scaled cross-entropy) contrastive loss [6, 39, 49, 33] for domain adaptation given by ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
173,
|
| 497 |
+
425,
|
| 498 |
+
826,
|
| 499 |
+
537
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "equation",
|
| 505 |
+
"img_path": "images/e27cbd7e362d28ea7adf87fb6e58212b59a5042d2a2c1b4128648c71acf2e856.jpg",
|
| 506 |
+
"text": "$$\n\\mathcal { L } _ { c l u } ( C _ { i } ^ { t } , C _ { i } ^ { s } ) = - \\log \\frac { h \\bigl ( C _ { i } ^ { t } , C _ { i } ^ { s } \\bigr ) } { h \\bigl ( C _ { i } ^ { t } , C _ { i } ^ { s } \\bigr ) + \\underset { t \\in \\{ s , t \\} } { \\overset { K } { \\sum } } \\mathbb { 1 } _ { \\{ r \\neq i \\} } h \\bigl ( C _ { i } ^ { t } , C _ { r } ^ { q } \\bigr ) }\n$$",
|
| 507 |
+
"text_format": "latex",
|
| 508 |
+
"bbox": [
|
| 509 |
+
284,
|
| 510 |
+
553,
|
| 511 |
+
694,
|
| 512 |
+
617
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "where $\\begin{array} { r } { h ( \\mathbf { u } , \\mathbf { v } ) = \\exp \\big ( \\frac { \\mathbf { u } ^ { \\top } \\mathbf { v } } { \\| \\mathbf { u } \\| _ { 2 } \\| \\mathbf { v } \\| _ { 2 } } / \\tau \\big ) } \\end{array}$ measures the exponential of cosine similarity , $\\mathbb { 1 }$ is an indicator function and $\\tau$ is the temperature hyperparameter. ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
178,
|
| 521 |
+
619,
|
| 522 |
+
825,
|
| 523 |
+
661
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "3.4 Instance Contrastive Alignment ",
|
| 530 |
+
"text_level": 1,
|
| 531 |
+
"bbox": [
|
| 532 |
+
174,
|
| 533 |
+
676,
|
| 534 |
+
434,
|
| 535 |
+
691
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "Recent works on contrastive learning [18, 39, 6] show encouraging results in single domain settings. [28] extends contrastive learning into multi-domain settings. Inspired by such success, we employ Instance Contrastive Learning to form stable and correct cluster cores in the target domain. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
173,
|
| 544 |
+
702,
|
| 545 |
+
826,
|
| 546 |
+
743
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "To perform contrastive alignment at the instance level, we first generate a strongly augmented version of the unlabeled target image i.e $\\tilde { x _ { i } ^ { t } } = \\psi ( x _ { i } ^ { t } )$ where $\\psi ( . )$ is the strong augmentation function [8]. Next, we employ the NT-Xent loss [6, 39] as defined in Eq (5) to ensure that these two variants of the same image are closer to each other in the latent space while the rest of the images in minibatch of size $B$ are pushed apart. This idea stems from the cluster assumption in an ideal classifier, which states the decision boundary should lie in the low-density region, ensuring consistent prediction for different augmented variants of the same image. ",
|
| 553 |
+
"bbox": [
|
| 554 |
+
173,
|
| 555 |
+
750,
|
| 556 |
+
825,
|
| 557 |
+
851
|
| 558 |
+
],
|
| 559 |
+
"page_idx": 4
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"type": "equation",
|
| 563 |
+
"img_path": "images/5320eef9102ca9a5bb8ea5c51f7df47cb24149b14f752a16ffd72633e169dc34.jpg",
|
| 564 |
+
"text": "$$\n\\mathcal { L } _ { i n s } ( \\tilde { x } _ { i } ^ { t } , x _ { i } ^ { t } ) = - \\log \\frac { h \\big ( \\mathcal { F } ( \\mathcal { G } ( \\tilde { x } _ { i } ^ { t } ) , \\mathcal { F } ( \\mathcal { G } ( x _ { i } ^ { t } ) ) ) } { \\displaystyle \\sum _ { r = 1 } ^ { B } h \\big ( \\mathcal { F } ( \\mathcal { G } ( \\tilde { x } _ { i } ^ { t } ) ) , \\mathcal { F } ( \\mathcal { G } ( x _ { r } ^ { t } ) ) \\big ) + \\displaystyle \\sum _ { r = 1 } ^ { B } \\mathbb { 1 } _ { \\{ r \\neq i \\} } h \\big ( \\mathcal { F } ( \\mathcal { G } ( \\tilde { x } _ { i } ^ { t } ) ) , \\mathcal { F } ( \\mathcal { G } ( \\tilde { x } _ { r } ^ { t } ) ) \\big ) }\n$$",
|
| 565 |
+
"text_format": "latex",
|
| 566 |
+
"bbox": [
|
| 567 |
+
212,
|
| 568 |
+
859,
|
| 569 |
+
766,
|
| 570 |
+
916
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "In SSDA, [29] has shown that target distribution gets divided into aligned and unaligned subdistribution in the presence of very few labeled target data. Thus, aligning the unaligned subdistribution can lead to improved performance, while perturbing the aligned sub-distribution can result in a negative transfer. Therefore, we only propagate the gradients for strongly augmented images to avoid perturbing the aligned sub-distribution in the target domain. ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
174,
|
| 579 |
+
118,
|
| 580 |
+
825,
|
| 581 |
+
189
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 5
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "[6] shows stronger augmentation in contrastive learning leads to improved performance. Consistent prediction across the input and strongly augmented unlabeled images in Instance Contrastive Alignment forces the unaligned target sub-distribution to move away from the low-density region towards aligned distribution. This ensures better clustering in the unlabeled target distribution, which is validated by improved accuracy as shown in Table 5 after employing Instance Contrastive Alignment with Inter-Domain Contrastive Alignment. ",
|
| 588 |
+
"bbox": [
|
| 589 |
+
174,
|
| 590 |
+
195,
|
| 591 |
+
825,
|
| 592 |
+
279
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 5
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Both of the components of the CLDA framework are necessary for the improved performance, as shown in Table 5 . Instance Contrastive Alignment ensures that unlabeled target samples are consistent and are in the high-density region. However, it does not assure alignment between source and unlabeled target samples. Inter-Domain Contrastive Alignment reduces the discrepancy between unlabeled target samples and source domain but unlabeled target samples closer to the decision boundary might get pushed towards the wrong classes resulting in negative transfer. Thus, combining both components results in a much better alignment of the unlabeled target samples towards the source domain, leading to improved performance of the framework. ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
174,
|
| 601 |
+
284,
|
| 602 |
+
825,
|
| 603 |
+
396
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 5
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "3.5 Overall framework and training objective ",
|
| 610 |
+
"text_level": 1,
|
| 611 |
+
"bbox": [
|
| 612 |
+
173,
|
| 613 |
+
411,
|
| 614 |
+
503,
|
| 615 |
+
426
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "The overall training objective employs supervised loss, Inter-Domain Contrastive Alignment and Instance Contrastive Alignment which can be formulated as follows: ",
|
| 622 |
+
"bbox": [
|
| 623 |
+
173,
|
| 624 |
+
436,
|
| 625 |
+
823,
|
| 626 |
+
464
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "equation",
|
| 632 |
+
"img_path": "images/3005ea8b332501d03f3b20f9050675d2ac0aa4a5b09393e6c2489fe02f7e0a88.jpg",
|
| 633 |
+
"text": "$$\n\\mathcal { L } _ { t o t } = \\mathcal { L } _ { s u p } + \\alpha * \\mathcal { L } _ { c l u } + \\beta * \\mathcal { L } _ { i n s }\n$$",
|
| 634 |
+
"text_format": "latex",
|
| 635 |
+
"bbox": [
|
| 636 |
+
379,
|
| 637 |
+
470,
|
| 638 |
+
617,
|
| 639 |
+
488
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 5
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "We train the model in our framework by employing overall training loss described as in (6). ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
171,
|
| 648 |
+
500,
|
| 649 |
+
774,
|
| 650 |
+
515
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 5
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "4 Experiments ",
|
| 657 |
+
"text_level": 1,
|
| 658 |
+
"bbox": [
|
| 659 |
+
174,
|
| 660 |
+
534,
|
| 661 |
+
312,
|
| 662 |
+
551
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 5
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "4.1 Experimental Setup ",
|
| 669 |
+
"text_level": 1,
|
| 670 |
+
"bbox": [
|
| 671 |
+
176,
|
| 672 |
+
564,
|
| 673 |
+
351,
|
| 674 |
+
580
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 5
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "We evaluate the effectiveness of our approach on three different domain adaptation datasets: DomainNet [43], Office-Home [56] and Office31 [45]. DomainNet [43] is a large-scale domain adaptation dataset with 345 classes across 6 domains. Following MME [46], we use a subset of the dataset containing 126 categories across four domains: Real(R), Clipart(C), Sketch(S), and Painting(P). The performance on DomainNet is evaluated using 7 different combinations out of possible 12 combinations. Office-Home [56] is another widely used domain adaptation benchmark dataset with 65 classes across four domains: Art(Ar), Product $( \\mathrm { P r } )$ , Clipart(Cl), and Real (Rl). We perform experiments on all possible combinations of 4 domains. Office31 [45] is a relatively smaller dataset containing just 31 categories of data across three domains- Amazon(A), Dslr(D), Webcam(W). Following prior work [46, 29], we evaluate our approach on two combinations for the office31 dataset. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
173,
|
| 683 |
+
589,
|
| 684 |
+
825,
|
| 685 |
+
728
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 5
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "For the fair comparison, we use the data-splits (train, validation, and test splits) released by [46] on Github 1. We use the same settings for the benchmark datasets as in the prior work [46, 29], including the number of labeled samples in the target domain, which are consistent across all experiments. ",
|
| 692 |
+
"bbox": [
|
| 693 |
+
174,
|
| 694 |
+
734,
|
| 695 |
+
825,
|
| 696 |
+
776
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 5
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "4.2 Implementation Details ",
|
| 703 |
+
"text_level": 1,
|
| 704 |
+
"bbox": [
|
| 705 |
+
176,
|
| 706 |
+
792,
|
| 707 |
+
377,
|
| 708 |
+
808
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 5
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "Similar to the previous works on SSDA [46, 29, 9], we use Resnet34 and Alexnet as the backbone networks in our paper. We only used VGG for Office31 due to its higher memory requirements. The feature generator model is initialized with ImageNet weights, and the classifier is randomly initialized and has the same architecture as in [46, 29, 9]. All our experiments are performed using Pytorch [40].We use an identical set of hyperparameters $\\langle \\alpha = 4$ , $\\beta = 1$ ) across all our experiments other than minibatch size. All the hyperparameters values are decided using validation performance on Product to Art experiments on the Office-Home dataset. We have set $\\tau = 5$ in our experiments. Each minibatch of size $B$ contains an equal number of source and labeled target examples, while the number of unlabeled target samples is $\\mu \\times B$ . We study the effect of $\\mu$ in section 4.5. Resnet34 experiments are performed with minibatch size, $B = 3 2$ and Alexnet models are trained with $B = 2 4$ We use $\\mu = 4$ for all our experiments. We use SGD optimizer with a momentum of 0.9 and an initial learning rate of 0.01 with cosine learning rate decay for all our experiments. Weight decay is set to 0.0005 for all our models. Other details of the experiments are included in the supplementary. ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
174,
|
| 717 |
+
818,
|
| 718 |
+
825,
|
| 719 |
+
888
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 5
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "table",
|
| 725 |
+
"img_path": "images/e492adbf1b627dc56901542b95751e5968717b6c73a7b68b65ce2529d528f809.jpg",
|
| 726 |
+
"table_caption": [
|
| 727 |
+
"Table 1: Performance Comparison in Office-Home. Numbers show top-1 accuracy values for different domain adaptation scenarios under 3-shot setting using Alexnet and Resnet34 as backbone networks. We have highlighted the best method for each transfer task. CLDA surpasses all the baseline methods in most adaptation scenarios. Our Proposed framework achieves the best average performance among all compared methods. "
|
| 728 |
+
],
|
| 729 |
+
"table_footnote": [],
|
| 730 |
+
"table_body": "<table><tr><td>Net</td><td>Method</td><td>R1→C1</td><td>R1→Pr</td><td>Rl→Ar</td><td>Pr-→Rl</td><td>Pr→Cl</td><td>Pr→Ar</td><td>Ar→Pl</td><td>Ar-→C1</td><td>Ar-→Rl</td><td>CI-→Rl</td><td>Cl→Ar</td><td>C1-→Pr</td><td>Mean</td></tr><tr><td rowspan=\"10\">Alexnet</td><td>S+T</td><td>44.6</td><td>66.7</td><td>47.7</td><td>57.8</td><td>44.4</td><td>36.1</td><td>57.6</td><td>38.8</td><td>57.0</td><td>54.3</td><td>37.5</td><td>57.9</td><td>50.0</td></tr><tr><td>DANN</td><td>47.2</td><td>66.7</td><td>46.6</td><td>58.1</td><td>44.4</td><td>36.1</td><td>57.2</td><td>39.8</td><td>56.6</td><td>54.3</td><td>38.6</td><td>57.9</td><td>50.3</td></tr><tr><td>ADR</td><td>37.8</td><td>63.5</td><td>45.4</td><td>53.5</td><td>32.5</td><td>32.2</td><td>49.5</td><td>31.8</td><td>53.4</td><td>49.7</td><td>34.2</td><td>50.4</td><td>44.5</td></tr><tr><td>CDAN</td><td>36.1</td><td>62.3</td><td>42.2</td><td>52.7</td><td>28.0</td><td>27.8</td><td>48.7</td><td>28.0</td><td>51.3</td><td>41.0</td><td>26.8</td><td>49.9</td><td>41.2</td></tr><tr><td>ENT</td><td>44.9</td><td>70.4</td><td>47.1</td><td>60.3</td><td>41.2</td><td>34.6</td><td>60.7</td><td>37.8</td><td>60.5</td><td>58.0</td><td>31.8</td><td>63.4</td><td>50.9</td></tr><tr><td>MME</td><td>51.2</td><td>73.0</td><td>50.3</td><td>61.6</td><td>47.2</td><td>40.7</td><td>63.9</td><td>43.8</td><td>61.4</td><td>59.9</td><td>44.7</td><td>64.7</td><td>55.2</td></tr><tr><td>Meta-MME</td><td>50.3</td><td>-</td><td>-</td><td>-</td><td>48.3</td><td>40.3</td><td>:</td><td>44.5</td><td>-</td><td>-</td><td>44.5</td><td>-</td><td>-</td></tr><tr><td>BiAT</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>56.4</td></tr><tr><td>APE CLDA(ours)</td><td>51.9</td><td>74.6</td><td>51.2</td><td>61.6</td><td>47.9</td><td>42.1</td><td>65.5</td><td>44.5</td><td>60.9</td><td>58.1</td><td>44.3</td><td>64.8</td><td>55.6</td></tr><tr><td></td><td>51.5</td><td>74.1</td><td>54.3</td><td>67.0</td><td>47.9</td><td>47.0</td><td>65.8</td><td>47.4</td><td>66.6</td><td>64.1</td><td>46.8</td><td>67.5</td><td>58.3</td></tr><tr><td rowspan=\"7\">Resnet34</td><td>S+T</td><td>55.7</td><td>80.8</td><td>67.8</td><td>73.1</td><td>53.8</td><td>63.5</td><td>73.1</td><td>54.0</td><td>74.2</td><td>68.3</td><td>57.6</td><td>72.3</td><td>66.2</td></tr><tr><td>DANN</td><td>57.3</td><td>75.5</td><td>65.2</td><td>69.2</td><td>51.8</td><td>56.6</td><td>68.3</td><td>54.7</td><td>73.8</td><td>67.1</td><td>55.1</td><td>67.5</td><td>63.5</td></tr><tr><td>ENT</td><td>62.6</td><td>85.7</td><td>70.2</td><td>79.9</td><td>60.5</td><td>63.9</td><td>79.5</td><td>61.3</td><td>79.1</td><td>76.4</td><td>64.7</td><td>79.1</td><td>71.9</td></tr><tr><td>MME</td><td>64.6</td><td>85.5</td><td>71.3</td><td>80.1</td><td>64.6</td><td>65.5</td><td>79.0</td><td>63.6</td><td>79.7</td><td>76.6</td><td>67.2</td><td>79.3</td><td>73.1</td></tr><tr><td>Meta-MME</td><td>65.2</td><td>-</td><td>-</td><td>-</td><td>64.5</td><td>66.7</td><td>-</td><td>63.3</td><td>-</td><td>-</td><td>67.5</td><td>-</td><td>-</td></tr><tr><td>APE</td><td>66.4</td><td>86.2</td><td>73.4</td><td>82.0</td><td>65.2</td><td>66.1</td><td>81.1</td><td>63.9</td><td>80.2</td><td>76.8</td><td>66.6</td><td>79.9</td><td>74.0</td></tr><tr><td>CLDA (ours)</td><td>66.0</td><td>87.6</td><td>76.7</td><td>82.2</td><td>63.9</td><td>72.4</td><td>81.4</td><td>63.4</td><td>81.3</td><td>80.3</td><td>70.5</td><td>80.9</td><td>75.5</td></tr></table>",
|
| 731 |
+
"bbox": [
|
| 732 |
+
176,
|
| 733 |
+
97,
|
| 734 |
+
825,
|
| 735 |
+
286
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 6
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "",
|
| 742 |
+
"bbox": [
|
| 743 |
+
174,
|
| 744 |
+
400,
|
| 745 |
+
825,
|
| 746 |
+
511
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 6
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "4.3 Baselines ",
|
| 753 |
+
"text_level": 1,
|
| 754 |
+
"bbox": [
|
| 755 |
+
174,
|
| 756 |
+
532,
|
| 757 |
+
277,
|
| 758 |
+
546
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 6
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "We compare our CLDA framework with previous state-of-the-art SSDA approaches : MME [46], APE [29], BiAT [25] , UODA [44], Meta-MME [9] and ENT [15] using the performance reported by these papers. papers. We also included the results from adversarial based baseline methods: DANN [13], ADR [47] and CDAN [35] as reported in [46]. We also provide the $\\mathbf { s } { + } \\mathbf { T }$ results where the model is trained using all the labeled samples across domains. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
174,
|
| 767 |
+
559,
|
| 768 |
+
825,
|
| 769 |
+
628
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "4.4 Results ",
|
| 776 |
+
"text_level": 1,
|
| 777 |
+
"bbox": [
|
| 778 |
+
174,
|
| 779 |
+
648,
|
| 780 |
+
263,
|
| 781 |
+
664
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 6
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "Table 1- 3 show top-1 accuracies and mean accuracies for different combination of domain adaptation scenarios for all three datasets in comparison with baseline SSDA methods. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
173,
|
| 790 |
+
676,
|
| 791 |
+
823,
|
| 792 |
+
704
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "Office-Home. Table 1 contains the results of the Office-Home dataset for 3-shot setting with Alexnet and Resnet34 as backbone networks. Results for the 1-shot adaptation scenarios are included in the supplementary. Our method consistently performs better than the baseline approaches and achieves $5 8 . 3 \\%$ and $7 5 . 5 \\%$ mean accuracy with Alexnet and Resnet34, respectively. Our approach surpasses the state-of-the-art SSDA approaches in most of the adaptation tasks. In some domain adaptation cases, such as $\\mathrm { C l } \\mathrm { R l }$ , $\\mathbf { R } 1 \\mathbf { A r }$ and $\\mathrm { P r } \\mathrm { A r }$ , we exceeded APE by more than $3 \\%$ . ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
710,
|
| 802 |
+
825,
|
| 803 |
+
794
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "DomainNet: Our CLDA approach surpasses the performance of existing SSDA baselines as shown in Table 2. Using Alexnet backbone, our method improves over BiAT by $5 . 2 \\%$ and $4 . 9 \\%$ in 1-shot and 3-shot settings, respectively. We obtain similarly improved performance when we switch the neural backbone from Alexnet to Resnet34. With Resnet34 as the backbone, we gain $4 . 3 \\%$ and $3 . 6 \\%$ over APE in 1-shot and 3-shot settings, respectively. Similar to the Office-Home, our approach surpasses the well-known domain adaptation benchmarks methods in most domain adaptation tasks of the DomainNet dataset. Such consistent improved performance shows that our approach reduces both inter and intra domain discrepancy prevalent in SSDA. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
173,
|
| 812 |
+
800,
|
| 813 |
+
825,
|
| 814 |
+
911
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 6
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "table",
|
| 820 |
+
"img_path": "images/b07128146fdfa0e187d3c8fb2b36a656e6b052e0fb3ef039fb5c2da52221fc8b.jpg",
|
| 821 |
+
"table_caption": [
|
| 822 |
+
"Table 2: Performance Comparison in DomainNet. Numbers show Top-1 accuracy values for different domain adaptation scenarios under 1-shot and 3-shot settings using Alexnet and Resnet34 as backbone networks. CLDA achieves better performance than all the baseline methods in most of the domain adaptation tasks. We have highlighted the best approach for each domain adaptation task. Our Proposed framework achieves the best average performance among all compared methods. "
|
| 823 |
+
],
|
| 824 |
+
"table_footnote": [],
|
| 825 |
+
"table_body": "<table><tr><td rowspan=\"2\">Net</td><td rowspan=\"2\">Method</td><td colspan=\"2\">R→C</td><td colspan=\"2\">R→P</td><td colspan=\"2\">P→C</td><td colspan=\"2\">C→S</td><td colspan=\"2\">S→P</td><td colspan=\"2\">R→S</td><td colspan=\"2\">P→R</td><td colspan=\"2\">Mean 1-shot3-shot</td></tr><tr><td>1-shot3-shot</td><td></td><td>1-shot</td><td>3-shot</td><td></td><td>1-shot3-shot</td><td>1-shot</td><td>3-shot</td><td>1-shot</td><td>3-shot</td><td>1-shot3-shot</td><td></td><td>1-shot3-shot</td><td></td><td></td><td></td></tr><tr><td rowspan=\"9\">Alexnet</td><td>S+T</td><td>43.3</td><td>47.1</td><td>42.4</td><td>45.0 43.8</td><td>40.1 39.1</td><td>44.9</td><td>33.6</td><td>36.4</td><td>35.7</td><td>38.4</td><td>29.1</td><td>33.3</td><td>55.8</td><td>58.7</td><td>40.0 40.4</td><td>43.4</td></tr><tr><td>DANN</td><td>43.3</td><td>46.1</td><td>41.6</td><td></td><td></td><td>41.0</td><td>35.9</td><td>36.5</td><td>36.9</td><td>38.9</td><td>32.5</td><td>33.4</td><td>53.5</td><td>57.3</td><td></td><td>42.4</td></tr><tr><td>ADR</td><td>43.1</td><td>46.2</td><td>41.4</td><td>44.4</td><td>39.3</td><td>43.6</td><td>32.8</td><td>36.4</td><td>33.1</td><td>38.9</td><td>29.1</td><td>32.4</td><td>55.9</td><td>57.3</td><td>39.2</td><td>42.7</td></tr><tr><td>CDAN</td><td>46.3</td><td>46.8</td><td>45.7</td><td>45.0</td><td>38.3</td><td>42.3</td><td>27.5</td><td>29.5</td><td>30.2</td><td>33.7</td><td>28.8</td><td>31.3</td><td>56.7</td><td>58.7</td><td>39.1</td><td>41.0</td></tr><tr><td>ENT</td><td>37.0</td><td>45.5</td><td>35.6</td><td>42.6</td><td>26.8</td><td>40.4</td><td>18.9</td><td>31.1</td><td>15.1</td><td>29.6</td><td>18.0</td><td>29.6</td><td>52.2</td><td>60.0</td><td>29.1</td><td>39.8</td></tr><tr><td>MME</td><td>48.9</td><td>55.6</td><td>48.0</td><td>49.0</td><td>46.7</td><td>51.7</td><td>36.3</td><td>39.4</td><td>39.4</td><td>43.0</td><td>33.3</td><td>37.9</td><td>56.8</td><td>60.7</td><td>44.2</td><td>48.2</td></tr><tr><td>Meta-MME</td><td>1</td><td>56.4</td><td>-</td><td>50.2</td><td></td><td>51.9</td><td>,</td><td>39.6</td><td>,</td><td>43.7</td><td>-</td><td>38.7</td><td>1</td><td>60.7</td><td>-</td><td>48.8</td></tr><tr><td>BiAT</td><td>54.2</td><td>58.6</td><td>49.2</td><td>50.6</td><td>44.0</td><td>52.0</td><td>37.7</td><td>41.9</td><td>39.6</td><td>42.1</td><td>37.2</td><td>42.0</td><td>56.9</td><td>58.8</td><td>45.5</td><td>49.4</td></tr><tr><td>APE CLDA (ours)</td><td>47.7 56.3</td><td>54.6 59.9</td><td>49.0 56.0</td><td>50.5</td><td>46.9</td><td>52.1 54.6</td><td>38.5 42.5</td><td>42.6</td><td>38.5</td><td>42.2</td><td>33.8 38.0</td><td>38.7</td><td>57.5</td><td>61.4</td><td>44.6</td><td>48.9</td></tr><tr><td></td><td></td><td></td><td></td><td>57.2</td><td>50.8</td><td></td><td></td><td>47.3</td><td>46.8</td><td></td><td>51.4</td><td>42.7</td><td></td><td>64.4</td><td>67.0</td><td>50.7</td><td>54.3</td></tr><tr><td rowspan=\"10\"></td><td>S+T</td><td>55.6</td><td>60.0</td><td>60.6</td><td>62.2</td><td>56.8</td><td>59.4</td><td>50.8</td><td>55.0</td><td>56.0</td><td>59.5</td><td>46.3</td><td>50.1</td><td>71.8</td><td>73.9</td><td>56.9</td><td>60.0</td></tr><tr><td>DANN</td><td>58.2</td><td>59.8</td><td>61.4</td><td>62.8</td><td>56.3</td><td>59.6</td><td>52.8</td><td>55.4</td><td>57.4</td><td>59.9</td><td>52.2</td><td>54.9</td><td>70.3</td><td>72.2</td><td>58.4</td><td>60.7</td></tr><tr><td>ADR</td><td>57.1</td><td>60.7</td><td>61.3</td><td>61.9</td><td>57.0</td><td>60.7</td><td>51.0</td><td>54.4</td><td>56.0</td><td>59.9</td><td>49.0</td><td>51.1</td><td>72.0</td><td>74.2</td><td>57.6</td><td>60.4</td></tr><tr><td>CDAN</td><td>65.0</td><td>69.0</td><td>64.9</td><td>67.3</td><td>63.7</td><td>68.4</td><td>53.1</td><td>57.8</td><td>63.4</td><td>65.3</td><td>54.5</td><td>59.0</td><td>73.2</td><td>78.5</td><td>62.5</td><td>66.5</td></tr><tr><td>ENT</td><td>65.2</td><td>71.0</td><td>65.9</td><td>69.2</td><td>65.4</td><td>71.1</td><td>54.6</td><td>60.0</td><td>59.7</td><td>62.1</td><td>52.1</td><td>61.1</td><td>75.0</td><td>78.6</td><td>62.6</td><td>67.6</td></tr><tr><td>MME</td><td>70.0</td><td>72.2</td><td>67.7</td><td>69.7</td><td>69.0</td><td>71.7</td><td>56.3</td><td>61.8</td><td>64.8</td><td>66.8</td><td>61.0</td><td>61.9</td><td>76.1</td><td>78.5</td><td>66.4</td><td>68.9</td></tr><tr><td>UODA</td><td>72.7</td><td>75.4</td><td>70.3</td><td>71.5</td><td>69.8</td><td>73.2</td><td>60.5</td><td>64.1</td><td>66.4</td><td>69.4</td><td>62.7</td><td>64.2</td><td>77.3</td><td>80.8</td><td>68.5</td><td>71.2</td></tr><tr><td>Meta-MME</td><td>1</td><td>73.5</td><td>1</td><td>70.3</td><td>1</td><td>72.8</td><td>-</td><td>62.8</td><td>1</td><td>68.0</td><td>-</td><td>63.8</td><td>-</td><td>79.2</td><td>-</td><td>70.1</td></tr><tr><td>BiAT</td><td>73.0</td><td>74.9</td><td>68.0</td><td>68.8</td><td>71.6</td><td>74.6</td><td>57.9</td><td>61.5</td><td>63.9</td><td>67.5</td><td>58.5</td><td>62.1</td><td>77.0</td><td>78.6</td><td>67.1</td><td>69.7</td></tr><tr><td>APE</td><td>70.4</td><td>76.6 77.7</td><td>70.8 75.1</td><td>72.1 75.7</td><td>72.9</td><td>76.7 76.4</td><td>56.7 63.7</td><td>63.1 69.7</td><td>64.5 70.2</td><td>66.1 73.7</td><td>63.0 67.1</td><td>67.8</td><td>76.6</td><td>79.4 82.9</td><td>67.6 71.9</td><td>71.7</td></tr><tr><td></td><td>CLDA (ours)</td><td>76.1</td><td></td><td></td><td></td><td>71.0</td><td></td><td></td><td></td><td></td><td></td><td>71.1</td><td>80.1</td><td></td><td></td><td>75.3</td></tr></table>",
|
| 826 |
+
"bbox": [
|
| 827 |
+
176,
|
| 828 |
+
104,
|
| 829 |
+
825,
|
| 830 |
+
323
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 7
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "table",
|
| 836 |
+
"img_path": "images/dd1369bf12b986d21a391bd7d4ccdb2af9511edb91769f1c16ac4b8bc1d50c72.jpg",
|
| 837 |
+
"table_caption": [
|
| 838 |
+
"Table 3: Performance Comparison in Office31. Numbers show Top-1 accuracy values for different domain adaptation scenarios under 1-shot and 3-shot settings using Alexnet and VGG as backbone networks. CLDA outperforms all the baseline approaches in both scenarios. We have highlighted the superior method on each domain adaptation task. Our Proposed framework achieves the best mean accuracy among all baseline methods. "
|
| 839 |
+
],
|
| 840 |
+
"table_footnote": [],
|
| 841 |
+
"table_body": "<table><tr><td></td><td colspan=\"5\">Alexnet</td><td colspan=\"6\">VGG</td></tr><tr><td></td><td colspan=\"2\">W→A</td><td colspan=\"2\">D→A</td><td colspan=\"2\">Mean</td><td colspan=\"2\">W→A</td><td colspan=\"2\">D→A</td><td colspan=\"2\">Mean</td></tr><tr><td>Method</td><td>1-shot</td><td>3-shot</td><td>1-shot</td><td>3-shot</td><td>1-shot</td><td>3-shot</td><td>1-shot</td><td>3-shot</td><td>1-shot</td><td>3-shot</td><td>1-shot</td><td>3-shot</td></tr><tr><td>S+T</td><td>50.4</td><td>61.2</td><td>50.0</td><td>62.4</td><td>50.2</td><td>61.8</td><td>169.2</td><td>73.2</td><td>68.2</td><td>73.3</td><td>68.7</td><td>73.25</td></tr><tr><td>DANN</td><td>57.0</td><td>64.4</td><td>54.5</td><td>65.2</td><td>55.8</td><td>64.8</td><td>69.3</td><td>75.4</td><td>70.4</td><td>74.6</td><td>69.85</td><td>75.0</td></tr><tr><td>ADR</td><td>50.2</td><td>61.2</td><td>50.9</td><td>61.4</td><td>50.6</td><td>61.3</td><td>69.7</td><td>73.3</td><td>69.2</td><td>74.1</td><td>69.45</td><td>73.7</td></tr><tr><td>CDAN</td><td>50.4</td><td>60.3</td><td>48.5</td><td>61.4</td><td>49.5</td><td>60.8</td><td>65.9</td><td>74.4</td><td>64.4</td><td>71.4</td><td>65.15</td><td>72.9</td></tr><tr><td>ENT</td><td>50.7</td><td>64.0</td><td>50.0</td><td>66.2</td><td>50.4</td><td>65.1</td><td>69.1</td><td>75.4</td><td>72.1</td><td>75.1</td><td>70.6</td><td>75.25</td></tr><tr><td>MME</td><td>57.2</td><td>67.3</td><td>55.8</td><td>67.8</td><td>56.5</td><td>67.6</td><td>73.1</td><td>76.3</td><td>73.6</td><td>77.6</td><td>73.35</td><td>76.95</td></tr><tr><td>BiAT</td><td>57.9</td><td>68.2</td><td>54.6</td><td>68.5</td><td>56.3</td><td>68.4</td><td>-</td><td>1</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>APE</td><td>1</td><td>67.6</td><td>-</td><td>69.0</td><td>-</td><td>68.3</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CLDA</td><td>64.6</td><td>70.5</td><td>62.7</td><td>72.5</td><td>63.6</td><td>71.5</td><td>76.2</td><td>78.6</td><td>75.1</td><td>76.7</td><td>75.6</td><td>77.6</td></tr></table>",
|
| 842 |
+
"bbox": [
|
| 843 |
+
176,
|
| 844 |
+
429,
|
| 845 |
+
825,
|
| 846 |
+
593
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Office31: Similar to other datasets, our proposed method with Alexnet and VGG as neural backbone achieves the best performance in both domain adaption scenarios for office31 as shown in Table 3. Using Alexnet backbone, we beat the APE [29] by $3 . 2 \\%$ in 3-shot and BiAT by $7 . 3 \\%$ in 1-shot settings. We observe similar gains over all the baselines methods with VGG as the neural network backbone. This shows the efficacy of our proposed approach irrespective of the used backbone. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
705,
|
| 856 |
+
825,
|
| 857 |
+
776
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "4.5 Ablation Studies ",
|
| 864 |
+
"text_level": 1,
|
| 865 |
+
"bbox": [
|
| 866 |
+
174,
|
| 867 |
+
795,
|
| 868 |
+
328,
|
| 869 |
+
809
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "We perform extensive ablation experiments to analyze our CLDA framework and the effects of the different components and hyperparameters. We perform these experiments on the 3-shot $\\mathrm { P r } \\mathrm { A r }$ domain adaptation task of the Office-Home dataset using Resnet34 unless specified otherwise. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
174,
|
| 878 |
+
820,
|
| 879 |
+
825,
|
| 880 |
+
863
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "Effectiveness of Individual Modules: Our CLDA framework is composed of two modules: InterDomain Contrastive Alignment and Instance Contrastive Alignment. We investigate the significance of each component of our framework by dropping the other during training. We observe that the test accuracy drops from $7 2 . 4 \\%$ to $6 8 . 3 \\%$ when only Inter-Domain Contrastive Alignment is used, and it drops to $6 7 . 7 \\%$ when Instance Contrastive Alignment is used alone as shown in Table 5(a). Though individual modules do not yield high performance on their own but once combined, they surpass their individual performance by a margin of around $4 \\%$ . ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
176,
|
| 889 |
+
868,
|
| 890 |
+
825,
|
| 891 |
+
911
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 7
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "table",
|
| 897 |
+
"img_path": "images/2abf7ba35fef703ef49820e43a123faacc5e07006a05c4339d02362b5664ac47.jpg",
|
| 898 |
+
"table_caption": [],
|
| 899 |
+
"table_footnote": [],
|
| 900 |
+
"table_body": "<table><tr><td>Augmentation</td><td>Test Accuracy(Pr→Ar)</td><td>Test Accuracy(Rl→Ar)</td></tr><tr><td>Horizontal Flipping (Hflip)</td><td>68.1</td><td>73.4</td></tr><tr><td>Hflip + Color Jitter</td><td>67.6</td><td>74.9</td></tr><tr><td>Hflip+ Color Jitter+ Grayscale</td><td>70.2</td><td>76.2</td></tr><tr><td>Rand Augment (RA) [8]</td><td>71.1</td><td>74.6</td></tr><tr><td>RA + Grayscale</td><td>72.4</td><td>76.7</td></tr><tr><td>Auto Augment [7]</td><td>69.9</td><td>75.3</td></tr></table>",
|
| 901 |
+
"bbox": [
|
| 902 |
+
240,
|
| 903 |
+
88,
|
| 904 |
+
761,
|
| 905 |
+
194
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 8
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "image",
|
| 911 |
+
"img_path": "images/c559af2063faac46d7120f29aecc53ce7e351334606d0acc8b6b5191dcde3732.jpg",
|
| 912 |
+
"image_caption": [
|
| 913 |
+
"Table 4: Effect of Strong Augmentations Numbers show the test accuracy on 3-shot domain adaptation tasks of the Office-Home dataset with Resnet34 with different augmentation policies. ",
|
| 914 |
+
"Accuracy vs Ratio of unlabeled to labeled data "
|
| 915 |
+
],
|
| 916 |
+
"image_footnote": [],
|
| 917 |
+
"bbox": [
|
| 918 |
+
619,
|
| 919 |
+
263,
|
| 920 |
+
818,
|
| 921 |
+
340
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 8
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "image",
|
| 927 |
+
"img_path": "images/985e3697944763a1d34ecb7f6cdc7302257c7d45fd5a260543d6e9fc35ea2c15.jpg",
|
| 928 |
+
"image_caption": [
|
| 929 |
+
"Accuracy vs Weight of Instance Contrastive Alignment "
|
| 930 |
+
],
|
| 931 |
+
"image_footnote": [],
|
| 932 |
+
"bbox": [
|
| 933 |
+
186,
|
| 934 |
+
265,
|
| 935 |
+
379,
|
| 936 |
+
337
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 8
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "image",
|
| 942 |
+
"img_path": "images/ce7daee479da15ce20a942f1f3f10d535fc557418e4ecdea10f11f78515c6b41.jpg",
|
| 943 |
+
"image_caption": [
|
| 944 |
+
"Accuracy vs Weight of Inter-Domain Contrastive Alignment ",
|
| 945 |
+
"Figure 3: Effect of different hyperparameters on 3-shot $\\mathbf { P r } \\mathbf { A r }$ (Product to Art) data adaptation scenario on the Office-Home using Resnet34. (a) Effect of varying the weight of Instance Contrastive Alignment on validation and test Accuracy (b) Effect of varying weight of Inter-Domain Contrastive Alignment on validation and test Accuracy (c) Effect of $\\mu$ , ratio of unlabeled target to labeled target data on validation and test accuracy. "
|
| 946 |
+
],
|
| 947 |
+
"image_footnote": [],
|
| 948 |
+
"bbox": [
|
| 949 |
+
390,
|
| 950 |
+
267,
|
| 951 |
+
604,
|
| 952 |
+
339
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 8
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "",
|
| 959 |
+
"bbox": [
|
| 960 |
+
174,
|
| 961 |
+
454,
|
| 962 |
+
825,
|
| 963 |
+
511
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 8
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "Effect of Different Hyperparameters: We analyze the importance of different hyperparameters used in our approach. We observe that the weight of Instance Contrastive Alignment affects the performance of our approach as the test accuracy drops from $7 2 . 4 \\%$ to $7 0 . 7 \\%$ when we set $\\alpha$ to 1 instead of its optimal value of 4 as shown in figure 3. We also notice that increasing $\\beta$ led to a reduction of the validation and test performance. We also look into the effect of $\\mu$ , which is the ratio of unlabeled to labeled data in a minibatch. We observe that an increasing value of $\\mu$ increases the performance till $\\mu = 4$ , after which it starts to drop, as shown in figure 3. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
173,
|
| 972 |
+
517,
|
| 973 |
+
825,
|
| 974 |
+
614
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 8
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Importance of Instance Contrastive Alignment: Instance Contrastive Alignment ensures similar representation across different variants of the unlabeled target images. This consistency is also ensured by other well-known SSL approaches like FixMatch [50]. We perform an ablation experiment replacing Instance Contrastive Alignment with FixMatch. We also compare with L1 and L2 loss to have a fair analysis. As shown in Table 5 (b) Instance Contrastive Alignment helps to achieve superior performance in comparison with other consistency-based approaches. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
173,
|
| 983 |
+
621,
|
| 984 |
+
825,
|
| 985 |
+
704
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 8
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "table",
|
| 991 |
+
"img_path": "images/998f7f90ed00b73df61128f42bf2602973c5e9a096abf52c1628e4458c9a5260.jpg",
|
| 992 |
+
"table_caption": [],
|
| 993 |
+
"table_footnote": [
|
| 994 |
+
"(a) Ablation Study on the effectiveness of Individual components of the CLDA framework on $\\mathrm { P r } \\mathrm { A r }$ adaptation task of the OfficeHome dataset using Resnet34. "
|
| 995 |
+
],
|
| 996 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Approach</td><td rowspan=1 colspan=1>Test Accuracy</td></tr><tr><td rowspan=1 colspan=1>CLDA w/o Instance ContrastiveCLDA w/o Inter-Domain Contrastive</td><td rowspan=1 colspan=1>68.367.7</td></tr><tr><td rowspan=1 colspan=1>CLDA (ours)</td><td rowspan=1 colspan=1>72.4</td></tr></table>",
|
| 997 |
+
"bbox": [
|
| 998 |
+
181,
|
| 999 |
+
750,
|
| 1000 |
+
566,
|
| 1001 |
+
821
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 8
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "table",
|
| 1007 |
+
"img_path": "images/cf3bba68d151be47b1303fca72ebfd3d477f7415261db69b0681f508d84214c1.jpg",
|
| 1008 |
+
"table_caption": [],
|
| 1009 |
+
"table_footnote": [
|
| 1010 |
+
"(b) Ablation Study on other consistency based approaches on $\\mathrm { P r } \\mathrm { A r }$ domain adaptation task of the OfficeHome using Resnet34. "
|
| 1011 |
+
],
|
| 1012 |
+
"table_body": "<table><tr><td>Approach</td><td>Test Accuracy</td></tr><tr><td>Fix-Match</td><td>70.8</td></tr><tr><td>L1 loss</td><td>69.4</td></tr><tr><td>L2 loss</td><td>69.3</td></tr><tr><td>CLDA (ours)</td><td>72.4</td></tr></table>",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
596,
|
| 1015 |
+
741,
|
| 1016 |
+
823,
|
| 1017 |
+
830
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 8
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Table 5: Experiments to understand the significance of individual components of our framework. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
178,
|
| 1026 |
+
892,
|
| 1027 |
+
813,
|
| 1028 |
+
909
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 8
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "table",
|
| 1034 |
+
"img_path": "images/97c110de42a3e2ad41cbc5d37ffa0148386eca4a8affdb0710c054c62c84e00c.jpg",
|
| 1035 |
+
"table_caption": [
|
| 1036 |
+
"Table 6: Ablation study to understand the effect of outliers in target domain. Numbers show the test accuracy of 1-shot domain adaptation tasks of the Office-Home dataset with Resnet34. "
|
| 1037 |
+
],
|
| 1038 |
+
"table_footnote": [],
|
| 1039 |
+
"table_body": "<table><tr><td>Experiments</td><td>O samples mislabeled</td><td>8 samples mislabeled (~ 12%)</td><td>16 samples mislabeled (~ 25%)</td></tr><tr><td>Pr→Ar</td><td>66.2</td><td>66.0</td><td>65.7</td></tr><tr><td>Rl→Ar</td><td>72.6</td><td>72.05</td><td>71.56</td></tr></table>",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
240,
|
| 1042 |
+
88,
|
| 1043 |
+
759,
|
| 1044 |
+
127
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 9
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "Effect of Other Clustering Techniques: Inter-Domain Contrastive Alignment requires pseudo labels for the unlabeled target data for clustering. In this ablation experiment, we replace our approach of using the model’s prediction as a pseudo label with K-means clustering, which we invoke after every 50 steps and use the generated centroids for the next 50 steps to obtain pseudo-class labels for unlabeled target data. We observe a drop in performance (from $7 2 . 4 \\%$ to $\\bar { 7 1 } . 2 \\%$ ) when using K-means to obtain the pseudo label for unlabeled target images. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
173,
|
| 1053 |
+
189,
|
| 1054 |
+
825,
|
| 1055 |
+
273
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 9
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Effect of Augmentation Policy: We look into different augmentation policies for the Instance Contrastive Alignment. As suggested in [6], a stronger augmentation policy for contrastive learning increases the performance of the model. We find that RandAugment [8] with Grayscale augmentation policy gives better results over other augmentation policies. The influence of the strong augmentation can be observed from $\\sim 4 \\%$ improvement in the performance when the augmentation policy is switched from horizontal flipping to RandAugment with Grayscale. Table 4 contains the test accuracy of different augmentation policies on 3-shot $\\mathrm { P r } \\mathrm { A r }$ and $\\mathrm { R l } \\mathrm { P r }$ domain adaption tasks of the Office-Home dataset with Resnet34. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
174,
|
| 1064 |
+
279,
|
| 1065 |
+
825,
|
| 1066 |
+
390
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 9
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Effect of Noisy-Labeled Target Samples: In SSDA, we have few labeled samples from the target domain; however, the presence of noisy-labeled target samples can have an adverse effect on the performance. To understand the effect of noisy-labeled target samples on the framework, we conducted experiments on the 1-shot $\\mathrm { P r } \\mathrm { A r }$ and $\\mathbf { R } 1 \\mathbf { A r }$ domain adaptation scenarios of the Office-Home dataset with Resnet34, where we mislabeled some previously labeled target samples as shown in Table 6. We observe a small decrease in performance of our framework ( from $6 6 . \\hat { 2 \\% }$ to $6 5 . 7 \\%$ for $\\mathrm { P r } \\mathrm { A r }$ and from $7 2 . 6 \\%$ to $7 1 . 5 6 \\%$ for $\\mathbb { R } 1 \\to \\mathrm { A r }$ ) when mislabeled target samples increase from $0 \\%$ to $\\sim 2 5 \\%$ in both domain adaptation scenarios showing the robustness of our framework. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
174,
|
| 1075 |
+
396,
|
| 1076 |
+
825,
|
| 1077 |
+
507
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 9
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "5 Conclusion ",
|
| 1084 |
+
"text_level": 1,
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
174,
|
| 1087 |
+
526,
|
| 1088 |
+
299,
|
| 1089 |
+
544
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 9
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "In this work, we present a novel single-stage contrastive learning framework for semi-supervised domain adaptation. The framework consists of Inter-Domain Contrastive Alignment and InstanceContrastive Alignment, where the former maximizes the similarity between centroids of the same class from both domains and later maximizes the similarity between augmented views of the unlabeled target images. We show that both of the components of the framework are necessary for improved performance. We demonstrate the effectiveness of our approach on three standard domain adaptation benchmark datasets, outperforming the well-known SSDA methods. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
174,
|
| 1098 |
+
558,
|
| 1099 |
+
825,
|
| 1100 |
+
655
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 9
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "6 Acknowledgments and Disclosure of Funding ",
|
| 1107 |
+
"text_level": 1,
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
173,
|
| 1110 |
+
674,
|
| 1111 |
+
583,
|
| 1112 |
+
691
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 9
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "The work is supported by Half-Time Research Assistantship (HTRA) grants from the Ministry of Education, India. We would also like to thank Saurav Chakraborty and Athira Nambiar for their valuable suggestions and feedback to improve the work. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
174,
|
| 1121 |
+
705,
|
| 1122 |
+
825,
|
| 1123 |
+
747
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 9
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "References ",
|
| 1130 |
+
"text_level": 1,
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
174,
|
| 1133 |
+
767,
|
| 1134 |
+
267,
|
| 1135 |
+
784
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 9
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "[1] Philip Bachman, R Devon Hjelm, and William Buchwalter. “Learning Representations by Maximizing Mutual Information Across Views”. In: Neural Information Processing Systems. 2019. \n[2] David Berthelot, Nicholas Carlini, Ekin D. Cubuk, Alex Kurakin, Kihyuk Sohn, Han Zhang, and Colin Raffel. “ReMixMatch: Semi-Supervised Learning with Distribution Matching and Augmentation Anchoring”. In: International Conference on Learning Representations. 2020. \n[3] David Berthelot, Nicholas Carlini, Ian Goodfellow, Nicolas Papernot, Avital Oliver, and Colin Raffel. “MixMatch: A Holistic Approach to Semi-Supervised Learning”. In: Neural Information Processing Systems. 2019. \n[4] Konstantinos Bousmalis, George Trigeorgis, Nathan Silberman, Dilip Krishnan, and Dumitru Erhan. “Domain Separation Networks”. In: Neural Information Processing Systems. 2016. \n[5] Chao Chen, Zhihong Chen, Boyuan Jiang, and Xinyu Jin. “Joint Domain Alignment and Discriminative Feature Learning for Unsupervised Deep Domain Adaptation”. In: AAAI Conference on Artificial Intelligence. Vol. 33. 01. 2019, pp. 3296–3303. \n[6] Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. “A Simple Framework for Contrastive Learning of Visual Representations”. In: International Conference on Machine Learning. PMLR. 2020, pp. 1597–1607. \n[7] Ekin Dogus Cubuk, Barret Zoph, Dandelion Mané, Vijay Vasudevan, and Quoc V. Le. “AutoAugment: Learning Augmentation Strategies From Data”. In: IEEE Conference on Computer Vision and Pattern Recognition (2019), pp. 113–123. \n[8] Ekin Dogus Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. “Randaugment: Practical automated data augmentation with a reduced search space”. In: IEEE Conference on Computer Vision and Pattern Recognition Workshops (2020), pp. 3008–3017. \n[9] Timothy Hospedales Da Li. “Online Meta-Learning for Multi-Source and Semi-Supervised Domain Adaptation”. In: European Conference on Computer Vision. 2020. \n[10] Zihang Dai, Zhilin Yang, Fan Yang, William W. Cohen, and Ruslan Salakhutdinov. “Good Semi-supervised Learning That Requires a Bad GAN”. In: Neural Information Processing Systems abs/1705.09783 (2017). \n[11] Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. “DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognition”. In: International Conference on Machine Learning. PMLR. 2014. \n[12] Yaroslav Ganin and Victor Lempitsky. “Unsupervised Domain Adaptation by Backpropagation”. In: International Conference on Machine Learning. PMLR. 2015, pp. 1180–1189. \n[13] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. “Domain-Adversarial Training of Neural Networks”. In: The Journal of Machine Learning Research 17.1 (2016), pp. 2096–2030. \n[14] Raghuraman Gopalan, Ruonan Li, and Rama Chellappa. “Domain adaptation for object recognition: An unsupervised approach”. In: IEEE International Conference on Computer Vision (2011), pp. 999–1006. \n[15] Yves Grandvalet and Yoshua Bengio. “Semi-supervised learning by entropy minimization”. In: Neural Information Processing Systems. 2004, pp. 529–536. \n[16] Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Schölkopf, and Alexander Smola. “A Kernel Two-Sample Test”. In: The Journal of Machine Learning Research 13.1 (2012), pp. 723–773. \n[17] Jean-Bastien Grill, Florian Strub, Florent Altch’e, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, et al. “Bootstrap Your Own Latent: A New Approach to Self-Supervised Learning”. In: ArXiv abs/2006.07733 (2020). \n[18] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross B. Girshick. “Momentum Contrast for Unsupervised Visual Representation Learning”. In: IEEE Conference on Computer Vision and Pattern Recognition (2020), pp. 9726–9735. \n[19] Kaiming Heand, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. “Deep Residual Learning for Image Recognition”. In: IEEE Conference on Computer Vision and Pattern Recognition. 2016, pp. 770–778. \n[20] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei A. Efros, and Trevor Darrell. “CyCADA: Cycle-Consistent Adversarial Domain Adaptation”. In: International Conference on Machine Learning. PMLR. 2018. \n[21] Lanqing Hu, Meina Kan, Shiguang Shan, and Xilin Chen. “Duplex Generative Adversarial Network for Unsupervised Domain Adaptation”. In: IEEE Conference on Computer Vision and Pattern Recognition (2018), pp. 1498–1507. \n[22] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q. Weinberger. “Densely Connected Convolutional Networks”. In: IEEE Conference on Computer Vision and Pattern Recognition (2017), pp. 2261–2269. \n[23] Shuiwang Ji, Wei Xu, Ming Yang, and Kai Yu. “3D Convolutional Neural Networks for Human Action Recognition”. In: IEEE Transactions on Pattern Analysis and Machine Intelligence 35 (2013), pp. 221–231. \n[24] Jian Shen and Yanru Qu and Weinan Zhang and Yong Yu. “Wasserstein Distance Guided Representation Learning for Domain Adaptation”. In: AAAI Conference on Artificial Intelligence. 2018. \n[25] Pin Jiang, Aming Wu, Yahong Han, Yunfeng Shao, Meiyu Qi, and Bingshuai Li. “Bidirectional Adversarial Training for Semi-Supervised Domain Adaptation”. In: International Joint Conferences on Artificial Intelligence. 2020. \n[26] Guoliang Kang, Lu Jiang, Yi Yang, and Alexander G Hauptmann. “Contrastive Adaptation Network for Unsupervised Domain Adaptation”. In: IEEE Conference on Computer Vision and Pattern Recognition (2019), pp. 4888–4897. \n[27] Guoliang Kang, Liang Zheng, Yan Yan, and Yi Yang. “Deep Adversarial Attention Alignment for Unsupervised Domain Adaptation: the Benefit of Target Expectation Maximization”. In: European Conference on Computer Vision. 2018. \n[28] Donghyun Kim, Kuniaki Saito, Tae-Hyun Oh, Bryan A. Plummer, Stan Sclaroff, and Kate Saenko. “Cross-domain Self-supervised Learning for Domain Adaptation with Few Source Labels”. In: IEEE International Conference on Computer Vision abs/2003.08264 (2021). \n[29] Tae-Kyung Kim and Changick Kim. “Attract, Perturb, and Explore: Learning a Feature Alignment Network for Semi-supervised Domain Adaptation”. In: European Conference on Computer Vision. 2020. \n[30] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. “ImageNet Classification with Deep Convolutional Neural Networks”. In: Neural Information Processing Systems 25 (2012), pp. 1097–1105. \n[31] Chongxuan Li, Kun Xu, Zhu Jun, and Zhang Bo. “Triple Generative Adversarial Nets”. In: Neural Information Processing Systems abs/1703.02291 (2017). \n[32] Ji Lin, Chuang Gan, and Song Han. “TSM: Temporal Shift Module for Efficient Video Understanding”. In: IEEE International Conference on Computer Vision (2019), pp. 7082– 7092. \n[33] Weizhe Liu, David Ferstl, Samuel Schulter, Lukas Zebedin, Pascal Fua, and Christian Leistner. “Domain Adaptation for Semantic Segmentation via Patch-Wise Contrastive Learning”. In: arXiv preprint arXiv:2104.11056 (2021). \n[34] Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I. Jordan. “Learning Transferable Features with Deep Adaptation Networks”. In: International Conference on Machine Learning. PMLR. 2015, pp. 97–105. \n[35] Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I. Jordan. “Conditional Adversarial Domain Adaptation”. In: Neural Information Processing Systems. 2018. \n[36] Mingsheng Long, Han Zhu, Jianmin Wang, and Michael I. Jordan. “Unsupervised Domain Adaptation with Residual Transfer Networks”. In: Neural Information Processing Systems. 2016. \n[37] Samarth Mishra, Kate Saenko, and Venkatesh Saligrama. “Surprisingly Simple SemiSupervised Domain Adaptation with Pretraining and Consistency”. In: ArXiv abs/2101.12727 (2021). \n[38] Zak Murez, Soheil Kolouri, David Kriegman, Ravi Ramamoorthi, and Kyungnam Kim. “Image to Image Translation for Domain Adaptation”. In: IEEE Conference on Computer Vision and Pattern Recognition (2018), pp. 4500–4509. \n[39] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. “Representation Learning with Contrastive Predictive Coding”. In: ArXiv abs/1807.03748 (2018). \n[40] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach 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: Neural Information Processing Systems. 2019. \n[41] Sujoy Paul, Yi-Hsuan Tsai, Samuel Schulter, Amit K Roy-Chowdhury, and Manmohan Chandraker. “Domain adaptive semantic segmentation using weak labels”. In: European Conference on Computer Vision. 2020, pp. 571–587. \n[42] Zhongyi Pei, Zhangjie Cao, Mingsheng Long, and Jianmin Wang. “Multi-Adversarial Domain Adaptation”. In: AAAI Conference on Artificial Intelligence. 2018. \n[43] Xingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang, Kate Saenko, and Bo Wang. “Moment Matching for Multi-Source Domain Adaptation”. In: IEEE International Conference on Computer Vision. 2019, pp. 1406–1415. \n[44] Can Qin, Lichen Wang, Qianqian Ma, Yu Yin, Huan Wang, and Yun Fu. “Contradictory Structure Learning for Semi-supervised Domain Adaptation”. In: Proceedings of the 2021 SIAM International Conference on Data Mining (SDM). SIAM. 2021, pp. 576–584. \n[45] Kate Saenko, Brian Kulis, Mario Fritz, and Trevor Darrell. “Adapting Visual Category Models to New Domains”. In: European Conference on Computer Vision. 2010. \n[46] Kuniaki Saito, Donghyun Kim, Stan Sclaroff, Trevor Darrell, and Kate Saenko. “SemiSupervised Domain Adaptation via Minimax Entropy”. In: IEEE International Conference on Computer Vision (2019), pp. 8049–8057. \n[47] Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. “Adversarial Dropout Regularization”. In: International Conference on Learning Representations. 2018. \n[48] Karen Simonyan and Andrew Zisserman. “Two-Stream Convolutional Networks for Action Recognition in Videos”. In: Neural Information Processing Systems. 2014. \n[49] Ankit Singh, Omprakash Chakraborty, Ashutosh Varshney, Rameswar panda, Rogerio Feris, Kate Saenko, and Abir Das. “Semi-Supervised Action Recognition With Temporal Contrastive Learning”. In: IEEE Conference on Computer Vision and Pattern Recognition. June 2021, pp. 10389–10399. \n[50] Kihyuk Sohn, David Berthelot, Chun-Liang Li, Zizhao Zhang, Nicholas Carlini, Ekin D Cubuk, Alex Kurakin, Han Zhang, and Colin Raffel. “FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence”. In: Neural Information Processing Systems (2020). \n[51] Baochen Sun and Kate Saenko. “Deep CORAL: Correlation Alignment for Deep Domain Adaptation”. In: European Conference on Computer Vision Workshops. 2016. \n[52] Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander Amir Alemi. “Inceptionv4, Inception-ResNet and the Impact of Residual Connections on Learning”. In: AAAI Conference on Artificial Intelligence. 2017. \n[53] Antti Tarvainen and Harri Valpola. “Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results”. In: Neural Information Processing Systems. 2017. \n[54] Yonglong Tian, Dilip Krishnan, and Phillip Isola. “Contrastive Multiview Coding”. In: European Conference on Computer Vision. 2020. \n[55] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. “Adversarial Discriminative Domain Adaptation”. In: IEEE Conference on Computer Vision and Pattern Recognition (2017), pp. 2962–2971. \n[56] Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. “Deep Hashing Network for Unsupervised Domain Adaptation”. In: IEEE Conference on Computer Vision and Pattern Recognition (2017), pp. 5385–5394. \n[57] Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaoou Tang, and Luc Van Gool. “Temporal Segment Networks for Action Recognition in Videos”. In: IEEE Transactions on Pattern Analysis and Machine Intelligence 41 (2019), pp. 2740–2755. \n[58] Luyu Yang, Yan Wang, Mingfei Gao, Abhinav Shrivastava, Kilian Q. Weinberger, Wei-Lun Chao, and Ser-Nam Lim. “Deep Co-Training with Task Decomposition for Semi-Supervised Domain Adaptation”. In: IEEE International Conference on Computer Vision. 2021. ",
|
| 1142 |
+
"bbox": [
|
| 1143 |
+
181,
|
| 1144 |
+
790,
|
| 1145 |
+
826,
|
| 1146 |
+
877
|
| 1147 |
+
],
|
| 1148 |
+
"page_idx": 9
|
| 1149 |
+
},
|
| 1150 |
+
{
|
| 1151 |
+
"type": "text",
|
| 1152 |
+
"text": "",
|
| 1153 |
+
"bbox": [
|
| 1154 |
+
171,
|
| 1155 |
+
94,
|
| 1156 |
+
828,
|
| 1157 |
+
878
|
| 1158 |
+
],
|
| 1159 |
+
"page_idx": 10
|
| 1160 |
+
},
|
| 1161 |
+
{
|
| 1162 |
+
"type": "text",
|
| 1163 |
+
"text": "",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
171,
|
| 1166 |
+
83,
|
| 1167 |
+
830,
|
| 1168 |
+
905
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 11
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
171,
|
| 1177 |
+
98,
|
| 1178 |
+
828,
|
| 1179 |
+
825
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 12
|
| 1182 |
+
}
|
| 1183 |
+
]
|
parse/train/1ODSsnoMBav/1ODSsnoMBav_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/1ODSsnoMBav/1ODSsnoMBav_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HXjt-kRBzvu/HXjt-kRBzvu_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HkmaTz-0W/HkmaTz-0W.md
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# VISUALIZING THE LOSS LANDSCAPE OF NEURAL NETS
|
| 2 |
+
|
| 3 |
+
# Anonymous authors
|
| 4 |
+
|
| 5 |
+
Paper under double-blind review
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Neural network training relies on our ability to find “good” minimizers of highly non-convex loss functions. It is well known that certain network architecture designs (e.g., skip connections) produce loss functions that train easier, and wellchosen training parameters (batch size, learning rate, optimizer) produce minimizers that generalize better. However, the reasons for these differences, and their effect on the underlying loss landscape, is not well understood.
|
| 10 |
+
|
| 11 |
+
In this paper, we explore the structure of neural loss functions, and the effect of loss landscapes on generalization, using a range of visualization methods. First, we introduce a simple “filter normalization” method that helps us visualize loss function curvature, and make meaningful side-by-side comparisons between loss functions. Then, using a variety of visualizations, we explore how network architecture effects the loss landscape, and how training parameters affect the shape of minimizers.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Training neural networks requires minimizing a high-dimensional non-convex loss function – a task that is hard in theory, but sometimes easy in practice. Despite the NP-hardness of training general neural loss functions (Blum & Rivest, 1989), simple gradient methods often find global minimizers (parameter configurations with zero or near-zero training loss), even when data and labels are randomized before training (Zhang et al., 2017). However, this good behavior is not universal; the trainability of neural nets is highly dependent on network architecture design choices, the choice of optimizer, variable initialization, and a variety of other considerations. Unfortunately, the effect of each of these choices on the structure of the underlying loss surface is unclear. Because of the prohibitive cost of loss function evaluations (which requires looping over all the data points in the training set), studies in this field have remained predominantly theoretical.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: The loss surfaces of ResNet-56 with/without skip connections. The vertical axis is logarithmic to show dynamic range. The proposed filter normalization scheme is used to enable comparisons of sharpness/flatness between the two figures.
|
| 19 |
+
|
| 20 |
+
Our goal is to use high-resolution visualizations to provide an empirical characterization of neural loss functions, and to explore how different network architecture choices affect the loss landscape. Furthermore, we explore how the non-convex structure of neural loss functions relates to their trainability, and how the geometry of neural minimizers (i.e., their sharpness/flatness, and their surrounding landscape), affects their generalization properties.
|
| 21 |
+
|
| 22 |
+
To do this in a meaningful way, we propose a simple “filter normalization” scheme that enables us to do side-by-side comparisons of different minima found by different methods. We then use visualizations to explore sharpness/flatness of minimizers found by different methods, as well as the effect of network architecture choices (use of skip connections, number of filters, network depth) on the loss landscape. Out goal is to understand how differences in loss function geometry effect the generalization of neural nets.
|
| 23 |
+
|
| 24 |
+
# 1.1 CONTRIBUTIONS
|
| 25 |
+
|
| 26 |
+
In this article, we study methods for producing meaningful loss function visualizations. Then, using these visualization methods, we explore how loss landscape geometry effects generalization error and trainability. More specifically, we address the following issues:
|
| 27 |
+
|
| 28 |
+
• We reveal faults in a number of visualization methods for loss functions, and show that simple visualization strategies fail to accurately capture the local geometry (sharpness or flatness) of loss function minimizers. We present a simple visualization method based on “filter normalization” that enables side-by-side comparisons of different minimizers. The sharpness of minimizers correlates well with generalization error when this visualization is used, even when making sharpness comparisons across disparate network architectures and training methods.
|
| 29 |
+
• We observe that, when networks become sufficiently deep, neural loss landscapes suddenly transition from being nearly convex to being highly chaotic. This transition from convex to chaotic behavior, which seem to have been previously unnoticed, coincides with a dramatic drop in generalization error, and ultimately to a lack of trainability. We show that skip connections promote flat minimizers and prevent the transition to chaotic behavior, which helps explain why skip connections are necessary for training extremely deep networks.
|
| 30 |
+
• We study the visualization of SGD optimization trajectories. We explain the difficulties that arise when visualizing these trajectories, and show that optimization trajectories lie in an extremely low dimensional space. This low dimensionality can be explained by the presence of large nearly convex regions in the loss landscape, such as those observed in our 2-dimensional visualizations.
|
| 31 |
+
|
| 32 |
+
# 2 THEORETICAL BACKGROUND & RELATED WORK
|
| 33 |
+
|
| 34 |
+
Visualizations have the potential to help us answer several important questions about why neural networks work. In particular, why are we able to minimize highly non-convex neural loss functions? And why do the resulting minima generalize?
|
| 35 |
+
|
| 36 |
+
Because of the difficultly of visualizing loss functions, most studies of loss landscapes are largely theoretical in nature. A number of authors have studied our ability to minimize neural loss functions. Using random matrix theory and spin glass theory, several authors have shown that local minima are of low objective value (Dauphin et al., 2014; Choromanska et al., 2015). It can also be shown that local minima are global minima, provided one assumes linear neurons (Hardt & Ma, 2017), very wide layers (Nguyen & Hein, 2017), or full rank weight matrices (Yun et al., 2017). These assumptions have been relaxed by Kawaguchi (2016) and Lu & Kawaguchi (2017), although some assumptions (e.g., of the loss functions) are still required. Soudry & Hoffer (2017); Freeman & Bruna (2017); Xie et al. (2017) also analyzed shallow networks with one or two hidden layers under mild conditions.
|
| 37 |
+
|
| 38 |
+
Another approach is to show that we can expect good minimizers, not simply because of the endogenous properties of neural networks, but because of the optimizers. For restricted network classes such as those with one hidden layer, with some extra assumptions on the sample distribution, globally optimal or near-optimal solutions can be found by common optimization methods (Soltanolkotabi et al., 2017; Li & Yuan, 2017; Tian, 2017). For networks with specific structures, Safran & Shamir (2016) and Haeffele & Vidal (2017) show there likely exists a monotonically decreasing path from an initialization to a global minimum. Swirszcz et al. (2017) show counterexamples that achieve “bad” local minima for toy problems.
|
| 39 |
+
|
| 40 |
+
Also of interest is work on assessing the sharpness/flatness of local minima. Hochreiter & Schmidhuber (1997) defined “flatness” as the size of the connected region around the minimum where the training loss remains low. Keskar et al. (2017) propose $\epsilon$ -sharpness, which looks at the maximum loss in a bounded neighborhood of a minimum. Flatness can also be defined using the local curvature of the loss function at a critical point. Keskar et al. (2017) suggests that this information is encoded in the eigenvalues of the Hessian. However, Dinh et al. (2017) show that these quantitative measure of sharpness are problematic because they are not invariant to symmetries in the network, and are thus not sufficient to determine its generalization ability. This issue was addressed in Chaudhari et al. (2017), who used local entropy as a measure of sharpness. This measure is invariant to the simple transformation used by Dinh et al. (2017), but difficult to quantify for large networks.
|
| 41 |
+
|
| 42 |
+
Theoretical results make some restrictive assumptions such as the independence of the input samples, or restrictions on non-linearities and loss functions. For this reason, visualizations play a key role in verifying the validity of theoretical assumptions, and understanding loss function behavior in real-world systems. In the next section, we briefly review methods that have been used for this purpose.
|
| 43 |
+
|
| 44 |
+
# 3 THE BASICS OF LOSS FUNCTION VISUALIZATION
|
| 45 |
+
|
| 46 |
+
Neural networks are trained on a corpus of feature vectors (e.g., images) $\{ x _ { i } \}$ and accompanying labels $\{ y _ { i } \}$ by minimizing a loss of the form
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
L ( \theta ) = \frac { 1 } { m } \sum _ { i = 1 } ^ { m } \ell ( x _ { i } , y _ { i } ; \theta )
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
where $\theta$ denotes the parameters (weights) of the neural network, the function $\ell ( x _ { i } , y _ { i } ; \theta )$ measures how well the neural network with parameters $\theta$ predicts the label of a data sample, and $m$ is the number of data samples.
|
| 53 |
+
|
| 54 |
+
Neural nets contain many parameters, and so their loss functions live in a very high-dimensional space. Unfortunately, visualizations are only possible using low-dimensional 1D (line) or 2D (surface) plots. Several methods exist for closing this dimensionality gap.
|
| 55 |
+
|
| 56 |
+
1-Dimensional Linear Interpolation One simple and lightweight way to plot loss functions is to choose two sets of parameters $\theta _ { 1 }$ and $\theta _ { 2 }$ , and plot the values of the loss function along the line connecting these two points. We can parameterize this line by choosing a scalar parameter $\alpha$ , and defining the weighted average
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\theta _ { \alpha } = ( 1 - \alpha ) \theta _ { 1 } + \alpha \theta _ { 2 } .
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
Finally, we plot the function $f ( \alpha ) = L ( \theta _ { \alpha } )$ . This strategy was taken by Goodfellow et al. (2015), who studied the loss surface along the line between a (random) initial guess, and a nearby minimizer obtained by stochastic gradient descent. This method has been widely used to study the “sharpness” and “flatness��� of different minima, and the dependence of sharpness on batch-size (Keskar et al., 2017; Dinh et al., 2017). Smith & Topin (2017) use the same 1D interpolation technique to show different minima and the “peaks” between them, while Im et al. (2016) plot the line between minima obtained via different optimizers.
|
| 63 |
+
|
| 64 |
+
The 1D linear interpolation method suffers from several weaknesses. First, it is difficult to visualize non-convexities using 1D plots. Indeed, the authors of (Goodfellow et al., 2015) found that loss functions appear to lack local minima along the minimization trajectory. We will see later, using 2D methods, that some loss functions have extreme non-convexities, and that these non-convexities correlate with the difference in generalization between different network architectures. Second, this method does not consider batch normalization or invariance symmetries in the network. For this reason, the visual sharpness comparisons produced by 1D interpolation plots may be misleading; this issue will be explored in depth in Section 5.
|
| 65 |
+
|
| 66 |
+
2D Contour Plots To use this approach, one chooses a center point $\theta ^ { * }$ in the graph, and chooses two direction vectors, $\delta$ and $\eta$ . One then plots a function of the form $f ( \alpha ) = L ( { \bar { \theta } } ^ { * } { \bar { + } } \alpha \delta )$ in the 1D (line) case, or
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
f ( \alpha , \beta ) = L ( \theta ^ { * } + \alpha \delta + \beta \eta )
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
in the 2D (surface) case. This approach was used in (Goodfellow et al., 2015) to explore the trajectories of different minimization methods. It was also used in (Im et al., 2016) to show that different optimization algorithms find different local minima within the 2D projected space.
|
| 73 |
+
|
| 74 |
+
Because of the computational burden of 2D plotting, these methods generally result in low-resolution plots of small regions that have not captured the complex non-convexity of loss surfaces. Below, we use high-resolution visualizations over large slices of weight space to visualize how network design affects non-convex structure.
|
| 75 |
+
|
| 76 |
+
# 4 PROPOSED VISUALIZATION: FILTER-WISE NORMALIZATION
|
| 77 |
+
|
| 78 |
+
This study relies heavily on plots of the form (1) produced using random direction vectors, $\delta$ and $\eta$ , each sampled from a random Gaussian distribution with appropriate scaling (described below).
|
| 79 |
+
|
| 80 |
+
While the “random directions” approach to plotting is simple, it cannot be used to compare the geometry of two different minimizers or two different networks. This is because of the scale invariance in network weights. When ReLU non-linearities are used, the network remains unchanged if we (for example) multiply the weights in one layer of a network by 10, and divide the next layer by 10. This invariance is even more prominent when batch normalization is used. In this case, the size (i.e., norm) of a filter is irrelevant because the output of each layer is re-scaled during batch normalization. For this reason, a network’s behavior remains unchanged if we re-scale the weights.
|
| 81 |
+
|
| 82 |
+
Scale invariance prevents us from making meaningful comparisons between plots, unless special precautions are taken. A neural network with large weights may appear to have a smooth and slowly varying loss function; perturbing the weights by one unit will have very little effect on network performance if the weights live on a scale much larger than one. However, if the weights are much smaller than one, then that same one unit perturbation may have a catastrophic effect, making the loss function appear quite sensitive to weight perturbations. Keep in mind that neural nets are scale invariant; if the small-parameter and large-parameter networks in this example are equivalent (because one is simply a re-scaling of the other), then any apparent differences in the loss function are merely an artifact of scale invariance. This scale invariance was exploited by Dinh et al. (2017) to build pairs of equivalent networks that have different apparent sharpness.
|
| 83 |
+
|
| 84 |
+
To remove this scaling effect, we plot loss functions using filter-wise normalized directions. To obtain such directions for a network with parameters $\theta$ , we begin by producing a random Gaussian direction vector $d$ with dimensions compatible with $\theta$ . Then we normalize each filter in $d$ to have the same norm of the corresponding filter in $\theta$ . In other words, we make the replacement
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
d _ { i } { \frac { d _ { i } } { \Vert d _ { i } \Vert } } \Vert \theta _ { i } \Vert ,
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
where $d _ { i }$ represents the ith filter of $d$ (not the ith weight), and $\lVert \boldsymbol { \theta } _ { i } \rVert$ denotes the Frobenius norm of the ith filter of $\theta$ . Note that the filter-wise normalization is different from that of (Im et al., 2016), which normalize the direction without considering the norm of individual filters.
|
| 91 |
+
|
| 92 |
+
The proposed scaling is an important factor when making meaningful plots of loss function geometry. We will explore the importance of proper scaling below as we explore the sharpness/flatness of different minimizers. In this context, we show that the sharpness of filter-normalized plots correlates with generalization error, while plots without filter normalization can be very misleading.
|
| 93 |
+
|
| 94 |
+
# 5 THE SHARP VS FLAT DILEMMA
|
| 95 |
+
|
| 96 |
+
Section 4 introduces the concept of filter normalization, and provides an intuitive justification for its use. In this section, we address the issue of whether sharp minimizers generalize better than flat minimizers. In doing so, we will see that the sharpness of minimizers correlates well with generalization error when filter normalization is used. This enables side-by-side comparisons between plots. In contrast, the sharpness of non-filter normalized plots may appear distorted and unpredictable.
|
| 97 |
+
|
| 98 |
+
It is widely thought that small-batch SGD produces “flat” minimizers that generalize better, while large batch sizes produce “sharp” minima with poor generalization (Chaudhari et al., 2017; Keskar et al., 2017; Hochreiter & Schmidhuber, 1997). This claim is disputed though, with Dinh et al. (2017); Kawaguchi et al. (2017) arguing that generalization is not directly related to the curvature of loss surfaces, and some authors proposing specialized training methods that achieve good performance with large batch sizes (Hoffer et al., 2017; Goyal et al., 2017; De et al., 2017).
|
| 99 |
+
|
| 100 |
+
Here, we explore the difference between sharp and flat minimizers. We begin by discussing difficulties that arise when performing such a visualization, and how proper normalization can prevent such plots from producing distorted results.
|
| 101 |
+
|
| 102 |
+
We train a CIFAR-10 classifier using a 9-layer VGG network (Simonyan & Zisserman, 2015) with Batch Normalization (Ioffe & Szegedy, 2015). We use two batch sizes: a large batch size of 8192 ( $1 6 . 4 \%$ of the training data of CIFAR-10), and a small batch size of 128. Let $\theta _ { s }$ and $\theta _ { l }$ indicate the solutions obtained by running SGD using small and large batch sizes, respectively1. Using the linear interpolation approach (Goodfellow et al., 2015), we plot the loss values on both training and testing data sets of CIFAR-10, along a direction containing the two solutions, i.e., $f ( \alpha ) = L ( \theta _ { s } + \alpha ( \theta _ { l } - \theta _ { s } ) )$ .
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
Figure 2: 1D linear interpolation of solutions obtained by small-batch and large-batch methods for VGG9. The blue lines are loss values and the red lines are accuracies. The solid lines are training curves and the dashed lines are for testing. Small batch is at abscissa 0, and large batch is at abscissa 1.
|
| 106 |
+
|
| 107 |
+
Table 1: Test errors of VGG-9 on CIFAR-10 with different optimization algorithms and hyperparameters.
|
| 108 |
+
|
| 109 |
+
<table><tr><td rowspan="3"></td><td rowspan="3"></td><td colspan="2">SGD</td><td colspan="2">Adam</td></tr><tr><td>bs=128</td><td>bs=8192</td><td>bs=128</td><td>bs=8192</td></tr><tr><td>VGG-9</td><td>WD= 0</td><td>7.37</td><td>11.07</td><td>7.44</td><td>10.91</td></tr><tr><td></td><td>WD = 5e-4</td><td>6.00</td><td>10.19</td><td>7.80</td><td>9.52</td></tr></table>
|
| 110 |
+
|
| 111 |
+
Similar to Keskar et al. (2017), we also superimpose the classification accuracy in red. This plot is shown in Figure 2.
|
| 112 |
+
|
| 113 |
+
Figures 2(a) and 2(b) show linear interpolation plots with $\theta _ { s }$ at $\mathbf { X }$ -axis location 0, and $\theta _ { l }$ at location $1 ^ { 2 }$ . As observed by Keskar et al. (2017), we can clearly see that the small-batch solution is quite wide, while the large-batch solution is sharp. However, this sharpness balance can be flipped simply by turning on weight decay (Krogh & Hertz, 1992). Figures 2(c) and 2(d) show results of the same experiment, except this time with a non-zero weight decay parameter. This time, the large batch minimizer is considerably flatter than the sharp small batch minimizer. However, we see from Table 1 that small batches generalize better in all 4 experiments; there is no apparent correlation between sharpness and generalization. We will see that these side-by-side sharpness comparisons are extremely misleading, and fail to capture the endogenous properties of the minima.
|
| 114 |
+
|
| 115 |
+
The apparent differences in sharpness in Figure 2 can be explained by examining the weights of each minimizer. Histograms of the networks weights are shown for each experiment in Figure 3. We see that, when a large batch is used with zero weight decay, the resulting weights tends to be smaller than in the small batch case. We reverse this effect by adding weight decay; in this case the large batch minimizer has much larger weights than the small batch minimizer. This difference in scale occurs for a simple reason: A smaller batch size results in more weight updates per epoch than a large batch size, and so the shrinking effect of weight decay (which imposes a penalty on the norm of the weights) is more pronounced.
|
| 116 |
+
|
| 117 |
+
Figure 2 in not visualizing the endogenous sharpness of minimizers, but rather just the (irrelevant) weight scaling. The scaling of weights in these networks is irrelevant because batch normalization re-scales the outputs to have unit variance. However, small weights still appear more sensitive to perturbations, and produce sharper looking minimizers.
|
| 118 |
+
|
| 119 |
+
Filter normalized plots We repeat the experiment in Figure 2, but this time we plot the loss function near each minimizer separately using random filter-normalized directions. This removes the apparent differences in geometry caused by the scaling depicted in Figure 3. The results, presented in Figure 4, still show differences in sharpness between small batch and large batch minima, however these differences are much more subtle than it would appear in the un-normalized plots.
|
| 120 |
+
|
| 121 |
+
We also visualize these results using two random directions and contour plots. As shown in Figure 5, the weights obtained with small batch size and non-zero weight decay have wider contours than the sharper large batch minimizers. Similar for Resnet-56 appear in Figure 12 of the Appendix.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 3: Histogram of weights. With zero weight decay, small-batch methods produce large weights. With non-zero weight decay, small-batch methods produce smaller weights.
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 4: The shape of minima obtained using different optimization algorithms, with varying batch size and weight decay. The title of each subfigure contains the optimizer, batch size, and test error. The first row has no weight decay and the second row uses weight decay 5e-4.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 5: 2D visualization of solutions obtained by SGD with small-batch and large-batch. Similar to Figure 4, the first row uses zero weight decay and the second row sets weight decay to 5e-4.
|
| 131 |
+
|
| 132 |
+
Generalization and Flatness Using the filter-normalized plots in Figures 4 and 5, we can make side-by-side comparisons between minimizers, and we see that now sharpness correlates well with generalization error. Large batches produced visually sharper minima (although not dramatically so) with higher test error. Interestingly, the Adam optimizer attained larger test error than SGD, and, as predicted, the corresponding minima are visually sharper. Results of a similar experiment using ResNet-56 are presented in the Appendix (Figure 12).
|
| 133 |
+
|
| 134 |
+
# 6 WHAT MAKES NEURAL NETWORKS TRAINABLE? INSIGHTS ON THE (NON) CONVEXITY STRUCTURE OF LOSS SURFACES
|
| 135 |
+
|
| 136 |
+
Our ability to find global minimizers to neural loss functions is not universal; it seems that some neural architectures are easier to minimize than others. For example, using skip connections, He et al. (2016) were able to train extremely deep architectures, while comparable architectures without skip connections are not trainable. Furthermore, our ability to train seems to depend strongly on the initial parameters from which training starts.
|
| 137 |
+
|
| 138 |
+
Using visualization methods, we do an empirical study of neural architectures to explore why the non-convexity of loss functions seems to be problematic in some situations, but not in others. We aim to provide insight into the following questions: Do loss functions have significant non-convexity at all? If prominent non-convexities exist, why are they not problematic in all situations? Why are some architectures easy to train, and why are results so sensitive to the initialization? We will see that different architectures have extreme differences in non-convexity structure that answer these questions, and that these differences correlate with generalization error.
|
| 139 |
+
|
| 140 |
+
# 6.1 EXPERIMENTAL SETUP
|
| 141 |
+
|
| 142 |
+
To understand the effects of network architecture on non-convexity, we trained a number of networks, and plotted the landscape around the obtained minimizers using the filter-normalized random direction method described in Section 4.
|
| 143 |
+
|
| 144 |
+
We consider three classes of neural networks:
|
| 145 |
+
|
| 146 |
+
• Residual networks that are optimized for performance on CIFAR (He et al., 2016). We consider ResNet-20, ResNet-56, and ResNet-110, where each name is labeled with the number of convolutional layers it has. “VGG-like” networks that do not contain shortcut/skip connections. We produced these networks simply by removing the skip connections from the CIFAR-optimized ResNets. We call these networks ResNet-20-noshort, ResNet-56-noshort, and ResNet-110-noshort. Note that these networks do not all perform well on the CIFAR-10 task. We use them purely for experimental purposes to explore the effect of shortcut connections. “Wide” ResNets that have been optimized for ImageNet rather than CIFAR. These networks have more filters per layer than the CIFAR optimized networks, and also have different numbers of layers. These models include ResNet-18, ResNet-34, and ResNet-50.
|
| 147 |
+
|
| 148 |
+
All models are trained on the CIFAR-10 dataset using SGD with Nesterov momentum, batch-size 128, and 0.0005 weight decay for 300 epochs. The learning rate was initialized at 0.1, and decreased by a factor of 10 at epochs 150, 225 and 275. Deeper experimental VGG-like networks (e.g., ResNet-56-noshort, as described below) required a smaller initial learning rate of 0.01.
|
| 149 |
+
|
| 150 |
+
High resolution 2D plots of the minimizers for different neural networks are shown in Figure 6. Results are shown as contour plots rather than surface plots because this makes it extremely easy to see non-convex structures and evaluate sharpness. For surface plots of ResNet-56, see Figure 1. Note that the center of each plot corresponds to the minimizer, and the two axes parameterize two random directions with filter-wise normalization as in (1). We make several observations below about how architecture effects the loss landscape. We also provide loss and error values for these networks in Table 2, and convergence curves in Figure 14 of the Appendix.
|
| 151 |
+
|
| 152 |
+
# 6.2 THE EFFECT OF NETWORK DEPTH
|
| 153 |
+
|
| 154 |
+
From Figure 6, we see that network depth has a dramatic effect on the loss surfaces of neural networks when skip connections are not used. The network ResNet-20-noshort has a fairly benign landscape dominated by a region with convex contours in the center, and no dramatic non-convexity. This isn’t too surprising: the original VGG networks for ImageNet had 19 layers and could be trained effectively (Simonyan & Zisserman, 2015).
|
| 155 |
+
|
| 156 |
+
However, as network depth increases, the loss surface of the VGG-like nets spontaneously transitions from (nearly) convex to chaotic. ResNet-56-noshort has dramatic non-convexities and large regions where the gradient directions (which are normal to the contours depicted in the plots) do not point towards the minimizer at the center. Also, the loss function becomes extremely large as we move in some directions. ResNet-110-noshort displays even more dramatic non-convexities, and becomes extremely steep as we move in all directions shown in the plot. Furthermore, note that the minimizers at the center of the deep VGG-like nets seem to be fairly sharp. In the case of ResNet-56-noshort, the minimizer is also fairly ill-conditioned, as the contours near the minimizer have significant eccentricity.
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Figure 6: 2D visualization of the solutions of different networks.
|
| 160 |
+
|
| 161 |
+
Table 2: Loss values and errors for different architectures.
|
| 162 |
+
|
| 163 |
+
<table><tr><td></td><td>Filters</td><td>Training Loss</td><td>Training Error</td><td>Test Error</td></tr><tr><td rowspan="2">ResNet-20 ResNet-20-noshort</td><td rowspan="2">16</td><td>0.017</td><td>0.286</td><td>7.37</td></tr><tr><td>0.025</td><td>0.560</td><td>8.18</td></tr><tr><td>ResNet-56</td><td rowspan="2">16</td><td>0.004</td><td>0.052</td><td>5.89</td></tr><tr><td>ResNet-56-noshort</td><td>0.024</td><td>0.704</td><td>10.83</td></tr><tr><td>ResNet-110</td><td rowspan="2">16</td><td>0.002</td><td>0.042</td><td>5.79</td></tr><tr><td>ResNet-110-noshort</td><td>0.258</td><td>8.732</td><td>16.44</td></tr><tr><td>ResNet-18</td><td rowspan="2">64 64</td><td>0.002</td><td>0.026</td><td>5.42</td></tr><tr><td>ResNet-34</td><td>0.001</td><td>0.014</td><td>4.73</td></tr><tr><td>ResNet-50</td><td>64</td><td>0.001</td><td>0.006</td><td>4.55</td></tr></table>
|
| 164 |
+
|
| 165 |
+
# 6.3 SHORTCUT CONNECTIONS TO THE RESCUE
|
| 166 |
+
|
| 167 |
+
Shortcut connections have a dramatic effect of the geometry of the loss functions. In Figure 6, we see that residual connections prevent the transition to chaotic behavior as depth increases. In fact, the width and shape of the 0.1-level contour is almost identical for the 20- and 110-layer networks.
|
| 168 |
+
|
| 169 |
+
Interestingly, the effect of skip connections seems to be most important for deep networks. For the more shallow networks (ResNet-20 and ResNet-20-noshort), the effect of skip connections is fairly unnoticeable. However residual connections prevent the explosion of non-convexity that occurs when networks get deep. This effect seems to apply to other kinds of skip connections as well; Figure 13 of the Appendix shows the loss landscape of DenseNet (Huang et al., 2017), which shows no noticeable non-convexity.
|
| 170 |
+
|
| 171 |
+
# 6.4 WIDE MODELS VS THIN MODELS
|
| 172 |
+
|
| 173 |
+
To see the effect of the number of convolutional filters per layer, we compare the narrow CIFARoptimized ResNets (ResNet-20/56/110) with wider ResNets (ResNet-18/34/50) that have more filters and were optimized for ImageNet. From Figure 6, we see that the wider models have loss landscapes with no noticeable chaotic behavior. Increased network width resulted in flat minima and wide regions of apparent convexity.
|
| 174 |
+
|
| 175 |
+
This effect is also validated by Figure 7, in which we plot the landscape of ResNet-56, but we multiple the number of filter per layer by $k = 2 , 4$ , and 8. We see that increased width prevents chaotic behavior, and skip connections dramatically widen minimizers. Finally, note that sharpness correlates extremely well with test error.
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
Figure 7: Wide-ResNet-56 (WRN-56) on CIFAR-10 both with shortcut connections (top) and without (bottom). The label $k = 2$ means twice as many filters per layer, $k = 4$ means 4 times, etc. Test error is reported below each figure.
|
| 179 |
+
|
| 180 |
+
# 6.5 IMPLICATIONS FOR NETWORK INITIALIZATION
|
| 181 |
+
|
| 182 |
+
One of the most interesting observations seen in Figure 6 is that loss landscapes for all the networks considered seem to be partitioned into a well-defined region of low loss value and convex contours, surrounded by a well-defined region of high loss value and non-convex contours.
|
| 183 |
+
|
| 184 |
+
This partitioning of chaotic and convex regions may explain the importance of good initialization strategies, and also the easy training behavior of “good” architectures. When using normalized random initialization strategies such as those proposed by Glorot & Bengio (2010), typical neural networks attain an initial loss value less than 2.5. The well behaved loss landscapes in Figure 6 (ResNets, and shallow VGG-like nets) are dominated by large, flat, nearly convex attractors that rise to a loss value of 4 or greater. For such landscapes, a random initialization will likely lie in the “well- behaved” loss region, and the optimization algorithm might never “see” the pathological non-convexities that occur on the high loss chaotic plateaus.
|
| 185 |
+
|
| 186 |
+
Chaotic loss landscapes (ResNet-56-noshort and ResNet-110-noshort) have shallower regions of convexity that rise to lower loss values. For sufficiently deep networks with shallow enough attractors, the initial iterate will likely lie in the chaotic region where the gradients are uninformative. In our experiments, SGD was unable to train a 156 layer network without skip connections (even with very low learning rates), which adds weight to this hypothesis.
|
| 187 |
+
|
| 188 |
+
# 6.6 LANDSCAPE GEOMETRY AFFECTS GENERALIZATION
|
| 189 |
+
|
| 190 |
+
Table 2 displays the training and test error for the networks depicted in Figure 6. Both Figures 6 and 7 show that landscape geometry has a dramatic effect on generalization. First, note that visually flatter minimizers consistently correspond to lower test error, which further strengthens our assertion that filter normalization is a natural way to visualize loss function geometry.
|
| 191 |
+
|
| 192 |
+
Second, we notice that chaotic landscapes (deep networks without skip connections) result in worse training and test error, while more convex landscapes have lower error values. In fact, the most convex landscapes (the wide ResNets in the bottom row of Figure 6) generalize the best of all the networks. This latter class of networks show no noticeable chaotic behavior at all.
|
| 193 |
+
|
| 194 |
+
# 7 VISUALIZING OPTIMIZATION PATHS
|
| 195 |
+
|
| 196 |
+
Finally, we explore methods for visualizing the trajectories of different optimizers. For this application, random directions are ineffective. We will provide a theoretical explanation for why random directions fail, and explore methods for effectively plotting trajectories on top of loss function contours.
|
| 197 |
+
|
| 198 |
+
Several authors have observed that random direction fail to capture the variation in optimization trajectories, including Gallagher & Downs (2003); Lorch (2016); Lipton (2016); Liao & Poggio (2017). Several failed visualizations are depicted in Figure 8. In Figure 8(a), we see the iterates of SGD projected onto the plane defined by two random directions. Almost none of the motion is captured (notice the super-zoomed-in axes and the seemingly random walk). This problem was noticed by Goodfellow et al. (2015), who then visualized trajectories using one direction that points from initialization to solution, and one random direction. This approach is shown in Figure 8(b). As seen in Figure 8(c), the random axis captures almost no variation, leading to the (misleading) appearance of a straight line path.
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
Figure 8: Ineffective visualizations of optimizer trajectories. These visualizations suffer from the orthogonality of random directions in high dimensions.
|
| 202 |
+
|
| 203 |
+
# 7.1 WHY RANDOM DIRECTIONS FAIL: LOW DIMENSIONAL OPTIMIZATION TRAJECTORIES
|
| 204 |
+
|
| 205 |
+
It is well known that two random vectors in a high dimensional space will be nearly orthogonal with high probability. In fact, the expected cosine similarity between Gaussian random vectors in $n$ dimensions is roughly $\sqrt { 2 / ( \pi n ) }$ (Goldstein & Studer (2016), Lemma 5).
|
| 206 |
+
|
| 207 |
+
This is problematic when optimization trajectories lie in extremely low dimensional spaces. In this case, a randomly chosen vector will lie orthogonal to the low-rank space containing the optimization path, and a projection onto a random direction will capture almost no variation. Figure 8(b) suggests that optimization trajectories are low dimensional because the random direction captures orders of magnitude less variation than the vector that points along the optimization path. Below, we use PCA directions to directly validate this low dimensionality, and also to produce effective visualizations.
|
| 208 |
+
|
| 209 |
+
# 7.2 EFFECTIVE TRAJECTORY PLOTTING USING PCA DIRECTIONS
|
| 210 |
+
|
| 211 |
+
To capture variation in trajectories, we need to use non-random (and carefully chosen) directions. Here, we suggest an approach based on PCA that allows us to measure how much variation we’ve captured; we also provide plots of these trajectories along the contours of the loss surface.
|
| 212 |
+
|
| 213 |
+
Let $\theta _ { i }$ denote model parameters at epoch $i$ and the final solution as $\theta _ { n }$ . Given $m$ training epochs, we can apply PCA to the matrix $M = [ \theta _ { 0 } - \theta _ { n } ; \cdot \cdot \cdot ; \theta _ { n - 1 } - \theta _ { n } ]$ , and then select the two most explanatory directions. Optimizer trajectories (blue dots) and loss surfaces along PCA directions are shown in Figure 9. Epochs where the learning rate was decreased are shown as red dots. On each axis, we measure the amount of variation in the descent path captured by that PCA direction.
|
| 214 |
+
|
| 215 |
+
We see some interesting behavior in these plots. At early stages of training, the paths tend to move perpendicular to the contours of the loss surface, i.e., along the gradient directions as one would expect from non-stochastic gradient descent. The stochasticity becomes fairly pronounced in several plots during the later stages of training. This is particularly true of the plots that use weight decay and small batches (which leads to more gradient noise, and a more radical departure from deterministic gradient directions). When weight decay and small batches are used, we see the path turn nearly parallel to the contours and “orbit” the solution when the stepsize is large. When the stepsize is dropped (at the red dot), the effective noise in the system decreases, and we see a kink in the path as the trajectory falls into the nearest local minimizer.
|
| 216 |
+
|
| 217 |
+
Finally, we can directly observe that the descent path is very low dimensional: between $40 \%$ and $90 \%$ of the variation in the descent paths lies in a space of only 2 dimensions. The optimization trajectories in Figure 9 appear to be dominated by movement in the direction of a nearby attractor. This low dimensionality is compatible with the observations in Section 6.5, where we observed that non-chaotic landscapes are dominated by wide, flat minimizers.
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 9: Projected learning trajectories use normalized PCA directions for VGG-9. The left plot in each subfigure uses batch size 128, and the right one uses batch size 8192.
|
| 221 |
+
|
| 222 |
+
# 8 CONCLUSION
|
| 223 |
+
|
| 224 |
+
In this paper, we presented a new, more accurate visualization technique that provided insights into the consequences of a variety of choices facing the neural network practitioner, including network architecture, optimizer selection, and batch size.
|
| 225 |
+
|
| 226 |
+
Neural networks have advanced dramatically in recent years, largely on the back of anecdotal knowledge and theoretical results with complex assumptions. For progress to continue to be made, a more general understanding of the structure of neural networks is needed. Our hope is that effective visualization, when coupled with continued advances in theory, can result in faster training, simpler models, and better generalization.
|
| 227 |
+
|
| 228 |
+
# REFERENCES
|
| 229 |
+
|
| 230 |
+
Avrim Blum and Ronald L Rivest. Training a 3-node neural network is np-complete. In Advances in neural information processing systems, pp. 494–501, 1989.
|
| 231 |
+
|
| 232 |
+
Pratik Chaudhari, Anna Choromanska, Stefano Soatto, and Yann LeCun. Entropy-sgd: Biasing gradient descent into wide valleys. ICLR, 2017.
|
| 233 |
+
|
| 234 |
+
Anna Choromanska, Mikael Henaff, Michael Mathieu, Gerard Ben Arous, and Yann LeCun. The ´ loss surfaces of multilayer networks. In AISTATS, 2015.
|
| 235 |
+
|
| 236 |
+
Yann N Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in neural information processing systems, pp. 2933–2941, 2014.
|
| 237 |
+
|
| 238 |
+
Soham De, Abhay Yadav, David Jacobs, and Tom Goldstein. Automated inference with adaptive batches. In Artificial Intelligence and Statistics, pp. 1504–1513, 2017.
|
| 239 |
+
|
| 240 |
+
Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. ICLR, 2017.
|
| 241 |
+
|
| 242 |
+
C Daniel Freeman and Joan Bruna. Topology and geometry of half-rectified network optimization. ICLR, 2017.
|
| 243 |
+
|
| 244 |
+
Marcus Gallagher and Tom Downs. Visualization of learning in multilayer perceptron networks using principal component analysis. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 33(1):28–34, 2003.
|
| 245 |
+
|
| 246 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 249–256, 2010.
|
| 247 |
+
|
| 248 |
+
Tom Goldstein and Christoph Studer. Phasemax: Convex phase retrieval via basis pursuit. arXiv preprint arXiv:1610.07531, 2016.
|
| 249 |
+
|
| 250 |
+
Ian J Goodfellow, Oriol Vinyals, and Andrew M Saxe. Qualitatively characterizing neural network optimization problems. ICLR, 2015.
|
| 251 |
+
|
| 252 |
+
Priya Goyal, Piotr Dollar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, ´ Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017.
|
| 253 |
+
|
| 254 |
+
Benjamin D Haeffele and Rene Vidal. Global optimality in neural network training. In ´ Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7331–7339, 2017.
|
| 255 |
+
|
| 256 |
+
Moritz Hardt and Tengyu Ma. Identity matters in deep learning. ICLR, 2017.
|
| 257 |
+
|
| 258 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In CVPR, 2016.
|
| 259 |
+
|
| 260 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Flat minima. ¨ Neural Computation, 9(1):1–42, 1997.
|
| 261 |
+
|
| 262 |
+
Elad Hoffer, Itay Hubara, and Daniel Soudry. Train longer, generalize better: closing the generaliza tion gap in large batch training of neural networks. NIPS, 2017.
|
| 263 |
+
|
| 264 |
+
Gao Huang, Zhuang Liu, Kilian Q Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. CVPR, 2017.
|
| 265 |
+
|
| 266 |
+
Daniel Jiwoong Im, Michael Tao, and Kristin Branson. An empirical analysis of deep network loss surfaces. arXiv preprint arXiv:1612.04010, 2016.
|
| 267 |
+
|
| 268 |
+
Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. 2015.
|
| 269 |
+
|
| 270 |
+
Kenji Kawaguchi. Deep learning without poor local minima. NIPS, 2016.
|
| 271 |
+
|
| 272 |
+
Kenji Kawaguchi, Leslie Pack Kaelbling, and Yoshua Bengio. Generalization in deep learning. arXiv preprint arXiv:1710.05468, 2017.
|
| 273 |
+
|
| 274 |
+
Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. ICLR, 2017.
|
| 275 |
+
|
| 276 |
+
Anders Krogh and John A Hertz. A simple weight decay can improve generalization. In NIPS, 1992.
|
| 277 |
+
|
| 278 |
+
Yuanzhi Li and Yang Yuan. Convergence analysis of two-layer neural networks with relu activation. arXiv preprint arXiv:1705.09886, 2017.
|
| 279 |
+
|
| 280 |
+
Qianli Liao and Tomaso Poggio. Theory of deep learning ii: Landscape of the empirical risk in deep learning. arXiv preprint arXiv:1703.09833, 2017.
|
| 281 |
+
|
| 282 |
+
Zachary C Lipton. Stuck in a what? adventures in weight space. ICLR Workshop, 2016.
|
| 283 |
+
|
| 284 |
+
Eliana Lorch. Visualizing deep network training trajectories with pca. ICML WorkshopWorkshop on Visualization for Deep Learning, 2016.
|
| 285 |
+
|
| 286 |
+
Haihao Lu and Kenji Kawaguchi. Depth creates no bad local minima. arXiv preprint arXiv:1702.08580, 2017.
|
| 287 |
+
|
| 288 |
+
Quynh Nguyen and Matthias Hein. The loss surface of deep and wide neural networks. International Conference on Machine Learning, 2017.
|
| 289 |
+
|
| 290 |
+
Itay Safran and Ohad Shamir. On the quality of the initial basin in overspecified neural networks. In International Conference on Machine Learning, pp. 774–782, 2016.
|
| 291 |
+
|
| 292 |
+
Karen Simonyan and Andrew Zisserman. Very Deep Convolutional Networks for Large-Scale Image Recognition. In ICLR, 2015.
|
| 293 |
+
|
| 294 |
+
Leslie N Smith and Nicholay Topin. Exploring loss function topology with cyclical learning rates. arXiv preprint arXiv:1702.04283, 2017.
|
| 295 |
+
|
| 296 |
+
Mahdi Soltanolkotabi, Adel Javanmard, and Jason D Lee. Theoretical insights into the optimization landscape of over-parameterized shallow neural networks. arXiv preprint arXiv:1707.04926, 2017.
|
| 297 |
+
|
| 298 |
+
Daniel Soudry and Elad Hoffer. Exponentially vanishing sub-optimal local minima in multilayer neural networks. arXiv preprint arXiv:1702.05777, 2017.
|
| 299 |
+
|
| 300 |
+
Grzegorz Swirszcz, Wojciech Marian Czarnecki, and Razvan Pascanu. Local minima in training of neural networks. stat, 1050:17, 2017.
|
| 301 |
+
|
| 302 |
+
Yuandong Tian. An analytical formula of population gradient for two-layered relu network and its applications in convergence and critical point analysis. ICML, 2017.
|
| 303 |
+
|
| 304 |
+
Bo Xie, Yingyu Liang, and Le Song. Diverse neural network learns true target functions. In Artificial Intelligence and Statistics, pp. 1216–1224, 2017.
|
| 305 |
+
|
| 306 |
+
Chulhee Yun, Suvrit Sra, and Ali Jadbabaie. Global optimality conditions for deep neural networks. arXiv preprint arXiv:1707.02444, 2017.
|
| 307 |
+
|
| 308 |
+
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. ICLR, 2017.
|
| 309 |
+
|
| 310 |
+
# 9 APPENDIX
|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
Figure 10: 1D linear interpolation of solutions obtained by small-batch and large-batch methods for ResNet56. The blue lines are loss values and the red lines are error. The solid lines are training curves and the dashed lines are for testing.
|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
Figure 11: The shape of minima obtained via different optimization algorithms for ResNet-56, with varying batch size and weight decay. Similar to Figure 4, the first row uses zero weight decay and the second row uses 5e-4 weight decay.
|
| 317 |
+
|
| 318 |
+
Generalization error for each plot is shown in Table 3.
|
| 319 |
+
|
| 320 |
+

|
| 321 |
+
Figure 12: 2D visualization of solutions of ResNet-56 obtained by SGD/Adam with small-batch and large-batch. Similar to Figure 11, the first row uses zero weight decay and the second row sets weight decay to 5e-4.
|
| 322 |
+
|
| 323 |
+
Table 3: Test error for ResNet-56 with different optimization algorithms and batch-size/weight-decay parameters.
|
| 324 |
+
|
| 325 |
+
<table><tr><td rowspan="3"></td><td colspan="2">SGD</td><td colspan="2">Adam</td></tr><tr><td>bs=128</td><td>bs=4096</td><td>bs=128</td><td>bs=4096</td></tr><tr><td>WD= 0</td><td>8.26</td><td>13.93</td><td>9.55</td><td>14.30</td></tr><tr><td>WD = 5e-4</td><td>5.89</td><td>10.59</td><td>7.67</td><td>12.36</td></tr></table>
|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
Figure 13: The loss landscape for DenseNet-121 trained on CIFAR-10. The final training error is 0.002 and the testing error is 4.37
|
| 329 |
+
|
| 330 |
+

|
| 331 |
+
Figure 14: Convergence curves for different architectures. The first row is for training loss and the second row are training and testing error curves.
|
| 332 |
+
|
| 333 |
+

|
| 334 |
+
Figure 15: Training and testing loss curves for VGG-9. Dashed lines are for testing, solid for training.
|
parse/train/HkmaTz-0W/HkmaTz-0W_content_list.json
ADDED
|
@@ -0,0 +1,1823 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "VISUALIZING THE LOSS LANDSCAPE OF NEURAL NETS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
101,
|
| 9 |
+
821,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors ",
|
| 17 |
+
"text_level": 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
184,
|
| 20 |
+
170,
|
| 21 |
+
326,
|
| 22 |
+
184
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "Paper under double-blind review ",
|
| 29 |
+
"bbox": [
|
| 30 |
+
184,
|
| 31 |
+
184,
|
| 32 |
+
398,
|
| 33 |
+
198
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "ABSTRACT ",
|
| 40 |
+
"text_level": 1,
|
| 41 |
+
"bbox": [
|
| 42 |
+
454,
|
| 43 |
+
234,
|
| 44 |
+
544,
|
| 45 |
+
250
|
| 46 |
+
],
|
| 47 |
+
"page_idx": 0
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"type": "text",
|
| 51 |
+
"text": "Neural network training relies on our ability to find “good” minimizers of highly non-convex loss functions. It is well known that certain network architecture designs (e.g., skip connections) produce loss functions that train easier, and wellchosen training parameters (batch size, learning rate, optimizer) produce minimizers that generalize better. However, the reasons for these differences, and their effect on the underlying loss landscape, is not well understood. ",
|
| 52 |
+
"bbox": [
|
| 53 |
+
233,
|
| 54 |
+
266,
|
| 55 |
+
766,
|
| 56 |
+
351
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "In this paper, we explore the structure of neural loss functions, and the effect of loss landscapes on generalization, using a range of visualization methods. First, we introduce a simple “filter normalization” method that helps us visualize loss function curvature, and make meaningful side-by-side comparisons between loss functions. Then, using a variety of visualizations, we explore how network architecture effects the loss landscape, and how training parameters affect the shape of minimizers. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
232,
|
| 65 |
+
353,
|
| 66 |
+
766,
|
| 67 |
+
450
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "1 INTRODUCTION ",
|
| 74 |
+
"text_level": 1,
|
| 75 |
+
"bbox": [
|
| 76 |
+
176,
|
| 77 |
+
479,
|
| 78 |
+
336,
|
| 79 |
+
496
|
| 80 |
+
],
|
| 81 |
+
"page_idx": 0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"type": "text",
|
| 85 |
+
"text": "Training neural networks requires minimizing a high-dimensional non-convex loss function – a task that is hard in theory, but sometimes easy in practice. Despite the NP-hardness of training general neural loss functions (Blum & Rivest, 1989), simple gradient methods often find global minimizers (parameter configurations with zero or near-zero training loss), even when data and labels are randomized before training (Zhang et al., 2017). However, this good behavior is not universal; the trainability of neural nets is highly dependent on network architecture design choices, the choice of optimizer, variable initialization, and a variety of other considerations. Unfortunately, the effect of each of these choices on the structure of the underlying loss surface is unclear. Because of the prohibitive cost of loss function evaluations (which requires looping over all the data points in the training set), studies in this field have remained predominantly theoretical. ",
|
| 86 |
+
"bbox": [
|
| 87 |
+
173,
|
| 88 |
+
511,
|
| 89 |
+
825,
|
| 90 |
+
623
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "image",
|
| 96 |
+
"img_path": "images/a14706c29d892ca8c4fe95f8306eb80e5ef1b4694e7c755e61d5a5f55c9ef4dd.jpg",
|
| 97 |
+
"image_caption": [
|
| 98 |
+
"Figure 1: The loss surfaces of ResNet-56 with/without skip connections. The vertical axis is logarithmic to show dynamic range. The proposed filter normalization scheme is used to enable comparisons of sharpness/flatness between the two figures. "
|
| 99 |
+
],
|
| 100 |
+
"image_footnote": [],
|
| 101 |
+
"bbox": [
|
| 102 |
+
186,
|
| 103 |
+
647,
|
| 104 |
+
812,
|
| 105 |
+
863
|
| 106 |
+
],
|
| 107 |
+
"page_idx": 0
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"type": "text",
|
| 111 |
+
"text": "",
|
| 112 |
+
"bbox": [
|
| 113 |
+
173,
|
| 114 |
+
103,
|
| 115 |
+
823,
|
| 116 |
+
132
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "Our goal is to use high-resolution visualizations to provide an empirical characterization of neural loss functions, and to explore how different network architecture choices affect the loss landscape. Furthermore, we explore how the non-convex structure of neural loss functions relates to their trainability, and how the geometry of neural minimizers (i.e., their sharpness/flatness, and their surrounding landscape), affects their generalization properties. ",
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
138,
|
| 126 |
+
825,
|
| 127 |
+
208
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "To do this in a meaningful way, we propose a simple “filter normalization” scheme that enables us to do side-by-side comparisons of different minima found by different methods. We then use visualizations to explore sharpness/flatness of minimizers found by different methods, as well as the effect of network architecture choices (use of skip connections, number of filters, network depth) on the loss landscape. Out goal is to understand how differences in loss function geometry effect the generalization of neural nets. ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
215,
|
| 137 |
+
825,
|
| 138 |
+
299
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "1.1 CONTRIBUTIONS ",
|
| 145 |
+
"text_level": 1,
|
| 146 |
+
"bbox": [
|
| 147 |
+
176,
|
| 148 |
+
319,
|
| 149 |
+
331,
|
| 150 |
+
333
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "In this article, we study methods for producing meaningful loss function visualizations. Then, using these visualization methods, we explore how loss landscape geometry effects generalization error and trainability. More specifically, we address the following issues: ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
176,
|
| 159 |
+
345,
|
| 160 |
+
825,
|
| 161 |
+
387
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "• We reveal faults in a number of visualization methods for loss functions, and show that simple visualization strategies fail to accurately capture the local geometry (sharpness or flatness) of loss function minimizers. We present a simple visualization method based on “filter normalization” that enables side-by-side comparisons of different minimizers. The sharpness of minimizers correlates well with generalization error when this visualization is used, even when making sharpness comparisons across disparate network architectures and training methods. \n• We observe that, when networks become sufficiently deep, neural loss landscapes suddenly transition from being nearly convex to being highly chaotic. This transition from convex to chaotic behavior, which seem to have been previously unnoticed, coincides with a dramatic drop in generalization error, and ultimately to a lack of trainability. We show that skip connections promote flat minimizers and prevent the transition to chaotic behavior, which helps explain why skip connections are necessary for training extremely deep networks. \n• We study the visualization of SGD optimization trajectories. We explain the difficulties that arise when visualizing these trajectories, and show that optimization trajectories lie in an extremely low dimensional space. This low dimensionality can be explained by the presence of large nearly convex regions in the loss landscape, such as those observed in our 2-dimensional visualizations. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
215,
|
| 170 |
+
400,
|
| 171 |
+
825,
|
| 172 |
+
694
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "2 THEORETICAL BACKGROUND & RELATED WORK ",
|
| 179 |
+
"text_level": 1,
|
| 180 |
+
"bbox": [
|
| 181 |
+
174,
|
| 182 |
+
717,
|
| 183 |
+
616,
|
| 184 |
+
733
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "Visualizations have the potential to help us answer several important questions about why neural networks work. In particular, why are we able to minimize highly non-convex neural loss functions? And why do the resulting minima generalize? ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
176,
|
| 193 |
+
750,
|
| 194 |
+
826,
|
| 195 |
+
791
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "Because of the difficultly of visualizing loss functions, most studies of loss landscapes are largely theoretical in nature. A number of authors have studied our ability to minimize neural loss functions. Using random matrix theory and spin glass theory, several authors have shown that local minima are of low objective value (Dauphin et al., 2014; Choromanska et al., 2015). It can also be shown that local minima are global minima, provided one assumes linear neurons (Hardt & Ma, 2017), very wide layers (Nguyen & Hein, 2017), or full rank weight matrices (Yun et al., 2017). These assumptions have been relaxed by Kawaguchi (2016) and Lu & Kawaguchi (2017), although some assumptions (e.g., of the loss functions) are still required. Soudry & Hoffer (2017); Freeman & Bruna (2017); Xie et al. (2017) also analyzed shallow networks with one or two hidden layers under mild conditions. ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
173,
|
| 204 |
+
797,
|
| 205 |
+
825,
|
| 206 |
+
924
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "Another approach is to show that we can expect good minimizers, not simply because of the endogenous properties of neural networks, but because of the optimizers. For restricted network classes such as those with one hidden layer, with some extra assumptions on the sample distribution, globally optimal or near-optimal solutions can be found by common optimization methods (Soltanolkotabi et al., 2017; Li & Yuan, 2017; Tian, 2017). For networks with specific structures, Safran & Shamir (2016) and Haeffele & Vidal (2017) show there likely exists a monotonically decreasing path from an initialization to a global minimum. Swirszcz et al. (2017) show counterexamples that achieve “bad” local minima for toy problems. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
173,
|
| 215 |
+
103,
|
| 216 |
+
825,
|
| 217 |
+
215
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "Also of interest is work on assessing the sharpness/flatness of local minima. Hochreiter & Schmidhuber (1997) defined “flatness” as the size of the connected region around the minimum where the training loss remains low. Keskar et al. (2017) propose $\\epsilon$ -sharpness, which looks at the maximum loss in a bounded neighborhood of a minimum. Flatness can also be defined using the local curvature of the loss function at a critical point. Keskar et al. (2017) suggests that this information is encoded in the eigenvalues of the Hessian. However, Dinh et al. (2017) show that these quantitative measure of sharpness are problematic because they are not invariant to symmetries in the network, and are thus not sufficient to determine its generalization ability. This issue was addressed in Chaudhari et al. (2017), who used local entropy as a measure of sharpness. This measure is invariant to the simple transformation used by Dinh et al. (2017), but difficult to quantify for large networks. ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
222,
|
| 227 |
+
825,
|
| 228 |
+
361
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Theoretical results make some restrictive assumptions such as the independence of the input samples, or restrictions on non-linearities and loss functions. For this reason, visualizations play a key role in verifying the validity of theoretical assumptions, and understanding loss function behavior in real-world systems. In the next section, we briefly review methods that have been used for this purpose. ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
174,
|
| 237 |
+
367,
|
| 238 |
+
825,
|
| 239 |
+
438
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "3 THE BASICS OF LOSS FUNCTION VISUALIZATION ",
|
| 246 |
+
"text_level": 1,
|
| 247 |
+
"bbox": [
|
| 248 |
+
174,
|
| 249 |
+
457,
|
| 250 |
+
619,
|
| 251 |
+
474
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "Neural networks are trained on a corpus of feature vectors (e.g., images) $\\{ x _ { i } \\}$ and accompanying labels $\\{ y _ { i } \\}$ by minimizing a loss of the form ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
174,
|
| 260 |
+
488,
|
| 261 |
+
825,
|
| 262 |
+
517
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "equation",
|
| 268 |
+
"img_path": "images/9c7d8143ead33d52d704a82f72fb5b5a162ece24fd132eee72414648a71300ec.jpg",
|
| 269 |
+
"text": "$$\nL ( \\theta ) = \\frac { 1 } { m } \\sum _ { i = 1 } ^ { m } \\ell ( x _ { i } , y _ { i } ; \\theta )\n$$",
|
| 270 |
+
"text_format": "latex",
|
| 271 |
+
"bbox": [
|
| 272 |
+
411,
|
| 273 |
+
523,
|
| 274 |
+
586,
|
| 275 |
+
564
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "text",
|
| 281 |
+
"text": "where $\\theta$ denotes the parameters (weights) of the neural network, the function $\\ell ( x _ { i } , y _ { i } ; \\theta )$ measures how well the neural network with parameters $\\theta$ predicts the label of a data sample, and $m$ is the number of data samples. ",
|
| 282 |
+
"bbox": [
|
| 283 |
+
174,
|
| 284 |
+
569,
|
| 285 |
+
825,
|
| 286 |
+
612
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "Neural nets contain many parameters, and so their loss functions live in a very high-dimensional space. Unfortunately, visualizations are only possible using low-dimensional 1D (line) or 2D (surface) plots. Several methods exist for closing this dimensionality gap. ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
618,
|
| 296 |
+
825,
|
| 297 |
+
661
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "1-Dimensional Linear Interpolation One simple and lightweight way to plot loss functions is to choose two sets of parameters $\\theta _ { 1 }$ and $\\theta _ { 2 }$ , and plot the values of the loss function along the line connecting these two points. We can parameterize this line by choosing a scalar parameter $\\alpha$ , and defining the weighted average ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
675,
|
| 307 |
+
825,
|
| 308 |
+
732
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "equation",
|
| 314 |
+
"img_path": "images/eeb817ecfe5ec80266ec0e8e367d173ddcf9fc7b429cc82cdf7c300e37418cf2.jpg",
|
| 315 |
+
"text": "$$\n\\theta _ { \\alpha } = ( 1 - \\alpha ) \\theta _ { 1 } + \\alpha \\theta _ { 2 } .\n$$",
|
| 316 |
+
"text_format": "latex",
|
| 317 |
+
"bbox": [
|
| 318 |
+
419,
|
| 319 |
+
731,
|
| 320 |
+
576,
|
| 321 |
+
747
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "Finally, we plot the function $f ( \\alpha ) = L ( \\theta _ { \\alpha } )$ . This strategy was taken by Goodfellow et al. (2015), who studied the loss surface along the line between a (random) initial guess, and a nearby minimizer obtained by stochastic gradient descent. This method has been widely used to study the “sharpness” and “flatness” of different minima, and the dependence of sharpness on batch-size (Keskar et al., 2017; Dinh et al., 2017). Smith & Topin (2017) use the same 1D interpolation technique to show different minima and the “peaks” between them, while Im et al. (2016) plot the line between minima obtained via different optimizers. ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
173,
|
| 330 |
+
748,
|
| 331 |
+
826,
|
| 332 |
+
848
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "The 1D linear interpolation method suffers from several weaknesses. First, it is difficult to visualize non-convexities using 1D plots. Indeed, the authors of (Goodfellow et al., 2015) found that loss functions appear to lack local minima along the minimization trajectory. We will see later, using 2D methods, that some loss functions have extreme non-convexities, and that these non-convexities correlate with the difference in generalization between different network architectures. Second, this method does not consider batch normalization or invariance symmetries in the network. For this reason, the visual sharpness comparisons produced by 1D interpolation plots may be misleading; this issue will be explored in depth in Section 5. ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
174,
|
| 341 |
+
853,
|
| 342 |
+
823,
|
| 343 |
+
924
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 2
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "text",
|
| 349 |
+
"text": "",
|
| 350 |
+
"bbox": [
|
| 351 |
+
174,
|
| 352 |
+
103,
|
| 353 |
+
823,
|
| 354 |
+
146
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "2D Contour Plots To use this approach, one chooses a center point $\\theta ^ { * }$ in the graph, and chooses two direction vectors, $\\delta$ and $\\eta$ . One then plots a function of the form $f ( \\alpha ) = L ( { \\bar { \\theta } } ^ { * } { \\bar { + } } \\alpha \\delta )$ in the 1D (line) case, or ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
173,
|
| 363 |
+
167,
|
| 364 |
+
825,
|
| 365 |
+
210
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "equation",
|
| 371 |
+
"img_path": "images/20bc9ed5441644e55fb317349eb32512411915f9154c7aa2145b501d1bc6b60a.jpg",
|
| 372 |
+
"text": "$$\nf ( \\alpha , \\beta ) = L ( \\theta ^ { * } + \\alpha \\delta + \\beta \\eta )\n$$",
|
| 373 |
+
"text_format": "latex",
|
| 374 |
+
"bbox": [
|
| 375 |
+
401,
|
| 376 |
+
222,
|
| 377 |
+
596,
|
| 378 |
+
239
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "in the 2D (surface) case. This approach was used in (Goodfellow et al., 2015) to explore the trajectories of different minimization methods. It was also used in (Im et al., 2016) to show that different optimization algorithms find different local minima within the 2D projected space. ",
|
| 385 |
+
"bbox": [
|
| 386 |
+
173,
|
| 387 |
+
251,
|
| 388 |
+
825,
|
| 389 |
+
294
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 3
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "Because of the computational burden of 2D plotting, these methods generally result in low-resolution plots of small regions that have not captured the complex non-convexity of loss surfaces. Below, we use high-resolution visualizations over large slices of weight space to visualize how network design affects non-convex structure. ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
174,
|
| 398 |
+
300,
|
| 399 |
+
825,
|
| 400 |
+
357
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "4 PROPOSED VISUALIZATION: FILTER-WISE NORMALIZATION ",
|
| 407 |
+
"text_level": 1,
|
| 408 |
+
"bbox": [
|
| 409 |
+
174,
|
| 410 |
+
383,
|
| 411 |
+
707,
|
| 412 |
+
400
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "This study relies heavily on plots of the form (1) produced using random direction vectors, $\\delta$ and $\\eta$ , each sampled from a random Gaussian distribution with appropriate scaling (described below). ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
174,
|
| 421 |
+
419,
|
| 422 |
+
823,
|
| 423 |
+
446
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "While the “random directions” approach to plotting is simple, it cannot be used to compare the geometry of two different minimizers or two different networks. This is because of the scale invariance in network weights. When ReLU non-linearities are used, the network remains unchanged if we (for example) multiply the weights in one layer of a network by 10, and divide the next layer by 10. This invariance is even more prominent when batch normalization is used. In this case, the size (i.e., norm) of a filter is irrelevant because the output of each layer is re-scaled during batch normalization. For this reason, a network’s behavior remains unchanged if we re-scale the weights. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
174,
|
| 432 |
+
454,
|
| 433 |
+
825,
|
| 434 |
+
551
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "Scale invariance prevents us from making meaningful comparisons between plots, unless special precautions are taken. A neural network with large weights may appear to have a smooth and slowly varying loss function; perturbing the weights by one unit will have very little effect on network performance if the weights live on a scale much larger than one. However, if the weights are much smaller than one, then that same one unit perturbation may have a catastrophic effect, making the loss function appear quite sensitive to weight perturbations. Keep in mind that neural nets are scale invariant; if the small-parameter and large-parameter networks in this example are equivalent (because one is simply a re-scaling of the other), then any apparent differences in the loss function are merely an artifact of scale invariance. This scale invariance was exploited by Dinh et al. (2017) to build pairs of equivalent networks that have different apparent sharpness. ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
174,
|
| 443 |
+
558,
|
| 444 |
+
825,
|
| 445 |
+
698
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "To remove this scaling effect, we plot loss functions using filter-wise normalized directions. To obtain such directions for a network with parameters $\\theta$ , we begin by producing a random Gaussian direction vector $d$ with dimensions compatible with $\\theta$ . Then we normalize each filter in $d$ to have the same norm of the corresponding filter in $\\theta$ . In other words, we make the replacement ",
|
| 452 |
+
"bbox": [
|
| 453 |
+
174,
|
| 454 |
+
704,
|
| 455 |
+
825,
|
| 456 |
+
761
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 3
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "equation",
|
| 462 |
+
"img_path": "images/bc1721a5ea12224aa682ec7f2836c96faf11a61f21a111ed34be92a392c889b6.jpg",
|
| 463 |
+
"text": "$$\nd _ { i } { \\frac { d _ { i } } { \\Vert d _ { i } \\Vert } } \\Vert \\theta _ { i } \\Vert ,\n$$",
|
| 464 |
+
"text_format": "latex",
|
| 465 |
+
"bbox": [
|
| 466 |
+
442,
|
| 467 |
+
772,
|
| 468 |
+
553,
|
| 469 |
+
806
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 3
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "where $d _ { i }$ represents the ith filter of $d$ (not the ith weight), and $\\lVert \\boldsymbol { \\theta } _ { i } \\rVert$ denotes the Frobenius norm of the ith filter of $\\theta$ . Note that the filter-wise normalization is different from that of (Im et al., 2016), which normalize the direction without considering the norm of individual filters. ",
|
| 476 |
+
"bbox": [
|
| 477 |
+
174,
|
| 478 |
+
818,
|
| 479 |
+
825,
|
| 480 |
+
861
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 3
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "The proposed scaling is an important factor when making meaningful plots of loss function geometry. We will explore the importance of proper scaling below as we explore the sharpness/flatness of different minimizers. In this context, we show that the sharpness of filter-normalized plots correlates with generalization error, while plots without filter normalization can be very misleading. ",
|
| 487 |
+
"bbox": [
|
| 488 |
+
174,
|
| 489 |
+
867,
|
| 490 |
+
825,
|
| 491 |
+
924
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 3
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "5 THE SHARP VS FLAT DILEMMA ",
|
| 498 |
+
"text_level": 1,
|
| 499 |
+
"bbox": [
|
| 500 |
+
176,
|
| 501 |
+
102,
|
| 502 |
+
459,
|
| 503 |
+
117
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "Section 4 introduces the concept of filter normalization, and provides an intuitive justification for its use. In this section, we address the issue of whether sharp minimizers generalize better than flat minimizers. In doing so, we will see that the sharpness of minimizers correlates well with generalization error when filter normalization is used. This enables side-by-side comparisons between plots. In contrast, the sharpness of non-filter normalized plots may appear distorted and unpredictable. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
174,
|
| 512 |
+
133,
|
| 513 |
+
825,
|
| 514 |
+
204
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "It is widely thought that small-batch SGD produces “flat” minimizers that generalize better, while large batch sizes produce “sharp” minima with poor generalization (Chaudhari et al., 2017; Keskar et al., 2017; Hochreiter & Schmidhuber, 1997). This claim is disputed though, with Dinh et al. (2017); Kawaguchi et al. (2017) arguing that generalization is not directly related to the curvature of loss surfaces, and some authors proposing specialized training methods that achieve good performance with large batch sizes (Hoffer et al., 2017; Goyal et al., 2017; De et al., 2017). ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
174,
|
| 523 |
+
210,
|
| 524 |
+
825,
|
| 525 |
+
295
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "Here, we explore the difference between sharp and flat minimizers. We begin by discussing difficulties that arise when performing such a visualization, and how proper normalization can prevent such plots from producing distorted results. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
176,
|
| 534 |
+
301,
|
| 535 |
+
821,
|
| 536 |
+
343
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "We train a CIFAR-10 classifier using a 9-layer VGG network (Simonyan & Zisserman, 2015) with Batch Normalization (Ioffe & Szegedy, 2015). We use two batch sizes: a large batch size of 8192 ( $1 6 . 4 \\%$ of the training data of CIFAR-10), and a small batch size of 128. Let $\\theta _ { s }$ and $\\theta _ { l }$ indicate the solutions obtained by running SGD using small and large batch sizes, respectively1. Using the linear interpolation approach (Goodfellow et al., 2015), we plot the loss values on both training and testing data sets of CIFAR-10, along a direction containing the two solutions, i.e., $f ( \\alpha ) = L ( \\theta _ { s } + \\alpha ( \\theta _ { l } - \\theta _ { s } ) )$ . ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
173,
|
| 545 |
+
349,
|
| 546 |
+
825,
|
| 547 |
+
435
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "image",
|
| 553 |
+
"img_path": "images/ef50b7737be38ec876e0cdb95e3e3af393016f78c52f3f6208f9ac227293847e.jpg",
|
| 554 |
+
"image_caption": [
|
| 555 |
+
"Figure 2: 1D linear interpolation of solutions obtained by small-batch and large-batch methods for VGG9. The blue lines are loss values and the red lines are accuracies. The solid lines are training curves and the dashed lines are for testing. Small batch is at abscissa 0, and large batch is at abscissa 1. "
|
| 556 |
+
],
|
| 557 |
+
"image_footnote": [],
|
| 558 |
+
"bbox": [
|
| 559 |
+
205,
|
| 560 |
+
530,
|
| 561 |
+
792,
|
| 562 |
+
862
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "table",
|
| 568 |
+
"img_path": "images/98c197d8db6f14ab8dac05d572f1b918604d116a07327fac2ead42e5745aae02.jpg",
|
| 569 |
+
"table_caption": [
|
| 570 |
+
"Table 1: Test errors of VGG-9 on CIFAR-10 with different optimization algorithms and hyperparameters. "
|
| 571 |
+
],
|
| 572 |
+
"table_footnote": [],
|
| 573 |
+
"table_body": "<table><tr><td rowspan=\"3\"></td><td rowspan=\"3\"></td><td colspan=\"2\">SGD</td><td colspan=\"2\">Adam</td></tr><tr><td>bs=128</td><td>bs=8192</td><td>bs=128</td><td>bs=8192</td></tr><tr><td>VGG-9</td><td>WD= 0</td><td>7.37</td><td>11.07</td><td>7.44</td><td>10.91</td></tr><tr><td></td><td>WD = 5e-4</td><td>6.00</td><td>10.19</td><td>7.80</td><td>9.52</td></tr></table>",
|
| 574 |
+
"bbox": [
|
| 575 |
+
274,
|
| 576 |
+
141,
|
| 577 |
+
725,
|
| 578 |
+
205
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 5
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "Similar to Keskar et al. (2017), we also superimpose the classification accuracy in red. This plot is shown in Figure 2. ",
|
| 585 |
+
"bbox": [
|
| 586 |
+
173,
|
| 587 |
+
231,
|
| 588 |
+
823,
|
| 589 |
+
260
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 5
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "Figures 2(a) and 2(b) show linear interpolation plots with $\\theta _ { s }$ at $\\mathbf { X }$ -axis location 0, and $\\theta _ { l }$ at location $1 ^ { 2 }$ . As observed by Keskar et al. (2017), we can clearly see that the small-batch solution is quite wide, while the large-batch solution is sharp. However, this sharpness balance can be flipped simply by turning on weight decay (Krogh & Hertz, 1992). Figures 2(c) and 2(d) show results of the same experiment, except this time with a non-zero weight decay parameter. This time, the large batch minimizer is considerably flatter than the sharp small batch minimizer. However, we see from Table 1 that small batches generalize better in all 4 experiments; there is no apparent correlation between sharpness and generalization. We will see that these side-by-side sharpness comparisons are extremely misleading, and fail to capture the endogenous properties of the minima. ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
173,
|
| 598 |
+
266,
|
| 599 |
+
825,
|
| 600 |
+
392
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 5
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "The apparent differences in sharpness in Figure 2 can be explained by examining the weights of each minimizer. Histograms of the networks weights are shown for each experiment in Figure 3. We see that, when a large batch is used with zero weight decay, the resulting weights tends to be smaller than in the small batch case. We reverse this effect by adding weight decay; in this case the large batch minimizer has much larger weights than the small batch minimizer. This difference in scale occurs for a simple reason: A smaller batch size results in more weight updates per epoch than a large batch size, and so the shrinking effect of weight decay (which imposes a penalty on the norm of the weights) is more pronounced. ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
173,
|
| 609 |
+
398,
|
| 610 |
+
825,
|
| 611 |
+
510
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "Figure 2 in not visualizing the endogenous sharpness of minimizers, but rather just the (irrelevant) weight scaling. The scaling of weights in these networks is irrelevant because batch normalization re-scales the outputs to have unit variance. However, small weights still appear more sensitive to perturbations, and produce sharper looking minimizers. ",
|
| 618 |
+
"bbox": [
|
| 619 |
+
173,
|
| 620 |
+
517,
|
| 621 |
+
825,
|
| 622 |
+
573
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 5
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "Filter normalized plots We repeat the experiment in Figure 2, but this time we plot the loss function near each minimizer separately using random filter-normalized directions. This removes the apparent differences in geometry caused by the scaling depicted in Figure 3. The results, presented in Figure 4, still show differences in sharpness between small batch and large batch minima, however these differences are much more subtle than it would appear in the un-normalized plots. ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
173,
|
| 631 |
+
589,
|
| 632 |
+
825,
|
| 633 |
+
659
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "We also visualize these results using two random directions and contour plots. As shown in Figure 5, the weights obtained with small batch size and non-zero weight decay have wider contours than the sharper large batch minimizers. Similar for Resnet-56 appear in Figure 12 of the Appendix. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
176,
|
| 642 |
+
665,
|
| 643 |
+
825,
|
| 644 |
+
708
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "image",
|
| 650 |
+
"img_path": "images/c5a7d4f64b3d10940e5b0e8fcf8a2ad96ebd92066bfd9cc81dc1eeb9a61973a2.jpg",
|
| 651 |
+
"image_caption": [
|
| 652 |
+
"Figure 3: Histogram of weights. With zero weight decay, small-batch methods produce large weights. With non-zero weight decay, small-batch methods produce smaller weights. "
|
| 653 |
+
],
|
| 654 |
+
"image_footnote": [],
|
| 655 |
+
"bbox": [
|
| 656 |
+
173,
|
| 657 |
+
765,
|
| 658 |
+
831,
|
| 659 |
+
877
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 5
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "image",
|
| 665 |
+
"img_path": "images/0089ebcfa1e4c7c29fcc8cf3c9b44b137d8e12613e49aba8c463103b971b4e17.jpg",
|
| 666 |
+
"image_caption": [
|
| 667 |
+
"Figure 4: The shape of minima obtained using different optimization algorithms, with varying batch size and weight decay. The title of each subfigure contains the optimizer, batch size, and test error. The first row has no weight decay and the second row uses weight decay 5e-4. "
|
| 668 |
+
],
|
| 669 |
+
"image_footnote": [],
|
| 670 |
+
"bbox": [
|
| 671 |
+
169,
|
| 672 |
+
108,
|
| 673 |
+
852,
|
| 674 |
+
308
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 6
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "image",
|
| 680 |
+
"img_path": "images/19fc60a8c5a0284a9dbe8f9ce56c82c214fd602dbeff6b22bd17998217d2f207.jpg",
|
| 681 |
+
"image_caption": [
|
| 682 |
+
"Figure 5: 2D visualization of solutions obtained by SGD with small-batch and large-batch. Similar to Figure 4, the first row uses zero weight decay and the second row sets weight decay to 5e-4. "
|
| 683 |
+
],
|
| 684 |
+
"image_footnote": [],
|
| 685 |
+
"bbox": [
|
| 686 |
+
171,
|
| 687 |
+
393,
|
| 688 |
+
852,
|
| 689 |
+
608
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 6
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "Generalization and Flatness Using the filter-normalized plots in Figures 4 and 5, we can make side-by-side comparisons between minimizers, and we see that now sharpness correlates well with generalization error. Large batches produced visually sharper minima (although not dramatically so) with higher test error. Interestingly, the Adam optimizer attained larger test error than SGD, and, as predicted, the corresponding minima are visually sharper. Results of a similar experiment using ResNet-56 are presented in the Appendix (Figure 12). ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
173,
|
| 698 |
+
685,
|
| 699 |
+
825,
|
| 700 |
+
770
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 6
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "6 WHAT MAKES NEURAL NETWORKS TRAINABLE? INSIGHTS ON THE (NON) CONVEXITY STRUCTURE OF LOSS SURFACES ",
|
| 707 |
+
"text_level": 1,
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
799,
|
| 711 |
+
816,
|
| 712 |
+
833
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 6
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "Our ability to find global minimizers to neural loss functions is not universal; it seems that some neural architectures are easier to minimize than others. For example, using skip connections, He et al. (2016) were able to train extremely deep architectures, while comparable architectures without skip connections are not trainable. Furthermore, our ability to train seems to depend strongly on the initial parameters from which training starts. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
853,
|
| 722 |
+
825,
|
| 723 |
+
924
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 6
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "Using visualization methods, we do an empirical study of neural architectures to explore why the non-convexity of loss functions seems to be problematic in some situations, but not in others. We aim to provide insight into the following questions: Do loss functions have significant non-convexity at all? If prominent non-convexities exist, why are they not problematic in all situations? Why are some architectures easy to train, and why are results so sensitive to the initialization? We will see that different architectures have extreme differences in non-convexity structure that answer these questions, and that these differences correlate with generalization error. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
103,
|
| 733 |
+
825,
|
| 734 |
+
202
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 7
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "6.1 EXPERIMENTAL SETUP ",
|
| 741 |
+
"text_level": 1,
|
| 742 |
+
"bbox": [
|
| 743 |
+
176,
|
| 744 |
+
223,
|
| 745 |
+
372,
|
| 746 |
+
237
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 7
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "To understand the effects of network architecture on non-convexity, we trained a number of networks, and plotted the landscape around the obtained minimizers using the filter-normalized random direction method described in Section 4. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
176,
|
| 755 |
+
251,
|
| 756 |
+
826,
|
| 757 |
+
292
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "We consider three classes of neural networks: ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
174,
|
| 766 |
+
299,
|
| 767 |
+
472,
|
| 768 |
+
314
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 7
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "• Residual networks that are optimized for performance on CIFAR (He et al., 2016). We consider ResNet-20, ResNet-56, and ResNet-110, where each name is labeled with the number of convolutional layers it has. “VGG-like” networks that do not contain shortcut/skip connections. We produced these networks simply by removing the skip connections from the CIFAR-optimized ResNets. We call these networks ResNet-20-noshort, ResNet-56-noshort, and ResNet-110-noshort. Note that these networks do not all perform well on the CIFAR-10 task. We use them purely for experimental purposes to explore the effect of shortcut connections. “Wide” ResNets that have been optimized for ImageNet rather than CIFAR. These networks have more filters per layer than the CIFAR optimized networks, and also have different numbers of layers. These models include ResNet-18, ResNet-34, and ResNet-50. ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
214,
|
| 777 |
+
327,
|
| 778 |
+
825,
|
| 779 |
+
498
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 7
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "All models are trained on the CIFAR-10 dataset using SGD with Nesterov momentum, batch-size 128, and 0.0005 weight decay for 300 epochs. The learning rate was initialized at 0.1, and decreased by a factor of 10 at epochs 150, 225 and 275. Deeper experimental VGG-like networks (e.g., ResNet-56-noshort, as described below) required a smaller initial learning rate of 0.01. ",
|
| 786 |
+
"bbox": [
|
| 787 |
+
176,
|
| 788 |
+
512,
|
| 789 |
+
825,
|
| 790 |
+
568
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 7
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "High resolution 2D plots of the minimizers for different neural networks are shown in Figure 6. Results are shown as contour plots rather than surface plots because this makes it extremely easy to see non-convex structures and evaluate sharpness. For surface plots of ResNet-56, see Figure 1. Note that the center of each plot corresponds to the minimizer, and the two axes parameterize two random directions with filter-wise normalization as in (1). We make several observations below about how architecture effects the loss landscape. We also provide loss and error values for these networks in Table 2, and convergence curves in Figure 14 of the Appendix. ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
174,
|
| 799 |
+
574,
|
| 800 |
+
825,
|
| 801 |
+
672
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 7
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "6.2 THE EFFECT OF NETWORK DEPTH ",
|
| 808 |
+
"text_level": 1,
|
| 809 |
+
"bbox": [
|
| 810 |
+
176,
|
| 811 |
+
694,
|
| 812 |
+
446,
|
| 813 |
+
708
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 7
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "From Figure 6, we see that network depth has a dramatic effect on the loss surfaces of neural networks when skip connections are not used. The network ResNet-20-noshort has a fairly benign landscape dominated by a region with convex contours in the center, and no dramatic non-convexity. This isn’t too surprising: the original VGG networks for ImageNet had 19 layers and could be trained effectively (Simonyan & Zisserman, 2015). ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
174,
|
| 822 |
+
722,
|
| 823 |
+
825,
|
| 824 |
+
791
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 7
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "However, as network depth increases, the loss surface of the VGG-like nets spontaneously transitions from (nearly) convex to chaotic. ResNet-56-noshort has dramatic non-convexities and large regions where the gradient directions (which are normal to the contours depicted in the plots) do not point towards the minimizer at the center. Also, the loss function becomes extremely large as we move in some directions. ResNet-110-noshort displays even more dramatic non-convexities, and becomes extremely steep as we move in all directions shown in the plot. Furthermore, note that the minimizers at the center of the deep VGG-like nets seem to be fairly sharp. In the case of ResNet-56-noshort, the minimizer is also fairly ill-conditioned, as the contours near the minimizer have significant eccentricity. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
797,
|
| 834 |
+
825,
|
| 835 |
+
924
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 7
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "image",
|
| 841 |
+
"img_path": "images/09e1fa6d53f9c16d0e4f2124e26f3227824bd8d411eafd3b74ff9db658ad4338.jpg",
|
| 842 |
+
"image_caption": [
|
| 843 |
+
"Figure 6: 2D visualization of the solutions of different networks. "
|
| 844 |
+
],
|
| 845 |
+
"image_footnote": [],
|
| 846 |
+
"bbox": [
|
| 847 |
+
171,
|
| 848 |
+
108,
|
| 849 |
+
834,
|
| 850 |
+
518
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 8
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "table",
|
| 856 |
+
"img_path": "images/40226d86d4ee5767c94ded31a90966ad5bd948e604b7e23e2165d0c6465e84b3.jpg",
|
| 857 |
+
"table_caption": [
|
| 858 |
+
"Table 2: Loss values and errors for different architectures. "
|
| 859 |
+
],
|
| 860 |
+
"table_footnote": [],
|
| 861 |
+
"table_body": "<table><tr><td></td><td>Filters</td><td>Training Loss</td><td>Training Error</td><td>Test Error</td></tr><tr><td rowspan=\"2\">ResNet-20 ResNet-20-noshort</td><td rowspan=\"2\">16</td><td>0.017</td><td>0.286</td><td>7.37</td></tr><tr><td>0.025</td><td>0.560</td><td>8.18</td></tr><tr><td>ResNet-56</td><td rowspan=\"2\">16</td><td>0.004</td><td>0.052</td><td>5.89</td></tr><tr><td>ResNet-56-noshort</td><td>0.024</td><td>0.704</td><td>10.83</td></tr><tr><td>ResNet-110</td><td rowspan=\"2\">16</td><td>0.002</td><td>0.042</td><td>5.79</td></tr><tr><td>ResNet-110-noshort</td><td>0.258</td><td>8.732</td><td>16.44</td></tr><tr><td>ResNet-18</td><td rowspan=\"2\">64 64</td><td>0.002</td><td>0.026</td><td>5.42</td></tr><tr><td>ResNet-34</td><td>0.001</td><td>0.014</td><td>4.73</td></tr><tr><td>ResNet-50</td><td>64</td><td>0.001</td><td>0.006</td><td>4.55</td></tr></table>",
|
| 862 |
+
"bbox": [
|
| 863 |
+
235,
|
| 864 |
+
589,
|
| 865 |
+
761,
|
| 866 |
+
738
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 8
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "text",
|
| 872 |
+
"text": "6.3 SHORTCUT CONNECTIONS TO THE RESCUE ",
|
| 873 |
+
"text_level": 1,
|
| 874 |
+
"bbox": [
|
| 875 |
+
173,
|
| 876 |
+
765,
|
| 877 |
+
511,
|
| 878 |
+
779
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 8
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "Shortcut connections have a dramatic effect of the geometry of the loss functions. In Figure 6, we see that residual connections prevent the transition to chaotic behavior as depth increases. In fact, the width and shape of the 0.1-level contour is almost identical for the 20- and 110-layer networks. ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
176,
|
| 887 |
+
790,
|
| 888 |
+
825,
|
| 889 |
+
833
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 8
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "Interestingly, the effect of skip connections seems to be most important for deep networks. For the more shallow networks (ResNet-20 and ResNet-20-noshort), the effect of skip connections is fairly unnoticeable. However residual connections prevent the explosion of non-convexity that occurs when networks get deep. This effect seems to apply to other kinds of skip connections as well; Figure 13 of the Appendix shows the loss landscape of DenseNet (Huang et al., 2017), which shows no noticeable non-convexity. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
174,
|
| 898 |
+
840,
|
| 899 |
+
825,
|
| 900 |
+
924
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 8
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "6.4 WIDE MODELS VS THIN MODELS ",
|
| 907 |
+
"text_level": 1,
|
| 908 |
+
"bbox": [
|
| 909 |
+
176,
|
| 910 |
+
103,
|
| 911 |
+
447,
|
| 912 |
+
117
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 9
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "To see the effect of the number of convolutional filters per layer, we compare the narrow CIFARoptimized ResNets (ResNet-20/56/110) with wider ResNets (ResNet-18/34/50) that have more filters and were optimized for ImageNet. From Figure 6, we see that the wider models have loss landscapes with no noticeable chaotic behavior. Increased network width resulted in flat minima and wide regions of apparent convexity. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
131,
|
| 922 |
+
825,
|
| 923 |
+
200
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 9
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "This effect is also validated by Figure 7, in which we plot the landscape of ResNet-56, but we multiple the number of filter per layer by $k = 2 , 4$ , and 8. We see that increased width prevents chaotic behavior, and skip connections dramatically widen minimizers. Finally, note that sharpness correlates extremely well with test error. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
174,
|
| 932 |
+
207,
|
| 933 |
+
825,
|
| 934 |
+
262
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 9
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "image",
|
| 940 |
+
"img_path": "images/c55cb4af6dfc31fb4a6c5b394992c8d9c6370fc38dc358befd09e109f60dd5bd.jpg",
|
| 941 |
+
"image_caption": [
|
| 942 |
+
"Figure 7: Wide-ResNet-56 (WRN-56) on CIFAR-10 both with shortcut connections (top) and without (bottom). The label $k = 2$ means twice as many filters per layer, $k = 4$ means 4 times, etc. Test error is reported below each figure. "
|
| 943 |
+
],
|
| 944 |
+
"image_footnote": [],
|
| 945 |
+
"bbox": [
|
| 946 |
+
158,
|
| 947 |
+
285,
|
| 948 |
+
839,
|
| 949 |
+
500
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 9
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "6.5 IMPLICATIONS FOR NETWORK INITIALIZATION ",
|
| 956 |
+
"text_level": 1,
|
| 957 |
+
"bbox": [
|
| 958 |
+
174,
|
| 959 |
+
587,
|
| 960 |
+
537,
|
| 961 |
+
599
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 9
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "One of the most interesting observations seen in Figure 6 is that loss landscapes for all the networks considered seem to be partitioned into a well-defined region of low loss value and convex contours, surrounded by a well-defined region of high loss value and non-convex contours. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
174,
|
| 970 |
+
612,
|
| 971 |
+
825,
|
| 972 |
+
654
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 9
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "This partitioning of chaotic and convex regions may explain the importance of good initialization strategies, and also the easy training behavior of “good” architectures. When using normalized random initialization strategies such as those proposed by Glorot & Bengio (2010), typical neural networks attain an initial loss value less than 2.5. The well behaved loss landscapes in Figure 6 (ResNets, and shallow VGG-like nets) are dominated by large, flat, nearly convex attractors that rise to a loss value of 4 or greater. For such landscapes, a random initialization will likely lie in the “well- behaved” loss region, and the optimization algorithm might never “see” the pathological non-convexities that occur on the high loss chaotic plateaus. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
661,
|
| 982 |
+
825,
|
| 983 |
+
772
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 9
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "Chaotic loss landscapes (ResNet-56-noshort and ResNet-110-noshort) have shallower regions of convexity that rise to lower loss values. For sufficiently deep networks with shallow enough attractors, the initial iterate will likely lie in the chaotic region where the gradients are uninformative. In our experiments, SGD was unable to train a 156 layer network without skip connections (even with very low learning rates), which adds weight to this hypothesis. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
174,
|
| 992 |
+
779,
|
| 993 |
+
825,
|
| 994 |
+
849
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 9
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "6.6 LANDSCAPE GEOMETRY AFFECTS GENERALIZATION ",
|
| 1001 |
+
"text_level": 1,
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
174,
|
| 1004 |
+
869,
|
| 1005 |
+
575,
|
| 1006 |
+
882
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 9
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Table 2 displays the training and test error for the networks depicted in Figure 6. Both Figures 6 and 7 show that landscape geometry has a dramatic effect on generalization. First, note that visually flatter minimizers consistently correspond to lower test error, which further strengthens our assertion that filter normalization is a natural way to visualize loss function geometry. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
173,
|
| 1015 |
+
895,
|
| 1016 |
+
823,
|
| 1017 |
+
924
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 9
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
173,
|
| 1026 |
+
103,
|
| 1027 |
+
823,
|
| 1028 |
+
132
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 10
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Second, we notice that chaotic landscapes (deep networks without skip connections) result in worse training and test error, while more convex landscapes have lower error values. In fact, the most convex landscapes (the wide ResNets in the bottom row of Figure 6) generalize the best of all the networks. This latter class of networks show no noticeable chaotic behavior at all. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
138,
|
| 1038 |
+
823,
|
| 1039 |
+
194
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 10
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "7 VISUALIZING OPTIMIZATION PATHS ",
|
| 1046 |
+
"text_level": 1,
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
176,
|
| 1049 |
+
217,
|
| 1050 |
+
501,
|
| 1051 |
+
232
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 10
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "Finally, we explore methods for visualizing the trajectories of different optimizers. For this application, random directions are ineffective. We will provide a theoretical explanation for why random directions fail, and explore methods for effectively plotting trajectories on top of loss function contours. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
174,
|
| 1060 |
+
247,
|
| 1061 |
+
825,
|
| 1062 |
+
290
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 10
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Several authors have observed that random direction fail to capture the variation in optimization trajectories, including Gallagher & Downs (2003); Lorch (2016); Lipton (2016); Liao & Poggio (2017). Several failed visualizations are depicted in Figure 8. In Figure 8(a), we see the iterates of SGD projected onto the plane defined by two random directions. Almost none of the motion is captured (notice the super-zoomed-in axes and the seemingly random walk). This problem was noticed by Goodfellow et al. (2015), who then visualized trajectories using one direction that points from initialization to solution, and one random direction. This approach is shown in Figure 8(b). As seen in Figure 8(c), the random axis captures almost no variation, leading to the (misleading) appearance of a straight line path. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
173,
|
| 1071 |
+
296,
|
| 1072 |
+
825,
|
| 1073 |
+
422
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 10
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "image",
|
| 1079 |
+
"img_path": "images/6b58a26902081c8eab5b05e4d0561fdea81fbc2a651f28634198198c59d961af.jpg",
|
| 1080 |
+
"image_caption": [
|
| 1081 |
+
"Figure 8: Ineffective visualizations of optimizer trajectories. These visualizations suffer from the orthogonality of random directions in high dimensions. "
|
| 1082 |
+
],
|
| 1083 |
+
"image_footnote": [],
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
171,
|
| 1086 |
+
443,
|
| 1087 |
+
821,
|
| 1088 |
+
571
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 10
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "7.1 WHY RANDOM DIRECTIONS FAIL: LOW DIMENSIONAL OPTIMIZATION TRAJECTORIES ",
|
| 1095 |
+
"text_level": 1,
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
174,
|
| 1098 |
+
642,
|
| 1099 |
+
800,
|
| 1100 |
+
656
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 10
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "It is well known that two random vectors in a high dimensional space will be nearly orthogonal with high probability. In fact, the expected cosine similarity between Gaussian random vectors in $n$ dimensions is roughly $\\sqrt { 2 / ( \\pi n ) }$ (Goldstein & Studer (2016), Lemma 5). ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
174,
|
| 1109 |
+
667,
|
| 1110 |
+
825,
|
| 1111 |
+
712
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 10
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "This is problematic when optimization trajectories lie in extremely low dimensional spaces. In this case, a randomly chosen vector will lie orthogonal to the low-rank space containing the optimization path, and a projection onto a random direction will capture almost no variation. Figure 8(b) suggests that optimization trajectories are low dimensional because the random direction captures orders of magnitude less variation than the vector that points along the optimization path. Below, we use PCA directions to directly validate this low dimensionality, and also to produce effective visualizations. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
174,
|
| 1120 |
+
718,
|
| 1121 |
+
825,
|
| 1122 |
+
803
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 10
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "7.2 EFFECTIVE TRAJECTORY PLOTTING USING PCA DIRECTIONS ",
|
| 1129 |
+
"text_level": 1,
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
176,
|
| 1132 |
+
820,
|
| 1133 |
+
635,
|
| 1134 |
+
834
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 10
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "To capture variation in trajectories, we need to use non-random (and carefully chosen) directions. Here, we suggest an approach based on PCA that allows us to measure how much variation we’ve captured; we also provide plots of these trajectories along the contours of the loss surface. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
174,
|
| 1143 |
+
847,
|
| 1144 |
+
825,
|
| 1145 |
+
888
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 10
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "Let $\\theta _ { i }$ denote model parameters at epoch $i$ and the final solution as $\\theta _ { n }$ . Given $m$ training epochs, we can apply PCA to the matrix $M = [ \\theta _ { 0 } - \\theta _ { n } ; \\cdot \\cdot \\cdot ; \\theta _ { n - 1 } - \\theta _ { n } ]$ , and then select the two most explanatory directions. Optimizer trajectories (blue dots) and loss surfaces along PCA directions are shown in Figure 9. Epochs where the learning rate was decreased are shown as red dots. On each axis, we measure the amount of variation in the descent path captured by that PCA direction. ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
174,
|
| 1154 |
+
895,
|
| 1155 |
+
823,
|
| 1156 |
+
924
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 10
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
176,
|
| 1165 |
+
103,
|
| 1166 |
+
823,
|
| 1167 |
+
146
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 11
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "We see some interesting behavior in these plots. At early stages of training, the paths tend to move perpendicular to the contours of the loss surface, i.e., along the gradient directions as one would expect from non-stochastic gradient descent. The stochasticity becomes fairly pronounced in several plots during the later stages of training. This is particularly true of the plots that use weight decay and small batches (which leads to more gradient noise, and a more radical departure from deterministic gradient directions). When weight decay and small batches are used, we see the path turn nearly parallel to the contours and “orbit” the solution when the stepsize is large. When the stepsize is dropped (at the red dot), the effective noise in the system decreases, and we see a kink in the path as the trajectory falls into the nearest local minimizer. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
173,
|
| 1176 |
+
152,
|
| 1177 |
+
825,
|
| 1178 |
+
279
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 11
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "Finally, we can directly observe that the descent path is very low dimensional: between $40 \\%$ and $90 \\%$ of the variation in the descent paths lies in a space of only 2 dimensions. The optimization trajectories in Figure 9 appear to be dominated by movement in the direction of a nearby attractor. This low dimensionality is compatible with the observations in Section 6.5, where we observed that non-chaotic landscapes are dominated by wide, flat minimizers. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
173,
|
| 1187 |
+
285,
|
| 1188 |
+
825,
|
| 1189 |
+
354
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 11
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "image",
|
| 1195 |
+
"img_path": "images/8d33544243937b60993d712bc2c60f7cc045d69afe806c2a339b6f5d0aca7c66.jpg",
|
| 1196 |
+
"image_caption": [
|
| 1197 |
+
"Figure 9: Projected learning trajectories use normalized PCA directions for VGG-9. The left plot in each subfigure uses batch size 128, and the right one uses batch size 8192. "
|
| 1198 |
+
],
|
| 1199 |
+
"image_footnote": [],
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
169,
|
| 1202 |
+
376,
|
| 1203 |
+
831,
|
| 1204 |
+
599
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 11
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "8 CONCLUSION ",
|
| 1211 |
+
"text_level": 1,
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
174,
|
| 1214 |
+
671,
|
| 1215 |
+
318,
|
| 1216 |
+
686
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 11
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "In this paper, we presented a new, more accurate visualization technique that provided insights into the consequences of a variety of choices facing the neural network practitioner, including network architecture, optimizer selection, and batch size. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
176,
|
| 1225 |
+
703,
|
| 1226 |
+
823,
|
| 1227 |
+
744
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 11
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Neural networks have advanced dramatically in recent years, largely on the back of anecdotal knowledge and theoretical results with complex assumptions. For progress to continue to be made, a more general understanding of the structure of neural networks is needed. Our hope is that effective visualization, when coupled with continued advances in theory, can result in faster training, simpler models, and better generalization. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
174,
|
| 1236 |
+
752,
|
| 1237 |
+
825,
|
| 1238 |
+
821
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 11
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "REFERENCES ",
|
| 1245 |
+
"text_level": 1,
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
176,
|
| 1248 |
+
102,
|
| 1249 |
+
287,
|
| 1250 |
+
118
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 12
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "text",
|
| 1256 |
+
"text": "Avrim Blum and Ronald L Rivest. Training a 3-node neural network is np-complete. In Advances in neural information processing systems, pp. 494–501, 1989. ",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
176,
|
| 1259 |
+
126,
|
| 1260 |
+
823,
|
| 1261 |
+
155
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 12
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "Pratik Chaudhari, Anna Choromanska, Stefano Soatto, and Yann LeCun. Entropy-sgd: Biasing gradient descent into wide valleys. ICLR, 2017. ",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
174,
|
| 1270 |
+
162,
|
| 1271 |
+
823,
|
| 1272 |
+
193
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 12
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "Anna Choromanska, Mikael Henaff, Michael Mathieu, Gerard Ben Arous, and Yann LeCun. The ´ loss surfaces of multilayer networks. In AISTATS, 2015. ",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
173,
|
| 1281 |
+
200,
|
| 1282 |
+
823,
|
| 1283 |
+
231
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 12
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "Yann N Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in neural information processing systems, pp. 2933–2941, 2014. ",
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
178,
|
| 1292 |
+
238,
|
| 1293 |
+
823,
|
| 1294 |
+
282
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 12
|
| 1297 |
+
},
|
| 1298 |
+
{
|
| 1299 |
+
"type": "text",
|
| 1300 |
+
"text": "Soham De, Abhay Yadav, David Jacobs, and Tom Goldstein. Automated inference with adaptive batches. In Artificial Intelligence and Statistics, pp. 1504–1513, 2017. ",
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
171,
|
| 1303 |
+
290,
|
| 1304 |
+
823,
|
| 1305 |
+
320
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 12
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "Laurent Dinh, Razvan Pascanu, Samy Bengio, and Yoshua Bengio. Sharp minima can generalize for deep nets. ICLR, 2017. ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
173,
|
| 1314 |
+
328,
|
| 1315 |
+
823,
|
| 1316 |
+
357
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 12
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "C Daniel Freeman and Joan Bruna. Topology and geometry of half-rectified network optimization. ICLR, 2017. ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
174,
|
| 1325 |
+
366,
|
| 1326 |
+
825,
|
| 1327 |
+
395
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 12
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "text",
|
| 1333 |
+
"text": "Marcus Gallagher and Tom Downs. Visualization of learning in multilayer perceptron networks using principal component analysis. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 33(1):28–34, 2003. ",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
174,
|
| 1336 |
+
404,
|
| 1337 |
+
825,
|
| 1338 |
+
446
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 12
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 249–256, 2010. ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
176,
|
| 1347 |
+
455,
|
| 1348 |
+
823,
|
| 1349 |
+
498
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 12
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "Tom Goldstein and Christoph Studer. Phasemax: Convex phase retrieval via basis pursuit. arXiv preprint arXiv:1610.07531, 2016. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
174,
|
| 1358 |
+
507,
|
| 1359 |
+
821,
|
| 1360 |
+
536
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 12
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "Ian J Goodfellow, Oriol Vinyals, and Andrew M Saxe. Qualitatively characterizing neural network optimization problems. ICLR, 2015. ",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
173,
|
| 1369 |
+
545,
|
| 1370 |
+
821,
|
| 1371 |
+
574
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 12
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "text",
|
| 1377 |
+
"text": "Priya Goyal, Piotr Dollar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, ´ Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. ",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
173,
|
| 1380 |
+
582,
|
| 1381 |
+
825,
|
| 1382 |
+
626
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 12
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "Benjamin D Haeffele and Rene Vidal. Global optimality in neural network training. In ´ Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7331–7339, 2017. ",
|
| 1389 |
+
"bbox": [
|
| 1390 |
+
174,
|
| 1391 |
+
633,
|
| 1392 |
+
821,
|
| 1393 |
+
664
|
| 1394 |
+
],
|
| 1395 |
+
"page_idx": 12
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"type": "text",
|
| 1399 |
+
"text": "Moritz Hardt and Tengyu Ma. Identity matters in deep learning. ICLR, 2017. ",
|
| 1400 |
+
"bbox": [
|
| 1401 |
+
174,
|
| 1402 |
+
671,
|
| 1403 |
+
681,
|
| 1404 |
+
688
|
| 1405 |
+
],
|
| 1406 |
+
"page_idx": 12
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"type": "text",
|
| 1410 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In CVPR, 2016. ",
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
173,
|
| 1413 |
+
695,
|
| 1414 |
+
820,
|
| 1415 |
+
726
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 12
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "text",
|
| 1421 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Flat minima. ¨ Neural Computation, 9(1):1–42, 1997. ",
|
| 1422 |
+
"bbox": [
|
| 1423 |
+
174,
|
| 1424 |
+
733,
|
| 1425 |
+
797,
|
| 1426 |
+
750
|
| 1427 |
+
],
|
| 1428 |
+
"page_idx": 12
|
| 1429 |
+
},
|
| 1430 |
+
{
|
| 1431 |
+
"type": "text",
|
| 1432 |
+
"text": "Elad Hoffer, Itay Hubara, and Daniel Soudry. Train longer, generalize better: closing the generaliza tion gap in large batch training of neural networks. NIPS, 2017. ",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
174,
|
| 1435 |
+
757,
|
| 1436 |
+
820,
|
| 1437 |
+
786
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 12
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "Gao Huang, Zhuang Liu, Kilian Q Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. CVPR, 2017. ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
174,
|
| 1446 |
+
795,
|
| 1447 |
+
823,
|
| 1448 |
+
824
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 12
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "Daniel Jiwoong Im, Michael Tao, and Kristin Branson. An empirical analysis of deep network loss surfaces. arXiv preprint arXiv:1612.04010, 2016. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
174,
|
| 1457 |
+
833,
|
| 1458 |
+
821,
|
| 1459 |
+
863
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 12
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "text",
|
| 1465 |
+
"text": "Sergey Ioffe and Christian Szegedy. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. 2015. ",
|
| 1466 |
+
"bbox": [
|
| 1467 |
+
176,
|
| 1468 |
+
871,
|
| 1469 |
+
825,
|
| 1470 |
+
900
|
| 1471 |
+
],
|
| 1472 |
+
"page_idx": 12
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"type": "text",
|
| 1476 |
+
"text": "Kenji Kawaguchi. Deep learning without poor local minima. NIPS, 2016. ",
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
174,
|
| 1479 |
+
909,
|
| 1480 |
+
660,
|
| 1481 |
+
924
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 12
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "Kenji Kawaguchi, Leslie Pack Kaelbling, and Yoshua Bengio. Generalization in deep learning. arXiv preprint arXiv:1710.05468, 2017. ",
|
| 1488 |
+
"bbox": [
|
| 1489 |
+
173,
|
| 1490 |
+
103,
|
| 1491 |
+
823,
|
| 1492 |
+
132
|
| 1493 |
+
],
|
| 1494 |
+
"page_idx": 13
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"type": "text",
|
| 1498 |
+
"text": "Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. ICLR, 2017. ",
|
| 1499 |
+
"bbox": [
|
| 1500 |
+
176,
|
| 1501 |
+
140,
|
| 1502 |
+
823,
|
| 1503 |
+
184
|
| 1504 |
+
],
|
| 1505 |
+
"page_idx": 13
|
| 1506 |
+
},
|
| 1507 |
+
{
|
| 1508 |
+
"type": "text",
|
| 1509 |
+
"text": "Anders Krogh and John A Hertz. A simple weight decay can improve generalization. In NIPS, 1992. ",
|
| 1510 |
+
"bbox": [
|
| 1511 |
+
173,
|
| 1512 |
+
193,
|
| 1513 |
+
825,
|
| 1514 |
+
208
|
| 1515 |
+
],
|
| 1516 |
+
"page_idx": 13
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"type": "text",
|
| 1520 |
+
"text": "Yuanzhi Li and Yang Yuan. Convergence analysis of two-layer neural networks with relu activation. arXiv preprint arXiv:1705.09886, 2017. ",
|
| 1521 |
+
"bbox": [
|
| 1522 |
+
173,
|
| 1523 |
+
217,
|
| 1524 |
+
825,
|
| 1525 |
+
246
|
| 1526 |
+
],
|
| 1527 |
+
"page_idx": 13
|
| 1528 |
+
},
|
| 1529 |
+
{
|
| 1530 |
+
"type": "text",
|
| 1531 |
+
"text": "Qianli Liao and Tomaso Poggio. Theory of deep learning ii: Landscape of the empirical risk in deep learning. arXiv preprint arXiv:1703.09833, 2017. ",
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
174,
|
| 1534 |
+
253,
|
| 1535 |
+
825,
|
| 1536 |
+
284
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 13
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "text",
|
| 1542 |
+
"text": "Zachary C Lipton. Stuck in a what? adventures in weight space. ICLR Workshop, 2016. ",
|
| 1543 |
+
"bbox": [
|
| 1544 |
+
171,
|
| 1545 |
+
291,
|
| 1546 |
+
751,
|
| 1547 |
+
308
|
| 1548 |
+
],
|
| 1549 |
+
"page_idx": 13
|
| 1550 |
+
},
|
| 1551 |
+
{
|
| 1552 |
+
"type": "text",
|
| 1553 |
+
"text": "Eliana Lorch. Visualizing deep network training trajectories with pca. ICML WorkshopWorkshop on Visualization for Deep Learning, 2016. ",
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
173,
|
| 1556 |
+
315,
|
| 1557 |
+
823,
|
| 1558 |
+
344
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 13
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "Haihao Lu and Kenji Kawaguchi. Depth creates no bad local minima. arXiv preprint arXiv:1702.08580, 2017. ",
|
| 1565 |
+
"bbox": [
|
| 1566 |
+
171,
|
| 1567 |
+
353,
|
| 1568 |
+
825,
|
| 1569 |
+
382
|
| 1570 |
+
],
|
| 1571 |
+
"page_idx": 13
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"type": "text",
|
| 1575 |
+
"text": "Quynh Nguyen and Matthias Hein. The loss surface of deep and wide neural networks. International Conference on Machine Learning, 2017. ",
|
| 1576 |
+
"bbox": [
|
| 1577 |
+
173,
|
| 1578 |
+
391,
|
| 1579 |
+
825,
|
| 1580 |
+
420
|
| 1581 |
+
],
|
| 1582 |
+
"page_idx": 13
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"type": "text",
|
| 1586 |
+
"text": "Itay Safran and Ohad Shamir. On the quality of the initial basin in overspecified neural networks. In International Conference on Machine Learning, pp. 774–782, 2016. ",
|
| 1587 |
+
"bbox": [
|
| 1588 |
+
171,
|
| 1589 |
+
429,
|
| 1590 |
+
825,
|
| 1591 |
+
458
|
| 1592 |
+
],
|
| 1593 |
+
"page_idx": 13
|
| 1594 |
+
},
|
| 1595 |
+
{
|
| 1596 |
+
"type": "text",
|
| 1597 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very Deep Convolutional Networks for Large-Scale Image Recognition. In ICLR, 2015. ",
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
171,
|
| 1600 |
+
467,
|
| 1601 |
+
823,
|
| 1602 |
+
496
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 13
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "Leslie N Smith and Nicholay Topin. Exploring loss function topology with cyclical learning rates. arXiv preprint arXiv:1702.04283, 2017. ",
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
171,
|
| 1611 |
+
503,
|
| 1612 |
+
825,
|
| 1613 |
+
534
|
| 1614 |
+
],
|
| 1615 |
+
"page_idx": 13
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"type": "text",
|
| 1619 |
+
"text": "Mahdi Soltanolkotabi, Adel Javanmard, and Jason D Lee. Theoretical insights into the optimization landscape of over-parameterized shallow neural networks. arXiv preprint arXiv:1707.04926, 2017. ",
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
171,
|
| 1622 |
+
541,
|
| 1623 |
+
825,
|
| 1624 |
+
571
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 13
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "text",
|
| 1630 |
+
"text": "Daniel Soudry and Elad Hoffer. Exponentially vanishing sub-optimal local minima in multilayer neural networks. arXiv preprint arXiv:1702.05777, 2017. ",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
169,
|
| 1633 |
+
579,
|
| 1634 |
+
823,
|
| 1635 |
+
609
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 13
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "text",
|
| 1641 |
+
"text": "Grzegorz Swirszcz, Wojciech Marian Czarnecki, and Razvan Pascanu. Local minima in training of neural networks. stat, 1050:17, 2017. ",
|
| 1642 |
+
"bbox": [
|
| 1643 |
+
171,
|
| 1644 |
+
617,
|
| 1645 |
+
825,
|
| 1646 |
+
647
|
| 1647 |
+
],
|
| 1648 |
+
"page_idx": 13
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"type": "text",
|
| 1652 |
+
"text": "Yuandong Tian. An analytical formula of population gradient for two-layered relu network and its applications in convergence and critical point analysis. ICML, 2017. ",
|
| 1653 |
+
"bbox": [
|
| 1654 |
+
171,
|
| 1655 |
+
655,
|
| 1656 |
+
823,
|
| 1657 |
+
685
|
| 1658 |
+
],
|
| 1659 |
+
"page_idx": 13
|
| 1660 |
+
},
|
| 1661 |
+
{
|
| 1662 |
+
"type": "text",
|
| 1663 |
+
"text": "Bo Xie, Yingyu Liang, and Le Song. Diverse neural network learns true target functions. In Artificial Intelligence and Statistics, pp. 1216–1224, 2017. ",
|
| 1664 |
+
"bbox": [
|
| 1665 |
+
171,
|
| 1666 |
+
693,
|
| 1667 |
+
825,
|
| 1668 |
+
723
|
| 1669 |
+
],
|
| 1670 |
+
"page_idx": 13
|
| 1671 |
+
},
|
| 1672 |
+
{
|
| 1673 |
+
"type": "text",
|
| 1674 |
+
"text": "Chulhee Yun, Suvrit Sra, and Ali Jadbabaie. Global optimality conditions for deep neural networks. arXiv preprint arXiv:1707.02444, 2017. ",
|
| 1675 |
+
"bbox": [
|
| 1676 |
+
171,
|
| 1677 |
+
731,
|
| 1678 |
+
825,
|
| 1679 |
+
760
|
| 1680 |
+
],
|
| 1681 |
+
"page_idx": 13
|
| 1682 |
+
},
|
| 1683 |
+
{
|
| 1684 |
+
"type": "text",
|
| 1685 |
+
"text": "Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. ICLR, 2017. ",
|
| 1686 |
+
"bbox": [
|
| 1687 |
+
173,
|
| 1688 |
+
768,
|
| 1689 |
+
823,
|
| 1690 |
+
797
|
| 1691 |
+
],
|
| 1692 |
+
"page_idx": 13
|
| 1693 |
+
},
|
| 1694 |
+
{
|
| 1695 |
+
"type": "text",
|
| 1696 |
+
"text": "9 APPENDIX ",
|
| 1697 |
+
"text_level": 1,
|
| 1698 |
+
"bbox": [
|
| 1699 |
+
174,
|
| 1700 |
+
102,
|
| 1701 |
+
294,
|
| 1702 |
+
117
|
| 1703 |
+
],
|
| 1704 |
+
"page_idx": 14
|
| 1705 |
+
},
|
| 1706 |
+
{
|
| 1707 |
+
"type": "image",
|
| 1708 |
+
"img_path": "images/610175cbc64cf1ae69b262234cde47d9ff25b3b42f6d1c8fb9c0e9c8696c1bab.jpg",
|
| 1709 |
+
"image_caption": [
|
| 1710 |
+
"Figure 10: 1D linear interpolation of solutions obtained by small-batch and large-batch methods for ResNet56. The blue lines are loss values and the red lines are error. The solid lines are training curves and the dashed lines are for testing. "
|
| 1711 |
+
],
|
| 1712 |
+
"image_footnote": [],
|
| 1713 |
+
"bbox": [
|
| 1714 |
+
236,
|
| 1715 |
+
170,
|
| 1716 |
+
759,
|
| 1717 |
+
469
|
| 1718 |
+
],
|
| 1719 |
+
"page_idx": 14
|
| 1720 |
+
},
|
| 1721 |
+
{
|
| 1722 |
+
"type": "image",
|
| 1723 |
+
"img_path": "images/5dc79c487760afd5e52819863f3727b33d7f93699648a1573eb732d6e3055567.jpg",
|
| 1724 |
+
"image_caption": [
|
| 1725 |
+
"Figure 11: The shape of minima obtained via different optimization algorithms for ResNet-56, with varying batch size and weight decay. Similar to Figure 4, the first row uses zero weight decay and the second row uses 5e-4 weight decay. "
|
| 1726 |
+
],
|
| 1727 |
+
"image_footnote": [],
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
169,
|
| 1730 |
+
554,
|
| 1731 |
+
852,
|
| 1732 |
+
756
|
| 1733 |
+
],
|
| 1734 |
+
"page_idx": 14
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"type": "text",
|
| 1738 |
+
"text": "Generalization error for each plot is shown in Table 3. ",
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
173,
|
| 1741 |
+
830,
|
| 1742 |
+
529,
|
| 1743 |
+
844
|
| 1744 |
+
],
|
| 1745 |
+
"page_idx": 14
|
| 1746 |
+
},
|
| 1747 |
+
{
|
| 1748 |
+
"type": "image",
|
| 1749 |
+
"img_path": "images/51c9dc79a1510514ec1b5270885d6f3c0f59cca940263448f32e6e8e3acc82d5.jpg",
|
| 1750 |
+
"image_caption": [
|
| 1751 |
+
"Figure 12: 2D visualization of solutions of ResNet-56 obtained by SGD/Adam with small-batch and large-batch. Similar to Figure 11, the first row uses zero weight decay and the second row sets weight decay to 5e-4. "
|
| 1752 |
+
],
|
| 1753 |
+
"image_footnote": [],
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
169,
|
| 1756 |
+
147,
|
| 1757 |
+
852,
|
| 1758 |
+
362
|
| 1759 |
+
],
|
| 1760 |
+
"page_idx": 15
|
| 1761 |
+
},
|
| 1762 |
+
{
|
| 1763 |
+
"type": "table",
|
| 1764 |
+
"img_path": "images/f889b340b32ecb02fe5d2760ff8bde83eee6ebad92bc7f2a54de6e9e607681d4.jpg",
|
| 1765 |
+
"table_caption": [
|
| 1766 |
+
"Table 3: Test error for ResNet-56 with different optimization algorithms and batch-size/weight-decay parameters. "
|
| 1767 |
+
],
|
| 1768 |
+
"table_footnote": [],
|
| 1769 |
+
"table_body": "<table><tr><td rowspan=\"3\"></td><td colspan=\"2\">SGD</td><td colspan=\"2\">Adam</td></tr><tr><td>bs=128</td><td>bs=4096</td><td>bs=128</td><td>bs=4096</td></tr><tr><td>WD= 0</td><td>8.26</td><td>13.93</td><td>9.55</td><td>14.30</td></tr><tr><td>WD = 5e-4</td><td>5.89</td><td>10.59</td><td>7.67</td><td>12.36</td></tr></table>",
|
| 1770 |
+
"bbox": [
|
| 1771 |
+
308,
|
| 1772 |
+
545,
|
| 1773 |
+
691,
|
| 1774 |
+
607
|
| 1775 |
+
],
|
| 1776 |
+
"page_idx": 15
|
| 1777 |
+
},
|
| 1778 |
+
{
|
| 1779 |
+
"type": "image",
|
| 1780 |
+
"img_path": "images/82ab00c5f26ae528c7ab8fa745db3229313bdbdc5c56807e9c7afd9f1c347d5d.jpg",
|
| 1781 |
+
"image_caption": [
|
| 1782 |
+
"Figure 13: The loss landscape for DenseNet-121 trained on CIFAR-10. The final training error is 0.002 and the testing error is 4.37 "
|
| 1783 |
+
],
|
| 1784 |
+
"image_footnote": [],
|
| 1785 |
+
"bbox": [
|
| 1786 |
+
370,
|
| 1787 |
+
695,
|
| 1788 |
+
627,
|
| 1789 |
+
835
|
| 1790 |
+
],
|
| 1791 |
+
"page_idx": 15
|
| 1792 |
+
},
|
| 1793 |
+
{
|
| 1794 |
+
"type": "image",
|
| 1795 |
+
"img_path": "images/0baeb9b3d7877532ae268f66b858c5530fc075aaa8c9a1edf0c0f6e79f301065.jpg",
|
| 1796 |
+
"image_caption": [
|
| 1797 |
+
"Figure 14: Convergence curves for different architectures. The first row is for training loss and the second row are training and testing error curves. "
|
| 1798 |
+
],
|
| 1799 |
+
"image_footnote": [],
|
| 1800 |
+
"bbox": [
|
| 1801 |
+
184,
|
| 1802 |
+
172,
|
| 1803 |
+
833,
|
| 1804 |
+
454
|
| 1805 |
+
],
|
| 1806 |
+
"page_idx": 16
|
| 1807 |
+
},
|
| 1808 |
+
{
|
| 1809 |
+
"type": "image",
|
| 1810 |
+
"img_path": "images/0c310c541da47bed32b8513c30c1792a62f50b9bcacdcb51b6f31d18970657bd.jpg",
|
| 1811 |
+
"image_caption": [
|
| 1812 |
+
"Figure 15: Training and testing loss curves for VGG-9. Dashed lines are for testing, solid for training. "
|
| 1813 |
+
],
|
| 1814 |
+
"image_footnote": [],
|
| 1815 |
+
"bbox": [
|
| 1816 |
+
207,
|
| 1817 |
+
642,
|
| 1818 |
+
790,
|
| 1819 |
+
827
|
| 1820 |
+
],
|
| 1821 |
+
"page_idx": 16
|
| 1822 |
+
}
|
| 1823 |
+
]
|
parse/train/HkmaTz-0W/HkmaTz-0W_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HkmaTz-0W/HkmaTz-0W_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1FQEfZA-/S1FQEfZA-.md
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A CLASSIFICATION–BASED PERSPECTIVE ON GAN DISTRIBUTIONS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
A fundamental, and still largely unanswered, question in the context of Generative Adversarial Networks (GANs) is whether GANs are actually able to capture the key characteristics of the datasets they are trained on. The current approaches to examining this issue require significant human supervision, such as visual inspection of sampled images, and often offer only fairly limited scalability. In this paper, we propose new techniques that employ classification–based perspective to evaluate synthetic GAN distributions and their capability to accurately reflect the essential properties of the training data. These techniques require only minimal human supervision and can easily be scaled and adapted to evaluate a variety of state-of-the-art GANs on large, popular datasets. They also indicate that GANs have significant problems in reproducing the more distributional properties of the training dataset. In particular, the diversity of such synthetic data is orders of magnitude smaller than that of the original data.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) have garnered a significant amount of attention due to their ability to learn generative models of multiple natural image datasets (Radford et al., 2015; Denton et al., 2015; Zhang et al., 2016; Zhu et al., 2017). Since their conception, a fundamental question regarding GANs is to what extent they truly learn the underlying data distribution. This is a key issue for multiple reasons. From a scientific perspective, understanding the capabilities of common GANs can shed light on what precisely the adversarial training setup allows the GAN to learn. From an engineering standpoint, it is important to grasp the power and limitations of the GAN framework when applying it in concrete applications. Due to the broad potential applicability of GANs, researchers have investigated this question in a variety of ways.
|
| 12 |
+
|
| 13 |
+
When we evaluate the quality of a GAN, an obvious first check is to establish that the generated samples lie in the support of the true distribution. In the case of images, this corresponds to checking if the generated samples look realistic. Indeed, visual inspection of generated images is currently the most common way of assessing the quality of a given GAN. Individual humans can performs this task quickly and reliably, and various GANs have achieved impressive results for generating realistic-looking images of faces and indoor scenes (Salimans et al., 2016; Denton et al., 2015).
|
| 14 |
+
|
| 15 |
+
Once we have established that GANs produce realistic-looking images, the next concern is that the GAN might simply be memorizing the training dataset. While this hypothesis cannot be ruled out entirely, there is evidence that GANs perform at least some non-trivial modeling of the unknown distribution. Previous studies show that interpolations in the latent space of the generator produce novel and meaningful image variations (Radford et al., 2015), and that there is a clear disparity between generated samples and their nearest neighbors in the true dataset (Arora & Zhang, 2017).
|
| 16 |
+
|
| 17 |
+
Taken together, these results provide evidence that GANs could constitute successful distribution learning algorithms, which motivates studying their distributions in more detail. The direct approach is to compare the probability density assigned by the generator with estimates of the true distribution (Wu et al., 2016). However, in the context of GANs and high-dimensional image distributions, this is complicated by two factors. First, GANs do not naturally provide probability estimates for their samples. Second, estimating the probability density of the true distribution is a challenging problem itself (the adversarial training framework specifically avoids this issue). Hence prior work has only investigated the probability density of GANs on simple datasets such as MNIST (Wu et al., 2016).
|
| 18 |
+
|
| 19 |
+
Since reliably computing probability densities in high dimensions is challenging, we can instead study the behavior of GANs in low-dimensional problems such as two-dimensional Gaussian mixtures. Here, a common failure of GANs is mode collapse, wherein the generator assigns a disproportionately large mass to a subset of modes from the true distribution (Goodfellow, 2016). This raises concerns about a lack of diversity in the synthetic GAN distributions, and recent work shows that the learned distributions of two common GANs indeed have (moderately) low support size for the CelebA dataset (Arora & Zhang, 2017). However, the approach of Arora & Zhang (2017) heavily relies on a human annotator in order to identify duplicates. Hence it does not easily scale to comparing many variants of GANs or asking more fine-grained questions than collision statistics. Overall, our understanding of synthetic GAN distributions remains blurry, largely due to the lack of versatile tools for a quantitative evaluation of GANs in realistic settings. The focus of this work is precisly to address this question:
|
| 20 |
+
|
| 21 |
+
# Can we develop principled and quantitative approaches to study synthetic GAN distributions?
|
| 22 |
+
|
| 23 |
+
To this end, we propose two new evaluation techniques for synthetic GAN distributions. Our methods are inspired by the idea of comparing moments of distributions, which is at the heart of many methods in classical statistics. Although simple moments of high-dimensional distributions are often not semantically meaningful, we can extend this idea to distributions of realistic images by leveraging image statistics identified using convolutional neural networks. In particular, we train image classifiers in order to construct test functions corresponding to semantically meaningful properties of the distributions. An important feature of our approach is that it requires only light human supervision and can easily be scaled to evaluating many GANs and large synthetic datasets.
|
| 24 |
+
|
| 25 |
+
Using our new evaluation techniques, we study five state-of-the-art GANs on the CelebA and LSUN datasets, arguably the two most common testbeds for advanced GANs. We find that most of the GANs significantly distort the relative frequency of even basic image attributes, such as the hair style of a person or the type of room in an indoor scene. This clearly indicates a mismatch between the true and synthetic distributions. Moreover, we conduct experiments to explore the diversity of GAN distributions. We use synthetic GAN data to train image classifiers and find that these have significantly lower accuracy than classifiers trained on the true data set. This points towards a lack of diversity in the GAN data, and again towards a discrepancy between the true and synthetic distributions. In fact, our additional examinations show that the diversity in GANs is only comparable to a subset of the true data that is $1 0 0 \times$ smaller.
|
| 26 |
+
|
| 27 |
+
# 2 UNDERSTANDING GANS THROUGH THE LENS OF CLASSIFICATION
|
| 28 |
+
|
| 29 |
+
When comparing two distributions, a common first test is to compute low-order moments such as the mean and the variance. If the distributions are simple enough, these quantities provide a good understanding for how similar they are. Moreover, low-order moments have a precise definition and are usually quick to compute. On the other hand, low-order moments can also be misleading for more complicated, high-dimensional distributions. As a concrete example, consider a generative model of digits (such as MNIST). If a generator produces digits that are shifted by a significant amount yet otherwise perfect, we will probably still consider this as a good approximation of the true distribution. However, the expectation (mean moment) of the generator distribution can be very different from the expectation of the true data distribution. This raises the question of what other properties of high-dimensional image distributions are easy to test yet semantically meaningful.
|
| 30 |
+
|
| 31 |
+
In the next two subsections, we describe two concrete approaches to evaluate synthetic GAN data that are easy to compute yet capture relevant information about the distribution. The common theme is that we employ convolutional neural networks in order to capture properties of the distributions that are hard to describe in a mathematically precise way, but usually well-defined for a human (e.g., what fraction of the images shows a smiling person?). Automating the process of annotating images with such high-level information will allow us to study various aspects of synthetic GAN data.
|
| 32 |
+
|
| 33 |
+
# 2.1 QUANTIFYING MODE COLLAPSE
|
| 34 |
+
|
| 35 |
+
Mode collapse refers to the tendency of the generator to concentrate a large probability mass on a few modes of the true distribution. While there is ample evidence for the presence of mode-collapse in GANs (Goodfellow, 2016; Arora & Zhang, 2017; Metz et al., 2016), elegant visualizations of this phenomena are somewhat restricted to toy problems on low-dimensional distributions (Goodfellow,
|
| 36 |
+
|
| 37 |
+
2016; Metz et al., 2016). For image datasets, it is common to rely on human annotators and derived heuristics (see Section 2.3). While these methods have their merits, they are restrictive both in the scale and granularity of testing. Here we propose a classification-based tool to assess how good GANs are at assigning the right mass across broad concepts/modes. To do so, we use a trained classifier as an expert “annotator” that labels important features in synthetic data, and then analyze the resulting distribution. Specifically, our goal is to investigate if a GAN trained on a well-balanced dataset (i.e., contains equal number of samples from each class) can learn to reproduce this balanced structure. Let $D = ( \dot { X } , Y ) = \{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { N }$ represent a dataset of size $N$ with $C$ classes, where $( x _ { i } , y _ { i } )$ denote an image-label pair drawn from true data. If the dataset $D$ is balanced, it contains $N / C$ images per class. The procedure for computing class distribution in synthetic data is:
|
| 38 |
+
|
| 39 |
+
1. Train an annotator (a multi-class classifier) using the dataset $D$ .
|
| 40 |
+
2. Train an unconditional GAN on the images $X$ from dataset $D$ , without using class labels.
|
| 41 |
+
3. Create a synthetic dataset by sampling $N$ images from a GAN and labeling them using the annotator from Step 1.
|
| 42 |
+
|
| 43 |
+
The annotated data generated via the above procedure can provide insight into the GAN’s class distribution at the scale of the entire dataset. Moreover, we can vary the granularity of mode analysis by choosing richer classification tasks, i.e., more challenging classes or a larger number of them. In Section 3.3, we use this technique to visualize mode collapse in several state-of-the-art GANs on the CelebA and LSUN datasets. All the studied GANs show significant mode collapse and the effect becomes more pronounced when the granularity of the annotator is increased (larger number of classes). We also investigate the temporal aspect of the GAN setup and find that the dominant mode varies widely over the course of training. Our approach also enables us to benchmark and compare GANs on different datasets based on the extent of mode collapse in the learned distributions.
|
| 44 |
+
|
| 45 |
+
# 2.2 MEASURING DIVERSITY
|
| 46 |
+
|
| 47 |
+
Our above method for inspecting distribution of modes in synthetic data provides a coarse look at the statistics of the underlying distribution. While the resulting quantities are semantically meaningful, they capture only simple notions of diversity. To get a more holistic view on the sample diversity in the synthetic distribution, we now describe a second classification-based approach for evaluating GAN distributions. The main question that motivates it is: Can GANs recover the key aspects of real data to enable training a good classifier? We believe that this is an interesting measure of sample diversity for two reasons. First, classification of high-dimensional image data is a challenging problem, so a good training dataset will require a sufficiently diverse sample from the distribution. Second, augmenting data for classification problems is one of the proposed use cases of GANs (e.g., see the recent work of Shrivastava et al. (2017)).
|
| 48 |
+
|
| 49 |
+
If GANs are truly able to capture the quality and diversity of the underlying data distribution, we expect almost no gap between classifiers trained on true data and synthetic data from a GAN. A generic method to produce data from GANs for classification is to train separate GANs for each class in the dataset $D$ .1 Samples from these class-wise GANs can then be pooled together to get a labeled synthetic dataset. Note that the labels are trivially determined based on the class modeled by the particular GAN from which a sample is drawn. We perform the following steps to assess the classification performance of synthetic data vs. true data:
|
| 50 |
+
|
| 51 |
+
1. Train a classifier on the true data $D$ (from Section 2.1) as a benchmark for comparison. 2. Train $C$ separate unconditional GANs, one per class in dataset D. 3. Generate a balanced synthetic labeled dataset of size $_ \mathrm { N }$ by consolidating an equal number of samples drawn from each of these $C$ GANs. The labels obtained by aggregating samples from per-class GANs are designated as “default” labels for the synthetic dataset. Note that by design, both true and synthetic datasets have $N$ samples, with $N / C$ examples per class. 4. Use synthetic labeled data from Step 3 to train classifier with the same architecture as Step 1.
|
| 52 |
+
|
| 53 |
+
Comparing the classifiers from Steps 1 and 4 can then shed light on the disparity between the two distributions. Radford et al. (2015) conducted an experiment similar to Step 2 on the MNIST dataset using a conditional GAN. They found that samples from their DCGAN performed comparably to true data on nearest neighbor classification. We obtained similar good results on MNIST, which could be due to the efficacy of GANs in learning the MNIST distribution or due to the ease of getting good accuracy on MNIST even with a small training set (Rolnick et al., 2017). To clarify this question, we restrict our analysis to more complex datasets, specifically CelebA and LSUN.
|
| 54 |
+
|
| 55 |
+
We evaluate the two following properties in our classification task:
|
| 56 |
+
|
| 57 |
+
(i) How well can the GANs recover nuances of the decision boundary, which is reflected by how easily the classifier can fit the training data?
|
| 58 |
+
(ii) How does the diversity of synthetic data compare to that of true data when measured by classification accuracy on a hold-out set of true data?
|
| 59 |
+
|
| 60 |
+
We observe that all the studied GANs have very low diversity in this metric. In particular, the accuracy achieved by a classifier trained on GAN data is comparable only to the accuracy of a classifier trained on a $1 0 0 \times$ (or more) subsampled version of the true dataset. Even if we draw more samples from the GANs to produce a training set several times larger than the true dataset, there is no improvement in performance. Looking at the classification accuracy gives us a way to compare different models on a potential downstream application of GANs. Interestingly, we find that visual quality of samples does not necessarily correlate with good classification performance.
|
| 61 |
+
|
| 62 |
+
# 2.3 RELATED WORK
|
| 63 |
+
|
| 64 |
+
In GAN literature, it is common to investigate performance using metrics that involve human supervision. Arora & Zhang (2017) proposed a measure based on manually counting duplicates in GAN samples as a heuristic for the support or diversity of the learned distribution. In Wu et al. (2016), manual classification of a small sample (100 images) of GAN generated MNIST images is used as a test for the GAN is missing certain modes. Such annotator-based metrics have clear advantages in identifying relevant failure-modes of synthetic samples, which explains why visual inspection (eyeballing) is still the most popular approach to assess GAN samples.
|
| 65 |
+
|
| 66 |
+
There have also been various attempts to build good metrics for GANs that are not based on manual heuristics. Parzen window estimation can be used to approximate the log-likelihood of the distribution, though it is known to work poorly for high-dimensional data (Theis et al., 2016). Wu et al. (2016) develop a method to get a better estimate for log-likelihood using annealed importance sampling. Salimans et al. (2016) propose a metric known as Inception Score, where the entropy in the labels predicted by a pre-trained Inception network is used to assess the diversity in GAN samples.
|
| 67 |
+
|
| 68 |
+
# 3 EXPERIMENTS
|
| 69 |
+
|
| 70 |
+
In the following sub-sections we describe the setup and results for our classification-based GAN benchmarks. Additional details can be found in Section 5 in the Appendix.
|
| 71 |
+
|
| 72 |
+
# 3.1 DATASETS
|
| 73 |
+
|
| 74 |
+
GANs have shown promise in generating realistic samples, resulting in efforts to apply them to a broad spectrum of datasets. However, the Large-scale CelebFaces Attributes (CelebA) (Liu et al., 2015) and Large-Scale Scene Understanding (LSUN) (Yu et al., 2015) datasets remain the most popular and canonical ones in developing and evaluating GAN variants. Conveniently, these datasets also have rich annotations, making them particularly suited for our classification–based evaluations. Details on the setup for classification tasks for these datasets are given in the Appendix (Section 5).
|
| 75 |
+
|
| 76 |
+
# 3.2 MODELS
|
| 77 |
+
|
| 78 |
+
Using our framework, we perform a comparative study of several popular variants of GANs:
|
| 79 |
+
|
| 80 |
+
1. Deep Convolutional GAN (DCGAN): Convolutional GAN trained using a Jensen–Shannon divergence–based objective (Goodfellow et al., 2014; Radford et al., 2015).
|
| 81 |
+
2. Wasserstein GAN (WGAN): GAN that uses a Wasserstein distance–based objective (Arjovsky et al., 2017).
|
| 82 |
+
3. Adversarially Learned Inference (ALI): GAN that uses joint adversarial training of generative and inference networks (Dumoulin et al., 2017).
|
| 83 |
+
4. Boundary Equilibrium GAN (BEGAN): Auto-encoder style GAN trained using Wasserstein distance objective (Berthelot et al., 2017).
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
Figure 1: Visualizations of mode collapse in the synthetic, GAN-generated data produced after training on our chosen subsets of CelebA and LSUN datasets. Left panel shows the relative distribution of classes in samples drawn from synthetic datasets extracted at the end of the training process, and compares is to the true data distribution (leftmost plots). On the right, shown is the evolution of analogous class distribution for different GANs over the course of training. BEGAN did not converge on the LSUN tasks and hence is excluded from the corresponding analysis.
|
| 87 |
+
|
| 88 |
+
5. Improved GAN (ImGAN): GAN that uses semi-supervised learning (labels are part of GAN training), with various other architectural and procedural improvements (Salimans et al., 2016).
|
| 89 |
+
|
| 90 |
+
All the aforementioned GANs are unconditional, however, ImGAN has access to class labels as a part of the semi-supervised training process. We use standard implementations for each of these models, details of which are provided in the Appendix (Section 5). We also used the prescribed hyper-parameter settings for each GAN, including number of iterations we train them for. Our analysis is based on $6 4 \times 6 4$ samples, which is a size at which GAN generated samples tend to be of high quality. We also use visual inspection to ascertain that the perceptual quality of GAN samples in our experiments is comparable to those reported in previous studies. We demonstrate sample images in Figures 2 and 3 in the Appendix. BEGAN did not converge in our experiments on the LSUN dataset and hence is excluded from the corresponding analysis.
|
| 91 |
+
|
| 92 |
+
In our study, we use two types of classification models:
|
| 93 |
+
|
| 94 |
+
1. ResNet: 32-Layer Residual network He et al. (2016). Here, we choose a ResNet as it is a standard classifier in vision and yields high accuracy on various datasets, making it a reliable baseline.
|
| 95 |
+
2. Linear Model: This is a network with one-fully connected layer between the input and output (no hidden layers) with a softmax non-linearity. If the dimensions of input $x$ and output $\hat { y }$ , are $D$ and $C$ (number of classes) respectively, then linear models implement the function $\bar { y } = \bar { \sigma ( W ^ { T } x + b ) }$ ,
|
| 96 |
+
|
| 97 |
+
where $W$ is a $D \times C$ matrix, $b$ is a $C \times 1$ vector and $\sigma ( \cdot )$ is the softmax function. Due to it’s simplicity, this model will serve as a useful baseline in some of our experiments.
|
| 98 |
+
|
| 99 |
+
We always train the classifiers to convergence, with decaying learning rate and no data augmentation.
|
| 100 |
+
|
| 101 |
+
# 3.3 EXAMINATION OF MODE COLLAPSE
|
| 102 |
+
|
| 103 |
+
Experimental results for quantifying mode collapse through classification tasks, described in Section 2.1, are presented below. Table 2 in the Appendix gives details on datasets (subsets of CelebA and LSUN) used in our analysis, such as size $( N )$ , number of classes $( C )$ , and accuracy of the annotator, i.e., a classifier pre-trained on true data, which is then used to label the synthetic, GANgenerated data. Figure 1 presents class distribution in synthetic data, as specified by these annotators. The left panel compares the relative distribution of modes in true data (uniform) with that in various GAN-generated datasets. Each of these datasets is created by drawing $N$ samples from the GAN after it was trained on the corresponding true dataset. The right panel illustrates the evolution of class distributions in various GANs over the course of training2.
|
| 104 |
+
|
| 105 |
+
Results: These visualization lead to the following findings:
|
| 106 |
+
|
| 107 |
+
• All GANs seem to suffer from significant mode-collapse. This becomes more apparent when the annotator granularity is increased, by considering a larger set of classes. For instance, one should compare the relatively balanced class distributions in the 3-class LSUN task to the near-absence of some modes in the 5-class task. • Mode collapse is prevalent in GANs throughout the training process, and does not seem to recede over time. Instead the dominant mode(s) often fluctuate wildly over the course of the training. • For each task, often there is a common set of modes onto which the distint GANs exhibit collapse.
|
| 108 |
+
|
| 109 |
+
In addition to viewing our method as an approach to analyze the mode collapse, we can also use it as a benchmark for GAN comparison. From this perspective, we can observe that, on CelebA, DCGAN and ALI learn somewhat balanced distributions, while WGAN, BEGAN and Improved GAN show prominent mode collapse. This is in contrast to the results obtained LSUN, where, for example, WGAN exhibit relatively small mode collapse, while ALI suffers from significant mode collapse even on the simple 3-class task. This highlights the general challenge in real world applications of GANs: they often perform well on the datasets they were designed for (e.g. ALI on CelebA and WGAN on LSUN), but extension to new datasets is not straightforward. Temporal analysis of mode-collapse shows that there is wide variation in the dominant mode for WGAN and Improved GAN, whereas for BEGAN, the same mode(s) often dominates the entire training process.
|
| 110 |
+
|
| 111 |
+
# 3.4 DIVERSITY EXPERIMENTS
|
| 112 |
+
|
| 113 |
+
Using the procedure outlined in Section 2.2, we perform a quantitative assessment of sample diversity in GANs on the CelebA and LSUN datasets. We restrict our experiments to binary classification as we find they have sufficient complexity to highlight the disparity between true and synthetic data. Selected results for classification-based evaluation of GANs are presented in Table 1. A more extensive study is presented in Table 3, and Figures 4 and 5 in the Appendix (Section 5).
|
| 114 |
+
|
| 115 |
+
As a preliminary check, we inspect the quality of our labeled GAN datasets. For this, we use high-accuracy annotators from Section 2.1 to predict labels for GAN generated data and measure consistency between the predicted and default labels (label correctness). We also inspect confidence scores, defined as the softmax probabilities for predicted class, of the annotator. The motivation behind these metrics is that if the classifier can correctly and with high-confidence predict labels for labeled GAN samples, then it is likely that they are convincing examples of that class, and hence of good “quality”. Empirical results for label agreement and annotator confidence of GAN generated datasets are shown in Tables 1 and 3, and Figure 4. We also report an equivalent Inception Score (Salimans et al., 2016), similar to that described in Section 2.3. Using the Inception network to get the label distribution may not be meaningful for face or scene images. Instead, we compute the Inception Score using the label distribution predicted from the annotator networks. Score is computed as $e x p ( \mathbb { E } _ { x } [ { \bf K L } ( p ( y | x ) ) | | p ( y ) ] )$ , where $y$ refers to label predictions from the annotators 3.
|
| 116 |
+
|
| 117 |
+
<table><tr><td rowspan=5 colspan=1>Task</td><td rowspan=1 colspan=13>Classification Performance</td></tr><tr><td rowspan=4 colspan=1>Data Source</td><td rowspan=4 colspan=2>LabelCorrectness(%)</td><td rowspan=4 colspan=2>Inception Score(μ±σ)</td><td rowspan=1 colspan=8>Accuracy (%)</td></tr><tr><td rowspan=1 colspan=7>Linear model</td><td rowspan=1 colspan=1>ResNet</td></tr><tr><td rowspan=1 colspan=5>↑1</td><td rowspan=1 colspan=2>↑10</td><td rowspan=1 colspan=1>↑</td></tr><tr><td rowspan=1 colspan=3>Train</td><td rowspan=1 colspan=2>Test</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=8 colspan=1>CelebASmiling (Y/N)# Images: 156160</td><td rowspan=3 colspan=1>TrueTrue↓64True↓256True、↓512True↓1024</td><td rowspan=3 colspan=2>92.4</td><td rowspan=3 colspan=2>1.69 ± 0.0074</td><td rowspan=2 colspan=3>85.787.691.593.7</td><td rowspan=3 colspan=2>85.685.082.480.076.2</td><td rowspan=3 colspan=1></td><td rowspan=3 colspan=1></td><td rowspan=1 colspan=1>92.4</td></tr><tr><td rowspan=2 colspan=1>87.882.177.871.2</td></tr><tr><td rowspan=1 colspan=3>95.0</td></tr><tr><td rowspan=5 colspan=1>DCGANWGANALIBEGANImproved GAN</td><td rowspan=5 colspan=2>96.198.293.393.598.4</td><td rowspan=5 colspan=2>1.67 ± 0.00281.68 ± 0.00311.71 ± 0.00271.74 ± 0.00281.88 ± 0.0021</td><td rowspan=2 colspan=3>100.096.8</td><td rowspan=2 colspan=2>77.183.4</td><td rowspan=2 colspan=1>100.096.8</td><td rowspan=2 colspan=1>77.183.5</td><td rowspan=2 colspan=1>63.365.3</td></tr><tr><td rowspan=1 colspan=2>27</td></tr><tr><td rowspan=1 colspan=3>94.5</td><td rowspan=3 colspan=2>80.169.570.2</td><td rowspan=3 colspan=1>95.098.5100.0</td><td rowspan=3 colspan=1>82.469.670.1</td><td rowspan=3 colspan=1>55.864.161.6</td></tr><tr><td rowspan=1 colspan=3>98.5</td></tr><tr><td rowspan=1 colspan=3>100.0</td></tr><tr><td rowspan=6 colspan=1>LSUNBedroom/Kitchen# Images: 200000</td><td rowspan=2 colspan=1>TrueTrue↓512True↓1024True↓2048True4096</td><td rowspan=2 colspan=2>98.2</td><td rowspan=2 colspan=2>1.94 ± 0.0217</td><td rowspan=1 colspan=3>64.764.765.298.7</td><td rowspan=2 colspan=2>64.164.064.056.255.1</td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1>99.176.466.956.555.1</td></tr><tr><td rowspan=1 colspan=3>100.0</td><td rowspan=1 colspan=1>.0</td><td rowspan=1 colspan=1>55.1</td></tr><tr><td rowspan=4 colspan=1>DCGANWGANALIImproved GAN</td><td rowspan=4 colspan=2>92.787.880.484.2</td><td rowspan=1 colspan=2>1.85± 0.0036</td><td rowspan=1 colspan=2>90</td><td rowspan=1 colspan=2>90.8</td><td rowspan=1 colspan=2>56.5</td><td rowspan=1 colspan=1>91.2</td><td rowspan=1 colspan=1>56.3</td><td rowspan=4 colspan=1>51.255.750.551.2</td></tr><tr><td rowspan=2 colspan=1>87.880.4</td><td rowspan=1 colspan=2>1.70 ± 0.0023</td><td rowspan=1 colspan=3>86.2</td><td rowspan=1 colspan=1>58</td><td rowspan=1 colspan=1>96.3</td><td rowspan=2 colspan=1>54.150.8</td></tr><tr><td rowspan=2 colspan=2>1.62 ± 0.00261.68 ± 0.0030</td><td rowspan=1 colspan=3>80.7</td><td rowspan=1 colspan=2>49.7</td><td rowspan=1 colspan=1>81.7</td></tr><tr><td rowspan=1 colspan=3>91.6</td><td rowspan=1 colspan=2>55.9</td><td rowspan=1 colspan=1>90.8</td><td rowspan=1 colspan=1>56.5</td></tr></table>
|
| 118 |
+
|
| 119 |
+
Table 1: Select results from the comparative study on classification performance of true data vs. GANs on the CelebA and LSUN datasets. Label correctness measures the agreement between default labels for the synthetic datasets, and those predicted by the annotator, a classifier trained on true data. Shown alongside are the equivalent inception scores computed using labels predicted by the annotator (rather than an Inception Network). Training and test accuracies for a linear model on the various true and synthetic datasets are reported. Also presented are the corresponding accuracies for this classifier trained on down-sampled true data $\left( \downarrow _ { M } \right)$ and oversampled synthetic data $( \uparrow _ { L } )$ . Test accuracy for ResNets trained on these datasets is also shown (training accuracy was always $1 0 0 \%$ ), though it is noticeable that deep networks suffer from issues when trained on synthetic datasets.
|
| 120 |
+
|
| 121 |
+
Next, we train classifiers using the true and labeled GAN-generated datasets and study their performance in terms of accuracy on a hold-out set of true data. ResNets (and other deep variants) yield good classification performance on true data, but suffer from severe overfitting on the synthetic data, leading to poor test accuracy. This already indicates a possible problem with GANs and the diversity of the data they generate. But to highlight this problem better and avoid the issues that stem from overfitting, we also look for a classifier which does not always overfit on the synthetic data. We, however, observed that even training simple networks, such as one fully connected layer with few hidden units, led to overfitting on synthetic data. Hence, we resorted to a very basic linear model described in Section 3.2. Tables 1 and 3 shows results from binary classification experiments using linear models, with the training and test accuracies of the classifier on various datasets.
|
| 122 |
+
|
| 123 |
+
Finally, to get a better understanding of the underlying ”diversity” of synthetic datasets, we train linear models using down-sampled versions of true data (no augmentation), and compare this to the performance of synthetic data, as shown in Tables 1 and 3. Down-sampling the data by a factor of $M$ , denoted as $\downarrow _ { M }$ implies selecting a random $N / M$ subset of the data $D$ . Visualizations of how GAN classification performance compares with (down-sampled) true data are in Figure 5 in the Appendix. A natural argument in the defense of GANs is that we can oversample them, i.e. generate datasets much larger than the size of training data. Results for linear models trained using a 10-fold oversampling of GANs (drawing $1 0 N$ samples), denoted by $\uparrow _ { 1 0 }$ , are show in Tables 1 and 3.
|
| 124 |
+
|
| 125 |
+
Results: The major findings from these experiments are:
|
| 126 |
+
|
| 127 |
+
• Based on Tables 1 and 3, and Figure 4, we see strong agreement between annotator labels and true labels for synthetic data, on par with the scores for the test set of true data. It is thus apparent that the GAN images are of high-quality, as expected based on the visual inspection. These scores are lower for LSUN than CelebA, potentially due to lower quality of generated LSUN images. From these results, we can get a broad understanding of how good GANs are at producing convincing/representative samples from different classes across datasets. This also shows that simple classification-based benchmarks can highlight relevant properties of synthetic datasets.
|
| 128 |
+
|
| 129 |
+
• The equivalent inception score is not very informative and is similar for the true (hold-out set) and synthetic datasets. This is not surprising given the simple nature of our binary classification task and the fact that the true and synthetic datasets have almost a uniform distribution over labels. • It is evident from Table 1 that there is a large performance gap between true and synthetic data on classification tasks. Inspection of training accuracies shows that linear models are able to nearly fit the synthetic datasets, but are grossly underfitting on true data. Given the high scores of synthetic data on the previous experiments to assess dataset ‘quality’ (Tables 1 and 3, and Figure 4), it is likely that the poor classification performance is more indicative of lack of ‘diversity’. Comparing GAN performance to that of down-sampled true data reveals that the learned distribution, which was trained on datasets that have around hundred thousand data points exhibits diversity that is on par with what only mere couple of hundreds of true data samples constitute! This shows that, at least from the point of view of classification, the diversity of the GAN generated data is severely lacking. • Oversampling GANs by 10-fold to produce larger datasets does not improve classification performance. The disparity between true and synthetic data remains nearly unchanged even after this significant oversampling, further highlighting the lack of diversity in GANs.
|
| 130 |
+
|
| 131 |
+
In terms of the conclusions of relative performance of various GANs, we observe that WGAN and ALI (on CelebA) perform better than the other GANs. While BEGAN samples have good perceptual quality (see Figure 2), they consistently perform badly on our classification tasks. On the other hand, WGAN samples have relatively poor visual quality but seem to outperform other GANs in classification tasks. This is a strong indicator of the need to consider other metrics, such as the ones proposed in this paper, in addition to visual inspection to study GANs. For LSUN, the gap between true and synthetic data is much larger, with the classifiers getting near random performance on all the synthetic datasets. Note that these classifiers get poor test accuracy on LSUN but are not overfitting on the training data. In this case, we speculate the lower performance could be due to both lower quality and diversity of LSUN samples.
|
| 132 |
+
|
| 133 |
+
In summary, our key experimental finding is that even simple classification–based tests can hold tremendous potential to shed insight on the learned distribution in GANs. This not only helps us to get a deeper understanding of many of the underlying issues, but also provides with a more quantitative and rigorous platform on which to compare different GANs. Our techniques could, in principle, be also applied to assess other generative models such as Variational Auto-Encoders (VAEs) Kingma & Welling (2014). However, VAEs have significant problems in generating realistic samples on the datasets used in our analysis in the first place – see Arora & Zhang (2017).
|
| 134 |
+
|
| 135 |
+
# 4 CONCLUSIONS
|
| 136 |
+
|
| 137 |
+
In this paper, we put forth techniques for examining the ability of GANs to capture key characteristics of the training data, through the lens of classification. Our tools are scalable, quantitative and automatic (no need for visual inspection of images). They thus are capable of studying state-ofthe-art GANs on realistic, large-scale image datasets. Further, they serve as a mean to perform a nuanced comparison of GANs and to identify their relative merits, including properties that cannot be discerned from mere visual inspection.
|
| 138 |
+
|
| 139 |
+
We then use the developed techniques to perform empirical studies on popular GANs on the CelebA and LSUN datasets. Our examination shows that mode collapse is indeed a prevalent issue for GANs. Also, we observe that synthetic GAN-generated datasets have significantly reduced diversity, at least when examined from a classification perspective. In fact, the diversity of such synthetic data is often few orders of magnitude smaller than that of the true data. Furthermore, this gap in diversity does not seem to be bridged by simply producing much larger datasets by oversampling GANs. Finally, we also notice that good perceptual quality of samples does not necessarily correlate – and might sometime even anti-correlate – with distribution diversity. These findings suggest that we need to go beyond the visual inspection–based evaluations and look for more quantitative tools for assessing quality of GANs, such as the ones presented in this paper.
|
| 140 |
+
|
| 141 |
+
# REFERENCES
|
| 142 |
+
|
| 143 |
+
Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. ´ In International Conference on Machine Learning, pp. 214–223, 2017.
|
| 144 |
+
|
| 145 |
+
Sanjeev Arora and Yi Zhang. Do GANs actually learn the distribution? An empirical study. arXiv preprint arXiv:1706.08224, 2017.
|
| 146 |
+
|
| 147 |
+
David Berthelot, Tom Schumm, and Luke Metz. BEGAN: Boundary equilibrium generative adversarial networks. arXiv preprint arXiv:1703.10717, 2017.
|
| 148 |
+
|
| 149 |
+
Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a laplacian pyramid of adversarial networks. In Advances in neural information processing systems, pp. 1486–1494, 2015.
|
| 150 |
+
|
| 151 |
+
Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Alex Lamb, Martin Arjovsky, Olivier Mastropietro, and Aaron Courville. Adversarially learned inference. In International Conference on Learning Representations, Apr 2017. URL https://arxiv.org/abs/1606.00704.
|
| 152 |
+
|
| 153 |
+
Ian Goodfellow. Nips 2016 tutorial: Generative adversarial networks. arXiv preprint arXiv:1701.00160, 2016.
|
| 154 |
+
|
| 155 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
|
| 156 |
+
|
| 157 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 158 |
+
|
| 159 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In International Conference on Learning Representations, Apr 2014. URL https://arxiv.org/abs/1312.6114.
|
| 160 |
+
|
| 161 |
+
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), 2015.
|
| 162 |
+
|
| 163 |
+
Luke Metz, Ben Poole, David Pfau, and Jascha Sohl-Dickstein. Unrolled generative adversarial networks. arXiv preprint arXiv:1611.02163, 2016.
|
| 164 |
+
|
| 165 |
+
Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
|
| 166 |
+
|
| 167 |
+
David Rolnick, Andreas Veit, Serge Belongie, and Nir Shavit. Deep learning is robust to massive label noise. arXiv preprint arXiv:1705.10694, 2017.
|
| 168 |
+
|
| 169 |
+
Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In Advances in Neural Information Processing Systems, pp. 2234–2242, 2016.
|
| 170 |
+
|
| 171 |
+
Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Joshua Susskind, Wenda Wang, and Russell Webb. Learning from simulated and unsupervised images through adversarial training. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 172 |
+
|
| 173 |
+
L. Theis, A. van den Oord, and M. Bethge. A note on the evaluation of generative models. In International Conference on Learning Representations, Apr 2016. URL http://arxiv.org/ abs/1511.01844.
|
| 174 |
+
|
| 175 |
+
Yuhuai Wu, Yuri Burda, Ruslan Salakhutdinov, and Roger Grosse. On the quantitative analysis of decoder-based generative models. arXiv preprint arXiv:1611.04273, 2016.
|
| 176 |
+
|
| 177 |
+
Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. LSUN: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
|
| 178 |
+
|
| 179 |
+
Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaolei Huang, Xiaogang Wang, and Dimitris Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. arXiv preprint arXiv:1612.03242, 2016.
|
| 180 |
+
|
| 181 |
+
Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. arXiv preprint arXiv:1703.10593, 2017.
|
| 182 |
+
|
| 183 |
+
# 5 APPENDIX
|
| 184 |
+
|
| 185 |
+
# 5.1 EXPERIMENTAL SETUP
|
| 186 |
+
|
| 187 |
+
# 5.1.1 DATASETS FOR CLASSIFICATION TASKS
|
| 188 |
+
|
| 189 |
+
To assess GAN performance from the perspective of classification, we construct a set of classification tasks on the CelebA and LSUN datasets. In the case of the LSUN dataset, images are annotated with scene category labels, which makes it straightforward to use this data for binary and multiclass classification. On the other hand, each image in the CelebA dataset is labeled with 40 binary attributes. As a result, a single image has multiple associated attribute labels. Here, we construct classification tasks can by considering binary combinations of an attribute(s) (examples are shown in Figure 2). Attributes used in our experiments were chosen such that the resulting dataset was large, and classifiers trained on true data got high-accuracy so as to be good annotators for the synthetic data. Details on datasets used in our classification tasks, such as training set size $( N )$ , number of classes $( C )$ , and accuracy of the annotator, i.e., a classifier pre-trained on true data which is used to label the synthetic GAN-generated data, are provided in Table 2.
|
| 190 |
+
|
| 191 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1>C</td><td rowspan=1 colspan=1>Annotator's Accuracy (%)</td></tr><tr><td rowspan=1 colspan=1>CelebA: Makeup, Smiling</td><td rowspan=1 colspan=1>102,436</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>90.9, 92.4</td></tr><tr><td rowspan=1 colspan=1>CelebA: Male, Mouth Open</td><td rowspan=1 colspan=1>115,660</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>97.9, 93.5</td></tr><tr><td rowspan=1 colspan=1>CelebA: Bangs, Smiling</td><td rowspan=1 colspan=1>45,196</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>93.9,92.4</td></tr><tr><td rowspan=1 colspan=1>LSUN: Bedroom, Kitchen, Classroom</td><td rowspan=1 colspan=1>150,000</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>98.7</td></tr><tr><td rowspan=1 colspan=1>LSUN: Bedroom, Conference Room, Dining Room,Kitchen,Living Room</td><td rowspan=1 colspan=1>250,000</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>93.7</td></tr></table>
|
| 192 |
+
|
| 193 |
+
Table 2: Details of CelebA and LSUN subsets used for the studies in Section 3.3. Here, we use a classifier trained on true data as an annotator that let’s us infer label distribution for the synthetic, GAN-generated data. $N$ is the size of the training set and $C$ is the number of classes in the true and synthetic datasets. Annotator’s accuracy refers to the accuracy of the classifier on a test set of true data. For CelebA, we use a combination of attribute-wise binary classifiers as annotators due their higher accuracy compared to a single classifier trained jointly on all the four classes.
|
| 194 |
+
|
| 195 |
+
# 5.1.2 MODELS
|
| 196 |
+
|
| 197 |
+
Benchmarks were performed on standard implementations - • DCGAN: https://github.com/carpedm20/DCGAN-tensorflow • WGAN: https://github.com/martinarjovsky/WassersteinGAN • ALI: https://github.com/IshmaelBelghazi/ALI • BEGAN :https://github.com/carpedm20/BEGAN-tensorflow • Improved GAN: https://github.com/openai/improved-gan • ResNet Classifier: Variation of the standard TensorFlow ResNet https://github.com/ tensorflow/models/blob/master/research/resnet/resnet_model.py
|
| 198 |
+
|
| 199 |
+
# 5.2 ADDITION EXPERIMENTAL RESULTS
|
| 200 |
+
|
| 201 |
+
# 5.2.1 SAMPLE QUALITY
|
| 202 |
+
|
| 203 |
+
For each of our benchmark experiments, we ascertain that the visual quality of samples produced by the GANs is comparable to that reported in prior work. Examples of random samples drawn for multi-class datasets from both true and synthetic data are shown in Figure 2 for the CelebA dataset, and in Figure!3 for the LSUN dataset.
|
| 204 |
+
|
| 205 |
+
# 5.2.2 MODE COLLAPSE EXPERIMENTS
|
| 206 |
+
|
| 207 |
+
In the studies to observe mode collapse in GANs described in Sections 2.1 and 3.3, we use a pretrained classifier as an annotator to obtain the class distribution for datasets generated from unconditional GANs. Figure 4 shows histograms of annotator confidence for the datasets used for benchmarking listed in Table 2. As can be seen in these figures, the annotator confidence for the synthetic data is comparable to that on the hold-out set of true data. Thus, it seems likely that the
|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
Figure 2: Illustration of datasets from CelebA used in proposed classification-based benchmarks to evaluate GANs. Shown alongside are images sampled from various unconditional GANs trained on this dataset. Labels for the GAN samples are obtained using a pre-trained classifier as an annotator.
|
| 211 |
+
|
| 212 |
+
GAN generated samples are of good quality and are truly representative examples of their respective classes, as expected based on visual inspection.
|
| 213 |
+
|
| 214 |
+
# 5.2.3 DIVERSITY EXPERIMENTS
|
| 215 |
+
|
| 216 |
+
Table 3 presents an extension of the comparative study of classification performance of true and GAN generated data provided in Table 1. Visualizations of how test accuracies of a linear model classifier trained on GAN data compares with one trained on true data is shown in Figure 5. For each task, the bold curve shows test accuracy of a classifier trained on true data as a function of true dataset size. A down-sampling factor of $M$ corresponds to training the classifier on a random $N / M$ subset of true data. The dashed curves show test accuracy of classifiers trained on GAN datasets, obtained by drawing $N$ samples from GANs at the culmination of the training process. Based on these visualizations, it is apparent that GANs have comparable classification performance to a subset of training data that is more than a $1 0 0 \mathbf { x }$ smaller. Thus, from the perspective of classification, GANs have diversity on par with a few hundred true data samples.
|
| 217 |
+
|
| 218 |
+

|
| 219 |
+
(b) 5-class dataset from LSUN for Bedroom, Conference Room, Dining Room, Kitchen, Living Room.
|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
Figure 3: Illustration of datasets from LSUN used in proposed classification-based benchmarks to evaluate GANs. Shown alongside are images sampled from various unconditional GANs trained on this dataset. Labels for the GAN samples are obtained using a pre-trained classifier as an annotator.
|
| 223 |
+
Figure 4: Histograms of annotator confidence (softmax probability) during label prediction on true data (test set) and synthetic data for tasks on the CelebA and LSUN datasets (see Section 3.4).
|
| 224 |
+
|
| 225 |
+

|
| 226 |
+
Figure 5: Illustration of the classification performance of true data compared with GAN-generated synthetic datasets based on experiments described in Section 3.4. Classification is performed using a basic linear model, described in Section 3.2, and performance is reported in terms of accuracy on a hold-out set of true data. In the plots, the bold curve captures the classification performance of models trained on true data vs the size of the true dataset (maximum size is $N$ ). Dashed lines represent performance of classifiers trained on various GAN-generated datasets of size $N$ . These plots indicate that GAN samples have ”diversity” comparable to a small subset (few hundred samples) of true data. Here the notion of diversity is one that is relevant for classification tasks.
|
| 227 |
+
|
| 228 |
+
<table><tr><td rowspan=5 colspan=1>Task</td><td rowspan=1 colspan=8>Classification Performance</td></tr><tr><td rowspan=4 colspan=1>Data Source</td><td rowspan=4 colspan=1>LabelCorrectness(%)</td><td rowspan=4 colspan=1>Inception Score(μ±σ)</td><td rowspan=1 colspan=5>Accuracy (%)</td></tr><tr><td rowspan=1 colspan=4>Linear model</td><td rowspan=1 colspan=1>ResNet</td></tr><tr><td rowspan=1 colspan=2>↑1</td><td rowspan=1 colspan=2>↑10</td><td rowspan=1 colspan=1>↑1</td></tr><tr><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=6 colspan=1>CelebAMale (Y/N)# Images: 136522</td><td rowspan=2 colspan=1>TrueTrue↓64True↓256True↓512True↓1024</td><td rowspan=2 colspan=1>97.9</td><td rowspan=2 colspan=1>1.98 ± 0.0033</td><td rowspan=2 colspan=1>88.189.691.696.3100.0</td><td rowspan=2 colspan=1>88.888.786.983.883.1</td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1></td><td rowspan=1 colspan=1>97.992.9</td></tr><tr><td rowspan=1 colspan=1>89.882.681.4</td></tr><tr><td rowspan=4 colspan=1>DCGANWGANALIBEGANImproved GAN</td><td rowspan=4 colspan=1>98.298.399.299.399.8</td><td rowspan=4 colspan=1>1.97± 0.00131.97 ± 0.00131.99 ± 0.00081.99 ± 0.00061.99 ± 0.0004</td><td rowspan=4 colspan=1>100.096.795.897.9100.0</td><td rowspan=4 colspan=1>79.284.086.778.075.6</td><td rowspan=4 colspan=1>100.096.795.898.0100.0</td><td rowspan=1 colspan=1>79.6</td><td rowspan=1 colspan=1>56.4</td></tr><tr><td rowspan=3 colspan=1>83.986.778.271.0</td><td rowspan=1 colspan=1>50.0</td></tr><tr><td rowspan=1 colspan=1>58.9</td></tr><tr><td rowspan=1 colspan=1>55.471.7</td></tr><tr><td rowspan=4 colspan=1>CelebASmiling (Y/N)# Images: 156160</td><td rowspan=2 colspan=1>TrueTrue64True↓256True↓512True↓1024</td><td rowspan=2 colspan=1>92.4</td><td rowspan=2 colspan=1>1.69 ± 0.0074</td><td rowspan=2 colspan=1>85.787.691.593.795.0</td><td rowspan=2 colspan=1>85.685.082.480.076.2</td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1></td><td rowspan=1 colspan=1>92.487.8</td></tr><tr><td rowspan=1 colspan=1>82.177.871.2</td></tr><tr><td rowspan=2 colspan=1>DCGANWGANALIBEGANImproved GAN</td><td rowspan=2 colspan=1>96.198.293.393.598.4</td><td rowspan=1 colspan=1>1.67± 0.00281.68 ± 0.00311.71 ± 0.0027</td><td rowspan=1 colspan=1>100.096.894.5</td><td rowspan=1 colspan=1>77.183.480.1</td><td rowspan=1 colspan=1>100.096.895.0</td><td rowspan=1 colspan=1>77.183.582.4</td><td rowspan=1 colspan=1>63.365.355.8</td></tr><tr><td rowspan=1 colspan=1>1.74 ± 0.00281.88 ± 0.0021</td><td rowspan=1 colspan=1>98.5100.0</td><td rowspan=1 colspan=1>69.570.2</td><td rowspan=1 colspan=1>98.5100.0</td><td rowspan=1 colspan=1>69.670.1</td><td rowspan=1 colspan=1>64.161.6</td></tr><tr><td rowspan=2 colspan=1>CelebABlack Hair (Y/N)#Images: 77812</td><td rowspan=1 colspan=1>TrueTrue↓64True↓256True↓512True↓1024</td><td rowspan=1 colspan=1>84.5</td><td rowspan=1 colspan=1>1.68 ± 0.0112</td><td rowspan=1 colspan=1>76.479.786.389100.0</td><td rowspan=1 colspan=1>76.575.472.668.765.4</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>84.580.075.873.972.7</td></tr><tr><td rowspan=1 colspan=1>DCGANWGANALIBEGANImproved GAN</td><td rowspan=1 colspan=1>86.776.079.487.686.7</td><td rowspan=1 colspan=1>1.68 ± 0.00401.60 ± 0.00551.63 ± 0.00281.74 ± 0.00281.64 ± 0.0045</td><td rowspan=1 colspan=1>100.094.494.994.1100.0</td><td rowspan=1 colspan=1>70.973.771.067.670.3</td><td rowspan=1 colspan=1>100.094.394.994.1100.0</td><td rowspan=1 colspan=1>70.573.470.267.769.1</td><td rowspan=1 colspan=1>53.458.555.767.270.2</td></tr><tr><td rowspan=3 colspan=1>LSUNBedroom/Kitchen#Images: 200000</td><td rowspan=1 colspan=1>TrueTrue↓512True↓1024True↓2048True4096</td><td rowspan=1 colspan=1>98.2</td><td rowspan=1 colspan=1>1.94 ± 0.0217</td><td rowspan=1 colspan=1>64.764.765.298.7100.0</td><td rowspan=1 colspan=1>64.164.064.056.255.1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>99.176.466.956.555.1</td></tr><tr><td rowspan=2 colspan=1>DCGANWGANALIImproved GAN</td><td rowspan=2 colspan=1>92.787.880.484.2</td><td rowspan=1 colspan=1>1.85± 0.00361.70 ± 0.0023</td><td rowspan=1 colspan=1>90.886.2</td><td rowspan=1 colspan=1>56.558.2</td><td rowspan=1 colspan=1>91.296.3</td><td rowspan=1 colspan=1>56.354.1</td><td rowspan=1 colspan=1>31.255.7</td></tr><tr><td rowspan=1 colspan=1>1.62 ± 0.00261.68 ± 0.0030</td><td rowspan=1 colspan=1>80.791.6</td><td rowspan=1 colspan=1>49.755.9</td><td rowspan=1 colspan=1>81.790.8</td><td rowspan=1 colspan=1>50.856.5</td><td rowspan=1 colspan=1>50.551.2</td></tr></table>
|
| 229 |
+
|
| 230 |
+
Table 3: Detailed version of the comparative study of the classification performance of true data and GANs on the CelebA and LSUN datasets shown in Table 1, based on experiments described in Section 3.4. Label correctness measures the agreement between default labels for the synthetic datasets, and those predicted by the annotator, a classifier trained on the true data. Shown alongside are the equivalent inception scores computed using labels predicted by the annotator (instead of the Inception Network). Training and test accuracies for a linear model classifier on the various true and synthetic datasets are reported. Also presented are the corresponding accuracies for a linear model trained on down-sampled true data $\left( \downarrow _ { M } \right)$ and oversampled synthetic data $( \uparrow _ { L } )$ . Test accuracy for ResNets trained on these datasets is also shown (training accuracy was always $1 0 0 \%$ ), though it is noticeable that deep networks suffer from issues when trained on synthetic datasets.
|
parse/train/S1FQEfZA-/S1FQEfZA-_content_list.json
ADDED
|
@@ -0,0 +1,1298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,
|
| 8 |
+
98,
|
| 9 |
+
720,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "A fundamental, and still largely unanswered, question in the context of Generative Adversarial Networks (GANs) is whether GANs are actually able to capture the key characteristics of the datasets they are trained on. The current approaches to examining this issue require significant human supervision, such as visual inspection of sampled images, and often offer only fairly limited scalability. In this paper, we propose new techniques that employ classification–based perspective to evaluate synthetic GAN distributions and their capability to accurately reflect the essential properties of the training data. These techniques require only minimal human supervision and can easily be scaled and adapted to evaluate a variety of state-of-the-art GANs on large, popular datasets. They also indicate that GANs have significant problems in reproducing the more distributional properties of the training dataset. In particular, the diversity of such synthetic data is orders of magnitude smaller than that of the original data. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
268,
|
| 43 |
+
764,
|
| 44 |
+
449
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
472,
|
| 55 |
+
336,
|
| 56 |
+
488
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Generative Adversarial Networks (GANs) (Goodfellow et al., 2014) have garnered a significant amount of attention due to their ability to learn generative models of multiple natural image datasets (Radford et al., 2015; Denton et al., 2015; Zhang et al., 2016; Zhu et al., 2017). Since their conception, a fundamental question regarding GANs is to what extent they truly learn the underlying data distribution. This is a key issue for multiple reasons. From a scientific perspective, understanding the capabilities of common GANs can shed light on what precisely the adversarial training setup allows the GAN to learn. From an engineering standpoint, it is important to grasp the power and limitations of the GAN framework when applying it in concrete applications. Due to the broad potential applicability of GANs, researchers have investigated this question in a variety of ways. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
498,
|
| 66 |
+
825,
|
| 67 |
+
625
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "When we evaluate the quality of a GAN, an obvious first check is to establish that the generated samples lie in the support of the true distribution. In the case of images, this corresponds to checking if the generated samples look realistic. Indeed, visual inspection of generated images is currently the most common way of assessing the quality of a given GAN. Individual humans can performs this task quickly and reliably, and various GANs have achieved impressive results for generating realistic-looking images of faces and indoor scenes (Salimans et al., 2016; Denton et al., 2015). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
631,
|
| 77 |
+
825,
|
| 78 |
+
714
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Once we have established that GANs produce realistic-looking images, the next concern is that the GAN might simply be memorizing the training dataset. While this hypothesis cannot be ruled out entirely, there is evidence that GANs perform at least some non-trivial modeling of the unknown distribution. Previous studies show that interpolations in the latent space of the generator produce novel and meaningful image variations (Radford et al., 2015), and that there is a clear disparity between generated samples and their nearest neighbors in the true dataset (Arora & Zhang, 2017). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
722,
|
| 88 |
+
825,
|
| 89 |
+
805
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Taken together, these results provide evidence that GANs could constitute successful distribution learning algorithms, which motivates studying their distributions in more detail. The direct approach is to compare the probability density assigned by the generator with estimates of the true distribution (Wu et al., 2016). However, in the context of GANs and high-dimensional image distributions, this is complicated by two factors. First, GANs do not naturally provide probability estimates for their samples. Second, estimating the probability density of the true distribution is a challenging problem itself (the adversarial training framework specifically avoids this issue). Hence prior work has only investigated the probability density of GANs on simple datasets such as MNIST (Wu et al., 2016). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
811,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Since reliably computing probability densities in high dimensions is challenging, we can instead study the behavior of GANs in low-dimensional problems such as two-dimensional Gaussian mixtures. Here, a common failure of GANs is mode collapse, wherein the generator assigns a disproportionately large mass to a subset of modes from the true distribution (Goodfellow, 2016). This raises concerns about a lack of diversity in the synthetic GAN distributions, and recent work shows that the learned distributions of two common GANs indeed have (moderately) low support size for the CelebA dataset (Arora & Zhang, 2017). However, the approach of Arora & Zhang (2017) heavily relies on a human annotator in order to identify duplicates. Hence it does not easily scale to comparing many variants of GANs or asking more fine-grained questions than collision statistics. Overall, our understanding of synthetic GAN distributions remains blurry, largely due to the lack of versatile tools for a quantitative evaluation of GANs in realistic settings. The focus of this work is precisly to address this question: ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
103,
|
| 110 |
+
825,
|
| 111 |
+
268
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Can we develop principled and quantitative approaches to study synthetic GAN distributions? ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
187,
|
| 121 |
+
279,
|
| 122 |
+
808,
|
| 123 |
+
292
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "To this end, we propose two new evaluation techniques for synthetic GAN distributions. Our methods are inspired by the idea of comparing moments of distributions, which is at the heart of many methods in classical statistics. Although simple moments of high-dimensional distributions are often not semantically meaningful, we can extend this idea to distributions of realistic images by leveraging image statistics identified using convolutional neural networks. In particular, we train image classifiers in order to construct test functions corresponding to semantically meaningful properties of the distributions. An important feature of our approach is that it requires only light human supervision and can easily be scaled to evaluating many GANs and large synthetic datasets. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
301,
|
| 133 |
+
823,
|
| 134 |
+
412
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Using our new evaluation techniques, we study five state-of-the-art GANs on the CelebA and LSUN datasets, arguably the two most common testbeds for advanced GANs. We find that most of the GANs significantly distort the relative frequency of even basic image attributes, such as the hair style of a person or the type of room in an indoor scene. This clearly indicates a mismatch between the true and synthetic distributions. Moreover, we conduct experiments to explore the diversity of GAN distributions. We use synthetic GAN data to train image classifiers and find that these have significantly lower accuracy than classifiers trained on the true data set. This points towards a lack of diversity in the GAN data, and again towards a discrepancy between the true and synthetic distributions. In fact, our additional examinations show that the diversity in GANs is only comparable to a subset of the true data that is $1 0 0 \\times$ smaller. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
420,
|
| 144 |
+
825,
|
| 145 |
+
558
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "2 UNDERSTANDING GANS THROUGH THE LENS OF CLASSIFICATION",
|
| 152 |
+
"text_level": 1,
|
| 153 |
+
"bbox": [
|
| 154 |
+
173,
|
| 155 |
+
571,
|
| 156 |
+
759,
|
| 157 |
+
588
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "When comparing two distributions, a common first test is to compute low-order moments such as the mean and the variance. If the distributions are simple enough, these quantities provide a good understanding for how similar they are. Moreover, low-order moments have a precise definition and are usually quick to compute. On the other hand, low-order moments can also be misleading for more complicated, high-dimensional distributions. As a concrete example, consider a generative model of digits (such as MNIST). If a generator produces digits that are shifted by a significant amount yet otherwise perfect, we will probably still consider this as a good approximation of the true distribution. However, the expectation (mean moment) of the generator distribution can be very different from the expectation of the true data distribution. This raises the question of what other properties of high-dimensional image distributions are easy to test yet semantically meaningful. ",
|
| 164 |
+
"bbox": [
|
| 165 |
+
174,
|
| 166 |
+
601,
|
| 167 |
+
825,
|
| 168 |
+
739
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "In the next two subsections, we describe two concrete approaches to evaluate synthetic GAN data that are easy to compute yet capture relevant information about the distribution. The common theme is that we employ convolutional neural networks in order to capture properties of the distributions that are hard to describe in a mathematically precise way, but usually well-defined for a human (e.g., what fraction of the images shows a smiling person?). Automating the process of annotating images with such high-level information will allow us to study various aspects of synthetic GAN data. ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
174,
|
| 177 |
+
747,
|
| 178 |
+
825,
|
| 179 |
+
830
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "2.1 QUANTIFYING MODE COLLAPSE",
|
| 186 |
+
"text_level": 1,
|
| 187 |
+
"bbox": [
|
| 188 |
+
176,
|
| 189 |
+
842,
|
| 190 |
+
442,
|
| 191 |
+
856
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Mode collapse refers to the tendency of the generator to concentrate a large probability mass on a few modes of the true distribution. While there is ample evidence for the presence of mode-collapse in GANs (Goodfellow, 2016; Arora & Zhang, 2017; Metz et al., 2016), elegant visualizations of this phenomena are somewhat restricted to toy problems on low-dimensional distributions (Goodfellow, ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
176,
|
| 200 |
+
868,
|
| 201 |
+
823,
|
| 202 |
+
924
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "2016; Metz et al., 2016). For image datasets, it is common to rely on human annotators and derived heuristics (see Section 2.3). While these methods have their merits, they are restrictive both in the scale and granularity of testing. Here we propose a classification-based tool to assess how good GANs are at assigning the right mass across broad concepts/modes. To do so, we use a trained classifier as an expert “annotator” that labels important features in synthetic data, and then analyze the resulting distribution. Specifically, our goal is to investigate if a GAN trained on a well-balanced dataset (i.e., contains equal number of samples from each class) can learn to reproduce this balanced structure. Let $D = ( \\dot { X } , Y ) = \\{ ( x _ { i } , y _ { i } ) \\} _ { i = 1 } ^ { N }$ represent a dataset of size $N$ with $C$ classes, where $( x _ { i } , y _ { i } )$ denote an image-label pair drawn from true data. If the dataset $D$ is balanced, it contains $N / C$ images per class. The procedure for computing class distribution in synthetic data is: ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
174,
|
| 211 |
+
103,
|
| 212 |
+
825,
|
| 213 |
+
242
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 2
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "1. Train an annotator (a multi-class classifier) using the dataset $D$ . \n2. Train an unconditional GAN on the images $X$ from dataset $D$ , without using class labels. \n3. Create a synthetic dataset by sampling $N$ images from a GAN and labeling them using the annotator from Step 1. ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
184,
|
| 222 |
+
250,
|
| 223 |
+
825,
|
| 224 |
+
308
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "The annotated data generated via the above procedure can provide insight into the GAN’s class distribution at the scale of the entire dataset. Moreover, we can vary the granularity of mode analysis by choosing richer classification tasks, i.e., more challenging classes or a larger number of them. In Section 3.3, we use this technique to visualize mode collapse in several state-of-the-art GANs on the CelebA and LSUN datasets. All the studied GANs show significant mode collapse and the effect becomes more pronounced when the granularity of the annotator is increased (larger number of classes). We also investigate the temporal aspect of the GAN setup and find that the dominant mode varies widely over the course of training. Our approach also enables us to benchmark and compare GANs on different datasets based on the extent of mode collapse in the learned distributions. ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
174,
|
| 233 |
+
315,
|
| 234 |
+
825,
|
| 235 |
+
440
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "2.2 MEASURING DIVERSITY ",
|
| 242 |
+
"text_level": 1,
|
| 243 |
+
"bbox": [
|
| 244 |
+
176,
|
| 245 |
+
449,
|
| 246 |
+
382,
|
| 247 |
+
463
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "Our above method for inspecting distribution of modes in synthetic data provides a coarse look at the statistics of the underlying distribution. While the resulting quantities are semantically meaningful, they capture only simple notions of diversity. To get a more holistic view on the sample diversity in the synthetic distribution, we now describe a second classification-based approach for evaluating GAN distributions. The main question that motivates it is: Can GANs recover the key aspects of real data to enable training a good classifier? We believe that this is an interesting measure of sample diversity for two reasons. First, classification of high-dimensional image data is a challenging problem, so a good training dataset will require a sufficiently diverse sample from the distribution. Second, augmenting data for classification problems is one of the proposed use cases of GANs (e.g., see the recent work of Shrivastava et al. (2017)). ",
|
| 254 |
+
"bbox": [
|
| 255 |
+
174,
|
| 256 |
+
473,
|
| 257 |
+
825,
|
| 258 |
+
612
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 2
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "If GANs are truly able to capture the quality and diversity of the underlying data distribution, we expect almost no gap between classifiers trained on true data and synthetic data from a GAN. A generic method to produce data from GANs for classification is to train separate GANs for each class in the dataset $D$ .1 Samples from these class-wise GANs can then be pooled together to get a labeled synthetic dataset. Note that the labels are trivially determined based on the class modeled by the particular GAN from which a sample is drawn. We perform the following steps to assess the classification performance of synthetic data vs. true data: ",
|
| 265 |
+
"bbox": [
|
| 266 |
+
174,
|
| 267 |
+
619,
|
| 268 |
+
825,
|
| 269 |
+
717
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "1. Train a classifier on the true data $D$ (from Section 2.1) as a benchmark for comparison. 2. Train $C$ separate unconditional GANs, one per class in dataset D. 3. Generate a balanced synthetic labeled dataset of size $_ \\mathrm { N }$ by consolidating an equal number of samples drawn from each of these $C$ GANs. The labels obtained by aggregating samples from per-class GANs are designated as “default” labels for the synthetic dataset. Note that by design, both true and synthetic datasets have $N$ samples, with $N / C$ examples per class. 4. Use synthetic labeled data from Step 3 to train classifier with the same architecture as Step 1. ",
|
| 276 |
+
"bbox": [
|
| 277 |
+
184,
|
| 278 |
+
723,
|
| 279 |
+
825,
|
| 280 |
+
825
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "Comparing the classifiers from Steps 1 and 4 can then shed light on the disparity between the two distributions. Radford et al. (2015) conducted an experiment similar to Step 2 on the MNIST dataset using a conditional GAN. They found that samples from their DCGAN performed comparably to true data on nearest neighbor classification. We obtained similar good results on MNIST, which could be due to the efficacy of GANs in learning the MNIST distribution or due to the ease of getting good accuracy on MNIST even with a small training set (Rolnick et al., 2017). To clarify this question, we restrict our analysis to more complex datasets, specifically CelebA and LSUN. ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
176,
|
| 289 |
+
832,
|
| 290 |
+
825,
|
| 291 |
+
887
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "",
|
| 298 |
+
"bbox": [
|
| 299 |
+
174,
|
| 300 |
+
103,
|
| 301 |
+
825,
|
| 302 |
+
146
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 3
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "We evaluate the two following properties in our classification task: ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
174,
|
| 311 |
+
152,
|
| 312 |
+
609,
|
| 313 |
+
167
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 3
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "(i) How well can the GANs recover nuances of the decision boundary, which is reflected by how easily the classifier can fit the training data? \n(ii) How does the diversity of synthetic data compare to that of true data when measured by classification accuracy on a hold-out set of true data? ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
178,
|
| 322 |
+
174,
|
| 323 |
+
825,
|
| 324 |
+
244
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "We observe that all the studied GANs have very low diversity in this metric. In particular, the accuracy achieved by a classifier trained on GAN data is comparable only to the accuracy of a classifier trained on a $1 0 0 \\times$ (or more) subsampled version of the true dataset. Even if we draw more samples from the GANs to produce a training set several times larger than the true dataset, there is no improvement in performance. Looking at the classification accuracy gives us a way to compare different models on a potential downstream application of GANs. Interestingly, we find that visual quality of samples does not necessarily correlate with good classification performance. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
252,
|
| 334 |
+
825,
|
| 335 |
+
349
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "2.3 RELATED WORK ",
|
| 342 |
+
"text_level": 1,
|
| 343 |
+
"bbox": [
|
| 344 |
+
176,
|
| 345 |
+
359,
|
| 346 |
+
331,
|
| 347 |
+
375
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 3
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "In GAN literature, it is common to investigate performance using metrics that involve human supervision. Arora & Zhang (2017) proposed a measure based on manually counting duplicates in GAN samples as a heuristic for the support or diversity of the learned distribution. In Wu et al. (2016), manual classification of a small sample (100 images) of GAN generated MNIST images is used as a test for the GAN is missing certain modes. Such annotator-based metrics have clear advantages in identifying relevant failure-modes of synthetic samples, which explains why visual inspection (eyeballing) is still the most popular approach to assess GAN samples. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
174,
|
| 356 |
+
385,
|
| 357 |
+
825,
|
| 358 |
+
483
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 3
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "There have also been various attempts to build good metrics for GANs that are not based on manual heuristics. Parzen window estimation can be used to approximate the log-likelihood of the distribution, though it is known to work poorly for high-dimensional data (Theis et al., 2016). Wu et al. (2016) develop a method to get a better estimate for log-likelihood using annealed importance sampling. Salimans et al. (2016) propose a metric known as Inception Score, where the entropy in the labels predicted by a pre-trained Inception network is used to assess the diversity in GAN samples. ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
489,
|
| 368 |
+
825,
|
| 369 |
+
573
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 3
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "3 EXPERIMENTS ",
|
| 376 |
+
"text_level": 1,
|
| 377 |
+
"bbox": [
|
| 378 |
+
174,
|
| 379 |
+
585,
|
| 380 |
+
326,
|
| 381 |
+
602
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 3
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "In the following sub-sections we describe the setup and results for our classification-based GAN benchmarks. Additional details can be found in Section 5 in the Appendix. ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
174,
|
| 390 |
+
613,
|
| 391 |
+
823,
|
| 392 |
+
642
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 3
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "3.1 DATASETS ",
|
| 399 |
+
"text_level": 1,
|
| 400 |
+
"bbox": [
|
| 401 |
+
174,
|
| 402 |
+
652,
|
| 403 |
+
287,
|
| 404 |
+
666
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "GANs have shown promise in generating realistic samples, resulting in efforts to apply them to a broad spectrum of datasets. However, the Large-scale CelebFaces Attributes (CelebA) (Liu et al., 2015) and Large-Scale Scene Understanding (LSUN) (Yu et al., 2015) datasets remain the most popular and canonical ones in developing and evaluating GAN variants. Conveniently, these datasets also have rich annotations, making them particularly suited for our classification–based evaluations. Details on the setup for classification tasks for these datasets are given in the Appendix (Section 5). ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
174,
|
| 413 |
+
678,
|
| 414 |
+
825,
|
| 415 |
+
762
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "3.2 MODELS ",
|
| 422 |
+
"text_level": 1,
|
| 423 |
+
"bbox": [
|
| 424 |
+
174,
|
| 425 |
+
772,
|
| 426 |
+
276,
|
| 427 |
+
786
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 3
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "Using our framework, we perform a comparative study of several popular variants of GANs: ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
176,
|
| 436 |
+
797,
|
| 437 |
+
781,
|
| 438 |
+
813
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "1. Deep Convolutional GAN (DCGAN): Convolutional GAN trained using a Jensen–Shannon divergence–based objective (Goodfellow et al., 2014; Radford et al., 2015). \n2. Wasserstein GAN (WGAN): GAN that uses a Wasserstein distance–based objective (Arjovsky et al., 2017). \n3. Adversarially Learned Inference (ALI): GAN that uses joint adversarial training of generative and inference networks (Dumoulin et al., 2017). \n4. Boundary Equilibrium GAN (BEGAN): Auto-encoder style GAN trained using Wasserstein distance objective (Berthelot et al., 2017). ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
171,
|
| 447 |
+
811,
|
| 448 |
+
826,
|
| 449 |
+
924
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 3
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "image",
|
| 455 |
+
"img_path": "images/62ced381625d83d2930cddcf355b5368dc556dd7a50f2dae5311314091417820.jpg",
|
| 456 |
+
"image_caption": [
|
| 457 |
+
"Figure 1: Visualizations of mode collapse in the synthetic, GAN-generated data produced after training on our chosen subsets of CelebA and LSUN datasets. Left panel shows the relative distribution of classes in samples drawn from synthetic datasets extracted at the end of the training process, and compares is to the true data distribution (leftmost plots). On the right, shown is the evolution of analogous class distribution for different GANs over the course of training. BEGAN did not converge on the LSUN tasks and hence is excluded from the corresponding analysis. "
|
| 458 |
+
],
|
| 459 |
+
"image_footnote": [],
|
| 460 |
+
"bbox": [
|
| 461 |
+
230,
|
| 462 |
+
99,
|
| 463 |
+
769,
|
| 464 |
+
569
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 4
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "5. Improved GAN (ImGAN): GAN that uses semi-supervised learning (labels are part of GAN training), with various other architectural and procedural improvements (Salimans et al., 2016). ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
174,
|
| 473 |
+
678,
|
| 474 |
+
823,
|
| 475 |
+
707
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 4
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "All the aforementioned GANs are unconditional, however, ImGAN has access to class labels as a part of the semi-supervised training process. We use standard implementations for each of these models, details of which are provided in the Appendix (Section 5). We also used the prescribed hyper-parameter settings for each GAN, including number of iterations we train them for. Our analysis is based on $6 4 \\times 6 4$ samples, which is a size at which GAN generated samples tend to be of high quality. We also use visual inspection to ascertain that the perceptual quality of GAN samples in our experiments is comparable to those reported in previous studies. We demonstrate sample images in Figures 2 and 3 in the Appendix. BEGAN did not converge in our experiments on the LSUN dataset and hence is excluded from the corresponding analysis. ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
707,
|
| 485 |
+
825,
|
| 486 |
+
832
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 4
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "In our study, we use two types of classification models: ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
173,
|
| 495 |
+
839,
|
| 496 |
+
535,
|
| 497 |
+
853
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 4
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "1. ResNet: 32-Layer Residual network He et al. (2016). Here, we choose a ResNet as it is a standard classifier in vision and yields high accuracy on various datasets, making it a reliable baseline. \n2. Linear Model: This is a network with one-fully connected layer between the input and output (no hidden layers) with a softmax non-linearity. If the dimensions of input $x$ and output $\\hat { y }$ , are $D$ and $C$ (number of classes) respectively, then linear models implement the function $\\bar { y } = \\bar { \\sigma ( W ^ { T } x + b ) }$ , ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
174,
|
| 506 |
+
854,
|
| 507 |
+
825,
|
| 508 |
+
924
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 4
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "where $W$ is a $D \\times C$ matrix, $b$ is a $C \\times 1$ vector and $\\sigma ( \\cdot )$ is the softmax function. Due to it’s simplicity, this model will serve as a useful baseline in some of our experiments. ",
|
| 515 |
+
"bbox": [
|
| 516 |
+
184,
|
| 517 |
+
103,
|
| 518 |
+
821,
|
| 519 |
+
132
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 5
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "text",
|
| 525 |
+
"text": "We always train the classifiers to convergence, with decaying learning rate and no data augmentation. ",
|
| 526 |
+
"bbox": [
|
| 527 |
+
176,
|
| 528 |
+
133,
|
| 529 |
+
820,
|
| 530 |
+
147
|
| 531 |
+
],
|
| 532 |
+
"page_idx": 5
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"type": "text",
|
| 536 |
+
"text": "3.3 EXAMINATION OF MODE COLLAPSE ",
|
| 537 |
+
"text_level": 1,
|
| 538 |
+
"bbox": [
|
| 539 |
+
178,
|
| 540 |
+
156,
|
| 541 |
+
465,
|
| 542 |
+
171
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 5
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Experimental results for quantifying mode collapse through classification tasks, described in Section 2.1, are presented below. Table 2 in the Appendix gives details on datasets (subsets of CelebA and LSUN) used in our analysis, such as size $( N )$ , number of classes $( C )$ , and accuracy of the annotator, i.e., a classifier pre-trained on true data, which is then used to label the synthetic, GANgenerated data. Figure 1 presents class distribution in synthetic data, as specified by these annotators. The left panel compares the relative distribution of modes in true data (uniform) with that in various GAN-generated datasets. Each of these datasets is created by drawing $N$ samples from the GAN after it was trained on the corresponding true dataset. The right panel illustrates the evolution of class distributions in various GANs over the course of training2. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
174,
|
| 551 |
+
181,
|
| 552 |
+
825,
|
| 553 |
+
306
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 5
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "Results: These visualization lead to the following findings: ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
173,
|
| 562 |
+
313,
|
| 563 |
+
563,
|
| 564 |
+
327
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 5
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "• All GANs seem to suffer from significant mode-collapse. This becomes more apparent when the annotator granularity is increased, by considering a larger set of classes. For instance, one should compare the relatively balanced class distributions in the 3-class LSUN task to the near-absence of some modes in the 5-class task. • Mode collapse is prevalent in GANs throughout the training process, and does not seem to recede over time. Instead the dominant mode(s) often fluctuate wildly over the course of the training. • For each task, often there is a common set of modes onto which the distint GANs exhibit collapse. ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
173,
|
| 573 |
+
334,
|
| 574 |
+
825,
|
| 575 |
+
431
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 5
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "In addition to viewing our method as an approach to analyze the mode collapse, we can also use it as a benchmark for GAN comparison. From this perspective, we can observe that, on CelebA, DCGAN and ALI learn somewhat balanced distributions, while WGAN, BEGAN and Improved GAN show prominent mode collapse. This is in contrast to the results obtained LSUN, where, for example, WGAN exhibit relatively small mode collapse, while ALI suffers from significant mode collapse even on the simple 3-class task. This highlights the general challenge in real world applications of GANs: they often perform well on the datasets they were designed for (e.g. ALI on CelebA and WGAN on LSUN), but extension to new datasets is not straightforward. Temporal analysis of mode-collapse shows that there is wide variation in the dominant mode for WGAN and Improved GAN, whereas for BEGAN, the same mode(s) often dominates the entire training process. ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
173,
|
| 584 |
+
439,
|
| 585 |
+
825,
|
| 586 |
+
578
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 5
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "text",
|
| 592 |
+
"text": "3.4 DIVERSITY EXPERIMENTS ",
|
| 593 |
+
"text_level": 1,
|
| 594 |
+
"bbox": [
|
| 595 |
+
176,
|
| 596 |
+
588,
|
| 597 |
+
398,
|
| 598 |
+
602
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 5
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "Using the procedure outlined in Section 2.2, we perform a quantitative assessment of sample diversity in GANs on the CelebA and LSUN datasets. We restrict our experiments to binary classification as we find they have sufficient complexity to highlight the disparity between true and synthetic data. Selected results for classification-based evaluation of GANs are presented in Table 1. A more extensive study is presented in Table 3, and Figures 4 and 5 in the Appendix (Section 5). ",
|
| 605 |
+
"bbox": [
|
| 606 |
+
174,
|
| 607 |
+
612,
|
| 608 |
+
823,
|
| 609 |
+
683
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 5
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "text",
|
| 615 |
+
"text": "As a preliminary check, we inspect the quality of our labeled GAN datasets. For this, we use high-accuracy annotators from Section 2.1 to predict labels for GAN generated data and measure consistency between the predicted and default labels (label correctness). We also inspect confidence scores, defined as the softmax probabilities for predicted class, of the annotator. The motivation behind these metrics is that if the classifier can correctly and with high-confidence predict labels for labeled GAN samples, then it is likely that they are convincing examples of that class, and hence of good “quality”. Empirical results for label agreement and annotator confidence of GAN generated datasets are shown in Tables 1 and 3, and Figure 4. We also report an equivalent Inception Score (Salimans et al., 2016), similar to that described in Section 2.3. Using the Inception network to get the label distribution may not be meaningful for face or scene images. Instead, we compute the Inception Score using the label distribution predicted from the annotator networks. Score is computed as $e x p ( \\mathbb { E } _ { x } [ { \\bf K L } ( p ( y | x ) ) | | p ( y ) ] )$ , where $y$ refers to label predictions from the annotators 3. ",
|
| 616 |
+
"bbox": [
|
| 617 |
+
174,
|
| 618 |
+
689,
|
| 619 |
+
825,
|
| 620 |
+
856
|
| 621 |
+
],
|
| 622 |
+
"page_idx": 5
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"type": "table",
|
| 626 |
+
"img_path": "images/4bb0f4aa710c2382ee298e41b8a26b84bf836dc9d0b6f8bc4c2bd49e0baac201.jpg",
|
| 627 |
+
"table_caption": [],
|
| 628 |
+
"table_footnote": [],
|
| 629 |
+
"table_body": "<table><tr><td rowspan=5 colspan=1>Task</td><td rowspan=1 colspan=13>Classification Performance</td></tr><tr><td rowspan=4 colspan=1>Data Source</td><td rowspan=4 colspan=2>LabelCorrectness(%)</td><td rowspan=4 colspan=2>Inception Score(μ±σ)</td><td rowspan=1 colspan=8>Accuracy (%)</td></tr><tr><td rowspan=1 colspan=7>Linear model</td><td rowspan=1 colspan=1>ResNet</td></tr><tr><td rowspan=1 colspan=5>↑1</td><td rowspan=1 colspan=2>↑10</td><td rowspan=1 colspan=1>↑</td></tr><tr><td rowspan=1 colspan=3>Train</td><td rowspan=1 colspan=2>Test</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=8 colspan=1>CelebASmiling (Y/N)# Images: 156160</td><td rowspan=3 colspan=1>TrueTrue↓64True↓256True、↓512True↓1024</td><td rowspan=3 colspan=2>92.4</td><td rowspan=3 colspan=2>1.69 ± 0.0074</td><td rowspan=2 colspan=3>85.787.691.593.7</td><td rowspan=3 colspan=2>85.685.082.480.076.2</td><td rowspan=3 colspan=1></td><td rowspan=3 colspan=1></td><td rowspan=1 colspan=1>92.4</td></tr><tr><td rowspan=2 colspan=1>87.882.177.871.2</td></tr><tr><td rowspan=1 colspan=3>95.0</td></tr><tr><td rowspan=5 colspan=1>DCGANWGANALIBEGANImproved GAN</td><td rowspan=5 colspan=2>96.198.293.393.598.4</td><td rowspan=5 colspan=2>1.67 ± 0.00281.68 ± 0.00311.71 ± 0.00271.74 ± 0.00281.88 ± 0.0021</td><td rowspan=2 colspan=3>100.096.8</td><td rowspan=2 colspan=2>77.183.4</td><td rowspan=2 colspan=1>100.096.8</td><td rowspan=2 colspan=1>77.183.5</td><td rowspan=2 colspan=1>63.365.3</td></tr><tr><td rowspan=1 colspan=2>27</td></tr><tr><td rowspan=1 colspan=3>94.5</td><td rowspan=3 colspan=2>80.169.570.2</td><td rowspan=3 colspan=1>95.098.5100.0</td><td rowspan=3 colspan=1>82.469.670.1</td><td rowspan=3 colspan=1>55.864.161.6</td></tr><tr><td rowspan=1 colspan=3>98.5</td></tr><tr><td rowspan=1 colspan=3>100.0</td></tr><tr><td rowspan=6 colspan=1>LSUNBedroom/Kitchen# Images: 200000</td><td rowspan=2 colspan=1>TrueTrue↓512True↓1024True↓2048True4096</td><td rowspan=2 colspan=2>98.2</td><td rowspan=2 colspan=2>1.94 ± 0.0217</td><td rowspan=1 colspan=3>64.764.765.298.7</td><td rowspan=2 colspan=2>64.164.064.056.255.1</td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1>99.176.466.956.555.1</td></tr><tr><td rowspan=1 colspan=3>100.0</td><td rowspan=1 colspan=1>.0</td><td rowspan=1 colspan=1>55.1</td></tr><tr><td rowspan=4 colspan=1>DCGANWGANALIImproved GAN</td><td rowspan=4 colspan=2>92.787.880.484.2</td><td rowspan=1 colspan=2>1.85± 0.0036</td><td rowspan=1 colspan=2>90</td><td rowspan=1 colspan=2>90.8</td><td rowspan=1 colspan=2>56.5</td><td rowspan=1 colspan=1>91.2</td><td rowspan=1 colspan=1>56.3</td><td rowspan=4 colspan=1>51.255.750.551.2</td></tr><tr><td rowspan=2 colspan=1>87.880.4</td><td rowspan=1 colspan=2>1.70 ± 0.0023</td><td rowspan=1 colspan=3>86.2</td><td rowspan=1 colspan=1>58</td><td rowspan=1 colspan=1>96.3</td><td rowspan=2 colspan=1>54.150.8</td></tr><tr><td rowspan=2 colspan=2>1.62 ± 0.00261.68 ± 0.0030</td><td rowspan=1 colspan=3>80.7</td><td rowspan=1 colspan=2>49.7</td><td rowspan=1 colspan=1>81.7</td></tr><tr><td rowspan=1 colspan=3>91.6</td><td rowspan=1 colspan=2>55.9</td><td rowspan=1 colspan=1>90.8</td><td rowspan=1 colspan=1>56.5</td></tr></table>",
|
| 630 |
+
"bbox": [
|
| 631 |
+
176,
|
| 632 |
+
102,
|
| 633 |
+
823,
|
| 634 |
+
438
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 6
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "Table 1: Select results from the comparative study on classification performance of true data vs. GANs on the CelebA and LSUN datasets. Label correctness measures the agreement between default labels for the synthetic datasets, and those predicted by the annotator, a classifier trained on true data. Shown alongside are the equivalent inception scores computed using labels predicted by the annotator (rather than an Inception Network). Training and test accuracies for a linear model on the various true and synthetic datasets are reported. Also presented are the corresponding accuracies for this classifier trained on down-sampled true data $\\left( \\downarrow _ { M } \\right)$ and oversampled synthetic data $( \\uparrow _ { L } )$ . Test accuracy for ResNets trained on these datasets is also shown (training accuracy was always $1 0 0 \\%$ ), though it is noticeable that deep networks suffer from issues when trained on synthetic datasets. ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
173,
|
| 643 |
+
453,
|
| 644 |
+
825,
|
| 645 |
+
579
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 6
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "Next, we train classifiers using the true and labeled GAN-generated datasets and study their performance in terms of accuracy on a hold-out set of true data. ResNets (and other deep variants) yield good classification performance on true data, but suffer from severe overfitting on the synthetic data, leading to poor test accuracy. This already indicates a possible problem with GANs and the diversity of the data they generate. But to highlight this problem better and avoid the issues that stem from overfitting, we also look for a classifier which does not always overfit on the synthetic data. We, however, observed that even training simple networks, such as one fully connected layer with few hidden units, led to overfitting on synthetic data. Hence, we resorted to a very basic linear model described in Section 3.2. Tables 1 and 3 shows results from binary classification experiments using linear models, with the training and test accuracies of the classifier on various datasets. ",
|
| 652 |
+
"bbox": [
|
| 653 |
+
174,
|
| 654 |
+
588,
|
| 655 |
+
825,
|
| 656 |
+
727
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 6
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "Finally, to get a better understanding of the underlying ”diversity” of synthetic datasets, we train linear models using down-sampled versions of true data (no augmentation), and compare this to the performance of synthetic data, as shown in Tables 1 and 3. Down-sampling the data by a factor of $M$ , denoted as $\\downarrow _ { M }$ implies selecting a random $N / M$ subset of the data $D$ . Visualizations of how GAN classification performance compares with (down-sampled) true data are in Figure 5 in the Appendix. A natural argument in the defense of GANs is that we can oversample them, i.e. generate datasets much larger than the size of training data. Results for linear models trained using a 10-fold oversampling of GANs (drawing $1 0 N$ samples), denoted by $\\uparrow _ { 1 0 }$ , are show in Tables 1 and 3. ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
173,
|
| 665 |
+
734,
|
| 666 |
+
825,
|
| 667 |
+
847
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 6
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "Results: The major findings from these experiments are: ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
173,
|
| 676 |
+
853,
|
| 677 |
+
547,
|
| 678 |
+
867
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 6
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "• Based on Tables 1 and 3, and Figure 4, we see strong agreement between annotator labels and true labels for synthetic data, on par with the scores for the test set of true data. It is thus apparent that the GAN images are of high-quality, as expected based on the visual inspection. These scores are lower for LSUN than CelebA, potentially due to lower quality of generated LSUN images. From these results, we can get a broad understanding of how good GANs are at producing convincing/representative samples from different classes across datasets. This also shows that simple classification-based benchmarks can highlight relevant properties of synthetic datasets. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
176,
|
| 687 |
+
868,
|
| 688 |
+
825,
|
| 689 |
+
924
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 6
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "",
|
| 696 |
+
"bbox": [
|
| 697 |
+
184,
|
| 698 |
+
103,
|
| 699 |
+
823,
|
| 700 |
+
145
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 7
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "• The equivalent inception score is not very informative and is similar for the true (hold-out set) and synthetic datasets. This is not surprising given the simple nature of our binary classification task and the fact that the true and synthetic datasets have almost a uniform distribution over labels. • It is evident from Table 1 that there is a large performance gap between true and synthetic data on classification tasks. Inspection of training accuracies shows that linear models are able to nearly fit the synthetic datasets, but are grossly underfitting on true data. Given the high scores of synthetic data on the previous experiments to assess dataset ‘quality’ (Tables 1 and 3, and Figure 4), it is likely that the poor classification performance is more indicative of lack of ‘diversity’. Comparing GAN performance to that of down-sampled true data reveals that the learned distribution, which was trained on datasets that have around hundred thousand data points exhibits diversity that is on par with what only mere couple of hundreds of true data samples constitute! This shows that, at least from the point of view of classification, the diversity of the GAN generated data is severely lacking. • Oversampling GANs by 10-fold to produce larger datasets does not improve classification performance. The disparity between true and synthetic data remains nearly unchanged even after this significant oversampling, further highlighting the lack of diversity in GANs. ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
173,
|
| 709 |
+
145,
|
| 710 |
+
825,
|
| 711 |
+
366
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 7
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "In terms of the conclusions of relative performance of various GANs, we observe that WGAN and ALI (on CelebA) perform better than the other GANs. While BEGAN samples have good perceptual quality (see Figure 2), they consistently perform badly on our classification tasks. On the other hand, WGAN samples have relatively poor visual quality but seem to outperform other GANs in classification tasks. This is a strong indicator of the need to consider other metrics, such as the ones proposed in this paper, in addition to visual inspection to study GANs. For LSUN, the gap between true and synthetic data is much larger, with the classifiers getting near random performance on all the synthetic datasets. Note that these classifiers get poor test accuracy on LSUN but are not overfitting on the training data. In this case, we speculate the lower performance could be due to both lower quality and diversity of LSUN samples. ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
173,
|
| 720 |
+
368,
|
| 721 |
+
825,
|
| 722 |
+
507
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 7
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "In summary, our key experimental finding is that even simple classification–based tests can hold tremendous potential to shed insight on the learned distribution in GANs. This not only helps us to get a deeper understanding of many of the underlying issues, but also provides with a more quantitative and rigorous platform on which to compare different GANs. Our techniques could, in principle, be also applied to assess other generative models such as Variational Auto-Encoders (VAEs) Kingma & Welling (2014). However, VAEs have significant problems in generating realistic samples on the datasets used in our analysis in the first place – see Arora & Zhang (2017). ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
174,
|
| 731 |
+
513,
|
| 732 |
+
825,
|
| 733 |
+
611
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 7
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "4 CONCLUSIONS ",
|
| 740 |
+
"text_level": 1,
|
| 741 |
+
"bbox": [
|
| 742 |
+
176,
|
| 743 |
+
623,
|
| 744 |
+
328,
|
| 745 |
+
638
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 7
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "In this paper, we put forth techniques for examining the ability of GANs to capture key characteristics of the training data, through the lens of classification. Our tools are scalable, quantitative and automatic (no need for visual inspection of images). They thus are capable of studying state-ofthe-art GANs on realistic, large-scale image datasets. Further, they serve as a mean to perform a nuanced comparison of GANs and to identify their relative merits, including properties that cannot be discerned from mere visual inspection. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
173,
|
| 754 |
+
650,
|
| 755 |
+
825,
|
| 756 |
+
733
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 7
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "We then use the developed techniques to perform empirical studies on popular GANs on the CelebA and LSUN datasets. Our examination shows that mode collapse is indeed a prevalent issue for GANs. Also, we observe that synthetic GAN-generated datasets have significantly reduced diversity, at least when examined from a classification perspective. In fact, the diversity of such synthetic data is often few orders of magnitude smaller than that of the true data. Furthermore, this gap in diversity does not seem to be bridged by simply producing much larger datasets by oversampling GANs. Finally, we also notice that good perceptual quality of samples does not necessarily correlate – and might sometime even anti-correlate – with distribution diversity. These findings suggest that we need to go beyond the visual inspection–based evaluations and look for more quantitative tools for assessing quality of GANs, such as the ones presented in this paper. ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
173,
|
| 765 |
+
739,
|
| 766 |
+
825,
|
| 767 |
+
880
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 7
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "REFERENCES ",
|
| 774 |
+
"text_level": 1,
|
| 775 |
+
"bbox": [
|
| 776 |
+
176,
|
| 777 |
+
102,
|
| 778 |
+
287,
|
| 779 |
+
118
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 8
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. ´ In International Conference on Machine Learning, pp. 214–223, 2017. ",
|
| 786 |
+
"bbox": [
|
| 787 |
+
171,
|
| 788 |
+
128,
|
| 789 |
+
823,
|
| 790 |
+
159
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 8
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "Sanjeev Arora and Yi Zhang. Do GANs actually learn the distribution? An empirical study. arXiv preprint arXiv:1706.08224, 2017. ",
|
| 797 |
+
"bbox": [
|
| 798 |
+
171,
|
| 799 |
+
166,
|
| 800 |
+
823,
|
| 801 |
+
195
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 8
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "David Berthelot, Tom Schumm, and Luke Metz. BEGAN: Boundary equilibrium generative adversarial networks. arXiv preprint arXiv:1703.10717, 2017. ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
169,
|
| 810 |
+
205,
|
| 811 |
+
823,
|
| 812 |
+
234
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 8
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "Emily L Denton, Soumith Chintala, Rob Fergus, et al. Deep generative image models using a laplacian pyramid of adversarial networks. In Advances in neural information processing systems, pp. 1486–1494, 2015. ",
|
| 819 |
+
"bbox": [
|
| 820 |
+
171,
|
| 821 |
+
243,
|
| 822 |
+
823,
|
| 823 |
+
286
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 8
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "Vincent Dumoulin, Ishmael Belghazi, Ben Poole, Alex Lamb, Martin Arjovsky, Olivier Mastropietro, and Aaron Courville. Adversarially learned inference. In International Conference on Learning Representations, Apr 2017. URL https://arxiv.org/abs/1606.00704. ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
173,
|
| 832 |
+
296,
|
| 833 |
+
821,
|
| 834 |
+
340
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 8
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Ian Goodfellow. Nips 2016 tutorial: Generative adversarial networks. arXiv preprint arXiv:1701.00160, 2016. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
171,
|
| 843 |
+
348,
|
| 844 |
+
825,
|
| 845 |
+
378
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 8
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
|
| 852 |
+
"bbox": [
|
| 853 |
+
173,
|
| 854 |
+
387,
|
| 855 |
+
821,
|
| 856 |
+
431
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 8
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
|
| 863 |
+
"bbox": [
|
| 864 |
+
173,
|
| 865 |
+
439,
|
| 866 |
+
821,
|
| 867 |
+
483
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 8
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "text",
|
| 873 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In International Conference on Learning Representations, Apr 2014. URL https://arxiv.org/abs/1312.6114. ",
|
| 874 |
+
"bbox": [
|
| 875 |
+
169,
|
| 876 |
+
492,
|
| 877 |
+
823,
|
| 878 |
+
522
|
| 879 |
+
],
|
| 880 |
+
"page_idx": 8
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"type": "text",
|
| 884 |
+
"text": "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), 2015. ",
|
| 885 |
+
"bbox": [
|
| 886 |
+
173,
|
| 887 |
+
530,
|
| 888 |
+
818,
|
| 889 |
+
560
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 8
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "Luke Metz, Ben Poole, David Pfau, and Jascha Sohl-Dickstein. Unrolled generative adversarial networks. arXiv preprint arXiv:1611.02163, 2016. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
173,
|
| 898 |
+
569,
|
| 899 |
+
820,
|
| 900 |
+
599
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 8
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. ",
|
| 907 |
+
"bbox": [
|
| 908 |
+
173,
|
| 909 |
+
608,
|
| 910 |
+
823,
|
| 911 |
+
637
|
| 912 |
+
],
|
| 913 |
+
"page_idx": 8
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"type": "text",
|
| 917 |
+
"text": "David Rolnick, Andreas Veit, Serge Belongie, and Nir Shavit. Deep learning is robust to massive label noise. arXiv preprint arXiv:1705.10694, 2017. ",
|
| 918 |
+
"bbox": [
|
| 919 |
+
173,
|
| 920 |
+
646,
|
| 921 |
+
823,
|
| 922 |
+
676
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 8
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training GANs. In Advances in Neural Information Processing Systems, pp. 2234–2242, 2016. ",
|
| 929 |
+
"bbox": [
|
| 930 |
+
173,
|
| 931 |
+
685,
|
| 932 |
+
825,
|
| 933 |
+
728
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 8
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Joshua Susskind, Wenda Wang, and Russell Webb. Learning from simulated and unsupervised images through adversarial training. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. ",
|
| 940 |
+
"bbox": [
|
| 941 |
+
176,
|
| 942 |
+
737,
|
| 943 |
+
823,
|
| 944 |
+
781
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 8
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "L. Theis, A. van den Oord, and M. Bethge. A note on the evaluation of generative models. In International Conference on Learning Representations, Apr 2016. URL http://arxiv.org/ abs/1511.01844. ",
|
| 951 |
+
"bbox": [
|
| 952 |
+
174,
|
| 953 |
+
790,
|
| 954 |
+
823,
|
| 955 |
+
833
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 8
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "Yuhuai Wu, Yuri Burda, Ruslan Salakhutdinov, and Roger Grosse. On the quantitative analysis of decoder-based generative models. arXiv preprint arXiv:1611.04273, 2016. ",
|
| 962 |
+
"bbox": [
|
| 963 |
+
169,
|
| 964 |
+
843,
|
| 965 |
+
823,
|
| 966 |
+
872
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 8
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. LSUN: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015. ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
881,
|
| 976 |
+
825,
|
| 977 |
+
924
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 8
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaolei Huang, Xiaogang Wang, and Dimitris Metaxas. Stackgan: Text to photo-realistic image synthesis with stacked generative adversarial networks. arXiv preprint arXiv:1612.03242, 2016. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
176,
|
| 986 |
+
103,
|
| 987 |
+
823,
|
| 988 |
+
146
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 9
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. arXiv preprint arXiv:1703.10593, 2017. ",
|
| 995 |
+
"bbox": [
|
| 996 |
+
173,
|
| 997 |
+
155,
|
| 998 |
+
823,
|
| 999 |
+
184
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 9
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "5 APPENDIX ",
|
| 1006 |
+
"text_level": 1,
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
174,
|
| 1009 |
+
102,
|
| 1010 |
+
294,
|
| 1011 |
+
118
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 10
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "5.1 EXPERIMENTAL SETUP ",
|
| 1018 |
+
"text_level": 1,
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
174,
|
| 1021 |
+
128,
|
| 1022 |
+
375,
|
| 1023 |
+
145
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 10
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "5.1.1 DATASETS FOR CLASSIFICATION TASKS ",
|
| 1030 |
+
"text_level": 1,
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
176,
|
| 1033 |
+
154,
|
| 1034 |
+
503,
|
| 1035 |
+
167
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 10
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "To assess GAN performance from the perspective of classification, we construct a set of classification tasks on the CelebA and LSUN datasets. In the case of the LSUN dataset, images are annotated with scene category labels, which makes it straightforward to use this data for binary and multiclass classification. On the other hand, each image in the CelebA dataset is labeled with 40 binary attributes. As a result, a single image has multiple associated attribute labels. Here, we construct classification tasks can by considering binary combinations of an attribute(s) (examples are shown in Figure 2). Attributes used in our experiments were chosen such that the resulting dataset was large, and classifiers trained on true data got high-accuracy so as to be good annotators for the synthetic data. Details on datasets used in our classification tasks, such as training set size $( N )$ , number of classes $( C )$ , and accuracy of the annotator, i.e., a classifier pre-trained on true data which is used to label the synthetic GAN-generated data, are provided in Table 2. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
173,
|
| 1044 |
+
178,
|
| 1045 |
+
825,
|
| 1046 |
+
330
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 10
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "table",
|
| 1052 |
+
"img_path": "images/f9f605a42758dec1c5e59700c1fed878b0d2b505eba596b80596ddccac6404f8.jpg",
|
| 1053 |
+
"table_caption": [],
|
| 1054 |
+
"table_footnote": [],
|
| 1055 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>N</td><td rowspan=1 colspan=1>C</td><td rowspan=1 colspan=1>Annotator's Accuracy (%)</td></tr><tr><td rowspan=1 colspan=1>CelebA: Makeup, Smiling</td><td rowspan=1 colspan=1>102,436</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>90.9, 92.4</td></tr><tr><td rowspan=1 colspan=1>CelebA: Male, Mouth Open</td><td rowspan=1 colspan=1>115,660</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>97.9, 93.5</td></tr><tr><td rowspan=1 colspan=1>CelebA: Bangs, Smiling</td><td rowspan=1 colspan=1>45,196</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>93.9,92.4</td></tr><tr><td rowspan=1 colspan=1>LSUN: Bedroom, Kitchen, Classroom</td><td rowspan=1 colspan=1>150,000</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>98.7</td></tr><tr><td rowspan=1 colspan=1>LSUN: Bedroom, Conference Room, Dining Room,Kitchen,Living Room</td><td rowspan=1 colspan=1>250,000</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>93.7</td></tr></table>",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
173,
|
| 1058 |
+
343,
|
| 1059 |
+
831,
|
| 1060 |
+
446
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 10
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Table 2: Details of CelebA and LSUN subsets used for the studies in Section 3.3. Here, we use a classifier trained on true data as an annotator that let’s us infer label distribution for the synthetic, GAN-generated data. $N$ is the size of the training set and $C$ is the number of classes in the true and synthetic datasets. Annotator’s accuracy refers to the accuracy of the classifier on a test set of true data. For CelebA, we use a combination of attribute-wise binary classifiers as annotators due their higher accuracy compared to a single classifier trained jointly on all the four classes. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
173,
|
| 1069 |
+
455,
|
| 1070 |
+
826,
|
| 1071 |
+
540
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 10
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "5.1.2 MODELS ",
|
| 1078 |
+
"text_level": 1,
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
174,
|
| 1081 |
+
558,
|
| 1082 |
+
289,
|
| 1083 |
+
573
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 10
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Benchmarks were performed on standard implementations - • DCGAN: https://github.com/carpedm20/DCGAN-tensorflow • WGAN: https://github.com/martinarjovsky/WassersteinGAN • ALI: https://github.com/IshmaelBelghazi/ALI • BEGAN :https://github.com/carpedm20/BEGAN-tensorflow • Improved GAN: https://github.com/openai/improved-gan • ResNet Classifier: Variation of the standard TensorFlow ResNet https://github.com/ tensorflow/models/blob/master/research/resnet/resnet_model.py ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
173,
|
| 1092 |
+
583,
|
| 1093 |
+
566,
|
| 1094 |
+
597
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 10
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
173,
|
| 1103 |
+
604,
|
| 1104 |
+
823,
|
| 1105 |
+
702
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 10
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "5.2 ADDITION EXPERIMENTAL RESULTS ",
|
| 1112 |
+
"text_level": 1,
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
174,
|
| 1115 |
+
710,
|
| 1116 |
+
468,
|
| 1117 |
+
724
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 10
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "5.2.1 SAMPLE QUALITY",
|
| 1124 |
+
"text_level": 1,
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
176,
|
| 1127 |
+
734,
|
| 1128 |
+
354,
|
| 1129 |
+
750
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 10
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "For each of our benchmark experiments, we ascertain that the visual quality of samples produced by the GANs is comparable to that reported in prior work. Examples of random samples drawn for multi-class datasets from both true and synthetic data are shown in Figure 2 for the CelebA dataset, and in Figure!3 for the LSUN dataset. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
174,
|
| 1138 |
+
760,
|
| 1139 |
+
825,
|
| 1140 |
+
814
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 10
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "5.2.2 MODE COLLAPSE EXPERIMENTS ",
|
| 1147 |
+
"text_level": 1,
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
176,
|
| 1150 |
+
829,
|
| 1151 |
+
455,
|
| 1152 |
+
844
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 10
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "In the studies to observe mode collapse in GANs described in Sections 2.1 and 3.3, we use a pretrained classifier as an annotator to obtain the class distribution for datasets generated from unconditional GANs. Figure 4 shows histograms of annotator confidence for the datasets used for benchmarking listed in Table 2. As can be seen in these figures, the annotator confidence for the synthetic data is comparable to that on the hold-out set of true data. Thus, it seems likely that the ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
174,
|
| 1161 |
+
853,
|
| 1162 |
+
823,
|
| 1163 |
+
924
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 10
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "image",
|
| 1169 |
+
"img_path": "images/ffd1eadad3e04387b4653a31d59a532c5b3dd825d3c778538887a71a3f4fdf6e.jpg",
|
| 1170 |
+
"image_caption": [
|
| 1171 |
+
"Figure 2: Illustration of datasets from CelebA used in proposed classification-based benchmarks to evaluate GANs. Shown alongside are images sampled from various unconditional GANs trained on this dataset. Labels for the GAN samples are obtained using a pre-trained classifier as an annotator. "
|
| 1172 |
+
],
|
| 1173 |
+
"image_footnote": [],
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
174,
|
| 1176 |
+
89,
|
| 1177 |
+
823,
|
| 1178 |
+
708
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 11
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "GAN generated samples are of good quality and are truly representative examples of their respective classes, as expected based on visual inspection. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
174,
|
| 1187 |
+
768,
|
| 1188 |
+
823,
|
| 1189 |
+
796
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 11
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "5.2.3 DIVERSITY EXPERIMENTS ",
|
| 1196 |
+
"text_level": 1,
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
176,
|
| 1199 |
+
814,
|
| 1200 |
+
411,
|
| 1201 |
+
829
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 11
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"text": "Table 3 presents an extension of the comparative study of classification performance of true and GAN generated data provided in Table 1. Visualizations of how test accuracies of a linear model classifier trained on GAN data compares with one trained on true data is shown in Figure 5. For each task, the bold curve shows test accuracy of a classifier trained on true data as a function of true dataset size. A down-sampling factor of $M$ corresponds to training the classifier on a random $N / M$ subset of true data. The dashed curves show test accuracy of classifiers trained on GAN datasets, obtained by drawing $N$ samples from GANs at the culmination of the training process. Based on these visualizations, it is apparent that GANs have comparable classification performance to a subset of training data that is more than a $1 0 0 \\mathbf { x }$ smaller. Thus, from the perspective of classification, GANs have diversity on par with a few hundred true data samples. ",
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
174,
|
| 1210 |
+
839,
|
| 1211 |
+
825,
|
| 1212 |
+
924
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 11
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "image",
|
| 1218 |
+
"img_path": "images/e5b8ba0ba9dfbdfd0a8afcc1a9e78e8a86380ad9f5d7993dbf0217cebfd010d4.jpg",
|
| 1219 |
+
"image_caption": [
|
| 1220 |
+
"(b) 5-class dataset from LSUN for Bedroom, Conference Room, Dining Room, Kitchen, Living Room. "
|
| 1221 |
+
],
|
| 1222 |
+
"image_footnote": [],
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
173,
|
| 1225 |
+
99,
|
| 1226 |
+
820,
|
| 1227 |
+
542
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 12
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "image",
|
| 1233 |
+
"img_path": "images/2ebb51f850f33b6ea62b998998d116ae8a6c587d4bac7ba0cb1ceccba4d70787.jpg",
|
| 1234 |
+
"image_caption": [
|
| 1235 |
+
"Figure 3: Illustration of datasets from LSUN used in proposed classification-based benchmarks to evaluate GANs. Shown alongside are images sampled from various unconditional GANs trained on this dataset. Labels for the GAN samples are obtained using a pre-trained classifier as an annotator. ",
|
| 1236 |
+
"Figure 4: Histograms of annotator confidence (softmax probability) during label prediction on true data (test set) and synthetic data for tasks on the CelebA and LSUN datasets (see Section 3.4). "
|
| 1237 |
+
],
|
| 1238 |
+
"image_footnote": [],
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
184,
|
| 1241 |
+
627,
|
| 1242 |
+
813,
|
| 1243 |
+
852
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 12
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
173,
|
| 1252 |
+
103,
|
| 1253 |
+
825,
|
| 1254 |
+
160
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 13
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "image",
|
| 1260 |
+
"img_path": "images/bcdf6de7631c3992c2acb9241b93e99085cff09b8f2d85b8369478a356137e12.jpg",
|
| 1261 |
+
"image_caption": [
|
| 1262 |
+
"Figure 5: Illustration of the classification performance of true data compared with GAN-generated synthetic datasets based on experiments described in Section 3.4. Classification is performed using a basic linear model, described in Section 3.2, and performance is reported in terms of accuracy on a hold-out set of true data. In the plots, the bold curve captures the classification performance of models trained on true data vs the size of the true dataset (maximum size is $N$ ). Dashed lines represent performance of classifiers trained on various GAN-generated datasets of size $N$ . These plots indicate that GAN samples have ”diversity” comparable to a small subset (few hundred samples) of true data. Here the notion of diversity is one that is relevant for classification tasks. "
|
| 1263 |
+
],
|
| 1264 |
+
"image_footnote": [],
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
176,
|
| 1267 |
+
176,
|
| 1268 |
+
816,
|
| 1269 |
+
526
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 13
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "table",
|
| 1275 |
+
"img_path": "images/05a7df5055e01b2f771d77a55cb4b5c4dd395cbd6af90140f1e5a143bb68cf1d.jpg",
|
| 1276 |
+
"table_caption": [],
|
| 1277 |
+
"table_footnote": [],
|
| 1278 |
+
"table_body": "<table><tr><td rowspan=5 colspan=1>Task</td><td rowspan=1 colspan=8>Classification Performance</td></tr><tr><td rowspan=4 colspan=1>Data Source</td><td rowspan=4 colspan=1>LabelCorrectness(%)</td><td rowspan=4 colspan=1>Inception Score(μ±σ)</td><td rowspan=1 colspan=5>Accuracy (%)</td></tr><tr><td rowspan=1 colspan=4>Linear model</td><td rowspan=1 colspan=1>ResNet</td></tr><tr><td rowspan=1 colspan=2>↑1</td><td rowspan=1 colspan=2>↑10</td><td rowspan=1 colspan=1>↑1</td></tr><tr><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Train</td><td rowspan=1 colspan=1>Test</td><td rowspan=1 colspan=1>Test</td></tr><tr><td rowspan=6 colspan=1>CelebAMale (Y/N)# Images: 136522</td><td rowspan=2 colspan=1>TrueTrue↓64True↓256True↓512True↓1024</td><td rowspan=2 colspan=1>97.9</td><td rowspan=2 colspan=1>1.98 ± 0.0033</td><td rowspan=2 colspan=1>88.189.691.696.3100.0</td><td rowspan=2 colspan=1>88.888.786.983.883.1</td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1></td><td rowspan=1 colspan=1>97.992.9</td></tr><tr><td rowspan=1 colspan=1>89.882.681.4</td></tr><tr><td rowspan=4 colspan=1>DCGANWGANALIBEGANImproved GAN</td><td rowspan=4 colspan=1>98.298.399.299.399.8</td><td rowspan=4 colspan=1>1.97± 0.00131.97 ± 0.00131.99 ± 0.00081.99 ± 0.00061.99 ± 0.0004</td><td rowspan=4 colspan=1>100.096.795.897.9100.0</td><td rowspan=4 colspan=1>79.284.086.778.075.6</td><td rowspan=4 colspan=1>100.096.795.898.0100.0</td><td rowspan=1 colspan=1>79.6</td><td rowspan=1 colspan=1>56.4</td></tr><tr><td rowspan=3 colspan=1>83.986.778.271.0</td><td rowspan=1 colspan=1>50.0</td></tr><tr><td rowspan=1 colspan=1>58.9</td></tr><tr><td rowspan=1 colspan=1>55.471.7</td></tr><tr><td rowspan=4 colspan=1>CelebASmiling (Y/N)# Images: 156160</td><td rowspan=2 colspan=1>TrueTrue64True↓256True↓512True↓1024</td><td rowspan=2 colspan=1>92.4</td><td rowspan=2 colspan=1>1.69 ± 0.0074</td><td rowspan=2 colspan=1>85.787.691.593.795.0</td><td rowspan=2 colspan=1>85.685.082.480.076.2</td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1></td><td rowspan=1 colspan=1>92.487.8</td></tr><tr><td rowspan=1 colspan=1>82.177.871.2</td></tr><tr><td rowspan=2 colspan=1>DCGANWGANALIBEGANImproved GAN</td><td rowspan=2 colspan=1>96.198.293.393.598.4</td><td rowspan=1 colspan=1>1.67± 0.00281.68 ± 0.00311.71 ± 0.0027</td><td rowspan=1 colspan=1>100.096.894.5</td><td rowspan=1 colspan=1>77.183.480.1</td><td rowspan=1 colspan=1>100.096.895.0</td><td rowspan=1 colspan=1>77.183.582.4</td><td rowspan=1 colspan=1>63.365.355.8</td></tr><tr><td rowspan=1 colspan=1>1.74 ± 0.00281.88 ± 0.0021</td><td rowspan=1 colspan=1>98.5100.0</td><td rowspan=1 colspan=1>69.570.2</td><td rowspan=1 colspan=1>98.5100.0</td><td rowspan=1 colspan=1>69.670.1</td><td rowspan=1 colspan=1>64.161.6</td></tr><tr><td rowspan=2 colspan=1>CelebABlack Hair (Y/N)#Images: 77812</td><td rowspan=1 colspan=1>TrueTrue↓64True↓256True↓512True↓1024</td><td rowspan=1 colspan=1>84.5</td><td rowspan=1 colspan=1>1.68 ± 0.0112</td><td rowspan=1 colspan=1>76.479.786.389100.0</td><td rowspan=1 colspan=1>76.575.472.668.765.4</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>84.580.075.873.972.7</td></tr><tr><td rowspan=1 colspan=1>DCGANWGANALIBEGANImproved GAN</td><td rowspan=1 colspan=1>86.776.079.487.686.7</td><td rowspan=1 colspan=1>1.68 ± 0.00401.60 ± 0.00551.63 ± 0.00281.74 ± 0.00281.64 ± 0.0045</td><td rowspan=1 colspan=1>100.094.494.994.1100.0</td><td rowspan=1 colspan=1>70.973.771.067.670.3</td><td rowspan=1 colspan=1>100.094.394.994.1100.0</td><td rowspan=1 colspan=1>70.573.470.267.769.1</td><td rowspan=1 colspan=1>53.458.555.767.270.2</td></tr><tr><td rowspan=3 colspan=1>LSUNBedroom/Kitchen#Images: 200000</td><td rowspan=1 colspan=1>TrueTrue↓512True↓1024True↓2048True4096</td><td rowspan=1 colspan=1>98.2</td><td rowspan=1 colspan=1>1.94 ± 0.0217</td><td rowspan=1 colspan=1>64.764.765.298.7100.0</td><td rowspan=1 colspan=1>64.164.064.056.255.1</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>99.176.466.956.555.1</td></tr><tr><td rowspan=2 colspan=1>DCGANWGANALIImproved GAN</td><td rowspan=2 colspan=1>92.787.880.484.2</td><td rowspan=1 colspan=1>1.85± 0.00361.70 ± 0.0023</td><td rowspan=1 colspan=1>90.886.2</td><td rowspan=1 colspan=1>56.558.2</td><td rowspan=1 colspan=1>91.296.3</td><td rowspan=1 colspan=1>56.354.1</td><td rowspan=1 colspan=1>31.255.7</td></tr><tr><td rowspan=1 colspan=1>1.62 ± 0.00261.68 ± 0.0030</td><td rowspan=1 colspan=1>80.791.6</td><td rowspan=1 colspan=1>49.755.9</td><td rowspan=1 colspan=1>81.790.8</td><td rowspan=1 colspan=1>50.856.5</td><td rowspan=1 colspan=1>50.551.2</td></tr></table>",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
176,
|
| 1281 |
+
128,
|
| 1282 |
+
823,
|
| 1283 |
+
755
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 14
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "text",
|
| 1289 |
+
"text": "Table 3: Detailed version of the comparative study of the classification performance of true data and GANs on the CelebA and LSUN datasets shown in Table 1, based on experiments described in Section 3.4. Label correctness measures the agreement between default labels for the synthetic datasets, and those predicted by the annotator, a classifier trained on the true data. Shown alongside are the equivalent inception scores computed using labels predicted by the annotator (instead of the Inception Network). Training and test accuracies for a linear model classifier on the various true and synthetic datasets are reported. Also presented are the corresponding accuracies for a linear model trained on down-sampled true data $\\left( \\downarrow _ { M } \\right)$ and oversampled synthetic data $( \\uparrow _ { L } )$ . Test accuracy for ResNets trained on these datasets is also shown (training accuracy was always $1 0 0 \\%$ ), though it is noticeable that deep networks suffer from issues when trained on synthetic datasets. ",
|
| 1290 |
+
"bbox": [
|
| 1291 |
+
173,
|
| 1292 |
+
765,
|
| 1293 |
+
825,
|
| 1294 |
+
905
|
| 1295 |
+
],
|
| 1296 |
+
"page_idx": 14
|
| 1297 |
+
}
|
| 1298 |
+
]
|
parse/train/S1FQEfZA-/S1FQEfZA-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1FQEfZA-/S1FQEfZA-_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/_61Qh8tULj_/_61Qh8tULj_.md
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Conflict-Averse Gradient Descent for Multi-task Learning
|
| 2 |
+
|
| 3 |
+
†Bo Liu, †Xingchao Liu, ‡Xiaojie Jin, †,§Peter Stone, †Qiang Liu †The University of Texas at Austin, §Sony AI, $^ \ddag$ Bytedance Research {bliu,xcliu,pstone,lqiang}@cs.utexas.edu, xjjin0731@gmail.com
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
The goal of multi-task learning is to enable more efficient learning than single task learning by sharing model structures for a diverse set of tasks. A standard multi-task learning objective is to minimize the average loss across all tasks. While straightforward, using this objective often results in much worse final performance for each task than learning them independently. A major challenge in optimizing a multi-task model is the conflicting gradients, where gradients of different task objectives are not well aligned so that following the average gradient direction can be detrimental to specific tasks’ performance. Previous work has proposed several heuristics to manipulate the task gradients for mitigating this problem. But most of them lack convergence guarantee and/or could converge to any Pareto-stationary point. In this paper, we introduce Conflict-Averse Gradient descent (CAGrad) which minimizes the average loss function, while leveraging the worst local improvement of individual tasks to regularize the algorithm trajectory. CAGrad balances the objectives automatically and still provably converges to a minimum over the average loss. It includes the regular gradient descent (GD) and the multiple gradient descent algorithm (MGDA) in the multi-objective optimization (MOO) literature as special cases. On a series of challenging multi-task supervised learning and reinforcement learning tasks, CAGrad achieves improved performance over prior state-of-the-art multi-objective gradient manipulation methods. Code is available at https://github.com/Cranial-XIX/CAGrad.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
Multi-task learning (MTL) refers to learning a single model that can tackle multiple different tasks [11, 28, 44, 38]. By sharing parameters across tasks, MTL methods learn more efficiently with an overall smaller model size compared to learning with separate models [38, 40, 25]. Moreover, it has been shown that MTL could in principle improve the quality of the learned representation and therefore benefit individual tasks [35, 43, 34]. For example, an early MTL result by [2] demonstrated that training a neural network to recognize doors could be improved by simultaneously training it to recognize doorknobs.
|
| 12 |
+
|
| 13 |
+
However, learning multiple tasks simultaneously can be a challenging optimization problem because it involves multiple objectives [38]. The most popular MTL objective in practice is the average loss over all tasks. Even when this average loss is exactly the true objective (as opposed to only caring about a single task as in the door/doorknob example), directly optimizing the average loss could lead to undesirable performance, e.g. the optimizer struggles to make progress so the learning performance significantly deteriorates. A known cause of this phenomenon is the conflicting gradients [41]: gradients from different tasks 1) may have varying scales with the largest gradient dominating the update, and 2) may point in different directions so that directly optimizing the average loss can be quite detrimental to a specific task’s performance.
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: The optimization challenges faced by gradient descent (GD) and existing gradient manipulation methods like the multiple gradient descent algorithm (MGDA) [6] and PCGrad [41]. MGDA, PCGrad and CAGrad are applied on top of the Adam optimizer [16]. For each methods, we repeat 3 runs of optimization from different initial points (labeled with $\bullet$ ). Each optimization trajectory is colored from red to yellow. GD with Adam gets stuck on two of the initial points because the gradient of one task overshadows that of the other task, causing the algorithm to jump back and forth between the walls of a steep valley without making progress along the floor of the valley. MGDA and PCGrad stop optimization as soon as they reach the Pareto set.
|
| 17 |
+
|
| 18 |
+
To address this problem, previous work either adaptively re-weights the objectives of each task based on heuristics [3, 15] or seeks a better update vector [30, 41] by manipulating the task gradients. However, existing work often lacks convergence guarantees or only provably converges to any point on the Pareto set of the objectives. This means the final convergence point of these methods may largely depend on the initial model parameters. As a result, it is possible that these methods over-optimize one objective while overlooking the others (See Fig. 1).
|
| 19 |
+
|
| 20 |
+
Motivated by the limitation of current methods, we introduce Conflict-Averse Gradient descent (CAGrad), which reduces the conflict among gradients and still provably converges to a minimum of the average loss. The idea of CAGrad is simple: it looks for an update vector that maximizes the worst local improvement of any objective in a neighborhood of the average gradient. In this way, CAGrad automatically balances different objectives and smoothly converges to an optimal point of the average loss. Specifically, we show that vanilla gradient descent (GD) and the multiple gradient descent algorithm (MGDA) are special cases of CAGrad (See Sec. 3.1). We demonstrate that CAGrad can improve over prior state-of-the-art gradient manipulation methods on a series of challenging multi-task supervised, semi-supervised, and reinforcement learning problems.
|
| 21 |
+
|
| 22 |
+
# 2 Background
|
| 23 |
+
|
| 24 |
+
In this section, we first introduce the problem setup of multi-task learning (MTL). Then we analyze the optimization challenge of MTL and discuss the limitation of prior gradient manipulation methods.
|
| 25 |
+
|
| 26 |
+
# 2.1 Multi-task Learning and its Challenge
|
| 27 |
+
|
| 28 |
+
In multi-task learning (MTL), we are given $K \geq 2$ different tasks, each of which is associated with a loss function $L _ { i } ( \theta )$ for a shared set of parameters $\theta$ . The goal is to find an optimal $\theta \in \mathbb { R } ^ { m }$ that achieves low losses across all tasks. In practice, a standard objective for MTL is minimizing the average loss over all tasks:
|
| 29 |
+
|
| 30 |
+
$$
|
| 31 |
+
\theta ^ { * } = \underset { \theta \in \mathbb { R } ^ { m } } { \arg \operatorname* { m i n } } \left\{ L _ { 0 } ( \theta ) \triangleq \frac { 1 } { K } \sum _ { i = 1 } ^ { K } L _ { i } ( \theta ) \right\} .
|
| 32 |
+
$$
|
| 33 |
+
|
| 34 |
+
Unfortunately, directly optimizing (1) using gradient descent may significantly compromise the optimization of individual losses in practice. A major source of this phenomenon is known as the conflicting gradients [41].
|
| 35 |
+
|
| 36 |
+
Optimization Challenge: Conflicting Gradients Denote by $g _ { i } = \nabla L _ { i } ( \theta )$ the gradient of task $i$ , and $\begin{array} { r } { g _ { 0 } = \nabla L _ { 0 } ( \theta ) = \frac { 1 } { K } \sum _ { i } ^ { K } g _ { i } } \end{array}$ the averaged gradient. With learning rate $\alpha \in \mathbb { R } ^ { + }$ , $\theta \theta - \alpha g _ { 0 }$ is the steepest descent update that appears to be the most natural update to follow when optimizing (1). However, $g _ { 0 }$ may conflict with individual gradients, i.e. $\exists \ i$ , $\langle g _ { i } , g _ { 0 } \rangle < 0$ . When this conflict is large, following $g _ { 0 }$ will decrease the performance on task $i$ . As observed by [41] and illustrated in Fig. 1, when $\theta$ is near a steep “valley", where a specific task’s gradient dominates the update, manipulating the direction and magnitude of $g _ { 0 }$ often leads to better optimization.
|
| 37 |
+
|
| 38 |
+
# 2.2 Prior Attempts and Convergence Issues
|
| 39 |
+
|
| 40 |
+
Several methods have been proposed to manipulate the task gradients to form a new update vector and have shown improved performance on MTL. Sener et al. apply the multiple-gradient descent algorithm (MGDA) [6] for MTL, which directly optimizes towards the Pareto set [30]. Chen et al. dynamically re-weight each $L _ { i }$ using a pre-defined heuristic [3]. More recently, PCGrad identifies conflicting gradients as the motivation behind manipulating the gradients and projects each task gradient to the normal plane of others to reduce the conflict [41]. While all these methods have shown success at improving the learning performance of MTL, they manipulate the gradient without respecting the original objective (1). Therefore, these methods could in principle converge to any point in the Pareto set (See Fig. 1 and Sec. 3.2). We provide the detailed algorithms of MGDA and PCGrad in Appendix A.1 and A.2, and a visualization of the update vector by each method in Fig. 2.
|
| 41 |
+
|
| 42 |
+
# 3 Method
|
| 43 |
+
|
| 44 |
+
We introduce our main algorithm, Conflict-Averse Gradient descent in Sec. 3.1, and then show theoretical analysis in Sec. 3.2.
|
| 45 |
+
|
| 46 |
+
# 3.1 Conflict-Averse Gradient Descent
|
| 47 |
+
|
| 48 |
+
Assume we update $\theta$ by $\theta ^ { \prime } \theta - \alpha d$ , where $\alpha$ is a step size and $d$ an update vector. We want to choose $d$ to decrease not only the average loss $L _ { 0 }$ , but also every individual loss. To do so, we consider the minimum decrease rate across the losses,
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
R ( \theta , d ) = \operatorname* { m a x } _ { i \in [ K ] } \left\{ { \frac { 1 } { \alpha } } \left( L _ { i } ( \theta - \alpha d ) - L _ { i } ( \theta ) \right) \right\} \approx - \operatorname* { m i n } _ { i \in [ K ] } \langle g _ { i } , d \rangle ,
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
where we use the first-order Taylor approximation assuming $\alpha$ is small. If $R ( \theta , d ) < 0$ , it means that all losses are decreased with the update given a sufficiently small $\alpha$ . Therefore, $R ( \theta , d )$ can be regarded as a measurement of conflict among objectives.
|
| 55 |
+
|
| 56 |
+
With the above measurement, our algorithm finds an update vector that minimizes such conflict to mitigate the optimization challenge while still converging to an optimum of the main objective $L _ { 0 } ( \theta )$ . To this end, we introduce Conflict-Averse Gradient descent (CAGrad), which on each optimization step determines the update $d$ by solving the following optimization problem:
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\operatorname* { m a x } _ { d \in \mathbb { R } ^ { m } } \operatorname* { m i n } _ { i \in [ K ] } \langle g _ { i } , d \rangle \quad \mathrm { s . t . } \quad \left\| d - g _ { 0 } \right\| \leq c \left\| g _ { 0 } \right\| ,
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
Here, $c \in [ 0 , 1 )$ is a pre-specified hyper-parameter that controls the convergence rate (See Sec. 3.2). The optimization problem (3) looks for the best update vector within a local ball centered at the averaged gradient $g _ { 0 }$ , which also minimizes the conflict in losses measured by (2). Since we focus on MTL and choose the average loss as the main objective, $g _ { 0 }$ is the average gradient. However, CAGrad also applies when $g _ { 0 }$ is the gradient of some other user-specified objective. We leave exploring this possibility as a future direction.
|
| 63 |
+
|
| 64 |
+
Dual Objective The optimization problem (3) involves decision variable $d$ that has the same dimension as the number of parameters in $\theta$ , which could be millions for a deep neural network. It is not practical to directly solve for $d$ on every optimization step. However, the dual problem of Eq. (3), as we will derive in the following, only involves solving for a decision variable $w \in \mathbb { R } ^ { K }$ , which can be efficiently found using standard optimization libraries [7]. Specifically, first note that $\begin{array} { r } { \operatorname* { m i n } _ { i } \langle g _ { i } , d \rangle = \operatorname* { m i n } _ { w \in \mathcal { W } } \langle \sum _ { i } w _ { i } \bar { g } _ { i } , d \rangle } \end{array}$ , where $w = ( w _ { 1 } , \dots , w _ { K } ) \in \mathbb { R } ^ { K }$ and $\mathcal { W }$ denotes the probability simplex, i.e. $\begin{array} { r } { \mathcal { W } = \{ w : \sum _ { i } w _ { i } = 1 } \end{array}$ and $w _ { i } ~ \geq ~ 0 \}$ . Denote $\begin{array} { r } { g _ { w } \ = \ \sum _ { i } w _ { i } g _ { i } } \end{array}$ and $\phi = c ^ { 2 } \left\| g _ { 0 } \right\| ^ { 2 }$ . The Lagrangian of the objective in Eq. (3) is
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\operatorname* { m a x } _ { d \in \mathbb { R } ^ { m } } \operatorname* { m i n } _ { \lambda \geq 0 , w \in \mathcal { W } } g _ { w } ^ { \top } d - \lambda ( \left. g _ { 0 } - d \right. ^ { 2 } - \phi ) / 2 .
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
Since the objective for $d$ is concave with linear constraints, by switching the min and max, we reach the dual form without changing the solution by Slater’s condition:
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\operatorname* { m i n } _ { \lambda \geq 0 , w \in \mathcal { W } } \operatorname* { m a x } _ { d \in \mathbb { R } ^ { m } } g _ { w } ^ { \top } d - \lambda \left. g _ { 0 } - d \right. ^ { 2 } / 2 + \lambda \phi / 2 .
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
<table><tr><td>Input: Initial model parameter vector 0o,differentiable loss functions {Li}=1,a constant c ∈ [0,1) and learning rate α ∈ R+.</td></tr><tr><td>repeat</td></tr><tr><td>At the t-th optimization step,define go = k∑i-1 VLi(θt-1) and =c² /ol²2. 1K Solve</td></tr><tr><td>K min, F(w) := gg +√Φ|lgull,where gω = 1 M wiVLi(0t-1).</td></tr><tr><td>K wEW i=1</td></tr><tr><td></td></tr><tr><td>Update 0t = 0t-1-α (go+ i 1/2 9w). 1igwll</td></tr><tr><td>until convergence</td></tr><tr><td></td></tr></table>
|
| 77 |
+
|
| 78 |
+
We end up with the following optimization problem w.r.t. $w$ after several steps of calculus,
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\boldsymbol { w } ^ { * } = \underset { \boldsymbol { w } \in \mathcal { W } } { \arg \operatorname* { m i n } } \ : g _ { \boldsymbol { w } } ^ { \top } \boldsymbol { g } _ { 0 } + \sqrt { \phi } \left\| \boldsymbol { g } _ { \boldsymbol { w } } \right\| ,
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where the optimal $\lambda ^ { * } = \| g _ { w ^ { * } } \| / \phi ^ { 1 / 2 }$ and the optimal update $d ^ { * } = g _ { 0 } + g _ { w ^ { * } } / \lambda ^ { * }$ . The detailed derivation is provided in Appendix A.3 and the entire CAGrad algorithm is summarized in Alg. 1. The dimension of $w$ equals to the number of objectives $K$ , which usually ranges from 2 to tens and is much smaller than the number of parameters in a neural network. Therefore, in practice, we solve the dual objective to perform the update of CAGrad.
|
| 85 |
+
|
| 86 |
+
Remark In Alg. 1, when $c = 0$ , CAGrad recovers the typical gradient descent with $d = g _ { 0 }$ . On the other hand, when $c \to \infty$ , then minimizing $F ( w )$ is equivalent to $\operatorname* { m i n } _ { w } \left\| g _ { w } \right\|$ . This coincides with the multiple gradient descent algorithm (MGDA) [6], which uses the minimum norm vector in the convex hull of the individual gradients as the update direction (see Fig. 2; second column). MGDA is a gradient-based multi-objective optimization designed to converge to an arbitrary point on the Pareto set, that is, it leaves all the points on the Pareto set as fixed points (and hence can not control which specific point it will converge to). It is different from our method which targets to minimize $L _ { 0 }$ while using gradient conflict to regularize the optimization trajectory. As we will analyze in the following section, to guarantee that CAGrad converges to an optimum of $L _ { 0 } ( \theta )$ , we have to ensure $0 \leq c < 1$
|
| 87 |
+
|
| 88 |
+
# 3.2 Convergence Analysis
|
| 89 |
+
|
| 90 |
+
In this section we first formally introduce the related Pareto concepts and then analyze CAGrad’s convergence property. Particularly, in Alg. 1, when $c < 1$ , CAGrad is guaranteed to converge to a minimum point of the average loss $L _ { 0 }$ .
|
| 91 |
+
|
| 92 |
+
Pareto Concepts Unlike single task learning where any two parameter vectors $\theta _ { 1 }$ and $\theta _ { 2 }$ can be ordered in the sense that either $L ( \theta _ { 1 } ) \leq L ( \mathsf { \bar { \theta } } _ { 2 } )$ or $L ( \theta _ { 1 } ) \ge L \bar { ( \theta _ { 2 } ) }$ holds, MTL could have two parameter vectors where one performs better for task $i$ and the other performs better for task $j \neq i$ To this end, we need the notion of Pareto-optimality [13].
|
| 93 |
+
|
| 94 |
+
Definition 3.1 (Pareto optimal and stationary points). Let $\pmb { L } ( \theta ) = \{ L _ { i } ( \theta ) \colon i \in [ K ] \}$ be a set of differentiable loss functions from $\mathbb { R } ^ { m }$ to $\mathbb { R }$ . For two points $\theta , \theta ^ { \prime } \in \mathbb { R } ^ { m }$ , we say that $\theta$ is Pareto dominated by $\theta ^ { \prime }$ , denoted by $\mathbf { } \cdot \mathbf { L } ( \theta ^ { \prime } ) \prec L ( \theta )$ , if $L _ { i } ( \theta ^ { \prime } ) \leq L _ { i } ( \theta )$ for all $i \in [ K ]$ and $\pmb { L } ( \theta ^ { \prime } ) \neq \pmb { L } ( \theta )$ . A point $\theta \in \mathbb { R } ^ { m }$ is said to be Pareto-optimal if there exists no $\theta ^ { \prime } \in \mathbb { R } ^ { m }$ such that $\mathbf { \dot { L } } ( \theta ^ { \prime } ) \prec \dot { \mathbf { L } } ( \theta )$ . The set of all Pareto-optimal points is called the Pareto set. $A$ point $\theta$ is called Pareto-stationary if we have $\mathrm { m i n } _ { w \in \mathcal { W } } \| g _ { w } ( \theta ) \| = 0$ , where $\begin{array} { r } { g _ { w } ( \theta ) = \sum _ { i = 1 } ^ { K } w _ { i } \nabla L _ { i } ( \theta ) } \end{array}$ , and $\mathcal { W }$ is the probability simplex on $[ K ]$ .
|
| 95 |
+
|
| 96 |
+
Similar to the case of single-objective differentiable optimization, a local Pareto optimal point $\theta$ must be Pareto stationary (see e.g., [6]).
|
| 97 |
+
|
| 98 |
+
Theorem 3.2 (Convergence of CAGrad). Assume the individual loss functions $L _ { 0 } , L _ { 1 } , \dots , L _ { K }$ are differentiable on $\mathbb { R } ^ { m }$ and their gradients $\nabla L _ { i } ( \theta )$ are all $H$ -Lipschitz, i.e. $\lVert \nabla L _ { i } ( x ) - \nabla L _ { i } ( y ) \rVert \leq$ $H \parallel x - y \parallel$ for $i = 0 , 1 , \ldots , K$ where $0 \leq H \leq \infty$ . Assume $L _ { 0 } ^ { * } = \operatorname* { i n f } _ { \theta \in \mathbb { R } ^ { m } } \dot { L } _ { 0 } ( \theta ) > - \infty$ .
|
| 99 |
+
|
| 100 |
+
With a fixed step size $\alpha$ satisfying $0 < \alpha \leq 1 / H$ , we have for the CAGrad in Alg. 1:
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
Figure 2: The combined update vector $d$ (in red) of a two-task learning problem with gradient descent (GD), multiple gradient descent algorithm (MGDA), PCGrad and Conflict-Averse Gradient descent (CAGrad). The two task-specific gradients are labeled $g _ { 1 }$ and $g _ { 2 }$ . MGDA’s objective is given in its primal form (See Appendix A.1). For PCGrad, each gradient is first projected onto the normal plane of the other (the dashed arrows). Then the final update vector is the average of the two projected gradients. CAGrad finds the best update vector within a ball around the average gradient that maximizes the worse local improvement between task 1 and task 2.
|
| 104 |
+
|
| 105 |
+
1) For any $c \geq 1$ , all the fixed points of CAGrad are Pareto-stationary points of $( L _ { 0 } , L _ { 1 } , \ldots , L _ { K } )$
|
| 106 |
+
|
| 107 |
+
2) In particular, if we take $0 \leq c < 1$ , then CAGrad satisfies
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\sum _ { t = 0 } ^ { T } \left. \nabla L _ { 0 } ( \theta _ { t } ) \right. ^ { 2 } \leq \frac { 2 ( L _ { 0 } ( \theta _ { 0 } ) - L _ { 0 } ^ { * } ) } { \alpha ( 1 - c ^ { 2 } ) } .
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
This means that the algorithm converges to a stationary point of $\nabla L _ { 0 }$ if we take $0 \leq c < 1$ . The proof is in Appendix A.3. As we discuss earlier, unlike our method, MGDA is designed to converge to an arbitrary point on the Pareto set, without explicit control of which point it will converges to. Another algorithm with similar property is PCGrad [41], which is a gradient-based algorithm that mitigates the conflicting gradients problem by removing the conflicting components of each gradient with respect to the other gradients before averaging them to form the final update; see Fig. 2, third column for the illustration. Similar to MGDA, as shown in [41], PCGrad also converges to an arbitrary Pareto point without explicit control of which point it will arrive at.
|
| 114 |
+
|
| 115 |
+
# 3.3 Practical Speedup
|
| 116 |
+
|
| 117 |
+
A typical drawback of methods that manipulate gradients is the computation overhead. For computing the optimal update vector, a method usually requires $K$ back-propagations to find all individual gradients $g _ { i }$ , in addition to the time required for optimization. This can be prohibitive for the scenario with many tasks. To this end, we propose to only sample a subset of tasks $S \subseteq [ K ]$ , compute their corresponding gradients $\{ g _ { i } \mid i \in { \overline { { S } } } \}$ and the averaged gradient $g _ { 0 }$ . Then we optimize $d$ in:
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\operatorname* { m a x } _ { d \in \mathbb { R } ^ { m } } \operatorname* { m i n } \left( \langle \frac { K g _ { 0 } - \sum _ { i \in S } g _ { i } } { K - | S | } , d \rangle , \ : \ : \operatorname* { m i n } _ { i \in S } \langle g _ { i } , d \rangle \right) \mathrm { s . t . } \| d - g _ { 0 } \| \leq c \| g _ { 0 } \|
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
Remark Note that the convergence guarantee in Thm. 3.2 still holds for Eq. 4 as the constraint does not change (See Appendix A.3). The time complexity is $\mathcal { O } ( ( \vert S \vert N + T )$ , where $N$ denotes the time for one pass of back-propagation and $T$ denotes the optimization time. For few-task learning $K < 1 0$ ), usually $T \ll N$ . When $S = [ K ]$ , we recover the full CAGrad algorithm.
|
| 124 |
+
|
| 125 |
+
# 4 Related Work
|
| 126 |
+
|
| 127 |
+
Multi-task Learning Due to its benefit with regards to data and computational efficiency, multi-task learning (MTL) has broad applications in vision, language, and robotics [11, 28, 22, 44, 38]. A number of MTL-friendly architectures have been proposed using task-specific modules [25, 11], attentionbased mechanisms [21] or activating different paths along the deep networks to tackle MTL [27, 40]. Apart from designing new architectures, another branch of methods focus on decomposing a large problem into smaller local problems that could be quickly learned by smaller models [29, 26, 37, 8]. Then a unified policy is learned from the smaller models using knowledge distillation [12].
|
| 128 |
+
|
| 129 |
+
MTL Optimization In this work, we focus on the optimization challenge of MTL [38]. Gradient manipulation methods are designed specifically to balance the learning of each task. The simplest form of gradient manipulation is to re-weight the task losses based on specific criteria, e.g., uncertainty [15], gradient norm [3], or difficulty [9]. These methods are mostly heuristics and their performance can be unstable. Recently, two methods [30, 41] that manipulate the gradients to find a better local update vector have become popular. Sener et al [30] view MTL as a multi-objective optimization problem, and use multiple gradient descent algorithm for optimization. PCGrad [41] identifies a major optimization challenge for MTL, the conflicting gradients, and proposes to project each task gradient to the normal plane of other task gradients before combining them together to form the final update vector. Though yielding good empirical performance, both methods can only guarantee convergence to a Pareto-stationary point, but not knowing where it exactly converges to. More recently, GradDrop [4] randomly drops out task gradients based on how much they conflict. IMTLG [20] seeks an update vector that has equal projections on each task gradient. RotoGrad [14] separately scales and rotates task gradients to mitigate optimization conflict.
|
| 130 |
+
|
| 131 |
+
Our method, CAGrad, also manipulates the gradient to find a better optimization trajectory. Like other MTL optimization techniques, CAGrad is model-agnostic. However, unlike prior methods, CAGrad converges to the optimal point in theory and achieves better empirical performance on both toy multi-objective optimization tasks and real-world applications.
|
| 132 |
+
|
| 133 |
+
# 5 Experiment
|
| 134 |
+
|
| 135 |
+
We conduct experiments to answer the following questions:
|
| 136 |
+
|
| 137 |
+
Question (1) Do CAGrad, MGDA and PCGrad behave consistently with their theoretical properties in practice? (yes)
|
| 138 |
+
|
| 139 |
+
Question (2) Does CAGrad recover GD and MGDA when varying the constant $c ?$ (yes)
|
| 140 |
+
|
| 141 |
+
Question (3) How does CAGrad perform in both performance and computational efficiency compared to prior state-of-the-art methods, on challenging multi-task learning problems under the supervised, semi-supervised and reinforcement learning settings? (CAGrad improves over prior state-of-the-art methods under all settings)
|
| 142 |
+
|
| 143 |
+
# 5.1 Convergence and Ablation over c
|
| 144 |
+
|
| 145 |
+
To answer questions (1) and (2), we create a toy optimization example to evaluate the convergence of CAGrad compared to MGDA and PCGrad. On the same toy example, we ablate over the constant $c$ and show that CAGrad recovers GD and MGDA with proper $c$ values. Next, to test CAGrad on more complicated neural models, we perform the same set of experiments on the Multi-Fashion+MNIST benchmark [19] with a shrinked LeNet architecture [18] (in which each layer has a reduced number of neurons compared to the original LeNet). Please refer to Appendix B for more details.
|
| 146 |
+
|
| 147 |
+
For the toy optimization example, we modify the toy example used by $\mathrm { Y u }$ et al. [41] and consider $\theta = ( \theta _ { 1 } , \bar { \theta _ { 2 } } ) \overset { \cdot } { \in } \mathbb { R } ^ { 2 }$ with the following individual loss functions:
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
\begin{array} { r l } & { L _ { 1 } ( \theta ) = c _ { 1 } ( \theta ) f _ { 1 } ( \theta ) + c _ { 2 } ( \theta ) g _ { 1 } ( \theta ) \mathrm { ~ a n d ~ } L _ { 2 } ( \theta ) = c _ { 1 } ( \theta ) f _ { 2 } ( \theta ) + c _ { 2 } ( \theta ) g _ { 2 } ( \theta ) , \forall } \\ & { f _ { 1 } ( \theta ) = \log \big ( \operatorname* { m a x } ( | 0 . 5 ( - \theta _ { 1 } - 7 ) - \operatorname { t a n h } { ( - \theta _ { 2 } ) } | , \ 0 . 0 0 0 0 0 5 ) \big ) + 6 , } \\ & { f _ { 2 } ( \theta ) = \log \big ( \operatorname* { m a x } ( | 0 . 5 ( - \theta _ { 1 } + 3 ) - \operatorname { t a n h } { ( - \theta _ { 2 } ) } + 2 | , \ 0 . 0 0 0 0 0 5 ) \big ) + 6 , } \\ & { g _ { 1 } ( \theta ) = \big ( ( - \theta _ { 1 } + 7 ) ^ { 2 } + 0 . 1 * ( - \theta _ { 2 } - 8 ) ^ { 2 } \big ) / 1 0 - 2 0 , } \\ & { g _ { 2 } ( \theta ) = \big ( ( - \theta _ { 1 } - 7 ) ^ { 2 } + 0 . 1 * ( - \theta _ { 2 } - 8 ) ^ { 2 } \big ) / 1 0 - 2 0 , } \\ & { c _ { 1 } ( \theta ) = \operatorname* { m a x } ( \operatorname { t a n h } { ( 0 . 5 * \theta _ { 2 } ) } , \ 0 ) \mathrm { ~ a n d ~ } c _ { 2 } ( \theta ) = \operatorname* { m a x } ( \operatorname { t a n h } { ( - 0 . 5 * \theta _ { 2 } ) } , \ 0 ) . } \end{array}
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
The average loss $L _ { 0 }$ and individual losses $L _ { 1 }$ and $L _ { 2 }$ are shown in Fig. 1. We then pick 5 initial parameter vectors $\theta _ { \mathrm { i n i t } } \in \{ ( - 8 . 5 , 7 . 5 ) , ( - 8 . 5 , 5 ) , ( 0 , 0 ) , ( 9 , 9 ) , ( 1 0 , - 8 ) \}$ and plot the corresponding optimization trajectories with different methods in Fig. 3. As shown in Fig. 3, GD gets stuck in 2 out of the 5 runs while other methods all converge to the Pareto set. MGDA and PCGrad converge to different Pareto-stationary points depending on $\theta _ { \mathrm { i n i t } }$ . CAGrad with $c = 0$ recovers GD and CAGrad with $c = 1 0$ approximates MGDA well (in theory it requires $c \to \infty$ to exactly recover MGDA).
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
Figure 3: The left four plots are 5 runs of each algorithms from 5 different initial parameter vectors, where trajectories are colored from red to yellow. The right two plots are CAGrad’s results with a varying $\bar { c ^ { \prime } } \in \{ 0 , 0 . 2 , 0 . 5 , 0 . 8 , 1 0 \}$ .
|
| 157 |
+
|
| 158 |
+
Next, we apply the same set of experiments on the multi-task classification benchmark MultiFashion+MNIST [19]. This benchmark consists of images that are generated by overlaying an image from FashionMNIST dataset [39] on top of another image from MNIST dataset [5]. The two images are positioned on the top-left and bottom-right separately. We consider a shrinked LeNet as our model, and train it with Adam [16] optimizer with a 0.001 learning rate for 50 epochs using a batch size of 256. Due to the highly non-convex nature of the neural network, we are not able to visualize the entire Pareto set. But we provide the final training losses of different methods over three independent runs in Fig. 4. As shown, CAGrad achieves the lowest average loss with $c = 0 . 2$ . In addition, PCGrad and MGDA focus on optimizing task 1 and task 2 separately. Lastly, CAGrad with $c = 0$ and $c = 1 0$ roughly recovers the final performance of GD and MGDA. By increasing $c _ { \cdot }$ , the model performance shifts from more GD-like to more MGDA-like, though due to the non-convex nature of neural networks, CAGrad with $0 \leq c < 1$ does not necessarily converge to the exact same point.
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
Figure 4: The average and individual training losses on the Fashion-and-MNIST benchmark by running GD, MGDA, PCGrad and CAGrad with different $c$ values. GD gets stuck at the steep valley (the area with a cloud of dots), which other methods can pass. MGDA and PCGrad converge randomly on the Pareto set.
|
| 162 |
+
|
| 163 |
+
# 5.2 Multi-task Supervised Learning
|
| 164 |
+
|
| 165 |
+
To answer question (3) in the supervised learning setting, we follow the experiment setup from Yu et al. [41] and consider the NYU-v2 and CityScapes vision datasets. NYU-v2 contains 3 tasks: 13- class semantic segmentation, depth estimation, and surface normal prediction. CityScapes similarly contains 2 tasks: 7-class semantic segmentation and depth estimation. Here, we follow [41] and combine CAGrad with a state-of-the-art MTL method MTAN [21], which applies attention mechanism on top of the SegNet architecture [1]. We compare CAGrad with PCGrad, vanilla MTAN and CrossStitch [25], which is another MTL method that modifies the network architecture. MTAN originally experiments with equal loss weighting and two other dynamic loss weighting heuristics [15, 3]. For a fair comparison, all methods are applied under the equal weighting scheme and we use the same training setup from [3]. We search $\bar { c } \in \{ 0 . 1 , 0 . 2 , . . . \bar { 0 } . 9 \}$ with the best average training loss for CAGrad on both datasets (0.4 for NYU-v2 and 0.2 for Cityscapes). We perform a two-tailed, Student’s $t$ -test under equal sample sizes, unequal variance setup and mark the results that are significant with an $^ *$ . Following Maninis et al.[24], we also compute the average per-task performance drop of method $m$ with respect to the single-tasking baseline $b$ : 1K PKi=1(−1)li (Mm,i − Mb,i)/Mb,i where $l _ { i } = 1$ if a higher value is better for a criterion $M _ { i }$ on task $i$ and 0 otherwise. The single-tasking baseline (independent) refers to training individual tasks with a vanilla SegNet. Results are shown in Tab. 1 and Tab. 2.
|
| 166 |
+
|
| 167 |
+
Given the single task performance, CAGrad performs better on the task that is overlooked by other methods (Surface Normal in NYU-v2 and Depth in CityScapes) and matches other methods’ performance on the rest of the tasks. We also provide the final test losses and the per-epoch training time of each method in Fig. 5 in Appendix B.2.
|
| 168 |
+
|
| 169 |
+
Table 1: Multi-task learning results on NYU-v2 dataset. #P denotes the relative model size compared to the vanilla SegNet. Each experiment is repeated over 3 random seeds and the mean is reported. The best average result among all multi-task methods is marked in bold. MGDA, PCGrad, GradDrop and CAGrad are applied on the MTAN backbone. CAGrad has statistically significant improvement over baselines methods with an $^ *$ , tested with a $p$ -value of 0.1.
|
| 170 |
+
|
| 171 |
+
<table><tr><td rowspan="3">#P.</td><td rowspan="3">Method</td><td colspan="2">Segmentation</td><td colspan="2">Depth</td><td colspan="5">Surface Normal</td><td rowspan="3">△m%</td></tr><tr><td colspan="2">(Higher Better)</td><td colspan="2">(Lower Better)</td><td colspan="2">Angle Distance (Lower Better)</td><td colspan="2">Within t° (Higher Better)</td></tr><tr><td>mIoU</td><td>Pix Acc</td><td>Abs Err</td><td>Rel Err</td><td>Mean Median</td><td>11.25</td><td>22.5</td><td>30</td></tr><tr><td>3</td><td>Independent</td><td>38.30</td><td>63.76</td><td>0.6754</td><td>0.2780</td><td>25.01</td><td>19.21</td><td>30.14</td><td>57.20</td><td>69.15</td><td></td></tr><tr><td>~3</td><td>Cross-Stitch [25]</td><td>37.42</td><td>63.51</td><td>0.5487</td><td>0.2188</td><td>*28.85</td><td>*24.52</td><td>*22.75</td><td>*46.58</td><td>*59.56</td><td>6.96</td></tr><tr><td>1.77</td><td>MTAN [21]</td><td>39.29</td><td>65.33</td><td>0.5493</td><td>0.2263</td><td>*28.15</td><td>*23.96</td><td>*22.09</td><td>*47.50</td><td>*61.08</td><td>5.59</td></tr><tr><td>1.77</td><td>MGDA [30]</td><td>*30.47</td><td>*59.90</td><td>*0.6070</td><td>*0.2555</td><td>24.88</td><td>19.45</td><td>29.18</td><td>56.88</td><td>69.36</td><td>1.38</td></tr><tr><td>1.77</td><td>PCGrad [41]</td><td>38.06</td><td>64.64</td><td>0.5550</td><td>0.2325</td><td>*27.41</td><td>*22.80</td><td>*23.86</td><td>*49.83</td><td>*63.14</td><td>3.97</td></tr><tr><td>1.77</td><td>GradDrop [4]</td><td>39.39</td><td>65.12</td><td>0.5455</td><td>0.2279</td><td>*27.48</td><td>*22.96</td><td>*23.38</td><td>*49.44</td><td>*62.87</td><td>3.58</td></tr><tr><td>1.77</td><td>CAGrad (ours)</td><td>39.79</td><td>65.49</td><td>0.5486</td><td>0.2250</td><td>26.31</td><td>21.58</td><td>25.61</td><td>52.36</td><td>65.58</td><td>0.20</td></tr></table>
|
| 172 |
+
|
| 173 |
+
Table 2: Multi-task learning results on CityScapes Challenge. Each experiment is repeated over 3 random seeds and the mean is reported. The best average result among all multi-task methods is marked in bold. PCGrad and CAGrad are applied on the MTAN backbone. CAGrad has statistically significant improvement over baselines methods with an $^ *$ , tested with a $p$ -value of 0.1.
|
| 174 |
+
|
| 175 |
+
<table><tr><td rowspan="2">#P.</td><td rowspan="2">Method</td><td colspan="2">Segmentation</td><td colspan="2">Depth</td><td rowspan="2">△m%</td></tr><tr><td>mIoU</td><td>(Higher Better) Pix Acc</td><td>(Lower Better) Abs Err</td><td>Rel Err</td></tr><tr><td>2</td><td>Independent</td><td>74.01</td><td>93.16</td><td>0.0125</td><td>27.77</td><td></td></tr><tr><td>~3</td><td>Cross-Stitch [25]</td><td>*73.08</td><td>*92.79</td><td>*0.0165</td><td>*118.5</td><td>90.02</td></tr><tr><td>1.77</td><td>MTAN [21]</td><td>75.18</td><td>93.49</td><td>*0.0155</td><td>*46.77</td><td>22.60</td></tr><tr><td>1.77</td><td>MGDA [30]</td><td>*68.84</td><td>*91.54</td><td>0.0309</td><td>33.50</td><td>44.14</td></tr><tr><td>1.77</td><td>PCGrad [41]</td><td>75.13</td><td>93.48</td><td>0.0154</td><td>42.07</td><td>18.29</td></tr><tr><td>1.77</td><td>GradDrop [4]</td><td>75.27</td><td>93.53</td><td>*0.0157</td><td>*47.54</td><td>23.73</td></tr><tr><td>1.77</td><td>CAGrad (ours)</td><td>75.16</td><td>93.48</td><td>0.0141</td><td>37.60</td><td>11.64</td></tr></table>
|
| 176 |
+
|
| 177 |
+
# 5.3 Multi-task Reinforcement Learning
|
| 178 |
+
|
| 179 |
+
To answer question (3) in the reinforcement learning (RL) setting, we apply CAGrad on the MT10 and MT50 benchmarks from the Meta-World environment [42]. In particular, MT10 and MT50 contains 10 and 50 robot manipulation tasks. Following [33], we use Soft Actor-Critic (SAC) [10] as the underlying RL training algorithm. We compare against Multi-task SAC (SAC with a shared model), Multi-headed SAC (SAC with a shared backbone and task-specific head), Multi-task SAC $^ +$ Task Encoder (SAC with a shared model and the input includes a task embedding) [42] and PCGrad [41]. We also compare with Soft Modularization [40] that routes different modules in a shared model to form different policies. Lastly, we also include a recent method (CARE) that considers language metadata and uses a mixture of expert encoder for MTL. We follow the same experiment setup from [33]. The results are shown in Tab. 3. CAGrad outperforms all baselines except for CARE which benefits from extra information from the metadata. We also apply the practical speedup in Sec. 3.3 and sub-sample 4 and 8 tasks for MT10 and MT50 (CAGrad-Fast). CAGrad-fast achieves comparable performance against the state-of-the-art method while achieving a $2 \mathbf { x }$ (MT10) and $5 \mathbf { x }$ (MT50) speedup over PCGrad. We provide a visualization of tasks from MT10 and MT50, and the comparison of computational efficiency in Appendix B.3.
|
| 180 |
+
|
| 181 |
+
# 5.4 Semi-supervised Learning with Auxiliary Tasks
|
| 182 |
+
|
| 183 |
+
Training with auxiliary tasks to improve the performance of a main task is another popular application of MTL. Here, we take semi-supervised learning as an instance. We combine different optimization
|
| 184 |
+
|
| 185 |
+
<table><tr><td rowspan="2">Method</td><td>MetaworldMT10</td><td>MetaworldMT50</td></tr><tr><td>success (mean ± stderr)</td><td>success (mean ± stderr)</td></tr><tr><td>Multi-task SAC [42]</td><td>0.49 ±0.073</td><td>0.36 ±0.013</td></tr><tr><td>Multi-task SAC+ Task Encoder [42]</td><td>0.54 ±0.047</td><td>0.40 ±0.024</td></tr><tr><td>Multi-headed SAC [42]</td><td>0.61 ±0.036</td><td>0.45 ±0.064</td></tr><tr><td>PCGrad [41]</td><td>0.72 ±0.022</td><td>0.50 ±0.017</td></tr><tr><td>Soft Modularization [40]</td><td>0.73 ±0.043</td><td>0.50 ±0.035</td></tr><tr><td>CAGrad (ours)</td><td>0.83 ±0.045</td><td>0.52 ±0.023</td></tr><tr><td>CAGrad-Fast (ours)</td><td>0.82 ±0.039</td><td>0.50 ±0.016</td></tr><tr><td>CARE [33]</td><td>0.84 ±0.051</td><td>0.54 ±0.031</td></tr><tr><td>One SAC agent per task (upper bound)</td><td>0.90 ±0.032</td><td>0.74 ±0.041</td></tr></table>
|
| 186 |
+
|
| 187 |
+
Table 3: Multi-task reinforcement learning results on the Metaworld benchmarks. Results are averaged over 10 independent runs and the best result is marked in bold.
|
| 188 |
+
|
| 189 |
+
algorithms with Auxiliary Task Reweighting for Minimum-data Learning (ARML) [31], a state-ofthe-art semi-supervised learning algorithm. The loss function is composed of the main task and two auxiliary tasks:
|
| 190 |
+
|
| 191 |
+
$$
|
| 192 |
+
\begin{array} { r } { L _ { 0 } = L _ { C E } ( \theta ; D _ { l } ) + w _ { 1 } L _ { a u x } ^ { 1 } ( \theta ; D _ { u } ) + w _ { 2 } L _ { a u x } ^ { 2 } ( \theta ; D _ { u } ) , } \end{array}
|
| 193 |
+
$$
|
| 194 |
+
|
| 195 |
+
where are au $L _ { C E }$ is the main cross-entropy classification loss on the lay unsupervised learning losses on the unlabeled dataset d dataset . We use $D _ { l }$ , and sam $L _ { a u x } ^ { 1 } , L _ { a u x } ^ { 2 }$ $D _ { u }$ $w _ { 1 }$ $w _ { 2 }$ from ARML, and use the CIFAR10 dataset [17], which contains 50,000 training images and 10,000 test images. $10 \%$ of the training images is held out as the validation set. We test PCGrad, MGDA and CAGrad with 500, 1000 and 2000 labeled images. The rest of the training set is used for auxiliary tasks. For all the methods, we use the same labeled dataset, the same learning rate and train them for 200 epochs with the Adam [16] optimizer. Please refer to Appendix B.4 for more experimental details. Results are shown in Tab. 4. With all the different number of labels, CAGrad yields the best averaged test accuracy. We observed that MGDA performs much worse than the ARML baseline, because it significantly overlooks the main classification task. We also compare different gradient manipulation methods on the same task with GradNorm [3], which dynamically adjusts $w _ { 1 }$ and $w _ { 2 }$ during training. The results and conclusions are similar to those for ARML.
|
| 196 |
+
|
| 197 |
+
<table><tr><td>Method</td><td>500 labels</td><td>1000 labels</td><td>2000 labels</td></tr><tr><td>ARML [31]</td><td>67.05 ±0.16</td><td>73.22 ±0.26</td><td>81.35 ±0.36</td></tr><tr><td>ARML + PCGrad [41]</td><td>67.49 ±0.64</td><td>73.23 ±0.62</td><td>81.91 ±0.19</td></tr><tr><td>ARML +MGDA[30]</td><td>49.27 ±0.68</td><td>60.11 ±2.35</td><td>60.78 ±0.17</td></tr><tr><td>ARML +CAGrad (Ours)</td><td>68.25 ±0.37</td><td>74.37 ±0.42</td><td>82.81 ±0.48</td></tr><tr><td>GradNorm [3]</td><td>67.35 ±0.15</td><td>73.53 ±0.23</td><td>81.03 ±0.71</td></tr><tr><td>GradNorm + PCGrad [41]</td><td>67.83 ±0.19</td><td>73.91 ±0.09</td><td>82.72 ±0.19</td></tr><tr><td>GradNorm + MGDA [30]</td><td>36.99 ±2.11</td><td>57.94 ±0.92</td><td>59.12 ±0.63</td></tr><tr><td>GradNorm + CAGrad (Ours)</td><td>67.53 ±0.26</td><td>74.72 ±0.19</td><td>83.15 ±0.56</td></tr></table>
|
| 198 |
+
|
| 199 |
+
Table 4: Semi-supervised Learning with auxiliary tasks on CIFAR10. We report the average test accuracy over 3 independent runs for each method and mark the best result in bold.
|
| 200 |
+
|
| 201 |
+
# 6 Conclusion
|
| 202 |
+
|
| 203 |
+
In this work, we introduce the Conflict-Averse Gradient descent (CAGrad) algorithm that explicitly optimizes the minimum decrease rate of any specific task’s loss while still provably converging to the optimum of the average loss. CAGrad generalizes the gradient descent and multiple gradient descent algorithm, and demonstrates improved performance across several challenging multi-task learning problems compared to the state-of-the-art methods. While we focus mainly on optimizing the average loss, an interesting future direction is to look at main objectives other than the average loss under the multi-task setting.
|
| 204 |
+
|
| 205 |
+
# Acknowledgements
|
| 206 |
+
|
| 207 |
+
The research was conducted in the statistical learning and AI group (SLAI) and the Learning Agents Research Group (LARG) in computer science at UT Austin. SLAI research is supported in part by CAREER-1846421, SenSE-2037267, EAGER-2041327, and Office of Navy Research, and NSF AI Institute for Foundations of Machine Learning (IFML). LARG research is supported in part by NSF (CPS-1739964, IIS-1724157, FAIN-2019844), ONR (N00014-18-2243), ARO (W911NF-19-2-0333), DARPA, Lockheed Martin, GM, Bosch, and UT Austin’s Good Systems grand challenge. Peter Stone serves as the Executive Director of Sony AI America and receives financial compensation for this work. The terms of this arrangement have been reviewed and approved by the University of Texas at Austin in accordance with its policy on objectivity in research. Xingchao Liu is supported in part by a funding from BP.
|
| 208 |
+
|
| 209 |
+
# References
|
| 210 |
+
|
| 211 |
+
[1] Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. IEEE transactions on pattern analysis and machine intelligence, 39(12):2481–2495, 2017.
|
| 212 |
+
[2] Rich Caruana. Multitask learning. Machine learning, 28(1):41–75, 1997.
|
| 213 |
+
[3] Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks. In International Conference on Machine Learning, pages 794–803. PMLR, 2018. [4] Zhao Chen, Jiquan Ngiam, Yanping Huang, Thang Luong, Henrik Kretzschmar, Yuning Chai, and Dragomir Anguelov. Just pick a sign: Optimizing deep multitask models with gradient sign dropout. arXiv preprint arXiv:2010.06808, 2020.
|
| 214 |
+
[5] Li Deng. The mnist database of handwritten digit images for machine learning research. IEEE Signal Processing Magazine, 29(6):141–142, 2012.
|
| 215 |
+
[6] Jean-Antoine Désidéri. Multiple-gradient descent algorithm (mgda) for multiobjective optimization. Comptes Rendus Mathematique, 350(5-6):313–318, 2012. [7] Steven Diamond and Stephen Boyd. CVXPY: A Python-embedded modeling language for convex optimization. Journal of Machine Learning Research, 17(83):1–5, 2016. [8] Dibya Ghosh, Avi Singh, Aravind Rajeswaran, Vikash Kumar, and Sergey Levine. Divide-andconquer reinforcement learning. arXiv preprint arXiv:1711.09874, 2017.
|
| 216 |
+
[9] Michelle Guo, Albert Haque, De-An Huang, Serena Yeung, and Li Fei-Fei. Dynamic task prioritization for multitask learning. In Proceedings of the European Conference on Computer Vision (ECCV), pages 270–287, 2018.
|
| 217 |
+
[10] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, pages 1861–1870. PMLR, 2018.
|
| 218 |
+
[11] Kazuma Hashimoto, Caiming Xiong, Yoshimasa Tsuruoka, and Richard Socher. A joint manytask model: Growing a neural network for multiple nlp tasks. arXiv preprint arXiv:1611.01587, 2016.
|
| 219 |
+
[12] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
|
| 220 |
+
[13] Harold M Hochman and James D Rodgers. Pareto optimal redistribution. The American economic review, 59(4):542–557, 1969.
|
| 221 |
+
[14] Adrián Javaloy and Isabel Valera. Rotograd: Dynamic gradient homogenization for multi-task learning. arXiv preprint arXiv:2103.02631, 2021.
|
| 222 |
+
[15] Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7482–7491, 2018.
|
| 223 |
+
[16] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 224 |
+
[17] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
|
| 225 |
+
[18] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 226 |
+
[19] Xi Lin, Hui-Ling Zhen, Zhenhua Li, Qingfu Zhang, and Sam Kwong. Pareto multi-task learning. arXiv preprint arXiv:1912.12854, 2019.
|
| 227 |
+
[20] Liyang Liu, Yi Li, Zhanghui Kuang, Jing-Hao Xue, Yimin Chen, Wenming Yang, Qingmin Liao, and Wayne Zhang. Towards impartial multi-task learning. In International Conference on Learning Representations, 2020.
|
| 228 |
+
[21] Shikun Liu, Edward Johns, and Andrew J Davison. End-to-end multi-task learning with attention. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1871–1880, 2019.
|
| 229 |
+
[22] Xingchao Liu, Xing Han, Na Zhang, and Qiang Liu. Certified monotonic neural networks. arXiv preprint arXiv:2011.10219, 2020.
|
| 230 |
+
[23] Debabrata Mahapatra and Vaibhav Rajan. Multi-task learning with user preferences: Gradient descent with controlled ascent in pareto optimization. In International Conference on Machine Learning, pages 6597–6607. PMLR, 2020.
|
| 231 |
+
[24] Kevis-Kokitsi Maninis, Ilija Radosavovic, and Iasonas Kokkinos. Attentive single-tasking of multiple tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1851–1860, 2019.
|
| 232 |
+
[25] Ishan Misra, Abhinav Shrivastava, Abhinav Gupta, and Martial Hebert. Cross-stitch networks for multi-task learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3994–4003, 2016.
|
| 233 |
+
[26] Emilio Parisotto, Jimmy Lei Ba, and Ruslan Salakhutdinov. Actor-mimic: Deep multitask and transfer reinforcement learning. arXiv preprint arXiv:1511.06342, 2015.
|
| 234 |
+
[27] Clemens Rosenbaum, Tim Klinger, and Matthew Riemer. Routing networks: Adaptive selection of non-linear functions for multi-task learning. arXiv preprint arXiv:1711.01239, 2017.
|
| 235 |
+
[28] Sebastian Ruder. An overview of multi-task learning in deep neural networks. arXiv preprint arXiv:1706.05098, 2017.
|
| 236 |
+
[29] Andrei A Rusu, Sergio Gomez Colmenarejo, Caglar Gulcehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu, Volodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. Policy distillation. arXiv preprint arXiv:1511.06295, 2015.
|
| 237 |
+
[30] Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. arXiv preprint arXiv:1810.04650, 2018.
|
| 238 |
+
[31] Baifeng Shi, Judy Hoffman, Kate Saenko, Trevor Darrell, and Huijuan Xu. Auxiliary task reweighting for minimum-data learning. Advances in Neural Information Processing Systems, 33, 2020.
|
| 239 |
+
[32] Shagun Sodhani and Amy Zhang. Mtrl - multi task rl algorithms. Github, 2021.
|
| 240 |
+
[33] Shagun Sodhani, Amy Zhang, and Joelle Pineau. Multi-task reinforcement learning with context-based representations. arXiv preprint arXiv:2102.06177, 2021.
|
| 241 |
+
[34] Charles Stein. Inadmissibility of the usual estimator for the mean of a multivariate normal distribution. In Contribution to the Theory of Statistics, pages 197–206. University of California Press, 2020.
|
| 242 |
+
[35] Kevin Swersky, Jasper Snoek, and Ryan Prescott Adams. Multi-task bayesian optimization. 2013.
|
| 243 |
+
[36] Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 1195–1204, 2017.
|
| 244 |
+
[37] Yee Whye Teh, Victor Bapst, Wojciech Marian Czarnecki, John Quan, James Kirkpatrick, Raia Hadsell, Nicolas Heess, and Razvan Pascanu. Distral: Robust multitask reinforcement learning. arXiv preprint arXiv:1707.04175, 2017.
|
| 245 |
+
[38] Simon Vandenhende, Stamatios Georgoulis, Wouter Van Gansbeke, Marc Proesmans, Dengxin Dai, and Luc Van Gool. Multi-task learning for dense prediction tasks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021.
|
| 246 |
+
[39] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
|
| 247 |
+
[40] Ruihan Yang, Huazhe Xu, Yi Wu, and Xiaolong Wang. Multi-task reinforcement learning with soft modularization. arXiv preprint arXiv:2003.13661, 2020.
|
| 248 |
+
[41] Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman, and Chelsea Finn. Gradient surgery for multi-task learning. arXiv preprint arXiv:2001.06782, 2020.
|
| 249 |
+
[42] Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on Robot Learning, pages 1094–1100. PMLR, 2020.
|
| 250 |
+
[43] Amir R Zamir, Alexander Sax, William Shen, Leonidas J Guibas, Jitendra Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3712–3722, 2018.
|
| 251 |
+
[44] Yu Zhang and Qiang Yang. A survey on multi-task learning. IEEE Transactions on Knowledge and Data Engineering, 2021.
|
| 252 |
+
|
| 253 |
+
# Checklist
|
| 254 |
+
|
| 255 |
+
1. For all authors...
|
| 256 |
+
|
| 257 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See Sec. 3.2 for the convergence analysis, Fig. 1 for the challenges faced by previous methods, and Sec. 5 for empirical evaluation of these challenges and the advantage of CAGrad.
|
| 258 |
+
(b) Did you describe the limitations of your work? [Yes] See Sec. 6. Currently we mainly focus on optimizing the average loss, which could be replaced by other main objectives.
|
| 259 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A] Our method does not have potential negative societal impacts.
|
| 260 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 261 |
+
|
| 262 |
+
2. If you are including theoretical results...
|
| 263 |
+
|
| 264 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] The assumptions are stated in Thm. 3.2.
|
| 265 |
+
(b) Did you include complete proofs of all theoretical results? [Yes] The complete proof is included in Appendix A.3.
|
| 266 |
+
|
| 267 |
+
3. If you ran experiments...
|
| 268 |
+
|
| 269 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We mention most of the details to reproduce the result in Sec. 5 and provide the rest of details of each experiment in Appendix.B. The code comes with the supplementary material.
|
| 270 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appendix.B and Sec. 5.
|
| 271 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] For each experiment except for the toy (since there is no stochasticity), we run over multiple $\left( \geq 3 \right)$ seeds.
|
| 272 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We explicitly compare the computational efficiency in Fig. 5. More details on the resources are provided in the corresponding sections in Appendix.B.
|
| 273 |
+
|
| 274 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 275 |
+
|
| 276 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] For most of the experiment, we follow the exact experiment setup and use the corresponding opensource code from previous works and have cited and compared against them.
|
| 277 |
+
(b) Did you mention the license of the assets? [Yes] All code and data are publicly available under MIT license
|
| 278 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [No] No new assets are introduced for our experiment. The only thing we modified is a shrinked LeNet, where the details are provided in Appendix.B.
|
| 279 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 280 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] The data we use are publicly available data that has been used by a lot of prior research. There should be no personally identifiable information or offensive content.
|
| 281 |
+
|
| 282 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 283 |
+
|
| 284 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] No human subjects involved.
|
| 285 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 286 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/_61Qh8tULj_/_61Qh8tULj__content_list.json
ADDED
|
@@ -0,0 +1,1225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Conflict-Averse Gradient Descent for Multi-task Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
297,
|
| 8 |
+
122,
|
| 9 |
+
700,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "†Bo Liu, †Xingchao Liu, ‡Xiaojie Jin, †,§Peter Stone, †Qiang Liu †The University of Texas at Austin, §Sony AI, $^ \\ddag$ Bytedance Research {bliu,xcliu,pstone,lqiang}@cs.utexas.edu, xjjin0731@gmail.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
236,
|
| 19 |
+
224,
|
| 20 |
+
761,
|
| 21 |
+
270
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
304,
|
| 32 |
+
535,
|
| 33 |
+
321
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "The goal of multi-task learning is to enable more efficient learning than single task learning by sharing model structures for a diverse set of tasks. A standard multi-task learning objective is to minimize the average loss across all tasks. While straightforward, using this objective often results in much worse final performance for each task than learning them independently. A major challenge in optimizing a multi-task model is the conflicting gradients, where gradients of different task objectives are not well aligned so that following the average gradient direction can be detrimental to specific tasks’ performance. Previous work has proposed several heuristics to manipulate the task gradients for mitigating this problem. But most of them lack convergence guarantee and/or could converge to any Pareto-stationary point. In this paper, we introduce Conflict-Averse Gradient descent (CAGrad) which minimizes the average loss function, while leveraging the worst local improvement of individual tasks to regularize the algorithm trajectory. CAGrad balances the objectives automatically and still provably converges to a minimum over the average loss. It includes the regular gradient descent (GD) and the multiple gradient descent algorithm (MGDA) in the multi-objective optimization (MOO) literature as special cases. On a series of challenging multi-task supervised learning and reinforcement learning tasks, CAGrad achieves improved performance over prior state-of-the-art multi-objective gradient manipulation methods. Code is available at https://github.com/Cranial-XIX/CAGrad. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
335,
|
| 43 |
+
766,
|
| 44 |
+
613
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
174,
|
| 54 |
+
640,
|
| 55 |
+
310,
|
| 56 |
+
657
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Multi-task learning (MTL) refers to learning a single model that can tackle multiple different tasks [11, 28, 44, 38]. By sharing parameters across tasks, MTL methods learn more efficiently with an overall smaller model size compared to learning with separate models [38, 40, 25]. Moreover, it has been shown that MTL could in principle improve the quality of the learned representation and therefore benefit individual tasks [35, 43, 34]. For example, an early MTL result by [2] demonstrated that training a neural network to recognize doors could be improved by simultaneously training it to recognize doorknobs. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
671,
|
| 66 |
+
825,
|
| 67 |
+
768
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "However, learning multiple tasks simultaneously can be a challenging optimization problem because it involves multiple objectives [38]. The most popular MTL objective in practice is the average loss over all tasks. Even when this average loss is exactly the true objective (as opposed to only caring about a single task as in the door/doorknob example), directly optimizing the average loss could lead to undesirable performance, e.g. the optimizer struggles to make progress so the learning performance significantly deteriorates. A known cause of this phenomenon is the conflicting gradients [41]: gradients from different tasks 1) may have varying scales with the largest gradient dominating the update, and 2) may point in different directions so that directly optimizing the average loss can be quite detrimental to a specific task’s performance. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
775,
|
| 77 |
+
825,
|
| 78 |
+
900
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/14d2ae6187fa423d10a6e6e4e172d11a36640fdd1044a7d8913cb1c05d44c78d.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: The optimization challenges faced by gradient descent (GD) and existing gradient manipulation methods like the multiple gradient descent algorithm (MGDA) [6] and PCGrad [41]. MGDA, PCGrad and CAGrad are applied on top of the Adam optimizer [16]. For each methods, we repeat 3 runs of optimization from different initial points (labeled with $\\bullet$ ). Each optimization trajectory is colored from red to yellow. GD with Adam gets stuck on two of the initial points because the gradient of one task overshadows that of the other task, causing the algorithm to jump back and forth between the walls of a steep valley without making progress along the floor of the valley. MGDA and PCGrad stop optimization as soon as they reach the Pareto set. "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
176,
|
| 91 |
+
89,
|
| 92 |
+
823,
|
| 93 |
+
190
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "To address this problem, previous work either adaptively re-weights the objectives of each task based on heuristics [3, 15] or seeks a better update vector [30, 41] by manipulating the task gradients. However, existing work often lacks convergence guarantees or only provably converges to any point on the Pareto set of the objectives. This means the final convergence point of these methods may largely depend on the initial model parameters. As a result, it is possible that these methods over-optimize one objective while overlooking the others (See Fig. 1). ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
173,
|
| 102 |
+
327,
|
| 103 |
+
825,
|
| 104 |
+
410
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "Motivated by the limitation of current methods, we introduce Conflict-Averse Gradient descent (CAGrad), which reduces the conflict among gradients and still provably converges to a minimum of the average loss. The idea of CAGrad is simple: it looks for an update vector that maximizes the worst local improvement of any objective in a neighborhood of the average gradient. In this way, CAGrad automatically balances different objectives and smoothly converges to an optimal point of the average loss. Specifically, we show that vanilla gradient descent (GD) and the multiple gradient descent algorithm (MGDA) are special cases of CAGrad (See Sec. 3.1). We demonstrate that CAGrad can improve over prior state-of-the-art gradient manipulation methods on a series of challenging multi-task supervised, semi-supervised, and reinforcement learning problems. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
416,
|
| 114 |
+
825,
|
| 115 |
+
541
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "2 Background ",
|
| 122 |
+
"text_level": 1,
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
560,
|
| 126 |
+
308,
|
| 127 |
+
577
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "In this section, we first introduce the problem setup of multi-task learning (MTL). Then we analyze the optimization challenge of MTL and discuss the limitation of prior gradient manipulation methods. ",
|
| 134 |
+
"bbox": [
|
| 135 |
+
173,
|
| 136 |
+
590,
|
| 137 |
+
825,
|
| 138 |
+
619
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "2.1 Multi-task Learning and its Challenge ",
|
| 145 |
+
"text_level": 1,
|
| 146 |
+
"bbox": [
|
| 147 |
+
173,
|
| 148 |
+
631,
|
| 149 |
+
478,
|
| 150 |
+
647
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "In multi-task learning (MTL), we are given $K \\geq 2$ different tasks, each of which is associated with a loss function $L _ { i } ( \\theta )$ for a shared set of parameters $\\theta$ . The goal is to find an optimal $\\theta \\in \\mathbb { R } ^ { m }$ that achieves low losses across all tasks. In practice, a standard objective for MTL is minimizing the average loss over all tasks: ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
652,
|
| 160 |
+
825,
|
| 161 |
+
709
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "equation",
|
| 167 |
+
"img_path": "images/889c361e1f527d61e1d650c6e00c51324425e5bcbd51d752464c23b62cbb07a3.jpg",
|
| 168 |
+
"text": "$$\n\\theta ^ { * } = \\underset { \\theta \\in \\mathbb { R } ^ { m } } { \\arg \\operatorname* { m i n } } \\left\\{ L _ { 0 } ( \\theta ) \\triangleq \\frac { 1 } { K } \\sum _ { i = 1 } ^ { K } L _ { i } ( \\theta ) \\right\\} .\n$$",
|
| 169 |
+
"text_format": "latex",
|
| 170 |
+
"bbox": [
|
| 171 |
+
359,
|
| 172 |
+
715,
|
| 173 |
+
637,
|
| 174 |
+
758
|
| 175 |
+
],
|
| 176 |
+
"page_idx": 1
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"type": "text",
|
| 180 |
+
"text": "Unfortunately, directly optimizing (1) using gradient descent may significantly compromise the optimization of individual losses in practice. A major source of this phenomenon is known as the conflicting gradients [41]. ",
|
| 181 |
+
"bbox": [
|
| 182 |
+
174,
|
| 183 |
+
763,
|
| 184 |
+
825,
|
| 185 |
+
806
|
| 186 |
+
],
|
| 187 |
+
"page_idx": 1
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"type": "text",
|
| 191 |
+
"text": "Optimization Challenge: Conflicting Gradients Denote by $g _ { i } = \\nabla L _ { i } ( \\theta )$ the gradient of task $i$ , and $\\begin{array} { r } { g _ { 0 } = \\nabla L _ { 0 } ( \\theta ) = \\frac { 1 } { K } \\sum _ { i } ^ { K } g _ { i } } \\end{array}$ the averaged gradient. With learning rate $\\alpha \\in \\mathbb { R } ^ { + }$ , $\\theta \\theta - \\alpha g _ { 0 }$ is the steepest descent update that appears to be the most natural update to follow when optimizing (1). However, $g _ { 0 }$ may conflict with individual gradients, i.e. $\\exists \\ i$ , $\\langle g _ { i } , g _ { 0 } \\rangle < 0$ . When this conflict is large, following $g _ { 0 }$ will decrease the performance on task $i$ . As observed by [41] and illustrated in Fig. 1, when $\\theta$ is near a steep “valley\", where a specific task’s gradient dominates the update, manipulating the direction and magnitude of $g _ { 0 }$ often leads to better optimization. ",
|
| 192 |
+
"bbox": [
|
| 193 |
+
173,
|
| 194 |
+
811,
|
| 195 |
+
826,
|
| 196 |
+
912
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 1
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "text",
|
| 202 |
+
"text": "2.2 Prior Attempts and Convergence Issues ",
|
| 203 |
+
"text_level": 1,
|
| 204 |
+
"bbox": [
|
| 205 |
+
174,
|
| 206 |
+
90,
|
| 207 |
+
488,
|
| 208 |
+
106
|
| 209 |
+
],
|
| 210 |
+
"page_idx": 2
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"type": "text",
|
| 214 |
+
"text": "Several methods have been proposed to manipulate the task gradients to form a new update vector and have shown improved performance on MTL. Sener et al. apply the multiple-gradient descent algorithm (MGDA) [6] for MTL, which directly optimizes towards the Pareto set [30]. Chen et al. dynamically re-weight each $L _ { i }$ using a pre-defined heuristic [3]. More recently, PCGrad identifies conflicting gradients as the motivation behind manipulating the gradients and projects each task gradient to the normal plane of others to reduce the conflict [41]. While all these methods have shown success at improving the learning performance of MTL, they manipulate the gradient without respecting the original objective (1). Therefore, these methods could in principle converge to any point in the Pareto set (See Fig. 1 and Sec. 3.2). We provide the detailed algorithms of MGDA and PCGrad in Appendix A.1 and A.2, and a visualization of the update vector by each method in Fig. 2. ",
|
| 215 |
+
"bbox": [
|
| 216 |
+
173,
|
| 217 |
+
112,
|
| 218 |
+
826,
|
| 219 |
+
252
|
| 220 |
+
],
|
| 221 |
+
"page_idx": 2
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"type": "text",
|
| 225 |
+
"text": "3 Method ",
|
| 226 |
+
"text_level": 1,
|
| 227 |
+
"bbox": [
|
| 228 |
+
174,
|
| 229 |
+
270,
|
| 230 |
+
271,
|
| 231 |
+
287
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "We introduce our main algorithm, Conflict-Averse Gradient descent in Sec. 3.1, and then show theoretical analysis in Sec. 3.2. ",
|
| 238 |
+
"bbox": [
|
| 239 |
+
174,
|
| 240 |
+
301,
|
| 241 |
+
823,
|
| 242 |
+
330
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "3.1 Conflict-Averse Gradient Descent ",
|
| 249 |
+
"text_level": 1,
|
| 250 |
+
"bbox": [
|
| 251 |
+
174,
|
| 252 |
+
343,
|
| 253 |
+
444,
|
| 254 |
+
358
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "Assume we update $\\theta$ by $\\theta ^ { \\prime } \\theta - \\alpha d$ , where $\\alpha$ is a step size and $d$ an update vector. We want to choose $d$ to decrease not only the average loss $L _ { 0 }$ , but also every individual loss. To do so, we consider the minimum decrease rate across the losses, ",
|
| 261 |
+
"bbox": [
|
| 262 |
+
174,
|
| 263 |
+
364,
|
| 264 |
+
825,
|
| 265 |
+
407
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "equation",
|
| 271 |
+
"img_path": "images/5fa1a63842e5aace12db9343eb021e68b73c9a9e847a4628ef2e468de1fd3b96.jpg",
|
| 272 |
+
"text": "$$\nR ( \\theta , d ) = \\operatorname* { m a x } _ { i \\in [ K ] } \\left\\{ { \\frac { 1 } { \\alpha } } \\left( L _ { i } ( \\theta - \\alpha d ) - L _ { i } ( \\theta ) \\right) \\right\\} \\approx - \\operatorname* { m i n } _ { i \\in [ K ] } \\langle g _ { i } , d \\rangle ,\n$$",
|
| 273 |
+
"text_format": "latex",
|
| 274 |
+
"bbox": [
|
| 275 |
+
292,
|
| 276 |
+
412,
|
| 277 |
+
704,
|
| 278 |
+
448
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "where we use the first-order Taylor approximation assuming $\\alpha$ is small. If $R ( \\theta , d ) < 0$ , it means that all losses are decreased with the update given a sufficiently small $\\alpha$ . Therefore, $R ( \\theta , d )$ can be regarded as a measurement of conflict among objectives. ",
|
| 285 |
+
"bbox": [
|
| 286 |
+
174,
|
| 287 |
+
454,
|
| 288 |
+
823,
|
| 289 |
+
497
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 2
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "With the above measurement, our algorithm finds an update vector that minimizes such conflict to mitigate the optimization challenge while still converging to an optimum of the main objective $L _ { 0 } ( \\theta )$ . To this end, we introduce Conflict-Averse Gradient descent (CAGrad), which on each optimization step determines the update $d$ by solving the following optimization problem: ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
173,
|
| 298 |
+
502,
|
| 299 |
+
825,
|
| 300 |
+
559
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "equation",
|
| 306 |
+
"img_path": "images/adfaf4eaa2fcef74c38ef4bcec42646e25a369f72db8a89fa9d92aa8de22a9d2.jpg",
|
| 307 |
+
"text": "$$\n\\operatorname* { m a x } _ { d \\in \\mathbb { R } ^ { m } } \\operatorname* { m i n } _ { i \\in [ K ] } \\langle g _ { i } , d \\rangle \\quad \\mathrm { s . t . } \\quad \\left\\| d - g _ { 0 } \\right\\| \\leq c \\left\\| g _ { 0 } \\right\\| ,\n$$",
|
| 308 |
+
"text_format": "latex",
|
| 309 |
+
"bbox": [
|
| 310 |
+
348,
|
| 311 |
+
565,
|
| 312 |
+
648,
|
| 313 |
+
592
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "Here, $c \\in [ 0 , 1 )$ is a pre-specified hyper-parameter that controls the convergence rate (See Sec. 3.2). The optimization problem (3) looks for the best update vector within a local ball centered at the averaged gradient $g _ { 0 }$ , which also minimizes the conflict in losses measured by (2). Since we focus on MTL and choose the average loss as the main objective, $g _ { 0 }$ is the average gradient. However, CAGrad also applies when $g _ { 0 }$ is the gradient of some other user-specified objective. We leave exploring this possibility as a future direction. ",
|
| 320 |
+
"bbox": [
|
| 321 |
+
173,
|
| 322 |
+
598,
|
| 323 |
+
825,
|
| 324 |
+
683
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 2
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "Dual Objective The optimization problem (3) involves decision variable $d$ that has the same dimension as the number of parameters in $\\theta$ , which could be millions for a deep neural network. It is not practical to directly solve for $d$ on every optimization step. However, the dual problem of Eq. (3), as we will derive in the following, only involves solving for a decision variable $w \\in \\mathbb { R } ^ { K }$ , which can be efficiently found using standard optimization libraries [7]. Specifically, first note that $\\begin{array} { r } { \\operatorname* { m i n } _ { i } \\langle g _ { i } , d \\rangle = \\operatorname* { m i n } _ { w \\in \\mathcal { W } } \\langle \\sum _ { i } w _ { i } \\bar { g } _ { i } , d \\rangle } \\end{array}$ , where $w = ( w _ { 1 } , \\dots , w _ { K } ) \\in \\mathbb { R } ^ { K }$ and $\\mathcal { W }$ denotes the probability simplex, i.e. $\\begin{array} { r } { \\mathcal { W } = \\{ w : \\sum _ { i } w _ { i } = 1 } \\end{array}$ and $w _ { i } ~ \\geq ~ 0 \\}$ . Denote $\\begin{array} { r } { g _ { w } \\ = \\ \\sum _ { i } w _ { i } g _ { i } } \\end{array}$ and $\\phi = c ^ { 2 } \\left\\| g _ { 0 } \\right\\| ^ { 2 }$ . The Lagrangian of the objective in Eq. (3) is ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
173,
|
| 333 |
+
696,
|
| 334 |
+
826,
|
| 335 |
+
813
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 2
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "equation",
|
| 341 |
+
"img_path": "images/249471cc392a3bd1a1fd38e6bd87e15f6b3194218e730715b42a11c263411e31.jpg",
|
| 342 |
+
"text": "$$\n\\operatorname* { m a x } _ { d \\in \\mathbb { R } ^ { m } } \\operatorname* { m i n } _ { \\lambda \\geq 0 , w \\in \\mathcal { W } } g _ { w } ^ { \\top } d - \\lambda ( \\left. g _ { 0 } - d \\right. ^ { 2 } - \\phi ) / 2 .\n$$",
|
| 343 |
+
"text_format": "latex",
|
| 344 |
+
"bbox": [
|
| 345 |
+
352,
|
| 346 |
+
819,
|
| 347 |
+
643,
|
| 348 |
+
845
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 2
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "Since the objective for $d$ is concave with linear constraints, by switching the min and max, we reach the dual form without changing the solution by Slater’s condition: ",
|
| 355 |
+
"bbox": [
|
| 356 |
+
171,
|
| 357 |
+
853,
|
| 358 |
+
823,
|
| 359 |
+
882
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 2
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "equation",
|
| 365 |
+
"img_path": "images/d18fbd86da08bc545247a9432cc748f5e248533a2017b8897c4e9627008fbc26.jpg",
|
| 366 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\lambda \\geq 0 , w \\in \\mathcal { W } } \\operatorname* { m a x } _ { d \\in \\mathbb { R } ^ { m } } g _ { w } ^ { \\top } d - \\lambda \\left. g _ { 0 } - d \\right. ^ { 2 } / 2 + \\lambda \\phi / 2 .\n$$",
|
| 367 |
+
"text_format": "latex",
|
| 368 |
+
"bbox": [
|
| 369 |
+
343,
|
| 370 |
+
888,
|
| 371 |
+
653,
|
| 372 |
+
915
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 2
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "table",
|
| 378 |
+
"img_path": "images/d8fa599614866baf4fa4f8bc66c07829dd06caa02ff9c914b65f62782fb2a1a8.jpg",
|
| 379 |
+
"table_caption": [],
|
| 380 |
+
"table_footnote": [],
|
| 381 |
+
"table_body": "<table><tr><td>Input: Initial model parameter vector 0o,differentiable loss functions {Li}=1,a constant c ∈ [0,1) and learning rate α ∈ R+.</td></tr><tr><td>repeat</td></tr><tr><td>At the t-th optimization step,define go = k∑i-1 VLi(θt-1) and =c² /ol²2. 1K Solve</td></tr><tr><td>K min, F(w) := gg +√Φ|lgull,where gω = 1 M wiVLi(0t-1).</td></tr><tr><td>K wEW i=1</td></tr><tr><td></td></tr><tr><td>Update 0t = 0t-1-α (go+ i 1/2 9w). 1igwll</td></tr><tr><td>until convergence</td></tr><tr><td></td></tr></table>",
|
| 382 |
+
"bbox": [
|
| 383 |
+
184,
|
| 384 |
+
108,
|
| 385 |
+
828,
|
| 386 |
+
267
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "We end up with the following optimization problem w.r.t. $w$ after several steps of calculus, ",
|
| 393 |
+
"bbox": [
|
| 394 |
+
171,
|
| 395 |
+
294,
|
| 396 |
+
766,
|
| 397 |
+
309
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "equation",
|
| 403 |
+
"img_path": "images/c587f0ba73a6c7d3e9cf88cb9993a883ee9e688ec81768c6fc9a13ea42b183e0.jpg",
|
| 404 |
+
"text": "$$\n\\boldsymbol { w } ^ { * } = \\underset { \\boldsymbol { w } \\in \\mathcal { W } } { \\arg \\operatorname* { m i n } } \\ : g _ { \\boldsymbol { w } } ^ { \\top } \\boldsymbol { g } _ { 0 } + \\sqrt { \\phi } \\left\\| \\boldsymbol { g } _ { \\boldsymbol { w } } \\right\\| ,\n$$",
|
| 405 |
+
"text_format": "latex",
|
| 406 |
+
"bbox": [
|
| 407 |
+
385,
|
| 408 |
+
315,
|
| 409 |
+
611,
|
| 410 |
+
344
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "where the optimal $\\lambda ^ { * } = \\| g _ { w ^ { * } } \\| / \\phi ^ { 1 / 2 }$ and the optimal update $d ^ { * } = g _ { 0 } + g _ { w ^ { * } } / \\lambda ^ { * }$ . The detailed derivation is provided in Appendix A.3 and the entire CAGrad algorithm is summarized in Alg. 1. The dimension of $w$ equals to the number of objectives $K$ , which usually ranges from 2 to tens and is much smaller than the number of parameters in a neural network. Therefore, in practice, we solve the dual objective to perform the update of CAGrad. ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
173,
|
| 419 |
+
352,
|
| 420 |
+
825,
|
| 421 |
+
422
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Remark In Alg. 1, when $c = 0$ , CAGrad recovers the typical gradient descent with $d = g _ { 0 }$ . On the other hand, when $c \\to \\infty$ , then minimizing $F ( w )$ is equivalent to $\\operatorname* { m i n } _ { w } \\left\\| g _ { w } \\right\\|$ . This coincides with the multiple gradient descent algorithm (MGDA) [6], which uses the minimum norm vector in the convex hull of the individual gradients as the update direction (see Fig. 2; second column). MGDA is a gradient-based multi-objective optimization designed to converge to an arbitrary point on the Pareto set, that is, it leaves all the points on the Pareto set as fixed points (and hence can not control which specific point it will converge to). It is different from our method which targets to minimize $L _ { 0 }$ while using gradient conflict to regularize the optimization trajectory. As we will analyze in the following section, to guarantee that CAGrad converges to an optimum of $L _ { 0 } ( \\theta )$ , we have to ensure $0 \\leq c < 1$ ",
|
| 428 |
+
"bbox": [
|
| 429 |
+
173,
|
| 430 |
+
436,
|
| 431 |
+
825,
|
| 432 |
+
563
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "3.2 Convergence Analysis ",
|
| 439 |
+
"text_level": 1,
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
574,
|
| 443 |
+
366,
|
| 444 |
+
590
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "In this section we first formally introduce the related Pareto concepts and then analyze CAGrad’s convergence property. Particularly, in Alg. 1, when $c < 1$ , CAGrad is guaranteed to converge to a minimum point of the average loss $L _ { 0 }$ . ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
174,
|
| 453 |
+
597,
|
| 454 |
+
825,
|
| 455 |
+
638
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "Pareto Concepts Unlike single task learning where any two parameter vectors $\\theta _ { 1 }$ and $\\theta _ { 2 }$ can be ordered in the sense that either $L ( \\theta _ { 1 } ) \\leq L ( \\mathsf { \\bar { \\theta } } _ { 2 } )$ or $L ( \\theta _ { 1 } ) \\ge L \\bar { ( \\theta _ { 2 } ) }$ holds, MTL could have two parameter vectors where one performs better for task $i$ and the other performs better for task $j \\neq i$ To this end, we need the notion of Pareto-optimality [13]. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
173,
|
| 464 |
+
645,
|
| 465 |
+
825,
|
| 466 |
+
700
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "Definition 3.1 (Pareto optimal and stationary points). Let $\\pmb { L } ( \\theta ) = \\{ L _ { i } ( \\theta ) \\colon i \\in [ K ] \\}$ be a set of differentiable loss functions from $\\mathbb { R } ^ { m }$ to $\\mathbb { R }$ . For two points $\\theta , \\theta ^ { \\prime } \\in \\mathbb { R } ^ { m }$ , we say that $\\theta$ is Pareto dominated by $\\theta ^ { \\prime }$ , denoted by $\\mathbf { } \\cdot \\mathbf { L } ( \\theta ^ { \\prime } ) \\prec L ( \\theta )$ , if $L _ { i } ( \\theta ^ { \\prime } ) \\leq L _ { i } ( \\theta )$ for all $i \\in [ K ]$ and $\\pmb { L } ( \\theta ^ { \\prime } ) \\neq \\pmb { L } ( \\theta )$ . A point $\\theta \\in \\mathbb { R } ^ { m }$ is said to be Pareto-optimal if there exists no $\\theta ^ { \\prime } \\in \\mathbb { R } ^ { m }$ such that $\\mathbf { \\dot { L } } ( \\theta ^ { \\prime } ) \\prec \\dot { \\mathbf { L } } ( \\theta )$ . The set of all Pareto-optimal points is called the Pareto set. $A$ point $\\theta$ is called Pareto-stationary if we have $\\mathrm { m i n } _ { w \\in \\mathcal { W } } \\| g _ { w } ( \\theta ) \\| = 0$ , where $\\begin{array} { r } { g _ { w } ( \\theta ) = \\sum _ { i = 1 } ^ { K } w _ { i } \\nabla L _ { i } ( \\theta ) } \\end{array}$ , and $\\mathcal { W }$ is the probability simplex on $[ K ]$ . ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
173,
|
| 475 |
+
710,
|
| 476 |
+
825,
|
| 477 |
+
800
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "Similar to the case of single-objective differentiable optimization, a local Pareto optimal point $\\theta$ must be Pareto stationary (see e.g., [6]). ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
174,
|
| 486 |
+
808,
|
| 487 |
+
823,
|
| 488 |
+
838
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 3
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "Theorem 3.2 (Convergence of CAGrad). Assume the individual loss functions $L _ { 0 } , L _ { 1 } , \\dots , L _ { K }$ are differentiable on $\\mathbb { R } ^ { m }$ and their gradients $\\nabla L _ { i } ( \\theta )$ are all $H$ -Lipschitz, i.e. $\\lVert \\nabla L _ { i } ( x ) - \\nabla L _ { i } ( y ) \\rVert \\leq$ $H \\parallel x - y \\parallel$ for $i = 0 , 1 , \\ldots , K$ where $0 \\leq H \\leq \\infty$ . Assume $L _ { 0 } ^ { * } = \\operatorname* { i n f } _ { \\theta \\in \\mathbb { R } ^ { m } } \\dot { L } _ { 0 } ( \\theta ) > - \\infty$ . ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
848,
|
| 498 |
+
825,
|
| 499 |
+
892
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 3
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "With a fixed step size $\\alpha$ satisfying $0 < \\alpha \\leq 1 / H$ , we have for the CAGrad in Alg. 1: ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
173,
|
| 508 |
+
896,
|
| 509 |
+
720,
|
| 510 |
+
912
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 3
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "image",
|
| 516 |
+
"img_path": "images/5c9c3173a60de5bc0f95c0dd8cfdd3adf5f1660683b1fd79cd70859bb92f45e3.jpg",
|
| 517 |
+
"image_caption": [
|
| 518 |
+
"Figure 2: The combined update vector $d$ (in red) of a two-task learning problem with gradient descent (GD), multiple gradient descent algorithm (MGDA), PCGrad and Conflict-Averse Gradient descent (CAGrad). The two task-specific gradients are labeled $g _ { 1 }$ and $g _ { 2 }$ . MGDA’s objective is given in its primal form (See Appendix A.1). For PCGrad, each gradient is first projected onto the normal plane of the other (the dashed arrows). Then the final update vector is the average of the two projected gradients. CAGrad finds the best update vector within a ball around the average gradient that maximizes the worse local improvement between task 1 and task 2. "
|
| 519 |
+
],
|
| 520 |
+
"image_footnote": [],
|
| 521 |
+
"bbox": [
|
| 522 |
+
171,
|
| 523 |
+
87,
|
| 524 |
+
825,
|
| 525 |
+
232
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "1) For any $c \\geq 1$ , all the fixed points of CAGrad are Pareto-stationary points of $( L _ { 0 } , L _ { 1 } , \\ldots , L _ { K } )$ ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
173,
|
| 534 |
+
357,
|
| 535 |
+
813,
|
| 536 |
+
372
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "2) In particular, if we take $0 \\leq c < 1$ , then CAGrad satisfies ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
174,
|
| 545 |
+
377,
|
| 546 |
+
568,
|
| 547 |
+
393
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "equation",
|
| 553 |
+
"img_path": "images/b00bc7b869378e60e2444cbe7d40e296e579e088de0c6b3e6be3801936505574.jpg",
|
| 554 |
+
"text": "$$\n\\sum _ { t = 0 } ^ { T } \\left. \\nabla L _ { 0 } ( \\theta _ { t } ) \\right. ^ { 2 } \\leq \\frac { 2 ( L _ { 0 } ( \\theta _ { 0 } ) - L _ { 0 } ^ { * } ) } { \\alpha ( 1 - c ^ { 2 } ) } .\n$$",
|
| 555 |
+
"text_format": "latex",
|
| 556 |
+
"bbox": [
|
| 557 |
+
372,
|
| 558 |
+
397,
|
| 559 |
+
622,
|
| 560 |
+
440
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 4
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "This means that the algorithm converges to a stationary point of $\\nabla L _ { 0 }$ if we take $0 \\leq c < 1$ . The proof is in Appendix A.3. As we discuss earlier, unlike our method, MGDA is designed to converge to an arbitrary point on the Pareto set, without explicit control of which point it will converges to. Another algorithm with similar property is PCGrad [41], which is a gradient-based algorithm that mitigates the conflicting gradients problem by removing the conflicting components of each gradient with respect to the other gradients before averaging them to form the final update; see Fig. 2, third column for the illustration. Similar to MGDA, as shown in [41], PCGrad also converges to an arbitrary Pareto point without explicit control of which point it will arrive at. ",
|
| 567 |
+
"bbox": [
|
| 568 |
+
173,
|
| 569 |
+
450,
|
| 570 |
+
826,
|
| 571 |
+
563
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 4
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "text",
|
| 577 |
+
"text": "3.3 Practical Speedup ",
|
| 578 |
+
"text_level": 1,
|
| 579 |
+
"bbox": [
|
| 580 |
+
174,
|
| 581 |
+
574,
|
| 582 |
+
339,
|
| 583 |
+
589
|
| 584 |
+
],
|
| 585 |
+
"page_idx": 4
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"type": "text",
|
| 589 |
+
"text": "A typical drawback of methods that manipulate gradients is the computation overhead. For computing the optimal update vector, a method usually requires $K$ back-propagations to find all individual gradients $g _ { i }$ , in addition to the time required for optimization. This can be prohibitive for the scenario with many tasks. To this end, we propose to only sample a subset of tasks $S \\subseteq [ K ]$ , compute their corresponding gradients $\\{ g _ { i } \\mid i \\in { \\overline { { S } } } \\}$ and the averaged gradient $g _ { 0 }$ . Then we optimize $d$ in: ",
|
| 590 |
+
"bbox": [
|
| 591 |
+
173,
|
| 592 |
+
594,
|
| 593 |
+
825,
|
| 594 |
+
666
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 4
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "equation",
|
| 600 |
+
"img_path": "images/0ac10dde2ee514b0fda7a275ea05546939e1631abb1526d2ce1861fe4df1a6d2.jpg",
|
| 601 |
+
"text": "$$\n\\operatorname* { m a x } _ { d \\in \\mathbb { R } ^ { m } } \\operatorname* { m i n } \\left( \\langle \\frac { K g _ { 0 } - \\sum _ { i \\in S } g _ { i } } { K - | S | } , d \\rangle , \\ : \\ : \\operatorname* { m i n } _ { i \\in S } \\langle g _ { i } , d \\rangle \\right) \\mathrm { s . t . } \\| d - g _ { 0 } \\| \\leq c \\| g _ { 0 } \\|\n$$",
|
| 602 |
+
"text_format": "latex",
|
| 603 |
+
"bbox": [
|
| 604 |
+
254,
|
| 605 |
+
670,
|
| 606 |
+
740,
|
| 607 |
+
705
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 4
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "Remark Note that the convergence guarantee in Thm. 3.2 still holds for Eq. 4 as the constraint does not change (See Appendix A.3). The time complexity is $\\mathcal { O } ( ( \\vert S \\vert N + T )$ , where $N$ denotes the time for one pass of back-propagation and $T$ denotes the optimization time. For few-task learning $K < 1 0$ ), usually $T \\ll N$ . When $S = [ K ]$ , we recover the full CAGrad algorithm. ",
|
| 614 |
+
"bbox": [
|
| 615 |
+
173,
|
| 616 |
+
708,
|
| 617 |
+
825,
|
| 618 |
+
765
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 4
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "4 Related Work ",
|
| 625 |
+
"text_level": 1,
|
| 626 |
+
"bbox": [
|
| 627 |
+
174,
|
| 628 |
+
782,
|
| 629 |
+
321,
|
| 630 |
+
800
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "Multi-task Learning Due to its benefit with regards to data and computational efficiency, multi-task learning (MTL) has broad applications in vision, language, and robotics [11, 28, 22, 44, 38]. A number of MTL-friendly architectures have been proposed using task-specific modules [25, 11], attentionbased mechanisms [21] or activating different paths along the deep networks to tackle MTL [27, 40]. Apart from designing new architectures, another branch of methods focus on decomposing a large problem into smaller local problems that could be quickly learned by smaller models [29, 26, 37, 8]. Then a unified policy is learned from the smaller models using knowledge distillation [12]. ",
|
| 637 |
+
"bbox": [
|
| 638 |
+
173,
|
| 639 |
+
813,
|
| 640 |
+
826,
|
| 641 |
+
912
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 4
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "MTL Optimization In this work, we focus on the optimization challenge of MTL [38]. Gradient manipulation methods are designed specifically to balance the learning of each task. The simplest form of gradient manipulation is to re-weight the task losses based on specific criteria, e.g., uncertainty [15], gradient norm [3], or difficulty [9]. These methods are mostly heuristics and their performance can be unstable. Recently, two methods [30, 41] that manipulate the gradients to find a better local update vector have become popular. Sener et al [30] view MTL as a multi-objective optimization problem, and use multiple gradient descent algorithm for optimization. PCGrad [41] identifies a major optimization challenge for MTL, the conflicting gradients, and proposes to project each task gradient to the normal plane of other task gradients before combining them together to form the final update vector. Though yielding good empirical performance, both methods can only guarantee convergence to a Pareto-stationary point, but not knowing where it exactly converges to. More recently, GradDrop [4] randomly drops out task gradients based on how much they conflict. IMTLG [20] seeks an update vector that has equal projections on each task gradient. RotoGrad [14] separately scales and rotates task gradients to mitigate optimization conflict. ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
173,
|
| 650 |
+
90,
|
| 651 |
+
825,
|
| 652 |
+
285
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 5
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "Our method, CAGrad, also manipulates the gradient to find a better optimization trajectory. Like other MTL optimization techniques, CAGrad is model-agnostic. However, unlike prior methods, CAGrad converges to the optimal point in theory and achieves better empirical performance on both toy multi-objective optimization tasks and real-world applications. ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
174,
|
| 661 |
+
291,
|
| 662 |
+
825,
|
| 663 |
+
347
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 5
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "5 Experiment ",
|
| 670 |
+
"text_level": 1,
|
| 671 |
+
"bbox": [
|
| 672 |
+
174,
|
| 673 |
+
369,
|
| 674 |
+
303,
|
| 675 |
+
387
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 5
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "We conduct experiments to answer the following questions: ",
|
| 682 |
+
"bbox": [
|
| 683 |
+
173,
|
| 684 |
+
402,
|
| 685 |
+
563,
|
| 686 |
+
417
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 5
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "text",
|
| 692 |
+
"text": "Question (1) Do CAGrad, MGDA and PCGrad behave consistently with their theoretical properties in practice? (yes) ",
|
| 693 |
+
"bbox": [
|
| 694 |
+
174,
|
| 695 |
+
422,
|
| 696 |
+
823,
|
| 697 |
+
452
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 5
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "Question (2) Does CAGrad recover GD and MGDA when varying the constant $c ?$ (yes) ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
171,
|
| 706 |
+
457,
|
| 707 |
+
751,
|
| 708 |
+
473
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 5
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "Question (3) How does CAGrad perform in both performance and computational efficiency compared to prior state-of-the-art methods, on challenging multi-task learning problems under the supervised, semi-supervised and reinforcement learning settings? (CAGrad improves over prior state-of-the-art methods under all settings) ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
174,
|
| 717 |
+
478,
|
| 718 |
+
825,
|
| 719 |
+
535
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 5
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "5.1 Convergence and Ablation over c ",
|
| 726 |
+
"text_level": 1,
|
| 727 |
+
"bbox": [
|
| 728 |
+
176,
|
| 729 |
+
551,
|
| 730 |
+
442,
|
| 731 |
+
565
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 5
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "To answer questions (1) and (2), we create a toy optimization example to evaluate the convergence of CAGrad compared to MGDA and PCGrad. On the same toy example, we ablate over the constant $c$ and show that CAGrad recovers GD and MGDA with proper $c$ values. Next, to test CAGrad on more complicated neural models, we perform the same set of experiments on the Multi-Fashion+MNIST benchmark [19] with a shrinked LeNet architecture [18] (in which each layer has a reduced number of neurons compared to the original LeNet). Please refer to Appendix B for more details. ",
|
| 738 |
+
"bbox": [
|
| 739 |
+
173,
|
| 740 |
+
573,
|
| 741 |
+
825,
|
| 742 |
+
657
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 5
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "For the toy optimization example, we modify the toy example used by $\\mathrm { Y u }$ et al. [41] and consider $\\theta = ( \\theta _ { 1 } , \\bar { \\theta _ { 2 } } ) \\overset { \\cdot } { \\in } \\mathbb { R } ^ { 2 }$ with the following individual loss functions: ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
169,
|
| 751 |
+
662,
|
| 752 |
+
823,
|
| 753 |
+
691
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 5
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "equation",
|
| 759 |
+
"img_path": "images/d08e3254ebff6bc055148a96629a8ca033e870653a63ba79bada58df7e636f9f.jpg",
|
| 760 |
+
"text": "$$\n\\begin{array} { r l } & { L _ { 1 } ( \\theta ) = c _ { 1 } ( \\theta ) f _ { 1 } ( \\theta ) + c _ { 2 } ( \\theta ) g _ { 1 } ( \\theta ) \\mathrm { ~ a n d ~ } L _ { 2 } ( \\theta ) = c _ { 1 } ( \\theta ) f _ { 2 } ( \\theta ) + c _ { 2 } ( \\theta ) g _ { 2 } ( \\theta ) , \\forall } \\\\ & { f _ { 1 } ( \\theta ) = \\log \\big ( \\operatorname* { m a x } ( | 0 . 5 ( - \\theta _ { 1 } - 7 ) - \\operatorname { t a n h } { ( - \\theta _ { 2 } ) } | , \\ 0 . 0 0 0 0 0 5 ) \\big ) + 6 , } \\\\ & { f _ { 2 } ( \\theta ) = \\log \\big ( \\operatorname* { m a x } ( | 0 . 5 ( - \\theta _ { 1 } + 3 ) - \\operatorname { t a n h } { ( - \\theta _ { 2 } ) } + 2 | , \\ 0 . 0 0 0 0 0 5 ) \\big ) + 6 , } \\\\ & { g _ { 1 } ( \\theta ) = \\big ( ( - \\theta _ { 1 } + 7 ) ^ { 2 } + 0 . 1 * ( - \\theta _ { 2 } - 8 ) ^ { 2 } \\big ) / 1 0 - 2 0 , } \\\\ & { g _ { 2 } ( \\theta ) = \\big ( ( - \\theta _ { 1 } - 7 ) ^ { 2 } + 0 . 1 * ( - \\theta _ { 2 } - 8 ) ^ { 2 } \\big ) / 1 0 - 2 0 , } \\\\ & { c _ { 1 } ( \\theta ) = \\operatorname* { m a x } ( \\operatorname { t a n h } { ( 0 . 5 * \\theta _ { 2 } ) } , \\ 0 ) \\mathrm { ~ a n d ~ } c _ { 2 } ( \\theta ) = \\operatorname* { m a x } ( \\operatorname { t a n h } { ( - 0 . 5 * \\theta _ { 2 } ) } , \\ 0 ) . } \\end{array}\n$$",
|
| 761 |
+
"text_format": "latex",
|
| 762 |
+
"bbox": [
|
| 763 |
+
228,
|
| 764 |
+
699,
|
| 765 |
+
733,
|
| 766 |
+
820
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 5
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "The average loss $L _ { 0 }$ and individual losses $L _ { 1 }$ and $L _ { 2 }$ are shown in Fig. 1. We then pick 5 initial parameter vectors $\\theta _ { \\mathrm { i n i t } } \\in \\{ ( - 8 . 5 , 7 . 5 ) , ( - 8 . 5 , 5 ) , ( 0 , 0 ) , ( 9 , 9 ) , ( 1 0 , - 8 ) \\}$ and plot the corresponding optimization trajectories with different methods in Fig. 3. As shown in Fig. 3, GD gets stuck in 2 out of the 5 runs while other methods all converge to the Pareto set. MGDA and PCGrad converge to different Pareto-stationary points depending on $\\theta _ { \\mathrm { i n i t } }$ . CAGrad with $c = 0$ recovers GD and CAGrad with $c = 1 0$ approximates MGDA well (in theory it requires $c \\to \\infty$ to exactly recover MGDA). ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
174,
|
| 775 |
+
827,
|
| 776 |
+
825,
|
| 777 |
+
911
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 5
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "image",
|
| 783 |
+
"img_path": "images/75d2f251d4cdaccd9c44f7ec6d7b1f0f9b38469e21607d25f96a255236d70ce3.jpg",
|
| 784 |
+
"image_caption": [
|
| 785 |
+
"Figure 3: The left four plots are 5 runs of each algorithms from 5 different initial parameter vectors, where trajectories are colored from red to yellow. The right two plots are CAGrad’s results with a varying $\\bar { c ^ { \\prime } } \\in \\{ 0 , 0 . 2 , 0 . 5 , 0 . 8 , 1 0 \\}$ . "
|
| 786 |
+
],
|
| 787 |
+
"image_footnote": [],
|
| 788 |
+
"bbox": [
|
| 789 |
+
173,
|
| 790 |
+
88,
|
| 791 |
+
826,
|
| 792 |
+
198
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "Next, we apply the same set of experiments on the multi-task classification benchmark MultiFashion+MNIST [19]. This benchmark consists of images that are generated by overlaying an image from FashionMNIST dataset [39] on top of another image from MNIST dataset [5]. The two images are positioned on the top-left and bottom-right separately. We consider a shrinked LeNet as our model, and train it with Adam [16] optimizer with a 0.001 learning rate for 50 epochs using a batch size of 256. Due to the highly non-convex nature of the neural network, we are not able to visualize the entire Pareto set. But we provide the final training losses of different methods over three independent runs in Fig. 4. As shown, CAGrad achieves the lowest average loss with $c = 0 . 2$ . In addition, PCGrad and MGDA focus on optimizing task 1 and task 2 separately. Lastly, CAGrad with $c = 0$ and $c = 1 0$ roughly recovers the final performance of GD and MGDA. By increasing $c _ { \\cdot }$ , the model performance shifts from more GD-like to more MGDA-like, though due to the non-convex nature of neural networks, CAGrad with $0 \\leq c < 1$ does not necessarily converge to the exact same point. ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
173,
|
| 801 |
+
258,
|
| 802 |
+
826,
|
| 803 |
+
425
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "image",
|
| 809 |
+
"img_path": "images/bee5020abe60ded51f7f3f7db9c65b38616afcdb9d451be9bb97a872fad1223b.jpg",
|
| 810 |
+
"image_caption": [
|
| 811 |
+
"Figure 4: The average and individual training losses on the Fashion-and-MNIST benchmark by running GD, MGDA, PCGrad and CAGrad with different $c$ values. GD gets stuck at the steep valley (the area with a cloud of dots), which other methods can pass. MGDA and PCGrad converge randomly on the Pareto set. "
|
| 812 |
+
],
|
| 813 |
+
"image_footnote": [],
|
| 814 |
+
"bbox": [
|
| 815 |
+
174,
|
| 816 |
+
444,
|
| 817 |
+
825,
|
| 818 |
+
542
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 6
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "5.2 Multi-task Supervised Learning ",
|
| 825 |
+
"text_level": 1,
|
| 826 |
+
"bbox": [
|
| 827 |
+
174,
|
| 828 |
+
618,
|
| 829 |
+
436,
|
| 830 |
+
632
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 6
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "To answer question (3) in the supervised learning setting, we follow the experiment setup from Yu et al. [41] and consider the NYU-v2 and CityScapes vision datasets. NYU-v2 contains 3 tasks: 13- class semantic segmentation, depth estimation, and surface normal prediction. CityScapes similarly contains 2 tasks: 7-class semantic segmentation and depth estimation. Here, we follow [41] and combine CAGrad with a state-of-the-art MTL method MTAN [21], which applies attention mechanism on top of the SegNet architecture [1]. We compare CAGrad with PCGrad, vanilla MTAN and CrossStitch [25], which is another MTL method that modifies the network architecture. MTAN originally experiments with equal loss weighting and two other dynamic loss weighting heuristics [15, 3]. For a fair comparison, all methods are applied under the equal weighting scheme and we use the same training setup from [3]. We search $\\bar { c } \\in \\{ 0 . 1 , 0 . 2 , . . . \\bar { 0 } . 9 \\}$ with the best average training loss for CAGrad on both datasets (0.4 for NYU-v2 and 0.2 for Cityscapes). We perform a two-tailed, Student’s $t$ -test under equal sample sizes, unequal variance setup and mark the results that are significant with an $^ *$ . Following Maninis et al.[24], we also compute the average per-task performance drop of method $m$ with respect to the single-tasking baseline $b$ : 1K PKi=1(−1)li (Mm,i − Mb,i)/Mb,i where $l _ { i } = 1$ if a higher value is better for a criterion $M _ { i }$ on task $i$ and 0 otherwise. The single-tasking baseline (independent) refers to training individual tasks with a vanilla SegNet. Results are shown in Tab. 1 and Tab. 2. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
173,
|
| 839 |
+
640,
|
| 840 |
+
825,
|
| 841 |
+
876
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 6
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "Given the single task performance, CAGrad performs better on the task that is overlooked by other methods (Surface Normal in NYU-v2 and Depth in CityScapes) and matches other methods’ performance on the rest of the tasks. We also provide the final test losses and the per-epoch training time of each method in Fig. 5 in Appendix B.2. ",
|
| 848 |
+
"bbox": [
|
| 849 |
+
174,
|
| 850 |
+
883,
|
| 851 |
+
821,
|
| 852 |
+
911
|
| 853 |
+
],
|
| 854 |
+
"page_idx": 6
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"type": "table",
|
| 858 |
+
"img_path": "images/1b4b4fc21e7177445c86b5f32798f8169b735cac85f90f474da59a13de4df985.jpg",
|
| 859 |
+
"table_caption": [
|
| 860 |
+
"Table 1: Multi-task learning results on NYU-v2 dataset. #P denotes the relative model size compared to the vanilla SegNet. Each experiment is repeated over 3 random seeds and the mean is reported. The best average result among all multi-task methods is marked in bold. MGDA, PCGrad, GradDrop and CAGrad are applied on the MTAN backbone. CAGrad has statistically significant improvement over baselines methods with an $^ *$ , tested with a $p$ -value of 0.1. "
|
| 861 |
+
],
|
| 862 |
+
"table_footnote": [],
|
| 863 |
+
"table_body": "<table><tr><td rowspan=\"3\">#P.</td><td rowspan=\"3\">Method</td><td colspan=\"2\">Segmentation</td><td colspan=\"2\">Depth</td><td colspan=\"5\">Surface Normal</td><td rowspan=\"3\">△m%</td></tr><tr><td colspan=\"2\">(Higher Better)</td><td colspan=\"2\">(Lower Better)</td><td colspan=\"2\">Angle Distance (Lower Better)</td><td colspan=\"2\">Within t° (Higher Better)</td></tr><tr><td>mIoU</td><td>Pix Acc</td><td>Abs Err</td><td>Rel Err</td><td>Mean Median</td><td>11.25</td><td>22.5</td><td>30</td></tr><tr><td>3</td><td>Independent</td><td>38.30</td><td>63.76</td><td>0.6754</td><td>0.2780</td><td>25.01</td><td>19.21</td><td>30.14</td><td>57.20</td><td>69.15</td><td></td></tr><tr><td>~3</td><td>Cross-Stitch [25]</td><td>37.42</td><td>63.51</td><td>0.5487</td><td>0.2188</td><td>*28.85</td><td>*24.52</td><td>*22.75</td><td>*46.58</td><td>*59.56</td><td>6.96</td></tr><tr><td>1.77</td><td>MTAN [21]</td><td>39.29</td><td>65.33</td><td>0.5493</td><td>0.2263</td><td>*28.15</td><td>*23.96</td><td>*22.09</td><td>*47.50</td><td>*61.08</td><td>5.59</td></tr><tr><td>1.77</td><td>MGDA [30]</td><td>*30.47</td><td>*59.90</td><td>*0.6070</td><td>*0.2555</td><td>24.88</td><td>19.45</td><td>29.18</td><td>56.88</td><td>69.36</td><td>1.38</td></tr><tr><td>1.77</td><td>PCGrad [41]</td><td>38.06</td><td>64.64</td><td>0.5550</td><td>0.2325</td><td>*27.41</td><td>*22.80</td><td>*23.86</td><td>*49.83</td><td>*63.14</td><td>3.97</td></tr><tr><td>1.77</td><td>GradDrop [4]</td><td>39.39</td><td>65.12</td><td>0.5455</td><td>0.2279</td><td>*27.48</td><td>*22.96</td><td>*23.38</td><td>*49.44</td><td>*62.87</td><td>3.58</td></tr><tr><td>1.77</td><td>CAGrad (ours)</td><td>39.79</td><td>65.49</td><td>0.5486</td><td>0.2250</td><td>26.31</td><td>21.58</td><td>25.61</td><td>52.36</td><td>65.58</td><td>0.20</td></tr></table>",
|
| 864 |
+
"bbox": [
|
| 865 |
+
173,
|
| 866 |
+
88,
|
| 867 |
+
821,
|
| 868 |
+
246
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 7
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "table",
|
| 874 |
+
"img_path": "images/b00bf52cba1934c26af0b2c54c5de722d4b0df277dca62cc44a4ec127c4e2cce.jpg",
|
| 875 |
+
"table_caption": [
|
| 876 |
+
"Table 2: Multi-task learning results on CityScapes Challenge. Each experiment is repeated over 3 random seeds and the mean is reported. The best average result among all multi-task methods is marked in bold. PCGrad and CAGrad are applied on the MTAN backbone. CAGrad has statistically significant improvement over baselines methods with an $^ *$ , tested with a $p$ -value of 0.1. "
|
| 877 |
+
],
|
| 878 |
+
"table_footnote": [],
|
| 879 |
+
"table_body": "<table><tr><td rowspan=\"2\">#P.</td><td rowspan=\"2\">Method</td><td colspan=\"2\">Segmentation</td><td colspan=\"2\">Depth</td><td rowspan=\"2\">△m%</td></tr><tr><td>mIoU</td><td>(Higher Better) Pix Acc</td><td>(Lower Better) Abs Err</td><td>Rel Err</td></tr><tr><td>2</td><td>Independent</td><td>74.01</td><td>93.16</td><td>0.0125</td><td>27.77</td><td></td></tr><tr><td>~3</td><td>Cross-Stitch [25]</td><td>*73.08</td><td>*92.79</td><td>*0.0165</td><td>*118.5</td><td>90.02</td></tr><tr><td>1.77</td><td>MTAN [21]</td><td>75.18</td><td>93.49</td><td>*0.0155</td><td>*46.77</td><td>22.60</td></tr><tr><td>1.77</td><td>MGDA [30]</td><td>*68.84</td><td>*91.54</td><td>0.0309</td><td>33.50</td><td>44.14</td></tr><tr><td>1.77</td><td>PCGrad [41]</td><td>75.13</td><td>93.48</td><td>0.0154</td><td>42.07</td><td>18.29</td></tr><tr><td>1.77</td><td>GradDrop [4]</td><td>75.27</td><td>93.53</td><td>*0.0157</td><td>*47.54</td><td>23.73</td></tr><tr><td>1.77</td><td>CAGrad (ours)</td><td>75.16</td><td>93.48</td><td>0.0141</td><td>37.60</td><td>11.64</td></tr></table>",
|
| 880 |
+
"bbox": [
|
| 881 |
+
282,
|
| 882 |
+
339,
|
| 883 |
+
707,
|
| 884 |
+
494
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 7
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "",
|
| 891 |
+
"bbox": [
|
| 892 |
+
174,
|
| 893 |
+
577,
|
| 894 |
+
823,
|
| 895 |
+
606
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 7
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "5.3 Multi-task Reinforcement Learning ",
|
| 902 |
+
"text_level": 1,
|
| 903 |
+
"bbox": [
|
| 904 |
+
176,
|
| 905 |
+
618,
|
| 906 |
+
460,
|
| 907 |
+
633
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 7
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "To answer question (3) in the reinforcement learning (RL) setting, we apply CAGrad on the MT10 and MT50 benchmarks from the Meta-World environment [42]. In particular, MT10 and MT50 contains 10 and 50 robot manipulation tasks. Following [33], we use Soft Actor-Critic (SAC) [10] as the underlying RL training algorithm. We compare against Multi-task SAC (SAC with a shared model), Multi-headed SAC (SAC with a shared backbone and task-specific head), Multi-task SAC $^ +$ Task Encoder (SAC with a shared model and the input includes a task embedding) [42] and PCGrad [41]. We also compare with Soft Modularization [40] that routes different modules in a shared model to form different policies. Lastly, we also include a recent method (CARE) that considers language metadata and uses a mixture of expert encoder for MTL. We follow the same experiment setup from [33]. The results are shown in Tab. 3. CAGrad outperforms all baselines except for CARE which benefits from extra information from the metadata. We also apply the practical speedup in Sec. 3.3 and sub-sample 4 and 8 tasks for MT10 and MT50 (CAGrad-Fast). CAGrad-fast achieves comparable performance against the state-of-the-art method while achieving a $2 \\mathbf { x }$ (MT10) and $5 \\mathbf { x }$ (MT50) speedup over PCGrad. We provide a visualization of tasks from MT10 and MT50, and the comparison of computational efficiency in Appendix B.3. ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
173,
|
| 916 |
+
640,
|
| 917 |
+
825,
|
| 918 |
+
848
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 7
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "5.4 Semi-supervised Learning with Auxiliary Tasks ",
|
| 925 |
+
"text_level": 1,
|
| 926 |
+
"bbox": [
|
| 927 |
+
174,
|
| 928 |
+
861,
|
| 929 |
+
544,
|
| 930 |
+
876
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 7
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "Training with auxiliary tasks to improve the performance of a main task is another popular application of MTL. Here, we take semi-supervised learning as an instance. We combine different optimization ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
173,
|
| 939 |
+
883,
|
| 940 |
+
823,
|
| 941 |
+
911
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 7
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "table",
|
| 947 |
+
"img_path": "images/95459a7dda17678dbbd5c8abc56480277bd94b92784a60bb74f26410edef5d56.jpg",
|
| 948 |
+
"table_caption": [],
|
| 949 |
+
"table_footnote": [
|
| 950 |
+
"Table 3: Multi-task reinforcement learning results on the Metaworld benchmarks. Results are averaged over 10 independent runs and the best result is marked in bold. "
|
| 951 |
+
],
|
| 952 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td>MetaworldMT10</td><td>MetaworldMT50</td></tr><tr><td>success (mean ± stderr)</td><td>success (mean ± stderr)</td></tr><tr><td>Multi-task SAC [42]</td><td>0.49 ±0.073</td><td>0.36 ±0.013</td></tr><tr><td>Multi-task SAC+ Task Encoder [42]</td><td>0.54 ±0.047</td><td>0.40 ±0.024</td></tr><tr><td>Multi-headed SAC [42]</td><td>0.61 ±0.036</td><td>0.45 ±0.064</td></tr><tr><td>PCGrad [41]</td><td>0.72 ±0.022</td><td>0.50 ±0.017</td></tr><tr><td>Soft Modularization [40]</td><td>0.73 ±0.043</td><td>0.50 ±0.035</td></tr><tr><td>CAGrad (ours)</td><td>0.83 ±0.045</td><td>0.52 ±0.023</td></tr><tr><td>CAGrad-Fast (ours)</td><td>0.82 ±0.039</td><td>0.50 ±0.016</td></tr><tr><td>CARE [33]</td><td>0.84 ±0.051</td><td>0.54 ±0.031</td></tr><tr><td>One SAC agent per task (upper bound)</td><td>0.90 ±0.032</td><td>0.74 ±0.041</td></tr></table>",
|
| 953 |
+
"bbox": [
|
| 954 |
+
233,
|
| 955 |
+
75,
|
| 956 |
+
754,
|
| 957 |
+
260
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 8
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "algorithms with Auxiliary Task Reweighting for Minimum-data Learning (ARML) [31], a state-ofthe-art semi-supervised learning algorithm. The loss function is composed of the main task and two auxiliary tasks: ",
|
| 964 |
+
"bbox": [
|
| 965 |
+
174,
|
| 966 |
+
324,
|
| 967 |
+
825,
|
| 968 |
+
366
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 8
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "equation",
|
| 974 |
+
"img_path": "images/8b46767a78c239963e405285975be1de3c8a97f6b7df5c67b3632b9c88c78130.jpg",
|
| 975 |
+
"text": "$$\n\\begin{array} { r } { L _ { 0 } = L _ { C E } ( \\theta ; D _ { l } ) + w _ { 1 } L _ { a u x } ^ { 1 } ( \\theta ; D _ { u } ) + w _ { 2 } L _ { a u x } ^ { 2 } ( \\theta ; D _ { u } ) , } \\end{array}\n$$",
|
| 976 |
+
"text_format": "latex",
|
| 977 |
+
"bbox": [
|
| 978 |
+
312,
|
| 979 |
+
383,
|
| 980 |
+
684,
|
| 981 |
+
402
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 8
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "where are au $L _ { C E }$ is the main cross-entropy classification loss on the lay unsupervised learning losses on the unlabeled dataset d dataset . We use $D _ { l }$ , and sam $L _ { a u x } ^ { 1 } , L _ { a u x } ^ { 2 }$ $D _ { u }$ $w _ { 1 }$ $w _ { 2 }$ from ARML, and use the CIFAR10 dataset [17], which contains 50,000 training images and 10,000 test images. $10 \\%$ of the training images is held out as the validation set. We test PCGrad, MGDA and CAGrad with 500, 1000 and 2000 labeled images. The rest of the training set is used for auxiliary tasks. For all the methods, we use the same labeled dataset, the same learning rate and train them for 200 epochs with the Adam [16] optimizer. Please refer to Appendix B.4 for more experimental details. Results are shown in Tab. 4. With all the different number of labels, CAGrad yields the best averaged test accuracy. We observed that MGDA performs much worse than the ARML baseline, because it significantly overlooks the main classification task. We also compare different gradient manipulation methods on the same task with GradNorm [3], which dynamically adjusts $w _ { 1 }$ and $w _ { 2 }$ during training. The results and conclusions are similar to those for ARML. ",
|
| 988 |
+
"bbox": [
|
| 989 |
+
173,
|
| 990 |
+
410,
|
| 991 |
+
825,
|
| 992 |
+
577
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 8
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "table",
|
| 998 |
+
"img_path": "images/76ffb73c130520c2d3a5361517962b481dee34a41453d5b9bcfead3c5e8f45f9.jpg",
|
| 999 |
+
"table_caption": [],
|
| 1000 |
+
"table_footnote": [
|
| 1001 |
+
"Table 4: Semi-supervised Learning with auxiliary tasks on CIFAR10. We report the average test accuracy over 3 independent runs for each method and mark the best result in bold. "
|
| 1002 |
+
],
|
| 1003 |
+
"table_body": "<table><tr><td>Method</td><td>500 labels</td><td>1000 labels</td><td>2000 labels</td></tr><tr><td>ARML [31]</td><td>67.05 ±0.16</td><td>73.22 ±0.26</td><td>81.35 ±0.36</td></tr><tr><td>ARML + PCGrad [41]</td><td>67.49 ±0.64</td><td>73.23 ±0.62</td><td>81.91 ±0.19</td></tr><tr><td>ARML +MGDA[30]</td><td>49.27 ±0.68</td><td>60.11 ±2.35</td><td>60.78 ±0.17</td></tr><tr><td>ARML +CAGrad (Ours)</td><td>68.25 ±0.37</td><td>74.37 ±0.42</td><td>82.81 ±0.48</td></tr><tr><td>GradNorm [3]</td><td>67.35 ±0.15</td><td>73.53 ±0.23</td><td>81.03 ±0.71</td></tr><tr><td>GradNorm + PCGrad [41]</td><td>67.83 ±0.19</td><td>73.91 ±0.09</td><td>82.72 ±0.19</td></tr><tr><td>GradNorm + MGDA [30]</td><td>36.99 ±2.11</td><td>57.94 ±0.92</td><td>59.12 ±0.63</td></tr><tr><td>GradNorm + CAGrad (Ours)</td><td>67.53 ±0.26</td><td>74.72 ±0.19</td><td>83.15 ±0.56</td></tr></table>",
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
243,
|
| 1006 |
+
588,
|
| 1007 |
+
750,
|
| 1008 |
+
734
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 8
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "6 Conclusion ",
|
| 1015 |
+
"text_level": 1,
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
174,
|
| 1018 |
+
784,
|
| 1019 |
+
299,
|
| 1020 |
+
800
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 8
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "In this work, we introduce the Conflict-Averse Gradient descent (CAGrad) algorithm that explicitly optimizes the minimum decrease rate of any specific task’s loss while still provably converging to the optimum of the average loss. CAGrad generalizes the gradient descent and multiple gradient descent algorithm, and demonstrates improved performance across several challenging multi-task learning problems compared to the state-of-the-art methods. While we focus mainly on optimizing the average loss, an interesting future direction is to look at main objectives other than the average loss under the multi-task setting. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
174,
|
| 1029 |
+
813,
|
| 1030 |
+
825,
|
| 1031 |
+
911
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 8
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "Acknowledgements ",
|
| 1038 |
+
"text_level": 1,
|
| 1039 |
+
"bbox": [
|
| 1040 |
+
176,
|
| 1041 |
+
89,
|
| 1042 |
+
338,
|
| 1043 |
+
106
|
| 1044 |
+
],
|
| 1045 |
+
"page_idx": 9
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"type": "text",
|
| 1049 |
+
"text": "The research was conducted in the statistical learning and AI group (SLAI) and the Learning Agents Research Group (LARG) in computer science at UT Austin. SLAI research is supported in part by CAREER-1846421, SenSE-2037267, EAGER-2041327, and Office of Navy Research, and NSF AI Institute for Foundations of Machine Learning (IFML). LARG research is supported in part by NSF (CPS-1739964, IIS-1724157, FAIN-2019844), ONR (N00014-18-2243), ARO (W911NF-19-2-0333), DARPA, Lockheed Martin, GM, Bosch, and UT Austin’s Good Systems grand challenge. Peter Stone serves as the Executive Director of Sony AI America and receives financial compensation for this work. The terms of this arrangement have been reviewed and approved by the University of Texas at Austin in accordance with its policy on objectivity in research. Xingchao Liu is supported in part by a funding from BP. ",
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
173,
|
| 1052 |
+
121,
|
| 1053 |
+
825,
|
| 1054 |
+
258
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 9
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "References ",
|
| 1061 |
+
"text_level": 1,
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
174,
|
| 1064 |
+
280,
|
| 1065 |
+
266,
|
| 1066 |
+
296
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 9
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "[1] Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. IEEE transactions on pattern analysis and machine intelligence, 39(12):2481–2495, 2017. \n[2] Rich Caruana. Multitask learning. Machine learning, 28(1):41–75, 1997. \n[3] Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks. In International Conference on Machine Learning, pages 794–803. PMLR, 2018. [4] Zhao Chen, Jiquan Ngiam, Yanping Huang, Thang Luong, Henrik Kretzschmar, Yuning Chai, and Dragomir Anguelov. Just pick a sign: Optimizing deep multitask models with gradient sign dropout. arXiv preprint arXiv:2010.06808, 2020. \n[5] Li Deng. The mnist database of handwritten digit images for machine learning research. IEEE Signal Processing Magazine, 29(6):141–142, 2012. \n[6] Jean-Antoine Désidéri. Multiple-gradient descent algorithm (mgda) for multiobjective optimization. Comptes Rendus Mathematique, 350(5-6):313–318, 2012. [7] Steven Diamond and Stephen Boyd. CVXPY: A Python-embedded modeling language for convex optimization. Journal of Machine Learning Research, 17(83):1–5, 2016. [8] Dibya Ghosh, Avi Singh, Aravind Rajeswaran, Vikash Kumar, and Sergey Levine. Divide-andconquer reinforcement learning. arXiv preprint arXiv:1711.09874, 2017. \n[9] Michelle Guo, Albert Haque, De-An Huang, Serena Yeung, and Li Fei-Fei. Dynamic task prioritization for multitask learning. In Proceedings of the European Conference on Computer Vision (ECCV), pages 270–287, 2018. \n[10] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Offpolicy maximum entropy deep reinforcement learning with a stochastic actor. In International Conference on Machine Learning, pages 1861–1870. PMLR, 2018. \n[11] Kazuma Hashimoto, Caiming Xiong, Yoshimasa Tsuruoka, and Richard Socher. A joint manytask model: Growing a neural network for multiple nlp tasks. arXiv preprint arXiv:1611.01587, 2016. \n[12] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. \n[13] Harold M Hochman and James D Rodgers. Pareto optimal redistribution. The American economic review, 59(4):542–557, 1969. \n[14] Adrián Javaloy and Isabel Valera. Rotograd: Dynamic gradient homogenization for multi-task learning. arXiv preprint arXiv:2103.02631, 2021. \n[15] Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7482–7491, 2018. \n[16] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. \n[17] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. \n[18] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. \n[19] Xi Lin, Hui-Ling Zhen, Zhenhua Li, Qingfu Zhang, and Sam Kwong. Pareto multi-task learning. arXiv preprint arXiv:1912.12854, 2019. \n[20] Liyang Liu, Yi Li, Zhanghui Kuang, Jing-Hao Xue, Yimin Chen, Wenming Yang, Qingmin Liao, and Wayne Zhang. Towards impartial multi-task learning. In International Conference on Learning Representations, 2020. \n[21] Shikun Liu, Edward Johns, and Andrew J Davison. End-to-end multi-task learning with attention. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1871–1880, 2019. \n[22] Xingchao Liu, Xing Han, Na Zhang, and Qiang Liu. Certified monotonic neural networks. arXiv preprint arXiv:2011.10219, 2020. \n[23] Debabrata Mahapatra and Vaibhav Rajan. Multi-task learning with user preferences: Gradient descent with controlled ascent in pareto optimization. In International Conference on Machine Learning, pages 6597–6607. PMLR, 2020. \n[24] Kevis-Kokitsi Maninis, Ilija Radosavovic, and Iasonas Kokkinos. Attentive single-tasking of multiple tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1851–1860, 2019. \n[25] Ishan Misra, Abhinav Shrivastava, Abhinav Gupta, and Martial Hebert. Cross-stitch networks for multi-task learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3994–4003, 2016. \n[26] Emilio Parisotto, Jimmy Lei Ba, and Ruslan Salakhutdinov. Actor-mimic: Deep multitask and transfer reinforcement learning. arXiv preprint arXiv:1511.06342, 2015. \n[27] Clemens Rosenbaum, Tim Klinger, and Matthew Riemer. Routing networks: Adaptive selection of non-linear functions for multi-task learning. arXiv preprint arXiv:1711.01239, 2017. \n[28] Sebastian Ruder. An overview of multi-task learning in deep neural networks. arXiv preprint arXiv:1706.05098, 2017. \n[29] Andrei A Rusu, Sergio Gomez Colmenarejo, Caglar Gulcehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu, Volodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. Policy distillation. arXiv preprint arXiv:1511.06295, 2015. \n[30] Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. arXiv preprint arXiv:1810.04650, 2018. \n[31] Baifeng Shi, Judy Hoffman, Kate Saenko, Trevor Darrell, and Huijuan Xu. Auxiliary task reweighting for minimum-data learning. Advances in Neural Information Processing Systems, 33, 2020. \n[32] Shagun Sodhani and Amy Zhang. Mtrl - multi task rl algorithms. Github, 2021. \n[33] Shagun Sodhani, Amy Zhang, and Joelle Pineau. Multi-task reinforcement learning with context-based representations. arXiv preprint arXiv:2102.06177, 2021. \n[34] Charles Stein. Inadmissibility of the usual estimator for the mean of a multivariate normal distribution. In Contribution to the Theory of Statistics, pages 197–206. University of California Press, 2020. \n[35] Kevin Swersky, Jasper Snoek, and Ryan Prescott Adams. Multi-task bayesian optimization. 2013. \n[36] Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 1195–1204, 2017. \n[37] Yee Whye Teh, Victor Bapst, Wojciech Marian Czarnecki, John Quan, James Kirkpatrick, Raia Hadsell, Nicolas Heess, and Razvan Pascanu. Distral: Robust multitask reinforcement learning. arXiv preprint arXiv:1707.04175, 2017. \n[38] Simon Vandenhende, Stamatios Georgoulis, Wouter Van Gansbeke, Marc Proesmans, Dengxin Dai, and Luc Van Gool. Multi-task learning for dense prediction tasks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2021. \n[39] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. \n[40] Ruihan Yang, Huazhe Xu, Yi Wu, and Xiaolong Wang. Multi-task reinforcement learning with soft modularization. arXiv preprint arXiv:2003.13661, 2020. \n[41] Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman, and Chelsea Finn. Gradient surgery for multi-task learning. arXiv preprint arXiv:2001.06782, 2020. \n[42] Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on Robot Learning, pages 1094–1100. PMLR, 2020. \n[43] Amir R Zamir, Alexander Sax, William Shen, Leonidas J Guibas, Jitendra Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3712–3722, 2018. \n[44] Yu Zhang and Qiang Yang. A survey on multi-task learning. IEEE Transactions on Knowledge and Data Engineering, 2021. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
173,
|
| 1075 |
+
300,
|
| 1076 |
+
826,
|
| 1077 |
+
915
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 9
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
171,
|
| 1086 |
+
50,
|
| 1087 |
+
828,
|
| 1088 |
+
920
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 10
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
173,
|
| 1097 |
+
90,
|
| 1098 |
+
828,
|
| 1099 |
+
367
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 11
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Checklist ",
|
| 1106 |
+
"text_level": 1,
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
174,
|
| 1109 |
+
393,
|
| 1110 |
+
254,
|
| 1111 |
+
410
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 11
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "1. For all authors... ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
214,
|
| 1120 |
+
421,
|
| 1121 |
+
339,
|
| 1122 |
+
436
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 11
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] See Sec. 3.2 for the convergence analysis, Fig. 1 for the challenges faced by previous methods, and Sec. 5 for empirical evaluation of these challenges and the advantage of CAGrad. \n(b) Did you describe the limitations of your work? [Yes] See Sec. 6. Currently we mainly focus on optimizing the average loss, which could be replaced by other main objectives. \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] Our method does not have potential negative societal impacts. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
238,
|
| 1131 |
+
443,
|
| 1132 |
+
825,
|
| 1133 |
+
590
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 11
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "2. If you are including theoretical results... ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
215,
|
| 1142 |
+
597,
|
| 1143 |
+
493,
|
| 1144 |
+
611
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 11
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] The assumptions are stated in Thm. 3.2. \n(b) Did you include complete proofs of all theoretical results? [Yes] The complete proof is included in Appendix A.3. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
238,
|
| 1153 |
+
617,
|
| 1154 |
+
825,
|
| 1155 |
+
675
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 11
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "3. If you ran experiments... ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
214,
|
| 1164 |
+
681,
|
| 1165 |
+
393,
|
| 1166 |
+
696
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 11
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We mention most of the details to reproduce the result in Sec. 5 and provide the rest of details of each experiment in Appendix.B. The code comes with the supplementary material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Appendix.B and Sec. 5. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] For each experiment except for the toy (since there is no stochasticity), we run over multiple $\\left( \\geq 3 \\right)$ seeds. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] We explicitly compare the computational efficiency in Fig. 5. More details on the resources are provided in the corresponding sections in Appendix.B. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
238,
|
| 1175 |
+
702,
|
| 1176 |
+
825,
|
| 1177 |
+
891
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 11
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
207,
|
| 1186 |
+
897,
|
| 1187 |
+
823,
|
| 1188 |
+
911
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 11
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] For most of the experiment, we follow the exact experiment setup and use the corresponding opensource code from previous works and have cited and compared against them. \n(b) Did you mention the license of the assets? [Yes] All code and data are publicly available under MIT license \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] No new assets are introduced for our experiment. The only thing we modified is a shrinked LeNet, where the details are provided in Appendix.B. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] The data we use are publicly available data that has been used by a lot of prior research. There should be no personally identifiable information or offensive content. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
238,
|
| 1197 |
+
90,
|
| 1198 |
+
825,
|
| 1199 |
+
295
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 12
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
214,
|
| 1208 |
+
299,
|
| 1209 |
+
704,
|
| 1210 |
+
314
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 12
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] No human subjects involved. \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] ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
238,
|
| 1219 |
+
318,
|
| 1220 |
+
825,
|
| 1221 |
+
407
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 12
|
| 1224 |
+
}
|
| 1225 |
+
]
|
parse/train/_61Qh8tULj_/_61Qh8tULj__middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/_61Qh8tULj_/_61Qh8tULj__model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF.md
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learning to Walk in Minutes Using Massively Parallel Deep Reinforcement Learning
|
| 2 |
+
|
| 3 |
+
Nikita Rudin ETH Zurich and NVIDIA rudinn@ethz.ch
|
| 4 |
+
|
| 5 |
+
David Hoeller ETH Zurich and NVIDIA dhoeller@ethz.ch
|
| 6 |
+
|
| 7 |
+
Philipp Reist NVIDIA preist@nvidia.com
|
| 8 |
+
|
| 9 |
+
Marco Hutter ETH Zurich mahutter@ethz.com
|
| 10 |
+
|
| 11 |
+
Abstract: In this work, we present and study a training set-up that achieves fast policy generation for real-world robotic tasks by using massive parallelism on a single workstation GPU. We analyze and discuss the impact of different training algorithm components in the massively parallel regime on the final policy performance and training times. In addition, we present a novel game-inspired curriculum that is well suited for training with thousands of simulated robots in parallel. We evaluate the approach by training the quadrupedal robot ANYmal to walk on challenging terrain. The parallel approach allows training policies for flat terrain in under four minutes, and in twenty minutes for uneven terrain. This represents a speedup of multiple orders of magnitude compared to previous work. Finally, we transfer the policies to the real robot to validate the approach. We open-source our training code to help accelerate further research in the field of learned legged locomotion: https://leggedrobotics.github.io/legged_gym/.
|
| 12 |
+
|
| 13 |
+
Keywords: Reinforcement Learning, Legged Robots, Sim-to-real
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+
Figure 1: Thousands of robots learning to walk in simulation.
|
| 17 |
+
|
| 18 |
+
# 1 Introduction
|
| 19 |
+
|
| 20 |
+
Deep reinforcement learning (DRL) is proving to be a powerful tool for robotics. Tasks such as legged locomotion [1], manipulation [2], and navigation [3], have been solved using these new tools, and research continues to keep adding more and more challenging tasks to the list. The amount of data required to train a policy increases with the task complexity. For this reason, most work focuses on training in simulation before transferring to real robots. We have reached a point where multiple days or even weeks are needed to fully train an agent with current simulators. For example, OpenAI’s block reorientation task was trained for up to 14 days and their Rubik’s cube solving policy took several months to train [4]. The problem is exacerbated by the fact that deep reinforcement learning requires hyper-parameter tuning to obtain a suitable solution which requires sequentially rerunning time-consuming training. Reducing training times using massively parallel approaches such as presented here can therefore help improve the quality and time-to-deployment of DRL policies, as a training setup can be iterated on more often in the same time frame.
|
| 21 |
+
|
| 22 |
+
In this paper, we examine the effects of massive parallelism for on-policy DRL algorithms and present considerations in how the standard RL formulation and the most commonly used hyperparameters should be adapted to learn efficiently in the highly parallel regime. Additionally, we present a novel game-inspired curriculum which automatically adapts the task difficulty to the performance of the policy. The proposed curriculum architecture is straightforward to implement, does not require tuning, and is well suited for the massively parallel regime. Common robotic simulators such as Mujoco [5], Bullet [6], or Raisim [7] feature efficient multi-body dynamics implementations. However, they have been developed to run on CPUs with only a reduced amount of parallelism. In this work, we use NVIDIA’s Isaac Gym simulation environment [8], which runs both the simulation and training on the GPU and is capable of simulating thousands of robots in parallel.
|
| 23 |
+
|
| 24 |
+
The massively parallel training regime has been explored before [4, 9] in the context of distributed systems with a network of thousands of CPUs each running a separate instance of the simulation. The parallelization was achieved by averaging the gradients between the different workers without reducing the number of samples provided by each agent. This results in large batch sizes of millions of samples for each policy update which improves the learning dynamics, but does not optimize the overall training time. In parallel, recent works have aimed to increase the simulation throughput and reduce training times of standard DRL benchmark tasks. A framework combining parallel simulation with multi-GPU training [10] was proposed to achieve fast training using hundreds of parallel agents. In the context of visual navigation, large batch simulation has been used to increase the training throughput [11]. Furthermore, GPU accelerated physics simulation has been shown to significantly improve the training time of the Humanoid running task [12]. A differentiable simulator running on Google’s TPUs has also been shown to greatly accelerate the training of multiple tasks [13]. We build upon [10, 12] by pushing the parallelization further, optimizing the training algorithm, and applying the approach to a challenging real-world robotics task.
|
| 25 |
+
|
| 26 |
+
Perceptive and dynamic locomotion for legged robots in unstructured environments is a demanding task that, until recently, had only been partially demonstrated with complex model-based approaches [14, 15]. Learning-based approaches are emerging as a promising alternative. For quadrupeds, DRL has been used to train blind policies robust to highly uneven ground [16] (12 hours of training). Perceptive locomotion over challenging terrain has been achieved by combining learning with optimal control techniques [17, 18] (82 and 88 hours of training) and recently, a fully learned approach has shown great robustness in this setting [19] (120 hours of training). Similarly, bipedal robots have also been trained to walk blindly on stairs [20] (training time not reported). With our approach we can train a perceptive policy in under 20 minutes on a single GPU, with the complexity of simto-real transfer to the hardware, which increases the performance and robustness requirements and provides clear validation of the overall approach. Training such behaviors in minutes opens up new exciting possibilities ranging from automatic tuning to customized training using scans of particular environments.
|
| 27 |
+
|
| 28 |
+
# 2 Massively Parallel Reinforcement Learning
|
| 29 |
+
|
| 30 |
+
Current (on-policy) reinforcement learning algorithms are divided into two parts: data collection and policy update. The policy update, which corresponds to back-propagation for neural networks, is easily performed in parallel on the GPU. Parallelizing data collection is not as straightforward. Each step consists of policy inference, simulation, reward, and observation calculation. Current popular pipelines have the simulation and reward/observation calculation computed on the CPU, making the GPU unsuitable for policy inference because of communication bottle-necks. Data transfer over PCIe is known to be the weakest link of GPU acceleration, and can be as much as 50 times slower than the GPU processing time alone [21]. Furthermore, with CPU data collection, a large amount of data must be sent to the GPU for each policy update, slowing down the overall process. Limited parallelization can be achieved by using multiple CPU cores and spawning many processes, each running the simulation for one agent. However, the number of agents is quickly limited by the number of cores and other issues such as memory usage. We explore the potential of massive parallelism with Isaac Gym’s end-to-end data collection and policy updates on the GPU, significantly reducing data copying and improving simulation throughput.
|
| 31 |
+
|
| 32 |
+
# 2.1 Simulation Throughput
|
| 33 |
+
|
| 34 |
+
The main factor affecting the total simulation throughput is the number of robots simulated in parallel. Modern GPUs can handle tens of thousands of parallel instructions. Similarly, IsaacGym’s PhysX engine can process thousands of robots in a single simulation and all other computations of our pipeline are vectorized to scale favorably with the number of robots. Using a single simulation with thousands of robots presents some new challenges. For example, a single common terrain mesh must be used, and it cannot be easily changed at each reset. We circumvent this problem by creating the whole mesh with all terrain types and levels tiled side by side. We change the terrain level of the robots by physically moving them on the mesh. In supplementary material, we show the computational time of different parts of the pipeline, examine how these times scale with the number of robots, and provide other techniques to optimize the simulation throughput.
|
| 35 |
+
|
| 36 |
+
# 2.2 DRL Algorithm
|
| 37 |
+
|
| 38 |
+
We build upon a custom implementation of the Proximal Policy Optimization (PPO) algorithm [22]. Our implementation is designed to perform every operation and store all the data on the GPU. In order to efficiently learn from thousands of robots in parallel, we perform some essential modifications to the algorithm and change some of the commonly used hyper-parameter values.
|
| 39 |
+
|
| 40 |
+
# 2.2.1 Hyper-Parameters Modification
|
| 41 |
+
|
| 42 |
+
In an on-policy algorithm such as PPO, a fixed policy collects a selected amount of data before doing the next policy update. This batch size, $B$ , is a crucial hyper-parameter for successful learning. With too little data, the gradients will be too noisy, and the algorithm will not learn effectively. With too much data, the samples become repetitive, and the algorithm cannot extract more information from them. These samples represent wasted simulation time and slow down the overall training. We have $B = n _ { r o b o t s } n _ { s t e p s }$ , where $ { n _ { s t e p s } }$ is the number of steps each robot takes per policy update and $n _ { r o b o t s }$ the number of robots simulated in parallel. Since we increase $n _ { r o b o t s }$ by a few orders of magnitude, we must choose a small $n _ { s t e p s }$ to keep $B$ reasonable and hence optimize training times, which is a setting that has not been extensively explored for on-policy reinforcement learning algorithms. It turns out that we can not choose $n _ { s t e p s }$ to be arbitrarily low. The algorithm requires trajectories with coherent temporal information to learn effectively. Even though, in theory, information of single steps could be used, we find that the algorithm fails to converge to the optimal solution below a certain threshold. This can be explained by the fact that we use Generalized Advantage Estimation (GAE) [23], which requires rewards from multiple time steps to be effective. For our task, we find that the algorithm struggles when we provide fewer than 25 consecutive steps, corresponding to $0 . 5 \mathrm { s }$ of simulated time. It is important to distinguish $ { n _ { s t e p s } }$ from the maximum episode length leading to a time-out and a reset, which we define as $2 0 \mathrm { s }$ . The environments are reset when they reach this maximum length and not after each iteration, meaning that a single episode can cover many policy updates. This limits the total number of robots training in parallel, and consequently, prohibits us from using the full computational capabilities of the GPU.
|
| 43 |
+
|
| 44 |
+
The mini-batch size represents the size of the chunks in which the batch size is split to perform backpropagation. We find that having mini-batch sizes much larger than what is usually considered best practice is beneficial for our massively parallel use case. We use mini-batches of tens of thousands of samples and observe that it stabilizes the learning process without increasing the total training time.
|
| 45 |
+
|
| 46 |
+
# 2.2.2 Reset Handling
|
| 47 |
+
|
| 48 |
+
During training, the robots must be reset whenever they fall, and also after some time to keep them exploring new trajectories and terrains. The PPO algorithm includes a critic predicting an infinite horizon sum of future discounted rewards. Resets break this infinite horizon assumption and can lead to inferior critic performance if not handled carefully. Resets based on failure or reaching a goal are not a problem because the critic can predict them. However, a reset based on a time out can not be predicted (we do not provide episode time in the observations). The solution is to distinguish the two termination modes and augment the reward with the expected infinite sum of discounted future rewards in a time-out case. In other words, we bootstrap the target of the critic with its own prediction. This solution has been discussed in [24], but interestingly, this distinction is not part of the widely used Gym environment interface [25] and is ignored by popular implementations such as Stable-Baselines $[ 2 6 ] ^ { 1 }$ . After investigating multiple implementations, we conclude that this important detail is often avoided by assuming that the environments either never time out or only on the very last step of a batch collection. In our case, with few robot steps per batch, we can not make such an assumption since a meaningful episode length covers the collection of many batches. We modify the standard Gym interface to detect time-outs and implement the bootstrapping solution. In supplementary material, we show the effect of this solution on the total reward as well as the critic loss.
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
Figure 2: Terrain types used for training and testing in simulation. (a) Randomly rough terrain with variations of $0 . 1 \mathrm { m }$ . (b) Sloped terrain with an inclination of $2 5 \mathrm { d e g }$ . (c) Stairs with a width of $0 . 3 \mathrm { m }$ and height of $\mathrm { 0 . 2 m }$ . (d) Randomized, discrete obstacles with heights of up to $\pm 0 . 2 \mathrm { m }$ .
|
| 52 |
+
|
| 53 |
+
# 3 Task Description
|
| 54 |
+
|
| 55 |
+
A quadruped robot must learn to walk across challenging terrain, including uneven surfaces, slopes, stairs, and obstacles, while following base-heading and linear-velocity commands. We conduct most of the simulation and real-world deployment experiments on the ANYbotics ANYmal C robot. However, in simulation, we demonstrate the broader applicability of the approach by additionally training policies for ANYmal B, ANYmal C with an attached arm, and the Unitree A1 robots.
|
| 56 |
+
|
| 57 |
+
# 3.1 Game-Inspired Curriculum
|
| 58 |
+
|
| 59 |
+
The terrains are selected to be representative of real-world environments. We create five types of procedurally generated terrains presented in Fig. 2: flat, sloped, randomly rough, discrete obstacles, and stairs. The terrains are tiled squares with $8 \mathrm { m }$ sides. The robots start at the center of the terrain and are given randomized heading and velocity commands (kept constant for the duration of an episode) pushing them to walk across the terrain. Slopes and stairs are organized in pyramids to allow traversability in all directions.
|
| 60 |
+
|
| 61 |
+
Previous works have shown the benefits of using an automated curriculum of task difficulty to learn complex locomotion policies [28, 29, 16]. Similarly, we find that it is essential to first train the policy on less challenging terrain before progressively increasing the complexity. We adopt a solution inspired by [16], but replace the particle filter approach with a new game-inspired automatic curriculum. All robots are assigned a terrain type and a level that represents the difficulty of that terrain. For stairs and randomized obstacles, we gradually increase the step height from $5 \mathrm { c m }$ to $2 0 \mathrm { c m }$ . Sloped terrain inclination is increased from 0 deg to 25 deg. If a robot manages to walk past the borders of its terrain, its level is increased, and at the next reset, it will start on more difficult terrain. However, if at the end of an episode it moved by less than half of the distance required by its target velocity, its level is reduced again. Robots solving the highest level are looped back to a randomly selected level to increase the diversity and avoid catastrophic forgetting. This approach has the advantage of training the robots at a level of difficulty tailored to their performance without requiring any external tuning. It adapts the difficulty level for each terrain type individually and provides us with visual and quantitative feedback on the progress of the training. When the robots have reached the final level and are evenly spread across all terrains due to looping back, we can conclude they have fully learned to solve the task.
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 3: 4000 robots progressing through the terrains with automatic curriculum, after 500 (top) and 1000 (bottom) policy updates. The robots start the training session on the first row (closest to the camera) and progressively reach harder terrains.
|
| 65 |
+
|
| 66 |
+
The proposed curriculum structure is well suited for the massively parallel regime. With thousands of robots we can directly use their current progress in the curriculum as the distribution of the policy’s performance, and do not need learn it with a generator network [30]. Furthermore, our method doesn’t require tuning and is straightforward to implement in a parallel manner with nearzero processing cost. We remove the computational overhead of re-sampling and re-generating new terrains needed for the particle filter approach.
|
| 67 |
+
|
| 68 |
+
Fig. 3 shows robots progressing through the terrains at two different stages of the training process. On complex terrain types, the robots require more training iterations to reach the highest levels. The distribution of robots after 500 iterations shows that while the policy is able to cross sloped terrains and to go down stairs, climbing stairs and traversing obstacles requires more training iterations. However, after 1000 iterations, the robots have reached the most challenging level for all terrain types and are spread across the map. We train for a total for 1500 iterations to let the policy converge to its highest performance.
|
| 69 |
+
|
| 70 |
+
# 3.2 Observations, Actions, and Rewards
|
| 71 |
+
|
| 72 |
+
The policy receives proprioceptive measurements of the robot as well as terrain information around the robot’s base. The observations are composed of: base linear and angular velocities, measurement of the gravity vector, joint positions and velocities, the previous actions selected by the policy, and finally, 108 measurements of the terrain sampled from a grid around the robot’s base. Each measurement is the distance from the terrain surface to the robot’s base height.
|
| 73 |
+
|
| 74 |
+
The total reward is a weighted sum of nine terms, detailed in supplementary material. The main terms encourage the robot to follow the commanded velocities while avoiding undesired base velocities along other axes. In order to create a smoother, more natural motion, we also penalize joint torques, joint accelerations, joint target changes, and collisions. Contacts with the knees, shanks or between the feet and a vertical surface are considered collisions, while contacts with the base are considered crashes and lead to resets. Finally, we add an additional reward term encouraging the robot to take longer steps, which results in a more visually appealing behavior. We train a single policy with the same rewards for all terrains.
|
| 75 |
+
|
| 76 |
+
The actions are interpreted as desired joint positions sent to the motors. There, a PD controller produces motor torques. In contrast to other works [16, 20], neither the reward function nor the action space has any gait-dependent elements.
|
| 77 |
+
|
| 78 |
+
# 3.3 Sim-to-Real Additions
|
| 79 |
+
|
| 80 |
+
In order to make the trained policies amenable for sim-to-real transfer, we randomize the friction of the ground, add noise to the observations and randomly push the robots during the episode to teach them a more stable stance. Each robot has a friction coefficient sampled uniformly in [0.5, 1.25]. The pushes happen every $1 0 \mathrm { s }$ . The robots’ base is accelerated up to $\pm 1 \mathrm { m } / \mathrm { s }$ in both $\mathbf { X }$ and y directions. The amount of noise is based on real data measured on the robot and is detailed in supplementary material.
|
| 81 |
+
|
| 82 |
+
The ANYmal robot uses series elastic actuators with fairly complex dynamics, which are hard to model in simulation. For this reason and following the methodology of previous work [1], we use a neural network to compute torques from joint position commands. However, we simplify the inputs of the model. Instead of concatenating past measurements at fixed time steps and sending all of that information to a standard feed-forward network, we only provide the current measurements to an LSTM network. A potential drawback of this set-up is that the policy does not have the temporal information of the actuators as in previous work. We have experimented with various ways of providing that information through memory mechanisms for the policy but found that it does not improve the final performance.
|
| 83 |
+
|
| 84 |
+
# 4 Results
|
| 85 |
+
|
| 86 |
+
# 4.1 Effects of Massive Parallelism
|
| 87 |
+
|
| 88 |
+
In this section, we study the effects of the number of parallel robots on the final performance of the policy. In order to use the total reward as a single representative metric, we have to remove the curriculum, otherwise a more performant policy sees its task difficulty increase and consequently a decrease in the total reward. As such, we simplify the task by reducing the maximum step size of stairs and obstacles and directly train robots on the full range of difficulties.
|
| 89 |
+
|
| 90 |
+
We begin by setting a baseline with $n _ { r o b o t s } = 2 0 0 0 0$ and $n _ { s t e p s } = 5 0$ , resulting in a batch size of 1M samples. Using this very large batch size results in the best policy but at the cost of a relatively long training time.
|
| 91 |
+
|
| 92 |
+
We then conduct experiments in which we increase the number of robots while keeping the batch size constant. As a result, the number of steps each robot takes per policy update decreases. In this case, the training time decreases with a higher number of robots, but the policy performance drops if that number is too high. We start from 128 robots corresponding to the level of parallelization of previous CPU implementations and increase that number up to 16384, which is close to the maximum amount of robots we could simulate on rough terrain with Isaac Gym running on a single workstation GPU.
|
| 93 |
+
|
| 94 |
+
In Fig. 4, we compare these results with the baseline, which allows us to select the most favorable trade-off between policy performance and training time. We see two interesting effects at play. First, when the number of robots is too high, the performance drops sharply, which can be explained by the time horizon of each robot becoming too small. As expected, with larger batch sizes, the overall reward is higher, and the time horizon effect is shifted, meaning that we can use more robots before seeing the drop. On the other hand, below a certain threshold, we see a slow decrease in performance with fewer robots. We believe this is explained by the fact that the samples are very similar with many steps per robot because of the relatively small time steps between them. This means that for the same amount of samples, there is less diversity in the data. In other words, with a low number of robots, we are further from the standard assumption that the samples are independent and identically distributed, which seems to have a noticeable effect on the training process. In terms of training time, we see a nearly linear scaling up to 4000 robots, after which simulation throughput gains slow down. As such, we can conclude that increasing the number of robots is beneficial for both final performance and training time, but there is an upper limit on this number after which an on-policy algorithm cannot learn effectively. Increasing the batch size to values much larger than what is typically used in similar works seems highly beneficial. Unfortunately, it also scales the training time so it is a trade-off that must be balanced. From the third plot we can conclude that using 2048 to 4096 robots with a batch size of $\approx 1 0 0 k$ or $\approx 2 0 0 k$ provides the best trade-off for this specific task.
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
Figure 4: (a) Average and standard deviation (over 5 runs) of the total reward of an episode after 1500 policy updates for different number of robots and 3 different batch sizes. The ideal case of a batch size of 1M samples with 20000 robots is shown in red. (b) Total training time for the same experiments. (c) Reward dependency on total training time. Colors represent the number of robots, while shapes show the batch size (circles: 49152, crosses: 98304, triangles: 196608). Points in the upper left part of the graph (highlighted in green) represent the most desirable configuration.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
Figure 5: Success rate of the tested policy on increasing terrain complexities. Robots start in the center of the terrain and are given a forward velocity command of $0 . 7 5 \mathrm { m } / \mathrm { s }$ , and a side velocity command randomized within $[ - 0 . 1 , 0 . 1 ] \mathrm { m } / \mathrm { s }$ . (a) Success rate for climbing stairs, descending stairs and traversing discrete obstacles. (b) Success rate for climbing and descending sloped terrains.
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
Figure 6: ANYmal C with a fixed arm, ANYmal B, A1 and Cassie in simulation.
|
| 104 |
+
|
| 105 |
+
# 4.2 Simulation
|
| 106 |
+
|
| 107 |
+
For our simulation and deployment experiments, we use a policy trained with 4096 robots and a batch size of 98304, which we train for 1500 policy updates in under 20 minutes2. We begin by measuring the performance of our trained policy in simulation. To that end, we perform robustness and traversability tests. For each terrain type, we command the robots to traverse the representative difficulty of the terrain at high forward velocity and measure the success rate. A success is defined as managing to cross the terrain while avoiding any contacts on the robot’s base. Fig. 5 shows the results for the different terrains. For stairs, we see a nearly $1 0 0 \%$ success rate for steps up to $\mathrm { 0 . 2 m }$ , which is the hardest stair difficulty we train on and close to the kinematic limits of our robot. Randomized obstacles seem to be more demanding, with the success rate decreasing steadily. We must note that in this case, the largest step is double the reported height since neighboring obstacles can have positive and negative heights. In the case of slopes, we can observe that after $2 5 \mathrm { d e g }$ the robots are not able to climb anymore but still learn to slide down with a moderate success rate.
|
| 108 |
+
|
| 109 |
+
Given our relatively simple rewards and action space, the policy is free to adopt any gait and behavior. Interestingly, it always converges to a trotting gait, but there are often artifacts in the behavior, such as a dragging leg or unreasonably high or low base heights. After tuning of the reward weights, we can obtain a policy that respects all our constraints and can be transferred to the physical robot.
|
| 110 |
+
|
| 111 |
+
To verify the generalizability of the approach, we train policies for multiple robots with the same set-up. We use the ANYmal C robot with a fixed robotic arm, which adds about $2 0 \%$ of additional weight, and the ANYmal B robot, which has comparable dimensions but modified kinematic and dynamic properties. In these two cases, we can retrain a policy without any modifications to the rewards or algorithm hyper-parameters and obtain a very similar performance. Next, we use the Unitree A1 robot, which has smaller dimensions, four times lower weight, and a different leg configuration. In this case, we remove the actuator model of the ANYdrive motors, reduce PD gains and the torque penalties, and change the default joint configurations. We can train a dynamic policy that learns to solve the same terrains even with the reduced size of the robot. Finally, we apply our approach to Agility Robotics’ bipedal robot Cassie. We find that an additional reward encouraging standing on a single foot is necessary to achieve a walking gait. With this addition, we are able to train the robot on the same terrains as its quadrupedal counterparts. Fig. 6 shows the different robots.
|
| 112 |
+
|
| 113 |
+

|
| 114 |
+
Figure 7: Locomotion policy, trained in under $2 0 \mathrm { { m i n } }$ , deployed on the physical robot.
|
| 115 |
+
|
| 116 |
+
# 4.3 Sim-to-real Transfer
|
| 117 |
+
|
| 118 |
+
On the physical robot, our policy is fixed. We compute the observations from the robot’s sensors, feed them to the policy, and directly send the produced actions as target joint positions to the motors. We do not apply any additional filtering or constraint satisfaction checks. The terrain height measurements are queried from an elevation map that the robot is building from Lidar scans.
|
| 119 |
+
|
| 120 |
+
Unfortunately, this height map is far from perfect, which results in a decrease in robustness between simulation and reality. We observe that these issues mainly occur at high velocities and therefore reduce the maximum linear velocity commands to $0 . 6 \mathrm { m } / \mathrm { s }$ for policies deployed on the hardware. The robot can walk up and down stairs and handles obstacles in a dynamic manner. We show samples of these experiments in Fig. 7 and in the supplementary video. To overcome issues with imperfect terrain mapping or state estimation drift, the authors of [19] implemented a teacher-student set-up, which provided outstanding robustness even in adverse conditions. As part of future work, we plan to merge the two approaches.
|
| 121 |
+
|
| 122 |
+
# 5 Conclusion
|
| 123 |
+
|
| 124 |
+
In this work, we demonstrated that a complex real-world robotics task can be trained in minutes with an on-policy deep reinforcement learning algorithm. Using an end-to-end GPU pipeline with thousands of robots simulated in parallel, combined with our proposed curriculum structure, we showed that the training time can be reduced by multiple orders of magnitude compared to previous work. We discussed multiple modifications to the learning algorithm and the standard hyper-parameters required to use the massively parallel regime effectively. Using our fast training pipeline, we performed many training runs, simplified the set-up, and kept only essential components. We showed that the task can be solved using simple observation and action spaces as well as relatively straightforward rewards without encouraging particular gaits or providing motion primitives.
|
| 125 |
+
|
| 126 |
+
The purpose of this work is not to obtain the absolute best-performing policy with the highest robustness. For that use case, many other techniques can be incorporated into the pipeline. We aim to show that a policy can be trained in record time with our set-up while still being usable on the real hardware. We wish to shift other researchers’ perspective on the required training time for a real-world application, and hope that our work can serve as a reference for future research. We expect many other tasks to benefit from the massively parallel regime. By reducing the training time of these future robotic tasks, we can greatly accelerate the developments in this field.
|
| 127 |
+
|
| 128 |
+
# Acknowledgments
|
| 129 |
+
|
| 130 |
+
We would like to thank Mayank Mittal, Joonho Lee, Takahiro Miki, and Peter Werner for their valuable suggestions and help with hardware experiments as well as the Isaac Gym and PhysX teams for their continuous support.
|
| 131 |
+
|
| 132 |
+
# References
|
| 133 |
+
|
| 134 |
+
[1] J. Hwangbo, J. Lee, A. Dosovitskiy, D. Bellicoso, V. Tsounis, V. Koltun, and M. Hutter. Learning agile and dynamic motor skills for legged robots. Science Robotics, 4(26), 2019.
|
| 135 |
+
[2] S. Gu, E. Holly, T. Lillicrap, and S. Levine. Deep reinforcement learning for robotic manipulation with asynchronous off-policy updates. In IEEE International Conference on Robotics and Automation (ICRA), May 2017.
|
| 136 |
+
[3] G. Kahn, A. Villaflor, B. Ding, P. Abbeel, and S. Levine. Self-supervised deep reinforcement learning with generalized computation graphs for robot navigation. In IEEE International Conference on Robotics and Automation (ICRA), 2018.
|
| 137 |
+
[4] OpenAI, I. Akkaya, M. Andrychowicz, M. Chociej, M. Litwin, B. McGrew, A. Petron, A. Paino, M. Plappert, G. Powell, R. Ribas, J. Schneider, N. Tezak, J. Tworek, P. Welinder, L. Weng, Q. Yuan, W. Zaremba, and L. Zhang. Solving rubik’s cube with a robot hand, 2019.
|
| 138 |
+
[5] E. Todorov, T. Erez, and Y. Tassa. Mujoco: A physics engine for model-based control. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2012.
|
| 139 |
+
[6] E. Coumans and Y. Bai. Pybullet, a python module for physics simulation for games, robotics and machine learning. http://pybullet.org, 2016–2021.
|
| 140 |
+
[7] J. Hwangbo, J. Lee, and M. Hutter. Per-contact iteration method for solving contact dynamics. IEEE Robotics and Automation Letters, 3(2), 2018. URL www.raisim.com.
|
| 141 |
+
[8] V. Makoviychuk, L. Wawrzyniak, Y. Guo, M. Lu, K. Storey, M. Macklin, D. Hoeller, N. Rudin, A. Allshire, A. Handa, and G. State. Isaac gym: High performance GPU based physics simulation for robot learning. In Conference on Neural Information Processing Systems (NeurIPS) Datasets and Benchmarks Track, 2021.
|
| 142 |
+
[9] N. Heess, D. TB, S. Sriram, J. Lemmon, J. Merel, G. Wayne, Y. Tassa, T. Erez, Z. Wang, S. M. A. Eslami, M. A. Riedmiller, and D. Silver. Emergence of locomotion behaviours in rich environments. CoRR, abs/1707.02286, 2017.
|
| 143 |
+
[10] A. Stooke and P. Abbeel. Accelerated methods for deep reinforcement learning. CoRR, abs/1803.02811, 2018.
|
| 144 |
+
[11] B. Shacklett, E. Wijmans, A. Petrenko, M. Savva, D. Batra, V. Koltun, and K. Fatahalian. Large batch simulation for deep reinforcement learning. In International Conference on Learning Representations (ICLR), 2021.
|
| 145 |
+
[12] J. Liang, V. Makoviychuk, A. Handa, N. Chentanez, M. Macklin, and D. Fox. Gpu-accelerated robotic simulation for distributed reinforcement learning. In Conference on Robot Learning (CoRL), 2018.
|
| 146 |
+
[13] C. D. Freeman, E. Frey, A. Raichuk, S. Girgin, I. Mordatch, and O. Bachem. Brax - a differentiable physics engine for large scale rigid body simulation. In 35th Conference on Neural Information Processing Systems (NeurIPS) Datasets and Benchmarks Track, 2021.
|
| 147 |
+
[14] A. Bouman, M. F. Ginting, N. Alatur, M. Palieri, D. D. Fan, T. Touma, T. Pailevanian, S.- K. Kim, K. Otsu, J. Burdick, and A.-a. Agha-Mohammadi. Autonomous spot: Long-range autonomous exploration of extreme environments with legged locomotion. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2020.
|
| 148 |
+
[15] C. Gehring, P. Fankhauser, L. Isler, R. Diethelm, S. Bachmann, M. Potz, L. Gerstenberg, and M. Hutter. Anymal in the field: Solving industrial inspection of an offshore hvdc platform with a quadrupedal robot. In Field and Service Robotics, 2021.
|
| 149 |
+
[16] J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning quadrupedal locomotion over challenging terrain. Science Robotics, 5(47), 2020.
|
| 150 |
+
[17] V. Tsounis, M. Alge, J. Lee, F. Farshidian, and M. Hutter. Deepgait: Planning and control of quadrupedal gaits using deep reinforcement learning. IEEE Robotics and Automation Letters, PP, 03 2020.
|
| 151 |
+
[18] S. Gangapurwala, M. Geisert, R. Orsolino, M. Fallon, and I. Havoutis. Real-time trajectory adaptation for quadrupedal locomotion using deep reinforcement learning. In IEEE International Conference on Robotics and Automation (ICRA), 2021.
|
| 152 |
+
[19] T. Miki, J. Lee, L. Wellhausen, V. Koltun, and M. Hutter. Wild anymal: Robust zero-shot perceptive locomotion. Submitted to Science Robotics, 2021.
|
| 153 |
+
[20] J. Siekmann, K. Green, J. Warila, A. Fern, and J. W. Hurst. Blind bipedal stair traversal via sim-to-real reinforcement learning. CoRR, abs/2105.08328, 2021.
|
| 154 |
+
[21] C. Gregg and K. Hazelwood. Where is the data? why you cannot debate cpu vs. gpu performance without the answer. In IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), 2011.
|
| 155 |
+
[22] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017.
|
| 156 |
+
[23] J. Schulman, P. Moritz, S. Levine, M. Jordan, and P. Abbeel. High-dimensional continuous control using generalized advantage estimation. In Proceedings of the International Conference on Learning Representations (ICLR), 2016.
|
| 157 |
+
[24] F. Pardo, A. Tavakoli, V. Levdik, and P. Kormushev. Time limits in reinforcement learning. CoRR, abs/1712.00378, 2017.
|
| 158 |
+
[25] G. Brockman, V. Cheung, L. Pettersson, J. Schneider, J. Schulman, J. Tang, and W. Zaremba. Openai gym, 2016.
|
| 159 |
+
[26] A. Hill, A. Raffin, M. Ernestus, A. Gleave, A. Kanervisto, R. Traore, P. Dhariwal, C. Hesse, O. Klimov, A. Nichol, M. Plappert, A. Radford, J. Schulman, S. Sidor, and Y. Wu. Stable baselines. https://github.com/hill-a/stable-baselines, 2018.
|
| 160 |
+
[27] J. Achiam. Spinning up in deep reinforcement learning, 2018. URL https://spinningup. openai.com/en/latest/.
|
| 161 |
+
[28] R. Wang, J. Lehman, J. Clune, and K. O. Stanley. Paired open-ended trailblazer (POET): endlessly generating increasingly complex and diverse learning environments and their solutions. CoRR, abs/1901.01753, 2019.
|
| 162 |
+
[29] Z. Xie, H. Y. Ling, N. H. Kim, and M. van de Panne. Allsteps: Curriculum-driven learning of stepping stone skills. Proceedings of ACM SIGGRAPH / Eurographics Symposium on Computer Animation, 2020.
|
| 163 |
+
[30] C. Florensa, D. Held, X. Geng, and P. Abbeel. Automatic goal generation for reinforcement learning agents. In Proceedings of the 35th International Conference on Machine Learning (ICML), volume 80 of Proceedings of Machine Learning Research, 2018.
|
parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_content_list.json
ADDED
|
@@ -0,0 +1,829 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Learning to Walk in Minutes Using Massively Parallel Deep Reinforcement Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
223,
|
| 8 |
+
102,
|
| 9 |
+
774,
|
| 10 |
+
151
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Nikita Rudin ETH Zurich and NVIDIA rudinn@ethz.ch ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
209,
|
| 19 |
+
178,
|
| 20 |
+
380,
|
| 21 |
+
219
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "David Hoeller ETH Zurich and NVIDIA dhoeller@ethz.ch ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
424,
|
| 30 |
+
178,
|
| 31 |
+
596,
|
| 32 |
+
218
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Philipp Reist NVIDIA preist@nvidia.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
637,
|
| 41 |
+
178,
|
| 42 |
+
787,
|
| 43 |
+
219
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Marco Hutter ETH Zurich mahutter@ethz.com ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
423,
|
| 52 |
+
241,
|
| 53 |
+
573,
|
| 54 |
+
282
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Abstract: In this work, we present and study a training set-up that achieves fast policy generation for real-world robotic tasks by using massive parallelism on a single workstation GPU. We analyze and discuss the impact of different training algorithm components in the massively parallel regime on the final policy performance and training times. In addition, we present a novel game-inspired curriculum that is well suited for training with thousands of simulated robots in parallel. We evaluate the approach by training the quadrupedal robot ANYmal to walk on challenging terrain. The parallel approach allows training policies for flat terrain in under four minutes, and in twenty minutes for uneven terrain. This represents a speedup of multiple orders of magnitude compared to previous work. Finally, we transfer the policies to the real robot to validate the approach. We open-source our training code to help accelerate further research in the field of learned legged locomotion: https://leggedrobotics.github.io/legged_gym/. ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
232,
|
| 63 |
+
325,
|
| 64 |
+
766,
|
| 65 |
+
506
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Keywords: Reinforcement Learning, Legged Robots, Sim-to-real ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
233,
|
| 74 |
+
517,
|
| 75 |
+
665,
|
| 76 |
+
532
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "image",
|
| 82 |
+
"img_path": "images/b6480bd30beb6d1b9762af85125a32c3c8067d4548699e684f5c674891d50b92.jpg",
|
| 83 |
+
"image_caption": [
|
| 84 |
+
"Figure 1: Thousands of robots learning to walk in simulation. "
|
| 85 |
+
],
|
| 86 |
+
"image_footnote": [],
|
| 87 |
+
"bbox": [
|
| 88 |
+
191,
|
| 89 |
+
550,
|
| 90 |
+
808,
|
| 91 |
+
728
|
| 92 |
+
],
|
| 93 |
+
"page_idx": 0
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"type": "text",
|
| 97 |
+
"text": "1 Introduction ",
|
| 98 |
+
"text_level": 1,
|
| 99 |
+
"bbox": [
|
| 100 |
+
174,
|
| 101 |
+
760,
|
| 102 |
+
312,
|
| 103 |
+
776
|
| 104 |
+
],
|
| 105 |
+
"page_idx": 0
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"type": "text",
|
| 109 |
+
"text": "Deep reinforcement learning (DRL) is proving to be a powerful tool for robotics. Tasks such as legged locomotion [1], manipulation [2], and navigation [3], have been solved using these new tools, and research continues to keep adding more and more challenging tasks to the list. The amount of data required to train a policy increases with the task complexity. For this reason, most work focuses on training in simulation before transferring to real robots. We have reached a point where multiple days or even weeks are needed to fully train an agent with current simulators. For example, OpenAI’s block reorientation task was trained for up to 14 days and their Rubik’s cube solving policy took several months to train [4]. The problem is exacerbated by the fact that deep reinforcement learning requires hyper-parameter tuning to obtain a suitable solution which requires sequentially rerunning time-consuming training. Reducing training times using massively parallel approaches such as presented here can therefore help improve the quality and time-to-deployment of DRL policies, as a training setup can be iterated on more often in the same time frame. ",
|
| 110 |
+
"bbox": [
|
| 111 |
+
174,
|
| 112 |
+
791,
|
| 113 |
+
825,
|
| 114 |
+
902
|
| 115 |
+
],
|
| 116 |
+
"page_idx": 0
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"type": "text",
|
| 120 |
+
"text": "",
|
| 121 |
+
"bbox": [
|
| 122 |
+
174,
|
| 123 |
+
92,
|
| 124 |
+
823,
|
| 125 |
+
146
|
| 126 |
+
],
|
| 127 |
+
"page_idx": 1
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"type": "text",
|
| 131 |
+
"text": "In this paper, we examine the effects of massive parallelism for on-policy DRL algorithms and present considerations in how the standard RL formulation and the most commonly used hyperparameters should be adapted to learn efficiently in the highly parallel regime. Additionally, we present a novel game-inspired curriculum which automatically adapts the task difficulty to the performance of the policy. The proposed curriculum architecture is straightforward to implement, does not require tuning, and is well suited for the massively parallel regime. Common robotic simulators such as Mujoco [5], Bullet [6], or Raisim [7] feature efficient multi-body dynamics implementations. However, they have been developed to run on CPUs with only a reduced amount of parallelism. In this work, we use NVIDIA’s Isaac Gym simulation environment [8], which runs both the simulation and training on the GPU and is capable of simulating thousands of robots in parallel. ",
|
| 132 |
+
"bbox": [
|
| 133 |
+
174,
|
| 134 |
+
154,
|
| 135 |
+
825,
|
| 136 |
+
291
|
| 137 |
+
],
|
| 138 |
+
"page_idx": 1
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"type": "text",
|
| 142 |
+
"text": "The massively parallel training regime has been explored before [4, 9] in the context of distributed systems with a network of thousands of CPUs each running a separate instance of the simulation. The parallelization was achieved by averaging the gradients between the different workers without reducing the number of samples provided by each agent. This results in large batch sizes of millions of samples for each policy update which improves the learning dynamics, but does not optimize the overall training time. In parallel, recent works have aimed to increase the simulation throughput and reduce training times of standard DRL benchmark tasks. A framework combining parallel simulation with multi-GPU training [10] was proposed to achieve fast training using hundreds of parallel agents. In the context of visual navigation, large batch simulation has been used to increase the training throughput [11]. Furthermore, GPU accelerated physics simulation has been shown to significantly improve the training time of the Humanoid running task [12]. A differentiable simulator running on Google’s TPUs has also been shown to greatly accelerate the training of multiple tasks [13]. We build upon [10, 12] by pushing the parallelization further, optimizing the training algorithm, and applying the approach to a challenging real-world robotics task. ",
|
| 143 |
+
"bbox": [
|
| 144 |
+
174,
|
| 145 |
+
297,
|
| 146 |
+
825,
|
| 147 |
+
491
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "Perceptive and dynamic locomotion for legged robots in unstructured environments is a demanding task that, until recently, had only been partially demonstrated with complex model-based approaches [14, 15]. Learning-based approaches are emerging as a promising alternative. For quadrupeds, DRL has been used to train blind policies robust to highly uneven ground [16] (12 hours of training). Perceptive locomotion over challenging terrain has been achieved by combining learning with optimal control techniques [17, 18] (82 and 88 hours of training) and recently, a fully learned approach has shown great robustness in this setting [19] (120 hours of training). Similarly, bipedal robots have also been trained to walk blindly on stairs [20] (training time not reported). With our approach we can train a perceptive policy in under 20 minutes on a single GPU, with the complexity of simto-real transfer to the hardware, which increases the performance and robustness requirements and provides clear validation of the overall approach. Training such behaviors in minutes opens up new exciting possibilities ranging from automatic tuning to customized training using scans of particular environments. ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
174,
|
| 156 |
+
497,
|
| 157 |
+
825,
|
| 158 |
+
676
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "2 Massively Parallel Reinforcement Learning ",
|
| 165 |
+
"text_level": 1,
|
| 166 |
+
"bbox": [
|
| 167 |
+
173,
|
| 168 |
+
707,
|
| 169 |
+
566,
|
| 170 |
+
724
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Current (on-policy) reinforcement learning algorithms are divided into two parts: data collection and policy update. The policy update, which corresponds to back-propagation for neural networks, is easily performed in parallel on the GPU. Parallelizing data collection is not as straightforward. Each step consists of policy inference, simulation, reward, and observation calculation. Current popular pipelines have the simulation and reward/observation calculation computed on the CPU, making the GPU unsuitable for policy inference because of communication bottle-necks. Data transfer over PCIe is known to be the weakest link of GPU acceleration, and can be as much as 50 times slower than the GPU processing time alone [21]. Furthermore, with CPU data collection, a large amount of data must be sent to the GPU for each policy update, slowing down the overall process. Limited parallelization can be achieved by using multiple CPU cores and spawning many processes, each running the simulation for one agent. However, the number of agents is quickly limited by the number of cores and other issues such as memory usage. We explore the potential of massive parallelism with Isaac Gym’s end-to-end data collection and policy updates on the GPU, significantly reducing data copying and improving simulation throughput. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
744,
|
| 180 |
+
825,
|
| 181 |
+
911
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "",
|
| 188 |
+
"bbox": [
|
| 189 |
+
173,
|
| 190 |
+
92,
|
| 191 |
+
823,
|
| 192 |
+
119
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 2
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "2.1 Simulation Throughput ",
|
| 199 |
+
"text_level": 1,
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
136,
|
| 203 |
+
379,
|
| 204 |
+
151
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "The main factor affecting the total simulation throughput is the number of robots simulated in parallel. Modern GPUs can handle tens of thousands of parallel instructions. Similarly, IsaacGym’s PhysX engine can process thousands of robots in a single simulation and all other computations of our pipeline are vectorized to scale favorably with the number of robots. Using a single simulation with thousands of robots presents some new challenges. For example, a single common terrain mesh must be used, and it cannot be easily changed at each reset. We circumvent this problem by creating the whole mesh with all terrain types and levels tiled side by side. We change the terrain level of the robots by physically moving them on the mesh. In supplementary material, we show the computational time of different parts of the pipeline, examine how these times scale with the number of robots, and provide other techniques to optimize the simulation throughput. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
161,
|
| 214 |
+
825,
|
| 215 |
+
300
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "2.2 DRL Algorithm ",
|
| 222 |
+
"text_level": 1,
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
316,
|
| 226 |
+
323,
|
| 227 |
+
332
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "We build upon a custom implementation of the Proximal Policy Optimization (PPO) algorithm [22]. Our implementation is designed to perform every operation and store all the data on the GPU. In order to efficiently learn from thousands of robots in parallel, we perform some essential modifications to the algorithm and change some of the commonly used hyper-parameter values. ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
174,
|
| 236 |
+
342,
|
| 237 |
+
825,
|
| 238 |
+
398
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "2.2.1 Hyper-Parameters Modification ",
|
| 245 |
+
"text_level": 1,
|
| 246 |
+
"bbox": [
|
| 247 |
+
176,
|
| 248 |
+
412,
|
| 249 |
+
446,
|
| 250 |
+
428
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "In an on-policy algorithm such as PPO, a fixed policy collects a selected amount of data before doing the next policy update. This batch size, $B$ , is a crucial hyper-parameter for successful learning. With too little data, the gradients will be too noisy, and the algorithm will not learn effectively. With too much data, the samples become repetitive, and the algorithm cannot extract more information from them. These samples represent wasted simulation time and slow down the overall training. We have $B = n _ { r o b o t s } n _ { s t e p s }$ , where $ { n _ { s t e p s } }$ is the number of steps each robot takes per policy update and $n _ { r o b o t s }$ the number of robots simulated in parallel. Since we increase $n _ { r o b o t s }$ by a few orders of magnitude, we must choose a small $n _ { s t e p s }$ to keep $B$ reasonable and hence optimize training times, which is a setting that has not been extensively explored for on-policy reinforcement learning algorithms. It turns out that we can not choose $n _ { s t e p s }$ to be arbitrarily low. The algorithm requires trajectories with coherent temporal information to learn effectively. Even though, in theory, information of single steps could be used, we find that the algorithm fails to converge to the optimal solution below a certain threshold. This can be explained by the fact that we use Generalized Advantage Estimation (GAE) [23], which requires rewards from multiple time steps to be effective. For our task, we find that the algorithm struggles when we provide fewer than 25 consecutive steps, corresponding to $0 . 5 \\mathrm { s }$ of simulated time. It is important to distinguish $ { n _ { s t e p s } }$ from the maximum episode length leading to a time-out and a reset, which we define as $2 0 \\mathrm { s }$ . The environments are reset when they reach this maximum length and not after each iteration, meaning that a single episode can cover many policy updates. This limits the total number of robots training in parallel, and consequently, prohibits us from using the full computational capabilities of the GPU. ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
173,
|
| 259 |
+
436,
|
| 260 |
+
825,
|
| 261 |
+
713
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "The mini-batch size represents the size of the chunks in which the batch size is split to perform backpropagation. We find that having mini-batch sizes much larger than what is usually considered best practice is beneficial for our massively parallel use case. We use mini-batches of tens of thousands of samples and observe that it stabilizes the learning process without increasing the total training time. ",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
719,
|
| 271 |
+
823,
|
| 272 |
+
787
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "2.2.2 Reset Handling ",
|
| 279 |
+
"text_level": 1,
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
804,
|
| 283 |
+
333,
|
| 284 |
+
819
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "During training, the robots must be reset whenever they fall, and also after some time to keep them exploring new trajectories and terrains. The PPO algorithm includes a critic predicting an infinite horizon sum of future discounted rewards. Resets break this infinite horizon assumption and can lead to inferior critic performance if not handled carefully. Resets based on failure or reaching a goal are not a problem because the critic can predict them. However, a reset based on a time out can not be predicted (we do not provide episode time in the observations). The solution is to distinguish the two termination modes and augment the reward with the expected infinite sum of discounted future rewards in a time-out case. In other words, we bootstrap the target of the critic with its own prediction. This solution has been discussed in [24], but interestingly, this distinction is not part of the widely used Gym environment interface [25] and is ignored by popular implementations such as Stable-Baselines $[ 2 6 ] ^ { 1 }$ . After investigating multiple implementations, we conclude that this important detail is often avoided by assuming that the environments either never time out or only on the very last step of a batch collection. In our case, with few robot steps per batch, we can not make such an assumption since a meaningful episode length covers the collection of many batches. We modify the standard Gym interface to detect time-outs and implement the bootstrapping solution. In supplementary material, we show the effect of this solution on the total reward as well as the critic loss. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
828,
|
| 294 |
+
823,
|
| 295 |
+
911
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 2
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "image",
|
| 301 |
+
"img_path": "images/9b48083b251353c43d2e71ff8968b79f99600e9e05461c3dd723d12ace8ceddd.jpg",
|
| 302 |
+
"image_caption": [
|
| 303 |
+
"Figure 2: Terrain types used for training and testing in simulation. (a) Randomly rough terrain with variations of $0 . 1 \\mathrm { m }$ . (b) Sloped terrain with an inclination of $2 5 \\mathrm { d e g }$ . (c) Stairs with a width of $0 . 3 \\mathrm { m }$ and height of $\\mathrm { 0 . 2 m }$ . (d) Randomized, discrete obstacles with heights of up to $\\pm 0 . 2 \\mathrm { m }$ . "
|
| 304 |
+
],
|
| 305 |
+
"image_footnote": [],
|
| 306 |
+
"bbox": [
|
| 307 |
+
178,
|
| 308 |
+
101,
|
| 309 |
+
820,
|
| 310 |
+
186
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 3
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "",
|
| 317 |
+
"bbox": [
|
| 318 |
+
174,
|
| 319 |
+
247,
|
| 320 |
+
825,
|
| 321 |
+
398
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 3
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "3 Task Description ",
|
| 328 |
+
"text_level": 1,
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
420,
|
| 332 |
+
346,
|
| 333 |
+
436
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 3
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "A quadruped robot must learn to walk across challenging terrain, including uneven surfaces, slopes, stairs, and obstacles, while following base-heading and linear-velocity commands. We conduct most of the simulation and real-world deployment experiments on the ANYbotics ANYmal C robot. However, in simulation, we demonstrate the broader applicability of the approach by additionally training policies for ANYmal B, ANYmal C with an attached arm, and the Unitree A1 robots. ",
|
| 340 |
+
"bbox": [
|
| 341 |
+
174,
|
| 342 |
+
452,
|
| 343 |
+
825,
|
| 344 |
+
521
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 3
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "3.1 Game-Inspired Curriculum ",
|
| 351 |
+
"text_level": 1,
|
| 352 |
+
"bbox": [
|
| 353 |
+
176,
|
| 354 |
+
537,
|
| 355 |
+
405,
|
| 356 |
+
553
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 3
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "The terrains are selected to be representative of real-world environments. We create five types of procedurally generated terrains presented in Fig. 2: flat, sloped, randomly rough, discrete obstacles, and stairs. The terrains are tiled squares with $8 \\mathrm { m }$ sides. The robots start at the center of the terrain and are given randomized heading and velocity commands (kept constant for the duration of an episode) pushing them to walk across the terrain. Slopes and stairs are organized in pyramids to allow traversability in all directions. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
174,
|
| 365 |
+
564,
|
| 366 |
+
825,
|
| 367 |
+
647
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "Previous works have shown the benefits of using an automated curriculum of task difficulty to learn complex locomotion policies [28, 29, 16]. Similarly, we find that it is essential to first train the policy on less challenging terrain before progressively increasing the complexity. We adopt a solution inspired by [16], but replace the particle filter approach with a new game-inspired automatic curriculum. All robots are assigned a terrain type and a level that represents the difficulty of that terrain. For stairs and randomized obstacles, we gradually increase the step height from $5 \\mathrm { c m }$ to $2 0 \\mathrm { c m }$ . Sloped terrain inclination is increased from 0 deg to 25 deg. If a robot manages to walk past the borders of its terrain, its level is increased, and at the next reset, it will start on more difficult terrain. However, if at the end of an episode it moved by less than half of the distance required by its target velocity, its level is reduced again. Robots solving the highest level are looped back to a randomly selected level to increase the diversity and avoid catastrophic forgetting. This approach has the advantage of training the robots at a level of difficulty tailored to their performance without requiring any external tuning. It adapts the difficulty level for each terrain type individually and provides us with visual and quantitative feedback on the progress of the training. When the robots have reached the final level and are evenly spread across all terrains due to looping back, we can conclude they have fully learned to solve the task. ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
174,
|
| 376 |
+
655,
|
| 377 |
+
825,
|
| 378 |
+
875
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "image",
|
| 384 |
+
"img_path": "images/ecaf8198256af450c96e9b482c8d3d3a06909d2addf9a2530c761fb4193fd419.jpg",
|
| 385 |
+
"image_caption": [
|
| 386 |
+
"Figure 3: 4000 robots progressing through the terrains with automatic curriculum, after 500 (top) and 1000 (bottom) policy updates. The robots start the training session on the first row (closest to the camera) and progressively reach harder terrains. "
|
| 387 |
+
],
|
| 388 |
+
"image_footnote": [],
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
89,
|
| 392 |
+
823,
|
| 393 |
+
320
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 4
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "The proposed curriculum structure is well suited for the massively parallel regime. With thousands of robots we can directly use their current progress in the curriculum as the distribution of the policy’s performance, and do not need learn it with a generator network [30]. Furthermore, our method doesn’t require tuning and is straightforward to implement in a parallel manner with nearzero processing cost. We remove the computational overhead of re-sampling and re-generating new terrains needed for the particle filter approach. ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
174,
|
| 402 |
+
377,
|
| 403 |
+
823,
|
| 404 |
+
462
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 4
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "Fig. 3 shows robots progressing through the terrains at two different stages of the training process. On complex terrain types, the robots require more training iterations to reach the highest levels. The distribution of robots after 500 iterations shows that while the policy is able to cross sloped terrains and to go down stairs, climbing stairs and traversing obstacles requires more training iterations. However, after 1000 iterations, the robots have reached the most challenging level for all terrain types and are spread across the map. We train for a total for 1500 iterations to let the policy converge to its highest performance. ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
174,
|
| 413 |
+
468,
|
| 414 |
+
825,
|
| 415 |
+
565
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 4
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "3.2 Observations, Actions, and Rewards ",
|
| 422 |
+
"text_level": 1,
|
| 423 |
+
"bbox": [
|
| 424 |
+
178,
|
| 425 |
+
582,
|
| 426 |
+
464,
|
| 427 |
+
595
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 4
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "The policy receives proprioceptive measurements of the robot as well as terrain information around the robot’s base. The observations are composed of: base linear and angular velocities, measurement of the gravity vector, joint positions and velocities, the previous actions selected by the policy, and finally, 108 measurements of the terrain sampled from a grid around the robot’s base. Each measurement is the distance from the terrain surface to the robot’s base height. ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
606,
|
| 437 |
+
825,
|
| 438 |
+
676
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 4
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "The total reward is a weighted sum of nine terms, detailed in supplementary material. The main terms encourage the robot to follow the commanded velocities while avoiding undesired base velocities along other axes. In order to create a smoother, more natural motion, we also penalize joint torques, joint accelerations, joint target changes, and collisions. Contacts with the knees, shanks or between the feet and a vertical surface are considered collisions, while contacts with the base are considered crashes and lead to resets. Finally, we add an additional reward term encouraging the robot to take longer steps, which results in a more visually appealing behavior. We train a single policy with the same rewards for all terrains. ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
174,
|
| 447 |
+
683,
|
| 448 |
+
823,
|
| 449 |
+
792
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 4
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "The actions are interpreted as desired joint positions sent to the motors. There, a PD controller produces motor torques. In contrast to other works [16, 20], neither the reward function nor the action space has any gait-dependent elements. ",
|
| 456 |
+
"bbox": [
|
| 457 |
+
174,
|
| 458 |
+
800,
|
| 459 |
+
825,
|
| 460 |
+
840
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 4
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "3.3 Sim-to-Real Additions ",
|
| 467 |
+
"text_level": 1,
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
857,
|
| 471 |
+
367,
|
| 472 |
+
872
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 4
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "In order to make the trained policies amenable for sim-to-real transfer, we randomize the friction of the ground, add noise to the observations and randomly push the robots during the episode to teach them a more stable stance. Each robot has a friction coefficient sampled uniformly in [0.5, 1.25]. The pushes happen every $1 0 \\mathrm { s }$ . The robots’ base is accelerated up to $\\pm 1 \\mathrm { m } / \\mathrm { s }$ in both $\\mathbf { X }$ and y directions. The amount of noise is based on real data measured on the robot and is detailed in supplementary material. ",
|
| 479 |
+
"bbox": [
|
| 480 |
+
174,
|
| 481 |
+
883,
|
| 482 |
+
821,
|
| 483 |
+
911
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 4
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "text",
|
| 489 |
+
"text": "",
|
| 490 |
+
"bbox": [
|
| 491 |
+
174,
|
| 492 |
+
92,
|
| 493 |
+
825,
|
| 494 |
+
147
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 5
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "The ANYmal robot uses series elastic actuators with fairly complex dynamics, which are hard to model in simulation. For this reason and following the methodology of previous work [1], we use a neural network to compute torques from joint position commands. However, we simplify the inputs of the model. Instead of concatenating past measurements at fixed time steps and sending all of that information to a standard feed-forward network, we only provide the current measurements to an LSTM network. A potential drawback of this set-up is that the policy does not have the temporal information of the actuators as in previous work. We have experimented with various ways of providing that information through memory mechanisms for the policy but found that it does not improve the final performance. ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
173,
|
| 503 |
+
154,
|
| 504 |
+
825,
|
| 505 |
+
279
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 5
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "4 Results ",
|
| 512 |
+
"text_level": 1,
|
| 513 |
+
"bbox": [
|
| 514 |
+
174,
|
| 515 |
+
297,
|
| 516 |
+
266,
|
| 517 |
+
315
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 5
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "4.1 Effects of Massive Parallelism ",
|
| 524 |
+
"text_level": 1,
|
| 525 |
+
"bbox": [
|
| 526 |
+
176,
|
| 527 |
+
329,
|
| 528 |
+
419,
|
| 529 |
+
344
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 5
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "In this section, we study the effects of the number of parallel robots on the final performance of the policy. In order to use the total reward as a single representative metric, we have to remove the curriculum, otherwise a more performant policy sees its task difficulty increase and consequently a decrease in the total reward. As such, we simplify the task by reducing the maximum step size of stairs and obstacles and directly train robots on the full range of difficulties. ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
174,
|
| 538 |
+
356,
|
| 539 |
+
825,
|
| 540 |
+
425
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 5
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "We begin by setting a baseline with $n _ { r o b o t s } = 2 0 0 0 0$ and $n _ { s t e p s } = 5 0$ , resulting in a batch size of 1M samples. Using this very large batch size results in the best policy but at the cost of a relatively long training time. ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
176,
|
| 549 |
+
431,
|
| 550 |
+
825,
|
| 551 |
+
473
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 5
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "We then conduct experiments in which we increase the number of robots while keeping the batch size constant. As a result, the number of steps each robot takes per policy update decreases. In this case, the training time decreases with a higher number of robots, but the policy performance drops if that number is too high. We start from 128 robots corresponding to the level of parallelization of previous CPU implementations and increase that number up to 16384, which is close to the maximum amount of robots we could simulate on rough terrain with Isaac Gym running on a single workstation GPU. ",
|
| 558 |
+
"bbox": [
|
| 559 |
+
173,
|
| 560 |
+
479,
|
| 561 |
+
825,
|
| 562 |
+
577
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 5
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "In Fig. 4, we compare these results with the baseline, which allows us to select the most favorable trade-off between policy performance and training time. We see two interesting effects at play. First, when the number of robots is too high, the performance drops sharply, which can be explained by the time horizon of each robot becoming too small. As expected, with larger batch sizes, the overall reward is higher, and the time horizon effect is shifted, meaning that we can use more robots before seeing the drop. On the other hand, below a certain threshold, we see a slow decrease in performance with fewer robots. We believe this is explained by the fact that the samples are very similar with many steps per robot because of the relatively small time steps between them. This means that for the same amount of samples, there is less diversity in the data. In other words, with a low number of robots, we are further from the standard assumption that the samples are independent and identically distributed, which seems to have a noticeable effect on the training process. In terms of training time, we see a nearly linear scaling up to 4000 robots, after which simulation throughput gains slow down. As such, we can conclude that increasing the number of robots is beneficial for both final performance and training time, but there is an upper limit on this number after which an on-policy algorithm cannot learn effectively. Increasing the batch size to values much larger than what is typically used in similar works seems highly beneficial. Unfortunately, it also scales the training time so it is a trade-off that must be balanced. From the third plot we can conclude that using 2048 to 4096 robots with a batch size of $\\approx 1 0 0 k$ or $\\approx 2 0 0 k$ provides the best trade-off for this specific task. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
173,
|
| 571 |
+
583,
|
| 572 |
+
825,
|
| 573 |
+
666
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 5
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "image",
|
| 579 |
+
"img_path": "images/b511ee0c2aca987f5fa8e39a0d14f3ee54098cf431491e0a271f167d3bdcff6f.jpg",
|
| 580 |
+
"image_caption": [
|
| 581 |
+
"Figure 4: (a) Average and standard deviation (over 5 runs) of the total reward of an episode after 1500 policy updates for different number of robots and 3 different batch sizes. The ideal case of a batch size of 1M samples with 20000 robots is shown in red. (b) Total training time for the same experiments. (c) Reward dependency on total training time. Colors represent the number of robots, while shapes show the batch size (circles: 49152, crosses: 98304, triangles: 196608). Points in the upper left part of the graph (highlighted in green) represent the most desirable configuration. "
|
| 582 |
+
],
|
| 583 |
+
"image_footnote": [],
|
| 584 |
+
"bbox": [
|
| 585 |
+
178,
|
| 586 |
+
690,
|
| 587 |
+
818,
|
| 588 |
+
834
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 5
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "image",
|
| 594 |
+
"img_path": "images/f15e005bc1e3d3db64d82f1f7796d15a227032608677590845862fc30d3d7da3.jpg",
|
| 595 |
+
"image_caption": [
|
| 596 |
+
"Figure 5: Success rate of the tested policy on increasing terrain complexities. Robots start in the center of the terrain and are given a forward velocity command of $0 . 7 5 \\mathrm { m } / \\mathrm { s }$ , and a side velocity command randomized within $[ - 0 . 1 , 0 . 1 ] \\mathrm { m } / \\mathrm { s }$ . (a) Success rate for climbing stairs, descending stairs and traversing discrete obstacles. (b) Success rate for climbing and descending sloped terrains. "
|
| 597 |
+
],
|
| 598 |
+
"image_footnote": [],
|
| 599 |
+
"bbox": [
|
| 600 |
+
214,
|
| 601 |
+
87,
|
| 602 |
+
784,
|
| 603 |
+
213
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 6
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "image",
|
| 609 |
+
"img_path": "images/4eab7c74f6cac548026b3ff28e7f10ab6832f65e03b74ce577a9f1ea90202882.jpg",
|
| 610 |
+
"image_caption": [
|
| 611 |
+
"Figure 6: ANYmal C with a fixed arm, ANYmal B, A1 and Cassie in simulation. "
|
| 612 |
+
],
|
| 613 |
+
"image_footnote": [],
|
| 614 |
+
"bbox": [
|
| 615 |
+
178,
|
| 616 |
+
287,
|
| 617 |
+
821,
|
| 618 |
+
357
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 6
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "",
|
| 625 |
+
"bbox": [
|
| 626 |
+
173,
|
| 627 |
+
388,
|
| 628 |
+
825,
|
| 629 |
+
568
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 6
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "4.2 Simulation ",
|
| 636 |
+
"text_level": 1,
|
| 637 |
+
"bbox": [
|
| 638 |
+
174,
|
| 639 |
+
585,
|
| 640 |
+
289,
|
| 641 |
+
599
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 6
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "For our simulation and deployment experiments, we use a policy trained with 4096 robots and a batch size of 98304, which we train for 1500 policy updates in under 20 minutes2. We begin by measuring the performance of our trained policy in simulation. To that end, we perform robustness and traversability tests. For each terrain type, we command the robots to traverse the representative difficulty of the terrain at high forward velocity and measure the success rate. A success is defined as managing to cross the terrain while avoiding any contacts on the robot’s base. Fig. 5 shows the results for the different terrains. For stairs, we see a nearly $1 0 0 \\%$ success rate for steps up to $\\mathrm { 0 . 2 m }$ , which is the hardest stair difficulty we train on and close to the kinematic limits of our robot. Randomized obstacles seem to be more demanding, with the success rate decreasing steadily. We must note that in this case, the largest step is double the reported height since neighboring obstacles can have positive and negative heights. In the case of slopes, we can observe that after $2 5 \\mathrm { d e g }$ the robots are not able to climb anymore but still learn to slide down with a moderate success rate. ",
|
| 648 |
+
"bbox": [
|
| 649 |
+
174,
|
| 650 |
+
611,
|
| 651 |
+
825,
|
| 652 |
+
776
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 6
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "Given our relatively simple rewards and action space, the policy is free to adopt any gait and behavior. Interestingly, it always converges to a trotting gait, but there are often artifacts in the behavior, such as a dragging leg or unreasonably high or low base heights. After tuning of the reward weights, we can obtain a policy that respects all our constraints and can be transferred to the physical robot. ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
174,
|
| 661 |
+
784,
|
| 662 |
+
825,
|
| 663 |
+
838
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 6
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "To verify the generalizability of the approach, we train policies for multiple robots with the same set-up. We use the ANYmal C robot with a fixed robotic arm, which adds about $2 0 \\%$ of additional weight, and the ANYmal B robot, which has comparable dimensions but modified kinematic and dynamic properties. In these two cases, we can retrain a policy without any modifications to the rewards or algorithm hyper-parameters and obtain a very similar performance. Next, we use the Unitree A1 robot, which has smaller dimensions, four times lower weight, and a different leg configuration. In this case, we remove the actuator model of the ANYdrive motors, reduce PD gains and the torque penalties, and change the default joint configurations. We can train a dynamic policy that learns to solve the same terrains even with the reduced size of the robot. Finally, we apply our approach to Agility Robotics’ bipedal robot Cassie. We find that an additional reward encouraging standing on a single foot is necessary to achieve a walking gait. With this addition, we are able to train the robot on the same terrains as its quadrupedal counterparts. Fig. 6 shows the different robots. ",
|
| 670 |
+
"bbox": [
|
| 671 |
+
176,
|
| 672 |
+
844,
|
| 673 |
+
821,
|
| 674 |
+
873
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 6
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "image",
|
| 680 |
+
"img_path": "images/f0dd8a9ddc78c32773c604659ba9f56cbd659b68c879ccbb91f00fe6ccb27b59.jpg",
|
| 681 |
+
"image_caption": [
|
| 682 |
+
"Figure 7: Locomotion policy, trained in under $2 0 \\mathrm { { m i n } }$ , deployed on the physical robot. "
|
| 683 |
+
],
|
| 684 |
+
"image_footnote": [],
|
| 685 |
+
"bbox": [
|
| 686 |
+
178,
|
| 687 |
+
101,
|
| 688 |
+
820,
|
| 689 |
+
195
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 7
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "",
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
227,
|
| 699 |
+
825,
|
| 700 |
+
378
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 7
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "4.3 Sim-to-real Transfer ",
|
| 707 |
+
"text_level": 1,
|
| 708 |
+
"bbox": [
|
| 709 |
+
174,
|
| 710 |
+
395,
|
| 711 |
+
354,
|
| 712 |
+
409
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 7
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "On the physical robot, our policy is fixed. We compute the observations from the robot’s sensors, feed them to the policy, and directly send the produced actions as target joint positions to the motors. We do not apply any additional filtering or constraint satisfaction checks. The terrain height measurements are queried from an elevation map that the robot is building from Lidar scans. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
420,
|
| 722 |
+
823,
|
| 723 |
+
476
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 7
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "Unfortunately, this height map is far from perfect, which results in a decrease in robustness between simulation and reality. We observe that these issues mainly occur at high velocities and therefore reduce the maximum linear velocity commands to $0 . 6 \\mathrm { m } / \\mathrm { s }$ for policies deployed on the hardware. The robot can walk up and down stairs and handles obstacles in a dynamic manner. We show samples of these experiments in Fig. 7 and in the supplementary video. To overcome issues with imperfect terrain mapping or state estimation drift, the authors of [19] implemented a teacher-student set-up, which provided outstanding robustness even in adverse conditions. As part of future work, we plan to merge the two approaches. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
482,
|
| 733 |
+
825,
|
| 734 |
+
593
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 7
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "5 Conclusion ",
|
| 741 |
+
"text_level": 1,
|
| 742 |
+
"bbox": [
|
| 743 |
+
174,
|
| 744 |
+
612,
|
| 745 |
+
299,
|
| 746 |
+
628
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 7
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "In this work, we demonstrated that a complex real-world robotics task can be trained in minutes with an on-policy deep reinforcement learning algorithm. Using an end-to-end GPU pipeline with thousands of robots simulated in parallel, combined with our proposed curriculum structure, we showed that the training time can be reduced by multiple orders of magnitude compared to previous work. We discussed multiple modifications to the learning algorithm and the standard hyper-parameters required to use the massively parallel regime effectively. Using our fast training pipeline, we performed many training runs, simplified the set-up, and kept only essential components. We showed that the task can be solved using simple observation and action spaces as well as relatively straightforward rewards without encouraging particular gaits or providing motion primitives. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
643,
|
| 756 |
+
825,
|
| 757 |
+
768
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "The purpose of this work is not to obtain the absolute best-performing policy with the highest robustness. For that use case, many other techniques can be incorporated into the pipeline. We aim to show that a policy can be trained in record time with our set-up while still being usable on the real hardware. We wish to shift other researchers’ perspective on the required training time for a real-world application, and hope that our work can serve as a reference for future research. We expect many other tasks to benefit from the massively parallel regime. By reducing the training time of these future robotic tasks, we can greatly accelerate the developments in this field. ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
174,
|
| 766 |
+
775,
|
| 767 |
+
823,
|
| 768 |
+
872
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 7
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Acknowledgments ",
|
| 775 |
+
"text_level": 1,
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
92,
|
| 779 |
+
303,
|
| 780 |
+
106
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 8
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "We would like to thank Mayank Mittal, Joonho Lee, Takahiro Miki, and Peter Werner for their valuable suggestions and help with hardware experiments as well as the Isaac Gym and PhysX teams for their continuous support. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
176,
|
| 789 |
+
114,
|
| 790 |
+
821,
|
| 791 |
+
157
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 8
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "References ",
|
| 798 |
+
"text_level": 1,
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
176,
|
| 802 |
+
266,
|
| 803 |
+
191
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 8
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "[1] J. Hwangbo, J. Lee, A. Dosovitskiy, D. Bellicoso, V. Tsounis, V. Koltun, and M. Hutter. Learning agile and dynamic motor skills for legged robots. Science Robotics, 4(26), 2019. \n[2] S. Gu, E. Holly, T. Lillicrap, and S. Levine. Deep reinforcement learning for robotic manipulation with asynchronous off-policy updates. In IEEE International Conference on Robotics and Automation (ICRA), May 2017. \n[3] G. Kahn, A. Villaflor, B. Ding, P. Abbeel, and S. Levine. Self-supervised deep reinforcement learning with generalized computation graphs for robot navigation. In IEEE International Conference on Robotics and Automation (ICRA), 2018. \n[4] OpenAI, I. Akkaya, M. Andrychowicz, M. Chociej, M. Litwin, B. McGrew, A. Petron, A. Paino, M. Plappert, G. Powell, R. Ribas, J. Schneider, N. Tezak, J. Tworek, P. Welinder, L. Weng, Q. Yuan, W. Zaremba, and L. Zhang. Solving rubik’s cube with a robot hand, 2019. \n[5] E. Todorov, T. Erez, and Y. Tassa. Mujoco: A physics engine for model-based control. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2012. \n[6] E. Coumans and Y. Bai. Pybullet, a python module for physics simulation for games, robotics and machine learning. http://pybullet.org, 2016–2021. \n[7] J. Hwangbo, J. Lee, and M. Hutter. Per-contact iteration method for solving contact dynamics. IEEE Robotics and Automation Letters, 3(2), 2018. URL www.raisim.com. \n[8] V. Makoviychuk, L. Wawrzyniak, Y. Guo, M. Lu, K. Storey, M. Macklin, D. Hoeller, N. Rudin, A. Allshire, A. Handa, and G. State. Isaac gym: High performance GPU based physics simulation for robot learning. In Conference on Neural Information Processing Systems (NeurIPS) Datasets and Benchmarks Track, 2021. \n[9] N. Heess, D. TB, S. Sriram, J. Lemmon, J. Merel, G. Wayne, Y. Tassa, T. Erez, Z. Wang, S. M. A. Eslami, M. A. Riedmiller, and D. Silver. Emergence of locomotion behaviours in rich environments. CoRR, abs/1707.02286, 2017. \n[10] A. Stooke and P. Abbeel. Accelerated methods for deep reinforcement learning. CoRR, abs/1803.02811, 2018. \n[11] B. Shacklett, E. Wijmans, A. Petrenko, M. Savva, D. Batra, V. Koltun, and K. Fatahalian. Large batch simulation for deep reinforcement learning. In International Conference on Learning Representations (ICLR), 2021. \n[12] J. Liang, V. Makoviychuk, A. Handa, N. Chentanez, M. Macklin, and D. Fox. Gpu-accelerated robotic simulation for distributed reinforcement learning. In Conference on Robot Learning (CoRL), 2018. \n[13] C. D. Freeman, E. Frey, A. Raichuk, S. Girgin, I. Mordatch, and O. Bachem. Brax - a differentiable physics engine for large scale rigid body simulation. In 35th Conference on Neural Information Processing Systems (NeurIPS) Datasets and Benchmarks Track, 2021. \n[14] A. Bouman, M. F. Ginting, N. Alatur, M. Palieri, D. D. Fan, T. Touma, T. Pailevanian, S.- K. Kim, K. Otsu, J. Burdick, and A.-a. Agha-Mohammadi. Autonomous spot: Long-range autonomous exploration of extreme environments with legged locomotion. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2020. \n[15] C. Gehring, P. Fankhauser, L. Isler, R. Diethelm, S. Bachmann, M. Potz, L. Gerstenberg, and M. Hutter. Anymal in the field: Solving industrial inspection of an offshore hvdc platform with a quadrupedal robot. In Field and Service Robotics, 2021. \n[16] J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning quadrupedal locomotion over challenging terrain. Science Robotics, 5(47), 2020. \n[17] V. Tsounis, M. Alge, J. Lee, F. Farshidian, and M. Hutter. Deepgait: Planning and control of quadrupedal gaits using deep reinforcement learning. IEEE Robotics and Automation Letters, PP, 03 2020. \n[18] S. Gangapurwala, M. Geisert, R. Orsolino, M. Fallon, and I. Havoutis. Real-time trajectory adaptation for quadrupedal locomotion using deep reinforcement learning. In IEEE International Conference on Robotics and Automation (ICRA), 2021. \n[19] T. Miki, J. Lee, L. Wellhausen, V. Koltun, and M. Hutter. Wild anymal: Robust zero-shot perceptive locomotion. Submitted to Science Robotics, 2021. \n[20] J. Siekmann, K. Green, J. Warila, A. Fern, and J. W. Hurst. Blind bipedal stair traversal via sim-to-real reinforcement learning. CoRR, abs/2105.08328, 2021. \n[21] C. Gregg and K. Hazelwood. Where is the data? why you cannot debate cpu vs. gpu performance without the answer. In IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), 2011. \n[22] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017. \n[23] J. Schulman, P. Moritz, S. Levine, M. Jordan, and P. Abbeel. High-dimensional continuous control using generalized advantage estimation. In Proceedings of the International Conference on Learning Representations (ICLR), 2016. \n[24] F. Pardo, A. Tavakoli, V. Levdik, and P. Kormushev. Time limits in reinforcement learning. CoRR, abs/1712.00378, 2017. \n[25] G. Brockman, V. Cheung, L. Pettersson, J. Schneider, J. Schulman, J. Tang, and W. Zaremba. Openai gym, 2016. \n[26] A. Hill, A. Raffin, M. Ernestus, A. Gleave, A. Kanervisto, R. Traore, P. Dhariwal, C. Hesse, O. Klimov, A. Nichol, M. Plappert, A. Radford, J. Schulman, S. Sidor, and Y. Wu. Stable baselines. https://github.com/hill-a/stable-baselines, 2018. \n[27] J. Achiam. Spinning up in deep reinforcement learning, 2018. URL https://spinningup. openai.com/en/latest/. \n[28] R. Wang, J. Lehman, J. Clune, and K. O. Stanley. Paired open-ended trailblazer (POET): endlessly generating increasingly complex and diverse learning environments and their solutions. CoRR, abs/1901.01753, 2019. \n[29] Z. Xie, H. Y. Ling, N. H. Kim, and M. van de Panne. Allsteps: Curriculum-driven learning of stepping stone skills. Proceedings of ACM SIGGRAPH / Eurographics Symposium on Computer Animation, 2020. \n[30] C. Florensa, D. Held, X. Geng, and P. Abbeel. Automatic goal generation for reinforcement learning agents. In Proceedings of the 35th International Conference on Machine Learning (ICML), volume 80 of Proceedings of Machine Learning Research, 2018. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
173,
|
| 812 |
+
196,
|
| 813 |
+
826,
|
| 814 |
+
917
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 8
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "",
|
| 821 |
+
"bbox": [
|
| 822 |
+
171,
|
| 823 |
+
90,
|
| 824 |
+
826,
|
| 825 |
+
765
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 9
|
| 828 |
+
}
|
| 829 |
+
]
|
parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/wK2fDDJ5VcF/wK2fDDJ5VcF_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|